~ubuntu-branches/ubuntu/precise/lxc/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2009-04-29 17:49:13 UTC
  • Revision ID: james.westby@ubuntu.com-20090429174913-jvahs1ykizqtodje
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

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 lxc 0.6.2.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
 
 
553
# Check that we are running under the correct shell.
 
554
SHELL=${CONFIG_SHELL-/bin/sh}
 
555
 
 
556
case X$ECHO in
 
557
X*--fallback-echo)
 
558
  # Remove one level of quotation (which was required for Make).
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
560
  ;;
 
561
esac
 
562
 
 
563
echo=${ECHO-echo}
 
564
if test "X$1" = X--no-reexec; then
 
565
  # Discard the --no-reexec flag, and continue.
 
566
  shift
 
567
elif test "X$1" = X--fallback-echo; then
 
568
  # Avoid inline document here, it may be left over
 
569
  :
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
 
572
  :
 
573
else
 
574
  # Restart under the correct shell.
 
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
576
fi
 
577
 
 
578
if test "X$1" = X--fallback-echo; then
 
579
  # used as fallback echo
 
580
  shift
 
581
  cat <<EOF
 
582
$*
 
583
EOF
 
584
  exit 0
 
585
fi
 
586
 
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
588
# if CDPATH is set.
 
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
590
 
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
597
       echo_test_string=`eval $cmd` &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
 
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
 
628
 
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
666
      else
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
 
674
          fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
 
686
      fi
 
687
    fi
 
688
  fi
 
689
fi
 
690
fi
 
691
 
 
692
# Copy echo and quote the copy suitably for passing to libtool from
 
693
# the Makefile, instead of quoting the original, which is used later.
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
697
fi
 
698
 
 
699
 
 
700
 
 
701
 
 
702
tagnames=${tagnames+${tagnames},}CXX
 
703
 
 
704
tagnames=${tagnames+${tagnames},}F77
 
705
 
 
706
exec 7<&0 </dev/null 6>&1
 
707
 
 
708
# Name of the host.
 
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
710
# so uname gets run too.
 
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
712
 
 
713
#
 
714
# Initializations.
 
715
#
 
716
ac_default_prefix=/usr/local
 
717
ac_clean_files=
 
718
ac_config_libobj_dir=.
 
719
LIBOBJS=
 
720
cross_compiling=no
 
721
subdirs=
 
722
MFLAGS=
 
723
MAKEFLAGS=
 
724
SHELL=${CONFIG_SHELL-/bin/sh}
 
725
 
 
726
# Identity of this package.
 
727
PACKAGE_NAME='lxc'
 
728
PACKAGE_TARNAME='lxc'
 
729
PACKAGE_VERSION='0.6.2'
 
730
PACKAGE_STRING='lxc 0.6.2'
 
731
PACKAGE_BUGREPORT=''
 
732
 
 
733
ac_unique_file="configure.ac"
 
734
# Factoring default headers for most tests.
 
735
ac_includes_default="\
 
736
#include <stdio.h>
 
737
#ifdef HAVE_SYS_TYPES_H
 
738
# include <sys/types.h>
 
739
#endif
 
740
#ifdef HAVE_SYS_STAT_H
 
741
# include <sys/stat.h>
 
742
#endif
 
743
#ifdef STDC_HEADERS
 
744
# include <stdlib.h>
 
745
# include <stddef.h>
 
746
#else
 
747
# ifdef HAVE_STDLIB_H
 
748
#  include <stdlib.h>
 
749
# endif
 
750
#endif
 
751
#ifdef HAVE_STRING_H
 
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
753
#  include <memory.h>
 
754
# endif
 
755
# include <string.h>
 
756
#endif
 
757
#ifdef HAVE_STRINGS_H
 
758
# include <strings.h>
 
759
#endif
 
760
#ifdef HAVE_INTTYPES_H
 
761
# include <inttypes.h>
 
762
#endif
 
763
#ifdef HAVE_STDINT_H
 
764
# include <stdint.h>
 
765
#endif
 
766
#ifdef HAVE_UNISTD_H
 
767
# include <unistd.h>
 
768
#endif"
 
769
 
 
770
ac_subst_vars='SHELL
 
771
PATH_SEPARATOR
 
772
PACKAGE_NAME
 
773
PACKAGE_TARNAME
 
774
PACKAGE_VERSION
 
775
PACKAGE_STRING
 
776
PACKAGE_BUGREPORT
 
777
exec_prefix
 
778
prefix
 
779
program_transform_name
 
780
bindir
 
781
sbindir
 
782
libexecdir
 
783
datarootdir
 
784
datadir
 
785
sysconfdir
 
786
sharedstatedir
 
787
localstatedir
 
788
includedir
 
789
oldincludedir
 
790
docdir
 
791
infodir
 
792
htmldir
 
793
dvidir
 
794
pdfdir
 
795
psdir
 
796
libdir
 
797
localedir
 
798
mandir
 
799
DEFS
 
800
ECHO_C
 
801
ECHO_N
 
802
ECHO_T
 
803
LIBS
 
804
build_alias
 
805
host_alias
 
806
target_alias
 
807
INSTALL_PROGRAM
 
808
INSTALL_SCRIPT
 
809
INSTALL_DATA
 
810
am__isrc
 
811
CYGPATH_W
 
812
PACKAGE
 
813
VERSION
 
814
ACLOCAL
 
815
AUTOCONF
 
816
AUTOMAKE
 
817
AUTOHEADER
 
818
MAKEINFO
 
819
install_sh
 
820
STRIP
 
821
INSTALL_STRIP_PROGRAM
 
822
mkdir_p
 
823
AWK
 
824
SET_MAKE
 
825
am__leading_dot
 
826
AMTAR
 
827
am__tar
 
828
am__untar
 
829
build
 
830
build_cpu
 
831
build_vendor
 
832
build_os
 
833
host
 
834
host_cpu
 
835
host_vendor
 
836
host_os
 
837
CC
 
838
CFLAGS
 
839
LDFLAGS
 
840
CPPFLAGS
 
841
ac_ct_CC
 
842
EXEEXT
 
843
OBJEXT
 
844
DEPDIR
 
845
am__include
 
846
am__quote
 
847
AMDEP_TRUE
 
848
AMDEP_FALSE
 
849
AMDEPBACKSLASH
 
850
CCDEPMODE
 
851
am__fastdepCC_TRUE
 
852
am__fastdepCC_FALSE
 
853
SED
 
854
GREP
 
855
EGREP
 
856
LN_S
 
857
ECHO
 
858
AR
 
859
RANLIB
 
860
CPP
 
861
CXX
 
862
CXXFLAGS
 
863
ac_ct_CXX
 
864
CXXDEPMODE
 
865
am__fastdepCXX_TRUE
 
866
am__fastdepCXX_FALSE
 
867
CXXCPP
 
868
F77
 
869
FFLAGS
 
870
ac_ct_F77
 
871
LIBTOOL
 
872
SETCAP
 
873
DOCBOOK
 
874
ENABLE_DOCBOOK_TRUE
 
875
ENABLE_DOCBOOK_FALSE
 
876
BINDIR
 
877
LIBEXECDIR
 
878
SYSCONFDIR
 
879
LOCALSTATEDIR
 
880
LXCPATH
 
881
ENABLE_TEST_TRUE
 
882
ENABLE_TEST_FALSE
 
883
LXC_MAJOR_VERSION
 
884
LXC_MINOR_VERSION
 
885
LXC_MICRO_VERSION
 
886
LIBOBJS
 
887
LTLIBOBJS'
 
888
ac_subst_files=''
 
889
      ac_precious_vars='build_alias
 
890
host_alias
 
891
target_alias
 
892
CC
 
893
CFLAGS
 
894
LDFLAGS
 
895
LIBS
 
896
CPPFLAGS
 
897
CPP
 
898
CXX
 
899
CXXFLAGS
 
900
CCC
 
901
CXXCPP
 
902
F77
 
903
FFLAGS'
 
904
 
 
905
 
 
906
# Initialize some variables set by options.
 
907
ac_init_help=
 
908
ac_init_version=false
 
909
# The variables have the same names as the options, with
 
910
# dashes changed to underlines.
 
911
cache_file=/dev/null
 
912
exec_prefix=NONE
 
913
no_create=
 
914
no_recursion=
 
915
prefix=NONE
 
916
program_prefix=NONE
 
917
program_suffix=NONE
 
918
program_transform_name=s,x,x,
 
919
silent=
 
920
site=
 
921
srcdir=
 
922
verbose=
 
923
x_includes=NONE
 
924
x_libraries=NONE
 
925
 
 
926
# Installation directory options.
 
927
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
928
# and all the variables that are supposed to be based on exec_prefix
 
929
# by default will actually change.
 
930
# Use braces instead of parens because sh, perl, etc. also accept them.
 
931
# (The list follows the same order as the GNU Coding Standards.)
 
932
bindir='${exec_prefix}/bin'
 
933
sbindir='${exec_prefix}/sbin'
 
934
libexecdir='${exec_prefix}/libexec'
 
935
datarootdir='${prefix}/share'
 
936
datadir='${datarootdir}'
 
937
sysconfdir='${prefix}/etc'
 
938
sharedstatedir='${prefix}/com'
 
939
localstatedir='${prefix}/var'
 
940
includedir='${prefix}/include'
 
941
oldincludedir='/usr/include'
 
942
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
943
infodir='${datarootdir}/info'
 
944
htmldir='${docdir}'
 
945
dvidir='${docdir}'
 
946
pdfdir='${docdir}'
 
947
psdir='${docdir}'
 
948
libdir='${exec_prefix}/lib'
 
949
localedir='${datarootdir}/locale'
 
950
mandir='${datarootdir}/man'
 
951
 
 
952
ac_prev=
 
953
ac_dashdash=
 
954
for ac_option
 
955
do
 
956
  # If the previous option needs an argument, assign it.
 
957
  if test -n "$ac_prev"; then
 
958
    eval $ac_prev=\$ac_option
 
959
    ac_prev=
 
960
    continue
 
961
  fi
 
962
 
 
963
  case $ac_option in
 
964
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
965
  *)    ac_optarg=yes ;;
 
966
  esac
 
967
 
 
968
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
969
 
 
970
  case $ac_dashdash$ac_option in
 
971
  --)
 
972
    ac_dashdash=yes ;;
 
973
 
 
974
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
975
    ac_prev=bindir ;;
 
976
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
977
    bindir=$ac_optarg ;;
 
978
 
 
979
  -build | --build | --buil | --bui | --bu)
 
980
    ac_prev=build_alias ;;
 
981
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
982
    build_alias=$ac_optarg ;;
 
983
 
 
984
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
985
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
986
    ac_prev=cache_file ;;
 
987
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
988
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
989
    cache_file=$ac_optarg ;;
 
990
 
 
991
  --config-cache | -C)
 
992
    cache_file=config.cache ;;
 
993
 
 
994
  -datadir | --datadir | --datadi | --datad)
 
995
    ac_prev=datadir ;;
 
996
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
997
    datadir=$ac_optarg ;;
 
998
 
 
999
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1000
  | --dataroo | --dataro | --datar)
 
1001
    ac_prev=datarootdir ;;
 
1002
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1003
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1004
    datarootdir=$ac_optarg ;;
 
1005
 
 
1006
  -disable-* | --disable-*)
 
1007
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1008
    # Reject names that are not valid shell variable names.
 
1009
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1010
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1011
   { (exit 1); exit 1; }; }
 
1012
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1013
    eval enable_$ac_feature=no ;;
 
1014
 
 
1015
  -docdir | --docdir | --docdi | --doc | --do)
 
1016
    ac_prev=docdir ;;
 
1017
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1018
    docdir=$ac_optarg ;;
 
1019
 
 
1020
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1021
    ac_prev=dvidir ;;
 
1022
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1023
    dvidir=$ac_optarg ;;
 
1024
 
 
1025
  -enable-* | --enable-*)
 
1026
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1027
    # Reject names that are not valid shell variable names.
 
1028
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1029
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1030
   { (exit 1); exit 1; }; }
 
1031
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1032
    eval enable_$ac_feature=\$ac_optarg ;;
 
1033
 
 
1034
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1035
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1036
  | --exec | --exe | --ex)
 
1037
    ac_prev=exec_prefix ;;
 
1038
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1039
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1040
  | --exec=* | --exe=* | --ex=*)
 
1041
    exec_prefix=$ac_optarg ;;
 
1042
 
 
1043
  -gas | --gas | --ga | --g)
 
1044
    # Obsolete; use --with-gas.
 
1045
    with_gas=yes ;;
 
1046
 
 
1047
  -help | --help | --hel | --he | -h)
 
1048
    ac_init_help=long ;;
 
1049
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1050
    ac_init_help=recursive ;;
 
1051
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1052
    ac_init_help=short ;;
 
1053
 
 
1054
  -host | --host | --hos | --ho)
 
1055
    ac_prev=host_alias ;;
 
1056
  -host=* | --host=* | --hos=* | --ho=*)
 
1057
    host_alias=$ac_optarg ;;
 
1058
 
 
1059
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1060
    ac_prev=htmldir ;;
 
1061
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1062
  | --ht=*)
 
1063
    htmldir=$ac_optarg ;;
 
1064
 
 
1065
  -includedir | --includedir | --includedi | --included | --include \
 
1066
  | --includ | --inclu | --incl | --inc)
 
1067
    ac_prev=includedir ;;
 
1068
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1069
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1070
    includedir=$ac_optarg ;;
 
1071
 
 
1072
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1073
    ac_prev=infodir ;;
 
1074
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1075
    infodir=$ac_optarg ;;
 
1076
 
 
1077
  -libdir | --libdir | --libdi | --libd)
 
1078
    ac_prev=libdir ;;
 
1079
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1080
    libdir=$ac_optarg ;;
 
1081
 
 
1082
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1083
  | --libexe | --libex | --libe)
 
1084
    ac_prev=libexecdir ;;
 
1085
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1086
  | --libexe=* | --libex=* | --libe=*)
 
1087
    libexecdir=$ac_optarg ;;
 
1088
 
 
1089
  -localedir | --localedir | --localedi | --localed | --locale)
 
1090
    ac_prev=localedir ;;
 
1091
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1092
    localedir=$ac_optarg ;;
 
1093
 
 
1094
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1095
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1096
    ac_prev=localstatedir ;;
 
1097
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1098
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1099
    localstatedir=$ac_optarg ;;
 
1100
 
 
1101
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1102
    ac_prev=mandir ;;
 
1103
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1104
    mandir=$ac_optarg ;;
 
1105
 
 
1106
  -nfp | --nfp | --nf)
 
1107
    # Obsolete; use --without-fp.
 
1108
    with_fp=no ;;
 
1109
 
 
1110
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1111
  | --no-cr | --no-c | -n)
 
1112
    no_create=yes ;;
 
1113
 
 
1114
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1115
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1116
    no_recursion=yes ;;
 
1117
 
 
1118
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1119
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1120
  | --oldin | --oldi | --old | --ol | --o)
 
1121
    ac_prev=oldincludedir ;;
 
1122
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1123
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1124
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1125
    oldincludedir=$ac_optarg ;;
 
1126
 
 
1127
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1128
    ac_prev=prefix ;;
 
1129
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1130
    prefix=$ac_optarg ;;
 
1131
 
 
1132
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1133
  | --program-pre | --program-pr | --program-p)
 
1134
    ac_prev=program_prefix ;;
 
1135
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1136
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1137
    program_prefix=$ac_optarg ;;
 
1138
 
 
1139
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1140
  | --program-suf | --program-su | --program-s)
 
1141
    ac_prev=program_suffix ;;
 
1142
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1143
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1144
    program_suffix=$ac_optarg ;;
 
1145
 
 
1146
  -program-transform-name | --program-transform-name \
 
1147
  | --program-transform-nam | --program-transform-na \
 
1148
  | --program-transform-n | --program-transform- \
 
1149
  | --program-transform | --program-transfor \
 
1150
  | --program-transfo | --program-transf \
 
1151
  | --program-trans | --program-tran \
 
1152
  | --progr-tra | --program-tr | --program-t)
 
1153
    ac_prev=program_transform_name ;;
 
1154
  -program-transform-name=* | --program-transform-name=* \
 
1155
  | --program-transform-nam=* | --program-transform-na=* \
 
1156
  | --program-transform-n=* | --program-transform-=* \
 
1157
  | --program-transform=* | --program-transfor=* \
 
1158
  | --program-transfo=* | --program-transf=* \
 
1159
  | --program-trans=* | --program-tran=* \
 
1160
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1161
    program_transform_name=$ac_optarg ;;
 
1162
 
 
1163
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1164
    ac_prev=pdfdir ;;
 
1165
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1166
    pdfdir=$ac_optarg ;;
 
1167
 
 
1168
  -psdir | --psdir | --psdi | --psd | --ps)
 
1169
    ac_prev=psdir ;;
 
1170
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1171
    psdir=$ac_optarg ;;
 
1172
 
 
1173
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1174
  | -silent | --silent | --silen | --sile | --sil)
 
1175
    silent=yes ;;
 
1176
 
 
1177
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1178
    ac_prev=sbindir ;;
 
1179
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1180
  | --sbi=* | --sb=*)
 
1181
    sbindir=$ac_optarg ;;
 
1182
 
 
1183
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1184
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1185
  | --sharedst | --shareds | --shared | --share | --shar \
 
1186
  | --sha | --sh)
 
1187
    ac_prev=sharedstatedir ;;
 
1188
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1189
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1190
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1191
  | --sha=* | --sh=*)
 
1192
    sharedstatedir=$ac_optarg ;;
 
1193
 
 
1194
  -site | --site | --sit)
 
1195
    ac_prev=site ;;
 
1196
  -site=* | --site=* | --sit=*)
 
1197
    site=$ac_optarg ;;
 
1198
 
 
1199
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1200
    ac_prev=srcdir ;;
 
1201
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1202
    srcdir=$ac_optarg ;;
 
1203
 
 
1204
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1205
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1206
    ac_prev=sysconfdir ;;
 
1207
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1208
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1209
    sysconfdir=$ac_optarg ;;
 
1210
 
 
1211
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1212
    ac_prev=target_alias ;;
 
1213
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1214
    target_alias=$ac_optarg ;;
 
1215
 
 
1216
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1217
    verbose=yes ;;
 
1218
 
 
1219
  -version | --version | --versio | --versi | --vers | -V)
 
1220
    ac_init_version=: ;;
 
1221
 
 
1222
  -with-* | --with-*)
 
1223
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1224
    # Reject names that are not valid shell variable names.
 
1225
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1226
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1227
   { (exit 1); exit 1; }; }
 
1228
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1229
    eval with_$ac_package=\$ac_optarg ;;
 
1230
 
 
1231
  -without-* | --without-*)
 
1232
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1233
    # Reject names that are not valid shell variable names.
 
1234
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1235
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1236
   { (exit 1); exit 1; }; }
 
1237
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1238
    eval with_$ac_package=no ;;
 
1239
 
 
1240
  --x)
 
1241
    # Obsolete; use --with-x.
 
1242
    with_x=yes ;;
 
1243
 
 
1244
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1245
  | --x-incl | --x-inc | --x-in | --x-i)
 
1246
    ac_prev=x_includes ;;
 
1247
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1248
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1249
    x_includes=$ac_optarg ;;
 
1250
 
 
1251
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1252
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1253
    ac_prev=x_libraries ;;
 
1254
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1255
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1256
    x_libraries=$ac_optarg ;;
 
1257
 
 
1258
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1259
Try \`$0 --help' for more information." >&2
 
1260
   { (exit 1); exit 1; }; }
 
1261
    ;;
 
1262
 
 
1263
  *=*)
 
1264
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1265
    # Reject names that are not valid shell variable names.
 
1266
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1267
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1268
   { (exit 1); exit 1; }; }
 
1269
    eval $ac_envvar=\$ac_optarg
 
1270
    export $ac_envvar ;;
 
1271
 
 
1272
  *)
 
1273
    # FIXME: should be removed in autoconf 3.0.
 
1274
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1275
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1276
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1277
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1278
    ;;
 
1279
 
 
1280
  esac
 
1281
done
 
1282
 
 
1283
if test -n "$ac_prev"; then
 
1284
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1285
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1286
   { (exit 1); exit 1; }; }
 
1287
fi
 
1288
 
 
1289
# Be sure to have absolute directory names.
 
1290
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1291
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1292
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1293
                libdir localedir mandir
 
1294
do
 
1295
  eval ac_val=\$$ac_var
 
1296
  case $ac_val in
 
1297
    [\\/$]* | ?:[\\/]* )  continue;;
 
1298
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1299
  esac
 
1300
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1301
   { (exit 1); exit 1; }; }
 
1302
done
 
1303
 
 
1304
# There might be people who depend on the old broken behavior: `$host'
 
1305
# used to hold the argument of --host etc.
 
1306
# FIXME: To remove some day.
 
1307
build=$build_alias
 
1308
host=$host_alias
 
1309
target=$target_alias
 
1310
 
 
1311
# FIXME: To remove some day.
 
1312
if test "x$host_alias" != x; then
 
1313
  if test "x$build_alias" = x; then
 
1314
    cross_compiling=maybe
 
1315
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1316
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1317
  elif test "x$build_alias" != "x$host_alias"; then
 
1318
    cross_compiling=yes
 
1319
  fi
 
1320
fi
 
1321
 
 
1322
ac_tool_prefix=
 
1323
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1324
 
 
1325
test "$silent" = yes && exec 6>/dev/null
 
1326
 
 
1327
 
 
1328
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1329
ac_ls_di=`ls -di .` &&
 
1330
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1331
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1332
   { (exit 1); exit 1; }; }
 
1333
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1334
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1335
   { (exit 1); exit 1; }; }
 
1336
 
 
1337
 
 
1338
# Find the source files, if location was not specified.
 
1339
if test -z "$srcdir"; then
 
1340
  ac_srcdir_defaulted=yes
 
1341
  # Try the directory containing this script, then the parent directory.
 
1342
  ac_confdir=`$as_dirname -- "$0" ||
 
1343
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1344
         X"$0" : 'X\(//\)[^/]' \| \
 
1345
         X"$0" : 'X\(//\)$' \| \
 
1346
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1347
echo X"$0" |
 
1348
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1349
            s//\1/
 
1350
            q
 
1351
          }
 
1352
          /^X\(\/\/\)[^/].*/{
 
1353
            s//\1/
 
1354
            q
 
1355
          }
 
1356
          /^X\(\/\/\)$/{
 
1357
            s//\1/
 
1358
            q
 
1359
          }
 
1360
          /^X\(\/\).*/{
 
1361
            s//\1/
 
1362
            q
 
1363
          }
 
1364
          s/.*/./; q'`
 
1365
  srcdir=$ac_confdir
 
1366
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1367
    srcdir=..
 
1368
  fi
 
1369
else
 
1370
  ac_srcdir_defaulted=no
 
1371
fi
 
1372
if test ! -r "$srcdir/$ac_unique_file"; then
 
1373
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1374
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1375
   { (exit 1); exit 1; }; }
 
1376
fi
 
1377
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1378
ac_abs_confdir=`(
 
1379
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1380
   { (exit 1); exit 1; }; }
 
1381
        pwd)`
 
1382
# When building in place, set srcdir=.
 
1383
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1384
  srcdir=.
 
1385
fi
 
1386
# Remove unnecessary trailing slashes from srcdir.
 
1387
# Double slashes in file names in object file debugging info
 
1388
# mess up M-x gdb in Emacs.
 
1389
case $srcdir in
 
1390
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1391
esac
 
1392
for ac_var in $ac_precious_vars; do
 
1393
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1394
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1395
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1396
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1397
done
 
1398
 
 
1399
#
 
1400
# Report the --help message.
 
1401
#
 
1402
if test "$ac_init_help" = "long"; then
 
1403
  # Omit some internal or obsolete options to make the list less imposing.
 
1404
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1405
  cat <<_ACEOF
 
1406
\`configure' configures lxc 0.6.2 to adapt to many kinds of systems.
 
1407
 
 
1408
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1409
 
 
1410
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1411
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1412
 
 
1413
Defaults for the options are specified in brackets.
 
1414
 
 
1415
Configuration:
 
1416
  -h, --help              display this help and exit
 
1417
      --help=short        display options specific to this package
 
1418
      --help=recursive    display the short help of all the included packages
 
1419
  -V, --version           display version information and exit
 
1420
  -q, --quiet, --silent   do not print \`checking...' messages
 
1421
      --cache-file=FILE   cache test results in FILE [disabled]
 
1422
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1423
  -n, --no-create         do not create output files
 
1424
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1425
 
 
1426
Installation directories:
 
1427
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1428
                          [$ac_default_prefix]
 
1429
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1430
                          [PREFIX]
 
1431
 
 
1432
By default, \`make install' will install all the files in
 
1433
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1434
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1435
for instance \`--prefix=\$HOME'.
 
1436
 
 
1437
For better control, use the options below.
 
1438
 
 
1439
Fine tuning of the installation directories:
 
1440
  --bindir=DIR           user executables [EPREFIX/bin]
 
1441
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1442
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1443
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1444
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1445
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1446
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1447
  --includedir=DIR       C header files [PREFIX/include]
 
1448
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1449
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1450
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1451
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1452
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1453
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1454
  --docdir=DIR           documentation root [DATAROOTDIR/doc/lxc]
 
1455
  --htmldir=DIR          html documentation [DOCDIR]
 
1456
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1457
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1458
  --psdir=DIR            ps documentation [DOCDIR]
 
1459
_ACEOF
 
1460
 
 
1461
  cat <<\_ACEOF
 
1462
 
 
1463
Program names:
 
1464
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1465
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1466
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1467
 
 
1468
System types:
 
1469
  --build=BUILD     configure for building on BUILD [guessed]
 
1470
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1471
_ACEOF
 
1472
fi
 
1473
 
 
1474
if test -n "$ac_init_help"; then
 
1475
  case $ac_init_help in
 
1476
     short | recursive ) echo "Configuration of lxc 0.6.2:";;
 
1477
   esac
 
1478
  cat <<\_ACEOF
 
1479
 
 
1480
Optional Features:
 
1481
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1482
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1483
  --disable-dependency-tracking  speeds up one-time build
 
1484
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1485
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1486
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1487
  --enable-fast-install[=PKGS]
 
1488
                          optimize for fast installation [default=yes]
 
1489
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1490
  --enable-test    compile test program default=no
 
1491
 
 
1492
Optional Packages:
 
1493
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1494
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1495
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1496
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1497
                          both]
 
1498
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1499
  --with-kernel-release=RELEASE
 
1500
                          specify the "uname -r"-value to build for
 
1501
 
 
1502
Some influential environment variables:
 
1503
  CC          C compiler command
 
1504
  CFLAGS      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
  CPP         C preprocessor
 
1511
  CXX         C++ compiler command
 
1512
  CXXFLAGS    C++ compiler flags
 
1513
  CXXCPP      C++ preprocessor
 
1514
  F77         Fortran 77 compiler command
 
1515
  FFLAGS      Fortran 77 compiler flags
 
1516
 
 
1517
Use these variables to override the choices made by `configure' or to help
 
1518
it to find libraries and programs with nonstandard names/locations.
 
1519
 
 
1520
_ACEOF
 
1521
ac_status=$?
 
1522
fi
 
1523
 
 
1524
if test "$ac_init_help" = "recursive"; then
 
1525
  # If there are subdirs, report their specific --help.
 
1526
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1527
    test -d "$ac_dir" || continue
 
1528
    ac_builddir=.
 
1529
 
 
1530
case "$ac_dir" in
 
1531
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1532
*)
 
1533
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1534
  # A ".." for each directory in $ac_dir_suffix.
 
1535
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1536
  case $ac_top_builddir_sub in
 
1537
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1538
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1539
  esac ;;
 
1540
esac
 
1541
ac_abs_top_builddir=$ac_pwd
 
1542
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1543
# for backward compatibility:
 
1544
ac_top_builddir=$ac_top_build_prefix
 
1545
 
 
1546
case $srcdir in
 
1547
  .)  # We are building in place.
 
1548
    ac_srcdir=.
 
1549
    ac_top_srcdir=$ac_top_builddir_sub
 
1550
    ac_abs_top_srcdir=$ac_pwd ;;
 
1551
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1552
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1553
    ac_top_srcdir=$srcdir
 
1554
    ac_abs_top_srcdir=$srcdir ;;
 
1555
  *) # Relative name.
 
1556
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1557
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1558
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1559
esac
 
1560
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1561
 
 
1562
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1563
    # Check for guested configure.
 
1564
    if test -f "$ac_srcdir/configure.gnu"; then
 
1565
      echo &&
 
1566
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1567
    elif test -f "$ac_srcdir/configure"; then
 
1568
      echo &&
 
1569
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1570
    else
 
1571
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1572
    fi || ac_status=$?
 
1573
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1574
  done
 
1575
fi
 
1576
 
 
1577
test -n "$ac_init_help" && exit $ac_status
 
1578
if $ac_init_version; then
 
1579
  cat <<\_ACEOF
 
1580
lxc configure 0.6.2
 
1581
generated by GNU Autoconf 2.61
 
1582
 
 
1583
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1584
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1585
This configure script is free software; the Free Software Foundation
 
1586
gives unlimited permission to copy, distribute and modify it.
 
1587
_ACEOF
 
1588
  exit
 
1589
fi
 
1590
cat >config.log <<_ACEOF
 
1591
This file contains any messages produced by compilers while
 
1592
running configure, to aid debugging if configure makes a mistake.
 
1593
 
 
1594
It was created by lxc $as_me 0.6.2, which was
 
1595
generated by GNU Autoconf 2.61.  Invocation command line was
 
1596
 
 
1597
  $ $0 $@
 
1598
 
 
1599
_ACEOF
 
1600
exec 5>>config.log
 
1601
{
 
1602
cat <<_ASUNAME
 
1603
## --------- ##
 
1604
## Platform. ##
 
1605
## --------- ##
 
1606
 
 
1607
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1608
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1609
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1610
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1611
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1612
 
 
1613
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1614
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1615
 
 
1616
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1617
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1618
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1619
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1620
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1621
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1622
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1623
 
 
1624
_ASUNAME
 
1625
 
 
1626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1627
for as_dir in $PATH
 
1628
do
 
1629
  IFS=$as_save_IFS
 
1630
  test -z "$as_dir" && as_dir=.
 
1631
  echo "PATH: $as_dir"
 
1632
done
 
1633
IFS=$as_save_IFS
 
1634
 
 
1635
} >&5
 
1636
 
 
1637
cat >&5 <<_ACEOF
 
1638
 
 
1639
 
 
1640
## ----------- ##
 
1641
## Core tests. ##
 
1642
## ----------- ##
 
1643
 
 
1644
_ACEOF
 
1645
 
 
1646
 
 
1647
# Keep a trace of the command line.
 
1648
# Strip out --no-create and --no-recursion so they do not pile up.
 
1649
# Strip out --silent because we don't want to record it for future runs.
 
1650
# Also quote any args containing shell meta-characters.
 
1651
# Make two passes to allow for proper duplicate-argument suppression.
 
1652
ac_configure_args=
 
1653
ac_configure_args0=
 
1654
ac_configure_args1=
 
1655
ac_must_keep_next=false
 
1656
for ac_pass in 1 2
 
1657
do
 
1658
  for ac_arg
 
1659
  do
 
1660
    case $ac_arg in
 
1661
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1662
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1663
    | -silent | --silent | --silen | --sile | --sil)
 
1664
      continue ;;
 
1665
    *\'*)
 
1666
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1667
    esac
 
1668
    case $ac_pass in
 
1669
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1670
    2)
 
1671
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1672
      if test $ac_must_keep_next = true; then
 
1673
        ac_must_keep_next=false # Got value, back to normal.
 
1674
      else
 
1675
        case $ac_arg in
 
1676
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1677
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1678
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1679
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1680
            case "$ac_configure_args0 " in
 
1681
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1682
            esac
 
1683
            ;;
 
1684
          -* ) ac_must_keep_next=true ;;
 
1685
        esac
 
1686
      fi
 
1687
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1688
      ;;
 
1689
    esac
 
1690
  done
 
1691
done
 
1692
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1693
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1694
 
 
1695
# When interrupted or exit'd, cleanup temporary files, and complete
 
1696
# config.log.  We remove comments because anyway the quotes in there
 
1697
# would cause problems or look ugly.
 
1698
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1699
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1700
trap 'exit_status=$?
 
1701
  # Save into config.log some information that might help in debugging.
 
1702
  {
 
1703
    echo
 
1704
 
 
1705
    cat <<\_ASBOX
 
1706
## ---------------- ##
 
1707
## Cache variables. ##
 
1708
## ---------------- ##
 
1709
_ASBOX
 
1710
    echo
 
1711
    # The following way of writing the cache mishandles newlines in values,
 
1712
(
 
1713
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1714
    eval ac_val=\$$ac_var
 
1715
    case $ac_val in #(
 
1716
    *${as_nl}*)
 
1717
      case $ac_var in #(
 
1718
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1719
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1720
      esac
 
1721
      case $ac_var in #(
 
1722
      _ | IFS | as_nl) ;; #(
 
1723
      *) $as_unset $ac_var ;;
 
1724
      esac ;;
 
1725
    esac
 
1726
  done
 
1727
  (set) 2>&1 |
 
1728
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1729
    *${as_nl}ac_space=\ *)
 
1730
      sed -n \
 
1731
        "s/'\''/'\''\\\\'\'''\''/g;
 
1732
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1733
      ;; #(
 
1734
    *)
 
1735
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1736
      ;;
 
1737
    esac |
 
1738
    sort
 
1739
)
 
1740
    echo
 
1741
 
 
1742
    cat <<\_ASBOX
 
1743
## ----------------- ##
 
1744
## Output variables. ##
 
1745
## ----------------- ##
 
1746
_ASBOX
 
1747
    echo
 
1748
    for ac_var in $ac_subst_vars
 
1749
    do
 
1750
      eval ac_val=\$$ac_var
 
1751
      case $ac_val in
 
1752
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1753
      esac
 
1754
      echo "$ac_var='\''$ac_val'\''"
 
1755
    done | sort
 
1756
    echo
 
1757
 
 
1758
    if test -n "$ac_subst_files"; then
 
1759
      cat <<\_ASBOX
 
1760
## ------------------- ##
 
1761
## File substitutions. ##
 
1762
## ------------------- ##
 
1763
_ASBOX
 
1764
      echo
 
1765
      for ac_var in $ac_subst_files
 
1766
      do
 
1767
        eval ac_val=\$$ac_var
 
1768
        case $ac_val in
 
1769
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1770
        esac
 
1771
        echo "$ac_var='\''$ac_val'\''"
 
1772
      done | sort
 
1773
      echo
 
1774
    fi
 
1775
 
 
1776
    if test -s confdefs.h; then
 
1777
      cat <<\_ASBOX
 
1778
## ----------- ##
 
1779
## confdefs.h. ##
 
1780
## ----------- ##
 
1781
_ASBOX
 
1782
      echo
 
1783
      cat confdefs.h
 
1784
      echo
 
1785
    fi
 
1786
    test "$ac_signal" != 0 &&
 
1787
      echo "$as_me: caught signal $ac_signal"
 
1788
    echo "$as_me: exit $exit_status"
 
1789
  } >&5
 
1790
  rm -f core *.core core.conftest.* &&
 
1791
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1792
    exit $exit_status
 
1793
' 0
 
1794
for ac_signal in 1 2 13 15; do
 
1795
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1796
done
 
1797
ac_signal=0
 
1798
 
 
1799
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1800
rm -f -r conftest* confdefs.h
 
1801
 
 
1802
# Predefined preprocessor variables.
 
1803
 
 
1804
cat >>confdefs.h <<_ACEOF
 
1805
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1806
_ACEOF
 
1807
 
 
1808
 
 
1809
cat >>confdefs.h <<_ACEOF
 
1810
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1811
_ACEOF
 
1812
 
 
1813
 
 
1814
cat >>confdefs.h <<_ACEOF
 
1815
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1816
_ACEOF
 
1817
 
 
1818
 
 
1819
cat >>confdefs.h <<_ACEOF
 
1820
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1821
_ACEOF
 
1822
 
 
1823
 
 
1824
cat >>confdefs.h <<_ACEOF
 
1825
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1826
_ACEOF
 
1827
 
 
1828
 
 
1829
# Let the site file select an alternate cache file if it wants to.
 
1830
# Prefer explicitly selected file to automatically selected ones.
 
1831
if test -n "$CONFIG_SITE"; then
 
1832
  set x "$CONFIG_SITE"
 
1833
elif test "x$prefix" != xNONE; then
 
1834
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1835
else
 
1836
  set x "$ac_default_prefix/share/config.site" \
 
1837
        "$ac_default_prefix/etc/config.site"
 
1838
fi
 
1839
shift
 
1840
for ac_site_file
 
1841
do
 
1842
  if test -r "$ac_site_file"; then
 
1843
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1844
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1845
    sed 's/^/| /' "$ac_site_file" >&5
 
1846
    . "$ac_site_file"
 
1847
  fi
 
1848
done
 
1849
 
 
1850
if test -r "$cache_file"; then
 
1851
  # Some versions of bash will fail to source /dev/null (special
 
1852
  # files actually), so we avoid doing that.
 
1853
  if test -f "$cache_file"; then
 
1854
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1855
echo "$as_me: loading cache $cache_file" >&6;}
 
1856
    case $cache_file in
 
1857
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1858
      *)                      . "./$cache_file";;
 
1859
    esac
 
1860
  fi
 
1861
else
 
1862
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1863
echo "$as_me: creating cache $cache_file" >&6;}
 
1864
  >$cache_file
 
1865
fi
 
1866
 
 
1867
# Check that the precious variables saved in the cache have kept the same
 
1868
# value.
 
1869
ac_cache_corrupted=false
 
1870
for ac_var in $ac_precious_vars; do
 
1871
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1872
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1873
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1874
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1875
  case $ac_old_set,$ac_new_set in
 
1876
    set,)
 
1877
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1878
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1879
      ac_cache_corrupted=: ;;
 
1880
    ,set)
 
1881
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1882
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1883
      ac_cache_corrupted=: ;;
 
1884
    ,);;
 
1885
    *)
 
1886
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1887
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1888
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1889
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1890
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1891
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1892
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1893
        ac_cache_corrupted=:
 
1894
      fi;;
 
1895
  esac
 
1896
  # Pass precious variables to config.status.
 
1897
  if test "$ac_new_set" = set; then
 
1898
    case $ac_new_val in
 
1899
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1900
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1901
    esac
 
1902
    case " $ac_configure_args " in
 
1903
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1904
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1905
    esac
 
1906
  fi
 
1907
done
 
1908
if $ac_cache_corrupted; then
 
1909
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1910
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1911
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1912
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1913
   { (exit 1); exit 1; }; }
 
1914
fi
 
1915
 
 
1916
 
 
1917
 
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
ac_ext=c
 
1941
ac_cpp='$CPP $CPPFLAGS'
 
1942
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1943
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1944
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
ac_aux_dir=
 
1950
for ac_dir in config "$srcdir"/config; do
 
1951
  if test -f "$ac_dir/install-sh"; then
 
1952
    ac_aux_dir=$ac_dir
 
1953
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1954
    break
 
1955
  elif test -f "$ac_dir/install.sh"; then
 
1956
    ac_aux_dir=$ac_dir
 
1957
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1958
    break
 
1959
  elif test -f "$ac_dir/shtool"; then
 
1960
    ac_aux_dir=$ac_dir
 
1961
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1962
    break
 
1963
  fi
 
1964
done
 
1965
if test -z "$ac_aux_dir"; then
 
1966
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
 
1967
echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
 
1968
   { (exit 1); exit 1; }; }
 
1969
fi
 
1970
 
 
1971
# These three variables are undocumented and unsupported,
 
1972
# and are intended to be withdrawn in a future Autoconf release.
 
1973
# They can cause serious problems if a builder's source tree is in a directory
 
1974
# whose full name contains unusual characters.
 
1975
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1976
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1977
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1978
 
 
1979
 
 
1980
ac_config_headers="$ac_config_headers src/config.h"
 
1981
 
 
1982
am__api_version='1.10'
 
1983
 
 
1984
# Find a good install program.  We prefer a C program (faster),
 
1985
# so one script is as good as another.  But avoid the broken or
 
1986
# incompatible versions:
 
1987
# SysV /etc/install, /usr/sbin/install
 
1988
# SunOS /usr/etc/install
 
1989
# IRIX /sbin/install
 
1990
# AIX /bin/install
 
1991
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1992
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1993
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1994
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1995
# OS/2's system install, which has a completely different semantic
 
1996
# ./install, which can be erroneously created by make from ./install.sh.
 
1997
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1998
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
1999
if test -z "$INSTALL"; then
 
2000
if test "${ac_cv_path_install+set}" = set; then
 
2001
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2002
else
 
2003
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2004
for as_dir in $PATH
 
2005
do
 
2006
  IFS=$as_save_IFS
 
2007
  test -z "$as_dir" && as_dir=.
 
2008
  # Account for people who put trailing slashes in PATH elements.
 
2009
case $as_dir/ in
 
2010
  ./ | .// | /cC/* | \
 
2011
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2012
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2013
  /usr/ucb/* ) ;;
 
2014
  *)
 
2015
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2016
    # Don't use installbsd from OSF since it installs stuff as root
 
2017
    # by default.
 
2018
    for ac_prog in ginstall scoinst install; do
 
2019
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2020
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2021
          if test $ac_prog = install &&
 
2022
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2023
            # AIX install.  It has an incompatible calling convention.
 
2024
            :
 
2025
          elif test $ac_prog = install &&
 
2026
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2027
            # program-specific install script used by HP pwplus--don't use.
 
2028
            :
 
2029
          else
 
2030
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2031
            break 3
 
2032
          fi
 
2033
        fi
 
2034
      done
 
2035
    done
 
2036
    ;;
 
2037
esac
 
2038
done
 
2039
IFS=$as_save_IFS
 
2040
 
 
2041
 
 
2042
fi
 
2043
  if test "${ac_cv_path_install+set}" = set; then
 
2044
    INSTALL=$ac_cv_path_install
 
2045
  else
 
2046
    # As a last resort, use the slow shell script.  Don't cache a
 
2047
    # value for INSTALL within a source directory, because that will
 
2048
    # break other packages using the cache if that directory is
 
2049
    # removed, or if the value is a relative name.
 
2050
    INSTALL=$ac_install_sh
 
2051
  fi
 
2052
fi
 
2053
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2054
echo "${ECHO_T}$INSTALL" >&6; }
 
2055
 
 
2056
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2057
# It thinks the first close brace ends the variable substitution.
 
2058
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2059
 
 
2060
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2061
 
 
2062
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2063
 
 
2064
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2065
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2066
# Just in case
 
2067
sleep 1
 
2068
echo timestamp > conftest.file
 
2069
# Do `set' in a subshell so we don't clobber the current shell's
 
2070
# arguments.  Must try -L first in case configure is actually a
 
2071
# symlink; some systems play weird games with the mod time of symlinks
 
2072
# (eg FreeBSD returns the mod time of the symlink's containing
 
2073
# directory).
 
2074
if (
 
2075
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2076
   if test "$*" = "X"; then
 
2077
      # -L didn't work.
 
2078
      set X `ls -t $srcdir/configure conftest.file`
 
2079
   fi
 
2080
   rm -f conftest.file
 
2081
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2082
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2083
 
 
2084
      # If neither matched, then we have a broken ls.  This can happen
 
2085
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2086
      # broken ls alias from the environment.  This has actually
 
2087
      # happened.  Such a system could not be considered "sane".
 
2088
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2089
alias in your environment" >&5
 
2090
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2091
alias in your environment" >&2;}
 
2092
   { (exit 1); exit 1; }; }
 
2093
   fi
 
2094
 
 
2095
   test "$2" = conftest.file
 
2096
   )
 
2097
then
 
2098
   # Ok.
 
2099
   :
 
2100
else
 
2101
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2102
Check your system clock" >&5
 
2103
echo "$as_me: error: newly created file is older than distributed files!
 
2104
Check your system clock" >&2;}
 
2105
   { (exit 1); exit 1; }; }
 
2106
fi
 
2107
{ echo "$as_me:$LINENO: result: yes" >&5
 
2108
echo "${ECHO_T}yes" >&6; }
 
2109
test "$program_prefix" != NONE &&
 
2110
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2111
# Use a double $ so make ignores it.
 
2112
test "$program_suffix" != NONE &&
 
2113
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2114
# Double any \ or $.  echo might interpret backslashes.
 
2115
# By default was `s,x,x', remove it if useless.
 
2116
cat <<\_ACEOF >conftest.sed
 
2117
s/[\\$]/&&/g;s/;s,x,x,$//
 
2118
_ACEOF
 
2119
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2120
rm -f conftest.sed
 
2121
 
 
2122
# expand $ac_aux_dir to an absolute path
 
2123
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2124
 
 
2125
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2126
# Use eval to expand $SHELL
 
2127
if eval "$MISSING --run true"; then
 
2128
  am_missing_run="$MISSING --run "
 
2129
else
 
2130
  am_missing_run=
 
2131
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2132
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2133
fi
 
2134
 
 
2135
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2136
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2137
if test -z "$MKDIR_P"; then
 
2138
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2140
else
 
2141
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2142
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2143
do
 
2144
  IFS=$as_save_IFS
 
2145
  test -z "$as_dir" && as_dir=.
 
2146
  for ac_prog in mkdir gmkdir; do
 
2147
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2148
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2149
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2150
             'mkdir (GNU coreutils) '* | \
 
2151
             'mkdir (coreutils) '* | \
 
2152
             'mkdir (fileutils) '4.1*)
 
2153
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2154
               break 3;;
 
2155
           esac
 
2156
         done
 
2157
       done
 
2158
done
 
2159
IFS=$as_save_IFS
 
2160
 
 
2161
fi
 
2162
 
 
2163
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2164
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2165
  else
 
2166
    # As a last resort, use the slow shell script.  Don't cache a
 
2167
    # value for MKDIR_P within a source directory, because that will
 
2168
    # break other packages using the cache if that directory is
 
2169
    # removed, or if the value is a relative name.
 
2170
    test -d ./--version && rmdir ./--version
 
2171
    MKDIR_P="$ac_install_sh -d"
 
2172
  fi
 
2173
fi
 
2174
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2175
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2176
 
 
2177
mkdir_p="$MKDIR_P"
 
2178
case $mkdir_p in
 
2179
  [\\/$]* | ?:[\\/]*) ;;
 
2180
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2181
esac
 
2182
 
 
2183
for ac_prog in gawk mawk nawk awk
 
2184
do
 
2185
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2186
set dummy $ac_prog; ac_word=$2
 
2187
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2188
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2189
if test "${ac_cv_prog_AWK+set}" = set; then
 
2190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2191
else
 
2192
  if test -n "$AWK"; then
 
2193
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2194
else
 
2195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2196
for as_dir in $PATH
 
2197
do
 
2198
  IFS=$as_save_IFS
 
2199
  test -z "$as_dir" && as_dir=.
 
2200
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2201
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2202
    ac_cv_prog_AWK="$ac_prog"
 
2203
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2204
    break 2
 
2205
  fi
 
2206
done
 
2207
done
 
2208
IFS=$as_save_IFS
 
2209
 
 
2210
fi
 
2211
fi
 
2212
AWK=$ac_cv_prog_AWK
 
2213
if test -n "$AWK"; then
 
2214
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2215
echo "${ECHO_T}$AWK" >&6; }
 
2216
else
 
2217
  { echo "$as_me:$LINENO: result: no" >&5
 
2218
echo "${ECHO_T}no" >&6; }
 
2219
fi
 
2220
 
 
2221
 
 
2222
  test -n "$AWK" && break
 
2223
done
 
2224
 
 
2225
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2226
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2227
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2228
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2230
else
 
2231
  cat >conftest.make <<\_ACEOF
 
2232
SHELL = /bin/sh
 
2233
all:
 
2234
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2235
_ACEOF
 
2236
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2237
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2238
  *@@@%%%=?*=@@@%%%*)
 
2239
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2240
  *)
 
2241
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2242
esac
 
2243
rm -f conftest.make
 
2244
fi
 
2245
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2246
  { echo "$as_me:$LINENO: result: yes" >&5
 
2247
echo "${ECHO_T}yes" >&6; }
 
2248
  SET_MAKE=
 
2249
else
 
2250
  { echo "$as_me:$LINENO: result: no" >&5
 
2251
echo "${ECHO_T}no" >&6; }
 
2252
  SET_MAKE="MAKE=${MAKE-make}"
 
2253
fi
 
2254
 
 
2255
rm -rf .tst 2>/dev/null
 
2256
mkdir .tst 2>/dev/null
 
2257
if test -d .tst; then
 
2258
  am__leading_dot=.
 
2259
else
 
2260
  am__leading_dot=_
 
2261
fi
 
2262
rmdir .tst 2>/dev/null
 
2263
 
 
2264
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2265
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2266
  # is not polluted with repeated "-I."
 
2267
  am__isrc=' -I$(srcdir)'
 
2268
  # test to see if srcdir already configured
 
2269
  if test -f $srcdir/config.status; then
 
2270
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2271
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2272
   { (exit 1); exit 1; }; }
 
2273
  fi
 
2274
fi
 
2275
 
 
2276
# test whether we have cygpath
 
2277
if test -z "$CYGPATH_W"; then
 
2278
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2279
    CYGPATH_W='cygpath -w'
 
2280
  else
 
2281
    CYGPATH_W=echo
 
2282
  fi
 
2283
fi
 
2284
 
 
2285
 
 
2286
# Define the identity of the package.
 
2287
 PACKAGE='lxc'
 
2288
 VERSION='0.6.2'
 
2289
 
 
2290
 
 
2291
cat >>confdefs.h <<_ACEOF
 
2292
#define PACKAGE "$PACKAGE"
 
2293
_ACEOF
 
2294
 
 
2295
 
 
2296
cat >>confdefs.h <<_ACEOF
 
2297
#define VERSION "$VERSION"
 
2298
_ACEOF
 
2299
 
 
2300
# Some tools Automake needs.
 
2301
 
 
2302
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2303
 
 
2304
 
 
2305
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2306
 
 
2307
 
 
2308
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2309
 
 
2310
 
 
2311
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2312
 
 
2313
 
 
2314
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2315
 
 
2316
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2317
 
 
2318
# Installed binaries are usually stripped using `strip' when the user
 
2319
# run `make install-strip'.  However `strip' might not be the right
 
2320
# tool to use in cross-compilation environments, therefore Automake
 
2321
# will honor the `STRIP' environment variable to overrule this program.
 
2322
if test "$cross_compiling" != no; then
 
2323
  if test -n "$ac_tool_prefix"; then
 
2324
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2325
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2326
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2328
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2330
else
 
2331
  if test -n "$STRIP"; then
 
2332
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2333
else
 
2334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2335
for as_dir in $PATH
 
2336
do
 
2337
  IFS=$as_save_IFS
 
2338
  test -z "$as_dir" && as_dir=.
 
2339
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2341
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2342
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2343
    break 2
 
2344
  fi
 
2345
done
 
2346
done
 
2347
IFS=$as_save_IFS
 
2348
 
 
2349
fi
 
2350
fi
 
2351
STRIP=$ac_cv_prog_STRIP
 
2352
if test -n "$STRIP"; then
 
2353
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2354
echo "${ECHO_T}$STRIP" >&6; }
 
2355
else
 
2356
  { echo "$as_me:$LINENO: result: no" >&5
 
2357
echo "${ECHO_T}no" >&6; }
 
2358
fi
 
2359
 
 
2360
 
 
2361
fi
 
2362
if test -z "$ac_cv_prog_STRIP"; then
 
2363
  ac_ct_STRIP=$STRIP
 
2364
  # Extract the first word of "strip", so it can be a program name with args.
 
2365
set dummy strip; ac_word=$2
 
2366
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2367
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2368
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2369
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2370
else
 
2371
  if test -n "$ac_ct_STRIP"; then
 
2372
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2373
else
 
2374
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2375
for as_dir in $PATH
 
2376
do
 
2377
  IFS=$as_save_IFS
 
2378
  test -z "$as_dir" && as_dir=.
 
2379
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2380
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2381
    ac_cv_prog_ac_ct_STRIP="strip"
 
2382
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2383
    break 2
 
2384
  fi
 
2385
done
 
2386
done
 
2387
IFS=$as_save_IFS
 
2388
 
 
2389
fi
 
2390
fi
 
2391
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2392
if test -n "$ac_ct_STRIP"; then
 
2393
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2394
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2395
else
 
2396
  { echo "$as_me:$LINENO: result: no" >&5
 
2397
echo "${ECHO_T}no" >&6; }
 
2398
fi
 
2399
 
 
2400
  if test "x$ac_ct_STRIP" = x; then
 
2401
    STRIP=":"
 
2402
  else
 
2403
    case $cross_compiling:$ac_tool_warned in
 
2404
yes:)
 
2405
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2406
whose name does not start with the host triplet.  If you think this
 
2407
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2408
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2409
whose name does not start with the host triplet.  If you think this
 
2410
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2411
ac_tool_warned=yes ;;
 
2412
esac
 
2413
    STRIP=$ac_ct_STRIP
 
2414
  fi
 
2415
else
 
2416
  STRIP="$ac_cv_prog_STRIP"
 
2417
fi
 
2418
 
 
2419
fi
 
2420
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2421
 
 
2422
# We need awk for the "check" target.  The system "awk" is bad on
 
2423
# some platforms.
 
2424
# Always define AMTAR for backward compatibility.
 
2425
 
 
2426
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2427
 
 
2428
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2429
 
 
2430
 
 
2431
 
 
2432
 
 
2433
 
 
2434
# Make sure we can run config.sub.
 
2435
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2436
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2437
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2438
   { (exit 1); exit 1; }; }
 
2439
 
 
2440
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2441
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2442
if test "${ac_cv_build+set}" = set; then
 
2443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2444
else
 
2445
  ac_build_alias=$build_alias
 
2446
test "x$ac_build_alias" = x &&
 
2447
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2448
test "x$ac_build_alias" = x &&
 
2449
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2450
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2451
   { (exit 1); exit 1; }; }
 
2452
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2453
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2454
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2455
   { (exit 1); exit 1; }; }
 
2456
 
 
2457
fi
 
2458
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2459
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2460
case $ac_cv_build in
 
2461
*-*-*) ;;
 
2462
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2463
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2464
   { (exit 1); exit 1; }; };;
 
2465
esac
 
2466
build=$ac_cv_build
 
2467
ac_save_IFS=$IFS; IFS='-'
 
2468
set x $ac_cv_build
 
2469
shift
 
2470
build_cpu=$1
 
2471
build_vendor=$2
 
2472
shift; shift
 
2473
# Remember, the first character of IFS is used to create $*,
 
2474
# except with old shells:
 
2475
build_os=$*
 
2476
IFS=$ac_save_IFS
 
2477
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2478
 
 
2479
 
 
2480
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2481
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2482
if test "${ac_cv_host+set}" = set; then
 
2483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2484
else
 
2485
  if test "x$host_alias" = x; then
 
2486
  ac_cv_host=$ac_cv_build
 
2487
else
 
2488
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2489
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2490
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2491
   { (exit 1); exit 1; }; }
 
2492
fi
 
2493
 
 
2494
fi
 
2495
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2496
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2497
case $ac_cv_host in
 
2498
*-*-*) ;;
 
2499
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2500
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2501
   { (exit 1); exit 1; }; };;
 
2502
esac
 
2503
host=$ac_cv_host
 
2504
ac_save_IFS=$IFS; IFS='-'
 
2505
set x $ac_cv_host
 
2506
shift
 
2507
host_cpu=$1
 
2508
host_vendor=$2
 
2509
shift; shift
 
2510
# Remember, the first character of IFS is used to create $*,
 
2511
# except with old shells:
 
2512
host_os=$*
 
2513
IFS=$ac_save_IFS
 
2514
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2515
 
 
2516
 
 
2517
DEPDIR="${am__leading_dot}deps"
 
2518
 
 
2519
ac_config_commands="$ac_config_commands depfiles"
 
2520
 
 
2521
 
 
2522
am_make=${MAKE-make}
 
2523
cat > confinc << 'END'
 
2524
am__doit:
 
2525
        @echo done
 
2526
.PHONY: am__doit
 
2527
END
 
2528
# If we don't find an include directive, just comment out the code.
 
2529
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2530
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2531
am__include="#"
 
2532
am__quote=
 
2533
_am_result=none
 
2534
# First try GNU make style include.
 
2535
echo "include confinc" > confmf
 
2536
# We grep out `Entering directory' and `Leaving directory'
 
2537
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2538
# In particular we don't look at `^make:' because GNU make might
 
2539
# be invoked under some other name (usually "gmake"), in which
 
2540
# case it prints its new name instead of `make'.
 
2541
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2542
   am__include=include
 
2543
   am__quote=
 
2544
   _am_result=GNU
 
2545
fi
 
2546
# Now try BSD make style include.
 
2547
if test "$am__include" = "#"; then
 
2548
   echo '.include "confinc"' > confmf
 
2549
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2550
      am__include=.include
 
2551
      am__quote="\""
 
2552
      _am_result=BSD
 
2553
   fi
 
2554
fi
 
2555
 
 
2556
 
 
2557
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2558
echo "${ECHO_T}$_am_result" >&6; }
 
2559
rm -f confinc confmf
 
2560
 
 
2561
# Check whether --enable-dependency-tracking was given.
 
2562
if test "${enable_dependency_tracking+set}" = set; then
 
2563
  enableval=$enable_dependency_tracking;
 
2564
fi
 
2565
 
 
2566
if test "x$enable_dependency_tracking" != xno; then
 
2567
  am_depcomp="$ac_aux_dir/depcomp"
 
2568
  AMDEPBACKSLASH='\'
 
2569
fi
 
2570
 if test "x$enable_dependency_tracking" != xno; then
 
2571
  AMDEP_TRUE=
 
2572
  AMDEP_FALSE='#'
 
2573
else
 
2574
  AMDEP_TRUE='#'
 
2575
  AMDEP_FALSE=
 
2576
fi
 
2577
 
 
2578
 
 
2579
ac_ext=c
 
2580
ac_cpp='$CPP $CPPFLAGS'
 
2581
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2582
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2583
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2584
if test -n "$ac_tool_prefix"; then
 
2585
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2586
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2587
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2588
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2589
if test "${ac_cv_prog_CC+set}" = set; then
 
2590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2591
else
 
2592
  if test -n "$CC"; then
 
2593
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2594
else
 
2595
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2596
for as_dir in $PATH
 
2597
do
 
2598
  IFS=$as_save_IFS
 
2599
  test -z "$as_dir" && as_dir=.
 
2600
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2601
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2602
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2603
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2604
    break 2
 
2605
  fi
 
2606
done
 
2607
done
 
2608
IFS=$as_save_IFS
 
2609
 
 
2610
fi
 
2611
fi
 
2612
CC=$ac_cv_prog_CC
 
2613
if test -n "$CC"; then
 
2614
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2615
echo "${ECHO_T}$CC" >&6; }
 
2616
else
 
2617
  { echo "$as_me:$LINENO: result: no" >&5
 
2618
echo "${ECHO_T}no" >&6; }
 
2619
fi
 
2620
 
 
2621
 
 
2622
fi
 
2623
if test -z "$ac_cv_prog_CC"; then
 
2624
  ac_ct_CC=$CC
 
2625
  # Extract the first word of "gcc", so it can be a program name with args.
 
2626
set dummy gcc; ac_word=$2
 
2627
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2628
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2629
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2631
else
 
2632
  if test -n "$ac_ct_CC"; then
 
2633
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2634
else
 
2635
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2636
for as_dir in $PATH
 
2637
do
 
2638
  IFS=$as_save_IFS
 
2639
  test -z "$as_dir" && as_dir=.
 
2640
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2641
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2642
    ac_cv_prog_ac_ct_CC="gcc"
 
2643
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2644
    break 2
 
2645
  fi
 
2646
done
 
2647
done
 
2648
IFS=$as_save_IFS
 
2649
 
 
2650
fi
 
2651
fi
 
2652
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2653
if test -n "$ac_ct_CC"; then
 
2654
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2655
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2656
else
 
2657
  { echo "$as_me:$LINENO: result: no" >&5
 
2658
echo "${ECHO_T}no" >&6; }
 
2659
fi
 
2660
 
 
2661
  if test "x$ac_ct_CC" = x; then
 
2662
    CC=""
 
2663
  else
 
2664
    case $cross_compiling:$ac_tool_warned in
 
2665
yes:)
 
2666
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2667
whose name does not start with the host triplet.  If you think this
 
2668
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2669
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2670
whose name does not start with the host triplet.  If you think this
 
2671
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2672
ac_tool_warned=yes ;;
 
2673
esac
 
2674
    CC=$ac_ct_CC
 
2675
  fi
 
2676
else
 
2677
  CC="$ac_cv_prog_CC"
 
2678
fi
 
2679
 
 
2680
if test -z "$CC"; then
 
2681
          if test -n "$ac_tool_prefix"; then
 
2682
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2683
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2684
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2685
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2686
if test "${ac_cv_prog_CC+set}" = set; then
 
2687
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2688
else
 
2689
  if test -n "$CC"; then
 
2690
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2691
else
 
2692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2693
for as_dir in $PATH
 
2694
do
 
2695
  IFS=$as_save_IFS
 
2696
  test -z "$as_dir" && as_dir=.
 
2697
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2698
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2699
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2700
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2701
    break 2
 
2702
  fi
 
2703
done
 
2704
done
 
2705
IFS=$as_save_IFS
 
2706
 
 
2707
fi
 
2708
fi
 
2709
CC=$ac_cv_prog_CC
 
2710
if test -n "$CC"; then
 
2711
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2712
echo "${ECHO_T}$CC" >&6; }
 
2713
else
 
2714
  { echo "$as_me:$LINENO: result: no" >&5
 
2715
echo "${ECHO_T}no" >&6; }
 
2716
fi
 
2717
 
 
2718
 
 
2719
  fi
 
2720
fi
 
2721
if test -z "$CC"; then
 
2722
  # Extract the first word of "cc", so it can be a program name with args.
 
2723
set dummy cc; ac_word=$2
 
2724
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2725
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2726
if test "${ac_cv_prog_CC+set}" = set; then
 
2727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2728
else
 
2729
  if test -n "$CC"; then
 
2730
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2731
else
 
2732
  ac_prog_rejected=no
 
2733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2734
for as_dir in $PATH
 
2735
do
 
2736
  IFS=$as_save_IFS
 
2737
  test -z "$as_dir" && as_dir=.
 
2738
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2739
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2740
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2741
       ac_prog_rejected=yes
 
2742
       continue
 
2743
     fi
 
2744
    ac_cv_prog_CC="cc"
 
2745
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2746
    break 2
 
2747
  fi
 
2748
done
 
2749
done
 
2750
IFS=$as_save_IFS
 
2751
 
 
2752
if test $ac_prog_rejected = yes; then
 
2753
  # We found a bogon in the path, so make sure we never use it.
 
2754
  set dummy $ac_cv_prog_CC
 
2755
  shift
 
2756
  if test $# != 0; then
 
2757
    # We chose a different compiler from the bogus one.
 
2758
    # However, it has the same basename, so the bogon will be chosen
 
2759
    # first if we set CC to just the basename; use the full file name.
 
2760
    shift
 
2761
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2762
  fi
 
2763
fi
 
2764
fi
 
2765
fi
 
2766
CC=$ac_cv_prog_CC
 
2767
if test -n "$CC"; then
 
2768
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2769
echo "${ECHO_T}$CC" >&6; }
 
2770
else
 
2771
  { echo "$as_me:$LINENO: result: no" >&5
 
2772
echo "${ECHO_T}no" >&6; }
 
2773
fi
 
2774
 
 
2775
 
 
2776
fi
 
2777
if test -z "$CC"; then
 
2778
  if test -n "$ac_tool_prefix"; then
 
2779
  for ac_prog in cl.exe
 
2780
  do
 
2781
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2782
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2783
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2784
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2785
if test "${ac_cv_prog_CC+set}" = set; then
 
2786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2787
else
 
2788
  if test -n "$CC"; then
 
2789
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2790
else
 
2791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2792
for as_dir in $PATH
 
2793
do
 
2794
  IFS=$as_save_IFS
 
2795
  test -z "$as_dir" && as_dir=.
 
2796
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2797
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2798
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2799
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2800
    break 2
 
2801
  fi
 
2802
done
 
2803
done
 
2804
IFS=$as_save_IFS
 
2805
 
 
2806
fi
 
2807
fi
 
2808
CC=$ac_cv_prog_CC
 
2809
if test -n "$CC"; then
 
2810
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2811
echo "${ECHO_T}$CC" >&6; }
 
2812
else
 
2813
  { echo "$as_me:$LINENO: result: no" >&5
 
2814
echo "${ECHO_T}no" >&6; }
 
2815
fi
 
2816
 
 
2817
 
 
2818
    test -n "$CC" && break
 
2819
  done
 
2820
fi
 
2821
if test -z "$CC"; then
 
2822
  ac_ct_CC=$CC
 
2823
  for ac_prog in cl.exe
 
2824
do
 
2825
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2826
set dummy $ac_prog; ac_word=$2
 
2827
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2828
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2829
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2831
else
 
2832
  if test -n "$ac_ct_CC"; then
 
2833
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2834
else
 
2835
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2836
for as_dir in $PATH
 
2837
do
 
2838
  IFS=$as_save_IFS
 
2839
  test -z "$as_dir" && as_dir=.
 
2840
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2841
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2842
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2843
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2844
    break 2
 
2845
  fi
 
2846
done
 
2847
done
 
2848
IFS=$as_save_IFS
 
2849
 
 
2850
fi
 
2851
fi
 
2852
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2853
if test -n "$ac_ct_CC"; then
 
2854
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2855
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2856
else
 
2857
  { echo "$as_me:$LINENO: result: no" >&5
 
2858
echo "${ECHO_T}no" >&6; }
 
2859
fi
 
2860
 
 
2861
 
 
2862
  test -n "$ac_ct_CC" && break
 
2863
done
 
2864
 
 
2865
  if test "x$ac_ct_CC" = x; then
 
2866
    CC=""
 
2867
  else
 
2868
    case $cross_compiling:$ac_tool_warned in
 
2869
yes:)
 
2870
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2871
whose name does not start with the host triplet.  If you think this
 
2872
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2873
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2874
whose name does not start with the host triplet.  If you think this
 
2875
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2876
ac_tool_warned=yes ;;
 
2877
esac
 
2878
    CC=$ac_ct_CC
 
2879
  fi
 
2880
fi
 
2881
 
 
2882
fi
 
2883
 
 
2884
 
 
2885
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2886
See \`config.log' for more details." >&5
 
2887
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2888
See \`config.log' for more details." >&2;}
 
2889
   { (exit 1); exit 1; }; }
 
2890
 
 
2891
# Provide some information about the compiler.
 
2892
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2893
ac_compiler=`set X $ac_compile; echo $2`
 
2894
{ (ac_try="$ac_compiler --version >&5"
 
2895
case "(($ac_try" in
 
2896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2897
  *) ac_try_echo=$ac_try;;
 
2898
esac
 
2899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2900
  (eval "$ac_compiler --version >&5") 2>&5
 
2901
  ac_status=$?
 
2902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2903
  (exit $ac_status); }
 
2904
{ (ac_try="$ac_compiler -v >&5"
 
2905
case "(($ac_try" in
 
2906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2907
  *) ac_try_echo=$ac_try;;
 
2908
esac
 
2909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2910
  (eval "$ac_compiler -v >&5") 2>&5
 
2911
  ac_status=$?
 
2912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2913
  (exit $ac_status); }
 
2914
{ (ac_try="$ac_compiler -V >&5"
 
2915
case "(($ac_try" in
 
2916
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2917
  *) ac_try_echo=$ac_try;;
 
2918
esac
 
2919
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2920
  (eval "$ac_compiler -V >&5") 2>&5
 
2921
  ac_status=$?
 
2922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2923
  (exit $ac_status); }
 
2924
 
 
2925
cat >conftest.$ac_ext <<_ACEOF
 
2926
/* confdefs.h.  */
 
2927
_ACEOF
 
2928
cat confdefs.h >>conftest.$ac_ext
 
2929
cat >>conftest.$ac_ext <<_ACEOF
 
2930
/* end confdefs.h.  */
 
2931
 
 
2932
int
 
2933
main ()
 
2934
{
 
2935
 
 
2936
  ;
 
2937
  return 0;
 
2938
}
 
2939
_ACEOF
 
2940
ac_clean_files_save=$ac_clean_files
 
2941
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2942
# Try to create an executable without -o first, disregard a.out.
 
2943
# It will help us diagnose broken compilers, and finding out an intuition
 
2944
# of exeext.
 
2945
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2946
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2947
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2948
#
 
2949
# List of possible output files, starting from the most likely.
 
2950
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2951
# only as a last resort.  b.out is created by i960 compilers.
 
2952
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2953
#
 
2954
# The IRIX 6 linker writes into existing files which may not be
 
2955
# executable, retaining their permissions.  Remove them first so a
 
2956
# subsequent execution test works.
 
2957
ac_rmfiles=
 
2958
for ac_file in $ac_files
 
2959
do
 
2960
  case $ac_file in
 
2961
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2962
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2963
  esac
 
2964
done
 
2965
rm -f $ac_rmfiles
 
2966
 
 
2967
if { (ac_try="$ac_link_default"
 
2968
case "(($ac_try" in
 
2969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2970
  *) ac_try_echo=$ac_try;;
 
2971
esac
 
2972
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2973
  (eval "$ac_link_default") 2>&5
 
2974
  ac_status=$?
 
2975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2976
  (exit $ac_status); }; then
 
2977
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2978
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2979
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2980
# so that the user can short-circuit this test for compilers unknown to
 
2981
# Autoconf.
 
2982
for ac_file in $ac_files ''
 
2983
do
 
2984
  test -f "$ac_file" || continue
 
2985
  case $ac_file in
 
2986
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2987
        ;;
 
2988
    [ab].out )
 
2989
        # We found the default executable, but exeext='' is most
 
2990
        # certainly right.
 
2991
        break;;
 
2992
    *.* )
 
2993
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2994
        then :; else
 
2995
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2996
        fi
 
2997
        # We set ac_cv_exeext here because the later test for it is not
 
2998
        # safe: cross compilers may not add the suffix if given an `-o'
 
2999
        # argument, so we may need to know it at that point already.
 
3000
        # Even if this section looks crufty: it has the advantage of
 
3001
        # actually working.
 
3002
        break;;
 
3003
    * )
 
3004
        break;;
 
3005
  esac
 
3006
done
 
3007
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3008
 
 
3009
else
 
3010
  ac_file=''
 
3011
fi
 
3012
 
 
3013
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3014
echo "${ECHO_T}$ac_file" >&6; }
 
3015
if test -z "$ac_file"; then
 
3016
  echo "$as_me: failed program was:" >&5
 
3017
sed 's/^/| /' conftest.$ac_ext >&5
 
3018
 
 
3019
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3020
See \`config.log' for more details." >&5
 
3021
echo "$as_me: error: C compiler cannot create executables
 
3022
See \`config.log' for more details." >&2;}
 
3023
   { (exit 77); exit 77; }; }
 
3024
fi
 
3025
 
 
3026
ac_exeext=$ac_cv_exeext
 
3027
 
 
3028
# Check that the compiler produces executables we can run.  If not, either
 
3029
# the compiler is broken, or we cross compile.
 
3030
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3031
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3032
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3033
# If not cross compiling, check that we can run a simple program.
 
3034
if test "$cross_compiling" != yes; then
 
3035
  if { ac_try='./$ac_file'
 
3036
  { (case "(($ac_try" in
 
3037
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3038
  *) ac_try_echo=$ac_try;;
 
3039
esac
 
3040
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3041
  (eval "$ac_try") 2>&5
 
3042
  ac_status=$?
 
3043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3044
  (exit $ac_status); }; }; then
 
3045
    cross_compiling=no
 
3046
  else
 
3047
    if test "$cross_compiling" = maybe; then
 
3048
        cross_compiling=yes
 
3049
    else
 
3050
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3051
If you meant to cross compile, use \`--host'.
 
3052
See \`config.log' for more details." >&5
 
3053
echo "$as_me: error: cannot run C compiled programs.
 
3054
If you meant to cross compile, use \`--host'.
 
3055
See \`config.log' for more details." >&2;}
 
3056
   { (exit 1); exit 1; }; }
 
3057
    fi
 
3058
  fi
 
3059
fi
 
3060
{ echo "$as_me:$LINENO: result: yes" >&5
 
3061
echo "${ECHO_T}yes" >&6; }
 
3062
 
 
3063
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3064
ac_clean_files=$ac_clean_files_save
 
3065
# Check that the compiler produces executables we can run.  If not, either
 
3066
# the compiler is broken, or we cross compile.
 
3067
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3068
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3069
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3070
echo "${ECHO_T}$cross_compiling" >&6; }
 
3071
 
 
3072
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3073
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3074
if { (ac_try="$ac_link"
 
3075
case "(($ac_try" in
 
3076
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3077
  *) ac_try_echo=$ac_try;;
 
3078
esac
 
3079
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3080
  (eval "$ac_link") 2>&5
 
3081
  ac_status=$?
 
3082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3083
  (exit $ac_status); }; then
 
3084
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3085
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3086
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3087
# `rm'.
 
3088
for ac_file in conftest.exe conftest conftest.*; do
 
3089
  test -f "$ac_file" || continue
 
3090
  case $ac_file in
 
3091
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3092
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3093
          break;;
 
3094
    * ) break;;
 
3095
  esac
 
3096
done
 
3097
else
 
3098
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3099
See \`config.log' for more details." >&5
 
3100
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3101
See \`config.log' for more details." >&2;}
 
3102
   { (exit 1); exit 1; }; }
 
3103
fi
 
3104
 
 
3105
rm -f conftest$ac_cv_exeext
 
3106
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3107
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3108
 
 
3109
rm -f conftest.$ac_ext
 
3110
EXEEXT=$ac_cv_exeext
 
3111
ac_exeext=$EXEEXT
 
3112
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3113
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3114
if test "${ac_cv_objext+set}" = set; then
 
3115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3116
else
 
3117
  cat >conftest.$ac_ext <<_ACEOF
 
3118
/* confdefs.h.  */
 
3119
_ACEOF
 
3120
cat confdefs.h >>conftest.$ac_ext
 
3121
cat >>conftest.$ac_ext <<_ACEOF
 
3122
/* end confdefs.h.  */
 
3123
 
 
3124
int
 
3125
main ()
 
3126
{
 
3127
 
 
3128
  ;
 
3129
  return 0;
 
3130
}
 
3131
_ACEOF
 
3132
rm -f conftest.o conftest.obj
 
3133
if { (ac_try="$ac_compile"
 
3134
case "(($ac_try" in
 
3135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3136
  *) ac_try_echo=$ac_try;;
 
3137
esac
 
3138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3139
  (eval "$ac_compile") 2>&5
 
3140
  ac_status=$?
 
3141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3142
  (exit $ac_status); }; then
 
3143
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3144
  test -f "$ac_file" || continue;
 
3145
  case $ac_file in
 
3146
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3147
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3148
       break;;
 
3149
  esac
 
3150
done
 
3151
else
 
3152
  echo "$as_me: failed program was:" >&5
 
3153
sed 's/^/| /' conftest.$ac_ext >&5
 
3154
 
 
3155
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3156
See \`config.log' for more details." >&5
 
3157
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3158
See \`config.log' for more details." >&2;}
 
3159
   { (exit 1); exit 1; }; }
 
3160
fi
 
3161
 
 
3162
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3163
fi
 
3164
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3165
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3166
OBJEXT=$ac_cv_objext
 
3167
ac_objext=$OBJEXT
 
3168
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3169
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3170
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3172
else
 
3173
  cat >conftest.$ac_ext <<_ACEOF
 
3174
/* confdefs.h.  */
 
3175
_ACEOF
 
3176
cat confdefs.h >>conftest.$ac_ext
 
3177
cat >>conftest.$ac_ext <<_ACEOF
 
3178
/* end confdefs.h.  */
 
3179
 
 
3180
int
 
3181
main ()
 
3182
{
 
3183
#ifndef __GNUC__
 
3184
       choke me
 
3185
#endif
 
3186
 
 
3187
  ;
 
3188
  return 0;
 
3189
}
 
3190
_ACEOF
 
3191
rm -f conftest.$ac_objext
 
3192
if { (ac_try="$ac_compile"
 
3193
case "(($ac_try" in
 
3194
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3195
  *) ac_try_echo=$ac_try;;
 
3196
esac
 
3197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3198
  (eval "$ac_compile") 2>conftest.er1
 
3199
  ac_status=$?
 
3200
  grep -v '^ *+' conftest.er1 >conftest.err
 
3201
  rm -f conftest.er1
 
3202
  cat conftest.err >&5
 
3203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3204
  (exit $ac_status); } && {
 
3205
         test -z "$ac_c_werror_flag" ||
 
3206
         test ! -s conftest.err
 
3207
       } && test -s conftest.$ac_objext; then
 
3208
  ac_compiler_gnu=yes
 
3209
else
 
3210
  echo "$as_me: failed program was:" >&5
 
3211
sed 's/^/| /' conftest.$ac_ext >&5
 
3212
 
 
3213
        ac_compiler_gnu=no
 
3214
fi
 
3215
 
 
3216
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3217
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3218
 
 
3219
fi
 
3220
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3221
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3222
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3223
ac_test_CFLAGS=${CFLAGS+set}
 
3224
ac_save_CFLAGS=$CFLAGS
 
3225
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3226
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3227
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3229
else
 
3230
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3231
   ac_c_werror_flag=yes
 
3232
   ac_cv_prog_cc_g=no
 
3233
   CFLAGS="-g"
 
3234
   cat >conftest.$ac_ext <<_ACEOF
 
3235
/* confdefs.h.  */
 
3236
_ACEOF
 
3237
cat confdefs.h >>conftest.$ac_ext
 
3238
cat >>conftest.$ac_ext <<_ACEOF
 
3239
/* end confdefs.h.  */
 
3240
 
 
3241
int
 
3242
main ()
 
3243
{
 
3244
 
 
3245
  ;
 
3246
  return 0;
 
3247
}
 
3248
_ACEOF
 
3249
rm -f conftest.$ac_objext
 
3250
if { (ac_try="$ac_compile"
 
3251
case "(($ac_try" in
 
3252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3253
  *) ac_try_echo=$ac_try;;
 
3254
esac
 
3255
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3256
  (eval "$ac_compile") 2>conftest.er1
 
3257
  ac_status=$?
 
3258
  grep -v '^ *+' conftest.er1 >conftest.err
 
3259
  rm -f conftest.er1
 
3260
  cat conftest.err >&5
 
3261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3262
  (exit $ac_status); } && {
 
3263
         test -z "$ac_c_werror_flag" ||
 
3264
         test ! -s conftest.err
 
3265
       } && test -s conftest.$ac_objext; then
 
3266
  ac_cv_prog_cc_g=yes
 
3267
else
 
3268
  echo "$as_me: failed program was:" >&5
 
3269
sed 's/^/| /' conftest.$ac_ext >&5
 
3270
 
 
3271
        CFLAGS=""
 
3272
      cat >conftest.$ac_ext <<_ACEOF
 
3273
/* confdefs.h.  */
 
3274
_ACEOF
 
3275
cat confdefs.h >>conftest.$ac_ext
 
3276
cat >>conftest.$ac_ext <<_ACEOF
 
3277
/* end confdefs.h.  */
 
3278
 
 
3279
int
 
3280
main ()
 
3281
{
 
3282
 
 
3283
  ;
 
3284
  return 0;
 
3285
}
 
3286
_ACEOF
 
3287
rm -f conftest.$ac_objext
 
3288
if { (ac_try="$ac_compile"
 
3289
case "(($ac_try" in
 
3290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3291
  *) ac_try_echo=$ac_try;;
 
3292
esac
 
3293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3294
  (eval "$ac_compile") 2>conftest.er1
 
3295
  ac_status=$?
 
3296
  grep -v '^ *+' conftest.er1 >conftest.err
 
3297
  rm -f conftest.er1
 
3298
  cat conftest.err >&5
 
3299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3300
  (exit $ac_status); } && {
 
3301
         test -z "$ac_c_werror_flag" ||
 
3302
         test ! -s conftest.err
 
3303
       } && test -s conftest.$ac_objext; then
 
3304
  :
 
3305
else
 
3306
  echo "$as_me: failed program was:" >&5
 
3307
sed 's/^/| /' conftest.$ac_ext >&5
 
3308
 
 
3309
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3310
         CFLAGS="-g"
 
3311
         cat >conftest.$ac_ext <<_ACEOF
 
3312
/* confdefs.h.  */
 
3313
_ACEOF
 
3314
cat confdefs.h >>conftest.$ac_ext
 
3315
cat >>conftest.$ac_ext <<_ACEOF
 
3316
/* end confdefs.h.  */
 
3317
 
 
3318
int
 
3319
main ()
 
3320
{
 
3321
 
 
3322
  ;
 
3323
  return 0;
 
3324
}
 
3325
_ACEOF
 
3326
rm -f conftest.$ac_objext
 
3327
if { (ac_try="$ac_compile"
 
3328
case "(($ac_try" in
 
3329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3330
  *) ac_try_echo=$ac_try;;
 
3331
esac
 
3332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3333
  (eval "$ac_compile") 2>conftest.er1
 
3334
  ac_status=$?
 
3335
  grep -v '^ *+' conftest.er1 >conftest.err
 
3336
  rm -f conftest.er1
 
3337
  cat conftest.err >&5
 
3338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3339
  (exit $ac_status); } && {
 
3340
         test -z "$ac_c_werror_flag" ||
 
3341
         test ! -s conftest.err
 
3342
       } && test -s conftest.$ac_objext; then
 
3343
  ac_cv_prog_cc_g=yes
 
3344
else
 
3345
  echo "$as_me: failed program was:" >&5
 
3346
sed 's/^/| /' conftest.$ac_ext >&5
 
3347
 
 
3348
 
 
3349
fi
 
3350
 
 
3351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3352
fi
 
3353
 
 
3354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3355
fi
 
3356
 
 
3357
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3358
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3359
fi
 
3360
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3361
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3362
if test "$ac_test_CFLAGS" = set; then
 
3363
  CFLAGS=$ac_save_CFLAGS
 
3364
elif test $ac_cv_prog_cc_g = yes; then
 
3365
  if test "$GCC" = yes; then
 
3366
    CFLAGS="-g -O2"
 
3367
  else
 
3368
    CFLAGS="-g"
 
3369
  fi
 
3370
else
 
3371
  if test "$GCC" = yes; then
 
3372
    CFLAGS="-O2"
 
3373
  else
 
3374
    CFLAGS=
 
3375
  fi
 
3376
fi
 
3377
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3378
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3379
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3381
else
 
3382
  ac_cv_prog_cc_c89=no
 
3383
ac_save_CC=$CC
 
3384
cat >conftest.$ac_ext <<_ACEOF
 
3385
/* confdefs.h.  */
 
3386
_ACEOF
 
3387
cat confdefs.h >>conftest.$ac_ext
 
3388
cat >>conftest.$ac_ext <<_ACEOF
 
3389
/* end confdefs.h.  */
 
3390
#include <stdarg.h>
 
3391
#include <stdio.h>
 
3392
#include <sys/types.h>
 
3393
#include <sys/stat.h>
 
3394
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3395
struct buf { int x; };
 
3396
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3397
static char *e (p, i)
 
3398
     char **p;
 
3399
     int i;
 
3400
{
 
3401
  return p[i];
 
3402
}
 
3403
static char *f (char * (*g) (char **, int), char **p, ...)
 
3404
{
 
3405
  char *s;
 
3406
  va_list v;
 
3407
  va_start (v,p);
 
3408
  s = g (p, va_arg (v,int));
 
3409
  va_end (v);
 
3410
  return s;
 
3411
}
 
3412
 
 
3413
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3414
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3415
   These don't provoke an error unfortunately, instead are silently treated
 
3416
   as 'x'.  The following induces an error, until -std is added to get
 
3417
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3418
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3419
   that's true only with -std.  */
 
3420
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3421
 
 
3422
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3423
   inside strings and character constants.  */
 
3424
#define FOO(x) 'x'
 
3425
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3426
 
 
3427
int test (int i, double x);
 
3428
struct s1 {int (*f) (int a);};
 
3429
struct s2 {int (*f) (double a);};
 
3430
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3431
int argc;
 
3432
char **argv;
 
3433
int
 
3434
main ()
 
3435
{
 
3436
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3437
  ;
 
3438
  return 0;
 
3439
}
 
3440
_ACEOF
 
3441
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3442
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3443
do
 
3444
  CC="$ac_save_CC $ac_arg"
 
3445
  rm -f conftest.$ac_objext
 
3446
if { (ac_try="$ac_compile"
 
3447
case "(($ac_try" in
 
3448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3449
  *) ac_try_echo=$ac_try;;
 
3450
esac
 
3451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3452
  (eval "$ac_compile") 2>conftest.er1
 
3453
  ac_status=$?
 
3454
  grep -v '^ *+' conftest.er1 >conftest.err
 
3455
  rm -f conftest.er1
 
3456
  cat conftest.err >&5
 
3457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3458
  (exit $ac_status); } && {
 
3459
         test -z "$ac_c_werror_flag" ||
 
3460
         test ! -s conftest.err
 
3461
       } && test -s conftest.$ac_objext; then
 
3462
  ac_cv_prog_cc_c89=$ac_arg
 
3463
else
 
3464
  echo "$as_me: failed program was:" >&5
 
3465
sed 's/^/| /' conftest.$ac_ext >&5
 
3466
 
 
3467
 
 
3468
fi
 
3469
 
 
3470
rm -f core conftest.err conftest.$ac_objext
 
3471
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3472
done
 
3473
rm -f conftest.$ac_ext
 
3474
CC=$ac_save_CC
 
3475
 
 
3476
fi
 
3477
# AC_CACHE_VAL
 
3478
case "x$ac_cv_prog_cc_c89" in
 
3479
  x)
 
3480
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3481
echo "${ECHO_T}none needed" >&6; } ;;
 
3482
  xno)
 
3483
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3484
echo "${ECHO_T}unsupported" >&6; } ;;
 
3485
  *)
 
3486
    CC="$CC $ac_cv_prog_cc_c89"
 
3487
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3488
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3489
esac
 
3490
 
 
3491
 
 
3492
ac_ext=c
 
3493
ac_cpp='$CPP $CPPFLAGS'
 
3494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3497
 
 
3498
depcc="$CC"   am_compiler_list=
 
3499
 
 
3500
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3501
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3502
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3503
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3504
else
 
3505
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3506
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3507
  # making bogus files that we don't know about and never remove.  For
 
3508
  # instance it was reported that on HP-UX the gcc test will end up
 
3509
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3510
  # in D'.
 
3511
  mkdir conftest.dir
 
3512
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3513
  # using a relative directory.
 
3514
  cp "$am_depcomp" conftest.dir
 
3515
  cd conftest.dir
 
3516
  # We will build objects and dependencies in a subdirectory because
 
3517
  # it helps to detect inapplicable dependency modes.  For instance
 
3518
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3519
  # side effect of compilation, but ICC will put the dependencies in
 
3520
  # the current directory while Tru64 will put them in the object
 
3521
  # directory.
 
3522
  mkdir sub
 
3523
 
 
3524
  am_cv_CC_dependencies_compiler_type=none
 
3525
  if test "$am_compiler_list" = ""; then
 
3526
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3527
  fi
 
3528
  for depmode in $am_compiler_list; do
 
3529
    # Setup a source with many dependencies, because some compilers
 
3530
    # like to wrap large dependency lists on column 80 (with \), and
 
3531
    # we should not choose a depcomp mode which is confused by this.
 
3532
    #
 
3533
    # We need to recreate these files for each test, as the compiler may
 
3534
    # overwrite some of them when testing with obscure command lines.
 
3535
    # This happens at least with the AIX C compiler.
 
3536
    : > sub/conftest.c
 
3537
    for i in 1 2 3 4 5 6; do
 
3538
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3539
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3540
      # Solaris 8's {/usr,}/bin/sh.
 
3541
      touch sub/conftst$i.h
 
3542
    done
 
3543
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3544
 
 
3545
    case $depmode in
 
3546
    nosideeffect)
 
3547
      # after this tag, mechanisms are not by side-effect, so they'll
 
3548
      # only be used when explicitly requested
 
3549
      if test "x$enable_dependency_tracking" = xyes; then
 
3550
        continue
 
3551
      else
 
3552
        break
 
3553
      fi
 
3554
      ;;
 
3555
    none) break ;;
 
3556
    esac
 
3557
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3558
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3559
    # handle `-M -o', and we need to detect this.
 
3560
    if depmode=$depmode \
 
3561
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3562
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3563
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3564
         >/dev/null 2>conftest.err &&
 
3565
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3566
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3567
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3568
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3569
      # icc doesn't choke on unknown options, it will just issue warnings
 
3570
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3571
      # that says an option was ignored or not supported.
 
3572
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3573
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3574
      # The diagnosis changed in icc 8.0:
 
3575
      #   icc: Command line remark: option '-MP' not supported
 
3576
      if (grep 'ignoring option' conftest.err ||
 
3577
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3578
        am_cv_CC_dependencies_compiler_type=$depmode
 
3579
        break
 
3580
      fi
 
3581
    fi
 
3582
  done
 
3583
 
 
3584
  cd ..
 
3585
  rm -rf conftest.dir
 
3586
else
 
3587
  am_cv_CC_dependencies_compiler_type=none
 
3588
fi
 
3589
 
 
3590
fi
 
3591
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3592
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3593
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3594
 
 
3595
 if
 
3596
  test "x$enable_dependency_tracking" != xno \
 
3597
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3598
  am__fastdepCC_TRUE=
 
3599
  am__fastdepCC_FALSE='#'
 
3600
else
 
3601
  am__fastdepCC_TRUE='#'
 
3602
  am__fastdepCC_FALSE=
 
3603
fi
 
3604
 
 
3605
 
 
3606
if test "x$CC" != xcc; then
 
3607
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
3608
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
3609
else
 
3610
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
3611
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
3612
fi
 
3613
set dummy $CC; ac_cc=`echo $2 |
 
3614
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3615
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
3616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3617
else
 
3618
  cat >conftest.$ac_ext <<_ACEOF
 
3619
/* confdefs.h.  */
 
3620
_ACEOF
 
3621
cat confdefs.h >>conftest.$ac_ext
 
3622
cat >>conftest.$ac_ext <<_ACEOF
 
3623
/* end confdefs.h.  */
 
3624
 
 
3625
int
 
3626
main ()
 
3627
{
 
3628
 
 
3629
  ;
 
3630
  return 0;
 
3631
}
 
3632
_ACEOF
 
3633
# Make sure it works both with $CC and with simple cc.
 
3634
# We do the test twice because some compilers refuse to overwrite an
 
3635
# existing .o file with -o, though they will create one.
 
3636
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3637
rm -f conftest2.*
 
3638
if { (case "(($ac_try" in
 
3639
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3640
  *) ac_try_echo=$ac_try;;
 
3641
esac
 
3642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3643
  (eval "$ac_try") 2>&5
 
3644
  ac_status=$?
 
3645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3646
  (exit $ac_status); } &&
 
3647
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3649
  *) ac_try_echo=$ac_try;;
 
3650
esac
 
3651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3652
  (eval "$ac_try") 2>&5
 
3653
  ac_status=$?
 
3654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3655
  (exit $ac_status); };
 
3656
then
 
3657
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
3658
  if test "x$CC" != xcc; then
 
3659
    # Test first that cc exists at all.
 
3660
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
3661
  { (case "(($ac_try" in
 
3662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3663
  *) ac_try_echo=$ac_try;;
 
3664
esac
 
3665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3666
  (eval "$ac_try") 2>&5
 
3667
  ac_status=$?
 
3668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3669
  (exit $ac_status); }; }; then
 
3670
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
3671
      rm -f conftest2.*
 
3672
      if { (case "(($ac_try" in
 
3673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3674
  *) ac_try_echo=$ac_try;;
 
3675
esac
 
3676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3677
  (eval "$ac_try") 2>&5
 
3678
  ac_status=$?
 
3679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3680
  (exit $ac_status); } &&
 
3681
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
3682
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3683
  *) ac_try_echo=$ac_try;;
 
3684
esac
 
3685
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3686
  (eval "$ac_try") 2>&5
 
3687
  ac_status=$?
 
3688
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3689
  (exit $ac_status); };
 
3690
      then
 
3691
        # cc works too.
 
3692
        :
 
3693
      else
 
3694
        # cc exists but doesn't like -o.
 
3695
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3696
      fi
 
3697
    fi
 
3698
  fi
 
3699
else
 
3700
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
3701
fi
 
3702
rm -f core conftest*
 
3703
 
 
3704
fi
 
3705
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
3706
  { echo "$as_me:$LINENO: result: yes" >&5
 
3707
echo "${ECHO_T}yes" >&6; }
 
3708
else
 
3709
  { echo "$as_me:$LINENO: result: no" >&5
 
3710
echo "${ECHO_T}no" >&6; }
 
3711
 
 
3712
cat >>confdefs.h <<\_ACEOF
 
3713
#define NO_MINUS_C_MINUS_O 1
 
3714
_ACEOF
 
3715
 
 
3716
fi
 
3717
 
 
3718
# FIXME: we rely on the cache variable name because
 
3719
# there is no other way.
 
3720
set dummy $CC
 
3721
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
3722
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
3723
   # Losing compiler, so override with the script.
 
3724
   # FIXME: It is wrong to rewrite CC.
 
3725
   # But if we don't then we get into trouble of one sort or another.
 
3726
   # A longer-term fix would be to have automake use am__CC in this case,
 
3727
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
3728
   CC="$am_aux_dir/compile $CC"
 
3729
fi
 
3730
 
 
3731
 
 
3732
 
 
3733
cat >>confdefs.h <<\_ACEOF
 
3734
#define _GNU_SOURCE 1
 
3735
_ACEOF
 
3736
 
 
3737
 
 
3738
# Check whether --enable-shared was given.
 
3739
if test "${enable_shared+set}" = set; then
 
3740
  enableval=$enable_shared; p=${PACKAGE-default}
 
3741
    case $enableval in
 
3742
    yes) enable_shared=yes ;;
 
3743
    no) enable_shared=no ;;
 
3744
    *)
 
3745
      enable_shared=no
 
3746
      # Look at the argument we got.  We use all the common list separators.
 
3747
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3748
      for pkg in $enableval; do
 
3749
        IFS="$lt_save_ifs"
 
3750
        if test "X$pkg" = "X$p"; then
 
3751
          enable_shared=yes
 
3752
        fi
 
3753
      done
 
3754
      IFS="$lt_save_ifs"
 
3755
      ;;
 
3756
    esac
 
3757
else
 
3758
  enable_shared=yes
 
3759
fi
 
3760
 
 
3761
 
 
3762
# Check whether --enable-static was given.
 
3763
if test "${enable_static+set}" = set; then
 
3764
  enableval=$enable_static; p=${PACKAGE-default}
 
3765
    case $enableval in
 
3766
    yes) enable_static=yes ;;
 
3767
    no) enable_static=no ;;
 
3768
    *)
 
3769
     enable_static=no
 
3770
      # Look at the argument we got.  We use all the common list separators.
 
3771
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3772
      for pkg in $enableval; do
 
3773
        IFS="$lt_save_ifs"
 
3774
        if test "X$pkg" = "X$p"; then
 
3775
          enable_static=yes
 
3776
        fi
 
3777
      done
 
3778
      IFS="$lt_save_ifs"
 
3779
      ;;
 
3780
    esac
 
3781
else
 
3782
  enable_static=yes
 
3783
fi
 
3784
 
 
3785
 
 
3786
# Check whether --enable-fast-install was given.
 
3787
if test "${enable_fast_install+set}" = set; then
 
3788
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3789
    case $enableval in
 
3790
    yes) enable_fast_install=yes ;;
 
3791
    no) enable_fast_install=no ;;
 
3792
    *)
 
3793
      enable_fast_install=no
 
3794
      # Look at the argument we got.  We use all the common list separators.
 
3795
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3796
      for pkg in $enableval; do
 
3797
        IFS="$lt_save_ifs"
 
3798
        if test "X$pkg" = "X$p"; then
 
3799
          enable_fast_install=yes
 
3800
        fi
 
3801
      done
 
3802
      IFS="$lt_save_ifs"
 
3803
      ;;
 
3804
    esac
 
3805
else
 
3806
  enable_fast_install=yes
 
3807
fi
 
3808
 
 
3809
 
 
3810
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3811
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3812
if test "${lt_cv_path_SED+set}" = set; then
 
3813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3814
else
 
3815
  # Loop through the user's path and test for sed and gsed.
 
3816
# Then use that list of sed's as ones to test for truncation.
 
3817
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3818
for as_dir in $PATH
 
3819
do
 
3820
  IFS=$as_save_IFS
 
3821
  test -z "$as_dir" && as_dir=.
 
3822
  for lt_ac_prog in sed gsed; do
 
3823
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3824
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3825
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3826
      fi
 
3827
    done
 
3828
  done
 
3829
done
 
3830
IFS=$as_save_IFS
 
3831
lt_ac_max=0
 
3832
lt_ac_count=0
 
3833
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3834
# along with /bin/sed that truncates output.
 
3835
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3836
  test ! -f $lt_ac_sed && continue
 
3837
  cat /dev/null > conftest.in
 
3838
  lt_ac_count=0
 
3839
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3840
  # Check for GNU sed and select it if it is found.
 
3841
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3842
    lt_cv_path_SED=$lt_ac_sed
 
3843
    break
 
3844
  fi
 
3845
  while true; do
 
3846
    cat conftest.in conftest.in >conftest.tmp
 
3847
    mv conftest.tmp conftest.in
 
3848
    cp conftest.in conftest.nl
 
3849
    echo >>conftest.nl
 
3850
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3851
    cmp -s conftest.out conftest.nl || break
 
3852
    # 10000 chars as input seems more than enough
 
3853
    test $lt_ac_count -gt 10 && break
 
3854
    lt_ac_count=`expr $lt_ac_count + 1`
 
3855
    if test $lt_ac_count -gt $lt_ac_max; then
 
3856
      lt_ac_max=$lt_ac_count
 
3857
      lt_cv_path_SED=$lt_ac_sed
 
3858
    fi
 
3859
  done
 
3860
done
 
3861
 
 
3862
fi
 
3863
 
 
3864
SED=$lt_cv_path_SED
 
3865
 
 
3866
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3867
echo "${ECHO_T}$SED" >&6; }
 
3868
 
 
3869
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3870
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3871
if test "${ac_cv_path_GREP+set}" = set; then
 
3872
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3873
else
 
3874
  # Extract the first word of "grep ggrep" to use in msg output
 
3875
if test -z "$GREP"; then
 
3876
set dummy grep ggrep; ac_prog_name=$2
 
3877
if test "${ac_cv_path_GREP+set}" = set; then
 
3878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3879
else
 
3880
  ac_path_GREP_found=false
 
3881
# Loop through the user's path and test for each of PROGNAME-LIST
 
3882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3883
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3884
do
 
3885
  IFS=$as_save_IFS
 
3886
  test -z "$as_dir" && as_dir=.
 
3887
  for ac_prog in grep ggrep; do
 
3888
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3889
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3890
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3891
    # Check for GNU ac_path_GREP and select it if it is found.
 
3892
  # Check for GNU $ac_path_GREP
 
3893
case `"$ac_path_GREP" --version 2>&1` in
 
3894
*GNU*)
 
3895
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3896
*)
 
3897
  ac_count=0
 
3898
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3899
  while :
 
3900
  do
 
3901
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3902
    mv "conftest.tmp" "conftest.in"
 
3903
    cp "conftest.in" "conftest.nl"
 
3904
    echo 'GREP' >> "conftest.nl"
 
3905
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3906
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3907
    ac_count=`expr $ac_count + 1`
 
3908
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3909
      # Best one so far, save it but keep looking for a better one
 
3910
      ac_cv_path_GREP="$ac_path_GREP"
 
3911
      ac_path_GREP_max=$ac_count
 
3912
    fi
 
3913
    # 10*(2^10) chars as input seems more than enough
 
3914
    test $ac_count -gt 10 && break
 
3915
  done
 
3916
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3917
esac
 
3918
 
 
3919
 
 
3920
    $ac_path_GREP_found && break 3
 
3921
  done
 
3922
done
 
3923
 
 
3924
done
 
3925
IFS=$as_save_IFS
 
3926
 
 
3927
 
 
3928
fi
 
3929
 
 
3930
GREP="$ac_cv_path_GREP"
 
3931
if test -z "$GREP"; then
 
3932
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3933
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3934
   { (exit 1); exit 1; }; }
 
3935
fi
 
3936
 
 
3937
else
 
3938
  ac_cv_path_GREP=$GREP
 
3939
fi
 
3940
 
 
3941
 
 
3942
fi
 
3943
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3944
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3945
 GREP="$ac_cv_path_GREP"
 
3946
 
 
3947
 
 
3948
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3949
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3950
if test "${ac_cv_path_EGREP+set}" = set; then
 
3951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3952
else
 
3953
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3954
   then ac_cv_path_EGREP="$GREP -E"
 
3955
   else
 
3956
     # Extract the first word of "egrep" to use in msg output
 
3957
if test -z "$EGREP"; then
 
3958
set dummy egrep; ac_prog_name=$2
 
3959
if test "${ac_cv_path_EGREP+set}" = set; then
 
3960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3961
else
 
3962
  ac_path_EGREP_found=false
 
3963
# Loop through the user's path and test for each of PROGNAME-LIST
 
3964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3965
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3966
do
 
3967
  IFS=$as_save_IFS
 
3968
  test -z "$as_dir" && as_dir=.
 
3969
  for ac_prog in egrep; do
 
3970
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3971
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3972
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3973
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3974
  # Check for GNU $ac_path_EGREP
 
3975
case `"$ac_path_EGREP" --version 2>&1` in
 
3976
*GNU*)
 
3977
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3978
*)
 
3979
  ac_count=0
 
3980
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3981
  while :
 
3982
  do
 
3983
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3984
    mv "conftest.tmp" "conftest.in"
 
3985
    cp "conftest.in" "conftest.nl"
 
3986
    echo 'EGREP' >> "conftest.nl"
 
3987
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3988
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3989
    ac_count=`expr $ac_count + 1`
 
3990
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3991
      # Best one so far, save it but keep looking for a better one
 
3992
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3993
      ac_path_EGREP_max=$ac_count
 
3994
    fi
 
3995
    # 10*(2^10) chars as input seems more than enough
 
3996
    test $ac_count -gt 10 && break
 
3997
  done
 
3998
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3999
esac
 
4000
 
 
4001
 
 
4002
    $ac_path_EGREP_found && break 3
 
4003
  done
 
4004
done
 
4005
 
 
4006
done
 
4007
IFS=$as_save_IFS
 
4008
 
 
4009
 
 
4010
fi
 
4011
 
 
4012
EGREP="$ac_cv_path_EGREP"
 
4013
if test -z "$EGREP"; then
 
4014
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4015
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4016
   { (exit 1); exit 1; }; }
 
4017
fi
 
4018
 
 
4019
else
 
4020
  ac_cv_path_EGREP=$EGREP
 
4021
fi
 
4022
 
 
4023
 
 
4024
   fi
 
4025
fi
 
4026
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4027
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4028
 EGREP="$ac_cv_path_EGREP"
 
4029
 
 
4030
 
 
4031
 
 
4032
# Check whether --with-gnu-ld was given.
 
4033
if test "${with_gnu_ld+set}" = set; then
 
4034
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4035
else
 
4036
  with_gnu_ld=no
 
4037
fi
 
4038
 
 
4039
ac_prog=ld
 
4040
if test "$GCC" = yes; then
 
4041
  # Check if gcc -print-prog-name=ld gives a path.
 
4042
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4043
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4044
  case $host in
 
4045
  *-*-mingw*)
 
4046
    # gcc leaves a trailing carriage return which upsets mingw
 
4047
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4048
  *)
 
4049
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4050
  esac
 
4051
  case $ac_prog in
 
4052
    # Accept absolute paths.
 
4053
    [\\/]* | ?:[\\/]*)
 
4054
      re_direlt='/[^/][^/]*/\.\./'
 
4055
      # Canonicalize the pathname of ld
 
4056
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4057
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4058
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4059
      done
 
4060
      test -z "$LD" && LD="$ac_prog"
 
4061
      ;;
 
4062
  "")
 
4063
    # If it fails, then pretend we aren't using GCC.
 
4064
    ac_prog=ld
 
4065
    ;;
 
4066
  *)
 
4067
    # If it is relative, then search for the first ld in PATH.
 
4068
    with_gnu_ld=unknown
 
4069
    ;;
 
4070
  esac
 
4071
elif test "$with_gnu_ld" = yes; then
 
4072
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4073
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4074
else
 
4075
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4076
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4077
fi
 
4078
if test "${lt_cv_path_LD+set}" = set; then
 
4079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4080
else
 
4081
  if test -z "$LD"; then
 
4082
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4083
  for ac_dir in $PATH; do
 
4084
    IFS="$lt_save_ifs"
 
4085
    test -z "$ac_dir" && ac_dir=.
 
4086
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4087
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4088
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4089
      # but apparently some variants of GNU ld only accept -v.
 
4090
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4091
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4092
      *GNU* | *'with BFD'*)
 
4093
        test "$with_gnu_ld" != no && break
 
4094
        ;;
 
4095
      *)
 
4096
        test "$with_gnu_ld" != yes && break
 
4097
        ;;
 
4098
      esac
 
4099
    fi
 
4100
  done
 
4101
  IFS="$lt_save_ifs"
 
4102
else
 
4103
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4104
fi
 
4105
fi
 
4106
 
 
4107
LD="$lt_cv_path_LD"
 
4108
if test -n "$LD"; then
 
4109
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4110
echo "${ECHO_T}$LD" >&6; }
 
4111
else
 
4112
  { echo "$as_me:$LINENO: result: no" >&5
 
4113
echo "${ECHO_T}no" >&6; }
 
4114
fi
 
4115
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4116
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4117
   { (exit 1); exit 1; }; }
 
4118
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4119
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4120
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4122
else
 
4123
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4124
case `$LD -v 2>&1 </dev/null` in
 
4125
*GNU* | *'with BFD'*)
 
4126
  lt_cv_prog_gnu_ld=yes
 
4127
  ;;
 
4128
*)
 
4129
  lt_cv_prog_gnu_ld=no
 
4130
  ;;
 
4131
esac
 
4132
fi
 
4133
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4134
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4135
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4136
 
 
4137
 
 
4138
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4139
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4140
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4141
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4142
else
 
4143
  lt_cv_ld_reload_flag='-r'
 
4144
fi
 
4145
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4146
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4147
reload_flag=$lt_cv_ld_reload_flag
 
4148
case $reload_flag in
 
4149
"" | " "*) ;;
 
4150
*) reload_flag=" $reload_flag" ;;
 
4151
esac
 
4152
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4153
case $host_os in
 
4154
  darwin*)
 
4155
    if test "$GCC" = yes; then
 
4156
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4157
    else
 
4158
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4159
    fi
 
4160
    ;;
 
4161
esac
 
4162
 
 
4163
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4164
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4165
if test "${lt_cv_path_NM+set}" = set; then
 
4166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4167
else
 
4168
  if test -n "$NM"; then
 
4169
  # Let the user override the test.
 
4170
  lt_cv_path_NM="$NM"
 
4171
else
 
4172
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4173
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4174
    lt_nm_to_check="$lt_nm_to_check nm"
 
4175
  fi
 
4176
  for lt_tmp_nm in $lt_nm_to_check; do
 
4177
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4178
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4179
      IFS="$lt_save_ifs"
 
4180
      test -z "$ac_dir" && ac_dir=.
 
4181
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4182
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4183
        # Check to see if the nm accepts a BSD-compat flag.
 
4184
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4185
        #   nm: unknown option "B" ignored
 
4186
        # Tru64's nm complains that /dev/null is an invalid object file
 
4187
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4188
        */dev/null* | *'Invalid file or object type'*)
 
4189
          lt_cv_path_NM="$tmp_nm -B"
 
4190
          break
 
4191
          ;;
 
4192
        *)
 
4193
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4194
          */dev/null*)
 
4195
            lt_cv_path_NM="$tmp_nm -p"
 
4196
            break
 
4197
            ;;
 
4198
          *)
 
4199
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4200
            continue # so that we can try to find one that supports BSD flags
 
4201
            ;;
 
4202
          esac
 
4203
          ;;
 
4204
        esac
 
4205
      fi
 
4206
    done
 
4207
    IFS="$lt_save_ifs"
 
4208
  done
 
4209
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4210
fi
 
4211
fi
 
4212
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4213
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4214
NM="$lt_cv_path_NM"
 
4215
 
 
4216
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4217
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4218
LN_S=$as_ln_s
 
4219
if test "$LN_S" = "ln -s"; then
 
4220
  { echo "$as_me:$LINENO: result: yes" >&5
 
4221
echo "${ECHO_T}yes" >&6; }
 
4222
else
 
4223
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4224
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4225
fi
 
4226
 
 
4227
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4228
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4229
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4230
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4231
else
 
4232
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4233
lt_cv_file_magic_test_file=
 
4234
lt_cv_deplibs_check_method='unknown'
 
4235
# Need to set the preceding variable on all platforms that support
 
4236
# interlibrary dependencies.
 
4237
# 'none' -- dependencies not supported.
 
4238
# `unknown' -- same as none, but documents that we really don't know.
 
4239
# 'pass_all' -- all dependencies passed with no checks.
 
4240
# 'test_compile' -- check by making test program.
 
4241
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4242
# which responds to the $file_magic_cmd with a given extended regex.
 
4243
# If you have `file' or equivalent on your system and you're not sure
 
4244
# whether `pass_all' will *always* work, you probably want this one.
 
4245
 
 
4246
case $host_os in
 
4247
aix4* | aix5*)
 
4248
  lt_cv_deplibs_check_method=pass_all
 
4249
  ;;
 
4250
 
 
4251
beos*)
 
4252
  lt_cv_deplibs_check_method=pass_all
 
4253
  ;;
 
4254
 
 
4255
bsdi[45]*)
 
4256
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4257
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4258
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4259
  ;;
 
4260
 
 
4261
cygwin*)
 
4262
  # func_win32_libid is a shell function defined in ltmain.sh
 
4263
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4264
  lt_cv_file_magic_cmd='func_win32_libid'
 
4265
  ;;
 
4266
 
 
4267
mingw* | pw32*)
 
4268
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4269
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4270
  # unless we find 'file', for example because we are cross-compiling.
 
4271
  if ( file / ) >/dev/null 2>&1; then
 
4272
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4273
    lt_cv_file_magic_cmd='func_win32_libid'
 
4274
  else
 
4275
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4276
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4277
  fi
 
4278
  ;;
 
4279
 
 
4280
darwin* | rhapsody*)
 
4281
  lt_cv_deplibs_check_method=pass_all
 
4282
  ;;
 
4283
 
 
4284
freebsd* | dragonfly*)
 
4285
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4286
    case $host_cpu in
 
4287
    i*86 )
 
4288
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4289
      # Let's accept both of them until this is cleared up.
 
4290
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4291
      lt_cv_file_magic_cmd=/usr/bin/file
 
4292
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4293
      ;;
 
4294
    esac
 
4295
  else
 
4296
    lt_cv_deplibs_check_method=pass_all
 
4297
  fi
 
4298
  ;;
 
4299
 
 
4300
gnu*)
 
4301
  lt_cv_deplibs_check_method=pass_all
 
4302
  ;;
 
4303
 
 
4304
hpux10.20* | hpux11*)
 
4305
  lt_cv_file_magic_cmd=/usr/bin/file
 
4306
  case $host_cpu in
 
4307
  ia64*)
 
4308
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4309
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4310
    ;;
 
4311
  hppa*64*)
 
4312
    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]'
 
4313
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4314
    ;;
 
4315
  *)
 
4316
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4317
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4318
    ;;
 
4319
  esac
 
4320
  ;;
 
4321
 
 
4322
interix[3-9]*)
 
4323
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4324
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4325
  ;;
 
4326
 
 
4327
irix5* | irix6* | nonstopux*)
 
4328
  case $LD in
 
4329
  *-32|*"-32 ") libmagic=32-bit;;
 
4330
  *-n32|*"-n32 ") libmagic=N32;;
 
4331
  *-64|*"-64 ") libmagic=64-bit;;
 
4332
  *) libmagic=never-match;;
 
4333
  esac
 
4334
  lt_cv_deplibs_check_method=pass_all
 
4335
  ;;
 
4336
 
 
4337
# This must be Linux ELF.
 
4338
linux* | k*bsd*-gnu)
 
4339
  lt_cv_deplibs_check_method=pass_all
 
4340
  ;;
 
4341
 
 
4342
netbsd*)
 
4343
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4344
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4345
  else
 
4346
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4347
  fi
 
4348
  ;;
 
4349
 
 
4350
newos6*)
 
4351
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4352
  lt_cv_file_magic_cmd=/usr/bin/file
 
4353
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4354
  ;;
 
4355
 
 
4356
nto-qnx*)
 
4357
  lt_cv_deplibs_check_method=unknown
 
4358
  ;;
 
4359
 
 
4360
openbsd*)
 
4361
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4362
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4363
  else
 
4364
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4365
  fi
 
4366
  ;;
 
4367
 
 
4368
osf3* | osf4* | osf5*)
 
4369
  lt_cv_deplibs_check_method=pass_all
 
4370
  ;;
 
4371
 
 
4372
rdos*)
 
4373
  lt_cv_deplibs_check_method=pass_all
 
4374
  ;;
 
4375
 
 
4376
solaris*)
 
4377
  lt_cv_deplibs_check_method=pass_all
 
4378
  ;;
 
4379
 
 
4380
sysv4 | sysv4.3*)
 
4381
  case $host_vendor in
 
4382
  motorola)
 
4383
    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]'
 
4384
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4385
    ;;
 
4386
  ncr)
 
4387
    lt_cv_deplibs_check_method=pass_all
 
4388
    ;;
 
4389
  sequent)
 
4390
    lt_cv_file_magic_cmd='/bin/file'
 
4391
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4392
    ;;
 
4393
  sni)
 
4394
    lt_cv_file_magic_cmd='/bin/file'
 
4395
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4396
    lt_cv_file_magic_test_file=/lib/libc.so
 
4397
    ;;
 
4398
  siemens)
 
4399
    lt_cv_deplibs_check_method=pass_all
 
4400
    ;;
 
4401
  pc)
 
4402
    lt_cv_deplibs_check_method=pass_all
 
4403
    ;;
 
4404
  esac
 
4405
  ;;
 
4406
 
 
4407
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4408
  lt_cv_deplibs_check_method=pass_all
 
4409
  ;;
 
4410
esac
 
4411
 
 
4412
fi
 
4413
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4414
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4415
file_magic_cmd=$lt_cv_file_magic_cmd
 
4416
deplibs_check_method=$lt_cv_deplibs_check_method
 
4417
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4418
 
 
4419
 
 
4420
 
 
4421
 
 
4422
# If no C compiler was specified, use CC.
 
4423
LTCC=${LTCC-"$CC"}
 
4424
 
 
4425
# If no C compiler flags were specified, use CFLAGS.
 
4426
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4427
 
 
4428
# Allow CC to be a program name with arguments.
 
4429
compiler=$CC
 
4430
 
 
4431
 
 
4432
# Check whether --enable-libtool-lock was given.
 
4433
if test "${enable_libtool_lock+set}" = set; then
 
4434
  enableval=$enable_libtool_lock;
 
4435
fi
 
4436
 
 
4437
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4438
 
 
4439
# Some flags need to be propagated to the compiler or linker for good
 
4440
# libtool support.
 
4441
case $host in
 
4442
ia64-*-hpux*)
 
4443
  # Find out which ABI we are using.
 
4444
  echo 'int i;' > conftest.$ac_ext
 
4445
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4446
  (eval $ac_compile) 2>&5
 
4447
  ac_status=$?
 
4448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4449
  (exit $ac_status); }; then
 
4450
    case `/usr/bin/file conftest.$ac_objext` in
 
4451
    *ELF-32*)
 
4452
      HPUX_IA64_MODE="32"
 
4453
      ;;
 
4454
    *ELF-64*)
 
4455
      HPUX_IA64_MODE="64"
 
4456
      ;;
 
4457
    esac
 
4458
  fi
 
4459
  rm -rf conftest*
 
4460
  ;;
 
4461
*-*-irix6*)
 
4462
  # Find out which ABI we are using.
 
4463
  echo '#line 4463 "configure"' > conftest.$ac_ext
 
4464
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4465
  (eval $ac_compile) 2>&5
 
4466
  ac_status=$?
 
4467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4468
  (exit $ac_status); }; then
 
4469
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4470
    case `/usr/bin/file conftest.$ac_objext` in
 
4471
    *32-bit*)
 
4472
      LD="${LD-ld} -melf32bsmip"
 
4473
      ;;
 
4474
    *N32*)
 
4475
      LD="${LD-ld} -melf32bmipn32"
 
4476
      ;;
 
4477
    *64-bit*)
 
4478
      LD="${LD-ld} -melf64bmip"
 
4479
      ;;
 
4480
    esac
 
4481
   else
 
4482
    case `/usr/bin/file conftest.$ac_objext` in
 
4483
    *32-bit*)
 
4484
      LD="${LD-ld} -32"
 
4485
      ;;
 
4486
    *N32*)
 
4487
      LD="${LD-ld} -n32"
 
4488
      ;;
 
4489
    *64-bit*)
 
4490
      LD="${LD-ld} -64"
 
4491
      ;;
 
4492
    esac
 
4493
   fi
 
4494
  fi
 
4495
  rm -rf conftest*
 
4496
  ;;
 
4497
 
 
4498
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4499
s390*-*linux*|sparc*-*linux*)
 
4500
  # Find out which ABI we are using.
 
4501
  echo 'int i;' > conftest.$ac_ext
 
4502
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4503
  (eval $ac_compile) 2>&5
 
4504
  ac_status=$?
 
4505
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4506
  (exit $ac_status); }; then
 
4507
    case `/usr/bin/file conftest.o` in
 
4508
    *32-bit*)
 
4509
      case $host in
 
4510
        x86_64-*kfreebsd*-gnu)
 
4511
          LD="${LD-ld} -m elf_i386_fbsd"
 
4512
          ;;
 
4513
        x86_64-*linux*)
 
4514
          LD="${LD-ld} -m elf_i386"
 
4515
          ;;
 
4516
        ppc64-*linux*|powerpc64-*linux*)
 
4517
          LD="${LD-ld} -m elf32ppclinux"
 
4518
          ;;
 
4519
        s390x-*linux*)
 
4520
          LD="${LD-ld} -m elf_s390"
 
4521
          ;;
 
4522
        sparc64-*linux*)
 
4523
          LD="${LD-ld} -m elf32_sparc"
 
4524
          ;;
 
4525
      esac
 
4526
      ;;
 
4527
    *64-bit*)
 
4528
      libsuff=64
 
4529
      case $host in
 
4530
        x86_64-*kfreebsd*-gnu)
 
4531
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4532
          ;;
 
4533
        x86_64-*linux*)
 
4534
          LD="${LD-ld} -m elf_x86_64"
 
4535
          ;;
 
4536
        ppc*-*linux*|powerpc*-*linux*)
 
4537
          LD="${LD-ld} -m elf64ppc"
 
4538
          ;;
 
4539
        s390*-*linux*)
 
4540
          LD="${LD-ld} -m elf64_s390"
 
4541
          ;;
 
4542
        sparc*-*linux*)
 
4543
          LD="${LD-ld} -m elf64_sparc"
 
4544
          ;;
 
4545
      esac
 
4546
      ;;
 
4547
    esac
 
4548
  fi
 
4549
  rm -rf conftest*
 
4550
  ;;
 
4551
 
 
4552
*-*-sco3.2v5*)
 
4553
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4554
  SAVE_CFLAGS="$CFLAGS"
 
4555
  CFLAGS="$CFLAGS -belf"
 
4556
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4557
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4558
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4560
else
 
4561
  ac_ext=c
 
4562
ac_cpp='$CPP $CPPFLAGS'
 
4563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4566
 
 
4567
     cat >conftest.$ac_ext <<_ACEOF
 
4568
/* confdefs.h.  */
 
4569
_ACEOF
 
4570
cat confdefs.h >>conftest.$ac_ext
 
4571
cat >>conftest.$ac_ext <<_ACEOF
 
4572
/* end confdefs.h.  */
 
4573
 
 
4574
int
 
4575
main ()
 
4576
{
 
4577
 
 
4578
  ;
 
4579
  return 0;
 
4580
}
 
4581
_ACEOF
 
4582
rm -f conftest.$ac_objext conftest$ac_exeext
 
4583
if { (ac_try="$ac_link"
 
4584
case "(($ac_try" in
 
4585
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4586
  *) ac_try_echo=$ac_try;;
 
4587
esac
 
4588
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4589
  (eval "$ac_link") 2>conftest.er1
 
4590
  ac_status=$?
 
4591
  grep -v '^ *+' conftest.er1 >conftest.err
 
4592
  rm -f conftest.er1
 
4593
  cat conftest.err >&5
 
4594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4595
  (exit $ac_status); } && {
 
4596
         test -z "$ac_c_werror_flag" ||
 
4597
         test ! -s conftest.err
 
4598
       } && test -s conftest$ac_exeext &&
 
4599
       $as_test_x conftest$ac_exeext; then
 
4600
  lt_cv_cc_needs_belf=yes
 
4601
else
 
4602
  echo "$as_me: failed program was:" >&5
 
4603
sed 's/^/| /' conftest.$ac_ext >&5
 
4604
 
 
4605
        lt_cv_cc_needs_belf=no
 
4606
fi
 
4607
 
 
4608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4609
      conftest$ac_exeext conftest.$ac_ext
 
4610
     ac_ext=c
 
4611
ac_cpp='$CPP $CPPFLAGS'
 
4612
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4613
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4614
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4615
 
 
4616
fi
 
4617
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4618
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4619
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4620
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4621
    CFLAGS="$SAVE_CFLAGS"
 
4622
  fi
 
4623
  ;;
 
4624
sparc*-*solaris*)
 
4625
  # Find out which ABI we are using.
 
4626
  echo 'int i;' > conftest.$ac_ext
 
4627
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4628
  (eval $ac_compile) 2>&5
 
4629
  ac_status=$?
 
4630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4631
  (exit $ac_status); }; then
 
4632
    case `/usr/bin/file conftest.o` in
 
4633
    *64-bit*)
 
4634
      case $lt_cv_prog_gnu_ld in
 
4635
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4636
      *)    LD="${LD-ld} -64" ;;
 
4637
      esac
 
4638
      ;;
 
4639
    esac
 
4640
  fi
 
4641
  rm -rf conftest*
 
4642
  ;;
 
4643
 
 
4644
 
 
4645
esac
 
4646
 
 
4647
need_locks="$enable_libtool_lock"
 
4648
 
 
4649
 
 
4650
ac_ext=c
 
4651
ac_cpp='$CPP $CPPFLAGS'
 
4652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4655
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4656
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4657
# On Suns, sometimes $CPP names a directory.
 
4658
if test -n "$CPP" && test -d "$CPP"; then
 
4659
  CPP=
 
4660
fi
 
4661
if test -z "$CPP"; then
 
4662
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4663
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4664
else
 
4665
      # Double quotes because CPP needs to be expanded
 
4666
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4667
    do
 
4668
      ac_preproc_ok=false
 
4669
for ac_c_preproc_warn_flag in '' yes
 
4670
do
 
4671
  # Use a header file that comes with gcc, so configuring glibc
 
4672
  # with a fresh cross-compiler works.
 
4673
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4674
  # <limits.h> exists even on freestanding compilers.
 
4675
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4676
  # not just through cpp. "Syntax error" is here to catch this case.
 
4677
  cat >conftest.$ac_ext <<_ACEOF
 
4678
/* confdefs.h.  */
 
4679
_ACEOF
 
4680
cat confdefs.h >>conftest.$ac_ext
 
4681
cat >>conftest.$ac_ext <<_ACEOF
 
4682
/* end confdefs.h.  */
 
4683
#ifdef __STDC__
 
4684
# include <limits.h>
 
4685
#else
 
4686
# include <assert.h>
 
4687
#endif
 
4688
                     Syntax error
 
4689
_ACEOF
 
4690
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4691
case "(($ac_try" in
 
4692
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4693
  *) ac_try_echo=$ac_try;;
 
4694
esac
 
4695
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4696
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4697
  ac_status=$?
 
4698
  grep -v '^ *+' conftest.er1 >conftest.err
 
4699
  rm -f conftest.er1
 
4700
  cat conftest.err >&5
 
4701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4702
  (exit $ac_status); } >/dev/null && {
 
4703
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4704
         test ! -s conftest.err
 
4705
       }; then
 
4706
  :
 
4707
else
 
4708
  echo "$as_me: failed program was:" >&5
 
4709
sed 's/^/| /' conftest.$ac_ext >&5
 
4710
 
 
4711
  # Broken: fails on valid input.
 
4712
continue
 
4713
fi
 
4714
 
 
4715
rm -f conftest.err conftest.$ac_ext
 
4716
 
 
4717
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4718
  # can be detected and how.
 
4719
  cat >conftest.$ac_ext <<_ACEOF
 
4720
/* confdefs.h.  */
 
4721
_ACEOF
 
4722
cat confdefs.h >>conftest.$ac_ext
 
4723
cat >>conftest.$ac_ext <<_ACEOF
 
4724
/* end confdefs.h.  */
 
4725
#include <ac_nonexistent.h>
 
4726
_ACEOF
 
4727
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4728
case "(($ac_try" in
 
4729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4730
  *) ac_try_echo=$ac_try;;
 
4731
esac
 
4732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4733
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4734
  ac_status=$?
 
4735
  grep -v '^ *+' conftest.er1 >conftest.err
 
4736
  rm -f conftest.er1
 
4737
  cat conftest.err >&5
 
4738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4739
  (exit $ac_status); } >/dev/null && {
 
4740
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4741
         test ! -s conftest.err
 
4742
       }; then
 
4743
  # Broken: success on invalid input.
 
4744
continue
 
4745
else
 
4746
  echo "$as_me: failed program was:" >&5
 
4747
sed 's/^/| /' conftest.$ac_ext >&5
 
4748
 
 
4749
  # Passes both tests.
 
4750
ac_preproc_ok=:
 
4751
break
 
4752
fi
 
4753
 
 
4754
rm -f conftest.err conftest.$ac_ext
 
4755
 
 
4756
done
 
4757
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4758
rm -f conftest.err conftest.$ac_ext
 
4759
if $ac_preproc_ok; then
 
4760
  break
 
4761
fi
 
4762
 
 
4763
    done
 
4764
    ac_cv_prog_CPP=$CPP
 
4765
 
 
4766
fi
 
4767
  CPP=$ac_cv_prog_CPP
 
4768
else
 
4769
  ac_cv_prog_CPP=$CPP
 
4770
fi
 
4771
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4772
echo "${ECHO_T}$CPP" >&6; }
 
4773
ac_preproc_ok=false
 
4774
for ac_c_preproc_warn_flag in '' yes
 
4775
do
 
4776
  # Use a header file that comes with gcc, so configuring glibc
 
4777
  # with a fresh cross-compiler works.
 
4778
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4779
  # <limits.h> exists even on freestanding compilers.
 
4780
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4781
  # not just through cpp. "Syntax error" is here to catch this case.
 
4782
  cat >conftest.$ac_ext <<_ACEOF
 
4783
/* confdefs.h.  */
 
4784
_ACEOF
 
4785
cat confdefs.h >>conftest.$ac_ext
 
4786
cat >>conftest.$ac_ext <<_ACEOF
 
4787
/* end confdefs.h.  */
 
4788
#ifdef __STDC__
 
4789
# include <limits.h>
 
4790
#else
 
4791
# include <assert.h>
 
4792
#endif
 
4793
                     Syntax error
 
4794
_ACEOF
 
4795
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4796
case "(($ac_try" in
 
4797
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4798
  *) ac_try_echo=$ac_try;;
 
4799
esac
 
4800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4801
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4802
  ac_status=$?
 
4803
  grep -v '^ *+' conftest.er1 >conftest.err
 
4804
  rm -f conftest.er1
 
4805
  cat conftest.err >&5
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); } >/dev/null && {
 
4808
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4809
         test ! -s conftest.err
 
4810
       }; then
 
4811
  :
 
4812
else
 
4813
  echo "$as_me: failed program was:" >&5
 
4814
sed 's/^/| /' conftest.$ac_ext >&5
 
4815
 
 
4816
  # Broken: fails on valid input.
 
4817
continue
 
4818
fi
 
4819
 
 
4820
rm -f conftest.err conftest.$ac_ext
 
4821
 
 
4822
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4823
  # can be detected and how.
 
4824
  cat >conftest.$ac_ext <<_ACEOF
 
4825
/* confdefs.h.  */
 
4826
_ACEOF
 
4827
cat confdefs.h >>conftest.$ac_ext
 
4828
cat >>conftest.$ac_ext <<_ACEOF
 
4829
/* end confdefs.h.  */
 
4830
#include <ac_nonexistent.h>
 
4831
_ACEOF
 
4832
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4833
case "(($ac_try" in
 
4834
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4835
  *) ac_try_echo=$ac_try;;
 
4836
esac
 
4837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4838
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4839
  ac_status=$?
 
4840
  grep -v '^ *+' conftest.er1 >conftest.err
 
4841
  rm -f conftest.er1
 
4842
  cat conftest.err >&5
 
4843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4844
  (exit $ac_status); } >/dev/null && {
 
4845
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4846
         test ! -s conftest.err
 
4847
       }; then
 
4848
  # Broken: success on invalid input.
 
4849
continue
 
4850
else
 
4851
  echo "$as_me: failed program was:" >&5
 
4852
sed 's/^/| /' conftest.$ac_ext >&5
 
4853
 
 
4854
  # Passes both tests.
 
4855
ac_preproc_ok=:
 
4856
break
 
4857
fi
 
4858
 
 
4859
rm -f conftest.err conftest.$ac_ext
 
4860
 
 
4861
done
 
4862
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4863
rm -f conftest.err conftest.$ac_ext
 
4864
if $ac_preproc_ok; then
 
4865
  :
 
4866
else
 
4867
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4868
See \`config.log' for more details." >&5
 
4869
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4870
See \`config.log' for more details." >&2;}
 
4871
   { (exit 1); exit 1; }; }
 
4872
fi
 
4873
 
 
4874
ac_ext=c
 
4875
ac_cpp='$CPP $CPPFLAGS'
 
4876
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4877
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4878
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4879
 
 
4880
 
 
4881
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4882
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4883
if test "${ac_cv_header_stdc+set}" = set; then
 
4884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4885
else
 
4886
  cat >conftest.$ac_ext <<_ACEOF
 
4887
/* confdefs.h.  */
 
4888
_ACEOF
 
4889
cat confdefs.h >>conftest.$ac_ext
 
4890
cat >>conftest.$ac_ext <<_ACEOF
 
4891
/* end confdefs.h.  */
 
4892
#include <stdlib.h>
 
4893
#include <stdarg.h>
 
4894
#include <string.h>
 
4895
#include <float.h>
 
4896
 
 
4897
int
 
4898
main ()
 
4899
{
 
4900
 
 
4901
  ;
 
4902
  return 0;
 
4903
}
 
4904
_ACEOF
 
4905
rm -f conftest.$ac_objext
 
4906
if { (ac_try="$ac_compile"
 
4907
case "(($ac_try" in
 
4908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4909
  *) ac_try_echo=$ac_try;;
 
4910
esac
 
4911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4912
  (eval "$ac_compile") 2>conftest.er1
 
4913
  ac_status=$?
 
4914
  grep -v '^ *+' conftest.er1 >conftest.err
 
4915
  rm -f conftest.er1
 
4916
  cat conftest.err >&5
 
4917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4918
  (exit $ac_status); } && {
 
4919
         test -z "$ac_c_werror_flag" ||
 
4920
         test ! -s conftest.err
 
4921
       } && test -s conftest.$ac_objext; then
 
4922
  ac_cv_header_stdc=yes
 
4923
else
 
4924
  echo "$as_me: failed program was:" >&5
 
4925
sed 's/^/| /' conftest.$ac_ext >&5
 
4926
 
 
4927
        ac_cv_header_stdc=no
 
4928
fi
 
4929
 
 
4930
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4931
 
 
4932
if test $ac_cv_header_stdc = yes; then
 
4933
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4934
  cat >conftest.$ac_ext <<_ACEOF
 
4935
/* confdefs.h.  */
 
4936
_ACEOF
 
4937
cat confdefs.h >>conftest.$ac_ext
 
4938
cat >>conftest.$ac_ext <<_ACEOF
 
4939
/* end confdefs.h.  */
 
4940
#include <string.h>
 
4941
 
 
4942
_ACEOF
 
4943
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4944
  $EGREP "memchr" >/dev/null 2>&1; then
 
4945
  :
 
4946
else
 
4947
  ac_cv_header_stdc=no
 
4948
fi
 
4949
rm -f conftest*
 
4950
 
 
4951
fi
 
4952
 
 
4953
if test $ac_cv_header_stdc = yes; then
 
4954
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4955
  cat >conftest.$ac_ext <<_ACEOF
 
4956
/* confdefs.h.  */
 
4957
_ACEOF
 
4958
cat confdefs.h >>conftest.$ac_ext
 
4959
cat >>conftest.$ac_ext <<_ACEOF
 
4960
/* end confdefs.h.  */
 
4961
#include <stdlib.h>
 
4962
 
 
4963
_ACEOF
 
4964
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4965
  $EGREP "free" >/dev/null 2>&1; then
 
4966
  :
 
4967
else
 
4968
  ac_cv_header_stdc=no
 
4969
fi
 
4970
rm -f conftest*
 
4971
 
 
4972
fi
 
4973
 
 
4974
if test $ac_cv_header_stdc = yes; then
 
4975
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4976
  if test "$cross_compiling" = yes; then
 
4977
  :
 
4978
else
 
4979
  cat >conftest.$ac_ext <<_ACEOF
 
4980
/* confdefs.h.  */
 
4981
_ACEOF
 
4982
cat confdefs.h >>conftest.$ac_ext
 
4983
cat >>conftest.$ac_ext <<_ACEOF
 
4984
/* end confdefs.h.  */
 
4985
#include <ctype.h>
 
4986
#include <stdlib.h>
 
4987
#if ((' ' & 0x0FF) == 0x020)
 
4988
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4989
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4990
#else
 
4991
# define ISLOWER(c) \
 
4992
                   (('a' <= (c) && (c) <= 'i') \
 
4993
                     || ('j' <= (c) && (c) <= 'r') \
 
4994
                     || ('s' <= (c) && (c) <= 'z'))
 
4995
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4996
#endif
 
4997
 
 
4998
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4999
int
 
5000
main ()
 
5001
{
 
5002
  int i;
 
5003
  for (i = 0; i < 256; i++)
 
5004
    if (XOR (islower (i), ISLOWER (i))
 
5005
        || toupper (i) != TOUPPER (i))
 
5006
      return 2;
 
5007
  return 0;
 
5008
}
 
5009
_ACEOF
 
5010
rm -f conftest$ac_exeext
 
5011
if { (ac_try="$ac_link"
 
5012
case "(($ac_try" in
 
5013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5014
  *) ac_try_echo=$ac_try;;
 
5015
esac
 
5016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5017
  (eval "$ac_link") 2>&5
 
5018
  ac_status=$?
 
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5020
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5021
  { (case "(($ac_try" in
 
5022
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5023
  *) ac_try_echo=$ac_try;;
 
5024
esac
 
5025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5026
  (eval "$ac_try") 2>&5
 
5027
  ac_status=$?
 
5028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5029
  (exit $ac_status); }; }; then
 
5030
  :
 
5031
else
 
5032
  echo "$as_me: program exited with status $ac_status" >&5
 
5033
echo "$as_me: failed program was:" >&5
 
5034
sed 's/^/| /' conftest.$ac_ext >&5
 
5035
 
 
5036
( exit $ac_status )
 
5037
ac_cv_header_stdc=no
 
5038
fi
 
5039
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5040
fi
 
5041
 
 
5042
 
 
5043
fi
 
5044
fi
 
5045
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5046
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5047
if test $ac_cv_header_stdc = yes; then
 
5048
 
 
5049
cat >>confdefs.h <<\_ACEOF
 
5050
#define STDC_HEADERS 1
 
5051
_ACEOF
 
5052
 
 
5053
fi
 
5054
 
 
5055
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5056
 
 
5057
 
 
5058
 
 
5059
 
 
5060
 
 
5061
 
 
5062
 
 
5063
 
 
5064
 
 
5065
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5066
                  inttypes.h stdint.h unistd.h
 
5067
do
 
5068
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5069
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5070
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5071
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5073
else
 
5074
  cat >conftest.$ac_ext <<_ACEOF
 
5075
/* confdefs.h.  */
 
5076
_ACEOF
 
5077
cat confdefs.h >>conftest.$ac_ext
 
5078
cat >>conftest.$ac_ext <<_ACEOF
 
5079
/* end confdefs.h.  */
 
5080
$ac_includes_default
 
5081
 
 
5082
#include <$ac_header>
 
5083
_ACEOF
 
5084
rm -f conftest.$ac_objext
 
5085
if { (ac_try="$ac_compile"
 
5086
case "(($ac_try" in
 
5087
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5088
  *) ac_try_echo=$ac_try;;
 
5089
esac
 
5090
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5091
  (eval "$ac_compile") 2>conftest.er1
 
5092
  ac_status=$?
 
5093
  grep -v '^ *+' conftest.er1 >conftest.err
 
5094
  rm -f conftest.er1
 
5095
  cat conftest.err >&5
 
5096
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5097
  (exit $ac_status); } && {
 
5098
         test -z "$ac_c_werror_flag" ||
 
5099
         test ! -s conftest.err
 
5100
       } && test -s conftest.$ac_objext; then
 
5101
  eval "$as_ac_Header=yes"
 
5102
else
 
5103
  echo "$as_me: failed program was:" >&5
 
5104
sed 's/^/| /' conftest.$ac_ext >&5
 
5105
 
 
5106
        eval "$as_ac_Header=no"
 
5107
fi
 
5108
 
 
5109
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5110
fi
 
5111
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5112
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5113
echo "${ECHO_T}$ac_res" >&6; }
 
5114
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5115
  cat >>confdefs.h <<_ACEOF
 
5116
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5117
_ACEOF
 
5118
 
 
5119
fi
 
5120
 
 
5121
done
 
5122
 
 
5123
 
 
5124
 
 
5125
for ac_header in dlfcn.h
 
5126
do
 
5127
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5128
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5129
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5130
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5131
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5133
fi
 
5134
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5135
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5136
echo "${ECHO_T}$ac_res" >&6; }
 
5137
else
 
5138
  # Is the header compilable?
 
5139
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5140
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5141
cat >conftest.$ac_ext <<_ACEOF
 
5142
/* confdefs.h.  */
 
5143
_ACEOF
 
5144
cat confdefs.h >>conftest.$ac_ext
 
5145
cat >>conftest.$ac_ext <<_ACEOF
 
5146
/* end confdefs.h.  */
 
5147
$ac_includes_default
 
5148
#include <$ac_header>
 
5149
_ACEOF
 
5150
rm -f conftest.$ac_objext
 
5151
if { (ac_try="$ac_compile"
 
5152
case "(($ac_try" in
 
5153
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5154
  *) ac_try_echo=$ac_try;;
 
5155
esac
 
5156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5157
  (eval "$ac_compile") 2>conftest.er1
 
5158
  ac_status=$?
 
5159
  grep -v '^ *+' conftest.er1 >conftest.err
 
5160
  rm -f conftest.er1
 
5161
  cat conftest.err >&5
 
5162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5163
  (exit $ac_status); } && {
 
5164
         test -z "$ac_c_werror_flag" ||
 
5165
         test ! -s conftest.err
 
5166
       } && test -s conftest.$ac_objext; then
 
5167
  ac_header_compiler=yes
 
5168
else
 
5169
  echo "$as_me: failed program was:" >&5
 
5170
sed 's/^/| /' conftest.$ac_ext >&5
 
5171
 
 
5172
        ac_header_compiler=no
 
5173
fi
 
5174
 
 
5175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5176
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5177
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5178
 
 
5179
# Is the header present?
 
5180
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5181
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5182
cat >conftest.$ac_ext <<_ACEOF
 
5183
/* confdefs.h.  */
 
5184
_ACEOF
 
5185
cat confdefs.h >>conftest.$ac_ext
 
5186
cat >>conftest.$ac_ext <<_ACEOF
 
5187
/* end confdefs.h.  */
 
5188
#include <$ac_header>
 
5189
_ACEOF
 
5190
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5191
case "(($ac_try" in
 
5192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5193
  *) ac_try_echo=$ac_try;;
 
5194
esac
 
5195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5196
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5197
  ac_status=$?
 
5198
  grep -v '^ *+' conftest.er1 >conftest.err
 
5199
  rm -f conftest.er1
 
5200
  cat conftest.err >&5
 
5201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5202
  (exit $ac_status); } >/dev/null && {
 
5203
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5204
         test ! -s conftest.err
 
5205
       }; then
 
5206
  ac_header_preproc=yes
 
5207
else
 
5208
  echo "$as_me: failed program was:" >&5
 
5209
sed 's/^/| /' conftest.$ac_ext >&5
 
5210
 
 
5211
  ac_header_preproc=no
 
5212
fi
 
5213
 
 
5214
rm -f conftest.err conftest.$ac_ext
 
5215
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5216
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5217
 
 
5218
# So?  What about this header?
 
5219
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5220
  yes:no: )
 
5221
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5222
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5223
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5224
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5225
    ac_header_preproc=yes
 
5226
    ;;
 
5227
  no:yes:* )
 
5228
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5229
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5230
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5231
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5232
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5233
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5234
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5235
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5236
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5237
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5238
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5239
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5240
 
 
5241
    ;;
 
5242
esac
 
5243
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5244
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5245
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5247
else
 
5248
  eval "$as_ac_Header=\$ac_header_preproc"
 
5249
fi
 
5250
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5251
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5252
echo "${ECHO_T}$ac_res" >&6; }
 
5253
 
 
5254
fi
 
5255
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5256
  cat >>confdefs.h <<_ACEOF
 
5257
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5258
_ACEOF
 
5259
 
 
5260
fi
 
5261
 
 
5262
done
 
5263
 
 
5264
ac_ext=cpp
 
5265
ac_cpp='$CXXCPP $CPPFLAGS'
 
5266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5269
if test -z "$CXX"; then
 
5270
  if test -n "$CCC"; then
 
5271
    CXX=$CCC
 
5272
  else
 
5273
    if test -n "$ac_tool_prefix"; then
 
5274
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5275
  do
 
5276
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5277
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5280
if test "${ac_cv_prog_CXX+set}" = set; then
 
5281
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5282
else
 
5283
  if test -n "$CXX"; then
 
5284
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5285
else
 
5286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5287
for as_dir in $PATH
 
5288
do
 
5289
  IFS=$as_save_IFS
 
5290
  test -z "$as_dir" && as_dir=.
 
5291
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5292
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5293
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5294
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5295
    break 2
 
5296
  fi
 
5297
done
 
5298
done
 
5299
IFS=$as_save_IFS
 
5300
 
 
5301
fi
 
5302
fi
 
5303
CXX=$ac_cv_prog_CXX
 
5304
if test -n "$CXX"; then
 
5305
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5306
echo "${ECHO_T}$CXX" >&6; }
 
5307
else
 
5308
  { echo "$as_me:$LINENO: result: no" >&5
 
5309
echo "${ECHO_T}no" >&6; }
 
5310
fi
 
5311
 
 
5312
 
 
5313
    test -n "$CXX" && break
 
5314
  done
 
5315
fi
 
5316
if test -z "$CXX"; then
 
5317
  ac_ct_CXX=$CXX
 
5318
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5319
do
 
5320
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5321
set dummy $ac_prog; ac_word=$2
 
5322
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5323
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5324
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5325
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5326
else
 
5327
  if test -n "$ac_ct_CXX"; then
 
5328
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5329
else
 
5330
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5331
for as_dir in $PATH
 
5332
do
 
5333
  IFS=$as_save_IFS
 
5334
  test -z "$as_dir" && as_dir=.
 
5335
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5336
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5337
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5338
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5339
    break 2
 
5340
  fi
 
5341
done
 
5342
done
 
5343
IFS=$as_save_IFS
 
5344
 
 
5345
fi
 
5346
fi
 
5347
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5348
if test -n "$ac_ct_CXX"; then
 
5349
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5350
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5351
else
 
5352
  { echo "$as_me:$LINENO: result: no" >&5
 
5353
echo "${ECHO_T}no" >&6; }
 
5354
fi
 
5355
 
 
5356
 
 
5357
  test -n "$ac_ct_CXX" && break
 
5358
done
 
5359
 
 
5360
  if test "x$ac_ct_CXX" = x; then
 
5361
    CXX="g++"
 
5362
  else
 
5363
    case $cross_compiling:$ac_tool_warned in
 
5364
yes:)
 
5365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5366
whose name does not start with the host triplet.  If you think this
 
5367
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5369
whose name does not start with the host triplet.  If you think this
 
5370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5371
ac_tool_warned=yes ;;
 
5372
esac
 
5373
    CXX=$ac_ct_CXX
 
5374
  fi
 
5375
fi
 
5376
 
 
5377
  fi
 
5378
fi
 
5379
# Provide some information about the compiler.
 
5380
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5381
ac_compiler=`set X $ac_compile; echo $2`
 
5382
{ (ac_try="$ac_compiler --version >&5"
 
5383
case "(($ac_try" in
 
5384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5385
  *) ac_try_echo=$ac_try;;
 
5386
esac
 
5387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5388
  (eval "$ac_compiler --version >&5") 2>&5
 
5389
  ac_status=$?
 
5390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5391
  (exit $ac_status); }
 
5392
{ (ac_try="$ac_compiler -v >&5"
 
5393
case "(($ac_try" in
 
5394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5395
  *) ac_try_echo=$ac_try;;
 
5396
esac
 
5397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5398
  (eval "$ac_compiler -v >&5") 2>&5
 
5399
  ac_status=$?
 
5400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5401
  (exit $ac_status); }
 
5402
{ (ac_try="$ac_compiler -V >&5"
 
5403
case "(($ac_try" in
 
5404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5405
  *) ac_try_echo=$ac_try;;
 
5406
esac
 
5407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5408
  (eval "$ac_compiler -V >&5") 2>&5
 
5409
  ac_status=$?
 
5410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5411
  (exit $ac_status); }
 
5412
 
 
5413
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5414
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5415
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5417
else
 
5418
  cat >conftest.$ac_ext <<_ACEOF
 
5419
/* confdefs.h.  */
 
5420
_ACEOF
 
5421
cat confdefs.h >>conftest.$ac_ext
 
5422
cat >>conftest.$ac_ext <<_ACEOF
 
5423
/* end confdefs.h.  */
 
5424
 
 
5425
int
 
5426
main ()
 
5427
{
 
5428
#ifndef __GNUC__
 
5429
       choke me
 
5430
#endif
 
5431
 
 
5432
  ;
 
5433
  return 0;
 
5434
}
 
5435
_ACEOF
 
5436
rm -f conftest.$ac_objext
 
5437
if { (ac_try="$ac_compile"
 
5438
case "(($ac_try" in
 
5439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5440
  *) ac_try_echo=$ac_try;;
 
5441
esac
 
5442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5443
  (eval "$ac_compile") 2>conftest.er1
 
5444
  ac_status=$?
 
5445
  grep -v '^ *+' conftest.er1 >conftest.err
 
5446
  rm -f conftest.er1
 
5447
  cat conftest.err >&5
 
5448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5449
  (exit $ac_status); } && {
 
5450
         test -z "$ac_cxx_werror_flag" ||
 
5451
         test ! -s conftest.err
 
5452
       } && test -s conftest.$ac_objext; then
 
5453
  ac_compiler_gnu=yes
 
5454
else
 
5455
  echo "$as_me: failed program was:" >&5
 
5456
sed 's/^/| /' conftest.$ac_ext >&5
 
5457
 
 
5458
        ac_compiler_gnu=no
 
5459
fi
 
5460
 
 
5461
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5462
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5463
 
 
5464
fi
 
5465
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5466
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5467
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5468
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5469
ac_save_CXXFLAGS=$CXXFLAGS
 
5470
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5471
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5472
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5474
else
 
5475
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5476
   ac_cxx_werror_flag=yes
 
5477
   ac_cv_prog_cxx_g=no
 
5478
   CXXFLAGS="-g"
 
5479
   cat >conftest.$ac_ext <<_ACEOF
 
5480
/* confdefs.h.  */
 
5481
_ACEOF
 
5482
cat confdefs.h >>conftest.$ac_ext
 
5483
cat >>conftest.$ac_ext <<_ACEOF
 
5484
/* end confdefs.h.  */
 
5485
 
 
5486
int
 
5487
main ()
 
5488
{
 
5489
 
 
5490
  ;
 
5491
  return 0;
 
5492
}
 
5493
_ACEOF
 
5494
rm -f conftest.$ac_objext
 
5495
if { (ac_try="$ac_compile"
 
5496
case "(($ac_try" in
 
5497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5498
  *) ac_try_echo=$ac_try;;
 
5499
esac
 
5500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5501
  (eval "$ac_compile") 2>conftest.er1
 
5502
  ac_status=$?
 
5503
  grep -v '^ *+' conftest.er1 >conftest.err
 
5504
  rm -f conftest.er1
 
5505
  cat conftest.err >&5
 
5506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5507
  (exit $ac_status); } && {
 
5508
         test -z "$ac_cxx_werror_flag" ||
 
5509
         test ! -s conftest.err
 
5510
       } && test -s conftest.$ac_objext; then
 
5511
  ac_cv_prog_cxx_g=yes
 
5512
else
 
5513
  echo "$as_me: failed program was:" >&5
 
5514
sed 's/^/| /' conftest.$ac_ext >&5
 
5515
 
 
5516
        CXXFLAGS=""
 
5517
      cat >conftest.$ac_ext <<_ACEOF
 
5518
/* confdefs.h.  */
 
5519
_ACEOF
 
5520
cat confdefs.h >>conftest.$ac_ext
 
5521
cat >>conftest.$ac_ext <<_ACEOF
 
5522
/* end confdefs.h.  */
 
5523
 
 
5524
int
 
5525
main ()
 
5526
{
 
5527
 
 
5528
  ;
 
5529
  return 0;
 
5530
}
 
5531
_ACEOF
 
5532
rm -f conftest.$ac_objext
 
5533
if { (ac_try="$ac_compile"
 
5534
case "(($ac_try" in
 
5535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5536
  *) ac_try_echo=$ac_try;;
 
5537
esac
 
5538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5539
  (eval "$ac_compile") 2>conftest.er1
 
5540
  ac_status=$?
 
5541
  grep -v '^ *+' conftest.er1 >conftest.err
 
5542
  rm -f conftest.er1
 
5543
  cat conftest.err >&5
 
5544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5545
  (exit $ac_status); } && {
 
5546
         test -z "$ac_cxx_werror_flag" ||
 
5547
         test ! -s conftest.err
 
5548
       } && test -s conftest.$ac_objext; then
 
5549
  :
 
5550
else
 
5551
  echo "$as_me: failed program was:" >&5
 
5552
sed 's/^/| /' conftest.$ac_ext >&5
 
5553
 
 
5554
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5555
         CXXFLAGS="-g"
 
5556
         cat >conftest.$ac_ext <<_ACEOF
 
5557
/* confdefs.h.  */
 
5558
_ACEOF
 
5559
cat confdefs.h >>conftest.$ac_ext
 
5560
cat >>conftest.$ac_ext <<_ACEOF
 
5561
/* end confdefs.h.  */
 
5562
 
 
5563
int
 
5564
main ()
 
5565
{
 
5566
 
 
5567
  ;
 
5568
  return 0;
 
5569
}
 
5570
_ACEOF
 
5571
rm -f conftest.$ac_objext
 
5572
if { (ac_try="$ac_compile"
 
5573
case "(($ac_try" in
 
5574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5575
  *) ac_try_echo=$ac_try;;
 
5576
esac
 
5577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5578
  (eval "$ac_compile") 2>conftest.er1
 
5579
  ac_status=$?
 
5580
  grep -v '^ *+' conftest.er1 >conftest.err
 
5581
  rm -f conftest.er1
 
5582
  cat conftest.err >&5
 
5583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5584
  (exit $ac_status); } && {
 
5585
         test -z "$ac_cxx_werror_flag" ||
 
5586
         test ! -s conftest.err
 
5587
       } && test -s conftest.$ac_objext; then
 
5588
  ac_cv_prog_cxx_g=yes
 
5589
else
 
5590
  echo "$as_me: failed program was:" >&5
 
5591
sed 's/^/| /' conftest.$ac_ext >&5
 
5592
 
 
5593
 
 
5594
fi
 
5595
 
 
5596
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5597
fi
 
5598
 
 
5599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5600
fi
 
5601
 
 
5602
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5603
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5604
fi
 
5605
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5606
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5607
if test "$ac_test_CXXFLAGS" = set; then
 
5608
  CXXFLAGS=$ac_save_CXXFLAGS
 
5609
elif test $ac_cv_prog_cxx_g = yes; then
 
5610
  if test "$GXX" = yes; then
 
5611
    CXXFLAGS="-g -O2"
 
5612
  else
 
5613
    CXXFLAGS="-g"
 
5614
  fi
 
5615
else
 
5616
  if test "$GXX" = yes; then
 
5617
    CXXFLAGS="-O2"
 
5618
  else
 
5619
    CXXFLAGS=
 
5620
  fi
 
5621
fi
 
5622
ac_ext=cpp
 
5623
ac_cpp='$CXXCPP $CPPFLAGS'
 
5624
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5625
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5626
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5627
 
 
5628
depcc="$CXX"  am_compiler_list=
 
5629
 
 
5630
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5631
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5632
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5633
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5634
else
 
5635
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5636
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5637
  # making bogus files that we don't know about and never remove.  For
 
5638
  # instance it was reported that on HP-UX the gcc test will end up
 
5639
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5640
  # in D'.
 
5641
  mkdir conftest.dir
 
5642
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5643
  # using a relative directory.
 
5644
  cp "$am_depcomp" conftest.dir
 
5645
  cd conftest.dir
 
5646
  # We will build objects and dependencies in a subdirectory because
 
5647
  # it helps to detect inapplicable dependency modes.  For instance
 
5648
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5649
  # side effect of compilation, but ICC will put the dependencies in
 
5650
  # the current directory while Tru64 will put them in the object
 
5651
  # directory.
 
5652
  mkdir sub
 
5653
 
 
5654
  am_cv_CXX_dependencies_compiler_type=none
 
5655
  if test "$am_compiler_list" = ""; then
 
5656
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5657
  fi
 
5658
  for depmode in $am_compiler_list; do
 
5659
    # Setup a source with many dependencies, because some compilers
 
5660
    # like to wrap large dependency lists on column 80 (with \), and
 
5661
    # we should not choose a depcomp mode which is confused by this.
 
5662
    #
 
5663
    # We need to recreate these files for each test, as the compiler may
 
5664
    # overwrite some of them when testing with obscure command lines.
 
5665
    # This happens at least with the AIX C compiler.
 
5666
    : > sub/conftest.c
 
5667
    for i in 1 2 3 4 5 6; do
 
5668
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5669
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5670
      # Solaris 8's {/usr,}/bin/sh.
 
5671
      touch sub/conftst$i.h
 
5672
    done
 
5673
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5674
 
 
5675
    case $depmode in
 
5676
    nosideeffect)
 
5677
      # after this tag, mechanisms are not by side-effect, so they'll
 
5678
      # only be used when explicitly requested
 
5679
      if test "x$enable_dependency_tracking" = xyes; then
 
5680
        continue
 
5681
      else
 
5682
        break
 
5683
      fi
 
5684
      ;;
 
5685
    none) break ;;
 
5686
    esac
 
5687
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5688
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5689
    # handle `-M -o', and we need to detect this.
 
5690
    if depmode=$depmode \
 
5691
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5692
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5693
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5694
         >/dev/null 2>conftest.err &&
 
5695
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5696
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5697
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5698
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5699
      # icc doesn't choke on unknown options, it will just issue warnings
 
5700
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5701
      # that says an option was ignored or not supported.
 
5702
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5703
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5704
      # The diagnosis changed in icc 8.0:
 
5705
      #   icc: Command line remark: option '-MP' not supported
 
5706
      if (grep 'ignoring option' conftest.err ||
 
5707
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5708
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5709
        break
 
5710
      fi
 
5711
    fi
 
5712
  done
 
5713
 
 
5714
  cd ..
 
5715
  rm -rf conftest.dir
 
5716
else
 
5717
  am_cv_CXX_dependencies_compiler_type=none
 
5718
fi
 
5719
 
 
5720
fi
 
5721
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5722
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5723
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5724
 
 
5725
 if
 
5726
  test "x$enable_dependency_tracking" != xno \
 
5727
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5728
  am__fastdepCXX_TRUE=
 
5729
  am__fastdepCXX_FALSE='#'
 
5730
else
 
5731
  am__fastdepCXX_TRUE='#'
 
5732
  am__fastdepCXX_FALSE=
 
5733
fi
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5739
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5740
    (test "X$CXX" != "Xg++"))) ; then
 
5741
  ac_ext=cpp
 
5742
ac_cpp='$CXXCPP $CPPFLAGS'
 
5743
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5744
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5745
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5746
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5747
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5748
if test -z "$CXXCPP"; then
 
5749
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5750
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5751
else
 
5752
      # Double quotes because CXXCPP needs to be expanded
 
5753
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5754
    do
 
5755
      ac_preproc_ok=false
 
5756
for ac_cxx_preproc_warn_flag in '' yes
 
5757
do
 
5758
  # Use a header file that comes with gcc, so configuring glibc
 
5759
  # with a fresh cross-compiler works.
 
5760
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5761
  # <limits.h> exists even on freestanding compilers.
 
5762
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5763
  # not just through cpp. "Syntax error" is here to catch this case.
 
5764
  cat >conftest.$ac_ext <<_ACEOF
 
5765
/* confdefs.h.  */
 
5766
_ACEOF
 
5767
cat confdefs.h >>conftest.$ac_ext
 
5768
cat >>conftest.$ac_ext <<_ACEOF
 
5769
/* end confdefs.h.  */
 
5770
#ifdef __STDC__
 
5771
# include <limits.h>
 
5772
#else
 
5773
# include <assert.h>
 
5774
#endif
 
5775
                     Syntax error
 
5776
_ACEOF
 
5777
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5778
case "(($ac_try" in
 
5779
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5780
  *) ac_try_echo=$ac_try;;
 
5781
esac
 
5782
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5783
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5784
  ac_status=$?
 
5785
  grep -v '^ *+' conftest.er1 >conftest.err
 
5786
  rm -f conftest.er1
 
5787
  cat conftest.err >&5
 
5788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5789
  (exit $ac_status); } >/dev/null && {
 
5790
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5791
         test ! -s conftest.err
 
5792
       }; then
 
5793
  :
 
5794
else
 
5795
  echo "$as_me: failed program was:" >&5
 
5796
sed 's/^/| /' conftest.$ac_ext >&5
 
5797
 
 
5798
  # Broken: fails on valid input.
 
5799
continue
 
5800
fi
 
5801
 
 
5802
rm -f conftest.err conftest.$ac_ext
 
5803
 
 
5804
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5805
  # can be detected and how.
 
5806
  cat >conftest.$ac_ext <<_ACEOF
 
5807
/* confdefs.h.  */
 
5808
_ACEOF
 
5809
cat confdefs.h >>conftest.$ac_ext
 
5810
cat >>conftest.$ac_ext <<_ACEOF
 
5811
/* end confdefs.h.  */
 
5812
#include <ac_nonexistent.h>
 
5813
_ACEOF
 
5814
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5815
case "(($ac_try" in
 
5816
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5817
  *) ac_try_echo=$ac_try;;
 
5818
esac
 
5819
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5820
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5821
  ac_status=$?
 
5822
  grep -v '^ *+' conftest.er1 >conftest.err
 
5823
  rm -f conftest.er1
 
5824
  cat conftest.err >&5
 
5825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5826
  (exit $ac_status); } >/dev/null && {
 
5827
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5828
         test ! -s conftest.err
 
5829
       }; then
 
5830
  # Broken: success on invalid input.
 
5831
continue
 
5832
else
 
5833
  echo "$as_me: failed program was:" >&5
 
5834
sed 's/^/| /' conftest.$ac_ext >&5
 
5835
 
 
5836
  # Passes both tests.
 
5837
ac_preproc_ok=:
 
5838
break
 
5839
fi
 
5840
 
 
5841
rm -f conftest.err conftest.$ac_ext
 
5842
 
 
5843
done
 
5844
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5845
rm -f conftest.err conftest.$ac_ext
 
5846
if $ac_preproc_ok; then
 
5847
  break
 
5848
fi
 
5849
 
 
5850
    done
 
5851
    ac_cv_prog_CXXCPP=$CXXCPP
 
5852
 
 
5853
fi
 
5854
  CXXCPP=$ac_cv_prog_CXXCPP
 
5855
else
 
5856
  ac_cv_prog_CXXCPP=$CXXCPP
 
5857
fi
 
5858
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5859
echo "${ECHO_T}$CXXCPP" >&6; }
 
5860
ac_preproc_ok=false
 
5861
for ac_cxx_preproc_warn_flag in '' yes
 
5862
do
 
5863
  # Use a header file that comes with gcc, so configuring glibc
 
5864
  # with a fresh cross-compiler works.
 
5865
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5866
  # <limits.h> exists even on freestanding compilers.
 
5867
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5868
  # not just through cpp. "Syntax error" is here to catch this case.
 
5869
  cat >conftest.$ac_ext <<_ACEOF
 
5870
/* confdefs.h.  */
 
5871
_ACEOF
 
5872
cat confdefs.h >>conftest.$ac_ext
 
5873
cat >>conftest.$ac_ext <<_ACEOF
 
5874
/* end confdefs.h.  */
 
5875
#ifdef __STDC__
 
5876
# include <limits.h>
 
5877
#else
 
5878
# include <assert.h>
 
5879
#endif
 
5880
                     Syntax error
 
5881
_ACEOF
 
5882
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5883
case "(($ac_try" in
 
5884
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5885
  *) ac_try_echo=$ac_try;;
 
5886
esac
 
5887
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5888
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5889
  ac_status=$?
 
5890
  grep -v '^ *+' conftest.er1 >conftest.err
 
5891
  rm -f conftest.er1
 
5892
  cat conftest.err >&5
 
5893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5894
  (exit $ac_status); } >/dev/null && {
 
5895
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5896
         test ! -s conftest.err
 
5897
       }; then
 
5898
  :
 
5899
else
 
5900
  echo "$as_me: failed program was:" >&5
 
5901
sed 's/^/| /' conftest.$ac_ext >&5
 
5902
 
 
5903
  # Broken: fails on valid input.
 
5904
continue
 
5905
fi
 
5906
 
 
5907
rm -f conftest.err conftest.$ac_ext
 
5908
 
 
5909
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5910
  # can be detected and how.
 
5911
  cat >conftest.$ac_ext <<_ACEOF
 
5912
/* confdefs.h.  */
 
5913
_ACEOF
 
5914
cat confdefs.h >>conftest.$ac_ext
 
5915
cat >>conftest.$ac_ext <<_ACEOF
 
5916
/* end confdefs.h.  */
 
5917
#include <ac_nonexistent.h>
 
5918
_ACEOF
 
5919
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5920
case "(($ac_try" in
 
5921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5922
  *) ac_try_echo=$ac_try;;
 
5923
esac
 
5924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5925
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5926
  ac_status=$?
 
5927
  grep -v '^ *+' conftest.er1 >conftest.err
 
5928
  rm -f conftest.er1
 
5929
  cat conftest.err >&5
 
5930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5931
  (exit $ac_status); } >/dev/null && {
 
5932
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5933
         test ! -s conftest.err
 
5934
       }; then
 
5935
  # Broken: success on invalid input.
 
5936
continue
 
5937
else
 
5938
  echo "$as_me: failed program was:" >&5
 
5939
sed 's/^/| /' conftest.$ac_ext >&5
 
5940
 
 
5941
  # Passes both tests.
 
5942
ac_preproc_ok=:
 
5943
break
 
5944
fi
 
5945
 
 
5946
rm -f conftest.err conftest.$ac_ext
 
5947
 
 
5948
done
 
5949
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5950
rm -f conftest.err conftest.$ac_ext
 
5951
if $ac_preproc_ok; then
 
5952
  :
 
5953
else
 
5954
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5955
See \`config.log' for more details." >&5
 
5956
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5957
See \`config.log' for more details." >&2;}
 
5958
   { (exit 1); exit 1; }; }
 
5959
fi
 
5960
 
 
5961
ac_ext=cpp
 
5962
ac_cpp='$CXXCPP $CPPFLAGS'
 
5963
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5964
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5965
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5966
 
 
5967
fi
 
5968
 
 
5969
 
 
5970
ac_ext=f
 
5971
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5972
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5973
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5974
if test -n "$ac_tool_prefix"; then
 
5975
  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
 
5976
  do
 
5977
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5978
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5979
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5980
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5981
if test "${ac_cv_prog_F77+set}" = set; then
 
5982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5983
else
 
5984
  if test -n "$F77"; then
 
5985
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5986
else
 
5987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5988
for as_dir in $PATH
 
5989
do
 
5990
  IFS=$as_save_IFS
 
5991
  test -z "$as_dir" && as_dir=.
 
5992
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5993
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5994
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5995
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5996
    break 2
 
5997
  fi
 
5998
done
 
5999
done
 
6000
IFS=$as_save_IFS
 
6001
 
 
6002
fi
 
6003
fi
 
6004
F77=$ac_cv_prog_F77
 
6005
if test -n "$F77"; then
 
6006
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6007
echo "${ECHO_T}$F77" >&6; }
 
6008
else
 
6009
  { echo "$as_me:$LINENO: result: no" >&5
 
6010
echo "${ECHO_T}no" >&6; }
 
6011
fi
 
6012
 
 
6013
 
 
6014
    test -n "$F77" && break
 
6015
  done
 
6016
fi
 
6017
if test -z "$F77"; then
 
6018
  ac_ct_F77=$F77
 
6019
  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
 
6020
do
 
6021
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6022
set dummy $ac_prog; ac_word=$2
 
6023
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6025
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6027
else
 
6028
  if test -n "$ac_ct_F77"; then
 
6029
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6030
else
 
6031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6032
for as_dir in $PATH
 
6033
do
 
6034
  IFS=$as_save_IFS
 
6035
  test -z "$as_dir" && as_dir=.
 
6036
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6038
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6039
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6040
    break 2
 
6041
  fi
 
6042
done
 
6043
done
 
6044
IFS=$as_save_IFS
 
6045
 
 
6046
fi
 
6047
fi
 
6048
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6049
if test -n "$ac_ct_F77"; then
 
6050
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6051
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6052
else
 
6053
  { echo "$as_me:$LINENO: result: no" >&5
 
6054
echo "${ECHO_T}no" >&6; }
 
6055
fi
 
6056
 
 
6057
 
 
6058
  test -n "$ac_ct_F77" && break
 
6059
done
 
6060
 
 
6061
  if test "x$ac_ct_F77" = x; then
 
6062
    F77=""
 
6063
  else
 
6064
    case $cross_compiling:$ac_tool_warned in
 
6065
yes:)
 
6066
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6067
whose name does not start with the host triplet.  If you think this
 
6068
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6069
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6070
whose name does not start with the host triplet.  If you think this
 
6071
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6072
ac_tool_warned=yes ;;
 
6073
esac
 
6074
    F77=$ac_ct_F77
 
6075
  fi
 
6076
fi
 
6077
 
 
6078
 
 
6079
# Provide some information about the compiler.
 
6080
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6081
ac_compiler=`set X $ac_compile; echo $2`
 
6082
{ (ac_try="$ac_compiler --version >&5"
 
6083
case "(($ac_try" in
 
6084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6085
  *) ac_try_echo=$ac_try;;
 
6086
esac
 
6087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6088
  (eval "$ac_compiler --version >&5") 2>&5
 
6089
  ac_status=$?
 
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6091
  (exit $ac_status); }
 
6092
{ (ac_try="$ac_compiler -v >&5"
 
6093
case "(($ac_try" in
 
6094
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6095
  *) ac_try_echo=$ac_try;;
 
6096
esac
 
6097
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6098
  (eval "$ac_compiler -v >&5") 2>&5
 
6099
  ac_status=$?
 
6100
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6101
  (exit $ac_status); }
 
6102
{ (ac_try="$ac_compiler -V >&5"
 
6103
case "(($ac_try" in
 
6104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6105
  *) ac_try_echo=$ac_try;;
 
6106
esac
 
6107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6108
  (eval "$ac_compiler -V >&5") 2>&5
 
6109
  ac_status=$?
 
6110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6111
  (exit $ac_status); }
 
6112
rm -f a.out
 
6113
 
 
6114
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6115
# input file.  (Note that this only needs to work for GNU compilers.)
 
6116
ac_save_ext=$ac_ext
 
6117
ac_ext=F
 
6118
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6119
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6120
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6122
else
 
6123
  cat >conftest.$ac_ext <<_ACEOF
 
6124
      program main
 
6125
#ifndef __GNUC__
 
6126
       choke me
 
6127
#endif
 
6128
 
 
6129
      end
 
6130
_ACEOF
 
6131
rm -f conftest.$ac_objext
 
6132
if { (ac_try="$ac_compile"
 
6133
case "(($ac_try" in
 
6134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6135
  *) ac_try_echo=$ac_try;;
 
6136
esac
 
6137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6138
  (eval "$ac_compile") 2>conftest.er1
 
6139
  ac_status=$?
 
6140
  grep -v '^ *+' conftest.er1 >conftest.err
 
6141
  rm -f conftest.er1
 
6142
  cat conftest.err >&5
 
6143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6144
  (exit $ac_status); } && {
 
6145
         test -z "$ac_f77_werror_flag" ||
 
6146
         test ! -s conftest.err
 
6147
       } && test -s conftest.$ac_objext; then
 
6148
  ac_compiler_gnu=yes
 
6149
else
 
6150
  echo "$as_me: failed program was:" >&5
 
6151
sed 's/^/| /' conftest.$ac_ext >&5
 
6152
 
 
6153
        ac_compiler_gnu=no
 
6154
fi
 
6155
 
 
6156
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6157
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6158
 
 
6159
fi
 
6160
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6161
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6162
ac_ext=$ac_save_ext
 
6163
ac_test_FFLAGS=${FFLAGS+set}
 
6164
ac_save_FFLAGS=$FFLAGS
 
6165
FFLAGS=
 
6166
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6167
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6168
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6170
else
 
6171
  FFLAGS=-g
 
6172
cat >conftest.$ac_ext <<_ACEOF
 
6173
      program main
 
6174
 
 
6175
      end
 
6176
_ACEOF
 
6177
rm -f conftest.$ac_objext
 
6178
if { (ac_try="$ac_compile"
 
6179
case "(($ac_try" in
 
6180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6181
  *) ac_try_echo=$ac_try;;
 
6182
esac
 
6183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6184
  (eval "$ac_compile") 2>conftest.er1
 
6185
  ac_status=$?
 
6186
  grep -v '^ *+' conftest.er1 >conftest.err
 
6187
  rm -f conftest.er1
 
6188
  cat conftest.err >&5
 
6189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6190
  (exit $ac_status); } && {
 
6191
         test -z "$ac_f77_werror_flag" ||
 
6192
         test ! -s conftest.err
 
6193
       } && test -s conftest.$ac_objext; then
 
6194
  ac_cv_prog_f77_g=yes
 
6195
else
 
6196
  echo "$as_me: failed program was:" >&5
 
6197
sed 's/^/| /' conftest.$ac_ext >&5
 
6198
 
 
6199
        ac_cv_prog_f77_g=no
 
6200
fi
 
6201
 
 
6202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6203
 
 
6204
fi
 
6205
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6206
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6207
if test "$ac_test_FFLAGS" = set; then
 
6208
  FFLAGS=$ac_save_FFLAGS
 
6209
elif test $ac_cv_prog_f77_g = yes; then
 
6210
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6211
    FFLAGS="-g -O2"
 
6212
  else
 
6213
    FFLAGS="-g"
 
6214
  fi
 
6215
else
 
6216
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6217
    FFLAGS="-O2"
 
6218
  else
 
6219
    FFLAGS=
 
6220
  fi
 
6221
fi
 
6222
 
 
6223
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6224
ac_ext=c
 
6225
ac_cpp='$CPP $CPPFLAGS'
 
6226
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6227
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6228
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6229
 
 
6230
 
 
6231
 
 
6232
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6233
 
 
6234
# find the maximum length of command line arguments
 
6235
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6236
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6237
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6239
else
 
6240
    i=0
 
6241
  teststring="ABCD"
 
6242
 
 
6243
  case $build_os in
 
6244
  msdosdjgpp*)
 
6245
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6246
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6247
    # during glob expansion).  Even if it were fixed, the result of this
 
6248
    # check would be larger than it should be.
 
6249
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6250
    ;;
 
6251
 
 
6252
  gnu*)
 
6253
    # Under GNU Hurd, this test is not required because there is
 
6254
    # no limit to the length of command line arguments.
 
6255
    # Libtool will interpret -1 as no limit whatsoever
 
6256
    lt_cv_sys_max_cmd_len=-1;
 
6257
    ;;
 
6258
 
 
6259
  cygwin* | mingw*)
 
6260
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6261
    # about 5 minutes as the teststring grows exponentially.
 
6262
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6263
    # you end up with a "frozen" computer, even though with patience
 
6264
    # the test eventually succeeds (with a max line length of 256k).
 
6265
    # Instead, let's just punt: use the minimum linelength reported by
 
6266
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6267
    lt_cv_sys_max_cmd_len=8192;
 
6268
    ;;
 
6269
 
 
6270
  amigaos*)
 
6271
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6272
    # So we just punt and use a minimum line length of 8192.
 
6273
    lt_cv_sys_max_cmd_len=8192;
 
6274
    ;;
 
6275
 
 
6276
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6277
    # This has been around since 386BSD, at least.  Likely further.
 
6278
    if test -x /sbin/sysctl; then
 
6279
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6280
    elif test -x /usr/sbin/sysctl; then
 
6281
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6282
    else
 
6283
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6284
    fi
 
6285
    # And add a safety zone
 
6286
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6287
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6288
    ;;
 
6289
 
 
6290
  interix*)
 
6291
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6292
    lt_cv_sys_max_cmd_len=196608
 
6293
    ;;
 
6294
 
 
6295
  osf*)
 
6296
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6297
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6298
    # nice to cause kernel panics so lets avoid the loop below.
 
6299
    # First set a reasonable default.
 
6300
    lt_cv_sys_max_cmd_len=16384
 
6301
    #
 
6302
    if test -x /sbin/sysconfig; then
 
6303
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6304
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6305
      esac
 
6306
    fi
 
6307
    ;;
 
6308
  sco3.2v5*)
 
6309
    lt_cv_sys_max_cmd_len=102400
 
6310
    ;;
 
6311
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6312
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6313
    if test -n "$kargmax"; then
 
6314
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6315
    else
 
6316
      lt_cv_sys_max_cmd_len=32768
 
6317
    fi
 
6318
    ;;
 
6319
  *)
 
6320
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6321
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6322
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6323
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6324
    else
 
6325
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6326
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6327
               = "XX$teststring") >/dev/null 2>&1 &&
 
6328
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6329
              lt_cv_sys_max_cmd_len=$new_result &&
 
6330
              test $i != 17 # 1/2 MB should be enough
 
6331
      do
 
6332
        i=`expr $i + 1`
 
6333
        teststring=$teststring$teststring
 
6334
      done
 
6335
      teststring=
 
6336
      # Add a significant safety factor because C++ compilers can tack on massive
 
6337
      # amounts of additional arguments before passing them to the linker.
 
6338
      # It appears as though 1/2 is a usable value.
 
6339
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6340
    fi
 
6341
    ;;
 
6342
  esac
 
6343
 
 
6344
fi
 
6345
 
 
6346
if test -n $lt_cv_sys_max_cmd_len ; then
 
6347
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6348
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6349
else
 
6350
  { echo "$as_me:$LINENO: result: none" >&5
 
6351
echo "${ECHO_T}none" >&6; }
 
6352
fi
 
6353
 
 
6354
 
 
6355
 
 
6356
 
 
6357
 
 
6358
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6359
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6360
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6361
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6362
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6363
else
 
6364
 
 
6365
# These are sane defaults that work on at least a few old systems.
 
6366
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6367
 
 
6368
# Character class describing NM global symbol codes.
 
6369
symcode='[BCDEGRST]'
 
6370
 
 
6371
# Regexp to match symbols that can be accessed directly from C.
 
6372
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6373
 
 
6374
# Transform an extracted symbol line into a proper C declaration
 
6375
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6376
 
 
6377
# Transform an extracted symbol line into symbol name and symbol address
 
6378
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'"
 
6379
 
 
6380
# Define system-specific variables.
 
6381
case $host_os in
 
6382
aix*)
 
6383
  symcode='[BCDT]'
 
6384
  ;;
 
6385
cygwin* | mingw* | pw32*)
 
6386
  symcode='[ABCDGISTW]'
 
6387
  ;;
 
6388
hpux*) # Its linker distinguishes data from code symbols
 
6389
  if test "$host_cpu" = ia64; then
 
6390
    symcode='[ABCDEGRST]'
 
6391
  fi
 
6392
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6393
  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'"
 
6394
  ;;
 
6395
linux* | k*bsd*-gnu)
 
6396
  if test "$host_cpu" = ia64; then
 
6397
    symcode='[ABCDGIRSTW]'
 
6398
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6399
    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'"
 
6400
  fi
 
6401
  ;;
 
6402
irix* | nonstopux*)
 
6403
  symcode='[BCDEGRST]'
 
6404
  ;;
 
6405
osf*)
 
6406
  symcode='[BCDEGQRST]'
 
6407
  ;;
 
6408
solaris*)
 
6409
  symcode='[BDRT]'
 
6410
  ;;
 
6411
sco3.2v5*)
 
6412
  symcode='[DT]'
 
6413
  ;;
 
6414
sysv4.2uw2*)
 
6415
  symcode='[DT]'
 
6416
  ;;
 
6417
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6418
  symcode='[ABDT]'
 
6419
  ;;
 
6420
sysv4)
 
6421
  symcode='[DFNSTU]'
 
6422
  ;;
 
6423
esac
 
6424
 
 
6425
# Handle CRLF in mingw tool chain
 
6426
opt_cr=
 
6427
case $build_os in
 
6428
mingw*)
 
6429
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6430
  ;;
 
6431
esac
 
6432
 
 
6433
# If we're using GNU nm, then use its standard symbol codes.
 
6434
case `$NM -V 2>&1` in
 
6435
*GNU* | *'with BFD'*)
 
6436
  symcode='[ABCDGIRSTW]' ;;
 
6437
esac
 
6438
 
 
6439
# Try without a prefix undercore, then with it.
 
6440
for ac_symprfx in "" "_"; do
 
6441
 
 
6442
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6443
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6444
 
 
6445
  # Write the raw and C identifiers.
 
6446
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6447
 
 
6448
  # Check to see that the pipe works correctly.
 
6449
  pipe_works=no
 
6450
 
 
6451
  rm -f conftest*
 
6452
  cat > conftest.$ac_ext <<EOF
 
6453
#ifdef __cplusplus
 
6454
extern "C" {
 
6455
#endif
 
6456
char nm_test_var;
 
6457
void nm_test_func(){}
 
6458
#ifdef __cplusplus
 
6459
}
 
6460
#endif
 
6461
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6462
EOF
 
6463
 
 
6464
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6465
  (eval $ac_compile) 2>&5
 
6466
  ac_status=$?
 
6467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6468
  (exit $ac_status); }; then
 
6469
    # Now try to grab the symbols.
 
6470
    nlist=conftest.nm
 
6471
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6472
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6473
  ac_status=$?
 
6474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6475
  (exit $ac_status); } && test -s "$nlist"; then
 
6476
      # Try sorting and uniquifying the output.
 
6477
      if sort "$nlist" | uniq > "$nlist"T; then
 
6478
        mv -f "$nlist"T "$nlist"
 
6479
      else
 
6480
        rm -f "$nlist"T
 
6481
      fi
 
6482
 
 
6483
      # Make sure that we snagged all the symbols we need.
 
6484
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6485
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6486
          cat <<EOF > conftest.$ac_ext
 
6487
#ifdef __cplusplus
 
6488
extern "C" {
 
6489
#endif
 
6490
 
 
6491
EOF
 
6492
          # Now generate the symbol file.
 
6493
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6494
 
 
6495
          cat <<EOF >> conftest.$ac_ext
 
6496
#if defined (__STDC__) && __STDC__
 
6497
# define lt_ptr_t void *
 
6498
#else
 
6499
# define lt_ptr_t char *
 
6500
# define const
 
6501
#endif
 
6502
 
 
6503
/* The mapping between symbol names and symbols. */
 
6504
const struct {
 
6505
  const char *name;
 
6506
  lt_ptr_t address;
 
6507
}
 
6508
lt_preloaded_symbols[] =
 
6509
{
 
6510
EOF
 
6511
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6512
          cat <<\EOF >> conftest.$ac_ext
 
6513
  {0, (lt_ptr_t) 0}
 
6514
};
 
6515
 
 
6516
#ifdef __cplusplus
 
6517
}
 
6518
#endif
 
6519
EOF
 
6520
          # Now try linking the two files.
 
6521
          mv conftest.$ac_objext conftstm.$ac_objext
 
6522
          lt_save_LIBS="$LIBS"
 
6523
          lt_save_CFLAGS="$CFLAGS"
 
6524
          LIBS="conftstm.$ac_objext"
 
6525
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6526
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6527
  (eval $ac_link) 2>&5
 
6528
  ac_status=$?
 
6529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6530
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6531
            pipe_works=yes
 
6532
          fi
 
6533
          LIBS="$lt_save_LIBS"
 
6534
          CFLAGS="$lt_save_CFLAGS"
 
6535
        else
 
6536
          echo "cannot find nm_test_func in $nlist" >&5
 
6537
        fi
 
6538
      else
 
6539
        echo "cannot find nm_test_var in $nlist" >&5
 
6540
      fi
 
6541
    else
 
6542
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6543
    fi
 
6544
  else
 
6545
    echo "$progname: failed program was:" >&5
 
6546
    cat conftest.$ac_ext >&5
 
6547
  fi
 
6548
  rm -f conftest* conftst*
 
6549
 
 
6550
  # Do not use the global_symbol_pipe unless it works.
 
6551
  if test "$pipe_works" = yes; then
 
6552
    break
 
6553
  else
 
6554
    lt_cv_sys_global_symbol_pipe=
 
6555
  fi
 
6556
done
 
6557
 
 
6558
fi
 
6559
 
 
6560
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6561
  lt_cv_sys_global_symbol_to_cdecl=
 
6562
fi
 
6563
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6564
  { echo "$as_me:$LINENO: result: failed" >&5
 
6565
echo "${ECHO_T}failed" >&6; }
 
6566
else
 
6567
  { echo "$as_me:$LINENO: result: ok" >&5
 
6568
echo "${ECHO_T}ok" >&6; }
 
6569
fi
 
6570
 
 
6571
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6572
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6573
if test "${lt_cv_objdir+set}" = set; then
 
6574
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6575
else
 
6576
  rm -f .libs 2>/dev/null
 
6577
mkdir .libs 2>/dev/null
 
6578
if test -d .libs; then
 
6579
  lt_cv_objdir=.libs
 
6580
else
 
6581
  # MS-DOS does not allow filenames that begin with a dot.
 
6582
  lt_cv_objdir=_libs
 
6583
fi
 
6584
rmdir .libs 2>/dev/null
 
6585
fi
 
6586
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6587
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6588
objdir=$lt_cv_objdir
 
6589
 
 
6590
 
 
6591
 
 
6592
 
 
6593
 
 
6594
case $host_os in
 
6595
aix3*)
 
6596
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6597
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6598
  # vanish in a puff of smoke.
 
6599
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6600
    COLLECT_NAMES=
 
6601
    export COLLECT_NAMES
 
6602
  fi
 
6603
  ;;
 
6604
esac
 
6605
 
 
6606
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6607
# metacharacters that are still active within double-quoted strings.
 
6608
Xsed='sed -e 1s/^X//'
 
6609
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6610
 
 
6611
# Same as above, but do not quote variable references.
 
6612
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6613
 
 
6614
# Sed substitution to delay expansion of an escaped shell variable in a
 
6615
# double_quote_subst'ed string.
 
6616
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6617
 
 
6618
# Sed substitution to avoid accidental globbing in evaled expressions
 
6619
no_glob_subst='s/\*/\\\*/g'
 
6620
 
 
6621
# Constants:
 
6622
rm="rm -f"
 
6623
 
 
6624
# Global variables:
 
6625
default_ofile=libtool
 
6626
can_build_shared=yes
 
6627
 
 
6628
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6629
# which needs '.lib').
 
6630
libext=a
 
6631
ltmain="$ac_aux_dir/ltmain.sh"
 
6632
ofile="$default_ofile"
 
6633
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6634
 
 
6635
if test -n "$ac_tool_prefix"; then
 
6636
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6637
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6638
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6639
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6640
if test "${ac_cv_prog_AR+set}" = set; then
 
6641
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6642
else
 
6643
  if test -n "$AR"; then
 
6644
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6645
else
 
6646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6647
for as_dir in $PATH
 
6648
do
 
6649
  IFS=$as_save_IFS
 
6650
  test -z "$as_dir" && as_dir=.
 
6651
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6652
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6653
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6654
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6655
    break 2
 
6656
  fi
 
6657
done
 
6658
done
 
6659
IFS=$as_save_IFS
 
6660
 
 
6661
fi
 
6662
fi
 
6663
AR=$ac_cv_prog_AR
 
6664
if test -n "$AR"; then
 
6665
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6666
echo "${ECHO_T}$AR" >&6; }
 
6667
else
 
6668
  { echo "$as_me:$LINENO: result: no" >&5
 
6669
echo "${ECHO_T}no" >&6; }
 
6670
fi
 
6671
 
 
6672
 
 
6673
fi
 
6674
if test -z "$ac_cv_prog_AR"; then
 
6675
  ac_ct_AR=$AR
 
6676
  # Extract the first word of "ar", so it can be a program name with args.
 
6677
set dummy ar; ac_word=$2
 
6678
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6679
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6680
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6681
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6682
else
 
6683
  if test -n "$ac_ct_AR"; then
 
6684
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6685
else
 
6686
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6687
for as_dir in $PATH
 
6688
do
 
6689
  IFS=$as_save_IFS
 
6690
  test -z "$as_dir" && as_dir=.
 
6691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6692
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6693
    ac_cv_prog_ac_ct_AR="ar"
 
6694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6695
    break 2
 
6696
  fi
 
6697
done
 
6698
done
 
6699
IFS=$as_save_IFS
 
6700
 
 
6701
fi
 
6702
fi
 
6703
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6704
if test -n "$ac_ct_AR"; then
 
6705
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6706
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6707
else
 
6708
  { echo "$as_me:$LINENO: result: no" >&5
 
6709
echo "${ECHO_T}no" >&6; }
 
6710
fi
 
6711
 
 
6712
  if test "x$ac_ct_AR" = x; then
 
6713
    AR="false"
 
6714
  else
 
6715
    case $cross_compiling:$ac_tool_warned in
 
6716
yes:)
 
6717
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6718
whose name does not start with the host triplet.  If you think this
 
6719
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6720
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6721
whose name does not start with the host triplet.  If you think this
 
6722
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6723
ac_tool_warned=yes ;;
 
6724
esac
 
6725
    AR=$ac_ct_AR
 
6726
  fi
 
6727
else
 
6728
  AR="$ac_cv_prog_AR"
 
6729
fi
 
6730
 
 
6731
if test -n "$ac_tool_prefix"; then
 
6732
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6733
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6734
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6735
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6736
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6737
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6738
else
 
6739
  if test -n "$RANLIB"; then
 
6740
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6741
else
 
6742
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6743
for as_dir in $PATH
 
6744
do
 
6745
  IFS=$as_save_IFS
 
6746
  test -z "$as_dir" && as_dir=.
 
6747
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6748
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6749
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6750
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6751
    break 2
 
6752
  fi
 
6753
done
 
6754
done
 
6755
IFS=$as_save_IFS
 
6756
 
 
6757
fi
 
6758
fi
 
6759
RANLIB=$ac_cv_prog_RANLIB
 
6760
if test -n "$RANLIB"; then
 
6761
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6762
echo "${ECHO_T}$RANLIB" >&6; }
 
6763
else
 
6764
  { echo "$as_me:$LINENO: result: no" >&5
 
6765
echo "${ECHO_T}no" >&6; }
 
6766
fi
 
6767
 
 
6768
 
 
6769
fi
 
6770
if test -z "$ac_cv_prog_RANLIB"; then
 
6771
  ac_ct_RANLIB=$RANLIB
 
6772
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6773
set dummy ranlib; ac_word=$2
 
6774
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6776
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6778
else
 
6779
  if test -n "$ac_ct_RANLIB"; then
 
6780
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6781
else
 
6782
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6783
for as_dir in $PATH
 
6784
do
 
6785
  IFS=$as_save_IFS
 
6786
  test -z "$as_dir" && as_dir=.
 
6787
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6788
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6789
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6790
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6791
    break 2
 
6792
  fi
 
6793
done
 
6794
done
 
6795
IFS=$as_save_IFS
 
6796
 
 
6797
fi
 
6798
fi
 
6799
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6800
if test -n "$ac_ct_RANLIB"; then
 
6801
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6802
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6803
else
 
6804
  { echo "$as_me:$LINENO: result: no" >&5
 
6805
echo "${ECHO_T}no" >&6; }
 
6806
fi
 
6807
 
 
6808
  if test "x$ac_ct_RANLIB" = x; then
 
6809
    RANLIB=":"
 
6810
  else
 
6811
    case $cross_compiling:$ac_tool_warned in
 
6812
yes:)
 
6813
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6814
whose name does not start with the host triplet.  If you think this
 
6815
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6816
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6817
whose name does not start with the host triplet.  If you think this
 
6818
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6819
ac_tool_warned=yes ;;
 
6820
esac
 
6821
    RANLIB=$ac_ct_RANLIB
 
6822
  fi
 
6823
else
 
6824
  RANLIB="$ac_cv_prog_RANLIB"
 
6825
fi
 
6826
 
 
6827
if test -n "$ac_tool_prefix"; then
 
6828
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6829
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6830
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6832
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6834
else
 
6835
  if test -n "$STRIP"; then
 
6836
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6837
else
 
6838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6839
for as_dir in $PATH
 
6840
do
 
6841
  IFS=$as_save_IFS
 
6842
  test -z "$as_dir" && as_dir=.
 
6843
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6844
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6845
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6846
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6847
    break 2
 
6848
  fi
 
6849
done
 
6850
done
 
6851
IFS=$as_save_IFS
 
6852
 
 
6853
fi
 
6854
fi
 
6855
STRIP=$ac_cv_prog_STRIP
 
6856
if test -n "$STRIP"; then
 
6857
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6858
echo "${ECHO_T}$STRIP" >&6; }
 
6859
else
 
6860
  { echo "$as_me:$LINENO: result: no" >&5
 
6861
echo "${ECHO_T}no" >&6; }
 
6862
fi
 
6863
 
 
6864
 
 
6865
fi
 
6866
if test -z "$ac_cv_prog_STRIP"; then
 
6867
  ac_ct_STRIP=$STRIP
 
6868
  # Extract the first word of "strip", so it can be a program name with args.
 
6869
set dummy strip; ac_word=$2
 
6870
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6871
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6872
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6873
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6874
else
 
6875
  if test -n "$ac_ct_STRIP"; then
 
6876
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6877
else
 
6878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6879
for as_dir in $PATH
 
6880
do
 
6881
  IFS=$as_save_IFS
 
6882
  test -z "$as_dir" && as_dir=.
 
6883
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6884
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6885
    ac_cv_prog_ac_ct_STRIP="strip"
 
6886
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6887
    break 2
 
6888
  fi
 
6889
done
 
6890
done
 
6891
IFS=$as_save_IFS
 
6892
 
 
6893
fi
 
6894
fi
 
6895
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6896
if test -n "$ac_ct_STRIP"; then
 
6897
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6898
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6899
else
 
6900
  { echo "$as_me:$LINENO: result: no" >&5
 
6901
echo "${ECHO_T}no" >&6; }
 
6902
fi
 
6903
 
 
6904
  if test "x$ac_ct_STRIP" = x; then
 
6905
    STRIP=":"
 
6906
  else
 
6907
    case $cross_compiling:$ac_tool_warned in
 
6908
yes:)
 
6909
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6910
whose name does not start with the host triplet.  If you think this
 
6911
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6912
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6913
whose name does not start with the host triplet.  If you think this
 
6914
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6915
ac_tool_warned=yes ;;
 
6916
esac
 
6917
    STRIP=$ac_ct_STRIP
 
6918
  fi
 
6919
else
 
6920
  STRIP="$ac_cv_prog_STRIP"
 
6921
fi
 
6922
 
 
6923
 
 
6924
old_CC="$CC"
 
6925
old_CFLAGS="$CFLAGS"
 
6926
 
 
6927
# Set sane defaults for various variables
 
6928
test -z "$AR" && AR=ar
 
6929
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6930
test -z "$AS" && AS=as
 
6931
test -z "$CC" && CC=cc
 
6932
test -z "$LTCC" && LTCC=$CC
 
6933
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6934
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6935
test -z "$LD" && LD=ld
 
6936
test -z "$LN_S" && LN_S="ln -s"
 
6937
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6938
test -z "$NM" && NM=nm
 
6939
test -z "$SED" && SED=sed
 
6940
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6941
test -z "$RANLIB" && RANLIB=:
 
6942
test -z "$STRIP" && STRIP=:
 
6943
test -z "$ac_objext" && ac_objext=o
 
6944
 
 
6945
# Determine commands to create old-style static archives.
 
6946
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6947
old_postinstall_cmds='chmod 644 $oldlib'
 
6948
old_postuninstall_cmds=
 
6949
 
 
6950
if test -n "$RANLIB"; then
 
6951
  case $host_os in
 
6952
  openbsd*)
 
6953
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6954
    ;;
 
6955
  *)
 
6956
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6957
    ;;
 
6958
  esac
 
6959
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6960
fi
 
6961
 
 
6962
for cc_temp in $compiler""; do
 
6963
  case $cc_temp in
 
6964
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6965
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6966
    \-*) ;;
 
6967
    *) break;;
 
6968
  esac
 
6969
done
 
6970
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6971
 
 
6972
 
 
6973
# Only perform the check for file, if the check method requires it
 
6974
case $deplibs_check_method in
 
6975
file_magic*)
 
6976
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6977
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6978
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6979
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6980
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6981
else
 
6982
  case $MAGIC_CMD in
 
6983
[\\/*] |  ?:[\\/]*)
 
6984
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6985
  ;;
 
6986
*)
 
6987
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6988
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6989
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6990
  for ac_dir in $ac_dummy; do
 
6991
    IFS="$lt_save_ifs"
 
6992
    test -z "$ac_dir" && ac_dir=.
 
6993
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6994
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6995
      if test -n "$file_magic_test_file"; then
 
6996
        case $deplibs_check_method in
 
6997
        "file_magic "*)
 
6998
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6999
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7000
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7001
            $EGREP "$file_magic_regex" > /dev/null; then
 
7002
            :
 
7003
          else
 
7004
            cat <<EOF 1>&2
 
7005
 
 
7006
*** Warning: the command libtool uses to detect shared libraries,
 
7007
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7008
*** The result is that libtool may fail to recognize shared libraries
 
7009
*** as such.  This will affect the creation of libtool libraries that
 
7010
*** depend on shared libraries, but programs linked with such libtool
 
7011
*** libraries will work regardless of this problem.  Nevertheless, you
 
7012
*** may want to report the problem to your system manager and/or to
 
7013
*** bug-libtool@gnu.org
 
7014
 
 
7015
EOF
 
7016
          fi ;;
 
7017
        esac
 
7018
      fi
 
7019
      break
 
7020
    fi
 
7021
  done
 
7022
  IFS="$lt_save_ifs"
 
7023
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7024
  ;;
 
7025
esac
 
7026
fi
 
7027
 
 
7028
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7029
if test -n "$MAGIC_CMD"; then
 
7030
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7031
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7032
else
 
7033
  { echo "$as_me:$LINENO: result: no" >&5
 
7034
echo "${ECHO_T}no" >&6; }
 
7035
fi
 
7036
 
 
7037
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7038
  if test -n "$ac_tool_prefix"; then
 
7039
    { echo "$as_me:$LINENO: checking for file" >&5
 
7040
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7041
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7043
else
 
7044
  case $MAGIC_CMD in
 
7045
[\\/*] |  ?:[\\/]*)
 
7046
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7047
  ;;
 
7048
*)
 
7049
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7050
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7051
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7052
  for ac_dir in $ac_dummy; do
 
7053
    IFS="$lt_save_ifs"
 
7054
    test -z "$ac_dir" && ac_dir=.
 
7055
    if test -f $ac_dir/file; then
 
7056
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7057
      if test -n "$file_magic_test_file"; then
 
7058
        case $deplibs_check_method in
 
7059
        "file_magic "*)
 
7060
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7061
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7062
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7063
            $EGREP "$file_magic_regex" > /dev/null; then
 
7064
            :
 
7065
          else
 
7066
            cat <<EOF 1>&2
 
7067
 
 
7068
*** Warning: the command libtool uses to detect shared libraries,
 
7069
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7070
*** The result is that libtool may fail to recognize shared libraries
 
7071
*** as such.  This will affect the creation of libtool libraries that
 
7072
*** depend on shared libraries, but programs linked with such libtool
 
7073
*** libraries will work regardless of this problem.  Nevertheless, you
 
7074
*** may want to report the problem to your system manager and/or to
 
7075
*** bug-libtool@gnu.org
 
7076
 
 
7077
EOF
 
7078
          fi ;;
 
7079
        esac
 
7080
      fi
 
7081
      break
 
7082
    fi
 
7083
  done
 
7084
  IFS="$lt_save_ifs"
 
7085
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7086
  ;;
 
7087
esac
 
7088
fi
 
7089
 
 
7090
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7091
if test -n "$MAGIC_CMD"; then
 
7092
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7093
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7094
else
 
7095
  { echo "$as_me:$LINENO: result: no" >&5
 
7096
echo "${ECHO_T}no" >&6; }
 
7097
fi
 
7098
 
 
7099
  else
 
7100
    MAGIC_CMD=:
 
7101
  fi
 
7102
fi
 
7103
 
 
7104
  fi
 
7105
  ;;
 
7106
esac
 
7107
 
 
7108
enable_dlopen=no
 
7109
enable_win32_dll=no
 
7110
 
 
7111
# Check whether --enable-libtool-lock was given.
 
7112
if test "${enable_libtool_lock+set}" = set; then
 
7113
  enableval=$enable_libtool_lock;
 
7114
fi
 
7115
 
 
7116
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7117
 
 
7118
 
 
7119
# Check whether --with-pic was given.
 
7120
if test "${with_pic+set}" = set; then
 
7121
  withval=$with_pic; pic_mode="$withval"
 
7122
else
 
7123
  pic_mode=default
 
7124
fi
 
7125
 
 
7126
test -z "$pic_mode" && pic_mode=default
 
7127
 
 
7128
# Use C for the default configuration in the libtool script
 
7129
tagname=
 
7130
lt_save_CC="$CC"
 
7131
ac_ext=c
 
7132
ac_cpp='$CPP $CPPFLAGS'
 
7133
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7134
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7135
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7136
 
 
7137
 
 
7138
# Source file extension for C test sources.
 
7139
ac_ext=c
 
7140
 
 
7141
# Object file extension for compiled C test sources.
 
7142
objext=o
 
7143
objext=$objext
 
7144
 
 
7145
# Code to be used in simple compile tests
 
7146
lt_simple_compile_test_code="int some_variable = 0;"
 
7147
 
 
7148
# Code to be used in simple link tests
 
7149
lt_simple_link_test_code='int main(){return(0);}'
 
7150
 
 
7151
 
 
7152
# If no C compiler was specified, use CC.
 
7153
LTCC=${LTCC-"$CC"}
 
7154
 
 
7155
# If no C compiler flags were specified, use CFLAGS.
 
7156
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7157
 
 
7158
# Allow CC to be a program name with arguments.
 
7159
compiler=$CC
 
7160
 
 
7161
 
 
7162
# save warnings/boilerplate of simple test code
 
7163
ac_outfile=conftest.$ac_objext
 
7164
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7165
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7166
_lt_compiler_boilerplate=`cat conftest.err`
 
7167
$rm conftest*
 
7168
 
 
7169
ac_outfile=conftest.$ac_objext
 
7170
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7171
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7172
_lt_linker_boilerplate=`cat conftest.err`
 
7173
$rm conftest*
 
7174
 
 
7175
 
 
7176
 
 
7177
lt_prog_compiler_no_builtin_flag=
 
7178
 
 
7179
if test "$GCC" = yes; then
 
7180
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7181
 
 
7182
 
 
7183
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7184
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7185
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7187
else
 
7188
  lt_cv_prog_compiler_rtti_exceptions=no
 
7189
  ac_outfile=conftest.$ac_objext
 
7190
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7191
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7192
   # Insert the option either (1) after the last *FLAGS variable, or
 
7193
   # (2) before a word containing "conftest.", or (3) at the end.
 
7194
   # Note that $ac_compile itself does not contain backslashes and begins
 
7195
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7196
   # The option is referenced via a variable to avoid confusing sed.
 
7197
   lt_compile=`echo "$ac_compile" | $SED \
 
7198
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7199
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7200
   -e 's:$: $lt_compiler_flag:'`
 
7201
   (eval echo "\"\$as_me:7201: $lt_compile\"" >&5)
 
7202
   (eval "$lt_compile" 2>conftest.err)
 
7203
   ac_status=$?
 
7204
   cat conftest.err >&5
 
7205
   echo "$as_me:7205: \$? = $ac_status" >&5
 
7206
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7207
     # The compiler can only warn and ignore the option if not recognized
 
7208
     # So say no if there are warnings other than the usual output.
 
7209
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7210
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7211
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7212
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7213
     fi
 
7214
   fi
 
7215
   $rm conftest*
 
7216
 
 
7217
fi
 
7218
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7219
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7220
 
 
7221
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7222
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7223
else
 
7224
    :
 
7225
fi
 
7226
 
 
7227
fi
 
7228
 
 
7229
lt_prog_compiler_wl=
 
7230
lt_prog_compiler_pic=
 
7231
lt_prog_compiler_static=
 
7232
 
 
7233
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7234
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7235
 
 
7236
  if test "$GCC" = yes; then
 
7237
    lt_prog_compiler_wl='-Wl,'
 
7238
    lt_prog_compiler_static='-static'
 
7239
 
 
7240
    case $host_os in
 
7241
      aix*)
 
7242
      # All AIX code is PIC.
 
7243
      if test "$host_cpu" = ia64; then
 
7244
        # AIX 5 now supports IA64 processor
 
7245
        lt_prog_compiler_static='-Bstatic'
 
7246
      fi
 
7247
      ;;
 
7248
 
 
7249
    amigaos*)
 
7250
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7251
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7252
      # like `-m68040'.
 
7253
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7254
      ;;
 
7255
 
 
7256
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7257
      # PIC is the default for these OSes.
 
7258
      ;;
 
7259
 
 
7260
    mingw* | cygwin* | pw32* | os2*)
 
7261
      # This hack is so that the source file can tell whether it is being
 
7262
      # built for inclusion in a dll (and should export symbols for example).
 
7263
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7264
      # (--disable-auto-import) libraries
 
7265
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7266
      ;;
 
7267
 
 
7268
    darwin* | rhapsody*)
 
7269
      # PIC is the default on this platform
 
7270
      # Common symbols not allowed in MH_DYLIB files
 
7271
      lt_prog_compiler_pic='-fno-common'
 
7272
      ;;
 
7273
 
 
7274
    interix[3-9]*)
 
7275
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7276
      # Instead, we relocate shared libraries at runtime.
 
7277
      ;;
 
7278
 
 
7279
    msdosdjgpp*)
 
7280
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7281
      # on systems that don't support them.
 
7282
      lt_prog_compiler_can_build_shared=no
 
7283
      enable_shared=no
 
7284
      ;;
 
7285
 
 
7286
    sysv4*MP*)
 
7287
      if test -d /usr/nec; then
 
7288
        lt_prog_compiler_pic=-Kconform_pic
 
7289
      fi
 
7290
      ;;
 
7291
 
 
7292
    hpux*)
 
7293
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7294
      # not for PA HP-UX.
 
7295
      case $host_cpu in
 
7296
      hppa*64*|ia64*)
 
7297
        # +Z the default
 
7298
        ;;
 
7299
      *)
 
7300
        lt_prog_compiler_pic='-fPIC'
 
7301
        ;;
 
7302
      esac
 
7303
      ;;
 
7304
 
 
7305
    *)
 
7306
      lt_prog_compiler_pic='-fPIC'
 
7307
      ;;
 
7308
    esac
 
7309
  else
 
7310
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7311
    case $host_os in
 
7312
    aix*)
 
7313
      lt_prog_compiler_wl='-Wl,'
 
7314
      if test "$host_cpu" = ia64; then
 
7315
        # AIX 5 now supports IA64 processor
 
7316
        lt_prog_compiler_static='-Bstatic'
 
7317
      else
 
7318
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7319
      fi
 
7320
      ;;
 
7321
      darwin*)
 
7322
        # PIC is the default on this platform
 
7323
        # Common symbols not allowed in MH_DYLIB files
 
7324
       case $cc_basename in
 
7325
         xlc*)
 
7326
         lt_prog_compiler_pic='-qnocommon'
 
7327
         lt_prog_compiler_wl='-Wl,'
 
7328
         ;;
 
7329
       esac
 
7330
       ;;
 
7331
 
 
7332
    mingw* | cygwin* | pw32* | os2*)
 
7333
      # This hack is so that the source file can tell whether it is being
 
7334
      # built for inclusion in a dll (and should export symbols for example).
 
7335
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7336
      ;;
 
7337
 
 
7338
    hpux9* | hpux10* | hpux11*)
 
7339
      lt_prog_compiler_wl='-Wl,'
 
7340
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7341
      # not for PA HP-UX.
 
7342
      case $host_cpu in
 
7343
      hppa*64*|ia64*)
 
7344
        # +Z the default
 
7345
        ;;
 
7346
      *)
 
7347
        lt_prog_compiler_pic='+Z'
 
7348
        ;;
 
7349
      esac
 
7350
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7351
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7352
      ;;
 
7353
 
 
7354
    irix5* | irix6* | nonstopux*)
 
7355
      lt_prog_compiler_wl='-Wl,'
 
7356
      # PIC (with -KPIC) is the default.
 
7357
      lt_prog_compiler_static='-non_shared'
 
7358
      ;;
 
7359
 
 
7360
    newsos6)
 
7361
      lt_prog_compiler_pic='-KPIC'
 
7362
      lt_prog_compiler_static='-Bstatic'
 
7363
      ;;
 
7364
 
 
7365
    linux* | k*bsd*-gnu)
 
7366
      case $cc_basename in
 
7367
      icc* | ecc*)
 
7368
        lt_prog_compiler_wl='-Wl,'
 
7369
        lt_prog_compiler_pic='-KPIC'
 
7370
        lt_prog_compiler_static='-static'
 
7371
        ;;
 
7372
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7373
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7374
        # which looks to be a dead project)
 
7375
        lt_prog_compiler_wl='-Wl,'
 
7376
        lt_prog_compiler_pic='-fpic'
 
7377
        lt_prog_compiler_static='-Bstatic'
 
7378
        ;;
 
7379
      ccc*)
 
7380
        lt_prog_compiler_wl='-Wl,'
 
7381
        # All Alpha code is PIC.
 
7382
        lt_prog_compiler_static='-non_shared'
 
7383
        ;;
 
7384
      *)
 
7385
        case `$CC -V 2>&1 | sed 5q` in
 
7386
        *Sun\ C*)
 
7387
          # Sun C 5.9
 
7388
          lt_prog_compiler_pic='-KPIC'
 
7389
          lt_prog_compiler_static='-Bstatic'
 
7390
          lt_prog_compiler_wl='-Wl,'
 
7391
          ;;
 
7392
        *Sun\ F*)
 
7393
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7394
          lt_prog_compiler_pic='-KPIC'
 
7395
          lt_prog_compiler_static='-Bstatic'
 
7396
          lt_prog_compiler_wl=''
 
7397
          ;;
 
7398
        esac
 
7399
        ;;
 
7400
      esac
 
7401
      ;;
 
7402
 
 
7403
    osf3* | osf4* | osf5*)
 
7404
      lt_prog_compiler_wl='-Wl,'
 
7405
      # All OSF/1 code is PIC.
 
7406
      lt_prog_compiler_static='-non_shared'
 
7407
      ;;
 
7408
 
 
7409
    rdos*)
 
7410
      lt_prog_compiler_static='-non_shared'
 
7411
      ;;
 
7412
 
 
7413
    solaris*)
 
7414
      lt_prog_compiler_pic='-KPIC'
 
7415
      lt_prog_compiler_static='-Bstatic'
 
7416
      case $cc_basename in
 
7417
      f77* | f90* | f95*)
 
7418
        lt_prog_compiler_wl='-Qoption ld ';;
 
7419
      *)
 
7420
        lt_prog_compiler_wl='-Wl,';;
 
7421
      esac
 
7422
      ;;
 
7423
 
 
7424
    sunos4*)
 
7425
      lt_prog_compiler_wl='-Qoption ld '
 
7426
      lt_prog_compiler_pic='-PIC'
 
7427
      lt_prog_compiler_static='-Bstatic'
 
7428
      ;;
 
7429
 
 
7430
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7431
      lt_prog_compiler_wl='-Wl,'
 
7432
      lt_prog_compiler_pic='-KPIC'
 
7433
      lt_prog_compiler_static='-Bstatic'
 
7434
      ;;
 
7435
 
 
7436
    sysv4*MP*)
 
7437
      if test -d /usr/nec ;then
 
7438
        lt_prog_compiler_pic='-Kconform_pic'
 
7439
        lt_prog_compiler_static='-Bstatic'
 
7440
      fi
 
7441
      ;;
 
7442
 
 
7443
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7444
      lt_prog_compiler_wl='-Wl,'
 
7445
      lt_prog_compiler_pic='-KPIC'
 
7446
      lt_prog_compiler_static='-Bstatic'
 
7447
      ;;
 
7448
 
 
7449
    unicos*)
 
7450
      lt_prog_compiler_wl='-Wl,'
 
7451
      lt_prog_compiler_can_build_shared=no
 
7452
      ;;
 
7453
 
 
7454
    uts4*)
 
7455
      lt_prog_compiler_pic='-pic'
 
7456
      lt_prog_compiler_static='-Bstatic'
 
7457
      ;;
 
7458
 
 
7459
    *)
 
7460
      lt_prog_compiler_can_build_shared=no
 
7461
      ;;
 
7462
    esac
 
7463
  fi
 
7464
 
 
7465
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7466
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7467
 
 
7468
#
 
7469
# Check to make sure the PIC flag actually works.
 
7470
#
 
7471
if test -n "$lt_prog_compiler_pic"; then
 
7472
 
 
7473
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7474
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7475
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7477
else
 
7478
  lt_prog_compiler_pic_works=no
 
7479
  ac_outfile=conftest.$ac_objext
 
7480
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7481
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7482
   # Insert the option either (1) after the last *FLAGS variable, or
 
7483
   # (2) before a word containing "conftest.", or (3) at the end.
 
7484
   # Note that $ac_compile itself does not contain backslashes and begins
 
7485
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7486
   # The option is referenced via a variable to avoid confusing sed.
 
7487
   lt_compile=`echo "$ac_compile" | $SED \
 
7488
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7489
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7490
   -e 's:$: $lt_compiler_flag:'`
 
7491
   (eval echo "\"\$as_me:7491: $lt_compile\"" >&5)
 
7492
   (eval "$lt_compile" 2>conftest.err)
 
7493
   ac_status=$?
 
7494
   cat conftest.err >&5
 
7495
   echo "$as_me:7495: \$? = $ac_status" >&5
 
7496
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7497
     # The compiler can only warn and ignore the option if not recognized
 
7498
     # So say no if there are warnings other than the usual output.
 
7499
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7500
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7501
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7502
       lt_prog_compiler_pic_works=yes
 
7503
     fi
 
7504
   fi
 
7505
   $rm conftest*
 
7506
 
 
7507
fi
 
7508
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7509
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7510
 
 
7511
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7512
    case $lt_prog_compiler_pic in
 
7513
     "" | " "*) ;;
 
7514
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7515
     esac
 
7516
else
 
7517
    lt_prog_compiler_pic=
 
7518
     lt_prog_compiler_can_build_shared=no
 
7519
fi
 
7520
 
 
7521
fi
 
7522
case $host_os in
 
7523
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7524
  *djgpp*)
 
7525
    lt_prog_compiler_pic=
 
7526
    ;;
 
7527
  *)
 
7528
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7529
    ;;
 
7530
esac
 
7531
 
 
7532
#
 
7533
# Check to make sure the static flag actually works.
 
7534
#
 
7535
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7536
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7537
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7538
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7539
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7540
else
 
7541
  lt_prog_compiler_static_works=no
 
7542
   save_LDFLAGS="$LDFLAGS"
 
7543
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7544
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7545
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7546
     # The linker can only warn and ignore the option if not recognized
 
7547
     # So say no if there are warnings
 
7548
     if test -s conftest.err; then
 
7549
       # Append any errors to the config.log.
 
7550
       cat conftest.err 1>&5
 
7551
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7552
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7553
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7554
         lt_prog_compiler_static_works=yes
 
7555
       fi
 
7556
     else
 
7557
       lt_prog_compiler_static_works=yes
 
7558
     fi
 
7559
   fi
 
7560
   $rm conftest*
 
7561
   LDFLAGS="$save_LDFLAGS"
 
7562
 
 
7563
fi
 
7564
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7565
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7566
 
 
7567
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7568
    :
 
7569
else
 
7570
    lt_prog_compiler_static=
 
7571
fi
 
7572
 
 
7573
 
 
7574
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7575
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7576
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7578
else
 
7579
  lt_cv_prog_compiler_c_o=no
 
7580
   $rm -r conftest 2>/dev/null
 
7581
   mkdir conftest
 
7582
   cd conftest
 
7583
   mkdir out
 
7584
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7585
 
 
7586
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7587
   # Insert the option either (1) after the last *FLAGS variable, or
 
7588
   # (2) before a word containing "conftest.", or (3) at the end.
 
7589
   # Note that $ac_compile itself does not contain backslashes and begins
 
7590
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7591
   lt_compile=`echo "$ac_compile" | $SED \
 
7592
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7593
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7594
   -e 's:$: $lt_compiler_flag:'`
 
7595
   (eval echo "\"\$as_me:7595: $lt_compile\"" >&5)
 
7596
   (eval "$lt_compile" 2>out/conftest.err)
 
7597
   ac_status=$?
 
7598
   cat out/conftest.err >&5
 
7599
   echo "$as_me:7599: \$? = $ac_status" >&5
 
7600
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7601
   then
 
7602
     # The compiler can only warn and ignore the option if not recognized
 
7603
     # So say no if there are warnings
 
7604
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7605
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7606
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7607
       lt_cv_prog_compiler_c_o=yes
 
7608
     fi
 
7609
   fi
 
7610
   chmod u+w . 2>&5
 
7611
   $rm conftest*
 
7612
   # SGI C++ compiler will create directory out/ii_files/ for
 
7613
   # template instantiation
 
7614
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7615
   $rm out/* && rmdir out
 
7616
   cd ..
 
7617
   rmdir conftest
 
7618
   $rm conftest*
 
7619
 
 
7620
fi
 
7621
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7622
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7623
 
 
7624
 
 
7625
hard_links="nottested"
 
7626
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7627
  # do not overwrite the value of need_locks provided by the user
 
7628
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7629
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7630
  hard_links=yes
 
7631
  $rm conftest*
 
7632
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7633
  touch conftest.a
 
7634
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7635
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7636
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7637
echo "${ECHO_T}$hard_links" >&6; }
 
7638
  if test "$hard_links" = no; then
 
7639
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7640
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7641
    need_locks=warn
 
7642
  fi
 
7643
else
 
7644
  need_locks=no
 
7645
fi
 
7646
 
 
7647
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7648
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7649
 
 
7650
  runpath_var=
 
7651
  allow_undefined_flag=
 
7652
  enable_shared_with_static_runtimes=no
 
7653
  archive_cmds=
 
7654
  archive_expsym_cmds=
 
7655
  old_archive_From_new_cmds=
 
7656
  old_archive_from_expsyms_cmds=
 
7657
  export_dynamic_flag_spec=
 
7658
  whole_archive_flag_spec=
 
7659
  thread_safe_flag_spec=
 
7660
  hardcode_libdir_flag_spec=
 
7661
  hardcode_libdir_flag_spec_ld=
 
7662
  hardcode_libdir_separator=
 
7663
  hardcode_direct=no
 
7664
  hardcode_minus_L=no
 
7665
  hardcode_shlibpath_var=unsupported
 
7666
  link_all_deplibs=unknown
 
7667
  hardcode_automatic=no
 
7668
  module_cmds=
 
7669
  module_expsym_cmds=
 
7670
  always_export_symbols=no
 
7671
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7672
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7673
  # included in the symbol list
 
7674
  include_expsyms=
 
7675
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7676
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7677
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7678
  # as well as any symbol that contains `d'.
 
7679
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7680
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7681
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7682
  # the symbol is explicitly referenced.  Since portable code cannot
 
7683
  # rely on this symbol name, it's probably fine to never include it in
 
7684
  # preloaded symbol tables.
 
7685
  extract_expsyms_cmds=
 
7686
  # Just being paranoid about ensuring that cc_basename is set.
 
7687
  for cc_temp in $compiler""; do
 
7688
  case $cc_temp in
 
7689
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7690
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7691
    \-*) ;;
 
7692
    *) break;;
 
7693
  esac
 
7694
done
 
7695
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7696
 
 
7697
  case $host_os in
 
7698
  cygwin* | mingw* | pw32*)
 
7699
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7700
    # When not using gcc, we currently assume that we are using
 
7701
    # Microsoft Visual C++.
 
7702
    if test "$GCC" != yes; then
 
7703
      with_gnu_ld=no
 
7704
    fi
 
7705
    ;;
 
7706
  interix*)
 
7707
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7708
    with_gnu_ld=yes
 
7709
    ;;
 
7710
  openbsd*)
 
7711
    with_gnu_ld=no
 
7712
    ;;
 
7713
  esac
 
7714
 
 
7715
  ld_shlibs=yes
 
7716
  if test "$with_gnu_ld" = yes; then
 
7717
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7718
    wlarc='${wl}'
 
7719
 
 
7720
    # Set some defaults for GNU ld with shared library support. These
 
7721
    # are reset later if shared libraries are not supported. Putting them
 
7722
    # here allows them to be overridden if necessary.
 
7723
    runpath_var=LD_RUN_PATH
 
7724
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7725
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7726
    # ancient GNU ld didn't support --whole-archive et. al.
 
7727
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7728
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7729
      else
 
7730
        whole_archive_flag_spec=
 
7731
    fi
 
7732
    supports_anon_versioning=no
 
7733
    case `$LD -v 2>/dev/null` in
 
7734
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7735
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7736
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7737
      *\ 2.11.*) ;; # other 2.11 versions
 
7738
      *) supports_anon_versioning=yes ;;
 
7739
    esac
 
7740
 
 
7741
    # See if GNU ld supports shared libraries.
 
7742
    case $host_os in
 
7743
    aix3* | aix4* | aix5*)
 
7744
      # On AIX/PPC, the GNU linker is very broken
 
7745
      if test "$host_cpu" != ia64; then
 
7746
        ld_shlibs=no
 
7747
        cat <<EOF 1>&2
 
7748
 
 
7749
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7750
*** to be unable to reliably create shared libraries on AIX.
 
7751
*** Therefore, libtool is disabling shared libraries support.  If you
 
7752
*** really care for shared libraries, you may want to modify your PATH
 
7753
*** so that a non-GNU linker is found, and then restart.
 
7754
 
 
7755
EOF
 
7756
      fi
 
7757
      ;;
 
7758
 
 
7759
    amigaos*)
 
7760
      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)'
 
7761
      hardcode_libdir_flag_spec='-L$libdir'
 
7762
      hardcode_minus_L=yes
 
7763
 
 
7764
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7765
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7766
      # to version 4, is to share data among multiple programs linked
 
7767
      # with the same dynamic library.  Since this doesn't match the
 
7768
      # behavior of shared libraries on other platforms, we can't use
 
7769
      # them.
 
7770
      ld_shlibs=no
 
7771
      ;;
 
7772
 
 
7773
    beos*)
 
7774
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7775
        allow_undefined_flag=unsupported
 
7776
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7777
        # support --undefined.  This deserves some investigation.  FIXME
 
7778
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7779
      else
 
7780
        ld_shlibs=no
 
7781
      fi
 
7782
      ;;
 
7783
 
 
7784
    cygwin* | mingw* | pw32*)
 
7785
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7786
      # as there is no search path for DLLs.
 
7787
      hardcode_libdir_flag_spec='-L$libdir'
 
7788
      allow_undefined_flag=unsupported
 
7789
      always_export_symbols=no
 
7790
      enable_shared_with_static_runtimes=yes
 
7791
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7792
 
 
7793
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7794
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7795
        # If the export-symbols file already is a .def file (1st line
 
7796
        # is EXPORTS), use it as is; otherwise, prepend...
 
7797
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7798
          cp $export_symbols $output_objdir/$soname.def;
 
7799
        else
 
7800
          echo EXPORTS > $output_objdir/$soname.def;
 
7801
          cat $export_symbols >> $output_objdir/$soname.def;
 
7802
        fi~
 
7803
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7804
      else
 
7805
        ld_shlibs=no
 
7806
      fi
 
7807
      ;;
 
7808
 
 
7809
    interix[3-9]*)
 
7810
      hardcode_direct=no
 
7811
      hardcode_shlibpath_var=no
 
7812
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7813
      export_dynamic_flag_spec='${wl}-E'
 
7814
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7815
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7816
      # default) and relocated if they conflict, which is a slow very memory
 
7817
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7818
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7819
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7820
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7821
      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'
 
7822
      ;;
 
7823
 
 
7824
    gnu* | linux* | k*bsd*-gnu)
 
7825
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7826
        tmp_addflag=
 
7827
        case $cc_basename,$host_cpu in
 
7828
        pgcc*)                          # Portland Group C compiler
 
7829
          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'
 
7830
          tmp_addflag=' $pic_flag'
 
7831
          ;;
 
7832
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7833
          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'
 
7834
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7835
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7836
          tmp_addflag=' -i_dynamic' ;;
 
7837
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7838
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7839
        ifc* | ifort*)                  # Intel Fortran compiler
 
7840
          tmp_addflag=' -nofor_main' ;;
 
7841
        esac
 
7842
        case `$CC -V 2>&1 | sed 5q` in
 
7843
        *Sun\ C*)                       # Sun C 5.9
 
7844
          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'
 
7845
          tmp_sharedflag='-G' ;;
 
7846
        *Sun\ F*)                       # Sun Fortran 8.3
 
7847
          tmp_sharedflag='-G' ;;
 
7848
        *)
 
7849
          tmp_sharedflag='-shared' ;;
 
7850
        esac
 
7851
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7852
 
 
7853
        if test $supports_anon_versioning = yes; then
 
7854
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7855
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7856
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7857
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7858
        fi
 
7859
      else
 
7860
        ld_shlibs=no
 
7861
      fi
 
7862
      ;;
 
7863
 
 
7864
    netbsd*)
 
7865
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7866
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7867
        wlarc=
 
7868
      else
 
7869
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7870
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7871
      fi
 
7872
      ;;
 
7873
 
 
7874
    solaris*)
 
7875
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7876
        ld_shlibs=no
 
7877
        cat <<EOF 1>&2
 
7878
 
 
7879
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7880
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7881
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7882
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7883
*** your PATH or compiler configuration so that the native linker is
 
7884
*** used, and then restart.
 
7885
 
 
7886
EOF
 
7887
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7888
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7889
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7890
      else
 
7891
        ld_shlibs=no
 
7892
      fi
 
7893
      ;;
 
7894
 
 
7895
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7896
      case `$LD -v 2>&1` in
 
7897
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7898
        ld_shlibs=no
 
7899
        cat <<_LT_EOF 1>&2
 
7900
 
 
7901
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7902
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7903
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7904
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7905
*** your PATH or compiler configuration so that the native linker is
 
7906
*** used, and then restart.
 
7907
 
 
7908
_LT_EOF
 
7909
        ;;
 
7910
        *)
 
7911
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7912
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7913
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7914
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7915
          else
 
7916
            ld_shlibs=no
 
7917
          fi
 
7918
        ;;
 
7919
      esac
 
7920
      ;;
 
7921
 
 
7922
    sunos4*)
 
7923
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7924
      wlarc=
 
7925
      hardcode_direct=yes
 
7926
      hardcode_shlibpath_var=no
 
7927
      ;;
 
7928
 
 
7929
    *)
 
7930
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7931
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7932
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7933
      else
 
7934
        ld_shlibs=no
 
7935
      fi
 
7936
      ;;
 
7937
    esac
 
7938
 
 
7939
    if test "$ld_shlibs" = no; then
 
7940
      runpath_var=
 
7941
      hardcode_libdir_flag_spec=
 
7942
      export_dynamic_flag_spec=
 
7943
      whole_archive_flag_spec=
 
7944
    fi
 
7945
  else
 
7946
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7947
    case $host_os in
 
7948
    aix3*)
 
7949
      allow_undefined_flag=unsupported
 
7950
      always_export_symbols=yes
 
7951
      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'
 
7952
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7953
      # are no directories specified by -L.
 
7954
      hardcode_minus_L=yes
 
7955
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7956
        # Neither direct hardcoding nor static linking is supported with a
 
7957
        # broken collect2.
 
7958
        hardcode_direct=unsupported
 
7959
      fi
 
7960
      ;;
 
7961
 
 
7962
    aix4* | aix5*)
 
7963
      if test "$host_cpu" = ia64; then
 
7964
        # On IA64, the linker does run time linking by default, so we don't
 
7965
        # have to do anything special.
 
7966
        aix_use_runtimelinking=no
 
7967
        exp_sym_flag='-Bexport'
 
7968
        no_entry_flag=""
 
7969
      else
 
7970
        # If we're using GNU nm, then we don't want the "-C" option.
 
7971
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7972
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7973
          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'
 
7974
        else
 
7975
          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'
 
7976
        fi
 
7977
        aix_use_runtimelinking=no
 
7978
 
 
7979
        # Test if we are trying to use run time linking or normal
 
7980
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7981
        # need to do runtime linking.
 
7982
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7983
          for ld_flag in $LDFLAGS; do
 
7984
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7985
            aix_use_runtimelinking=yes
 
7986
            break
 
7987
          fi
 
7988
          done
 
7989
          ;;
 
7990
        esac
 
7991
 
 
7992
        exp_sym_flag='-bexport'
 
7993
        no_entry_flag='-bnoentry'
 
7994
      fi
 
7995
 
 
7996
      # When large executables or shared objects are built, AIX ld can
 
7997
      # have problems creating the table of contents.  If linking a library
 
7998
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7999
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8000
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8001
 
 
8002
      archive_cmds=''
 
8003
      hardcode_direct=yes
 
8004
      hardcode_libdir_separator=':'
 
8005
      link_all_deplibs=yes
 
8006
 
 
8007
      if test "$GCC" = yes; then
 
8008
        case $host_os in aix4.[012]|aix4.[012].*)
 
8009
        # We only want to do this on AIX 4.2 and lower, the check
 
8010
        # below for broken collect2 doesn't work under 4.3+
 
8011
          collect2name=`${CC} -print-prog-name=collect2`
 
8012
          if test -f "$collect2name" && \
 
8013
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8014
          then
 
8015
          # We have reworked collect2
 
8016
          :
 
8017
          else
 
8018
          # We have old collect2
 
8019
          hardcode_direct=unsupported
 
8020
          # It fails to find uninstalled libraries when the uninstalled
 
8021
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8022
          # to unsupported forces relinking
 
8023
          hardcode_minus_L=yes
 
8024
          hardcode_libdir_flag_spec='-L$libdir'
 
8025
          hardcode_libdir_separator=
 
8026
          fi
 
8027
          ;;
 
8028
        esac
 
8029
        shared_flag='-shared'
 
8030
        if test "$aix_use_runtimelinking" = yes; then
 
8031
          shared_flag="$shared_flag "'${wl}-G'
 
8032
        fi
 
8033
      else
 
8034
        # not using gcc
 
8035
        if test "$host_cpu" = ia64; then
 
8036
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8037
        # chokes on -Wl,-G. The following line is correct:
 
8038
          shared_flag='-G'
 
8039
        else
 
8040
          if test "$aix_use_runtimelinking" = yes; then
 
8041
            shared_flag='${wl}-G'
 
8042
          else
 
8043
            shared_flag='${wl}-bM:SRE'
 
8044
          fi
 
8045
        fi
 
8046
      fi
 
8047
 
 
8048
      # It seems that -bexpall does not export symbols beginning with
 
8049
      # underscore (_), so it is better to generate a list of symbols to export.
 
8050
      always_export_symbols=yes
 
8051
      if test "$aix_use_runtimelinking" = yes; then
 
8052
        # Warning - without using the other runtime loading flags (-brtl),
 
8053
        # -berok will link without error, but may produce a broken library.
 
8054
        allow_undefined_flag='-berok'
 
8055
       # Determine the default libpath from the value encoded in an empty executable.
 
8056
       cat >conftest.$ac_ext <<_ACEOF
 
8057
/* confdefs.h.  */
 
8058
_ACEOF
 
8059
cat confdefs.h >>conftest.$ac_ext
 
8060
cat >>conftest.$ac_ext <<_ACEOF
 
8061
/* end confdefs.h.  */
 
8062
 
 
8063
int
 
8064
main ()
 
8065
{
 
8066
 
 
8067
  ;
 
8068
  return 0;
 
8069
}
 
8070
_ACEOF
 
8071
rm -f conftest.$ac_objext conftest$ac_exeext
 
8072
if { (ac_try="$ac_link"
 
8073
case "(($ac_try" in
 
8074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8075
  *) ac_try_echo=$ac_try;;
 
8076
esac
 
8077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8078
  (eval "$ac_link") 2>conftest.er1
 
8079
  ac_status=$?
 
8080
  grep -v '^ *+' conftest.er1 >conftest.err
 
8081
  rm -f conftest.er1
 
8082
  cat conftest.err >&5
 
8083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8084
  (exit $ac_status); } && {
 
8085
         test -z "$ac_c_werror_flag" ||
 
8086
         test ! -s conftest.err
 
8087
       } && test -s conftest$ac_exeext &&
 
8088
       $as_test_x conftest$ac_exeext; then
 
8089
 
 
8090
lt_aix_libpath_sed='
 
8091
    /Import File Strings/,/^$/ {
 
8092
        /^0/ {
 
8093
            s/^0  *\(.*\)$/\1/
 
8094
            p
 
8095
        }
 
8096
    }'
 
8097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8098
# Check for a 64-bit object if we didn't find anything.
 
8099
if test -z "$aix_libpath"; then
 
8100
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8101
fi
 
8102
else
 
8103
  echo "$as_me: failed program was:" >&5
 
8104
sed 's/^/| /' conftest.$ac_ext >&5
 
8105
 
 
8106
 
 
8107
fi
 
8108
 
 
8109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8110
      conftest$ac_exeext conftest.$ac_ext
 
8111
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8112
 
 
8113
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8114
        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"
 
8115
       else
 
8116
        if test "$host_cpu" = ia64; then
 
8117
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8118
          allow_undefined_flag="-z nodefs"
 
8119
          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"
 
8120
        else
 
8121
         # Determine the default libpath from the value encoded in an empty executable.
 
8122
         cat >conftest.$ac_ext <<_ACEOF
 
8123
/* confdefs.h.  */
 
8124
_ACEOF
 
8125
cat confdefs.h >>conftest.$ac_ext
 
8126
cat >>conftest.$ac_ext <<_ACEOF
 
8127
/* end confdefs.h.  */
 
8128
 
 
8129
int
 
8130
main ()
 
8131
{
 
8132
 
 
8133
  ;
 
8134
  return 0;
 
8135
}
 
8136
_ACEOF
 
8137
rm -f conftest.$ac_objext conftest$ac_exeext
 
8138
if { (ac_try="$ac_link"
 
8139
case "(($ac_try" in
 
8140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8141
  *) ac_try_echo=$ac_try;;
 
8142
esac
 
8143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8144
  (eval "$ac_link") 2>conftest.er1
 
8145
  ac_status=$?
 
8146
  grep -v '^ *+' conftest.er1 >conftest.err
 
8147
  rm -f conftest.er1
 
8148
  cat conftest.err >&5
 
8149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8150
  (exit $ac_status); } && {
 
8151
         test -z "$ac_c_werror_flag" ||
 
8152
         test ! -s conftest.err
 
8153
       } && test -s conftest$ac_exeext &&
 
8154
       $as_test_x conftest$ac_exeext; then
 
8155
 
 
8156
lt_aix_libpath_sed='
 
8157
    /Import File Strings/,/^$/ {
 
8158
        /^0/ {
 
8159
            s/^0  *\(.*\)$/\1/
 
8160
            p
 
8161
        }
 
8162
    }'
 
8163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8164
# Check for a 64-bit object if we didn't find anything.
 
8165
if test -z "$aix_libpath"; then
 
8166
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8167
fi
 
8168
else
 
8169
  echo "$as_me: failed program was:" >&5
 
8170
sed 's/^/| /' conftest.$ac_ext >&5
 
8171
 
 
8172
 
 
8173
fi
 
8174
 
 
8175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8176
      conftest$ac_exeext conftest.$ac_ext
 
8177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8178
 
 
8179
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8180
          # Warning - without using the other run time loading flags,
 
8181
          # -berok will link without error, but may produce a broken library.
 
8182
          no_undefined_flag=' ${wl}-bernotok'
 
8183
          allow_undefined_flag=' ${wl}-berok'
 
8184
          # Exported symbols can be pulled into shared objects from archives
 
8185
          whole_archive_flag_spec='$convenience'
 
8186
          archive_cmds_need_lc=yes
 
8187
          # This is similar to how AIX traditionally builds its shared libraries.
 
8188
          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'
 
8189
        fi
 
8190
      fi
 
8191
      ;;
 
8192
 
 
8193
    amigaos*)
 
8194
      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)'
 
8195
      hardcode_libdir_flag_spec='-L$libdir'
 
8196
      hardcode_minus_L=yes
 
8197
      # see comment about different semantics on the GNU ld section
 
8198
      ld_shlibs=no
 
8199
      ;;
 
8200
 
 
8201
    bsdi[45]*)
 
8202
      export_dynamic_flag_spec=-rdynamic
 
8203
      ;;
 
8204
 
 
8205
    cygwin* | mingw* | pw32*)
 
8206
      # When not using gcc, we currently assume that we are using
 
8207
      # Microsoft Visual C++.
 
8208
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8209
      # no search path for DLLs.
 
8210
      hardcode_libdir_flag_spec=' '
 
8211
      allow_undefined_flag=unsupported
 
8212
      # Tell ltmain to make .lib files, not .a files.
 
8213
      libext=lib
 
8214
      # Tell ltmain to make .dll files, not .so files.
 
8215
      shrext_cmds=".dll"
 
8216
      # FIXME: Setting linknames here is a bad hack.
 
8217
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8218
      # The linker will automatically build a .lib file if we build a DLL.
 
8219
      old_archive_From_new_cmds='true'
 
8220
      # FIXME: Should let the user specify the lib program.
 
8221
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8222
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8223
      enable_shared_with_static_runtimes=yes
 
8224
      ;;
 
8225
 
 
8226
    darwin* | rhapsody*)
 
8227
      case $host_os in
 
8228
        rhapsody* | darwin1.[012])
 
8229
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8230
         ;;
 
8231
       *) # Darwin 1.3 on
 
8232
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8233
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8234
         else
 
8235
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8236
             10.[012])
 
8237
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8238
               ;;
 
8239
             10.*)
 
8240
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8241
               ;;
 
8242
           esac
 
8243
         fi
 
8244
         ;;
 
8245
      esac
 
8246
      archive_cmds_need_lc=no
 
8247
      hardcode_direct=no
 
8248
      hardcode_automatic=yes
 
8249
      hardcode_shlibpath_var=unsupported
 
8250
      whole_archive_flag_spec=''
 
8251
      link_all_deplibs=yes
 
8252
    if test "$GCC" = yes ; then
 
8253
        output_verbose_link_cmd='echo'
 
8254
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8255
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8256
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8257
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8258
      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}'
 
8259
    else
 
8260
      case $cc_basename in
 
8261
        xlc*)
 
8262
         output_verbose_link_cmd='echo'
 
8263
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8264
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8265
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8266
         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}'
 
8267
          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}'
 
8268
          ;;
 
8269
       *)
 
8270
         ld_shlibs=no
 
8271
          ;;
 
8272
      esac
 
8273
    fi
 
8274
      ;;
 
8275
 
 
8276
    dgux*)
 
8277
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8278
      hardcode_libdir_flag_spec='-L$libdir'
 
8279
      hardcode_shlibpath_var=no
 
8280
      ;;
 
8281
 
 
8282
    freebsd1*)
 
8283
      ld_shlibs=no
 
8284
      ;;
 
8285
 
 
8286
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8287
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8288
    # does not break anything, and helps significantly (at the cost of a little
 
8289
    # extra space).
 
8290
    freebsd2.2*)
 
8291
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8292
      hardcode_libdir_flag_spec='-R$libdir'
 
8293
      hardcode_direct=yes
 
8294
      hardcode_shlibpath_var=no
 
8295
      ;;
 
8296
 
 
8297
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8298
    freebsd2*)
 
8299
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8300
      hardcode_direct=yes
 
8301
      hardcode_minus_L=yes
 
8302
      hardcode_shlibpath_var=no
 
8303
      ;;
 
8304
 
 
8305
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8306
    freebsd* | dragonfly*)
 
8307
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8308
      hardcode_libdir_flag_spec='-R$libdir'
 
8309
      hardcode_direct=yes
 
8310
      hardcode_shlibpath_var=no
 
8311
      ;;
 
8312
 
 
8313
    hpux9*)
 
8314
      if test "$GCC" = yes; then
 
8315
        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'
 
8316
      else
 
8317
        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'
 
8318
      fi
 
8319
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8320
      hardcode_libdir_separator=:
 
8321
      hardcode_direct=yes
 
8322
 
 
8323
      # hardcode_minus_L: Not really in the search PATH,
 
8324
      # but as the default location of the library.
 
8325
      hardcode_minus_L=yes
 
8326
      export_dynamic_flag_spec='${wl}-E'
 
8327
      ;;
 
8328
 
 
8329
    hpux10*)
 
8330
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8331
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8332
      else
 
8333
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8334
      fi
 
8335
      if test "$with_gnu_ld" = no; then
 
8336
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8337
        hardcode_libdir_separator=:
 
8338
 
 
8339
        hardcode_direct=yes
 
8340
        export_dynamic_flag_spec='${wl}-E'
 
8341
 
 
8342
        # hardcode_minus_L: Not really in the search PATH,
 
8343
        # but as the default location of the library.
 
8344
        hardcode_minus_L=yes
 
8345
      fi
 
8346
      ;;
 
8347
 
 
8348
    hpux11*)
 
8349
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8350
        case $host_cpu in
 
8351
        hppa*64*)
 
8352
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8353
          ;;
 
8354
        ia64*)
 
8355
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8356
          ;;
 
8357
        *)
 
8358
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8359
          ;;
 
8360
        esac
 
8361
      else
 
8362
        case $host_cpu in
 
8363
        hppa*64*)
 
8364
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8365
          ;;
 
8366
        ia64*)
 
8367
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8368
          ;;
 
8369
        *)
 
8370
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8371
          ;;
 
8372
        esac
 
8373
      fi
 
8374
      if test "$with_gnu_ld" = no; then
 
8375
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8376
        hardcode_libdir_separator=:
 
8377
 
 
8378
        case $host_cpu in
 
8379
        hppa*64*|ia64*)
 
8380
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8381
          hardcode_direct=no
 
8382
          hardcode_shlibpath_var=no
 
8383
          ;;
 
8384
        *)
 
8385
          hardcode_direct=yes
 
8386
          export_dynamic_flag_spec='${wl}-E'
 
8387
 
 
8388
          # hardcode_minus_L: Not really in the search PATH,
 
8389
          # but as the default location of the library.
 
8390
          hardcode_minus_L=yes
 
8391
          ;;
 
8392
        esac
 
8393
      fi
 
8394
      ;;
 
8395
 
 
8396
    irix5* | irix6* | nonstopux*)
 
8397
      if test "$GCC" = yes; then
 
8398
        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'
 
8399
      else
 
8400
        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'
 
8401
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8402
      fi
 
8403
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8404
      hardcode_libdir_separator=:
 
8405
      link_all_deplibs=yes
 
8406
      ;;
 
8407
 
 
8408
    netbsd*)
 
8409
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8410
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8411
      else
 
8412
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8413
      fi
 
8414
      hardcode_libdir_flag_spec='-R$libdir'
 
8415
      hardcode_direct=yes
 
8416
      hardcode_shlibpath_var=no
 
8417
      ;;
 
8418
 
 
8419
    newsos6)
 
8420
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8421
      hardcode_direct=yes
 
8422
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8423
      hardcode_libdir_separator=:
 
8424
      hardcode_shlibpath_var=no
 
8425
      ;;
 
8426
 
 
8427
    openbsd*)
 
8428
      if test -f /usr/libexec/ld.so; then
 
8429
        hardcode_direct=yes
 
8430
        hardcode_shlibpath_var=no
 
8431
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8432
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8433
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8434
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8435
          export_dynamic_flag_spec='${wl}-E'
 
8436
        else
 
8437
          case $host_os in
 
8438
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8439
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8440
             hardcode_libdir_flag_spec='-R$libdir'
 
8441
             ;;
 
8442
           *)
 
8443
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8444
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8445
             ;;
 
8446
          esac
 
8447
        fi
 
8448
      else
 
8449
        ld_shlibs=no
 
8450
      fi
 
8451
      ;;
 
8452
 
 
8453
    os2*)
 
8454
      hardcode_libdir_flag_spec='-L$libdir'
 
8455
      hardcode_minus_L=yes
 
8456
      allow_undefined_flag=unsupported
 
8457
      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'
 
8458
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8459
      ;;
 
8460
 
 
8461
    osf3*)
 
8462
      if test "$GCC" = yes; then
 
8463
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8464
        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'
 
8465
      else
 
8466
        allow_undefined_flag=' -expect_unresolved \*'
 
8467
        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'
 
8468
      fi
 
8469
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8470
      hardcode_libdir_separator=:
 
8471
      ;;
 
8472
 
 
8473
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8474
      if test "$GCC" = yes; then
 
8475
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8476
        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'
 
8477
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8478
      else
 
8479
        allow_undefined_flag=' -expect_unresolved \*'
 
8480
        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'
 
8481
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8482
        $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'
 
8483
 
 
8484
        # Both c and cxx compiler support -rpath directly
 
8485
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8486
      fi
 
8487
      hardcode_libdir_separator=:
 
8488
      ;;
 
8489
 
 
8490
    solaris*)
 
8491
      no_undefined_flag=' -z text'
 
8492
      if test "$GCC" = yes; then
 
8493
        wlarc='${wl}'
 
8494
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8495
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8496
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8497
      else
 
8498
        wlarc=''
 
8499
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8500
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8501
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8502
      fi
 
8503
      hardcode_libdir_flag_spec='-R$libdir'
 
8504
      hardcode_shlibpath_var=no
 
8505
      case $host_os in
 
8506
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8507
      *)
 
8508
        # The compiler driver will combine and reorder linker options,
 
8509
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8510
        # but is careful enough not to reorder.
 
8511
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8512
        if test "$GCC" = yes; then
 
8513
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8514
        else
 
8515
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8516
        fi
 
8517
        ;;
 
8518
      esac
 
8519
      link_all_deplibs=yes
 
8520
      ;;
 
8521
 
 
8522
    sunos4*)
 
8523
      if test "x$host_vendor" = xsequent; then
 
8524
        # Use $CC to link under sequent, because it throws in some extra .o
 
8525
        # files that make .init and .fini sections work.
 
8526
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8527
      else
 
8528
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8529
      fi
 
8530
      hardcode_libdir_flag_spec='-L$libdir'
 
8531
      hardcode_direct=yes
 
8532
      hardcode_minus_L=yes
 
8533
      hardcode_shlibpath_var=no
 
8534
      ;;
 
8535
 
 
8536
    sysv4)
 
8537
      case $host_vendor in
 
8538
        sni)
 
8539
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8540
          hardcode_direct=yes # is this really true???
 
8541
        ;;
 
8542
        siemens)
 
8543
          ## LD is ld it makes a PLAMLIB
 
8544
          ## CC just makes a GrossModule.
 
8545
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8546
          reload_cmds='$CC -r -o $output$reload_objs'
 
8547
          hardcode_direct=no
 
8548
        ;;
 
8549
        motorola)
 
8550
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8551
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8552
        ;;
 
8553
      esac
 
8554
      runpath_var='LD_RUN_PATH'
 
8555
      hardcode_shlibpath_var=no
 
8556
      ;;
 
8557
 
 
8558
    sysv4.3*)
 
8559
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8560
      hardcode_shlibpath_var=no
 
8561
      export_dynamic_flag_spec='-Bexport'
 
8562
      ;;
 
8563
 
 
8564
    sysv4*MP*)
 
8565
      if test -d /usr/nec; then
 
8566
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8567
        hardcode_shlibpath_var=no
 
8568
        runpath_var=LD_RUN_PATH
 
8569
        hardcode_runpath_var=yes
 
8570
        ld_shlibs=yes
 
8571
      fi
 
8572
      ;;
 
8573
 
 
8574
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8575
      no_undefined_flag='${wl}-z,text'
 
8576
      archive_cmds_need_lc=no
 
8577
      hardcode_shlibpath_var=no
 
8578
      runpath_var='LD_RUN_PATH'
 
8579
 
 
8580
      if test "$GCC" = yes; then
 
8581
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8582
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8583
      else
 
8584
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8585
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8586
      fi
 
8587
      ;;
 
8588
 
 
8589
    sysv5* | sco3.2v5* | sco5v6*)
 
8590
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8591
      # link with -lc, and that would cause any symbols used from libc to
 
8592
      # always be unresolved, which means just about no library would
 
8593
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8594
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8595
      # as -z defs.
 
8596
      no_undefined_flag='${wl}-z,text'
 
8597
      allow_undefined_flag='${wl}-z,nodefs'
 
8598
      archive_cmds_need_lc=no
 
8599
      hardcode_shlibpath_var=no
 
8600
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8601
      hardcode_libdir_separator=':'
 
8602
      link_all_deplibs=yes
 
8603
      export_dynamic_flag_spec='${wl}-Bexport'
 
8604
      runpath_var='LD_RUN_PATH'
 
8605
 
 
8606
      if test "$GCC" = yes; then
 
8607
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8608
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8609
      else
 
8610
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8611
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8612
      fi
 
8613
      ;;
 
8614
 
 
8615
    uts4*)
 
8616
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8617
      hardcode_libdir_flag_spec='-L$libdir'
 
8618
      hardcode_shlibpath_var=no
 
8619
      ;;
 
8620
 
 
8621
    *)
 
8622
      ld_shlibs=no
 
8623
      ;;
 
8624
    esac
 
8625
  fi
 
8626
 
 
8627
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8628
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8629
test "$ld_shlibs" = no && can_build_shared=no
 
8630
 
 
8631
#
 
8632
# Do we need to explicitly link libc?
 
8633
#
 
8634
case "x$archive_cmds_need_lc" in
 
8635
x|xyes)
 
8636
  # Assume -lc should be added
 
8637
  archive_cmds_need_lc=yes
 
8638
 
 
8639
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8640
    case $archive_cmds in
 
8641
    *'~'*)
 
8642
      # FIXME: we may have to deal with multi-command sequences.
 
8643
      ;;
 
8644
    '$CC '*)
 
8645
      # Test whether the compiler implicitly links with -lc since on some
 
8646
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8647
      # to ld, don't add -lc before -lgcc.
 
8648
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8649
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8650
      $rm conftest*
 
8651
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8652
 
 
8653
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8654
  (eval $ac_compile) 2>&5
 
8655
  ac_status=$?
 
8656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8657
  (exit $ac_status); } 2>conftest.err; then
 
8658
        soname=conftest
 
8659
        lib=conftest
 
8660
        libobjs=conftest.$ac_objext
 
8661
        deplibs=
 
8662
        wl=$lt_prog_compiler_wl
 
8663
        pic_flag=$lt_prog_compiler_pic
 
8664
        compiler_flags=-v
 
8665
        linker_flags=-v
 
8666
        verstring=
 
8667
        output_objdir=.
 
8668
        libname=conftest
 
8669
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8670
        allow_undefined_flag=
 
8671
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8672
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8673
  ac_status=$?
 
8674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8675
  (exit $ac_status); }
 
8676
        then
 
8677
          archive_cmds_need_lc=no
 
8678
        else
 
8679
          archive_cmds_need_lc=yes
 
8680
        fi
 
8681
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8682
      else
 
8683
        cat conftest.err 1>&5
 
8684
      fi
 
8685
      $rm conftest*
 
8686
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8687
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8688
      ;;
 
8689
    esac
 
8690
  fi
 
8691
  ;;
 
8692
esac
 
8693
 
 
8694
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8695
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8696
library_names_spec=
 
8697
libname_spec='lib$name'
 
8698
soname_spec=
 
8699
shrext_cmds=".so"
 
8700
postinstall_cmds=
 
8701
postuninstall_cmds=
 
8702
finish_cmds=
 
8703
finish_eval=
 
8704
shlibpath_var=
 
8705
shlibpath_overrides_runpath=unknown
 
8706
version_type=none
 
8707
dynamic_linker="$host_os ld.so"
 
8708
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8709
 
 
8710
if test "$GCC" = yes; then
 
8711
  case $host_os in
 
8712
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8713
    *) lt_awk_arg="/^libraries:/" ;;
 
8714
  esac
 
8715
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8716
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8717
    # if the path contains ";" then we assume it to be the separator
 
8718
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8719
    # assumed that no part of a normal pathname contains ";" but that should
 
8720
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8721
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8722
  else
 
8723
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8724
  fi
 
8725
  # Ok, now we have the path, separated by spaces, we can step through it
 
8726
  # and add multilib dir if necessary.
 
8727
  lt_tmp_lt_search_path_spec=
 
8728
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8729
  for lt_sys_path in $lt_search_path_spec; do
 
8730
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8731
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8732
    else
 
8733
      test -d "$lt_sys_path" && \
 
8734
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8735
    fi
 
8736
  done
 
8737
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8738
BEGIN {RS=" "; FS="/|\n";} {
 
8739
  lt_foo="";
 
8740
  lt_count=0;
 
8741
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8742
    if ($lt_i != "" && $lt_i != ".") {
 
8743
      if ($lt_i == "..") {
 
8744
        lt_count++;
 
8745
      } else {
 
8746
        if (lt_count == 0) {
 
8747
          lt_foo="/" $lt_i lt_foo;
 
8748
        } else {
 
8749
          lt_count--;
 
8750
        }
 
8751
      }
 
8752
    }
 
8753
  }
 
8754
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8755
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8756
}'`
 
8757
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
8758
else
 
8759
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8760
fi
 
8761
need_lib_prefix=unknown
 
8762
hardcode_into_libs=no
 
8763
 
 
8764
# when you set need_version to no, make sure it does not cause -set_version
 
8765
# flags to be left without arguments
 
8766
need_version=unknown
 
8767
 
 
8768
case $host_os in
 
8769
aix3*)
 
8770
  version_type=linux
 
8771
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8772
  shlibpath_var=LIBPATH
 
8773
 
 
8774
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8775
  soname_spec='${libname}${release}${shared_ext}$major'
 
8776
  ;;
 
8777
 
 
8778
aix4* | aix5*)
 
8779
  version_type=linux
 
8780
  need_lib_prefix=no
 
8781
  need_version=no
 
8782
  hardcode_into_libs=yes
 
8783
  if test "$host_cpu" = ia64; then
 
8784
    # AIX 5 supports IA64
 
8785
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8786
    shlibpath_var=LD_LIBRARY_PATH
 
8787
  else
 
8788
    # With GCC up to 2.95.x, collect2 would create an import file
 
8789
    # for dependence libraries.  The import file would start with
 
8790
    # the line `#! .'.  This would cause the generated library to
 
8791
    # depend on `.', always an invalid library.  This was fixed in
 
8792
    # development snapshots of GCC prior to 3.0.
 
8793
    case $host_os in
 
8794
      aix4 | aix4.[01] | aix4.[01].*)
 
8795
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8796
           echo ' yes '
 
8797
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8798
        :
 
8799
      else
 
8800
        can_build_shared=no
 
8801
      fi
 
8802
      ;;
 
8803
    esac
 
8804
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8805
    # soname into executable. Probably we can add versioning support to
 
8806
    # collect2, so additional links can be useful in future.
 
8807
    if test "$aix_use_runtimelinking" = yes; then
 
8808
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8809
      # instead of lib<name>.a to let people know that these are not
 
8810
      # typical AIX shared libraries.
 
8811
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8812
    else
 
8813
      # We preserve .a as extension for shared libraries through AIX4.2
 
8814
      # and later when we are not doing run time linking.
 
8815
      library_names_spec='${libname}${release}.a $libname.a'
 
8816
      soname_spec='${libname}${release}${shared_ext}$major'
 
8817
    fi
 
8818
    shlibpath_var=LIBPATH
 
8819
  fi
 
8820
  ;;
 
8821
 
 
8822
amigaos*)
 
8823
  library_names_spec='$libname.ixlibrary $libname.a'
 
8824
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8825
  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'
 
8826
  ;;
 
8827
 
 
8828
beos*)
 
8829
  library_names_spec='${libname}${shared_ext}'
 
8830
  dynamic_linker="$host_os ld.so"
 
8831
  shlibpath_var=LIBRARY_PATH
 
8832
  ;;
 
8833
 
 
8834
bsdi[45]*)
 
8835
  version_type=linux
 
8836
  need_version=no
 
8837
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8838
  soname_spec='${libname}${release}${shared_ext}$major'
 
8839
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8840
  shlibpath_var=LD_LIBRARY_PATH
 
8841
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8842
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8843
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8844
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8845
  # libtool to hard-code these into programs
 
8846
  ;;
 
8847
 
 
8848
cygwin* | mingw* | pw32*)
 
8849
  version_type=windows
 
8850
  shrext_cmds=".dll"
 
8851
  need_version=no
 
8852
  need_lib_prefix=no
 
8853
 
 
8854
  case $GCC,$host_os in
 
8855
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8856
    library_names_spec='$libname.dll.a'
 
8857
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8858
    postinstall_cmds='base_file=`basename \${file}`~
 
8859
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8860
      dldir=$destdir/`dirname \$dlpath`~
 
8861
      test -d \$dldir || mkdir -p \$dldir~
 
8862
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8863
      chmod a+x \$dldir/$dlname'
 
8864
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8865
      dlpath=$dir/\$dldll~
 
8866
       $rm \$dlpath'
 
8867
    shlibpath_overrides_runpath=yes
 
8868
 
 
8869
    case $host_os in
 
8870
    cygwin*)
 
8871
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8872
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8873
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8874
      ;;
 
8875
    mingw*)
 
8876
      # MinGW DLLs use traditional 'lib' prefix
 
8877
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8878
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8879
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8880
        # It is most probably a Windows format PATH printed by
 
8881
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8882
        # path with ; separators, and with drive letters. We can handle the
 
8883
        # drive letters (cygwin fileutils understands them), so leave them,
 
8884
        # especially as we might pass files found there to a mingw objdump,
 
8885
        # which wouldn't understand a cygwinified path. Ahh.
 
8886
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8887
      else
 
8888
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8889
      fi
 
8890
      ;;
 
8891
    pw32*)
 
8892
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8893
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8894
      ;;
 
8895
    esac
 
8896
    ;;
 
8897
 
 
8898
  *)
 
8899
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8900
    ;;
 
8901
  esac
 
8902
  dynamic_linker='Win32 ld.exe'
 
8903
  # FIXME: first we should search . and the directory the executable is in
 
8904
  shlibpath_var=PATH
 
8905
  ;;
 
8906
 
 
8907
darwin* | rhapsody*)
 
8908
  dynamic_linker="$host_os dyld"
 
8909
  version_type=darwin
 
8910
  need_lib_prefix=no
 
8911
  need_version=no
 
8912
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8913
  soname_spec='${libname}${release}${major}$shared_ext'
 
8914
  shlibpath_overrides_runpath=yes
 
8915
  shlibpath_var=DYLD_LIBRARY_PATH
 
8916
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8917
 
 
8918
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
8919
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8920
  ;;
 
8921
 
 
8922
dgux*)
 
8923
  version_type=linux
 
8924
  need_lib_prefix=no
 
8925
  need_version=no
 
8926
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8927
  soname_spec='${libname}${release}${shared_ext}$major'
 
8928
  shlibpath_var=LD_LIBRARY_PATH
 
8929
  ;;
 
8930
 
 
8931
freebsd1*)
 
8932
  dynamic_linker=no
 
8933
  ;;
 
8934
 
 
8935
freebsd* | dragonfly*)
 
8936
  # DragonFly does not have aout.  When/if they implement a new
 
8937
  # versioning mechanism, adjust this.
 
8938
  if test -x /usr/bin/objformat; then
 
8939
    objformat=`/usr/bin/objformat`
 
8940
  else
 
8941
    case $host_os in
 
8942
    freebsd[123]*) objformat=aout ;;
 
8943
    *) objformat=elf ;;
 
8944
    esac
 
8945
  fi
 
8946
  version_type=freebsd-$objformat
 
8947
  case $version_type in
 
8948
    freebsd-elf*)
 
8949
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8950
      need_version=no
 
8951
      need_lib_prefix=no
 
8952
      ;;
 
8953
    freebsd-*)
 
8954
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8955
      need_version=yes
 
8956
      ;;
 
8957
  esac
 
8958
  shlibpath_var=LD_LIBRARY_PATH
 
8959
  case $host_os in
 
8960
  freebsd2*)
 
8961
    shlibpath_overrides_runpath=yes
 
8962
    ;;
 
8963
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8964
    shlibpath_overrides_runpath=yes
 
8965
    hardcode_into_libs=yes
 
8966
    ;;
 
8967
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8968
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8969
    shlibpath_overrides_runpath=no
 
8970
    hardcode_into_libs=yes
 
8971
    ;;
 
8972
  *) # from 4.6 on, and DragonFly
 
8973
    shlibpath_overrides_runpath=yes
 
8974
    hardcode_into_libs=yes
 
8975
    ;;
 
8976
  esac
 
8977
  ;;
 
8978
 
 
8979
gnu*)
 
8980
  version_type=linux
 
8981
  need_lib_prefix=no
 
8982
  need_version=no
 
8983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8984
  soname_spec='${libname}${release}${shared_ext}$major'
 
8985
  shlibpath_var=LD_LIBRARY_PATH
 
8986
  hardcode_into_libs=yes
 
8987
  ;;
 
8988
 
 
8989
hpux9* | hpux10* | hpux11*)
 
8990
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8991
  # link against other versions.
 
8992
  version_type=sunos
 
8993
  need_lib_prefix=no
 
8994
  need_version=no
 
8995
  case $host_cpu in
 
8996
  ia64*)
 
8997
    shrext_cmds='.so'
 
8998
    hardcode_into_libs=yes
 
8999
    dynamic_linker="$host_os dld.so"
 
9000
    shlibpath_var=LD_LIBRARY_PATH
 
9001
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9002
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9003
    soname_spec='${libname}${release}${shared_ext}$major'
 
9004
    if test "X$HPUX_IA64_MODE" = X32; then
 
9005
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9006
    else
 
9007
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9008
    fi
 
9009
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9010
    ;;
 
9011
   hppa*64*)
 
9012
     shrext_cmds='.sl'
 
9013
     hardcode_into_libs=yes
 
9014
     dynamic_linker="$host_os dld.sl"
 
9015
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9016
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9017
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9018
     soname_spec='${libname}${release}${shared_ext}$major'
 
9019
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9020
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9021
     ;;
 
9022
   *)
 
9023
    shrext_cmds='.sl'
 
9024
    dynamic_linker="$host_os dld.sl"
 
9025
    shlibpath_var=SHLIB_PATH
 
9026
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9027
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9028
    soname_spec='${libname}${release}${shared_ext}$major'
 
9029
    ;;
 
9030
  esac
 
9031
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9032
  postinstall_cmds='chmod 555 $lib'
 
9033
  ;;
 
9034
 
 
9035
interix[3-9]*)
 
9036
  version_type=linux
 
9037
  need_lib_prefix=no
 
9038
  need_version=no
 
9039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9040
  soname_spec='${libname}${release}${shared_ext}$major'
 
9041
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9042
  shlibpath_var=LD_LIBRARY_PATH
 
9043
  shlibpath_overrides_runpath=no
 
9044
  hardcode_into_libs=yes
 
9045
  ;;
 
9046
 
 
9047
irix5* | irix6* | nonstopux*)
 
9048
  case $host_os in
 
9049
    nonstopux*) version_type=nonstopux ;;
 
9050
    *)
 
9051
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9052
                version_type=linux
 
9053
        else
 
9054
                version_type=irix
 
9055
        fi ;;
 
9056
  esac
 
9057
  need_lib_prefix=no
 
9058
  need_version=no
 
9059
  soname_spec='${libname}${release}${shared_ext}$major'
 
9060
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9061
  case $host_os in
 
9062
  irix5* | nonstopux*)
 
9063
    libsuff= shlibsuff=
 
9064
    ;;
 
9065
  *)
 
9066
    case $LD in # libtool.m4 will add one of these switches to LD
 
9067
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9068
      libsuff= shlibsuff= libmagic=32-bit;;
 
9069
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9070
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9071
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9072
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9073
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9074
    esac
 
9075
    ;;
 
9076
  esac
 
9077
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9078
  shlibpath_overrides_runpath=no
 
9079
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9080
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9081
  hardcode_into_libs=yes
 
9082
  ;;
 
9083
 
 
9084
# No shared lib support for Linux oldld, aout, or coff.
 
9085
linux*oldld* | linux*aout* | linux*coff*)
 
9086
  dynamic_linker=no
 
9087
  ;;
 
9088
 
 
9089
# This must be Linux ELF.
 
9090
linux* | k*bsd*-gnu)
 
9091
  version_type=linux
 
9092
  need_lib_prefix=no
 
9093
  need_version=no
 
9094
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9095
  soname_spec='${libname}${release}${shared_ext}$major'
 
9096
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9097
  shlibpath_var=LD_LIBRARY_PATH
 
9098
  shlibpath_overrides_runpath=no
 
9099
  # This implies no fast_install, which is unacceptable.
 
9100
  # Some rework will be needed to allow for fast_install
 
9101
  # before this can be enabled.
 
9102
  hardcode_into_libs=yes
 
9103
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9104
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9105
 
 
9106
  # Append ld.so.conf contents to the search path
 
9107
  if test -f /etc/ld.so.conf; then
 
9108
    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' ' '`
 
9109
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9110
  fi
 
9111
 
 
9112
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9113
  # powerpc, because MkLinux only supported shared libraries with the
 
9114
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9115
  # most powerpc-linux boxes support dynamic linking these days and
 
9116
  # people can always --disable-shared, the test was removed, and we
 
9117
  # assume the GNU/Linux dynamic linker is in use.
 
9118
  dynamic_linker='GNU/Linux ld.so'
 
9119
  ;;
 
9120
 
 
9121
netbsd*)
 
9122
  version_type=sunos
 
9123
  need_lib_prefix=no
 
9124
  need_version=no
 
9125
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9126
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9127
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9128
    dynamic_linker='NetBSD (a.out) ld.so'
 
9129
  else
 
9130
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9131
    soname_spec='${libname}${release}${shared_ext}$major'
 
9132
    dynamic_linker='NetBSD ld.elf_so'
 
9133
  fi
 
9134
  shlibpath_var=LD_LIBRARY_PATH
 
9135
  shlibpath_overrides_runpath=yes
 
9136
  hardcode_into_libs=yes
 
9137
  ;;
 
9138
 
 
9139
newsos6)
 
9140
  version_type=linux
 
9141
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9142
  shlibpath_var=LD_LIBRARY_PATH
 
9143
  shlibpath_overrides_runpath=yes
 
9144
  ;;
 
9145
 
 
9146
nto-qnx*)
 
9147
  version_type=linux
 
9148
  need_lib_prefix=no
 
9149
  need_version=no
 
9150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9151
  soname_spec='${libname}${release}${shared_ext}$major'
 
9152
  shlibpath_var=LD_LIBRARY_PATH
 
9153
  shlibpath_overrides_runpath=yes
 
9154
  ;;
 
9155
 
 
9156
openbsd*)
 
9157
  version_type=sunos
 
9158
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9159
  need_lib_prefix=no
 
9160
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9161
  case $host_os in
 
9162
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9163
    *)                         need_version=no  ;;
 
9164
  esac
 
9165
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9166
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9167
  shlibpath_var=LD_LIBRARY_PATH
 
9168
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9169
    case $host_os in
 
9170
      openbsd2.[89] | openbsd2.[89].*)
 
9171
        shlibpath_overrides_runpath=no
 
9172
        ;;
 
9173
      *)
 
9174
        shlibpath_overrides_runpath=yes
 
9175
        ;;
 
9176
      esac
 
9177
  else
 
9178
    shlibpath_overrides_runpath=yes
 
9179
  fi
 
9180
  ;;
 
9181
 
 
9182
os2*)
 
9183
  libname_spec='$name'
 
9184
  shrext_cmds=".dll"
 
9185
  need_lib_prefix=no
 
9186
  library_names_spec='$libname${shared_ext} $libname.a'
 
9187
  dynamic_linker='OS/2 ld.exe'
 
9188
  shlibpath_var=LIBPATH
 
9189
  ;;
 
9190
 
 
9191
osf3* | osf4* | osf5*)
 
9192
  version_type=osf
 
9193
  need_lib_prefix=no
 
9194
  need_version=no
 
9195
  soname_spec='${libname}${release}${shared_ext}$major'
 
9196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9197
  shlibpath_var=LD_LIBRARY_PATH
 
9198
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9199
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9200
  ;;
 
9201
 
 
9202
rdos*)
 
9203
  dynamic_linker=no
 
9204
  ;;
 
9205
 
 
9206
solaris*)
 
9207
  version_type=linux
 
9208
  need_lib_prefix=no
 
9209
  need_version=no
 
9210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9211
  soname_spec='${libname}${release}${shared_ext}$major'
 
9212
  shlibpath_var=LD_LIBRARY_PATH
 
9213
  shlibpath_overrides_runpath=yes
 
9214
  hardcode_into_libs=yes
 
9215
  # ldd complains unless libraries are executable
 
9216
  postinstall_cmds='chmod +x $lib'
 
9217
  ;;
 
9218
 
 
9219
sunos4*)
 
9220
  version_type=sunos
 
9221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9222
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9223
  shlibpath_var=LD_LIBRARY_PATH
 
9224
  shlibpath_overrides_runpath=yes
 
9225
  if test "$with_gnu_ld" = yes; then
 
9226
    need_lib_prefix=no
 
9227
  fi
 
9228
  need_version=yes
 
9229
  ;;
 
9230
 
 
9231
sysv4 | sysv4.3*)
 
9232
  version_type=linux
 
9233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9234
  soname_spec='${libname}${release}${shared_ext}$major'
 
9235
  shlibpath_var=LD_LIBRARY_PATH
 
9236
  case $host_vendor in
 
9237
    sni)
 
9238
      shlibpath_overrides_runpath=no
 
9239
      need_lib_prefix=no
 
9240
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9241
      runpath_var=LD_RUN_PATH
 
9242
      ;;
 
9243
    siemens)
 
9244
      need_lib_prefix=no
 
9245
      ;;
 
9246
    motorola)
 
9247
      need_lib_prefix=no
 
9248
      need_version=no
 
9249
      shlibpath_overrides_runpath=no
 
9250
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9251
      ;;
 
9252
  esac
 
9253
  ;;
 
9254
 
 
9255
sysv4*MP*)
 
9256
  if test -d /usr/nec ;then
 
9257
    version_type=linux
 
9258
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9259
    soname_spec='$libname${shared_ext}.$major'
 
9260
    shlibpath_var=LD_LIBRARY_PATH
 
9261
  fi
 
9262
  ;;
 
9263
 
 
9264
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9265
  version_type=freebsd-elf
 
9266
  need_lib_prefix=no
 
9267
  need_version=no
 
9268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9269
  soname_spec='${libname}${release}${shared_ext}$major'
 
9270
  shlibpath_var=LD_LIBRARY_PATH
 
9271
  hardcode_into_libs=yes
 
9272
  if test "$with_gnu_ld" = yes; then
 
9273
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9274
    shlibpath_overrides_runpath=no
 
9275
  else
 
9276
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9277
    shlibpath_overrides_runpath=yes
 
9278
    case $host_os in
 
9279
      sco3.2v5*)
 
9280
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9281
        ;;
 
9282
    esac
 
9283
  fi
 
9284
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9285
  ;;
 
9286
 
 
9287
uts4*)
 
9288
  version_type=linux
 
9289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9290
  soname_spec='${libname}${release}${shared_ext}$major'
 
9291
  shlibpath_var=LD_LIBRARY_PATH
 
9292
  ;;
 
9293
 
 
9294
*)
 
9295
  dynamic_linker=no
 
9296
  ;;
 
9297
esac
 
9298
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9299
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9300
test "$dynamic_linker" = no && can_build_shared=no
 
9301
 
 
9302
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9303
if test "$GCC" = yes; then
 
9304
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9305
fi
 
9306
 
 
9307
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9308
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9309
hardcode_action=
 
9310
if test -n "$hardcode_libdir_flag_spec" || \
 
9311
   test -n "$runpath_var" || \
 
9312
   test "X$hardcode_automatic" = "Xyes" ; then
 
9313
 
 
9314
  # We can hardcode non-existant directories.
 
9315
  if test "$hardcode_direct" != no &&
 
9316
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9317
     # have to relink, otherwise we might link with an installed library
 
9318
     # when we should be linking with a yet-to-be-installed one
 
9319
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9320
     test "$hardcode_minus_L" != no; then
 
9321
    # Linking always hardcodes the temporary library directory.
 
9322
    hardcode_action=relink
 
9323
  else
 
9324
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9325
    hardcode_action=immediate
 
9326
  fi
 
9327
else
 
9328
  # We cannot hardcode anything, or else we can only hardcode existing
 
9329
  # directories.
 
9330
  hardcode_action=unsupported
 
9331
fi
 
9332
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9333
echo "${ECHO_T}$hardcode_action" >&6; }
 
9334
 
 
9335
if test "$hardcode_action" = relink; then
 
9336
  # Fast installation is not supported
 
9337
  enable_fast_install=no
 
9338
elif test "$shlibpath_overrides_runpath" = yes ||
 
9339
     test "$enable_shared" = no; then
 
9340
  # Fast installation is not necessary
 
9341
  enable_fast_install=needless
 
9342
fi
 
9343
 
 
9344
striplib=
 
9345
old_striplib=
 
9346
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9347
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9348
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9349
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9350
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9351
  { echo "$as_me:$LINENO: result: yes" >&5
 
9352
echo "${ECHO_T}yes" >&6; }
 
9353
else
 
9354
# FIXME - insert some real tests, host_os isn't really good enough
 
9355
  case $host_os in
 
9356
   darwin*)
 
9357
       if test -n "$STRIP" ; then
 
9358
         striplib="$STRIP -x"
 
9359
         old_striplib="$STRIP -S"
 
9360
         { echo "$as_me:$LINENO: result: yes" >&5
 
9361
echo "${ECHO_T}yes" >&6; }
 
9362
       else
 
9363
  { echo "$as_me:$LINENO: result: no" >&5
 
9364
echo "${ECHO_T}no" >&6; }
 
9365
fi
 
9366
       ;;
 
9367
   *)
 
9368
  { echo "$as_me:$LINENO: result: no" >&5
 
9369
echo "${ECHO_T}no" >&6; }
 
9370
    ;;
 
9371
  esac
 
9372
fi
 
9373
 
 
9374
if test "x$enable_dlopen" != xyes; then
 
9375
  enable_dlopen=unknown
 
9376
  enable_dlopen_self=unknown
 
9377
  enable_dlopen_self_static=unknown
 
9378
else
 
9379
  lt_cv_dlopen=no
 
9380
  lt_cv_dlopen_libs=
 
9381
 
 
9382
  case $host_os in
 
9383
  beos*)
 
9384
    lt_cv_dlopen="load_add_on"
 
9385
    lt_cv_dlopen_libs=
 
9386
    lt_cv_dlopen_self=yes
 
9387
    ;;
 
9388
 
 
9389
  mingw* | pw32*)
 
9390
    lt_cv_dlopen="LoadLibrary"
 
9391
    lt_cv_dlopen_libs=
 
9392
   ;;
 
9393
 
 
9394
  cygwin*)
 
9395
    lt_cv_dlopen="dlopen"
 
9396
    lt_cv_dlopen_libs=
 
9397
   ;;
 
9398
 
 
9399
  darwin*)
 
9400
  # if libdl is installed we need to link against it
 
9401
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9402
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9403
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9404
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9405
else
 
9406
  ac_check_lib_save_LIBS=$LIBS
 
9407
LIBS="-ldl  $LIBS"
 
9408
cat >conftest.$ac_ext <<_ACEOF
 
9409
/* confdefs.h.  */
 
9410
_ACEOF
 
9411
cat confdefs.h >>conftest.$ac_ext
 
9412
cat >>conftest.$ac_ext <<_ACEOF
 
9413
/* end confdefs.h.  */
 
9414
 
 
9415
/* Override any GCC internal prototype to avoid an error.
 
9416
   Use char because int might match the return type of a GCC
 
9417
   builtin and then its argument prototype would still apply.  */
 
9418
#ifdef __cplusplus
 
9419
extern "C"
 
9420
#endif
 
9421
char dlopen ();
 
9422
int
 
9423
main ()
 
9424
{
 
9425
return dlopen ();
 
9426
  ;
 
9427
  return 0;
 
9428
}
 
9429
_ACEOF
 
9430
rm -f conftest.$ac_objext conftest$ac_exeext
 
9431
if { (ac_try="$ac_link"
 
9432
case "(($ac_try" in
 
9433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9434
  *) ac_try_echo=$ac_try;;
 
9435
esac
 
9436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9437
  (eval "$ac_link") 2>conftest.er1
 
9438
  ac_status=$?
 
9439
  grep -v '^ *+' conftest.er1 >conftest.err
 
9440
  rm -f conftest.er1
 
9441
  cat conftest.err >&5
 
9442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9443
  (exit $ac_status); } && {
 
9444
         test -z "$ac_c_werror_flag" ||
 
9445
         test ! -s conftest.err
 
9446
       } && test -s conftest$ac_exeext &&
 
9447
       $as_test_x conftest$ac_exeext; then
 
9448
  ac_cv_lib_dl_dlopen=yes
 
9449
else
 
9450
  echo "$as_me: failed program was:" >&5
 
9451
sed 's/^/| /' conftest.$ac_ext >&5
 
9452
 
 
9453
        ac_cv_lib_dl_dlopen=no
 
9454
fi
 
9455
 
 
9456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9457
      conftest$ac_exeext conftest.$ac_ext
 
9458
LIBS=$ac_check_lib_save_LIBS
 
9459
fi
 
9460
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9461
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9462
if test $ac_cv_lib_dl_dlopen = yes; then
 
9463
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9464
else
 
9465
 
 
9466
    lt_cv_dlopen="dyld"
 
9467
    lt_cv_dlopen_libs=
 
9468
    lt_cv_dlopen_self=yes
 
9469
 
 
9470
fi
 
9471
 
 
9472
   ;;
 
9473
 
 
9474
  *)
 
9475
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9476
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9477
if test "${ac_cv_func_shl_load+set}" = set; then
 
9478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9479
else
 
9480
  cat >conftest.$ac_ext <<_ACEOF
 
9481
/* confdefs.h.  */
 
9482
_ACEOF
 
9483
cat confdefs.h >>conftest.$ac_ext
 
9484
cat >>conftest.$ac_ext <<_ACEOF
 
9485
/* end confdefs.h.  */
 
9486
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9487
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9488
#define shl_load innocuous_shl_load
 
9489
 
 
9490
/* System header to define __stub macros and hopefully few prototypes,
 
9491
    which can conflict with char shl_load (); below.
 
9492
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9493
    <limits.h> exists even on freestanding compilers.  */
 
9494
 
 
9495
#ifdef __STDC__
 
9496
# include <limits.h>
 
9497
#else
 
9498
# include <assert.h>
 
9499
#endif
 
9500
 
 
9501
#undef shl_load
 
9502
 
 
9503
/* Override any GCC internal prototype to avoid an error.
 
9504
   Use char because int might match the return type of a GCC
 
9505
   builtin and then its argument prototype would still apply.  */
 
9506
#ifdef __cplusplus
 
9507
extern "C"
 
9508
#endif
 
9509
char shl_load ();
 
9510
/* The GNU C library defines this for functions which it implements
 
9511
    to always fail with ENOSYS.  Some functions are actually named
 
9512
    something starting with __ and the normal name is an alias.  */
 
9513
#if defined __stub_shl_load || defined __stub___shl_load
 
9514
choke me
 
9515
#endif
 
9516
 
 
9517
int
 
9518
main ()
 
9519
{
 
9520
return shl_load ();
 
9521
  ;
 
9522
  return 0;
 
9523
}
 
9524
_ACEOF
 
9525
rm -f conftest.$ac_objext conftest$ac_exeext
 
9526
if { (ac_try="$ac_link"
 
9527
case "(($ac_try" in
 
9528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9529
  *) ac_try_echo=$ac_try;;
 
9530
esac
 
9531
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9532
  (eval "$ac_link") 2>conftest.er1
 
9533
  ac_status=$?
 
9534
  grep -v '^ *+' conftest.er1 >conftest.err
 
9535
  rm -f conftest.er1
 
9536
  cat conftest.err >&5
 
9537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9538
  (exit $ac_status); } && {
 
9539
         test -z "$ac_c_werror_flag" ||
 
9540
         test ! -s conftest.err
 
9541
       } && test -s conftest$ac_exeext &&
 
9542
       $as_test_x conftest$ac_exeext; then
 
9543
  ac_cv_func_shl_load=yes
 
9544
else
 
9545
  echo "$as_me: failed program was:" >&5
 
9546
sed 's/^/| /' conftest.$ac_ext >&5
 
9547
 
 
9548
        ac_cv_func_shl_load=no
 
9549
fi
 
9550
 
 
9551
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9552
      conftest$ac_exeext conftest.$ac_ext
 
9553
fi
 
9554
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9555
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9556
if test $ac_cv_func_shl_load = yes; then
 
9557
  lt_cv_dlopen="shl_load"
 
9558
else
 
9559
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9560
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9561
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9562
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9563
else
 
9564
  ac_check_lib_save_LIBS=$LIBS
 
9565
LIBS="-ldld  $LIBS"
 
9566
cat >conftest.$ac_ext <<_ACEOF
 
9567
/* confdefs.h.  */
 
9568
_ACEOF
 
9569
cat confdefs.h >>conftest.$ac_ext
 
9570
cat >>conftest.$ac_ext <<_ACEOF
 
9571
/* end confdefs.h.  */
 
9572
 
 
9573
/* Override any GCC internal prototype to avoid an error.
 
9574
   Use char because int might match the return type of a GCC
 
9575
   builtin and then its argument prototype would still apply.  */
 
9576
#ifdef __cplusplus
 
9577
extern "C"
 
9578
#endif
 
9579
char shl_load ();
 
9580
int
 
9581
main ()
 
9582
{
 
9583
return shl_load ();
 
9584
  ;
 
9585
  return 0;
 
9586
}
 
9587
_ACEOF
 
9588
rm -f conftest.$ac_objext conftest$ac_exeext
 
9589
if { (ac_try="$ac_link"
 
9590
case "(($ac_try" in
 
9591
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9592
  *) ac_try_echo=$ac_try;;
 
9593
esac
 
9594
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9595
  (eval "$ac_link") 2>conftest.er1
 
9596
  ac_status=$?
 
9597
  grep -v '^ *+' conftest.er1 >conftest.err
 
9598
  rm -f conftest.er1
 
9599
  cat conftest.err >&5
 
9600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9601
  (exit $ac_status); } && {
 
9602
         test -z "$ac_c_werror_flag" ||
 
9603
         test ! -s conftest.err
 
9604
       } && test -s conftest$ac_exeext &&
 
9605
       $as_test_x conftest$ac_exeext; then
 
9606
  ac_cv_lib_dld_shl_load=yes
 
9607
else
 
9608
  echo "$as_me: failed program was:" >&5
 
9609
sed 's/^/| /' conftest.$ac_ext >&5
 
9610
 
 
9611
        ac_cv_lib_dld_shl_load=no
 
9612
fi
 
9613
 
 
9614
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9615
      conftest$ac_exeext conftest.$ac_ext
 
9616
LIBS=$ac_check_lib_save_LIBS
 
9617
fi
 
9618
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9619
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9620
if test $ac_cv_lib_dld_shl_load = yes; then
 
9621
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9622
else
 
9623
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9624
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9625
if test "${ac_cv_func_dlopen+set}" = set; then
 
9626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9627
else
 
9628
  cat >conftest.$ac_ext <<_ACEOF
 
9629
/* confdefs.h.  */
 
9630
_ACEOF
 
9631
cat confdefs.h >>conftest.$ac_ext
 
9632
cat >>conftest.$ac_ext <<_ACEOF
 
9633
/* end confdefs.h.  */
 
9634
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9635
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9636
#define dlopen innocuous_dlopen
 
9637
 
 
9638
/* System header to define __stub macros and hopefully few prototypes,
 
9639
    which can conflict with char dlopen (); below.
 
9640
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9641
    <limits.h> exists even on freestanding compilers.  */
 
9642
 
 
9643
#ifdef __STDC__
 
9644
# include <limits.h>
 
9645
#else
 
9646
# include <assert.h>
 
9647
#endif
 
9648
 
 
9649
#undef dlopen
 
9650
 
 
9651
/* Override any GCC internal prototype to avoid an error.
 
9652
   Use char because int might match the return type of a GCC
 
9653
   builtin and then its argument prototype would still apply.  */
 
9654
#ifdef __cplusplus
 
9655
extern "C"
 
9656
#endif
 
9657
char dlopen ();
 
9658
/* The GNU C library defines this for functions which it implements
 
9659
    to always fail with ENOSYS.  Some functions are actually named
 
9660
    something starting with __ and the normal name is an alias.  */
 
9661
#if defined __stub_dlopen || defined __stub___dlopen
 
9662
choke me
 
9663
#endif
 
9664
 
 
9665
int
 
9666
main ()
 
9667
{
 
9668
return dlopen ();
 
9669
  ;
 
9670
  return 0;
 
9671
}
 
9672
_ACEOF
 
9673
rm -f conftest.$ac_objext conftest$ac_exeext
 
9674
if { (ac_try="$ac_link"
 
9675
case "(($ac_try" in
 
9676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9677
  *) ac_try_echo=$ac_try;;
 
9678
esac
 
9679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9680
  (eval "$ac_link") 2>conftest.er1
 
9681
  ac_status=$?
 
9682
  grep -v '^ *+' conftest.er1 >conftest.err
 
9683
  rm -f conftest.er1
 
9684
  cat conftest.err >&5
 
9685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9686
  (exit $ac_status); } && {
 
9687
         test -z "$ac_c_werror_flag" ||
 
9688
         test ! -s conftest.err
 
9689
       } && test -s conftest$ac_exeext &&
 
9690
       $as_test_x conftest$ac_exeext; then
 
9691
  ac_cv_func_dlopen=yes
 
9692
else
 
9693
  echo "$as_me: failed program was:" >&5
 
9694
sed 's/^/| /' conftest.$ac_ext >&5
 
9695
 
 
9696
        ac_cv_func_dlopen=no
 
9697
fi
 
9698
 
 
9699
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9700
      conftest$ac_exeext conftest.$ac_ext
 
9701
fi
 
9702
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9703
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9704
if test $ac_cv_func_dlopen = yes; then
 
9705
  lt_cv_dlopen="dlopen"
 
9706
else
 
9707
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9708
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9709
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9711
else
 
9712
  ac_check_lib_save_LIBS=$LIBS
 
9713
LIBS="-ldl  $LIBS"
 
9714
cat >conftest.$ac_ext <<_ACEOF
 
9715
/* confdefs.h.  */
 
9716
_ACEOF
 
9717
cat confdefs.h >>conftest.$ac_ext
 
9718
cat >>conftest.$ac_ext <<_ACEOF
 
9719
/* end confdefs.h.  */
 
9720
 
 
9721
/* Override any GCC internal prototype to avoid an error.
 
9722
   Use char because int might match the return type of a GCC
 
9723
   builtin and then its argument prototype would still apply.  */
 
9724
#ifdef __cplusplus
 
9725
extern "C"
 
9726
#endif
 
9727
char dlopen ();
 
9728
int
 
9729
main ()
 
9730
{
 
9731
return dlopen ();
 
9732
  ;
 
9733
  return 0;
 
9734
}
 
9735
_ACEOF
 
9736
rm -f conftest.$ac_objext conftest$ac_exeext
 
9737
if { (ac_try="$ac_link"
 
9738
case "(($ac_try" in
 
9739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9740
  *) ac_try_echo=$ac_try;;
 
9741
esac
 
9742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9743
  (eval "$ac_link") 2>conftest.er1
 
9744
  ac_status=$?
 
9745
  grep -v '^ *+' conftest.er1 >conftest.err
 
9746
  rm -f conftest.er1
 
9747
  cat conftest.err >&5
 
9748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9749
  (exit $ac_status); } && {
 
9750
         test -z "$ac_c_werror_flag" ||
 
9751
         test ! -s conftest.err
 
9752
       } && test -s conftest$ac_exeext &&
 
9753
       $as_test_x conftest$ac_exeext; then
 
9754
  ac_cv_lib_dl_dlopen=yes
 
9755
else
 
9756
  echo "$as_me: failed program was:" >&5
 
9757
sed 's/^/| /' conftest.$ac_ext >&5
 
9758
 
 
9759
        ac_cv_lib_dl_dlopen=no
 
9760
fi
 
9761
 
 
9762
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9763
      conftest$ac_exeext conftest.$ac_ext
 
9764
LIBS=$ac_check_lib_save_LIBS
 
9765
fi
 
9766
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9767
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9768
if test $ac_cv_lib_dl_dlopen = yes; then
 
9769
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9770
else
 
9771
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9772
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9773
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9775
else
 
9776
  ac_check_lib_save_LIBS=$LIBS
 
9777
LIBS="-lsvld  $LIBS"
 
9778
cat >conftest.$ac_ext <<_ACEOF
 
9779
/* confdefs.h.  */
 
9780
_ACEOF
 
9781
cat confdefs.h >>conftest.$ac_ext
 
9782
cat >>conftest.$ac_ext <<_ACEOF
 
9783
/* end confdefs.h.  */
 
9784
 
 
9785
/* Override any GCC internal prototype to avoid an error.
 
9786
   Use char because int might match the return type of a GCC
 
9787
   builtin and then its argument prototype would still apply.  */
 
9788
#ifdef __cplusplus
 
9789
extern "C"
 
9790
#endif
 
9791
char dlopen ();
 
9792
int
 
9793
main ()
 
9794
{
 
9795
return dlopen ();
 
9796
  ;
 
9797
  return 0;
 
9798
}
 
9799
_ACEOF
 
9800
rm -f conftest.$ac_objext conftest$ac_exeext
 
9801
if { (ac_try="$ac_link"
 
9802
case "(($ac_try" in
 
9803
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9804
  *) ac_try_echo=$ac_try;;
 
9805
esac
 
9806
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9807
  (eval "$ac_link") 2>conftest.er1
 
9808
  ac_status=$?
 
9809
  grep -v '^ *+' conftest.er1 >conftest.err
 
9810
  rm -f conftest.er1
 
9811
  cat conftest.err >&5
 
9812
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9813
  (exit $ac_status); } && {
 
9814
         test -z "$ac_c_werror_flag" ||
 
9815
         test ! -s conftest.err
 
9816
       } && test -s conftest$ac_exeext &&
 
9817
       $as_test_x conftest$ac_exeext; then
 
9818
  ac_cv_lib_svld_dlopen=yes
 
9819
else
 
9820
  echo "$as_me: failed program was:" >&5
 
9821
sed 's/^/| /' conftest.$ac_ext >&5
 
9822
 
 
9823
        ac_cv_lib_svld_dlopen=no
 
9824
fi
 
9825
 
 
9826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9827
      conftest$ac_exeext conftest.$ac_ext
 
9828
LIBS=$ac_check_lib_save_LIBS
 
9829
fi
 
9830
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9831
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9832
if test $ac_cv_lib_svld_dlopen = yes; then
 
9833
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9834
else
 
9835
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9836
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9837
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9839
else
 
9840
  ac_check_lib_save_LIBS=$LIBS
 
9841
LIBS="-ldld  $LIBS"
 
9842
cat >conftest.$ac_ext <<_ACEOF
 
9843
/* confdefs.h.  */
 
9844
_ACEOF
 
9845
cat confdefs.h >>conftest.$ac_ext
 
9846
cat >>conftest.$ac_ext <<_ACEOF
 
9847
/* end confdefs.h.  */
 
9848
 
 
9849
/* Override any GCC internal prototype to avoid an error.
 
9850
   Use char because int might match the return type of a GCC
 
9851
   builtin and then its argument prototype would still apply.  */
 
9852
#ifdef __cplusplus
 
9853
extern "C"
 
9854
#endif
 
9855
char dld_link ();
 
9856
int
 
9857
main ()
 
9858
{
 
9859
return dld_link ();
 
9860
  ;
 
9861
  return 0;
 
9862
}
 
9863
_ACEOF
 
9864
rm -f conftest.$ac_objext conftest$ac_exeext
 
9865
if { (ac_try="$ac_link"
 
9866
case "(($ac_try" in
 
9867
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9868
  *) ac_try_echo=$ac_try;;
 
9869
esac
 
9870
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9871
  (eval "$ac_link") 2>conftest.er1
 
9872
  ac_status=$?
 
9873
  grep -v '^ *+' conftest.er1 >conftest.err
 
9874
  rm -f conftest.er1
 
9875
  cat conftest.err >&5
 
9876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9877
  (exit $ac_status); } && {
 
9878
         test -z "$ac_c_werror_flag" ||
 
9879
         test ! -s conftest.err
 
9880
       } && test -s conftest$ac_exeext &&
 
9881
       $as_test_x conftest$ac_exeext; then
 
9882
  ac_cv_lib_dld_dld_link=yes
 
9883
else
 
9884
  echo "$as_me: failed program was:" >&5
 
9885
sed 's/^/| /' conftest.$ac_ext >&5
 
9886
 
 
9887
        ac_cv_lib_dld_dld_link=no
 
9888
fi
 
9889
 
 
9890
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9891
      conftest$ac_exeext conftest.$ac_ext
 
9892
LIBS=$ac_check_lib_save_LIBS
 
9893
fi
 
9894
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9895
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9896
if test $ac_cv_lib_dld_dld_link = yes; then
 
9897
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9898
fi
 
9899
 
 
9900
 
 
9901
fi
 
9902
 
 
9903
 
 
9904
fi
 
9905
 
 
9906
 
 
9907
fi
 
9908
 
 
9909
 
 
9910
fi
 
9911
 
 
9912
 
 
9913
fi
 
9914
 
 
9915
    ;;
 
9916
  esac
 
9917
 
 
9918
  if test "x$lt_cv_dlopen" != xno; then
 
9919
    enable_dlopen=yes
 
9920
  else
 
9921
    enable_dlopen=no
 
9922
  fi
 
9923
 
 
9924
  case $lt_cv_dlopen in
 
9925
  dlopen)
 
9926
    save_CPPFLAGS="$CPPFLAGS"
 
9927
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9928
 
 
9929
    save_LDFLAGS="$LDFLAGS"
 
9930
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9931
 
 
9932
    save_LIBS="$LIBS"
 
9933
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9934
 
 
9935
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9936
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9937
if test "${lt_cv_dlopen_self+set}" = set; then
 
9938
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9939
else
 
9940
          if test "$cross_compiling" = yes; then :
 
9941
  lt_cv_dlopen_self=cross
 
9942
else
 
9943
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9944
  lt_status=$lt_dlunknown
 
9945
  cat > conftest.$ac_ext <<EOF
 
9946
#line 9946 "configure"
 
9947
#include "confdefs.h"
 
9948
 
 
9949
#if HAVE_DLFCN_H
 
9950
#include <dlfcn.h>
 
9951
#endif
 
9952
 
 
9953
#include <stdio.h>
 
9954
 
 
9955
#ifdef RTLD_GLOBAL
 
9956
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9957
#else
 
9958
#  ifdef DL_GLOBAL
 
9959
#    define LT_DLGLOBAL         DL_GLOBAL
 
9960
#  else
 
9961
#    define LT_DLGLOBAL         0
 
9962
#  endif
 
9963
#endif
 
9964
 
 
9965
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9966
   find out it does not work in some platform. */
 
9967
#ifndef LT_DLLAZY_OR_NOW
 
9968
#  ifdef RTLD_LAZY
 
9969
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9970
#  else
 
9971
#    ifdef DL_LAZY
 
9972
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9973
#    else
 
9974
#      ifdef RTLD_NOW
 
9975
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9976
#      else
 
9977
#        ifdef DL_NOW
 
9978
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9979
#        else
 
9980
#          define LT_DLLAZY_OR_NOW      0
 
9981
#        endif
 
9982
#      endif
 
9983
#    endif
 
9984
#  endif
 
9985
#endif
 
9986
 
 
9987
#ifdef __cplusplus
 
9988
extern "C" void exit (int);
 
9989
#endif
 
9990
 
 
9991
void fnord() { int i=42;}
 
9992
int main ()
 
9993
{
 
9994
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9995
  int status = $lt_dlunknown;
 
9996
 
 
9997
  if (self)
 
9998
    {
 
9999
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10000
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10001
      /* dlclose (self); */
 
10002
    }
 
10003
  else
 
10004
    puts (dlerror ());
 
10005
 
 
10006
    exit (status);
 
10007
}
 
10008
EOF
 
10009
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10010
  (eval $ac_link) 2>&5
 
10011
  ac_status=$?
 
10012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10013
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10014
    (./conftest; exit; ) >&5 2>/dev/null
 
10015
    lt_status=$?
 
10016
    case x$lt_status in
 
10017
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10018
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10019
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10020
    esac
 
10021
  else :
 
10022
    # compilation failed
 
10023
    lt_cv_dlopen_self=no
 
10024
  fi
 
10025
fi
 
10026
rm -fr conftest*
 
10027
 
 
10028
 
 
10029
fi
 
10030
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10031
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10032
 
 
10033
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10034
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10035
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10036
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10037
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10039
else
 
10040
          if test "$cross_compiling" = yes; then :
 
10041
  lt_cv_dlopen_self_static=cross
 
10042
else
 
10043
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10044
  lt_status=$lt_dlunknown
 
10045
  cat > conftest.$ac_ext <<EOF
 
10046
#line 10046 "configure"
 
10047
#include "confdefs.h"
 
10048
 
 
10049
#if HAVE_DLFCN_H
 
10050
#include <dlfcn.h>
 
10051
#endif
 
10052
 
 
10053
#include <stdio.h>
 
10054
 
 
10055
#ifdef RTLD_GLOBAL
 
10056
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10057
#else
 
10058
#  ifdef DL_GLOBAL
 
10059
#    define LT_DLGLOBAL         DL_GLOBAL
 
10060
#  else
 
10061
#    define LT_DLGLOBAL         0
 
10062
#  endif
 
10063
#endif
 
10064
 
 
10065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10066
   find out it does not work in some platform. */
 
10067
#ifndef LT_DLLAZY_OR_NOW
 
10068
#  ifdef RTLD_LAZY
 
10069
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10070
#  else
 
10071
#    ifdef DL_LAZY
 
10072
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10073
#    else
 
10074
#      ifdef RTLD_NOW
 
10075
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10076
#      else
 
10077
#        ifdef DL_NOW
 
10078
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10079
#        else
 
10080
#          define LT_DLLAZY_OR_NOW      0
 
10081
#        endif
 
10082
#      endif
 
10083
#    endif
 
10084
#  endif
 
10085
#endif
 
10086
 
 
10087
#ifdef __cplusplus
 
10088
extern "C" void exit (int);
 
10089
#endif
 
10090
 
 
10091
void fnord() { int i=42;}
 
10092
int main ()
 
10093
{
 
10094
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10095
  int status = $lt_dlunknown;
 
10096
 
 
10097
  if (self)
 
10098
    {
 
10099
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10100
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10101
      /* dlclose (self); */
 
10102
    }
 
10103
  else
 
10104
    puts (dlerror ());
 
10105
 
 
10106
    exit (status);
 
10107
}
 
10108
EOF
 
10109
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10110
  (eval $ac_link) 2>&5
 
10111
  ac_status=$?
 
10112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10113
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10114
    (./conftest; exit; ) >&5 2>/dev/null
 
10115
    lt_status=$?
 
10116
    case x$lt_status in
 
10117
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10118
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10119
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10120
    esac
 
10121
  else :
 
10122
    # compilation failed
 
10123
    lt_cv_dlopen_self_static=no
 
10124
  fi
 
10125
fi
 
10126
rm -fr conftest*
 
10127
 
 
10128
 
 
10129
fi
 
10130
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10131
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10132
    fi
 
10133
 
 
10134
    CPPFLAGS="$save_CPPFLAGS"
 
10135
    LDFLAGS="$save_LDFLAGS"
 
10136
    LIBS="$save_LIBS"
 
10137
    ;;
 
10138
  esac
 
10139
 
 
10140
  case $lt_cv_dlopen_self in
 
10141
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10142
  *) enable_dlopen_self=unknown ;;
 
10143
  esac
 
10144
 
 
10145
  case $lt_cv_dlopen_self_static in
 
10146
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10147
  *) enable_dlopen_self_static=unknown ;;
 
10148
  esac
 
10149
fi
 
10150
 
 
10151
 
 
10152
# Report which library types will actually be built
 
10153
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10154
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10155
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10156
echo "${ECHO_T}$can_build_shared" >&6; }
 
10157
 
 
10158
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10159
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10160
test "$can_build_shared" = "no" && enable_shared=no
 
10161
 
 
10162
# On AIX, shared libraries and static libraries use the same namespace, and
 
10163
# are all built from PIC.
 
10164
case $host_os in
 
10165
aix3*)
 
10166
  test "$enable_shared" = yes && enable_static=no
 
10167
  if test -n "$RANLIB"; then
 
10168
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10169
    postinstall_cmds='$RANLIB $lib'
 
10170
  fi
 
10171
  ;;
 
10172
 
 
10173
aix4* | aix5*)
 
10174
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10175
    test "$enable_shared" = yes && enable_static=no
 
10176
  fi
 
10177
    ;;
 
10178
esac
 
10179
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10180
echo "${ECHO_T}$enable_shared" >&6; }
 
10181
 
 
10182
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10183
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10184
# Make sure either enable_shared or enable_static is yes.
 
10185
test "$enable_shared" = yes || enable_static=yes
 
10186
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10187
echo "${ECHO_T}$enable_static" >&6; }
 
10188
 
 
10189
# The else clause should only fire when bootstrapping the
 
10190
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10191
# with your package, and you will get complaints that there are
 
10192
# no rules to generate ltmain.sh.
 
10193
if test -f "$ltmain"; then
 
10194
  # See if we are running on zsh, and set the options which allow our commands through
 
10195
  # without removal of \ escapes.
 
10196
  if test -n "${ZSH_VERSION+set}" ; then
 
10197
    setopt NO_GLOB_SUBST
 
10198
  fi
 
10199
  # Now quote all the things that may contain metacharacters while being
 
10200
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10201
  # variables and quote the copies for generation of the libtool script.
 
10202
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10203
    SED SHELL STRIP \
 
10204
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10205
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10206
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10207
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10208
    lt_cv_sys_global_symbol_to_c_name_address \
 
10209
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10210
    old_postinstall_cmds old_postuninstall_cmds \
 
10211
    compiler \
 
10212
    CC \
 
10213
    LD \
 
10214
    lt_prog_compiler_wl \
 
10215
    lt_prog_compiler_pic \
 
10216
    lt_prog_compiler_static \
 
10217
    lt_prog_compiler_no_builtin_flag \
 
10218
    export_dynamic_flag_spec \
 
10219
    thread_safe_flag_spec \
 
10220
    whole_archive_flag_spec \
 
10221
    enable_shared_with_static_runtimes \
 
10222
    old_archive_cmds \
 
10223
    old_archive_from_new_cmds \
 
10224
    predep_objects \
 
10225
    postdep_objects \
 
10226
    predeps \
 
10227
    postdeps \
 
10228
    compiler_lib_search_path \
 
10229
    archive_cmds \
 
10230
    archive_expsym_cmds \
 
10231
    postinstall_cmds \
 
10232
    postuninstall_cmds \
 
10233
    old_archive_from_expsyms_cmds \
 
10234
    allow_undefined_flag \
 
10235
    no_undefined_flag \
 
10236
    export_symbols_cmds \
 
10237
    hardcode_libdir_flag_spec \
 
10238
    hardcode_libdir_flag_spec_ld \
 
10239
    hardcode_libdir_separator \
 
10240
    hardcode_automatic \
 
10241
    module_cmds \
 
10242
    module_expsym_cmds \
 
10243
    lt_cv_prog_compiler_c_o \
 
10244
    fix_srcfile_path \
 
10245
    exclude_expsyms \
 
10246
    include_expsyms; do
 
10247
 
 
10248
    case $var in
 
10249
    old_archive_cmds | \
 
10250
    old_archive_from_new_cmds | \
 
10251
    archive_cmds | \
 
10252
    archive_expsym_cmds | \
 
10253
    module_cmds | \
 
10254
    module_expsym_cmds | \
 
10255
    old_archive_from_expsyms_cmds | \
 
10256
    export_symbols_cmds | \
 
10257
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10258
    postinstall_cmds | postuninstall_cmds | \
 
10259
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10260
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10261
      # Double-quote double-evaled strings.
 
10262
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10263
      ;;
 
10264
    *)
 
10265
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10266
      ;;
 
10267
    esac
 
10268
  done
 
10269
 
 
10270
  case $lt_echo in
 
10271
  *'\$0 --fallback-echo"')
 
10272
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10273
    ;;
 
10274
  esac
 
10275
 
 
10276
cfgfile="${ofile}T"
 
10277
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10278
  $rm -f "$cfgfile"
 
10279
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10280
echo "$as_me: creating $ofile" >&6;}
 
10281
 
 
10282
  cat <<__EOF__ >> "$cfgfile"
 
10283
#! $SHELL
 
10284
 
 
10285
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10286
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10287
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10288
#
 
10289
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
 
10290
# Free Software Foundation, Inc.
 
10291
#
 
10292
# This file is part of GNU Libtool:
 
10293
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10294
#
 
10295
# This program is free software; you can redistribute it and/or modify
 
10296
# it under the terms of the GNU General Public License as published by
 
10297
# the Free Software Foundation; either version 2 of the License, or
 
10298
# (at your option) any later version.
 
10299
#
 
10300
# This program is distributed in the hope that it will be useful, but
 
10301
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10302
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10303
# General Public License for more details.
 
10304
#
 
10305
# You should have received a copy of the GNU General Public License
 
10306
# along with this program; if not, write to the Free Software
 
10307
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10308
#
 
10309
# As a special exception to the GNU General Public License, if you
 
10310
# distribute this file as part of a program that contains a
 
10311
# configuration script generated by Autoconf, you may include it under
 
10312
# the same distribution terms that you use for the rest of that program.
 
10313
 
 
10314
# A sed program that does not truncate output.
 
10315
SED=$lt_SED
 
10316
 
 
10317
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10318
Xsed="$SED -e 1s/^X//"
 
10319
 
 
10320
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10321
# if CDPATH is set.
 
10322
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10323
 
 
10324
# The names of the tagged configurations supported by this script.
 
10325
available_tags=
 
10326
 
 
10327
# ### BEGIN LIBTOOL CONFIG
 
10328
 
 
10329
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10330
 
 
10331
# Shell to use when invoking shell scripts.
 
10332
SHELL=$lt_SHELL
 
10333
 
 
10334
# Whether or not to build shared libraries.
 
10335
build_libtool_libs=$enable_shared
 
10336
 
 
10337
# Whether or not to build static libraries.
 
10338
build_old_libs=$enable_static
 
10339
 
 
10340
# Whether or not to add -lc for building shared libraries.
 
10341
build_libtool_need_lc=$archive_cmds_need_lc
 
10342
 
 
10343
# Whether or not to disallow shared libs when runtime libs are static
 
10344
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10345
 
 
10346
# Whether or not to optimize for fast installation.
 
10347
fast_install=$enable_fast_install
 
10348
 
 
10349
# The host system.
 
10350
host_alias=$host_alias
 
10351
host=$host
 
10352
host_os=$host_os
 
10353
 
 
10354
# The build system.
 
10355
build_alias=$build_alias
 
10356
build=$build
 
10357
build_os=$build_os
 
10358
 
 
10359
# An echo program that does not interpret backslashes.
 
10360
echo=$lt_echo
 
10361
 
 
10362
# The archiver.
 
10363
AR=$lt_AR
 
10364
AR_FLAGS=$lt_AR_FLAGS
 
10365
 
 
10366
# A C compiler.
 
10367
LTCC=$lt_LTCC
 
10368
 
 
10369
# LTCC compiler flags.
 
10370
LTCFLAGS=$lt_LTCFLAGS
 
10371
 
 
10372
# A language-specific compiler.
 
10373
CC=$lt_compiler
 
10374
 
 
10375
# Is the compiler the GNU C compiler?
 
10376
with_gcc=$GCC
 
10377
 
 
10378
# An ERE matcher.
 
10379
EGREP=$lt_EGREP
 
10380
 
 
10381
# The linker used to build libraries.
 
10382
LD=$lt_LD
 
10383
 
 
10384
# Whether we need hard or soft links.
 
10385
LN_S=$lt_LN_S
 
10386
 
 
10387
# A BSD-compatible nm program.
 
10388
NM=$lt_NM
 
10389
 
 
10390
# A symbol stripping program
 
10391
STRIP=$lt_STRIP
 
10392
 
 
10393
# Used to examine libraries when file_magic_cmd begins "file"
 
10394
MAGIC_CMD=$MAGIC_CMD
 
10395
 
 
10396
# Used on cygwin: DLL creation program.
 
10397
DLLTOOL="$DLLTOOL"
 
10398
 
 
10399
# Used on cygwin: object dumper.
 
10400
OBJDUMP="$OBJDUMP"
 
10401
 
 
10402
# Used on cygwin: assembler.
 
10403
AS="$AS"
 
10404
 
 
10405
# The name of the directory that contains temporary libtool files.
 
10406
objdir=$objdir
 
10407
 
 
10408
# How to create reloadable object files.
 
10409
reload_flag=$lt_reload_flag
 
10410
reload_cmds=$lt_reload_cmds
 
10411
 
 
10412
# How to pass a linker flag through the compiler.
 
10413
wl=$lt_lt_prog_compiler_wl
 
10414
 
 
10415
# Object file suffix (normally "o").
 
10416
objext="$ac_objext"
 
10417
 
 
10418
# Old archive suffix (normally "a").
 
10419
libext="$libext"
 
10420
 
 
10421
# Shared library suffix (normally ".so").
 
10422
shrext_cmds='$shrext_cmds'
 
10423
 
 
10424
# Executable file suffix (normally "").
 
10425
exeext="$exeext"
 
10426
 
 
10427
# Additional compiler flags for building library objects.
 
10428
pic_flag=$lt_lt_prog_compiler_pic
 
10429
pic_mode=$pic_mode
 
10430
 
 
10431
# What is the maximum length of a command?
 
10432
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10433
 
 
10434
# Does compiler simultaneously support -c and -o options?
 
10435
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10436
 
 
10437
# Must we lock files when doing compilation?
 
10438
need_locks=$lt_need_locks
 
10439
 
 
10440
# Do we need the lib prefix for modules?
 
10441
need_lib_prefix=$need_lib_prefix
 
10442
 
 
10443
# Do we need a version for libraries?
 
10444
need_version=$need_version
 
10445
 
 
10446
# Whether dlopen is supported.
 
10447
dlopen_support=$enable_dlopen
 
10448
 
 
10449
# Whether dlopen of programs is supported.
 
10450
dlopen_self=$enable_dlopen_self
 
10451
 
 
10452
# Whether dlopen of statically linked programs is supported.
 
10453
dlopen_self_static=$enable_dlopen_self_static
 
10454
 
 
10455
# Compiler flag to prevent dynamic linking.
 
10456
link_static_flag=$lt_lt_prog_compiler_static
 
10457
 
 
10458
# Compiler flag to turn off builtin functions.
 
10459
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10460
 
 
10461
# Compiler flag to allow reflexive dlopens.
 
10462
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10463
 
 
10464
# Compiler flag to generate shared objects directly from archives.
 
10465
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10466
 
 
10467
# Compiler flag to generate thread-safe objects.
 
10468
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10469
 
 
10470
# Library versioning type.
 
10471
version_type=$version_type
 
10472
 
 
10473
# Format of library name prefix.
 
10474
libname_spec=$lt_libname_spec
 
10475
 
 
10476
# List of archive names.  First name is the real one, the rest are links.
 
10477
# The last name is the one that the linker finds with -lNAME.
 
10478
library_names_spec=$lt_library_names_spec
 
10479
 
 
10480
# The coded name of the library, if different from the real name.
 
10481
soname_spec=$lt_soname_spec
 
10482
 
 
10483
# Commands used to build and install an old-style archive.
 
10484
RANLIB=$lt_RANLIB
 
10485
old_archive_cmds=$lt_old_archive_cmds
 
10486
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10487
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10488
 
 
10489
# Create an old-style archive from a shared archive.
 
10490
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10491
 
 
10492
# Create a temporary old-style archive to link instead of a shared archive.
 
10493
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10494
 
 
10495
# Commands used to build and install a shared archive.
 
10496
archive_cmds=$lt_archive_cmds
 
10497
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10498
postinstall_cmds=$lt_postinstall_cmds
 
10499
postuninstall_cmds=$lt_postuninstall_cmds
 
10500
 
 
10501
# Commands used to build a loadable module (assumed same as above if empty)
 
10502
module_cmds=$lt_module_cmds
 
10503
module_expsym_cmds=$lt_module_expsym_cmds
 
10504
 
 
10505
# Commands to strip libraries.
 
10506
old_striplib=$lt_old_striplib
 
10507
striplib=$lt_striplib
 
10508
 
 
10509
# Dependencies to place before the objects being linked to create a
 
10510
# shared library.
 
10511
predep_objects=$lt_predep_objects
 
10512
 
 
10513
# Dependencies to place after the objects being linked to create a
 
10514
# shared library.
 
10515
postdep_objects=$lt_postdep_objects
 
10516
 
 
10517
# Dependencies to place before the objects being linked to create a
 
10518
# shared library.
 
10519
predeps=$lt_predeps
 
10520
 
 
10521
# Dependencies to place after the objects being linked to create a
 
10522
# shared library.
 
10523
postdeps=$lt_postdeps
 
10524
 
 
10525
# The library search path used internally by the compiler when linking
 
10526
# a shared library.
 
10527
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10528
 
 
10529
# Method to check whether dependent libraries are shared objects.
 
10530
deplibs_check_method=$lt_deplibs_check_method
 
10531
 
 
10532
# Command to use when deplibs_check_method == file_magic.
 
10533
file_magic_cmd=$lt_file_magic_cmd
 
10534
 
 
10535
# Flag that allows shared libraries with undefined symbols to be built.
 
10536
allow_undefined_flag=$lt_allow_undefined_flag
 
10537
 
 
10538
# Flag that forces no undefined symbols.
 
10539
no_undefined_flag=$lt_no_undefined_flag
 
10540
 
 
10541
# Commands used to finish a libtool library installation in a directory.
 
10542
finish_cmds=$lt_finish_cmds
 
10543
 
 
10544
# Same as above, but a single script fragment to be evaled but not shown.
 
10545
finish_eval=$lt_finish_eval
 
10546
 
 
10547
# Take the output of nm and produce a listing of raw symbols and C names.
 
10548
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10549
 
 
10550
# Transform the output of nm in a proper C declaration
 
10551
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10552
 
 
10553
# Transform the output of nm in a C name address pair
 
10554
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10555
 
 
10556
# This is the shared library runtime path variable.
 
10557
runpath_var=$runpath_var
 
10558
 
 
10559
# This is the shared library path variable.
 
10560
shlibpath_var=$shlibpath_var
 
10561
 
 
10562
# Is shlibpath searched before the hard-coded library search path?
 
10563
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10564
 
 
10565
# How to hardcode a shared library path into an executable.
 
10566
hardcode_action=$hardcode_action
 
10567
 
 
10568
# Whether we should hardcode library paths into libraries.
 
10569
hardcode_into_libs=$hardcode_into_libs
 
10570
 
 
10571
# Flag to hardcode \$libdir into a binary during linking.
 
10572
# This must work even if \$libdir does not exist.
 
10573
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10574
 
 
10575
# If ld is used when linking, flag to hardcode \$libdir into
 
10576
# a binary during linking. This must work even if \$libdir does
 
10577
# not exist.
 
10578
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10579
 
 
10580
# Whether we need a single -rpath flag with a separated argument.
 
10581
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10582
 
 
10583
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10584
# resulting binary.
 
10585
hardcode_direct=$hardcode_direct
 
10586
 
 
10587
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10588
# resulting binary.
 
10589
hardcode_minus_L=$hardcode_minus_L
 
10590
 
 
10591
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10592
# the resulting binary.
 
10593
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10594
 
 
10595
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10596
# and all subsequent libraries and executables linked against it.
 
10597
hardcode_automatic=$hardcode_automatic
 
10598
 
 
10599
# Variables whose values should be saved in libtool wrapper scripts and
 
10600
# restored at relink time.
 
10601
variables_saved_for_relink="$variables_saved_for_relink"
 
10602
 
 
10603
# Whether libtool must link a program against all its dependency libraries.
 
10604
link_all_deplibs=$link_all_deplibs
 
10605
 
 
10606
# Compile-time system search path for libraries
 
10607
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10608
 
 
10609
# Run-time system search path for libraries
 
10610
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10611
 
 
10612
# Fix the shell variable \$srcfile for the compiler.
 
10613
fix_srcfile_path=$lt_fix_srcfile_path
 
10614
 
 
10615
# Set to yes if exported symbols are required.
 
10616
always_export_symbols=$always_export_symbols
 
10617
 
 
10618
# The commands to list exported symbols.
 
10619
export_symbols_cmds=$lt_export_symbols_cmds
 
10620
 
 
10621
# The commands to extract the exported symbol list from a shared archive.
 
10622
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10623
 
 
10624
# Symbols that should not be listed in the preloaded symbols.
 
10625
exclude_expsyms=$lt_exclude_expsyms
 
10626
 
 
10627
# Symbols that must always be exported.
 
10628
include_expsyms=$lt_include_expsyms
 
10629
 
 
10630
# ### END LIBTOOL CONFIG
 
10631
 
 
10632
__EOF__
 
10633
 
 
10634
 
 
10635
  case $host_os in
 
10636
  aix3*)
 
10637
    cat <<\EOF >> "$cfgfile"
 
10638
 
 
10639
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10640
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10641
# vanish in a puff of smoke.
 
10642
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10643
  COLLECT_NAMES=
 
10644
  export COLLECT_NAMES
 
10645
fi
 
10646
EOF
 
10647
    ;;
 
10648
  esac
 
10649
 
 
10650
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10651
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10652
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10653
  # is reportedly fixed, but why not run on old versions too?
 
10654
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10655
 
 
10656
  mv -f "$cfgfile" "$ofile" || \
 
10657
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10658
  chmod +x "$ofile"
 
10659
 
 
10660
else
 
10661
  # If there is no Makefile yet, we rely on a make rule to execute
 
10662
  # `config.status --recheck' to rerun these tests and create the
 
10663
  # libtool script then.
 
10664
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10665
  if test -f "$ltmain_in"; then
 
10666
    test -f Makefile && make "$ltmain"
 
10667
  fi
 
10668
fi
 
10669
 
 
10670
 
 
10671
ac_ext=c
 
10672
ac_cpp='$CPP $CPPFLAGS'
 
10673
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10674
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10675
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10676
 
 
10677
CC="$lt_save_CC"
 
10678
 
 
10679
 
 
10680
# Check whether --with-tags was given.
 
10681
if test "${with_tags+set}" = set; then
 
10682
  withval=$with_tags; tagnames="$withval"
 
10683
fi
 
10684
 
 
10685
 
 
10686
if test -f "$ltmain" && test -n "$tagnames"; then
 
10687
  if test ! -f "${ofile}"; then
 
10688
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10689
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10690
  fi
 
10691
 
 
10692
  if test -z "$LTCC"; then
 
10693
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10694
    if test -z "$LTCC"; then
 
10695
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10696
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10697
    else
 
10698
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10699
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10700
    fi
 
10701
  fi
 
10702
  if test -z "$LTCFLAGS"; then
 
10703
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10704
  fi
 
10705
 
 
10706
  # Extract list of available tagged configurations in $ofile.
 
10707
  # Note that this assumes the entire list is on one line.
 
10708
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10709
 
 
10710
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10711
  for tagname in $tagnames; do
 
10712
    IFS="$lt_save_ifs"
 
10713
    # Check whether tagname contains only valid characters
 
10714
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10715
    "") ;;
 
10716
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10717
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10718
   { (exit 1); exit 1; }; }
 
10719
        ;;
 
10720
    esac
 
10721
 
 
10722
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10723
    then
 
10724
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10725
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10726
   { (exit 1); exit 1; }; }
 
10727
    fi
 
10728
 
 
10729
    # Update the list of available tags.
 
10730
    if test -n "$tagname"; then
 
10731
      echo appending configuration tag \"$tagname\" to $ofile
 
10732
 
 
10733
      case $tagname in
 
10734
      CXX)
 
10735
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10736
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10737
            (test "X$CXX" != "Xg++"))) ; then
 
10738
          ac_ext=cpp
 
10739
ac_cpp='$CXXCPP $CPPFLAGS'
 
10740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10743
 
 
10744
 
 
10745
 
 
10746
 
 
10747
archive_cmds_need_lc_CXX=no
 
10748
allow_undefined_flag_CXX=
 
10749
always_export_symbols_CXX=no
 
10750
archive_expsym_cmds_CXX=
 
10751
export_dynamic_flag_spec_CXX=
 
10752
hardcode_direct_CXX=no
 
10753
hardcode_libdir_flag_spec_CXX=
 
10754
hardcode_libdir_flag_spec_ld_CXX=
 
10755
hardcode_libdir_separator_CXX=
 
10756
hardcode_minus_L_CXX=no
 
10757
hardcode_shlibpath_var_CXX=unsupported
 
10758
hardcode_automatic_CXX=no
 
10759
module_cmds_CXX=
 
10760
module_expsym_cmds_CXX=
 
10761
link_all_deplibs_CXX=unknown
 
10762
old_archive_cmds_CXX=$old_archive_cmds
 
10763
no_undefined_flag_CXX=
 
10764
whole_archive_flag_spec_CXX=
 
10765
enable_shared_with_static_runtimes_CXX=no
 
10766
 
 
10767
# Dependencies to place before and after the object being linked:
 
10768
predep_objects_CXX=
 
10769
postdep_objects_CXX=
 
10770
predeps_CXX=
 
10771
postdeps_CXX=
 
10772
compiler_lib_search_path_CXX=
 
10773
 
 
10774
# Source file extension for C++ test sources.
 
10775
ac_ext=cpp
 
10776
 
 
10777
# Object file extension for compiled C++ test sources.
 
10778
objext=o
 
10779
objext_CXX=$objext
 
10780
 
 
10781
# Code to be used in simple compile tests
 
10782
lt_simple_compile_test_code="int some_variable = 0;"
 
10783
 
 
10784
# Code to be used in simple link tests
 
10785
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10786
 
 
10787
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10788
 
 
10789
# If no C compiler was specified, use CC.
 
10790
LTCC=${LTCC-"$CC"}
 
10791
 
 
10792
# If no C compiler flags were specified, use CFLAGS.
 
10793
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10794
 
 
10795
# Allow CC to be a program name with arguments.
 
10796
compiler=$CC
 
10797
 
 
10798
 
 
10799
# save warnings/boilerplate of simple test code
 
10800
ac_outfile=conftest.$ac_objext
 
10801
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10802
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10803
_lt_compiler_boilerplate=`cat conftest.err`
 
10804
$rm conftest*
 
10805
 
 
10806
ac_outfile=conftest.$ac_objext
 
10807
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
10808
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10809
_lt_linker_boilerplate=`cat conftest.err`
 
10810
$rm conftest*
 
10811
 
 
10812
 
 
10813
# Allow CC to be a program name with arguments.
 
10814
lt_save_CC=$CC
 
10815
lt_save_LD=$LD
 
10816
lt_save_GCC=$GCC
 
10817
GCC=$GXX
 
10818
lt_save_with_gnu_ld=$with_gnu_ld
 
10819
lt_save_path_LD=$lt_cv_path_LD
 
10820
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10821
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10822
else
 
10823
  $as_unset lt_cv_prog_gnu_ld
 
10824
fi
 
10825
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10826
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10827
else
 
10828
  $as_unset lt_cv_path_LD
 
10829
fi
 
10830
test -z "${LDCXX+set}" || LD=$LDCXX
 
10831
CC=${CXX-"c++"}
 
10832
compiler=$CC
 
10833
compiler_CXX=$CC
 
10834
for cc_temp in $compiler""; do
 
10835
  case $cc_temp in
 
10836
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10837
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10838
    \-*) ;;
 
10839
    *) break;;
 
10840
  esac
 
10841
done
 
10842
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10843
 
 
10844
 
 
10845
# We don't want -fno-exception wen compiling C++ code, so set the
 
10846
# no_builtin_flag separately
 
10847
if test "$GXX" = yes; then
 
10848
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10849
else
 
10850
  lt_prog_compiler_no_builtin_flag_CXX=
 
10851
fi
 
10852
 
 
10853
if test "$GXX" = yes; then
 
10854
  # Set up default GNU C++ configuration
 
10855
 
 
10856
 
 
10857
# Check whether --with-gnu-ld was given.
 
10858
if test "${with_gnu_ld+set}" = set; then
 
10859
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10860
else
 
10861
  with_gnu_ld=no
 
10862
fi
 
10863
 
 
10864
ac_prog=ld
 
10865
if test "$GCC" = yes; then
 
10866
  # Check if gcc -print-prog-name=ld gives a path.
 
10867
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10868
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10869
  case $host in
 
10870
  *-*-mingw*)
 
10871
    # gcc leaves a trailing carriage return which upsets mingw
 
10872
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10873
  *)
 
10874
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10875
  esac
 
10876
  case $ac_prog in
 
10877
    # Accept absolute paths.
 
10878
    [\\/]* | ?:[\\/]*)
 
10879
      re_direlt='/[^/][^/]*/\.\./'
 
10880
      # Canonicalize the pathname of ld
 
10881
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10882
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10883
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10884
      done
 
10885
      test -z "$LD" && LD="$ac_prog"
 
10886
      ;;
 
10887
  "")
 
10888
    # If it fails, then pretend we aren't using GCC.
 
10889
    ac_prog=ld
 
10890
    ;;
 
10891
  *)
 
10892
    # If it is relative, then search for the first ld in PATH.
 
10893
    with_gnu_ld=unknown
 
10894
    ;;
 
10895
  esac
 
10896
elif test "$with_gnu_ld" = yes; then
 
10897
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10898
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10899
else
 
10900
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10901
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10902
fi
 
10903
if test "${lt_cv_path_LD+set}" = set; then
 
10904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10905
else
 
10906
  if test -z "$LD"; then
 
10907
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10908
  for ac_dir in $PATH; do
 
10909
    IFS="$lt_save_ifs"
 
10910
    test -z "$ac_dir" && ac_dir=.
 
10911
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10912
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10913
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10914
      # but apparently some variants of GNU ld only accept -v.
 
10915
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10916
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10917
      *GNU* | *'with BFD'*)
 
10918
        test "$with_gnu_ld" != no && break
 
10919
        ;;
 
10920
      *)
 
10921
        test "$with_gnu_ld" != yes && break
 
10922
        ;;
 
10923
      esac
 
10924
    fi
 
10925
  done
 
10926
  IFS="$lt_save_ifs"
 
10927
else
 
10928
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10929
fi
 
10930
fi
 
10931
 
 
10932
LD="$lt_cv_path_LD"
 
10933
if test -n "$LD"; then
 
10934
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10935
echo "${ECHO_T}$LD" >&6; }
 
10936
else
 
10937
  { echo "$as_me:$LINENO: result: no" >&5
 
10938
echo "${ECHO_T}no" >&6; }
 
10939
fi
 
10940
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10941
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10942
   { (exit 1); exit 1; }; }
 
10943
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10944
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10945
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10947
else
 
10948
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10949
case `$LD -v 2>&1 </dev/null` in
 
10950
*GNU* | *'with BFD'*)
 
10951
  lt_cv_prog_gnu_ld=yes
 
10952
  ;;
 
10953
*)
 
10954
  lt_cv_prog_gnu_ld=no
 
10955
  ;;
 
10956
esac
 
10957
fi
 
10958
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10959
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10960
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10961
 
 
10962
 
 
10963
 
 
10964
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10965
  # archiving commands below assume that GNU ld is being used.
 
10966
  if test "$with_gnu_ld" = yes; then
 
10967
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10968
    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'
 
10969
 
 
10970
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10971
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10972
 
 
10973
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10974
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10975
    #     investigate it a little bit more. (MM)
 
10976
    wlarc='${wl}'
 
10977
 
 
10978
    # ancient GNU ld didn't support --whole-archive et. al.
 
10979
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10980
        grep 'no-whole-archive' > /dev/null; then
 
10981
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10982
    else
 
10983
      whole_archive_flag_spec_CXX=
 
10984
    fi
 
10985
  else
 
10986
    with_gnu_ld=no
 
10987
    wlarc=
 
10988
 
 
10989
    # A generic and very simple default shared library creation
 
10990
    # command for GNU C++ for the case where it uses the native
 
10991
    # linker, instead of GNU ld.  If possible, this setting should
 
10992
    # overridden to take advantage of the native linker features on
 
10993
    # the platform it is being used on.
 
10994
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10995
  fi
 
10996
 
 
10997
  # Commands to make compiler produce verbose output that lists
 
10998
  # what "hidden" libraries, object files and flags are used when
 
10999
  # linking a shared library.
 
11000
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11001
 
 
11002
else
 
11003
  GXX=no
 
11004
  with_gnu_ld=no
 
11005
  wlarc=
 
11006
fi
 
11007
 
 
11008
# PORTME: fill in a description of your system's C++ link characteristics
 
11009
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11010
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11011
ld_shlibs_CXX=yes
 
11012
case $host_os in
 
11013
  aix3*)
 
11014
    # FIXME: insert proper C++ library support
 
11015
    ld_shlibs_CXX=no
 
11016
    ;;
 
11017
  aix4* | aix5*)
 
11018
    if test "$host_cpu" = ia64; then
 
11019
      # On IA64, the linker does run time linking by default, so we don't
 
11020
      # have to do anything special.
 
11021
      aix_use_runtimelinking=no
 
11022
      exp_sym_flag='-Bexport'
 
11023
      no_entry_flag=""
 
11024
    else
 
11025
      aix_use_runtimelinking=no
 
11026
 
 
11027
      # Test if we are trying to use run time linking or normal
 
11028
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11029
      # need to do runtime linking.
 
11030
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11031
        for ld_flag in $LDFLAGS; do
 
11032
          case $ld_flag in
 
11033
          *-brtl*)
 
11034
            aix_use_runtimelinking=yes
 
11035
            break
 
11036
            ;;
 
11037
          esac
 
11038
        done
 
11039
        ;;
 
11040
      esac
 
11041
 
 
11042
      exp_sym_flag='-bexport'
 
11043
      no_entry_flag='-bnoentry'
 
11044
    fi
 
11045
 
 
11046
    # When large executables or shared objects are built, AIX ld can
 
11047
    # have problems creating the table of contents.  If linking a library
 
11048
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11049
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11050
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11051
 
 
11052
    archive_cmds_CXX=''
 
11053
    hardcode_direct_CXX=yes
 
11054
    hardcode_libdir_separator_CXX=':'
 
11055
    link_all_deplibs_CXX=yes
 
11056
 
 
11057
    if test "$GXX" = yes; then
 
11058
      case $host_os in aix4.[012]|aix4.[012].*)
 
11059
      # We only want to do this on AIX 4.2 and lower, the check
 
11060
      # below for broken collect2 doesn't work under 4.3+
 
11061
        collect2name=`${CC} -print-prog-name=collect2`
 
11062
        if test -f "$collect2name" && \
 
11063
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11064
        then
 
11065
          # We have reworked collect2
 
11066
          :
 
11067
        else
 
11068
          # We have old collect2
 
11069
          hardcode_direct_CXX=unsupported
 
11070
          # It fails to find uninstalled libraries when the uninstalled
 
11071
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11072
          # to unsupported forces relinking
 
11073
          hardcode_minus_L_CXX=yes
 
11074
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11075
          hardcode_libdir_separator_CXX=
 
11076
        fi
 
11077
        ;;
 
11078
      esac
 
11079
      shared_flag='-shared'
 
11080
      if test "$aix_use_runtimelinking" = yes; then
 
11081
        shared_flag="$shared_flag "'${wl}-G'
 
11082
      fi
 
11083
    else
 
11084
      # not using gcc
 
11085
      if test "$host_cpu" = ia64; then
 
11086
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11087
        # chokes on -Wl,-G. The following line is correct:
 
11088
        shared_flag='-G'
 
11089
      else
 
11090
        if test "$aix_use_runtimelinking" = yes; then
 
11091
          shared_flag='${wl}-G'
 
11092
        else
 
11093
          shared_flag='${wl}-bM:SRE'
 
11094
        fi
 
11095
      fi
 
11096
    fi
 
11097
 
 
11098
    # It seems that -bexpall does not export symbols beginning with
 
11099
    # underscore (_), so it is better to generate a list of symbols to export.
 
11100
    always_export_symbols_CXX=yes
 
11101
    if test "$aix_use_runtimelinking" = yes; then
 
11102
      # Warning - without using the other runtime loading flags (-brtl),
 
11103
      # -berok will link without error, but may produce a broken library.
 
11104
      allow_undefined_flag_CXX='-berok'
 
11105
      # Determine the default libpath from the value encoded in an empty executable.
 
11106
      cat >conftest.$ac_ext <<_ACEOF
 
11107
/* confdefs.h.  */
 
11108
_ACEOF
 
11109
cat confdefs.h >>conftest.$ac_ext
 
11110
cat >>conftest.$ac_ext <<_ACEOF
 
11111
/* end confdefs.h.  */
 
11112
 
 
11113
int
 
11114
main ()
 
11115
{
 
11116
 
 
11117
  ;
 
11118
  return 0;
 
11119
}
 
11120
_ACEOF
 
11121
rm -f conftest.$ac_objext conftest$ac_exeext
 
11122
if { (ac_try="$ac_link"
 
11123
case "(($ac_try" in
 
11124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11125
  *) ac_try_echo=$ac_try;;
 
11126
esac
 
11127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11128
  (eval "$ac_link") 2>conftest.er1
 
11129
  ac_status=$?
 
11130
  grep -v '^ *+' conftest.er1 >conftest.err
 
11131
  rm -f conftest.er1
 
11132
  cat conftest.err >&5
 
11133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11134
  (exit $ac_status); } && {
 
11135
         test -z "$ac_cxx_werror_flag" ||
 
11136
         test ! -s conftest.err
 
11137
       } && test -s conftest$ac_exeext &&
 
11138
       $as_test_x conftest$ac_exeext; then
 
11139
 
 
11140
lt_aix_libpath_sed='
 
11141
    /Import File Strings/,/^$/ {
 
11142
        /^0/ {
 
11143
            s/^0  *\(.*\)$/\1/
 
11144
            p
 
11145
        }
 
11146
    }'
 
11147
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11148
# Check for a 64-bit object if we didn't find anything.
 
11149
if test -z "$aix_libpath"; then
 
11150
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11151
fi
 
11152
else
 
11153
  echo "$as_me: failed program was:" >&5
 
11154
sed 's/^/| /' conftest.$ac_ext >&5
 
11155
 
 
11156
 
 
11157
fi
 
11158
 
 
11159
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11160
      conftest$ac_exeext conftest.$ac_ext
 
11161
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11162
 
 
11163
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11164
 
 
11165
      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"
 
11166
     else
 
11167
      if test "$host_cpu" = ia64; then
 
11168
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11169
        allow_undefined_flag_CXX="-z nodefs"
 
11170
        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"
 
11171
      else
 
11172
        # Determine the default libpath from the value encoded in an empty executable.
 
11173
        cat >conftest.$ac_ext <<_ACEOF
 
11174
/* confdefs.h.  */
 
11175
_ACEOF
 
11176
cat confdefs.h >>conftest.$ac_ext
 
11177
cat >>conftest.$ac_ext <<_ACEOF
 
11178
/* end confdefs.h.  */
 
11179
 
 
11180
int
 
11181
main ()
 
11182
{
 
11183
 
 
11184
  ;
 
11185
  return 0;
 
11186
}
 
11187
_ACEOF
 
11188
rm -f conftest.$ac_objext conftest$ac_exeext
 
11189
if { (ac_try="$ac_link"
 
11190
case "(($ac_try" in
 
11191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11192
  *) ac_try_echo=$ac_try;;
 
11193
esac
 
11194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11195
  (eval "$ac_link") 2>conftest.er1
 
11196
  ac_status=$?
 
11197
  grep -v '^ *+' conftest.er1 >conftest.err
 
11198
  rm -f conftest.er1
 
11199
  cat conftest.err >&5
 
11200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11201
  (exit $ac_status); } && {
 
11202
         test -z "$ac_cxx_werror_flag" ||
 
11203
         test ! -s conftest.err
 
11204
       } && test -s conftest$ac_exeext &&
 
11205
       $as_test_x conftest$ac_exeext; then
 
11206
 
 
11207
lt_aix_libpath_sed='
 
11208
    /Import File Strings/,/^$/ {
 
11209
        /^0/ {
 
11210
            s/^0  *\(.*\)$/\1/
 
11211
            p
 
11212
        }
 
11213
    }'
 
11214
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11215
# Check for a 64-bit object if we didn't find anything.
 
11216
if test -z "$aix_libpath"; then
 
11217
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11218
fi
 
11219
else
 
11220
  echo "$as_me: failed program was:" >&5
 
11221
sed 's/^/| /' conftest.$ac_ext >&5
 
11222
 
 
11223
 
 
11224
fi
 
11225
 
 
11226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11227
      conftest$ac_exeext conftest.$ac_ext
 
11228
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11229
 
 
11230
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11231
        # Warning - without using the other run time loading flags,
 
11232
        # -berok will link without error, but may produce a broken library.
 
11233
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11234
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11235
        # Exported symbols can be pulled into shared objects from archives
 
11236
        whole_archive_flag_spec_CXX='$convenience'
 
11237
        archive_cmds_need_lc_CXX=yes
 
11238
        # This is similar to how AIX traditionally builds its shared libraries.
 
11239
        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'
 
11240
      fi
 
11241
    fi
 
11242
    ;;
 
11243
 
 
11244
  beos*)
 
11245
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11246
      allow_undefined_flag_CXX=unsupported
 
11247
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11248
      # support --undefined.  This deserves some investigation.  FIXME
 
11249
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11250
    else
 
11251
      ld_shlibs_CXX=no
 
11252
    fi
 
11253
    ;;
 
11254
 
 
11255
  chorus*)
 
11256
    case $cc_basename in
 
11257
      *)
 
11258
        # FIXME: insert proper C++ library support
 
11259
        ld_shlibs_CXX=no
 
11260
        ;;
 
11261
    esac
 
11262
    ;;
 
11263
 
 
11264
  cygwin* | mingw* | pw32*)
 
11265
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11266
    # as there is no search path for DLLs.
 
11267
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11268
    allow_undefined_flag_CXX=unsupported
 
11269
    always_export_symbols_CXX=no
 
11270
    enable_shared_with_static_runtimes_CXX=yes
 
11271
 
 
11272
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11273
      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'
 
11274
      # If the export-symbols file already is a .def file (1st line
 
11275
      # is EXPORTS), use it as is; otherwise, prepend...
 
11276
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11277
        cp $export_symbols $output_objdir/$soname.def;
 
11278
      else
 
11279
        echo EXPORTS > $output_objdir/$soname.def;
 
11280
        cat $export_symbols >> $output_objdir/$soname.def;
 
11281
      fi~
 
11282
      $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'
 
11283
    else
 
11284
      ld_shlibs_CXX=no
 
11285
    fi
 
11286
  ;;
 
11287
      darwin* | rhapsody*)
 
11288
        case $host_os in
 
11289
        rhapsody* | darwin1.[012])
 
11290
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11291
         ;;
 
11292
       *) # Darwin 1.3 on
 
11293
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11294
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11295
         else
 
11296
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11297
             10.[012])
 
11298
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11299
               ;;
 
11300
             10.*)
 
11301
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11302
               ;;
 
11303
           esac
 
11304
         fi
 
11305
         ;;
 
11306
        esac
 
11307
      archive_cmds_need_lc_CXX=no
 
11308
      hardcode_direct_CXX=no
 
11309
      hardcode_automatic_CXX=yes
 
11310
      hardcode_shlibpath_var_CXX=unsupported
 
11311
      whole_archive_flag_spec_CXX=''
 
11312
      link_all_deplibs_CXX=yes
 
11313
 
 
11314
    if test "$GXX" = yes ; then
 
11315
      lt_int_apple_cc_single_mod=no
 
11316
      output_verbose_link_cmd='echo'
 
11317
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11318
       lt_int_apple_cc_single_mod=yes
 
11319
      fi
 
11320
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11321
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11322
      else
 
11323
          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'
 
11324
        fi
 
11325
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11326
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11327
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11328
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11329
          else
 
11330
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11331
          fi
 
11332
            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}'
 
11333
      else
 
11334
      case $cc_basename in
 
11335
        xlc*)
 
11336
         output_verbose_link_cmd='echo'
 
11337
          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'
 
11338
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11339
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11340
          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}'
 
11341
          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}'
 
11342
          ;;
 
11343
       *)
 
11344
         ld_shlibs_CXX=no
 
11345
          ;;
 
11346
      esac
 
11347
      fi
 
11348
        ;;
 
11349
 
 
11350
  dgux*)
 
11351
    case $cc_basename in
 
11352
      ec++*)
 
11353
        # FIXME: insert proper C++ library support
 
11354
        ld_shlibs_CXX=no
 
11355
        ;;
 
11356
      ghcx*)
 
11357
        # Green Hills C++ Compiler
 
11358
        # FIXME: insert proper C++ library support
 
11359
        ld_shlibs_CXX=no
 
11360
        ;;
 
11361
      *)
 
11362
        # FIXME: insert proper C++ library support
 
11363
        ld_shlibs_CXX=no
 
11364
        ;;
 
11365
    esac
 
11366
    ;;
 
11367
  freebsd[12]*)
 
11368
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11369
    ld_shlibs_CXX=no
 
11370
    ;;
 
11371
  freebsd-elf*)
 
11372
    archive_cmds_need_lc_CXX=no
 
11373
    ;;
 
11374
  freebsd* | dragonfly*)
 
11375
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11376
    # conventions
 
11377
    ld_shlibs_CXX=yes
 
11378
    ;;
 
11379
  gnu*)
 
11380
    ;;
 
11381
  hpux9*)
 
11382
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11383
    hardcode_libdir_separator_CXX=:
 
11384
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11385
    hardcode_direct_CXX=yes
 
11386
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11387
                                # but as the default
 
11388
                                # location of the library.
 
11389
 
 
11390
    case $cc_basename in
 
11391
    CC*)
 
11392
      # FIXME: insert proper C++ library support
 
11393
      ld_shlibs_CXX=no
 
11394
      ;;
 
11395
    aCC*)
 
11396
      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'
 
11397
      # Commands to make compiler produce verbose output that lists
 
11398
      # what "hidden" libraries, object files and flags are used when
 
11399
      # linking a shared library.
 
11400
      #
 
11401
      # There doesn't appear to be a way to prevent this compiler from
 
11402
      # explicitly linking system object files so we need to strip them
 
11403
      # from the output so that they don't get included in the library
 
11404
      # dependencies.
 
11405
      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'
 
11406
      ;;
 
11407
    *)
 
11408
      if test "$GXX" = yes; then
 
11409
        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'
 
11410
      else
 
11411
        # FIXME: insert proper C++ library support
 
11412
        ld_shlibs_CXX=no
 
11413
      fi
 
11414
      ;;
 
11415
    esac
 
11416
    ;;
 
11417
  hpux10*|hpux11*)
 
11418
    if test $with_gnu_ld = no; then
 
11419
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11420
      hardcode_libdir_separator_CXX=:
 
11421
 
 
11422
      case $host_cpu in
 
11423
      hppa*64*|ia64*) ;;
 
11424
      *)
 
11425
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11426
        ;;
 
11427
      esac
 
11428
    fi
 
11429
    case $host_cpu in
 
11430
    hppa*64*|ia64*)
 
11431
      hardcode_direct_CXX=no
 
11432
      hardcode_shlibpath_var_CXX=no
 
11433
      ;;
 
11434
    *)
 
11435
      hardcode_direct_CXX=yes
 
11436
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11437
                                              # but as the default
 
11438
                                              # location of the library.
 
11439
      ;;
 
11440
    esac
 
11441
 
 
11442
    case $cc_basename in
 
11443
      CC*)
 
11444
        # FIXME: insert proper C++ library support
 
11445
        ld_shlibs_CXX=no
 
11446
        ;;
 
11447
      aCC*)
 
11448
        case $host_cpu in
 
11449
        hppa*64*)
 
11450
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11451
          ;;
 
11452
        ia64*)
 
11453
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11454
          ;;
 
11455
        *)
 
11456
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11457
          ;;
 
11458
        esac
 
11459
        # Commands to make compiler produce verbose output that lists
 
11460
        # what "hidden" libraries, object files and flags are used when
 
11461
        # linking a shared library.
 
11462
        #
 
11463
        # There doesn't appear to be a way to prevent this compiler from
 
11464
        # explicitly linking system object files so we need to strip them
 
11465
        # from the output so that they don't get included in the library
 
11466
        # dependencies.
 
11467
        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'
 
11468
        ;;
 
11469
      *)
 
11470
        if test "$GXX" = yes; then
 
11471
          if test $with_gnu_ld = no; then
 
11472
            case $host_cpu in
 
11473
            hppa*64*)
 
11474
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11475
              ;;
 
11476
            ia64*)
 
11477
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11478
              ;;
 
11479
            *)
 
11480
              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'
 
11481
              ;;
 
11482
            esac
 
11483
          fi
 
11484
        else
 
11485
          # FIXME: insert proper C++ library support
 
11486
          ld_shlibs_CXX=no
 
11487
        fi
 
11488
        ;;
 
11489
    esac
 
11490
    ;;
 
11491
  interix[3-9]*)
 
11492
    hardcode_direct_CXX=no
 
11493
    hardcode_shlibpath_var_CXX=no
 
11494
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11495
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11496
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11497
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11498
    # default) and relocated if they conflict, which is a slow very memory
 
11499
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11500
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11501
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11502
    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'
 
11503
    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'
 
11504
    ;;
 
11505
  irix5* | irix6*)
 
11506
    case $cc_basename in
 
11507
      CC*)
 
11508
        # SGI C++
 
11509
        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'
 
11510
 
 
11511
        # Archives containing C++ object files must be created using
 
11512
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11513
        # necessary to make sure instantiated templates are included
 
11514
        # in the archive.
 
11515
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11516
        ;;
 
11517
      *)
 
11518
        if test "$GXX" = yes; then
 
11519
          if test "$with_gnu_ld" = no; then
 
11520
            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'
 
11521
          else
 
11522
            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'
 
11523
          fi
 
11524
        fi
 
11525
        link_all_deplibs_CXX=yes
 
11526
        ;;
 
11527
    esac
 
11528
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11529
    hardcode_libdir_separator_CXX=:
 
11530
    ;;
 
11531
  linux* | k*bsd*-gnu)
 
11532
    case $cc_basename in
 
11533
      KCC*)
 
11534
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11535
 
 
11536
        # KCC will only create a shared library if the output file
 
11537
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11538
        # to its proper name (with version) after linking.
 
11539
        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'
 
11540
        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'
 
11541
        # Commands to make compiler produce verbose output that lists
 
11542
        # what "hidden" libraries, object files and flags are used when
 
11543
        # linking a shared library.
 
11544
        #
 
11545
        # There doesn't appear to be a way to prevent this compiler from
 
11546
        # explicitly linking system object files so we need to strip them
 
11547
        # from the output so that they don't get included in the library
 
11548
        # dependencies.
 
11549
        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'
 
11550
 
 
11551
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11552
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11553
 
 
11554
        # Archives containing C++ object files must be created using
 
11555
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11556
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11557
        ;;
 
11558
      icpc*)
 
11559
        # Intel C++
 
11560
        with_gnu_ld=yes
 
11561
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11562
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11563
        # earlier do not add the objects themselves.
 
11564
        case `$CC -V 2>&1` in
 
11565
        *"Version 7."*)
 
11566
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11567
          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'
 
11568
          ;;
 
11569
        *)  # Version 8.0 or newer
 
11570
          tmp_idyn=
 
11571
          case $host_cpu in
 
11572
            ia64*) tmp_idyn=' -i_dynamic';;
 
11573
          esac
 
11574
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11575
          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'
 
11576
          ;;
 
11577
        esac
 
11578
        archive_cmds_need_lc_CXX=no
 
11579
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11580
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11581
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11582
        ;;
 
11583
      pgCC*)
 
11584
        # Portland Group C++ compiler
 
11585
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11586
        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'
 
11587
 
 
11588
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11589
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11590
        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'
 
11591
        ;;
 
11592
      cxx*)
 
11593
        # Compaq C++
 
11594
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11595
        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'
 
11596
 
 
11597
        runpath_var=LD_RUN_PATH
 
11598
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11599
        hardcode_libdir_separator_CXX=:
 
11600
 
 
11601
        # Commands to make compiler produce verbose output that lists
 
11602
        # what "hidden" libraries, object files and flags are used when
 
11603
        # linking a shared library.
 
11604
        #
 
11605
        # There doesn't appear to be a way to prevent this compiler from
 
11606
        # explicitly linking system object files so we need to strip them
 
11607
        # from the output so that they don't get included in the library
 
11608
        # dependencies.
 
11609
        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'
 
11610
        ;;
 
11611
      *)
 
11612
        case `$CC -V 2>&1 | sed 5q` in
 
11613
        *Sun\ C*)
 
11614
          # Sun C++ 5.9
 
11615
          no_undefined_flag_CXX=' -zdefs'
 
11616
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11617
          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'
 
11618
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11619
          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'
 
11620
 
 
11621
          # Not sure whether something based on
 
11622
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11623
          # would be better.
 
11624
          output_verbose_link_cmd='echo'
 
11625
 
 
11626
          # Archives containing C++ object files must be created using
 
11627
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11628
          # necessary to make sure instantiated templates are included
 
11629
          # in the archive.
 
11630
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11631
          ;;
 
11632
        esac
 
11633
        ;;
 
11634
    esac
 
11635
    ;;
 
11636
  lynxos*)
 
11637
    # FIXME: insert proper C++ library support
 
11638
    ld_shlibs_CXX=no
 
11639
    ;;
 
11640
  m88k*)
 
11641
    # FIXME: insert proper C++ library support
 
11642
    ld_shlibs_CXX=no
 
11643
    ;;
 
11644
  mvs*)
 
11645
    case $cc_basename in
 
11646
      cxx*)
 
11647
        # FIXME: insert proper C++ library support
 
11648
        ld_shlibs_CXX=no
 
11649
        ;;
 
11650
      *)
 
11651
        # FIXME: insert proper C++ library support
 
11652
        ld_shlibs_CXX=no
 
11653
        ;;
 
11654
    esac
 
11655
    ;;
 
11656
  netbsd*)
 
11657
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11658
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11659
      wlarc=
 
11660
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11661
      hardcode_direct_CXX=yes
 
11662
      hardcode_shlibpath_var_CXX=no
 
11663
    fi
 
11664
    # Workaround some broken pre-1.5 toolchains
 
11665
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11666
    ;;
 
11667
  openbsd2*)
 
11668
    # C++ shared libraries are fairly broken
 
11669
    ld_shlibs_CXX=no
 
11670
    ;;
 
11671
  openbsd*)
 
11672
    if test -f /usr/libexec/ld.so; then
 
11673
      hardcode_direct_CXX=yes
 
11674
      hardcode_shlibpath_var_CXX=no
 
11675
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11676
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11677
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11678
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11679
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11680
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11681
      fi
 
11682
      output_verbose_link_cmd='echo'
 
11683
    else
 
11684
      ld_shlibs_CXX=no
 
11685
    fi
 
11686
    ;;
 
11687
  osf3*)
 
11688
    case $cc_basename in
 
11689
      KCC*)
 
11690
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11691
 
 
11692
        # KCC will only create a shared library if the output file
 
11693
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11694
        # to its proper name (with version) after linking.
 
11695
        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'
 
11696
 
 
11697
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11698
        hardcode_libdir_separator_CXX=:
 
11699
 
 
11700
        # Archives containing C++ object files must be created using
 
11701
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11702
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11703
 
 
11704
        ;;
 
11705
      RCC*)
 
11706
        # Rational C++ 2.4.1
 
11707
        # FIXME: insert proper C++ library support
 
11708
        ld_shlibs_CXX=no
 
11709
        ;;
 
11710
      cxx*)
 
11711
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11712
        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'
 
11713
 
 
11714
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11715
        hardcode_libdir_separator_CXX=:
 
11716
 
 
11717
        # Commands to make compiler produce verbose output that lists
 
11718
        # what "hidden" libraries, object files and flags are used when
 
11719
        # linking a shared library.
 
11720
        #
 
11721
        # There doesn't appear to be a way to prevent this compiler from
 
11722
        # explicitly linking system object files so we need to strip them
 
11723
        # from the output so that they don't get included in the library
 
11724
        # dependencies.
 
11725
        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'
 
11726
        ;;
 
11727
      *)
 
11728
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11729
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11730
          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'
 
11731
 
 
11732
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11733
          hardcode_libdir_separator_CXX=:
 
11734
 
 
11735
          # Commands to make compiler produce verbose output that lists
 
11736
          # what "hidden" libraries, object files and flags are used when
 
11737
          # linking a shared library.
 
11738
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11739
 
 
11740
        else
 
11741
          # FIXME: insert proper C++ library support
 
11742
          ld_shlibs_CXX=no
 
11743
        fi
 
11744
        ;;
 
11745
    esac
 
11746
    ;;
 
11747
  osf4* | osf5*)
 
11748
    case $cc_basename in
 
11749
      KCC*)
 
11750
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11751
 
 
11752
        # KCC will only create a shared library if the output file
 
11753
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11754
        # to its proper name (with version) after linking.
 
11755
        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'
 
11756
 
 
11757
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11758
        hardcode_libdir_separator_CXX=:
 
11759
 
 
11760
        # Archives containing C++ object files must be created using
 
11761
        # the KAI C++ compiler.
 
11762
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11763
        ;;
 
11764
      RCC*)
 
11765
        # Rational C++ 2.4.1
 
11766
        # FIXME: insert proper C++ library support
 
11767
        ld_shlibs_CXX=no
 
11768
        ;;
 
11769
      cxx*)
 
11770
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11771
        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'
 
11772
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11773
          echo "-hidden">> $lib.exp~
 
11774
          $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~
 
11775
          $rm $lib.exp'
 
11776
 
 
11777
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11778
        hardcode_libdir_separator_CXX=:
 
11779
 
 
11780
        # Commands to make compiler produce verbose output that lists
 
11781
        # what "hidden" libraries, object files and flags are used when
 
11782
        # linking a shared library.
 
11783
        #
 
11784
        # There doesn't appear to be a way to prevent this compiler from
 
11785
        # explicitly linking system object files so we need to strip them
 
11786
        # from the output so that they don't get included in the library
 
11787
        # dependencies.
 
11788
        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'
 
11789
        ;;
 
11790
      *)
 
11791
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11792
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11793
         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'
 
11794
 
 
11795
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11796
          hardcode_libdir_separator_CXX=:
 
11797
 
 
11798
          # Commands to make compiler produce verbose output that lists
 
11799
          # what "hidden" libraries, object files and flags are used when
 
11800
          # linking a shared library.
 
11801
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11802
 
 
11803
        else
 
11804
          # FIXME: insert proper C++ library support
 
11805
          ld_shlibs_CXX=no
 
11806
        fi
 
11807
        ;;
 
11808
    esac
 
11809
    ;;
 
11810
  psos*)
 
11811
    # FIXME: insert proper C++ library support
 
11812
    ld_shlibs_CXX=no
 
11813
    ;;
 
11814
  sunos4*)
 
11815
    case $cc_basename in
 
11816
      CC*)
 
11817
        # Sun C++ 4.x
 
11818
        # FIXME: insert proper C++ library support
 
11819
        ld_shlibs_CXX=no
 
11820
        ;;
 
11821
      lcc*)
 
11822
        # Lucid
 
11823
        # FIXME: insert proper C++ library support
 
11824
        ld_shlibs_CXX=no
 
11825
        ;;
 
11826
      *)
 
11827
        # FIXME: insert proper C++ library support
 
11828
        ld_shlibs_CXX=no
 
11829
        ;;
 
11830
    esac
 
11831
    ;;
 
11832
  solaris*)
 
11833
    case $cc_basename in
 
11834
      CC*)
 
11835
        # Sun C++ 4.2, 5.x and Centerline C++
 
11836
        archive_cmds_need_lc_CXX=yes
 
11837
        no_undefined_flag_CXX=' -zdefs'
 
11838
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11839
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11840
        $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'
 
11841
 
 
11842
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11843
        hardcode_shlibpath_var_CXX=no
 
11844
        case $host_os in
 
11845
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11846
          *)
 
11847
            # The compiler driver will combine and reorder linker options,
 
11848
            # but understands `-z linker_flag'.
 
11849
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11850
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
11851
            ;;
 
11852
        esac
 
11853
        link_all_deplibs_CXX=yes
 
11854
 
 
11855
        output_verbose_link_cmd='echo'
 
11856
 
 
11857
        # Archives containing C++ object files must be created using
 
11858
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11859
        # necessary to make sure instantiated templates are included
 
11860
        # in the archive.
 
11861
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11862
        ;;
 
11863
      gcx*)
 
11864
        # Green Hills C++ Compiler
 
11865
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11866
 
 
11867
        # The C++ compiler must be used to create the archive.
 
11868
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11869
        ;;
 
11870
      *)
 
11871
        # GNU C++ compiler with Solaris linker
 
11872
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11873
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11874
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11875
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11876
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11877
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11878
 
 
11879
            # Commands to make compiler produce verbose output that lists
 
11880
            # what "hidden" libraries, object files and flags are used when
 
11881
            # linking a shared library.
 
11882
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11883
          else
 
11884
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11885
            # platform.
 
11886
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11887
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11888
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11889
 
 
11890
            # Commands to make compiler produce verbose output that lists
 
11891
            # what "hidden" libraries, object files and flags are used when
 
11892
            # linking a shared library.
 
11893
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11894
          fi
 
11895
 
 
11896
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11897
          case $host_os in
 
11898
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11899
          *)
 
11900
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11901
            ;;
 
11902
          esac
 
11903
        fi
 
11904
        ;;
 
11905
    esac
 
11906
    ;;
 
11907
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11908
    no_undefined_flag_CXX='${wl}-z,text'
 
11909
    archive_cmds_need_lc_CXX=no
 
11910
    hardcode_shlibpath_var_CXX=no
 
11911
    runpath_var='LD_RUN_PATH'
 
11912
 
 
11913
    case $cc_basename in
 
11914
      CC*)
 
11915
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11916
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11917
        ;;
 
11918
      *)
 
11919
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11920
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11921
        ;;
 
11922
    esac
 
11923
    ;;
 
11924
  sysv5* | sco3.2v5* | sco5v6*)
 
11925
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11926
    # link with -lc, and that would cause any symbols used from libc to
 
11927
    # always be unresolved, which means just about no library would
 
11928
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11929
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11930
    # as -z defs.
 
11931
    # For security reasons, it is highly recommended that you always
 
11932
    # use absolute paths for naming shared libraries, and exclude the
 
11933
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11934
    # requires that you compile everything twice, which is a pain.
 
11935
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11936
    # non-empty value in the environment.  Most likely only useful for
 
11937
    # creating official distributions of packages.
 
11938
    # This is a hack until libtool officially supports absolute path
 
11939
    # names for shared libraries.
 
11940
    no_undefined_flag_CXX='${wl}-z,text'
 
11941
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11942
    archive_cmds_need_lc_CXX=no
 
11943
    hardcode_shlibpath_var_CXX=no
 
11944
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11945
    hardcode_libdir_separator_CXX=':'
 
11946
    link_all_deplibs_CXX=yes
 
11947
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11948
    runpath_var='LD_RUN_PATH'
 
11949
 
 
11950
    case $cc_basename in
 
11951
      CC*)
 
11952
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11953
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11954
        ;;
 
11955
      *)
 
11956
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11957
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11958
        ;;
 
11959
    esac
 
11960
    ;;
 
11961
  tandem*)
 
11962
    case $cc_basename in
 
11963
      NCC*)
 
11964
        # NonStop-UX NCC 3.20
 
11965
        # FIXME: insert proper C++ library support
 
11966
        ld_shlibs_CXX=no
 
11967
        ;;
 
11968
      *)
 
11969
        # FIXME: insert proper C++ library support
 
11970
        ld_shlibs_CXX=no
 
11971
        ;;
 
11972
    esac
 
11973
    ;;
 
11974
  vxworks*)
 
11975
    # FIXME: insert proper C++ library support
 
11976
    ld_shlibs_CXX=no
 
11977
    ;;
 
11978
  *)
 
11979
    # FIXME: insert proper C++ library support
 
11980
    ld_shlibs_CXX=no
 
11981
    ;;
 
11982
esac
 
11983
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11984
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11985
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11986
 
 
11987
GCC_CXX="$GXX"
 
11988
LD_CXX="$LD"
 
11989
 
 
11990
 
 
11991
cat > conftest.$ac_ext <<EOF
 
11992
class Foo
 
11993
{
 
11994
public:
 
11995
  Foo (void) { a = 0; }
 
11996
private:
 
11997
  int a;
 
11998
};
 
11999
EOF
 
12000
 
 
12001
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12002
  (eval $ac_compile) 2>&5
 
12003
  ac_status=$?
 
12004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12005
  (exit $ac_status); }; then
 
12006
  # Parse the compiler output and extract the necessary
 
12007
  # objects, libraries and library flags.
 
12008
 
 
12009
  # Sentinel used to keep track of whether or not we are before
 
12010
  # the conftest object file.
 
12011
  pre_test_object_deps_done=no
 
12012
 
 
12013
  # The `*' in the case matches for architectures that use `case' in
 
12014
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12015
  # eval without this substitution.
 
12016
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12017
 
 
12018
  for p in `eval $output_verbose_link_cmd`; do
 
12019
    case $p in
 
12020
 
 
12021
    -L* | -R* | -l*)
 
12022
       # Some compilers place space between "-{L,R}" and the path.
 
12023
       # Remove the space.
 
12024
       if test $p = "-L" \
 
12025
          || test $p = "-R"; then
 
12026
         prev=$p
 
12027
         continue
 
12028
       else
 
12029
         prev=
 
12030
       fi
 
12031
 
 
12032
       if test "$pre_test_object_deps_done" = no; then
 
12033
         case $p in
 
12034
         -L* | -R*)
 
12035
           # Internal compiler library paths should come after those
 
12036
           # provided the user.  The postdeps already come after the
 
12037
           # user supplied libs so there is no need to process them.
 
12038
           if test -z "$compiler_lib_search_path_CXX"; then
 
12039
             compiler_lib_search_path_CXX="${prev}${p}"
 
12040
           else
 
12041
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12042
           fi
 
12043
           ;;
 
12044
         # The "-l" case would never come before the object being
 
12045
         # linked, so don't bother handling this case.
 
12046
         esac
 
12047
       else
 
12048
         if test -z "$postdeps_CXX"; then
 
12049
           postdeps_CXX="${prev}${p}"
 
12050
         else
 
12051
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12052
         fi
 
12053
       fi
 
12054
       ;;
 
12055
 
 
12056
    *.$objext)
 
12057
       # This assumes that the test object file only shows up
 
12058
       # once in the compiler output.
 
12059
       if test "$p" = "conftest.$objext"; then
 
12060
         pre_test_object_deps_done=yes
 
12061
         continue
 
12062
       fi
 
12063
 
 
12064
       if test "$pre_test_object_deps_done" = no; then
 
12065
         if test -z "$predep_objects_CXX"; then
 
12066
           predep_objects_CXX="$p"
 
12067
         else
 
12068
           predep_objects_CXX="$predep_objects_CXX $p"
 
12069
         fi
 
12070
       else
 
12071
         if test -z "$postdep_objects_CXX"; then
 
12072
           postdep_objects_CXX="$p"
 
12073
         else
 
12074
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12075
         fi
 
12076
       fi
 
12077
       ;;
 
12078
 
 
12079
    *) ;; # Ignore the rest.
 
12080
 
 
12081
    esac
 
12082
  done
 
12083
 
 
12084
  # Clean up.
 
12085
  rm -f a.out a.exe
 
12086
else
 
12087
  echo "libtool.m4: error: problem compiling CXX test program"
 
12088
fi
 
12089
 
 
12090
$rm -f confest.$objext
 
12091
 
 
12092
# PORTME: override above test on systems where it is broken
 
12093
case $host_os in
 
12094
interix[3-9]*)
 
12095
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12096
  # hack all around it, let's just trust "g++" to DTRT.
 
12097
  predep_objects_CXX=
 
12098
  postdep_objects_CXX=
 
12099
  postdeps_CXX=
 
12100
  ;;
 
12101
 
 
12102
linux*)
 
12103
  case `$CC -V 2>&1 | sed 5q` in
 
12104
  *Sun\ C*)
 
12105
    # Sun C++ 5.9
 
12106
    #
 
12107
    # The more standards-conforming stlport4 library is
 
12108
    # incompatible with the Cstd library. Avoid specifying
 
12109
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12110
    # -library=stlport4 depends on it.
 
12111
    case " $CXX $CXXFLAGS " in
 
12112
    *" -library=stlport4 "*)
 
12113
      solaris_use_stlport4=yes
 
12114
      ;;
 
12115
    esac
 
12116
    if test "$solaris_use_stlport4" != yes; then
 
12117
      postdeps_CXX='-library=Cstd -library=Crun'
 
12118
    fi
 
12119
    ;;
 
12120
  esac
 
12121
  ;;
 
12122
 
 
12123
solaris*)
 
12124
  case $cc_basename in
 
12125
  CC*)
 
12126
    # The more standards-conforming stlport4 library is
 
12127
    # incompatible with the Cstd library. Avoid specifying
 
12128
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12129
    # -library=stlport4 depends on it.
 
12130
    case " $CXX $CXXFLAGS " in
 
12131
    *" -library=stlport4 "*)
 
12132
      solaris_use_stlport4=yes
 
12133
      ;;
 
12134
    esac
 
12135
 
 
12136
    # Adding this requires a known-good setup of shared libraries for
 
12137
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12138
    # archive will be linked into the output, leading to subtle bugs.
 
12139
    if test "$solaris_use_stlport4" != yes; then
 
12140
      postdeps_CXX='-library=Cstd -library=Crun'
 
12141
    fi
 
12142
    ;;
 
12143
  esac
 
12144
  ;;
 
12145
esac
 
12146
 
 
12147
 
 
12148
case " $postdeps_CXX " in
 
12149
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12150
esac
 
12151
 
 
12152
lt_prog_compiler_wl_CXX=
 
12153
lt_prog_compiler_pic_CXX=
 
12154
lt_prog_compiler_static_CXX=
 
12155
 
 
12156
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12157
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12158
 
 
12159
  # C++ specific cases for pic, static, wl, etc.
 
12160
  if test "$GXX" = yes; then
 
12161
    lt_prog_compiler_wl_CXX='-Wl,'
 
12162
    lt_prog_compiler_static_CXX='-static'
 
12163
 
 
12164
    case $host_os in
 
12165
    aix*)
 
12166
      # All AIX code is PIC.
 
12167
      if test "$host_cpu" = ia64; then
 
12168
        # AIX 5 now supports IA64 processor
 
12169
        lt_prog_compiler_static_CXX='-Bstatic'
 
12170
      fi
 
12171
      ;;
 
12172
    amigaos*)
 
12173
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12174
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12175
      # like `-m68040'.
 
12176
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12177
      ;;
 
12178
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12179
      # PIC is the default for these OSes.
 
12180
      ;;
 
12181
    mingw* | cygwin* | os2* | pw32*)
 
12182
      # This hack is so that the source file can tell whether it is being
 
12183
      # built for inclusion in a dll (and should export symbols for example).
 
12184
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12185
      # (--disable-auto-import) libraries
 
12186
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12187
      ;;
 
12188
    darwin* | rhapsody*)
 
12189
      # PIC is the default on this platform
 
12190
      # Common symbols not allowed in MH_DYLIB files
 
12191
      lt_prog_compiler_pic_CXX='-fno-common'
 
12192
      ;;
 
12193
    *djgpp*)
 
12194
      # DJGPP does not support shared libraries at all
 
12195
      lt_prog_compiler_pic_CXX=
 
12196
      ;;
 
12197
    interix[3-9]*)
 
12198
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12199
      # Instead, we relocate shared libraries at runtime.
 
12200
      ;;
 
12201
    sysv4*MP*)
 
12202
      if test -d /usr/nec; then
 
12203
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12204
      fi
 
12205
      ;;
 
12206
    hpux*)
 
12207
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12208
      # not for PA HP-UX.
 
12209
      case $host_cpu in
 
12210
      hppa*64*|ia64*)
 
12211
        ;;
 
12212
      *)
 
12213
        lt_prog_compiler_pic_CXX='-fPIC'
 
12214
        ;;
 
12215
      esac
 
12216
      ;;
 
12217
    *)
 
12218
      lt_prog_compiler_pic_CXX='-fPIC'
 
12219
      ;;
 
12220
    esac
 
12221
  else
 
12222
    case $host_os in
 
12223
      aix4* | aix5*)
 
12224
        # All AIX code is PIC.
 
12225
        if test "$host_cpu" = ia64; then
 
12226
          # AIX 5 now supports IA64 processor
 
12227
          lt_prog_compiler_static_CXX='-Bstatic'
 
12228
        else
 
12229
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12230
        fi
 
12231
        ;;
 
12232
      chorus*)
 
12233
        case $cc_basename in
 
12234
        cxch68*)
 
12235
          # Green Hills C++ Compiler
 
12236
          # _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"
 
12237
          ;;
 
12238
        esac
 
12239
        ;;
 
12240
       darwin*)
 
12241
         # PIC is the default on this platform
 
12242
         # Common symbols not allowed in MH_DYLIB files
 
12243
         case $cc_basename in
 
12244
           xlc*)
 
12245
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12246
           lt_prog_compiler_wl_CXX='-Wl,'
 
12247
           ;;
 
12248
         esac
 
12249
       ;;
 
12250
      dgux*)
 
12251
        case $cc_basename in
 
12252
          ec++*)
 
12253
            lt_prog_compiler_pic_CXX='-KPIC'
 
12254
            ;;
 
12255
          ghcx*)
 
12256
            # Green Hills C++ Compiler
 
12257
            lt_prog_compiler_pic_CXX='-pic'
 
12258
            ;;
 
12259
          *)
 
12260
            ;;
 
12261
        esac
 
12262
        ;;
 
12263
      freebsd* | dragonfly*)
 
12264
        # FreeBSD uses GNU C++
 
12265
        ;;
 
12266
      hpux9* | hpux10* | hpux11*)
 
12267
        case $cc_basename in
 
12268
          CC*)
 
12269
            lt_prog_compiler_wl_CXX='-Wl,'
 
12270
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12271
            if test "$host_cpu" != ia64; then
 
12272
              lt_prog_compiler_pic_CXX='+Z'
 
12273
            fi
 
12274
            ;;
 
12275
          aCC*)
 
12276
            lt_prog_compiler_wl_CXX='-Wl,'
 
12277
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12278
            case $host_cpu in
 
12279
            hppa*64*|ia64*)
 
12280
              # +Z the default
 
12281
              ;;
 
12282
            *)
 
12283
              lt_prog_compiler_pic_CXX='+Z'
 
12284
              ;;
 
12285
            esac
 
12286
            ;;
 
12287
          *)
 
12288
            ;;
 
12289
        esac
 
12290
        ;;
 
12291
      interix*)
 
12292
        # This is c89, which is MS Visual C++ (no shared libs)
 
12293
        # Anyone wants to do a port?
 
12294
        ;;
 
12295
      irix5* | irix6* | nonstopux*)
 
12296
        case $cc_basename in
 
12297
          CC*)
 
12298
            lt_prog_compiler_wl_CXX='-Wl,'
 
12299
            lt_prog_compiler_static_CXX='-non_shared'
 
12300
            # CC pic flag -KPIC is the default.
 
12301
            ;;
 
12302
          *)
 
12303
            ;;
 
12304
        esac
 
12305
        ;;
 
12306
      linux* | k*bsd*-gnu)
 
12307
        case $cc_basename in
 
12308
          KCC*)
 
12309
            # KAI C++ Compiler
 
12310
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12311
            lt_prog_compiler_pic_CXX='-fPIC'
 
12312
            ;;
 
12313
          icpc* | ecpc*)
 
12314
            # Intel C++
 
12315
            lt_prog_compiler_wl_CXX='-Wl,'
 
12316
            lt_prog_compiler_pic_CXX='-KPIC'
 
12317
            lt_prog_compiler_static_CXX='-static'
 
12318
            ;;
 
12319
          pgCC*)
 
12320
            # Portland Group C++ compiler.
 
12321
            lt_prog_compiler_wl_CXX='-Wl,'
 
12322
            lt_prog_compiler_pic_CXX='-fpic'
 
12323
            lt_prog_compiler_static_CXX='-Bstatic'
 
12324
            ;;
 
12325
          cxx*)
 
12326
            # Compaq C++
 
12327
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12328
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12329
            lt_prog_compiler_pic_CXX=
 
12330
            lt_prog_compiler_static_CXX='-non_shared'
 
12331
            ;;
 
12332
          *)
 
12333
            case `$CC -V 2>&1 | sed 5q` in
 
12334
            *Sun\ C*)
 
12335
              # Sun C++ 5.9
 
12336
              lt_prog_compiler_pic_CXX='-KPIC'
 
12337
              lt_prog_compiler_static_CXX='-Bstatic'
 
12338
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12339
              ;;
 
12340
            esac
 
12341
            ;;
 
12342
        esac
 
12343
        ;;
 
12344
      lynxos*)
 
12345
        ;;
 
12346
      m88k*)
 
12347
        ;;
 
12348
      mvs*)
 
12349
        case $cc_basename in
 
12350
          cxx*)
 
12351
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12352
            ;;
 
12353
          *)
 
12354
            ;;
 
12355
        esac
 
12356
        ;;
 
12357
      netbsd*)
 
12358
        ;;
 
12359
      osf3* | osf4* | osf5*)
 
12360
        case $cc_basename in
 
12361
          KCC*)
 
12362
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12363
            ;;
 
12364
          RCC*)
 
12365
            # Rational C++ 2.4.1
 
12366
            lt_prog_compiler_pic_CXX='-pic'
 
12367
            ;;
 
12368
          cxx*)
 
12369
            # Digital/Compaq C++
 
12370
            lt_prog_compiler_wl_CXX='-Wl,'
 
12371
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12372
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12373
            lt_prog_compiler_pic_CXX=
 
12374
            lt_prog_compiler_static_CXX='-non_shared'
 
12375
            ;;
 
12376
          *)
 
12377
            ;;
 
12378
        esac
 
12379
        ;;
 
12380
      psos*)
 
12381
        ;;
 
12382
      solaris*)
 
12383
        case $cc_basename in
 
12384
          CC*)
 
12385
            # Sun C++ 4.2, 5.x and Centerline C++
 
12386
            lt_prog_compiler_pic_CXX='-KPIC'
 
12387
            lt_prog_compiler_static_CXX='-Bstatic'
 
12388
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12389
            ;;
 
12390
          gcx*)
 
12391
            # Green Hills C++ Compiler
 
12392
            lt_prog_compiler_pic_CXX='-PIC'
 
12393
            ;;
 
12394
          *)
 
12395
            ;;
 
12396
        esac
 
12397
        ;;
 
12398
      sunos4*)
 
12399
        case $cc_basename in
 
12400
          CC*)
 
12401
            # Sun C++ 4.x
 
12402
            lt_prog_compiler_pic_CXX='-pic'
 
12403
            lt_prog_compiler_static_CXX='-Bstatic'
 
12404
            ;;
 
12405
          lcc*)
 
12406
            # Lucid
 
12407
            lt_prog_compiler_pic_CXX='-pic'
 
12408
            ;;
 
12409
          *)
 
12410
            ;;
 
12411
        esac
 
12412
        ;;
 
12413
      tandem*)
 
12414
        case $cc_basename in
 
12415
          NCC*)
 
12416
            # NonStop-UX NCC 3.20
 
12417
            lt_prog_compiler_pic_CXX='-KPIC'
 
12418
            ;;
 
12419
          *)
 
12420
            ;;
 
12421
        esac
 
12422
        ;;
 
12423
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12424
        case $cc_basename in
 
12425
          CC*)
 
12426
            lt_prog_compiler_wl_CXX='-Wl,'
 
12427
            lt_prog_compiler_pic_CXX='-KPIC'
 
12428
            lt_prog_compiler_static_CXX='-Bstatic'
 
12429
            ;;
 
12430
        esac
 
12431
        ;;
 
12432
      vxworks*)
 
12433
        ;;
 
12434
      *)
 
12435
        lt_prog_compiler_can_build_shared_CXX=no
 
12436
        ;;
 
12437
    esac
 
12438
  fi
 
12439
 
 
12440
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12441
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12442
 
 
12443
#
 
12444
# Check to make sure the PIC flag actually works.
 
12445
#
 
12446
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12447
 
 
12448
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12449
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12450
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12452
else
 
12453
  lt_prog_compiler_pic_works_CXX=no
 
12454
  ac_outfile=conftest.$ac_objext
 
12455
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12456
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12457
   # Insert the option either (1) after the last *FLAGS variable, or
 
12458
   # (2) before a word containing "conftest.", or (3) at the end.
 
12459
   # Note that $ac_compile itself does not contain backslashes and begins
 
12460
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12461
   # The option is referenced via a variable to avoid confusing sed.
 
12462
   lt_compile=`echo "$ac_compile" | $SED \
 
12463
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12464
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12465
   -e 's:$: $lt_compiler_flag:'`
 
12466
   (eval echo "\"\$as_me:12466: $lt_compile\"" >&5)
 
12467
   (eval "$lt_compile" 2>conftest.err)
 
12468
   ac_status=$?
 
12469
   cat conftest.err >&5
 
12470
   echo "$as_me:12470: \$? = $ac_status" >&5
 
12471
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12472
     # The compiler can only warn and ignore the option if not recognized
 
12473
     # So say no if there are warnings other than the usual output.
 
12474
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12475
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12476
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12477
       lt_prog_compiler_pic_works_CXX=yes
 
12478
     fi
 
12479
   fi
 
12480
   $rm conftest*
 
12481
 
 
12482
fi
 
12483
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12484
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12485
 
 
12486
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12487
    case $lt_prog_compiler_pic_CXX in
 
12488
     "" | " "*) ;;
 
12489
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12490
     esac
 
12491
else
 
12492
    lt_prog_compiler_pic_CXX=
 
12493
     lt_prog_compiler_can_build_shared_CXX=no
 
12494
fi
 
12495
 
 
12496
fi
 
12497
case $host_os in
 
12498
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12499
  *djgpp*)
 
12500
    lt_prog_compiler_pic_CXX=
 
12501
    ;;
 
12502
  *)
 
12503
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12504
    ;;
 
12505
esac
 
12506
 
 
12507
#
 
12508
# Check to make sure the static flag actually works.
 
12509
#
 
12510
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12511
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12512
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12513
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12515
else
 
12516
  lt_prog_compiler_static_works_CXX=no
 
12517
   save_LDFLAGS="$LDFLAGS"
 
12518
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12519
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12520
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12521
     # The linker can only warn and ignore the option if not recognized
 
12522
     # So say no if there are warnings
 
12523
     if test -s conftest.err; then
 
12524
       # Append any errors to the config.log.
 
12525
       cat conftest.err 1>&5
 
12526
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12527
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12528
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12529
         lt_prog_compiler_static_works_CXX=yes
 
12530
       fi
 
12531
     else
 
12532
       lt_prog_compiler_static_works_CXX=yes
 
12533
     fi
 
12534
   fi
 
12535
   $rm conftest*
 
12536
   LDFLAGS="$save_LDFLAGS"
 
12537
 
 
12538
fi
 
12539
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12540
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12541
 
 
12542
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12543
    :
 
12544
else
 
12545
    lt_prog_compiler_static_CXX=
 
12546
fi
 
12547
 
 
12548
 
 
12549
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12550
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12551
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12553
else
 
12554
  lt_cv_prog_compiler_c_o_CXX=no
 
12555
   $rm -r conftest 2>/dev/null
 
12556
   mkdir conftest
 
12557
   cd conftest
 
12558
   mkdir out
 
12559
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12560
 
 
12561
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12562
   # Insert the option either (1) after the last *FLAGS variable, or
 
12563
   # (2) before a word containing "conftest.", or (3) at the end.
 
12564
   # Note that $ac_compile itself does not contain backslashes and begins
 
12565
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12566
   lt_compile=`echo "$ac_compile" | $SED \
 
12567
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12568
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12569
   -e 's:$: $lt_compiler_flag:'`
 
12570
   (eval echo "\"\$as_me:12570: $lt_compile\"" >&5)
 
12571
   (eval "$lt_compile" 2>out/conftest.err)
 
12572
   ac_status=$?
 
12573
   cat out/conftest.err >&5
 
12574
   echo "$as_me:12574: \$? = $ac_status" >&5
 
12575
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12576
   then
 
12577
     # The compiler can only warn and ignore the option if not recognized
 
12578
     # So say no if there are warnings
 
12579
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12580
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12581
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12582
       lt_cv_prog_compiler_c_o_CXX=yes
 
12583
     fi
 
12584
   fi
 
12585
   chmod u+w . 2>&5
 
12586
   $rm conftest*
 
12587
   # SGI C++ compiler will create directory out/ii_files/ for
 
12588
   # template instantiation
 
12589
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12590
   $rm out/* && rmdir out
 
12591
   cd ..
 
12592
   rmdir conftest
 
12593
   $rm conftest*
 
12594
 
 
12595
fi
 
12596
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12597
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12598
 
 
12599
 
 
12600
hard_links="nottested"
 
12601
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12602
  # do not overwrite the value of need_locks provided by the user
 
12603
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12604
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12605
  hard_links=yes
 
12606
  $rm conftest*
 
12607
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12608
  touch conftest.a
 
12609
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12610
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12611
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12612
echo "${ECHO_T}$hard_links" >&6; }
 
12613
  if test "$hard_links" = no; then
 
12614
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12615
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12616
    need_locks=warn
 
12617
  fi
 
12618
else
 
12619
  need_locks=no
 
12620
fi
 
12621
 
 
12622
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12623
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12624
 
 
12625
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12626
  case $host_os in
 
12627
  aix4* | aix5*)
 
12628
    # If we're using GNU nm, then we don't want the "-C" option.
 
12629
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12630
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12631
      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'
 
12632
    else
 
12633
      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'
 
12634
    fi
 
12635
    ;;
 
12636
  pw32*)
 
12637
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12638
  ;;
 
12639
  cygwin* | mingw*)
 
12640
    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'
 
12641
  ;;
 
12642
  *)
 
12643
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12644
  ;;
 
12645
  esac
 
12646
 
 
12647
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12648
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12649
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12650
 
 
12651
#
 
12652
# Do we need to explicitly link libc?
 
12653
#
 
12654
case "x$archive_cmds_need_lc_CXX" in
 
12655
x|xyes)
 
12656
  # Assume -lc should be added
 
12657
  archive_cmds_need_lc_CXX=yes
 
12658
 
 
12659
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12660
    case $archive_cmds_CXX in
 
12661
    *'~'*)
 
12662
      # FIXME: we may have to deal with multi-command sequences.
 
12663
      ;;
 
12664
    '$CC '*)
 
12665
      # Test whether the compiler implicitly links with -lc since on some
 
12666
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12667
      # to ld, don't add -lc before -lgcc.
 
12668
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12669
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12670
      $rm conftest*
 
12671
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12672
 
 
12673
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12674
  (eval $ac_compile) 2>&5
 
12675
  ac_status=$?
 
12676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12677
  (exit $ac_status); } 2>conftest.err; then
 
12678
        soname=conftest
 
12679
        lib=conftest
 
12680
        libobjs=conftest.$ac_objext
 
12681
        deplibs=
 
12682
        wl=$lt_prog_compiler_wl_CXX
 
12683
        pic_flag=$lt_prog_compiler_pic_CXX
 
12684
        compiler_flags=-v
 
12685
        linker_flags=-v
 
12686
        verstring=
 
12687
        output_objdir=.
 
12688
        libname=conftest
 
12689
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12690
        allow_undefined_flag_CXX=
 
12691
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12692
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12693
  ac_status=$?
 
12694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12695
  (exit $ac_status); }
 
12696
        then
 
12697
          archive_cmds_need_lc_CXX=no
 
12698
        else
 
12699
          archive_cmds_need_lc_CXX=yes
 
12700
        fi
 
12701
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12702
      else
 
12703
        cat conftest.err 1>&5
 
12704
      fi
 
12705
      $rm conftest*
 
12706
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12707
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12708
      ;;
 
12709
    esac
 
12710
  fi
 
12711
  ;;
 
12712
esac
 
12713
 
 
12714
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12715
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12716
library_names_spec=
 
12717
libname_spec='lib$name'
 
12718
soname_spec=
 
12719
shrext_cmds=".so"
 
12720
postinstall_cmds=
 
12721
postuninstall_cmds=
 
12722
finish_cmds=
 
12723
finish_eval=
 
12724
shlibpath_var=
 
12725
shlibpath_overrides_runpath=unknown
 
12726
version_type=none
 
12727
dynamic_linker="$host_os ld.so"
 
12728
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12729
 
 
12730
need_lib_prefix=unknown
 
12731
hardcode_into_libs=no
 
12732
 
 
12733
# when you set need_version to no, make sure it does not cause -set_version
 
12734
# flags to be left without arguments
 
12735
need_version=unknown
 
12736
 
 
12737
case $host_os in
 
12738
aix3*)
 
12739
  version_type=linux
 
12740
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12741
  shlibpath_var=LIBPATH
 
12742
 
 
12743
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12744
  soname_spec='${libname}${release}${shared_ext}$major'
 
12745
  ;;
 
12746
 
 
12747
aix4* | aix5*)
 
12748
  version_type=linux
 
12749
  need_lib_prefix=no
 
12750
  need_version=no
 
12751
  hardcode_into_libs=yes
 
12752
  if test "$host_cpu" = ia64; then
 
12753
    # AIX 5 supports IA64
 
12754
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12755
    shlibpath_var=LD_LIBRARY_PATH
 
12756
  else
 
12757
    # With GCC up to 2.95.x, collect2 would create an import file
 
12758
    # for dependence libraries.  The import file would start with
 
12759
    # the line `#! .'.  This would cause the generated library to
 
12760
    # depend on `.', always an invalid library.  This was fixed in
 
12761
    # development snapshots of GCC prior to 3.0.
 
12762
    case $host_os in
 
12763
      aix4 | aix4.[01] | aix4.[01].*)
 
12764
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12765
           echo ' yes '
 
12766
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12767
        :
 
12768
      else
 
12769
        can_build_shared=no
 
12770
      fi
 
12771
      ;;
 
12772
    esac
 
12773
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12774
    # soname into executable. Probably we can add versioning support to
 
12775
    # collect2, so additional links can be useful in future.
 
12776
    if test "$aix_use_runtimelinking" = yes; then
 
12777
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12778
      # instead of lib<name>.a to let people know that these are not
 
12779
      # typical AIX shared libraries.
 
12780
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12781
    else
 
12782
      # We preserve .a as extension for shared libraries through AIX4.2
 
12783
      # and later when we are not doing run time linking.
 
12784
      library_names_spec='${libname}${release}.a $libname.a'
 
12785
      soname_spec='${libname}${release}${shared_ext}$major'
 
12786
    fi
 
12787
    shlibpath_var=LIBPATH
 
12788
  fi
 
12789
  ;;
 
12790
 
 
12791
amigaos*)
 
12792
  library_names_spec='$libname.ixlibrary $libname.a'
 
12793
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12794
  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'
 
12795
  ;;
 
12796
 
 
12797
beos*)
 
12798
  library_names_spec='${libname}${shared_ext}'
 
12799
  dynamic_linker="$host_os ld.so"
 
12800
  shlibpath_var=LIBRARY_PATH
 
12801
  ;;
 
12802
 
 
12803
bsdi[45]*)
 
12804
  version_type=linux
 
12805
  need_version=no
 
12806
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12807
  soname_spec='${libname}${release}${shared_ext}$major'
 
12808
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12809
  shlibpath_var=LD_LIBRARY_PATH
 
12810
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12811
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12812
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12813
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12814
  # libtool to hard-code these into programs
 
12815
  ;;
 
12816
 
 
12817
cygwin* | mingw* | pw32*)
 
12818
  version_type=windows
 
12819
  shrext_cmds=".dll"
 
12820
  need_version=no
 
12821
  need_lib_prefix=no
 
12822
 
 
12823
  case $GCC,$host_os in
 
12824
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12825
    library_names_spec='$libname.dll.a'
 
12826
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12827
    postinstall_cmds='base_file=`basename \${file}`~
 
12828
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12829
      dldir=$destdir/`dirname \$dlpath`~
 
12830
      test -d \$dldir || mkdir -p \$dldir~
 
12831
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12832
      chmod a+x \$dldir/$dlname'
 
12833
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12834
      dlpath=$dir/\$dldll~
 
12835
       $rm \$dlpath'
 
12836
    shlibpath_overrides_runpath=yes
 
12837
 
 
12838
    case $host_os in
 
12839
    cygwin*)
 
12840
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12841
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12842
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12843
      ;;
 
12844
    mingw*)
 
12845
      # MinGW DLLs use traditional 'lib' prefix
 
12846
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12847
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12848
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12849
        # It is most probably a Windows format PATH printed by
 
12850
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12851
        # path with ; separators, and with drive letters. We can handle the
 
12852
        # drive letters (cygwin fileutils understands them), so leave them,
 
12853
        # especially as we might pass files found there to a mingw objdump,
 
12854
        # which wouldn't understand a cygwinified path. Ahh.
 
12855
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12856
      else
 
12857
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12858
      fi
 
12859
      ;;
 
12860
    pw32*)
 
12861
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12862
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12863
      ;;
 
12864
    esac
 
12865
    ;;
 
12866
 
 
12867
  *)
 
12868
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12869
    ;;
 
12870
  esac
 
12871
  dynamic_linker='Win32 ld.exe'
 
12872
  # FIXME: first we should search . and the directory the executable is in
 
12873
  shlibpath_var=PATH
 
12874
  ;;
 
12875
 
 
12876
darwin* | rhapsody*)
 
12877
  dynamic_linker="$host_os dyld"
 
12878
  version_type=darwin
 
12879
  need_lib_prefix=no
 
12880
  need_version=no
 
12881
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12882
  soname_spec='${libname}${release}${major}$shared_ext'
 
12883
  shlibpath_overrides_runpath=yes
 
12884
  shlibpath_var=DYLD_LIBRARY_PATH
 
12885
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12886
 
 
12887
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12888
  ;;
 
12889
 
 
12890
dgux*)
 
12891
  version_type=linux
 
12892
  need_lib_prefix=no
 
12893
  need_version=no
 
12894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12895
  soname_spec='${libname}${release}${shared_ext}$major'
 
12896
  shlibpath_var=LD_LIBRARY_PATH
 
12897
  ;;
 
12898
 
 
12899
freebsd1*)
 
12900
  dynamic_linker=no
 
12901
  ;;
 
12902
 
 
12903
freebsd* | dragonfly*)
 
12904
  # DragonFly does not have aout.  When/if they implement a new
 
12905
  # versioning mechanism, adjust this.
 
12906
  if test -x /usr/bin/objformat; then
 
12907
    objformat=`/usr/bin/objformat`
 
12908
  else
 
12909
    case $host_os in
 
12910
    freebsd[123]*) objformat=aout ;;
 
12911
    *) objformat=elf ;;
 
12912
    esac
 
12913
  fi
 
12914
  version_type=freebsd-$objformat
 
12915
  case $version_type in
 
12916
    freebsd-elf*)
 
12917
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12918
      need_version=no
 
12919
      need_lib_prefix=no
 
12920
      ;;
 
12921
    freebsd-*)
 
12922
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12923
      need_version=yes
 
12924
      ;;
 
12925
  esac
 
12926
  shlibpath_var=LD_LIBRARY_PATH
 
12927
  case $host_os in
 
12928
  freebsd2*)
 
12929
    shlibpath_overrides_runpath=yes
 
12930
    ;;
 
12931
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12932
    shlibpath_overrides_runpath=yes
 
12933
    hardcode_into_libs=yes
 
12934
    ;;
 
12935
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12936
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12937
    shlibpath_overrides_runpath=no
 
12938
    hardcode_into_libs=yes
 
12939
    ;;
 
12940
  *) # from 4.6 on, and DragonFly
 
12941
    shlibpath_overrides_runpath=yes
 
12942
    hardcode_into_libs=yes
 
12943
    ;;
 
12944
  esac
 
12945
  ;;
 
12946
 
 
12947
gnu*)
 
12948
  version_type=linux
 
12949
  need_lib_prefix=no
 
12950
  need_version=no
 
12951
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12952
  soname_spec='${libname}${release}${shared_ext}$major'
 
12953
  shlibpath_var=LD_LIBRARY_PATH
 
12954
  hardcode_into_libs=yes
 
12955
  ;;
 
12956
 
 
12957
hpux9* | hpux10* | hpux11*)
 
12958
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12959
  # link against other versions.
 
12960
  version_type=sunos
 
12961
  need_lib_prefix=no
 
12962
  need_version=no
 
12963
  case $host_cpu in
 
12964
  ia64*)
 
12965
    shrext_cmds='.so'
 
12966
    hardcode_into_libs=yes
 
12967
    dynamic_linker="$host_os dld.so"
 
12968
    shlibpath_var=LD_LIBRARY_PATH
 
12969
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12970
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12971
    soname_spec='${libname}${release}${shared_ext}$major'
 
12972
    if test "X$HPUX_IA64_MODE" = X32; then
 
12973
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12974
    else
 
12975
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12976
    fi
 
12977
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12978
    ;;
 
12979
   hppa*64*)
 
12980
     shrext_cmds='.sl'
 
12981
     hardcode_into_libs=yes
 
12982
     dynamic_linker="$host_os dld.sl"
 
12983
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12984
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12985
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12986
     soname_spec='${libname}${release}${shared_ext}$major'
 
12987
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12988
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12989
     ;;
 
12990
   *)
 
12991
    shrext_cmds='.sl'
 
12992
    dynamic_linker="$host_os dld.sl"
 
12993
    shlibpath_var=SHLIB_PATH
 
12994
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12995
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12996
    soname_spec='${libname}${release}${shared_ext}$major'
 
12997
    ;;
 
12998
  esac
 
12999
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13000
  postinstall_cmds='chmod 555 $lib'
 
13001
  ;;
 
13002
 
 
13003
interix[3-9]*)
 
13004
  version_type=linux
 
13005
  need_lib_prefix=no
 
13006
  need_version=no
 
13007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13008
  soname_spec='${libname}${release}${shared_ext}$major'
 
13009
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13010
  shlibpath_var=LD_LIBRARY_PATH
 
13011
  shlibpath_overrides_runpath=no
 
13012
  hardcode_into_libs=yes
 
13013
  ;;
 
13014
 
 
13015
irix5* | irix6* | nonstopux*)
 
13016
  case $host_os in
 
13017
    nonstopux*) version_type=nonstopux ;;
 
13018
    *)
 
13019
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13020
                version_type=linux
 
13021
        else
 
13022
                version_type=irix
 
13023
        fi ;;
 
13024
  esac
 
13025
  need_lib_prefix=no
 
13026
  need_version=no
 
13027
  soname_spec='${libname}${release}${shared_ext}$major'
 
13028
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13029
  case $host_os in
 
13030
  irix5* | nonstopux*)
 
13031
    libsuff= shlibsuff=
 
13032
    ;;
 
13033
  *)
 
13034
    case $LD in # libtool.m4 will add one of these switches to LD
 
13035
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13036
      libsuff= shlibsuff= libmagic=32-bit;;
 
13037
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13038
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13039
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13040
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13041
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13042
    esac
 
13043
    ;;
 
13044
  esac
 
13045
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13046
  shlibpath_overrides_runpath=no
 
13047
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13048
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13049
  hardcode_into_libs=yes
 
13050
  ;;
 
13051
 
 
13052
# No shared lib support for Linux oldld, aout, or coff.
 
13053
linux*oldld* | linux*aout* | linux*coff*)
 
13054
  dynamic_linker=no
 
13055
  ;;
 
13056
 
 
13057
# This must be Linux ELF.
 
13058
linux* | k*bsd*-gnu)
 
13059
  version_type=linux
 
13060
  need_lib_prefix=no
 
13061
  need_version=no
 
13062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13063
  soname_spec='${libname}${release}${shared_ext}$major'
 
13064
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13065
  shlibpath_var=LD_LIBRARY_PATH
 
13066
  shlibpath_overrides_runpath=no
 
13067
  # This implies no fast_install, which is unacceptable.
 
13068
  # Some rework will be needed to allow for fast_install
 
13069
  # before this can be enabled.
 
13070
  hardcode_into_libs=yes
 
13071
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13072
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13073
 
 
13074
  # Append ld.so.conf contents to the search path
 
13075
  if test -f /etc/ld.so.conf; then
 
13076
    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' ' '`
 
13077
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13078
  fi
 
13079
 
 
13080
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13081
  # powerpc, because MkLinux only supported shared libraries with the
 
13082
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13083
  # most powerpc-linux boxes support dynamic linking these days and
 
13084
  # people can always --disable-shared, the test was removed, and we
 
13085
  # assume the GNU/Linux dynamic linker is in use.
 
13086
  dynamic_linker='GNU/Linux ld.so'
 
13087
  ;;
 
13088
 
 
13089
netbsd*)
 
13090
  version_type=sunos
 
13091
  need_lib_prefix=no
 
13092
  need_version=no
 
13093
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13094
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13095
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13096
    dynamic_linker='NetBSD (a.out) ld.so'
 
13097
  else
 
13098
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13099
    soname_spec='${libname}${release}${shared_ext}$major'
 
13100
    dynamic_linker='NetBSD ld.elf_so'
 
13101
  fi
 
13102
  shlibpath_var=LD_LIBRARY_PATH
 
13103
  shlibpath_overrides_runpath=yes
 
13104
  hardcode_into_libs=yes
 
13105
  ;;
 
13106
 
 
13107
newsos6)
 
13108
  version_type=linux
 
13109
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13110
  shlibpath_var=LD_LIBRARY_PATH
 
13111
  shlibpath_overrides_runpath=yes
 
13112
  ;;
 
13113
 
 
13114
nto-qnx*)
 
13115
  version_type=linux
 
13116
  need_lib_prefix=no
 
13117
  need_version=no
 
13118
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13119
  soname_spec='${libname}${release}${shared_ext}$major'
 
13120
  shlibpath_var=LD_LIBRARY_PATH
 
13121
  shlibpath_overrides_runpath=yes
 
13122
  ;;
 
13123
 
 
13124
openbsd*)
 
13125
  version_type=sunos
 
13126
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13127
  need_lib_prefix=no
 
13128
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13129
  case $host_os in
 
13130
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13131
    *)                         need_version=no  ;;
 
13132
  esac
 
13133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13134
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13135
  shlibpath_var=LD_LIBRARY_PATH
 
13136
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13137
    case $host_os in
 
13138
      openbsd2.[89] | openbsd2.[89].*)
 
13139
        shlibpath_overrides_runpath=no
 
13140
        ;;
 
13141
      *)
 
13142
        shlibpath_overrides_runpath=yes
 
13143
        ;;
 
13144
      esac
 
13145
  else
 
13146
    shlibpath_overrides_runpath=yes
 
13147
  fi
 
13148
  ;;
 
13149
 
 
13150
os2*)
 
13151
  libname_spec='$name'
 
13152
  shrext_cmds=".dll"
 
13153
  need_lib_prefix=no
 
13154
  library_names_spec='$libname${shared_ext} $libname.a'
 
13155
  dynamic_linker='OS/2 ld.exe'
 
13156
  shlibpath_var=LIBPATH
 
13157
  ;;
 
13158
 
 
13159
osf3* | osf4* | osf5*)
 
13160
  version_type=osf
 
13161
  need_lib_prefix=no
 
13162
  need_version=no
 
13163
  soname_spec='${libname}${release}${shared_ext}$major'
 
13164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13165
  shlibpath_var=LD_LIBRARY_PATH
 
13166
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13167
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13168
  ;;
 
13169
 
 
13170
rdos*)
 
13171
  dynamic_linker=no
 
13172
  ;;
 
13173
 
 
13174
solaris*)
 
13175
  version_type=linux
 
13176
  need_lib_prefix=no
 
13177
  need_version=no
 
13178
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13179
  soname_spec='${libname}${release}${shared_ext}$major'
 
13180
  shlibpath_var=LD_LIBRARY_PATH
 
13181
  shlibpath_overrides_runpath=yes
 
13182
  hardcode_into_libs=yes
 
13183
  # ldd complains unless libraries are executable
 
13184
  postinstall_cmds='chmod +x $lib'
 
13185
  ;;
 
13186
 
 
13187
sunos4*)
 
13188
  version_type=sunos
 
13189
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13190
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13191
  shlibpath_var=LD_LIBRARY_PATH
 
13192
  shlibpath_overrides_runpath=yes
 
13193
  if test "$with_gnu_ld" = yes; then
 
13194
    need_lib_prefix=no
 
13195
  fi
 
13196
  need_version=yes
 
13197
  ;;
 
13198
 
 
13199
sysv4 | sysv4.3*)
 
13200
  version_type=linux
 
13201
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13202
  soname_spec='${libname}${release}${shared_ext}$major'
 
13203
  shlibpath_var=LD_LIBRARY_PATH
 
13204
  case $host_vendor in
 
13205
    sni)
 
13206
      shlibpath_overrides_runpath=no
 
13207
      need_lib_prefix=no
 
13208
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13209
      runpath_var=LD_RUN_PATH
 
13210
      ;;
 
13211
    siemens)
 
13212
      need_lib_prefix=no
 
13213
      ;;
 
13214
    motorola)
 
13215
      need_lib_prefix=no
 
13216
      need_version=no
 
13217
      shlibpath_overrides_runpath=no
 
13218
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13219
      ;;
 
13220
  esac
 
13221
  ;;
 
13222
 
 
13223
sysv4*MP*)
 
13224
  if test -d /usr/nec ;then
 
13225
    version_type=linux
 
13226
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13227
    soname_spec='$libname${shared_ext}.$major'
 
13228
    shlibpath_var=LD_LIBRARY_PATH
 
13229
  fi
 
13230
  ;;
 
13231
 
 
13232
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13233
  version_type=freebsd-elf
 
13234
  need_lib_prefix=no
 
13235
  need_version=no
 
13236
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13237
  soname_spec='${libname}${release}${shared_ext}$major'
 
13238
  shlibpath_var=LD_LIBRARY_PATH
 
13239
  hardcode_into_libs=yes
 
13240
  if test "$with_gnu_ld" = yes; then
 
13241
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13242
    shlibpath_overrides_runpath=no
 
13243
  else
 
13244
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13245
    shlibpath_overrides_runpath=yes
 
13246
    case $host_os in
 
13247
      sco3.2v5*)
 
13248
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13249
        ;;
 
13250
    esac
 
13251
  fi
 
13252
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13253
  ;;
 
13254
 
 
13255
uts4*)
 
13256
  version_type=linux
 
13257
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13258
  soname_spec='${libname}${release}${shared_ext}$major'
 
13259
  shlibpath_var=LD_LIBRARY_PATH
 
13260
  ;;
 
13261
 
 
13262
*)
 
13263
  dynamic_linker=no
 
13264
  ;;
 
13265
esac
 
13266
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13267
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13268
test "$dynamic_linker" = no && can_build_shared=no
 
13269
 
 
13270
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13271
if test "$GCC" = yes; then
 
13272
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13273
fi
 
13274
 
 
13275
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13276
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13277
hardcode_action_CXX=
 
13278
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13279
   test -n "$runpath_var_CXX" || \
 
13280
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13281
 
 
13282
  # We can hardcode non-existant directories.
 
13283
  if test "$hardcode_direct_CXX" != no &&
 
13284
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13285
     # have to relink, otherwise we might link with an installed library
 
13286
     # when we should be linking with a yet-to-be-installed one
 
13287
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13288
     test "$hardcode_minus_L_CXX" != no; then
 
13289
    # Linking always hardcodes the temporary library directory.
 
13290
    hardcode_action_CXX=relink
 
13291
  else
 
13292
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13293
    hardcode_action_CXX=immediate
 
13294
  fi
 
13295
else
 
13296
  # We cannot hardcode anything, or else we can only hardcode existing
 
13297
  # directories.
 
13298
  hardcode_action_CXX=unsupported
 
13299
fi
 
13300
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13301
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13302
 
 
13303
if test "$hardcode_action_CXX" = relink; then
 
13304
  # Fast installation is not supported
 
13305
  enable_fast_install=no
 
13306
elif test "$shlibpath_overrides_runpath" = yes ||
 
13307
     test "$enable_shared" = no; then
 
13308
  # Fast installation is not necessary
 
13309
  enable_fast_install=needless
 
13310
fi
 
13311
 
 
13312
 
 
13313
# The else clause should only fire when bootstrapping the
 
13314
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13315
# with your package, and you will get complaints that there are
 
13316
# no rules to generate ltmain.sh.
 
13317
if test -f "$ltmain"; then
 
13318
  # See if we are running on zsh, and set the options which allow our commands through
 
13319
  # without removal of \ escapes.
 
13320
  if test -n "${ZSH_VERSION+set}" ; then
 
13321
    setopt NO_GLOB_SUBST
 
13322
  fi
 
13323
  # Now quote all the things that may contain metacharacters while being
 
13324
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13325
  # variables and quote the copies for generation of the libtool script.
 
13326
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13327
    SED SHELL STRIP \
 
13328
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13329
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13330
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13331
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13332
    lt_cv_sys_global_symbol_to_c_name_address \
 
13333
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13334
    old_postinstall_cmds old_postuninstall_cmds \
 
13335
    compiler_CXX \
 
13336
    CC_CXX \
 
13337
    LD_CXX \
 
13338
    lt_prog_compiler_wl_CXX \
 
13339
    lt_prog_compiler_pic_CXX \
 
13340
    lt_prog_compiler_static_CXX \
 
13341
    lt_prog_compiler_no_builtin_flag_CXX \
 
13342
    export_dynamic_flag_spec_CXX \
 
13343
    thread_safe_flag_spec_CXX \
 
13344
    whole_archive_flag_spec_CXX \
 
13345
    enable_shared_with_static_runtimes_CXX \
 
13346
    old_archive_cmds_CXX \
 
13347
    old_archive_from_new_cmds_CXX \
 
13348
    predep_objects_CXX \
 
13349
    postdep_objects_CXX \
 
13350
    predeps_CXX \
 
13351
    postdeps_CXX \
 
13352
    compiler_lib_search_path_CXX \
 
13353
    archive_cmds_CXX \
 
13354
    archive_expsym_cmds_CXX \
 
13355
    postinstall_cmds_CXX \
 
13356
    postuninstall_cmds_CXX \
 
13357
    old_archive_from_expsyms_cmds_CXX \
 
13358
    allow_undefined_flag_CXX \
 
13359
    no_undefined_flag_CXX \
 
13360
    export_symbols_cmds_CXX \
 
13361
    hardcode_libdir_flag_spec_CXX \
 
13362
    hardcode_libdir_flag_spec_ld_CXX \
 
13363
    hardcode_libdir_separator_CXX \
 
13364
    hardcode_automatic_CXX \
 
13365
    module_cmds_CXX \
 
13366
    module_expsym_cmds_CXX \
 
13367
    lt_cv_prog_compiler_c_o_CXX \
 
13368
    fix_srcfile_path_CXX \
 
13369
    exclude_expsyms_CXX \
 
13370
    include_expsyms_CXX; do
 
13371
 
 
13372
    case $var in
 
13373
    old_archive_cmds_CXX | \
 
13374
    old_archive_from_new_cmds_CXX | \
 
13375
    archive_cmds_CXX | \
 
13376
    archive_expsym_cmds_CXX | \
 
13377
    module_cmds_CXX | \
 
13378
    module_expsym_cmds_CXX | \
 
13379
    old_archive_from_expsyms_cmds_CXX | \
 
13380
    export_symbols_cmds_CXX | \
 
13381
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13382
    postinstall_cmds | postuninstall_cmds | \
 
13383
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13384
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13385
      # Double-quote double-evaled strings.
 
13386
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13387
      ;;
 
13388
    *)
 
13389
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13390
      ;;
 
13391
    esac
 
13392
  done
 
13393
 
 
13394
  case $lt_echo in
 
13395
  *'\$0 --fallback-echo"')
 
13396
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13397
    ;;
 
13398
  esac
 
13399
 
 
13400
cfgfile="$ofile"
 
13401
 
 
13402
  cat <<__EOF__ >> "$cfgfile"
 
13403
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13404
 
 
13405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13406
 
 
13407
# Shell to use when invoking shell scripts.
 
13408
SHELL=$lt_SHELL
 
13409
 
 
13410
# Whether or not to build shared libraries.
 
13411
build_libtool_libs=$enable_shared
 
13412
 
 
13413
# Whether or not to build static libraries.
 
13414
build_old_libs=$enable_static
 
13415
 
 
13416
# Whether or not to add -lc for building shared libraries.
 
13417
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13418
 
 
13419
# Whether or not to disallow shared libs when runtime libs are static
 
13420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13421
 
 
13422
# Whether or not to optimize for fast installation.
 
13423
fast_install=$enable_fast_install
 
13424
 
 
13425
# The host system.
 
13426
host_alias=$host_alias
 
13427
host=$host
 
13428
host_os=$host_os
 
13429
 
 
13430
# The build system.
 
13431
build_alias=$build_alias
 
13432
build=$build
 
13433
build_os=$build_os
 
13434
 
 
13435
# An echo program that does not interpret backslashes.
 
13436
echo=$lt_echo
 
13437
 
 
13438
# The archiver.
 
13439
AR=$lt_AR
 
13440
AR_FLAGS=$lt_AR_FLAGS
 
13441
 
 
13442
# A C compiler.
 
13443
LTCC=$lt_LTCC
 
13444
 
 
13445
# LTCC compiler flags.
 
13446
LTCFLAGS=$lt_LTCFLAGS
 
13447
 
 
13448
# A language-specific compiler.
 
13449
CC=$lt_compiler_CXX
 
13450
 
 
13451
# Is the compiler the GNU C compiler?
 
13452
with_gcc=$GCC_CXX
 
13453
 
 
13454
# An ERE matcher.
 
13455
EGREP=$lt_EGREP
 
13456
 
 
13457
# The linker used to build libraries.
 
13458
LD=$lt_LD_CXX
 
13459
 
 
13460
# Whether we need hard or soft links.
 
13461
LN_S=$lt_LN_S
 
13462
 
 
13463
# A BSD-compatible nm program.
 
13464
NM=$lt_NM
 
13465
 
 
13466
# A symbol stripping program
 
13467
STRIP=$lt_STRIP
 
13468
 
 
13469
# Used to examine libraries when file_magic_cmd begins "file"
 
13470
MAGIC_CMD=$MAGIC_CMD
 
13471
 
 
13472
# Used on cygwin: DLL creation program.
 
13473
DLLTOOL="$DLLTOOL"
 
13474
 
 
13475
# Used on cygwin: object dumper.
 
13476
OBJDUMP="$OBJDUMP"
 
13477
 
 
13478
# Used on cygwin: assembler.
 
13479
AS="$AS"
 
13480
 
 
13481
# The name of the directory that contains temporary libtool files.
 
13482
objdir=$objdir
 
13483
 
 
13484
# How to create reloadable object files.
 
13485
reload_flag=$lt_reload_flag
 
13486
reload_cmds=$lt_reload_cmds
 
13487
 
 
13488
# How to pass a linker flag through the compiler.
 
13489
wl=$lt_lt_prog_compiler_wl_CXX
 
13490
 
 
13491
# Object file suffix (normally "o").
 
13492
objext="$ac_objext"
 
13493
 
 
13494
# Old archive suffix (normally "a").
 
13495
libext="$libext"
 
13496
 
 
13497
# Shared library suffix (normally ".so").
 
13498
shrext_cmds='$shrext_cmds'
 
13499
 
 
13500
# Executable file suffix (normally "").
 
13501
exeext="$exeext"
 
13502
 
 
13503
# Additional compiler flags for building library objects.
 
13504
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13505
pic_mode=$pic_mode
 
13506
 
 
13507
# What is the maximum length of a command?
 
13508
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13509
 
 
13510
# Does compiler simultaneously support -c and -o options?
 
13511
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13512
 
 
13513
# Must we lock files when doing compilation?
 
13514
need_locks=$lt_need_locks
 
13515
 
 
13516
# Do we need the lib prefix for modules?
 
13517
need_lib_prefix=$need_lib_prefix
 
13518
 
 
13519
# Do we need a version for libraries?
 
13520
need_version=$need_version
 
13521
 
 
13522
# Whether dlopen is supported.
 
13523
dlopen_support=$enable_dlopen
 
13524
 
 
13525
# Whether dlopen of programs is supported.
 
13526
dlopen_self=$enable_dlopen_self
 
13527
 
 
13528
# Whether dlopen of statically linked programs is supported.
 
13529
dlopen_self_static=$enable_dlopen_self_static
 
13530
 
 
13531
# Compiler flag to prevent dynamic linking.
 
13532
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13533
 
 
13534
# Compiler flag to turn off builtin functions.
 
13535
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13536
 
 
13537
# Compiler flag to allow reflexive dlopens.
 
13538
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13539
 
 
13540
# Compiler flag to generate shared objects directly from archives.
 
13541
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13542
 
 
13543
# Compiler flag to generate thread-safe objects.
 
13544
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13545
 
 
13546
# Library versioning type.
 
13547
version_type=$version_type
 
13548
 
 
13549
# Format of library name prefix.
 
13550
libname_spec=$lt_libname_spec
 
13551
 
 
13552
# List of archive names.  First name is the real one, the rest are links.
 
13553
# The last name is the one that the linker finds with -lNAME.
 
13554
library_names_spec=$lt_library_names_spec
 
13555
 
 
13556
# The coded name of the library, if different from the real name.
 
13557
soname_spec=$lt_soname_spec
 
13558
 
 
13559
# Commands used to build and install an old-style archive.
 
13560
RANLIB=$lt_RANLIB
 
13561
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13562
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13563
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13564
 
 
13565
# Create an old-style archive from a shared archive.
 
13566
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13567
 
 
13568
# Create a temporary old-style archive to link instead of a shared archive.
 
13569
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13570
 
 
13571
# Commands used to build and install a shared archive.
 
13572
archive_cmds=$lt_archive_cmds_CXX
 
13573
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13574
postinstall_cmds=$lt_postinstall_cmds
 
13575
postuninstall_cmds=$lt_postuninstall_cmds
 
13576
 
 
13577
# Commands used to build a loadable module (assumed same as above if empty)
 
13578
module_cmds=$lt_module_cmds_CXX
 
13579
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13580
 
 
13581
# Commands to strip libraries.
 
13582
old_striplib=$lt_old_striplib
 
13583
striplib=$lt_striplib
 
13584
 
 
13585
# Dependencies to place before the objects being linked to create a
 
13586
# shared library.
 
13587
predep_objects=$lt_predep_objects_CXX
 
13588
 
 
13589
# Dependencies to place after the objects being linked to create a
 
13590
# shared library.
 
13591
postdep_objects=$lt_postdep_objects_CXX
 
13592
 
 
13593
# Dependencies to place before the objects being linked to create a
 
13594
# shared library.
 
13595
predeps=$lt_predeps_CXX
 
13596
 
 
13597
# Dependencies to place after the objects being linked to create a
 
13598
# shared library.
 
13599
postdeps=$lt_postdeps_CXX
 
13600
 
 
13601
# The library search path used internally by the compiler when linking
 
13602
# a shared library.
 
13603
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13604
 
 
13605
# Method to check whether dependent libraries are shared objects.
 
13606
deplibs_check_method=$lt_deplibs_check_method
 
13607
 
 
13608
# Command to use when deplibs_check_method == file_magic.
 
13609
file_magic_cmd=$lt_file_magic_cmd
 
13610
 
 
13611
# Flag that allows shared libraries with undefined symbols to be built.
 
13612
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13613
 
 
13614
# Flag that forces no undefined symbols.
 
13615
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13616
 
 
13617
# Commands used to finish a libtool library installation in a directory.
 
13618
finish_cmds=$lt_finish_cmds
 
13619
 
 
13620
# Same as above, but a single script fragment to be evaled but not shown.
 
13621
finish_eval=$lt_finish_eval
 
13622
 
 
13623
# Take the output of nm and produce a listing of raw symbols and C names.
 
13624
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13625
 
 
13626
# Transform the output of nm in a proper C declaration
 
13627
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13628
 
 
13629
# Transform the output of nm in a C name address pair
 
13630
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13631
 
 
13632
# This is the shared library runtime path variable.
 
13633
runpath_var=$runpath_var
 
13634
 
 
13635
# This is the shared library path variable.
 
13636
shlibpath_var=$shlibpath_var
 
13637
 
 
13638
# Is shlibpath searched before the hard-coded library search path?
 
13639
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13640
 
 
13641
# How to hardcode a shared library path into an executable.
 
13642
hardcode_action=$hardcode_action_CXX
 
13643
 
 
13644
# Whether we should hardcode library paths into libraries.
 
13645
hardcode_into_libs=$hardcode_into_libs
 
13646
 
 
13647
# Flag to hardcode \$libdir into a binary during linking.
 
13648
# This must work even if \$libdir does not exist.
 
13649
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13650
 
 
13651
# If ld is used when linking, flag to hardcode \$libdir into
 
13652
# a binary during linking. This must work even if \$libdir does
 
13653
# not exist.
 
13654
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13655
 
 
13656
# Whether we need a single -rpath flag with a separated argument.
 
13657
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13658
 
 
13659
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13660
# resulting binary.
 
13661
hardcode_direct=$hardcode_direct_CXX
 
13662
 
 
13663
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13664
# resulting binary.
 
13665
hardcode_minus_L=$hardcode_minus_L_CXX
 
13666
 
 
13667
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13668
# the resulting binary.
 
13669
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13670
 
 
13671
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13672
# and all subsequent libraries and executables linked against it.
 
13673
hardcode_automatic=$hardcode_automatic_CXX
 
13674
 
 
13675
# Variables whose values should be saved in libtool wrapper scripts and
 
13676
# restored at relink time.
 
13677
variables_saved_for_relink="$variables_saved_for_relink"
 
13678
 
 
13679
# Whether libtool must link a program against all its dependency libraries.
 
13680
link_all_deplibs=$link_all_deplibs_CXX
 
13681
 
 
13682
# Compile-time system search path for libraries
 
13683
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13684
 
 
13685
# Run-time system search path for libraries
 
13686
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13687
 
 
13688
# Fix the shell variable \$srcfile for the compiler.
 
13689
fix_srcfile_path=$lt_fix_srcfile_path
 
13690
 
 
13691
# Set to yes if exported symbols are required.
 
13692
always_export_symbols=$always_export_symbols_CXX
 
13693
 
 
13694
# The commands to list exported symbols.
 
13695
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13696
 
 
13697
# The commands to extract the exported symbol list from a shared archive.
 
13698
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13699
 
 
13700
# Symbols that should not be listed in the preloaded symbols.
 
13701
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13702
 
 
13703
# Symbols that must always be exported.
 
13704
include_expsyms=$lt_include_expsyms_CXX
 
13705
 
 
13706
# ### END LIBTOOL TAG CONFIG: $tagname
 
13707
 
 
13708
__EOF__
 
13709
 
 
13710
 
 
13711
else
 
13712
  # If there is no Makefile yet, we rely on a make rule to execute
 
13713
  # `config.status --recheck' to rerun these tests and create the
 
13714
  # libtool script then.
 
13715
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13716
  if test -f "$ltmain_in"; then
 
13717
    test -f Makefile && make "$ltmain"
 
13718
  fi
 
13719
fi
 
13720
 
 
13721
 
 
13722
ac_ext=c
 
13723
ac_cpp='$CPP $CPPFLAGS'
 
13724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13727
 
 
13728
CC=$lt_save_CC
 
13729
LDCXX=$LD
 
13730
LD=$lt_save_LD
 
13731
GCC=$lt_save_GCC
 
13732
with_gnu_ldcxx=$with_gnu_ld
 
13733
with_gnu_ld=$lt_save_with_gnu_ld
 
13734
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13735
lt_cv_path_LD=$lt_save_path_LD
 
13736
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13737
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13738
 
 
13739
        else
 
13740
          tagname=""
 
13741
        fi
 
13742
        ;;
 
13743
 
 
13744
      F77)
 
13745
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13746
 
 
13747
ac_ext=f
 
13748
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13749
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13750
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13751
 
 
13752
 
 
13753
archive_cmds_need_lc_F77=no
 
13754
allow_undefined_flag_F77=
 
13755
always_export_symbols_F77=no
 
13756
archive_expsym_cmds_F77=
 
13757
export_dynamic_flag_spec_F77=
 
13758
hardcode_direct_F77=no
 
13759
hardcode_libdir_flag_spec_F77=
 
13760
hardcode_libdir_flag_spec_ld_F77=
 
13761
hardcode_libdir_separator_F77=
 
13762
hardcode_minus_L_F77=no
 
13763
hardcode_automatic_F77=no
 
13764
module_cmds_F77=
 
13765
module_expsym_cmds_F77=
 
13766
link_all_deplibs_F77=unknown
 
13767
old_archive_cmds_F77=$old_archive_cmds
 
13768
no_undefined_flag_F77=
 
13769
whole_archive_flag_spec_F77=
 
13770
enable_shared_with_static_runtimes_F77=no
 
13771
 
 
13772
# Source file extension for f77 test sources.
 
13773
ac_ext=f
 
13774
 
 
13775
# Object file extension for compiled f77 test sources.
 
13776
objext=o
 
13777
objext_F77=$objext
 
13778
 
 
13779
# Code to be used in simple compile tests
 
13780
lt_simple_compile_test_code="\
 
13781
      subroutine t
 
13782
      return
 
13783
      end
 
13784
"
 
13785
 
 
13786
# Code to be used in simple link tests
 
13787
lt_simple_link_test_code="\
 
13788
      program t
 
13789
      end
 
13790
"
 
13791
 
 
13792
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13793
 
 
13794
# If no C compiler was specified, use CC.
 
13795
LTCC=${LTCC-"$CC"}
 
13796
 
 
13797
# If no C compiler flags were specified, use CFLAGS.
 
13798
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13799
 
 
13800
# Allow CC to be a program name with arguments.
 
13801
compiler=$CC
 
13802
 
 
13803
 
 
13804
# save warnings/boilerplate of simple test code
 
13805
ac_outfile=conftest.$ac_objext
 
13806
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13807
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13808
_lt_compiler_boilerplate=`cat conftest.err`
 
13809
$rm conftest*
 
13810
 
 
13811
ac_outfile=conftest.$ac_objext
 
13812
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13813
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13814
_lt_linker_boilerplate=`cat conftest.err`
 
13815
$rm conftest*
 
13816
 
 
13817
 
 
13818
# Allow CC to be a program name with arguments.
 
13819
lt_save_CC="$CC"
 
13820
CC=${F77-"f77"}
 
13821
compiler=$CC
 
13822
compiler_F77=$CC
 
13823
for cc_temp in $compiler""; do
 
13824
  case $cc_temp in
 
13825
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13826
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13827
    \-*) ;;
 
13828
    *) break;;
 
13829
  esac
 
13830
done
 
13831
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13832
 
 
13833
 
 
13834
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13835
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13836
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13837
echo "${ECHO_T}$can_build_shared" >&6; }
 
13838
 
 
13839
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13840
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13841
test "$can_build_shared" = "no" && enable_shared=no
 
13842
 
 
13843
# On AIX, shared libraries and static libraries use the same namespace, and
 
13844
# are all built from PIC.
 
13845
case $host_os in
 
13846
aix3*)
 
13847
  test "$enable_shared" = yes && enable_static=no
 
13848
  if test -n "$RANLIB"; then
 
13849
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13850
    postinstall_cmds='$RANLIB $lib'
 
13851
  fi
 
13852
  ;;
 
13853
aix4* | aix5*)
 
13854
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13855
    test "$enable_shared" = yes && enable_static=no
 
13856
  fi
 
13857
  ;;
 
13858
esac
 
13859
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13860
echo "${ECHO_T}$enable_shared" >&6; }
 
13861
 
 
13862
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13863
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13864
# Make sure either enable_shared or enable_static is yes.
 
13865
test "$enable_shared" = yes || enable_static=yes
 
13866
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13867
echo "${ECHO_T}$enable_static" >&6; }
 
13868
 
 
13869
GCC_F77="$G77"
 
13870
LD_F77="$LD"
 
13871
 
 
13872
lt_prog_compiler_wl_F77=
 
13873
lt_prog_compiler_pic_F77=
 
13874
lt_prog_compiler_static_F77=
 
13875
 
 
13876
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13877
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13878
 
 
13879
  if test "$GCC" = yes; then
 
13880
    lt_prog_compiler_wl_F77='-Wl,'
 
13881
    lt_prog_compiler_static_F77='-static'
 
13882
 
 
13883
    case $host_os in
 
13884
      aix*)
 
13885
      # All AIX code is PIC.
 
13886
      if test "$host_cpu" = ia64; then
 
13887
        # AIX 5 now supports IA64 processor
 
13888
        lt_prog_compiler_static_F77='-Bstatic'
 
13889
      fi
 
13890
      ;;
 
13891
 
 
13892
    amigaos*)
 
13893
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13894
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13895
      # like `-m68040'.
 
13896
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13897
      ;;
 
13898
 
 
13899
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13900
      # PIC is the default for these OSes.
 
13901
      ;;
 
13902
 
 
13903
    mingw* | cygwin* | pw32* | os2*)
 
13904
      # This hack is so that the source file can tell whether it is being
 
13905
      # built for inclusion in a dll (and should export symbols for example).
 
13906
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
13907
      # (--disable-auto-import) libraries
 
13908
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13909
      ;;
 
13910
 
 
13911
    darwin* | rhapsody*)
 
13912
      # PIC is the default on this platform
 
13913
      # Common symbols not allowed in MH_DYLIB files
 
13914
      lt_prog_compiler_pic_F77='-fno-common'
 
13915
      ;;
 
13916
 
 
13917
    interix[3-9]*)
 
13918
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13919
      # Instead, we relocate shared libraries at runtime.
 
13920
      ;;
 
13921
 
 
13922
    msdosdjgpp*)
 
13923
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13924
      # on systems that don't support them.
 
13925
      lt_prog_compiler_can_build_shared_F77=no
 
13926
      enable_shared=no
 
13927
      ;;
 
13928
 
 
13929
    sysv4*MP*)
 
13930
      if test -d /usr/nec; then
 
13931
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13932
      fi
 
13933
      ;;
 
13934
 
 
13935
    hpux*)
 
13936
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13937
      # not for PA HP-UX.
 
13938
      case $host_cpu in
 
13939
      hppa*64*|ia64*)
 
13940
        # +Z the default
 
13941
        ;;
 
13942
      *)
 
13943
        lt_prog_compiler_pic_F77='-fPIC'
 
13944
        ;;
 
13945
      esac
 
13946
      ;;
 
13947
 
 
13948
    *)
 
13949
      lt_prog_compiler_pic_F77='-fPIC'
 
13950
      ;;
 
13951
    esac
 
13952
  else
 
13953
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13954
    case $host_os in
 
13955
    aix*)
 
13956
      lt_prog_compiler_wl_F77='-Wl,'
 
13957
      if test "$host_cpu" = ia64; then
 
13958
        # AIX 5 now supports IA64 processor
 
13959
        lt_prog_compiler_static_F77='-Bstatic'
 
13960
      else
 
13961
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13962
      fi
 
13963
      ;;
 
13964
      darwin*)
 
13965
        # PIC is the default on this platform
 
13966
        # Common symbols not allowed in MH_DYLIB files
 
13967
       case $cc_basename in
 
13968
         xlc*)
 
13969
         lt_prog_compiler_pic_F77='-qnocommon'
 
13970
         lt_prog_compiler_wl_F77='-Wl,'
 
13971
         ;;
 
13972
       esac
 
13973
       ;;
 
13974
 
 
13975
    mingw* | cygwin* | pw32* | os2*)
 
13976
      # This hack is so that the source file can tell whether it is being
 
13977
      # built for inclusion in a dll (and should export symbols for example).
 
13978
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13979
      ;;
 
13980
 
 
13981
    hpux9* | hpux10* | hpux11*)
 
13982
      lt_prog_compiler_wl_F77='-Wl,'
 
13983
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13984
      # not for PA HP-UX.
 
13985
      case $host_cpu in
 
13986
      hppa*64*|ia64*)
 
13987
        # +Z the default
 
13988
        ;;
 
13989
      *)
 
13990
        lt_prog_compiler_pic_F77='+Z'
 
13991
        ;;
 
13992
      esac
 
13993
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13994
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13995
      ;;
 
13996
 
 
13997
    irix5* | irix6* | nonstopux*)
 
13998
      lt_prog_compiler_wl_F77='-Wl,'
 
13999
      # PIC (with -KPIC) is the default.
 
14000
      lt_prog_compiler_static_F77='-non_shared'
 
14001
      ;;
 
14002
 
 
14003
    newsos6)
 
14004
      lt_prog_compiler_pic_F77='-KPIC'
 
14005
      lt_prog_compiler_static_F77='-Bstatic'
 
14006
      ;;
 
14007
 
 
14008
    linux* | k*bsd*-gnu)
 
14009
      case $cc_basename in
 
14010
      icc* | ecc*)
 
14011
        lt_prog_compiler_wl_F77='-Wl,'
 
14012
        lt_prog_compiler_pic_F77='-KPIC'
 
14013
        lt_prog_compiler_static_F77='-static'
 
14014
        ;;
 
14015
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14016
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14017
        # which looks to be a dead project)
 
14018
        lt_prog_compiler_wl_F77='-Wl,'
 
14019
        lt_prog_compiler_pic_F77='-fpic'
 
14020
        lt_prog_compiler_static_F77='-Bstatic'
 
14021
        ;;
 
14022
      ccc*)
 
14023
        lt_prog_compiler_wl_F77='-Wl,'
 
14024
        # All Alpha code is PIC.
 
14025
        lt_prog_compiler_static_F77='-non_shared'
 
14026
        ;;
 
14027
      *)
 
14028
        case `$CC -V 2>&1 | sed 5q` in
 
14029
        *Sun\ C*)
 
14030
          # Sun C 5.9
 
14031
          lt_prog_compiler_pic_F77='-KPIC'
 
14032
          lt_prog_compiler_static_F77='-Bstatic'
 
14033
          lt_prog_compiler_wl_F77='-Wl,'
 
14034
          ;;
 
14035
        *Sun\ F*)
 
14036
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14037
          lt_prog_compiler_pic_F77='-KPIC'
 
14038
          lt_prog_compiler_static_F77='-Bstatic'
 
14039
          lt_prog_compiler_wl_F77=''
 
14040
          ;;
 
14041
        esac
 
14042
        ;;
 
14043
      esac
 
14044
      ;;
 
14045
 
 
14046
    osf3* | osf4* | osf5*)
 
14047
      lt_prog_compiler_wl_F77='-Wl,'
 
14048
      # All OSF/1 code is PIC.
 
14049
      lt_prog_compiler_static_F77='-non_shared'
 
14050
      ;;
 
14051
 
 
14052
    rdos*)
 
14053
      lt_prog_compiler_static_F77='-non_shared'
 
14054
      ;;
 
14055
 
 
14056
    solaris*)
 
14057
      lt_prog_compiler_pic_F77='-KPIC'
 
14058
      lt_prog_compiler_static_F77='-Bstatic'
 
14059
      case $cc_basename in
 
14060
      f77* | f90* | f95*)
 
14061
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14062
      *)
 
14063
        lt_prog_compiler_wl_F77='-Wl,';;
 
14064
      esac
 
14065
      ;;
 
14066
 
 
14067
    sunos4*)
 
14068
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14069
      lt_prog_compiler_pic_F77='-PIC'
 
14070
      lt_prog_compiler_static_F77='-Bstatic'
 
14071
      ;;
 
14072
 
 
14073
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14074
      lt_prog_compiler_wl_F77='-Wl,'
 
14075
      lt_prog_compiler_pic_F77='-KPIC'
 
14076
      lt_prog_compiler_static_F77='-Bstatic'
 
14077
      ;;
 
14078
 
 
14079
    sysv4*MP*)
 
14080
      if test -d /usr/nec ;then
 
14081
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14082
        lt_prog_compiler_static_F77='-Bstatic'
 
14083
      fi
 
14084
      ;;
 
14085
 
 
14086
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14087
      lt_prog_compiler_wl_F77='-Wl,'
 
14088
      lt_prog_compiler_pic_F77='-KPIC'
 
14089
      lt_prog_compiler_static_F77='-Bstatic'
 
14090
      ;;
 
14091
 
 
14092
    unicos*)
 
14093
      lt_prog_compiler_wl_F77='-Wl,'
 
14094
      lt_prog_compiler_can_build_shared_F77=no
 
14095
      ;;
 
14096
 
 
14097
    uts4*)
 
14098
      lt_prog_compiler_pic_F77='-pic'
 
14099
      lt_prog_compiler_static_F77='-Bstatic'
 
14100
      ;;
 
14101
 
 
14102
    *)
 
14103
      lt_prog_compiler_can_build_shared_F77=no
 
14104
      ;;
 
14105
    esac
 
14106
  fi
 
14107
 
 
14108
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14109
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14110
 
 
14111
#
 
14112
# Check to make sure the PIC flag actually works.
 
14113
#
 
14114
if test -n "$lt_prog_compiler_pic_F77"; then
 
14115
 
 
14116
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14117
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14118
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14120
else
 
14121
  lt_prog_compiler_pic_works_F77=no
 
14122
  ac_outfile=conftest.$ac_objext
 
14123
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14124
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14125
   # Insert the option either (1) after the last *FLAGS variable, or
 
14126
   # (2) before a word containing "conftest.", or (3) at the end.
 
14127
   # Note that $ac_compile itself does not contain backslashes and begins
 
14128
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14129
   # The option is referenced via a variable to avoid confusing sed.
 
14130
   lt_compile=`echo "$ac_compile" | $SED \
 
14131
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14132
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14133
   -e 's:$: $lt_compiler_flag:'`
 
14134
   (eval echo "\"\$as_me:14134: $lt_compile\"" >&5)
 
14135
   (eval "$lt_compile" 2>conftest.err)
 
14136
   ac_status=$?
 
14137
   cat conftest.err >&5
 
14138
   echo "$as_me:14138: \$? = $ac_status" >&5
 
14139
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14140
     # The compiler can only warn and ignore the option if not recognized
 
14141
     # So say no if there are warnings other than the usual output.
 
14142
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14143
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14144
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14145
       lt_prog_compiler_pic_works_F77=yes
 
14146
     fi
 
14147
   fi
 
14148
   $rm conftest*
 
14149
 
 
14150
fi
 
14151
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14152
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14153
 
 
14154
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14155
    case $lt_prog_compiler_pic_F77 in
 
14156
     "" | " "*) ;;
 
14157
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14158
     esac
 
14159
else
 
14160
    lt_prog_compiler_pic_F77=
 
14161
     lt_prog_compiler_can_build_shared_F77=no
 
14162
fi
 
14163
 
 
14164
fi
 
14165
case $host_os in
 
14166
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14167
  *djgpp*)
 
14168
    lt_prog_compiler_pic_F77=
 
14169
    ;;
 
14170
  *)
 
14171
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14172
    ;;
 
14173
esac
 
14174
 
 
14175
#
 
14176
# Check to make sure the static flag actually works.
 
14177
#
 
14178
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14179
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14180
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14181
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14183
else
 
14184
  lt_prog_compiler_static_works_F77=no
 
14185
   save_LDFLAGS="$LDFLAGS"
 
14186
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14187
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14188
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14189
     # The linker can only warn and ignore the option if not recognized
 
14190
     # So say no if there are warnings
 
14191
     if test -s conftest.err; then
 
14192
       # Append any errors to the config.log.
 
14193
       cat conftest.err 1>&5
 
14194
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14195
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14196
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14197
         lt_prog_compiler_static_works_F77=yes
 
14198
       fi
 
14199
     else
 
14200
       lt_prog_compiler_static_works_F77=yes
 
14201
     fi
 
14202
   fi
 
14203
   $rm conftest*
 
14204
   LDFLAGS="$save_LDFLAGS"
 
14205
 
 
14206
fi
 
14207
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14208
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14209
 
 
14210
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14211
    :
 
14212
else
 
14213
    lt_prog_compiler_static_F77=
 
14214
fi
 
14215
 
 
14216
 
 
14217
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14218
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14219
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14221
else
 
14222
  lt_cv_prog_compiler_c_o_F77=no
 
14223
   $rm -r conftest 2>/dev/null
 
14224
   mkdir conftest
 
14225
   cd conftest
 
14226
   mkdir out
 
14227
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14228
 
 
14229
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14230
   # Insert the option either (1) after the last *FLAGS variable, or
 
14231
   # (2) before a word containing "conftest.", or (3) at the end.
 
14232
   # Note that $ac_compile itself does not contain backslashes and begins
 
14233
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14234
   lt_compile=`echo "$ac_compile" | $SED \
 
14235
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14236
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14237
   -e 's:$: $lt_compiler_flag:'`
 
14238
   (eval echo "\"\$as_me:14238: $lt_compile\"" >&5)
 
14239
   (eval "$lt_compile" 2>out/conftest.err)
 
14240
   ac_status=$?
 
14241
   cat out/conftest.err >&5
 
14242
   echo "$as_me:14242: \$? = $ac_status" >&5
 
14243
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14244
   then
 
14245
     # The compiler can only warn and ignore the option if not recognized
 
14246
     # So say no if there are warnings
 
14247
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14248
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14249
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14250
       lt_cv_prog_compiler_c_o_F77=yes
 
14251
     fi
 
14252
   fi
 
14253
   chmod u+w . 2>&5
 
14254
   $rm conftest*
 
14255
   # SGI C++ compiler will create directory out/ii_files/ for
 
14256
   # template instantiation
 
14257
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14258
   $rm out/* && rmdir out
 
14259
   cd ..
 
14260
   rmdir conftest
 
14261
   $rm conftest*
 
14262
 
 
14263
fi
 
14264
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14265
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14266
 
 
14267
 
 
14268
hard_links="nottested"
 
14269
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14270
  # do not overwrite the value of need_locks provided by the user
 
14271
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14272
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14273
  hard_links=yes
 
14274
  $rm conftest*
 
14275
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14276
  touch conftest.a
 
14277
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14278
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14279
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14280
echo "${ECHO_T}$hard_links" >&6; }
 
14281
  if test "$hard_links" = no; then
 
14282
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14283
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14284
    need_locks=warn
 
14285
  fi
 
14286
else
 
14287
  need_locks=no
 
14288
fi
 
14289
 
 
14290
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14291
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14292
 
 
14293
  runpath_var=
 
14294
  allow_undefined_flag_F77=
 
14295
  enable_shared_with_static_runtimes_F77=no
 
14296
  archive_cmds_F77=
 
14297
  archive_expsym_cmds_F77=
 
14298
  old_archive_From_new_cmds_F77=
 
14299
  old_archive_from_expsyms_cmds_F77=
 
14300
  export_dynamic_flag_spec_F77=
 
14301
  whole_archive_flag_spec_F77=
 
14302
  thread_safe_flag_spec_F77=
 
14303
  hardcode_libdir_flag_spec_F77=
 
14304
  hardcode_libdir_flag_spec_ld_F77=
 
14305
  hardcode_libdir_separator_F77=
 
14306
  hardcode_direct_F77=no
 
14307
  hardcode_minus_L_F77=no
 
14308
  hardcode_shlibpath_var_F77=unsupported
 
14309
  link_all_deplibs_F77=unknown
 
14310
  hardcode_automatic_F77=no
 
14311
  module_cmds_F77=
 
14312
  module_expsym_cmds_F77=
 
14313
  always_export_symbols_F77=no
 
14314
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14315
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14316
  # included in the symbol list
 
14317
  include_expsyms_F77=
 
14318
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14319
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14320
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14321
  # as well as any symbol that contains `d'.
 
14322
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14323
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14324
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14325
  # the symbol is explicitly referenced.  Since portable code cannot
 
14326
  # rely on this symbol name, it's probably fine to never include it in
 
14327
  # preloaded symbol tables.
 
14328
  extract_expsyms_cmds=
 
14329
  # Just being paranoid about ensuring that cc_basename is set.
 
14330
  for cc_temp in $compiler""; do
 
14331
  case $cc_temp in
 
14332
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14333
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14334
    \-*) ;;
 
14335
    *) break;;
 
14336
  esac
 
14337
done
 
14338
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14339
 
 
14340
  case $host_os in
 
14341
  cygwin* | mingw* | pw32*)
 
14342
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14343
    # When not using gcc, we currently assume that we are using
 
14344
    # Microsoft Visual C++.
 
14345
    if test "$GCC" != yes; then
 
14346
      with_gnu_ld=no
 
14347
    fi
 
14348
    ;;
 
14349
  interix*)
 
14350
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14351
    with_gnu_ld=yes
 
14352
    ;;
 
14353
  openbsd*)
 
14354
    with_gnu_ld=no
 
14355
    ;;
 
14356
  esac
 
14357
 
 
14358
  ld_shlibs_F77=yes
 
14359
  if test "$with_gnu_ld" = yes; then
 
14360
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14361
    wlarc='${wl}'
 
14362
 
 
14363
    # Set some defaults for GNU ld with shared library support. These
 
14364
    # are reset later if shared libraries are not supported. Putting them
 
14365
    # here allows them to be overridden if necessary.
 
14366
    runpath_var=LD_RUN_PATH
 
14367
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14368
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14369
    # ancient GNU ld didn't support --whole-archive et. al.
 
14370
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14371
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14372
      else
 
14373
        whole_archive_flag_spec_F77=
 
14374
    fi
 
14375
    supports_anon_versioning=no
 
14376
    case `$LD -v 2>/dev/null` in
 
14377
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14378
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14379
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14380
      *\ 2.11.*) ;; # other 2.11 versions
 
14381
      *) supports_anon_versioning=yes ;;
 
14382
    esac
 
14383
 
 
14384
    # See if GNU ld supports shared libraries.
 
14385
    case $host_os in
 
14386
    aix3* | aix4* | aix5*)
 
14387
      # On AIX/PPC, the GNU linker is very broken
 
14388
      if test "$host_cpu" != ia64; then
 
14389
        ld_shlibs_F77=no
 
14390
        cat <<EOF 1>&2
 
14391
 
 
14392
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14393
*** to be unable to reliably create shared libraries on AIX.
 
14394
*** Therefore, libtool is disabling shared libraries support.  If you
 
14395
*** really care for shared libraries, you may want to modify your PATH
 
14396
*** so that a non-GNU linker is found, and then restart.
 
14397
 
 
14398
EOF
 
14399
      fi
 
14400
      ;;
 
14401
 
 
14402
    amigaos*)
 
14403
      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)'
 
14404
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14405
      hardcode_minus_L_F77=yes
 
14406
 
 
14407
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14408
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14409
      # to version 4, is to share data among multiple programs linked
 
14410
      # with the same dynamic library.  Since this doesn't match the
 
14411
      # behavior of shared libraries on other platforms, we can't use
 
14412
      # them.
 
14413
      ld_shlibs_F77=no
 
14414
      ;;
 
14415
 
 
14416
    beos*)
 
14417
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14418
        allow_undefined_flag_F77=unsupported
 
14419
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14420
        # support --undefined.  This deserves some investigation.  FIXME
 
14421
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14422
      else
 
14423
        ld_shlibs_F77=no
 
14424
      fi
 
14425
      ;;
 
14426
 
 
14427
    cygwin* | mingw* | pw32*)
 
14428
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14429
      # as there is no search path for DLLs.
 
14430
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14431
      allow_undefined_flag_F77=unsupported
 
14432
      always_export_symbols_F77=no
 
14433
      enable_shared_with_static_runtimes_F77=yes
 
14434
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14435
 
 
14436
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14437
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14438
        # If the export-symbols file already is a .def file (1st line
 
14439
        # is EXPORTS), use it as is; otherwise, prepend...
 
14440
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14441
          cp $export_symbols $output_objdir/$soname.def;
 
14442
        else
 
14443
          echo EXPORTS > $output_objdir/$soname.def;
 
14444
          cat $export_symbols >> $output_objdir/$soname.def;
 
14445
        fi~
 
14446
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14447
      else
 
14448
        ld_shlibs_F77=no
 
14449
      fi
 
14450
      ;;
 
14451
 
 
14452
    interix[3-9]*)
 
14453
      hardcode_direct_F77=no
 
14454
      hardcode_shlibpath_var_F77=no
 
14455
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14456
      export_dynamic_flag_spec_F77='${wl}-E'
 
14457
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14458
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14459
      # default) and relocated if they conflict, which is a slow very memory
 
14460
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14461
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14462
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14463
      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'
 
14464
      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'
 
14465
      ;;
 
14466
 
 
14467
    gnu* | linux* | k*bsd*-gnu)
 
14468
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14469
        tmp_addflag=
 
14470
        case $cc_basename,$host_cpu in
 
14471
        pgcc*)                          # Portland Group C compiler
 
14472
          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'
 
14473
          tmp_addflag=' $pic_flag'
 
14474
          ;;
 
14475
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14476
          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'
 
14477
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14478
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14479
          tmp_addflag=' -i_dynamic' ;;
 
14480
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14481
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14482
        ifc* | ifort*)                  # Intel Fortran compiler
 
14483
          tmp_addflag=' -nofor_main' ;;
 
14484
        esac
 
14485
        case `$CC -V 2>&1 | sed 5q` in
 
14486
        *Sun\ C*)                       # Sun C 5.9
 
14487
          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'
 
14488
          tmp_sharedflag='-G' ;;
 
14489
        *Sun\ F*)                       # Sun Fortran 8.3
 
14490
          tmp_sharedflag='-G' ;;
 
14491
        *)
 
14492
          tmp_sharedflag='-shared' ;;
 
14493
        esac
 
14494
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14495
 
 
14496
        if test $supports_anon_versioning = yes; then
 
14497
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14498
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14499
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14500
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14501
        fi
 
14502
      else
 
14503
        ld_shlibs_F77=no
 
14504
      fi
 
14505
      ;;
 
14506
 
 
14507
    netbsd*)
 
14508
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14509
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14510
        wlarc=
 
14511
      else
 
14512
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14513
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14514
      fi
 
14515
      ;;
 
14516
 
 
14517
    solaris*)
 
14518
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14519
        ld_shlibs_F77=no
 
14520
        cat <<EOF 1>&2
 
14521
 
 
14522
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14523
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14524
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14525
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14526
*** your PATH or compiler configuration so that the native linker is
 
14527
*** used, and then restart.
 
14528
 
 
14529
EOF
 
14530
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14531
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14532
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14533
      else
 
14534
        ld_shlibs_F77=no
 
14535
      fi
 
14536
      ;;
 
14537
 
 
14538
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14539
      case `$LD -v 2>&1` in
 
14540
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14541
        ld_shlibs_F77=no
 
14542
        cat <<_LT_EOF 1>&2
 
14543
 
 
14544
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14545
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14546
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14547
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14548
*** your PATH or compiler configuration so that the native linker is
 
14549
*** used, and then restart.
 
14550
 
 
14551
_LT_EOF
 
14552
        ;;
 
14553
        *)
 
14554
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14555
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14556
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14557
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14558
          else
 
14559
            ld_shlibs_F77=no
 
14560
          fi
 
14561
        ;;
 
14562
      esac
 
14563
      ;;
 
14564
 
 
14565
    sunos4*)
 
14566
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14567
      wlarc=
 
14568
      hardcode_direct_F77=yes
 
14569
      hardcode_shlibpath_var_F77=no
 
14570
      ;;
 
14571
 
 
14572
    *)
 
14573
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14574
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14575
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14576
      else
 
14577
        ld_shlibs_F77=no
 
14578
      fi
 
14579
      ;;
 
14580
    esac
 
14581
 
 
14582
    if test "$ld_shlibs_F77" = no; then
 
14583
      runpath_var=
 
14584
      hardcode_libdir_flag_spec_F77=
 
14585
      export_dynamic_flag_spec_F77=
 
14586
      whole_archive_flag_spec_F77=
 
14587
    fi
 
14588
  else
 
14589
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14590
    case $host_os in
 
14591
    aix3*)
 
14592
      allow_undefined_flag_F77=unsupported
 
14593
      always_export_symbols_F77=yes
 
14594
      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'
 
14595
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14596
      # are no directories specified by -L.
 
14597
      hardcode_minus_L_F77=yes
 
14598
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14599
        # Neither direct hardcoding nor static linking is supported with a
 
14600
        # broken collect2.
 
14601
        hardcode_direct_F77=unsupported
 
14602
      fi
 
14603
      ;;
 
14604
 
 
14605
    aix4* | aix5*)
 
14606
      if test "$host_cpu" = ia64; then
 
14607
        # On IA64, the linker does run time linking by default, so we don't
 
14608
        # have to do anything special.
 
14609
        aix_use_runtimelinking=no
 
14610
        exp_sym_flag='-Bexport'
 
14611
        no_entry_flag=""
 
14612
      else
 
14613
        # If we're using GNU nm, then we don't want the "-C" option.
 
14614
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14615
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14616
          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'
 
14617
        else
 
14618
          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'
 
14619
        fi
 
14620
        aix_use_runtimelinking=no
 
14621
 
 
14622
        # Test if we are trying to use run time linking or normal
 
14623
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14624
        # need to do runtime linking.
 
14625
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14626
          for ld_flag in $LDFLAGS; do
 
14627
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14628
            aix_use_runtimelinking=yes
 
14629
            break
 
14630
          fi
 
14631
          done
 
14632
          ;;
 
14633
        esac
 
14634
 
 
14635
        exp_sym_flag='-bexport'
 
14636
        no_entry_flag='-bnoentry'
 
14637
      fi
 
14638
 
 
14639
      # When large executables or shared objects are built, AIX ld can
 
14640
      # have problems creating the table of contents.  If linking a library
 
14641
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14642
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14643
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14644
 
 
14645
      archive_cmds_F77=''
 
14646
      hardcode_direct_F77=yes
 
14647
      hardcode_libdir_separator_F77=':'
 
14648
      link_all_deplibs_F77=yes
 
14649
 
 
14650
      if test "$GCC" = yes; then
 
14651
        case $host_os in aix4.[012]|aix4.[012].*)
 
14652
        # We only want to do this on AIX 4.2 and lower, the check
 
14653
        # below for broken collect2 doesn't work under 4.3+
 
14654
          collect2name=`${CC} -print-prog-name=collect2`
 
14655
          if test -f "$collect2name" && \
 
14656
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14657
          then
 
14658
          # We have reworked collect2
 
14659
          :
 
14660
          else
 
14661
          # We have old collect2
 
14662
          hardcode_direct_F77=unsupported
 
14663
          # It fails to find uninstalled libraries when the uninstalled
 
14664
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14665
          # to unsupported forces relinking
 
14666
          hardcode_minus_L_F77=yes
 
14667
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14668
          hardcode_libdir_separator_F77=
 
14669
          fi
 
14670
          ;;
 
14671
        esac
 
14672
        shared_flag='-shared'
 
14673
        if test "$aix_use_runtimelinking" = yes; then
 
14674
          shared_flag="$shared_flag "'${wl}-G'
 
14675
        fi
 
14676
      else
 
14677
        # not using gcc
 
14678
        if test "$host_cpu" = ia64; then
 
14679
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14680
        # chokes on -Wl,-G. The following line is correct:
 
14681
          shared_flag='-G'
 
14682
        else
 
14683
          if test "$aix_use_runtimelinking" = yes; then
 
14684
            shared_flag='${wl}-G'
 
14685
          else
 
14686
            shared_flag='${wl}-bM:SRE'
 
14687
          fi
 
14688
        fi
 
14689
      fi
 
14690
 
 
14691
      # It seems that -bexpall does not export symbols beginning with
 
14692
      # underscore (_), so it is better to generate a list of symbols to export.
 
14693
      always_export_symbols_F77=yes
 
14694
      if test "$aix_use_runtimelinking" = yes; then
 
14695
        # Warning - without using the other runtime loading flags (-brtl),
 
14696
        # -berok will link without error, but may produce a broken library.
 
14697
        allow_undefined_flag_F77='-berok'
 
14698
       # Determine the default libpath from the value encoded in an empty executable.
 
14699
       cat >conftest.$ac_ext <<_ACEOF
 
14700
      program main
 
14701
 
 
14702
      end
 
14703
_ACEOF
 
14704
rm -f conftest.$ac_objext conftest$ac_exeext
 
14705
if { (ac_try="$ac_link"
 
14706
case "(($ac_try" in
 
14707
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14708
  *) ac_try_echo=$ac_try;;
 
14709
esac
 
14710
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14711
  (eval "$ac_link") 2>conftest.er1
 
14712
  ac_status=$?
 
14713
  grep -v '^ *+' conftest.er1 >conftest.err
 
14714
  rm -f conftest.er1
 
14715
  cat conftest.err >&5
 
14716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14717
  (exit $ac_status); } && {
 
14718
         test -z "$ac_f77_werror_flag" ||
 
14719
         test ! -s conftest.err
 
14720
       } && test -s conftest$ac_exeext &&
 
14721
       $as_test_x conftest$ac_exeext; then
 
14722
 
 
14723
lt_aix_libpath_sed='
 
14724
    /Import File Strings/,/^$/ {
 
14725
        /^0/ {
 
14726
            s/^0  *\(.*\)$/\1/
 
14727
            p
 
14728
        }
 
14729
    }'
 
14730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14731
# Check for a 64-bit object if we didn't find anything.
 
14732
if test -z "$aix_libpath"; then
 
14733
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14734
fi
 
14735
else
 
14736
  echo "$as_me: failed program was:" >&5
 
14737
sed 's/^/| /' conftest.$ac_ext >&5
 
14738
 
 
14739
 
 
14740
fi
 
14741
 
 
14742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14743
      conftest$ac_exeext conftest.$ac_ext
 
14744
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14745
 
 
14746
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14747
        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"
 
14748
       else
 
14749
        if test "$host_cpu" = ia64; then
 
14750
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14751
          allow_undefined_flag_F77="-z nodefs"
 
14752
          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"
 
14753
        else
 
14754
         # Determine the default libpath from the value encoded in an empty executable.
 
14755
         cat >conftest.$ac_ext <<_ACEOF
 
14756
      program main
 
14757
 
 
14758
      end
 
14759
_ACEOF
 
14760
rm -f conftest.$ac_objext conftest$ac_exeext
 
14761
if { (ac_try="$ac_link"
 
14762
case "(($ac_try" in
 
14763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14764
  *) ac_try_echo=$ac_try;;
 
14765
esac
 
14766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14767
  (eval "$ac_link") 2>conftest.er1
 
14768
  ac_status=$?
 
14769
  grep -v '^ *+' conftest.er1 >conftest.err
 
14770
  rm -f conftest.er1
 
14771
  cat conftest.err >&5
 
14772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14773
  (exit $ac_status); } && {
 
14774
         test -z "$ac_f77_werror_flag" ||
 
14775
         test ! -s conftest.err
 
14776
       } && test -s conftest$ac_exeext &&
 
14777
       $as_test_x conftest$ac_exeext; then
 
14778
 
 
14779
lt_aix_libpath_sed='
 
14780
    /Import File Strings/,/^$/ {
 
14781
        /^0/ {
 
14782
            s/^0  *\(.*\)$/\1/
 
14783
            p
 
14784
        }
 
14785
    }'
 
14786
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14787
# Check for a 64-bit object if we didn't find anything.
 
14788
if test -z "$aix_libpath"; then
 
14789
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14790
fi
 
14791
else
 
14792
  echo "$as_me: failed program was:" >&5
 
14793
sed 's/^/| /' conftest.$ac_ext >&5
 
14794
 
 
14795
 
 
14796
fi
 
14797
 
 
14798
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14799
      conftest$ac_exeext conftest.$ac_ext
 
14800
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14801
 
 
14802
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14803
          # Warning - without using the other run time loading flags,
 
14804
          # -berok will link without error, but may produce a broken library.
 
14805
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14806
          allow_undefined_flag_F77=' ${wl}-berok'
 
14807
          # Exported symbols can be pulled into shared objects from archives
 
14808
          whole_archive_flag_spec_F77='$convenience'
 
14809
          archive_cmds_need_lc_F77=yes
 
14810
          # This is similar to how AIX traditionally builds its shared libraries.
 
14811
          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'
 
14812
        fi
 
14813
      fi
 
14814
      ;;
 
14815
 
 
14816
    amigaos*)
 
14817
      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)'
 
14818
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14819
      hardcode_minus_L_F77=yes
 
14820
      # see comment about different semantics on the GNU ld section
 
14821
      ld_shlibs_F77=no
 
14822
      ;;
 
14823
 
 
14824
    bsdi[45]*)
 
14825
      export_dynamic_flag_spec_F77=-rdynamic
 
14826
      ;;
 
14827
 
 
14828
    cygwin* | mingw* | pw32*)
 
14829
      # When not using gcc, we currently assume that we are using
 
14830
      # Microsoft Visual C++.
 
14831
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14832
      # no search path for DLLs.
 
14833
      hardcode_libdir_flag_spec_F77=' '
 
14834
      allow_undefined_flag_F77=unsupported
 
14835
      # Tell ltmain to make .lib files, not .a files.
 
14836
      libext=lib
 
14837
      # Tell ltmain to make .dll files, not .so files.
 
14838
      shrext_cmds=".dll"
 
14839
      # FIXME: Setting linknames here is a bad hack.
 
14840
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14841
      # The linker will automatically build a .lib file if we build a DLL.
 
14842
      old_archive_From_new_cmds_F77='true'
 
14843
      # FIXME: Should let the user specify the lib program.
 
14844
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
14845
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14846
      enable_shared_with_static_runtimes_F77=yes
 
14847
      ;;
 
14848
 
 
14849
    darwin* | rhapsody*)
 
14850
      case $host_os in
 
14851
        rhapsody* | darwin1.[012])
 
14852
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14853
         ;;
 
14854
       *) # Darwin 1.3 on
 
14855
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14856
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14857
         else
 
14858
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14859
             10.[012])
 
14860
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14861
               ;;
 
14862
             10.*)
 
14863
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14864
               ;;
 
14865
           esac
 
14866
         fi
 
14867
         ;;
 
14868
      esac
 
14869
      archive_cmds_need_lc_F77=no
 
14870
      hardcode_direct_F77=no
 
14871
      hardcode_automatic_F77=yes
 
14872
      hardcode_shlibpath_var_F77=unsupported
 
14873
      whole_archive_flag_spec_F77=''
 
14874
      link_all_deplibs_F77=yes
 
14875
    if test "$GCC" = yes ; then
 
14876
        output_verbose_link_cmd='echo'
 
14877
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14878
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14879
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14880
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14881
      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}'
 
14882
    else
 
14883
      case $cc_basename in
 
14884
        xlc*)
 
14885
         output_verbose_link_cmd='echo'
 
14886
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
14887
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14888
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14889
         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}'
 
14890
          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}'
 
14891
          ;;
 
14892
       *)
 
14893
         ld_shlibs_F77=no
 
14894
          ;;
 
14895
      esac
 
14896
    fi
 
14897
      ;;
 
14898
 
 
14899
    dgux*)
 
14900
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14901
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14902
      hardcode_shlibpath_var_F77=no
 
14903
      ;;
 
14904
 
 
14905
    freebsd1*)
 
14906
      ld_shlibs_F77=no
 
14907
      ;;
 
14908
 
 
14909
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14910
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14911
    # does not break anything, and helps significantly (at the cost of a little
 
14912
    # extra space).
 
14913
    freebsd2.2*)
 
14914
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14915
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14916
      hardcode_direct_F77=yes
 
14917
      hardcode_shlibpath_var_F77=no
 
14918
      ;;
 
14919
 
 
14920
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14921
    freebsd2*)
 
14922
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14923
      hardcode_direct_F77=yes
 
14924
      hardcode_minus_L_F77=yes
 
14925
      hardcode_shlibpath_var_F77=no
 
14926
      ;;
 
14927
 
 
14928
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14929
    freebsd* | dragonfly*)
 
14930
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14931
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14932
      hardcode_direct_F77=yes
 
14933
      hardcode_shlibpath_var_F77=no
 
14934
      ;;
 
14935
 
 
14936
    hpux9*)
 
14937
      if test "$GCC" = yes; then
 
14938
        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'
 
14939
      else
 
14940
        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'
 
14941
      fi
 
14942
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14943
      hardcode_libdir_separator_F77=:
 
14944
      hardcode_direct_F77=yes
 
14945
 
 
14946
      # hardcode_minus_L: Not really in the search PATH,
 
14947
      # but as the default location of the library.
 
14948
      hardcode_minus_L_F77=yes
 
14949
      export_dynamic_flag_spec_F77='${wl}-E'
 
14950
      ;;
 
14951
 
 
14952
    hpux10*)
 
14953
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14954
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14955
      else
 
14956
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14957
      fi
 
14958
      if test "$with_gnu_ld" = no; then
 
14959
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14960
        hardcode_libdir_separator_F77=:
 
14961
 
 
14962
        hardcode_direct_F77=yes
 
14963
        export_dynamic_flag_spec_F77='${wl}-E'
 
14964
 
 
14965
        # hardcode_minus_L: Not really in the search PATH,
 
14966
        # but as the default location of the library.
 
14967
        hardcode_minus_L_F77=yes
 
14968
      fi
 
14969
      ;;
 
14970
 
 
14971
    hpux11*)
 
14972
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14973
        case $host_cpu in
 
14974
        hppa*64*)
 
14975
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14976
          ;;
 
14977
        ia64*)
 
14978
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14979
          ;;
 
14980
        *)
 
14981
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14982
          ;;
 
14983
        esac
 
14984
      else
 
14985
        case $host_cpu in
 
14986
        hppa*64*)
 
14987
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14988
          ;;
 
14989
        ia64*)
 
14990
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14991
          ;;
 
14992
        *)
 
14993
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14994
          ;;
 
14995
        esac
 
14996
      fi
 
14997
      if test "$with_gnu_ld" = no; then
 
14998
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14999
        hardcode_libdir_separator_F77=:
 
15000
 
 
15001
        case $host_cpu in
 
15002
        hppa*64*|ia64*)
 
15003
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15004
          hardcode_direct_F77=no
 
15005
          hardcode_shlibpath_var_F77=no
 
15006
          ;;
 
15007
        *)
 
15008
          hardcode_direct_F77=yes
 
15009
          export_dynamic_flag_spec_F77='${wl}-E'
 
15010
 
 
15011
          # hardcode_minus_L: Not really in the search PATH,
 
15012
          # but as the default location of the library.
 
15013
          hardcode_minus_L_F77=yes
 
15014
          ;;
 
15015
        esac
 
15016
      fi
 
15017
      ;;
 
15018
 
 
15019
    irix5* | irix6* | nonstopux*)
 
15020
      if test "$GCC" = yes; then
 
15021
        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'
 
15022
      else
 
15023
        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'
 
15024
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15025
      fi
 
15026
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15027
      hardcode_libdir_separator_F77=:
 
15028
      link_all_deplibs_F77=yes
 
15029
      ;;
 
15030
 
 
15031
    netbsd*)
 
15032
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15033
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15034
      else
 
15035
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15036
      fi
 
15037
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15038
      hardcode_direct_F77=yes
 
15039
      hardcode_shlibpath_var_F77=no
 
15040
      ;;
 
15041
 
 
15042
    newsos6)
 
15043
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15044
      hardcode_direct_F77=yes
 
15045
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15046
      hardcode_libdir_separator_F77=:
 
15047
      hardcode_shlibpath_var_F77=no
 
15048
      ;;
 
15049
 
 
15050
    openbsd*)
 
15051
      if test -f /usr/libexec/ld.so; then
 
15052
        hardcode_direct_F77=yes
 
15053
        hardcode_shlibpath_var_F77=no
 
15054
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15055
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15056
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15057
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15058
          export_dynamic_flag_spec_F77='${wl}-E'
 
15059
        else
 
15060
          case $host_os in
 
15061
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15062
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15063
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15064
             ;;
 
15065
           *)
 
15066
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15067
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15068
             ;;
 
15069
          esac
 
15070
        fi
 
15071
      else
 
15072
        ld_shlibs_F77=no
 
15073
      fi
 
15074
      ;;
 
15075
 
 
15076
    os2*)
 
15077
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15078
      hardcode_minus_L_F77=yes
 
15079
      allow_undefined_flag_F77=unsupported
 
15080
      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'
 
15081
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15082
      ;;
 
15083
 
 
15084
    osf3*)
 
15085
      if test "$GCC" = yes; then
 
15086
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15087
        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'
 
15088
      else
 
15089
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15090
        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'
 
15091
      fi
 
15092
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15093
      hardcode_libdir_separator_F77=:
 
15094
      ;;
 
15095
 
 
15096
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15097
      if test "$GCC" = yes; then
 
15098
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15099
        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'
 
15100
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15101
      else
 
15102
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15103
        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'
 
15104
        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~
 
15105
        $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'
 
15106
 
 
15107
        # Both c and cxx compiler support -rpath directly
 
15108
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15109
      fi
 
15110
      hardcode_libdir_separator_F77=:
 
15111
      ;;
 
15112
 
 
15113
    solaris*)
 
15114
      no_undefined_flag_F77=' -z text'
 
15115
      if test "$GCC" = yes; then
 
15116
        wlarc='${wl}'
 
15117
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15118
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15119
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15120
      else
 
15121
        wlarc=''
 
15122
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15123
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15124
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15125
      fi
 
15126
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15127
      hardcode_shlibpath_var_F77=no
 
15128
      case $host_os in
 
15129
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15130
      *)
 
15131
        # The compiler driver will combine and reorder linker options,
 
15132
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15133
        # but is careful enough not to reorder.
 
15134
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15135
        if test "$GCC" = yes; then
 
15136
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15137
        else
 
15138
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15139
        fi
 
15140
        ;;
 
15141
      esac
 
15142
      link_all_deplibs_F77=yes
 
15143
      ;;
 
15144
 
 
15145
    sunos4*)
 
15146
      if test "x$host_vendor" = xsequent; then
 
15147
        # Use $CC to link under sequent, because it throws in some extra .o
 
15148
        # files that make .init and .fini sections work.
 
15149
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15150
      else
 
15151
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15152
      fi
 
15153
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15154
      hardcode_direct_F77=yes
 
15155
      hardcode_minus_L_F77=yes
 
15156
      hardcode_shlibpath_var_F77=no
 
15157
      ;;
 
15158
 
 
15159
    sysv4)
 
15160
      case $host_vendor in
 
15161
        sni)
 
15162
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15163
          hardcode_direct_F77=yes # is this really true???
 
15164
        ;;
 
15165
        siemens)
 
15166
          ## LD is ld it makes a PLAMLIB
 
15167
          ## CC just makes a GrossModule.
 
15168
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15169
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15170
          hardcode_direct_F77=no
 
15171
        ;;
 
15172
        motorola)
 
15173
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15174
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15175
        ;;
 
15176
      esac
 
15177
      runpath_var='LD_RUN_PATH'
 
15178
      hardcode_shlibpath_var_F77=no
 
15179
      ;;
 
15180
 
 
15181
    sysv4.3*)
 
15182
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15183
      hardcode_shlibpath_var_F77=no
 
15184
      export_dynamic_flag_spec_F77='-Bexport'
 
15185
      ;;
 
15186
 
 
15187
    sysv4*MP*)
 
15188
      if test -d /usr/nec; then
 
15189
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15190
        hardcode_shlibpath_var_F77=no
 
15191
        runpath_var=LD_RUN_PATH
 
15192
        hardcode_runpath_var=yes
 
15193
        ld_shlibs_F77=yes
 
15194
      fi
 
15195
      ;;
 
15196
 
 
15197
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15198
      no_undefined_flag_F77='${wl}-z,text'
 
15199
      archive_cmds_need_lc_F77=no
 
15200
      hardcode_shlibpath_var_F77=no
 
15201
      runpath_var='LD_RUN_PATH'
 
15202
 
 
15203
      if test "$GCC" = yes; then
 
15204
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15205
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15206
      else
 
15207
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15208
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15209
      fi
 
15210
      ;;
 
15211
 
 
15212
    sysv5* | sco3.2v5* | sco5v6*)
 
15213
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15214
      # link with -lc, and that would cause any symbols used from libc to
 
15215
      # always be unresolved, which means just about no library would
 
15216
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15217
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15218
      # as -z defs.
 
15219
      no_undefined_flag_F77='${wl}-z,text'
 
15220
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15221
      archive_cmds_need_lc_F77=no
 
15222
      hardcode_shlibpath_var_F77=no
 
15223
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15224
      hardcode_libdir_separator_F77=':'
 
15225
      link_all_deplibs_F77=yes
 
15226
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15227
      runpath_var='LD_RUN_PATH'
 
15228
 
 
15229
      if test "$GCC" = yes; then
 
15230
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15231
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15232
      else
 
15233
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15234
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15235
      fi
 
15236
      ;;
 
15237
 
 
15238
    uts4*)
 
15239
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15240
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15241
      hardcode_shlibpath_var_F77=no
 
15242
      ;;
 
15243
 
 
15244
    *)
 
15245
      ld_shlibs_F77=no
 
15246
      ;;
 
15247
    esac
 
15248
  fi
 
15249
 
 
15250
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15251
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15252
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15253
 
 
15254
#
 
15255
# Do we need to explicitly link libc?
 
15256
#
 
15257
case "x$archive_cmds_need_lc_F77" in
 
15258
x|xyes)
 
15259
  # Assume -lc should be added
 
15260
  archive_cmds_need_lc_F77=yes
 
15261
 
 
15262
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15263
    case $archive_cmds_F77 in
 
15264
    *'~'*)
 
15265
      # FIXME: we may have to deal with multi-command sequences.
 
15266
      ;;
 
15267
    '$CC '*)
 
15268
      # Test whether the compiler implicitly links with -lc since on some
 
15269
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15270
      # to ld, don't add -lc before -lgcc.
 
15271
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15272
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15273
      $rm conftest*
 
15274
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15275
 
 
15276
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15277
  (eval $ac_compile) 2>&5
 
15278
  ac_status=$?
 
15279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15280
  (exit $ac_status); } 2>conftest.err; then
 
15281
        soname=conftest
 
15282
        lib=conftest
 
15283
        libobjs=conftest.$ac_objext
 
15284
        deplibs=
 
15285
        wl=$lt_prog_compiler_wl_F77
 
15286
        pic_flag=$lt_prog_compiler_pic_F77
 
15287
        compiler_flags=-v
 
15288
        linker_flags=-v
 
15289
        verstring=
 
15290
        output_objdir=.
 
15291
        libname=conftest
 
15292
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15293
        allow_undefined_flag_F77=
 
15294
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15295
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15296
  ac_status=$?
 
15297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15298
  (exit $ac_status); }
 
15299
        then
 
15300
          archive_cmds_need_lc_F77=no
 
15301
        else
 
15302
          archive_cmds_need_lc_F77=yes
 
15303
        fi
 
15304
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15305
      else
 
15306
        cat conftest.err 1>&5
 
15307
      fi
 
15308
      $rm conftest*
 
15309
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15310
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15311
      ;;
 
15312
    esac
 
15313
  fi
 
15314
  ;;
 
15315
esac
 
15316
 
 
15317
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15318
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15319
library_names_spec=
 
15320
libname_spec='lib$name'
 
15321
soname_spec=
 
15322
shrext_cmds=".so"
 
15323
postinstall_cmds=
 
15324
postuninstall_cmds=
 
15325
finish_cmds=
 
15326
finish_eval=
 
15327
shlibpath_var=
 
15328
shlibpath_overrides_runpath=unknown
 
15329
version_type=none
 
15330
dynamic_linker="$host_os ld.so"
 
15331
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15332
 
 
15333
need_lib_prefix=unknown
 
15334
hardcode_into_libs=no
 
15335
 
 
15336
# when you set need_version to no, make sure it does not cause -set_version
 
15337
# flags to be left without arguments
 
15338
need_version=unknown
 
15339
 
 
15340
case $host_os in
 
15341
aix3*)
 
15342
  version_type=linux
 
15343
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15344
  shlibpath_var=LIBPATH
 
15345
 
 
15346
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15347
  soname_spec='${libname}${release}${shared_ext}$major'
 
15348
  ;;
 
15349
 
 
15350
aix4* | aix5*)
 
15351
  version_type=linux
 
15352
  need_lib_prefix=no
 
15353
  need_version=no
 
15354
  hardcode_into_libs=yes
 
15355
  if test "$host_cpu" = ia64; then
 
15356
    # AIX 5 supports IA64
 
15357
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15358
    shlibpath_var=LD_LIBRARY_PATH
 
15359
  else
 
15360
    # With GCC up to 2.95.x, collect2 would create an import file
 
15361
    # for dependence libraries.  The import file would start with
 
15362
    # the line `#! .'.  This would cause the generated library to
 
15363
    # depend on `.', always an invalid library.  This was fixed in
 
15364
    # development snapshots of GCC prior to 3.0.
 
15365
    case $host_os in
 
15366
      aix4 | aix4.[01] | aix4.[01].*)
 
15367
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15368
           echo ' yes '
 
15369
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15370
        :
 
15371
      else
 
15372
        can_build_shared=no
 
15373
      fi
 
15374
      ;;
 
15375
    esac
 
15376
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15377
    # soname into executable. Probably we can add versioning support to
 
15378
    # collect2, so additional links can be useful in future.
 
15379
    if test "$aix_use_runtimelinking" = yes; then
 
15380
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15381
      # instead of lib<name>.a to let people know that these are not
 
15382
      # typical AIX shared libraries.
 
15383
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15384
    else
 
15385
      # We preserve .a as extension for shared libraries through AIX4.2
 
15386
      # and later when we are not doing run time linking.
 
15387
      library_names_spec='${libname}${release}.a $libname.a'
 
15388
      soname_spec='${libname}${release}${shared_ext}$major'
 
15389
    fi
 
15390
    shlibpath_var=LIBPATH
 
15391
  fi
 
15392
  ;;
 
15393
 
 
15394
amigaos*)
 
15395
  library_names_spec='$libname.ixlibrary $libname.a'
 
15396
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15397
  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'
 
15398
  ;;
 
15399
 
 
15400
beos*)
 
15401
  library_names_spec='${libname}${shared_ext}'
 
15402
  dynamic_linker="$host_os ld.so"
 
15403
  shlibpath_var=LIBRARY_PATH
 
15404
  ;;
 
15405
 
 
15406
bsdi[45]*)
 
15407
  version_type=linux
 
15408
  need_version=no
 
15409
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15410
  soname_spec='${libname}${release}${shared_ext}$major'
 
15411
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15412
  shlibpath_var=LD_LIBRARY_PATH
 
15413
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15414
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15415
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15416
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15417
  # libtool to hard-code these into programs
 
15418
  ;;
 
15419
 
 
15420
cygwin* | mingw* | pw32*)
 
15421
  version_type=windows
 
15422
  shrext_cmds=".dll"
 
15423
  need_version=no
 
15424
  need_lib_prefix=no
 
15425
 
 
15426
  case $GCC,$host_os in
 
15427
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15428
    library_names_spec='$libname.dll.a'
 
15429
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15430
    postinstall_cmds='base_file=`basename \${file}`~
 
15431
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15432
      dldir=$destdir/`dirname \$dlpath`~
 
15433
      test -d \$dldir || mkdir -p \$dldir~
 
15434
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15435
      chmod a+x \$dldir/$dlname'
 
15436
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15437
      dlpath=$dir/\$dldll~
 
15438
       $rm \$dlpath'
 
15439
    shlibpath_overrides_runpath=yes
 
15440
 
 
15441
    case $host_os in
 
15442
    cygwin*)
 
15443
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15444
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15445
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15446
      ;;
 
15447
    mingw*)
 
15448
      # MinGW DLLs use traditional 'lib' prefix
 
15449
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15450
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15451
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15452
        # It is most probably a Windows format PATH printed by
 
15453
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15454
        # path with ; separators, and with drive letters. We can handle the
 
15455
        # drive letters (cygwin fileutils understands them), so leave them,
 
15456
        # especially as we might pass files found there to a mingw objdump,
 
15457
        # which wouldn't understand a cygwinified path. Ahh.
 
15458
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15459
      else
 
15460
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15461
      fi
 
15462
      ;;
 
15463
    pw32*)
 
15464
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15465
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15466
      ;;
 
15467
    esac
 
15468
    ;;
 
15469
 
 
15470
  *)
 
15471
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15472
    ;;
 
15473
  esac
 
15474
  dynamic_linker='Win32 ld.exe'
 
15475
  # FIXME: first we should search . and the directory the executable is in
 
15476
  shlibpath_var=PATH
 
15477
  ;;
 
15478
 
 
15479
darwin* | rhapsody*)
 
15480
  dynamic_linker="$host_os dyld"
 
15481
  version_type=darwin
 
15482
  need_lib_prefix=no
 
15483
  need_version=no
 
15484
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15485
  soname_spec='${libname}${release}${major}$shared_ext'
 
15486
  shlibpath_overrides_runpath=yes
 
15487
  shlibpath_var=DYLD_LIBRARY_PATH
 
15488
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15489
 
 
15490
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15491
  ;;
 
15492
 
 
15493
dgux*)
 
15494
  version_type=linux
 
15495
  need_lib_prefix=no
 
15496
  need_version=no
 
15497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15498
  soname_spec='${libname}${release}${shared_ext}$major'
 
15499
  shlibpath_var=LD_LIBRARY_PATH
 
15500
  ;;
 
15501
 
 
15502
freebsd1*)
 
15503
  dynamic_linker=no
 
15504
  ;;
 
15505
 
 
15506
freebsd* | dragonfly*)
 
15507
  # DragonFly does not have aout.  When/if they implement a new
 
15508
  # versioning mechanism, adjust this.
 
15509
  if test -x /usr/bin/objformat; then
 
15510
    objformat=`/usr/bin/objformat`
 
15511
  else
 
15512
    case $host_os in
 
15513
    freebsd[123]*) objformat=aout ;;
 
15514
    *) objformat=elf ;;
 
15515
    esac
 
15516
  fi
 
15517
  version_type=freebsd-$objformat
 
15518
  case $version_type in
 
15519
    freebsd-elf*)
 
15520
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15521
      need_version=no
 
15522
      need_lib_prefix=no
 
15523
      ;;
 
15524
    freebsd-*)
 
15525
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15526
      need_version=yes
 
15527
      ;;
 
15528
  esac
 
15529
  shlibpath_var=LD_LIBRARY_PATH
 
15530
  case $host_os in
 
15531
  freebsd2*)
 
15532
    shlibpath_overrides_runpath=yes
 
15533
    ;;
 
15534
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15535
    shlibpath_overrides_runpath=yes
 
15536
    hardcode_into_libs=yes
 
15537
    ;;
 
15538
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15539
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15540
    shlibpath_overrides_runpath=no
 
15541
    hardcode_into_libs=yes
 
15542
    ;;
 
15543
  *) # from 4.6 on, and DragonFly
 
15544
    shlibpath_overrides_runpath=yes
 
15545
    hardcode_into_libs=yes
 
15546
    ;;
 
15547
  esac
 
15548
  ;;
 
15549
 
 
15550
gnu*)
 
15551
  version_type=linux
 
15552
  need_lib_prefix=no
 
15553
  need_version=no
 
15554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15555
  soname_spec='${libname}${release}${shared_ext}$major'
 
15556
  shlibpath_var=LD_LIBRARY_PATH
 
15557
  hardcode_into_libs=yes
 
15558
  ;;
 
15559
 
 
15560
hpux9* | hpux10* | hpux11*)
 
15561
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15562
  # link against other versions.
 
15563
  version_type=sunos
 
15564
  need_lib_prefix=no
 
15565
  need_version=no
 
15566
  case $host_cpu in
 
15567
  ia64*)
 
15568
    shrext_cmds='.so'
 
15569
    hardcode_into_libs=yes
 
15570
    dynamic_linker="$host_os dld.so"
 
15571
    shlibpath_var=LD_LIBRARY_PATH
 
15572
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15573
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15574
    soname_spec='${libname}${release}${shared_ext}$major'
 
15575
    if test "X$HPUX_IA64_MODE" = X32; then
 
15576
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15577
    else
 
15578
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15579
    fi
 
15580
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15581
    ;;
 
15582
   hppa*64*)
 
15583
     shrext_cmds='.sl'
 
15584
     hardcode_into_libs=yes
 
15585
     dynamic_linker="$host_os dld.sl"
 
15586
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15587
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15588
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15589
     soname_spec='${libname}${release}${shared_ext}$major'
 
15590
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15591
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15592
     ;;
 
15593
   *)
 
15594
    shrext_cmds='.sl'
 
15595
    dynamic_linker="$host_os dld.sl"
 
15596
    shlibpath_var=SHLIB_PATH
 
15597
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15598
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15599
    soname_spec='${libname}${release}${shared_ext}$major'
 
15600
    ;;
 
15601
  esac
 
15602
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15603
  postinstall_cmds='chmod 555 $lib'
 
15604
  ;;
 
15605
 
 
15606
interix[3-9]*)
 
15607
  version_type=linux
 
15608
  need_lib_prefix=no
 
15609
  need_version=no
 
15610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15611
  soname_spec='${libname}${release}${shared_ext}$major'
 
15612
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15613
  shlibpath_var=LD_LIBRARY_PATH
 
15614
  shlibpath_overrides_runpath=no
 
15615
  hardcode_into_libs=yes
 
15616
  ;;
 
15617
 
 
15618
irix5* | irix6* | nonstopux*)
 
15619
  case $host_os in
 
15620
    nonstopux*) version_type=nonstopux ;;
 
15621
    *)
 
15622
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15623
                version_type=linux
 
15624
        else
 
15625
                version_type=irix
 
15626
        fi ;;
 
15627
  esac
 
15628
  need_lib_prefix=no
 
15629
  need_version=no
 
15630
  soname_spec='${libname}${release}${shared_ext}$major'
 
15631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15632
  case $host_os in
 
15633
  irix5* | nonstopux*)
 
15634
    libsuff= shlibsuff=
 
15635
    ;;
 
15636
  *)
 
15637
    case $LD in # libtool.m4 will add one of these switches to LD
 
15638
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15639
      libsuff= shlibsuff= libmagic=32-bit;;
 
15640
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15641
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15642
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15643
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15644
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15645
    esac
 
15646
    ;;
 
15647
  esac
 
15648
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15649
  shlibpath_overrides_runpath=no
 
15650
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15651
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15652
  hardcode_into_libs=yes
 
15653
  ;;
 
15654
 
 
15655
# No shared lib support for Linux oldld, aout, or coff.
 
15656
linux*oldld* | linux*aout* | linux*coff*)
 
15657
  dynamic_linker=no
 
15658
  ;;
 
15659
 
 
15660
# This must be Linux ELF.
 
15661
linux* | k*bsd*-gnu)
 
15662
  version_type=linux
 
15663
  need_lib_prefix=no
 
15664
  need_version=no
 
15665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15666
  soname_spec='${libname}${release}${shared_ext}$major'
 
15667
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15668
  shlibpath_var=LD_LIBRARY_PATH
 
15669
  shlibpath_overrides_runpath=no
 
15670
  # This implies no fast_install, which is unacceptable.
 
15671
  # Some rework will be needed to allow for fast_install
 
15672
  # before this can be enabled.
 
15673
  hardcode_into_libs=yes
 
15674
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15675
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15676
 
 
15677
  # Append ld.so.conf contents to the search path
 
15678
  if test -f /etc/ld.so.conf; then
 
15679
    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' ' '`
 
15680
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
15681
  fi
 
15682
 
 
15683
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15684
  # powerpc, because MkLinux only supported shared libraries with the
 
15685
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15686
  # most powerpc-linux boxes support dynamic linking these days and
 
15687
  # people can always --disable-shared, the test was removed, and we
 
15688
  # assume the GNU/Linux dynamic linker is in use.
 
15689
  dynamic_linker='GNU/Linux ld.so'
 
15690
  ;;
 
15691
 
 
15692
netbsd*)
 
15693
  version_type=sunos
 
15694
  need_lib_prefix=no
 
15695
  need_version=no
 
15696
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15697
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15698
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15699
    dynamic_linker='NetBSD (a.out) ld.so'
 
15700
  else
 
15701
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15702
    soname_spec='${libname}${release}${shared_ext}$major'
 
15703
    dynamic_linker='NetBSD ld.elf_so'
 
15704
  fi
 
15705
  shlibpath_var=LD_LIBRARY_PATH
 
15706
  shlibpath_overrides_runpath=yes
 
15707
  hardcode_into_libs=yes
 
15708
  ;;
 
15709
 
 
15710
newsos6)
 
15711
  version_type=linux
 
15712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15713
  shlibpath_var=LD_LIBRARY_PATH
 
15714
  shlibpath_overrides_runpath=yes
 
15715
  ;;
 
15716
 
 
15717
nto-qnx*)
 
15718
  version_type=linux
 
15719
  need_lib_prefix=no
 
15720
  need_version=no
 
15721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15722
  soname_spec='${libname}${release}${shared_ext}$major'
 
15723
  shlibpath_var=LD_LIBRARY_PATH
 
15724
  shlibpath_overrides_runpath=yes
 
15725
  ;;
 
15726
 
 
15727
openbsd*)
 
15728
  version_type=sunos
 
15729
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15730
  need_lib_prefix=no
 
15731
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15732
  case $host_os in
 
15733
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15734
    *)                         need_version=no  ;;
 
15735
  esac
 
15736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15737
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15738
  shlibpath_var=LD_LIBRARY_PATH
 
15739
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15740
    case $host_os in
 
15741
      openbsd2.[89] | openbsd2.[89].*)
 
15742
        shlibpath_overrides_runpath=no
 
15743
        ;;
 
15744
      *)
 
15745
        shlibpath_overrides_runpath=yes
 
15746
        ;;
 
15747
      esac
 
15748
  else
 
15749
    shlibpath_overrides_runpath=yes
 
15750
  fi
 
15751
  ;;
 
15752
 
 
15753
os2*)
 
15754
  libname_spec='$name'
 
15755
  shrext_cmds=".dll"
 
15756
  need_lib_prefix=no
 
15757
  library_names_spec='$libname${shared_ext} $libname.a'
 
15758
  dynamic_linker='OS/2 ld.exe'
 
15759
  shlibpath_var=LIBPATH
 
15760
  ;;
 
15761
 
 
15762
osf3* | osf4* | osf5*)
 
15763
  version_type=osf
 
15764
  need_lib_prefix=no
 
15765
  need_version=no
 
15766
  soname_spec='${libname}${release}${shared_ext}$major'
 
15767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15768
  shlibpath_var=LD_LIBRARY_PATH
 
15769
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15770
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15771
  ;;
 
15772
 
 
15773
rdos*)
 
15774
  dynamic_linker=no
 
15775
  ;;
 
15776
 
 
15777
solaris*)
 
15778
  version_type=linux
 
15779
  need_lib_prefix=no
 
15780
  need_version=no
 
15781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15782
  soname_spec='${libname}${release}${shared_ext}$major'
 
15783
  shlibpath_var=LD_LIBRARY_PATH
 
15784
  shlibpath_overrides_runpath=yes
 
15785
  hardcode_into_libs=yes
 
15786
  # ldd complains unless libraries are executable
 
15787
  postinstall_cmds='chmod +x $lib'
 
15788
  ;;
 
15789
 
 
15790
sunos4*)
 
15791
  version_type=sunos
 
15792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15793
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15794
  shlibpath_var=LD_LIBRARY_PATH
 
15795
  shlibpath_overrides_runpath=yes
 
15796
  if test "$with_gnu_ld" = yes; then
 
15797
    need_lib_prefix=no
 
15798
  fi
 
15799
  need_version=yes
 
15800
  ;;
 
15801
 
 
15802
sysv4 | sysv4.3*)
 
15803
  version_type=linux
 
15804
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15805
  soname_spec='${libname}${release}${shared_ext}$major'
 
15806
  shlibpath_var=LD_LIBRARY_PATH
 
15807
  case $host_vendor in
 
15808
    sni)
 
15809
      shlibpath_overrides_runpath=no
 
15810
      need_lib_prefix=no
 
15811
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15812
      runpath_var=LD_RUN_PATH
 
15813
      ;;
 
15814
    siemens)
 
15815
      need_lib_prefix=no
 
15816
      ;;
 
15817
    motorola)
 
15818
      need_lib_prefix=no
 
15819
      need_version=no
 
15820
      shlibpath_overrides_runpath=no
 
15821
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15822
      ;;
 
15823
  esac
 
15824
  ;;
 
15825
 
 
15826
sysv4*MP*)
 
15827
  if test -d /usr/nec ;then
 
15828
    version_type=linux
 
15829
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15830
    soname_spec='$libname${shared_ext}.$major'
 
15831
    shlibpath_var=LD_LIBRARY_PATH
 
15832
  fi
 
15833
  ;;
 
15834
 
 
15835
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15836
  version_type=freebsd-elf
 
15837
  need_lib_prefix=no
 
15838
  need_version=no
 
15839
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15840
  soname_spec='${libname}${release}${shared_ext}$major'
 
15841
  shlibpath_var=LD_LIBRARY_PATH
 
15842
  hardcode_into_libs=yes
 
15843
  if test "$with_gnu_ld" = yes; then
 
15844
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15845
    shlibpath_overrides_runpath=no
 
15846
  else
 
15847
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15848
    shlibpath_overrides_runpath=yes
 
15849
    case $host_os in
 
15850
      sco3.2v5*)
 
15851
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15852
        ;;
 
15853
    esac
 
15854
  fi
 
15855
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15856
  ;;
 
15857
 
 
15858
uts4*)
 
15859
  version_type=linux
 
15860
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15861
  soname_spec='${libname}${release}${shared_ext}$major'
 
15862
  shlibpath_var=LD_LIBRARY_PATH
 
15863
  ;;
 
15864
 
 
15865
*)
 
15866
  dynamic_linker=no
 
15867
  ;;
 
15868
esac
 
15869
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15870
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15871
test "$dynamic_linker" = no && can_build_shared=no
 
15872
 
 
15873
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15874
if test "$GCC" = yes; then
 
15875
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15876
fi
 
15877
 
 
15878
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15879
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15880
hardcode_action_F77=
 
15881
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15882
   test -n "$runpath_var_F77" || \
 
15883
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15884
 
 
15885
  # We can hardcode non-existant directories.
 
15886
  if test "$hardcode_direct_F77" != no &&
 
15887
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15888
     # have to relink, otherwise we might link with an installed library
 
15889
     # when we should be linking with a yet-to-be-installed one
 
15890
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15891
     test "$hardcode_minus_L_F77" != no; then
 
15892
    # Linking always hardcodes the temporary library directory.
 
15893
    hardcode_action_F77=relink
 
15894
  else
 
15895
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15896
    hardcode_action_F77=immediate
 
15897
  fi
 
15898
else
 
15899
  # We cannot hardcode anything, or else we can only hardcode existing
 
15900
  # directories.
 
15901
  hardcode_action_F77=unsupported
 
15902
fi
 
15903
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15904
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15905
 
 
15906
if test "$hardcode_action_F77" = relink; then
 
15907
  # Fast installation is not supported
 
15908
  enable_fast_install=no
 
15909
elif test "$shlibpath_overrides_runpath" = yes ||
 
15910
     test "$enable_shared" = no; then
 
15911
  # Fast installation is not necessary
 
15912
  enable_fast_install=needless
 
15913
fi
 
15914
 
 
15915
 
 
15916
# The else clause should only fire when bootstrapping the
 
15917
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15918
# with your package, and you will get complaints that there are
 
15919
# no rules to generate ltmain.sh.
 
15920
if test -f "$ltmain"; then
 
15921
  # See if we are running on zsh, and set the options which allow our commands through
 
15922
  # without removal of \ escapes.
 
15923
  if test -n "${ZSH_VERSION+set}" ; then
 
15924
    setopt NO_GLOB_SUBST
 
15925
  fi
 
15926
  # Now quote all the things that may contain metacharacters while being
 
15927
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15928
  # variables and quote the copies for generation of the libtool script.
 
15929
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15930
    SED SHELL STRIP \
 
15931
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15932
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15933
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15934
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15935
    lt_cv_sys_global_symbol_to_c_name_address \
 
15936
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15937
    old_postinstall_cmds old_postuninstall_cmds \
 
15938
    compiler_F77 \
 
15939
    CC_F77 \
 
15940
    LD_F77 \
 
15941
    lt_prog_compiler_wl_F77 \
 
15942
    lt_prog_compiler_pic_F77 \
 
15943
    lt_prog_compiler_static_F77 \
 
15944
    lt_prog_compiler_no_builtin_flag_F77 \
 
15945
    export_dynamic_flag_spec_F77 \
 
15946
    thread_safe_flag_spec_F77 \
 
15947
    whole_archive_flag_spec_F77 \
 
15948
    enable_shared_with_static_runtimes_F77 \
 
15949
    old_archive_cmds_F77 \
 
15950
    old_archive_from_new_cmds_F77 \
 
15951
    predep_objects_F77 \
 
15952
    postdep_objects_F77 \
 
15953
    predeps_F77 \
 
15954
    postdeps_F77 \
 
15955
    compiler_lib_search_path_F77 \
 
15956
    archive_cmds_F77 \
 
15957
    archive_expsym_cmds_F77 \
 
15958
    postinstall_cmds_F77 \
 
15959
    postuninstall_cmds_F77 \
 
15960
    old_archive_from_expsyms_cmds_F77 \
 
15961
    allow_undefined_flag_F77 \
 
15962
    no_undefined_flag_F77 \
 
15963
    export_symbols_cmds_F77 \
 
15964
    hardcode_libdir_flag_spec_F77 \
 
15965
    hardcode_libdir_flag_spec_ld_F77 \
 
15966
    hardcode_libdir_separator_F77 \
 
15967
    hardcode_automatic_F77 \
 
15968
    module_cmds_F77 \
 
15969
    module_expsym_cmds_F77 \
 
15970
    lt_cv_prog_compiler_c_o_F77 \
 
15971
    fix_srcfile_path_F77 \
 
15972
    exclude_expsyms_F77 \
 
15973
    include_expsyms_F77; do
 
15974
 
 
15975
    case $var in
 
15976
    old_archive_cmds_F77 | \
 
15977
    old_archive_from_new_cmds_F77 | \
 
15978
    archive_cmds_F77 | \
 
15979
    archive_expsym_cmds_F77 | \
 
15980
    module_cmds_F77 | \
 
15981
    module_expsym_cmds_F77 | \
 
15982
    old_archive_from_expsyms_cmds_F77 | \
 
15983
    export_symbols_cmds_F77 | \
 
15984
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15985
    postinstall_cmds | postuninstall_cmds | \
 
15986
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15987
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15988
      # Double-quote double-evaled strings.
 
15989
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15990
      ;;
 
15991
    *)
 
15992
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15993
      ;;
 
15994
    esac
 
15995
  done
 
15996
 
 
15997
  case $lt_echo in
 
15998
  *'\$0 --fallback-echo"')
 
15999
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16000
    ;;
 
16001
  esac
 
16002
 
 
16003
cfgfile="$ofile"
 
16004
 
 
16005
  cat <<__EOF__ >> "$cfgfile"
 
16006
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16007
 
 
16008
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16009
 
 
16010
# Shell to use when invoking shell scripts.
 
16011
SHELL=$lt_SHELL
 
16012
 
 
16013
# Whether or not to build shared libraries.
 
16014
build_libtool_libs=$enable_shared
 
16015
 
 
16016
# Whether or not to build static libraries.
 
16017
build_old_libs=$enable_static
 
16018
 
 
16019
# Whether or not to add -lc for building shared libraries.
 
16020
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16021
 
 
16022
# Whether or not to disallow shared libs when runtime libs are static
 
16023
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16024
 
 
16025
# Whether or not to optimize for fast installation.
 
16026
fast_install=$enable_fast_install
 
16027
 
 
16028
# The host system.
 
16029
host_alias=$host_alias
 
16030
host=$host
 
16031
host_os=$host_os
 
16032
 
 
16033
# The build system.
 
16034
build_alias=$build_alias
 
16035
build=$build
 
16036
build_os=$build_os
 
16037
 
 
16038
# An echo program that does not interpret backslashes.
 
16039
echo=$lt_echo
 
16040
 
 
16041
# The archiver.
 
16042
AR=$lt_AR
 
16043
AR_FLAGS=$lt_AR_FLAGS
 
16044
 
 
16045
# A C compiler.
 
16046
LTCC=$lt_LTCC
 
16047
 
 
16048
# LTCC compiler flags.
 
16049
LTCFLAGS=$lt_LTCFLAGS
 
16050
 
 
16051
# A language-specific compiler.
 
16052
CC=$lt_compiler_F77
 
16053
 
 
16054
# Is the compiler the GNU C compiler?
 
16055
with_gcc=$GCC_F77
 
16056
 
 
16057
# An ERE matcher.
 
16058
EGREP=$lt_EGREP
 
16059
 
 
16060
# The linker used to build libraries.
 
16061
LD=$lt_LD_F77
 
16062
 
 
16063
# Whether we need hard or soft links.
 
16064
LN_S=$lt_LN_S
 
16065
 
 
16066
# A BSD-compatible nm program.
 
16067
NM=$lt_NM
 
16068
 
 
16069
# A symbol stripping program
 
16070
STRIP=$lt_STRIP
 
16071
 
 
16072
# Used to examine libraries when file_magic_cmd begins "file"
 
16073
MAGIC_CMD=$MAGIC_CMD
 
16074
 
 
16075
# Used on cygwin: DLL creation program.
 
16076
DLLTOOL="$DLLTOOL"
 
16077
 
 
16078
# Used on cygwin: object dumper.
 
16079
OBJDUMP="$OBJDUMP"
 
16080
 
 
16081
# Used on cygwin: assembler.
 
16082
AS="$AS"
 
16083
 
 
16084
# The name of the directory that contains temporary libtool files.
 
16085
objdir=$objdir
 
16086
 
 
16087
# How to create reloadable object files.
 
16088
reload_flag=$lt_reload_flag
 
16089
reload_cmds=$lt_reload_cmds
 
16090
 
 
16091
# How to pass a linker flag through the compiler.
 
16092
wl=$lt_lt_prog_compiler_wl_F77
 
16093
 
 
16094
# Object file suffix (normally "o").
 
16095
objext="$ac_objext"
 
16096
 
 
16097
# Old archive suffix (normally "a").
 
16098
libext="$libext"
 
16099
 
 
16100
# Shared library suffix (normally ".so").
 
16101
shrext_cmds='$shrext_cmds'
 
16102
 
 
16103
# Executable file suffix (normally "").
 
16104
exeext="$exeext"
 
16105
 
 
16106
# Additional compiler flags for building library objects.
 
16107
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16108
pic_mode=$pic_mode
 
16109
 
 
16110
# What is the maximum length of a command?
 
16111
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16112
 
 
16113
# Does compiler simultaneously support -c and -o options?
 
16114
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16115
 
 
16116
# Must we lock files when doing compilation?
 
16117
need_locks=$lt_need_locks
 
16118
 
 
16119
# Do we need the lib prefix for modules?
 
16120
need_lib_prefix=$need_lib_prefix
 
16121
 
 
16122
# Do we need a version for libraries?
 
16123
need_version=$need_version
 
16124
 
 
16125
# Whether dlopen is supported.
 
16126
dlopen_support=$enable_dlopen
 
16127
 
 
16128
# Whether dlopen of programs is supported.
 
16129
dlopen_self=$enable_dlopen_self
 
16130
 
 
16131
# Whether dlopen of statically linked programs is supported.
 
16132
dlopen_self_static=$enable_dlopen_self_static
 
16133
 
 
16134
# Compiler flag to prevent dynamic linking.
 
16135
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16136
 
 
16137
# Compiler flag to turn off builtin functions.
 
16138
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16139
 
 
16140
# Compiler flag to allow reflexive dlopens.
 
16141
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16142
 
 
16143
# Compiler flag to generate shared objects directly from archives.
 
16144
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16145
 
 
16146
# Compiler flag to generate thread-safe objects.
 
16147
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16148
 
 
16149
# Library versioning type.
 
16150
version_type=$version_type
 
16151
 
 
16152
# Format of library name prefix.
 
16153
libname_spec=$lt_libname_spec
 
16154
 
 
16155
# List of archive names.  First name is the real one, the rest are links.
 
16156
# The last name is the one that the linker finds with -lNAME.
 
16157
library_names_spec=$lt_library_names_spec
 
16158
 
 
16159
# The coded name of the library, if different from the real name.
 
16160
soname_spec=$lt_soname_spec
 
16161
 
 
16162
# Commands used to build and install an old-style archive.
 
16163
RANLIB=$lt_RANLIB
 
16164
old_archive_cmds=$lt_old_archive_cmds_F77
 
16165
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16166
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16167
 
 
16168
# Create an old-style archive from a shared archive.
 
16169
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16170
 
 
16171
# Create a temporary old-style archive to link instead of a shared archive.
 
16172
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16173
 
 
16174
# Commands used to build and install a shared archive.
 
16175
archive_cmds=$lt_archive_cmds_F77
 
16176
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16177
postinstall_cmds=$lt_postinstall_cmds
 
16178
postuninstall_cmds=$lt_postuninstall_cmds
 
16179
 
 
16180
# Commands used to build a loadable module (assumed same as above if empty)
 
16181
module_cmds=$lt_module_cmds_F77
 
16182
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16183
 
 
16184
# Commands to strip libraries.
 
16185
old_striplib=$lt_old_striplib
 
16186
striplib=$lt_striplib
 
16187
 
 
16188
# Dependencies to place before the objects being linked to create a
 
16189
# shared library.
 
16190
predep_objects=$lt_predep_objects_F77
 
16191
 
 
16192
# Dependencies to place after the objects being linked to create a
 
16193
# shared library.
 
16194
postdep_objects=$lt_postdep_objects_F77
 
16195
 
 
16196
# Dependencies to place before the objects being linked to create a
 
16197
# shared library.
 
16198
predeps=$lt_predeps_F77
 
16199
 
 
16200
# Dependencies to place after the objects being linked to create a
 
16201
# shared library.
 
16202
postdeps=$lt_postdeps_F77
 
16203
 
 
16204
# The library search path used internally by the compiler when linking
 
16205
# a shared library.
 
16206
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16207
 
 
16208
# Method to check whether dependent libraries are shared objects.
 
16209
deplibs_check_method=$lt_deplibs_check_method
 
16210
 
 
16211
# Command to use when deplibs_check_method == file_magic.
 
16212
file_magic_cmd=$lt_file_magic_cmd
 
16213
 
 
16214
# Flag that allows shared libraries with undefined symbols to be built.
 
16215
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16216
 
 
16217
# Flag that forces no undefined symbols.
 
16218
no_undefined_flag=$lt_no_undefined_flag_F77
 
16219
 
 
16220
# Commands used to finish a libtool library installation in a directory.
 
16221
finish_cmds=$lt_finish_cmds
 
16222
 
 
16223
# Same as above, but a single script fragment to be evaled but not shown.
 
16224
finish_eval=$lt_finish_eval
 
16225
 
 
16226
# Take the output of nm and produce a listing of raw symbols and C names.
 
16227
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16228
 
 
16229
# Transform the output of nm in a proper C declaration
 
16230
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16231
 
 
16232
# Transform the output of nm in a C name address pair
 
16233
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16234
 
 
16235
# This is the shared library runtime path variable.
 
16236
runpath_var=$runpath_var
 
16237
 
 
16238
# This is the shared library path variable.
 
16239
shlibpath_var=$shlibpath_var
 
16240
 
 
16241
# Is shlibpath searched before the hard-coded library search path?
 
16242
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16243
 
 
16244
# How to hardcode a shared library path into an executable.
 
16245
hardcode_action=$hardcode_action_F77
 
16246
 
 
16247
# Whether we should hardcode library paths into libraries.
 
16248
hardcode_into_libs=$hardcode_into_libs
 
16249
 
 
16250
# Flag to hardcode \$libdir into a binary during linking.
 
16251
# This must work even if \$libdir does not exist.
 
16252
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16253
 
 
16254
# If ld is used when linking, flag to hardcode \$libdir into
 
16255
# a binary during linking. This must work even if \$libdir does
 
16256
# not exist.
 
16257
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16258
 
 
16259
# Whether we need a single -rpath flag with a separated argument.
 
16260
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16261
 
 
16262
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16263
# resulting binary.
 
16264
hardcode_direct=$hardcode_direct_F77
 
16265
 
 
16266
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16267
# resulting binary.
 
16268
hardcode_minus_L=$hardcode_minus_L_F77
 
16269
 
 
16270
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16271
# the resulting binary.
 
16272
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16273
 
 
16274
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16275
# and all subsequent libraries and executables linked against it.
 
16276
hardcode_automatic=$hardcode_automatic_F77
 
16277
 
 
16278
# Variables whose values should be saved in libtool wrapper scripts and
 
16279
# restored at relink time.
 
16280
variables_saved_for_relink="$variables_saved_for_relink"
 
16281
 
 
16282
# Whether libtool must link a program against all its dependency libraries.
 
16283
link_all_deplibs=$link_all_deplibs_F77
 
16284
 
 
16285
# Compile-time system search path for libraries
 
16286
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16287
 
 
16288
# Run-time system search path for libraries
 
16289
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16290
 
 
16291
# Fix the shell variable \$srcfile for the compiler.
 
16292
fix_srcfile_path=$lt_fix_srcfile_path
 
16293
 
 
16294
# Set to yes if exported symbols are required.
 
16295
always_export_symbols=$always_export_symbols_F77
 
16296
 
 
16297
# The commands to list exported symbols.
 
16298
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16299
 
 
16300
# The commands to extract the exported symbol list from a shared archive.
 
16301
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16302
 
 
16303
# Symbols that should not be listed in the preloaded symbols.
 
16304
exclude_expsyms=$lt_exclude_expsyms_F77
 
16305
 
 
16306
# Symbols that must always be exported.
 
16307
include_expsyms=$lt_include_expsyms_F77
 
16308
 
 
16309
# ### END LIBTOOL TAG CONFIG: $tagname
 
16310
 
 
16311
__EOF__
 
16312
 
 
16313
 
 
16314
else
 
16315
  # If there is no Makefile yet, we rely on a make rule to execute
 
16316
  # `config.status --recheck' to rerun these tests and create the
 
16317
  # libtool script then.
 
16318
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16319
  if test -f "$ltmain_in"; then
 
16320
    test -f Makefile && make "$ltmain"
 
16321
  fi
 
16322
fi
 
16323
 
 
16324
 
 
16325
ac_ext=c
 
16326
ac_cpp='$CPP $CPPFLAGS'
 
16327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16330
 
 
16331
CC="$lt_save_CC"
 
16332
 
 
16333
        else
 
16334
          tagname=""
 
16335
        fi
 
16336
        ;;
 
16337
 
 
16338
      GCJ)
 
16339
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16340
 
 
16341
 
 
16342
# Source file extension for Java test sources.
 
16343
ac_ext=java
 
16344
 
 
16345
# Object file extension for compiled Java test sources.
 
16346
objext=o
 
16347
objext_GCJ=$objext
 
16348
 
 
16349
# Code to be used in simple compile tests
 
16350
lt_simple_compile_test_code="class foo {}"
 
16351
 
 
16352
# Code to be used in simple link tests
 
16353
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16354
 
 
16355
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16356
 
 
16357
# If no C compiler was specified, use CC.
 
16358
LTCC=${LTCC-"$CC"}
 
16359
 
 
16360
# If no C compiler flags were specified, use CFLAGS.
 
16361
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16362
 
 
16363
# Allow CC to be a program name with arguments.
 
16364
compiler=$CC
 
16365
 
 
16366
 
 
16367
# save warnings/boilerplate of simple test code
 
16368
ac_outfile=conftest.$ac_objext
 
16369
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16370
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16371
_lt_compiler_boilerplate=`cat conftest.err`
 
16372
$rm conftest*
 
16373
 
 
16374
ac_outfile=conftest.$ac_objext
 
16375
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16376
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16377
_lt_linker_boilerplate=`cat conftest.err`
 
16378
$rm conftest*
 
16379
 
 
16380
 
 
16381
# Allow CC to be a program name with arguments.
 
16382
lt_save_CC="$CC"
 
16383
CC=${GCJ-"gcj"}
 
16384
compiler=$CC
 
16385
compiler_GCJ=$CC
 
16386
for cc_temp in $compiler""; do
 
16387
  case $cc_temp in
 
16388
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16389
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16390
    \-*) ;;
 
16391
    *) break;;
 
16392
  esac
 
16393
done
 
16394
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16395
 
 
16396
 
 
16397
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16398
archive_cmds_need_lc_GCJ=no
 
16399
 
 
16400
old_archive_cmds_GCJ=$old_archive_cmds
 
16401
 
 
16402
 
 
16403
lt_prog_compiler_no_builtin_flag_GCJ=
 
16404
 
 
16405
if test "$GCC" = yes; then
 
16406
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16407
 
 
16408
 
 
16409
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16410
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16411
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16413
else
 
16414
  lt_cv_prog_compiler_rtti_exceptions=no
 
16415
  ac_outfile=conftest.$ac_objext
 
16416
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16417
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16418
   # Insert the option either (1) after the last *FLAGS variable, or
 
16419
   # (2) before a word containing "conftest.", or (3) at the end.
 
16420
   # Note that $ac_compile itself does not contain backslashes and begins
 
16421
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16422
   # The option is referenced via a variable to avoid confusing sed.
 
16423
   lt_compile=`echo "$ac_compile" | $SED \
 
16424
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16425
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16426
   -e 's:$: $lt_compiler_flag:'`
 
16427
   (eval echo "\"\$as_me:16427: $lt_compile\"" >&5)
 
16428
   (eval "$lt_compile" 2>conftest.err)
 
16429
   ac_status=$?
 
16430
   cat conftest.err >&5
 
16431
   echo "$as_me:16431: \$? = $ac_status" >&5
 
16432
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16433
     # The compiler can only warn and ignore the option if not recognized
 
16434
     # So say no if there are warnings other than the usual output.
 
16435
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16436
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16437
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16438
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16439
     fi
 
16440
   fi
 
16441
   $rm conftest*
 
16442
 
 
16443
fi
 
16444
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16445
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16446
 
 
16447
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16448
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16449
else
 
16450
    :
 
16451
fi
 
16452
 
 
16453
fi
 
16454
 
 
16455
lt_prog_compiler_wl_GCJ=
 
16456
lt_prog_compiler_pic_GCJ=
 
16457
lt_prog_compiler_static_GCJ=
 
16458
 
 
16459
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16460
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16461
 
 
16462
  if test "$GCC" = yes; then
 
16463
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16464
    lt_prog_compiler_static_GCJ='-static'
 
16465
 
 
16466
    case $host_os in
 
16467
      aix*)
 
16468
      # All AIX code is PIC.
 
16469
      if test "$host_cpu" = ia64; then
 
16470
        # AIX 5 now supports IA64 processor
 
16471
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16472
      fi
 
16473
      ;;
 
16474
 
 
16475
    amigaos*)
 
16476
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16477
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16478
      # like `-m68040'.
 
16479
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16480
      ;;
 
16481
 
 
16482
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16483
      # PIC is the default for these OSes.
 
16484
      ;;
 
16485
 
 
16486
    mingw* | cygwin* | pw32* | os2*)
 
16487
      # This hack is so that the source file can tell whether it is being
 
16488
      # built for inclusion in a dll (and should export symbols for example).
 
16489
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16490
      # (--disable-auto-import) libraries
 
16491
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16492
      ;;
 
16493
 
 
16494
    darwin* | rhapsody*)
 
16495
      # PIC is the default on this platform
 
16496
      # Common symbols not allowed in MH_DYLIB files
 
16497
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16498
      ;;
 
16499
 
 
16500
    interix[3-9]*)
 
16501
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16502
      # Instead, we relocate shared libraries at runtime.
 
16503
      ;;
 
16504
 
 
16505
    msdosdjgpp*)
 
16506
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16507
      # on systems that don't support them.
 
16508
      lt_prog_compiler_can_build_shared_GCJ=no
 
16509
      enable_shared=no
 
16510
      ;;
 
16511
 
 
16512
    sysv4*MP*)
 
16513
      if test -d /usr/nec; then
 
16514
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16515
      fi
 
16516
      ;;
 
16517
 
 
16518
    hpux*)
 
16519
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16520
      # not for PA HP-UX.
 
16521
      case $host_cpu in
 
16522
      hppa*64*|ia64*)
 
16523
        # +Z the default
 
16524
        ;;
 
16525
      *)
 
16526
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16527
        ;;
 
16528
      esac
 
16529
      ;;
 
16530
 
 
16531
    *)
 
16532
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16533
      ;;
 
16534
    esac
 
16535
  else
 
16536
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16537
    case $host_os in
 
16538
    aix*)
 
16539
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16540
      if test "$host_cpu" = ia64; then
 
16541
        # AIX 5 now supports IA64 processor
 
16542
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16543
      else
 
16544
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16545
      fi
 
16546
      ;;
 
16547
      darwin*)
 
16548
        # PIC is the default on this platform
 
16549
        # Common symbols not allowed in MH_DYLIB files
 
16550
       case $cc_basename in
 
16551
         xlc*)
 
16552
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16553
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16554
         ;;
 
16555
       esac
 
16556
       ;;
 
16557
 
 
16558
    mingw* | cygwin* | pw32* | os2*)
 
16559
      # This hack is so that the source file can tell whether it is being
 
16560
      # built for inclusion in a dll (and should export symbols for example).
 
16561
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16562
      ;;
 
16563
 
 
16564
    hpux9* | hpux10* | hpux11*)
 
16565
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16566
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16567
      # not for PA HP-UX.
 
16568
      case $host_cpu in
 
16569
      hppa*64*|ia64*)
 
16570
        # +Z the default
 
16571
        ;;
 
16572
      *)
 
16573
        lt_prog_compiler_pic_GCJ='+Z'
 
16574
        ;;
 
16575
      esac
 
16576
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16577
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16578
      ;;
 
16579
 
 
16580
    irix5* | irix6* | nonstopux*)
 
16581
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16582
      # PIC (with -KPIC) is the default.
 
16583
      lt_prog_compiler_static_GCJ='-non_shared'
 
16584
      ;;
 
16585
 
 
16586
    newsos6)
 
16587
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16588
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16589
      ;;
 
16590
 
 
16591
    linux* | k*bsd*-gnu)
 
16592
      case $cc_basename in
 
16593
      icc* | ecc*)
 
16594
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16595
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16596
        lt_prog_compiler_static_GCJ='-static'
 
16597
        ;;
 
16598
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16599
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16600
        # which looks to be a dead project)
 
16601
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16602
        lt_prog_compiler_pic_GCJ='-fpic'
 
16603
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16604
        ;;
 
16605
      ccc*)
 
16606
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16607
        # All Alpha code is PIC.
 
16608
        lt_prog_compiler_static_GCJ='-non_shared'
 
16609
        ;;
 
16610
      *)
 
16611
        case `$CC -V 2>&1 | sed 5q` in
 
16612
        *Sun\ C*)
 
16613
          # Sun C 5.9
 
16614
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16615
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16616
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16617
          ;;
 
16618
        *Sun\ F*)
 
16619
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16620
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16621
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16622
          lt_prog_compiler_wl_GCJ=''
 
16623
          ;;
 
16624
        esac
 
16625
        ;;
 
16626
      esac
 
16627
      ;;
 
16628
 
 
16629
    osf3* | osf4* | osf5*)
 
16630
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16631
      # All OSF/1 code is PIC.
 
16632
      lt_prog_compiler_static_GCJ='-non_shared'
 
16633
      ;;
 
16634
 
 
16635
    rdos*)
 
16636
      lt_prog_compiler_static_GCJ='-non_shared'
 
16637
      ;;
 
16638
 
 
16639
    solaris*)
 
16640
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16641
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16642
      case $cc_basename in
 
16643
      f77* | f90* | f95*)
 
16644
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16645
      *)
 
16646
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16647
      esac
 
16648
      ;;
 
16649
 
 
16650
    sunos4*)
 
16651
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16652
      lt_prog_compiler_pic_GCJ='-PIC'
 
16653
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16654
      ;;
 
16655
 
 
16656
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16657
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16658
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16659
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16660
      ;;
 
16661
 
 
16662
    sysv4*MP*)
 
16663
      if test -d /usr/nec ;then
 
16664
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16665
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16666
      fi
 
16667
      ;;
 
16668
 
 
16669
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16670
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16671
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16672
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16673
      ;;
 
16674
 
 
16675
    unicos*)
 
16676
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16677
      lt_prog_compiler_can_build_shared_GCJ=no
 
16678
      ;;
 
16679
 
 
16680
    uts4*)
 
16681
      lt_prog_compiler_pic_GCJ='-pic'
 
16682
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16683
      ;;
 
16684
 
 
16685
    *)
 
16686
      lt_prog_compiler_can_build_shared_GCJ=no
 
16687
      ;;
 
16688
    esac
 
16689
  fi
 
16690
 
 
16691
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16692
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16693
 
 
16694
#
 
16695
# Check to make sure the PIC flag actually works.
 
16696
#
 
16697
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16698
 
 
16699
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16700
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16701
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16702
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16703
else
 
16704
  lt_prog_compiler_pic_works_GCJ=no
 
16705
  ac_outfile=conftest.$ac_objext
 
16706
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16707
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16708
   # Insert the option either (1) after the last *FLAGS variable, or
 
16709
   # (2) before a word containing "conftest.", or (3) at the end.
 
16710
   # Note that $ac_compile itself does not contain backslashes and begins
 
16711
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16712
   # The option is referenced via a variable to avoid confusing sed.
 
16713
   lt_compile=`echo "$ac_compile" | $SED \
 
16714
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16715
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16716
   -e 's:$: $lt_compiler_flag:'`
 
16717
   (eval echo "\"\$as_me:16717: $lt_compile\"" >&5)
 
16718
   (eval "$lt_compile" 2>conftest.err)
 
16719
   ac_status=$?
 
16720
   cat conftest.err >&5
 
16721
   echo "$as_me:16721: \$? = $ac_status" >&5
 
16722
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16723
     # The compiler can only warn and ignore the option if not recognized
 
16724
     # So say no if there are warnings other than the usual output.
 
16725
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16726
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16727
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16728
       lt_prog_compiler_pic_works_GCJ=yes
 
16729
     fi
 
16730
   fi
 
16731
   $rm conftest*
 
16732
 
 
16733
fi
 
16734
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16735
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16736
 
 
16737
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16738
    case $lt_prog_compiler_pic_GCJ in
 
16739
     "" | " "*) ;;
 
16740
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16741
     esac
 
16742
else
 
16743
    lt_prog_compiler_pic_GCJ=
 
16744
     lt_prog_compiler_can_build_shared_GCJ=no
 
16745
fi
 
16746
 
 
16747
fi
 
16748
case $host_os in
 
16749
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16750
  *djgpp*)
 
16751
    lt_prog_compiler_pic_GCJ=
 
16752
    ;;
 
16753
  *)
 
16754
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16755
    ;;
 
16756
esac
 
16757
 
 
16758
#
 
16759
# Check to make sure the static flag actually works.
 
16760
#
 
16761
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16762
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16763
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16764
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16766
else
 
16767
  lt_prog_compiler_static_works_GCJ=no
 
16768
   save_LDFLAGS="$LDFLAGS"
 
16769
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16770
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16771
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16772
     # The linker can only warn and ignore the option if not recognized
 
16773
     # So say no if there are warnings
 
16774
     if test -s conftest.err; then
 
16775
       # Append any errors to the config.log.
 
16776
       cat conftest.err 1>&5
 
16777
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16778
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16779
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16780
         lt_prog_compiler_static_works_GCJ=yes
 
16781
       fi
 
16782
     else
 
16783
       lt_prog_compiler_static_works_GCJ=yes
 
16784
     fi
 
16785
   fi
 
16786
   $rm conftest*
 
16787
   LDFLAGS="$save_LDFLAGS"
 
16788
 
 
16789
fi
 
16790
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16791
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16792
 
 
16793
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16794
    :
 
16795
else
 
16796
    lt_prog_compiler_static_GCJ=
 
16797
fi
 
16798
 
 
16799
 
 
16800
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16801
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16802
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16804
else
 
16805
  lt_cv_prog_compiler_c_o_GCJ=no
 
16806
   $rm -r conftest 2>/dev/null
 
16807
   mkdir conftest
 
16808
   cd conftest
 
16809
   mkdir out
 
16810
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16811
 
 
16812
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16813
   # Insert the option either (1) after the last *FLAGS variable, or
 
16814
   # (2) before a word containing "conftest.", or (3) at the end.
 
16815
   # Note that $ac_compile itself does not contain backslashes and begins
 
16816
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16817
   lt_compile=`echo "$ac_compile" | $SED \
 
16818
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16819
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16820
   -e 's:$: $lt_compiler_flag:'`
 
16821
   (eval echo "\"\$as_me:16821: $lt_compile\"" >&5)
 
16822
   (eval "$lt_compile" 2>out/conftest.err)
 
16823
   ac_status=$?
 
16824
   cat out/conftest.err >&5
 
16825
   echo "$as_me:16825: \$? = $ac_status" >&5
 
16826
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16827
   then
 
16828
     # The compiler can only warn and ignore the option if not recognized
 
16829
     # So say no if there are warnings
 
16830
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16831
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16832
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16833
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16834
     fi
 
16835
   fi
 
16836
   chmod u+w . 2>&5
 
16837
   $rm conftest*
 
16838
   # SGI C++ compiler will create directory out/ii_files/ for
 
16839
   # template instantiation
 
16840
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16841
   $rm out/* && rmdir out
 
16842
   cd ..
 
16843
   rmdir conftest
 
16844
   $rm conftest*
 
16845
 
 
16846
fi
 
16847
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16848
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16849
 
 
16850
 
 
16851
hard_links="nottested"
 
16852
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16853
  # do not overwrite the value of need_locks provided by the user
 
16854
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16855
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16856
  hard_links=yes
 
16857
  $rm conftest*
 
16858
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16859
  touch conftest.a
 
16860
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16861
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16862
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16863
echo "${ECHO_T}$hard_links" >&6; }
 
16864
  if test "$hard_links" = no; then
 
16865
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16866
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16867
    need_locks=warn
 
16868
  fi
 
16869
else
 
16870
  need_locks=no
 
16871
fi
 
16872
 
 
16873
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16874
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16875
 
 
16876
  runpath_var=
 
16877
  allow_undefined_flag_GCJ=
 
16878
  enable_shared_with_static_runtimes_GCJ=no
 
16879
  archive_cmds_GCJ=
 
16880
  archive_expsym_cmds_GCJ=
 
16881
  old_archive_From_new_cmds_GCJ=
 
16882
  old_archive_from_expsyms_cmds_GCJ=
 
16883
  export_dynamic_flag_spec_GCJ=
 
16884
  whole_archive_flag_spec_GCJ=
 
16885
  thread_safe_flag_spec_GCJ=
 
16886
  hardcode_libdir_flag_spec_GCJ=
 
16887
  hardcode_libdir_flag_spec_ld_GCJ=
 
16888
  hardcode_libdir_separator_GCJ=
 
16889
  hardcode_direct_GCJ=no
 
16890
  hardcode_minus_L_GCJ=no
 
16891
  hardcode_shlibpath_var_GCJ=unsupported
 
16892
  link_all_deplibs_GCJ=unknown
 
16893
  hardcode_automatic_GCJ=no
 
16894
  module_cmds_GCJ=
 
16895
  module_expsym_cmds_GCJ=
 
16896
  always_export_symbols_GCJ=no
 
16897
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16898
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16899
  # included in the symbol list
 
16900
  include_expsyms_GCJ=
 
16901
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16902
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16903
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16904
  # as well as any symbol that contains `d'.
 
16905
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16906
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16907
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16908
  # the symbol is explicitly referenced.  Since portable code cannot
 
16909
  # rely on this symbol name, it's probably fine to never include it in
 
16910
  # preloaded symbol tables.
 
16911
  extract_expsyms_cmds=
 
16912
  # Just being paranoid about ensuring that cc_basename is set.
 
16913
  for cc_temp in $compiler""; do
 
16914
  case $cc_temp in
 
16915
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16916
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16917
    \-*) ;;
 
16918
    *) break;;
 
16919
  esac
 
16920
done
 
16921
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16922
 
 
16923
  case $host_os in
 
16924
  cygwin* | mingw* | pw32*)
 
16925
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16926
    # When not using gcc, we currently assume that we are using
 
16927
    # Microsoft Visual C++.
 
16928
    if test "$GCC" != yes; then
 
16929
      with_gnu_ld=no
 
16930
    fi
 
16931
    ;;
 
16932
  interix*)
 
16933
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16934
    with_gnu_ld=yes
 
16935
    ;;
 
16936
  openbsd*)
 
16937
    with_gnu_ld=no
 
16938
    ;;
 
16939
  esac
 
16940
 
 
16941
  ld_shlibs_GCJ=yes
 
16942
  if test "$with_gnu_ld" = yes; then
 
16943
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16944
    wlarc='${wl}'
 
16945
 
 
16946
    # Set some defaults for GNU ld with shared library support. These
 
16947
    # are reset later if shared libraries are not supported. Putting them
 
16948
    # here allows them to be overridden if necessary.
 
16949
    runpath_var=LD_RUN_PATH
 
16950
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16951
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16952
    # ancient GNU ld didn't support --whole-archive et. al.
 
16953
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16954
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16955
      else
 
16956
        whole_archive_flag_spec_GCJ=
 
16957
    fi
 
16958
    supports_anon_versioning=no
 
16959
    case `$LD -v 2>/dev/null` in
 
16960
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16961
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16962
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16963
      *\ 2.11.*) ;; # other 2.11 versions
 
16964
      *) supports_anon_versioning=yes ;;
 
16965
    esac
 
16966
 
 
16967
    # See if GNU ld supports shared libraries.
 
16968
    case $host_os in
 
16969
    aix3* | aix4* | aix5*)
 
16970
      # On AIX/PPC, the GNU linker is very broken
 
16971
      if test "$host_cpu" != ia64; then
 
16972
        ld_shlibs_GCJ=no
 
16973
        cat <<EOF 1>&2
 
16974
 
 
16975
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16976
*** to be unable to reliably create shared libraries on AIX.
 
16977
*** Therefore, libtool is disabling shared libraries support.  If you
 
16978
*** really care for shared libraries, you may want to modify your PATH
 
16979
*** so that a non-GNU linker is found, and then restart.
 
16980
 
 
16981
EOF
 
16982
      fi
 
16983
      ;;
 
16984
 
 
16985
    amigaos*)
 
16986
      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)'
 
16987
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16988
      hardcode_minus_L_GCJ=yes
 
16989
 
 
16990
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16991
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16992
      # to version 4, is to share data among multiple programs linked
 
16993
      # with the same dynamic library.  Since this doesn't match the
 
16994
      # behavior of shared libraries on other platforms, we can't use
 
16995
      # them.
 
16996
      ld_shlibs_GCJ=no
 
16997
      ;;
 
16998
 
 
16999
    beos*)
 
17000
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17001
        allow_undefined_flag_GCJ=unsupported
 
17002
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17003
        # support --undefined.  This deserves some investigation.  FIXME
 
17004
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17005
      else
 
17006
        ld_shlibs_GCJ=no
 
17007
      fi
 
17008
      ;;
 
17009
 
 
17010
    cygwin* | mingw* | pw32*)
 
17011
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17012
      # as there is no search path for DLLs.
 
17013
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17014
      allow_undefined_flag_GCJ=unsupported
 
17015
      always_export_symbols_GCJ=no
 
17016
      enable_shared_with_static_runtimes_GCJ=yes
 
17017
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17018
 
 
17019
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17020
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17021
        # If the export-symbols file already is a .def file (1st line
 
17022
        # is EXPORTS), use it as is; otherwise, prepend...
 
17023
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17024
          cp $export_symbols $output_objdir/$soname.def;
 
17025
        else
 
17026
          echo EXPORTS > $output_objdir/$soname.def;
 
17027
          cat $export_symbols >> $output_objdir/$soname.def;
 
17028
        fi~
 
17029
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17030
      else
 
17031
        ld_shlibs_GCJ=no
 
17032
      fi
 
17033
      ;;
 
17034
 
 
17035
    interix[3-9]*)
 
17036
      hardcode_direct_GCJ=no
 
17037
      hardcode_shlibpath_var_GCJ=no
 
17038
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17039
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17040
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17041
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17042
      # default) and relocated if they conflict, which is a slow very memory
 
17043
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17044
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17045
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17046
      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'
 
17047
      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'
 
17048
      ;;
 
17049
 
 
17050
    gnu* | linux* | k*bsd*-gnu)
 
17051
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17052
        tmp_addflag=
 
17053
        case $cc_basename,$host_cpu in
 
17054
        pgcc*)                          # Portland Group C compiler
 
17055
          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'
 
17056
          tmp_addflag=' $pic_flag'
 
17057
          ;;
 
17058
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17059
          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'
 
17060
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17061
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17062
          tmp_addflag=' -i_dynamic' ;;
 
17063
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17064
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17065
        ifc* | ifort*)                  # Intel Fortran compiler
 
17066
          tmp_addflag=' -nofor_main' ;;
 
17067
        esac
 
17068
        case `$CC -V 2>&1 | sed 5q` in
 
17069
        *Sun\ C*)                       # Sun C 5.9
 
17070
          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'
 
17071
          tmp_sharedflag='-G' ;;
 
17072
        *Sun\ F*)                       # Sun Fortran 8.3
 
17073
          tmp_sharedflag='-G' ;;
 
17074
        *)
 
17075
          tmp_sharedflag='-shared' ;;
 
17076
        esac
 
17077
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17078
 
 
17079
        if test $supports_anon_versioning = yes; then
 
17080
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17081
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17082
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17083
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17084
        fi
 
17085
      else
 
17086
        ld_shlibs_GCJ=no
 
17087
      fi
 
17088
      ;;
 
17089
 
 
17090
    netbsd*)
 
17091
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17092
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17093
        wlarc=
 
17094
      else
 
17095
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17096
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17097
      fi
 
17098
      ;;
 
17099
 
 
17100
    solaris*)
 
17101
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17102
        ld_shlibs_GCJ=no
 
17103
        cat <<EOF 1>&2
 
17104
 
 
17105
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17106
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17107
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17108
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17109
*** your PATH or compiler configuration so that the native linker is
 
17110
*** used, and then restart.
 
17111
 
 
17112
EOF
 
17113
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17114
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17115
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17116
      else
 
17117
        ld_shlibs_GCJ=no
 
17118
      fi
 
17119
      ;;
 
17120
 
 
17121
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17122
      case `$LD -v 2>&1` in
 
17123
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17124
        ld_shlibs_GCJ=no
 
17125
        cat <<_LT_EOF 1>&2
 
17126
 
 
17127
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17128
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17129
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17130
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17131
*** your PATH or compiler configuration so that the native linker is
 
17132
*** used, and then restart.
 
17133
 
 
17134
_LT_EOF
 
17135
        ;;
 
17136
        *)
 
17137
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17138
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17139
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17140
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17141
          else
 
17142
            ld_shlibs_GCJ=no
 
17143
          fi
 
17144
        ;;
 
17145
      esac
 
17146
      ;;
 
17147
 
 
17148
    sunos4*)
 
17149
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17150
      wlarc=
 
17151
      hardcode_direct_GCJ=yes
 
17152
      hardcode_shlibpath_var_GCJ=no
 
17153
      ;;
 
17154
 
 
17155
    *)
 
17156
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17157
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17158
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17159
      else
 
17160
        ld_shlibs_GCJ=no
 
17161
      fi
 
17162
      ;;
 
17163
    esac
 
17164
 
 
17165
    if test "$ld_shlibs_GCJ" = no; then
 
17166
      runpath_var=
 
17167
      hardcode_libdir_flag_spec_GCJ=
 
17168
      export_dynamic_flag_spec_GCJ=
 
17169
      whole_archive_flag_spec_GCJ=
 
17170
    fi
 
17171
  else
 
17172
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17173
    case $host_os in
 
17174
    aix3*)
 
17175
      allow_undefined_flag_GCJ=unsupported
 
17176
      always_export_symbols_GCJ=yes
 
17177
      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'
 
17178
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17179
      # are no directories specified by -L.
 
17180
      hardcode_minus_L_GCJ=yes
 
17181
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17182
        # Neither direct hardcoding nor static linking is supported with a
 
17183
        # broken collect2.
 
17184
        hardcode_direct_GCJ=unsupported
 
17185
      fi
 
17186
      ;;
 
17187
 
 
17188
    aix4* | aix5*)
 
17189
      if test "$host_cpu" = ia64; then
 
17190
        # On IA64, the linker does run time linking by default, so we don't
 
17191
        # have to do anything special.
 
17192
        aix_use_runtimelinking=no
 
17193
        exp_sym_flag='-Bexport'
 
17194
        no_entry_flag=""
 
17195
      else
 
17196
        # If we're using GNU nm, then we don't want the "-C" option.
 
17197
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17198
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17199
          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'
 
17200
        else
 
17201
          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'
 
17202
        fi
 
17203
        aix_use_runtimelinking=no
 
17204
 
 
17205
        # Test if we are trying to use run time linking or normal
 
17206
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17207
        # need to do runtime linking.
 
17208
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17209
          for ld_flag in $LDFLAGS; do
 
17210
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17211
            aix_use_runtimelinking=yes
 
17212
            break
 
17213
          fi
 
17214
          done
 
17215
          ;;
 
17216
        esac
 
17217
 
 
17218
        exp_sym_flag='-bexport'
 
17219
        no_entry_flag='-bnoentry'
 
17220
      fi
 
17221
 
 
17222
      # When large executables or shared objects are built, AIX ld can
 
17223
      # have problems creating the table of contents.  If linking a library
 
17224
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17225
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17226
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17227
 
 
17228
      archive_cmds_GCJ=''
 
17229
      hardcode_direct_GCJ=yes
 
17230
      hardcode_libdir_separator_GCJ=':'
 
17231
      link_all_deplibs_GCJ=yes
 
17232
 
 
17233
      if test "$GCC" = yes; then
 
17234
        case $host_os in aix4.[012]|aix4.[012].*)
 
17235
        # We only want to do this on AIX 4.2 and lower, the check
 
17236
        # below for broken collect2 doesn't work under 4.3+
 
17237
          collect2name=`${CC} -print-prog-name=collect2`
 
17238
          if test -f "$collect2name" && \
 
17239
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17240
          then
 
17241
          # We have reworked collect2
 
17242
          :
 
17243
          else
 
17244
          # We have old collect2
 
17245
          hardcode_direct_GCJ=unsupported
 
17246
          # It fails to find uninstalled libraries when the uninstalled
 
17247
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17248
          # to unsupported forces relinking
 
17249
          hardcode_minus_L_GCJ=yes
 
17250
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17251
          hardcode_libdir_separator_GCJ=
 
17252
          fi
 
17253
          ;;
 
17254
        esac
 
17255
        shared_flag='-shared'
 
17256
        if test "$aix_use_runtimelinking" = yes; then
 
17257
          shared_flag="$shared_flag "'${wl}-G'
 
17258
        fi
 
17259
      else
 
17260
        # not using gcc
 
17261
        if test "$host_cpu" = ia64; then
 
17262
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17263
        # chokes on -Wl,-G. The following line is correct:
 
17264
          shared_flag='-G'
 
17265
        else
 
17266
          if test "$aix_use_runtimelinking" = yes; then
 
17267
            shared_flag='${wl}-G'
 
17268
          else
 
17269
            shared_flag='${wl}-bM:SRE'
 
17270
          fi
 
17271
        fi
 
17272
      fi
 
17273
 
 
17274
      # It seems that -bexpall does not export symbols beginning with
 
17275
      # underscore (_), so it is better to generate a list of symbols to export.
 
17276
      always_export_symbols_GCJ=yes
 
17277
      if test "$aix_use_runtimelinking" = yes; then
 
17278
        # Warning - without using the other runtime loading flags (-brtl),
 
17279
        # -berok will link without error, but may produce a broken library.
 
17280
        allow_undefined_flag_GCJ='-berok'
 
17281
       # Determine the default libpath from the value encoded in an empty executable.
 
17282
       cat >conftest.$ac_ext <<_ACEOF
 
17283
/* confdefs.h.  */
 
17284
_ACEOF
 
17285
cat confdefs.h >>conftest.$ac_ext
 
17286
cat >>conftest.$ac_ext <<_ACEOF
 
17287
/* end confdefs.h.  */
 
17288
 
 
17289
int
 
17290
main ()
 
17291
{
 
17292
 
 
17293
  ;
 
17294
  return 0;
 
17295
}
 
17296
_ACEOF
 
17297
rm -f conftest.$ac_objext conftest$ac_exeext
 
17298
if { (ac_try="$ac_link"
 
17299
case "(($ac_try" in
 
17300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17301
  *) ac_try_echo=$ac_try;;
 
17302
esac
 
17303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17304
  (eval "$ac_link") 2>conftest.er1
 
17305
  ac_status=$?
 
17306
  grep -v '^ *+' conftest.er1 >conftest.err
 
17307
  rm -f conftest.er1
 
17308
  cat conftest.err >&5
 
17309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17310
  (exit $ac_status); } && {
 
17311
         test -z "$ac_c_werror_flag" ||
 
17312
         test ! -s conftest.err
 
17313
       } && test -s conftest$ac_exeext &&
 
17314
       $as_test_x conftest$ac_exeext; then
 
17315
 
 
17316
lt_aix_libpath_sed='
 
17317
    /Import File Strings/,/^$/ {
 
17318
        /^0/ {
 
17319
            s/^0  *\(.*\)$/\1/
 
17320
            p
 
17321
        }
 
17322
    }'
 
17323
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17324
# Check for a 64-bit object if we didn't find anything.
 
17325
if test -z "$aix_libpath"; then
 
17326
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17327
fi
 
17328
else
 
17329
  echo "$as_me: failed program was:" >&5
 
17330
sed 's/^/| /' conftest.$ac_ext >&5
 
17331
 
 
17332
 
 
17333
fi
 
17334
 
 
17335
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17336
      conftest$ac_exeext conftest.$ac_ext
 
17337
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17338
 
 
17339
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17340
        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"
 
17341
       else
 
17342
        if test "$host_cpu" = ia64; then
 
17343
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17344
          allow_undefined_flag_GCJ="-z nodefs"
 
17345
          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"
 
17346
        else
 
17347
         # Determine the default libpath from the value encoded in an empty executable.
 
17348
         cat >conftest.$ac_ext <<_ACEOF
 
17349
/* confdefs.h.  */
 
17350
_ACEOF
 
17351
cat confdefs.h >>conftest.$ac_ext
 
17352
cat >>conftest.$ac_ext <<_ACEOF
 
17353
/* end confdefs.h.  */
 
17354
 
 
17355
int
 
17356
main ()
 
17357
{
 
17358
 
 
17359
  ;
 
17360
  return 0;
 
17361
}
 
17362
_ACEOF
 
17363
rm -f conftest.$ac_objext conftest$ac_exeext
 
17364
if { (ac_try="$ac_link"
 
17365
case "(($ac_try" in
 
17366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17367
  *) ac_try_echo=$ac_try;;
 
17368
esac
 
17369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17370
  (eval "$ac_link") 2>conftest.er1
 
17371
  ac_status=$?
 
17372
  grep -v '^ *+' conftest.er1 >conftest.err
 
17373
  rm -f conftest.er1
 
17374
  cat conftest.err >&5
 
17375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17376
  (exit $ac_status); } && {
 
17377
         test -z "$ac_c_werror_flag" ||
 
17378
         test ! -s conftest.err
 
17379
       } && test -s conftest$ac_exeext &&
 
17380
       $as_test_x conftest$ac_exeext; then
 
17381
 
 
17382
lt_aix_libpath_sed='
 
17383
    /Import File Strings/,/^$/ {
 
17384
        /^0/ {
 
17385
            s/^0  *\(.*\)$/\1/
 
17386
            p
 
17387
        }
 
17388
    }'
 
17389
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17390
# Check for a 64-bit object if we didn't find anything.
 
17391
if test -z "$aix_libpath"; then
 
17392
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17393
fi
 
17394
else
 
17395
  echo "$as_me: failed program was:" >&5
 
17396
sed 's/^/| /' conftest.$ac_ext >&5
 
17397
 
 
17398
 
 
17399
fi
 
17400
 
 
17401
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17402
      conftest$ac_exeext conftest.$ac_ext
 
17403
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17404
 
 
17405
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17406
          # Warning - without using the other run time loading flags,
 
17407
          # -berok will link without error, but may produce a broken library.
 
17408
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17409
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17410
          # Exported symbols can be pulled into shared objects from archives
 
17411
          whole_archive_flag_spec_GCJ='$convenience'
 
17412
          archive_cmds_need_lc_GCJ=yes
 
17413
          # This is similar to how AIX traditionally builds its shared libraries.
 
17414
          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'
 
17415
        fi
 
17416
      fi
 
17417
      ;;
 
17418
 
 
17419
    amigaos*)
 
17420
      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)'
 
17421
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17422
      hardcode_minus_L_GCJ=yes
 
17423
      # see comment about different semantics on the GNU ld section
 
17424
      ld_shlibs_GCJ=no
 
17425
      ;;
 
17426
 
 
17427
    bsdi[45]*)
 
17428
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17429
      ;;
 
17430
 
 
17431
    cygwin* | mingw* | pw32*)
 
17432
      # When not using gcc, we currently assume that we are using
 
17433
      # Microsoft Visual C++.
 
17434
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17435
      # no search path for DLLs.
 
17436
      hardcode_libdir_flag_spec_GCJ=' '
 
17437
      allow_undefined_flag_GCJ=unsupported
 
17438
      # Tell ltmain to make .lib files, not .a files.
 
17439
      libext=lib
 
17440
      # Tell ltmain to make .dll files, not .so files.
 
17441
      shrext_cmds=".dll"
 
17442
      # FIXME: Setting linknames here is a bad hack.
 
17443
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17444
      # The linker will automatically build a .lib file if we build a DLL.
 
17445
      old_archive_From_new_cmds_GCJ='true'
 
17446
      # FIXME: Should let the user specify the lib program.
 
17447
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17448
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17449
      enable_shared_with_static_runtimes_GCJ=yes
 
17450
      ;;
 
17451
 
 
17452
    darwin* | rhapsody*)
 
17453
      case $host_os in
 
17454
        rhapsody* | darwin1.[012])
 
17455
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17456
         ;;
 
17457
       *) # Darwin 1.3 on
 
17458
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17459
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17460
         else
 
17461
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17462
             10.[012])
 
17463
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17464
               ;;
 
17465
             10.*)
 
17466
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17467
               ;;
 
17468
           esac
 
17469
         fi
 
17470
         ;;
 
17471
      esac
 
17472
      archive_cmds_need_lc_GCJ=no
 
17473
      hardcode_direct_GCJ=no
 
17474
      hardcode_automatic_GCJ=yes
 
17475
      hardcode_shlibpath_var_GCJ=unsupported
 
17476
      whole_archive_flag_spec_GCJ=''
 
17477
      link_all_deplibs_GCJ=yes
 
17478
    if test "$GCC" = yes ; then
 
17479
        output_verbose_link_cmd='echo'
 
17480
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17481
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17482
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17483
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17484
      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}'
 
17485
    else
 
17486
      case $cc_basename in
 
17487
        xlc*)
 
17488
         output_verbose_link_cmd='echo'
 
17489
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17490
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17491
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17492
         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}'
 
17493
          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}'
 
17494
          ;;
 
17495
       *)
 
17496
         ld_shlibs_GCJ=no
 
17497
          ;;
 
17498
      esac
 
17499
    fi
 
17500
      ;;
 
17501
 
 
17502
    dgux*)
 
17503
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17504
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17505
      hardcode_shlibpath_var_GCJ=no
 
17506
      ;;
 
17507
 
 
17508
    freebsd1*)
 
17509
      ld_shlibs_GCJ=no
 
17510
      ;;
 
17511
 
 
17512
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17513
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17514
    # does not break anything, and helps significantly (at the cost of a little
 
17515
    # extra space).
 
17516
    freebsd2.2*)
 
17517
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17518
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17519
      hardcode_direct_GCJ=yes
 
17520
      hardcode_shlibpath_var_GCJ=no
 
17521
      ;;
 
17522
 
 
17523
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17524
    freebsd2*)
 
17525
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17526
      hardcode_direct_GCJ=yes
 
17527
      hardcode_minus_L_GCJ=yes
 
17528
      hardcode_shlibpath_var_GCJ=no
 
17529
      ;;
 
17530
 
 
17531
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17532
    freebsd* | dragonfly*)
 
17533
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17534
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17535
      hardcode_direct_GCJ=yes
 
17536
      hardcode_shlibpath_var_GCJ=no
 
17537
      ;;
 
17538
 
 
17539
    hpux9*)
 
17540
      if test "$GCC" = yes; then
 
17541
        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'
 
17542
      else
 
17543
        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'
 
17544
      fi
 
17545
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17546
      hardcode_libdir_separator_GCJ=:
 
17547
      hardcode_direct_GCJ=yes
 
17548
 
 
17549
      # hardcode_minus_L: Not really in the search PATH,
 
17550
      # but as the default location of the library.
 
17551
      hardcode_minus_L_GCJ=yes
 
17552
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17553
      ;;
 
17554
 
 
17555
    hpux10*)
 
17556
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17557
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17558
      else
 
17559
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17560
      fi
 
17561
      if test "$with_gnu_ld" = no; then
 
17562
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17563
        hardcode_libdir_separator_GCJ=:
 
17564
 
 
17565
        hardcode_direct_GCJ=yes
 
17566
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17567
 
 
17568
        # hardcode_minus_L: Not really in the search PATH,
 
17569
        # but as the default location of the library.
 
17570
        hardcode_minus_L_GCJ=yes
 
17571
      fi
 
17572
      ;;
 
17573
 
 
17574
    hpux11*)
 
17575
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17576
        case $host_cpu in
 
17577
        hppa*64*)
 
17578
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17579
          ;;
 
17580
        ia64*)
 
17581
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17582
          ;;
 
17583
        *)
 
17584
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17585
          ;;
 
17586
        esac
 
17587
      else
 
17588
        case $host_cpu in
 
17589
        hppa*64*)
 
17590
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17591
          ;;
 
17592
        ia64*)
 
17593
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17594
          ;;
 
17595
        *)
 
17596
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17597
          ;;
 
17598
        esac
 
17599
      fi
 
17600
      if test "$with_gnu_ld" = no; then
 
17601
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17602
        hardcode_libdir_separator_GCJ=:
 
17603
 
 
17604
        case $host_cpu in
 
17605
        hppa*64*|ia64*)
 
17606
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17607
          hardcode_direct_GCJ=no
 
17608
          hardcode_shlibpath_var_GCJ=no
 
17609
          ;;
 
17610
        *)
 
17611
          hardcode_direct_GCJ=yes
 
17612
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17613
 
 
17614
          # hardcode_minus_L: Not really in the search PATH,
 
17615
          # but as the default location of the library.
 
17616
          hardcode_minus_L_GCJ=yes
 
17617
          ;;
 
17618
        esac
 
17619
      fi
 
17620
      ;;
 
17621
 
 
17622
    irix5* | irix6* | nonstopux*)
 
17623
      if test "$GCC" = yes; then
 
17624
        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'
 
17625
      else
 
17626
        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'
 
17627
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17628
      fi
 
17629
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17630
      hardcode_libdir_separator_GCJ=:
 
17631
      link_all_deplibs_GCJ=yes
 
17632
      ;;
 
17633
 
 
17634
    netbsd*)
 
17635
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17636
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17637
      else
 
17638
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17639
      fi
 
17640
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17641
      hardcode_direct_GCJ=yes
 
17642
      hardcode_shlibpath_var_GCJ=no
 
17643
      ;;
 
17644
 
 
17645
    newsos6)
 
17646
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17647
      hardcode_direct_GCJ=yes
 
17648
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17649
      hardcode_libdir_separator_GCJ=:
 
17650
      hardcode_shlibpath_var_GCJ=no
 
17651
      ;;
 
17652
 
 
17653
    openbsd*)
 
17654
      if test -f /usr/libexec/ld.so; then
 
17655
        hardcode_direct_GCJ=yes
 
17656
        hardcode_shlibpath_var_GCJ=no
 
17657
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17658
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17659
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17660
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17661
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17662
        else
 
17663
          case $host_os in
 
17664
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17665
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17666
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17667
             ;;
 
17668
           *)
 
17669
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17670
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17671
             ;;
 
17672
          esac
 
17673
        fi
 
17674
      else
 
17675
        ld_shlibs_GCJ=no
 
17676
      fi
 
17677
      ;;
 
17678
 
 
17679
    os2*)
 
17680
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17681
      hardcode_minus_L_GCJ=yes
 
17682
      allow_undefined_flag_GCJ=unsupported
 
17683
      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'
 
17684
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17685
      ;;
 
17686
 
 
17687
    osf3*)
 
17688
      if test "$GCC" = yes; then
 
17689
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17690
        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'
 
17691
      else
 
17692
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17693
        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'
 
17694
      fi
 
17695
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17696
      hardcode_libdir_separator_GCJ=:
 
17697
      ;;
 
17698
 
 
17699
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17700
      if test "$GCC" = yes; then
 
17701
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17702
        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'
 
17703
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17704
      else
 
17705
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17706
        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'
 
17707
        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~
 
17708
        $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'
 
17709
 
 
17710
        # Both c and cxx compiler support -rpath directly
 
17711
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17712
      fi
 
17713
      hardcode_libdir_separator_GCJ=:
 
17714
      ;;
 
17715
 
 
17716
    solaris*)
 
17717
      no_undefined_flag_GCJ=' -z text'
 
17718
      if test "$GCC" = yes; then
 
17719
        wlarc='${wl}'
 
17720
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17721
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17722
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17723
      else
 
17724
        wlarc=''
 
17725
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17726
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17727
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17728
      fi
 
17729
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17730
      hardcode_shlibpath_var_GCJ=no
 
17731
      case $host_os in
 
17732
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17733
      *)
 
17734
        # The compiler driver will combine and reorder linker options,
 
17735
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17736
        # but is careful enough not to reorder.
 
17737
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17738
        if test "$GCC" = yes; then
 
17739
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17740
        else
 
17741
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17742
        fi
 
17743
        ;;
 
17744
      esac
 
17745
      link_all_deplibs_GCJ=yes
 
17746
      ;;
 
17747
 
 
17748
    sunos4*)
 
17749
      if test "x$host_vendor" = xsequent; then
 
17750
        # Use $CC to link under sequent, because it throws in some extra .o
 
17751
        # files that make .init and .fini sections work.
 
17752
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17753
      else
 
17754
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17755
      fi
 
17756
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17757
      hardcode_direct_GCJ=yes
 
17758
      hardcode_minus_L_GCJ=yes
 
17759
      hardcode_shlibpath_var_GCJ=no
 
17760
      ;;
 
17761
 
 
17762
    sysv4)
 
17763
      case $host_vendor in
 
17764
        sni)
 
17765
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17766
          hardcode_direct_GCJ=yes # is this really true???
 
17767
        ;;
 
17768
        siemens)
 
17769
          ## LD is ld it makes a PLAMLIB
 
17770
          ## CC just makes a GrossModule.
 
17771
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17772
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17773
          hardcode_direct_GCJ=no
 
17774
        ;;
 
17775
        motorola)
 
17776
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17777
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17778
        ;;
 
17779
      esac
 
17780
      runpath_var='LD_RUN_PATH'
 
17781
      hardcode_shlibpath_var_GCJ=no
 
17782
      ;;
 
17783
 
 
17784
    sysv4.3*)
 
17785
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17786
      hardcode_shlibpath_var_GCJ=no
 
17787
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17788
      ;;
 
17789
 
 
17790
    sysv4*MP*)
 
17791
      if test -d /usr/nec; then
 
17792
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17793
        hardcode_shlibpath_var_GCJ=no
 
17794
        runpath_var=LD_RUN_PATH
 
17795
        hardcode_runpath_var=yes
 
17796
        ld_shlibs_GCJ=yes
 
17797
      fi
 
17798
      ;;
 
17799
 
 
17800
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
17801
      no_undefined_flag_GCJ='${wl}-z,text'
 
17802
      archive_cmds_need_lc_GCJ=no
 
17803
      hardcode_shlibpath_var_GCJ=no
 
17804
      runpath_var='LD_RUN_PATH'
 
17805
 
 
17806
      if test "$GCC" = yes; then
 
17807
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17808
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17809
      else
 
17810
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17811
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17812
      fi
 
17813
      ;;
 
17814
 
 
17815
    sysv5* | sco3.2v5* | sco5v6*)
 
17816
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17817
      # link with -lc, and that would cause any symbols used from libc to
 
17818
      # always be unresolved, which means just about no library would
 
17819
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17820
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17821
      # as -z defs.
 
17822
      no_undefined_flag_GCJ='${wl}-z,text'
 
17823
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17824
      archive_cmds_need_lc_GCJ=no
 
17825
      hardcode_shlibpath_var_GCJ=no
 
17826
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17827
      hardcode_libdir_separator_GCJ=':'
 
17828
      link_all_deplibs_GCJ=yes
 
17829
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17830
      runpath_var='LD_RUN_PATH'
 
17831
 
 
17832
      if test "$GCC" = yes; then
 
17833
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17834
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17835
      else
 
17836
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17837
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17838
      fi
 
17839
      ;;
 
17840
 
 
17841
    uts4*)
 
17842
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17843
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17844
      hardcode_shlibpath_var_GCJ=no
 
17845
      ;;
 
17846
 
 
17847
    *)
 
17848
      ld_shlibs_GCJ=no
 
17849
      ;;
 
17850
    esac
 
17851
  fi
 
17852
 
 
17853
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17854
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17855
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17856
 
 
17857
#
 
17858
# Do we need to explicitly link libc?
 
17859
#
 
17860
case "x$archive_cmds_need_lc_GCJ" in
 
17861
x|xyes)
 
17862
  # Assume -lc should be added
 
17863
  archive_cmds_need_lc_GCJ=yes
 
17864
 
 
17865
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17866
    case $archive_cmds_GCJ in
 
17867
    *'~'*)
 
17868
      # FIXME: we may have to deal with multi-command sequences.
 
17869
      ;;
 
17870
    '$CC '*)
 
17871
      # Test whether the compiler implicitly links with -lc since on some
 
17872
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17873
      # to ld, don't add -lc before -lgcc.
 
17874
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17875
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17876
      $rm conftest*
 
17877
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17878
 
 
17879
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17880
  (eval $ac_compile) 2>&5
 
17881
  ac_status=$?
 
17882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17883
  (exit $ac_status); } 2>conftest.err; then
 
17884
        soname=conftest
 
17885
        lib=conftest
 
17886
        libobjs=conftest.$ac_objext
 
17887
        deplibs=
 
17888
        wl=$lt_prog_compiler_wl_GCJ
 
17889
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17890
        compiler_flags=-v
 
17891
        linker_flags=-v
 
17892
        verstring=
 
17893
        output_objdir=.
 
17894
        libname=conftest
 
17895
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17896
        allow_undefined_flag_GCJ=
 
17897
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17898
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17899
  ac_status=$?
 
17900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17901
  (exit $ac_status); }
 
17902
        then
 
17903
          archive_cmds_need_lc_GCJ=no
 
17904
        else
 
17905
          archive_cmds_need_lc_GCJ=yes
 
17906
        fi
 
17907
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17908
      else
 
17909
        cat conftest.err 1>&5
 
17910
      fi
 
17911
      $rm conftest*
 
17912
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17913
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17914
      ;;
 
17915
    esac
 
17916
  fi
 
17917
  ;;
 
17918
esac
 
17919
 
 
17920
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17921
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17922
library_names_spec=
 
17923
libname_spec='lib$name'
 
17924
soname_spec=
 
17925
shrext_cmds=".so"
 
17926
postinstall_cmds=
 
17927
postuninstall_cmds=
 
17928
finish_cmds=
 
17929
finish_eval=
 
17930
shlibpath_var=
 
17931
shlibpath_overrides_runpath=unknown
 
17932
version_type=none
 
17933
dynamic_linker="$host_os ld.so"
 
17934
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17935
 
 
17936
need_lib_prefix=unknown
 
17937
hardcode_into_libs=no
 
17938
 
 
17939
# when you set need_version to no, make sure it does not cause -set_version
 
17940
# flags to be left without arguments
 
17941
need_version=unknown
 
17942
 
 
17943
case $host_os in
 
17944
aix3*)
 
17945
  version_type=linux
 
17946
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17947
  shlibpath_var=LIBPATH
 
17948
 
 
17949
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17950
  soname_spec='${libname}${release}${shared_ext}$major'
 
17951
  ;;
 
17952
 
 
17953
aix4* | aix5*)
 
17954
  version_type=linux
 
17955
  need_lib_prefix=no
 
17956
  need_version=no
 
17957
  hardcode_into_libs=yes
 
17958
  if test "$host_cpu" = ia64; then
 
17959
    # AIX 5 supports IA64
 
17960
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17961
    shlibpath_var=LD_LIBRARY_PATH
 
17962
  else
 
17963
    # With GCC up to 2.95.x, collect2 would create an import file
 
17964
    # for dependence libraries.  The import file would start with
 
17965
    # the line `#! .'.  This would cause the generated library to
 
17966
    # depend on `.', always an invalid library.  This was fixed in
 
17967
    # development snapshots of GCC prior to 3.0.
 
17968
    case $host_os in
 
17969
      aix4 | aix4.[01] | aix4.[01].*)
 
17970
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17971
           echo ' yes '
 
17972
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17973
        :
 
17974
      else
 
17975
        can_build_shared=no
 
17976
      fi
 
17977
      ;;
 
17978
    esac
 
17979
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17980
    # soname into executable. Probably we can add versioning support to
 
17981
    # collect2, so additional links can be useful in future.
 
17982
    if test "$aix_use_runtimelinking" = yes; then
 
17983
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17984
      # instead of lib<name>.a to let people know that these are not
 
17985
      # typical AIX shared libraries.
 
17986
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17987
    else
 
17988
      # We preserve .a as extension for shared libraries through AIX4.2
 
17989
      # and later when we are not doing run time linking.
 
17990
      library_names_spec='${libname}${release}.a $libname.a'
 
17991
      soname_spec='${libname}${release}${shared_ext}$major'
 
17992
    fi
 
17993
    shlibpath_var=LIBPATH
 
17994
  fi
 
17995
  ;;
 
17996
 
 
17997
amigaos*)
 
17998
  library_names_spec='$libname.ixlibrary $libname.a'
 
17999
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18000
  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'
 
18001
  ;;
 
18002
 
 
18003
beos*)
 
18004
  library_names_spec='${libname}${shared_ext}'
 
18005
  dynamic_linker="$host_os ld.so"
 
18006
  shlibpath_var=LIBRARY_PATH
 
18007
  ;;
 
18008
 
 
18009
bsdi[45]*)
 
18010
  version_type=linux
 
18011
  need_version=no
 
18012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18013
  soname_spec='${libname}${release}${shared_ext}$major'
 
18014
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18015
  shlibpath_var=LD_LIBRARY_PATH
 
18016
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18017
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18018
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18019
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18020
  # libtool to hard-code these into programs
 
18021
  ;;
 
18022
 
 
18023
cygwin* | mingw* | pw32*)
 
18024
  version_type=windows
 
18025
  shrext_cmds=".dll"
 
18026
  need_version=no
 
18027
  need_lib_prefix=no
 
18028
 
 
18029
  case $GCC,$host_os in
 
18030
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18031
    library_names_spec='$libname.dll.a'
 
18032
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18033
    postinstall_cmds='base_file=`basename \${file}`~
 
18034
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18035
      dldir=$destdir/`dirname \$dlpath`~
 
18036
      test -d \$dldir || mkdir -p \$dldir~
 
18037
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18038
      chmod a+x \$dldir/$dlname'
 
18039
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18040
      dlpath=$dir/\$dldll~
 
18041
       $rm \$dlpath'
 
18042
    shlibpath_overrides_runpath=yes
 
18043
 
 
18044
    case $host_os in
 
18045
    cygwin*)
 
18046
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18047
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18048
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18049
      ;;
 
18050
    mingw*)
 
18051
      # MinGW DLLs use traditional 'lib' prefix
 
18052
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18053
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18054
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18055
        # It is most probably a Windows format PATH printed by
 
18056
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18057
        # path with ; separators, and with drive letters. We can handle the
 
18058
        # drive letters (cygwin fileutils understands them), so leave them,
 
18059
        # especially as we might pass files found there to a mingw objdump,
 
18060
        # which wouldn't understand a cygwinified path. Ahh.
 
18061
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18062
      else
 
18063
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18064
      fi
 
18065
      ;;
 
18066
    pw32*)
 
18067
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18068
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18069
      ;;
 
18070
    esac
 
18071
    ;;
 
18072
 
 
18073
  *)
 
18074
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18075
    ;;
 
18076
  esac
 
18077
  dynamic_linker='Win32 ld.exe'
 
18078
  # FIXME: first we should search . and the directory the executable is in
 
18079
  shlibpath_var=PATH
 
18080
  ;;
 
18081
 
 
18082
darwin* | rhapsody*)
 
18083
  dynamic_linker="$host_os dyld"
 
18084
  version_type=darwin
 
18085
  need_lib_prefix=no
 
18086
  need_version=no
 
18087
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18088
  soname_spec='${libname}${release}${major}$shared_ext'
 
18089
  shlibpath_overrides_runpath=yes
 
18090
  shlibpath_var=DYLD_LIBRARY_PATH
 
18091
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18092
 
 
18093
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18094
  ;;
 
18095
 
 
18096
dgux*)
 
18097
  version_type=linux
 
18098
  need_lib_prefix=no
 
18099
  need_version=no
 
18100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18101
  soname_spec='${libname}${release}${shared_ext}$major'
 
18102
  shlibpath_var=LD_LIBRARY_PATH
 
18103
  ;;
 
18104
 
 
18105
freebsd1*)
 
18106
  dynamic_linker=no
 
18107
  ;;
 
18108
 
 
18109
freebsd* | dragonfly*)
 
18110
  # DragonFly does not have aout.  When/if they implement a new
 
18111
  # versioning mechanism, adjust this.
 
18112
  if test -x /usr/bin/objformat; then
 
18113
    objformat=`/usr/bin/objformat`
 
18114
  else
 
18115
    case $host_os in
 
18116
    freebsd[123]*) objformat=aout ;;
 
18117
    *) objformat=elf ;;
 
18118
    esac
 
18119
  fi
 
18120
  version_type=freebsd-$objformat
 
18121
  case $version_type in
 
18122
    freebsd-elf*)
 
18123
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18124
      need_version=no
 
18125
      need_lib_prefix=no
 
18126
      ;;
 
18127
    freebsd-*)
 
18128
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18129
      need_version=yes
 
18130
      ;;
 
18131
  esac
 
18132
  shlibpath_var=LD_LIBRARY_PATH
 
18133
  case $host_os in
 
18134
  freebsd2*)
 
18135
    shlibpath_overrides_runpath=yes
 
18136
    ;;
 
18137
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18138
    shlibpath_overrides_runpath=yes
 
18139
    hardcode_into_libs=yes
 
18140
    ;;
 
18141
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18142
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18143
    shlibpath_overrides_runpath=no
 
18144
    hardcode_into_libs=yes
 
18145
    ;;
 
18146
  *) # from 4.6 on, and DragonFly
 
18147
    shlibpath_overrides_runpath=yes
 
18148
    hardcode_into_libs=yes
 
18149
    ;;
 
18150
  esac
 
18151
  ;;
 
18152
 
 
18153
gnu*)
 
18154
  version_type=linux
 
18155
  need_lib_prefix=no
 
18156
  need_version=no
 
18157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18158
  soname_spec='${libname}${release}${shared_ext}$major'
 
18159
  shlibpath_var=LD_LIBRARY_PATH
 
18160
  hardcode_into_libs=yes
 
18161
  ;;
 
18162
 
 
18163
hpux9* | hpux10* | hpux11*)
 
18164
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18165
  # link against other versions.
 
18166
  version_type=sunos
 
18167
  need_lib_prefix=no
 
18168
  need_version=no
 
18169
  case $host_cpu in
 
18170
  ia64*)
 
18171
    shrext_cmds='.so'
 
18172
    hardcode_into_libs=yes
 
18173
    dynamic_linker="$host_os dld.so"
 
18174
    shlibpath_var=LD_LIBRARY_PATH
 
18175
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18176
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18177
    soname_spec='${libname}${release}${shared_ext}$major'
 
18178
    if test "X$HPUX_IA64_MODE" = X32; then
 
18179
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18180
    else
 
18181
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18182
    fi
 
18183
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18184
    ;;
 
18185
   hppa*64*)
 
18186
     shrext_cmds='.sl'
 
18187
     hardcode_into_libs=yes
 
18188
     dynamic_linker="$host_os dld.sl"
 
18189
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18190
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18191
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18192
     soname_spec='${libname}${release}${shared_ext}$major'
 
18193
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18194
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18195
     ;;
 
18196
   *)
 
18197
    shrext_cmds='.sl'
 
18198
    dynamic_linker="$host_os dld.sl"
 
18199
    shlibpath_var=SHLIB_PATH
 
18200
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18201
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18202
    soname_spec='${libname}${release}${shared_ext}$major'
 
18203
    ;;
 
18204
  esac
 
18205
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18206
  postinstall_cmds='chmod 555 $lib'
 
18207
  ;;
 
18208
 
 
18209
interix[3-9]*)
 
18210
  version_type=linux
 
18211
  need_lib_prefix=no
 
18212
  need_version=no
 
18213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18214
  soname_spec='${libname}${release}${shared_ext}$major'
 
18215
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18216
  shlibpath_var=LD_LIBRARY_PATH
 
18217
  shlibpath_overrides_runpath=no
 
18218
  hardcode_into_libs=yes
 
18219
  ;;
 
18220
 
 
18221
irix5* | irix6* | nonstopux*)
 
18222
  case $host_os in
 
18223
    nonstopux*) version_type=nonstopux ;;
 
18224
    *)
 
18225
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18226
                version_type=linux
 
18227
        else
 
18228
                version_type=irix
 
18229
        fi ;;
 
18230
  esac
 
18231
  need_lib_prefix=no
 
18232
  need_version=no
 
18233
  soname_spec='${libname}${release}${shared_ext}$major'
 
18234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18235
  case $host_os in
 
18236
  irix5* | nonstopux*)
 
18237
    libsuff= shlibsuff=
 
18238
    ;;
 
18239
  *)
 
18240
    case $LD in # libtool.m4 will add one of these switches to LD
 
18241
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18242
      libsuff= shlibsuff= libmagic=32-bit;;
 
18243
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18244
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18245
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18246
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18247
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18248
    esac
 
18249
    ;;
 
18250
  esac
 
18251
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18252
  shlibpath_overrides_runpath=no
 
18253
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18254
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18255
  hardcode_into_libs=yes
 
18256
  ;;
 
18257
 
 
18258
# No shared lib support for Linux oldld, aout, or coff.
 
18259
linux*oldld* | linux*aout* | linux*coff*)
 
18260
  dynamic_linker=no
 
18261
  ;;
 
18262
 
 
18263
# This must be Linux ELF.
 
18264
linux* | k*bsd*-gnu)
 
18265
  version_type=linux
 
18266
  need_lib_prefix=no
 
18267
  need_version=no
 
18268
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18269
  soname_spec='${libname}${release}${shared_ext}$major'
 
18270
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18271
  shlibpath_var=LD_LIBRARY_PATH
 
18272
  shlibpath_overrides_runpath=no
 
18273
  # This implies no fast_install, which is unacceptable.
 
18274
  # Some rework will be needed to allow for fast_install
 
18275
  # before this can be enabled.
 
18276
  hardcode_into_libs=yes
 
18277
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18278
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18279
 
 
18280
  # Append ld.so.conf contents to the search path
 
18281
  if test -f /etc/ld.so.conf; then
 
18282
    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' ' '`
 
18283
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
18284
  fi
 
18285
 
 
18286
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18287
  # powerpc, because MkLinux only supported shared libraries with the
 
18288
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18289
  # most powerpc-linux boxes support dynamic linking these days and
 
18290
  # people can always --disable-shared, the test was removed, and we
 
18291
  # assume the GNU/Linux dynamic linker is in use.
 
18292
  dynamic_linker='GNU/Linux ld.so'
 
18293
  ;;
 
18294
 
 
18295
netbsd*)
 
18296
  version_type=sunos
 
18297
  need_lib_prefix=no
 
18298
  need_version=no
 
18299
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18300
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18301
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18302
    dynamic_linker='NetBSD (a.out) ld.so'
 
18303
  else
 
18304
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18305
    soname_spec='${libname}${release}${shared_ext}$major'
 
18306
    dynamic_linker='NetBSD ld.elf_so'
 
18307
  fi
 
18308
  shlibpath_var=LD_LIBRARY_PATH
 
18309
  shlibpath_overrides_runpath=yes
 
18310
  hardcode_into_libs=yes
 
18311
  ;;
 
18312
 
 
18313
newsos6)
 
18314
  version_type=linux
 
18315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18316
  shlibpath_var=LD_LIBRARY_PATH
 
18317
  shlibpath_overrides_runpath=yes
 
18318
  ;;
 
18319
 
 
18320
nto-qnx*)
 
18321
  version_type=linux
 
18322
  need_lib_prefix=no
 
18323
  need_version=no
 
18324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18325
  soname_spec='${libname}${release}${shared_ext}$major'
 
18326
  shlibpath_var=LD_LIBRARY_PATH
 
18327
  shlibpath_overrides_runpath=yes
 
18328
  ;;
 
18329
 
 
18330
openbsd*)
 
18331
  version_type=sunos
 
18332
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18333
  need_lib_prefix=no
 
18334
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18335
  case $host_os in
 
18336
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18337
    *)                         need_version=no  ;;
 
18338
  esac
 
18339
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18340
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18341
  shlibpath_var=LD_LIBRARY_PATH
 
18342
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18343
    case $host_os in
 
18344
      openbsd2.[89] | openbsd2.[89].*)
 
18345
        shlibpath_overrides_runpath=no
 
18346
        ;;
 
18347
      *)
 
18348
        shlibpath_overrides_runpath=yes
 
18349
        ;;
 
18350
      esac
 
18351
  else
 
18352
    shlibpath_overrides_runpath=yes
 
18353
  fi
 
18354
  ;;
 
18355
 
 
18356
os2*)
 
18357
  libname_spec='$name'
 
18358
  shrext_cmds=".dll"
 
18359
  need_lib_prefix=no
 
18360
  library_names_spec='$libname${shared_ext} $libname.a'
 
18361
  dynamic_linker='OS/2 ld.exe'
 
18362
  shlibpath_var=LIBPATH
 
18363
  ;;
 
18364
 
 
18365
osf3* | osf4* | osf5*)
 
18366
  version_type=osf
 
18367
  need_lib_prefix=no
 
18368
  need_version=no
 
18369
  soname_spec='${libname}${release}${shared_ext}$major'
 
18370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18371
  shlibpath_var=LD_LIBRARY_PATH
 
18372
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18373
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18374
  ;;
 
18375
 
 
18376
rdos*)
 
18377
  dynamic_linker=no
 
18378
  ;;
 
18379
 
 
18380
solaris*)
 
18381
  version_type=linux
 
18382
  need_lib_prefix=no
 
18383
  need_version=no
 
18384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18385
  soname_spec='${libname}${release}${shared_ext}$major'
 
18386
  shlibpath_var=LD_LIBRARY_PATH
 
18387
  shlibpath_overrides_runpath=yes
 
18388
  hardcode_into_libs=yes
 
18389
  # ldd complains unless libraries are executable
 
18390
  postinstall_cmds='chmod +x $lib'
 
18391
  ;;
 
18392
 
 
18393
sunos4*)
 
18394
  version_type=sunos
 
18395
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18396
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18397
  shlibpath_var=LD_LIBRARY_PATH
 
18398
  shlibpath_overrides_runpath=yes
 
18399
  if test "$with_gnu_ld" = yes; then
 
18400
    need_lib_prefix=no
 
18401
  fi
 
18402
  need_version=yes
 
18403
  ;;
 
18404
 
 
18405
sysv4 | sysv4.3*)
 
18406
  version_type=linux
 
18407
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18408
  soname_spec='${libname}${release}${shared_ext}$major'
 
18409
  shlibpath_var=LD_LIBRARY_PATH
 
18410
  case $host_vendor in
 
18411
    sni)
 
18412
      shlibpath_overrides_runpath=no
 
18413
      need_lib_prefix=no
 
18414
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18415
      runpath_var=LD_RUN_PATH
 
18416
      ;;
 
18417
    siemens)
 
18418
      need_lib_prefix=no
 
18419
      ;;
 
18420
    motorola)
 
18421
      need_lib_prefix=no
 
18422
      need_version=no
 
18423
      shlibpath_overrides_runpath=no
 
18424
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18425
      ;;
 
18426
  esac
 
18427
  ;;
 
18428
 
 
18429
sysv4*MP*)
 
18430
  if test -d /usr/nec ;then
 
18431
    version_type=linux
 
18432
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18433
    soname_spec='$libname${shared_ext}.$major'
 
18434
    shlibpath_var=LD_LIBRARY_PATH
 
18435
  fi
 
18436
  ;;
 
18437
 
 
18438
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18439
  version_type=freebsd-elf
 
18440
  need_lib_prefix=no
 
18441
  need_version=no
 
18442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18443
  soname_spec='${libname}${release}${shared_ext}$major'
 
18444
  shlibpath_var=LD_LIBRARY_PATH
 
18445
  hardcode_into_libs=yes
 
18446
  if test "$with_gnu_ld" = yes; then
 
18447
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18448
    shlibpath_overrides_runpath=no
 
18449
  else
 
18450
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18451
    shlibpath_overrides_runpath=yes
 
18452
    case $host_os in
 
18453
      sco3.2v5*)
 
18454
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18455
        ;;
 
18456
    esac
 
18457
  fi
 
18458
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18459
  ;;
 
18460
 
 
18461
uts4*)
 
18462
  version_type=linux
 
18463
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18464
  soname_spec='${libname}${release}${shared_ext}$major'
 
18465
  shlibpath_var=LD_LIBRARY_PATH
 
18466
  ;;
 
18467
 
 
18468
*)
 
18469
  dynamic_linker=no
 
18470
  ;;
 
18471
esac
 
18472
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18473
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18474
test "$dynamic_linker" = no && can_build_shared=no
 
18475
 
 
18476
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18477
if test "$GCC" = yes; then
 
18478
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18479
fi
 
18480
 
 
18481
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18482
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18483
hardcode_action_GCJ=
 
18484
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18485
   test -n "$runpath_var_GCJ" || \
 
18486
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18487
 
 
18488
  # We can hardcode non-existant directories.
 
18489
  if test "$hardcode_direct_GCJ" != no &&
 
18490
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18491
     # have to relink, otherwise we might link with an installed library
 
18492
     # when we should be linking with a yet-to-be-installed one
 
18493
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18494
     test "$hardcode_minus_L_GCJ" != no; then
 
18495
    # Linking always hardcodes the temporary library directory.
 
18496
    hardcode_action_GCJ=relink
 
18497
  else
 
18498
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18499
    hardcode_action_GCJ=immediate
 
18500
  fi
 
18501
else
 
18502
  # We cannot hardcode anything, or else we can only hardcode existing
 
18503
  # directories.
 
18504
  hardcode_action_GCJ=unsupported
 
18505
fi
 
18506
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18507
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18508
 
 
18509
if test "$hardcode_action_GCJ" = relink; then
 
18510
  # Fast installation is not supported
 
18511
  enable_fast_install=no
 
18512
elif test "$shlibpath_overrides_runpath" = yes ||
 
18513
     test "$enable_shared" = no; then
 
18514
  # Fast installation is not necessary
 
18515
  enable_fast_install=needless
 
18516
fi
 
18517
 
 
18518
 
 
18519
# The else clause should only fire when bootstrapping the
 
18520
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18521
# with your package, and you will get complaints that there are
 
18522
# no rules to generate ltmain.sh.
 
18523
if test -f "$ltmain"; then
 
18524
  # See if we are running on zsh, and set the options which allow our commands through
 
18525
  # without removal of \ escapes.
 
18526
  if test -n "${ZSH_VERSION+set}" ; then
 
18527
    setopt NO_GLOB_SUBST
 
18528
  fi
 
18529
  # Now quote all the things that may contain metacharacters while being
 
18530
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18531
  # variables and quote the copies for generation of the libtool script.
 
18532
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18533
    SED SHELL STRIP \
 
18534
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18535
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18536
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18537
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18538
    lt_cv_sys_global_symbol_to_c_name_address \
 
18539
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18540
    old_postinstall_cmds old_postuninstall_cmds \
 
18541
    compiler_GCJ \
 
18542
    CC_GCJ \
 
18543
    LD_GCJ \
 
18544
    lt_prog_compiler_wl_GCJ \
 
18545
    lt_prog_compiler_pic_GCJ \
 
18546
    lt_prog_compiler_static_GCJ \
 
18547
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18548
    export_dynamic_flag_spec_GCJ \
 
18549
    thread_safe_flag_spec_GCJ \
 
18550
    whole_archive_flag_spec_GCJ \
 
18551
    enable_shared_with_static_runtimes_GCJ \
 
18552
    old_archive_cmds_GCJ \
 
18553
    old_archive_from_new_cmds_GCJ \
 
18554
    predep_objects_GCJ \
 
18555
    postdep_objects_GCJ \
 
18556
    predeps_GCJ \
 
18557
    postdeps_GCJ \
 
18558
    compiler_lib_search_path_GCJ \
 
18559
    archive_cmds_GCJ \
 
18560
    archive_expsym_cmds_GCJ \
 
18561
    postinstall_cmds_GCJ \
 
18562
    postuninstall_cmds_GCJ \
 
18563
    old_archive_from_expsyms_cmds_GCJ \
 
18564
    allow_undefined_flag_GCJ \
 
18565
    no_undefined_flag_GCJ \
 
18566
    export_symbols_cmds_GCJ \
 
18567
    hardcode_libdir_flag_spec_GCJ \
 
18568
    hardcode_libdir_flag_spec_ld_GCJ \
 
18569
    hardcode_libdir_separator_GCJ \
 
18570
    hardcode_automatic_GCJ \
 
18571
    module_cmds_GCJ \
 
18572
    module_expsym_cmds_GCJ \
 
18573
    lt_cv_prog_compiler_c_o_GCJ \
 
18574
    fix_srcfile_path_GCJ \
 
18575
    exclude_expsyms_GCJ \
 
18576
    include_expsyms_GCJ; do
 
18577
 
 
18578
    case $var in
 
18579
    old_archive_cmds_GCJ | \
 
18580
    old_archive_from_new_cmds_GCJ | \
 
18581
    archive_cmds_GCJ | \
 
18582
    archive_expsym_cmds_GCJ | \
 
18583
    module_cmds_GCJ | \
 
18584
    module_expsym_cmds_GCJ | \
 
18585
    old_archive_from_expsyms_cmds_GCJ | \
 
18586
    export_symbols_cmds_GCJ | \
 
18587
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18588
    postinstall_cmds | postuninstall_cmds | \
 
18589
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18590
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18591
      # Double-quote double-evaled strings.
 
18592
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18593
      ;;
 
18594
    *)
 
18595
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18596
      ;;
 
18597
    esac
 
18598
  done
 
18599
 
 
18600
  case $lt_echo in
 
18601
  *'\$0 --fallback-echo"')
 
18602
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18603
    ;;
 
18604
  esac
 
18605
 
 
18606
cfgfile="$ofile"
 
18607
 
 
18608
  cat <<__EOF__ >> "$cfgfile"
 
18609
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18610
 
 
18611
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18612
 
 
18613
# Shell to use when invoking shell scripts.
 
18614
SHELL=$lt_SHELL
 
18615
 
 
18616
# Whether or not to build shared libraries.
 
18617
build_libtool_libs=$enable_shared
 
18618
 
 
18619
# Whether or not to build static libraries.
 
18620
build_old_libs=$enable_static
 
18621
 
 
18622
# Whether or not to add -lc for building shared libraries.
 
18623
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18624
 
 
18625
# Whether or not to disallow shared libs when runtime libs are static
 
18626
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18627
 
 
18628
# Whether or not to optimize for fast installation.
 
18629
fast_install=$enable_fast_install
 
18630
 
 
18631
# The host system.
 
18632
host_alias=$host_alias
 
18633
host=$host
 
18634
host_os=$host_os
 
18635
 
 
18636
# The build system.
 
18637
build_alias=$build_alias
 
18638
build=$build
 
18639
build_os=$build_os
 
18640
 
 
18641
# An echo program that does not interpret backslashes.
 
18642
echo=$lt_echo
 
18643
 
 
18644
# The archiver.
 
18645
AR=$lt_AR
 
18646
AR_FLAGS=$lt_AR_FLAGS
 
18647
 
 
18648
# A C compiler.
 
18649
LTCC=$lt_LTCC
 
18650
 
 
18651
# LTCC compiler flags.
 
18652
LTCFLAGS=$lt_LTCFLAGS
 
18653
 
 
18654
# A language-specific compiler.
 
18655
CC=$lt_compiler_GCJ
 
18656
 
 
18657
# Is the compiler the GNU C compiler?
 
18658
with_gcc=$GCC_GCJ
 
18659
 
 
18660
# An ERE matcher.
 
18661
EGREP=$lt_EGREP
 
18662
 
 
18663
# The linker used to build libraries.
 
18664
LD=$lt_LD_GCJ
 
18665
 
 
18666
# Whether we need hard or soft links.
 
18667
LN_S=$lt_LN_S
 
18668
 
 
18669
# A BSD-compatible nm program.
 
18670
NM=$lt_NM
 
18671
 
 
18672
# A symbol stripping program
 
18673
STRIP=$lt_STRIP
 
18674
 
 
18675
# Used to examine libraries when file_magic_cmd begins "file"
 
18676
MAGIC_CMD=$MAGIC_CMD
 
18677
 
 
18678
# Used on cygwin: DLL creation program.
 
18679
DLLTOOL="$DLLTOOL"
 
18680
 
 
18681
# Used on cygwin: object dumper.
 
18682
OBJDUMP="$OBJDUMP"
 
18683
 
 
18684
# Used on cygwin: assembler.
 
18685
AS="$AS"
 
18686
 
 
18687
# The name of the directory that contains temporary libtool files.
 
18688
objdir=$objdir
 
18689
 
 
18690
# How to create reloadable object files.
 
18691
reload_flag=$lt_reload_flag
 
18692
reload_cmds=$lt_reload_cmds
 
18693
 
 
18694
# How to pass a linker flag through the compiler.
 
18695
wl=$lt_lt_prog_compiler_wl_GCJ
 
18696
 
 
18697
# Object file suffix (normally "o").
 
18698
objext="$ac_objext"
 
18699
 
 
18700
# Old archive suffix (normally "a").
 
18701
libext="$libext"
 
18702
 
 
18703
# Shared library suffix (normally ".so").
 
18704
shrext_cmds='$shrext_cmds'
 
18705
 
 
18706
# Executable file suffix (normally "").
 
18707
exeext="$exeext"
 
18708
 
 
18709
# Additional compiler flags for building library objects.
 
18710
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18711
pic_mode=$pic_mode
 
18712
 
 
18713
# What is the maximum length of a command?
 
18714
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18715
 
 
18716
# Does compiler simultaneously support -c and -o options?
 
18717
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18718
 
 
18719
# Must we lock files when doing compilation?
 
18720
need_locks=$lt_need_locks
 
18721
 
 
18722
# Do we need the lib prefix for modules?
 
18723
need_lib_prefix=$need_lib_prefix
 
18724
 
 
18725
# Do we need a version for libraries?
 
18726
need_version=$need_version
 
18727
 
 
18728
# Whether dlopen is supported.
 
18729
dlopen_support=$enable_dlopen
 
18730
 
 
18731
# Whether dlopen of programs is supported.
 
18732
dlopen_self=$enable_dlopen_self
 
18733
 
 
18734
# Whether dlopen of statically linked programs is supported.
 
18735
dlopen_self_static=$enable_dlopen_self_static
 
18736
 
 
18737
# Compiler flag to prevent dynamic linking.
 
18738
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18739
 
 
18740
# Compiler flag to turn off builtin functions.
 
18741
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18742
 
 
18743
# Compiler flag to allow reflexive dlopens.
 
18744
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18745
 
 
18746
# Compiler flag to generate shared objects directly from archives.
 
18747
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18748
 
 
18749
# Compiler flag to generate thread-safe objects.
 
18750
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18751
 
 
18752
# Library versioning type.
 
18753
version_type=$version_type
 
18754
 
 
18755
# Format of library name prefix.
 
18756
libname_spec=$lt_libname_spec
 
18757
 
 
18758
# List of archive names.  First name is the real one, the rest are links.
 
18759
# The last name is the one that the linker finds with -lNAME.
 
18760
library_names_spec=$lt_library_names_spec
 
18761
 
 
18762
# The coded name of the library, if different from the real name.
 
18763
soname_spec=$lt_soname_spec
 
18764
 
 
18765
# Commands used to build and install an old-style archive.
 
18766
RANLIB=$lt_RANLIB
 
18767
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18768
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18769
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18770
 
 
18771
# Create an old-style archive from a shared archive.
 
18772
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18773
 
 
18774
# Create a temporary old-style archive to link instead of a shared archive.
 
18775
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18776
 
 
18777
# Commands used to build and install a shared archive.
 
18778
archive_cmds=$lt_archive_cmds_GCJ
 
18779
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18780
postinstall_cmds=$lt_postinstall_cmds
 
18781
postuninstall_cmds=$lt_postuninstall_cmds
 
18782
 
 
18783
# Commands used to build a loadable module (assumed same as above if empty)
 
18784
module_cmds=$lt_module_cmds_GCJ
 
18785
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18786
 
 
18787
# Commands to strip libraries.
 
18788
old_striplib=$lt_old_striplib
 
18789
striplib=$lt_striplib
 
18790
 
 
18791
# Dependencies to place before the objects being linked to create a
 
18792
# shared library.
 
18793
predep_objects=$lt_predep_objects_GCJ
 
18794
 
 
18795
# Dependencies to place after the objects being linked to create a
 
18796
# shared library.
 
18797
postdep_objects=$lt_postdep_objects_GCJ
 
18798
 
 
18799
# Dependencies to place before the objects being linked to create a
 
18800
# shared library.
 
18801
predeps=$lt_predeps_GCJ
 
18802
 
 
18803
# Dependencies to place after the objects being linked to create a
 
18804
# shared library.
 
18805
postdeps=$lt_postdeps_GCJ
 
18806
 
 
18807
# The library search path used internally by the compiler when linking
 
18808
# a shared library.
 
18809
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18810
 
 
18811
# Method to check whether dependent libraries are shared objects.
 
18812
deplibs_check_method=$lt_deplibs_check_method
 
18813
 
 
18814
# Command to use when deplibs_check_method == file_magic.
 
18815
file_magic_cmd=$lt_file_magic_cmd
 
18816
 
 
18817
# Flag that allows shared libraries with undefined symbols to be built.
 
18818
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18819
 
 
18820
# Flag that forces no undefined symbols.
 
18821
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18822
 
 
18823
# Commands used to finish a libtool library installation in a directory.
 
18824
finish_cmds=$lt_finish_cmds
 
18825
 
 
18826
# Same as above, but a single script fragment to be evaled but not shown.
 
18827
finish_eval=$lt_finish_eval
 
18828
 
 
18829
# Take the output of nm and produce a listing of raw symbols and C names.
 
18830
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18831
 
 
18832
# Transform the output of nm in a proper C declaration
 
18833
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18834
 
 
18835
# Transform the output of nm in a C name address pair
 
18836
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18837
 
 
18838
# This is the shared library runtime path variable.
 
18839
runpath_var=$runpath_var
 
18840
 
 
18841
# This is the shared library path variable.
 
18842
shlibpath_var=$shlibpath_var
 
18843
 
 
18844
# Is shlibpath searched before the hard-coded library search path?
 
18845
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18846
 
 
18847
# How to hardcode a shared library path into an executable.
 
18848
hardcode_action=$hardcode_action_GCJ
 
18849
 
 
18850
# Whether we should hardcode library paths into libraries.
 
18851
hardcode_into_libs=$hardcode_into_libs
 
18852
 
 
18853
# Flag to hardcode \$libdir into a binary during linking.
 
18854
# This must work even if \$libdir does not exist.
 
18855
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18856
 
 
18857
# If ld is used when linking, flag to hardcode \$libdir into
 
18858
# a binary during linking. This must work even if \$libdir does
 
18859
# not exist.
 
18860
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18861
 
 
18862
# Whether we need a single -rpath flag with a separated argument.
 
18863
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18864
 
 
18865
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18866
# resulting binary.
 
18867
hardcode_direct=$hardcode_direct_GCJ
 
18868
 
 
18869
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18870
# resulting binary.
 
18871
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18872
 
 
18873
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18874
# the resulting binary.
 
18875
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18876
 
 
18877
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18878
# and all subsequent libraries and executables linked against it.
 
18879
hardcode_automatic=$hardcode_automatic_GCJ
 
18880
 
 
18881
# Variables whose values should be saved in libtool wrapper scripts and
 
18882
# restored at relink time.
 
18883
variables_saved_for_relink="$variables_saved_for_relink"
 
18884
 
 
18885
# Whether libtool must link a program against all its dependency libraries.
 
18886
link_all_deplibs=$link_all_deplibs_GCJ
 
18887
 
 
18888
# Compile-time system search path for libraries
 
18889
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18890
 
 
18891
# Run-time system search path for libraries
 
18892
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18893
 
 
18894
# Fix the shell variable \$srcfile for the compiler.
 
18895
fix_srcfile_path=$lt_fix_srcfile_path
 
18896
 
 
18897
# Set to yes if exported symbols are required.
 
18898
always_export_symbols=$always_export_symbols_GCJ
 
18899
 
 
18900
# The commands to list exported symbols.
 
18901
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18902
 
 
18903
# The commands to extract the exported symbol list from a shared archive.
 
18904
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18905
 
 
18906
# Symbols that should not be listed in the preloaded symbols.
 
18907
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18908
 
 
18909
# Symbols that must always be exported.
 
18910
include_expsyms=$lt_include_expsyms_GCJ
 
18911
 
 
18912
# ### END LIBTOOL TAG CONFIG: $tagname
 
18913
 
 
18914
__EOF__
 
18915
 
 
18916
 
 
18917
else
 
18918
  # If there is no Makefile yet, we rely on a make rule to execute
 
18919
  # `config.status --recheck' to rerun these tests and create the
 
18920
  # libtool script then.
 
18921
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18922
  if test -f "$ltmain_in"; then
 
18923
    test -f Makefile && make "$ltmain"
 
18924
  fi
 
18925
fi
 
18926
 
 
18927
 
 
18928
ac_ext=c
 
18929
ac_cpp='$CPP $CPPFLAGS'
 
18930
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18931
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18932
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18933
 
 
18934
CC="$lt_save_CC"
 
18935
 
 
18936
        else
 
18937
          tagname=""
 
18938
        fi
 
18939
        ;;
 
18940
 
 
18941
      RC)
 
18942
 
 
18943
 
 
18944
# Source file extension for RC test sources.
 
18945
ac_ext=rc
 
18946
 
 
18947
# Object file extension for compiled RC test sources.
 
18948
objext=o
 
18949
objext_RC=$objext
 
18950
 
 
18951
# Code to be used in simple compile tests
 
18952
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
18953
 
 
18954
# Code to be used in simple link tests
 
18955
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18956
 
 
18957
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18958
 
 
18959
# If no C compiler was specified, use CC.
 
18960
LTCC=${LTCC-"$CC"}
 
18961
 
 
18962
# If no C compiler flags were specified, use CFLAGS.
 
18963
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18964
 
 
18965
# Allow CC to be a program name with arguments.
 
18966
compiler=$CC
 
18967
 
 
18968
 
 
18969
# save warnings/boilerplate of simple test code
 
18970
ac_outfile=conftest.$ac_objext
 
18971
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18972
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18973
_lt_compiler_boilerplate=`cat conftest.err`
 
18974
$rm conftest*
 
18975
 
 
18976
ac_outfile=conftest.$ac_objext
 
18977
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
18978
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18979
_lt_linker_boilerplate=`cat conftest.err`
 
18980
$rm conftest*
 
18981
 
 
18982
 
 
18983
# Allow CC to be a program name with arguments.
 
18984
lt_save_CC="$CC"
 
18985
CC=${RC-"windres"}
 
18986
compiler=$CC
 
18987
compiler_RC=$CC
 
18988
for cc_temp in $compiler""; do
 
18989
  case $cc_temp in
 
18990
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18991
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18992
    \-*) ;;
 
18993
    *) break;;
 
18994
  esac
 
18995
done
 
18996
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18997
 
 
18998
lt_cv_prog_compiler_c_o_RC=yes
 
18999
 
 
19000
# The else clause should only fire when bootstrapping the
 
19001
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19002
# with your package, and you will get complaints that there are
 
19003
# no rules to generate ltmain.sh.
 
19004
if test -f "$ltmain"; then
 
19005
  # See if we are running on zsh, and set the options which allow our commands through
 
19006
  # without removal of \ escapes.
 
19007
  if test -n "${ZSH_VERSION+set}" ; then
 
19008
    setopt NO_GLOB_SUBST
 
19009
  fi
 
19010
  # Now quote all the things that may contain metacharacters while being
 
19011
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19012
  # variables and quote the copies for generation of the libtool script.
 
19013
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19014
    SED SHELL STRIP \
 
19015
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19016
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19017
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19018
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19019
    lt_cv_sys_global_symbol_to_c_name_address \
 
19020
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19021
    old_postinstall_cmds old_postuninstall_cmds \
 
19022
    compiler_RC \
 
19023
    CC_RC \
 
19024
    LD_RC \
 
19025
    lt_prog_compiler_wl_RC \
 
19026
    lt_prog_compiler_pic_RC \
 
19027
    lt_prog_compiler_static_RC \
 
19028
    lt_prog_compiler_no_builtin_flag_RC \
 
19029
    export_dynamic_flag_spec_RC \
 
19030
    thread_safe_flag_spec_RC \
 
19031
    whole_archive_flag_spec_RC \
 
19032
    enable_shared_with_static_runtimes_RC \
 
19033
    old_archive_cmds_RC \
 
19034
    old_archive_from_new_cmds_RC \
 
19035
    predep_objects_RC \
 
19036
    postdep_objects_RC \
 
19037
    predeps_RC \
 
19038
    postdeps_RC \
 
19039
    compiler_lib_search_path_RC \
 
19040
    archive_cmds_RC \
 
19041
    archive_expsym_cmds_RC \
 
19042
    postinstall_cmds_RC \
 
19043
    postuninstall_cmds_RC \
 
19044
    old_archive_from_expsyms_cmds_RC \
 
19045
    allow_undefined_flag_RC \
 
19046
    no_undefined_flag_RC \
 
19047
    export_symbols_cmds_RC \
 
19048
    hardcode_libdir_flag_spec_RC \
 
19049
    hardcode_libdir_flag_spec_ld_RC \
 
19050
    hardcode_libdir_separator_RC \
 
19051
    hardcode_automatic_RC \
 
19052
    module_cmds_RC \
 
19053
    module_expsym_cmds_RC \
 
19054
    lt_cv_prog_compiler_c_o_RC \
 
19055
    fix_srcfile_path_RC \
 
19056
    exclude_expsyms_RC \
 
19057
    include_expsyms_RC; do
 
19058
 
 
19059
    case $var in
 
19060
    old_archive_cmds_RC | \
 
19061
    old_archive_from_new_cmds_RC | \
 
19062
    archive_cmds_RC | \
 
19063
    archive_expsym_cmds_RC | \
 
19064
    module_cmds_RC | \
 
19065
    module_expsym_cmds_RC | \
 
19066
    old_archive_from_expsyms_cmds_RC | \
 
19067
    export_symbols_cmds_RC | \
 
19068
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19069
    postinstall_cmds | postuninstall_cmds | \
 
19070
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19071
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19072
      # Double-quote double-evaled strings.
 
19073
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19074
      ;;
 
19075
    *)
 
19076
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19077
      ;;
 
19078
    esac
 
19079
  done
 
19080
 
 
19081
  case $lt_echo in
 
19082
  *'\$0 --fallback-echo"')
 
19083
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19084
    ;;
 
19085
  esac
 
19086
 
 
19087
cfgfile="$ofile"
 
19088
 
 
19089
  cat <<__EOF__ >> "$cfgfile"
 
19090
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19091
 
 
19092
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19093
 
 
19094
# Shell to use when invoking shell scripts.
 
19095
SHELL=$lt_SHELL
 
19096
 
 
19097
# Whether or not to build shared libraries.
 
19098
build_libtool_libs=$enable_shared
 
19099
 
 
19100
# Whether or not to build static libraries.
 
19101
build_old_libs=$enable_static
 
19102
 
 
19103
# Whether or not to add -lc for building shared libraries.
 
19104
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19105
 
 
19106
# Whether or not to disallow shared libs when runtime libs are static
 
19107
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19108
 
 
19109
# Whether or not to optimize for fast installation.
 
19110
fast_install=$enable_fast_install
 
19111
 
 
19112
# The host system.
 
19113
host_alias=$host_alias
 
19114
host=$host
 
19115
host_os=$host_os
 
19116
 
 
19117
# The build system.
 
19118
build_alias=$build_alias
 
19119
build=$build
 
19120
build_os=$build_os
 
19121
 
 
19122
# An echo program that does not interpret backslashes.
 
19123
echo=$lt_echo
 
19124
 
 
19125
# The archiver.
 
19126
AR=$lt_AR
 
19127
AR_FLAGS=$lt_AR_FLAGS
 
19128
 
 
19129
# A C compiler.
 
19130
LTCC=$lt_LTCC
 
19131
 
 
19132
# LTCC compiler flags.
 
19133
LTCFLAGS=$lt_LTCFLAGS
 
19134
 
 
19135
# A language-specific compiler.
 
19136
CC=$lt_compiler_RC
 
19137
 
 
19138
# Is the compiler the GNU C compiler?
 
19139
with_gcc=$GCC_RC
 
19140
 
 
19141
# An ERE matcher.
 
19142
EGREP=$lt_EGREP
 
19143
 
 
19144
# The linker used to build libraries.
 
19145
LD=$lt_LD_RC
 
19146
 
 
19147
# Whether we need hard or soft links.
 
19148
LN_S=$lt_LN_S
 
19149
 
 
19150
# A BSD-compatible nm program.
 
19151
NM=$lt_NM
 
19152
 
 
19153
# A symbol stripping program
 
19154
STRIP=$lt_STRIP
 
19155
 
 
19156
# Used to examine libraries when file_magic_cmd begins "file"
 
19157
MAGIC_CMD=$MAGIC_CMD
 
19158
 
 
19159
# Used on cygwin: DLL creation program.
 
19160
DLLTOOL="$DLLTOOL"
 
19161
 
 
19162
# Used on cygwin: object dumper.
 
19163
OBJDUMP="$OBJDUMP"
 
19164
 
 
19165
# Used on cygwin: assembler.
 
19166
AS="$AS"
 
19167
 
 
19168
# The name of the directory that contains temporary libtool files.
 
19169
objdir=$objdir
 
19170
 
 
19171
# How to create reloadable object files.
 
19172
reload_flag=$lt_reload_flag
 
19173
reload_cmds=$lt_reload_cmds
 
19174
 
 
19175
# How to pass a linker flag through the compiler.
 
19176
wl=$lt_lt_prog_compiler_wl_RC
 
19177
 
 
19178
# Object file suffix (normally "o").
 
19179
objext="$ac_objext"
 
19180
 
 
19181
# Old archive suffix (normally "a").
 
19182
libext="$libext"
 
19183
 
 
19184
# Shared library suffix (normally ".so").
 
19185
shrext_cmds='$shrext_cmds'
 
19186
 
 
19187
# Executable file suffix (normally "").
 
19188
exeext="$exeext"
 
19189
 
 
19190
# Additional compiler flags for building library objects.
 
19191
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19192
pic_mode=$pic_mode
 
19193
 
 
19194
# What is the maximum length of a command?
 
19195
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19196
 
 
19197
# Does compiler simultaneously support -c and -o options?
 
19198
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19199
 
 
19200
# Must we lock files when doing compilation?
 
19201
need_locks=$lt_need_locks
 
19202
 
 
19203
# Do we need the lib prefix for modules?
 
19204
need_lib_prefix=$need_lib_prefix
 
19205
 
 
19206
# Do we need a version for libraries?
 
19207
need_version=$need_version
 
19208
 
 
19209
# Whether dlopen is supported.
 
19210
dlopen_support=$enable_dlopen
 
19211
 
 
19212
# Whether dlopen of programs is supported.
 
19213
dlopen_self=$enable_dlopen_self
 
19214
 
 
19215
# Whether dlopen of statically linked programs is supported.
 
19216
dlopen_self_static=$enable_dlopen_self_static
 
19217
 
 
19218
# Compiler flag to prevent dynamic linking.
 
19219
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19220
 
 
19221
# Compiler flag to turn off builtin functions.
 
19222
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19223
 
 
19224
# Compiler flag to allow reflexive dlopens.
 
19225
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19226
 
 
19227
# Compiler flag to generate shared objects directly from archives.
 
19228
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19229
 
 
19230
# Compiler flag to generate thread-safe objects.
 
19231
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19232
 
 
19233
# Library versioning type.
 
19234
version_type=$version_type
 
19235
 
 
19236
# Format of library name prefix.
 
19237
libname_spec=$lt_libname_spec
 
19238
 
 
19239
# List of archive names.  First name is the real one, the rest are links.
 
19240
# The last name is the one that the linker finds with -lNAME.
 
19241
library_names_spec=$lt_library_names_spec
 
19242
 
 
19243
# The coded name of the library, if different from the real name.
 
19244
soname_spec=$lt_soname_spec
 
19245
 
 
19246
# Commands used to build and install an old-style archive.
 
19247
RANLIB=$lt_RANLIB
 
19248
old_archive_cmds=$lt_old_archive_cmds_RC
 
19249
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19250
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19251
 
 
19252
# Create an old-style archive from a shared archive.
 
19253
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19254
 
 
19255
# Create a temporary old-style archive to link instead of a shared archive.
 
19256
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19257
 
 
19258
# Commands used to build and install a shared archive.
 
19259
archive_cmds=$lt_archive_cmds_RC
 
19260
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19261
postinstall_cmds=$lt_postinstall_cmds
 
19262
postuninstall_cmds=$lt_postuninstall_cmds
 
19263
 
 
19264
# Commands used to build a loadable module (assumed same as above if empty)
 
19265
module_cmds=$lt_module_cmds_RC
 
19266
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19267
 
 
19268
# Commands to strip libraries.
 
19269
old_striplib=$lt_old_striplib
 
19270
striplib=$lt_striplib
 
19271
 
 
19272
# Dependencies to place before the objects being linked to create a
 
19273
# shared library.
 
19274
predep_objects=$lt_predep_objects_RC
 
19275
 
 
19276
# Dependencies to place after the objects being linked to create a
 
19277
# shared library.
 
19278
postdep_objects=$lt_postdep_objects_RC
 
19279
 
 
19280
# Dependencies to place before the objects being linked to create a
 
19281
# shared library.
 
19282
predeps=$lt_predeps_RC
 
19283
 
 
19284
# Dependencies to place after the objects being linked to create a
 
19285
# shared library.
 
19286
postdeps=$lt_postdeps_RC
 
19287
 
 
19288
# The library search path used internally by the compiler when linking
 
19289
# a shared library.
 
19290
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19291
 
 
19292
# Method to check whether dependent libraries are shared objects.
 
19293
deplibs_check_method=$lt_deplibs_check_method
 
19294
 
 
19295
# Command to use when deplibs_check_method == file_magic.
 
19296
file_magic_cmd=$lt_file_magic_cmd
 
19297
 
 
19298
# Flag that allows shared libraries with undefined symbols to be built.
 
19299
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19300
 
 
19301
# Flag that forces no undefined symbols.
 
19302
no_undefined_flag=$lt_no_undefined_flag_RC
 
19303
 
 
19304
# Commands used to finish a libtool library installation in a directory.
 
19305
finish_cmds=$lt_finish_cmds
 
19306
 
 
19307
# Same as above, but a single script fragment to be evaled but not shown.
 
19308
finish_eval=$lt_finish_eval
 
19309
 
 
19310
# Take the output of nm and produce a listing of raw symbols and C names.
 
19311
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19312
 
 
19313
# Transform the output of nm in a proper C declaration
 
19314
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19315
 
 
19316
# Transform the output of nm in a C name address pair
 
19317
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19318
 
 
19319
# This is the shared library runtime path variable.
 
19320
runpath_var=$runpath_var
 
19321
 
 
19322
# This is the shared library path variable.
 
19323
shlibpath_var=$shlibpath_var
 
19324
 
 
19325
# Is shlibpath searched before the hard-coded library search path?
 
19326
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19327
 
 
19328
# How to hardcode a shared library path into an executable.
 
19329
hardcode_action=$hardcode_action_RC
 
19330
 
 
19331
# Whether we should hardcode library paths into libraries.
 
19332
hardcode_into_libs=$hardcode_into_libs
 
19333
 
 
19334
# Flag to hardcode \$libdir into a binary during linking.
 
19335
# This must work even if \$libdir does not exist.
 
19336
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19337
 
 
19338
# If ld is used when linking, flag to hardcode \$libdir into
 
19339
# a binary during linking. This must work even if \$libdir does
 
19340
# not exist.
 
19341
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19342
 
 
19343
# Whether we need a single -rpath flag with a separated argument.
 
19344
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19345
 
 
19346
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19347
# resulting binary.
 
19348
hardcode_direct=$hardcode_direct_RC
 
19349
 
 
19350
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19351
# resulting binary.
 
19352
hardcode_minus_L=$hardcode_minus_L_RC
 
19353
 
 
19354
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19355
# the resulting binary.
 
19356
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19357
 
 
19358
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19359
# and all subsequent libraries and executables linked against it.
 
19360
hardcode_automatic=$hardcode_automatic_RC
 
19361
 
 
19362
# Variables whose values should be saved in libtool wrapper scripts and
 
19363
# restored at relink time.
 
19364
variables_saved_for_relink="$variables_saved_for_relink"
 
19365
 
 
19366
# Whether libtool must link a program against all its dependency libraries.
 
19367
link_all_deplibs=$link_all_deplibs_RC
 
19368
 
 
19369
# Compile-time system search path for libraries
 
19370
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19371
 
 
19372
# Run-time system search path for libraries
 
19373
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19374
 
 
19375
# Fix the shell variable \$srcfile for the compiler.
 
19376
fix_srcfile_path=$lt_fix_srcfile_path
 
19377
 
 
19378
# Set to yes if exported symbols are required.
 
19379
always_export_symbols=$always_export_symbols_RC
 
19380
 
 
19381
# The commands to list exported symbols.
 
19382
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19383
 
 
19384
# The commands to extract the exported symbol list from a shared archive.
 
19385
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19386
 
 
19387
# Symbols that should not be listed in the preloaded symbols.
 
19388
exclude_expsyms=$lt_exclude_expsyms_RC
 
19389
 
 
19390
# Symbols that must always be exported.
 
19391
include_expsyms=$lt_include_expsyms_RC
 
19392
 
 
19393
# ### END LIBTOOL TAG CONFIG: $tagname
 
19394
 
 
19395
__EOF__
 
19396
 
 
19397
 
 
19398
else
 
19399
  # If there is no Makefile yet, we rely on a make rule to execute
 
19400
  # `config.status --recheck' to rerun these tests and create the
 
19401
  # libtool script then.
 
19402
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19403
  if test -f "$ltmain_in"; then
 
19404
    test -f Makefile && make "$ltmain"
 
19405
  fi
 
19406
fi
 
19407
 
 
19408
 
 
19409
ac_ext=c
 
19410
ac_cpp='$CPP $CPPFLAGS'
 
19411
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19412
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19413
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19414
 
 
19415
CC="$lt_save_CC"
 
19416
 
 
19417
        ;;
 
19418
 
 
19419
      *)
 
19420
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19421
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19422
   { (exit 1); exit 1; }; }
 
19423
        ;;
 
19424
      esac
 
19425
 
 
19426
      # Append the new tag name to the list of available tags.
 
19427
      if test -n "$tagname" ; then
 
19428
      available_tags="$available_tags $tagname"
 
19429
    fi
 
19430
    fi
 
19431
  done
 
19432
  IFS="$lt_save_ifs"
 
19433
 
 
19434
  # Now substitute the updated list of available tags.
 
19435
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19436
    mv "${ofile}T" "$ofile"
 
19437
    chmod +x "$ofile"
 
19438
  else
 
19439
    rm -f "${ofile}T"
 
19440
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19441
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19442
   { (exit 1); exit 1; }; }
 
19443
  fi
 
19444
fi
 
19445
 
 
19446
 
 
19447
 
 
19448
# This can be used to rebuild libtool when needed
 
19449
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19450
 
 
19451
# Always use our own libtool.
 
19452
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19453
 
 
19454
# Prevent multiple expansion
 
19455
 
 
19456
 
 
19457
 
 
19458
 
 
19459
 
 
19460
 
 
19461
 
 
19462
 
 
19463
 
 
19464
 
 
19465
 
 
19466
 
 
19467
 
 
19468
 
 
19469
 
 
19470
 
 
19471
 
 
19472
 
 
19473
 
 
19474
 
 
19475
# Extract the first word of "setcap", so it can be a program name with args.
 
19476
set dummy setcap; ac_word=$2
 
19477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19479
if test "${ac_cv_prog_SETCAP+set}" = set; then
 
19480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19481
else
 
19482
  if test -n "$SETCAP"; then
 
19483
  ac_cv_prog_SETCAP="$SETCAP" # Let the user override the test.
 
19484
else
 
19485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19486
for as_dir in $PATH
 
19487
do
 
19488
  IFS=$as_save_IFS
 
19489
  test -z "$as_dir" && as_dir=.
 
19490
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19492
    ac_cv_prog_SETCAP="yes"
 
19493
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19494
    break 2
 
19495
  fi
 
19496
done
 
19497
done
 
19498
IFS=$as_save_IFS
 
19499
 
 
19500
  test -z "$ac_cv_prog_SETCAP" && ac_cv_prog_SETCAP="no"
 
19501
fi
 
19502
fi
 
19503
SETCAP=$ac_cv_prog_SETCAP
 
19504
if test -n "$SETCAP"; then
 
19505
  { echo "$as_me:$LINENO: result: $SETCAP" >&5
 
19506
echo "${ECHO_T}$SETCAP" >&6; }
 
19507
else
 
19508
  { echo "$as_me:$LINENO: result: no" >&5
 
19509
echo "${ECHO_T}no" >&6; }
 
19510
fi
 
19511
 
 
19512
 
 
19513
# Extract the first word of "docbook2man", so it can be a program name with args.
 
19514
set dummy docbook2man; ac_word=$2
 
19515
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19516
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19517
if test "${ac_cv_prog_DOCBOOK+set}" = set; then
 
19518
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19519
else
 
19520
  if test -n "$DOCBOOK"; then
 
19521
  ac_cv_prog_DOCBOOK="$DOCBOOK" # Let the user override the test.
 
19522
else
 
19523
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19524
for as_dir in $PATH
 
19525
do
 
19526
  IFS=$as_save_IFS
 
19527
  test -z "$as_dir" && as_dir=.
 
19528
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19529
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19530
    ac_cv_prog_DOCBOOK="yes"
 
19531
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19532
    break 2
 
19533
  fi
 
19534
done
 
19535
done
 
19536
IFS=$as_save_IFS
 
19537
 
 
19538
  test -z "$ac_cv_prog_DOCBOOK" && ac_cv_prog_DOCBOOK="no"
 
19539
fi
 
19540
fi
 
19541
DOCBOOK=$ac_cv_prog_DOCBOOK
 
19542
if test -n "$DOCBOOK"; then
 
19543
  { echo "$as_me:$LINENO: result: $DOCBOOK" >&5
 
19544
echo "${ECHO_T}$DOCBOOK" >&6; }
 
19545
else
 
19546
  { echo "$as_me:$LINENO: result: no" >&5
 
19547
echo "${ECHO_T}no" >&6; }
 
19548
fi
 
19549
 
 
19550
 
 
19551
 if test x$DOCBOOK = xyes; then
 
19552
  ENABLE_DOCBOOK_TRUE=
 
19553
  ENABLE_DOCBOOK_FALSE='#'
 
19554
else
 
19555
  ENABLE_DOCBOOK_TRUE='#'
 
19556
  ENABLE_DOCBOOK_FALSE=
 
19557
fi
 
19558
 
 
19559
 
 
19560
    EXP_VAR=BINDIR
 
19561
    FROM_VAR=$bindir
 
19562
 
 
19563
        prefix_save=$prefix
 
19564
    exec_prefix_save=$exec_prefix
 
19565
 
 
19566
        if test "x$prefix" = "xNONE"; then
 
19567
        prefix="$ac_default_prefix"
 
19568
    fi
 
19569
        if test "x$exec_prefix" = "xNONE"; then
 
19570
        exec_prefix=$prefix
 
19571
    fi
 
19572
 
 
19573
    full_var="$FROM_VAR"
 
19574
        while true; do
 
19575
        new_full_var="`eval echo $full_var`"
 
19576
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
19577
        full_var=$new_full_var
 
19578
    done
 
19579
 
 
19580
        full_var=$new_full_var
 
19581
    BINDIR="$full_var"
 
19582
 
 
19583
 
 
19584
        prefix=$prefix_save
 
19585
    exec_prefix=$exec_prefix_save
 
19586
 
 
19587
 
 
19588
    EXP_VAR=LIBEXECDIR
 
19589
    FROM_VAR=$libexecdir
 
19590
 
 
19591
        prefix_save=$prefix
 
19592
    exec_prefix_save=$exec_prefix
 
19593
 
 
19594
        if test "x$prefix" = "xNONE"; then
 
19595
        prefix="$ac_default_prefix"
 
19596
    fi
 
19597
        if test "x$exec_prefix" = "xNONE"; then
 
19598
        exec_prefix=$prefix
 
19599
    fi
 
19600
 
 
19601
    full_var="$FROM_VAR"
 
19602
        while true; do
 
19603
        new_full_var="`eval echo $full_var`"
 
19604
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
19605
        full_var=$new_full_var
 
19606
    done
 
19607
 
 
19608
        full_var=$new_full_var
 
19609
    LIBEXECDIR="$full_var"
 
19610
 
 
19611
 
 
19612
        prefix=$prefix_save
 
19613
    exec_prefix=$exec_prefix_save
 
19614
 
 
19615
 
 
19616
    EXP_VAR=SYSCONFDIR
 
19617
    FROM_VAR=$sysconfdir
 
19618
 
 
19619
        prefix_save=$prefix
 
19620
    exec_prefix_save=$exec_prefix
 
19621
 
 
19622
        if test "x$prefix" = "xNONE"; then
 
19623
        prefix="$ac_default_prefix"
 
19624
    fi
 
19625
        if test "x$exec_prefix" = "xNONE"; then
 
19626
        exec_prefix=$prefix
 
19627
    fi
 
19628
 
 
19629
    full_var="$FROM_VAR"
 
19630
        while true; do
 
19631
        new_full_var="`eval echo $full_var`"
 
19632
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
19633
        full_var=$new_full_var
 
19634
    done
 
19635
 
 
19636
        full_var=$new_full_var
 
19637
    SYSCONFDIR="$full_var"
 
19638
 
 
19639
 
 
19640
        prefix=$prefix_save
 
19641
    exec_prefix=$exec_prefix_save
 
19642
 
 
19643
 
 
19644
    EXP_VAR=LOCALSTATEDIR
 
19645
    FROM_VAR=$localstatedir
 
19646
 
 
19647
        prefix_save=$prefix
 
19648
    exec_prefix_save=$exec_prefix
 
19649
 
 
19650
        if test "x$prefix" = "xNONE"; then
 
19651
        prefix="$ac_default_prefix"
 
19652
    fi
 
19653
        if test "x$exec_prefix" = "xNONE"; then
 
19654
        exec_prefix=$prefix
 
19655
    fi
 
19656
 
 
19657
    full_var="$FROM_VAR"
 
19658
        while true; do
 
19659
        new_full_var="`eval echo $full_var`"
 
19660
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
19661
        full_var=$new_full_var
 
19662
    done
 
19663
 
 
19664
        full_var=$new_full_var
 
19665
    LOCALSTATEDIR="$full_var"
 
19666
 
 
19667
 
 
19668
        prefix=$prefix_save
 
19669
    exec_prefix=$exec_prefix_save
 
19670
 
 
19671
 
 
19672
    EXP_VAR=LXCPATH
 
19673
    FROM_VAR="${localstatedir}/lib/lxc"
 
19674
 
 
19675
        prefix_save=$prefix
 
19676
    exec_prefix_save=$exec_prefix
 
19677
 
 
19678
        if test "x$prefix" = "xNONE"; then
 
19679
        prefix="$ac_default_prefix"
 
19680
    fi
 
19681
        if test "x$exec_prefix" = "xNONE"; then
 
19682
        exec_prefix=$prefix
 
19683
    fi
 
19684
 
 
19685
    full_var="$FROM_VAR"
 
19686
        while true; do
 
19687
        new_full_var="`eval echo $full_var`"
 
19688
        if test "x$new_full_var" = "x$full_var"; then break; fi
 
19689
        full_var=$new_full_var
 
19690
    done
 
19691
 
 
19692
        full_var=$new_full_var
 
19693
    LXCPATH="$full_var"
 
19694
 
 
19695
 
 
19696
        prefix=$prefix_save
 
19697
    exec_prefix=$exec_prefix_save
 
19698
 
 
19699
 
 
19700
 
 
19701
 
 
19702
for ac_header in linux/netlink.h linux/genetlink.h
 
19703
do
 
19704
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19705
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19706
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19707
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19709
else
 
19710
  cat >conftest.$ac_ext <<_ACEOF
 
19711
/* confdefs.h.  */
 
19712
_ACEOF
 
19713
cat confdefs.h >>conftest.$ac_ext
 
19714
cat >>conftest.$ac_ext <<_ACEOF
 
19715
/* end confdefs.h.  */
 
19716
#include <linux/types.h>
 
19717
#include <bits/sockaddr.h>
 
19718
#include <linux/socket.h>
 
19719
 
 
19720
#include <$ac_header>
 
19721
_ACEOF
 
19722
rm -f conftest.$ac_objext
 
19723
if { (ac_try="$ac_compile"
 
19724
case "(($ac_try" in
 
19725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19726
  *) ac_try_echo=$ac_try;;
 
19727
esac
 
19728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19729
  (eval "$ac_compile") 2>conftest.er1
 
19730
  ac_status=$?
 
19731
  grep -v '^ *+' conftest.er1 >conftest.err
 
19732
  rm -f conftest.er1
 
19733
  cat conftest.err >&5
 
19734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19735
  (exit $ac_status); } && {
 
19736
         test -z "$ac_c_werror_flag" ||
 
19737
         test ! -s conftest.err
 
19738
       } && test -s conftest.$ac_objext; then
 
19739
  eval "$as_ac_Header=yes"
 
19740
else
 
19741
  echo "$as_me: failed program was:" >&5
 
19742
sed 's/^/| /' conftest.$ac_ext >&5
 
19743
 
 
19744
        eval "$as_ac_Header=no"
 
19745
fi
 
19746
 
 
19747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19748
fi
 
19749
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19750
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19751
echo "${ECHO_T}$ac_res" >&6; }
 
19752
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19753
  cat >>confdefs.h <<_ACEOF
 
19754
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19755
_ACEOF
 
19756
 
 
19757
else
 
19758
  { { echo "$as_me:$LINENO: error: netlink headers not found" >&5
 
19759
echo "$as_me: error: netlink headers not found" >&2;}
 
19760
   { (exit 1); exit 1; }; }
 
19761
fi
 
19762
 
 
19763
done
 
19764
 
 
19765
 
 
19766
 
 
19767
for ac_header in sys/capability.h
 
19768
do
 
19769
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19770
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19771
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19772
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19774
else
 
19775
  cat >conftest.$ac_ext <<_ACEOF
 
19776
/* confdefs.h.  */
 
19777
_ACEOF
 
19778
cat confdefs.h >>conftest.$ac_ext
 
19779
cat >>conftest.$ac_ext <<_ACEOF
 
19780
/* end confdefs.h.  */
 
19781
#include <sys/capability.h>
 
19782
 
 
19783
#include <$ac_header>
 
19784
_ACEOF
 
19785
rm -f conftest.$ac_objext
 
19786
if { (ac_try="$ac_compile"
 
19787
case "(($ac_try" in
 
19788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19789
  *) ac_try_echo=$ac_try;;
 
19790
esac
 
19791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19792
  (eval "$ac_compile") 2>conftest.er1
 
19793
  ac_status=$?
 
19794
  grep -v '^ *+' conftest.er1 >conftest.err
 
19795
  rm -f conftest.er1
 
19796
  cat conftest.err >&5
 
19797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19798
  (exit $ac_status); } && {
 
19799
         test -z "$ac_c_werror_flag" ||
 
19800
         test ! -s conftest.err
 
19801
       } && test -s conftest.$ac_objext; then
 
19802
  eval "$as_ac_Header=yes"
 
19803
else
 
19804
  echo "$as_me: failed program was:" >&5
 
19805
sed 's/^/| /' conftest.$ac_ext >&5
 
19806
 
 
19807
        eval "$as_ac_Header=no"
 
19808
fi
 
19809
 
 
19810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19811
fi
 
19812
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19813
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19814
echo "${ECHO_T}$ac_res" >&6; }
 
19815
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19816
  cat >>confdefs.h <<_ACEOF
 
19817
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19818
_ACEOF
 
19819
 
 
19820
else
 
19821
  { { echo "$as_me:$LINENO: error: please install libcap-devel." >&5
 
19822
echo "$as_me: error: please install libcap-devel." >&2;}
 
19823
   { (exit 1); exit 1; }; }
 
19824
fi
 
19825
 
 
19826
done
 
19827
 
 
19828
 
 
19829
# Some systems lack PR_CAPBSET_DROP definition => HAVE_DECL_PR_CAPBSET_DROP
 
19830
{ echo "$as_me:$LINENO: checking whether PR_CAPBSET_DROP is declared" >&5
 
19831
echo $ECHO_N "checking whether PR_CAPBSET_DROP is declared... $ECHO_C" >&6; }
 
19832
if test "${ac_cv_have_decl_PR_CAPBSET_DROP+set}" = set; then
 
19833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19834
else
 
19835
  cat >conftest.$ac_ext <<_ACEOF
 
19836
/* confdefs.h.  */
 
19837
_ACEOF
 
19838
cat confdefs.h >>conftest.$ac_ext
 
19839
cat >>conftest.$ac_ext <<_ACEOF
 
19840
/* end confdefs.h.  */
 
19841
#include <sys/prctl.h>
 
19842
 
 
19843
int
 
19844
main ()
 
19845
{
 
19846
#ifndef PR_CAPBSET_DROP
 
19847
  (void) PR_CAPBSET_DROP;
 
19848
#endif
 
19849
 
 
19850
  ;
 
19851
  return 0;
 
19852
}
 
19853
_ACEOF
 
19854
rm -f conftest.$ac_objext
 
19855
if { (ac_try="$ac_compile"
 
19856
case "(($ac_try" in
 
19857
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19858
  *) ac_try_echo=$ac_try;;
 
19859
esac
 
19860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19861
  (eval "$ac_compile") 2>conftest.er1
 
19862
  ac_status=$?
 
19863
  grep -v '^ *+' conftest.er1 >conftest.err
 
19864
  rm -f conftest.er1
 
19865
  cat conftest.err >&5
 
19866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19867
  (exit $ac_status); } && {
 
19868
         test -z "$ac_c_werror_flag" ||
 
19869
         test ! -s conftest.err
 
19870
       } && test -s conftest.$ac_objext; then
 
19871
  ac_cv_have_decl_PR_CAPBSET_DROP=yes
 
19872
else
 
19873
  echo "$as_me: failed program was:" >&5
 
19874
sed 's/^/| /' conftest.$ac_ext >&5
 
19875
 
 
19876
        ac_cv_have_decl_PR_CAPBSET_DROP=no
 
19877
fi
 
19878
 
 
19879
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19880
fi
 
19881
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_PR_CAPBSET_DROP" >&5
 
19882
echo "${ECHO_T}$ac_cv_have_decl_PR_CAPBSET_DROP" >&6; }
 
19883
if test $ac_cv_have_decl_PR_CAPBSET_DROP = yes; then
 
19884
 
 
19885
cat >>confdefs.h <<_ACEOF
 
19886
#define HAVE_DECL_PR_CAPBSET_DROP 1
 
19887
_ACEOF
 
19888
 
 
19889
 
 
19890
else
 
19891
  cat >>confdefs.h <<_ACEOF
 
19892
#define HAVE_DECL_PR_CAPBSET_DROP 0
 
19893
_ACEOF
 
19894
 
 
19895
 
 
19896
fi
 
19897
 
 
19898
 
 
19899
 
 
19900
 
 
19901
for ac_header in sys/signalfd.h
 
19902
do
 
19903
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19904
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19905
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19906
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19907
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19908
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19909
fi
 
19910
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19911
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19912
echo "${ECHO_T}$ac_res" >&6; }
 
19913
else
 
19914
  # Is the header compilable?
 
19915
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19916
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
19917
cat >conftest.$ac_ext <<_ACEOF
 
19918
/* confdefs.h.  */
 
19919
_ACEOF
 
19920
cat confdefs.h >>conftest.$ac_ext
 
19921
cat >>conftest.$ac_ext <<_ACEOF
 
19922
/* end confdefs.h.  */
 
19923
$ac_includes_default
 
19924
#include <$ac_header>
 
19925
_ACEOF
 
19926
rm -f conftest.$ac_objext
 
19927
if { (ac_try="$ac_compile"
 
19928
case "(($ac_try" in
 
19929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19930
  *) ac_try_echo=$ac_try;;
 
19931
esac
 
19932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19933
  (eval "$ac_compile") 2>conftest.er1
 
19934
  ac_status=$?
 
19935
  grep -v '^ *+' conftest.er1 >conftest.err
 
19936
  rm -f conftest.er1
 
19937
  cat conftest.err >&5
 
19938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19939
  (exit $ac_status); } && {
 
19940
         test -z "$ac_c_werror_flag" ||
 
19941
         test ! -s conftest.err
 
19942
       } && test -s conftest.$ac_objext; then
 
19943
  ac_header_compiler=yes
 
19944
else
 
19945
  echo "$as_me: failed program was:" >&5
 
19946
sed 's/^/| /' conftest.$ac_ext >&5
 
19947
 
 
19948
        ac_header_compiler=no
 
19949
fi
 
19950
 
 
19951
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19952
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19953
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19954
 
 
19955
# Is the header present?
 
19956
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19957
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
19958
cat >conftest.$ac_ext <<_ACEOF
 
19959
/* confdefs.h.  */
 
19960
_ACEOF
 
19961
cat confdefs.h >>conftest.$ac_ext
 
19962
cat >>conftest.$ac_ext <<_ACEOF
 
19963
/* end confdefs.h.  */
 
19964
#include <$ac_header>
 
19965
_ACEOF
 
19966
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19967
case "(($ac_try" in
 
19968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19969
  *) ac_try_echo=$ac_try;;
 
19970
esac
 
19971
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19972
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19973
  ac_status=$?
 
19974
  grep -v '^ *+' conftest.er1 >conftest.err
 
19975
  rm -f conftest.er1
 
19976
  cat conftest.err >&5
 
19977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19978
  (exit $ac_status); } >/dev/null && {
 
19979
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19980
         test ! -s conftest.err
 
19981
       }; then
 
19982
  ac_header_preproc=yes
 
19983
else
 
19984
  echo "$as_me: failed program was:" >&5
 
19985
sed 's/^/| /' conftest.$ac_ext >&5
 
19986
 
 
19987
  ac_header_preproc=no
 
19988
fi
 
19989
 
 
19990
rm -f conftest.err conftest.$ac_ext
 
19991
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19992
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19993
 
 
19994
# So?  What about this header?
 
19995
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19996
  yes:no: )
 
19997
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19998
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19999
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20000
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20001
    ac_header_preproc=yes
 
20002
    ;;
 
20003
  no:yes:* )
 
20004
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20005
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20006
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20007
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20008
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20009
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20010
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20011
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20012
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20013
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20014
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20015
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20016
 
 
20017
    ;;
 
20018
esac
 
20019
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20020
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20021
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20023
else
 
20024
  eval "$as_ac_Header=\$ac_header_preproc"
 
20025
fi
 
20026
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20027
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20028
echo "${ECHO_T}$ac_res" >&6; }
 
20029
 
 
20030
fi
 
20031
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20032
  cat >>confdefs.h <<_ACEOF
 
20033
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20034
_ACEOF
 
20035
 
 
20036
fi
 
20037
 
 
20038
done
 
20039
 
 
20040
 
 
20041
if test $ac_cv_c_compiler_gnu = yes; then
 
20042
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
20043
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
 
20044
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
20045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20046
else
 
20047
    ac_pattern="Autoconf.*'x'"
 
20048
  cat >conftest.$ac_ext <<_ACEOF
 
20049
/* confdefs.h.  */
 
20050
_ACEOF
 
20051
cat confdefs.h >>conftest.$ac_ext
 
20052
cat >>conftest.$ac_ext <<_ACEOF
 
20053
/* end confdefs.h.  */
 
20054
#include <sgtty.h>
 
20055
Autoconf TIOCGETP
 
20056
_ACEOF
 
20057
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20058
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
20059
  ac_cv_prog_gcc_traditional=yes
 
20060
else
 
20061
  ac_cv_prog_gcc_traditional=no
 
20062
fi
 
20063
rm -f conftest*
 
20064
 
 
20065
 
 
20066
  if test $ac_cv_prog_gcc_traditional = no; then
 
20067
    cat >conftest.$ac_ext <<_ACEOF
 
20068
/* confdefs.h.  */
 
20069
_ACEOF
 
20070
cat confdefs.h >>conftest.$ac_ext
 
20071
cat >>conftest.$ac_ext <<_ACEOF
 
20072
/* end confdefs.h.  */
 
20073
#include <termio.h>
 
20074
Autoconf TCGETA
 
20075
_ACEOF
 
20076
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20077
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
20078
  ac_cv_prog_gcc_traditional=yes
 
20079
fi
 
20080
rm -f conftest*
 
20081
 
 
20082
  fi
 
20083
fi
 
20084
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
20085
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
 
20086
  if test $ac_cv_prog_gcc_traditional = yes; then
 
20087
    CC="$CC -traditional"
 
20088
  fi
 
20089
fi
 
20090
 
 
20091
 
 
20092
if test "x$GCC" = "xyes"; then
 
20093
  CFLAGS="$CFLAGS -Wall"
 
20094
fi
 
20095
 
 
20096
LXC_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
 
20097
LXC_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
 
20098
LXC_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
 
20099
 
 
20100
 
 
20101
# Check whether --with-kernel-release was given.
 
20102
if test "${with_kernel_release+set}" = set; then
 
20103
  withval=$with_kernel_release; KERNEL_RELEASE="${withval}"
 
20104
else
 
20105
  KERNEL_RELEASE=`uname -r`
 
20106
fi
 
20107
 
 
20108
 
 
20109
 
 
20110
# Used to indicate true or false condition
 
20111
ax_compare_version=false
 
20112
          # Convert the two version strings to be compared into a format that
 
20113
  # allows a simple string comparison.  The end result is that a version
 
20114
  # string of the form 1.12.5-r617 will be converted to the form
 
20115
  # 0001001200050617.  In other words, each number is zero padded to four
 
20116
  # digits, and non digits are removed.
 
20117
 
 
20118
  ax_compare_version_A=`echo "$KERNEL_RELEASE" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
 
20119
                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
 
20120
                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
 
20121
                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
 
20122
                     -e 's/[^0-9]//g'`
 
20123
 
 
20124
 
 
20125
  ax_compare_version_B=`echo "2.6.29" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
 
20126
                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
 
20127
                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
 
20128
                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
 
20129
                     -e 's/[^0-9]//g'`
 
20130
 
 
20131
 
 
20132
    ax_compare_version=`echo "x$ax_compare_version_A
 
20133
x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
 
20134
 
 
20135
 
 
20136
 
 
20137
    if test "$ax_compare_version" = "true" ; then
 
20138
    { echo "$as_me:$LINENO: network autodestroy: yes" >&5
 
20139
echo "$as_me: network autodestroy: yes" >&6;}
 
20140
    else { echo "$as_me:$LINENO: network autodestroy: no" >&5
 
20141
echo "$as_me: network autodestroy: no" >&6;}
 
20142
  fi
 
20143
 
 
20144
 
 
20145
if test ${ax_compare_version} != "true"; then
 
20146
   CFLAGS="$CFLAGS -DNETWORK_DESTROY"
 
20147
fi
 
20148
 
 
20149
# Check whether --enable-test was given.
 
20150
if test "${enable_test+set}" = set; then
 
20151
  enableval=$enable_test;
 
20152
else
 
20153
  enable_test=no
 
20154
fi
 
20155
 
 
20156
 if test x$enable_test = xyes; then
 
20157
  ENABLE_TEST_TRUE=
 
20158
  ENABLE_TEST_FALSE='#'
 
20159
else
 
20160
  ENABLE_TEST_TRUE='#'
 
20161
  ENABLE_TEST_FALSE=
 
20162
fi
 
20163
 
 
20164
 
 
20165
 
 
20166
 
 
20167
 
 
20168
 
 
20169
ac_config_files="$ac_config_files Makefile lxc.spec config/Makefile doc/Makefile doc/lxc-create.sgml doc/lxc-destroy.sgml doc/lxc-execute.sgml doc/lxc-start.sgml doc/lxc-stop.sgml doc/lxc-console.sgml doc/lxc-freeze.sgml doc/lxc-unfreeze.sgml doc/lxc-monitor.sgml doc/lxc-wait.sgml doc/lxc-ls.sgml doc/lxc-ps.sgml doc/lxc-cgroup.sgml doc/lxc.conf.sgml doc/lxc.sgml scripts/Makefile scripts/lxc-debian scripts/lxc-fedora scripts/lxc-sshd src/Makefile src/lxc/Makefile src/lxc/lxc-ps src/lxc/lxc-ls src/lxc/lxc-netstat src/lxc/lxc-checkconfig src/lxc/lxc-setcap etc/Makefile etc/lxc-macvlan.conf etc/lxc-no-netns.conf etc/lxc-empty-netns.conf etc/lxc-phys.conf etc/lxc-veth.conf etc/lxc-complex-config test/Makefile"
 
20170
 
 
20171
ac_config_commands="$ac_config_commands default"
 
20172
 
 
20173
cat >confcache <<\_ACEOF
 
20174
# This file is a shell script that caches the results of configure
 
20175
# tests run on this system so they can be shared between configure
 
20176
# scripts and configure runs, see configure's option --config-cache.
 
20177
# It is not useful on other systems.  If it contains results you don't
 
20178
# want to keep, you may remove or edit it.
 
20179
#
 
20180
# config.status only pays attention to the cache file if you give it
 
20181
# the --recheck option to rerun configure.
 
20182
#
 
20183
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20184
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20185
# following values.
 
20186
 
 
20187
_ACEOF
 
20188
 
 
20189
# The following way of writing the cache mishandles newlines in values,
 
20190
# but we know of no workaround that is simple, portable, and efficient.
 
20191
# So, we kill variables containing newlines.
 
20192
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20193
# and sets the high bit in the cache file unless we assign to the vars.
 
20194
(
 
20195
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
20196
    eval ac_val=\$$ac_var
 
20197
    case $ac_val in #(
 
20198
    *${as_nl}*)
 
20199
      case $ac_var in #(
 
20200
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
20201
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
20202
      esac
 
20203
      case $ac_var in #(
 
20204
      _ | IFS | as_nl) ;; #(
 
20205
      *) $as_unset $ac_var ;;
 
20206
      esac ;;
 
20207
    esac
 
20208
  done
 
20209
 
 
20210
  (set) 2>&1 |
 
20211
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
20212
    *${as_nl}ac_space=\ *)
 
20213
      # `set' does not quote correctly, so add quotes (double-quote
 
20214
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20215
      sed -n \
 
20216
        "s/'/'\\\\''/g;
 
20217
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20218
      ;; #(
 
20219
    *)
 
20220
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20221
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
20222
      ;;
 
20223
    esac |
 
20224
    sort
 
20225
) |
 
20226
  sed '
 
20227
     /^ac_cv_env_/b end
 
20228
     t clear
 
20229
     :clear
 
20230
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20231
     t end
 
20232
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20233
     :end' >>confcache
 
20234
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
20235
  if test -w "$cache_file"; then
 
20236
    test "x$cache_file" != "x/dev/null" &&
 
20237
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
20238
echo "$as_me: updating cache $cache_file" >&6;}
 
20239
    cat confcache >$cache_file
 
20240
  else
 
20241
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
20242
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
20243
  fi
 
20244
fi
 
20245
rm -f confcache
 
20246
 
 
20247
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20248
# Let make expand exec_prefix.
 
20249
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20250
 
 
20251
DEFS=-DHAVE_CONFIG_H
 
20252
 
 
20253
ac_libobjs=
 
20254
ac_ltlibobjs=
 
20255
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20256
  # 1. Remove the extension, and $U if already installed.
 
20257
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
20258
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
20259
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
20260
  #    will be set to the directory where LIBOBJS objects are built.
 
20261
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
20262
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
20263
done
 
20264
LIBOBJS=$ac_libobjs
 
20265
 
 
20266
LTLIBOBJS=$ac_ltlibobjs
 
20267
 
 
20268
 
 
20269
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20270
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20271
Usually this means the macro was only invoked conditionally." >&5
 
20272
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20273
Usually this means the macro was only invoked conditionally." >&2;}
 
20274
   { (exit 1); exit 1; }; }
 
20275
fi
 
20276
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20277
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20278
Usually this means the macro was only invoked conditionally." >&5
 
20279
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20280
Usually this means the macro was only invoked conditionally." >&2;}
 
20281
   { (exit 1); exit 1; }; }
 
20282
fi
 
20283
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20284
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20285
Usually this means the macro was only invoked conditionally." >&5
 
20286
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20287
Usually this means the macro was only invoked conditionally." >&2;}
 
20288
   { (exit 1); exit 1; }; }
 
20289
fi
 
20290
if test -z "${ENABLE_DOCBOOK_TRUE}" && test -z "${ENABLE_DOCBOOK_FALSE}"; then
 
20291
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOCBOOK\" was never defined.
 
20292
Usually this means the macro was only invoked conditionally." >&5
 
20293
echo "$as_me: error: conditional \"ENABLE_DOCBOOK\" was never defined.
 
20294
Usually this means the macro was only invoked conditionally." >&2;}
 
20295
   { (exit 1); exit 1; }; }
 
20296
fi
 
20297
if test -z "${ENABLE_TEST_TRUE}" && test -z "${ENABLE_TEST_FALSE}"; then
 
20298
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_TEST\" was never defined.
 
20299
Usually this means the macro was only invoked conditionally." >&5
 
20300
echo "$as_me: error: conditional \"ENABLE_TEST\" was never defined.
 
20301
Usually this means the macro was only invoked conditionally." >&2;}
 
20302
   { (exit 1); exit 1; }; }
 
20303
fi
 
20304
 
 
20305
: ${CONFIG_STATUS=./config.status}
 
20306
ac_clean_files_save=$ac_clean_files
 
20307
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20308
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20309
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20310
cat >$CONFIG_STATUS <<_ACEOF
 
20311
#! $SHELL
 
20312
# Generated by $as_me.
 
20313
# Run this file to recreate the current configuration.
 
20314
# Compiler output produced by configure, useful for debugging
 
20315
# configure, is in config.log if it exists.
 
20316
 
 
20317
debug=false
 
20318
ac_cs_recheck=false
 
20319
ac_cs_silent=false
 
20320
SHELL=\${CONFIG_SHELL-$SHELL}
 
20321
_ACEOF
 
20322
 
 
20323
cat >>$CONFIG_STATUS <<\_ACEOF
 
20324
## --------------------- ##
 
20325
## M4sh Initialization.  ##
 
20326
## --------------------- ##
 
20327
 
 
20328
# Be more Bourne compatible
 
20329
DUALCASE=1; export DUALCASE # for MKS sh
 
20330
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20331
  emulate sh
 
20332
  NULLCMD=:
 
20333
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20334
  # is contrary to our usage.  Disable this feature.
 
20335
  alias -g '${1+"$@"}'='"$@"'
 
20336
  setopt NO_GLOB_SUBST
 
20337
else
 
20338
  case `(set -o) 2>/dev/null` in
 
20339
  *posix*) set -o posix ;;
 
20340
esac
 
20341
 
 
20342
fi
 
20343
 
 
20344
 
 
20345
 
 
20346
 
 
20347
# PATH needs CR
 
20348
# Avoid depending upon Character Ranges.
 
20349
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20350
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20351
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20352
as_cr_digits='0123456789'
 
20353
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20354
 
 
20355
# The user is always right.
 
20356
if test "${PATH_SEPARATOR+set}" != set; then
 
20357
  echo "#! /bin/sh" >conf$$.sh
 
20358
  echo  "exit 0"   >>conf$$.sh
 
20359
  chmod +x conf$$.sh
 
20360
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20361
    PATH_SEPARATOR=';'
 
20362
  else
 
20363
    PATH_SEPARATOR=:
 
20364
  fi
 
20365
  rm -f conf$$.sh
 
20366
fi
 
20367
 
 
20368
# Support unset when possible.
 
20369
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20370
  as_unset=unset
 
20371
else
 
20372
  as_unset=false
 
20373
fi
 
20374
 
 
20375
 
 
20376
# IFS
 
20377
# We need space, tab and new line, in precisely that order.  Quoting is
 
20378
# there to prevent editors from complaining about space-tab.
 
20379
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
20380
# splitting by setting IFS to empty value.)
 
20381
as_nl='
 
20382
'
 
20383
IFS=" ""        $as_nl"
 
20384
 
 
20385
# Find who we are.  Look in the path if we contain no directory separator.
 
20386
case $0 in
 
20387
  *[\\/]* ) as_myself=$0 ;;
 
20388
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20389
for as_dir in $PATH
 
20390
do
 
20391
  IFS=$as_save_IFS
 
20392
  test -z "$as_dir" && as_dir=.
 
20393
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20394
done
 
20395
IFS=$as_save_IFS
 
20396
 
 
20397
     ;;
 
20398
esac
 
20399
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
20400
# in which case we are not to be found in the path.
 
20401
if test "x$as_myself" = x; then
 
20402
  as_myself=$0
 
20403
fi
 
20404
if test ! -f "$as_myself"; then
 
20405
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
20406
  { (exit 1); exit 1; }
 
20407
fi
 
20408
 
 
20409
# Work around bugs in pre-3.0 UWIN ksh.
 
20410
for as_var in ENV MAIL MAILPATH
 
20411
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20412
done
 
20413
PS1='$ '
 
20414
PS2='> '
 
20415
PS4='+ '
 
20416
 
 
20417
# NLS nuisances.
 
20418
for as_var in \
 
20419
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20420
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20421
  LC_TELEPHONE LC_TIME
 
20422
do
 
20423
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20424
    eval $as_var=C; export $as_var
 
20425
  else
 
20426
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20427
  fi
 
20428
done
 
20429
 
 
20430
# Required to use basename.
 
20431
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20432
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20433
  as_expr=expr
 
20434
else
 
20435
  as_expr=false
 
20436
fi
 
20437
 
 
20438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
20439
  as_basename=basename
 
20440
else
 
20441
  as_basename=false
 
20442
fi
 
20443
 
 
20444
 
 
20445
# Name of the executable.
 
20446
as_me=`$as_basename -- "$0" ||
 
20447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20448
         X"$0" : 'X\(//\)$' \| \
 
20449
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
20450
echo X/"$0" |
 
20451
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
20452
            s//\1/
 
20453
            q
 
20454
          }
 
20455
          /^X\/\(\/\/\)$/{
 
20456
            s//\1/
 
20457
            q
 
20458
          }
 
20459
          /^X\/\(\/\).*/{
 
20460
            s//\1/
 
20461
            q
 
20462
          }
 
20463
          s/.*/./; q'`
 
20464
 
 
20465
# CDPATH.
 
20466
$as_unset CDPATH
 
20467
 
 
20468
 
 
20469
 
 
20470
  as_lineno_1=$LINENO
 
20471
  as_lineno_2=$LINENO
 
20472
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20473
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
20474
 
 
20475
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20476
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20477
  # line-number line after each line using $LINENO; the second 'sed'
 
20478
  # does the real work.  The second script uses 'N' to pair each
 
20479
  # line-number line with the line containing $LINENO, and appends
 
20480
  # trailing '-' during substitution so that $LINENO is not a special
 
20481
  # case at line end.
 
20482
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20483
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
20484
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
20485
  sed -n '
 
20486
    p
 
20487
    /[$]LINENO/=
 
20488
  ' <$as_myself |
 
20489
    sed '
 
20490
      s/[$]LINENO.*/&-/
 
20491
      t lineno
 
20492
      b
 
20493
      :lineno
 
20494
      N
 
20495
      :loop
 
20496
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
20497
      t loop
 
20498
      s/-\n.*//
 
20499
    ' >$as_me.lineno &&
 
20500
  chmod +x "$as_me.lineno" ||
 
20501
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
20502
   { (exit 1); exit 1; }; }
 
20503
 
 
20504
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20505
  # (the dirname of $[0] is not the place where we might find the
 
20506
  # original and so on.  Autoconf is especially sensitive to this).
 
20507
  . "./$as_me.lineno"
 
20508
  # Exit status is that of the last command.
 
20509
  exit
 
20510
}
 
20511
 
 
20512
 
 
20513
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
20514
  as_dirname=dirname
 
20515
else
 
20516
  as_dirname=false
 
20517
fi
 
20518
 
 
20519
ECHO_C= ECHO_N= ECHO_T=
 
20520
case `echo -n x` in
 
20521
-n*)
 
20522
  case `echo 'x\c'` in
 
20523
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
20524
  *)   ECHO_C='\c';;
 
20525
  esac;;
 
20526
*)
 
20527
  ECHO_N='-n';;
 
20528
esac
 
20529
 
 
20530
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20531
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20532
  as_expr=expr
 
20533
else
 
20534
  as_expr=false
 
20535
fi
 
20536
 
 
20537
rm -f conf$$ conf$$.exe conf$$.file
 
20538
if test -d conf$$.dir; then
 
20539
  rm -f conf$$.dir/conf$$.file
 
20540
else
 
20541
  rm -f conf$$.dir
 
20542
  mkdir conf$$.dir
 
20543
fi
 
20544
echo >conf$$.file
 
20545
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20546
  as_ln_s='ln -s'
 
20547
  # ... but there are two gotchas:
 
20548
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
20549
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
20550
  # In both cases, we have to default to `cp -p'.
 
20551
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
20552
    as_ln_s='cp -p'
 
20553
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20554
  as_ln_s=ln
 
20555
else
 
20556
  as_ln_s='cp -p'
 
20557
fi
 
20558
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
20559
rmdir conf$$.dir 2>/dev/null
 
20560
 
 
20561
if mkdir -p . 2>/dev/null; then
 
20562
  as_mkdir_p=:
 
20563
else
 
20564
  test -d ./-p && rmdir ./-p
 
20565
  as_mkdir_p=false
 
20566
fi
 
20567
 
 
20568
if test -x / >/dev/null 2>&1; then
 
20569
  as_test_x='test -x'
 
20570
else
 
20571
  if ls -dL / >/dev/null 2>&1; then
 
20572
    as_ls_L_option=L
 
20573
  else
 
20574
    as_ls_L_option=
 
20575
  fi
 
20576
  as_test_x='
 
20577
    eval sh -c '\''
 
20578
      if test -d "$1"; then
 
20579
        test -d "$1/.";
 
20580
      else
 
20581
        case $1 in
 
20582
        -*)set "./$1";;
 
20583
        esac;
 
20584
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
20585
        ???[sx]*):;;*)false;;esac;fi
 
20586
    '\'' sh
 
20587
  '
 
20588
fi
 
20589
as_executable_p=$as_test_x
 
20590
 
 
20591
# Sed expression to map a string onto a valid CPP name.
 
20592
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20593
 
 
20594
# Sed expression to map a string onto a valid variable name.
 
20595
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20596
 
 
20597
 
 
20598
exec 6>&1
 
20599
 
 
20600
# Save the log message, to keep $[0] and so on meaningful, and to
 
20601
# report actual input values of CONFIG_FILES etc. instead of their
 
20602
# values after options handling.
 
20603
ac_log="
 
20604
This file was extended by lxc $as_me 0.6.2, which was
 
20605
generated by GNU Autoconf 2.61.  Invocation command line was
 
20606
 
 
20607
  CONFIG_FILES    = $CONFIG_FILES
 
20608
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20609
  CONFIG_LINKS    = $CONFIG_LINKS
 
20610
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20611
  $ $0 $@
 
20612
 
 
20613
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
20614
"
 
20615
 
 
20616
_ACEOF
 
20617
 
 
20618
cat >>$CONFIG_STATUS <<_ACEOF
 
20619
# Files that config.status was made for.
 
20620
config_files="$ac_config_files"
 
20621
config_headers="$ac_config_headers"
 
20622
config_commands="$ac_config_commands"
 
20623
 
 
20624
_ACEOF
 
20625
 
 
20626
cat >>$CONFIG_STATUS <<\_ACEOF
 
20627
ac_cs_usage="\
 
20628
\`$as_me' instantiates files from templates according to the
 
20629
current configuration.
 
20630
 
 
20631
Usage: $0 [OPTIONS] [FILE]...
 
20632
 
 
20633
  -h, --help       print this help, then exit
 
20634
  -V, --version    print version number and configuration settings, then exit
 
20635
  -q, --quiet      do not print progress messages
 
20636
  -d, --debug      don't remove temporary files
 
20637
      --recheck    update $as_me by reconfiguring in the same conditions
 
20638
  --file=FILE[:TEMPLATE]
 
20639
                   instantiate the configuration file FILE
 
20640
  --header=FILE[:TEMPLATE]
 
20641
                   instantiate the configuration header FILE
 
20642
 
 
20643
Configuration files:
 
20644
$config_files
 
20645
 
 
20646
Configuration headers:
 
20647
$config_headers
 
20648
 
 
20649
Configuration commands:
 
20650
$config_commands
 
20651
 
 
20652
Report bugs to <bug-autoconf@gnu.org>."
 
20653
 
 
20654
_ACEOF
 
20655
cat >>$CONFIG_STATUS <<_ACEOF
 
20656
ac_cs_version="\\
 
20657
lxc config.status 0.6.2
 
20658
configured by $0, generated by GNU Autoconf 2.61,
 
20659
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
20660
 
 
20661
Copyright (C) 2006 Free Software Foundation, Inc.
 
20662
This config.status script is free software; the Free Software Foundation
 
20663
gives unlimited permission to copy, distribute and modify it."
 
20664
 
 
20665
ac_pwd='$ac_pwd'
 
20666
srcdir='$srcdir'
 
20667
INSTALL='$INSTALL'
 
20668
MKDIR_P='$MKDIR_P'
 
20669
_ACEOF
 
20670
 
 
20671
cat >>$CONFIG_STATUS <<\_ACEOF
 
20672
# If no file are specified by the user, then we need to provide default
 
20673
# value.  By we need to know if files were specified by the user.
 
20674
ac_need_defaults=:
 
20675
while test $# != 0
 
20676
do
 
20677
  case $1 in
 
20678
  --*=*)
 
20679
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
20680
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
20681
    ac_shift=:
 
20682
    ;;
 
20683
  *)
 
20684
    ac_option=$1
 
20685
    ac_optarg=$2
 
20686
    ac_shift=shift
 
20687
    ;;
 
20688
  esac
 
20689
 
 
20690
  case $ac_option in
 
20691
  # Handling of the options.
 
20692
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20693
    ac_cs_recheck=: ;;
 
20694
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
20695
    echo "$ac_cs_version"; exit ;;
 
20696
  --debug | --debu | --deb | --de | --d | -d )
 
20697
    debug=: ;;
 
20698
  --file | --fil | --fi | --f )
 
20699
    $ac_shift
 
20700
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20701
    ac_need_defaults=false;;
 
20702
  --header | --heade | --head | --hea )
 
20703
    $ac_shift
 
20704
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20705
    ac_need_defaults=false;;
 
20706
  --he | --h)
 
20707
    # Conflict between --help and --header
 
20708
    { echo "$as_me: error: ambiguous option: $1
 
20709
Try \`$0 --help' for more information." >&2
 
20710
   { (exit 1); exit 1; }; };;
 
20711
  --help | --hel | -h )
 
20712
    echo "$ac_cs_usage"; exit ;;
 
20713
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20714
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20715
    ac_cs_silent=: ;;
 
20716
 
 
20717
  # This is an error.
 
20718
  -*) { echo "$as_me: error: unrecognized option: $1
 
20719
Try \`$0 --help' for more information." >&2
 
20720
   { (exit 1); exit 1; }; } ;;
 
20721
 
 
20722
  *) ac_config_targets="$ac_config_targets $1"
 
20723
     ac_need_defaults=false ;;
 
20724
 
 
20725
  esac
 
20726
  shift
 
20727
done
 
20728
 
 
20729
ac_configure_extra_args=
 
20730
 
 
20731
if $ac_cs_silent; then
 
20732
  exec 6>/dev/null
 
20733
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20734
fi
 
20735
 
 
20736
_ACEOF
 
20737
cat >>$CONFIG_STATUS <<_ACEOF
 
20738
if \$ac_cs_recheck; then
 
20739
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
20740
  CONFIG_SHELL=$SHELL
 
20741
  export CONFIG_SHELL
 
20742
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20743
fi
 
20744
 
 
20745
_ACEOF
 
20746
cat >>$CONFIG_STATUS <<\_ACEOF
 
20747
exec 5>>config.log
 
20748
{
 
20749
  echo
 
20750
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20751
## Running $as_me. ##
 
20752
_ASBOX
 
20753
  echo "$ac_log"
 
20754
} >&5
 
20755
 
 
20756
_ACEOF
 
20757
cat >>$CONFIG_STATUS <<_ACEOF
 
20758
#
 
20759
# INIT-COMMANDS
 
20760
#
 
20761
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20762
 
 
20763
 
 
20764
_ACEOF
 
20765
 
 
20766
cat >>$CONFIG_STATUS <<\_ACEOF
 
20767
 
 
20768
# Handling of arguments.
 
20769
for ac_config_target in $ac_config_targets
 
20770
do
 
20771
  case $ac_config_target in
 
20772
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
20773
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20774
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20775
    "lxc.spec") CONFIG_FILES="$CONFIG_FILES lxc.spec" ;;
 
20776
    "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
 
20777
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
20778
    "doc/lxc-create.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-create.sgml" ;;
 
20779
    "doc/lxc-destroy.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-destroy.sgml" ;;
 
20780
    "doc/lxc-execute.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-execute.sgml" ;;
 
20781
    "doc/lxc-start.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-start.sgml" ;;
 
20782
    "doc/lxc-stop.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-stop.sgml" ;;
 
20783
    "doc/lxc-console.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-console.sgml" ;;
 
20784
    "doc/lxc-freeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-freeze.sgml" ;;
 
20785
    "doc/lxc-unfreeze.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-unfreeze.sgml" ;;
 
20786
    "doc/lxc-monitor.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-monitor.sgml" ;;
 
20787
    "doc/lxc-wait.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-wait.sgml" ;;
 
20788
    "doc/lxc-ls.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ls.sgml" ;;
 
20789
    "doc/lxc-ps.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-ps.sgml" ;;
 
20790
    "doc/lxc-cgroup.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc-cgroup.sgml" ;;
 
20791
    "doc/lxc.conf.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.conf.sgml" ;;
 
20792
    "doc/lxc.sgml") CONFIG_FILES="$CONFIG_FILES doc/lxc.sgml" ;;
 
20793
    "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
 
20794
    "scripts/lxc-debian") CONFIG_FILES="$CONFIG_FILES scripts/lxc-debian" ;;
 
20795
    "scripts/lxc-fedora") CONFIG_FILES="$CONFIG_FILES scripts/lxc-fedora" ;;
 
20796
    "scripts/lxc-sshd") CONFIG_FILES="$CONFIG_FILES scripts/lxc-sshd" ;;
 
20797
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
20798
    "src/lxc/Makefile") CONFIG_FILES="$CONFIG_FILES src/lxc/Makefile" ;;
 
20799
    "src/lxc/lxc-ps") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ps" ;;
 
20800
    "src/lxc/lxc-ls") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-ls" ;;
 
20801
    "src/lxc/lxc-netstat") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-netstat" ;;
 
20802
    "src/lxc/lxc-checkconfig") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-checkconfig" ;;
 
20803
    "src/lxc/lxc-setcap") CONFIG_FILES="$CONFIG_FILES src/lxc/lxc-setcap" ;;
 
20804
    "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
 
20805
    "etc/lxc-macvlan.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-macvlan.conf" ;;
 
20806
    "etc/lxc-no-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-no-netns.conf" ;;
 
20807
    "etc/lxc-empty-netns.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-empty-netns.conf" ;;
 
20808
    "etc/lxc-phys.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-phys.conf" ;;
 
20809
    "etc/lxc-veth.conf") CONFIG_FILES="$CONFIG_FILES etc/lxc-veth.conf" ;;
 
20810
    "etc/lxc-complex-config") CONFIG_FILES="$CONFIG_FILES etc/lxc-complex-config" ;;
 
20811
    "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
 
20812
    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
 
20813
 
 
20814
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
20815
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
20816
   { (exit 1); exit 1; }; };;
 
20817
  esac
 
20818
done
 
20819
 
 
20820
 
 
20821
# If the user did not use the arguments to specify the items to instantiate,
 
20822
# then the envvar interface is used.  Set only those that are not.
 
20823
# We use the long form for the default assignment because of an extremely
 
20824
# bizarre bug on SunOS 4.1.3.
 
20825
if $ac_need_defaults; then
 
20826
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20827
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20828
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20829
fi
 
20830
 
 
20831
# Have a temporary directory for convenience.  Make it in the build tree
 
20832
# simply because there is no reason against having it here, and in addition,
 
20833
# creating and moving files from /tmp can sometimes cause problems.
 
20834
# Hook for its removal unless debugging.
 
20835
# Note that there is a small window in which the directory will not be cleaned:
 
20836
# after its creation but before its name has been assigned to `$tmp'.
 
20837
$debug ||
 
20838
{
 
20839
  tmp=
 
20840
  trap 'exit_status=$?
 
20841
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
20842
' 0
 
20843
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20844
}
 
20845
# Create a (secure) tmp directory for tmp files.
 
20846
 
 
20847
{
 
20848
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
20849
  test -n "$tmp" && test -d "$tmp"
 
20850
}  ||
 
20851
{
 
20852
  tmp=./conf$$-$RANDOM
 
20853
  (umask 077 && mkdir "$tmp")
 
20854
} ||
 
20855
{
 
20856
   echo "$me: cannot create a temporary directory in ." >&2
 
20857
   { (exit 1); exit 1; }
 
20858
}
 
20859
 
 
20860
#
 
20861
# Set up the sed scripts for CONFIG_FILES section.
 
20862
#
 
20863
 
 
20864
# No need to generate the scripts if there are no CONFIG_FILES.
 
20865
# This happens for instance when ./config.status config.h
 
20866
if test -n "$CONFIG_FILES"; then
 
20867
 
 
20868
_ACEOF
 
20869
 
 
20870
 
 
20871
 
 
20872
ac_delim='%!_!# '
 
20873
for ac_last_try in false false false false false :; do
 
20874
  cat >conf$$subs.sed <<_ACEOF
 
20875
SHELL!$SHELL$ac_delim
 
20876
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
20877
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
20878
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
20879
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
20880
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
20881
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
20882
exec_prefix!$exec_prefix$ac_delim
 
20883
prefix!$prefix$ac_delim
 
20884
program_transform_name!$program_transform_name$ac_delim
 
20885
bindir!$bindir$ac_delim
 
20886
sbindir!$sbindir$ac_delim
 
20887
libexecdir!$libexecdir$ac_delim
 
20888
datarootdir!$datarootdir$ac_delim
 
20889
datadir!$datadir$ac_delim
 
20890
sysconfdir!$sysconfdir$ac_delim
 
20891
sharedstatedir!$sharedstatedir$ac_delim
 
20892
localstatedir!$localstatedir$ac_delim
 
20893
includedir!$includedir$ac_delim
 
20894
oldincludedir!$oldincludedir$ac_delim
 
20895
docdir!$docdir$ac_delim
 
20896
infodir!$infodir$ac_delim
 
20897
htmldir!$htmldir$ac_delim
 
20898
dvidir!$dvidir$ac_delim
 
20899
pdfdir!$pdfdir$ac_delim
 
20900
psdir!$psdir$ac_delim
 
20901
libdir!$libdir$ac_delim
 
20902
localedir!$localedir$ac_delim
 
20903
mandir!$mandir$ac_delim
 
20904
DEFS!$DEFS$ac_delim
 
20905
ECHO_C!$ECHO_C$ac_delim
 
20906
ECHO_N!$ECHO_N$ac_delim
 
20907
ECHO_T!$ECHO_T$ac_delim
 
20908
LIBS!$LIBS$ac_delim
 
20909
build_alias!$build_alias$ac_delim
 
20910
host_alias!$host_alias$ac_delim
 
20911
target_alias!$target_alias$ac_delim
 
20912
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
20913
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
20914
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
20915
am__isrc!$am__isrc$ac_delim
 
20916
CYGPATH_W!$CYGPATH_W$ac_delim
 
20917
PACKAGE!$PACKAGE$ac_delim
 
20918
VERSION!$VERSION$ac_delim
 
20919
ACLOCAL!$ACLOCAL$ac_delim
 
20920
AUTOCONF!$AUTOCONF$ac_delim
 
20921
AUTOMAKE!$AUTOMAKE$ac_delim
 
20922
AUTOHEADER!$AUTOHEADER$ac_delim
 
20923
MAKEINFO!$MAKEINFO$ac_delim
 
20924
install_sh!$install_sh$ac_delim
 
20925
STRIP!$STRIP$ac_delim
 
20926
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
20927
mkdir_p!$mkdir_p$ac_delim
 
20928
AWK!$AWK$ac_delim
 
20929
SET_MAKE!$SET_MAKE$ac_delim
 
20930
am__leading_dot!$am__leading_dot$ac_delim
 
20931
AMTAR!$AMTAR$ac_delim
 
20932
am__tar!$am__tar$ac_delim
 
20933
am__untar!$am__untar$ac_delim
 
20934
build!$build$ac_delim
 
20935
build_cpu!$build_cpu$ac_delim
 
20936
build_vendor!$build_vendor$ac_delim
 
20937
build_os!$build_os$ac_delim
 
20938
host!$host$ac_delim
 
20939
host_cpu!$host_cpu$ac_delim
 
20940
host_vendor!$host_vendor$ac_delim
 
20941
host_os!$host_os$ac_delim
 
20942
CC!$CC$ac_delim
 
20943
CFLAGS!$CFLAGS$ac_delim
 
20944
LDFLAGS!$LDFLAGS$ac_delim
 
20945
CPPFLAGS!$CPPFLAGS$ac_delim
 
20946
ac_ct_CC!$ac_ct_CC$ac_delim
 
20947
EXEEXT!$EXEEXT$ac_delim
 
20948
OBJEXT!$OBJEXT$ac_delim
 
20949
DEPDIR!$DEPDIR$ac_delim
 
20950
am__include!$am__include$ac_delim
 
20951
am__quote!$am__quote$ac_delim
 
20952
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
20953
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
20954
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
20955
CCDEPMODE!$CCDEPMODE$ac_delim
 
20956
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
20957
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
20958
SED!$SED$ac_delim
 
20959
GREP!$GREP$ac_delim
 
20960
EGREP!$EGREP$ac_delim
 
20961
LN_S!$LN_S$ac_delim
 
20962
ECHO!$ECHO$ac_delim
 
20963
AR!$AR$ac_delim
 
20964
RANLIB!$RANLIB$ac_delim
 
20965
CPP!$CPP$ac_delim
 
20966
CXX!$CXX$ac_delim
 
20967
CXXFLAGS!$CXXFLAGS$ac_delim
 
20968
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
20969
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
20970
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
20971
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
20972
_ACEOF
 
20973
 
 
20974
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
20975
    break
 
20976
  elif $ac_last_try; then
 
20977
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
20978
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
20979
   { (exit 1); exit 1; }; }
 
20980
  else
 
20981
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
20982
  fi
 
20983
done
 
20984
 
 
20985
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
20986
if test -n "$ac_eof"; then
 
20987
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
20988
  ac_eof=`expr $ac_eof + 1`
 
20989
fi
 
20990
 
 
20991
cat >>$CONFIG_STATUS <<_ACEOF
 
20992
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
20993
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20994
_ACEOF
 
20995
sed '
 
20996
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
20997
s/^/s,@/; s/!/@,|#_!!_#|/
 
20998
:n
 
20999
t n
 
21000
s/'"$ac_delim"'$/,g/; t
 
21001
s/$/\\/; p
 
21002
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21003
' >>$CONFIG_STATUS <conf$$subs.sed
 
21004
rm -f conf$$subs.sed
 
21005
cat >>$CONFIG_STATUS <<_ACEOF
 
21006
CEOF$ac_eof
 
21007
_ACEOF
 
21008
 
 
21009
 
 
21010
ac_delim='%!_!# '
 
21011
for ac_last_try in false false false false false :; do
 
21012
  cat >conf$$subs.sed <<_ACEOF
 
21013
CXXCPP!$CXXCPP$ac_delim
 
21014
F77!$F77$ac_delim
 
21015
FFLAGS!$FFLAGS$ac_delim
 
21016
ac_ct_F77!$ac_ct_F77$ac_delim
 
21017
LIBTOOL!$LIBTOOL$ac_delim
 
21018
SETCAP!$SETCAP$ac_delim
 
21019
DOCBOOK!$DOCBOOK$ac_delim
 
21020
ENABLE_DOCBOOK_TRUE!$ENABLE_DOCBOOK_TRUE$ac_delim
 
21021
ENABLE_DOCBOOK_FALSE!$ENABLE_DOCBOOK_FALSE$ac_delim
 
21022
BINDIR!$BINDIR$ac_delim
 
21023
LIBEXECDIR!$LIBEXECDIR$ac_delim
 
21024
SYSCONFDIR!$SYSCONFDIR$ac_delim
 
21025
LOCALSTATEDIR!$LOCALSTATEDIR$ac_delim
 
21026
LXCPATH!$LXCPATH$ac_delim
 
21027
ENABLE_TEST_TRUE!$ENABLE_TEST_TRUE$ac_delim
 
21028
ENABLE_TEST_FALSE!$ENABLE_TEST_FALSE$ac_delim
 
21029
LXC_MAJOR_VERSION!$LXC_MAJOR_VERSION$ac_delim
 
21030
LXC_MINOR_VERSION!$LXC_MINOR_VERSION$ac_delim
 
21031
LXC_MICRO_VERSION!$LXC_MICRO_VERSION$ac_delim
 
21032
LIBOBJS!$LIBOBJS$ac_delim
 
21033
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
21034
_ACEOF
 
21035
 
 
21036
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 21; then
 
21037
    break
 
21038
  elif $ac_last_try; then
 
21039
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21040
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21041
   { (exit 1); exit 1; }; }
 
21042
  else
 
21043
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21044
  fi
 
21045
done
 
21046
 
 
21047
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21048
if test -n "$ac_eof"; then
 
21049
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21050
  ac_eof=`expr $ac_eof + 1`
 
21051
fi
 
21052
 
 
21053
cat >>$CONFIG_STATUS <<_ACEOF
 
21054
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
21055
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
21056
_ACEOF
 
21057
sed '
 
21058
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21059
s/^/s,@/; s/!/@,|#_!!_#|/
 
21060
:n
 
21061
t n
 
21062
s/'"$ac_delim"'$/,g/; t
 
21063
s/$/\\/; p
 
21064
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21065
' >>$CONFIG_STATUS <conf$$subs.sed
 
21066
rm -f conf$$subs.sed
 
21067
cat >>$CONFIG_STATUS <<_ACEOF
 
21068
:end
 
21069
s/|#_!!_#|//g
 
21070
CEOF$ac_eof
 
21071
_ACEOF
 
21072
 
 
21073
 
 
21074
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21075
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21076
# trailing colons and then remove the whole line if VPATH becomes empty
 
21077
# (actually we leave an empty line to preserve line numbers).
 
21078
if test "x$srcdir" = x.; then
 
21079
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21080
s/:*\$(srcdir):*/:/
 
21081
s/:*\${srcdir}:*/:/
 
21082
s/:*@srcdir@:*/:/
 
21083
s/^\([^=]*=[     ]*\):*/\1/
 
21084
s/:*$//
 
21085
s/^[^=]*=[       ]*$//
 
21086
}'
 
21087
fi
 
21088
 
 
21089
cat >>$CONFIG_STATUS <<\_ACEOF
 
21090
fi # test -n "$CONFIG_FILES"
 
21091
 
 
21092
 
 
21093
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
21094
do
 
21095
  case $ac_tag in
 
21096
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21097
  esac
 
21098
  case $ac_mode$ac_tag in
 
21099
  :[FHL]*:*);;
 
21100
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
21101
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
21102
   { (exit 1); exit 1; }; };;
 
21103
  :[FH]-) ac_tag=-:-;;
 
21104
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21105
  esac
 
21106
  ac_save_IFS=$IFS
 
21107
  IFS=:
 
21108
  set x $ac_tag
 
21109
  IFS=$ac_save_IFS
 
21110
  shift
 
21111
  ac_file=$1
 
21112
  shift
 
21113
 
 
21114
  case $ac_mode in
 
21115
  :L) ac_source=$1;;
 
21116
  :[FH])
 
21117
    ac_file_inputs=
 
21118
    for ac_f
 
21119
    do
 
21120
      case $ac_f in
 
21121
      -) ac_f="$tmp/stdin";;
 
21122
      *) # Look for the file first in the build tree, then in the source tree
 
21123
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21124
         # because $ac_f cannot contain `:'.
 
21125
         test -f "$ac_f" ||
 
21126
           case $ac_f in
 
21127
           [\\/$]*) false;;
 
21128
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21129
           esac ||
 
21130
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
21131
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
21132
   { (exit 1); exit 1; }; };;
 
21133
      esac
 
21134
      ac_file_inputs="$ac_file_inputs $ac_f"
 
21135
    done
 
21136
 
 
21137
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21138
    # use $as_me), people would be surprised to read:
 
21139
    #    /* config.h.  Generated by config.status.  */
 
21140
    configure_input="Generated from "`IFS=:
 
21141
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
21142
    if test x"$ac_file" != x-; then
 
21143
      configure_input="$ac_file.  $configure_input"
 
21144
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21145
echo "$as_me: creating $ac_file" >&6;}
 
21146
    fi
 
21147
 
 
21148
    case $ac_tag in
 
21149
    *:-:* | *:-) cat >"$tmp/stdin";;
 
21150
    esac
 
21151
    ;;
 
21152
  esac
 
21153
 
 
21154
  ac_dir=`$as_dirname -- "$ac_file" ||
 
21155
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21156
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21157
         X"$ac_file" : 'X\(//\)$' \| \
 
21158
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
21159
echo X"$ac_file" |
 
21160
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21161
            s//\1/
 
21162
            q
 
21163
          }
 
21164
          /^X\(\/\/\)[^/].*/{
 
21165
            s//\1/
 
21166
            q
 
21167
          }
 
21168
          /^X\(\/\/\)$/{
 
21169
            s//\1/
 
21170
            q
 
21171
          }
 
21172
          /^X\(\/\).*/{
 
21173
            s//\1/
 
21174
            q
 
21175
          }
 
21176
          s/.*/./; q'`
 
21177
  { as_dir="$ac_dir"
 
21178
  case $as_dir in #(
 
21179
  -*) as_dir=./$as_dir;;
 
21180
  esac
 
21181
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21182
    as_dirs=
 
21183
    while :; do
 
21184
      case $as_dir in #(
 
21185
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21186
      *) as_qdir=$as_dir;;
 
21187
      esac
 
21188
      as_dirs="'$as_qdir' $as_dirs"
 
21189
      as_dir=`$as_dirname -- "$as_dir" ||
 
21190
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21191
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21192
         X"$as_dir" : 'X\(//\)$' \| \
 
21193
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21194
echo X"$as_dir" |
 
21195
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21196
            s//\1/
 
21197
            q
 
21198
          }
 
21199
          /^X\(\/\/\)[^/].*/{
 
21200
            s//\1/
 
21201
            q
 
21202
          }
 
21203
          /^X\(\/\/\)$/{
 
21204
            s//\1/
 
21205
            q
 
21206
          }
 
21207
          /^X\(\/\).*/{
 
21208
            s//\1/
 
21209
            q
 
21210
          }
 
21211
          s/.*/./; q'`
 
21212
      test -d "$as_dir" && break
 
21213
    done
 
21214
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21215
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21216
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21217
   { (exit 1); exit 1; }; }; }
 
21218
  ac_builddir=.
 
21219
 
 
21220
case "$ac_dir" in
 
21221
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21222
*)
 
21223
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21224
  # A ".." for each directory in $ac_dir_suffix.
 
21225
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
21226
  case $ac_top_builddir_sub in
 
21227
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21228
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21229
  esac ;;
 
21230
esac
 
21231
ac_abs_top_builddir=$ac_pwd
 
21232
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21233
# for backward compatibility:
 
21234
ac_top_builddir=$ac_top_build_prefix
 
21235
 
 
21236
case $srcdir in
 
21237
  .)  # We are building in place.
 
21238
    ac_srcdir=.
 
21239
    ac_top_srcdir=$ac_top_builddir_sub
 
21240
    ac_abs_top_srcdir=$ac_pwd ;;
 
21241
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21242
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21243
    ac_top_srcdir=$srcdir
 
21244
    ac_abs_top_srcdir=$srcdir ;;
 
21245
  *) # Relative name.
 
21246
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21247
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21248
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21249
esac
 
21250
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21251
 
 
21252
 
 
21253
  case $ac_mode in
 
21254
  :F)
 
21255
  #
 
21256
  # CONFIG_FILE
 
21257
  #
 
21258
 
 
21259
  case $INSTALL in
 
21260
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21261
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
21262
  esac
 
21263
  ac_MKDIR_P=$MKDIR_P
 
21264
  case $MKDIR_P in
 
21265
  [\\/$]* | ?:[\\/]* ) ;;
 
21266
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
21267
  esac
 
21268
_ACEOF
 
21269
 
 
21270
cat >>$CONFIG_STATUS <<\_ACEOF
 
21271
# If the template does not know about datarootdir, expand it.
 
21272
# FIXME: This hack should be removed a few years after 2.60.
 
21273
ac_datarootdir_hack=; ac_datarootdir_seen=
 
21274
 
 
21275
case `sed -n '/datarootdir/ {
 
21276
  p
 
21277
  q
 
21278
}
 
21279
/@datadir@/p
 
21280
/@docdir@/p
 
21281
/@infodir@/p
 
21282
/@localedir@/p
 
21283
/@mandir@/p
 
21284
' $ac_file_inputs` in
 
21285
*datarootdir*) ac_datarootdir_seen=yes;;
 
21286
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
21287
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
21288
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
21289
_ACEOF
 
21290
cat >>$CONFIG_STATUS <<_ACEOF
 
21291
  ac_datarootdir_hack='
 
21292
  s&@datadir@&$datadir&g
 
21293
  s&@docdir@&$docdir&g
 
21294
  s&@infodir@&$infodir&g
 
21295
  s&@localedir@&$localedir&g
 
21296
  s&@mandir@&$mandir&g
 
21297
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
21298
esac
 
21299
_ACEOF
 
21300
 
 
21301
# Neutralize VPATH when `$srcdir' = `.'.
 
21302
# Shell code in configure.ac might set extrasub.
 
21303
# FIXME: do we really want to maintain this feature?
 
21304
cat >>$CONFIG_STATUS <<_ACEOF
 
21305
  sed "$ac_vpsub
 
21306
$extrasub
 
21307
_ACEOF
 
21308
cat >>$CONFIG_STATUS <<\_ACEOF
 
21309
:t
 
21310
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21311
s&@configure_input@&$configure_input&;t t
 
21312
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
21313
s&@srcdir@&$ac_srcdir&;t t
 
21314
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
21315
s&@top_srcdir@&$ac_top_srcdir&;t t
 
21316
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
21317
s&@builddir@&$ac_builddir&;t t
 
21318
s&@abs_builddir@&$ac_abs_builddir&;t t
 
21319
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
21320
s&@INSTALL@&$ac_INSTALL&;t t
 
21321
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
21322
$ac_datarootdir_hack
 
21323
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
21324
 
 
21325
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
21326
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
21327
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
21328
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21329
which seems to be undefined.  Please make sure it is defined." >&5
 
21330
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21331
which seems to be undefined.  Please make sure it is defined." >&2;}
 
21332
 
 
21333
  rm -f "$tmp/stdin"
 
21334
  case $ac_file in
 
21335
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
21336
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
21337
  esac
 
21338
 ;;
 
21339
  :H)
 
21340
  #
 
21341
  # CONFIG_HEADER
 
21342
  #
 
21343
_ACEOF
 
21344
 
 
21345
# Transform confdefs.h into a sed script `conftest.defines', that
 
21346
# substitutes the proper values into config.h.in to produce config.h.
 
21347
rm -f conftest.defines conftest.tail
 
21348
# First, append a space to every undef/define line, to ease matching.
 
21349
echo 's/$/ /' >conftest.defines
 
21350
# Then, protect against being on the right side of a sed subst, or in
 
21351
# an unquoted here document, in config.status.  If some macros were
 
21352
# called several times there might be several #defines for the same
 
21353
# symbol, which is useless.  But do not sort them, since the last
 
21354
# AC_DEFINE must be honored.
 
21355
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
21356
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
21357
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
21358
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
21359
# just an empty string.
 
21360
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
21361
ac_dB='\\)[      (].*,\\1define\\2'
 
21362
ac_dC=' '
 
21363
ac_dD=' ,'
 
21364
 
 
21365
uniq confdefs.h |
 
21366
  sed -n '
 
21367
        t rset
 
21368
        :rset
 
21369
        s/^[     ]*#[    ]*define[       ][      ]*//
 
21370
        t ok
 
21371
        d
 
21372
        :ok
 
21373
        s/[\\&,]/\\&/g
 
21374
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
21375
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
21376
  ' >>conftest.defines
 
21377
 
 
21378
# Remove the space that was appended to ease matching.
 
21379
# Then replace #undef with comments.  This is necessary, for
 
21380
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21381
# on some systems where configure will not decide to define it.
 
21382
# (The regexp can be short, since the line contains either #define or #undef.)
 
21383
echo 's/ $//
 
21384
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
21385
 
 
21386
# Break up conftest.defines:
 
21387
ac_max_sed_lines=50
 
21388
 
 
21389
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
21390
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
21391
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
21392
# et cetera.
 
21393
ac_in='$ac_file_inputs'
 
21394
ac_out='"$tmp/out1"'
 
21395
ac_nxt='"$tmp/out2"'
 
21396
 
 
21397
while :
 
21398
do
 
21399
  # Write a here document:
 
21400
    cat >>$CONFIG_STATUS <<_ACEOF
 
21401
    # First, check the format of the line:
 
21402
    cat >"\$tmp/defines.sed" <<\\CEOF
 
21403
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
21404
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
21405
b
 
21406
:def
 
21407
_ACEOF
 
21408
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
21409
  echo 'CEOF
 
21410
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
21411
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
21412
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
21413
  grep . conftest.tail >/dev/null || break
 
21414
  rm -f conftest.defines
 
21415
  mv conftest.tail conftest.defines
 
21416
done
 
21417
rm -f conftest.defines conftest.tail
 
21418
 
 
21419
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
21420
cat >>$CONFIG_STATUS <<\_ACEOF
 
21421
  if test x"$ac_file" != x-; then
 
21422
    echo "/* $configure_input  */" >"$tmp/config.h"
 
21423
    cat "$ac_result" >>"$tmp/config.h"
 
21424
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
21425
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21426
echo "$as_me: $ac_file is unchanged" >&6;}
 
21427
    else
 
21428
      rm -f $ac_file
 
21429
      mv "$tmp/config.h" $ac_file
 
21430
    fi
 
21431
  else
 
21432
    echo "/* $configure_input  */"
 
21433
    cat "$ac_result"
 
21434
  fi
 
21435
  rm -f "$tmp/out12"
 
21436
# Compute $ac_file's index in $config_headers.
 
21437
_am_arg=$ac_file
 
21438
_am_stamp_count=1
 
21439
for _am_header in $config_headers :; do
 
21440
  case $_am_header in
 
21441
    $_am_arg | $_am_arg:* )
 
21442
      break ;;
 
21443
    * )
 
21444
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21445
  esac
 
21446
done
 
21447
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
21448
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21449
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
21450
         X"$_am_arg" : 'X\(//\)$' \| \
 
21451
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
21452
echo X"$_am_arg" |
 
21453
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21454
            s//\1/
 
21455
            q
 
21456
          }
 
21457
          /^X\(\/\/\)[^/].*/{
 
21458
            s//\1/
 
21459
            q
 
21460
          }
 
21461
          /^X\(\/\/\)$/{
 
21462
            s//\1/
 
21463
            q
 
21464
          }
 
21465
          /^X\(\/\).*/{
 
21466
            s//\1/
 
21467
            q
 
21468
          }
 
21469
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21470
 ;;
 
21471
 
 
21472
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
21473
echo "$as_me: executing $ac_file commands" >&6;}
 
21474
 ;;
 
21475
  esac
 
21476
 
 
21477
 
 
21478
  case $ac_file$ac_mode in
 
21479
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21480
  # Strip MF so we end up with the name of the file.
 
21481
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21482
  # Check whether this is an Automake generated Makefile or not.
 
21483
  # We used to match only the files named `Makefile.in', but
 
21484
  # some people rename them; so instead we look at the file content.
 
21485
  # Grep'ing the first line is not enough: some people post-process
 
21486
  # each Makefile.in and add a new line on top of each file to say so.
 
21487
  # Grep'ing the whole file is not good either: AIX grep has a line
 
21488
  # limit of 2048, but all sed's we know have understand at least 4000.
 
21489
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
21490
    dirpart=`$as_dirname -- "$mf" ||
 
21491
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21492
         X"$mf" : 'X\(//\)[^/]' \| \
 
21493
         X"$mf" : 'X\(//\)$' \| \
 
21494
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
21495
echo X"$mf" |
 
21496
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21497
            s//\1/
 
21498
            q
 
21499
          }
 
21500
          /^X\(\/\/\)[^/].*/{
 
21501
            s//\1/
 
21502
            q
 
21503
          }
 
21504
          /^X\(\/\/\)$/{
 
21505
            s//\1/
 
21506
            q
 
21507
          }
 
21508
          /^X\(\/\).*/{
 
21509
            s//\1/
 
21510
            q
 
21511
          }
 
21512
          s/.*/./; q'`
 
21513
  else
 
21514
    continue
 
21515
  fi
 
21516
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21517
  # from the Makefile without running `make'.
 
21518
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21519
  test -z "$DEPDIR" && continue
 
21520
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21521
  test -z "am__include" && continue
 
21522
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21523
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21524
  U=`sed -n 's/^U = //p' < "$mf"`
 
21525
  # Find all dependency output files, they are included files with
 
21526
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21527
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21528
  # expansion.
 
21529
  for file in `sed -n "
 
21530
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21531
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21532
    # Make sure the directory exists.
 
21533
    test -f "$dirpart/$file" && continue
 
21534
    fdir=`$as_dirname -- "$file" ||
 
21535
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21536
         X"$file" : 'X\(//\)[^/]' \| \
 
21537
         X"$file" : 'X\(//\)$' \| \
 
21538
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
21539
echo X"$file" |
 
21540
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21541
            s//\1/
 
21542
            q
 
21543
          }
 
21544
          /^X\(\/\/\)[^/].*/{
 
21545
            s//\1/
 
21546
            q
 
21547
          }
 
21548
          /^X\(\/\/\)$/{
 
21549
            s//\1/
 
21550
            q
 
21551
          }
 
21552
          /^X\(\/\).*/{
 
21553
            s//\1/
 
21554
            q
 
21555
          }
 
21556
          s/.*/./; q'`
 
21557
    { as_dir=$dirpart/$fdir
 
21558
  case $as_dir in #(
 
21559
  -*) as_dir=./$as_dir;;
 
21560
  esac
 
21561
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21562
    as_dirs=
 
21563
    while :; do
 
21564
      case $as_dir in #(
 
21565
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21566
      *) as_qdir=$as_dir;;
 
21567
      esac
 
21568
      as_dirs="'$as_qdir' $as_dirs"
 
21569
      as_dir=`$as_dirname -- "$as_dir" ||
 
21570
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21571
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21572
         X"$as_dir" : 'X\(//\)$' \| \
 
21573
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21574
echo X"$as_dir" |
 
21575
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21576
            s//\1/
 
21577
            q
 
21578
          }
 
21579
          /^X\(\/\/\)[^/].*/{
 
21580
            s//\1/
 
21581
            q
 
21582
          }
 
21583
          /^X\(\/\/\)$/{
 
21584
            s//\1/
 
21585
            q
 
21586
          }
 
21587
          /^X\(\/\).*/{
 
21588
            s//\1/
 
21589
            q
 
21590
          }
 
21591
          s/.*/./; q'`
 
21592
      test -d "$as_dir" && break
 
21593
    done
 
21594
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21595
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21596
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21597
   { (exit 1); exit 1; }; }; }
 
21598
    # echo "creating $dirpart/$file"
 
21599
    echo '# dummy' > "$dirpart/$file"
 
21600
  done
 
21601
done
 
21602
 ;;
 
21603
    "default":C)  ;;
 
21604
 
 
21605
  esac
 
21606
done # for ac_tag
 
21607
 
 
21608
 
 
21609
{ (exit 0); exit 0; }
 
21610
_ACEOF
 
21611
chmod +x $CONFIG_STATUS
 
21612
ac_clean_files=$ac_clean_files_save
 
21613
 
 
21614
 
 
21615
# configure is writing to config.log, and then calls config.status.
 
21616
# config.status does its own redirection, appending to config.log.
 
21617
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21618
# by configure, so config.status won't be able to write to it; its
 
21619
# output is simply discarded.  So we exec the FD to /dev/null,
 
21620
# effectively closing config.log, so it can be properly (re)opened and
 
21621
# appended to by config.status.  When coming back to configure, we
 
21622
# need to make the FD available again.
 
21623
if test "$no_create" != yes; then
 
21624
  ac_cs_success=:
 
21625
  ac_config_status_args=
 
21626
  test "$silent" = yes &&
 
21627
    ac_config_status_args="$ac_config_status_args --quiet"
 
21628
  exec 5>/dev/null
 
21629
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21630
  exec 5>>config.log
 
21631
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21632
  # would make configure fail if this is the last instruction.
 
21633
  $ac_cs_success || { (exit 1); exit 1; }
 
21634
fi
 
21635
 
 
21636
 
 
21637
if test "x$DOCBOOK" = "xno"; then
 
21638
   { echo "$as_me:$LINENO:
 
21639
 
 
21640
Warning:
 
21641
--------
 
21642
The docbook tool is not installed, the man pages won't be generated.
 
21643
If you want the man pages, install docbook and rerun 'configure'.
 
21644
 
 
21645
" >&5
 
21646
echo "$as_me:
 
21647
 
 
21648
Warning:
 
21649
--------
 
21650
The docbook tool is not installed, the man pages won't be generated.
 
21651
If you want the man pages, install docbook and rerun 'configure'.
 
21652
 
 
21653
" >&6;}
 
21654
 
 
21655
fi
 
21656
 
 
21657
if test "x$SETCAP" = "xno"; then
 
21658
   { echo "$as_me:$LINENO:
 
21659
 
 
21660
Warning:
 
21661
--------
 
21662
 
 
21663
The libcap-2 is not installed. That means the tools to
 
21664
set the privilege for the lxc commands are not available,
 
21665
that's ok, but you will need to run these commands as root
 
21666
 
 
21667
" >&5
 
21668
echo "$as_me:
 
21669
 
 
21670
Warning:
 
21671
--------
 
21672
 
 
21673
The libcap-2 is not installed. That means the tools to
 
21674
set the privilege for the lxc commands are not available,
 
21675
that's ok, but you will need to run these commands as root
 
21676
 
 
21677
" >&6;}
 
21678
 
 
21679
else
 
21680
 
 
21681
   { echo "$as_me:$LINENO:
 
21682
 
 
21683
Advice:
 
21684
-------
 
21685
 
 
21686
If you which to have a non root user to use the lxc tools,
 
21687
you can add the needed capabilities to the tools by invoking
 
21688
the 'lxc-setcap' script. To remove the capabilities, use
 
21689
'lxc-setcap -d'
 
21690
" >&5
 
21691
echo "$as_me:
 
21692
 
 
21693
Advice:
 
21694
-------
 
21695
 
 
21696
If you which to have a non root user to use the lxc tools,
 
21697
you can add the needed capabilities to the tools by invoking
 
21698
the 'lxc-setcap' script. To remove the capabilities, use
 
21699
'lxc-setcap -d'
 
21700
" >&6;}
 
21701
 
 
21702
fi