~ubuntu-branches/ubuntu/utopic/sflphone/utopic-proposed

« back to all changes in this revision

Viewing changes to daemon/libs/pjproject-2.0.1/third_party/portaudio/configure

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2013-06-30 11:40:56 UTC
  • mfrom: (4.1.18 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130630114056-0np50jkyqo6vnmii
Tags: 1.2.3-2
* changeset_r92d62cfc54732bbbcfff2b1d36c096b120b981a5.diff 
  - fixes automatic endian detection 
* Update Vcs: fixes vcs-field-not-canonical

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.
 
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=
 
728
PACKAGE_TARNAME=
 
729
PACKAGE_VERSION=
 
730
PACKAGE_STRING=
 
731
PACKAGE_BUGREPORT=
 
732
 
 
733
ac_unique_file="include/portaudio.h"
 
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
CC
 
808
CFLAGS
 
809
LDFLAGS
 
810
CPPFLAGS
 
811
ac_ct_CC
 
812
EXEEXT
 
813
OBJEXT
 
814
build
 
815
build_cpu
 
816
build_vendor
 
817
build_os
 
818
host
 
819
host_cpu
 
820
host_vendor
 
821
host_os
 
822
GREP
 
823
EGREP
 
824
LN_S
 
825
ECHO
 
826
AR
 
827
RANLIB
 
828
STRIP
 
829
DLLTOOL
 
830
AS
 
831
OBJDUMP
 
832
CPP
 
833
CXX
 
834
CXXFLAGS
 
835
ac_ct_CXX
 
836
CXXCPP
 
837
F77
 
838
FFLAGS
 
839
ac_ct_F77
 
840
LIBTOOL
 
841
INSTALL_PROGRAM
 
842
INSTALL_SCRIPT
 
843
INSTALL_DATA
 
844
PKG_CONFIG
 
845
JACK_CFLAGS
 
846
JACK_LIBS
 
847
LT_CURRENT
 
848
LT_REVISION
 
849
LT_AGE
 
850
OTHER_OBJS
 
851
PADLL
 
852
SHARED_FLAGS
 
853
THREAD_CFLAGS
 
854
DLL_LIBS
 
855
NASM
 
856
NASMOPT
 
857
subdirs
 
858
ENABLE_CXX_TRUE
 
859
ENABLE_CXX_FALSE
 
860
LIBOBJS
 
861
LTLIBOBJS'
 
862
ac_subst_files=''
 
863
      ac_precious_vars='build_alias
 
864
host_alias
 
865
target_alias
 
866
CC
 
867
CFLAGS
 
868
LDFLAGS
 
869
LIBS
 
870
CPPFLAGS
 
871
CPP
 
872
CXX
 
873
CXXFLAGS
 
874
CCC
 
875
CXXCPP
 
876
F77
 
877
FFLAGS
 
878
PKG_CONFIG
 
879
JACK_CFLAGS
 
880
JACK_LIBS'
 
881
ac_subdirs_all='bindings/cpp'
 
882
 
 
883
# Initialize some variables set by options.
 
884
ac_init_help=
 
885
ac_init_version=false
 
886
# The variables have the same names as the options, with
 
887
# dashes changed to underlines.
 
888
cache_file=/dev/null
 
889
exec_prefix=NONE
 
890
no_create=
 
891
no_recursion=
 
892
prefix=NONE
 
893
program_prefix=NONE
 
894
program_suffix=NONE
 
895
program_transform_name=s,x,x,
 
896
silent=
 
897
site=
 
898
srcdir=
 
899
verbose=
 
900
x_includes=NONE
 
901
x_libraries=NONE
 
902
 
 
903
# Installation directory options.
 
904
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
905
# and all the variables that are supposed to be based on exec_prefix
 
906
# by default will actually change.
 
907
# Use braces instead of parens because sh, perl, etc. also accept them.
 
908
# (The list follows the same order as the GNU Coding Standards.)
 
909
bindir='${exec_prefix}/bin'
 
910
sbindir='${exec_prefix}/sbin'
 
911
libexecdir='${exec_prefix}/libexec'
 
912
datarootdir='${prefix}/share'
 
913
datadir='${datarootdir}'
 
914
sysconfdir='${prefix}/etc'
 
915
sharedstatedir='${prefix}/com'
 
916
localstatedir='${prefix}/var'
 
917
includedir='${prefix}/include'
 
918
oldincludedir='/usr/include'
 
919
docdir='${datarootdir}/doc/${PACKAGE}'
 
920
infodir='${datarootdir}/info'
 
921
htmldir='${docdir}'
 
922
dvidir='${docdir}'
 
923
pdfdir='${docdir}'
 
924
psdir='${docdir}'
 
925
libdir='${exec_prefix}/lib'
 
926
localedir='${datarootdir}/locale'
 
927
mandir='${datarootdir}/man'
 
928
 
 
929
ac_prev=
 
930
ac_dashdash=
 
931
for ac_option
 
932
do
 
933
  # If the previous option needs an argument, assign it.
 
934
  if test -n "$ac_prev"; then
 
935
    eval $ac_prev=\$ac_option
 
936
    ac_prev=
 
937
    continue
 
938
  fi
 
939
 
 
940
  case $ac_option in
 
941
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
942
  *)    ac_optarg=yes ;;
 
943
  esac
 
944
 
 
945
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
946
 
 
947
  case $ac_dashdash$ac_option in
 
948
  --)
 
949
    ac_dashdash=yes ;;
 
950
 
 
951
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
952
    ac_prev=bindir ;;
 
953
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
954
    bindir=$ac_optarg ;;
 
955
 
 
956
  -build | --build | --buil | --bui | --bu)
 
957
    ac_prev=build_alias ;;
 
958
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
959
    build_alias=$ac_optarg ;;
 
960
 
 
961
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
962
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
963
    ac_prev=cache_file ;;
 
964
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
965
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
966
    cache_file=$ac_optarg ;;
 
967
 
 
968
  --config-cache | -C)
 
969
    cache_file=config.cache ;;
 
970
 
 
971
  -datadir | --datadir | --datadi | --datad)
 
972
    ac_prev=datadir ;;
 
973
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
974
    datadir=$ac_optarg ;;
 
975
 
 
976
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
977
  | --dataroo | --dataro | --datar)
 
978
    ac_prev=datarootdir ;;
 
979
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
980
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
981
    datarootdir=$ac_optarg ;;
 
982
 
 
983
  -disable-* | --disable-*)
 
984
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
985
    # Reject names that are not valid shell variable names.
 
986
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
987
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
988
   { (exit 1); exit 1; }; }
 
989
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
990
    eval enable_$ac_feature=no ;;
 
991
 
 
992
  -docdir | --docdir | --docdi | --doc | --do)
 
993
    ac_prev=docdir ;;
 
994
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
995
    docdir=$ac_optarg ;;
 
996
 
 
997
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
998
    ac_prev=dvidir ;;
 
999
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1000
    dvidir=$ac_optarg ;;
 
1001
 
 
1002
  -enable-* | --enable-*)
 
1003
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1004
    # Reject names that are not valid shell variable names.
 
1005
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1006
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1007
   { (exit 1); exit 1; }; }
 
1008
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1009
    eval enable_$ac_feature=\$ac_optarg ;;
 
1010
 
 
1011
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1012
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1013
  | --exec | --exe | --ex)
 
1014
    ac_prev=exec_prefix ;;
 
1015
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1016
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1017
  | --exec=* | --exe=* | --ex=*)
 
1018
    exec_prefix=$ac_optarg ;;
 
1019
 
 
1020
  -gas | --gas | --ga | --g)
 
1021
    # Obsolete; use --with-gas.
 
1022
    with_gas=yes ;;
 
1023
 
 
1024
  -help | --help | --hel | --he | -h)
 
1025
    ac_init_help=long ;;
 
1026
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1027
    ac_init_help=recursive ;;
 
1028
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1029
    ac_init_help=short ;;
 
1030
 
 
1031
  -host | --host | --hos | --ho)
 
1032
    ac_prev=host_alias ;;
 
1033
  -host=* | --host=* | --hos=* | --ho=*)
 
1034
    host_alias=$ac_optarg ;;
 
1035
 
 
1036
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1037
    ac_prev=htmldir ;;
 
1038
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1039
  | --ht=*)
 
1040
    htmldir=$ac_optarg ;;
 
1041
 
 
1042
  -includedir | --includedir | --includedi | --included | --include \
 
1043
  | --includ | --inclu | --incl | --inc)
 
1044
    ac_prev=includedir ;;
 
1045
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1046
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1047
    includedir=$ac_optarg ;;
 
1048
 
 
1049
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1050
    ac_prev=infodir ;;
 
1051
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1052
    infodir=$ac_optarg ;;
 
1053
 
 
1054
  -libdir | --libdir | --libdi | --libd)
 
1055
    ac_prev=libdir ;;
 
1056
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1057
    libdir=$ac_optarg ;;
 
1058
 
 
1059
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1060
  | --libexe | --libex | --libe)
 
1061
    ac_prev=libexecdir ;;
 
1062
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1063
  | --libexe=* | --libex=* | --libe=*)
 
1064
    libexecdir=$ac_optarg ;;
 
1065
 
 
1066
  -localedir | --localedir | --localedi | --localed | --locale)
 
1067
    ac_prev=localedir ;;
 
1068
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1069
    localedir=$ac_optarg ;;
 
1070
 
 
1071
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1072
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1073
    ac_prev=localstatedir ;;
 
1074
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1075
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1076
    localstatedir=$ac_optarg ;;
 
1077
 
 
1078
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1079
    ac_prev=mandir ;;
 
1080
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1081
    mandir=$ac_optarg ;;
 
1082
 
 
1083
  -nfp | --nfp | --nf)
 
1084
    # Obsolete; use --without-fp.
 
1085
    with_fp=no ;;
 
1086
 
 
1087
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1088
  | --no-cr | --no-c | -n)
 
1089
    no_create=yes ;;
 
1090
 
 
1091
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1092
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1093
    no_recursion=yes ;;
 
1094
 
 
1095
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1096
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1097
  | --oldin | --oldi | --old | --ol | --o)
 
1098
    ac_prev=oldincludedir ;;
 
1099
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1100
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1101
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1102
    oldincludedir=$ac_optarg ;;
 
1103
 
 
1104
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1105
    ac_prev=prefix ;;
 
1106
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1107
    prefix=$ac_optarg ;;
 
1108
 
 
1109
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1110
  | --program-pre | --program-pr | --program-p)
 
1111
    ac_prev=program_prefix ;;
 
1112
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1113
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1114
    program_prefix=$ac_optarg ;;
 
1115
 
 
1116
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1117
  | --program-suf | --program-su | --program-s)
 
1118
    ac_prev=program_suffix ;;
 
1119
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1120
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1121
    program_suffix=$ac_optarg ;;
 
1122
 
 
1123
  -program-transform-name | --program-transform-name \
 
1124
  | --program-transform-nam | --program-transform-na \
 
1125
  | --program-transform-n | --program-transform- \
 
1126
  | --program-transform | --program-transfor \
 
1127
  | --program-transfo | --program-transf \
 
1128
  | --program-trans | --program-tran \
 
1129
  | --progr-tra | --program-tr | --program-t)
 
1130
    ac_prev=program_transform_name ;;
 
1131
  -program-transform-name=* | --program-transform-name=* \
 
1132
  | --program-transform-nam=* | --program-transform-na=* \
 
1133
  | --program-transform-n=* | --program-transform-=* \
 
1134
  | --program-transform=* | --program-transfor=* \
 
1135
  | --program-transfo=* | --program-transf=* \
 
1136
  | --program-trans=* | --program-tran=* \
 
1137
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1138
    program_transform_name=$ac_optarg ;;
 
1139
 
 
1140
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1141
    ac_prev=pdfdir ;;
 
1142
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1143
    pdfdir=$ac_optarg ;;
 
1144
 
 
1145
  -psdir | --psdir | --psdi | --psd | --ps)
 
1146
    ac_prev=psdir ;;
 
1147
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1148
    psdir=$ac_optarg ;;
 
1149
 
 
1150
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1151
  | -silent | --silent | --silen | --sile | --sil)
 
1152
    silent=yes ;;
 
1153
 
 
1154
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1155
    ac_prev=sbindir ;;
 
1156
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1157
  | --sbi=* | --sb=*)
 
1158
    sbindir=$ac_optarg ;;
 
1159
 
 
1160
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1161
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1162
  | --sharedst | --shareds | --shared | --share | --shar \
 
1163
  | --sha | --sh)
 
1164
    ac_prev=sharedstatedir ;;
 
1165
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1166
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1167
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1168
  | --sha=* | --sh=*)
 
1169
    sharedstatedir=$ac_optarg ;;
 
1170
 
 
1171
  -site | --site | --sit)
 
1172
    ac_prev=site ;;
 
1173
  -site=* | --site=* | --sit=*)
 
1174
    site=$ac_optarg ;;
 
1175
 
 
1176
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1177
    ac_prev=srcdir ;;
 
1178
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1179
    srcdir=$ac_optarg ;;
 
1180
 
 
1181
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1182
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1183
    ac_prev=sysconfdir ;;
 
1184
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1185
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1186
    sysconfdir=$ac_optarg ;;
 
1187
 
 
1188
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1189
    ac_prev=target_alias ;;
 
1190
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1191
    target_alias=$ac_optarg ;;
 
1192
 
 
1193
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1194
    verbose=yes ;;
 
1195
 
 
1196
  -version | --version | --versio | --versi | --vers | -V)
 
1197
    ac_init_version=: ;;
 
1198
 
 
1199
  -with-* | --with-*)
 
1200
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1201
    # Reject names that are not valid shell variable names.
 
1202
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1203
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1204
   { (exit 1); exit 1; }; }
 
1205
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1206
    eval with_$ac_package=\$ac_optarg ;;
 
1207
 
 
1208
  -without-* | --without-*)
 
1209
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1210
    # Reject names that are not valid shell variable names.
 
1211
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1212
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1213
   { (exit 1); exit 1; }; }
 
1214
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1215
    eval with_$ac_package=no ;;
 
1216
 
 
1217
  --x)
 
1218
    # Obsolete; use --with-x.
 
1219
    with_x=yes ;;
 
1220
 
 
1221
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1222
  | --x-incl | --x-inc | --x-in | --x-i)
 
1223
    ac_prev=x_includes ;;
 
1224
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1225
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1226
    x_includes=$ac_optarg ;;
 
1227
 
 
1228
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1229
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1230
    ac_prev=x_libraries ;;
 
1231
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1232
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1233
    x_libraries=$ac_optarg ;;
 
1234
 
 
1235
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1236
Try \`$0 --help' for more information." >&2
 
1237
   { (exit 1); exit 1; }; }
 
1238
    ;;
 
1239
 
 
1240
  *=*)
 
1241
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1242
    # Reject names that are not valid shell variable names.
 
1243
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1244
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1245
   { (exit 1); exit 1; }; }
 
1246
    eval $ac_envvar=\$ac_optarg
 
1247
    export $ac_envvar ;;
 
1248
 
 
1249
  *)
 
1250
    # FIXME: should be removed in autoconf 3.0.
 
1251
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1252
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1253
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1254
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1255
    ;;
 
1256
 
 
1257
  esac
 
1258
done
 
1259
 
 
1260
if test -n "$ac_prev"; then
 
1261
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1262
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1263
   { (exit 1); exit 1; }; }
 
1264
fi
 
1265
 
 
1266
# Be sure to have absolute directory names.
 
1267
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1268
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1269
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1270
                libdir localedir mandir
 
1271
do
 
1272
  eval ac_val=\$$ac_var
 
1273
  case $ac_val in
 
1274
    [\\/$]* | ?:[\\/]* )  continue;;
 
1275
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1276
  esac
 
1277
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1278
   { (exit 1); exit 1; }; }
 
1279
done
 
1280
 
 
1281
# There might be people who depend on the old broken behavior: `$host'
 
1282
# used to hold the argument of --host etc.
 
1283
# FIXME: To remove some day.
 
1284
build=$build_alias
 
1285
host=$host_alias
 
1286
target=$target_alias
 
1287
 
 
1288
# FIXME: To remove some day.
 
1289
if test "x$host_alias" != x; then
 
1290
  if test "x$build_alias" = x; then
 
1291
    cross_compiling=maybe
 
1292
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1293
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1294
  elif test "x$build_alias" != "x$host_alias"; then
 
1295
    cross_compiling=yes
 
1296
  fi
 
1297
fi
 
1298
 
 
1299
ac_tool_prefix=
 
1300
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1301
 
 
1302
test "$silent" = yes && exec 6>/dev/null
 
1303
 
 
1304
 
 
1305
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1306
ac_ls_di=`ls -di .` &&
 
1307
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1308
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1309
   { (exit 1); exit 1; }; }
 
1310
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1311
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1312
   { (exit 1); exit 1; }; }
 
1313
 
 
1314
 
 
1315
# Find the source files, if location was not specified.
 
1316
if test -z "$srcdir"; then
 
1317
  ac_srcdir_defaulted=yes
 
1318
  # Try the directory containing this script, then the parent directory.
 
1319
  ac_confdir=`$as_dirname -- "$0" ||
 
1320
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1321
         X"$0" : 'X\(//\)[^/]' \| \
 
1322
         X"$0" : 'X\(//\)$' \| \
 
1323
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1324
echo X"$0" |
 
1325
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1326
            s//\1/
 
1327
            q
 
1328
          }
 
1329
          /^X\(\/\/\)[^/].*/{
 
1330
            s//\1/
 
1331
            q
 
1332
          }
 
1333
          /^X\(\/\/\)$/{
 
1334
            s//\1/
 
1335
            q
 
1336
          }
 
1337
          /^X\(\/\).*/{
 
1338
            s//\1/
 
1339
            q
 
1340
          }
 
1341
          s/.*/./; q'`
 
1342
  srcdir=$ac_confdir
 
1343
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1344
    srcdir=..
 
1345
  fi
 
1346
else
 
1347
  ac_srcdir_defaulted=no
 
1348
fi
 
1349
if test ! -r "$srcdir/$ac_unique_file"; then
 
1350
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1351
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1352
   { (exit 1); exit 1; }; }
 
1353
fi
 
1354
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1355
ac_abs_confdir=`(
 
1356
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1357
   { (exit 1); exit 1; }; }
 
1358
        pwd)`
 
1359
# When building in place, set srcdir=.
 
1360
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1361
  srcdir=.
 
1362
fi
 
1363
# Remove unnecessary trailing slashes from srcdir.
 
1364
# Double slashes in file names in object file debugging info
 
1365
# mess up M-x gdb in Emacs.
 
1366
case $srcdir in
 
1367
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1368
esac
 
1369
for ac_var in $ac_precious_vars; do
 
1370
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1371
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1372
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1373
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1374
done
 
1375
 
 
1376
#
 
1377
# Report the --help message.
 
1378
#
 
1379
if test "$ac_init_help" = "long"; then
 
1380
  # Omit some internal or obsolete options to make the list less imposing.
 
1381
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1382
  cat <<_ACEOF
 
1383
\`configure' configures this package to adapt to many kinds of systems.
 
1384
 
 
1385
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1386
 
 
1387
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1388
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1389
 
 
1390
Defaults for the options are specified in brackets.
 
1391
 
 
1392
Configuration:
 
1393
  -h, --help              display this help and exit
 
1394
      --help=short        display options specific to this package
 
1395
      --help=recursive    display the short help of all the included packages
 
1396
  -V, --version           display version information and exit
 
1397
  -q, --quiet, --silent   do not print \`checking...' messages
 
1398
      --cache-file=FILE   cache test results in FILE [disabled]
 
1399
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1400
  -n, --no-create         do not create output files
 
1401
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1402
 
 
1403
Installation directories:
 
1404
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1405
                          [$ac_default_prefix]
 
1406
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1407
                          [PREFIX]
 
1408
 
 
1409
By default, \`make install' will install all the files in
 
1410
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1411
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1412
for instance \`--prefix=\$HOME'.
 
1413
 
 
1414
For better control, use the options below.
 
1415
 
 
1416
Fine tuning of the installation directories:
 
1417
  --bindir=DIR           user executables [EPREFIX/bin]
 
1418
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1419
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1420
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1421
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1422
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1423
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1424
  --includedir=DIR       C header files [PREFIX/include]
 
1425
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1426
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1427
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1428
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1429
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1430
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1431
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1432
  --htmldir=DIR          html documentation [DOCDIR]
 
1433
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1434
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1435
  --psdir=DIR            ps documentation [DOCDIR]
 
1436
_ACEOF
 
1437
 
 
1438
  cat <<\_ACEOF
 
1439
 
 
1440
System types:
 
1441
  --build=BUILD     configure for building on BUILD [guessed]
 
1442
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1443
_ACEOF
 
1444
fi
 
1445
 
 
1446
if test -n "$ac_init_help"; then
 
1447
 
 
1448
  cat <<\_ACEOF
 
1449
 
 
1450
Optional Features:
 
1451
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1452
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1453
  --enable-debug-output
 
1454
  --enable-cxx (default=no)
 
1455
  --enable-mac-debug (default=no)
 
1456
  --enable-mac-universal (default=yes)
 
1457
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1458
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1459
  --enable-fast-install[=PKGS]
 
1460
                          optimize for fast installation [default=yes]
 
1461
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1462
 
 
1463
Optional Packages:
 
1464
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1465
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1466
  --with-alsa (default=yes)
 
1467
  --with-jack (default=yes)
 
1468
  --with-oss (default=yes)
 
1469
  --with-asihpi (default=auto)
 
1470
  --with-host_os (no default)
 
1471
  --with-winapi ((wmme/directx/asio) default=wmme)
 
1472
  --with-macapi ((asio/core/sm) default=core)
 
1473
  --with-asiodir (default=/usr/local/asiosdk2)
 
1474
  --with-dxdir (default=/usr/local/dx7sdk)
 
1475
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1476
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1477
                          both]
 
1478
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1479
 
 
1480
Some influential environment variables:
 
1481
  CC          C compiler command
 
1482
  CFLAGS      C compiler flags
 
1483
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1484
              nonstandard directory <lib dir>
 
1485
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1486
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1487
              you have headers in a nonstandard directory <include dir>
 
1488
  CPP         C preprocessor
 
1489
  CXX         C++ compiler command
 
1490
  CXXFLAGS    C++ compiler flags
 
1491
  CXXCPP      C++ preprocessor
 
1492
  F77         Fortran 77 compiler command
 
1493
  FFLAGS      Fortran 77 compiler flags
 
1494
  PKG_CONFIG  path to pkg-config utility
 
1495
  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
 
1496
  JACK_LIBS   linker flags for JACK, overriding pkg-config
 
1497
 
 
1498
Use these variables to override the choices made by `configure' or to help
 
1499
it to find libraries and programs with nonstandard names/locations.
 
1500
 
 
1501
_ACEOF
 
1502
ac_status=$?
 
1503
fi
 
1504
 
 
1505
if test "$ac_init_help" = "recursive"; then
 
1506
  # If there are subdirs, report their specific --help.
 
1507
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1508
    test -d "$ac_dir" || continue
 
1509
    ac_builddir=.
 
1510
 
 
1511
case "$ac_dir" in
 
1512
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1513
*)
 
1514
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1515
  # A ".." for each directory in $ac_dir_suffix.
 
1516
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1517
  case $ac_top_builddir_sub in
 
1518
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1519
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1520
  esac ;;
 
1521
esac
 
1522
ac_abs_top_builddir=$ac_pwd
 
1523
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1524
# for backward compatibility:
 
1525
ac_top_builddir=$ac_top_build_prefix
 
1526
 
 
1527
case $srcdir in
 
1528
  .)  # We are building in place.
 
1529
    ac_srcdir=.
 
1530
    ac_top_srcdir=$ac_top_builddir_sub
 
1531
    ac_abs_top_srcdir=$ac_pwd ;;
 
1532
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1533
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1534
    ac_top_srcdir=$srcdir
 
1535
    ac_abs_top_srcdir=$srcdir ;;
 
1536
  *) # Relative name.
 
1537
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1538
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1539
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1540
esac
 
1541
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1542
 
 
1543
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1544
    # Check for guested configure.
 
1545
    if test -f "$ac_srcdir/configure.gnu"; then
 
1546
      echo &&
 
1547
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1548
    elif test -f "$ac_srcdir/configure"; then
 
1549
      echo &&
 
1550
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1551
    else
 
1552
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1553
    fi || ac_status=$?
 
1554
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1555
  done
 
1556
fi
 
1557
 
 
1558
test -n "$ac_init_help" && exit $ac_status
 
1559
if $ac_init_version; then
 
1560
  cat <<\_ACEOF
 
1561
configure
 
1562
generated by GNU Autoconf 2.61
 
1563
 
 
1564
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1565
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1566
This configure script is free software; the Free Software Foundation
 
1567
gives unlimited permission to copy, distribute and modify it.
 
1568
_ACEOF
 
1569
  exit
 
1570
fi
 
1571
cat >config.log <<_ACEOF
 
1572
This file contains any messages produced by compilers while
 
1573
running configure, to aid debugging if configure makes a mistake.
 
1574
 
 
1575
It was created by $as_me, which was
 
1576
generated by GNU Autoconf 2.61.  Invocation command line was
 
1577
 
 
1578
  $ $0 $@
 
1579
 
 
1580
_ACEOF
 
1581
exec 5>>config.log
 
1582
{
 
1583
cat <<_ASUNAME
 
1584
## --------- ##
 
1585
## Platform. ##
 
1586
## --------- ##
 
1587
 
 
1588
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1589
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1590
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1591
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1592
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1593
 
 
1594
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1595
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1596
 
 
1597
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1598
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1599
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1600
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1601
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1602
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1603
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1604
 
 
1605
_ASUNAME
 
1606
 
 
1607
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1608
for as_dir in $PATH
 
1609
do
 
1610
  IFS=$as_save_IFS
 
1611
  test -z "$as_dir" && as_dir=.
 
1612
  echo "PATH: $as_dir"
 
1613
done
 
1614
IFS=$as_save_IFS
 
1615
 
 
1616
} >&5
 
1617
 
 
1618
cat >&5 <<_ACEOF
 
1619
 
 
1620
 
 
1621
## ----------- ##
 
1622
## Core tests. ##
 
1623
## ----------- ##
 
1624
 
 
1625
_ACEOF
 
1626
 
 
1627
 
 
1628
# Keep a trace of the command line.
 
1629
# Strip out --no-create and --no-recursion so they do not pile up.
 
1630
# Strip out --silent because we don't want to record it for future runs.
 
1631
# Also quote any args containing shell meta-characters.
 
1632
# Make two passes to allow for proper duplicate-argument suppression.
 
1633
ac_configure_args=
 
1634
ac_configure_args0=
 
1635
ac_configure_args1=
 
1636
ac_must_keep_next=false
 
1637
for ac_pass in 1 2
 
1638
do
 
1639
  for ac_arg
 
1640
  do
 
1641
    case $ac_arg in
 
1642
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1643
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1644
    | -silent | --silent | --silen | --sile | --sil)
 
1645
      continue ;;
 
1646
    *\'*)
 
1647
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1648
    esac
 
1649
    case $ac_pass in
 
1650
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1651
    2)
 
1652
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1653
      if test $ac_must_keep_next = true; then
 
1654
        ac_must_keep_next=false # Got value, back to normal.
 
1655
      else
 
1656
        case $ac_arg in
 
1657
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1658
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1659
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1660
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1661
            case "$ac_configure_args0 " in
 
1662
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1663
            esac
 
1664
            ;;
 
1665
          -* ) ac_must_keep_next=true ;;
 
1666
        esac
 
1667
      fi
 
1668
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1669
      ;;
 
1670
    esac
 
1671
  done
 
1672
done
 
1673
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1674
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1675
 
 
1676
# When interrupted or exit'd, cleanup temporary files, and complete
 
1677
# config.log.  We remove comments because anyway the quotes in there
 
1678
# would cause problems or look ugly.
 
1679
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1680
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1681
trap 'exit_status=$?
 
1682
  # Save into config.log some information that might help in debugging.
 
1683
  {
 
1684
    echo
 
1685
 
 
1686
    cat <<\_ASBOX
 
1687
## ---------------- ##
 
1688
## Cache variables. ##
 
1689
## ---------------- ##
 
1690
_ASBOX
 
1691
    echo
 
1692
    # The following way of writing the cache mishandles newlines in values,
 
1693
(
 
1694
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1695
    eval ac_val=\$$ac_var
 
1696
    case $ac_val in #(
 
1697
    *${as_nl}*)
 
1698
      case $ac_var in #(
 
1699
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1700
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1701
      esac
 
1702
      case $ac_var in #(
 
1703
      _ | IFS | as_nl) ;; #(
 
1704
      *) $as_unset $ac_var ;;
 
1705
      esac ;;
 
1706
    esac
 
1707
  done
 
1708
  (set) 2>&1 |
 
1709
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1710
    *${as_nl}ac_space=\ *)
 
1711
      sed -n \
 
1712
        "s/'\''/'\''\\\\'\'''\''/g;
 
1713
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1714
      ;; #(
 
1715
    *)
 
1716
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1717
      ;;
 
1718
    esac |
 
1719
    sort
 
1720
)
 
1721
    echo
 
1722
 
 
1723
    cat <<\_ASBOX
 
1724
## ----------------- ##
 
1725
## Output variables. ##
 
1726
## ----------------- ##
 
1727
_ASBOX
 
1728
    echo
 
1729
    for ac_var in $ac_subst_vars
 
1730
    do
 
1731
      eval ac_val=\$$ac_var
 
1732
      case $ac_val in
 
1733
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1734
      esac
 
1735
      echo "$ac_var='\''$ac_val'\''"
 
1736
    done | sort
 
1737
    echo
 
1738
 
 
1739
    if test -n "$ac_subst_files"; then
 
1740
      cat <<\_ASBOX
 
1741
## ------------------- ##
 
1742
## File substitutions. ##
 
1743
## ------------------- ##
 
1744
_ASBOX
 
1745
      echo
 
1746
      for ac_var in $ac_subst_files
 
1747
      do
 
1748
        eval ac_val=\$$ac_var
 
1749
        case $ac_val in
 
1750
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1751
        esac
 
1752
        echo "$ac_var='\''$ac_val'\''"
 
1753
      done | sort
 
1754
      echo
 
1755
    fi
 
1756
 
 
1757
    if test -s confdefs.h; then
 
1758
      cat <<\_ASBOX
 
1759
## ----------- ##
 
1760
## confdefs.h. ##
 
1761
## ----------- ##
 
1762
_ASBOX
 
1763
      echo
 
1764
      cat confdefs.h
 
1765
      echo
 
1766
    fi
 
1767
    test "$ac_signal" != 0 &&
 
1768
      echo "$as_me: caught signal $ac_signal"
 
1769
    echo "$as_me: exit $exit_status"
 
1770
  } >&5
 
1771
  rm -f core *.core core.conftest.* &&
 
1772
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1773
    exit $exit_status
 
1774
' 0
 
1775
for ac_signal in 1 2 13 15; do
 
1776
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1777
done
 
1778
ac_signal=0
 
1779
 
 
1780
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1781
rm -f -r conftest* confdefs.h
 
1782
 
 
1783
# Predefined preprocessor variables.
 
1784
 
 
1785
cat >>confdefs.h <<_ACEOF
 
1786
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1787
_ACEOF
 
1788
 
 
1789
 
 
1790
cat >>confdefs.h <<_ACEOF
 
1791
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1792
_ACEOF
 
1793
 
 
1794
 
 
1795
cat >>confdefs.h <<_ACEOF
 
1796
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1797
_ACEOF
 
1798
 
 
1799
 
 
1800
cat >>confdefs.h <<_ACEOF
 
1801
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1802
_ACEOF
 
1803
 
 
1804
 
 
1805
cat >>confdefs.h <<_ACEOF
 
1806
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1807
_ACEOF
 
1808
 
 
1809
 
 
1810
# Let the site file select an alternate cache file if it wants to.
 
1811
# Prefer explicitly selected file to automatically selected ones.
 
1812
if test -n "$CONFIG_SITE"; then
 
1813
  set x "$CONFIG_SITE"
 
1814
elif test "x$prefix" != xNONE; then
 
1815
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1816
else
 
1817
  set x "$ac_default_prefix/share/config.site" \
 
1818
        "$ac_default_prefix/etc/config.site"
 
1819
fi
 
1820
shift
 
1821
for ac_site_file
 
1822
do
 
1823
  if test -r "$ac_site_file"; then
 
1824
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1825
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1826
    sed 's/^/| /' "$ac_site_file" >&5
 
1827
    . "$ac_site_file"
 
1828
  fi
 
1829
done
 
1830
 
 
1831
if test -r "$cache_file"; then
 
1832
  # Some versions of bash will fail to source /dev/null (special
 
1833
  # files actually), so we avoid doing that.
 
1834
  if test -f "$cache_file"; then
 
1835
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1836
echo "$as_me: loading cache $cache_file" >&6;}
 
1837
    case $cache_file in
 
1838
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1839
      *)                      . "./$cache_file";;
 
1840
    esac
 
1841
  fi
 
1842
else
 
1843
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1844
echo "$as_me: creating cache $cache_file" >&6;}
 
1845
  >$cache_file
 
1846
fi
 
1847
 
 
1848
# Check that the precious variables saved in the cache have kept the same
 
1849
# value.
 
1850
ac_cache_corrupted=false
 
1851
for ac_var in $ac_precious_vars; do
 
1852
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1853
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1854
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1855
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1856
  case $ac_old_set,$ac_new_set in
 
1857
    set,)
 
1858
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1859
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1860
      ac_cache_corrupted=: ;;
 
1861
    ,set)
 
1862
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1863
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1864
      ac_cache_corrupted=: ;;
 
1865
    ,);;
 
1866
    *)
 
1867
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1868
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1869
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1870
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1871
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1872
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1873
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1874
        ac_cache_corrupted=:
 
1875
      fi;;
 
1876
  esac
 
1877
  # Pass precious variables to config.status.
 
1878
  if test "$ac_new_set" = set; then
 
1879
    case $ac_new_val in
 
1880
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1881
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1882
    esac
 
1883
    case " $ac_configure_args " in
 
1884
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1885
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1886
    esac
 
1887
  fi
 
1888
done
 
1889
if $ac_cache_corrupted; then
 
1890
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1891
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1892
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1893
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1894
   { (exit 1); exit 1; }; }
 
1895
fi
 
1896
 
 
1897
 
 
1898
 
 
1899
 
 
1900
 
 
1901
 
 
1902
 
 
1903
 
 
1904
 
 
1905
 
 
1906
 
 
1907
 
 
1908
 
 
1909
 
 
1910
 
 
1911
 
 
1912
 
 
1913
ac_ext=c
 
1914
ac_cpp='$CPP $CPPFLAGS'
 
1915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
# Check whether --with-alsa was given.
 
1924
if test "${with_alsa+set}" = set; then
 
1925
  withval=$with_alsa; with_alsa=$withval
 
1926
else
 
1927
  with_alsa="yes"
 
1928
fi
 
1929
 
 
1930
 
 
1931
 
 
1932
# Check whether --with-jack was given.
 
1933
if test "${with_jack+set}" = set; then
 
1934
  withval=$with_jack; with_jack=$withval
 
1935
else
 
1936
  with_jack="yes"
 
1937
fi
 
1938
 
 
1939
 
 
1940
 
 
1941
# Check whether --with-oss was given.
 
1942
if test "${with_oss+set}" = set; then
 
1943
  withval=$with_oss; with_oss=$withval
 
1944
else
 
1945
  with_oss="yes"
 
1946
fi
 
1947
 
 
1948
 
 
1949
 
 
1950
# Check whether --with-asihpi was given.
 
1951
if test "${with_asihpi+set}" = set; then
 
1952
  withval=$with_asihpi; with_asihpi=$withval
 
1953
else
 
1954
  with_asihpi="yes"
 
1955
fi
 
1956
 
 
1957
 
 
1958
 
 
1959
# Check whether --with-host_os was given.
 
1960
if test "${with_host_os+set}" = set; then
 
1961
  withval=$with_host_os; host_os=$withval
 
1962
fi
 
1963
 
 
1964
 
 
1965
 
 
1966
# Check whether --with-winapi was given.
 
1967
if test "${with_winapi+set}" = set; then
 
1968
  withval=$with_winapi; with_winapi=$withval
 
1969
else
 
1970
  with_winapi="wmme"
 
1971
fi
 
1972
 
 
1973
 
 
1974
 
 
1975
# Check whether --with-macapi was given.
 
1976
if test "${with_macapi+set}" = set; then
 
1977
  withval=$with_macapi; with_macapi=$withval
 
1978
else
 
1979
  with_macapi="core"
 
1980
fi
 
1981
 
 
1982
 
 
1983
 
 
1984
# Check whether --with-asiodir was given.
 
1985
if test "${with_asiodir+set}" = set; then
 
1986
  withval=$with_asiodir; with_asiodir=$withval
 
1987
else
 
1988
  with_asiodir="/usr/local/asiosdk2"
 
1989
fi
 
1990
 
 
1991
 
 
1992
 
 
1993
# Check whether --with-dxdir was given.
 
1994
if test "${with_dxdir+set}" = set; then
 
1995
  withval=$with_dxdir; with_dxdir=$withval
 
1996
else
 
1997
  with_dxdir="/usr/local/dx7sdk"
 
1998
fi
 
1999
 
 
2000
 
 
2001
# Check whether --enable-debug-output was given.
 
2002
if test "${enable_debug_output+set}" = set; then
 
2003
  enableval=$enable_debug_output; if test x$enableval != xno ; then
 
2004
 
 
2005
cat >>confdefs.h <<\_ACEOF
 
2006
#define PA_ENABLE_DEBUG_OUTPUT
 
2007
_ACEOF
 
2008
 
 
2009
             fi
 
2010
 
 
2011
fi
 
2012
 
 
2013
 
 
2014
# Check whether --enable-cxx was given.
 
2015
if test "${enable_cxx+set}" = set; then
 
2016
  enableval=$enable_cxx; enable_cxx=$enableval
 
2017
else
 
2018
  enable_cxx="no"
 
2019
fi
 
2020
 
 
2021
 
 
2022
# Check whether --enable-mac-debug was given.
 
2023
if test "${enable_mac_debug+set}" = set; then
 
2024
  enableval=$enable_mac_debug; enable_mac_debug=$enableval
 
2025
else
 
2026
  enable_mac_debug="no"
 
2027
fi
 
2028
 
 
2029
 
 
2030
# Check whether --enable-mac-universal was given.
 
2031
if test "${enable_mac_universal+set}" = set; then
 
2032
  enableval=$enable_mac_universal; enable_mac_universal=$enableval
 
2033
else
 
2034
  enable_mac_universal="yes"
 
2035
fi
 
2036
 
 
2037
 
 
2038
 
 
2039
ac_ext=c
 
2040
ac_cpp='$CPP $CPPFLAGS'
 
2041
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2042
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2043
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2044
if test -n "$ac_tool_prefix"; then
 
2045
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2046
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2047
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2048
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2049
if test "${ac_cv_prog_CC+set}" = set; then
 
2050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2051
else
 
2052
  if test -n "$CC"; then
 
2053
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2054
else
 
2055
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2056
for as_dir in $PATH
 
2057
do
 
2058
  IFS=$as_save_IFS
 
2059
  test -z "$as_dir" && as_dir=.
 
2060
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2061
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2062
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2063
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2064
    break 2
 
2065
  fi
 
2066
done
 
2067
done
 
2068
IFS=$as_save_IFS
 
2069
 
 
2070
fi
 
2071
fi
 
2072
CC=$ac_cv_prog_CC
 
2073
if test -n "$CC"; then
 
2074
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2075
echo "${ECHO_T}$CC" >&6; }
 
2076
else
 
2077
  { echo "$as_me:$LINENO: result: no" >&5
 
2078
echo "${ECHO_T}no" >&6; }
 
2079
fi
 
2080
 
 
2081
 
 
2082
fi
 
2083
if test -z "$ac_cv_prog_CC"; then
 
2084
  ac_ct_CC=$CC
 
2085
  # Extract the first word of "gcc", so it can be a program name with args.
 
2086
set dummy gcc; ac_word=$2
 
2087
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2088
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2089
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2091
else
 
2092
  if test -n "$ac_ct_CC"; then
 
2093
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2094
else
 
2095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2096
for as_dir in $PATH
 
2097
do
 
2098
  IFS=$as_save_IFS
 
2099
  test -z "$as_dir" && as_dir=.
 
2100
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2101
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2102
    ac_cv_prog_ac_ct_CC="gcc"
 
2103
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2104
    break 2
 
2105
  fi
 
2106
done
 
2107
done
 
2108
IFS=$as_save_IFS
 
2109
 
 
2110
fi
 
2111
fi
 
2112
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2113
if test -n "$ac_ct_CC"; then
 
2114
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2115
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2116
else
 
2117
  { echo "$as_me:$LINENO: result: no" >&5
 
2118
echo "${ECHO_T}no" >&6; }
 
2119
fi
 
2120
 
 
2121
  if test "x$ac_ct_CC" = x; then
 
2122
    CC=""
 
2123
  else
 
2124
    case $cross_compiling:$ac_tool_warned in
 
2125
yes:)
 
2126
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2127
whose name does not start with the host triplet.  If you think this
 
2128
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2129
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2130
whose name does not start with the host triplet.  If you think this
 
2131
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2132
ac_tool_warned=yes ;;
 
2133
esac
 
2134
    CC=$ac_ct_CC
 
2135
  fi
 
2136
else
 
2137
  CC="$ac_cv_prog_CC"
 
2138
fi
 
2139
 
 
2140
if test -z "$CC"; then
 
2141
          if test -n "$ac_tool_prefix"; then
 
2142
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2143
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2144
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2145
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2146
if test "${ac_cv_prog_CC+set}" = set; then
 
2147
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2148
else
 
2149
  if test -n "$CC"; then
 
2150
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2151
else
 
2152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2153
for as_dir in $PATH
 
2154
do
 
2155
  IFS=$as_save_IFS
 
2156
  test -z "$as_dir" && as_dir=.
 
2157
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2158
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2159
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2160
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2161
    break 2
 
2162
  fi
 
2163
done
 
2164
done
 
2165
IFS=$as_save_IFS
 
2166
 
 
2167
fi
 
2168
fi
 
2169
CC=$ac_cv_prog_CC
 
2170
if test -n "$CC"; then
 
2171
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2172
echo "${ECHO_T}$CC" >&6; }
 
2173
else
 
2174
  { echo "$as_me:$LINENO: result: no" >&5
 
2175
echo "${ECHO_T}no" >&6; }
 
2176
fi
 
2177
 
 
2178
 
 
2179
  fi
 
2180
fi
 
2181
if test -z "$CC"; then
 
2182
  # Extract the first word of "cc", so it can be a program name with args.
 
2183
set dummy cc; ac_word=$2
 
2184
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2185
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2186
if test "${ac_cv_prog_CC+set}" = set; then
 
2187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2188
else
 
2189
  if test -n "$CC"; then
 
2190
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2191
else
 
2192
  ac_prog_rejected=no
 
2193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2194
for as_dir in $PATH
 
2195
do
 
2196
  IFS=$as_save_IFS
 
2197
  test -z "$as_dir" && as_dir=.
 
2198
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2199
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2200
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2201
       ac_prog_rejected=yes
 
2202
       continue
 
2203
     fi
 
2204
    ac_cv_prog_CC="cc"
 
2205
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2206
    break 2
 
2207
  fi
 
2208
done
 
2209
done
 
2210
IFS=$as_save_IFS
 
2211
 
 
2212
if test $ac_prog_rejected = yes; then
 
2213
  # We found a bogon in the path, so make sure we never use it.
 
2214
  set dummy $ac_cv_prog_CC
 
2215
  shift
 
2216
  if test $# != 0; then
 
2217
    # We chose a different compiler from the bogus one.
 
2218
    # However, it has the same basename, so the bogon will be chosen
 
2219
    # first if we set CC to just the basename; use the full file name.
 
2220
    shift
 
2221
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2222
  fi
 
2223
fi
 
2224
fi
 
2225
fi
 
2226
CC=$ac_cv_prog_CC
 
2227
if test -n "$CC"; then
 
2228
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2229
echo "${ECHO_T}$CC" >&6; }
 
2230
else
 
2231
  { echo "$as_me:$LINENO: result: no" >&5
 
2232
echo "${ECHO_T}no" >&6; }
 
2233
fi
 
2234
 
 
2235
 
 
2236
fi
 
2237
if test -z "$CC"; then
 
2238
  if test -n "$ac_tool_prefix"; then
 
2239
  for ac_prog in cl.exe
 
2240
  do
 
2241
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2242
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2243
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2244
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2245
if test "${ac_cv_prog_CC+set}" = set; then
 
2246
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2247
else
 
2248
  if test -n "$CC"; then
 
2249
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2250
else
 
2251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2252
for as_dir in $PATH
 
2253
do
 
2254
  IFS=$as_save_IFS
 
2255
  test -z "$as_dir" && as_dir=.
 
2256
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2257
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2258
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2259
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2260
    break 2
 
2261
  fi
 
2262
done
 
2263
done
 
2264
IFS=$as_save_IFS
 
2265
 
 
2266
fi
 
2267
fi
 
2268
CC=$ac_cv_prog_CC
 
2269
if test -n "$CC"; then
 
2270
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2271
echo "${ECHO_T}$CC" >&6; }
 
2272
else
 
2273
  { echo "$as_me:$LINENO: result: no" >&5
 
2274
echo "${ECHO_T}no" >&6; }
 
2275
fi
 
2276
 
 
2277
 
 
2278
    test -n "$CC" && break
 
2279
  done
 
2280
fi
 
2281
if test -z "$CC"; then
 
2282
  ac_ct_CC=$CC
 
2283
  for ac_prog in cl.exe
 
2284
do
 
2285
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2286
set dummy $ac_prog; ac_word=$2
 
2287
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2288
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2289
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2290
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2291
else
 
2292
  if test -n "$ac_ct_CC"; then
 
2293
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2294
else
 
2295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2296
for as_dir in $PATH
 
2297
do
 
2298
  IFS=$as_save_IFS
 
2299
  test -z "$as_dir" && as_dir=.
 
2300
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2301
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2302
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2303
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2304
    break 2
 
2305
  fi
 
2306
done
 
2307
done
 
2308
IFS=$as_save_IFS
 
2309
 
 
2310
fi
 
2311
fi
 
2312
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2313
if test -n "$ac_ct_CC"; then
 
2314
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2315
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2316
else
 
2317
  { echo "$as_me:$LINENO: result: no" >&5
 
2318
echo "${ECHO_T}no" >&6; }
 
2319
fi
 
2320
 
 
2321
 
 
2322
  test -n "$ac_ct_CC" && break
 
2323
done
 
2324
 
 
2325
  if test "x$ac_ct_CC" = x; then
 
2326
    CC=""
 
2327
  else
 
2328
    case $cross_compiling:$ac_tool_warned in
 
2329
yes:)
 
2330
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2331
whose name does not start with the host triplet.  If you think this
 
2332
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2333
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2334
whose name does not start with the host triplet.  If you think this
 
2335
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2336
ac_tool_warned=yes ;;
 
2337
esac
 
2338
    CC=$ac_ct_CC
 
2339
  fi
 
2340
fi
 
2341
 
 
2342
fi
 
2343
 
 
2344
 
 
2345
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2346
See \`config.log' for more details." >&5
 
2347
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2348
See \`config.log' for more details." >&2;}
 
2349
   { (exit 1); exit 1; }; }
 
2350
 
 
2351
# Provide some information about the compiler.
 
2352
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2353
ac_compiler=`set X $ac_compile; echo $2`
 
2354
{ (ac_try="$ac_compiler --version >&5"
 
2355
case "(($ac_try" in
 
2356
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2357
  *) ac_try_echo=$ac_try;;
 
2358
esac
 
2359
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2360
  (eval "$ac_compiler --version >&5") 2>&5
 
2361
  ac_status=$?
 
2362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2363
  (exit $ac_status); }
 
2364
{ (ac_try="$ac_compiler -v >&5"
 
2365
case "(($ac_try" in
 
2366
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2367
  *) ac_try_echo=$ac_try;;
 
2368
esac
 
2369
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2370
  (eval "$ac_compiler -v >&5") 2>&5
 
2371
  ac_status=$?
 
2372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2373
  (exit $ac_status); }
 
2374
{ (ac_try="$ac_compiler -V >&5"
 
2375
case "(($ac_try" in
 
2376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2377
  *) ac_try_echo=$ac_try;;
 
2378
esac
 
2379
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2380
  (eval "$ac_compiler -V >&5") 2>&5
 
2381
  ac_status=$?
 
2382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2383
  (exit $ac_status); }
 
2384
 
 
2385
cat >conftest.$ac_ext <<_ACEOF
 
2386
/* confdefs.h.  */
 
2387
_ACEOF
 
2388
cat confdefs.h >>conftest.$ac_ext
 
2389
cat >>conftest.$ac_ext <<_ACEOF
 
2390
/* end confdefs.h.  */
 
2391
 
 
2392
int
 
2393
main ()
 
2394
{
 
2395
 
 
2396
  ;
 
2397
  return 0;
 
2398
}
 
2399
_ACEOF
 
2400
ac_clean_files_save=$ac_clean_files
 
2401
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2402
# Try to create an executable without -o first, disregard a.out.
 
2403
# It will help us diagnose broken compilers, and finding out an intuition
 
2404
# of exeext.
 
2405
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2406
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2407
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2408
#
 
2409
# List of possible output files, starting from the most likely.
 
2410
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2411
# only as a last resort.  b.out is created by i960 compilers.
 
2412
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2413
#
 
2414
# The IRIX 6 linker writes into existing files which may not be
 
2415
# executable, retaining their permissions.  Remove them first so a
 
2416
# subsequent execution test works.
 
2417
ac_rmfiles=
 
2418
for ac_file in $ac_files
 
2419
do
 
2420
  case $ac_file in
 
2421
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2422
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2423
  esac
 
2424
done
 
2425
rm -f $ac_rmfiles
 
2426
 
 
2427
if { (ac_try="$ac_link_default"
 
2428
case "(($ac_try" in
 
2429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2430
  *) ac_try_echo=$ac_try;;
 
2431
esac
 
2432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2433
  (eval "$ac_link_default") 2>&5
 
2434
  ac_status=$?
 
2435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2436
  (exit $ac_status); }; then
 
2437
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2438
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2439
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2440
# so that the user can short-circuit this test for compilers unknown to
 
2441
# Autoconf.
 
2442
for ac_file in $ac_files ''
 
2443
do
 
2444
  test -f "$ac_file" || continue
 
2445
  case $ac_file in
 
2446
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2447
        ;;
 
2448
    [ab].out )
 
2449
        # We found the default executable, but exeext='' is most
 
2450
        # certainly right.
 
2451
        break;;
 
2452
    *.* )
 
2453
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2454
        then :; else
 
2455
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2456
        fi
 
2457
        # We set ac_cv_exeext here because the later test for it is not
 
2458
        # safe: cross compilers may not add the suffix if given an `-o'
 
2459
        # argument, so we may need to know it at that point already.
 
2460
        # Even if this section looks crufty: it has the advantage of
 
2461
        # actually working.
 
2462
        break;;
 
2463
    * )
 
2464
        break;;
 
2465
  esac
 
2466
done
 
2467
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2468
 
 
2469
else
 
2470
  ac_file=''
 
2471
fi
 
2472
 
 
2473
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2474
echo "${ECHO_T}$ac_file" >&6; }
 
2475
if test -z "$ac_file"; then
 
2476
  echo "$as_me: failed program was:" >&5
 
2477
sed 's/^/| /' conftest.$ac_ext >&5
 
2478
 
 
2479
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2480
See \`config.log' for more details." >&5
 
2481
echo "$as_me: error: C compiler cannot create executables
 
2482
See \`config.log' for more details." >&2;}
 
2483
   { (exit 77); exit 77; }; }
 
2484
fi
 
2485
 
 
2486
ac_exeext=$ac_cv_exeext
 
2487
 
 
2488
# Check that the compiler produces executables we can run.  If not, either
 
2489
# the compiler is broken, or we cross compile.
 
2490
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2491
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2492
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2493
# If not cross compiling, check that we can run a simple program.
 
2494
if test "$cross_compiling" != yes; then
 
2495
  if { ac_try='./$ac_file'
 
2496
  { (case "(($ac_try" in
 
2497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2498
  *) ac_try_echo=$ac_try;;
 
2499
esac
 
2500
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2501
  (eval "$ac_try") 2>&5
 
2502
  ac_status=$?
 
2503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2504
  (exit $ac_status); }; }; then
 
2505
    cross_compiling=no
 
2506
  else
 
2507
    if test "$cross_compiling" = maybe; then
 
2508
        cross_compiling=yes
 
2509
    else
 
2510
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2511
If you meant to cross compile, use \`--host'.
 
2512
See \`config.log' for more details." >&5
 
2513
echo "$as_me: error: cannot run C compiled programs.
 
2514
If you meant to cross compile, use \`--host'.
 
2515
See \`config.log' for more details." >&2;}
 
2516
   { (exit 1); exit 1; }; }
 
2517
    fi
 
2518
  fi
 
2519
fi
 
2520
{ echo "$as_me:$LINENO: result: yes" >&5
 
2521
echo "${ECHO_T}yes" >&6; }
 
2522
 
 
2523
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2524
ac_clean_files=$ac_clean_files_save
 
2525
# Check that the compiler produces executables we can run.  If not, either
 
2526
# the compiler is broken, or we cross compile.
 
2527
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2528
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2529
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2530
echo "${ECHO_T}$cross_compiling" >&6; }
 
2531
 
 
2532
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2533
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2534
if { (ac_try="$ac_link"
 
2535
case "(($ac_try" in
 
2536
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2537
  *) ac_try_echo=$ac_try;;
 
2538
esac
 
2539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2540
  (eval "$ac_link") 2>&5
 
2541
  ac_status=$?
 
2542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2543
  (exit $ac_status); }; then
 
2544
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2545
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2546
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2547
# `rm'.
 
2548
for ac_file in conftest.exe conftest conftest.*; do
 
2549
  test -f "$ac_file" || continue
 
2550
  case $ac_file in
 
2551
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2552
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2553
          break;;
 
2554
    * ) break;;
 
2555
  esac
 
2556
done
 
2557
else
 
2558
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2559
See \`config.log' for more details." >&5
 
2560
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2561
See \`config.log' for more details." >&2;}
 
2562
   { (exit 1); exit 1; }; }
 
2563
fi
 
2564
 
 
2565
rm -f conftest$ac_cv_exeext
 
2566
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2567
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2568
 
 
2569
rm -f conftest.$ac_ext
 
2570
EXEEXT=$ac_cv_exeext
 
2571
ac_exeext=$EXEEXT
 
2572
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2573
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2574
if test "${ac_cv_objext+set}" = set; then
 
2575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2576
else
 
2577
  cat >conftest.$ac_ext <<_ACEOF
 
2578
/* confdefs.h.  */
 
2579
_ACEOF
 
2580
cat confdefs.h >>conftest.$ac_ext
 
2581
cat >>conftest.$ac_ext <<_ACEOF
 
2582
/* end confdefs.h.  */
 
2583
 
 
2584
int
 
2585
main ()
 
2586
{
 
2587
 
 
2588
  ;
 
2589
  return 0;
 
2590
}
 
2591
_ACEOF
 
2592
rm -f conftest.o conftest.obj
 
2593
if { (ac_try="$ac_compile"
 
2594
case "(($ac_try" in
 
2595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2596
  *) ac_try_echo=$ac_try;;
 
2597
esac
 
2598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2599
  (eval "$ac_compile") 2>&5
 
2600
  ac_status=$?
 
2601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2602
  (exit $ac_status); }; then
 
2603
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2604
  test -f "$ac_file" || continue;
 
2605
  case $ac_file in
 
2606
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2607
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2608
       break;;
 
2609
  esac
 
2610
done
 
2611
else
 
2612
  echo "$as_me: failed program was:" >&5
 
2613
sed 's/^/| /' conftest.$ac_ext >&5
 
2614
 
 
2615
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2616
See \`config.log' for more details." >&5
 
2617
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2618
See \`config.log' for more details." >&2;}
 
2619
   { (exit 1); exit 1; }; }
 
2620
fi
 
2621
 
 
2622
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2623
fi
 
2624
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2625
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2626
OBJEXT=$ac_cv_objext
 
2627
ac_objext=$OBJEXT
 
2628
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2629
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2630
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2632
else
 
2633
  cat >conftest.$ac_ext <<_ACEOF
 
2634
/* confdefs.h.  */
 
2635
_ACEOF
 
2636
cat confdefs.h >>conftest.$ac_ext
 
2637
cat >>conftest.$ac_ext <<_ACEOF
 
2638
/* end confdefs.h.  */
 
2639
 
 
2640
int
 
2641
main ()
 
2642
{
 
2643
#ifndef __GNUC__
 
2644
       choke me
 
2645
#endif
 
2646
 
 
2647
  ;
 
2648
  return 0;
 
2649
}
 
2650
_ACEOF
 
2651
rm -f conftest.$ac_objext
 
2652
if { (ac_try="$ac_compile"
 
2653
case "(($ac_try" in
 
2654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2655
  *) ac_try_echo=$ac_try;;
 
2656
esac
 
2657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2658
  (eval "$ac_compile") 2>conftest.er1
 
2659
  ac_status=$?
 
2660
  grep -v '^ *+' conftest.er1 >conftest.err
 
2661
  rm -f conftest.er1
 
2662
  cat conftest.err >&5
 
2663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2664
  (exit $ac_status); } && {
 
2665
         test -z "$ac_c_werror_flag" ||
 
2666
         test ! -s conftest.err
 
2667
       } && test -s conftest.$ac_objext; then
 
2668
  ac_compiler_gnu=yes
 
2669
else
 
2670
  echo "$as_me: failed program was:" >&5
 
2671
sed 's/^/| /' conftest.$ac_ext >&5
 
2672
 
 
2673
        ac_compiler_gnu=no
 
2674
fi
 
2675
 
 
2676
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2677
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2678
 
 
2679
fi
 
2680
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2681
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2682
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2683
ac_test_CFLAGS=${CFLAGS+set}
 
2684
ac_save_CFLAGS=$CFLAGS
 
2685
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2686
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2687
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2688
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2689
else
 
2690
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2691
   ac_c_werror_flag=yes
 
2692
   ac_cv_prog_cc_g=no
 
2693
   CFLAGS="-g"
 
2694
   cat >conftest.$ac_ext <<_ACEOF
 
2695
/* confdefs.h.  */
 
2696
_ACEOF
 
2697
cat confdefs.h >>conftest.$ac_ext
 
2698
cat >>conftest.$ac_ext <<_ACEOF
 
2699
/* end confdefs.h.  */
 
2700
 
 
2701
int
 
2702
main ()
 
2703
{
 
2704
 
 
2705
  ;
 
2706
  return 0;
 
2707
}
 
2708
_ACEOF
 
2709
rm -f conftest.$ac_objext
 
2710
if { (ac_try="$ac_compile"
 
2711
case "(($ac_try" in
 
2712
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2713
  *) ac_try_echo=$ac_try;;
 
2714
esac
 
2715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2716
  (eval "$ac_compile") 2>conftest.er1
 
2717
  ac_status=$?
 
2718
  grep -v '^ *+' conftest.er1 >conftest.err
 
2719
  rm -f conftest.er1
 
2720
  cat conftest.err >&5
 
2721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2722
  (exit $ac_status); } && {
 
2723
         test -z "$ac_c_werror_flag" ||
 
2724
         test ! -s conftest.err
 
2725
       } && test -s conftest.$ac_objext; then
 
2726
  ac_cv_prog_cc_g=yes
 
2727
else
 
2728
  echo "$as_me: failed program was:" >&5
 
2729
sed 's/^/| /' conftest.$ac_ext >&5
 
2730
 
 
2731
        CFLAGS=""
 
2732
      cat >conftest.$ac_ext <<_ACEOF
 
2733
/* confdefs.h.  */
 
2734
_ACEOF
 
2735
cat confdefs.h >>conftest.$ac_ext
 
2736
cat >>conftest.$ac_ext <<_ACEOF
 
2737
/* end confdefs.h.  */
 
2738
 
 
2739
int
 
2740
main ()
 
2741
{
 
2742
 
 
2743
  ;
 
2744
  return 0;
 
2745
}
 
2746
_ACEOF
 
2747
rm -f conftest.$ac_objext
 
2748
if { (ac_try="$ac_compile"
 
2749
case "(($ac_try" in
 
2750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2751
  *) ac_try_echo=$ac_try;;
 
2752
esac
 
2753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2754
  (eval "$ac_compile") 2>conftest.er1
 
2755
  ac_status=$?
 
2756
  grep -v '^ *+' conftest.er1 >conftest.err
 
2757
  rm -f conftest.er1
 
2758
  cat conftest.err >&5
 
2759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2760
  (exit $ac_status); } && {
 
2761
         test -z "$ac_c_werror_flag" ||
 
2762
         test ! -s conftest.err
 
2763
       } && test -s conftest.$ac_objext; then
 
2764
  :
 
2765
else
 
2766
  echo "$as_me: failed program was:" >&5
 
2767
sed 's/^/| /' conftest.$ac_ext >&5
 
2768
 
 
2769
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2770
         CFLAGS="-g"
 
2771
         cat >conftest.$ac_ext <<_ACEOF
 
2772
/* confdefs.h.  */
 
2773
_ACEOF
 
2774
cat confdefs.h >>conftest.$ac_ext
 
2775
cat >>conftest.$ac_ext <<_ACEOF
 
2776
/* end confdefs.h.  */
 
2777
 
 
2778
int
 
2779
main ()
 
2780
{
 
2781
 
 
2782
  ;
 
2783
  return 0;
 
2784
}
 
2785
_ACEOF
 
2786
rm -f conftest.$ac_objext
 
2787
if { (ac_try="$ac_compile"
 
2788
case "(($ac_try" in
 
2789
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2790
  *) ac_try_echo=$ac_try;;
 
2791
esac
 
2792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2793
  (eval "$ac_compile") 2>conftest.er1
 
2794
  ac_status=$?
 
2795
  grep -v '^ *+' conftest.er1 >conftest.err
 
2796
  rm -f conftest.er1
 
2797
  cat conftest.err >&5
 
2798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2799
  (exit $ac_status); } && {
 
2800
         test -z "$ac_c_werror_flag" ||
 
2801
         test ! -s conftest.err
 
2802
       } && test -s conftest.$ac_objext; then
 
2803
  ac_cv_prog_cc_g=yes
 
2804
else
 
2805
  echo "$as_me: failed program was:" >&5
 
2806
sed 's/^/| /' conftest.$ac_ext >&5
 
2807
 
 
2808
 
 
2809
fi
 
2810
 
 
2811
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2812
fi
 
2813
 
 
2814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2815
fi
 
2816
 
 
2817
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2818
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2819
fi
 
2820
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2821
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
2822
if test "$ac_test_CFLAGS" = set; then
 
2823
  CFLAGS=$ac_save_CFLAGS
 
2824
elif test $ac_cv_prog_cc_g = yes; then
 
2825
  if test "$GCC" = yes; then
 
2826
    CFLAGS="-g -O2"
 
2827
  else
 
2828
    CFLAGS="-g"
 
2829
  fi
 
2830
else
 
2831
  if test "$GCC" = yes; then
 
2832
    CFLAGS="-O2"
 
2833
  else
 
2834
    CFLAGS=
 
2835
  fi
 
2836
fi
 
2837
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2838
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2839
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2841
else
 
2842
  ac_cv_prog_cc_c89=no
 
2843
ac_save_CC=$CC
 
2844
cat >conftest.$ac_ext <<_ACEOF
 
2845
/* confdefs.h.  */
 
2846
_ACEOF
 
2847
cat confdefs.h >>conftest.$ac_ext
 
2848
cat >>conftest.$ac_ext <<_ACEOF
 
2849
/* end confdefs.h.  */
 
2850
#include <stdarg.h>
 
2851
#include <stdio.h>
 
2852
#include <sys/types.h>
 
2853
#include <sys/stat.h>
 
2854
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2855
struct buf { int x; };
 
2856
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2857
static char *e (p, i)
 
2858
     char **p;
 
2859
     int i;
 
2860
{
 
2861
  return p[i];
 
2862
}
 
2863
static char *f (char * (*g) (char **, int), char **p, ...)
 
2864
{
 
2865
  char *s;
 
2866
  va_list v;
 
2867
  va_start (v,p);
 
2868
  s = g (p, va_arg (v,int));
 
2869
  va_end (v);
 
2870
  return s;
 
2871
}
 
2872
 
 
2873
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2874
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2875
   These don't provoke an error unfortunately, instead are silently treated
 
2876
   as 'x'.  The following induces an error, until -std is added to get
 
2877
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2878
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2879
   that's true only with -std.  */
 
2880
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2881
 
 
2882
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2883
   inside strings and character constants.  */
 
2884
#define FOO(x) 'x'
 
2885
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2886
 
 
2887
int test (int i, double x);
 
2888
struct s1 {int (*f) (int a);};
 
2889
struct s2 {int (*f) (double a);};
 
2890
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2891
int argc;
 
2892
char **argv;
 
2893
int
 
2894
main ()
 
2895
{
 
2896
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2897
  ;
 
2898
  return 0;
 
2899
}
 
2900
_ACEOF
 
2901
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2902
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2903
do
 
2904
  CC="$ac_save_CC $ac_arg"
 
2905
  rm -f conftest.$ac_objext
 
2906
if { (ac_try="$ac_compile"
 
2907
case "(($ac_try" in
 
2908
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2909
  *) ac_try_echo=$ac_try;;
 
2910
esac
 
2911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2912
  (eval "$ac_compile") 2>conftest.er1
 
2913
  ac_status=$?
 
2914
  grep -v '^ *+' conftest.er1 >conftest.err
 
2915
  rm -f conftest.er1
 
2916
  cat conftest.err >&5
 
2917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2918
  (exit $ac_status); } && {
 
2919
         test -z "$ac_c_werror_flag" ||
 
2920
         test ! -s conftest.err
 
2921
       } && test -s conftest.$ac_objext; then
 
2922
  ac_cv_prog_cc_c89=$ac_arg
 
2923
else
 
2924
  echo "$as_me: failed program was:" >&5
 
2925
sed 's/^/| /' conftest.$ac_ext >&5
 
2926
 
 
2927
 
 
2928
fi
 
2929
 
 
2930
rm -f core conftest.err conftest.$ac_objext
 
2931
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2932
done
 
2933
rm -f conftest.$ac_ext
 
2934
CC=$ac_save_CC
 
2935
 
 
2936
fi
 
2937
# AC_CACHE_VAL
 
2938
case "x$ac_cv_prog_cc_c89" in
 
2939
  x)
 
2940
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2941
echo "${ECHO_T}none needed" >&6; } ;;
 
2942
  xno)
 
2943
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2944
echo "${ECHO_T}unsupported" >&6; } ;;
 
2945
  *)
 
2946
    CC="$CC $ac_cv_prog_cc_c89"
 
2947
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2948
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
2949
esac
 
2950
 
 
2951
 
 
2952
ac_ext=c
 
2953
ac_cpp='$CPP $CPPFLAGS'
 
2954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2957
 
 
2958
 
 
2959
 
 
2960
# Check whether --enable-shared was given.
 
2961
if test "${enable_shared+set}" = set; then
 
2962
  enableval=$enable_shared; p=${PACKAGE-default}
 
2963
    case $enableval in
 
2964
    yes) enable_shared=yes ;;
 
2965
    no) enable_shared=no ;;
 
2966
    *)
 
2967
      enable_shared=no
 
2968
      # Look at the argument we got.  We use all the common list separators.
 
2969
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2970
      for pkg in $enableval; do
 
2971
        IFS="$lt_save_ifs"
 
2972
        if test "X$pkg" = "X$p"; then
 
2973
          enable_shared=yes
 
2974
        fi
 
2975
      done
 
2976
      IFS="$lt_save_ifs"
 
2977
      ;;
 
2978
    esac
 
2979
else
 
2980
  enable_shared=yes
 
2981
fi
 
2982
 
 
2983
 
 
2984
# Check whether --enable-static was given.
 
2985
if test "${enable_static+set}" = set; then
 
2986
  enableval=$enable_static; p=${PACKAGE-default}
 
2987
    case $enableval in
 
2988
    yes) enable_static=yes ;;
 
2989
    no) enable_static=no ;;
 
2990
    *)
 
2991
     enable_static=no
 
2992
      # Look at the argument we got.  We use all the common list separators.
 
2993
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2994
      for pkg in $enableval; do
 
2995
        IFS="$lt_save_ifs"
 
2996
        if test "X$pkg" = "X$p"; then
 
2997
          enable_static=yes
 
2998
        fi
 
2999
      done
 
3000
      IFS="$lt_save_ifs"
 
3001
      ;;
 
3002
    esac
 
3003
else
 
3004
  enable_static=yes
 
3005
fi
 
3006
 
 
3007
 
 
3008
# Check whether --enable-fast-install was given.
 
3009
if test "${enable_fast_install+set}" = set; then
 
3010
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3011
    case $enableval in
 
3012
    yes) enable_fast_install=yes ;;
 
3013
    no) enable_fast_install=no ;;
 
3014
    *)
 
3015
      enable_fast_install=no
 
3016
      # Look at the argument we got.  We use all the common list separators.
 
3017
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3018
      for pkg in $enableval; do
 
3019
        IFS="$lt_save_ifs"
 
3020
        if test "X$pkg" = "X$p"; then
 
3021
          enable_fast_install=yes
 
3022
        fi
 
3023
      done
 
3024
      IFS="$lt_save_ifs"
 
3025
      ;;
 
3026
    esac
 
3027
else
 
3028
  enable_fast_install=yes
 
3029
fi
 
3030
 
 
3031
 
 
3032
ac_aux_dir=
 
3033
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
3034
  if test -f "$ac_dir/install-sh"; then
 
3035
    ac_aux_dir=$ac_dir
 
3036
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3037
    break
 
3038
  elif test -f "$ac_dir/install.sh"; then
 
3039
    ac_aux_dir=$ac_dir
 
3040
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3041
    break
 
3042
  elif test -f "$ac_dir/shtool"; then
 
3043
    ac_aux_dir=$ac_dir
 
3044
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3045
    break
 
3046
  fi
 
3047
done
 
3048
if test -z "$ac_aux_dir"; then
 
3049
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
3050
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
3051
   { (exit 1); exit 1; }; }
 
3052
fi
 
3053
 
 
3054
# These three variables are undocumented and unsupported,
 
3055
# and are intended to be withdrawn in a future Autoconf release.
 
3056
# They can cause serious problems if a builder's source tree is in a directory
 
3057
# whose full name contains unusual characters.
 
3058
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3059
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3060
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3061
 
 
3062
 
 
3063
# Make sure we can run config.sub.
 
3064
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3065
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3066
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3067
   { (exit 1); exit 1; }; }
 
3068
 
 
3069
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3070
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3071
if test "${ac_cv_build+set}" = set; then
 
3072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3073
else
 
3074
  ac_build_alias=$build_alias
 
3075
test "x$ac_build_alias" = x &&
 
3076
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3077
test "x$ac_build_alias" = x &&
 
3078
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3079
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3080
   { (exit 1); exit 1; }; }
 
3081
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3082
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3083
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3084
   { (exit 1); exit 1; }; }
 
3085
 
 
3086
fi
 
3087
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3088
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3089
case $ac_cv_build in
 
3090
*-*-*) ;;
 
3091
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3092
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3093
   { (exit 1); exit 1; }; };;
 
3094
esac
 
3095
build=$ac_cv_build
 
3096
ac_save_IFS=$IFS; IFS='-'
 
3097
set x $ac_cv_build
 
3098
shift
 
3099
build_cpu=$1
 
3100
build_vendor=$2
 
3101
shift; shift
 
3102
# Remember, the first character of IFS is used to create $*,
 
3103
# except with old shells:
 
3104
build_os=$*
 
3105
IFS=$ac_save_IFS
 
3106
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3107
 
 
3108
 
 
3109
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3110
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3111
if test "${ac_cv_host+set}" = set; then
 
3112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3113
else
 
3114
  if test "x$host_alias" = x; then
 
3115
  ac_cv_host=$ac_cv_build
 
3116
else
 
3117
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3118
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3119
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3120
   { (exit 1); exit 1; }; }
 
3121
fi
 
3122
 
 
3123
fi
 
3124
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3125
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3126
case $ac_cv_host in
 
3127
*-*-*) ;;
 
3128
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3129
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3130
   { (exit 1); exit 1; }; };;
 
3131
esac
 
3132
host=$ac_cv_host
 
3133
ac_save_IFS=$IFS; IFS='-'
 
3134
set x $ac_cv_host
 
3135
shift
 
3136
host_cpu=$1
 
3137
host_vendor=$2
 
3138
shift; shift
 
3139
# Remember, the first character of IFS is used to create $*,
 
3140
# except with old shells:
 
3141
host_os=$*
 
3142
IFS=$ac_save_IFS
 
3143
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3144
 
 
3145
 
 
3146
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3147
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3148
if test "${lt_cv_path_SED+set}" = set; then
 
3149
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3150
else
 
3151
  # Loop through the user's path and test for sed and gsed.
 
3152
# Then use that list of sed's as ones to test for truncation.
 
3153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3154
for as_dir in $PATH
 
3155
do
 
3156
  IFS=$as_save_IFS
 
3157
  test -z "$as_dir" && as_dir=.
 
3158
  for lt_ac_prog in sed gsed; do
 
3159
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3160
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3161
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3162
      fi
 
3163
    done
 
3164
  done
 
3165
done
 
3166
lt_ac_max=0
 
3167
lt_ac_count=0
 
3168
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3169
# along with /bin/sed that truncates output.
 
3170
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3171
  test ! -f $lt_ac_sed && continue
 
3172
  cat /dev/null > conftest.in
 
3173
  lt_ac_count=0
 
3174
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3175
  # Check for GNU sed and select it if it is found.
 
3176
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3177
    lt_cv_path_SED=$lt_ac_sed
 
3178
    break
 
3179
  fi
 
3180
  while true; do
 
3181
    cat conftest.in conftest.in >conftest.tmp
 
3182
    mv conftest.tmp conftest.in
 
3183
    cp conftest.in conftest.nl
 
3184
    echo >>conftest.nl
 
3185
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3186
    cmp -s conftest.out conftest.nl || break
 
3187
    # 10000 chars as input seems more than enough
 
3188
    test $lt_ac_count -gt 10 && break
 
3189
    lt_ac_count=`expr $lt_ac_count + 1`
 
3190
    if test $lt_ac_count -gt $lt_ac_max; then
 
3191
      lt_ac_max=$lt_ac_count
 
3192
      lt_cv_path_SED=$lt_ac_sed
 
3193
    fi
 
3194
  done
 
3195
done
 
3196
 
 
3197
fi
 
3198
 
 
3199
SED=$lt_cv_path_SED
 
3200
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3201
echo "${ECHO_T}$SED" >&6; }
 
3202
 
 
3203
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3204
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3205
if test "${ac_cv_path_GREP+set}" = set; then
 
3206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3207
else
 
3208
  # Extract the first word of "grep ggrep" to use in msg output
 
3209
if test -z "$GREP"; then
 
3210
set dummy grep ggrep; ac_prog_name=$2
 
3211
if test "${ac_cv_path_GREP+set}" = set; then
 
3212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3213
else
 
3214
  ac_path_GREP_found=false
 
3215
# Loop through the user's path and test for each of PROGNAME-LIST
 
3216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3217
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3218
do
 
3219
  IFS=$as_save_IFS
 
3220
  test -z "$as_dir" && as_dir=.
 
3221
  for ac_prog in grep ggrep; do
 
3222
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3223
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3224
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3225
    # Check for GNU ac_path_GREP and select it if it is found.
 
3226
  # Check for GNU $ac_path_GREP
 
3227
case `"$ac_path_GREP" --version 2>&1` in
 
3228
*GNU*)
 
3229
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3230
*)
 
3231
  ac_count=0
 
3232
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3233
  while :
 
3234
  do
 
3235
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3236
    mv "conftest.tmp" "conftest.in"
 
3237
    cp "conftest.in" "conftest.nl"
 
3238
    echo 'GREP' >> "conftest.nl"
 
3239
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3240
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3241
    ac_count=`expr $ac_count + 1`
 
3242
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3243
      # Best one so far, save it but keep looking for a better one
 
3244
      ac_cv_path_GREP="$ac_path_GREP"
 
3245
      ac_path_GREP_max=$ac_count
 
3246
    fi
 
3247
    # 10*(2^10) chars as input seems more than enough
 
3248
    test $ac_count -gt 10 && break
 
3249
  done
 
3250
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3251
esac
 
3252
 
 
3253
 
 
3254
    $ac_path_GREP_found && break 3
 
3255
  done
 
3256
done
 
3257
 
 
3258
done
 
3259
IFS=$as_save_IFS
 
3260
 
 
3261
 
 
3262
fi
 
3263
 
 
3264
GREP="$ac_cv_path_GREP"
 
3265
if test -z "$GREP"; then
 
3266
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3267
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3268
   { (exit 1); exit 1; }; }
 
3269
fi
 
3270
 
 
3271
else
 
3272
  ac_cv_path_GREP=$GREP
 
3273
fi
 
3274
 
 
3275
 
 
3276
fi
 
3277
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3278
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3279
 GREP="$ac_cv_path_GREP"
 
3280
 
 
3281
 
 
3282
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3283
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3284
if test "${ac_cv_path_EGREP+set}" = set; then
 
3285
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3286
else
 
3287
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3288
   then ac_cv_path_EGREP="$GREP -E"
 
3289
   else
 
3290
     # Extract the first word of "egrep" to use in msg output
 
3291
if test -z "$EGREP"; then
 
3292
set dummy egrep; ac_prog_name=$2
 
3293
if test "${ac_cv_path_EGREP+set}" = set; then
 
3294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3295
else
 
3296
  ac_path_EGREP_found=false
 
3297
# Loop through the user's path and test for each of PROGNAME-LIST
 
3298
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3299
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3300
do
 
3301
  IFS=$as_save_IFS
 
3302
  test -z "$as_dir" && as_dir=.
 
3303
  for ac_prog in egrep; do
 
3304
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3305
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3306
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3307
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3308
  # Check for GNU $ac_path_EGREP
 
3309
case `"$ac_path_EGREP" --version 2>&1` in
 
3310
*GNU*)
 
3311
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3312
*)
 
3313
  ac_count=0
 
3314
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3315
  while :
 
3316
  do
 
3317
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3318
    mv "conftest.tmp" "conftest.in"
 
3319
    cp "conftest.in" "conftest.nl"
 
3320
    echo 'EGREP' >> "conftest.nl"
 
3321
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3322
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3323
    ac_count=`expr $ac_count + 1`
 
3324
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3325
      # Best one so far, save it but keep looking for a better one
 
3326
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3327
      ac_path_EGREP_max=$ac_count
 
3328
    fi
 
3329
    # 10*(2^10) chars as input seems more than enough
 
3330
    test $ac_count -gt 10 && break
 
3331
  done
 
3332
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3333
esac
 
3334
 
 
3335
 
 
3336
    $ac_path_EGREP_found && break 3
 
3337
  done
 
3338
done
 
3339
 
 
3340
done
 
3341
IFS=$as_save_IFS
 
3342
 
 
3343
 
 
3344
fi
 
3345
 
 
3346
EGREP="$ac_cv_path_EGREP"
 
3347
if test -z "$EGREP"; then
 
3348
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3349
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3350
   { (exit 1); exit 1; }; }
 
3351
fi
 
3352
 
 
3353
else
 
3354
  ac_cv_path_EGREP=$EGREP
 
3355
fi
 
3356
 
 
3357
 
 
3358
   fi
 
3359
fi
 
3360
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3361
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3362
 EGREP="$ac_cv_path_EGREP"
 
3363
 
 
3364
 
 
3365
 
 
3366
# Check whether --with-gnu-ld was given.
 
3367
if test "${with_gnu_ld+set}" = set; then
 
3368
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3369
else
 
3370
  with_gnu_ld=no
 
3371
fi
 
3372
 
 
3373
ac_prog=ld
 
3374
if test "$GCC" = yes; then
 
3375
  # Check if gcc -print-prog-name=ld gives a path.
 
3376
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3377
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3378
  case $host in
 
3379
  *-*-mingw*)
 
3380
    # gcc leaves a trailing carriage return which upsets mingw
 
3381
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3382
  *)
 
3383
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3384
  esac
 
3385
  case $ac_prog in
 
3386
    # Accept absolute paths.
 
3387
    [\\/]* | ?:[\\/]*)
 
3388
      re_direlt='/[^/][^/]*/\.\./'
 
3389
      # Canonicalize the pathname of ld
 
3390
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3391
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3392
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3393
      done
 
3394
      test -z "$LD" && LD="$ac_prog"
 
3395
      ;;
 
3396
  "")
 
3397
    # If it fails, then pretend we aren't using GCC.
 
3398
    ac_prog=ld
 
3399
    ;;
 
3400
  *)
 
3401
    # If it is relative, then search for the first ld in PATH.
 
3402
    with_gnu_ld=unknown
 
3403
    ;;
 
3404
  esac
 
3405
elif test "$with_gnu_ld" = yes; then
 
3406
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3407
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3408
else
 
3409
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3410
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3411
fi
 
3412
if test "${lt_cv_path_LD+set}" = set; then
 
3413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3414
else
 
3415
  if test -z "$LD"; then
 
3416
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3417
  for ac_dir in $PATH; do
 
3418
    IFS="$lt_save_ifs"
 
3419
    test -z "$ac_dir" && ac_dir=.
 
3420
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3421
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3422
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3423
      # but apparently some variants of GNU ld only accept -v.
 
3424
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3425
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3426
      *GNU* | *'with BFD'*)
 
3427
        test "$with_gnu_ld" != no && break
 
3428
        ;;
 
3429
      *)
 
3430
        test "$with_gnu_ld" != yes && break
 
3431
        ;;
 
3432
      esac
 
3433
    fi
 
3434
  done
 
3435
  IFS="$lt_save_ifs"
 
3436
else
 
3437
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3438
fi
 
3439
fi
 
3440
 
 
3441
LD="$lt_cv_path_LD"
 
3442
if test -n "$LD"; then
 
3443
  { echo "$as_me:$LINENO: result: $LD" >&5
 
3444
echo "${ECHO_T}$LD" >&6; }
 
3445
else
 
3446
  { echo "$as_me:$LINENO: result: no" >&5
 
3447
echo "${ECHO_T}no" >&6; }
 
3448
fi
 
3449
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3450
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3451
   { (exit 1); exit 1; }; }
 
3452
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3453
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
3454
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3456
else
 
3457
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3458
case `$LD -v 2>&1 </dev/null` in
 
3459
*GNU* | *'with BFD'*)
 
3460
  lt_cv_prog_gnu_ld=yes
 
3461
  ;;
 
3462
*)
 
3463
  lt_cv_prog_gnu_ld=no
 
3464
  ;;
 
3465
esac
 
3466
fi
 
3467
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3468
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
3469
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3470
 
 
3471
 
 
3472
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3473
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
3474
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3475
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3476
else
 
3477
  lt_cv_ld_reload_flag='-r'
 
3478
fi
 
3479
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3480
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
3481
reload_flag=$lt_cv_ld_reload_flag
 
3482
case $reload_flag in
 
3483
"" | " "*) ;;
 
3484
*) reload_flag=" $reload_flag" ;;
 
3485
esac
 
3486
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3487
case $host_os in
 
3488
  darwin*)
 
3489
    if test "$GCC" = yes; then
 
3490
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
3491
    else
 
3492
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3493
    fi
 
3494
    ;;
 
3495
esac
 
3496
 
 
3497
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3498
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
3499
if test "${lt_cv_path_NM+set}" = set; then
 
3500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3501
else
 
3502
  if test -n "$NM"; then
 
3503
  # Let the user override the test.
 
3504
  lt_cv_path_NM="$NM"
 
3505
else
 
3506
  lt_nm_to_check="${ac_tool_prefix}nm"
 
3507
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
3508
    lt_nm_to_check="$lt_nm_to_check nm"
 
3509
  fi
 
3510
  for lt_tmp_nm in $lt_nm_to_check; do
 
3511
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3512
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
3513
      IFS="$lt_save_ifs"
 
3514
      test -z "$ac_dir" && ac_dir=.
 
3515
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
3516
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3517
        # Check to see if the nm accepts a BSD-compat flag.
 
3518
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3519
        #   nm: unknown option "B" ignored
 
3520
        # Tru64's nm complains that /dev/null is an invalid object file
 
3521
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3522
        */dev/null* | *'Invalid file or object type'*)
 
3523
          lt_cv_path_NM="$tmp_nm -B"
 
3524
          break
 
3525
          ;;
 
3526
        *)
 
3527
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3528
          */dev/null*)
 
3529
            lt_cv_path_NM="$tmp_nm -p"
 
3530
            break
 
3531
            ;;
 
3532
          *)
 
3533
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3534
            continue # so that we can try to find one that supports BSD flags
 
3535
            ;;
 
3536
          esac
 
3537
          ;;
 
3538
        esac
 
3539
      fi
 
3540
    done
 
3541
    IFS="$lt_save_ifs"
 
3542
  done
 
3543
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
3544
fi
 
3545
fi
 
3546
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
3547
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
3548
NM="$lt_cv_path_NM"
 
3549
 
 
3550
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3551
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
3552
LN_S=$as_ln_s
 
3553
if test "$LN_S" = "ln -s"; then
 
3554
  { echo "$as_me:$LINENO: result: yes" >&5
 
3555
echo "${ECHO_T}yes" >&6; }
 
3556
else
 
3557
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
3558
echo "${ECHO_T}no, using $LN_S" >&6; }
 
3559
fi
 
3560
 
 
3561
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
3562
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
3563
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
3564
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3565
else
 
3566
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
3567
lt_cv_file_magic_test_file=
 
3568
lt_cv_deplibs_check_method='unknown'
 
3569
# Need to set the preceding variable on all platforms that support
 
3570
# interlibrary dependencies.
 
3571
# 'none' -- dependencies not supported.
 
3572
# `unknown' -- same as none, but documents that we really don't know.
 
3573
# 'pass_all' -- all dependencies passed with no checks.
 
3574
# 'test_compile' -- check by making test program.
 
3575
# 'file_magic [[regex]]' -- check by looking for files in library path
 
3576
# which responds to the $file_magic_cmd with a given extended regex.
 
3577
# If you have `file' or equivalent on your system and you're not sure
 
3578
# whether `pass_all' will *always* work, you probably want this one.
 
3579
 
 
3580
case $host_os in
 
3581
aix4* | aix5*)
 
3582
  lt_cv_deplibs_check_method=pass_all
 
3583
  ;;
 
3584
 
 
3585
beos*)
 
3586
  lt_cv_deplibs_check_method=pass_all
 
3587
  ;;
 
3588
 
 
3589
bsdi[45]*)
 
3590
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
3591
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
3592
  lt_cv_file_magic_test_file=/shlib/libc.so
 
3593
  ;;
 
3594
 
 
3595
cygwin*)
 
3596
  # func_win32_libid is a shell function defined in ltmain.sh
 
3597
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
3598
  lt_cv_file_magic_cmd='func_win32_libid'
 
3599
  ;;
 
3600
 
 
3601
mingw* | pw32*)
 
3602
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
3603
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
3604
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
3605
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
3606
  ;;
 
3607
 
 
3608
darwin* | rhapsody*)
 
3609
  lt_cv_deplibs_check_method=pass_all
 
3610
  ;;
 
3611
 
 
3612
freebsd* | kfreebsd*-gnu | dragonfly*)
 
3613
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3614
    case $host_cpu in
 
3615
    i*86 )
 
3616
      # Not sure whether the presence of OpenBSD here was a mistake.
 
3617
      # Let's accept both of them until this is cleared up.
 
3618
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
3619
      lt_cv_file_magic_cmd=/usr/bin/file
 
3620
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
3621
      ;;
 
3622
    esac
 
3623
  else
 
3624
    lt_cv_deplibs_check_method=pass_all
 
3625
  fi
 
3626
  ;;
 
3627
 
 
3628
gnu*)
 
3629
  lt_cv_deplibs_check_method=pass_all
 
3630
  ;;
 
3631
 
 
3632
hpux10.20* | hpux11*)
 
3633
  lt_cv_file_magic_cmd=/usr/bin/file
 
3634
  case $host_cpu in
 
3635
  ia64*)
 
3636
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
3637
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
3638
    ;;
 
3639
  hppa*64*)
 
3640
    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]'
 
3641
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
3642
    ;;
 
3643
  *)
 
3644
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
3645
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
3646
    ;;
 
3647
  esac
 
3648
  ;;
 
3649
 
 
3650
interix3*)
 
3651
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
3652
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
3653
  ;;
 
3654
 
 
3655
irix5* | irix6* | nonstopux*)
 
3656
  case $LD in
 
3657
  *-32|*"-32 ") libmagic=32-bit;;
 
3658
  *-n32|*"-n32 ") libmagic=N32;;
 
3659
  *-64|*"-64 ") libmagic=64-bit;;
 
3660
  *) libmagic=never-match;;
 
3661
  esac
 
3662
  lt_cv_deplibs_check_method=pass_all
 
3663
  ;;
 
3664
 
 
3665
# This must be Linux ELF.
 
3666
linux*)
 
3667
  lt_cv_deplibs_check_method=pass_all
 
3668
  ;;
 
3669
 
 
3670
netbsd*)
 
3671
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
3672
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3673
  else
 
3674
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
3675
  fi
 
3676
  ;;
 
3677
 
 
3678
newos6*)
 
3679
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
3680
  lt_cv_file_magic_cmd=/usr/bin/file
 
3681
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
3682
  ;;
 
3683
 
 
3684
nto-qnx*)
 
3685
  lt_cv_deplibs_check_method=unknown
 
3686
  ;;
 
3687
 
 
3688
openbsd*)
 
3689
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
3690
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
3691
  else
 
3692
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
3693
  fi
 
3694
  ;;
 
3695
 
 
3696
osf3* | osf4* | osf5*)
 
3697
  lt_cv_deplibs_check_method=pass_all
 
3698
  ;;
 
3699
 
 
3700
solaris*)
 
3701
  lt_cv_deplibs_check_method=pass_all
 
3702
  ;;
 
3703
 
 
3704
sysv4 | sysv4.3*)
 
3705
  case $host_vendor in
 
3706
  motorola)
 
3707
    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]'
 
3708
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
3709
    ;;
 
3710
  ncr)
 
3711
    lt_cv_deplibs_check_method=pass_all
 
3712
    ;;
 
3713
  sequent)
 
3714
    lt_cv_file_magic_cmd='/bin/file'
 
3715
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
3716
    ;;
 
3717
  sni)
 
3718
    lt_cv_file_magic_cmd='/bin/file'
 
3719
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
3720
    lt_cv_file_magic_test_file=/lib/libc.so
 
3721
    ;;
 
3722
  siemens)
 
3723
    lt_cv_deplibs_check_method=pass_all
 
3724
    ;;
 
3725
  pc)
 
3726
    lt_cv_deplibs_check_method=pass_all
 
3727
    ;;
 
3728
  esac
 
3729
  ;;
 
3730
 
 
3731
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3732
  lt_cv_deplibs_check_method=pass_all
 
3733
  ;;
 
3734
esac
 
3735
 
 
3736
fi
 
3737
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3738
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
3739
file_magic_cmd=$lt_cv_file_magic_cmd
 
3740
deplibs_check_method=$lt_cv_deplibs_check_method
 
3741
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
3742
 
 
3743
 
 
3744
 
 
3745
 
 
3746
# If no C compiler was specified, use CC.
 
3747
LTCC=${LTCC-"$CC"}
 
3748
 
 
3749
# If no C compiler flags were specified, use CFLAGS.
 
3750
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
3751
 
 
3752
# Allow CC to be a program name with arguments.
 
3753
compiler=$CC
 
3754
 
 
3755
 
 
3756
# Check whether --enable-libtool-lock was given.
 
3757
if test "${enable_libtool_lock+set}" = set; then
 
3758
  enableval=$enable_libtool_lock;
 
3759
fi
 
3760
 
 
3761
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
3762
 
 
3763
# Some flags need to be propagated to the compiler or linker for good
 
3764
# libtool support.
 
3765
case $host in
 
3766
ia64-*-hpux*)
 
3767
  # Find out which ABI we are using.
 
3768
  echo 'int i;' > conftest.$ac_ext
 
3769
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3770
  (eval $ac_compile) 2>&5
 
3771
  ac_status=$?
 
3772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3773
  (exit $ac_status); }; then
 
3774
    case `/usr/bin/file conftest.$ac_objext` in
 
3775
    *ELF-32*)
 
3776
      HPUX_IA64_MODE="32"
 
3777
      ;;
 
3778
    *ELF-64*)
 
3779
      HPUX_IA64_MODE="64"
 
3780
      ;;
 
3781
    esac
 
3782
  fi
 
3783
  rm -rf conftest*
 
3784
  ;;
 
3785
*-*-irix6*)
 
3786
  # Find out which ABI we are using.
 
3787
  echo '#line 3787 "configure"' > conftest.$ac_ext
 
3788
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3789
  (eval $ac_compile) 2>&5
 
3790
  ac_status=$?
 
3791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3792
  (exit $ac_status); }; then
 
3793
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
3794
    case `/usr/bin/file conftest.$ac_objext` in
 
3795
    *32-bit*)
 
3796
      LD="${LD-ld} -melf32bsmip"
 
3797
      ;;
 
3798
    *N32*)
 
3799
      LD="${LD-ld} -melf32bmipn32"
 
3800
      ;;
 
3801
    *64-bit*)
 
3802
      LD="${LD-ld} -melf64bmip"
 
3803
      ;;
 
3804
    esac
 
3805
   else
 
3806
    case `/usr/bin/file conftest.$ac_objext` in
 
3807
    *32-bit*)
 
3808
      LD="${LD-ld} -32"
 
3809
      ;;
 
3810
    *N32*)
 
3811
      LD="${LD-ld} -n32"
 
3812
      ;;
 
3813
    *64-bit*)
 
3814
      LD="${LD-ld} -64"
 
3815
      ;;
 
3816
    esac
 
3817
   fi
 
3818
  fi
 
3819
  rm -rf conftest*
 
3820
  ;;
 
3821
 
 
3822
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
3823
  # Find out which ABI we are using.
 
3824
  echo 'int i;' > conftest.$ac_ext
 
3825
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3826
  (eval $ac_compile) 2>&5
 
3827
  ac_status=$?
 
3828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3829
  (exit $ac_status); }; then
 
3830
    case `/usr/bin/file conftest.o` in
 
3831
    *32-bit*)
 
3832
      case $host in
 
3833
        x86_64-*linux*)
 
3834
          LD="${LD-ld} -m elf_i386"
 
3835
          ;;
 
3836
        ppc64-*linux*|powerpc64-*linux*)
 
3837
          LD="${LD-ld} -m elf32ppclinux"
 
3838
          ;;
 
3839
        s390x-*linux*)
 
3840
          LD="${LD-ld} -m elf_s390"
 
3841
          ;;
 
3842
        sparc64-*linux*)
 
3843
          LD="${LD-ld} -m elf32_sparc"
 
3844
          ;;
 
3845
      esac
 
3846
      ;;
 
3847
    *64-bit*)
 
3848
      case $host in
 
3849
        x86_64-*linux*)
 
3850
          LD="${LD-ld} -m elf_x86_64"
 
3851
          ;;
 
3852
        ppc*-*linux*|powerpc*-*linux*)
 
3853
          LD="${LD-ld} -m elf64ppc"
 
3854
          ;;
 
3855
        s390*-*linux*)
 
3856
          LD="${LD-ld} -m elf64_s390"
 
3857
          ;;
 
3858
        sparc*-*linux*)
 
3859
          LD="${LD-ld} -m elf64_sparc"
 
3860
          ;;
 
3861
      esac
 
3862
      ;;
 
3863
    esac
 
3864
  fi
 
3865
  rm -rf conftest*
 
3866
  ;;
 
3867
 
 
3868
*-*-sco3.2v5*)
 
3869
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
3870
  SAVE_CFLAGS="$CFLAGS"
 
3871
  CFLAGS="$CFLAGS -belf"
 
3872
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3873
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
3874
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
3875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3876
else
 
3877
  ac_ext=c
 
3878
ac_cpp='$CPP $CPPFLAGS'
 
3879
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3880
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3881
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3882
 
 
3883
     cat >conftest.$ac_ext <<_ACEOF
 
3884
/* confdefs.h.  */
 
3885
_ACEOF
 
3886
cat confdefs.h >>conftest.$ac_ext
 
3887
cat >>conftest.$ac_ext <<_ACEOF
 
3888
/* end confdefs.h.  */
 
3889
 
 
3890
int
 
3891
main ()
 
3892
{
 
3893
 
 
3894
  ;
 
3895
  return 0;
 
3896
}
 
3897
_ACEOF
 
3898
rm -f conftest.$ac_objext conftest$ac_exeext
 
3899
if { (ac_try="$ac_link"
 
3900
case "(($ac_try" in
 
3901
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3902
  *) ac_try_echo=$ac_try;;
 
3903
esac
 
3904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3905
  (eval "$ac_link") 2>conftest.er1
 
3906
  ac_status=$?
 
3907
  grep -v '^ *+' conftest.er1 >conftest.err
 
3908
  rm -f conftest.er1
 
3909
  cat conftest.err >&5
 
3910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3911
  (exit $ac_status); } && {
 
3912
         test -z "$ac_c_werror_flag" ||
 
3913
         test ! -s conftest.err
 
3914
       } && test -s conftest$ac_exeext &&
 
3915
       $as_test_x conftest$ac_exeext; then
 
3916
  lt_cv_cc_needs_belf=yes
 
3917
else
 
3918
  echo "$as_me: failed program was:" >&5
 
3919
sed 's/^/| /' conftest.$ac_ext >&5
 
3920
 
 
3921
        lt_cv_cc_needs_belf=no
 
3922
fi
 
3923
 
 
3924
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3925
      conftest$ac_exeext conftest.$ac_ext
 
3926
     ac_ext=c
 
3927
ac_cpp='$CPP $CPPFLAGS'
 
3928
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3929
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3930
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3931
 
 
3932
fi
 
3933
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3934
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
3935
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
3936
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
3937
    CFLAGS="$SAVE_CFLAGS"
 
3938
  fi
 
3939
  ;;
 
3940
sparc*-*solaris*)
 
3941
  # Find out which ABI we are using.
 
3942
  echo 'int i;' > conftest.$ac_ext
 
3943
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3944
  (eval $ac_compile) 2>&5
 
3945
  ac_status=$?
 
3946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3947
  (exit $ac_status); }; then
 
3948
    case `/usr/bin/file conftest.o` in
 
3949
    *64-bit*)
 
3950
      case $lt_cv_prog_gnu_ld in
 
3951
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
3952
      *)    LD="${LD-ld} -64" ;;
 
3953
      esac
 
3954
      ;;
 
3955
    esac
 
3956
  fi
 
3957
  rm -rf conftest*
 
3958
  ;;
 
3959
 
 
3960
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
3961
  if test -n "$ac_tool_prefix"; then
 
3962
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
3963
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
3964
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3965
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3966
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
3967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3968
else
 
3969
  if test -n "$DLLTOOL"; then
 
3970
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
3971
else
 
3972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3973
for as_dir in $PATH
 
3974
do
 
3975
  IFS=$as_save_IFS
 
3976
  test -z "$as_dir" && as_dir=.
 
3977
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3978
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3979
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
3980
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3981
    break 2
 
3982
  fi
 
3983
done
 
3984
done
 
3985
IFS=$as_save_IFS
 
3986
 
 
3987
fi
 
3988
fi
 
3989
DLLTOOL=$ac_cv_prog_DLLTOOL
 
3990
if test -n "$DLLTOOL"; then
 
3991
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
3992
echo "${ECHO_T}$DLLTOOL" >&6; }
 
3993
else
 
3994
  { echo "$as_me:$LINENO: result: no" >&5
 
3995
echo "${ECHO_T}no" >&6; }
 
3996
fi
 
3997
 
 
3998
 
 
3999
fi
 
4000
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4001
  ac_ct_DLLTOOL=$DLLTOOL
 
4002
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4003
set dummy dlltool; ac_word=$2
 
4004
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4005
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4006
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4008
else
 
4009
  if test -n "$ac_ct_DLLTOOL"; then
 
4010
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4011
else
 
4012
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4013
for as_dir in $PATH
 
4014
do
 
4015
  IFS=$as_save_IFS
 
4016
  test -z "$as_dir" && as_dir=.
 
4017
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4018
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4019
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4020
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4021
    break 2
 
4022
  fi
 
4023
done
 
4024
done
 
4025
IFS=$as_save_IFS
 
4026
 
 
4027
fi
 
4028
fi
 
4029
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4030
if test -n "$ac_ct_DLLTOOL"; then
 
4031
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4032
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
 
4033
else
 
4034
  { echo "$as_me:$LINENO: result: no" >&5
 
4035
echo "${ECHO_T}no" >&6; }
 
4036
fi
 
4037
 
 
4038
  if test "x$ac_ct_DLLTOOL" = x; then
 
4039
    DLLTOOL="false"
 
4040
  else
 
4041
    case $cross_compiling:$ac_tool_warned in
 
4042
yes:)
 
4043
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4044
whose name does not start with the host triplet.  If you think this
 
4045
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4046
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4047
whose name does not start with the host triplet.  If you think this
 
4048
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4049
ac_tool_warned=yes ;;
 
4050
esac
 
4051
    DLLTOOL=$ac_ct_DLLTOOL
 
4052
  fi
 
4053
else
 
4054
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4055
fi
 
4056
 
 
4057
  if test -n "$ac_tool_prefix"; then
 
4058
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4059
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4060
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4062
if test "${ac_cv_prog_AS+set}" = set; then
 
4063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4064
else
 
4065
  if test -n "$AS"; then
 
4066
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4067
else
 
4068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4069
for as_dir in $PATH
 
4070
do
 
4071
  IFS=$as_save_IFS
 
4072
  test -z "$as_dir" && as_dir=.
 
4073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4075
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4077
    break 2
 
4078
  fi
 
4079
done
 
4080
done
 
4081
IFS=$as_save_IFS
 
4082
 
 
4083
fi
 
4084
fi
 
4085
AS=$ac_cv_prog_AS
 
4086
if test -n "$AS"; then
 
4087
  { echo "$as_me:$LINENO: result: $AS" >&5
 
4088
echo "${ECHO_T}$AS" >&6; }
 
4089
else
 
4090
  { echo "$as_me:$LINENO: result: no" >&5
 
4091
echo "${ECHO_T}no" >&6; }
 
4092
fi
 
4093
 
 
4094
 
 
4095
fi
 
4096
if test -z "$ac_cv_prog_AS"; then
 
4097
  ac_ct_AS=$AS
 
4098
  # Extract the first word of "as", so it can be a program name with args.
 
4099
set dummy as; ac_word=$2
 
4100
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4101
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4102
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4103
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4104
else
 
4105
  if test -n "$ac_ct_AS"; then
 
4106
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4107
else
 
4108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4109
for as_dir in $PATH
 
4110
do
 
4111
  IFS=$as_save_IFS
 
4112
  test -z "$as_dir" && as_dir=.
 
4113
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4114
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4115
    ac_cv_prog_ac_ct_AS="as"
 
4116
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4117
    break 2
 
4118
  fi
 
4119
done
 
4120
done
 
4121
IFS=$as_save_IFS
 
4122
 
 
4123
fi
 
4124
fi
 
4125
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4126
if test -n "$ac_ct_AS"; then
 
4127
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4128
echo "${ECHO_T}$ac_ct_AS" >&6; }
 
4129
else
 
4130
  { echo "$as_me:$LINENO: result: no" >&5
 
4131
echo "${ECHO_T}no" >&6; }
 
4132
fi
 
4133
 
 
4134
  if test "x$ac_ct_AS" = x; then
 
4135
    AS="false"
 
4136
  else
 
4137
    case $cross_compiling:$ac_tool_warned in
 
4138
yes:)
 
4139
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4140
whose name does not start with the host triplet.  If you think this
 
4141
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4142
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4143
whose name does not start with the host triplet.  If you think this
 
4144
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4145
ac_tool_warned=yes ;;
 
4146
esac
 
4147
    AS=$ac_ct_AS
 
4148
  fi
 
4149
else
 
4150
  AS="$ac_cv_prog_AS"
 
4151
fi
 
4152
 
 
4153
  if test -n "$ac_tool_prefix"; then
 
4154
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4155
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4156
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4157
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4158
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4159
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4160
else
 
4161
  if test -n "$OBJDUMP"; then
 
4162
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4163
else
 
4164
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4165
for as_dir in $PATH
 
4166
do
 
4167
  IFS=$as_save_IFS
 
4168
  test -z "$as_dir" && as_dir=.
 
4169
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4170
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4171
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4172
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4173
    break 2
 
4174
  fi
 
4175
done
 
4176
done
 
4177
IFS=$as_save_IFS
 
4178
 
 
4179
fi
 
4180
fi
 
4181
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4182
if test -n "$OBJDUMP"; then
 
4183
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4184
echo "${ECHO_T}$OBJDUMP" >&6; }
 
4185
else
 
4186
  { echo "$as_me:$LINENO: result: no" >&5
 
4187
echo "${ECHO_T}no" >&6; }
 
4188
fi
 
4189
 
 
4190
 
 
4191
fi
 
4192
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4193
  ac_ct_OBJDUMP=$OBJDUMP
 
4194
  # Extract the first word of "objdump", so it can be a program name with args.
 
4195
set dummy objdump; ac_word=$2
 
4196
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4197
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4198
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4200
else
 
4201
  if test -n "$ac_ct_OBJDUMP"; then
 
4202
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4203
else
 
4204
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4205
for as_dir in $PATH
 
4206
do
 
4207
  IFS=$as_save_IFS
 
4208
  test -z "$as_dir" && as_dir=.
 
4209
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4210
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4211
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4212
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4213
    break 2
 
4214
  fi
 
4215
done
 
4216
done
 
4217
IFS=$as_save_IFS
 
4218
 
 
4219
fi
 
4220
fi
 
4221
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4222
if test -n "$ac_ct_OBJDUMP"; then
 
4223
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4224
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
4225
else
 
4226
  { echo "$as_me:$LINENO: result: no" >&5
 
4227
echo "${ECHO_T}no" >&6; }
 
4228
fi
 
4229
 
 
4230
  if test "x$ac_ct_OBJDUMP" = x; then
 
4231
    OBJDUMP="false"
 
4232
  else
 
4233
    case $cross_compiling:$ac_tool_warned in
 
4234
yes:)
 
4235
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4236
whose name does not start with the host triplet.  If you think this
 
4237
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4238
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4239
whose name does not start with the host triplet.  If you think this
 
4240
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4241
ac_tool_warned=yes ;;
 
4242
esac
 
4243
    OBJDUMP=$ac_ct_OBJDUMP
 
4244
  fi
 
4245
else
 
4246
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4247
fi
 
4248
 
 
4249
  ;;
 
4250
 
 
4251
esac
 
4252
 
 
4253
need_locks="$enable_libtool_lock"
 
4254
 
 
4255
 
 
4256
ac_ext=c
 
4257
ac_cpp='$CPP $CPPFLAGS'
 
4258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4261
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4262
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4263
# On Suns, sometimes $CPP names a directory.
 
4264
if test -n "$CPP" && test -d "$CPP"; then
 
4265
  CPP=
 
4266
fi
 
4267
if test -z "$CPP"; then
 
4268
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4269
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4270
else
 
4271
      # Double quotes because CPP needs to be expanded
 
4272
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4273
    do
 
4274
      ac_preproc_ok=false
 
4275
for ac_c_preproc_warn_flag in '' yes
 
4276
do
 
4277
  # Use a header file that comes with gcc, so configuring glibc
 
4278
  # with a fresh cross-compiler works.
 
4279
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4280
  # <limits.h> exists even on freestanding compilers.
 
4281
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4282
  # not just through cpp. "Syntax error" is here to catch this case.
 
4283
  cat >conftest.$ac_ext <<_ACEOF
 
4284
/* confdefs.h.  */
 
4285
_ACEOF
 
4286
cat confdefs.h >>conftest.$ac_ext
 
4287
cat >>conftest.$ac_ext <<_ACEOF
 
4288
/* end confdefs.h.  */
 
4289
#ifdef __STDC__
 
4290
# include <limits.h>
 
4291
#else
 
4292
# include <assert.h>
 
4293
#endif
 
4294
                     Syntax error
 
4295
_ACEOF
 
4296
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4297
case "(($ac_try" in
 
4298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4299
  *) ac_try_echo=$ac_try;;
 
4300
esac
 
4301
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4302
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4303
  ac_status=$?
 
4304
  grep -v '^ *+' conftest.er1 >conftest.err
 
4305
  rm -f conftest.er1
 
4306
  cat conftest.err >&5
 
4307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4308
  (exit $ac_status); } >/dev/null && {
 
4309
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4310
         test ! -s conftest.err
 
4311
       }; then
 
4312
  :
 
4313
else
 
4314
  echo "$as_me: failed program was:" >&5
 
4315
sed 's/^/| /' conftest.$ac_ext >&5
 
4316
 
 
4317
  # Broken: fails on valid input.
 
4318
continue
 
4319
fi
 
4320
 
 
4321
rm -f conftest.err conftest.$ac_ext
 
4322
 
 
4323
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4324
  # can be detected and how.
 
4325
  cat >conftest.$ac_ext <<_ACEOF
 
4326
/* confdefs.h.  */
 
4327
_ACEOF
 
4328
cat confdefs.h >>conftest.$ac_ext
 
4329
cat >>conftest.$ac_ext <<_ACEOF
 
4330
/* end confdefs.h.  */
 
4331
#include <ac_nonexistent.h>
 
4332
_ACEOF
 
4333
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4334
case "(($ac_try" in
 
4335
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4336
  *) ac_try_echo=$ac_try;;
 
4337
esac
 
4338
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4339
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4340
  ac_status=$?
 
4341
  grep -v '^ *+' conftest.er1 >conftest.err
 
4342
  rm -f conftest.er1
 
4343
  cat conftest.err >&5
 
4344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4345
  (exit $ac_status); } >/dev/null && {
 
4346
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4347
         test ! -s conftest.err
 
4348
       }; then
 
4349
  # Broken: success on invalid input.
 
4350
continue
 
4351
else
 
4352
  echo "$as_me: failed program was:" >&5
 
4353
sed 's/^/| /' conftest.$ac_ext >&5
 
4354
 
 
4355
  # Passes both tests.
 
4356
ac_preproc_ok=:
 
4357
break
 
4358
fi
 
4359
 
 
4360
rm -f conftest.err conftest.$ac_ext
 
4361
 
 
4362
done
 
4363
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4364
rm -f conftest.err conftest.$ac_ext
 
4365
if $ac_preproc_ok; then
 
4366
  break
 
4367
fi
 
4368
 
 
4369
    done
 
4370
    ac_cv_prog_CPP=$CPP
 
4371
 
 
4372
fi
 
4373
  CPP=$ac_cv_prog_CPP
 
4374
else
 
4375
  ac_cv_prog_CPP=$CPP
 
4376
fi
 
4377
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4378
echo "${ECHO_T}$CPP" >&6; }
 
4379
ac_preproc_ok=false
 
4380
for ac_c_preproc_warn_flag in '' yes
 
4381
do
 
4382
  # Use a header file that comes with gcc, so configuring glibc
 
4383
  # with a fresh cross-compiler works.
 
4384
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4385
  # <limits.h> exists even on freestanding compilers.
 
4386
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4387
  # not just through cpp. "Syntax error" is here to catch this case.
 
4388
  cat >conftest.$ac_ext <<_ACEOF
 
4389
/* confdefs.h.  */
 
4390
_ACEOF
 
4391
cat confdefs.h >>conftest.$ac_ext
 
4392
cat >>conftest.$ac_ext <<_ACEOF
 
4393
/* end confdefs.h.  */
 
4394
#ifdef __STDC__
 
4395
# include <limits.h>
 
4396
#else
 
4397
# include <assert.h>
 
4398
#endif
 
4399
                     Syntax error
 
4400
_ACEOF
 
4401
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4402
case "(($ac_try" in
 
4403
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4404
  *) ac_try_echo=$ac_try;;
 
4405
esac
 
4406
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4407
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4408
  ac_status=$?
 
4409
  grep -v '^ *+' conftest.er1 >conftest.err
 
4410
  rm -f conftest.er1
 
4411
  cat conftest.err >&5
 
4412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4413
  (exit $ac_status); } >/dev/null && {
 
4414
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4415
         test ! -s conftest.err
 
4416
       }; then
 
4417
  :
 
4418
else
 
4419
  echo "$as_me: failed program was:" >&5
 
4420
sed 's/^/| /' conftest.$ac_ext >&5
 
4421
 
 
4422
  # Broken: fails on valid input.
 
4423
continue
 
4424
fi
 
4425
 
 
4426
rm -f conftest.err conftest.$ac_ext
 
4427
 
 
4428
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4429
  # can be detected and how.
 
4430
  cat >conftest.$ac_ext <<_ACEOF
 
4431
/* confdefs.h.  */
 
4432
_ACEOF
 
4433
cat confdefs.h >>conftest.$ac_ext
 
4434
cat >>conftest.$ac_ext <<_ACEOF
 
4435
/* end confdefs.h.  */
 
4436
#include <ac_nonexistent.h>
 
4437
_ACEOF
 
4438
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4439
case "(($ac_try" in
 
4440
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4441
  *) ac_try_echo=$ac_try;;
 
4442
esac
 
4443
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4444
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4445
  ac_status=$?
 
4446
  grep -v '^ *+' conftest.er1 >conftest.err
 
4447
  rm -f conftest.er1
 
4448
  cat conftest.err >&5
 
4449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4450
  (exit $ac_status); } >/dev/null && {
 
4451
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4452
         test ! -s conftest.err
 
4453
       }; then
 
4454
  # Broken: success on invalid input.
 
4455
continue
 
4456
else
 
4457
  echo "$as_me: failed program was:" >&5
 
4458
sed 's/^/| /' conftest.$ac_ext >&5
 
4459
 
 
4460
  # Passes both tests.
 
4461
ac_preproc_ok=:
 
4462
break
 
4463
fi
 
4464
 
 
4465
rm -f conftest.err conftest.$ac_ext
 
4466
 
 
4467
done
 
4468
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4469
rm -f conftest.err conftest.$ac_ext
 
4470
if $ac_preproc_ok; then
 
4471
  :
 
4472
else
 
4473
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4474
See \`config.log' for more details." >&5
 
4475
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4476
See \`config.log' for more details." >&2;}
 
4477
   { (exit 1); exit 1; }; }
 
4478
fi
 
4479
 
 
4480
ac_ext=c
 
4481
ac_cpp='$CPP $CPPFLAGS'
 
4482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4485
 
 
4486
 
 
4487
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4488
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4489
if test "${ac_cv_header_stdc+set}" = set; then
 
4490
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4491
else
 
4492
  cat >conftest.$ac_ext <<_ACEOF
 
4493
/* confdefs.h.  */
 
4494
_ACEOF
 
4495
cat confdefs.h >>conftest.$ac_ext
 
4496
cat >>conftest.$ac_ext <<_ACEOF
 
4497
/* end confdefs.h.  */
 
4498
#include <stdlib.h>
 
4499
#include <stdarg.h>
 
4500
#include <string.h>
 
4501
#include <float.h>
 
4502
 
 
4503
int
 
4504
main ()
 
4505
{
 
4506
 
 
4507
  ;
 
4508
  return 0;
 
4509
}
 
4510
_ACEOF
 
4511
rm -f conftest.$ac_objext
 
4512
if { (ac_try="$ac_compile"
 
4513
case "(($ac_try" in
 
4514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4515
  *) ac_try_echo=$ac_try;;
 
4516
esac
 
4517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4518
  (eval "$ac_compile") 2>conftest.er1
 
4519
  ac_status=$?
 
4520
  grep -v '^ *+' conftest.er1 >conftest.err
 
4521
  rm -f conftest.er1
 
4522
  cat conftest.err >&5
 
4523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4524
  (exit $ac_status); } && {
 
4525
         test -z "$ac_c_werror_flag" ||
 
4526
         test ! -s conftest.err
 
4527
       } && test -s conftest.$ac_objext; then
 
4528
  ac_cv_header_stdc=yes
 
4529
else
 
4530
  echo "$as_me: failed program was:" >&5
 
4531
sed 's/^/| /' conftest.$ac_ext >&5
 
4532
 
 
4533
        ac_cv_header_stdc=no
 
4534
fi
 
4535
 
 
4536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4537
 
 
4538
if test $ac_cv_header_stdc = yes; then
 
4539
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4540
  cat >conftest.$ac_ext <<_ACEOF
 
4541
/* confdefs.h.  */
 
4542
_ACEOF
 
4543
cat confdefs.h >>conftest.$ac_ext
 
4544
cat >>conftest.$ac_ext <<_ACEOF
 
4545
/* end confdefs.h.  */
 
4546
#include <string.h>
 
4547
 
 
4548
_ACEOF
 
4549
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4550
  $EGREP "memchr" >/dev/null 2>&1; then
 
4551
  :
 
4552
else
 
4553
  ac_cv_header_stdc=no
 
4554
fi
 
4555
rm -f conftest*
 
4556
 
 
4557
fi
 
4558
 
 
4559
if test $ac_cv_header_stdc = yes; then
 
4560
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4561
  cat >conftest.$ac_ext <<_ACEOF
 
4562
/* confdefs.h.  */
 
4563
_ACEOF
 
4564
cat confdefs.h >>conftest.$ac_ext
 
4565
cat >>conftest.$ac_ext <<_ACEOF
 
4566
/* end confdefs.h.  */
 
4567
#include <stdlib.h>
 
4568
 
 
4569
_ACEOF
 
4570
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4571
  $EGREP "free" >/dev/null 2>&1; then
 
4572
  :
 
4573
else
 
4574
  ac_cv_header_stdc=no
 
4575
fi
 
4576
rm -f conftest*
 
4577
 
 
4578
fi
 
4579
 
 
4580
if test $ac_cv_header_stdc = yes; then
 
4581
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4582
  if test "$cross_compiling" = yes; then
 
4583
  :
 
4584
else
 
4585
  cat >conftest.$ac_ext <<_ACEOF
 
4586
/* confdefs.h.  */
 
4587
_ACEOF
 
4588
cat confdefs.h >>conftest.$ac_ext
 
4589
cat >>conftest.$ac_ext <<_ACEOF
 
4590
/* end confdefs.h.  */
 
4591
#include <ctype.h>
 
4592
#include <stdlib.h>
 
4593
#if ((' ' & 0x0FF) == 0x020)
 
4594
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4595
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4596
#else
 
4597
# define ISLOWER(c) \
 
4598
                   (('a' <= (c) && (c) <= 'i') \
 
4599
                     || ('j' <= (c) && (c) <= 'r') \
 
4600
                     || ('s' <= (c) && (c) <= 'z'))
 
4601
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4602
#endif
 
4603
 
 
4604
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4605
int
 
4606
main ()
 
4607
{
 
4608
  int i;
 
4609
  for (i = 0; i < 256; i++)
 
4610
    if (XOR (islower (i), ISLOWER (i))
 
4611
        || toupper (i) != TOUPPER (i))
 
4612
      return 2;
 
4613
  return 0;
 
4614
}
 
4615
_ACEOF
 
4616
rm -f conftest$ac_exeext
 
4617
if { (ac_try="$ac_link"
 
4618
case "(($ac_try" in
 
4619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4620
  *) ac_try_echo=$ac_try;;
 
4621
esac
 
4622
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4623
  (eval "$ac_link") 2>&5
 
4624
  ac_status=$?
 
4625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4626
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4627
  { (case "(($ac_try" in
 
4628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4629
  *) ac_try_echo=$ac_try;;
 
4630
esac
 
4631
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4632
  (eval "$ac_try") 2>&5
 
4633
  ac_status=$?
 
4634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4635
  (exit $ac_status); }; }; then
 
4636
  :
 
4637
else
 
4638
  echo "$as_me: program exited with status $ac_status" >&5
 
4639
echo "$as_me: failed program was:" >&5
 
4640
sed 's/^/| /' conftest.$ac_ext >&5
 
4641
 
 
4642
( exit $ac_status )
 
4643
ac_cv_header_stdc=no
 
4644
fi
 
4645
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4646
fi
 
4647
 
 
4648
 
 
4649
fi
 
4650
fi
 
4651
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4652
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4653
if test $ac_cv_header_stdc = yes; then
 
4654
 
 
4655
cat >>confdefs.h <<\_ACEOF
 
4656
#define STDC_HEADERS 1
 
4657
_ACEOF
 
4658
 
 
4659
fi
 
4660
 
 
4661
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4662
 
 
4663
 
 
4664
 
 
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
 
 
4670
 
 
4671
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4672
                  inttypes.h stdint.h unistd.h
 
4673
do
 
4674
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4675
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4676
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4677
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4678
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4679
else
 
4680
  cat >conftest.$ac_ext <<_ACEOF
 
4681
/* confdefs.h.  */
 
4682
_ACEOF
 
4683
cat confdefs.h >>conftest.$ac_ext
 
4684
cat >>conftest.$ac_ext <<_ACEOF
 
4685
/* end confdefs.h.  */
 
4686
$ac_includes_default
 
4687
 
 
4688
#include <$ac_header>
 
4689
_ACEOF
 
4690
rm -f conftest.$ac_objext
 
4691
if { (ac_try="$ac_compile"
 
4692
case "(($ac_try" in
 
4693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4694
  *) ac_try_echo=$ac_try;;
 
4695
esac
 
4696
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4697
  (eval "$ac_compile") 2>conftest.er1
 
4698
  ac_status=$?
 
4699
  grep -v '^ *+' conftest.er1 >conftest.err
 
4700
  rm -f conftest.er1
 
4701
  cat conftest.err >&5
 
4702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4703
  (exit $ac_status); } && {
 
4704
         test -z "$ac_c_werror_flag" ||
 
4705
         test ! -s conftest.err
 
4706
       } && test -s conftest.$ac_objext; then
 
4707
  eval "$as_ac_Header=yes"
 
4708
else
 
4709
  echo "$as_me: failed program was:" >&5
 
4710
sed 's/^/| /' conftest.$ac_ext >&5
 
4711
 
 
4712
        eval "$as_ac_Header=no"
 
4713
fi
 
4714
 
 
4715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4716
fi
 
4717
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4718
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4719
echo "${ECHO_T}$ac_res" >&6; }
 
4720
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4721
  cat >>confdefs.h <<_ACEOF
 
4722
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4723
_ACEOF
 
4724
 
 
4725
fi
 
4726
 
 
4727
done
 
4728
 
 
4729
 
 
4730
 
 
4731
for ac_header in dlfcn.h
 
4732
do
 
4733
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4734
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4735
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4736
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4737
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4739
fi
 
4740
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4741
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4742
echo "${ECHO_T}$ac_res" >&6; }
 
4743
else
 
4744
  # Is the header compilable?
 
4745
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4746
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4747
cat >conftest.$ac_ext <<_ACEOF
 
4748
/* confdefs.h.  */
 
4749
_ACEOF
 
4750
cat confdefs.h >>conftest.$ac_ext
 
4751
cat >>conftest.$ac_ext <<_ACEOF
 
4752
/* end confdefs.h.  */
 
4753
$ac_includes_default
 
4754
#include <$ac_header>
 
4755
_ACEOF
 
4756
rm -f conftest.$ac_objext
 
4757
if { (ac_try="$ac_compile"
 
4758
case "(($ac_try" in
 
4759
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4760
  *) ac_try_echo=$ac_try;;
 
4761
esac
 
4762
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4763
  (eval "$ac_compile") 2>conftest.er1
 
4764
  ac_status=$?
 
4765
  grep -v '^ *+' conftest.er1 >conftest.err
 
4766
  rm -f conftest.er1
 
4767
  cat conftest.err >&5
 
4768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4769
  (exit $ac_status); } && {
 
4770
         test -z "$ac_c_werror_flag" ||
 
4771
         test ! -s conftest.err
 
4772
       } && test -s conftest.$ac_objext; then
 
4773
  ac_header_compiler=yes
 
4774
else
 
4775
  echo "$as_me: failed program was:" >&5
 
4776
sed 's/^/| /' conftest.$ac_ext >&5
 
4777
 
 
4778
        ac_header_compiler=no
 
4779
fi
 
4780
 
 
4781
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4782
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4783
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4784
 
 
4785
# Is the header present?
 
4786
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4787
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4788
cat >conftest.$ac_ext <<_ACEOF
 
4789
/* confdefs.h.  */
 
4790
_ACEOF
 
4791
cat confdefs.h >>conftest.$ac_ext
 
4792
cat >>conftest.$ac_ext <<_ACEOF
 
4793
/* end confdefs.h.  */
 
4794
#include <$ac_header>
 
4795
_ACEOF
 
4796
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4797
case "(($ac_try" in
 
4798
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4799
  *) ac_try_echo=$ac_try;;
 
4800
esac
 
4801
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4802
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4803
  ac_status=$?
 
4804
  grep -v '^ *+' conftest.er1 >conftest.err
 
4805
  rm -f conftest.er1
 
4806
  cat conftest.err >&5
 
4807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4808
  (exit $ac_status); } >/dev/null && {
 
4809
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4810
         test ! -s conftest.err
 
4811
       }; then
 
4812
  ac_header_preproc=yes
 
4813
else
 
4814
  echo "$as_me: failed program was:" >&5
 
4815
sed 's/^/| /' conftest.$ac_ext >&5
 
4816
 
 
4817
  ac_header_preproc=no
 
4818
fi
 
4819
 
 
4820
rm -f conftest.err conftest.$ac_ext
 
4821
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4822
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4823
 
 
4824
# So?  What about this header?
 
4825
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4826
  yes:no: )
 
4827
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4828
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4829
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4830
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4831
    ac_header_preproc=yes
 
4832
    ;;
 
4833
  no:yes:* )
 
4834
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4835
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4836
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4837
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4838
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4839
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4840
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4841
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4842
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4843
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4844
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4845
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4846
 
 
4847
    ;;
 
4848
esac
 
4849
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4850
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4851
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4853
else
 
4854
  eval "$as_ac_Header=\$ac_header_preproc"
 
4855
fi
 
4856
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4857
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4858
echo "${ECHO_T}$ac_res" >&6; }
 
4859
 
 
4860
fi
 
4861
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4862
  cat >>confdefs.h <<_ACEOF
 
4863
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4864
_ACEOF
 
4865
 
 
4866
fi
 
4867
 
 
4868
done
 
4869
 
 
4870
ac_ext=cpp
 
4871
ac_cpp='$CXXCPP $CPPFLAGS'
 
4872
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4873
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4874
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4875
if test -z "$CXX"; then
 
4876
  if test -n "$CCC"; then
 
4877
    CXX=$CCC
 
4878
  else
 
4879
    if test -n "$ac_tool_prefix"; then
 
4880
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4881
  do
 
4882
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
4883
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
4884
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4885
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4886
if test "${ac_cv_prog_CXX+set}" = set; then
 
4887
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4888
else
 
4889
  if test -n "$CXX"; then
 
4890
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
4891
else
 
4892
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4893
for as_dir in $PATH
 
4894
do
 
4895
  IFS=$as_save_IFS
 
4896
  test -z "$as_dir" && as_dir=.
 
4897
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4898
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4899
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
4900
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4901
    break 2
 
4902
  fi
 
4903
done
 
4904
done
 
4905
IFS=$as_save_IFS
 
4906
 
 
4907
fi
 
4908
fi
 
4909
CXX=$ac_cv_prog_CXX
 
4910
if test -n "$CXX"; then
 
4911
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
4912
echo "${ECHO_T}$CXX" >&6; }
 
4913
else
 
4914
  { echo "$as_me:$LINENO: result: no" >&5
 
4915
echo "${ECHO_T}no" >&6; }
 
4916
fi
 
4917
 
 
4918
 
 
4919
    test -n "$CXX" && break
 
4920
  done
 
4921
fi
 
4922
if test -z "$CXX"; then
 
4923
  ac_ct_CXX=$CXX
 
4924
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
4925
do
 
4926
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4927
set dummy $ac_prog; ac_word=$2
 
4928
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4929
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4930
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
4931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4932
else
 
4933
  if test -n "$ac_ct_CXX"; then
 
4934
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
4935
else
 
4936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4937
for as_dir in $PATH
 
4938
do
 
4939
  IFS=$as_save_IFS
 
4940
  test -z "$as_dir" && as_dir=.
 
4941
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4943
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
4944
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4945
    break 2
 
4946
  fi
 
4947
done
 
4948
done
 
4949
IFS=$as_save_IFS
 
4950
 
 
4951
fi
 
4952
fi
 
4953
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
4954
if test -n "$ac_ct_CXX"; then
 
4955
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
4956
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
4957
else
 
4958
  { echo "$as_me:$LINENO: result: no" >&5
 
4959
echo "${ECHO_T}no" >&6; }
 
4960
fi
 
4961
 
 
4962
 
 
4963
  test -n "$ac_ct_CXX" && break
 
4964
done
 
4965
 
 
4966
  if test "x$ac_ct_CXX" = x; then
 
4967
    CXX="g++"
 
4968
  else
 
4969
    case $cross_compiling:$ac_tool_warned in
 
4970
yes:)
 
4971
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4972
whose name does not start with the host triplet.  If you think this
 
4973
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4974
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4975
whose name does not start with the host triplet.  If you think this
 
4976
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4977
ac_tool_warned=yes ;;
 
4978
esac
 
4979
    CXX=$ac_ct_CXX
 
4980
  fi
 
4981
fi
 
4982
 
 
4983
  fi
 
4984
fi
 
4985
# Provide some information about the compiler.
 
4986
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
4987
ac_compiler=`set X $ac_compile; echo $2`
 
4988
{ (ac_try="$ac_compiler --version >&5"
 
4989
case "(($ac_try" in
 
4990
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4991
  *) ac_try_echo=$ac_try;;
 
4992
esac
 
4993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4994
  (eval "$ac_compiler --version >&5") 2>&5
 
4995
  ac_status=$?
 
4996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4997
  (exit $ac_status); }
 
4998
{ (ac_try="$ac_compiler -v >&5"
 
4999
case "(($ac_try" in
 
5000
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5001
  *) ac_try_echo=$ac_try;;
 
5002
esac
 
5003
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5004
  (eval "$ac_compiler -v >&5") 2>&5
 
5005
  ac_status=$?
 
5006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5007
  (exit $ac_status); }
 
5008
{ (ac_try="$ac_compiler -V >&5"
 
5009
case "(($ac_try" in
 
5010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5011
  *) ac_try_echo=$ac_try;;
 
5012
esac
 
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5014
  (eval "$ac_compiler -V >&5") 2>&5
 
5015
  ac_status=$?
 
5016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5017
  (exit $ac_status); }
 
5018
 
 
5019
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5020
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5021
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5022
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5023
else
 
5024
  cat >conftest.$ac_ext <<_ACEOF
 
5025
/* confdefs.h.  */
 
5026
_ACEOF
 
5027
cat confdefs.h >>conftest.$ac_ext
 
5028
cat >>conftest.$ac_ext <<_ACEOF
 
5029
/* end confdefs.h.  */
 
5030
 
 
5031
int
 
5032
main ()
 
5033
{
 
5034
#ifndef __GNUC__
 
5035
       choke me
 
5036
#endif
 
5037
 
 
5038
  ;
 
5039
  return 0;
 
5040
}
 
5041
_ACEOF
 
5042
rm -f conftest.$ac_objext
 
5043
if { (ac_try="$ac_compile"
 
5044
case "(($ac_try" in
 
5045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5046
  *) ac_try_echo=$ac_try;;
 
5047
esac
 
5048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5049
  (eval "$ac_compile") 2>conftest.er1
 
5050
  ac_status=$?
 
5051
  grep -v '^ *+' conftest.er1 >conftest.err
 
5052
  rm -f conftest.er1
 
5053
  cat conftest.err >&5
 
5054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5055
  (exit $ac_status); } && {
 
5056
         test -z "$ac_cxx_werror_flag" ||
 
5057
         test ! -s conftest.err
 
5058
       } && test -s conftest.$ac_objext; then
 
5059
  ac_compiler_gnu=yes
 
5060
else
 
5061
  echo "$as_me: failed program was:" >&5
 
5062
sed 's/^/| /' conftest.$ac_ext >&5
 
5063
 
 
5064
        ac_compiler_gnu=no
 
5065
fi
 
5066
 
 
5067
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5068
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5069
 
 
5070
fi
 
5071
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5072
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5073
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5074
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5075
ac_save_CXXFLAGS=$CXXFLAGS
 
5076
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5077
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5078
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5080
else
 
5081
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5082
   ac_cxx_werror_flag=yes
 
5083
   ac_cv_prog_cxx_g=no
 
5084
   CXXFLAGS="-g"
 
5085
   cat >conftest.$ac_ext <<_ACEOF
 
5086
/* confdefs.h.  */
 
5087
_ACEOF
 
5088
cat confdefs.h >>conftest.$ac_ext
 
5089
cat >>conftest.$ac_ext <<_ACEOF
 
5090
/* end confdefs.h.  */
 
5091
 
 
5092
int
 
5093
main ()
 
5094
{
 
5095
 
 
5096
  ;
 
5097
  return 0;
 
5098
}
 
5099
_ACEOF
 
5100
rm -f conftest.$ac_objext
 
5101
if { (ac_try="$ac_compile"
 
5102
case "(($ac_try" in
 
5103
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5104
  *) ac_try_echo=$ac_try;;
 
5105
esac
 
5106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5107
  (eval "$ac_compile") 2>conftest.er1
 
5108
  ac_status=$?
 
5109
  grep -v '^ *+' conftest.er1 >conftest.err
 
5110
  rm -f conftest.er1
 
5111
  cat conftest.err >&5
 
5112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5113
  (exit $ac_status); } && {
 
5114
         test -z "$ac_cxx_werror_flag" ||
 
5115
         test ! -s conftest.err
 
5116
       } && test -s conftest.$ac_objext; then
 
5117
  ac_cv_prog_cxx_g=yes
 
5118
else
 
5119
  echo "$as_me: failed program was:" >&5
 
5120
sed 's/^/| /' conftest.$ac_ext >&5
 
5121
 
 
5122
        CXXFLAGS=""
 
5123
      cat >conftest.$ac_ext <<_ACEOF
 
5124
/* confdefs.h.  */
 
5125
_ACEOF
 
5126
cat confdefs.h >>conftest.$ac_ext
 
5127
cat >>conftest.$ac_ext <<_ACEOF
 
5128
/* end confdefs.h.  */
 
5129
 
 
5130
int
 
5131
main ()
 
5132
{
 
5133
 
 
5134
  ;
 
5135
  return 0;
 
5136
}
 
5137
_ACEOF
 
5138
rm -f conftest.$ac_objext
 
5139
if { (ac_try="$ac_compile"
 
5140
case "(($ac_try" in
 
5141
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5142
  *) ac_try_echo=$ac_try;;
 
5143
esac
 
5144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5145
  (eval "$ac_compile") 2>conftest.er1
 
5146
  ac_status=$?
 
5147
  grep -v '^ *+' conftest.er1 >conftest.err
 
5148
  rm -f conftest.er1
 
5149
  cat conftest.err >&5
 
5150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5151
  (exit $ac_status); } && {
 
5152
         test -z "$ac_cxx_werror_flag" ||
 
5153
         test ! -s conftest.err
 
5154
       } && test -s conftest.$ac_objext; then
 
5155
  :
 
5156
else
 
5157
  echo "$as_me: failed program was:" >&5
 
5158
sed 's/^/| /' conftest.$ac_ext >&5
 
5159
 
 
5160
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5161
         CXXFLAGS="-g"
 
5162
         cat >conftest.$ac_ext <<_ACEOF
 
5163
/* confdefs.h.  */
 
5164
_ACEOF
 
5165
cat confdefs.h >>conftest.$ac_ext
 
5166
cat >>conftest.$ac_ext <<_ACEOF
 
5167
/* end confdefs.h.  */
 
5168
 
 
5169
int
 
5170
main ()
 
5171
{
 
5172
 
 
5173
  ;
 
5174
  return 0;
 
5175
}
 
5176
_ACEOF
 
5177
rm -f conftest.$ac_objext
 
5178
if { (ac_try="$ac_compile"
 
5179
case "(($ac_try" in
 
5180
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5181
  *) ac_try_echo=$ac_try;;
 
5182
esac
 
5183
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5184
  (eval "$ac_compile") 2>conftest.er1
 
5185
  ac_status=$?
 
5186
  grep -v '^ *+' conftest.er1 >conftest.err
 
5187
  rm -f conftest.er1
 
5188
  cat conftest.err >&5
 
5189
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5190
  (exit $ac_status); } && {
 
5191
         test -z "$ac_cxx_werror_flag" ||
 
5192
         test ! -s conftest.err
 
5193
       } && test -s conftest.$ac_objext; then
 
5194
  ac_cv_prog_cxx_g=yes
 
5195
else
 
5196
  echo "$as_me: failed program was:" >&5
 
5197
sed 's/^/| /' conftest.$ac_ext >&5
 
5198
 
 
5199
 
 
5200
fi
 
5201
 
 
5202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5203
fi
 
5204
 
 
5205
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5206
fi
 
5207
 
 
5208
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5209
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5210
fi
 
5211
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5212
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5213
if test "$ac_test_CXXFLAGS" = set; then
 
5214
  CXXFLAGS=$ac_save_CXXFLAGS
 
5215
elif test $ac_cv_prog_cxx_g = yes; then
 
5216
  if test "$GXX" = yes; then
 
5217
    CXXFLAGS="-g -O2"
 
5218
  else
 
5219
    CXXFLAGS="-g"
 
5220
  fi
 
5221
else
 
5222
  if test "$GXX" = yes; then
 
5223
    CXXFLAGS="-O2"
 
5224
  else
 
5225
    CXXFLAGS=
 
5226
  fi
 
5227
fi
 
5228
ac_ext=cpp
 
5229
ac_cpp='$CXXCPP $CPPFLAGS'
 
5230
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5231
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5232
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5233
 
 
5234
 
 
5235
 
 
5236
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5237
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5238
    (test "X$CXX" != "Xg++"))) ; then
 
5239
  ac_ext=cpp
 
5240
ac_cpp='$CXXCPP $CPPFLAGS'
 
5241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5244
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5245
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5246
if test -z "$CXXCPP"; then
 
5247
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5249
else
 
5250
      # Double quotes because CXXCPP needs to be expanded
 
5251
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5252
    do
 
5253
      ac_preproc_ok=false
 
5254
for ac_cxx_preproc_warn_flag in '' yes
 
5255
do
 
5256
  # Use a header file that comes with gcc, so configuring glibc
 
5257
  # with a fresh cross-compiler works.
 
5258
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5259
  # <limits.h> exists even on freestanding compilers.
 
5260
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5261
  # not just through cpp. "Syntax error" is here to catch this case.
 
5262
  cat >conftest.$ac_ext <<_ACEOF
 
5263
/* confdefs.h.  */
 
5264
_ACEOF
 
5265
cat confdefs.h >>conftest.$ac_ext
 
5266
cat >>conftest.$ac_ext <<_ACEOF
 
5267
/* end confdefs.h.  */
 
5268
#ifdef __STDC__
 
5269
# include <limits.h>
 
5270
#else
 
5271
# include <assert.h>
 
5272
#endif
 
5273
                     Syntax error
 
5274
_ACEOF
 
5275
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5276
case "(($ac_try" in
 
5277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5278
  *) ac_try_echo=$ac_try;;
 
5279
esac
 
5280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5281
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5282
  ac_status=$?
 
5283
  grep -v '^ *+' conftest.er1 >conftest.err
 
5284
  rm -f conftest.er1
 
5285
  cat conftest.err >&5
 
5286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5287
  (exit $ac_status); } >/dev/null && {
 
5288
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5289
         test ! -s conftest.err
 
5290
       }; then
 
5291
  :
 
5292
else
 
5293
  echo "$as_me: failed program was:" >&5
 
5294
sed 's/^/| /' conftest.$ac_ext >&5
 
5295
 
 
5296
  # Broken: fails on valid input.
 
5297
continue
 
5298
fi
 
5299
 
 
5300
rm -f conftest.err conftest.$ac_ext
 
5301
 
 
5302
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5303
  # can be detected and how.
 
5304
  cat >conftest.$ac_ext <<_ACEOF
 
5305
/* confdefs.h.  */
 
5306
_ACEOF
 
5307
cat confdefs.h >>conftest.$ac_ext
 
5308
cat >>conftest.$ac_ext <<_ACEOF
 
5309
/* end confdefs.h.  */
 
5310
#include <ac_nonexistent.h>
 
5311
_ACEOF
 
5312
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5313
case "(($ac_try" in
 
5314
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5315
  *) ac_try_echo=$ac_try;;
 
5316
esac
 
5317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5318
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5319
  ac_status=$?
 
5320
  grep -v '^ *+' conftest.er1 >conftest.err
 
5321
  rm -f conftest.er1
 
5322
  cat conftest.err >&5
 
5323
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5324
  (exit $ac_status); } >/dev/null && {
 
5325
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5326
         test ! -s conftest.err
 
5327
       }; then
 
5328
  # Broken: success on invalid input.
 
5329
continue
 
5330
else
 
5331
  echo "$as_me: failed program was:" >&5
 
5332
sed 's/^/| /' conftest.$ac_ext >&5
 
5333
 
 
5334
  # Passes both tests.
 
5335
ac_preproc_ok=:
 
5336
break
 
5337
fi
 
5338
 
 
5339
rm -f conftest.err conftest.$ac_ext
 
5340
 
 
5341
done
 
5342
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5343
rm -f conftest.err conftest.$ac_ext
 
5344
if $ac_preproc_ok; then
 
5345
  break
 
5346
fi
 
5347
 
 
5348
    done
 
5349
    ac_cv_prog_CXXCPP=$CXXCPP
 
5350
 
 
5351
fi
 
5352
  CXXCPP=$ac_cv_prog_CXXCPP
 
5353
else
 
5354
  ac_cv_prog_CXXCPP=$CXXCPP
 
5355
fi
 
5356
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5357
echo "${ECHO_T}$CXXCPP" >&6; }
 
5358
ac_preproc_ok=false
 
5359
for ac_cxx_preproc_warn_flag in '' yes
 
5360
do
 
5361
  # Use a header file that comes with gcc, so configuring glibc
 
5362
  # with a fresh cross-compiler works.
 
5363
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5364
  # <limits.h> exists even on freestanding compilers.
 
5365
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5366
  # not just through cpp. "Syntax error" is here to catch this case.
 
5367
  cat >conftest.$ac_ext <<_ACEOF
 
5368
/* confdefs.h.  */
 
5369
_ACEOF
 
5370
cat confdefs.h >>conftest.$ac_ext
 
5371
cat >>conftest.$ac_ext <<_ACEOF
 
5372
/* end confdefs.h.  */
 
5373
#ifdef __STDC__
 
5374
# include <limits.h>
 
5375
#else
 
5376
# include <assert.h>
 
5377
#endif
 
5378
                     Syntax error
 
5379
_ACEOF
 
5380
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5381
case "(($ac_try" in
 
5382
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5383
  *) ac_try_echo=$ac_try;;
 
5384
esac
 
5385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5386
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5387
  ac_status=$?
 
5388
  grep -v '^ *+' conftest.er1 >conftest.err
 
5389
  rm -f conftest.er1
 
5390
  cat conftest.err >&5
 
5391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5392
  (exit $ac_status); } >/dev/null && {
 
5393
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5394
         test ! -s conftest.err
 
5395
       }; then
 
5396
  :
 
5397
else
 
5398
  echo "$as_me: failed program was:" >&5
 
5399
sed 's/^/| /' conftest.$ac_ext >&5
 
5400
 
 
5401
  # Broken: fails on valid input.
 
5402
continue
 
5403
fi
 
5404
 
 
5405
rm -f conftest.err conftest.$ac_ext
 
5406
 
 
5407
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5408
  # can be detected and how.
 
5409
  cat >conftest.$ac_ext <<_ACEOF
 
5410
/* confdefs.h.  */
 
5411
_ACEOF
 
5412
cat confdefs.h >>conftest.$ac_ext
 
5413
cat >>conftest.$ac_ext <<_ACEOF
 
5414
/* end confdefs.h.  */
 
5415
#include <ac_nonexistent.h>
 
5416
_ACEOF
 
5417
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5418
case "(($ac_try" in
 
5419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5420
  *) ac_try_echo=$ac_try;;
 
5421
esac
 
5422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5423
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5424
  ac_status=$?
 
5425
  grep -v '^ *+' conftest.er1 >conftest.err
 
5426
  rm -f conftest.er1
 
5427
  cat conftest.err >&5
 
5428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5429
  (exit $ac_status); } >/dev/null && {
 
5430
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5431
         test ! -s conftest.err
 
5432
       }; then
 
5433
  # Broken: success on invalid input.
 
5434
continue
 
5435
else
 
5436
  echo "$as_me: failed program was:" >&5
 
5437
sed 's/^/| /' conftest.$ac_ext >&5
 
5438
 
 
5439
  # Passes both tests.
 
5440
ac_preproc_ok=:
 
5441
break
 
5442
fi
 
5443
 
 
5444
rm -f conftest.err conftest.$ac_ext
 
5445
 
 
5446
done
 
5447
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5448
rm -f conftest.err conftest.$ac_ext
 
5449
if $ac_preproc_ok; then
 
5450
  :
 
5451
else
 
5452
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5453
See \`config.log' for more details." >&5
 
5454
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5455
See \`config.log' for more details." >&2;}
 
5456
   { (exit 1); exit 1; }; }
 
5457
fi
 
5458
 
 
5459
ac_ext=cpp
 
5460
ac_cpp='$CXXCPP $CPPFLAGS'
 
5461
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5462
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5463
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5464
 
 
5465
fi
 
5466
 
 
5467
 
 
5468
ac_ext=f
 
5469
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5470
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5471
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5472
if test -n "$ac_tool_prefix"; then
 
5473
  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
 
5474
  do
 
5475
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5476
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5479
if test "${ac_cv_prog_F77+set}" = set; then
 
5480
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5481
else
 
5482
  if test -n "$F77"; then
 
5483
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5484
else
 
5485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5486
for as_dir in $PATH
 
5487
do
 
5488
  IFS=$as_save_IFS
 
5489
  test -z "$as_dir" && as_dir=.
 
5490
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5491
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5492
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5493
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5494
    break 2
 
5495
  fi
 
5496
done
 
5497
done
 
5498
IFS=$as_save_IFS
 
5499
 
 
5500
fi
 
5501
fi
 
5502
F77=$ac_cv_prog_F77
 
5503
if test -n "$F77"; then
 
5504
  { echo "$as_me:$LINENO: result: $F77" >&5
 
5505
echo "${ECHO_T}$F77" >&6; }
 
5506
else
 
5507
  { echo "$as_me:$LINENO: result: no" >&5
 
5508
echo "${ECHO_T}no" >&6; }
 
5509
fi
 
5510
 
 
5511
 
 
5512
    test -n "$F77" && break
 
5513
  done
 
5514
fi
 
5515
if test -z "$F77"; then
 
5516
  ac_ct_F77=$F77
 
5517
  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
 
5518
do
 
5519
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5520
set dummy $ac_prog; ac_word=$2
 
5521
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5522
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5523
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5524
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5525
else
 
5526
  if test -n "$ac_ct_F77"; then
 
5527
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5528
else
 
5529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5530
for as_dir in $PATH
 
5531
do
 
5532
  IFS=$as_save_IFS
 
5533
  test -z "$as_dir" && as_dir=.
 
5534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5535
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5536
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5537
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5538
    break 2
 
5539
  fi
 
5540
done
 
5541
done
 
5542
IFS=$as_save_IFS
 
5543
 
 
5544
fi
 
5545
fi
 
5546
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5547
if test -n "$ac_ct_F77"; then
 
5548
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5549
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
5550
else
 
5551
  { echo "$as_me:$LINENO: result: no" >&5
 
5552
echo "${ECHO_T}no" >&6; }
 
5553
fi
 
5554
 
 
5555
 
 
5556
  test -n "$ac_ct_F77" && break
 
5557
done
 
5558
 
 
5559
  if test "x$ac_ct_F77" = x; then
 
5560
    F77=""
 
5561
  else
 
5562
    case $cross_compiling:$ac_tool_warned in
 
5563
yes:)
 
5564
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5565
whose name does not start with the host triplet.  If you think this
 
5566
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5567
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5568
whose name does not start with the host triplet.  If you think this
 
5569
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5570
ac_tool_warned=yes ;;
 
5571
esac
 
5572
    F77=$ac_ct_F77
 
5573
  fi
 
5574
fi
 
5575
 
 
5576
 
 
5577
# Provide some information about the compiler.
 
5578
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5579
ac_compiler=`set X $ac_compile; echo $2`
 
5580
{ (ac_try="$ac_compiler --version >&5"
 
5581
case "(($ac_try" in
 
5582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5583
  *) ac_try_echo=$ac_try;;
 
5584
esac
 
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5586
  (eval "$ac_compiler --version >&5") 2>&5
 
5587
  ac_status=$?
 
5588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5589
  (exit $ac_status); }
 
5590
{ (ac_try="$ac_compiler -v >&5"
 
5591
case "(($ac_try" in
 
5592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5593
  *) ac_try_echo=$ac_try;;
 
5594
esac
 
5595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5596
  (eval "$ac_compiler -v >&5") 2>&5
 
5597
  ac_status=$?
 
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5599
  (exit $ac_status); }
 
5600
{ (ac_try="$ac_compiler -V >&5"
 
5601
case "(($ac_try" in
 
5602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5603
  *) ac_try_echo=$ac_try;;
 
5604
esac
 
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5606
  (eval "$ac_compiler -V >&5") 2>&5
 
5607
  ac_status=$?
 
5608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5609
  (exit $ac_status); }
 
5610
rm -f a.out
 
5611
 
 
5612
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5613
# input file.  (Note that this only needs to work for GNU compilers.)
 
5614
ac_save_ext=$ac_ext
 
5615
ac_ext=F
 
5616
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5617
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
5618
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5619
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5620
else
 
5621
  cat >conftest.$ac_ext <<_ACEOF
 
5622
      program main
 
5623
#ifndef __GNUC__
 
5624
       choke me
 
5625
#endif
 
5626
 
 
5627
      end
 
5628
_ACEOF
 
5629
rm -f conftest.$ac_objext
 
5630
if { (ac_try="$ac_compile"
 
5631
case "(($ac_try" in
 
5632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5633
  *) ac_try_echo=$ac_try;;
 
5634
esac
 
5635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5636
  (eval "$ac_compile") 2>conftest.er1
 
5637
  ac_status=$?
 
5638
  grep -v '^ *+' conftest.er1 >conftest.err
 
5639
  rm -f conftest.er1
 
5640
  cat conftest.err >&5
 
5641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5642
  (exit $ac_status); } && {
 
5643
         test -z "$ac_f77_werror_flag" ||
 
5644
         test ! -s conftest.err
 
5645
       } && test -s conftest.$ac_objext; then
 
5646
  ac_compiler_gnu=yes
 
5647
else
 
5648
  echo "$as_me: failed program was:" >&5
 
5649
sed 's/^/| /' conftest.$ac_ext >&5
 
5650
 
 
5651
        ac_compiler_gnu=no
 
5652
fi
 
5653
 
 
5654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5655
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5656
 
 
5657
fi
 
5658
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5659
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
5660
ac_ext=$ac_save_ext
 
5661
ac_test_FFLAGS=${FFLAGS+set}
 
5662
ac_save_FFLAGS=$FFLAGS
 
5663
FFLAGS=
 
5664
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5665
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
5666
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5667
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5668
else
 
5669
  FFLAGS=-g
 
5670
cat >conftest.$ac_ext <<_ACEOF
 
5671
      program main
 
5672
 
 
5673
      end
 
5674
_ACEOF
 
5675
rm -f conftest.$ac_objext
 
5676
if { (ac_try="$ac_compile"
 
5677
case "(($ac_try" in
 
5678
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5679
  *) ac_try_echo=$ac_try;;
 
5680
esac
 
5681
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5682
  (eval "$ac_compile") 2>conftest.er1
 
5683
  ac_status=$?
 
5684
  grep -v '^ *+' conftest.er1 >conftest.err
 
5685
  rm -f conftest.er1
 
5686
  cat conftest.err >&5
 
5687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5688
  (exit $ac_status); } && {
 
5689
         test -z "$ac_f77_werror_flag" ||
 
5690
         test ! -s conftest.err
 
5691
       } && test -s conftest.$ac_objext; then
 
5692
  ac_cv_prog_f77_g=yes
 
5693
else
 
5694
  echo "$as_me: failed program was:" >&5
 
5695
sed 's/^/| /' conftest.$ac_ext >&5
 
5696
 
 
5697
        ac_cv_prog_f77_g=no
 
5698
fi
 
5699
 
 
5700
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5701
 
 
5702
fi
 
5703
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5704
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
5705
if test "$ac_test_FFLAGS" = set; then
 
5706
  FFLAGS=$ac_save_FFLAGS
 
5707
elif test $ac_cv_prog_f77_g = yes; then
 
5708
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5709
    FFLAGS="-g -O2"
 
5710
  else
 
5711
    FFLAGS="-g"
 
5712
  fi
 
5713
else
 
5714
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5715
    FFLAGS="-O2"
 
5716
  else
 
5717
    FFLAGS=
 
5718
  fi
 
5719
fi
 
5720
 
 
5721
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5722
ac_ext=c
 
5723
ac_cpp='$CPP $CPPFLAGS'
 
5724
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5725
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5726
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5727
 
 
5728
 
 
5729
 
 
5730
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5731
 
 
5732
# find the maximum length of command line arguments
 
5733
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5734
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
5735
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5736
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5737
else
 
5738
    i=0
 
5739
  teststring="ABCD"
 
5740
 
 
5741
  case $build_os in
 
5742
  msdosdjgpp*)
 
5743
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5744
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5745
    # during glob expansion).  Even if it were fixed, the result of this
 
5746
    # check would be larger than it should be.
 
5747
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5748
    ;;
 
5749
 
 
5750
  gnu*)
 
5751
    # Under GNU Hurd, this test is not required because there is
 
5752
    # no limit to the length of command line arguments.
 
5753
    # Libtool will interpret -1 as no limit whatsoever
 
5754
    lt_cv_sys_max_cmd_len=-1;
 
5755
    ;;
 
5756
 
 
5757
  cygwin* | mingw*)
 
5758
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5759
    # about 5 minutes as the teststring grows exponentially.
 
5760
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5761
    # you end up with a "frozen" computer, even though with patience
 
5762
    # the test eventually succeeds (with a max line length of 256k).
 
5763
    # Instead, let's just punt: use the minimum linelength reported by
 
5764
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5765
    lt_cv_sys_max_cmd_len=8192;
 
5766
    ;;
 
5767
 
 
5768
  amigaos*)
 
5769
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5770
    # So we just punt and use a minimum line length of 8192.
 
5771
    lt_cv_sys_max_cmd_len=8192;
 
5772
    ;;
 
5773
 
 
5774
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5775
    # This has been around since 386BSD, at least.  Likely further.
 
5776
    if test -x /sbin/sysctl; then
 
5777
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5778
    elif test -x /usr/sbin/sysctl; then
 
5779
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5780
    else
 
5781
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5782
    fi
 
5783
    # And add a safety zone
 
5784
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5785
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5786
    ;;
 
5787
 
 
5788
  interix*)
 
5789
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
5790
    lt_cv_sys_max_cmd_len=196608
 
5791
    ;;
 
5792
 
 
5793
  osf*)
 
5794
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5795
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5796
    # nice to cause kernel panics so lets avoid the loop below.
 
5797
    # First set a reasonable default.
 
5798
    lt_cv_sys_max_cmd_len=16384
 
5799
    #
 
5800
    if test -x /sbin/sysconfig; then
 
5801
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5802
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5803
      esac
 
5804
    fi
 
5805
    ;;
 
5806
  sco3.2v5*)
 
5807
    lt_cv_sys_max_cmd_len=102400
 
5808
    ;;
 
5809
  sysv5* | sco5v6* | sysv4.2uw2*)
 
5810
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
5811
    if test -n "$kargmax"; then
 
5812
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
5813
    else
 
5814
      lt_cv_sys_max_cmd_len=32768
 
5815
    fi
 
5816
    ;;
 
5817
  *)
 
5818
    # If test is not a shell built-in, we'll probably end up computing a
 
5819
    # maximum length that is only half of the actual maximum length, but
 
5820
    # we can't tell.
 
5821
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5822
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5823
               = "XX$teststring") >/dev/null 2>&1 &&
 
5824
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5825
            lt_cv_sys_max_cmd_len=$new_result &&
 
5826
            test $i != 17 # 1/2 MB should be enough
 
5827
    do
 
5828
      i=`expr $i + 1`
 
5829
      teststring=$teststring$teststring
 
5830
    done
 
5831
    teststring=
 
5832
    # Add a significant safety factor because C++ compilers can tack on massive
 
5833
    # amounts of additional arguments before passing them to the linker.
 
5834
    # It appears as though 1/2 is a usable value.
 
5835
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5836
    ;;
 
5837
  esac
 
5838
 
 
5839
fi
 
5840
 
 
5841
if test -n $lt_cv_sys_max_cmd_len ; then
 
5842
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5843
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
5844
else
 
5845
  { echo "$as_me:$LINENO: result: none" >&5
 
5846
echo "${ECHO_T}none" >&6; }
 
5847
fi
 
5848
 
 
5849
 
 
5850
 
 
5851
 
 
5852
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5853
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5854
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
5855
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5857
else
 
5858
 
 
5859
# These are sane defaults that work on at least a few old systems.
 
5860
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5861
 
 
5862
# Character class describing NM global symbol codes.
 
5863
symcode='[BCDEGRST]'
 
5864
 
 
5865
# Regexp to match symbols that can be accessed directly from C.
 
5866
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5867
 
 
5868
# Transform an extracted symbol line into a proper C declaration
 
5869
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5870
 
 
5871
# Transform an extracted symbol line into symbol name and symbol address
 
5872
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'"
 
5873
 
 
5874
# Define system-specific variables.
 
5875
case $host_os in
 
5876
aix*)
 
5877
  symcode='[BCDT]'
 
5878
  ;;
 
5879
cygwin* | mingw* | pw32*)
 
5880
  symcode='[ABCDGISTW]'
 
5881
  ;;
 
5882
hpux*) # Its linker distinguishes data from code symbols
 
5883
  if test "$host_cpu" = ia64; then
 
5884
    symcode='[ABCDEGRST]'
 
5885
  fi
 
5886
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5887
  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'"
 
5888
  ;;
 
5889
linux*)
 
5890
  if test "$host_cpu" = ia64; then
 
5891
    symcode='[ABCDGIRSTW]'
 
5892
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5893
    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'"
 
5894
  fi
 
5895
  ;;
 
5896
irix* | nonstopux*)
 
5897
  symcode='[BCDEGRST]'
 
5898
  ;;
 
5899
osf*)
 
5900
  symcode='[BCDEGQRST]'
 
5901
  ;;
 
5902
solaris*)
 
5903
  symcode='[BDRT]'
 
5904
  ;;
 
5905
sco3.2v5*)
 
5906
  symcode='[DT]'
 
5907
  ;;
 
5908
sysv4.2uw2*)
 
5909
  symcode='[DT]'
 
5910
  ;;
 
5911
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
5912
  symcode='[ABDT]'
 
5913
  ;;
 
5914
sysv4)
 
5915
  symcode='[DFNSTU]'
 
5916
  ;;
 
5917
esac
 
5918
 
 
5919
# Handle CRLF in mingw tool chain
 
5920
opt_cr=
 
5921
case $build_os in
 
5922
mingw*)
 
5923
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5924
  ;;
 
5925
esac
 
5926
 
 
5927
# If we're using GNU nm, then use its standard symbol codes.
 
5928
case `$NM -V 2>&1` in
 
5929
*GNU* | *'with BFD'*)
 
5930
  symcode='[ABCDGIRSTW]' ;;
 
5931
esac
 
5932
 
 
5933
# Try without a prefix undercore, then with it.
 
5934
for ac_symprfx in "" "_"; do
 
5935
 
 
5936
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5937
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5938
 
 
5939
  # Write the raw and C identifiers.
 
5940
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5941
 
 
5942
  # Check to see that the pipe works correctly.
 
5943
  pipe_works=no
 
5944
 
 
5945
  rm -f conftest*
 
5946
  cat > conftest.$ac_ext <<EOF
 
5947
#ifdef __cplusplus
 
5948
extern "C" {
 
5949
#endif
 
5950
char nm_test_var;
 
5951
void nm_test_func(){}
 
5952
#ifdef __cplusplus
 
5953
}
 
5954
#endif
 
5955
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5956
EOF
 
5957
 
 
5958
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5959
  (eval $ac_compile) 2>&5
 
5960
  ac_status=$?
 
5961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5962
  (exit $ac_status); }; then
 
5963
    # Now try to grab the symbols.
 
5964
    nlist=conftest.nm
 
5965
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5966
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5967
  ac_status=$?
 
5968
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5969
  (exit $ac_status); } && test -s "$nlist"; then
 
5970
      # Try sorting and uniquifying the output.
 
5971
      if sort "$nlist" | uniq > "$nlist"T; then
 
5972
        mv -f "$nlist"T "$nlist"
 
5973
      else
 
5974
        rm -f "$nlist"T
 
5975
      fi
 
5976
 
 
5977
      # Make sure that we snagged all the symbols we need.
 
5978
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5979
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5980
          cat <<EOF > conftest.$ac_ext
 
5981
#ifdef __cplusplus
 
5982
extern "C" {
 
5983
#endif
 
5984
 
 
5985
EOF
 
5986
          # Now generate the symbol file.
 
5987
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5988
 
 
5989
          cat <<EOF >> conftest.$ac_ext
 
5990
#if defined (__STDC__) && __STDC__
 
5991
# define lt_ptr_t void *
 
5992
#else
 
5993
# define lt_ptr_t char *
 
5994
# define const
 
5995
#endif
 
5996
 
 
5997
/* The mapping between symbol names and symbols. */
 
5998
const struct {
 
5999
  const char *name;
 
6000
  lt_ptr_t address;
 
6001
}
 
6002
lt_preloaded_symbols[] =
 
6003
{
 
6004
EOF
 
6005
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6006
          cat <<\EOF >> conftest.$ac_ext
 
6007
  {0, (lt_ptr_t) 0}
 
6008
};
 
6009
 
 
6010
#ifdef __cplusplus
 
6011
}
 
6012
#endif
 
6013
EOF
 
6014
          # Now try linking the two files.
 
6015
          mv conftest.$ac_objext conftstm.$ac_objext
 
6016
          lt_save_LIBS="$LIBS"
 
6017
          lt_save_CFLAGS="$CFLAGS"
 
6018
          LIBS="conftstm.$ac_objext"
 
6019
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6020
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6021
  (eval $ac_link) 2>&5
 
6022
  ac_status=$?
 
6023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6024
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6025
            pipe_works=yes
 
6026
          fi
 
6027
          LIBS="$lt_save_LIBS"
 
6028
          CFLAGS="$lt_save_CFLAGS"
 
6029
        else
 
6030
          echo "cannot find nm_test_func in $nlist" >&5
 
6031
        fi
 
6032
      else
 
6033
        echo "cannot find nm_test_var in $nlist" >&5
 
6034
      fi
 
6035
    else
 
6036
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6037
    fi
 
6038
  else
 
6039
    echo "$progname: failed program was:" >&5
 
6040
    cat conftest.$ac_ext >&5
 
6041
  fi
 
6042
  rm -f conftest* conftst*
 
6043
 
 
6044
  # Do not use the global_symbol_pipe unless it works.
 
6045
  if test "$pipe_works" = yes; then
 
6046
    break
 
6047
  else
 
6048
    lt_cv_sys_global_symbol_pipe=
 
6049
  fi
 
6050
done
 
6051
 
 
6052
fi
 
6053
 
 
6054
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6055
  lt_cv_sys_global_symbol_to_cdecl=
 
6056
fi
 
6057
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6058
  { echo "$as_me:$LINENO: result: failed" >&5
 
6059
echo "${ECHO_T}failed" >&6; }
 
6060
else
 
6061
  { echo "$as_me:$LINENO: result: ok" >&5
 
6062
echo "${ECHO_T}ok" >&6; }
 
6063
fi
 
6064
 
 
6065
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6066
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6067
if test "${lt_cv_objdir+set}" = set; then
 
6068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6069
else
 
6070
  rm -f .libs 2>/dev/null
 
6071
mkdir .libs 2>/dev/null
 
6072
if test -d .libs; then
 
6073
  lt_cv_objdir=.libs
 
6074
else
 
6075
  # MS-DOS does not allow filenames that begin with a dot.
 
6076
  lt_cv_objdir=_libs
 
6077
fi
 
6078
rmdir .libs 2>/dev/null
 
6079
fi
 
6080
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6081
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6082
objdir=$lt_cv_objdir
 
6083
 
 
6084
 
 
6085
 
 
6086
 
 
6087
 
 
6088
case $host_os in
 
6089
aix3*)
 
6090
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6091
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6092
  # vanish in a puff of smoke.
 
6093
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6094
    COLLECT_NAMES=
 
6095
    export COLLECT_NAMES
 
6096
  fi
 
6097
  ;;
 
6098
esac
 
6099
 
 
6100
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6101
# metacharacters that are still active within double-quoted strings.
 
6102
Xsed='sed -e 1s/^X//'
 
6103
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6104
 
 
6105
# Same as above, but do not quote variable references.
 
6106
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6107
 
 
6108
# Sed substitution to delay expansion of an escaped shell variable in a
 
6109
# double_quote_subst'ed string.
 
6110
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6111
 
 
6112
# Sed substitution to avoid accidental globbing in evaled expressions
 
6113
no_glob_subst='s/\*/\\\*/g'
 
6114
 
 
6115
# Constants:
 
6116
rm="rm -f"
 
6117
 
 
6118
# Global variables:
 
6119
default_ofile=libtool
 
6120
can_build_shared=yes
 
6121
 
 
6122
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6123
# which needs '.lib').
 
6124
libext=a
 
6125
ltmain="$ac_aux_dir/ltmain.sh"
 
6126
ofile="$default_ofile"
 
6127
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6128
 
 
6129
if test -n "$ac_tool_prefix"; then
 
6130
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6131
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6132
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6133
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6134
if test "${ac_cv_prog_AR+set}" = set; then
 
6135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6136
else
 
6137
  if test -n "$AR"; then
 
6138
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6139
else
 
6140
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6141
for as_dir in $PATH
 
6142
do
 
6143
  IFS=$as_save_IFS
 
6144
  test -z "$as_dir" && as_dir=.
 
6145
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6146
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6147
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6148
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6149
    break 2
 
6150
  fi
 
6151
done
 
6152
done
 
6153
IFS=$as_save_IFS
 
6154
 
 
6155
fi
 
6156
fi
 
6157
AR=$ac_cv_prog_AR
 
6158
if test -n "$AR"; then
 
6159
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6160
echo "${ECHO_T}$AR" >&6; }
 
6161
else
 
6162
  { echo "$as_me:$LINENO: result: no" >&5
 
6163
echo "${ECHO_T}no" >&6; }
 
6164
fi
 
6165
 
 
6166
 
 
6167
fi
 
6168
if test -z "$ac_cv_prog_AR"; then
 
6169
  ac_ct_AR=$AR
 
6170
  # Extract the first word of "ar", so it can be a program name with args.
 
6171
set dummy ar; ac_word=$2
 
6172
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6173
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6174
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6176
else
 
6177
  if test -n "$ac_ct_AR"; then
 
6178
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6179
else
 
6180
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6181
for as_dir in $PATH
 
6182
do
 
6183
  IFS=$as_save_IFS
 
6184
  test -z "$as_dir" && as_dir=.
 
6185
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6186
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6187
    ac_cv_prog_ac_ct_AR="ar"
 
6188
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6189
    break 2
 
6190
  fi
 
6191
done
 
6192
done
 
6193
IFS=$as_save_IFS
 
6194
 
 
6195
fi
 
6196
fi
 
6197
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6198
if test -n "$ac_ct_AR"; then
 
6199
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6200
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6201
else
 
6202
  { echo "$as_me:$LINENO: result: no" >&5
 
6203
echo "${ECHO_T}no" >&6; }
 
6204
fi
 
6205
 
 
6206
  if test "x$ac_ct_AR" = x; then
 
6207
    AR="false"
 
6208
  else
 
6209
    case $cross_compiling:$ac_tool_warned in
 
6210
yes:)
 
6211
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6212
whose name does not start with the host triplet.  If you think this
 
6213
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6214
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6215
whose name does not start with the host triplet.  If you think this
 
6216
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6217
ac_tool_warned=yes ;;
 
6218
esac
 
6219
    AR=$ac_ct_AR
 
6220
  fi
 
6221
else
 
6222
  AR="$ac_cv_prog_AR"
 
6223
fi
 
6224
 
 
6225
if test -n "$ac_tool_prefix"; then
 
6226
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6227
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6228
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6229
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6230
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6232
else
 
6233
  if test -n "$RANLIB"; then
 
6234
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6235
else
 
6236
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6237
for as_dir in $PATH
 
6238
do
 
6239
  IFS=$as_save_IFS
 
6240
  test -z "$as_dir" && as_dir=.
 
6241
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6242
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6243
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6244
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6245
    break 2
 
6246
  fi
 
6247
done
 
6248
done
 
6249
IFS=$as_save_IFS
 
6250
 
 
6251
fi
 
6252
fi
 
6253
RANLIB=$ac_cv_prog_RANLIB
 
6254
if test -n "$RANLIB"; then
 
6255
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6256
echo "${ECHO_T}$RANLIB" >&6; }
 
6257
else
 
6258
  { echo "$as_me:$LINENO: result: no" >&5
 
6259
echo "${ECHO_T}no" >&6; }
 
6260
fi
 
6261
 
 
6262
 
 
6263
fi
 
6264
if test -z "$ac_cv_prog_RANLIB"; then
 
6265
  ac_ct_RANLIB=$RANLIB
 
6266
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6267
set dummy ranlib; ac_word=$2
 
6268
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6270
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6272
else
 
6273
  if test -n "$ac_ct_RANLIB"; then
 
6274
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6275
else
 
6276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6277
for as_dir in $PATH
 
6278
do
 
6279
  IFS=$as_save_IFS
 
6280
  test -z "$as_dir" && as_dir=.
 
6281
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6282
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6283
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6284
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6285
    break 2
 
6286
  fi
 
6287
done
 
6288
done
 
6289
IFS=$as_save_IFS
 
6290
 
 
6291
fi
 
6292
fi
 
6293
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6294
if test -n "$ac_ct_RANLIB"; then
 
6295
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6296
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6297
else
 
6298
  { echo "$as_me:$LINENO: result: no" >&5
 
6299
echo "${ECHO_T}no" >&6; }
 
6300
fi
 
6301
 
 
6302
  if test "x$ac_ct_RANLIB" = x; then
 
6303
    RANLIB=":"
 
6304
  else
 
6305
    case $cross_compiling:$ac_tool_warned in
 
6306
yes:)
 
6307
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6308
whose name does not start with the host triplet.  If you think this
 
6309
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6310
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6311
whose name does not start with the host triplet.  If you think this
 
6312
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6313
ac_tool_warned=yes ;;
 
6314
esac
 
6315
    RANLIB=$ac_ct_RANLIB
 
6316
  fi
 
6317
else
 
6318
  RANLIB="$ac_cv_prog_RANLIB"
 
6319
fi
 
6320
 
 
6321
if test -n "$ac_tool_prefix"; then
 
6322
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6323
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6324
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6326
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6328
else
 
6329
  if test -n "$STRIP"; then
 
6330
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6331
else
 
6332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6333
for as_dir in $PATH
 
6334
do
 
6335
  IFS=$as_save_IFS
 
6336
  test -z "$as_dir" && as_dir=.
 
6337
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6339
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6341
    break 2
 
6342
  fi
 
6343
done
 
6344
done
 
6345
IFS=$as_save_IFS
 
6346
 
 
6347
fi
 
6348
fi
 
6349
STRIP=$ac_cv_prog_STRIP
 
6350
if test -n "$STRIP"; then
 
6351
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6352
echo "${ECHO_T}$STRIP" >&6; }
 
6353
else
 
6354
  { echo "$as_me:$LINENO: result: no" >&5
 
6355
echo "${ECHO_T}no" >&6; }
 
6356
fi
 
6357
 
 
6358
 
 
6359
fi
 
6360
if test -z "$ac_cv_prog_STRIP"; then
 
6361
  ac_ct_STRIP=$STRIP
 
6362
  # Extract the first word of "strip", so it can be a program name with args.
 
6363
set dummy strip; ac_word=$2
 
6364
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6365
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6366
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6368
else
 
6369
  if test -n "$ac_ct_STRIP"; then
 
6370
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6371
else
 
6372
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6373
for as_dir in $PATH
 
6374
do
 
6375
  IFS=$as_save_IFS
 
6376
  test -z "$as_dir" && as_dir=.
 
6377
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6378
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6379
    ac_cv_prog_ac_ct_STRIP="strip"
 
6380
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6381
    break 2
 
6382
  fi
 
6383
done
 
6384
done
 
6385
IFS=$as_save_IFS
 
6386
 
 
6387
fi
 
6388
fi
 
6389
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6390
if test -n "$ac_ct_STRIP"; then
 
6391
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6392
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6393
else
 
6394
  { echo "$as_me:$LINENO: result: no" >&5
 
6395
echo "${ECHO_T}no" >&6; }
 
6396
fi
 
6397
 
 
6398
  if test "x$ac_ct_STRIP" = x; then
 
6399
    STRIP=":"
 
6400
  else
 
6401
    case $cross_compiling:$ac_tool_warned in
 
6402
yes:)
 
6403
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6404
whose name does not start with the host triplet.  If you think this
 
6405
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6406
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6407
whose name does not start with the host triplet.  If you think this
 
6408
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6409
ac_tool_warned=yes ;;
 
6410
esac
 
6411
    STRIP=$ac_ct_STRIP
 
6412
  fi
 
6413
else
 
6414
  STRIP="$ac_cv_prog_STRIP"
 
6415
fi
 
6416
 
 
6417
 
 
6418
old_CC="$CC"
 
6419
old_CFLAGS="$CFLAGS"
 
6420
 
 
6421
# Set sane defaults for various variables
 
6422
test -z "$AR" && AR=ar
 
6423
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6424
test -z "$AS" && AS=as
 
6425
test -z "$CC" && CC=cc
 
6426
test -z "$LTCC" && LTCC=$CC
 
6427
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6428
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6429
test -z "$LD" && LD=ld
 
6430
test -z "$LN_S" && LN_S="ln -s"
 
6431
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6432
test -z "$NM" && NM=nm
 
6433
test -z "$SED" && SED=sed
 
6434
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6435
test -z "$RANLIB" && RANLIB=:
 
6436
test -z "$STRIP" && STRIP=:
 
6437
test -z "$ac_objext" && ac_objext=o
 
6438
 
 
6439
# Determine commands to create old-style static archives.
 
6440
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6441
old_postinstall_cmds='chmod 644 $oldlib'
 
6442
old_postuninstall_cmds=
 
6443
 
 
6444
if test -n "$RANLIB"; then
 
6445
  case $host_os in
 
6446
  openbsd*)
 
6447
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6448
    ;;
 
6449
  *)
 
6450
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6451
    ;;
 
6452
  esac
 
6453
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6454
fi
 
6455
 
 
6456
for cc_temp in $compiler""; do
 
6457
  case $cc_temp in
 
6458
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6459
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6460
    \-*) ;;
 
6461
    *) break;;
 
6462
  esac
 
6463
done
 
6464
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6465
 
 
6466
 
 
6467
# Only perform the check for file, if the check method requires it
 
6468
case $deplibs_check_method in
 
6469
file_magic*)
 
6470
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6471
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6472
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6473
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6475
else
 
6476
  case $MAGIC_CMD in
 
6477
[\\/*] |  ?:[\\/]*)
 
6478
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6479
  ;;
 
6480
*)
 
6481
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6482
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6483
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6484
  for ac_dir in $ac_dummy; do
 
6485
    IFS="$lt_save_ifs"
 
6486
    test -z "$ac_dir" && ac_dir=.
 
6487
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6488
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6489
      if test -n "$file_magic_test_file"; then
 
6490
        case $deplibs_check_method in
 
6491
        "file_magic "*)
 
6492
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6493
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6494
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6495
            $EGREP "$file_magic_regex" > /dev/null; then
 
6496
            :
 
6497
          else
 
6498
            cat <<EOF 1>&2
 
6499
 
 
6500
*** Warning: the command libtool uses to detect shared libraries,
 
6501
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6502
*** The result is that libtool may fail to recognize shared libraries
 
6503
*** as such.  This will affect the creation of libtool libraries that
 
6504
*** depend on shared libraries, but programs linked with such libtool
 
6505
*** libraries will work regardless of this problem.  Nevertheless, you
 
6506
*** may want to report the problem to your system manager and/or to
 
6507
*** bug-libtool@gnu.org
 
6508
 
 
6509
EOF
 
6510
          fi ;;
 
6511
        esac
 
6512
      fi
 
6513
      break
 
6514
    fi
 
6515
  done
 
6516
  IFS="$lt_save_ifs"
 
6517
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6518
  ;;
 
6519
esac
 
6520
fi
 
6521
 
 
6522
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6523
if test -n "$MAGIC_CMD"; then
 
6524
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6525
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6526
else
 
6527
  { echo "$as_me:$LINENO: result: no" >&5
 
6528
echo "${ECHO_T}no" >&6; }
 
6529
fi
 
6530
 
 
6531
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6532
  if test -n "$ac_tool_prefix"; then
 
6533
    { echo "$as_me:$LINENO: checking for file" >&5
 
6534
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6535
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6536
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6537
else
 
6538
  case $MAGIC_CMD in
 
6539
[\\/*] |  ?:[\\/]*)
 
6540
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6541
  ;;
 
6542
*)
 
6543
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6544
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6545
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6546
  for ac_dir in $ac_dummy; do
 
6547
    IFS="$lt_save_ifs"
 
6548
    test -z "$ac_dir" && ac_dir=.
 
6549
    if test -f $ac_dir/file; then
 
6550
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6551
      if test -n "$file_magic_test_file"; then
 
6552
        case $deplibs_check_method in
 
6553
        "file_magic "*)
 
6554
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6555
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6556
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6557
            $EGREP "$file_magic_regex" > /dev/null; then
 
6558
            :
 
6559
          else
 
6560
            cat <<EOF 1>&2
 
6561
 
 
6562
*** Warning: the command libtool uses to detect shared libraries,
 
6563
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6564
*** The result is that libtool may fail to recognize shared libraries
 
6565
*** as such.  This will affect the creation of libtool libraries that
 
6566
*** depend on shared libraries, but programs linked with such libtool
 
6567
*** libraries will work regardless of this problem.  Nevertheless, you
 
6568
*** may want to report the problem to your system manager and/or to
 
6569
*** bug-libtool@gnu.org
 
6570
 
 
6571
EOF
 
6572
          fi ;;
 
6573
        esac
 
6574
      fi
 
6575
      break
 
6576
    fi
 
6577
  done
 
6578
  IFS="$lt_save_ifs"
 
6579
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6580
  ;;
 
6581
esac
 
6582
fi
 
6583
 
 
6584
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6585
if test -n "$MAGIC_CMD"; then
 
6586
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6587
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6588
else
 
6589
  { echo "$as_me:$LINENO: result: no" >&5
 
6590
echo "${ECHO_T}no" >&6; }
 
6591
fi
 
6592
 
 
6593
  else
 
6594
    MAGIC_CMD=:
 
6595
  fi
 
6596
fi
 
6597
 
 
6598
  fi
 
6599
  ;;
 
6600
esac
 
6601
 
 
6602
enable_dlopen=no
 
6603
enable_win32_dll=yes
 
6604
 
 
6605
# Check whether --enable-libtool-lock was given.
 
6606
if test "${enable_libtool_lock+set}" = set; then
 
6607
  enableval=$enable_libtool_lock;
 
6608
fi
 
6609
 
 
6610
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6611
 
 
6612
 
 
6613
# Check whether --with-pic was given.
 
6614
if test "${with_pic+set}" = set; then
 
6615
  withval=$with_pic; pic_mode="$withval"
 
6616
else
 
6617
  pic_mode=default
 
6618
fi
 
6619
 
 
6620
test -z "$pic_mode" && pic_mode=default
 
6621
 
 
6622
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
 
6623
#
 
6624
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
 
6625
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
 
6626
#        calls AC_LIBTOOL_CONFIG and creates libtool.
 
6627
#
 
6628
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
 
6629
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
 
6630
if test "x$ltmain" = "x" ; then
 
6631
  { echo "$as_me:$LINENO: result: no" >&5
 
6632
echo "${ECHO_T}no" >&6; }
 
6633
  { { echo "$as_me:$LINENO: error:
 
6634
 
 
6635
*** [Gentoo] sanity check failed! ***
 
6636
*** \$ltmain is not defined, please check the patch for consistency! ***
 
6637
" >&5
 
6638
echo "$as_me: error:
 
6639
 
 
6640
*** [Gentoo] sanity check failed! ***
 
6641
*** \$ltmain is not defined, please check the patch for consistency! ***
 
6642
" >&2;}
 
6643
   { (exit 1); exit 1; }; }
 
6644
fi
 
6645
gentoo_lt_version="1.5.22"
 
6646
gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
 
6647
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
 
6648
  { echo "$as_me:$LINENO: result: no" >&5
 
6649
echo "${ECHO_T}no" >&6; }
 
6650
  { { echo "$as_me:$LINENO: error:
 
6651
 
 
6652
*** [Gentoo] sanity check failed! ***
 
6653
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
6654
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
6655
 
 
6656
Please run:
 
6657
 
 
6658
  libtoolize --copy --force
 
6659
 
 
6660
if appropriate, please contact the maintainer of this
 
6661
package (or your distribution) for help.
 
6662
" >&5
 
6663
echo "$as_me: error:
 
6664
 
 
6665
*** [Gentoo] sanity check failed! ***
 
6666
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
6667
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
6668
 
 
6669
Please run:
 
6670
 
 
6671
  libtoolize --copy --force
 
6672
 
 
6673
if appropriate, please contact the maintainer of this
 
6674
package (or your distribution) for help.
 
6675
" >&2;}
 
6676
   { (exit 1); exit 1; }; }
 
6677
else
 
6678
  { echo "$as_me:$LINENO: result: yes" >&5
 
6679
echo "${ECHO_T}yes" >&6; }
 
6680
fi
 
6681
 
 
6682
 
 
6683
# Use C for the default configuration in the libtool script
 
6684
tagname=
 
6685
lt_save_CC="$CC"
 
6686
ac_ext=c
 
6687
ac_cpp='$CPP $CPPFLAGS'
 
6688
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6689
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6690
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6691
 
 
6692
 
 
6693
# Source file extension for C test sources.
 
6694
ac_ext=c
 
6695
 
 
6696
# Object file extension for compiled C test sources.
 
6697
objext=o
 
6698
objext=$objext
 
6699
 
 
6700
# Code to be used in simple compile tests
 
6701
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6702
 
 
6703
# Code to be used in simple link tests
 
6704
lt_simple_link_test_code='int main(){return(0);}\n'
 
6705
 
 
6706
 
 
6707
# If no C compiler was specified, use CC.
 
6708
LTCC=${LTCC-"$CC"}
 
6709
 
 
6710
# If no C compiler flags were specified, use CFLAGS.
 
6711
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
6712
 
 
6713
# Allow CC to be a program name with arguments.
 
6714
compiler=$CC
 
6715
 
 
6716
 
 
6717
# save warnings/boilerplate of simple test code
 
6718
ac_outfile=conftest.$ac_objext
 
6719
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6720
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6721
_lt_compiler_boilerplate=`cat conftest.err`
 
6722
$rm conftest*
 
6723
 
 
6724
ac_outfile=conftest.$ac_objext
 
6725
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6726
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
6727
_lt_linker_boilerplate=`cat conftest.err`
 
6728
$rm conftest*
 
6729
 
 
6730
 
 
6731
 
 
6732
lt_prog_compiler_no_builtin_flag=
 
6733
 
 
6734
if test "$GCC" = yes; then
 
6735
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6736
 
 
6737
 
 
6738
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6739
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
6740
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6742
else
 
6743
  lt_cv_prog_compiler_rtti_exceptions=no
 
6744
  ac_outfile=conftest.$ac_objext
 
6745
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6746
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6747
   # Insert the option either (1) after the last *FLAGS variable, or
 
6748
   # (2) before a word containing "conftest.", or (3) at the end.
 
6749
   # Note that $ac_compile itself does not contain backslashes and begins
 
6750
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6751
   # The option is referenced via a variable to avoid confusing sed.
 
6752
   lt_compile=`echo "$ac_compile" | $SED \
 
6753
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6754
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6755
   -e 's:$: $lt_compiler_flag:'`
 
6756
   (eval echo "\"\$as_me:6756: $lt_compile\"" >&5)
 
6757
   (eval "$lt_compile" 2>conftest.err)
 
6758
   ac_status=$?
 
6759
   cat conftest.err >&5
 
6760
   echo "$as_me:6760: \$? = $ac_status" >&5
 
6761
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6762
     # The compiler can only warn and ignore the option if not recognized
 
6763
     # So say no if there are warnings other than the usual output.
 
6764
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
6765
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
6766
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
6767
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6768
     fi
 
6769
   fi
 
6770
   $rm conftest*
 
6771
 
 
6772
fi
 
6773
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6774
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
6775
 
 
6776
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6777
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6778
else
 
6779
    :
 
6780
fi
 
6781
 
 
6782
fi
 
6783
 
 
6784
lt_prog_compiler_wl=
 
6785
lt_prog_compiler_pic=
 
6786
lt_prog_compiler_static=
 
6787
 
 
6788
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6789
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
6790
 
 
6791
  if test "$GCC" = yes; then
 
6792
    lt_prog_compiler_wl='-Wl,'
 
6793
    lt_prog_compiler_static='-static'
 
6794
 
 
6795
    case $host_os in
 
6796
      aix*)
 
6797
      # All AIX code is PIC.
 
6798
      if test "$host_cpu" = ia64; then
 
6799
        # AIX 5 now supports IA64 processor
 
6800
        lt_prog_compiler_static='-Bstatic'
 
6801
      fi
 
6802
      ;;
 
6803
 
 
6804
    amigaos*)
 
6805
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6806
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6807
      # like `-m68040'.
 
6808
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6809
      ;;
 
6810
 
 
6811
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6812
      # PIC is the default for these OSes.
 
6813
      ;;
 
6814
 
 
6815
    mingw* | pw32* | os2*)
 
6816
      # This hack is so that the source file can tell whether it is being
 
6817
      # built for inclusion in a dll (and should export symbols for example).
 
6818
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6819
      ;;
 
6820
 
 
6821
    darwin* | rhapsody*)
 
6822
      # PIC is the default on this platform
 
6823
      # Common symbols not allowed in MH_DYLIB files
 
6824
      lt_prog_compiler_pic='-fno-common'
 
6825
      ;;
 
6826
 
 
6827
    interix3*)
 
6828
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
6829
      # Instead, we relocate shared libraries at runtime.
 
6830
      ;;
 
6831
 
 
6832
    msdosdjgpp*)
 
6833
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6834
      # on systems that don't support them.
 
6835
      lt_prog_compiler_can_build_shared=no
 
6836
      enable_shared=no
 
6837
      ;;
 
6838
 
 
6839
    sysv4*MP*)
 
6840
      if test -d /usr/nec; then
 
6841
        lt_prog_compiler_pic=-Kconform_pic
 
6842
      fi
 
6843
      ;;
 
6844
 
 
6845
    hpux*)
 
6846
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6847
      # not for PA HP-UX.
 
6848
      case $host_cpu in
 
6849
      hppa*64*|ia64*)
 
6850
        # +Z the default
 
6851
        ;;
 
6852
      *)
 
6853
        lt_prog_compiler_pic='-fPIC'
 
6854
        ;;
 
6855
      esac
 
6856
      ;;
 
6857
 
 
6858
    *)
 
6859
      lt_prog_compiler_pic='-fPIC'
 
6860
      ;;
 
6861
    esac
 
6862
  else
 
6863
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6864
    case $host_os in
 
6865
    aix*)
 
6866
      lt_prog_compiler_wl='-Wl,'
 
6867
      if test "$host_cpu" = ia64; then
 
6868
        # AIX 5 now supports IA64 processor
 
6869
        lt_prog_compiler_static='-Bstatic'
 
6870
      else
 
6871
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6872
      fi
 
6873
      ;;
 
6874
      darwin*)
 
6875
        # PIC is the default on this platform
 
6876
        # Common symbols not allowed in MH_DYLIB files
 
6877
       case $cc_basename in
 
6878
         xlc*)
 
6879
         lt_prog_compiler_pic='-qnocommon'
 
6880
         lt_prog_compiler_wl='-Wl,'
 
6881
         ;;
 
6882
       esac
 
6883
       ;;
 
6884
 
 
6885
    mingw* | pw32* | os2*)
 
6886
      # This hack is so that the source file can tell whether it is being
 
6887
      # built for inclusion in a dll (and should export symbols for example).
 
6888
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6889
      ;;
 
6890
 
 
6891
    hpux9* | hpux10* | hpux11*)
 
6892
      lt_prog_compiler_wl='-Wl,'
 
6893
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6894
      # not for PA HP-UX.
 
6895
      case $host_cpu in
 
6896
      hppa*64*|ia64*)
 
6897
        # +Z the default
 
6898
        ;;
 
6899
      *)
 
6900
        lt_prog_compiler_pic='+Z'
 
6901
        ;;
 
6902
      esac
 
6903
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6904
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6905
      ;;
 
6906
 
 
6907
    irix5* | irix6* | nonstopux*)
 
6908
      lt_prog_compiler_wl='-Wl,'
 
6909
      # PIC (with -KPIC) is the default.
 
6910
      lt_prog_compiler_static='-non_shared'
 
6911
      ;;
 
6912
 
 
6913
    newsos6)
 
6914
      lt_prog_compiler_pic='-KPIC'
 
6915
      lt_prog_compiler_static='-Bstatic'
 
6916
      ;;
 
6917
 
 
6918
    linux*)
 
6919
      case $cc_basename in
 
6920
      icc* | ecc*)
 
6921
        lt_prog_compiler_wl='-Wl,'
 
6922
        lt_prog_compiler_pic='-KPIC'
 
6923
        lt_prog_compiler_static='-static'
 
6924
        ;;
 
6925
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6926
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6927
        # which looks to be a dead project)
 
6928
        lt_prog_compiler_wl='-Wl,'
 
6929
        lt_prog_compiler_pic='-fpic'
 
6930
        lt_prog_compiler_static='-Bstatic'
 
6931
        ;;
 
6932
      ccc*)
 
6933
        lt_prog_compiler_wl='-Wl,'
 
6934
        # All Alpha code is PIC.
 
6935
        lt_prog_compiler_static='-non_shared'
 
6936
        ;;
 
6937
      esac
 
6938
      ;;
 
6939
 
 
6940
    osf3* | osf4* | osf5*)
 
6941
      lt_prog_compiler_wl='-Wl,'
 
6942
      # All OSF/1 code is PIC.
 
6943
      lt_prog_compiler_static='-non_shared'
 
6944
      ;;
 
6945
 
 
6946
    solaris*)
 
6947
      lt_prog_compiler_pic='-KPIC'
 
6948
      lt_prog_compiler_static='-Bstatic'
 
6949
      case $cc_basename in
 
6950
      f77* | f90* | f95*)
 
6951
        lt_prog_compiler_wl='-Qoption ld ';;
 
6952
      *)
 
6953
        lt_prog_compiler_wl='-Wl,';;
 
6954
      esac
 
6955
      ;;
 
6956
 
 
6957
    sunos4*)
 
6958
      lt_prog_compiler_wl='-Qoption ld '
 
6959
      lt_prog_compiler_pic='-PIC'
 
6960
      lt_prog_compiler_static='-Bstatic'
 
6961
      ;;
 
6962
 
 
6963
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
6964
      lt_prog_compiler_wl='-Wl,'
 
6965
      lt_prog_compiler_pic='-KPIC'
 
6966
      lt_prog_compiler_static='-Bstatic'
 
6967
      ;;
 
6968
 
 
6969
    sysv4*MP*)
 
6970
      if test -d /usr/nec ;then
 
6971
        lt_prog_compiler_pic='-Kconform_pic'
 
6972
        lt_prog_compiler_static='-Bstatic'
 
6973
      fi
 
6974
      ;;
 
6975
 
 
6976
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
6977
      lt_prog_compiler_wl='-Wl,'
 
6978
      lt_prog_compiler_pic='-KPIC'
 
6979
      lt_prog_compiler_static='-Bstatic'
 
6980
      ;;
 
6981
 
 
6982
    unicos*)
 
6983
      lt_prog_compiler_wl='-Wl,'
 
6984
      lt_prog_compiler_can_build_shared=no
 
6985
      ;;
 
6986
 
 
6987
    uts4*)
 
6988
      lt_prog_compiler_pic='-pic'
 
6989
      lt_prog_compiler_static='-Bstatic'
 
6990
      ;;
 
6991
 
 
6992
    *)
 
6993
      lt_prog_compiler_can_build_shared=no
 
6994
      ;;
 
6995
    esac
 
6996
  fi
 
6997
 
 
6998
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6999
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7000
 
 
7001
#
 
7002
# Check to make sure the PIC flag actually works.
 
7003
#
 
7004
if test -n "$lt_prog_compiler_pic"; then
 
7005
 
 
7006
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7007
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7008
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7010
else
 
7011
  lt_prog_compiler_pic_works=no
 
7012
  ac_outfile=conftest.$ac_objext
 
7013
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7014
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7015
   # Insert the option either (1) after the last *FLAGS variable, or
 
7016
   # (2) before a word containing "conftest.", or (3) at the end.
 
7017
   # Note that $ac_compile itself does not contain backslashes and begins
 
7018
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7019
   # The option is referenced via a variable to avoid confusing sed.
 
7020
   lt_compile=`echo "$ac_compile" | $SED \
 
7021
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7022
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7023
   -e 's:$: $lt_compiler_flag:'`
 
7024
   (eval echo "\"\$as_me:7024: $lt_compile\"" >&5)
 
7025
   (eval "$lt_compile" 2>conftest.err)
 
7026
   ac_status=$?
 
7027
   cat conftest.err >&5
 
7028
   echo "$as_me:7028: \$? = $ac_status" >&5
 
7029
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7030
     # The compiler can only warn and ignore the option if not recognized
 
7031
     # So say no if there are warnings other than the usual output.
 
7032
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7033
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7034
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7035
       lt_prog_compiler_pic_works=yes
 
7036
     fi
 
7037
   fi
 
7038
   $rm conftest*
 
7039
 
 
7040
fi
 
7041
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7042
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7043
 
 
7044
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7045
    case $lt_prog_compiler_pic in
 
7046
     "" | " "*) ;;
 
7047
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7048
     esac
 
7049
else
 
7050
    lt_prog_compiler_pic=
 
7051
     lt_prog_compiler_can_build_shared=no
 
7052
fi
 
7053
 
 
7054
fi
 
7055
case $host_os in
 
7056
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7057
  *djgpp*)
 
7058
    lt_prog_compiler_pic=
 
7059
    ;;
 
7060
  *)
 
7061
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7062
    ;;
 
7063
esac
 
7064
 
 
7065
#
 
7066
# Check to make sure the static flag actually works.
 
7067
#
 
7068
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7069
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7070
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7071
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7073
else
 
7074
  lt_prog_compiler_static_works=no
 
7075
   save_LDFLAGS="$LDFLAGS"
 
7076
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7077
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7078
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7079
     # The linker can only warn and ignore the option if not recognized
 
7080
     # So say no if there are warnings
 
7081
     if test -s conftest.err; then
 
7082
       # Append any errors to the config.log.
 
7083
       cat conftest.err 1>&5
 
7084
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7085
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7086
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7087
         lt_prog_compiler_static_works=yes
 
7088
       fi
 
7089
     else
 
7090
       lt_prog_compiler_static_works=yes
 
7091
     fi
 
7092
   fi
 
7093
   $rm conftest*
 
7094
   LDFLAGS="$save_LDFLAGS"
 
7095
 
 
7096
fi
 
7097
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7098
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7099
 
 
7100
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7101
    :
 
7102
else
 
7103
    lt_prog_compiler_static=
 
7104
fi
 
7105
 
 
7106
 
 
7107
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7108
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7109
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7110
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7111
else
 
7112
  lt_cv_prog_compiler_c_o=no
 
7113
   $rm -r conftest 2>/dev/null
 
7114
   mkdir conftest
 
7115
   cd conftest
 
7116
   mkdir out
 
7117
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7118
 
 
7119
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7120
   # Insert the option either (1) after the last *FLAGS variable, or
 
7121
   # (2) before a word containing "conftest.", or (3) at the end.
 
7122
   # Note that $ac_compile itself does not contain backslashes and begins
 
7123
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7124
   lt_compile=`echo "$ac_compile" | $SED \
 
7125
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7126
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7127
   -e 's:$: $lt_compiler_flag:'`
 
7128
   (eval echo "\"\$as_me:7128: $lt_compile\"" >&5)
 
7129
   (eval "$lt_compile" 2>out/conftest.err)
 
7130
   ac_status=$?
 
7131
   cat out/conftest.err >&5
 
7132
   echo "$as_me:7132: \$? = $ac_status" >&5
 
7133
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7134
   then
 
7135
     # The compiler can only warn and ignore the option if not recognized
 
7136
     # So say no if there are warnings
 
7137
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7138
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7139
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7140
       lt_cv_prog_compiler_c_o=yes
 
7141
     fi
 
7142
   fi
 
7143
   chmod u+w . 2>&5
 
7144
   $rm conftest*
 
7145
   # SGI C++ compiler will create directory out/ii_files/ for
 
7146
   # template instantiation
 
7147
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7148
   $rm out/* && rmdir out
 
7149
   cd ..
 
7150
   rmdir conftest
 
7151
   $rm conftest*
 
7152
 
 
7153
fi
 
7154
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7155
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7156
 
 
7157
 
 
7158
hard_links="nottested"
 
7159
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7160
  # do not overwrite the value of need_locks provided by the user
 
7161
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7162
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7163
  hard_links=yes
 
7164
  $rm conftest*
 
7165
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7166
  touch conftest.a
 
7167
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7168
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7169
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7170
echo "${ECHO_T}$hard_links" >&6; }
 
7171
  if test "$hard_links" = no; then
 
7172
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7173
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7174
    need_locks=warn
 
7175
  fi
 
7176
else
 
7177
  need_locks=no
 
7178
fi
 
7179
 
 
7180
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7181
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7182
 
 
7183
  runpath_var=
 
7184
  allow_undefined_flag=
 
7185
  enable_shared_with_static_runtimes=no
 
7186
  archive_cmds=
 
7187
  archive_expsym_cmds=
 
7188
  old_archive_From_new_cmds=
 
7189
  old_archive_from_expsyms_cmds=
 
7190
  export_dynamic_flag_spec=
 
7191
  whole_archive_flag_spec=
 
7192
  thread_safe_flag_spec=
 
7193
  hardcode_libdir_flag_spec=
 
7194
  hardcode_libdir_flag_spec_ld=
 
7195
  hardcode_libdir_separator=
 
7196
  hardcode_direct=no
 
7197
  hardcode_minus_L=no
 
7198
  hardcode_shlibpath_var=unsupported
 
7199
  link_all_deplibs=unknown
 
7200
  hardcode_automatic=no
 
7201
  module_cmds=
 
7202
  module_expsym_cmds=
 
7203
  always_export_symbols=no
 
7204
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7205
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7206
  # included in the symbol list
 
7207
  include_expsyms=
 
7208
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7209
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7210
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7211
  # as well as any symbol that contains `d'.
 
7212
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7213
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7214
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7215
  # the symbol is explicitly referenced.  Since portable code cannot
 
7216
  # rely on this symbol name, it's probably fine to never include it in
 
7217
  # preloaded symbol tables.
 
7218
  extract_expsyms_cmds=
 
7219
  # Just being paranoid about ensuring that cc_basename is set.
 
7220
  for cc_temp in $compiler""; do
 
7221
  case $cc_temp in
 
7222
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7223
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7224
    \-*) ;;
 
7225
    *) break;;
 
7226
  esac
 
7227
done
 
7228
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7229
 
 
7230
  case $host_os in
 
7231
  cygwin* | mingw* | pw32*)
 
7232
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7233
    # When not using gcc, we currently assume that we are using
 
7234
    # Microsoft Visual C++.
 
7235
    if test "$GCC" != yes; then
 
7236
      with_gnu_ld=no
 
7237
    fi
 
7238
    ;;
 
7239
  interix*)
 
7240
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7241
    with_gnu_ld=yes
 
7242
    ;;
 
7243
  openbsd*)
 
7244
    with_gnu_ld=no
 
7245
    ;;
 
7246
  esac
 
7247
 
 
7248
  ld_shlibs=yes
 
7249
  if test "$with_gnu_ld" = yes; then
 
7250
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7251
    wlarc='${wl}'
 
7252
 
 
7253
    # Set some defaults for GNU ld with shared library support. These
 
7254
    # are reset later if shared libraries are not supported. Putting them
 
7255
    # here allows them to be overridden if necessary.
 
7256
    runpath_var=LD_RUN_PATH
 
7257
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7258
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7259
    # ancient GNU ld didn't support --whole-archive et. al.
 
7260
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7261
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7262
      else
 
7263
        whole_archive_flag_spec=
 
7264
    fi
 
7265
    supports_anon_versioning=no
 
7266
    case `$LD -v 2>/dev/null` in
 
7267
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7268
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7269
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7270
      *\ 2.11.*) ;; # other 2.11 versions
 
7271
      *) supports_anon_versioning=yes ;;
 
7272
    esac
 
7273
 
 
7274
    # See if GNU ld supports shared libraries.
 
7275
    case $host_os in
 
7276
    aix3* | aix4* | aix5*)
 
7277
      # On AIX/PPC, the GNU linker is very broken
 
7278
      if test "$host_cpu" != ia64; then
 
7279
        ld_shlibs=no
 
7280
        cat <<EOF 1>&2
 
7281
 
 
7282
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7283
*** to be unable to reliably create shared libraries on AIX.
 
7284
*** Therefore, libtool is disabling shared libraries support.  If you
 
7285
*** really care for shared libraries, you may want to modify your PATH
 
7286
*** so that a non-GNU linker is found, and then restart.
 
7287
 
 
7288
EOF
 
7289
      fi
 
7290
      ;;
 
7291
 
 
7292
    amigaos*)
 
7293
      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)'
 
7294
      hardcode_libdir_flag_spec='-L$libdir'
 
7295
      hardcode_minus_L=yes
 
7296
 
 
7297
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7298
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7299
      # to version 4, is to share data among multiple programs linked
 
7300
      # with the same dynamic library.  Since this doesn't match the
 
7301
      # behavior of shared libraries on other platforms, we can't use
 
7302
      # them.
 
7303
      ld_shlibs=no
 
7304
      ;;
 
7305
 
 
7306
    beos*)
 
7307
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7308
        allow_undefined_flag=unsupported
 
7309
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7310
        # support --undefined.  This deserves some investigation.  FIXME
 
7311
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7312
      else
 
7313
        ld_shlibs=no
 
7314
      fi
 
7315
      ;;
 
7316
 
 
7317
    cygwin* | mingw* | pw32*)
 
7318
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7319
      # as there is no search path for DLLs.
 
7320
      hardcode_libdir_flag_spec='-L$libdir'
 
7321
      allow_undefined_flag=unsupported
 
7322
      always_export_symbols=no
 
7323
      enable_shared_with_static_runtimes=yes
 
7324
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7325
 
 
7326
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7327
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7328
        # If the export-symbols file already is a .def file (1st line
 
7329
        # is EXPORTS), use it as is; otherwise, prepend...
 
7330
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7331
          cp $export_symbols $output_objdir/$soname.def;
 
7332
        else
 
7333
          echo EXPORTS > $output_objdir/$soname.def;
 
7334
          cat $export_symbols >> $output_objdir/$soname.def;
 
7335
        fi~
 
7336
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7337
      else
 
7338
        ld_shlibs=no
 
7339
      fi
 
7340
      ;;
 
7341
 
 
7342
    interix3*)
 
7343
      hardcode_direct=no
 
7344
      hardcode_shlibpath_var=no
 
7345
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7346
      export_dynamic_flag_spec='${wl}-E'
 
7347
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7348
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7349
      # default) and relocated if they conflict, which is a slow very memory
 
7350
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7351
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7352
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7353
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7354
      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'
 
7355
      ;;
 
7356
 
 
7357
    linux*)
 
7358
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7359
        tmp_addflag=
 
7360
        case $cc_basename,$host_cpu in
 
7361
        pgcc*)                          # Portland Group C compiler
 
7362
          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'
 
7363
          tmp_addflag=' $pic_flag'
 
7364
          ;;
 
7365
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7366
          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'
 
7367
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7368
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7369
          tmp_addflag=' -i_dynamic' ;;
 
7370
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7371
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7372
        ifc* | ifort*)                  # Intel Fortran compiler
 
7373
          tmp_addflag=' -nofor_main' ;;
 
7374
        esac
 
7375
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7376
 
 
7377
        if test $supports_anon_versioning = yes; then
 
7378
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7379
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7380
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7381
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7382
        fi
 
7383
      else
 
7384
        ld_shlibs=no
 
7385
      fi
 
7386
      ;;
 
7387
 
 
7388
    netbsd*)
 
7389
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7390
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7391
        wlarc=
 
7392
      else
 
7393
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7394
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7395
      fi
 
7396
      ;;
 
7397
 
 
7398
    solaris*)
 
7399
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7400
        ld_shlibs=no
 
7401
        cat <<EOF 1>&2
 
7402
 
 
7403
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7404
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7405
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7406
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7407
*** your PATH or compiler configuration so that the native linker is
 
7408
*** used, and then restart.
 
7409
 
 
7410
EOF
 
7411
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7412
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7413
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7414
      else
 
7415
        ld_shlibs=no
 
7416
      fi
 
7417
      ;;
 
7418
 
 
7419
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7420
      case `$LD -v 2>&1` in
 
7421
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7422
        ld_shlibs=no
 
7423
        cat <<_LT_EOF 1>&2
 
7424
 
 
7425
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7426
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7427
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7428
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7429
*** your PATH or compiler configuration so that the native linker is
 
7430
*** used, and then restart.
 
7431
 
 
7432
_LT_EOF
 
7433
        ;;
 
7434
        *)
 
7435
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7436
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7437
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7438
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7439
          else
 
7440
            ld_shlibs=no
 
7441
          fi
 
7442
        ;;
 
7443
      esac
 
7444
      ;;
 
7445
 
 
7446
    sunos4*)
 
7447
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7448
      wlarc=
 
7449
      hardcode_direct=yes
 
7450
      hardcode_shlibpath_var=no
 
7451
      ;;
 
7452
 
 
7453
    *)
 
7454
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7455
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7456
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7457
      else
 
7458
        ld_shlibs=no
 
7459
      fi
 
7460
      ;;
 
7461
    esac
 
7462
 
 
7463
    if test "$ld_shlibs" = no; then
 
7464
      runpath_var=
 
7465
      hardcode_libdir_flag_spec=
 
7466
      export_dynamic_flag_spec=
 
7467
      whole_archive_flag_spec=
 
7468
    fi
 
7469
  else
 
7470
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7471
    case $host_os in
 
7472
    aix3*)
 
7473
      allow_undefined_flag=unsupported
 
7474
      always_export_symbols=yes
 
7475
      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'
 
7476
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7477
      # are no directories specified by -L.
 
7478
      hardcode_minus_L=yes
 
7479
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7480
        # Neither direct hardcoding nor static linking is supported with a
 
7481
        # broken collect2.
 
7482
        hardcode_direct=unsupported
 
7483
      fi
 
7484
      ;;
 
7485
 
 
7486
    aix4* | aix5*)
 
7487
      if test "$host_cpu" = ia64; then
 
7488
        # On IA64, the linker does run time linking by default, so we don't
 
7489
        # have to do anything special.
 
7490
        aix_use_runtimelinking=no
 
7491
        exp_sym_flag='-Bexport'
 
7492
        no_entry_flag=""
 
7493
      else
 
7494
        # If we're using GNU nm, then we don't want the "-C" option.
 
7495
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7496
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7497
          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'
 
7498
        else
 
7499
          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'
 
7500
        fi
 
7501
        aix_use_runtimelinking=no
 
7502
 
 
7503
        # Test if we are trying to use run time linking or normal
 
7504
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7505
        # need to do runtime linking.
 
7506
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7507
          for ld_flag in $LDFLAGS; do
 
7508
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7509
            aix_use_runtimelinking=yes
 
7510
            break
 
7511
          fi
 
7512
          done
 
7513
          ;;
 
7514
        esac
 
7515
 
 
7516
        exp_sym_flag='-bexport'
 
7517
        no_entry_flag='-bnoentry'
 
7518
      fi
 
7519
 
 
7520
      # When large executables or shared objects are built, AIX ld can
 
7521
      # have problems creating the table of contents.  If linking a library
 
7522
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7523
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7524
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7525
 
 
7526
      archive_cmds=''
 
7527
      hardcode_direct=yes
 
7528
      hardcode_libdir_separator=':'
 
7529
      link_all_deplibs=yes
 
7530
 
 
7531
      if test "$GCC" = yes; then
 
7532
        case $host_os in aix4.[012]|aix4.[012].*)
 
7533
        # We only want to do this on AIX 4.2 and lower, the check
 
7534
        # below for broken collect2 doesn't work under 4.3+
 
7535
          collect2name=`${CC} -print-prog-name=collect2`
 
7536
          if test -f "$collect2name" && \
 
7537
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7538
          then
 
7539
          # We have reworked collect2
 
7540
          hardcode_direct=yes
 
7541
          else
 
7542
          # We have old collect2
 
7543
          hardcode_direct=unsupported
 
7544
          # It fails to find uninstalled libraries when the uninstalled
 
7545
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7546
          # to unsupported forces relinking
 
7547
          hardcode_minus_L=yes
 
7548
          hardcode_libdir_flag_spec='-L$libdir'
 
7549
          hardcode_libdir_separator=
 
7550
          fi
 
7551
          ;;
 
7552
        esac
 
7553
        shared_flag='-shared'
 
7554
        if test "$aix_use_runtimelinking" = yes; then
 
7555
          shared_flag="$shared_flag "'${wl}-G'
 
7556
        fi
 
7557
      else
 
7558
        # not using gcc
 
7559
        if test "$host_cpu" = ia64; then
 
7560
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7561
        # chokes on -Wl,-G. The following line is correct:
 
7562
          shared_flag='-G'
 
7563
        else
 
7564
          if test "$aix_use_runtimelinking" = yes; then
 
7565
            shared_flag='${wl}-G'
 
7566
          else
 
7567
            shared_flag='${wl}-bM:SRE'
 
7568
          fi
 
7569
        fi
 
7570
      fi
 
7571
 
 
7572
      # It seems that -bexpall does not export symbols beginning with
 
7573
      # underscore (_), so it is better to generate a list of symbols to export.
 
7574
      always_export_symbols=yes
 
7575
      if test "$aix_use_runtimelinking" = yes; then
 
7576
        # Warning - without using the other runtime loading flags (-brtl),
 
7577
        # -berok will link without error, but may produce a broken library.
 
7578
        allow_undefined_flag='-berok'
 
7579
       # Determine the default libpath from the value encoded in an empty executable.
 
7580
       cat >conftest.$ac_ext <<_ACEOF
 
7581
/* confdefs.h.  */
 
7582
_ACEOF
 
7583
cat confdefs.h >>conftest.$ac_ext
 
7584
cat >>conftest.$ac_ext <<_ACEOF
 
7585
/* end confdefs.h.  */
 
7586
 
 
7587
int
 
7588
main ()
 
7589
{
 
7590
 
 
7591
  ;
 
7592
  return 0;
 
7593
}
 
7594
_ACEOF
 
7595
rm -f conftest.$ac_objext conftest$ac_exeext
 
7596
if { (ac_try="$ac_link"
 
7597
case "(($ac_try" in
 
7598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7599
  *) ac_try_echo=$ac_try;;
 
7600
esac
 
7601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7602
  (eval "$ac_link") 2>conftest.er1
 
7603
  ac_status=$?
 
7604
  grep -v '^ *+' conftest.er1 >conftest.err
 
7605
  rm -f conftest.er1
 
7606
  cat conftest.err >&5
 
7607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7608
  (exit $ac_status); } && {
 
7609
         test -z "$ac_c_werror_flag" ||
 
7610
         test ! -s conftest.err
 
7611
       } && test -s conftest$ac_exeext &&
 
7612
       $as_test_x conftest$ac_exeext; then
 
7613
 
 
7614
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7615
}'`
 
7616
# Check for a 64-bit object if we didn't find anything.
 
7617
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7618
}'`; fi
 
7619
else
 
7620
  echo "$as_me: failed program was:" >&5
 
7621
sed 's/^/| /' conftest.$ac_ext >&5
 
7622
 
 
7623
 
 
7624
fi
 
7625
 
 
7626
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7627
      conftest$ac_exeext conftest.$ac_ext
 
7628
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7629
 
 
7630
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7631
        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"
 
7632
       else
 
7633
        if test "$host_cpu" = ia64; then
 
7634
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7635
          allow_undefined_flag="-z nodefs"
 
7636
          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"
 
7637
        else
 
7638
         # Determine the default libpath from the value encoded in an empty executable.
 
7639
         cat >conftest.$ac_ext <<_ACEOF
 
7640
/* confdefs.h.  */
 
7641
_ACEOF
 
7642
cat confdefs.h >>conftest.$ac_ext
 
7643
cat >>conftest.$ac_ext <<_ACEOF
 
7644
/* end confdefs.h.  */
 
7645
 
 
7646
int
 
7647
main ()
 
7648
{
 
7649
 
 
7650
  ;
 
7651
  return 0;
 
7652
}
 
7653
_ACEOF
 
7654
rm -f conftest.$ac_objext conftest$ac_exeext
 
7655
if { (ac_try="$ac_link"
 
7656
case "(($ac_try" in
 
7657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7658
  *) ac_try_echo=$ac_try;;
 
7659
esac
 
7660
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7661
  (eval "$ac_link") 2>conftest.er1
 
7662
  ac_status=$?
 
7663
  grep -v '^ *+' conftest.er1 >conftest.err
 
7664
  rm -f conftest.er1
 
7665
  cat conftest.err >&5
 
7666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7667
  (exit $ac_status); } && {
 
7668
         test -z "$ac_c_werror_flag" ||
 
7669
         test ! -s conftest.err
 
7670
       } && test -s conftest$ac_exeext &&
 
7671
       $as_test_x conftest$ac_exeext; then
 
7672
 
 
7673
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7674
}'`
 
7675
# Check for a 64-bit object if we didn't find anything.
 
7676
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7677
}'`; fi
 
7678
else
 
7679
  echo "$as_me: failed program was:" >&5
 
7680
sed 's/^/| /' conftest.$ac_ext >&5
 
7681
 
 
7682
 
 
7683
fi
 
7684
 
 
7685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7686
      conftest$ac_exeext conftest.$ac_ext
 
7687
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7688
 
 
7689
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7690
          # Warning - without using the other run time loading flags,
 
7691
          # -berok will link without error, but may produce a broken library.
 
7692
          no_undefined_flag=' ${wl}-bernotok'
 
7693
          allow_undefined_flag=' ${wl}-berok'
 
7694
          # Exported symbols can be pulled into shared objects from archives
 
7695
          whole_archive_flag_spec='$convenience'
 
7696
          archive_cmds_need_lc=yes
 
7697
          # This is similar to how AIX traditionally builds its shared libraries.
 
7698
          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'
 
7699
        fi
 
7700
      fi
 
7701
      ;;
 
7702
 
 
7703
    amigaos*)
 
7704
      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)'
 
7705
      hardcode_libdir_flag_spec='-L$libdir'
 
7706
      hardcode_minus_L=yes
 
7707
      # see comment about different semantics on the GNU ld section
 
7708
      ld_shlibs=no
 
7709
      ;;
 
7710
 
 
7711
    bsdi[45]*)
 
7712
      export_dynamic_flag_spec=-rdynamic
 
7713
      ;;
 
7714
 
 
7715
    cygwin* | mingw* | pw32*)
 
7716
      # When not using gcc, we currently assume that we are using
 
7717
      # Microsoft Visual C++.
 
7718
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7719
      # no search path for DLLs.
 
7720
      hardcode_libdir_flag_spec=' '
 
7721
      allow_undefined_flag=unsupported
 
7722
      # Tell ltmain to make .lib files, not .a files.
 
7723
      libext=lib
 
7724
      # Tell ltmain to make .dll files, not .so files.
 
7725
      shrext_cmds=".dll"
 
7726
      # FIXME: Setting linknames here is a bad hack.
 
7727
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7728
      # The linker will automatically build a .lib file if we build a DLL.
 
7729
      old_archive_From_new_cmds='true'
 
7730
      # FIXME: Should let the user specify the lib program.
 
7731
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7732
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7733
      enable_shared_with_static_runtimes=yes
 
7734
      ;;
 
7735
 
 
7736
    darwin* | rhapsody*)
 
7737
      case $host_os in
 
7738
        rhapsody* | darwin1.[012])
 
7739
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7740
         ;;
 
7741
       *) # Darwin 1.3 on
 
7742
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7743
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7744
         else
 
7745
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7746
             10.[012])
 
7747
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7748
               ;;
 
7749
             10.*)
 
7750
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7751
               ;;
 
7752
           esac
 
7753
         fi
 
7754
         ;;
 
7755
      esac
 
7756
      archive_cmds_need_lc=no
 
7757
      hardcode_direct=no
 
7758
      hardcode_automatic=yes
 
7759
      hardcode_shlibpath_var=unsupported
 
7760
      whole_archive_flag_spec=''
 
7761
      link_all_deplibs=yes
 
7762
    if test "$GCC" = yes ; then
 
7763
        output_verbose_link_cmd='echo'
 
7764
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7765
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7766
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7767
      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}'
 
7768
      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}'
 
7769
    else
 
7770
      case $cc_basename in
 
7771
        xlc*)
 
7772
         output_verbose_link_cmd='echo'
 
7773
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7774
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7775
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7776
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7777
          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}'
 
7778
          ;;
 
7779
       *)
 
7780
         ld_shlibs=no
 
7781
          ;;
 
7782
      esac
 
7783
    fi
 
7784
      ;;
 
7785
 
 
7786
    dgux*)
 
7787
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7788
      hardcode_libdir_flag_spec='-L$libdir'
 
7789
      hardcode_shlibpath_var=no
 
7790
      ;;
 
7791
 
 
7792
    freebsd1*)
 
7793
      ld_shlibs=no
 
7794
      ;;
 
7795
 
 
7796
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7797
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7798
    # does not break anything, and helps significantly (at the cost of a little
 
7799
    # extra space).
 
7800
    freebsd2.2*)
 
7801
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7802
      hardcode_libdir_flag_spec='-R$libdir'
 
7803
      hardcode_direct=yes
 
7804
      hardcode_shlibpath_var=no
 
7805
      ;;
 
7806
 
 
7807
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7808
    freebsd2*)
 
7809
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7810
      hardcode_direct=yes
 
7811
      hardcode_minus_L=yes
 
7812
      hardcode_shlibpath_var=no
 
7813
      ;;
 
7814
 
 
7815
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7816
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7817
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7818
      hardcode_libdir_flag_spec='-R$libdir'
 
7819
      hardcode_direct=yes
 
7820
      hardcode_shlibpath_var=no
 
7821
      ;;
 
7822
 
 
7823
    hpux9*)
 
7824
      if test "$GCC" = yes; then
 
7825
        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'
 
7826
      else
 
7827
        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'
 
7828
      fi
 
7829
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7830
      hardcode_libdir_separator=:
 
7831
      hardcode_direct=yes
 
7832
 
 
7833
      # hardcode_minus_L: Not really in the search PATH,
 
7834
      # but as the default location of the library.
 
7835
      hardcode_minus_L=yes
 
7836
      export_dynamic_flag_spec='${wl}-E'
 
7837
      ;;
 
7838
 
 
7839
    hpux10*)
 
7840
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7841
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7842
      else
 
7843
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7844
      fi
 
7845
      if test "$with_gnu_ld" = no; then
 
7846
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7847
        hardcode_libdir_separator=:
 
7848
 
 
7849
        hardcode_direct=yes
 
7850
        export_dynamic_flag_spec='${wl}-E'
 
7851
 
 
7852
        # hardcode_minus_L: Not really in the search PATH,
 
7853
        # but as the default location of the library.
 
7854
        hardcode_minus_L=yes
 
7855
      fi
 
7856
      ;;
 
7857
 
 
7858
    hpux11*)
 
7859
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7860
        case $host_cpu in
 
7861
        hppa*64*)
 
7862
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7863
          ;;
 
7864
        ia64*)
 
7865
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7866
          ;;
 
7867
        *)
 
7868
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7869
          ;;
 
7870
        esac
 
7871
      else
 
7872
        case $host_cpu in
 
7873
        hppa*64*)
 
7874
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7875
          ;;
 
7876
        ia64*)
 
7877
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
7878
          ;;
 
7879
        *)
 
7880
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7881
          ;;
 
7882
        esac
 
7883
      fi
 
7884
      if test "$with_gnu_ld" = no; then
 
7885
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7886
        hardcode_libdir_separator=:
 
7887
 
 
7888
        case $host_cpu in
 
7889
        hppa*64*|ia64*)
 
7890
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7891
          hardcode_direct=no
 
7892
          hardcode_shlibpath_var=no
 
7893
          ;;
 
7894
        *)
 
7895
          hardcode_direct=yes
 
7896
          export_dynamic_flag_spec='${wl}-E'
 
7897
 
 
7898
          # hardcode_minus_L: Not really in the search PATH,
 
7899
          # but as the default location of the library.
 
7900
          hardcode_minus_L=yes
 
7901
          ;;
 
7902
        esac
 
7903
      fi
 
7904
      ;;
 
7905
 
 
7906
    irix5* | irix6* | nonstopux*)
 
7907
      if test "$GCC" = yes; then
 
7908
        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'
 
7909
      else
 
7910
        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'
 
7911
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7912
      fi
 
7913
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7914
      hardcode_libdir_separator=:
 
7915
      link_all_deplibs=yes
 
7916
      ;;
 
7917
 
 
7918
    netbsd*)
 
7919
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7920
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7921
      else
 
7922
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7923
      fi
 
7924
      hardcode_libdir_flag_spec='-R$libdir'
 
7925
      hardcode_direct=yes
 
7926
      hardcode_shlibpath_var=no
 
7927
      ;;
 
7928
 
 
7929
    newsos6)
 
7930
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7931
      hardcode_direct=yes
 
7932
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7933
      hardcode_libdir_separator=:
 
7934
      hardcode_shlibpath_var=no
 
7935
      ;;
 
7936
 
 
7937
    openbsd*)
 
7938
      hardcode_direct=yes
 
7939
      hardcode_shlibpath_var=no
 
7940
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7941
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7942
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7943
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7944
        export_dynamic_flag_spec='${wl}-E'
 
7945
      else
 
7946
       case $host_os in
 
7947
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7948
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7949
           hardcode_libdir_flag_spec='-R$libdir'
 
7950
           ;;
 
7951
         *)
 
7952
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7953
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7954
           ;;
 
7955
       esac
 
7956
      fi
 
7957
      ;;
 
7958
 
 
7959
    os2*)
 
7960
      hardcode_libdir_flag_spec='-L$libdir'
 
7961
      hardcode_minus_L=yes
 
7962
      allow_undefined_flag=unsupported
 
7963
      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'
 
7964
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7965
      ;;
 
7966
 
 
7967
    osf3*)
 
7968
      if test "$GCC" = yes; then
 
7969
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7970
        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'
 
7971
      else
 
7972
        allow_undefined_flag=' -expect_unresolved \*'
 
7973
        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'
 
7974
      fi
 
7975
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7976
      hardcode_libdir_separator=:
 
7977
      ;;
 
7978
 
 
7979
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7980
      if test "$GCC" = yes; then
 
7981
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7982
        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'
 
7983
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7984
      else
 
7985
        allow_undefined_flag=' -expect_unresolved \*'
 
7986
        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'
 
7987
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7988
        $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'
 
7989
 
 
7990
        # Both c and cxx compiler support -rpath directly
 
7991
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7992
      fi
 
7993
      hardcode_libdir_separator=:
 
7994
      ;;
 
7995
 
 
7996
    solaris*)
 
7997
      no_undefined_flag=' -z text'
 
7998
      if test "$GCC" = yes; then
 
7999
        wlarc='${wl}'
 
8000
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8001
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8002
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8003
      else
 
8004
        wlarc=''
 
8005
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8006
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8007
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8008
      fi
 
8009
      hardcode_libdir_flag_spec='-R$libdir'
 
8010
      hardcode_shlibpath_var=no
 
8011
      case $host_os in
 
8012
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8013
      *)
 
8014
        # The compiler driver will combine linker options so we
 
8015
        # cannot just pass the convience library names through
 
8016
        # without $wl, iff we do not link with $LD.
 
8017
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8018
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8019
        case $wlarc in
 
8020
        '')
 
8021
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8022
        *)
 
8023
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8024
        esac ;;
 
8025
      esac
 
8026
      link_all_deplibs=yes
 
8027
      ;;
 
8028
 
 
8029
    sunos4*)
 
8030
      if test "x$host_vendor" = xsequent; then
 
8031
        # Use $CC to link under sequent, because it throws in some extra .o
 
8032
        # files that make .init and .fini sections work.
 
8033
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8034
      else
 
8035
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8036
      fi
 
8037
      hardcode_libdir_flag_spec='-L$libdir'
 
8038
      hardcode_direct=yes
 
8039
      hardcode_minus_L=yes
 
8040
      hardcode_shlibpath_var=no
 
8041
      ;;
 
8042
 
 
8043
    sysv4)
 
8044
      case $host_vendor in
 
8045
        sni)
 
8046
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8047
          hardcode_direct=yes # is this really true???
 
8048
        ;;
 
8049
        siemens)
 
8050
          ## LD is ld it makes a PLAMLIB
 
8051
          ## CC just makes a GrossModule.
 
8052
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8053
          reload_cmds='$CC -r -o $output$reload_objs'
 
8054
          hardcode_direct=no
 
8055
        ;;
 
8056
        motorola)
 
8057
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8058
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8059
        ;;
 
8060
      esac
 
8061
      runpath_var='LD_RUN_PATH'
 
8062
      hardcode_shlibpath_var=no
 
8063
      ;;
 
8064
 
 
8065
    sysv4.3*)
 
8066
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8067
      hardcode_shlibpath_var=no
 
8068
      export_dynamic_flag_spec='-Bexport'
 
8069
      ;;
 
8070
 
 
8071
    sysv4*MP*)
 
8072
      if test -d /usr/nec; then
 
8073
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8074
        hardcode_shlibpath_var=no
 
8075
        runpath_var=LD_RUN_PATH
 
8076
        hardcode_runpath_var=yes
 
8077
        ld_shlibs=yes
 
8078
      fi
 
8079
      ;;
 
8080
 
 
8081
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8082
      no_undefined_flag='${wl}-z,text'
 
8083
      archive_cmds_need_lc=no
 
8084
      hardcode_shlibpath_var=no
 
8085
      runpath_var='LD_RUN_PATH'
 
8086
 
 
8087
      if test "$GCC" = yes; then
 
8088
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8089
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8090
      else
 
8091
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8092
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8093
      fi
 
8094
      ;;
 
8095
 
 
8096
    sysv5* | sco3.2v5* | sco5v6*)
 
8097
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8098
      # link with -lc, and that would cause any symbols used from libc to
 
8099
      # always be unresolved, which means just about no library would
 
8100
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8101
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8102
      # as -z defs.
 
8103
      no_undefined_flag='${wl}-z,text'
 
8104
      allow_undefined_flag='${wl}-z,nodefs'
 
8105
      archive_cmds_need_lc=no
 
8106
      hardcode_shlibpath_var=no
 
8107
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8108
      hardcode_libdir_separator=':'
 
8109
      link_all_deplibs=yes
 
8110
      export_dynamic_flag_spec='${wl}-Bexport'
 
8111
      runpath_var='LD_RUN_PATH'
 
8112
 
 
8113
      if test "$GCC" = yes; then
 
8114
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8115
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8116
      else
 
8117
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8118
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8119
      fi
 
8120
      ;;
 
8121
 
 
8122
    uts4*)
 
8123
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8124
      hardcode_libdir_flag_spec='-L$libdir'
 
8125
      hardcode_shlibpath_var=no
 
8126
      ;;
 
8127
 
 
8128
    *)
 
8129
      ld_shlibs=no
 
8130
      ;;
 
8131
    esac
 
8132
  fi
 
8133
 
 
8134
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8135
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8136
test "$ld_shlibs" = no && can_build_shared=no
 
8137
 
 
8138
#
 
8139
# Do we need to explicitly link libc?
 
8140
#
 
8141
case "x$archive_cmds_need_lc" in
 
8142
x|xyes)
 
8143
  # Assume -lc should be added
 
8144
  archive_cmds_need_lc=yes
 
8145
 
 
8146
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8147
    case $archive_cmds in
 
8148
    *'~'*)
 
8149
      # FIXME: we may have to deal with multi-command sequences.
 
8150
      ;;
 
8151
    '$CC '*)
 
8152
      # Test whether the compiler implicitly links with -lc since on some
 
8153
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8154
      # to ld, don't add -lc before -lgcc.
 
8155
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8156
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8157
      $rm conftest*
 
8158
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8159
 
 
8160
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8161
  (eval $ac_compile) 2>&5
 
8162
  ac_status=$?
 
8163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8164
  (exit $ac_status); } 2>conftest.err; then
 
8165
        soname=conftest
 
8166
        lib=conftest
 
8167
        libobjs=conftest.$ac_objext
 
8168
        deplibs=
 
8169
        wl=$lt_prog_compiler_wl
 
8170
        pic_flag=$lt_prog_compiler_pic
 
8171
        compiler_flags=-v
 
8172
        linker_flags=-v
 
8173
        verstring=
 
8174
        output_objdir=.
 
8175
        libname=conftest
 
8176
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8177
        allow_undefined_flag=
 
8178
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8179
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8180
  ac_status=$?
 
8181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8182
  (exit $ac_status); }
 
8183
        then
 
8184
          archive_cmds_need_lc=no
 
8185
        else
 
8186
          archive_cmds_need_lc=yes
 
8187
        fi
 
8188
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8189
      else
 
8190
        cat conftest.err 1>&5
 
8191
      fi
 
8192
      $rm conftest*
 
8193
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8194
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8195
      ;;
 
8196
    esac
 
8197
  fi
 
8198
  ;;
 
8199
esac
 
8200
 
 
8201
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8202
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8203
library_names_spec=
 
8204
libname_spec='lib$name'
 
8205
soname_spec=
 
8206
shrext_cmds=".so"
 
8207
postinstall_cmds=
 
8208
postuninstall_cmds=
 
8209
finish_cmds=
 
8210
finish_eval=
 
8211
shlibpath_var=
 
8212
shlibpath_overrides_runpath=unknown
 
8213
version_type=none
 
8214
dynamic_linker="$host_os ld.so"
 
8215
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8216
if test "$GCC" = yes; then
 
8217
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8218
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8219
    # if the path contains ";" then we assume it to be the separator
 
8220
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8221
    # assumed that no part of a normal pathname contains ";" but that should
 
8222
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8223
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8224
  else
 
8225
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8226
  fi
 
8227
else
 
8228
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8229
fi
 
8230
need_lib_prefix=unknown
 
8231
hardcode_into_libs=no
 
8232
 
 
8233
# when you set need_version to no, make sure it does not cause -set_version
 
8234
# flags to be left without arguments
 
8235
need_version=unknown
 
8236
 
 
8237
case $host_os in
 
8238
aix3*)
 
8239
  version_type=linux
 
8240
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8241
  shlibpath_var=LIBPATH
 
8242
 
 
8243
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8244
  soname_spec='${libname}${release}${shared_ext}$major'
 
8245
  ;;
 
8246
 
 
8247
aix4* | aix5*)
 
8248
  version_type=linux
 
8249
  need_lib_prefix=no
 
8250
  need_version=no
 
8251
  hardcode_into_libs=yes
 
8252
  if test "$host_cpu" = ia64; then
 
8253
    # AIX 5 supports IA64
 
8254
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8255
    shlibpath_var=LD_LIBRARY_PATH
 
8256
  else
 
8257
    # With GCC up to 2.95.x, collect2 would create an import file
 
8258
    # for dependence libraries.  The import file would start with
 
8259
    # the line `#! .'.  This would cause the generated library to
 
8260
    # depend on `.', always an invalid library.  This was fixed in
 
8261
    # development snapshots of GCC prior to 3.0.
 
8262
    case $host_os in
 
8263
      aix4 | aix4.[01] | aix4.[01].*)
 
8264
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8265
           echo ' yes '
 
8266
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8267
        :
 
8268
      else
 
8269
        can_build_shared=no
 
8270
      fi
 
8271
      ;;
 
8272
    esac
 
8273
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8274
    # soname into executable. Probably we can add versioning support to
 
8275
    # collect2, so additional links can be useful in future.
 
8276
    if test "$aix_use_runtimelinking" = yes; then
 
8277
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8278
      # instead of lib<name>.a to let people know that these are not
 
8279
      # typical AIX shared libraries.
 
8280
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8281
    else
 
8282
      # We preserve .a as extension for shared libraries through AIX4.2
 
8283
      # and later when we are not doing run time linking.
 
8284
      library_names_spec='${libname}${release}.a $libname.a'
 
8285
      soname_spec='${libname}${release}${shared_ext}$major'
 
8286
    fi
 
8287
    shlibpath_var=LIBPATH
 
8288
  fi
 
8289
  ;;
 
8290
 
 
8291
amigaos*)
 
8292
  library_names_spec='$libname.ixlibrary $libname.a'
 
8293
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8294
  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'
 
8295
  ;;
 
8296
 
 
8297
beos*)
 
8298
  library_names_spec='${libname}${shared_ext}'
 
8299
  dynamic_linker="$host_os ld.so"
 
8300
  shlibpath_var=LIBRARY_PATH
 
8301
  ;;
 
8302
 
 
8303
bsdi[45]*)
 
8304
  version_type=linux
 
8305
  need_version=no
 
8306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8307
  soname_spec='${libname}${release}${shared_ext}$major'
 
8308
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8309
  shlibpath_var=LD_LIBRARY_PATH
 
8310
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8311
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8312
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8313
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8314
  # libtool to hard-code these into programs
 
8315
  ;;
 
8316
 
 
8317
cygwin* | mingw* | pw32*)
 
8318
  version_type=windows
 
8319
  shrext_cmds=".dll"
 
8320
  need_version=no
 
8321
  need_lib_prefix=no
 
8322
 
 
8323
  case $GCC,$host_os in
 
8324
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8325
    library_names_spec='$libname.dll.a'
 
8326
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8327
    postinstall_cmds='base_file=`basename \${file}`~
 
8328
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8329
      dldir=$destdir/`dirname \$dlpath`~
 
8330
      test -d \$dldir || mkdir -p \$dldir~
 
8331
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8332
      chmod a+x \$dldir/$dlname'
 
8333
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8334
      dlpath=$dir/\$dldll~
 
8335
       $rm \$dlpath'
 
8336
    shlibpath_overrides_runpath=yes
 
8337
 
 
8338
    case $host_os in
 
8339
    cygwin*)
 
8340
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8341
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8342
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8343
      ;;
 
8344
    mingw*)
 
8345
      # MinGW DLLs use traditional 'lib' prefix
 
8346
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8347
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8348
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8349
        # It is most probably a Windows format PATH printed by
 
8350
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8351
        # path with ; separators, and with drive letters. We can handle the
 
8352
        # drive letters (cygwin fileutils understands them), so leave them,
 
8353
        # especially as we might pass files found there to a mingw objdump,
 
8354
        # which wouldn't understand a cygwinified path. Ahh.
 
8355
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8356
      else
 
8357
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8358
      fi
 
8359
      ;;
 
8360
    pw32*)
 
8361
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8362
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8363
      ;;
 
8364
    esac
 
8365
    ;;
 
8366
 
 
8367
  linux*)
 
8368
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
8369
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8370
      supports_anon_versioning=no
 
8371
      case `$LD -v 2>/dev/null` in
 
8372
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8373
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8374
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8375
        *\ 2.11.*) ;; # other 2.11 versions
 
8376
        *) supports_anon_versioning=yes ;;
 
8377
      esac
 
8378
      if test $supports_anon_versioning = yes; then
 
8379
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8380
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8381
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8382
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8383
      else
 
8384
        $archive_expsym_cmds="$archive_cmds"
 
8385
      fi
 
8386
    else
 
8387
      ld_shlibs=no
 
8388
    fi
 
8389
    ;;
 
8390
 
 
8391
  *)
 
8392
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8393
    ;;
 
8394
  esac
 
8395
  dynamic_linker='Win32 ld.exe'
 
8396
  # FIXME: first we should search . and the directory the executable is in
 
8397
  shlibpath_var=PATH
 
8398
  ;;
 
8399
 
 
8400
darwin* | rhapsody*)
 
8401
  dynamic_linker="$host_os dyld"
 
8402
  version_type=darwin
 
8403
  need_lib_prefix=no
 
8404
  need_version=no
 
8405
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8406
  soname_spec='${libname}${release}${major}$shared_ext'
 
8407
  shlibpath_overrides_runpath=yes
 
8408
  shlibpath_var=DYLD_LIBRARY_PATH
 
8409
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8410
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8411
  if test "$GCC" = yes; then
 
8412
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8413
  else
 
8414
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8415
  fi
 
8416
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8417
  ;;
 
8418
 
 
8419
dgux*)
 
8420
  version_type=linux
 
8421
  need_lib_prefix=no
 
8422
  need_version=no
 
8423
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8424
  soname_spec='${libname}${release}${shared_ext}$major'
 
8425
  shlibpath_var=LD_LIBRARY_PATH
 
8426
  ;;
 
8427
 
 
8428
freebsd1*)
 
8429
  dynamic_linker=no
 
8430
  ;;
 
8431
 
 
8432
kfreebsd*-gnu)
 
8433
  version_type=linux
 
8434
  need_lib_prefix=no
 
8435
  need_version=no
 
8436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8437
  soname_spec='${libname}${release}${shared_ext}$major'
 
8438
  shlibpath_var=LD_LIBRARY_PATH
 
8439
  shlibpath_overrides_runpath=no
 
8440
  hardcode_into_libs=yes
 
8441
  dynamic_linker='GNU ld.so'
 
8442
  ;;
 
8443
 
 
8444
freebsd* | dragonfly*)
 
8445
  # DragonFly does not have aout.  When/if they implement a new
 
8446
  # versioning mechanism, adjust this.
 
8447
  if test -x /usr/bin/objformat; then
 
8448
    objformat=`/usr/bin/objformat`
 
8449
  else
 
8450
    case $host_os in
 
8451
    freebsd[123]*) objformat=aout ;;
 
8452
    *) objformat=elf ;;
 
8453
    esac
 
8454
  fi
 
8455
  # Handle Gentoo/FreeBSD as it was Linux
 
8456
  case $host_vendor in
 
8457
    gentoo)
 
8458
      version_type=linux ;;
 
8459
    *)
 
8460
      version_type=freebsd-$objformat ;;
 
8461
  esac
 
8462
 
 
8463
  case $version_type in
 
8464
    freebsd-elf*)
 
8465
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8466
      need_version=no
 
8467
      need_lib_prefix=no
 
8468
      ;;
 
8469
    freebsd-*)
 
8470
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8471
      need_version=yes
 
8472
      ;;
 
8473
    linux)
 
8474
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8475
      soname_spec='${libname}${release}${shared_ext}$major'
 
8476
      need_lib_prefix=no
 
8477
      need_version=no
 
8478
      ;;
 
8479
  esac
 
8480
  shlibpath_var=LD_LIBRARY_PATH
 
8481
  case $host_os in
 
8482
  freebsd2*)
 
8483
    shlibpath_overrides_runpath=yes
 
8484
    ;;
 
8485
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8486
    shlibpath_overrides_runpath=yes
 
8487
    hardcode_into_libs=yes
 
8488
    ;;
 
8489
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8490
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8491
    shlibpath_overrides_runpath=no
 
8492
    hardcode_into_libs=yes
 
8493
    ;;
 
8494
  freebsd*) # from 4.6 on
 
8495
    shlibpath_overrides_runpath=yes
 
8496
    hardcode_into_libs=yes
 
8497
    ;;
 
8498
  esac
 
8499
  ;;
 
8500
 
 
8501
gnu*)
 
8502
  version_type=linux
 
8503
  need_lib_prefix=no
 
8504
  need_version=no
 
8505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8506
  soname_spec='${libname}${release}${shared_ext}$major'
 
8507
  shlibpath_var=LD_LIBRARY_PATH
 
8508
  hardcode_into_libs=yes
 
8509
  ;;
 
8510
 
 
8511
hpux9* | hpux10* | hpux11*)
 
8512
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8513
  # link against other versions.
 
8514
  version_type=sunos
 
8515
  need_lib_prefix=no
 
8516
  need_version=no
 
8517
  case $host_cpu in
 
8518
  ia64*)
 
8519
    shrext_cmds='.so'
 
8520
    hardcode_into_libs=yes
 
8521
    dynamic_linker="$host_os dld.so"
 
8522
    shlibpath_var=LD_LIBRARY_PATH
 
8523
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8524
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8525
    soname_spec='${libname}${release}${shared_ext}$major'
 
8526
    if test "X$HPUX_IA64_MODE" = X32; then
 
8527
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8528
    else
 
8529
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8530
    fi
 
8531
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8532
    ;;
 
8533
   hppa*64*)
 
8534
     shrext_cmds='.sl'
 
8535
     hardcode_into_libs=yes
 
8536
     dynamic_linker="$host_os dld.sl"
 
8537
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8538
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8539
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8540
     soname_spec='${libname}${release}${shared_ext}$major'
 
8541
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8542
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8543
     ;;
 
8544
   *)
 
8545
    shrext_cmds='.sl'
 
8546
    dynamic_linker="$host_os dld.sl"
 
8547
    shlibpath_var=SHLIB_PATH
 
8548
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8549
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8550
    soname_spec='${libname}${release}${shared_ext}$major'
 
8551
    ;;
 
8552
  esac
 
8553
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8554
  postinstall_cmds='chmod 555 $lib'
 
8555
  ;;
 
8556
 
 
8557
interix3*)
 
8558
  version_type=linux
 
8559
  need_lib_prefix=no
 
8560
  need_version=no
 
8561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8562
  soname_spec='${libname}${release}${shared_ext}$major'
 
8563
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8564
  shlibpath_var=LD_LIBRARY_PATH
 
8565
  shlibpath_overrides_runpath=no
 
8566
  hardcode_into_libs=yes
 
8567
  ;;
 
8568
 
 
8569
irix5* | irix6* | nonstopux*)
 
8570
  case $host_os in
 
8571
    nonstopux*) version_type=nonstopux ;;
 
8572
    *)
 
8573
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8574
                version_type=linux
 
8575
        else
 
8576
                version_type=irix
 
8577
        fi ;;
 
8578
  esac
 
8579
  need_lib_prefix=no
 
8580
  need_version=no
 
8581
  soname_spec='${libname}${release}${shared_ext}$major'
 
8582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8583
  case $host_os in
 
8584
  irix5* | nonstopux*)
 
8585
    libsuff= shlibsuff=
 
8586
    ;;
 
8587
  *)
 
8588
    case $LD in # libtool.m4 will add one of these switches to LD
 
8589
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8590
      libsuff= shlibsuff= libmagic=32-bit;;
 
8591
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8592
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8593
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8594
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8595
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8596
    esac
 
8597
    ;;
 
8598
  esac
 
8599
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8600
  shlibpath_overrides_runpath=no
 
8601
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8602
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8603
  hardcode_into_libs=yes
 
8604
  ;;
 
8605
 
 
8606
# No shared lib support for Linux oldld, aout, or coff.
 
8607
linux*oldld* | linux*aout* | linux*coff*)
 
8608
  dynamic_linker=no
 
8609
  ;;
 
8610
 
 
8611
# This must be Linux ELF.
 
8612
linux*)
 
8613
  version_type=linux
 
8614
  need_lib_prefix=no
 
8615
  need_version=no
 
8616
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8617
  soname_spec='${libname}${release}${shared_ext}$major'
 
8618
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8619
  shlibpath_var=LD_LIBRARY_PATH
 
8620
  shlibpath_overrides_runpath=no
 
8621
  # This implies no fast_install, which is unacceptable.
 
8622
  # Some rework will be needed to allow for fast_install
 
8623
  # before this can be enabled.
 
8624
  hardcode_into_libs=yes
 
8625
 
 
8626
  # Append ld.so.conf contents to the search path
 
8627
  if test -f /etc/ld.so.conf; then
 
8628
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8629
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8630
  fi
 
8631
 
 
8632
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8633
  # powerpc, because MkLinux only supported shared libraries with the
 
8634
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8635
  # most powerpc-linux boxes support dynamic linking these days and
 
8636
  # people can always --disable-shared, the test was removed, and we
 
8637
  # assume the GNU/Linux dynamic linker is in use.
 
8638
  dynamic_linker='GNU/Linux ld.so'
 
8639
  ;;
 
8640
 
 
8641
knetbsd*-gnu)
 
8642
  version_type=linux
 
8643
  need_lib_prefix=no
 
8644
  need_version=no
 
8645
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8646
  soname_spec='${libname}${release}${shared_ext}$major'
 
8647
  shlibpath_var=LD_LIBRARY_PATH
 
8648
  shlibpath_overrides_runpath=no
 
8649
  hardcode_into_libs=yes
 
8650
  dynamic_linker='GNU ld.so'
 
8651
  ;;
 
8652
 
 
8653
netbsd*)
 
8654
  version_type=sunos
 
8655
  need_lib_prefix=no
 
8656
  need_version=no
 
8657
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8658
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8659
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8660
    dynamic_linker='NetBSD (a.out) ld.so'
 
8661
  else
 
8662
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8663
    soname_spec='${libname}${release}${shared_ext}$major'
 
8664
    dynamic_linker='NetBSD ld.elf_so'
 
8665
  fi
 
8666
  shlibpath_var=LD_LIBRARY_PATH
 
8667
  shlibpath_overrides_runpath=yes
 
8668
  hardcode_into_libs=yes
 
8669
  ;;
 
8670
 
 
8671
newsos6)
 
8672
  version_type=linux
 
8673
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8674
  shlibpath_var=LD_LIBRARY_PATH
 
8675
  shlibpath_overrides_runpath=yes
 
8676
  ;;
 
8677
 
 
8678
nto-qnx*)
 
8679
  version_type=linux
 
8680
  need_lib_prefix=no
 
8681
  need_version=no
 
8682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8683
  soname_spec='${libname}${release}${shared_ext}$major'
 
8684
  shlibpath_var=LD_LIBRARY_PATH
 
8685
  shlibpath_overrides_runpath=yes
 
8686
  ;;
 
8687
 
 
8688
openbsd*)
 
8689
  version_type=sunos
 
8690
  sys_lib_dlsearch_path_spec="/usr/lib"
 
8691
  need_lib_prefix=no
 
8692
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8693
  case $host_os in
 
8694
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8695
    *)                         need_version=no  ;;
 
8696
  esac
 
8697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8698
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8699
  shlibpath_var=LD_LIBRARY_PATH
 
8700
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8701
    case $host_os in
 
8702
      openbsd2.[89] | openbsd2.[89].*)
 
8703
        shlibpath_overrides_runpath=no
 
8704
        ;;
 
8705
      *)
 
8706
        shlibpath_overrides_runpath=yes
 
8707
        ;;
 
8708
      esac
 
8709
  else
 
8710
    shlibpath_overrides_runpath=yes
 
8711
  fi
 
8712
  ;;
 
8713
 
 
8714
os2*)
 
8715
  libname_spec='$name'
 
8716
  shrext_cmds=".dll"
 
8717
  need_lib_prefix=no
 
8718
  library_names_spec='$libname${shared_ext} $libname.a'
 
8719
  dynamic_linker='OS/2 ld.exe'
 
8720
  shlibpath_var=LIBPATH
 
8721
  ;;
 
8722
 
 
8723
osf3* | osf4* | osf5*)
 
8724
  version_type=osf
 
8725
  need_lib_prefix=no
 
8726
  need_version=no
 
8727
  soname_spec='${libname}${release}${shared_ext}$major'
 
8728
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8729
  shlibpath_var=LD_LIBRARY_PATH
 
8730
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8731
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8732
  ;;
 
8733
 
 
8734
solaris*)
 
8735
  version_type=linux
 
8736
  need_lib_prefix=no
 
8737
  need_version=no
 
8738
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8739
  soname_spec='${libname}${release}${shared_ext}$major'
 
8740
  shlibpath_var=LD_LIBRARY_PATH
 
8741
  shlibpath_overrides_runpath=yes
 
8742
  hardcode_into_libs=yes
 
8743
  # ldd complains unless libraries are executable
 
8744
  postinstall_cmds='chmod +x $lib'
 
8745
  ;;
 
8746
 
 
8747
sunos4*)
 
8748
  version_type=sunos
 
8749
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8750
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8751
  shlibpath_var=LD_LIBRARY_PATH
 
8752
  shlibpath_overrides_runpath=yes
 
8753
  if test "$with_gnu_ld" = yes; then
 
8754
    need_lib_prefix=no
 
8755
  fi
 
8756
  need_version=yes
 
8757
  ;;
 
8758
 
 
8759
sysv4 | sysv4.3*)
 
8760
  version_type=linux
 
8761
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8762
  soname_spec='${libname}${release}${shared_ext}$major'
 
8763
  shlibpath_var=LD_LIBRARY_PATH
 
8764
  case $host_vendor in
 
8765
    sni)
 
8766
      shlibpath_overrides_runpath=no
 
8767
      need_lib_prefix=no
 
8768
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8769
      runpath_var=LD_RUN_PATH
 
8770
      ;;
 
8771
    siemens)
 
8772
      need_lib_prefix=no
 
8773
      ;;
 
8774
    motorola)
 
8775
      need_lib_prefix=no
 
8776
      need_version=no
 
8777
      shlibpath_overrides_runpath=no
 
8778
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8779
      ;;
 
8780
  esac
 
8781
  ;;
 
8782
 
 
8783
sysv4*MP*)
 
8784
  if test -d /usr/nec ;then
 
8785
    version_type=linux
 
8786
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8787
    soname_spec='$libname${shared_ext}.$major'
 
8788
    shlibpath_var=LD_LIBRARY_PATH
 
8789
  fi
 
8790
  ;;
 
8791
 
 
8792
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
8793
  version_type=freebsd-elf
 
8794
  need_lib_prefix=no
 
8795
  need_version=no
 
8796
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8797
  soname_spec='${libname}${release}${shared_ext}$major'
 
8798
  shlibpath_var=LD_LIBRARY_PATH
 
8799
  hardcode_into_libs=yes
 
8800
  if test "$with_gnu_ld" = yes; then
 
8801
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
8802
    shlibpath_overrides_runpath=no
 
8803
  else
 
8804
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
8805
    shlibpath_overrides_runpath=yes
 
8806
    case $host_os in
 
8807
      sco3.2v5*)
 
8808
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
8809
        ;;
 
8810
    esac
 
8811
  fi
 
8812
  sys_lib_dlsearch_path_spec='/usr/lib'
 
8813
  ;;
 
8814
 
 
8815
uts4*)
 
8816
  version_type=linux
 
8817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8818
  soname_spec='${libname}${release}${shared_ext}$major'
 
8819
  shlibpath_var=LD_LIBRARY_PATH
 
8820
  ;;
 
8821
 
 
8822
*)
 
8823
  dynamic_linker=no
 
8824
  ;;
 
8825
esac
 
8826
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8827
echo "${ECHO_T}$dynamic_linker" >&6; }
 
8828
test "$dynamic_linker" = no && can_build_shared=no
 
8829
 
 
8830
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8831
if test "$GCC" = yes; then
 
8832
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8833
fi
 
8834
 
 
8835
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8836
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
8837
hardcode_action=
 
8838
if test -n "$hardcode_libdir_flag_spec" || \
 
8839
   test -n "$runpath_var" || \
 
8840
   test "X$hardcode_automatic" = "Xyes" ; then
 
8841
 
 
8842
  # We can hardcode non-existant directories.
 
8843
  if test "$hardcode_direct" != no &&
 
8844
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8845
     # have to relink, otherwise we might link with an installed library
 
8846
     # when we should be linking with a yet-to-be-installed one
 
8847
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8848
     test "$hardcode_minus_L" != no; then
 
8849
    # Linking always hardcodes the temporary library directory.
 
8850
    hardcode_action=relink
 
8851
  else
 
8852
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8853
    hardcode_action=immediate
 
8854
  fi
 
8855
else
 
8856
  # We cannot hardcode anything, or else we can only hardcode existing
 
8857
  # directories.
 
8858
  hardcode_action=unsupported
 
8859
fi
 
8860
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8861
echo "${ECHO_T}$hardcode_action" >&6; }
 
8862
 
 
8863
if test "$hardcode_action" = relink; then
 
8864
  # Fast installation is not supported
 
8865
  enable_fast_install=no
 
8866
elif test "$shlibpath_overrides_runpath" = yes ||
 
8867
     test "$enable_shared" = no; then
 
8868
  # Fast installation is not necessary
 
8869
  enable_fast_install=needless
 
8870
fi
 
8871
 
 
8872
striplib=
 
8873
old_striplib=
 
8874
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8875
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
8876
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8877
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8878
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8879
  { echo "$as_me:$LINENO: result: yes" >&5
 
8880
echo "${ECHO_T}yes" >&6; }
 
8881
else
 
8882
# FIXME - insert some real tests, host_os isn't really good enough
 
8883
  case $host_os in
 
8884
   darwin*)
 
8885
       if test -n "$STRIP" ; then
 
8886
         striplib="$STRIP -x"
 
8887
         { echo "$as_me:$LINENO: result: yes" >&5
 
8888
echo "${ECHO_T}yes" >&6; }
 
8889
       else
 
8890
  { echo "$as_me:$LINENO: result: no" >&5
 
8891
echo "${ECHO_T}no" >&6; }
 
8892
fi
 
8893
       ;;
 
8894
   *)
 
8895
  { echo "$as_me:$LINENO: result: no" >&5
 
8896
echo "${ECHO_T}no" >&6; }
 
8897
    ;;
 
8898
  esac
 
8899
fi
 
8900
 
 
8901
if test "x$enable_dlopen" != xyes; then
 
8902
  enable_dlopen=unknown
 
8903
  enable_dlopen_self=unknown
 
8904
  enable_dlopen_self_static=unknown
 
8905
else
 
8906
  lt_cv_dlopen=no
 
8907
  lt_cv_dlopen_libs=
 
8908
 
 
8909
  case $host_os in
 
8910
  beos*)
 
8911
    lt_cv_dlopen="load_add_on"
 
8912
    lt_cv_dlopen_libs=
 
8913
    lt_cv_dlopen_self=yes
 
8914
    ;;
 
8915
 
 
8916
  mingw* | pw32*)
 
8917
    lt_cv_dlopen="LoadLibrary"
 
8918
    lt_cv_dlopen_libs=
 
8919
   ;;
 
8920
 
 
8921
  cygwin*)
 
8922
    lt_cv_dlopen="dlopen"
 
8923
    lt_cv_dlopen_libs=
 
8924
   ;;
 
8925
 
 
8926
  darwin*)
 
8927
  # if libdl is installed we need to link against it
 
8928
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8929
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
8930
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8932
else
 
8933
  ac_check_lib_save_LIBS=$LIBS
 
8934
LIBS="-ldl  $LIBS"
 
8935
cat >conftest.$ac_ext <<_ACEOF
 
8936
/* confdefs.h.  */
 
8937
_ACEOF
 
8938
cat confdefs.h >>conftest.$ac_ext
 
8939
cat >>conftest.$ac_ext <<_ACEOF
 
8940
/* end confdefs.h.  */
 
8941
 
 
8942
/* Override any GCC internal prototype to avoid an error.
 
8943
   Use char because int might match the return type of a GCC
 
8944
   builtin and then its argument prototype would still apply.  */
 
8945
#ifdef __cplusplus
 
8946
extern "C"
 
8947
#endif
 
8948
char dlopen ();
 
8949
int
 
8950
main ()
 
8951
{
 
8952
return dlopen ();
 
8953
  ;
 
8954
  return 0;
 
8955
}
 
8956
_ACEOF
 
8957
rm -f conftest.$ac_objext conftest$ac_exeext
 
8958
if { (ac_try="$ac_link"
 
8959
case "(($ac_try" in
 
8960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8961
  *) ac_try_echo=$ac_try;;
 
8962
esac
 
8963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8964
  (eval "$ac_link") 2>conftest.er1
 
8965
  ac_status=$?
 
8966
  grep -v '^ *+' conftest.er1 >conftest.err
 
8967
  rm -f conftest.er1
 
8968
  cat conftest.err >&5
 
8969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8970
  (exit $ac_status); } && {
 
8971
         test -z "$ac_c_werror_flag" ||
 
8972
         test ! -s conftest.err
 
8973
       } && test -s conftest$ac_exeext &&
 
8974
       $as_test_x conftest$ac_exeext; then
 
8975
  ac_cv_lib_dl_dlopen=yes
 
8976
else
 
8977
  echo "$as_me: failed program was:" >&5
 
8978
sed 's/^/| /' conftest.$ac_ext >&5
 
8979
 
 
8980
        ac_cv_lib_dl_dlopen=no
 
8981
fi
 
8982
 
 
8983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8984
      conftest$ac_exeext conftest.$ac_ext
 
8985
LIBS=$ac_check_lib_save_LIBS
 
8986
fi
 
8987
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8988
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
8989
if test $ac_cv_lib_dl_dlopen = yes; then
 
8990
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8991
else
 
8992
 
 
8993
    lt_cv_dlopen="dyld"
 
8994
    lt_cv_dlopen_libs=
 
8995
    lt_cv_dlopen_self=yes
 
8996
 
 
8997
fi
 
8998
 
 
8999
   ;;
 
9000
 
 
9001
  *)
 
9002
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9003
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9004
if test "${ac_cv_func_shl_load+set}" = set; then
 
9005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9006
else
 
9007
  cat >conftest.$ac_ext <<_ACEOF
 
9008
/* confdefs.h.  */
 
9009
_ACEOF
 
9010
cat confdefs.h >>conftest.$ac_ext
 
9011
cat >>conftest.$ac_ext <<_ACEOF
 
9012
/* end confdefs.h.  */
 
9013
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9014
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9015
#define shl_load innocuous_shl_load
 
9016
 
 
9017
/* System header to define __stub macros and hopefully few prototypes,
 
9018
    which can conflict with char shl_load (); below.
 
9019
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9020
    <limits.h> exists even on freestanding compilers.  */
 
9021
 
 
9022
#ifdef __STDC__
 
9023
# include <limits.h>
 
9024
#else
 
9025
# include <assert.h>
 
9026
#endif
 
9027
 
 
9028
#undef shl_load
 
9029
 
 
9030
/* Override any GCC internal prototype to avoid an error.
 
9031
   Use char because int might match the return type of a GCC
 
9032
   builtin and then its argument prototype would still apply.  */
 
9033
#ifdef __cplusplus
 
9034
extern "C"
 
9035
#endif
 
9036
char shl_load ();
 
9037
/* The GNU C library defines this for functions which it implements
 
9038
    to always fail with ENOSYS.  Some functions are actually named
 
9039
    something starting with __ and the normal name is an alias.  */
 
9040
#if defined __stub_shl_load || defined __stub___shl_load
 
9041
choke me
 
9042
#endif
 
9043
 
 
9044
int
 
9045
main ()
 
9046
{
 
9047
return shl_load ();
 
9048
  ;
 
9049
  return 0;
 
9050
}
 
9051
_ACEOF
 
9052
rm -f conftest.$ac_objext conftest$ac_exeext
 
9053
if { (ac_try="$ac_link"
 
9054
case "(($ac_try" in
 
9055
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9056
  *) ac_try_echo=$ac_try;;
 
9057
esac
 
9058
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9059
  (eval "$ac_link") 2>conftest.er1
 
9060
  ac_status=$?
 
9061
  grep -v '^ *+' conftest.er1 >conftest.err
 
9062
  rm -f conftest.er1
 
9063
  cat conftest.err >&5
 
9064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9065
  (exit $ac_status); } && {
 
9066
         test -z "$ac_c_werror_flag" ||
 
9067
         test ! -s conftest.err
 
9068
       } && test -s conftest$ac_exeext &&
 
9069
       $as_test_x conftest$ac_exeext; then
 
9070
  ac_cv_func_shl_load=yes
 
9071
else
 
9072
  echo "$as_me: failed program was:" >&5
 
9073
sed 's/^/| /' conftest.$ac_ext >&5
 
9074
 
 
9075
        ac_cv_func_shl_load=no
 
9076
fi
 
9077
 
 
9078
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9079
      conftest$ac_exeext conftest.$ac_ext
 
9080
fi
 
9081
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9082
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9083
if test $ac_cv_func_shl_load = yes; then
 
9084
  lt_cv_dlopen="shl_load"
 
9085
else
 
9086
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9087
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9088
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9090
else
 
9091
  ac_check_lib_save_LIBS=$LIBS
 
9092
LIBS="-ldld  $LIBS"
 
9093
cat >conftest.$ac_ext <<_ACEOF
 
9094
/* confdefs.h.  */
 
9095
_ACEOF
 
9096
cat confdefs.h >>conftest.$ac_ext
 
9097
cat >>conftest.$ac_ext <<_ACEOF
 
9098
/* end confdefs.h.  */
 
9099
 
 
9100
/* Override any GCC internal prototype to avoid an error.
 
9101
   Use char because int might match the return type of a GCC
 
9102
   builtin and then its argument prototype would still apply.  */
 
9103
#ifdef __cplusplus
 
9104
extern "C"
 
9105
#endif
 
9106
char shl_load ();
 
9107
int
 
9108
main ()
 
9109
{
 
9110
return shl_load ();
 
9111
  ;
 
9112
  return 0;
 
9113
}
 
9114
_ACEOF
 
9115
rm -f conftest.$ac_objext conftest$ac_exeext
 
9116
if { (ac_try="$ac_link"
 
9117
case "(($ac_try" in
 
9118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9119
  *) ac_try_echo=$ac_try;;
 
9120
esac
 
9121
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9122
  (eval "$ac_link") 2>conftest.er1
 
9123
  ac_status=$?
 
9124
  grep -v '^ *+' conftest.er1 >conftest.err
 
9125
  rm -f conftest.er1
 
9126
  cat conftest.err >&5
 
9127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9128
  (exit $ac_status); } && {
 
9129
         test -z "$ac_c_werror_flag" ||
 
9130
         test ! -s conftest.err
 
9131
       } && test -s conftest$ac_exeext &&
 
9132
       $as_test_x conftest$ac_exeext; then
 
9133
  ac_cv_lib_dld_shl_load=yes
 
9134
else
 
9135
  echo "$as_me: failed program was:" >&5
 
9136
sed 's/^/| /' conftest.$ac_ext >&5
 
9137
 
 
9138
        ac_cv_lib_dld_shl_load=no
 
9139
fi
 
9140
 
 
9141
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9142
      conftest$ac_exeext conftest.$ac_ext
 
9143
LIBS=$ac_check_lib_save_LIBS
 
9144
fi
 
9145
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9146
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9147
if test $ac_cv_lib_dld_shl_load = yes; then
 
9148
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9149
else
 
9150
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9151
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9152
if test "${ac_cv_func_dlopen+set}" = set; then
 
9153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9154
else
 
9155
  cat >conftest.$ac_ext <<_ACEOF
 
9156
/* confdefs.h.  */
 
9157
_ACEOF
 
9158
cat confdefs.h >>conftest.$ac_ext
 
9159
cat >>conftest.$ac_ext <<_ACEOF
 
9160
/* end confdefs.h.  */
 
9161
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9162
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9163
#define dlopen innocuous_dlopen
 
9164
 
 
9165
/* System header to define __stub macros and hopefully few prototypes,
 
9166
    which can conflict with char dlopen (); below.
 
9167
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9168
    <limits.h> exists even on freestanding compilers.  */
 
9169
 
 
9170
#ifdef __STDC__
 
9171
# include <limits.h>
 
9172
#else
 
9173
# include <assert.h>
 
9174
#endif
 
9175
 
 
9176
#undef dlopen
 
9177
 
 
9178
/* Override any GCC internal prototype to avoid an error.
 
9179
   Use char because int might match the return type of a GCC
 
9180
   builtin and then its argument prototype would still apply.  */
 
9181
#ifdef __cplusplus
 
9182
extern "C"
 
9183
#endif
 
9184
char dlopen ();
 
9185
/* The GNU C library defines this for functions which it implements
 
9186
    to always fail with ENOSYS.  Some functions are actually named
 
9187
    something starting with __ and the normal name is an alias.  */
 
9188
#if defined __stub_dlopen || defined __stub___dlopen
 
9189
choke me
 
9190
#endif
 
9191
 
 
9192
int
 
9193
main ()
 
9194
{
 
9195
return dlopen ();
 
9196
  ;
 
9197
  return 0;
 
9198
}
 
9199
_ACEOF
 
9200
rm -f conftest.$ac_objext conftest$ac_exeext
 
9201
if { (ac_try="$ac_link"
 
9202
case "(($ac_try" in
 
9203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9204
  *) ac_try_echo=$ac_try;;
 
9205
esac
 
9206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9207
  (eval "$ac_link") 2>conftest.er1
 
9208
  ac_status=$?
 
9209
  grep -v '^ *+' conftest.er1 >conftest.err
 
9210
  rm -f conftest.er1
 
9211
  cat conftest.err >&5
 
9212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9213
  (exit $ac_status); } && {
 
9214
         test -z "$ac_c_werror_flag" ||
 
9215
         test ! -s conftest.err
 
9216
       } && test -s conftest$ac_exeext &&
 
9217
       $as_test_x conftest$ac_exeext; then
 
9218
  ac_cv_func_dlopen=yes
 
9219
else
 
9220
  echo "$as_me: failed program was:" >&5
 
9221
sed 's/^/| /' conftest.$ac_ext >&5
 
9222
 
 
9223
        ac_cv_func_dlopen=no
 
9224
fi
 
9225
 
 
9226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9227
      conftest$ac_exeext conftest.$ac_ext
 
9228
fi
 
9229
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9230
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9231
if test $ac_cv_func_dlopen = yes; then
 
9232
  lt_cv_dlopen="dlopen"
 
9233
else
 
9234
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9235
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9236
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9237
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9238
else
 
9239
  ac_check_lib_save_LIBS=$LIBS
 
9240
LIBS="-ldl  $LIBS"
 
9241
cat >conftest.$ac_ext <<_ACEOF
 
9242
/* confdefs.h.  */
 
9243
_ACEOF
 
9244
cat confdefs.h >>conftest.$ac_ext
 
9245
cat >>conftest.$ac_ext <<_ACEOF
 
9246
/* end confdefs.h.  */
 
9247
 
 
9248
/* Override any GCC internal prototype to avoid an error.
 
9249
   Use char because int might match the return type of a GCC
 
9250
   builtin and then its argument prototype would still apply.  */
 
9251
#ifdef __cplusplus
 
9252
extern "C"
 
9253
#endif
 
9254
char dlopen ();
 
9255
int
 
9256
main ()
 
9257
{
 
9258
return dlopen ();
 
9259
  ;
 
9260
  return 0;
 
9261
}
 
9262
_ACEOF
 
9263
rm -f conftest.$ac_objext conftest$ac_exeext
 
9264
if { (ac_try="$ac_link"
 
9265
case "(($ac_try" in
 
9266
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9267
  *) ac_try_echo=$ac_try;;
 
9268
esac
 
9269
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9270
  (eval "$ac_link") 2>conftest.er1
 
9271
  ac_status=$?
 
9272
  grep -v '^ *+' conftest.er1 >conftest.err
 
9273
  rm -f conftest.er1
 
9274
  cat conftest.err >&5
 
9275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9276
  (exit $ac_status); } && {
 
9277
         test -z "$ac_c_werror_flag" ||
 
9278
         test ! -s conftest.err
 
9279
       } && test -s conftest$ac_exeext &&
 
9280
       $as_test_x conftest$ac_exeext; then
 
9281
  ac_cv_lib_dl_dlopen=yes
 
9282
else
 
9283
  echo "$as_me: failed program was:" >&5
 
9284
sed 's/^/| /' conftest.$ac_ext >&5
 
9285
 
 
9286
        ac_cv_lib_dl_dlopen=no
 
9287
fi
 
9288
 
 
9289
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9290
      conftest$ac_exeext conftest.$ac_ext
 
9291
LIBS=$ac_check_lib_save_LIBS
 
9292
fi
 
9293
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9294
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9295
if test $ac_cv_lib_dl_dlopen = yes; then
 
9296
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9297
else
 
9298
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9299
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9300
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9302
else
 
9303
  ac_check_lib_save_LIBS=$LIBS
 
9304
LIBS="-lsvld  $LIBS"
 
9305
cat >conftest.$ac_ext <<_ACEOF
 
9306
/* confdefs.h.  */
 
9307
_ACEOF
 
9308
cat confdefs.h >>conftest.$ac_ext
 
9309
cat >>conftest.$ac_ext <<_ACEOF
 
9310
/* end confdefs.h.  */
 
9311
 
 
9312
/* Override any GCC internal prototype to avoid an error.
 
9313
   Use char because int might match the return type of a GCC
 
9314
   builtin and then its argument prototype would still apply.  */
 
9315
#ifdef __cplusplus
 
9316
extern "C"
 
9317
#endif
 
9318
char dlopen ();
 
9319
int
 
9320
main ()
 
9321
{
 
9322
return dlopen ();
 
9323
  ;
 
9324
  return 0;
 
9325
}
 
9326
_ACEOF
 
9327
rm -f conftest.$ac_objext conftest$ac_exeext
 
9328
if { (ac_try="$ac_link"
 
9329
case "(($ac_try" in
 
9330
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9331
  *) ac_try_echo=$ac_try;;
 
9332
esac
 
9333
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9334
  (eval "$ac_link") 2>conftest.er1
 
9335
  ac_status=$?
 
9336
  grep -v '^ *+' conftest.er1 >conftest.err
 
9337
  rm -f conftest.er1
 
9338
  cat conftest.err >&5
 
9339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9340
  (exit $ac_status); } && {
 
9341
         test -z "$ac_c_werror_flag" ||
 
9342
         test ! -s conftest.err
 
9343
       } && test -s conftest$ac_exeext &&
 
9344
       $as_test_x conftest$ac_exeext; then
 
9345
  ac_cv_lib_svld_dlopen=yes
 
9346
else
 
9347
  echo "$as_me: failed program was:" >&5
 
9348
sed 's/^/| /' conftest.$ac_ext >&5
 
9349
 
 
9350
        ac_cv_lib_svld_dlopen=no
 
9351
fi
 
9352
 
 
9353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9354
      conftest$ac_exeext conftest.$ac_ext
 
9355
LIBS=$ac_check_lib_save_LIBS
 
9356
fi
 
9357
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9358
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9359
if test $ac_cv_lib_svld_dlopen = yes; then
 
9360
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9361
else
 
9362
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9363
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9364
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9365
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9366
else
 
9367
  ac_check_lib_save_LIBS=$LIBS
 
9368
LIBS="-ldld  $LIBS"
 
9369
cat >conftest.$ac_ext <<_ACEOF
 
9370
/* confdefs.h.  */
 
9371
_ACEOF
 
9372
cat confdefs.h >>conftest.$ac_ext
 
9373
cat >>conftest.$ac_ext <<_ACEOF
 
9374
/* end confdefs.h.  */
 
9375
 
 
9376
/* Override any GCC internal prototype to avoid an error.
 
9377
   Use char because int might match the return type of a GCC
 
9378
   builtin and then its argument prototype would still apply.  */
 
9379
#ifdef __cplusplus
 
9380
extern "C"
 
9381
#endif
 
9382
char dld_link ();
 
9383
int
 
9384
main ()
 
9385
{
 
9386
return dld_link ();
 
9387
  ;
 
9388
  return 0;
 
9389
}
 
9390
_ACEOF
 
9391
rm -f conftest.$ac_objext conftest$ac_exeext
 
9392
if { (ac_try="$ac_link"
 
9393
case "(($ac_try" in
 
9394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9395
  *) ac_try_echo=$ac_try;;
 
9396
esac
 
9397
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9398
  (eval "$ac_link") 2>conftest.er1
 
9399
  ac_status=$?
 
9400
  grep -v '^ *+' conftest.er1 >conftest.err
 
9401
  rm -f conftest.er1
 
9402
  cat conftest.err >&5
 
9403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9404
  (exit $ac_status); } && {
 
9405
         test -z "$ac_c_werror_flag" ||
 
9406
         test ! -s conftest.err
 
9407
       } && test -s conftest$ac_exeext &&
 
9408
       $as_test_x conftest$ac_exeext; then
 
9409
  ac_cv_lib_dld_dld_link=yes
 
9410
else
 
9411
  echo "$as_me: failed program was:" >&5
 
9412
sed 's/^/| /' conftest.$ac_ext >&5
 
9413
 
 
9414
        ac_cv_lib_dld_dld_link=no
 
9415
fi
 
9416
 
 
9417
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9418
      conftest$ac_exeext conftest.$ac_ext
 
9419
LIBS=$ac_check_lib_save_LIBS
 
9420
fi
 
9421
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9422
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9423
if test $ac_cv_lib_dld_dld_link = yes; then
 
9424
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9425
fi
 
9426
 
 
9427
 
 
9428
fi
 
9429
 
 
9430
 
 
9431
fi
 
9432
 
 
9433
 
 
9434
fi
 
9435
 
 
9436
 
 
9437
fi
 
9438
 
 
9439
 
 
9440
fi
 
9441
 
 
9442
    ;;
 
9443
  esac
 
9444
 
 
9445
  if test "x$lt_cv_dlopen" != xno; then
 
9446
    enable_dlopen=yes
 
9447
  else
 
9448
    enable_dlopen=no
 
9449
  fi
 
9450
 
 
9451
  case $lt_cv_dlopen in
 
9452
  dlopen)
 
9453
    save_CPPFLAGS="$CPPFLAGS"
 
9454
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9455
 
 
9456
    save_LDFLAGS="$LDFLAGS"
 
9457
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9458
 
 
9459
    save_LIBS="$LIBS"
 
9460
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9461
 
 
9462
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9463
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9464
if test "${lt_cv_dlopen_self+set}" = set; then
 
9465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9466
else
 
9467
          if test "$cross_compiling" = yes; then :
 
9468
  lt_cv_dlopen_self=cross
 
9469
else
 
9470
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9471
  lt_status=$lt_dlunknown
 
9472
  cat > conftest.$ac_ext <<EOF
 
9473
#line 9473 "configure"
 
9474
#include "confdefs.h"
 
9475
 
 
9476
#if HAVE_DLFCN_H
 
9477
#include <dlfcn.h>
 
9478
#endif
 
9479
 
 
9480
#include <stdio.h>
 
9481
 
 
9482
#ifdef RTLD_GLOBAL
 
9483
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9484
#else
 
9485
#  ifdef DL_GLOBAL
 
9486
#    define LT_DLGLOBAL         DL_GLOBAL
 
9487
#  else
 
9488
#    define LT_DLGLOBAL         0
 
9489
#  endif
 
9490
#endif
 
9491
 
 
9492
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9493
   find out it does not work in some platform. */
 
9494
#ifndef LT_DLLAZY_OR_NOW
 
9495
#  ifdef RTLD_LAZY
 
9496
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9497
#  else
 
9498
#    ifdef DL_LAZY
 
9499
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9500
#    else
 
9501
#      ifdef RTLD_NOW
 
9502
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9503
#      else
 
9504
#        ifdef DL_NOW
 
9505
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9506
#        else
 
9507
#          define LT_DLLAZY_OR_NOW      0
 
9508
#        endif
 
9509
#      endif
 
9510
#    endif
 
9511
#  endif
 
9512
#endif
 
9513
 
 
9514
#ifdef __cplusplus
 
9515
extern "C" void exit (int);
 
9516
#endif
 
9517
 
 
9518
void fnord() { int i=42;}
 
9519
int main ()
 
9520
{
 
9521
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9522
  int status = $lt_dlunknown;
 
9523
 
 
9524
  if (self)
 
9525
    {
 
9526
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9527
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9528
      /* dlclose (self); */
 
9529
    }
 
9530
  else
 
9531
    puts (dlerror ());
 
9532
 
 
9533
    exit (status);
 
9534
}
 
9535
EOF
 
9536
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9537
  (eval $ac_link) 2>&5
 
9538
  ac_status=$?
 
9539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9540
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9541
    (./conftest; exit; ) >&5 2>/dev/null
 
9542
    lt_status=$?
 
9543
    case x$lt_status in
 
9544
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9545
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9546
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9547
    esac
 
9548
  else :
 
9549
    # compilation failed
 
9550
    lt_cv_dlopen_self=no
 
9551
  fi
 
9552
fi
 
9553
rm -fr conftest*
 
9554
 
 
9555
 
 
9556
fi
 
9557
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9558
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
9559
 
 
9560
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9561
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9562
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9563
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9564
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9566
else
 
9567
          if test "$cross_compiling" = yes; then :
 
9568
  lt_cv_dlopen_self_static=cross
 
9569
else
 
9570
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9571
  lt_status=$lt_dlunknown
 
9572
  cat > conftest.$ac_ext <<EOF
 
9573
#line 9573 "configure"
 
9574
#include "confdefs.h"
 
9575
 
 
9576
#if HAVE_DLFCN_H
 
9577
#include <dlfcn.h>
 
9578
#endif
 
9579
 
 
9580
#include <stdio.h>
 
9581
 
 
9582
#ifdef RTLD_GLOBAL
 
9583
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9584
#else
 
9585
#  ifdef DL_GLOBAL
 
9586
#    define LT_DLGLOBAL         DL_GLOBAL
 
9587
#  else
 
9588
#    define LT_DLGLOBAL         0
 
9589
#  endif
 
9590
#endif
 
9591
 
 
9592
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9593
   find out it does not work in some platform. */
 
9594
#ifndef LT_DLLAZY_OR_NOW
 
9595
#  ifdef RTLD_LAZY
 
9596
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9597
#  else
 
9598
#    ifdef DL_LAZY
 
9599
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9600
#    else
 
9601
#      ifdef RTLD_NOW
 
9602
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9603
#      else
 
9604
#        ifdef DL_NOW
 
9605
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9606
#        else
 
9607
#          define LT_DLLAZY_OR_NOW      0
 
9608
#        endif
 
9609
#      endif
 
9610
#    endif
 
9611
#  endif
 
9612
#endif
 
9613
 
 
9614
#ifdef __cplusplus
 
9615
extern "C" void exit (int);
 
9616
#endif
 
9617
 
 
9618
void fnord() { int i=42;}
 
9619
int main ()
 
9620
{
 
9621
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9622
  int status = $lt_dlunknown;
 
9623
 
 
9624
  if (self)
 
9625
    {
 
9626
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9627
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9628
      /* dlclose (self); */
 
9629
    }
 
9630
  else
 
9631
    puts (dlerror ());
 
9632
 
 
9633
    exit (status);
 
9634
}
 
9635
EOF
 
9636
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9637
  (eval $ac_link) 2>&5
 
9638
  ac_status=$?
 
9639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9640
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9641
    (./conftest; exit; ) >&5 2>/dev/null
 
9642
    lt_status=$?
 
9643
    case x$lt_status in
 
9644
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9645
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9646
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9647
    esac
 
9648
  else :
 
9649
    # compilation failed
 
9650
    lt_cv_dlopen_self_static=no
 
9651
  fi
 
9652
fi
 
9653
rm -fr conftest*
 
9654
 
 
9655
 
 
9656
fi
 
9657
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9658
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
9659
    fi
 
9660
 
 
9661
    CPPFLAGS="$save_CPPFLAGS"
 
9662
    LDFLAGS="$save_LDFLAGS"
 
9663
    LIBS="$save_LIBS"
 
9664
    ;;
 
9665
  esac
 
9666
 
 
9667
  case $lt_cv_dlopen_self in
 
9668
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9669
  *) enable_dlopen_self=unknown ;;
 
9670
  esac
 
9671
 
 
9672
  case $lt_cv_dlopen_self_static in
 
9673
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9674
  *) enable_dlopen_self_static=unknown ;;
 
9675
  esac
 
9676
fi
 
9677
 
 
9678
 
 
9679
# Report which library types will actually be built
 
9680
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9681
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
9682
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9683
echo "${ECHO_T}$can_build_shared" >&6; }
 
9684
 
 
9685
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9686
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
9687
test "$can_build_shared" = "no" && enable_shared=no
 
9688
 
 
9689
# On AIX, shared libraries and static libraries use the same namespace, and
 
9690
# are all built from PIC.
 
9691
case $host_os in
 
9692
aix3*)
 
9693
  test "$enable_shared" = yes && enable_static=no
 
9694
  if test -n "$RANLIB"; then
 
9695
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9696
    postinstall_cmds='$RANLIB $lib'
 
9697
  fi
 
9698
  ;;
 
9699
 
 
9700
aix4* | aix5*)
 
9701
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9702
    test "$enable_shared" = yes && enable_static=no
 
9703
  fi
 
9704
    ;;
 
9705
esac
 
9706
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9707
echo "${ECHO_T}$enable_shared" >&6; }
 
9708
 
 
9709
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9710
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
9711
# Make sure either enable_shared or enable_static is yes.
 
9712
test "$enable_shared" = yes || enable_static=yes
 
9713
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
9714
echo "${ECHO_T}$enable_static" >&6; }
 
9715
 
 
9716
# The else clause should only fire when bootstrapping the
 
9717
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9718
# with your package, and you will get complaints that there are
 
9719
# no rules to generate ltmain.sh.
 
9720
if test -f "$ltmain"; then
 
9721
  # See if we are running on zsh, and set the options which allow our commands through
 
9722
  # without removal of \ escapes.
 
9723
  if test -n "${ZSH_VERSION+set}" ; then
 
9724
    setopt NO_GLOB_SUBST
 
9725
  fi
 
9726
  # Now quote all the things that may contain metacharacters while being
 
9727
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9728
  # variables and quote the copies for generation of the libtool script.
 
9729
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
9730
    SED SHELL STRIP \
 
9731
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9732
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9733
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9734
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9735
    lt_cv_sys_global_symbol_to_c_name_address \
 
9736
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9737
    old_postinstall_cmds old_postuninstall_cmds \
 
9738
    compiler \
 
9739
    CC \
 
9740
    LD \
 
9741
    lt_prog_compiler_wl \
 
9742
    lt_prog_compiler_pic \
 
9743
    lt_prog_compiler_static \
 
9744
    lt_prog_compiler_no_builtin_flag \
 
9745
    export_dynamic_flag_spec \
 
9746
    thread_safe_flag_spec \
 
9747
    whole_archive_flag_spec \
 
9748
    enable_shared_with_static_runtimes \
 
9749
    old_archive_cmds \
 
9750
    old_archive_from_new_cmds \
 
9751
    predep_objects \
 
9752
    postdep_objects \
 
9753
    predeps \
 
9754
    postdeps \
 
9755
    compiler_lib_search_path \
 
9756
    archive_cmds \
 
9757
    archive_expsym_cmds \
 
9758
    postinstall_cmds \
 
9759
    postuninstall_cmds \
 
9760
    old_archive_from_expsyms_cmds \
 
9761
    allow_undefined_flag \
 
9762
    no_undefined_flag \
 
9763
    export_symbols_cmds \
 
9764
    hardcode_libdir_flag_spec \
 
9765
    hardcode_libdir_flag_spec_ld \
 
9766
    hardcode_libdir_separator \
 
9767
    hardcode_automatic \
 
9768
    module_cmds \
 
9769
    module_expsym_cmds \
 
9770
    lt_cv_prog_compiler_c_o \
 
9771
    exclude_expsyms \
 
9772
    include_expsyms; do
 
9773
 
 
9774
    case $var in
 
9775
    old_archive_cmds | \
 
9776
    old_archive_from_new_cmds | \
 
9777
    archive_cmds | \
 
9778
    archive_expsym_cmds | \
 
9779
    module_cmds | \
 
9780
    module_expsym_cmds | \
 
9781
    old_archive_from_expsyms_cmds | \
 
9782
    export_symbols_cmds | \
 
9783
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9784
    postinstall_cmds | postuninstall_cmds | \
 
9785
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9786
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9787
      # Double-quote double-evaled strings.
 
9788
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9789
      ;;
 
9790
    *)
 
9791
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9792
      ;;
 
9793
    esac
 
9794
  done
 
9795
 
 
9796
  case $lt_echo in
 
9797
  *'\$0 --fallback-echo"')
 
9798
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9799
    ;;
 
9800
  esac
 
9801
 
 
9802
cfgfile="${ofile}T"
 
9803
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9804
  $rm -f "$cfgfile"
 
9805
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9806
echo "$as_me: creating $ofile" >&6;}
 
9807
 
 
9808
  cat <<__EOF__ >> "$cfgfile"
 
9809
#! $SHELL
 
9810
 
 
9811
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9812
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9813
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9814
#
 
9815
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9816
# Free Software Foundation, Inc.
 
9817
#
 
9818
# This file is part of GNU Libtool:
 
9819
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9820
#
 
9821
# This program is free software; you can redistribute it and/or modify
 
9822
# it under the terms of the GNU General Public License as published by
 
9823
# the Free Software Foundation; either version 2 of the License, or
 
9824
# (at your option) any later version.
 
9825
#
 
9826
# This program is distributed in the hope that it will be useful, but
 
9827
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9828
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9829
# General Public License for more details.
 
9830
#
 
9831
# You should have received a copy of the GNU General Public License
 
9832
# along with this program; if not, write to the Free Software
 
9833
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9834
#
 
9835
# As a special exception to the GNU General Public License, if you
 
9836
# distribute this file as part of a program that contains a
 
9837
# configuration script generated by Autoconf, you may include it under
 
9838
# the same distribution terms that you use for the rest of that program.
 
9839
 
 
9840
# A sed program that does not truncate output.
 
9841
SED=$lt_SED
 
9842
 
 
9843
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9844
Xsed="$SED -e 1s/^X//"
 
9845
 
 
9846
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9847
# if CDPATH is set.
 
9848
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9849
 
 
9850
# The names of the tagged configurations supported by this script.
 
9851
available_tags=
 
9852
 
 
9853
# ### BEGIN LIBTOOL CONFIG
 
9854
 
 
9855
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9856
 
 
9857
# Shell to use when invoking shell scripts.
 
9858
SHELL=$lt_SHELL
 
9859
 
 
9860
# Whether or not to build shared libraries.
 
9861
build_libtool_libs=$enable_shared
 
9862
 
 
9863
# Whether or not to build static libraries.
 
9864
build_old_libs=$enable_static
 
9865
 
 
9866
# Whether or not to add -lc for building shared libraries.
 
9867
build_libtool_need_lc=$archive_cmds_need_lc
 
9868
 
 
9869
# Whether or not to disallow shared libs when runtime libs are static
 
9870
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9871
 
 
9872
# Whether or not to optimize for fast installation.
 
9873
fast_install=$enable_fast_install
 
9874
 
 
9875
# The host system.
 
9876
host_alias=$host_alias
 
9877
host=$host
 
9878
host_os=$host_os
 
9879
 
 
9880
# The build system.
 
9881
build_alias=$build_alias
 
9882
build=$build
 
9883
build_os=$build_os
 
9884
 
 
9885
# An echo program that does not interpret backslashes.
 
9886
echo=$lt_echo
 
9887
 
 
9888
# The archiver.
 
9889
AR=$lt_AR
 
9890
AR_FLAGS=$lt_AR_FLAGS
 
9891
 
 
9892
# A C compiler.
 
9893
LTCC=$lt_LTCC
 
9894
 
 
9895
# LTCC compiler flags.
 
9896
LTCFLAGS=$lt_LTCFLAGS
 
9897
 
 
9898
# A language-specific compiler.
 
9899
CC=$lt_compiler
 
9900
 
 
9901
# Is the compiler the GNU C compiler?
 
9902
with_gcc=$GCC
 
9903
 
 
9904
# An ERE matcher.
 
9905
EGREP=$lt_EGREP
 
9906
 
 
9907
# The linker used to build libraries.
 
9908
LD=$lt_LD
 
9909
 
 
9910
# Whether we need hard or soft links.
 
9911
LN_S=$lt_LN_S
 
9912
 
 
9913
# A BSD-compatible nm program.
 
9914
NM=$lt_NM
 
9915
 
 
9916
# A symbol stripping program
 
9917
STRIP=$lt_STRIP
 
9918
 
 
9919
# Used to examine libraries when file_magic_cmd begins "file"
 
9920
MAGIC_CMD=$MAGIC_CMD
 
9921
 
 
9922
# Used on cygwin: DLL creation program.
 
9923
DLLTOOL="$DLLTOOL"
 
9924
 
 
9925
# Used on cygwin: object dumper.
 
9926
OBJDUMP="$OBJDUMP"
 
9927
 
 
9928
# Used on cygwin: assembler.
 
9929
AS="$AS"
 
9930
 
 
9931
# The name of the directory that contains temporary libtool files.
 
9932
objdir=$objdir
 
9933
 
 
9934
# How to create reloadable object files.
 
9935
reload_flag=$lt_reload_flag
 
9936
reload_cmds=$lt_reload_cmds
 
9937
 
 
9938
# How to pass a linker flag through the compiler.
 
9939
wl=$lt_lt_prog_compiler_wl
 
9940
 
 
9941
# Object file suffix (normally "o").
 
9942
objext="$ac_objext"
 
9943
 
 
9944
# Old archive suffix (normally "a").
 
9945
libext="$libext"
 
9946
 
 
9947
# Shared library suffix (normally ".so").
 
9948
shrext_cmds='$shrext_cmds'
 
9949
 
 
9950
# Executable file suffix (normally "").
 
9951
exeext="$exeext"
 
9952
 
 
9953
# Additional compiler flags for building library objects.
 
9954
pic_flag=$lt_lt_prog_compiler_pic
 
9955
pic_mode=$pic_mode
 
9956
 
 
9957
# What is the maximum length of a command?
 
9958
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9959
 
 
9960
# Does compiler simultaneously support -c and -o options?
 
9961
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9962
 
 
9963
# Must we lock files when doing compilation?
 
9964
need_locks=$lt_need_locks
 
9965
 
 
9966
# Do we need the lib prefix for modules?
 
9967
need_lib_prefix=$need_lib_prefix
 
9968
 
 
9969
# Do we need a version for libraries?
 
9970
need_version=$need_version
 
9971
 
 
9972
# Whether dlopen is supported.
 
9973
dlopen_support=$enable_dlopen
 
9974
 
 
9975
# Whether dlopen of programs is supported.
 
9976
dlopen_self=$enable_dlopen_self
 
9977
 
 
9978
# Whether dlopen of statically linked programs is supported.
 
9979
dlopen_self_static=$enable_dlopen_self_static
 
9980
 
 
9981
# Compiler flag to prevent dynamic linking.
 
9982
link_static_flag=$lt_lt_prog_compiler_static
 
9983
 
 
9984
# Compiler flag to turn off builtin functions.
 
9985
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9986
 
 
9987
# Compiler flag to allow reflexive dlopens.
 
9988
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9989
 
 
9990
# Compiler flag to generate shared objects directly from archives.
 
9991
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9992
 
 
9993
# Compiler flag to generate thread-safe objects.
 
9994
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9995
 
 
9996
# Library versioning type.
 
9997
version_type=$version_type
 
9998
 
 
9999
# Format of library name prefix.
 
10000
libname_spec=$lt_libname_spec
 
10001
 
 
10002
# List of archive names.  First name is the real one, the rest are links.
 
10003
# The last name is the one that the linker finds with -lNAME.
 
10004
library_names_spec=$lt_library_names_spec
 
10005
 
 
10006
# The coded name of the library, if different from the real name.
 
10007
soname_spec=$lt_soname_spec
 
10008
 
 
10009
# Commands used to build and install an old-style archive.
 
10010
RANLIB=$lt_RANLIB
 
10011
old_archive_cmds=$lt_old_archive_cmds
 
10012
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10013
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10014
 
 
10015
# Create an old-style archive from a shared archive.
 
10016
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10017
 
 
10018
# Create a temporary old-style archive to link instead of a shared archive.
 
10019
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10020
 
 
10021
# Commands used to build and install a shared archive.
 
10022
archive_cmds=$lt_archive_cmds
 
10023
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10024
postinstall_cmds=$lt_postinstall_cmds
 
10025
postuninstall_cmds=$lt_postuninstall_cmds
 
10026
 
 
10027
# Commands used to build a loadable module (assumed same as above if empty)
 
10028
module_cmds=$lt_module_cmds
 
10029
module_expsym_cmds=$lt_module_expsym_cmds
 
10030
 
 
10031
# Commands to strip libraries.
 
10032
old_striplib=$lt_old_striplib
 
10033
striplib=$lt_striplib
 
10034
 
 
10035
# Dependencies to place before the objects being linked to create a
 
10036
# shared library.
 
10037
predep_objects=$lt_predep_objects
 
10038
 
 
10039
# Dependencies to place after the objects being linked to create a
 
10040
# shared library.
 
10041
postdep_objects=$lt_postdep_objects
 
10042
 
 
10043
# Dependencies to place before the objects being linked to create a
 
10044
# shared library.
 
10045
predeps=$lt_predeps
 
10046
 
 
10047
# Dependencies to place after the objects being linked to create a
 
10048
# shared library.
 
10049
postdeps=$lt_postdeps
 
10050
 
 
10051
# The library search path used internally by the compiler when linking
 
10052
# a shared library.
 
10053
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10054
 
 
10055
# Method to check whether dependent libraries are shared objects.
 
10056
deplibs_check_method=$lt_deplibs_check_method
 
10057
 
 
10058
# Command to use when deplibs_check_method == file_magic.
 
10059
file_magic_cmd=$lt_file_magic_cmd
 
10060
 
 
10061
# Flag that allows shared libraries with undefined symbols to be built.
 
10062
allow_undefined_flag=$lt_allow_undefined_flag
 
10063
 
 
10064
# Flag that forces no undefined symbols.
 
10065
no_undefined_flag=$lt_no_undefined_flag
 
10066
 
 
10067
# Commands used to finish a libtool library installation in a directory.
 
10068
finish_cmds=$lt_finish_cmds
 
10069
 
 
10070
# Same as above, but a single script fragment to be evaled but not shown.
 
10071
finish_eval=$lt_finish_eval
 
10072
 
 
10073
# Take the output of nm and produce a listing of raw symbols and C names.
 
10074
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10075
 
 
10076
# Transform the output of nm in a proper C declaration
 
10077
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10078
 
 
10079
# Transform the output of nm in a C name address pair
 
10080
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10081
 
 
10082
# This is the shared library runtime path variable.
 
10083
runpath_var=$runpath_var
 
10084
 
 
10085
# This is the shared library path variable.
 
10086
shlibpath_var=$shlibpath_var
 
10087
 
 
10088
# Is shlibpath searched before the hard-coded library search path?
 
10089
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10090
 
 
10091
# How to hardcode a shared library path into an executable.
 
10092
hardcode_action=$hardcode_action
 
10093
 
 
10094
# Whether we should hardcode library paths into libraries.
 
10095
hardcode_into_libs=$hardcode_into_libs
 
10096
 
 
10097
# Flag to hardcode \$libdir into a binary during linking.
 
10098
# This must work even if \$libdir does not exist.
 
10099
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10100
 
 
10101
# If ld is used when linking, flag to hardcode \$libdir into
 
10102
# a binary during linking. This must work even if \$libdir does
 
10103
# not exist.
 
10104
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10105
 
 
10106
# Whether we need a single -rpath flag with a separated argument.
 
10107
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10108
 
 
10109
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10110
# resulting binary.
 
10111
hardcode_direct=$hardcode_direct
 
10112
 
 
10113
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10114
# resulting binary.
 
10115
hardcode_minus_L=$hardcode_minus_L
 
10116
 
 
10117
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10118
# the resulting binary.
 
10119
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10120
 
 
10121
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10122
# and all subsequent libraries and executables linked against it.
 
10123
hardcode_automatic=$hardcode_automatic
 
10124
 
 
10125
# Variables whose values should be saved in libtool wrapper scripts and
 
10126
# restored at relink time.
 
10127
variables_saved_for_relink="$variables_saved_for_relink"
 
10128
 
 
10129
# Whether libtool must link a program against all its dependency libraries.
 
10130
link_all_deplibs=$link_all_deplibs
 
10131
 
 
10132
# Compile-time system search path for libraries
 
10133
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10134
 
 
10135
# Run-time system search path for libraries
 
10136
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10137
 
 
10138
# Fix the shell variable \$srcfile for the compiler.
 
10139
fix_srcfile_path="$fix_srcfile_path"
 
10140
 
 
10141
# Set to yes if exported symbols are required.
 
10142
always_export_symbols=$always_export_symbols
 
10143
 
 
10144
# The commands to list exported symbols.
 
10145
export_symbols_cmds=$lt_export_symbols_cmds
 
10146
 
 
10147
# The commands to extract the exported symbol list from a shared archive.
 
10148
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10149
 
 
10150
# Symbols that should not be listed in the preloaded symbols.
 
10151
exclude_expsyms=$lt_exclude_expsyms
 
10152
 
 
10153
# Symbols that must always be exported.
 
10154
include_expsyms=$lt_include_expsyms
 
10155
 
 
10156
# ### END LIBTOOL CONFIG
 
10157
 
 
10158
__EOF__
 
10159
 
 
10160
 
 
10161
  case $host_os in
 
10162
  aix3*)
 
10163
    cat <<\EOF >> "$cfgfile"
 
10164
 
 
10165
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10166
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10167
# vanish in a puff of smoke.
 
10168
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10169
  COLLECT_NAMES=
 
10170
  export COLLECT_NAMES
 
10171
fi
 
10172
EOF
 
10173
    ;;
 
10174
  esac
 
10175
 
 
10176
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10177
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10178
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10179
  # is reportedly fixed, but why not run on old versions too?
 
10180
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10181
 
 
10182
  mv -f "$cfgfile" "$ofile" || \
 
10183
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10184
  chmod +x "$ofile"
 
10185
 
 
10186
else
 
10187
  # If there is no Makefile yet, we rely on a make rule to execute
 
10188
  # `config.status --recheck' to rerun these tests and create the
 
10189
  # libtool script then.
 
10190
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10191
  if test -f "$ltmain_in"; then
 
10192
    test -f Makefile && make "$ltmain"
 
10193
  fi
 
10194
fi
 
10195
 
 
10196
 
 
10197
ac_ext=c
 
10198
ac_cpp='$CPP $CPPFLAGS'
 
10199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10202
 
 
10203
CC="$lt_save_CC"
 
10204
 
 
10205
 
 
10206
# Check whether --with-tags was given.
 
10207
if test "${with_tags+set}" = set; then
 
10208
  withval=$with_tags; tagnames="$withval"
 
10209
fi
 
10210
 
 
10211
 
 
10212
if test -f "$ltmain" && test -n "$tagnames"; then
 
10213
  if test ! -f "${ofile}"; then
 
10214
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10215
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10216
  fi
 
10217
 
 
10218
  if test -z "$LTCC"; then
 
10219
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10220
    if test -z "$LTCC"; then
 
10221
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10222
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10223
    else
 
10224
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10225
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10226
    fi
 
10227
  fi
 
10228
  if test -z "$LTCFLAGS"; then
 
10229
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10230
  fi
 
10231
 
 
10232
  # Extract list of available tagged configurations in $ofile.
 
10233
  # Note that this assumes the entire list is on one line.
 
10234
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10235
 
 
10236
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10237
  for tagname in $tagnames; do
 
10238
    IFS="$lt_save_ifs"
 
10239
    # Check whether tagname contains only valid characters
 
10240
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10241
    "") ;;
 
10242
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10243
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10244
   { (exit 1); exit 1; }; }
 
10245
        ;;
 
10246
    esac
 
10247
 
 
10248
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10249
    then
 
10250
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10251
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10252
   { (exit 1); exit 1; }; }
 
10253
    fi
 
10254
 
 
10255
    # Update the list of available tags.
 
10256
    if test -n "$tagname"; then
 
10257
      echo appending configuration tag \"$tagname\" to $ofile
 
10258
 
 
10259
      case $tagname in
 
10260
      CXX)
 
10261
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10262
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10263
            (test "X$CXX" != "Xg++"))) ; then
 
10264
          ac_ext=cpp
 
10265
ac_cpp='$CXXCPP $CPPFLAGS'
 
10266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10269
 
 
10270
 
 
10271
 
 
10272
 
 
10273
archive_cmds_need_lc_CXX=no
 
10274
allow_undefined_flag_CXX=
 
10275
always_export_symbols_CXX=no
 
10276
archive_expsym_cmds_CXX=
 
10277
export_dynamic_flag_spec_CXX=
 
10278
hardcode_direct_CXX=no
 
10279
hardcode_libdir_flag_spec_CXX=
 
10280
hardcode_libdir_flag_spec_ld_CXX=
 
10281
hardcode_libdir_separator_CXX=
 
10282
hardcode_minus_L_CXX=no
 
10283
hardcode_shlibpath_var_CXX=unsupported
 
10284
hardcode_automatic_CXX=no
 
10285
module_cmds_CXX=
 
10286
module_expsym_cmds_CXX=
 
10287
link_all_deplibs_CXX=unknown
 
10288
old_archive_cmds_CXX=$old_archive_cmds
 
10289
no_undefined_flag_CXX=
 
10290
whole_archive_flag_spec_CXX=
 
10291
enable_shared_with_static_runtimes_CXX=no
 
10292
 
 
10293
# Dependencies to place before and after the object being linked:
 
10294
predep_objects_CXX=
 
10295
postdep_objects_CXX=
 
10296
predeps_CXX=
 
10297
postdeps_CXX=
 
10298
compiler_lib_search_path_CXX=
 
10299
 
 
10300
# Source file extension for C++ test sources.
 
10301
ac_ext=cpp
 
10302
 
 
10303
# Object file extension for compiled C++ test sources.
 
10304
objext=o
 
10305
objext_CXX=$objext
 
10306
 
 
10307
# Code to be used in simple compile tests
 
10308
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10309
 
 
10310
# Code to be used in simple link tests
 
10311
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10312
 
 
10313
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10314
 
 
10315
# If no C compiler was specified, use CC.
 
10316
LTCC=${LTCC-"$CC"}
 
10317
 
 
10318
# If no C compiler flags were specified, use CFLAGS.
 
10319
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10320
 
 
10321
# Allow CC to be a program name with arguments.
 
10322
compiler=$CC
 
10323
 
 
10324
 
 
10325
# save warnings/boilerplate of simple test code
 
10326
ac_outfile=conftest.$ac_objext
 
10327
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10328
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10329
_lt_compiler_boilerplate=`cat conftest.err`
 
10330
$rm conftest*
 
10331
 
 
10332
ac_outfile=conftest.$ac_objext
 
10333
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10334
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10335
_lt_linker_boilerplate=`cat conftest.err`
 
10336
$rm conftest*
 
10337
 
 
10338
 
 
10339
# Allow CC to be a program name with arguments.
 
10340
lt_save_CC=$CC
 
10341
lt_save_LD=$LD
 
10342
lt_save_GCC=$GCC
 
10343
GCC=$GXX
 
10344
lt_save_with_gnu_ld=$with_gnu_ld
 
10345
lt_save_path_LD=$lt_cv_path_LD
 
10346
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10347
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10348
else
 
10349
  $as_unset lt_cv_prog_gnu_ld
 
10350
fi
 
10351
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10352
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10353
else
 
10354
  $as_unset lt_cv_path_LD
 
10355
fi
 
10356
test -z "${LDCXX+set}" || LD=$LDCXX
 
10357
CC=${CXX-"c++"}
 
10358
compiler=$CC
 
10359
compiler_CXX=$CC
 
10360
for cc_temp in $compiler""; do
 
10361
  case $cc_temp in
 
10362
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10363
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10364
    \-*) ;;
 
10365
    *) break;;
 
10366
  esac
 
10367
done
 
10368
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10369
 
 
10370
 
 
10371
# We don't want -fno-exception wen compiling C++ code, so set the
 
10372
# no_builtin_flag separately
 
10373
if test "$GXX" = yes; then
 
10374
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10375
else
 
10376
  lt_prog_compiler_no_builtin_flag_CXX=
 
10377
fi
 
10378
 
 
10379
if test "$GXX" = yes; then
 
10380
  # Set up default GNU C++ configuration
 
10381
 
 
10382
 
 
10383
# Check whether --with-gnu-ld was given.
 
10384
if test "${with_gnu_ld+set}" = set; then
 
10385
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10386
else
 
10387
  with_gnu_ld=no
 
10388
fi
 
10389
 
 
10390
ac_prog=ld
 
10391
if test "$GCC" = yes; then
 
10392
  # Check if gcc -print-prog-name=ld gives a path.
 
10393
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10394
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10395
  case $host in
 
10396
  *-*-mingw*)
 
10397
    # gcc leaves a trailing carriage return which upsets mingw
 
10398
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10399
  *)
 
10400
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10401
  esac
 
10402
  case $ac_prog in
 
10403
    # Accept absolute paths.
 
10404
    [\\/]* | ?:[\\/]*)
 
10405
      re_direlt='/[^/][^/]*/\.\./'
 
10406
      # Canonicalize the pathname of ld
 
10407
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10408
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10409
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10410
      done
 
10411
      test -z "$LD" && LD="$ac_prog"
 
10412
      ;;
 
10413
  "")
 
10414
    # If it fails, then pretend we aren't using GCC.
 
10415
    ac_prog=ld
 
10416
    ;;
 
10417
  *)
 
10418
    # If it is relative, then search for the first ld in PATH.
 
10419
    with_gnu_ld=unknown
 
10420
    ;;
 
10421
  esac
 
10422
elif test "$with_gnu_ld" = yes; then
 
10423
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10424
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10425
else
 
10426
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10427
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10428
fi
 
10429
if test "${lt_cv_path_LD+set}" = set; then
 
10430
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10431
else
 
10432
  if test -z "$LD"; then
 
10433
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10434
  for ac_dir in $PATH; do
 
10435
    IFS="$lt_save_ifs"
 
10436
    test -z "$ac_dir" && ac_dir=.
 
10437
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10438
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10439
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10440
      # but apparently some variants of GNU ld only accept -v.
 
10441
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10442
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10443
      *GNU* | *'with BFD'*)
 
10444
        test "$with_gnu_ld" != no && break
 
10445
        ;;
 
10446
      *)
 
10447
        test "$with_gnu_ld" != yes && break
 
10448
        ;;
 
10449
      esac
 
10450
    fi
 
10451
  done
 
10452
  IFS="$lt_save_ifs"
 
10453
else
 
10454
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10455
fi
 
10456
fi
 
10457
 
 
10458
LD="$lt_cv_path_LD"
 
10459
if test -n "$LD"; then
 
10460
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10461
echo "${ECHO_T}$LD" >&6; }
 
10462
else
 
10463
  { echo "$as_me:$LINENO: result: no" >&5
 
10464
echo "${ECHO_T}no" >&6; }
 
10465
fi
 
10466
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10467
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10468
   { (exit 1); exit 1; }; }
 
10469
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10470
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10471
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10473
else
 
10474
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10475
case `$LD -v 2>&1 </dev/null` in
 
10476
*GNU* | *'with BFD'*)
 
10477
  lt_cv_prog_gnu_ld=yes
 
10478
  ;;
 
10479
*)
 
10480
  lt_cv_prog_gnu_ld=no
 
10481
  ;;
 
10482
esac
 
10483
fi
 
10484
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10485
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10486
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10487
 
 
10488
 
 
10489
 
 
10490
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10491
  # archiving commands below assume that GNU ld is being used.
 
10492
  if test "$with_gnu_ld" = yes; then
 
10493
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10494
    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'
 
10495
 
 
10496
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10497
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10498
 
 
10499
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10500
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10501
    #     investigate it a little bit more. (MM)
 
10502
    wlarc='${wl}'
 
10503
 
 
10504
    # ancient GNU ld didn't support --whole-archive et. al.
 
10505
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10506
        grep 'no-whole-archive' > /dev/null; then
 
10507
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10508
    else
 
10509
      whole_archive_flag_spec_CXX=
 
10510
    fi
 
10511
  else
 
10512
    with_gnu_ld=no
 
10513
    wlarc=
 
10514
 
 
10515
    # A generic and very simple default shared library creation
 
10516
    # command for GNU C++ for the case where it uses the native
 
10517
    # linker, instead of GNU ld.  If possible, this setting should
 
10518
    # overridden to take advantage of the native linker features on
 
10519
    # the platform it is being used on.
 
10520
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10521
  fi
 
10522
 
 
10523
  # Commands to make compiler produce verbose output that lists
 
10524
  # what "hidden" libraries, object files and flags are used when
 
10525
  # linking a shared library.
 
10526
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10527
 
 
10528
else
 
10529
  GXX=no
 
10530
  with_gnu_ld=no
 
10531
  wlarc=
 
10532
fi
 
10533
 
 
10534
# PORTME: fill in a description of your system's C++ link characteristics
 
10535
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10536
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10537
ld_shlibs_CXX=yes
 
10538
case $host_os in
 
10539
  aix3*)
 
10540
    # FIXME: insert proper C++ library support
 
10541
    ld_shlibs_CXX=no
 
10542
    ;;
 
10543
  aix4* | aix5*)
 
10544
    if test "$host_cpu" = ia64; then
 
10545
      # On IA64, the linker does run time linking by default, so we don't
 
10546
      # have to do anything special.
 
10547
      aix_use_runtimelinking=no
 
10548
      exp_sym_flag='-Bexport'
 
10549
      no_entry_flag=""
 
10550
    else
 
10551
      aix_use_runtimelinking=no
 
10552
 
 
10553
      # Test if we are trying to use run time linking or normal
 
10554
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10555
      # need to do runtime linking.
 
10556
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10557
        for ld_flag in $LDFLAGS; do
 
10558
          case $ld_flag in
 
10559
          *-brtl*)
 
10560
            aix_use_runtimelinking=yes
 
10561
            break
 
10562
            ;;
 
10563
          esac
 
10564
        done
 
10565
        ;;
 
10566
      esac
 
10567
 
 
10568
      exp_sym_flag='-bexport'
 
10569
      no_entry_flag='-bnoentry'
 
10570
    fi
 
10571
 
 
10572
    # When large executables or shared objects are built, AIX ld can
 
10573
    # have problems creating the table of contents.  If linking a library
 
10574
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10575
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10576
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10577
 
 
10578
    archive_cmds_CXX=''
 
10579
    hardcode_direct_CXX=yes
 
10580
    hardcode_libdir_separator_CXX=':'
 
10581
    link_all_deplibs_CXX=yes
 
10582
 
 
10583
    if test "$GXX" = yes; then
 
10584
      case $host_os in aix4.[012]|aix4.[012].*)
 
10585
      # We only want to do this on AIX 4.2 and lower, the check
 
10586
      # below for broken collect2 doesn't work under 4.3+
 
10587
        collect2name=`${CC} -print-prog-name=collect2`
 
10588
        if test -f "$collect2name" && \
 
10589
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10590
        then
 
10591
          # We have reworked collect2
 
10592
          hardcode_direct_CXX=yes
 
10593
        else
 
10594
          # We have old collect2
 
10595
          hardcode_direct_CXX=unsupported
 
10596
          # It fails to find uninstalled libraries when the uninstalled
 
10597
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10598
          # to unsupported forces relinking
 
10599
          hardcode_minus_L_CXX=yes
 
10600
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10601
          hardcode_libdir_separator_CXX=
 
10602
        fi
 
10603
        ;;
 
10604
      esac
 
10605
      shared_flag='-shared'
 
10606
      if test "$aix_use_runtimelinking" = yes; then
 
10607
        shared_flag="$shared_flag "'${wl}-G'
 
10608
      fi
 
10609
    else
 
10610
      # not using gcc
 
10611
      if test "$host_cpu" = ia64; then
 
10612
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10613
        # chokes on -Wl,-G. The following line is correct:
 
10614
        shared_flag='-G'
 
10615
      else
 
10616
        if test "$aix_use_runtimelinking" = yes; then
 
10617
          shared_flag='${wl}-G'
 
10618
        else
 
10619
          shared_flag='${wl}-bM:SRE'
 
10620
        fi
 
10621
      fi
 
10622
    fi
 
10623
 
 
10624
    # It seems that -bexpall does not export symbols beginning with
 
10625
    # underscore (_), so it is better to generate a list of symbols to export.
 
10626
    always_export_symbols_CXX=yes
 
10627
    if test "$aix_use_runtimelinking" = yes; then
 
10628
      # Warning - without using the other runtime loading flags (-brtl),
 
10629
      # -berok will link without error, but may produce a broken library.
 
10630
      allow_undefined_flag_CXX='-berok'
 
10631
      # Determine the default libpath from the value encoded in an empty executable.
 
10632
      cat >conftest.$ac_ext <<_ACEOF
 
10633
/* confdefs.h.  */
 
10634
_ACEOF
 
10635
cat confdefs.h >>conftest.$ac_ext
 
10636
cat >>conftest.$ac_ext <<_ACEOF
 
10637
/* end confdefs.h.  */
 
10638
 
 
10639
int
 
10640
main ()
 
10641
{
 
10642
 
 
10643
  ;
 
10644
  return 0;
 
10645
}
 
10646
_ACEOF
 
10647
rm -f conftest.$ac_objext conftest$ac_exeext
 
10648
if { (ac_try="$ac_link"
 
10649
case "(($ac_try" in
 
10650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10651
  *) ac_try_echo=$ac_try;;
 
10652
esac
 
10653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10654
  (eval "$ac_link") 2>conftest.er1
 
10655
  ac_status=$?
 
10656
  grep -v '^ *+' conftest.er1 >conftest.err
 
10657
  rm -f conftest.er1
 
10658
  cat conftest.err >&5
 
10659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10660
  (exit $ac_status); } && {
 
10661
         test -z "$ac_cxx_werror_flag" ||
 
10662
         test ! -s conftest.err
 
10663
       } && test -s conftest$ac_exeext &&
 
10664
       $as_test_x conftest$ac_exeext; then
 
10665
 
 
10666
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10667
}'`
 
10668
# Check for a 64-bit object if we didn't find anything.
 
10669
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10670
}'`; fi
 
10671
else
 
10672
  echo "$as_me: failed program was:" >&5
 
10673
sed 's/^/| /' conftest.$ac_ext >&5
 
10674
 
 
10675
 
 
10676
fi
 
10677
 
 
10678
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10679
      conftest$ac_exeext conftest.$ac_ext
 
10680
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10681
 
 
10682
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10683
 
 
10684
      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"
 
10685
     else
 
10686
      if test "$host_cpu" = ia64; then
 
10687
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10688
        allow_undefined_flag_CXX="-z nodefs"
 
10689
        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"
 
10690
      else
 
10691
        # Determine the default libpath from the value encoded in an empty executable.
 
10692
        cat >conftest.$ac_ext <<_ACEOF
 
10693
/* confdefs.h.  */
 
10694
_ACEOF
 
10695
cat confdefs.h >>conftest.$ac_ext
 
10696
cat >>conftest.$ac_ext <<_ACEOF
 
10697
/* end confdefs.h.  */
 
10698
 
 
10699
int
 
10700
main ()
 
10701
{
 
10702
 
 
10703
  ;
 
10704
  return 0;
 
10705
}
 
10706
_ACEOF
 
10707
rm -f conftest.$ac_objext conftest$ac_exeext
 
10708
if { (ac_try="$ac_link"
 
10709
case "(($ac_try" in
 
10710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10711
  *) ac_try_echo=$ac_try;;
 
10712
esac
 
10713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10714
  (eval "$ac_link") 2>conftest.er1
 
10715
  ac_status=$?
 
10716
  grep -v '^ *+' conftest.er1 >conftest.err
 
10717
  rm -f conftest.er1
 
10718
  cat conftest.err >&5
 
10719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10720
  (exit $ac_status); } && {
 
10721
         test -z "$ac_cxx_werror_flag" ||
 
10722
         test ! -s conftest.err
 
10723
       } && test -s conftest$ac_exeext &&
 
10724
       $as_test_x conftest$ac_exeext; then
 
10725
 
 
10726
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10727
}'`
 
10728
# Check for a 64-bit object if we didn't find anything.
 
10729
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10730
}'`; fi
 
10731
else
 
10732
  echo "$as_me: failed program was:" >&5
 
10733
sed 's/^/| /' conftest.$ac_ext >&5
 
10734
 
 
10735
 
 
10736
fi
 
10737
 
 
10738
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10739
      conftest$ac_exeext conftest.$ac_ext
 
10740
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10741
 
 
10742
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10743
        # Warning - without using the other run time loading flags,
 
10744
        # -berok will link without error, but may produce a broken library.
 
10745
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10746
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10747
        # Exported symbols can be pulled into shared objects from archives
 
10748
        whole_archive_flag_spec_CXX='$convenience'
 
10749
        archive_cmds_need_lc_CXX=yes
 
10750
        # This is similar to how AIX traditionally builds its shared libraries.
 
10751
        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'
 
10752
      fi
 
10753
    fi
 
10754
    ;;
 
10755
 
 
10756
  beos*)
 
10757
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
10758
      allow_undefined_flag_CXX=unsupported
 
10759
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10760
      # support --undefined.  This deserves some investigation.  FIXME
 
10761
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10762
    else
 
10763
      ld_shlibs_CXX=no
 
10764
    fi
 
10765
    ;;
 
10766
 
 
10767
  chorus*)
 
10768
    case $cc_basename in
 
10769
      *)
 
10770
        # FIXME: insert proper C++ library support
 
10771
        ld_shlibs_CXX=no
 
10772
        ;;
 
10773
    esac
 
10774
    ;;
 
10775
 
 
10776
  cygwin* | mingw* | pw32*)
 
10777
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10778
    # as there is no search path for DLLs.
 
10779
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10780
    allow_undefined_flag_CXX=unsupported
 
10781
    always_export_symbols_CXX=no
 
10782
    enable_shared_with_static_runtimes_CXX=yes
 
10783
 
 
10784
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10785
      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'
 
10786
      # If the export-symbols file already is a .def file (1st line
 
10787
      # is EXPORTS), use it as is; otherwise, prepend...
 
10788
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10789
        cp $export_symbols $output_objdir/$soname.def;
 
10790
      else
 
10791
        echo EXPORTS > $output_objdir/$soname.def;
 
10792
        cat $export_symbols >> $output_objdir/$soname.def;
 
10793
      fi~
 
10794
      $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'
 
10795
    else
 
10796
      ld_shlibs_CXX=no
 
10797
    fi
 
10798
  ;;
 
10799
      darwin* | rhapsody*)
 
10800
        case $host_os in
 
10801
        rhapsody* | darwin1.[012])
 
10802
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10803
         ;;
 
10804
       *) # Darwin 1.3 on
 
10805
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10806
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10807
         else
 
10808
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10809
             10.[012])
 
10810
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10811
               ;;
 
10812
             10.*)
 
10813
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10814
               ;;
 
10815
           esac
 
10816
         fi
 
10817
         ;;
 
10818
        esac
 
10819
      archive_cmds_need_lc_CXX=no
 
10820
      hardcode_direct_CXX=no
 
10821
      hardcode_automatic_CXX=yes
 
10822
      hardcode_shlibpath_var_CXX=unsupported
 
10823
      whole_archive_flag_spec_CXX=''
 
10824
      link_all_deplibs_CXX=yes
 
10825
 
 
10826
    if test "$GXX" = yes ; then
 
10827
      lt_int_apple_cc_single_mod=no
 
10828
      output_verbose_link_cmd='echo'
 
10829
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10830
       lt_int_apple_cc_single_mod=yes
 
10831
      fi
 
10832
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10833
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10834
      else
 
10835
          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'
 
10836
        fi
 
10837
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10838
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10839
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10840
            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}'
 
10841
          else
 
10842
            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}'
 
10843
          fi
 
10844
            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}'
 
10845
      else
 
10846
      case $cc_basename in
 
10847
        xlc*)
 
10848
         output_verbose_link_cmd='echo'
 
10849
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
10850
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10851
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10852
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10853
          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}'
 
10854
          ;;
 
10855
       *)
 
10856
         ld_shlibs_CXX=no
 
10857
          ;;
 
10858
      esac
 
10859
      fi
 
10860
        ;;
 
10861
 
 
10862
  dgux*)
 
10863
    case $cc_basename in
 
10864
      ec++*)
 
10865
        # FIXME: insert proper C++ library support
 
10866
        ld_shlibs_CXX=no
 
10867
        ;;
 
10868
      ghcx*)
 
10869
        # Green Hills C++ Compiler
 
10870
        # FIXME: insert proper C++ library support
 
10871
        ld_shlibs_CXX=no
 
10872
        ;;
 
10873
      *)
 
10874
        # FIXME: insert proper C++ library support
 
10875
        ld_shlibs_CXX=no
 
10876
        ;;
 
10877
    esac
 
10878
    ;;
 
10879
  freebsd[12]*)
 
10880
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10881
    ld_shlibs_CXX=no
 
10882
    ;;
 
10883
  freebsd-elf*)
 
10884
    archive_cmds_need_lc_CXX=no
 
10885
    ;;
 
10886
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10887
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10888
    # conventions
 
10889
    ld_shlibs_CXX=yes
 
10890
    ;;
 
10891
  gnu*)
 
10892
    ;;
 
10893
  hpux9*)
 
10894
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10895
    hardcode_libdir_separator_CXX=:
 
10896
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10897
    hardcode_direct_CXX=yes
 
10898
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10899
                                # but as the default
 
10900
                                # location of the library.
 
10901
 
 
10902
    case $cc_basename in
 
10903
    CC*)
 
10904
      # FIXME: insert proper C++ library support
 
10905
      ld_shlibs_CXX=no
 
10906
      ;;
 
10907
    aCC*)
 
10908
      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'
 
10909
      # Commands to make compiler produce verbose output that lists
 
10910
      # what "hidden" libraries, object files and flags are used when
 
10911
      # linking a shared library.
 
10912
      #
 
10913
      # There doesn't appear to be a way to prevent this compiler from
 
10914
      # explicitly linking system object files so we need to strip them
 
10915
      # from the output so that they don't get included in the library
 
10916
      # dependencies.
 
10917
      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'
 
10918
      ;;
 
10919
    *)
 
10920
      if test "$GXX" = yes; then
 
10921
        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'
 
10922
      else
 
10923
        # FIXME: insert proper C++ library support
 
10924
        ld_shlibs_CXX=no
 
10925
      fi
 
10926
      ;;
 
10927
    esac
 
10928
    ;;
 
10929
  hpux10*|hpux11*)
 
10930
    if test $with_gnu_ld = no; then
 
10931
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10932
      hardcode_libdir_separator_CXX=:
 
10933
 
 
10934
      case $host_cpu in
 
10935
      hppa*64*|ia64*)
 
10936
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10937
        ;;
 
10938
      *)
 
10939
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10940
        ;;
 
10941
      esac
 
10942
    fi
 
10943
    case $host_cpu in
 
10944
    hppa*64*|ia64*)
 
10945
      hardcode_direct_CXX=no
 
10946
      hardcode_shlibpath_var_CXX=no
 
10947
      ;;
 
10948
    *)
 
10949
      hardcode_direct_CXX=yes
 
10950
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10951
                                              # but as the default
 
10952
                                              # location of the library.
 
10953
      ;;
 
10954
    esac
 
10955
 
 
10956
    case $cc_basename in
 
10957
      CC*)
 
10958
        # FIXME: insert proper C++ library support
 
10959
        ld_shlibs_CXX=no
 
10960
        ;;
 
10961
      aCC*)
 
10962
        case $host_cpu in
 
10963
        hppa*64*)
 
10964
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10965
          ;;
 
10966
        ia64*)
 
10967
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10968
          ;;
 
10969
        *)
 
10970
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10971
          ;;
 
10972
        esac
 
10973
        # Commands to make compiler produce verbose output that lists
 
10974
        # what "hidden" libraries, object files and flags are used when
 
10975
        # linking a shared library.
 
10976
        #
 
10977
        # There doesn't appear to be a way to prevent this compiler from
 
10978
        # explicitly linking system object files so we need to strip them
 
10979
        # from the output so that they don't get included in the library
 
10980
        # dependencies.
 
10981
        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'
 
10982
        ;;
 
10983
      *)
 
10984
        if test "$GXX" = yes; then
 
10985
          if test $with_gnu_ld = no; then
 
10986
            case $host_cpu in
 
10987
            hppa*64*)
 
10988
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10989
              ;;
 
10990
            ia64*)
 
10991
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10992
              ;;
 
10993
            *)
 
10994
              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'
 
10995
              ;;
 
10996
            esac
 
10997
          fi
 
10998
        else
 
10999
          # FIXME: insert proper C++ library support
 
11000
          ld_shlibs_CXX=no
 
11001
        fi
 
11002
        ;;
 
11003
    esac
 
11004
    ;;
 
11005
  interix3*)
 
11006
    hardcode_direct_CXX=no
 
11007
    hardcode_shlibpath_var_CXX=no
 
11008
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11009
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11010
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11011
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11012
    # default) and relocated if they conflict, which is a slow very memory
 
11013
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11014
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11015
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11016
    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'
 
11017
    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'
 
11018
    ;;
 
11019
  irix5* | irix6*)
 
11020
    case $cc_basename in
 
11021
      CC*)
 
11022
        # SGI C++
 
11023
        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'
 
11024
 
 
11025
        # Archives containing C++ object files must be created using
 
11026
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11027
        # necessary to make sure instantiated templates are included
 
11028
        # in the archive.
 
11029
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11030
        ;;
 
11031
      *)
 
11032
        if test "$GXX" = yes; then
 
11033
          if test "$with_gnu_ld" = no; then
 
11034
            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'
 
11035
          else
 
11036
            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'
 
11037
          fi
 
11038
        fi
 
11039
        link_all_deplibs_CXX=yes
 
11040
        ;;
 
11041
    esac
 
11042
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11043
    hardcode_libdir_separator_CXX=:
 
11044
    ;;
 
11045
  linux*)
 
11046
    case $cc_basename in
 
11047
      KCC*)
 
11048
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11049
 
 
11050
        # KCC will only create a shared library if the output file
 
11051
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11052
        # to its proper name (with version) after linking.
 
11053
        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'
 
11054
        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'
 
11055
        # Commands to make compiler produce verbose output that lists
 
11056
        # what "hidden" libraries, object files and flags are used when
 
11057
        # linking a shared library.
 
11058
        #
 
11059
        # There doesn't appear to be a way to prevent this compiler from
 
11060
        # explicitly linking system object files so we need to strip them
 
11061
        # from the output so that they don't get included in the library
 
11062
        # dependencies.
 
11063
        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'
 
11064
 
 
11065
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11066
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11067
 
 
11068
        # Archives containing C++ object files must be created using
 
11069
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11070
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11071
        ;;
 
11072
      icpc*)
 
11073
        # Intel C++
 
11074
        with_gnu_ld=yes
 
11075
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11076
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11077
        # earlier do not add the objects themselves.
 
11078
        case `$CC -V 2>&1` in
 
11079
        *"Version 7."*)
 
11080
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11081
          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'
 
11082
          ;;
 
11083
        *)  # Version 8.0 or newer
 
11084
          tmp_idyn=
 
11085
          case $host_cpu in
 
11086
            ia64*) tmp_idyn=' -i_dynamic';;
 
11087
          esac
 
11088
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11089
          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'
 
11090
          ;;
 
11091
        esac
 
11092
        archive_cmds_need_lc_CXX=no
 
11093
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11094
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11095
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11096
        ;;
 
11097
      pgCC*)
 
11098
        # Portland Group C++ compiler
 
11099
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11100
        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'
 
11101
 
 
11102
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11103
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11104
        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'
 
11105
        ;;
 
11106
      cxx*)
 
11107
        # Compaq C++
 
11108
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11109
        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'
 
11110
 
 
11111
        runpath_var=LD_RUN_PATH
 
11112
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11113
        hardcode_libdir_separator_CXX=:
 
11114
 
 
11115
        # Commands to make compiler produce verbose output that lists
 
11116
        # what "hidden" libraries, object files and flags are used when
 
11117
        # linking a shared library.
 
11118
        #
 
11119
        # There doesn't appear to be a way to prevent this compiler from
 
11120
        # explicitly linking system object files so we need to strip them
 
11121
        # from the output so that they don't get included in the library
 
11122
        # dependencies.
 
11123
        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'
 
11124
        ;;
 
11125
    esac
 
11126
    ;;
 
11127
  lynxos*)
 
11128
    # FIXME: insert proper C++ library support
 
11129
    ld_shlibs_CXX=no
 
11130
    ;;
 
11131
  m88k*)
 
11132
    # FIXME: insert proper C++ library support
 
11133
    ld_shlibs_CXX=no
 
11134
    ;;
 
11135
  mvs*)
 
11136
    case $cc_basename in
 
11137
      cxx*)
 
11138
        # FIXME: insert proper C++ library support
 
11139
        ld_shlibs_CXX=no
 
11140
        ;;
 
11141
      *)
 
11142
        # FIXME: insert proper C++ library support
 
11143
        ld_shlibs_CXX=no
 
11144
        ;;
 
11145
    esac
 
11146
    ;;
 
11147
  netbsd*)
 
11148
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11149
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11150
      wlarc=
 
11151
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11152
      hardcode_direct_CXX=yes
 
11153
      hardcode_shlibpath_var_CXX=no
 
11154
    fi
 
11155
    # Workaround some broken pre-1.5 toolchains
 
11156
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11157
    ;;
 
11158
  openbsd2*)
 
11159
    # C++ shared libraries are fairly broken
 
11160
    ld_shlibs_CXX=no
 
11161
    ;;
 
11162
  openbsd*)
 
11163
    hardcode_direct_CXX=yes
 
11164
    hardcode_shlibpath_var_CXX=no
 
11165
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11166
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11167
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11168
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11169
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11170
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11171
    fi
 
11172
    output_verbose_link_cmd='echo'
 
11173
    ;;
 
11174
  osf3*)
 
11175
    case $cc_basename in
 
11176
      KCC*)
 
11177
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11178
 
 
11179
        # KCC will only create a shared library if the output file
 
11180
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11181
        # to its proper name (with version) after linking.
 
11182
        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'
 
11183
 
 
11184
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11185
        hardcode_libdir_separator_CXX=:
 
11186
 
 
11187
        # Archives containing C++ object files must be created using
 
11188
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11189
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11190
 
 
11191
        ;;
 
11192
      RCC*)
 
11193
        # Rational C++ 2.4.1
 
11194
        # FIXME: insert proper C++ library support
 
11195
        ld_shlibs_CXX=no
 
11196
        ;;
 
11197
      cxx*)
 
11198
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11199
        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'
 
11200
 
 
11201
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11202
        hardcode_libdir_separator_CXX=:
 
11203
 
 
11204
        # Commands to make compiler produce verbose output that lists
 
11205
        # what "hidden" libraries, object files and flags are used when
 
11206
        # linking a shared library.
 
11207
        #
 
11208
        # There doesn't appear to be a way to prevent this compiler from
 
11209
        # explicitly linking system object files so we need to strip them
 
11210
        # from the output so that they don't get included in the library
 
11211
        # dependencies.
 
11212
        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'
 
11213
        ;;
 
11214
      *)
 
11215
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11216
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11217
          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'
 
11218
 
 
11219
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11220
          hardcode_libdir_separator_CXX=:
 
11221
 
 
11222
          # Commands to make compiler produce verbose output that lists
 
11223
          # what "hidden" libraries, object files and flags are used when
 
11224
          # linking a shared library.
 
11225
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11226
 
 
11227
        else
 
11228
          # FIXME: insert proper C++ library support
 
11229
          ld_shlibs_CXX=no
 
11230
        fi
 
11231
        ;;
 
11232
    esac
 
11233
    ;;
 
11234
  osf4* | osf5*)
 
11235
    case $cc_basename in
 
11236
      KCC*)
 
11237
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11238
 
 
11239
        # KCC will only create a shared library if the output file
 
11240
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11241
        # to its proper name (with version) after linking.
 
11242
        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'
 
11243
 
 
11244
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11245
        hardcode_libdir_separator_CXX=:
 
11246
 
 
11247
        # Archives containing C++ object files must be created using
 
11248
        # the KAI C++ compiler.
 
11249
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11250
        ;;
 
11251
      RCC*)
 
11252
        # Rational C++ 2.4.1
 
11253
        # FIXME: insert proper C++ library support
 
11254
        ld_shlibs_CXX=no
 
11255
        ;;
 
11256
      cxx*)
 
11257
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11258
        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'
 
11259
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11260
          echo "-hidden">> $lib.exp~
 
11261
          $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~
 
11262
          $rm $lib.exp'
 
11263
 
 
11264
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11265
        hardcode_libdir_separator_CXX=:
 
11266
 
 
11267
        # Commands to make compiler produce verbose output that lists
 
11268
        # what "hidden" libraries, object files and flags are used when
 
11269
        # linking a shared library.
 
11270
        #
 
11271
        # There doesn't appear to be a way to prevent this compiler from
 
11272
        # explicitly linking system object files so we need to strip them
 
11273
        # from the output so that they don't get included in the library
 
11274
        # dependencies.
 
11275
        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'
 
11276
        ;;
 
11277
      *)
 
11278
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11279
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11280
         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'
 
11281
 
 
11282
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11283
          hardcode_libdir_separator_CXX=:
 
11284
 
 
11285
          # Commands to make compiler produce verbose output that lists
 
11286
          # what "hidden" libraries, object files and flags are used when
 
11287
          # linking a shared library.
 
11288
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11289
 
 
11290
        else
 
11291
          # FIXME: insert proper C++ library support
 
11292
          ld_shlibs_CXX=no
 
11293
        fi
 
11294
        ;;
 
11295
    esac
 
11296
    ;;
 
11297
  psos*)
 
11298
    # FIXME: insert proper C++ library support
 
11299
    ld_shlibs_CXX=no
 
11300
    ;;
 
11301
  sunos4*)
 
11302
    case $cc_basename in
 
11303
      CC*)
 
11304
        # Sun C++ 4.x
 
11305
        # FIXME: insert proper C++ library support
 
11306
        ld_shlibs_CXX=no
 
11307
        ;;
 
11308
      lcc*)
 
11309
        # Lucid
 
11310
        # FIXME: insert proper C++ library support
 
11311
        ld_shlibs_CXX=no
 
11312
        ;;
 
11313
      *)
 
11314
        # FIXME: insert proper C++ library support
 
11315
        ld_shlibs_CXX=no
 
11316
        ;;
 
11317
    esac
 
11318
    ;;
 
11319
  solaris*)
 
11320
    case $cc_basename in
 
11321
      CC*)
 
11322
        # Sun C++ 4.2, 5.x and Centerline C++
 
11323
        archive_cmds_need_lc_CXX=yes
 
11324
        no_undefined_flag_CXX=' -zdefs'
 
11325
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11326
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11327
        $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'
 
11328
 
 
11329
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11330
        hardcode_shlibpath_var_CXX=no
 
11331
        case $host_os in
 
11332
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11333
          *)
 
11334
            # The C++ compiler is used as linker so we must use $wl
 
11335
            # flag to pass the commands to the underlying system
 
11336
            # linker. We must also pass each convience library through
 
11337
            # to the system linker between allextract/defaultextract.
 
11338
            # The C++ compiler will combine linker options so we
 
11339
            # cannot just pass the convience library names through
 
11340
            # without $wl.
 
11341
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11342
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
11343
            ;;
 
11344
        esac
 
11345
        link_all_deplibs_CXX=yes
 
11346
 
 
11347
        output_verbose_link_cmd='echo'
 
11348
 
 
11349
        # Archives containing C++ object files must be created using
 
11350
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11351
        # necessary to make sure instantiated templates are included
 
11352
        # in the archive.
 
11353
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11354
        ;;
 
11355
      gcx*)
 
11356
        # Green Hills C++ Compiler
 
11357
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11358
 
 
11359
        # The C++ compiler must be used to create the archive.
 
11360
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11361
        ;;
 
11362
      *)
 
11363
        # GNU C++ compiler with Solaris linker
 
11364
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11365
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11366
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11367
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11368
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11369
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11370
 
 
11371
            # Commands to make compiler produce verbose output that lists
 
11372
            # what "hidden" libraries, object files and flags are used when
 
11373
            # linking a shared library.
 
11374
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11375
          else
 
11376
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11377
            # platform.
 
11378
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11379
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11380
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11381
 
 
11382
            # Commands to make compiler produce verbose output that lists
 
11383
            # what "hidden" libraries, object files and flags are used when
 
11384
            # linking a shared library.
 
11385
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11386
          fi
 
11387
 
 
11388
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11389
        fi
 
11390
        ;;
 
11391
    esac
 
11392
    ;;
 
11393
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11394
    no_undefined_flag_CXX='${wl}-z,text'
 
11395
    archive_cmds_need_lc_CXX=no
 
11396
    hardcode_shlibpath_var_CXX=no
 
11397
    runpath_var='LD_RUN_PATH'
 
11398
 
 
11399
    case $cc_basename in
 
11400
      CC*)
 
11401
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11402
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11403
        ;;
 
11404
      *)
 
11405
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11406
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11407
        ;;
 
11408
    esac
 
11409
    ;;
 
11410
  sysv5* | sco3.2v5* | sco5v6*)
 
11411
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11412
    # link with -lc, and that would cause any symbols used from libc to
 
11413
    # always be unresolved, which means just about no library would
 
11414
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11415
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11416
    # as -z defs.
 
11417
    # For security reasons, it is highly recommended that you always
 
11418
    # use absolute paths for naming shared libraries, and exclude the
 
11419
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11420
    # requires that you compile everything twice, which is a pain.
 
11421
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11422
    # non-empty value in the environment.  Most likely only useful for
 
11423
    # creating official distributions of packages.
 
11424
    # This is a hack until libtool officially supports absolute path
 
11425
    # names for shared libraries.
 
11426
    no_undefined_flag_CXX='${wl}-z,text'
 
11427
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11428
    archive_cmds_need_lc_CXX=no
 
11429
    hardcode_shlibpath_var_CXX=no
 
11430
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11431
    hardcode_libdir_separator_CXX=':'
 
11432
    link_all_deplibs_CXX=yes
 
11433
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11434
    runpath_var='LD_RUN_PATH'
 
11435
 
 
11436
    case $cc_basename in
 
11437
      CC*)
 
11438
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11439
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11440
        ;;
 
11441
      *)
 
11442
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11443
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11444
        ;;
 
11445
    esac
 
11446
    ;;
 
11447
  tandem*)
 
11448
    case $cc_basename in
 
11449
      NCC*)
 
11450
        # NonStop-UX NCC 3.20
 
11451
        # FIXME: insert proper C++ library support
 
11452
        ld_shlibs_CXX=no
 
11453
        ;;
 
11454
      *)
 
11455
        # FIXME: insert proper C++ library support
 
11456
        ld_shlibs_CXX=no
 
11457
        ;;
 
11458
    esac
 
11459
    ;;
 
11460
  vxworks*)
 
11461
    # FIXME: insert proper C++ library support
 
11462
    ld_shlibs_CXX=no
 
11463
    ;;
 
11464
  *)
 
11465
    # FIXME: insert proper C++ library support
 
11466
    ld_shlibs_CXX=no
 
11467
    ;;
 
11468
esac
 
11469
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11470
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11471
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11472
 
 
11473
GCC_CXX="$GXX"
 
11474
LD_CXX="$LD"
 
11475
 
 
11476
 
 
11477
cat > conftest.$ac_ext <<EOF
 
11478
class Foo
 
11479
{
 
11480
public:
 
11481
  Foo (void) { a = 0; }
 
11482
private:
 
11483
  int a;
 
11484
};
 
11485
EOF
 
11486
 
 
11487
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11488
  (eval $ac_compile) 2>&5
 
11489
  ac_status=$?
 
11490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11491
  (exit $ac_status); }; then
 
11492
  # Parse the compiler output and extract the necessary
 
11493
  # objects, libraries and library flags.
 
11494
 
 
11495
  # Sentinel used to keep track of whether or not we are before
 
11496
  # the conftest object file.
 
11497
  pre_test_object_deps_done=no
 
11498
 
 
11499
  # The `*' in the case matches for architectures that use `case' in
 
11500
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11501
  # eval without this substitution.
 
11502
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11503
 
 
11504
  for p in `eval $output_verbose_link_cmd`; do
 
11505
    case $p in
 
11506
 
 
11507
    -L* | -R* | -l*)
 
11508
       # Some compilers place space between "-{L,R}" and the path.
 
11509
       # Remove the space.
 
11510
       if test $p = "-L" \
 
11511
          || test $p = "-R"; then
 
11512
         prev=$p
 
11513
         continue
 
11514
       else
 
11515
         prev=
 
11516
       fi
 
11517
 
 
11518
       if test "$pre_test_object_deps_done" = no; then
 
11519
         case $p in
 
11520
         -L* | -R*)
 
11521
           # Internal compiler library paths should come after those
 
11522
           # provided the user.  The postdeps already come after the
 
11523
           # user supplied libs so there is no need to process them.
 
11524
           if test -z "$compiler_lib_search_path_CXX"; then
 
11525
             compiler_lib_search_path_CXX="${prev}${p}"
 
11526
           else
 
11527
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11528
           fi
 
11529
           ;;
 
11530
         # The "-l" case would never come before the object being
 
11531
         # linked, so don't bother handling this case.
 
11532
         esac
 
11533
       else
 
11534
         if test -z "$postdeps_CXX"; then
 
11535
           postdeps_CXX="${prev}${p}"
 
11536
         else
 
11537
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11538
         fi
 
11539
       fi
 
11540
       ;;
 
11541
 
 
11542
    *.$objext)
 
11543
       # This assumes that the test object file only shows up
 
11544
       # once in the compiler output.
 
11545
       if test "$p" = "conftest.$objext"; then
 
11546
         pre_test_object_deps_done=yes
 
11547
         continue
 
11548
       fi
 
11549
 
 
11550
       if test "$pre_test_object_deps_done" = no; then
 
11551
         if test -z "$predep_objects_CXX"; then
 
11552
           predep_objects_CXX="$p"
 
11553
         else
 
11554
           predep_objects_CXX="$predep_objects_CXX $p"
 
11555
         fi
 
11556
       else
 
11557
         if test -z "$postdep_objects_CXX"; then
 
11558
           postdep_objects_CXX="$p"
 
11559
         else
 
11560
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11561
         fi
 
11562
       fi
 
11563
       ;;
 
11564
 
 
11565
    *) ;; # Ignore the rest.
 
11566
 
 
11567
    esac
 
11568
  done
 
11569
 
 
11570
  # Clean up.
 
11571
  rm -f a.out a.exe
 
11572
else
 
11573
  echo "libtool.m4: error: problem compiling CXX test program"
 
11574
fi
 
11575
 
 
11576
$rm -f confest.$objext
 
11577
 
 
11578
# PORTME: override above test on systems where it is broken
 
11579
case $host_os in
 
11580
interix3*)
 
11581
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11582
  # hack all around it, let's just trust "g++" to DTRT.
 
11583
  predep_objects_CXX=
 
11584
  postdep_objects_CXX=
 
11585
  postdeps_CXX=
 
11586
  ;;
 
11587
 
 
11588
solaris*)
 
11589
  case $cc_basename in
 
11590
  CC*)
 
11591
    # Adding this requires a known-good setup of shared libraries for
 
11592
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11593
    # archive will be linked into the output, leading to subtle bugs.
 
11594
    postdeps_CXX='-lCstd -lCrun'
 
11595
    ;;
 
11596
  esac
 
11597
  ;;
 
11598
esac
 
11599
 
 
11600
 
 
11601
case " $postdeps_CXX " in
 
11602
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11603
esac
 
11604
 
 
11605
lt_prog_compiler_wl_CXX=
 
11606
lt_prog_compiler_pic_CXX=
 
11607
lt_prog_compiler_static_CXX=
 
11608
 
 
11609
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11610
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
11611
 
 
11612
  # C++ specific cases for pic, static, wl, etc.
 
11613
  if test "$GXX" = yes; then
 
11614
    lt_prog_compiler_wl_CXX='-Wl,'
 
11615
    lt_prog_compiler_static_CXX='-static'
 
11616
 
 
11617
    case $host_os in
 
11618
    aix*)
 
11619
      # All AIX code is PIC.
 
11620
      if test "$host_cpu" = ia64; then
 
11621
        # AIX 5 now supports IA64 processor
 
11622
        lt_prog_compiler_static_CXX='-Bstatic'
 
11623
      fi
 
11624
      ;;
 
11625
    amigaos*)
 
11626
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11627
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11628
      # like `-m68040'.
 
11629
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11630
      ;;
 
11631
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11632
      # PIC is the default for these OSes.
 
11633
      ;;
 
11634
    mingw* | os2* | pw32*)
 
11635
      # This hack is so that the source file can tell whether it is being
 
11636
      # built for inclusion in a dll (and should export symbols for example).
 
11637
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11638
      ;;
 
11639
    darwin* | rhapsody*)
 
11640
      # PIC is the default on this platform
 
11641
      # Common symbols not allowed in MH_DYLIB files
 
11642
      lt_prog_compiler_pic_CXX='-fno-common'
 
11643
      ;;
 
11644
    *djgpp*)
 
11645
      # DJGPP does not support shared libraries at all
 
11646
      lt_prog_compiler_pic_CXX=
 
11647
      ;;
 
11648
    interix3*)
 
11649
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
11650
      # Instead, we relocate shared libraries at runtime.
 
11651
      ;;
 
11652
    sysv4*MP*)
 
11653
      if test -d /usr/nec; then
 
11654
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11655
      fi
 
11656
      ;;
 
11657
    hpux*)
 
11658
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11659
      # not for PA HP-UX.
 
11660
      case $host_cpu in
 
11661
      hppa*64*|ia64*)
 
11662
        ;;
 
11663
      *)
 
11664
        lt_prog_compiler_pic_CXX='-fPIC'
 
11665
        ;;
 
11666
      esac
 
11667
      ;;
 
11668
    *)
 
11669
      lt_prog_compiler_pic_CXX='-fPIC'
 
11670
      ;;
 
11671
    esac
 
11672
  else
 
11673
    case $host_os in
 
11674
      aix4* | aix5*)
 
11675
        # All AIX code is PIC.
 
11676
        if test "$host_cpu" = ia64; then
 
11677
          # AIX 5 now supports IA64 processor
 
11678
          lt_prog_compiler_static_CXX='-Bstatic'
 
11679
        else
 
11680
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11681
        fi
 
11682
        ;;
 
11683
      chorus*)
 
11684
        case $cc_basename in
 
11685
        cxch68*)
 
11686
          # Green Hills C++ Compiler
 
11687
          # _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"
 
11688
          ;;
 
11689
        esac
 
11690
        ;;
 
11691
       darwin*)
 
11692
         # PIC is the default on this platform
 
11693
         # Common symbols not allowed in MH_DYLIB files
 
11694
         case $cc_basename in
 
11695
           xlc*)
 
11696
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11697
           lt_prog_compiler_wl_CXX='-Wl,'
 
11698
           ;;
 
11699
         esac
 
11700
       ;;
 
11701
      dgux*)
 
11702
        case $cc_basename in
 
11703
          ec++*)
 
11704
            lt_prog_compiler_pic_CXX='-KPIC'
 
11705
            ;;
 
11706
          ghcx*)
 
11707
            # Green Hills C++ Compiler
 
11708
            lt_prog_compiler_pic_CXX='-pic'
 
11709
            ;;
 
11710
          *)
 
11711
            ;;
 
11712
        esac
 
11713
        ;;
 
11714
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11715
        # FreeBSD uses GNU C++
 
11716
        ;;
 
11717
      hpux9* | hpux10* | hpux11*)
 
11718
        case $cc_basename in
 
11719
          CC*)
 
11720
            lt_prog_compiler_wl_CXX='-Wl,'
 
11721
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11722
            if test "$host_cpu" != ia64; then
 
11723
              lt_prog_compiler_pic_CXX='+Z'
 
11724
            fi
 
11725
            ;;
 
11726
          aCC*)
 
11727
            lt_prog_compiler_wl_CXX='-Wl,'
 
11728
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
11729
            case $host_cpu in
 
11730
            hppa*64*|ia64*)
 
11731
              # +Z the default
 
11732
              ;;
 
11733
            *)
 
11734
              lt_prog_compiler_pic_CXX='+Z'
 
11735
              ;;
 
11736
            esac
 
11737
            ;;
 
11738
          *)
 
11739
            ;;
 
11740
        esac
 
11741
        ;;
 
11742
      interix*)
 
11743
        # This is c89, which is MS Visual C++ (no shared libs)
 
11744
        # Anyone wants to do a port?
 
11745
        ;;
 
11746
      irix5* | irix6* | nonstopux*)
 
11747
        case $cc_basename in
 
11748
          CC*)
 
11749
            lt_prog_compiler_wl_CXX='-Wl,'
 
11750
            lt_prog_compiler_static_CXX='-non_shared'
 
11751
            # CC pic flag -KPIC is the default.
 
11752
            ;;
 
11753
          *)
 
11754
            ;;
 
11755
        esac
 
11756
        ;;
 
11757
      linux*)
 
11758
        case $cc_basename in
 
11759
          KCC*)
 
11760
            # KAI C++ Compiler
 
11761
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11762
            lt_prog_compiler_pic_CXX='-fPIC'
 
11763
            ;;
 
11764
          icpc* | ecpc*)
 
11765
            # Intel C++
 
11766
            lt_prog_compiler_wl_CXX='-Wl,'
 
11767
            lt_prog_compiler_pic_CXX='-KPIC'
 
11768
            lt_prog_compiler_static_CXX='-static'
 
11769
            ;;
 
11770
          pgCC*)
 
11771
            # Portland Group C++ compiler.
 
11772
            lt_prog_compiler_wl_CXX='-Wl,'
 
11773
            lt_prog_compiler_pic_CXX='-fpic'
 
11774
            lt_prog_compiler_static_CXX='-Bstatic'
 
11775
            ;;
 
11776
          cxx*)
 
11777
            # Compaq C++
 
11778
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11779
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11780
            lt_prog_compiler_pic_CXX=
 
11781
            lt_prog_compiler_static_CXX='-non_shared'
 
11782
            ;;
 
11783
          *)
 
11784
            ;;
 
11785
        esac
 
11786
        ;;
 
11787
      lynxos*)
 
11788
        ;;
 
11789
      m88k*)
 
11790
        ;;
 
11791
      mvs*)
 
11792
        case $cc_basename in
 
11793
          cxx*)
 
11794
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11795
            ;;
 
11796
          *)
 
11797
            ;;
 
11798
        esac
 
11799
        ;;
 
11800
      netbsd*)
 
11801
        ;;
 
11802
      osf3* | osf4* | osf5*)
 
11803
        case $cc_basename in
 
11804
          KCC*)
 
11805
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11806
            ;;
 
11807
          RCC*)
 
11808
            # Rational C++ 2.4.1
 
11809
            lt_prog_compiler_pic_CXX='-pic'
 
11810
            ;;
 
11811
          cxx*)
 
11812
            # Digital/Compaq C++
 
11813
            lt_prog_compiler_wl_CXX='-Wl,'
 
11814
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11815
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11816
            lt_prog_compiler_pic_CXX=
 
11817
            lt_prog_compiler_static_CXX='-non_shared'
 
11818
            ;;
 
11819
          *)
 
11820
            ;;
 
11821
        esac
 
11822
        ;;
 
11823
      psos*)
 
11824
        ;;
 
11825
      solaris*)
 
11826
        case $cc_basename in
 
11827
          CC*)
 
11828
            # Sun C++ 4.2, 5.x and Centerline C++
 
11829
            lt_prog_compiler_pic_CXX='-KPIC'
 
11830
            lt_prog_compiler_static_CXX='-Bstatic'
 
11831
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11832
            ;;
 
11833
          gcx*)
 
11834
            # Green Hills C++ Compiler
 
11835
            lt_prog_compiler_pic_CXX='-PIC'
 
11836
            ;;
 
11837
          *)
 
11838
            ;;
 
11839
        esac
 
11840
        ;;
 
11841
      sunos4*)
 
11842
        case $cc_basename in
 
11843
          CC*)
 
11844
            # Sun C++ 4.x
 
11845
            lt_prog_compiler_pic_CXX='-pic'
 
11846
            lt_prog_compiler_static_CXX='-Bstatic'
 
11847
            ;;
 
11848
          lcc*)
 
11849
            # Lucid
 
11850
            lt_prog_compiler_pic_CXX='-pic'
 
11851
            ;;
 
11852
          *)
 
11853
            ;;
 
11854
        esac
 
11855
        ;;
 
11856
      tandem*)
 
11857
        case $cc_basename in
 
11858
          NCC*)
 
11859
            # NonStop-UX NCC 3.20
 
11860
            lt_prog_compiler_pic_CXX='-KPIC'
 
11861
            ;;
 
11862
          *)
 
11863
            ;;
 
11864
        esac
 
11865
        ;;
 
11866
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
11867
        case $cc_basename in
 
11868
          CC*)
 
11869
            lt_prog_compiler_wl_CXX='-Wl,'
 
11870
            lt_prog_compiler_pic_CXX='-KPIC'
 
11871
            lt_prog_compiler_static_CXX='-Bstatic'
 
11872
            ;;
 
11873
        esac
 
11874
        ;;
 
11875
      vxworks*)
 
11876
        ;;
 
11877
      *)
 
11878
        lt_prog_compiler_can_build_shared_CXX=no
 
11879
        ;;
 
11880
    esac
 
11881
  fi
 
11882
 
 
11883
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11884
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
11885
 
 
11886
#
 
11887
# Check to make sure the PIC flag actually works.
 
11888
#
 
11889
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11890
 
 
11891
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11892
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
11893
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11895
else
 
11896
  lt_prog_compiler_pic_works_CXX=no
 
11897
  ac_outfile=conftest.$ac_objext
 
11898
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11899
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11900
   # Insert the option either (1) after the last *FLAGS variable, or
 
11901
   # (2) before a word containing "conftest.", or (3) at the end.
 
11902
   # Note that $ac_compile itself does not contain backslashes and begins
 
11903
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11904
   # The option is referenced via a variable to avoid confusing sed.
 
11905
   lt_compile=`echo "$ac_compile" | $SED \
 
11906
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11907
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11908
   -e 's:$: $lt_compiler_flag:'`
 
11909
   (eval echo "\"\$as_me:11909: $lt_compile\"" >&5)
 
11910
   (eval "$lt_compile" 2>conftest.err)
 
11911
   ac_status=$?
 
11912
   cat conftest.err >&5
 
11913
   echo "$as_me:11913: \$? = $ac_status" >&5
 
11914
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11915
     # The compiler can only warn and ignore the option if not recognized
 
11916
     # So say no if there are warnings other than the usual output.
 
11917
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
11918
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11919
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
11920
       lt_prog_compiler_pic_works_CXX=yes
 
11921
     fi
 
11922
   fi
 
11923
   $rm conftest*
 
11924
 
 
11925
fi
 
11926
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11927
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
11928
 
 
11929
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11930
    case $lt_prog_compiler_pic_CXX in
 
11931
     "" | " "*) ;;
 
11932
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11933
     esac
 
11934
else
 
11935
    lt_prog_compiler_pic_CXX=
 
11936
     lt_prog_compiler_can_build_shared_CXX=no
 
11937
fi
 
11938
 
 
11939
fi
 
11940
case $host_os in
 
11941
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11942
  *djgpp*)
 
11943
    lt_prog_compiler_pic_CXX=
 
11944
    ;;
 
11945
  *)
 
11946
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11947
    ;;
 
11948
esac
 
11949
 
 
11950
#
 
11951
# Check to make sure the static flag actually works.
 
11952
#
 
11953
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
11954
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
11955
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
11956
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
11957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11958
else
 
11959
  lt_prog_compiler_static_works_CXX=no
 
11960
   save_LDFLAGS="$LDFLAGS"
 
11961
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
11962
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
11963
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
11964
     # The linker can only warn and ignore the option if not recognized
 
11965
     # So say no if there are warnings
 
11966
     if test -s conftest.err; then
 
11967
       # Append any errors to the config.log.
 
11968
       cat conftest.err 1>&5
 
11969
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
11970
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
11971
       if diff conftest.exp conftest.er2 >/dev/null; then
 
11972
         lt_prog_compiler_static_works_CXX=yes
 
11973
       fi
 
11974
     else
 
11975
       lt_prog_compiler_static_works_CXX=yes
 
11976
     fi
 
11977
   fi
 
11978
   $rm conftest*
 
11979
   LDFLAGS="$save_LDFLAGS"
 
11980
 
 
11981
fi
 
11982
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
11983
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
11984
 
 
11985
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
11986
    :
 
11987
else
 
11988
    lt_prog_compiler_static_CXX=
 
11989
fi
 
11990
 
 
11991
 
 
11992
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11993
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
11994
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11995
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11996
else
 
11997
  lt_cv_prog_compiler_c_o_CXX=no
 
11998
   $rm -r conftest 2>/dev/null
 
11999
   mkdir conftest
 
12000
   cd conftest
 
12001
   mkdir out
 
12002
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12003
 
 
12004
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12005
   # Insert the option either (1) after the last *FLAGS variable, or
 
12006
   # (2) before a word containing "conftest.", or (3) at the end.
 
12007
   # Note that $ac_compile itself does not contain backslashes and begins
 
12008
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12009
   lt_compile=`echo "$ac_compile" | $SED \
 
12010
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12011
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12012
   -e 's:$: $lt_compiler_flag:'`
 
12013
   (eval echo "\"\$as_me:12013: $lt_compile\"" >&5)
 
12014
   (eval "$lt_compile" 2>out/conftest.err)
 
12015
   ac_status=$?
 
12016
   cat out/conftest.err >&5
 
12017
   echo "$as_me:12017: \$? = $ac_status" >&5
 
12018
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12019
   then
 
12020
     # The compiler can only warn and ignore the option if not recognized
 
12021
     # So say no if there are warnings
 
12022
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12023
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12024
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12025
       lt_cv_prog_compiler_c_o_CXX=yes
 
12026
     fi
 
12027
   fi
 
12028
   chmod u+w . 2>&5
 
12029
   $rm conftest*
 
12030
   # SGI C++ compiler will create directory out/ii_files/ for
 
12031
   # template instantiation
 
12032
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12033
   $rm out/* && rmdir out
 
12034
   cd ..
 
12035
   rmdir conftest
 
12036
   $rm conftest*
 
12037
 
 
12038
fi
 
12039
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12040
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12041
 
 
12042
 
 
12043
hard_links="nottested"
 
12044
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12045
  # do not overwrite the value of need_locks provided by the user
 
12046
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12047
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12048
  hard_links=yes
 
12049
  $rm conftest*
 
12050
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12051
  touch conftest.a
 
12052
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12053
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12054
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12055
echo "${ECHO_T}$hard_links" >&6; }
 
12056
  if test "$hard_links" = no; then
 
12057
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12058
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12059
    need_locks=warn
 
12060
  fi
 
12061
else
 
12062
  need_locks=no
 
12063
fi
 
12064
 
 
12065
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12066
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12067
 
 
12068
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12069
  case $host_os in
 
12070
  aix4* | aix5*)
 
12071
    # If we're using GNU nm, then we don't want the "-C" option.
 
12072
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12073
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12074
      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'
 
12075
    else
 
12076
      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'
 
12077
    fi
 
12078
    ;;
 
12079
  pw32*)
 
12080
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12081
  ;;
 
12082
  cygwin* | mingw*)
 
12083
    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'
 
12084
  ;;
 
12085
  *)
 
12086
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12087
  ;;
 
12088
  esac
 
12089
 
 
12090
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12091
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12092
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12093
 
 
12094
#
 
12095
# Do we need to explicitly link libc?
 
12096
#
 
12097
case "x$archive_cmds_need_lc_CXX" in
 
12098
x|xyes)
 
12099
  # Assume -lc should be added
 
12100
  archive_cmds_need_lc_CXX=yes
 
12101
 
 
12102
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12103
    case $archive_cmds_CXX in
 
12104
    *'~'*)
 
12105
      # FIXME: we may have to deal with multi-command sequences.
 
12106
      ;;
 
12107
    '$CC '*)
 
12108
      # Test whether the compiler implicitly links with -lc since on some
 
12109
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12110
      # to ld, don't add -lc before -lgcc.
 
12111
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12112
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12113
      $rm conftest*
 
12114
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12115
 
 
12116
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12117
  (eval $ac_compile) 2>&5
 
12118
  ac_status=$?
 
12119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12120
  (exit $ac_status); } 2>conftest.err; then
 
12121
        soname=conftest
 
12122
        lib=conftest
 
12123
        libobjs=conftest.$ac_objext
 
12124
        deplibs=
 
12125
        wl=$lt_prog_compiler_wl_CXX
 
12126
        pic_flag=$lt_prog_compiler_pic_CXX
 
12127
        compiler_flags=-v
 
12128
        linker_flags=-v
 
12129
        verstring=
 
12130
        output_objdir=.
 
12131
        libname=conftest
 
12132
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12133
        allow_undefined_flag_CXX=
 
12134
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12135
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12136
  ac_status=$?
 
12137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12138
  (exit $ac_status); }
 
12139
        then
 
12140
          archive_cmds_need_lc_CXX=no
 
12141
        else
 
12142
          archive_cmds_need_lc_CXX=yes
 
12143
        fi
 
12144
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12145
      else
 
12146
        cat conftest.err 1>&5
 
12147
      fi
 
12148
      $rm conftest*
 
12149
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12150
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12151
      ;;
 
12152
    esac
 
12153
  fi
 
12154
  ;;
 
12155
esac
 
12156
 
 
12157
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12158
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12159
library_names_spec=
 
12160
libname_spec='lib$name'
 
12161
soname_spec=
 
12162
shrext_cmds=".so"
 
12163
postinstall_cmds=
 
12164
postuninstall_cmds=
 
12165
finish_cmds=
 
12166
finish_eval=
 
12167
shlibpath_var=
 
12168
shlibpath_overrides_runpath=unknown
 
12169
version_type=none
 
12170
dynamic_linker="$host_os ld.so"
 
12171
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12172
if test "$GCC" = yes; then
 
12173
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12174
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12175
    # if the path contains ";" then we assume it to be the separator
 
12176
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12177
    # assumed that no part of a normal pathname contains ";" but that should
 
12178
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12179
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12180
  else
 
12181
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12182
  fi
 
12183
else
 
12184
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12185
fi
 
12186
need_lib_prefix=unknown
 
12187
hardcode_into_libs=no
 
12188
 
 
12189
# when you set need_version to no, make sure it does not cause -set_version
 
12190
# flags to be left without arguments
 
12191
need_version=unknown
 
12192
 
 
12193
case $host_os in
 
12194
aix3*)
 
12195
  version_type=linux
 
12196
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12197
  shlibpath_var=LIBPATH
 
12198
 
 
12199
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12200
  soname_spec='${libname}${release}${shared_ext}$major'
 
12201
  ;;
 
12202
 
 
12203
aix4* | aix5*)
 
12204
  version_type=linux
 
12205
  need_lib_prefix=no
 
12206
  need_version=no
 
12207
  hardcode_into_libs=yes
 
12208
  if test "$host_cpu" = ia64; then
 
12209
    # AIX 5 supports IA64
 
12210
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12211
    shlibpath_var=LD_LIBRARY_PATH
 
12212
  else
 
12213
    # With GCC up to 2.95.x, collect2 would create an import file
 
12214
    # for dependence libraries.  The import file would start with
 
12215
    # the line `#! .'.  This would cause the generated library to
 
12216
    # depend on `.', always an invalid library.  This was fixed in
 
12217
    # development snapshots of GCC prior to 3.0.
 
12218
    case $host_os in
 
12219
      aix4 | aix4.[01] | aix4.[01].*)
 
12220
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12221
           echo ' yes '
 
12222
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12223
        :
 
12224
      else
 
12225
        can_build_shared=no
 
12226
      fi
 
12227
      ;;
 
12228
    esac
 
12229
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12230
    # soname into executable. Probably we can add versioning support to
 
12231
    # collect2, so additional links can be useful in future.
 
12232
    if test "$aix_use_runtimelinking" = yes; then
 
12233
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12234
      # instead of lib<name>.a to let people know that these are not
 
12235
      # typical AIX shared libraries.
 
12236
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12237
    else
 
12238
      # We preserve .a as extension for shared libraries through AIX4.2
 
12239
      # and later when we are not doing run time linking.
 
12240
      library_names_spec='${libname}${release}.a $libname.a'
 
12241
      soname_spec='${libname}${release}${shared_ext}$major'
 
12242
    fi
 
12243
    shlibpath_var=LIBPATH
 
12244
  fi
 
12245
  ;;
 
12246
 
 
12247
amigaos*)
 
12248
  library_names_spec='$libname.ixlibrary $libname.a'
 
12249
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12250
  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'
 
12251
  ;;
 
12252
 
 
12253
beos*)
 
12254
  library_names_spec='${libname}${shared_ext}'
 
12255
  dynamic_linker="$host_os ld.so"
 
12256
  shlibpath_var=LIBRARY_PATH
 
12257
  ;;
 
12258
 
 
12259
bsdi[45]*)
 
12260
  version_type=linux
 
12261
  need_version=no
 
12262
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12263
  soname_spec='${libname}${release}${shared_ext}$major'
 
12264
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12265
  shlibpath_var=LD_LIBRARY_PATH
 
12266
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12267
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12268
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12269
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12270
  # libtool to hard-code these into programs
 
12271
  ;;
 
12272
 
 
12273
cygwin* | mingw* | pw32*)
 
12274
  version_type=windows
 
12275
  shrext_cmds=".dll"
 
12276
  need_version=no
 
12277
  need_lib_prefix=no
 
12278
 
 
12279
  case $GCC,$host_os in
 
12280
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12281
    library_names_spec='$libname.dll.a'
 
12282
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12283
    postinstall_cmds='base_file=`basename \${file}`~
 
12284
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12285
      dldir=$destdir/`dirname \$dlpath`~
 
12286
      test -d \$dldir || mkdir -p \$dldir~
 
12287
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12288
      chmod a+x \$dldir/$dlname'
 
12289
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12290
      dlpath=$dir/\$dldll~
 
12291
       $rm \$dlpath'
 
12292
    shlibpath_overrides_runpath=yes
 
12293
 
 
12294
    case $host_os in
 
12295
    cygwin*)
 
12296
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12297
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12298
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12299
      ;;
 
12300
    mingw*)
 
12301
      # MinGW DLLs use traditional 'lib' prefix
 
12302
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12303
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12304
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12305
        # It is most probably a Windows format PATH printed by
 
12306
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12307
        # path with ; separators, and with drive letters. We can handle the
 
12308
        # drive letters (cygwin fileutils understands them), so leave them,
 
12309
        # especially as we might pass files found there to a mingw objdump,
 
12310
        # which wouldn't understand a cygwinified path. Ahh.
 
12311
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12312
      else
 
12313
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12314
      fi
 
12315
      ;;
 
12316
    pw32*)
 
12317
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12318
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12319
      ;;
 
12320
    esac
 
12321
    ;;
 
12322
 
 
12323
  linux*)
 
12324
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
12325
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12326
      supports_anon_versioning=no
 
12327
      case `$LD -v 2>/dev/null` in
 
12328
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
12329
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
12330
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
12331
        *\ 2.11.*) ;; # other 2.11 versions
 
12332
        *) supports_anon_versioning=yes ;;
 
12333
      esac
 
12334
      if test $supports_anon_versioning = yes; then
 
12335
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
12336
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
12337
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
12338
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
12339
      else
 
12340
        $archive_expsym_cmds="$archive_cmds"
 
12341
      fi
 
12342
    else
 
12343
      ld_shlibs=no
 
12344
    fi
 
12345
    ;;
 
12346
 
 
12347
  *)
 
12348
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12349
    ;;
 
12350
  esac
 
12351
  dynamic_linker='Win32 ld.exe'
 
12352
  # FIXME: first we should search . and the directory the executable is in
 
12353
  shlibpath_var=PATH
 
12354
  ;;
 
12355
 
 
12356
darwin* | rhapsody*)
 
12357
  dynamic_linker="$host_os dyld"
 
12358
  version_type=darwin
 
12359
  need_lib_prefix=no
 
12360
  need_version=no
 
12361
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12362
  soname_spec='${libname}${release}${major}$shared_ext'
 
12363
  shlibpath_overrides_runpath=yes
 
12364
  shlibpath_var=DYLD_LIBRARY_PATH
 
12365
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12366
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12367
  if test "$GCC" = yes; then
 
12368
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12369
  else
 
12370
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12371
  fi
 
12372
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12373
  ;;
 
12374
 
 
12375
dgux*)
 
12376
  version_type=linux
 
12377
  need_lib_prefix=no
 
12378
  need_version=no
 
12379
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12380
  soname_spec='${libname}${release}${shared_ext}$major'
 
12381
  shlibpath_var=LD_LIBRARY_PATH
 
12382
  ;;
 
12383
 
 
12384
freebsd1*)
 
12385
  dynamic_linker=no
 
12386
  ;;
 
12387
 
 
12388
kfreebsd*-gnu)
 
12389
  version_type=linux
 
12390
  need_lib_prefix=no
 
12391
  need_version=no
 
12392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12393
  soname_spec='${libname}${release}${shared_ext}$major'
 
12394
  shlibpath_var=LD_LIBRARY_PATH
 
12395
  shlibpath_overrides_runpath=no
 
12396
  hardcode_into_libs=yes
 
12397
  dynamic_linker='GNU ld.so'
 
12398
  ;;
 
12399
 
 
12400
freebsd* | dragonfly*)
 
12401
  # DragonFly does not have aout.  When/if they implement a new
 
12402
  # versioning mechanism, adjust this.
 
12403
  if test -x /usr/bin/objformat; then
 
12404
    objformat=`/usr/bin/objformat`
 
12405
  else
 
12406
    case $host_os in
 
12407
    freebsd[123]*) objformat=aout ;;
 
12408
    *) objformat=elf ;;
 
12409
    esac
 
12410
  fi
 
12411
  # Handle Gentoo/FreeBSD as it was Linux
 
12412
  case $host_vendor in
 
12413
    gentoo)
 
12414
      version_type=linux ;;
 
12415
    *)
 
12416
      version_type=freebsd-$objformat ;;
 
12417
  esac
 
12418
 
 
12419
  case $version_type in
 
12420
    freebsd-elf*)
 
12421
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12422
      need_version=no
 
12423
      need_lib_prefix=no
 
12424
      ;;
 
12425
    freebsd-*)
 
12426
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12427
      need_version=yes
 
12428
      ;;
 
12429
    linux)
 
12430
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12431
      soname_spec='${libname}${release}${shared_ext}$major'
 
12432
      need_lib_prefix=no
 
12433
      need_version=no
 
12434
      ;;
 
12435
  esac
 
12436
  shlibpath_var=LD_LIBRARY_PATH
 
12437
  case $host_os in
 
12438
  freebsd2*)
 
12439
    shlibpath_overrides_runpath=yes
 
12440
    ;;
 
12441
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12442
    shlibpath_overrides_runpath=yes
 
12443
    hardcode_into_libs=yes
 
12444
    ;;
 
12445
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12446
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12447
    shlibpath_overrides_runpath=no
 
12448
    hardcode_into_libs=yes
 
12449
    ;;
 
12450
  freebsd*) # from 4.6 on
 
12451
    shlibpath_overrides_runpath=yes
 
12452
    hardcode_into_libs=yes
 
12453
    ;;
 
12454
  esac
 
12455
  ;;
 
12456
 
 
12457
gnu*)
 
12458
  version_type=linux
 
12459
  need_lib_prefix=no
 
12460
  need_version=no
 
12461
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12462
  soname_spec='${libname}${release}${shared_ext}$major'
 
12463
  shlibpath_var=LD_LIBRARY_PATH
 
12464
  hardcode_into_libs=yes
 
12465
  ;;
 
12466
 
 
12467
hpux9* | hpux10* | hpux11*)
 
12468
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12469
  # link against other versions.
 
12470
  version_type=sunos
 
12471
  need_lib_prefix=no
 
12472
  need_version=no
 
12473
  case $host_cpu in
 
12474
  ia64*)
 
12475
    shrext_cmds='.so'
 
12476
    hardcode_into_libs=yes
 
12477
    dynamic_linker="$host_os dld.so"
 
12478
    shlibpath_var=LD_LIBRARY_PATH
 
12479
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12480
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12481
    soname_spec='${libname}${release}${shared_ext}$major'
 
12482
    if test "X$HPUX_IA64_MODE" = X32; then
 
12483
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12484
    else
 
12485
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12486
    fi
 
12487
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12488
    ;;
 
12489
   hppa*64*)
 
12490
     shrext_cmds='.sl'
 
12491
     hardcode_into_libs=yes
 
12492
     dynamic_linker="$host_os dld.sl"
 
12493
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12494
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12495
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12496
     soname_spec='${libname}${release}${shared_ext}$major'
 
12497
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12498
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12499
     ;;
 
12500
   *)
 
12501
    shrext_cmds='.sl'
 
12502
    dynamic_linker="$host_os dld.sl"
 
12503
    shlibpath_var=SHLIB_PATH
 
12504
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12505
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12506
    soname_spec='${libname}${release}${shared_ext}$major'
 
12507
    ;;
 
12508
  esac
 
12509
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12510
  postinstall_cmds='chmod 555 $lib'
 
12511
  ;;
 
12512
 
 
12513
interix3*)
 
12514
  version_type=linux
 
12515
  need_lib_prefix=no
 
12516
  need_version=no
 
12517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12518
  soname_spec='${libname}${release}${shared_ext}$major'
 
12519
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12520
  shlibpath_var=LD_LIBRARY_PATH
 
12521
  shlibpath_overrides_runpath=no
 
12522
  hardcode_into_libs=yes
 
12523
  ;;
 
12524
 
 
12525
irix5* | irix6* | nonstopux*)
 
12526
  case $host_os in
 
12527
    nonstopux*) version_type=nonstopux ;;
 
12528
    *)
 
12529
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12530
                version_type=linux
 
12531
        else
 
12532
                version_type=irix
 
12533
        fi ;;
 
12534
  esac
 
12535
  need_lib_prefix=no
 
12536
  need_version=no
 
12537
  soname_spec='${libname}${release}${shared_ext}$major'
 
12538
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12539
  case $host_os in
 
12540
  irix5* | nonstopux*)
 
12541
    libsuff= shlibsuff=
 
12542
    ;;
 
12543
  *)
 
12544
    case $LD in # libtool.m4 will add one of these switches to LD
 
12545
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12546
      libsuff= shlibsuff= libmagic=32-bit;;
 
12547
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12548
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12549
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12550
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12551
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12552
    esac
 
12553
    ;;
 
12554
  esac
 
12555
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12556
  shlibpath_overrides_runpath=no
 
12557
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12558
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12559
  hardcode_into_libs=yes
 
12560
  ;;
 
12561
 
 
12562
# No shared lib support for Linux oldld, aout, or coff.
 
12563
linux*oldld* | linux*aout* | linux*coff*)
 
12564
  dynamic_linker=no
 
12565
  ;;
 
12566
 
 
12567
# This must be Linux ELF.
 
12568
linux*)
 
12569
  version_type=linux
 
12570
  need_lib_prefix=no
 
12571
  need_version=no
 
12572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12573
  soname_spec='${libname}${release}${shared_ext}$major'
 
12574
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12575
  shlibpath_var=LD_LIBRARY_PATH
 
12576
  shlibpath_overrides_runpath=no
 
12577
  # This implies no fast_install, which is unacceptable.
 
12578
  # Some rework will be needed to allow for fast_install
 
12579
  # before this can be enabled.
 
12580
  hardcode_into_libs=yes
 
12581
 
 
12582
  # Append ld.so.conf contents to the search path
 
12583
  if test -f /etc/ld.so.conf; then
 
12584
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12585
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12586
  fi
 
12587
 
 
12588
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12589
  # powerpc, because MkLinux only supported shared libraries with the
 
12590
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12591
  # most powerpc-linux boxes support dynamic linking these days and
 
12592
  # people can always --disable-shared, the test was removed, and we
 
12593
  # assume the GNU/Linux dynamic linker is in use.
 
12594
  dynamic_linker='GNU/Linux ld.so'
 
12595
  ;;
 
12596
 
 
12597
knetbsd*-gnu)
 
12598
  version_type=linux
 
12599
  need_lib_prefix=no
 
12600
  need_version=no
 
12601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12602
  soname_spec='${libname}${release}${shared_ext}$major'
 
12603
  shlibpath_var=LD_LIBRARY_PATH
 
12604
  shlibpath_overrides_runpath=no
 
12605
  hardcode_into_libs=yes
 
12606
  dynamic_linker='GNU ld.so'
 
12607
  ;;
 
12608
 
 
12609
netbsd*)
 
12610
  version_type=sunos
 
12611
  need_lib_prefix=no
 
12612
  need_version=no
 
12613
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12614
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12615
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12616
    dynamic_linker='NetBSD (a.out) ld.so'
 
12617
  else
 
12618
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12619
    soname_spec='${libname}${release}${shared_ext}$major'
 
12620
    dynamic_linker='NetBSD ld.elf_so'
 
12621
  fi
 
12622
  shlibpath_var=LD_LIBRARY_PATH
 
12623
  shlibpath_overrides_runpath=yes
 
12624
  hardcode_into_libs=yes
 
12625
  ;;
 
12626
 
 
12627
newsos6)
 
12628
  version_type=linux
 
12629
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12630
  shlibpath_var=LD_LIBRARY_PATH
 
12631
  shlibpath_overrides_runpath=yes
 
12632
  ;;
 
12633
 
 
12634
nto-qnx*)
 
12635
  version_type=linux
 
12636
  need_lib_prefix=no
 
12637
  need_version=no
 
12638
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12639
  soname_spec='${libname}${release}${shared_ext}$major'
 
12640
  shlibpath_var=LD_LIBRARY_PATH
 
12641
  shlibpath_overrides_runpath=yes
 
12642
  ;;
 
12643
 
 
12644
openbsd*)
 
12645
  version_type=sunos
 
12646
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12647
  need_lib_prefix=no
 
12648
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12649
  case $host_os in
 
12650
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12651
    *)                         need_version=no  ;;
 
12652
  esac
 
12653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12654
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12655
  shlibpath_var=LD_LIBRARY_PATH
 
12656
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12657
    case $host_os in
 
12658
      openbsd2.[89] | openbsd2.[89].*)
 
12659
        shlibpath_overrides_runpath=no
 
12660
        ;;
 
12661
      *)
 
12662
        shlibpath_overrides_runpath=yes
 
12663
        ;;
 
12664
      esac
 
12665
  else
 
12666
    shlibpath_overrides_runpath=yes
 
12667
  fi
 
12668
  ;;
 
12669
 
 
12670
os2*)
 
12671
  libname_spec='$name'
 
12672
  shrext_cmds=".dll"
 
12673
  need_lib_prefix=no
 
12674
  library_names_spec='$libname${shared_ext} $libname.a'
 
12675
  dynamic_linker='OS/2 ld.exe'
 
12676
  shlibpath_var=LIBPATH
 
12677
  ;;
 
12678
 
 
12679
osf3* | osf4* | osf5*)
 
12680
  version_type=osf
 
12681
  need_lib_prefix=no
 
12682
  need_version=no
 
12683
  soname_spec='${libname}${release}${shared_ext}$major'
 
12684
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12685
  shlibpath_var=LD_LIBRARY_PATH
 
12686
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12687
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12688
  ;;
 
12689
 
 
12690
solaris*)
 
12691
  version_type=linux
 
12692
  need_lib_prefix=no
 
12693
  need_version=no
 
12694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12695
  soname_spec='${libname}${release}${shared_ext}$major'
 
12696
  shlibpath_var=LD_LIBRARY_PATH
 
12697
  shlibpath_overrides_runpath=yes
 
12698
  hardcode_into_libs=yes
 
12699
  # ldd complains unless libraries are executable
 
12700
  postinstall_cmds='chmod +x $lib'
 
12701
  ;;
 
12702
 
 
12703
sunos4*)
 
12704
  version_type=sunos
 
12705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12706
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12707
  shlibpath_var=LD_LIBRARY_PATH
 
12708
  shlibpath_overrides_runpath=yes
 
12709
  if test "$with_gnu_ld" = yes; then
 
12710
    need_lib_prefix=no
 
12711
  fi
 
12712
  need_version=yes
 
12713
  ;;
 
12714
 
 
12715
sysv4 | sysv4.3*)
 
12716
  version_type=linux
 
12717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12718
  soname_spec='${libname}${release}${shared_ext}$major'
 
12719
  shlibpath_var=LD_LIBRARY_PATH
 
12720
  case $host_vendor in
 
12721
    sni)
 
12722
      shlibpath_overrides_runpath=no
 
12723
      need_lib_prefix=no
 
12724
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12725
      runpath_var=LD_RUN_PATH
 
12726
      ;;
 
12727
    siemens)
 
12728
      need_lib_prefix=no
 
12729
      ;;
 
12730
    motorola)
 
12731
      need_lib_prefix=no
 
12732
      need_version=no
 
12733
      shlibpath_overrides_runpath=no
 
12734
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12735
      ;;
 
12736
  esac
 
12737
  ;;
 
12738
 
 
12739
sysv4*MP*)
 
12740
  if test -d /usr/nec ;then
 
12741
    version_type=linux
 
12742
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12743
    soname_spec='$libname${shared_ext}.$major'
 
12744
    shlibpath_var=LD_LIBRARY_PATH
 
12745
  fi
 
12746
  ;;
 
12747
 
 
12748
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
12749
  version_type=freebsd-elf
 
12750
  need_lib_prefix=no
 
12751
  need_version=no
 
12752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12753
  soname_spec='${libname}${release}${shared_ext}$major'
 
12754
  shlibpath_var=LD_LIBRARY_PATH
 
12755
  hardcode_into_libs=yes
 
12756
  if test "$with_gnu_ld" = yes; then
 
12757
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
12758
    shlibpath_overrides_runpath=no
 
12759
  else
 
12760
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
12761
    shlibpath_overrides_runpath=yes
 
12762
    case $host_os in
 
12763
      sco3.2v5*)
 
12764
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
12765
        ;;
 
12766
    esac
 
12767
  fi
 
12768
  sys_lib_dlsearch_path_spec='/usr/lib'
 
12769
  ;;
 
12770
 
 
12771
uts4*)
 
12772
  version_type=linux
 
12773
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12774
  soname_spec='${libname}${release}${shared_ext}$major'
 
12775
  shlibpath_var=LD_LIBRARY_PATH
 
12776
  ;;
 
12777
 
 
12778
*)
 
12779
  dynamic_linker=no
 
12780
  ;;
 
12781
esac
 
12782
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12783
echo "${ECHO_T}$dynamic_linker" >&6; }
 
12784
test "$dynamic_linker" = no && can_build_shared=no
 
12785
 
 
12786
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12787
if test "$GCC" = yes; then
 
12788
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12789
fi
 
12790
 
 
12791
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12792
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
12793
hardcode_action_CXX=
 
12794
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12795
   test -n "$runpath_var_CXX" || \
 
12796
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12797
 
 
12798
  # We can hardcode non-existant directories.
 
12799
  if test "$hardcode_direct_CXX" != no &&
 
12800
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12801
     # have to relink, otherwise we might link with an installed library
 
12802
     # when we should be linking with a yet-to-be-installed one
 
12803
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12804
     test "$hardcode_minus_L_CXX" != no; then
 
12805
    # Linking always hardcodes the temporary library directory.
 
12806
    hardcode_action_CXX=relink
 
12807
  else
 
12808
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12809
    hardcode_action_CXX=immediate
 
12810
  fi
 
12811
else
 
12812
  # We cannot hardcode anything, or else we can only hardcode existing
 
12813
  # directories.
 
12814
  hardcode_action_CXX=unsupported
 
12815
fi
 
12816
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12817
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
12818
 
 
12819
if test "$hardcode_action_CXX" = relink; then
 
12820
  # Fast installation is not supported
 
12821
  enable_fast_install=no
 
12822
elif test "$shlibpath_overrides_runpath" = yes ||
 
12823
     test "$enable_shared" = no; then
 
12824
  # Fast installation is not necessary
 
12825
  enable_fast_install=needless
 
12826
fi
 
12827
 
 
12828
 
 
12829
# The else clause should only fire when bootstrapping the
 
12830
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
12831
# with your package, and you will get complaints that there are
 
12832
# no rules to generate ltmain.sh.
 
12833
if test -f "$ltmain"; then
 
12834
  # See if we are running on zsh, and set the options which allow our commands through
 
12835
  # without removal of \ escapes.
 
12836
  if test -n "${ZSH_VERSION+set}" ; then
 
12837
    setopt NO_GLOB_SUBST
 
12838
  fi
 
12839
  # Now quote all the things that may contain metacharacters while being
 
12840
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
12841
  # variables and quote the copies for generation of the libtool script.
 
12842
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12843
    SED SHELL STRIP \
 
12844
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
12845
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
12846
    deplibs_check_method reload_flag reload_cmds need_locks \
 
12847
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
12848
    lt_cv_sys_global_symbol_to_c_name_address \
 
12849
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
12850
    old_postinstall_cmds old_postuninstall_cmds \
 
12851
    compiler_CXX \
 
12852
    CC_CXX \
 
12853
    LD_CXX \
 
12854
    lt_prog_compiler_wl_CXX \
 
12855
    lt_prog_compiler_pic_CXX \
 
12856
    lt_prog_compiler_static_CXX \
 
12857
    lt_prog_compiler_no_builtin_flag_CXX \
 
12858
    export_dynamic_flag_spec_CXX \
 
12859
    thread_safe_flag_spec_CXX \
 
12860
    whole_archive_flag_spec_CXX \
 
12861
    enable_shared_with_static_runtimes_CXX \
 
12862
    old_archive_cmds_CXX \
 
12863
    old_archive_from_new_cmds_CXX \
 
12864
    predep_objects_CXX \
 
12865
    postdep_objects_CXX \
 
12866
    predeps_CXX \
 
12867
    postdeps_CXX \
 
12868
    compiler_lib_search_path_CXX \
 
12869
    archive_cmds_CXX \
 
12870
    archive_expsym_cmds_CXX \
 
12871
    postinstall_cmds_CXX \
 
12872
    postuninstall_cmds_CXX \
 
12873
    old_archive_from_expsyms_cmds_CXX \
 
12874
    allow_undefined_flag_CXX \
 
12875
    no_undefined_flag_CXX \
 
12876
    export_symbols_cmds_CXX \
 
12877
    hardcode_libdir_flag_spec_CXX \
 
12878
    hardcode_libdir_flag_spec_ld_CXX \
 
12879
    hardcode_libdir_separator_CXX \
 
12880
    hardcode_automatic_CXX \
 
12881
    module_cmds_CXX \
 
12882
    module_expsym_cmds_CXX \
 
12883
    lt_cv_prog_compiler_c_o_CXX \
 
12884
    exclude_expsyms_CXX \
 
12885
    include_expsyms_CXX; do
 
12886
 
 
12887
    case $var in
 
12888
    old_archive_cmds_CXX | \
 
12889
    old_archive_from_new_cmds_CXX | \
 
12890
    archive_cmds_CXX | \
 
12891
    archive_expsym_cmds_CXX | \
 
12892
    module_cmds_CXX | \
 
12893
    module_expsym_cmds_CXX | \
 
12894
    old_archive_from_expsyms_cmds_CXX | \
 
12895
    export_symbols_cmds_CXX | \
 
12896
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
12897
    postinstall_cmds | postuninstall_cmds | \
 
12898
    old_postinstall_cmds | old_postuninstall_cmds | \
 
12899
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
12900
      # Double-quote double-evaled strings.
 
12901
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
12902
      ;;
 
12903
    *)
 
12904
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
12905
      ;;
 
12906
    esac
 
12907
  done
 
12908
 
 
12909
  case $lt_echo in
 
12910
  *'\$0 --fallback-echo"')
 
12911
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
12912
    ;;
 
12913
  esac
 
12914
 
 
12915
cfgfile="$ofile"
 
12916
 
 
12917
  cat <<__EOF__ >> "$cfgfile"
 
12918
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
12919
 
 
12920
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
12921
 
 
12922
# Shell to use when invoking shell scripts.
 
12923
SHELL=$lt_SHELL
 
12924
 
 
12925
# Whether or not to build shared libraries.
 
12926
build_libtool_libs=$enable_shared
 
12927
 
 
12928
# Whether or not to build static libraries.
 
12929
build_old_libs=$enable_static
 
12930
 
 
12931
# Whether or not to add -lc for building shared libraries.
 
12932
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
12933
 
 
12934
# Whether or not to disallow shared libs when runtime libs are static
 
12935
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
12936
 
 
12937
# Whether or not to optimize for fast installation.
 
12938
fast_install=$enable_fast_install
 
12939
 
 
12940
# The host system.
 
12941
host_alias=$host_alias
 
12942
host=$host
 
12943
host_os=$host_os
 
12944
 
 
12945
# The build system.
 
12946
build_alias=$build_alias
 
12947
build=$build
 
12948
build_os=$build_os
 
12949
 
 
12950
# An echo program that does not interpret backslashes.
 
12951
echo=$lt_echo
 
12952
 
 
12953
# The archiver.
 
12954
AR=$lt_AR
 
12955
AR_FLAGS=$lt_AR_FLAGS
 
12956
 
 
12957
# A C compiler.
 
12958
LTCC=$lt_LTCC
 
12959
 
 
12960
# LTCC compiler flags.
 
12961
LTCFLAGS=$lt_LTCFLAGS
 
12962
 
 
12963
# A language-specific compiler.
 
12964
CC=$lt_compiler_CXX
 
12965
 
 
12966
# Is the compiler the GNU C compiler?
 
12967
with_gcc=$GCC_CXX
 
12968
 
 
12969
# An ERE matcher.
 
12970
EGREP=$lt_EGREP
 
12971
 
 
12972
# The linker used to build libraries.
 
12973
LD=$lt_LD_CXX
 
12974
 
 
12975
# Whether we need hard or soft links.
 
12976
LN_S=$lt_LN_S
 
12977
 
 
12978
# A BSD-compatible nm program.
 
12979
NM=$lt_NM
 
12980
 
 
12981
# A symbol stripping program
 
12982
STRIP=$lt_STRIP
 
12983
 
 
12984
# Used to examine libraries when file_magic_cmd begins "file"
 
12985
MAGIC_CMD=$MAGIC_CMD
 
12986
 
 
12987
# Used on cygwin: DLL creation program.
 
12988
DLLTOOL="$DLLTOOL"
 
12989
 
 
12990
# Used on cygwin: object dumper.
 
12991
OBJDUMP="$OBJDUMP"
 
12992
 
 
12993
# Used on cygwin: assembler.
 
12994
AS="$AS"
 
12995
 
 
12996
# The name of the directory that contains temporary libtool files.
 
12997
objdir=$objdir
 
12998
 
 
12999
# How to create reloadable object files.
 
13000
reload_flag=$lt_reload_flag
 
13001
reload_cmds=$lt_reload_cmds
 
13002
 
 
13003
# How to pass a linker flag through the compiler.
 
13004
wl=$lt_lt_prog_compiler_wl_CXX
 
13005
 
 
13006
# Object file suffix (normally "o").
 
13007
objext="$ac_objext"
 
13008
 
 
13009
# Old archive suffix (normally "a").
 
13010
libext="$libext"
 
13011
 
 
13012
# Shared library suffix (normally ".so").
 
13013
shrext_cmds='$shrext_cmds'
 
13014
 
 
13015
# Executable file suffix (normally "").
 
13016
exeext="$exeext"
 
13017
 
 
13018
# Additional compiler flags for building library objects.
 
13019
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13020
pic_mode=$pic_mode
 
13021
 
 
13022
# What is the maximum length of a command?
 
13023
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13024
 
 
13025
# Does compiler simultaneously support -c and -o options?
 
13026
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13027
 
 
13028
# Must we lock files when doing compilation?
 
13029
need_locks=$lt_need_locks
 
13030
 
 
13031
# Do we need the lib prefix for modules?
 
13032
need_lib_prefix=$need_lib_prefix
 
13033
 
 
13034
# Do we need a version for libraries?
 
13035
need_version=$need_version
 
13036
 
 
13037
# Whether dlopen is supported.
 
13038
dlopen_support=$enable_dlopen
 
13039
 
 
13040
# Whether dlopen of programs is supported.
 
13041
dlopen_self=$enable_dlopen_self
 
13042
 
 
13043
# Whether dlopen of statically linked programs is supported.
 
13044
dlopen_self_static=$enable_dlopen_self_static
 
13045
 
 
13046
# Compiler flag to prevent dynamic linking.
 
13047
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13048
 
 
13049
# Compiler flag to turn off builtin functions.
 
13050
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13051
 
 
13052
# Compiler flag to allow reflexive dlopens.
 
13053
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13054
 
 
13055
# Compiler flag to generate shared objects directly from archives.
 
13056
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13057
 
 
13058
# Compiler flag to generate thread-safe objects.
 
13059
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13060
 
 
13061
# Library versioning type.
 
13062
version_type=$version_type
 
13063
 
 
13064
# Format of library name prefix.
 
13065
libname_spec=$lt_libname_spec
 
13066
 
 
13067
# List of archive names.  First name is the real one, the rest are links.
 
13068
# The last name is the one that the linker finds with -lNAME.
 
13069
library_names_spec=$lt_library_names_spec
 
13070
 
 
13071
# The coded name of the library, if different from the real name.
 
13072
soname_spec=$lt_soname_spec
 
13073
 
 
13074
# Commands used to build and install an old-style archive.
 
13075
RANLIB=$lt_RANLIB
 
13076
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13077
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13078
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13079
 
 
13080
# Create an old-style archive from a shared archive.
 
13081
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13082
 
 
13083
# Create a temporary old-style archive to link instead of a shared archive.
 
13084
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13085
 
 
13086
# Commands used to build and install a shared archive.
 
13087
archive_cmds=$lt_archive_cmds_CXX
 
13088
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13089
postinstall_cmds=$lt_postinstall_cmds
 
13090
postuninstall_cmds=$lt_postuninstall_cmds
 
13091
 
 
13092
# Commands used to build a loadable module (assumed same as above if empty)
 
13093
module_cmds=$lt_module_cmds_CXX
 
13094
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13095
 
 
13096
# Commands to strip libraries.
 
13097
old_striplib=$lt_old_striplib
 
13098
striplib=$lt_striplib
 
13099
 
 
13100
# Dependencies to place before the objects being linked to create a
 
13101
# shared library.
 
13102
predep_objects=$lt_predep_objects_CXX
 
13103
 
 
13104
# Dependencies to place after the objects being linked to create a
 
13105
# shared library.
 
13106
postdep_objects=$lt_postdep_objects_CXX
 
13107
 
 
13108
# Dependencies to place before the objects being linked to create a
 
13109
# shared library.
 
13110
predeps=$lt_predeps_CXX
 
13111
 
 
13112
# Dependencies to place after the objects being linked to create a
 
13113
# shared library.
 
13114
postdeps=$lt_postdeps_CXX
 
13115
 
 
13116
# The library search path used internally by the compiler when linking
 
13117
# a shared library.
 
13118
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13119
 
 
13120
# Method to check whether dependent libraries are shared objects.
 
13121
deplibs_check_method=$lt_deplibs_check_method
 
13122
 
 
13123
# Command to use when deplibs_check_method == file_magic.
 
13124
file_magic_cmd=$lt_file_magic_cmd
 
13125
 
 
13126
# Flag that allows shared libraries with undefined symbols to be built.
 
13127
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13128
 
 
13129
# Flag that forces no undefined symbols.
 
13130
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13131
 
 
13132
# Commands used to finish a libtool library installation in a directory.
 
13133
finish_cmds=$lt_finish_cmds
 
13134
 
 
13135
# Same as above, but a single script fragment to be evaled but not shown.
 
13136
finish_eval=$lt_finish_eval
 
13137
 
 
13138
# Take the output of nm and produce a listing of raw symbols and C names.
 
13139
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13140
 
 
13141
# Transform the output of nm in a proper C declaration
 
13142
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13143
 
 
13144
# Transform the output of nm in a C name address pair
 
13145
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13146
 
 
13147
# This is the shared library runtime path variable.
 
13148
runpath_var=$runpath_var
 
13149
 
 
13150
# This is the shared library path variable.
 
13151
shlibpath_var=$shlibpath_var
 
13152
 
 
13153
# Is shlibpath searched before the hard-coded library search path?
 
13154
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13155
 
 
13156
# How to hardcode a shared library path into an executable.
 
13157
hardcode_action=$hardcode_action_CXX
 
13158
 
 
13159
# Whether we should hardcode library paths into libraries.
 
13160
hardcode_into_libs=$hardcode_into_libs
 
13161
 
 
13162
# Flag to hardcode \$libdir into a binary during linking.
 
13163
# This must work even if \$libdir does not exist.
 
13164
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13165
 
 
13166
# If ld is used when linking, flag to hardcode \$libdir into
 
13167
# a binary during linking. This must work even if \$libdir does
 
13168
# not exist.
 
13169
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13170
 
 
13171
# Whether we need a single -rpath flag with a separated argument.
 
13172
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13173
 
 
13174
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13175
# resulting binary.
 
13176
hardcode_direct=$hardcode_direct_CXX
 
13177
 
 
13178
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13179
# resulting binary.
 
13180
hardcode_minus_L=$hardcode_minus_L_CXX
 
13181
 
 
13182
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13183
# the resulting binary.
 
13184
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13185
 
 
13186
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13187
# and all subsequent libraries and executables linked against it.
 
13188
hardcode_automatic=$hardcode_automatic_CXX
 
13189
 
 
13190
# Variables whose values should be saved in libtool wrapper scripts and
 
13191
# restored at relink time.
 
13192
variables_saved_for_relink="$variables_saved_for_relink"
 
13193
 
 
13194
# Whether libtool must link a program against all its dependency libraries.
 
13195
link_all_deplibs=$link_all_deplibs_CXX
 
13196
 
 
13197
# Compile-time system search path for libraries
 
13198
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13199
 
 
13200
# Run-time system search path for libraries
 
13201
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13202
 
 
13203
# Fix the shell variable \$srcfile for the compiler.
 
13204
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13205
 
 
13206
# Set to yes if exported symbols are required.
 
13207
always_export_symbols=$always_export_symbols_CXX
 
13208
 
 
13209
# The commands to list exported symbols.
 
13210
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13211
 
 
13212
# The commands to extract the exported symbol list from a shared archive.
 
13213
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13214
 
 
13215
# Symbols that should not be listed in the preloaded symbols.
 
13216
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13217
 
 
13218
# Symbols that must always be exported.
 
13219
include_expsyms=$lt_include_expsyms_CXX
 
13220
 
 
13221
# ### END LIBTOOL TAG CONFIG: $tagname
 
13222
 
 
13223
__EOF__
 
13224
 
 
13225
 
 
13226
else
 
13227
  # If there is no Makefile yet, we rely on a make rule to execute
 
13228
  # `config.status --recheck' to rerun these tests and create the
 
13229
  # libtool script then.
 
13230
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13231
  if test -f "$ltmain_in"; then
 
13232
    test -f Makefile && make "$ltmain"
 
13233
  fi
 
13234
fi
 
13235
 
 
13236
 
 
13237
ac_ext=c
 
13238
ac_cpp='$CPP $CPPFLAGS'
 
13239
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13240
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13241
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13242
 
 
13243
CC=$lt_save_CC
 
13244
LDCXX=$LD
 
13245
LD=$lt_save_LD
 
13246
GCC=$lt_save_GCC
 
13247
with_gnu_ldcxx=$with_gnu_ld
 
13248
with_gnu_ld=$lt_save_with_gnu_ld
 
13249
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13250
lt_cv_path_LD=$lt_save_path_LD
 
13251
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13252
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13253
 
 
13254
        else
 
13255
          tagname=""
 
13256
        fi
 
13257
        ;;
 
13258
 
 
13259
      F77)
 
13260
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13261
 
 
13262
ac_ext=f
 
13263
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13264
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13265
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13266
 
 
13267
 
 
13268
archive_cmds_need_lc_F77=no
 
13269
allow_undefined_flag_F77=
 
13270
always_export_symbols_F77=no
 
13271
archive_expsym_cmds_F77=
 
13272
export_dynamic_flag_spec_F77=
 
13273
hardcode_direct_F77=no
 
13274
hardcode_libdir_flag_spec_F77=
 
13275
hardcode_libdir_flag_spec_ld_F77=
 
13276
hardcode_libdir_separator_F77=
 
13277
hardcode_minus_L_F77=no
 
13278
hardcode_automatic_F77=no
 
13279
module_cmds_F77=
 
13280
module_expsym_cmds_F77=
 
13281
link_all_deplibs_F77=unknown
 
13282
old_archive_cmds_F77=$old_archive_cmds
 
13283
no_undefined_flag_F77=
 
13284
whole_archive_flag_spec_F77=
 
13285
enable_shared_with_static_runtimes_F77=no
 
13286
 
 
13287
# Source file extension for f77 test sources.
 
13288
ac_ext=f
 
13289
 
 
13290
# Object file extension for compiled f77 test sources.
 
13291
objext=o
 
13292
objext_F77=$objext
 
13293
 
 
13294
# Code to be used in simple compile tests
 
13295
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13296
 
 
13297
# Code to be used in simple link tests
 
13298
lt_simple_link_test_code="      program t\n      end\n"
 
13299
 
 
13300
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13301
 
 
13302
# If no C compiler was specified, use CC.
 
13303
LTCC=${LTCC-"$CC"}
 
13304
 
 
13305
# If no C compiler flags were specified, use CFLAGS.
 
13306
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13307
 
 
13308
# Allow CC to be a program name with arguments.
 
13309
compiler=$CC
 
13310
 
 
13311
 
 
13312
# save warnings/boilerplate of simple test code
 
13313
ac_outfile=conftest.$ac_objext
 
13314
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13315
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13316
_lt_compiler_boilerplate=`cat conftest.err`
 
13317
$rm conftest*
 
13318
 
 
13319
ac_outfile=conftest.$ac_objext
 
13320
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13321
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13322
_lt_linker_boilerplate=`cat conftest.err`
 
13323
$rm conftest*
 
13324
 
 
13325
 
 
13326
# Allow CC to be a program name with arguments.
 
13327
lt_save_CC="$CC"
 
13328
CC=${F77-"f77"}
 
13329
compiler=$CC
 
13330
compiler_F77=$CC
 
13331
for cc_temp in $compiler""; do
 
13332
  case $cc_temp in
 
13333
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13334
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13335
    \-*) ;;
 
13336
    *) break;;
 
13337
  esac
 
13338
done
 
13339
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13340
 
 
13341
 
 
13342
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13343
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13344
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13345
echo "${ECHO_T}$can_build_shared" >&6; }
 
13346
 
 
13347
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13348
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13349
test "$can_build_shared" = "no" && enable_shared=no
 
13350
 
 
13351
# On AIX, shared libraries and static libraries use the same namespace, and
 
13352
# are all built from PIC.
 
13353
case $host_os in
 
13354
aix3*)
 
13355
  test "$enable_shared" = yes && enable_static=no
 
13356
  if test -n "$RANLIB"; then
 
13357
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13358
    postinstall_cmds='$RANLIB $lib'
 
13359
  fi
 
13360
  ;;
 
13361
aix4* | aix5*)
 
13362
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13363
    test "$enable_shared" = yes && enable_static=no
 
13364
  fi
 
13365
  ;;
 
13366
esac
 
13367
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13368
echo "${ECHO_T}$enable_shared" >&6; }
 
13369
 
 
13370
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13371
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13372
# Make sure either enable_shared or enable_static is yes.
 
13373
test "$enable_shared" = yes || enable_static=yes
 
13374
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13375
echo "${ECHO_T}$enable_static" >&6; }
 
13376
 
 
13377
GCC_F77="$G77"
 
13378
LD_F77="$LD"
 
13379
 
 
13380
lt_prog_compiler_wl_F77=
 
13381
lt_prog_compiler_pic_F77=
 
13382
lt_prog_compiler_static_F77=
 
13383
 
 
13384
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13385
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13386
 
 
13387
  if test "$GCC" = yes; then
 
13388
    lt_prog_compiler_wl_F77='-Wl,'
 
13389
    lt_prog_compiler_static_F77='-static'
 
13390
 
 
13391
    case $host_os in
 
13392
      aix*)
 
13393
      # All AIX code is PIC.
 
13394
      if test "$host_cpu" = ia64; then
 
13395
        # AIX 5 now supports IA64 processor
 
13396
        lt_prog_compiler_static_F77='-Bstatic'
 
13397
      fi
 
13398
      ;;
 
13399
 
 
13400
    amigaos*)
 
13401
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13402
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13403
      # like `-m68040'.
 
13404
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13405
      ;;
 
13406
 
 
13407
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13408
      # PIC is the default for these OSes.
 
13409
      ;;
 
13410
 
 
13411
    mingw* | pw32* | os2*)
 
13412
      # This hack is so that the source file can tell whether it is being
 
13413
      # built for inclusion in a dll (and should export symbols for example).
 
13414
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13415
      ;;
 
13416
 
 
13417
    darwin* | rhapsody*)
 
13418
      # PIC is the default on this platform
 
13419
      # Common symbols not allowed in MH_DYLIB files
 
13420
      lt_prog_compiler_pic_F77='-fno-common'
 
13421
      ;;
 
13422
 
 
13423
    interix3*)
 
13424
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13425
      # Instead, we relocate shared libraries at runtime.
 
13426
      ;;
 
13427
 
 
13428
    msdosdjgpp*)
 
13429
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13430
      # on systems that don't support them.
 
13431
      lt_prog_compiler_can_build_shared_F77=no
 
13432
      enable_shared=no
 
13433
      ;;
 
13434
 
 
13435
    sysv4*MP*)
 
13436
      if test -d /usr/nec; then
 
13437
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13438
      fi
 
13439
      ;;
 
13440
 
 
13441
    hpux*)
 
13442
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13443
      # not for PA HP-UX.
 
13444
      case $host_cpu in
 
13445
      hppa*64*|ia64*)
 
13446
        # +Z the default
 
13447
        ;;
 
13448
      *)
 
13449
        lt_prog_compiler_pic_F77='-fPIC'
 
13450
        ;;
 
13451
      esac
 
13452
      ;;
 
13453
 
 
13454
    *)
 
13455
      lt_prog_compiler_pic_F77='-fPIC'
 
13456
      ;;
 
13457
    esac
 
13458
  else
 
13459
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13460
    case $host_os in
 
13461
    aix*)
 
13462
      lt_prog_compiler_wl_F77='-Wl,'
 
13463
      if test "$host_cpu" = ia64; then
 
13464
        # AIX 5 now supports IA64 processor
 
13465
        lt_prog_compiler_static_F77='-Bstatic'
 
13466
      else
 
13467
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13468
      fi
 
13469
      ;;
 
13470
      darwin*)
 
13471
        # PIC is the default on this platform
 
13472
        # Common symbols not allowed in MH_DYLIB files
 
13473
       case $cc_basename in
 
13474
         xlc*)
 
13475
         lt_prog_compiler_pic_F77='-qnocommon'
 
13476
         lt_prog_compiler_wl_F77='-Wl,'
 
13477
         ;;
 
13478
       esac
 
13479
       ;;
 
13480
 
 
13481
    mingw* | pw32* | os2*)
 
13482
      # This hack is so that the source file can tell whether it is being
 
13483
      # built for inclusion in a dll (and should export symbols for example).
 
13484
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13485
      ;;
 
13486
 
 
13487
    hpux9* | hpux10* | hpux11*)
 
13488
      lt_prog_compiler_wl_F77='-Wl,'
 
13489
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13490
      # not for PA HP-UX.
 
13491
      case $host_cpu in
 
13492
      hppa*64*|ia64*)
 
13493
        # +Z the default
 
13494
        ;;
 
13495
      *)
 
13496
        lt_prog_compiler_pic_F77='+Z'
 
13497
        ;;
 
13498
      esac
 
13499
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13500
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13501
      ;;
 
13502
 
 
13503
    irix5* | irix6* | nonstopux*)
 
13504
      lt_prog_compiler_wl_F77='-Wl,'
 
13505
      # PIC (with -KPIC) is the default.
 
13506
      lt_prog_compiler_static_F77='-non_shared'
 
13507
      ;;
 
13508
 
 
13509
    newsos6)
 
13510
      lt_prog_compiler_pic_F77='-KPIC'
 
13511
      lt_prog_compiler_static_F77='-Bstatic'
 
13512
      ;;
 
13513
 
 
13514
    linux*)
 
13515
      case $cc_basename in
 
13516
      icc* | ecc*)
 
13517
        lt_prog_compiler_wl_F77='-Wl,'
 
13518
        lt_prog_compiler_pic_F77='-KPIC'
 
13519
        lt_prog_compiler_static_F77='-static'
 
13520
        ;;
 
13521
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13522
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13523
        # which looks to be a dead project)
 
13524
        lt_prog_compiler_wl_F77='-Wl,'
 
13525
        lt_prog_compiler_pic_F77='-fpic'
 
13526
        lt_prog_compiler_static_F77='-Bstatic'
 
13527
        ;;
 
13528
      ccc*)
 
13529
        lt_prog_compiler_wl_F77='-Wl,'
 
13530
        # All Alpha code is PIC.
 
13531
        lt_prog_compiler_static_F77='-non_shared'
 
13532
        ;;
 
13533
      esac
 
13534
      ;;
 
13535
 
 
13536
    osf3* | osf4* | osf5*)
 
13537
      lt_prog_compiler_wl_F77='-Wl,'
 
13538
      # All OSF/1 code is PIC.
 
13539
      lt_prog_compiler_static_F77='-non_shared'
 
13540
      ;;
 
13541
 
 
13542
    solaris*)
 
13543
      lt_prog_compiler_pic_F77='-KPIC'
 
13544
      lt_prog_compiler_static_F77='-Bstatic'
 
13545
      case $cc_basename in
 
13546
      f77* | f90* | f95*)
 
13547
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13548
      *)
 
13549
        lt_prog_compiler_wl_F77='-Wl,';;
 
13550
      esac
 
13551
      ;;
 
13552
 
 
13553
    sunos4*)
 
13554
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13555
      lt_prog_compiler_pic_F77='-PIC'
 
13556
      lt_prog_compiler_static_F77='-Bstatic'
 
13557
      ;;
 
13558
 
 
13559
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13560
      lt_prog_compiler_wl_F77='-Wl,'
 
13561
      lt_prog_compiler_pic_F77='-KPIC'
 
13562
      lt_prog_compiler_static_F77='-Bstatic'
 
13563
      ;;
 
13564
 
 
13565
    sysv4*MP*)
 
13566
      if test -d /usr/nec ;then
 
13567
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13568
        lt_prog_compiler_static_F77='-Bstatic'
 
13569
      fi
 
13570
      ;;
 
13571
 
 
13572
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13573
      lt_prog_compiler_wl_F77='-Wl,'
 
13574
      lt_prog_compiler_pic_F77='-KPIC'
 
13575
      lt_prog_compiler_static_F77='-Bstatic'
 
13576
      ;;
 
13577
 
 
13578
    unicos*)
 
13579
      lt_prog_compiler_wl_F77='-Wl,'
 
13580
      lt_prog_compiler_can_build_shared_F77=no
 
13581
      ;;
 
13582
 
 
13583
    uts4*)
 
13584
      lt_prog_compiler_pic_F77='-pic'
 
13585
      lt_prog_compiler_static_F77='-Bstatic'
 
13586
      ;;
 
13587
 
 
13588
    *)
 
13589
      lt_prog_compiler_can_build_shared_F77=no
 
13590
      ;;
 
13591
    esac
 
13592
  fi
 
13593
 
 
13594
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13595
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
13596
 
 
13597
#
 
13598
# Check to make sure the PIC flag actually works.
 
13599
#
 
13600
if test -n "$lt_prog_compiler_pic_F77"; then
 
13601
 
 
13602
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13603
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
13604
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13606
else
 
13607
  lt_prog_compiler_pic_works_F77=no
 
13608
  ac_outfile=conftest.$ac_objext
 
13609
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13610
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13611
   # Insert the option either (1) after the last *FLAGS variable, or
 
13612
   # (2) before a word containing "conftest.", or (3) at the end.
 
13613
   # Note that $ac_compile itself does not contain backslashes and begins
 
13614
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13615
   # The option is referenced via a variable to avoid confusing sed.
 
13616
   lt_compile=`echo "$ac_compile" | $SED \
 
13617
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13618
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13619
   -e 's:$: $lt_compiler_flag:'`
 
13620
   (eval echo "\"\$as_me:13620: $lt_compile\"" >&5)
 
13621
   (eval "$lt_compile" 2>conftest.err)
 
13622
   ac_status=$?
 
13623
   cat conftest.err >&5
 
13624
   echo "$as_me:13624: \$? = $ac_status" >&5
 
13625
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13626
     # The compiler can only warn and ignore the option if not recognized
 
13627
     # So say no if there are warnings other than the usual output.
 
13628
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13629
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13630
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13631
       lt_prog_compiler_pic_works_F77=yes
 
13632
     fi
 
13633
   fi
 
13634
   $rm conftest*
 
13635
 
 
13636
fi
 
13637
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13638
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13639
 
 
13640
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13641
    case $lt_prog_compiler_pic_F77 in
 
13642
     "" | " "*) ;;
 
13643
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13644
     esac
 
13645
else
 
13646
    lt_prog_compiler_pic_F77=
 
13647
     lt_prog_compiler_can_build_shared_F77=no
 
13648
fi
 
13649
 
 
13650
fi
 
13651
case $host_os in
 
13652
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13653
  *djgpp*)
 
13654
    lt_prog_compiler_pic_F77=
 
13655
    ;;
 
13656
  *)
 
13657
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13658
    ;;
 
13659
esac
 
13660
 
 
13661
#
 
13662
# Check to make sure the static flag actually works.
 
13663
#
 
13664
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13665
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13666
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13667
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13668
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13669
else
 
13670
  lt_prog_compiler_static_works_F77=no
 
13671
   save_LDFLAGS="$LDFLAGS"
 
13672
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13673
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13674
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13675
     # The linker can only warn and ignore the option if not recognized
 
13676
     # So say no if there are warnings
 
13677
     if test -s conftest.err; then
 
13678
       # Append any errors to the config.log.
 
13679
       cat conftest.err 1>&5
 
13680
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13681
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13682
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13683
         lt_prog_compiler_static_works_F77=yes
 
13684
       fi
 
13685
     else
 
13686
       lt_prog_compiler_static_works_F77=yes
 
13687
     fi
 
13688
   fi
 
13689
   $rm conftest*
 
13690
   LDFLAGS="$save_LDFLAGS"
 
13691
 
 
13692
fi
 
13693
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
13694
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
13695
 
 
13696
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
13697
    :
 
13698
else
 
13699
    lt_prog_compiler_static_F77=
 
13700
fi
 
13701
 
 
13702
 
 
13703
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13704
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13705
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13707
else
 
13708
  lt_cv_prog_compiler_c_o_F77=no
 
13709
   $rm -r conftest 2>/dev/null
 
13710
   mkdir conftest
 
13711
   cd conftest
 
13712
   mkdir out
 
13713
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13714
 
 
13715
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13716
   # Insert the option either (1) after the last *FLAGS variable, or
 
13717
   # (2) before a word containing "conftest.", or (3) at the end.
 
13718
   # Note that $ac_compile itself does not contain backslashes and begins
 
13719
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13720
   lt_compile=`echo "$ac_compile" | $SED \
 
13721
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13722
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13723
   -e 's:$: $lt_compiler_flag:'`
 
13724
   (eval echo "\"\$as_me:13724: $lt_compile\"" >&5)
 
13725
   (eval "$lt_compile" 2>out/conftest.err)
 
13726
   ac_status=$?
 
13727
   cat out/conftest.err >&5
 
13728
   echo "$as_me:13728: \$? = $ac_status" >&5
 
13729
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13730
   then
 
13731
     # The compiler can only warn and ignore the option if not recognized
 
13732
     # So say no if there are warnings
 
13733
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13734
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13735
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13736
       lt_cv_prog_compiler_c_o_F77=yes
 
13737
     fi
 
13738
   fi
 
13739
   chmod u+w . 2>&5
 
13740
   $rm conftest*
 
13741
   # SGI C++ compiler will create directory out/ii_files/ for
 
13742
   # template instantiation
 
13743
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13744
   $rm out/* && rmdir out
 
13745
   cd ..
 
13746
   rmdir conftest
 
13747
   $rm conftest*
 
13748
 
 
13749
fi
 
13750
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13751
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
13752
 
 
13753
 
 
13754
hard_links="nottested"
 
13755
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13756
  # do not overwrite the value of need_locks provided by the user
 
13757
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13758
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13759
  hard_links=yes
 
13760
  $rm conftest*
 
13761
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13762
  touch conftest.a
 
13763
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13764
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13765
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13766
echo "${ECHO_T}$hard_links" >&6; }
 
13767
  if test "$hard_links" = no; then
 
13768
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13769
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13770
    need_locks=warn
 
13771
  fi
 
13772
else
 
13773
  need_locks=no
 
13774
fi
 
13775
 
 
13776
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13777
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13778
 
 
13779
  runpath_var=
 
13780
  allow_undefined_flag_F77=
 
13781
  enable_shared_with_static_runtimes_F77=no
 
13782
  archive_cmds_F77=
 
13783
  archive_expsym_cmds_F77=
 
13784
  old_archive_From_new_cmds_F77=
 
13785
  old_archive_from_expsyms_cmds_F77=
 
13786
  export_dynamic_flag_spec_F77=
 
13787
  whole_archive_flag_spec_F77=
 
13788
  thread_safe_flag_spec_F77=
 
13789
  hardcode_libdir_flag_spec_F77=
 
13790
  hardcode_libdir_flag_spec_ld_F77=
 
13791
  hardcode_libdir_separator_F77=
 
13792
  hardcode_direct_F77=no
 
13793
  hardcode_minus_L_F77=no
 
13794
  hardcode_shlibpath_var_F77=unsupported
 
13795
  link_all_deplibs_F77=unknown
 
13796
  hardcode_automatic_F77=no
 
13797
  module_cmds_F77=
 
13798
  module_expsym_cmds_F77=
 
13799
  always_export_symbols_F77=no
 
13800
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13801
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13802
  # included in the symbol list
 
13803
  include_expsyms_F77=
 
13804
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13805
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13806
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13807
  # as well as any symbol that contains `d'.
 
13808
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13809
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13810
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13811
  # the symbol is explicitly referenced.  Since portable code cannot
 
13812
  # rely on this symbol name, it's probably fine to never include it in
 
13813
  # preloaded symbol tables.
 
13814
  extract_expsyms_cmds=
 
13815
  # Just being paranoid about ensuring that cc_basename is set.
 
13816
  for cc_temp in $compiler""; do
 
13817
  case $cc_temp in
 
13818
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13819
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13820
    \-*) ;;
 
13821
    *) break;;
 
13822
  esac
 
13823
done
 
13824
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13825
 
 
13826
  case $host_os in
 
13827
  cygwin* | mingw* | pw32*)
 
13828
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13829
    # When not using gcc, we currently assume that we are using
 
13830
    # Microsoft Visual C++.
 
13831
    if test "$GCC" != yes; then
 
13832
      with_gnu_ld=no
 
13833
    fi
 
13834
    ;;
 
13835
  interix*)
 
13836
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
13837
    with_gnu_ld=yes
 
13838
    ;;
 
13839
  openbsd*)
 
13840
    with_gnu_ld=no
 
13841
    ;;
 
13842
  esac
 
13843
 
 
13844
  ld_shlibs_F77=yes
 
13845
  if test "$with_gnu_ld" = yes; then
 
13846
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13847
    wlarc='${wl}'
 
13848
 
 
13849
    # Set some defaults for GNU ld with shared library support. These
 
13850
    # are reset later if shared libraries are not supported. Putting them
 
13851
    # here allows them to be overridden if necessary.
 
13852
    runpath_var=LD_RUN_PATH
 
13853
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13854
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13855
    # ancient GNU ld didn't support --whole-archive et. al.
 
13856
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13857
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13858
      else
 
13859
        whole_archive_flag_spec_F77=
 
13860
    fi
 
13861
    supports_anon_versioning=no
 
13862
    case `$LD -v 2>/dev/null` in
 
13863
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
13864
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
13865
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
13866
      *\ 2.11.*) ;; # other 2.11 versions
 
13867
      *) supports_anon_versioning=yes ;;
 
13868
    esac
 
13869
 
 
13870
    # See if GNU ld supports shared libraries.
 
13871
    case $host_os in
 
13872
    aix3* | aix4* | aix5*)
 
13873
      # On AIX/PPC, the GNU linker is very broken
 
13874
      if test "$host_cpu" != ia64; then
 
13875
        ld_shlibs_F77=no
 
13876
        cat <<EOF 1>&2
 
13877
 
 
13878
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
13879
*** to be unable to reliably create shared libraries on AIX.
 
13880
*** Therefore, libtool is disabling shared libraries support.  If you
 
13881
*** really care for shared libraries, you may want to modify your PATH
 
13882
*** so that a non-GNU linker is found, and then restart.
 
13883
 
 
13884
EOF
 
13885
      fi
 
13886
      ;;
 
13887
 
 
13888
    amigaos*)
 
13889
      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)'
 
13890
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13891
      hardcode_minus_L_F77=yes
 
13892
 
 
13893
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
13894
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
13895
      # to version 4, is to share data among multiple programs linked
 
13896
      # with the same dynamic library.  Since this doesn't match the
 
13897
      # behavior of shared libraries on other platforms, we can't use
 
13898
      # them.
 
13899
      ld_shlibs_F77=no
 
13900
      ;;
 
13901
 
 
13902
    beos*)
 
13903
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13904
        allow_undefined_flag_F77=unsupported
 
13905
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13906
        # support --undefined.  This deserves some investigation.  FIXME
 
13907
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13908
      else
 
13909
        ld_shlibs_F77=no
 
13910
      fi
 
13911
      ;;
 
13912
 
 
13913
    cygwin* | mingw* | pw32*)
 
13914
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
13915
      # as there is no search path for DLLs.
 
13916
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
13917
      allow_undefined_flag_F77=unsupported
 
13918
      always_export_symbols_F77=no
 
13919
      enable_shared_with_static_runtimes_F77=yes
 
13920
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13921
 
 
13922
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
13923
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13924
        # If the export-symbols file already is a .def file (1st line
 
13925
        # is EXPORTS), use it as is; otherwise, prepend...
 
13926
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13927
          cp $export_symbols $output_objdir/$soname.def;
 
13928
        else
 
13929
          echo EXPORTS > $output_objdir/$soname.def;
 
13930
          cat $export_symbols >> $output_objdir/$soname.def;
 
13931
        fi~
 
13932
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13933
      else
 
13934
        ld_shlibs_F77=no
 
13935
      fi
 
13936
      ;;
 
13937
 
 
13938
    interix3*)
 
13939
      hardcode_direct_F77=no
 
13940
      hardcode_shlibpath_var_F77=no
 
13941
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
13942
      export_dynamic_flag_spec_F77='${wl}-E'
 
13943
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13944
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13945
      # default) and relocated if they conflict, which is a slow very memory
 
13946
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
13947
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13948
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13949
      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'
 
13950
      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'
 
13951
      ;;
 
13952
 
 
13953
    linux*)
 
13954
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
13955
        tmp_addflag=
 
13956
        case $cc_basename,$host_cpu in
 
13957
        pgcc*)                          # Portland Group C compiler
 
13958
          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'
 
13959
          tmp_addflag=' $pic_flag'
 
13960
          ;;
 
13961
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
13962
          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'
 
13963
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
13964
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
13965
          tmp_addflag=' -i_dynamic' ;;
 
13966
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
13967
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
13968
        ifc* | ifort*)                  # Intel Fortran compiler
 
13969
          tmp_addflag=' -nofor_main' ;;
 
13970
        esac
 
13971
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13972
 
 
13973
        if test $supports_anon_versioning = yes; then
 
13974
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
13975
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13976
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
13977
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13978
        fi
 
13979
      else
 
13980
        ld_shlibs_F77=no
 
13981
      fi
 
13982
      ;;
 
13983
 
 
13984
    netbsd*)
 
13985
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13986
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
13987
        wlarc=
 
13988
      else
 
13989
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13990
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
13991
      fi
 
13992
      ;;
 
13993
 
 
13994
    solaris*)
 
13995
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
13996
        ld_shlibs_F77=no
 
13997
        cat <<EOF 1>&2
 
13998
 
 
13999
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14000
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14001
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14002
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14003
*** your PATH or compiler configuration so that the native linker is
 
14004
*** used, and then restart.
 
14005
 
 
14006
EOF
 
14007
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14008
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14009
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14010
      else
 
14011
        ld_shlibs_F77=no
 
14012
      fi
 
14013
      ;;
 
14014
 
 
14015
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14016
      case `$LD -v 2>&1` in
 
14017
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14018
        ld_shlibs_F77=no
 
14019
        cat <<_LT_EOF 1>&2
 
14020
 
 
14021
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14022
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14023
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14024
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14025
*** your PATH or compiler configuration so that the native linker is
 
14026
*** used, and then restart.
 
14027
 
 
14028
_LT_EOF
 
14029
        ;;
 
14030
        *)
 
14031
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14032
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14033
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14034
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14035
          else
 
14036
            ld_shlibs_F77=no
 
14037
          fi
 
14038
        ;;
 
14039
      esac
 
14040
      ;;
 
14041
 
 
14042
    sunos4*)
 
14043
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14044
      wlarc=
 
14045
      hardcode_direct_F77=yes
 
14046
      hardcode_shlibpath_var_F77=no
 
14047
      ;;
 
14048
 
 
14049
    *)
 
14050
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14051
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14052
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14053
      else
 
14054
        ld_shlibs_F77=no
 
14055
      fi
 
14056
      ;;
 
14057
    esac
 
14058
 
 
14059
    if test "$ld_shlibs_F77" = no; then
 
14060
      runpath_var=
 
14061
      hardcode_libdir_flag_spec_F77=
 
14062
      export_dynamic_flag_spec_F77=
 
14063
      whole_archive_flag_spec_F77=
 
14064
    fi
 
14065
  else
 
14066
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14067
    case $host_os in
 
14068
    aix3*)
 
14069
      allow_undefined_flag_F77=unsupported
 
14070
      always_export_symbols_F77=yes
 
14071
      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'
 
14072
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14073
      # are no directories specified by -L.
 
14074
      hardcode_minus_L_F77=yes
 
14075
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14076
        # Neither direct hardcoding nor static linking is supported with a
 
14077
        # broken collect2.
 
14078
        hardcode_direct_F77=unsupported
 
14079
      fi
 
14080
      ;;
 
14081
 
 
14082
    aix4* | aix5*)
 
14083
      if test "$host_cpu" = ia64; then
 
14084
        # On IA64, the linker does run time linking by default, so we don't
 
14085
        # have to do anything special.
 
14086
        aix_use_runtimelinking=no
 
14087
        exp_sym_flag='-Bexport'
 
14088
        no_entry_flag=""
 
14089
      else
 
14090
        # If we're using GNU nm, then we don't want the "-C" option.
 
14091
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14092
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14093
          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'
 
14094
        else
 
14095
          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'
 
14096
        fi
 
14097
        aix_use_runtimelinking=no
 
14098
 
 
14099
        # Test if we are trying to use run time linking or normal
 
14100
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14101
        # need to do runtime linking.
 
14102
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14103
          for ld_flag in $LDFLAGS; do
 
14104
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14105
            aix_use_runtimelinking=yes
 
14106
            break
 
14107
          fi
 
14108
          done
 
14109
          ;;
 
14110
        esac
 
14111
 
 
14112
        exp_sym_flag='-bexport'
 
14113
        no_entry_flag='-bnoentry'
 
14114
      fi
 
14115
 
 
14116
      # When large executables or shared objects are built, AIX ld can
 
14117
      # have problems creating the table of contents.  If linking a library
 
14118
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14119
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14120
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14121
 
 
14122
      archive_cmds_F77=''
 
14123
      hardcode_direct_F77=yes
 
14124
      hardcode_libdir_separator_F77=':'
 
14125
      link_all_deplibs_F77=yes
 
14126
 
 
14127
      if test "$GCC" = yes; then
 
14128
        case $host_os in aix4.[012]|aix4.[012].*)
 
14129
        # We only want to do this on AIX 4.2 and lower, the check
 
14130
        # below for broken collect2 doesn't work under 4.3+
 
14131
          collect2name=`${CC} -print-prog-name=collect2`
 
14132
          if test -f "$collect2name" && \
 
14133
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14134
          then
 
14135
          # We have reworked collect2
 
14136
          hardcode_direct_F77=yes
 
14137
          else
 
14138
          # We have old collect2
 
14139
          hardcode_direct_F77=unsupported
 
14140
          # It fails to find uninstalled libraries when the uninstalled
 
14141
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14142
          # to unsupported forces relinking
 
14143
          hardcode_minus_L_F77=yes
 
14144
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14145
          hardcode_libdir_separator_F77=
 
14146
          fi
 
14147
          ;;
 
14148
        esac
 
14149
        shared_flag='-shared'
 
14150
        if test "$aix_use_runtimelinking" = yes; then
 
14151
          shared_flag="$shared_flag "'${wl}-G'
 
14152
        fi
 
14153
      else
 
14154
        # not using gcc
 
14155
        if test "$host_cpu" = ia64; then
 
14156
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14157
        # chokes on -Wl,-G. The following line is correct:
 
14158
          shared_flag='-G'
 
14159
        else
 
14160
          if test "$aix_use_runtimelinking" = yes; then
 
14161
            shared_flag='${wl}-G'
 
14162
          else
 
14163
            shared_flag='${wl}-bM:SRE'
 
14164
          fi
 
14165
        fi
 
14166
      fi
 
14167
 
 
14168
      # It seems that -bexpall does not export symbols beginning with
 
14169
      # underscore (_), so it is better to generate a list of symbols to export.
 
14170
      always_export_symbols_F77=yes
 
14171
      if test "$aix_use_runtimelinking" = yes; then
 
14172
        # Warning - without using the other runtime loading flags (-brtl),
 
14173
        # -berok will link without error, but may produce a broken library.
 
14174
        allow_undefined_flag_F77='-berok'
 
14175
       # Determine the default libpath from the value encoded in an empty executable.
 
14176
       cat >conftest.$ac_ext <<_ACEOF
 
14177
      program main
 
14178
 
 
14179
      end
 
14180
_ACEOF
 
14181
rm -f conftest.$ac_objext conftest$ac_exeext
 
14182
if { (ac_try="$ac_link"
 
14183
case "(($ac_try" in
 
14184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14185
  *) ac_try_echo=$ac_try;;
 
14186
esac
 
14187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14188
  (eval "$ac_link") 2>conftest.er1
 
14189
  ac_status=$?
 
14190
  grep -v '^ *+' conftest.er1 >conftest.err
 
14191
  rm -f conftest.er1
 
14192
  cat conftest.err >&5
 
14193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14194
  (exit $ac_status); } && {
 
14195
         test -z "$ac_f77_werror_flag" ||
 
14196
         test ! -s conftest.err
 
14197
       } && test -s conftest$ac_exeext &&
 
14198
       $as_test_x conftest$ac_exeext; then
 
14199
 
 
14200
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14201
}'`
 
14202
# Check for a 64-bit object if we didn't find anything.
 
14203
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14204
}'`; fi
 
14205
else
 
14206
  echo "$as_me: failed program was:" >&5
 
14207
sed 's/^/| /' conftest.$ac_ext >&5
 
14208
 
 
14209
 
 
14210
fi
 
14211
 
 
14212
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14213
      conftest$ac_exeext conftest.$ac_ext
 
14214
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14215
 
 
14216
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14217
        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"
 
14218
       else
 
14219
        if test "$host_cpu" = ia64; then
 
14220
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14221
          allow_undefined_flag_F77="-z nodefs"
 
14222
          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"
 
14223
        else
 
14224
         # Determine the default libpath from the value encoded in an empty executable.
 
14225
         cat >conftest.$ac_ext <<_ACEOF
 
14226
      program main
 
14227
 
 
14228
      end
 
14229
_ACEOF
 
14230
rm -f conftest.$ac_objext conftest$ac_exeext
 
14231
if { (ac_try="$ac_link"
 
14232
case "(($ac_try" in
 
14233
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14234
  *) ac_try_echo=$ac_try;;
 
14235
esac
 
14236
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14237
  (eval "$ac_link") 2>conftest.er1
 
14238
  ac_status=$?
 
14239
  grep -v '^ *+' conftest.er1 >conftest.err
 
14240
  rm -f conftest.er1
 
14241
  cat conftest.err >&5
 
14242
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14243
  (exit $ac_status); } && {
 
14244
         test -z "$ac_f77_werror_flag" ||
 
14245
         test ! -s conftest.err
 
14246
       } && test -s conftest$ac_exeext &&
 
14247
       $as_test_x conftest$ac_exeext; then
 
14248
 
 
14249
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14250
}'`
 
14251
# Check for a 64-bit object if we didn't find anything.
 
14252
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14253
}'`; fi
 
14254
else
 
14255
  echo "$as_me: failed program was:" >&5
 
14256
sed 's/^/| /' conftest.$ac_ext >&5
 
14257
 
 
14258
 
 
14259
fi
 
14260
 
 
14261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14262
      conftest$ac_exeext conftest.$ac_ext
 
14263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14264
 
 
14265
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14266
          # Warning - without using the other run time loading flags,
 
14267
          # -berok will link without error, but may produce a broken library.
 
14268
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14269
          allow_undefined_flag_F77=' ${wl}-berok'
 
14270
          # Exported symbols can be pulled into shared objects from archives
 
14271
          whole_archive_flag_spec_F77='$convenience'
 
14272
          archive_cmds_need_lc_F77=yes
 
14273
          # This is similar to how AIX traditionally builds its shared libraries.
 
14274
          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'
 
14275
        fi
 
14276
      fi
 
14277
      ;;
 
14278
 
 
14279
    amigaos*)
 
14280
      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)'
 
14281
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14282
      hardcode_minus_L_F77=yes
 
14283
      # see comment about different semantics on the GNU ld section
 
14284
      ld_shlibs_F77=no
 
14285
      ;;
 
14286
 
 
14287
    bsdi[45]*)
 
14288
      export_dynamic_flag_spec_F77=-rdynamic
 
14289
      ;;
 
14290
 
 
14291
    cygwin* | mingw* | pw32*)
 
14292
      # When not using gcc, we currently assume that we are using
 
14293
      # Microsoft Visual C++.
 
14294
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14295
      # no search path for DLLs.
 
14296
      hardcode_libdir_flag_spec_F77=' '
 
14297
      allow_undefined_flag_F77=unsupported
 
14298
      # Tell ltmain to make .lib files, not .a files.
 
14299
      libext=lib
 
14300
      # Tell ltmain to make .dll files, not .so files.
 
14301
      shrext_cmds=".dll"
 
14302
      # FIXME: Setting linknames here is a bad hack.
 
14303
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14304
      # The linker will automatically build a .lib file if we build a DLL.
 
14305
      old_archive_From_new_cmds_F77='true'
 
14306
      # FIXME: Should let the user specify the lib program.
 
14307
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14308
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14309
      enable_shared_with_static_runtimes_F77=yes
 
14310
      ;;
 
14311
 
 
14312
    darwin* | rhapsody*)
 
14313
      case $host_os in
 
14314
        rhapsody* | darwin1.[012])
 
14315
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14316
         ;;
 
14317
       *) # Darwin 1.3 on
 
14318
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14319
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14320
         else
 
14321
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14322
             10.[012])
 
14323
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14324
               ;;
 
14325
             10.*)
 
14326
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14327
               ;;
 
14328
           esac
 
14329
         fi
 
14330
         ;;
 
14331
      esac
 
14332
      archive_cmds_need_lc_F77=no
 
14333
      hardcode_direct_F77=no
 
14334
      hardcode_automatic_F77=yes
 
14335
      hardcode_shlibpath_var_F77=unsupported
 
14336
      whole_archive_flag_spec_F77=''
 
14337
      link_all_deplibs_F77=yes
 
14338
    if test "$GCC" = yes ; then
 
14339
        output_verbose_link_cmd='echo'
 
14340
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14341
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14342
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14343
      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}'
 
14344
      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}'
 
14345
    else
 
14346
      case $cc_basename in
 
14347
        xlc*)
 
14348
         output_verbose_link_cmd='echo'
 
14349
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14350
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14351
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14352
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14353
          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}'
 
14354
          ;;
 
14355
       *)
 
14356
         ld_shlibs_F77=no
 
14357
          ;;
 
14358
      esac
 
14359
    fi
 
14360
      ;;
 
14361
 
 
14362
    dgux*)
 
14363
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14364
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14365
      hardcode_shlibpath_var_F77=no
 
14366
      ;;
 
14367
 
 
14368
    freebsd1*)
 
14369
      ld_shlibs_F77=no
 
14370
      ;;
 
14371
 
 
14372
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14373
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14374
    # does not break anything, and helps significantly (at the cost of a little
 
14375
    # extra space).
 
14376
    freebsd2.2*)
 
14377
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14378
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14379
      hardcode_direct_F77=yes
 
14380
      hardcode_shlibpath_var_F77=no
 
14381
      ;;
 
14382
 
 
14383
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14384
    freebsd2*)
 
14385
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14386
      hardcode_direct_F77=yes
 
14387
      hardcode_minus_L_F77=yes
 
14388
      hardcode_shlibpath_var_F77=no
 
14389
      ;;
 
14390
 
 
14391
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14392
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14393
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14394
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14395
      hardcode_direct_F77=yes
 
14396
      hardcode_shlibpath_var_F77=no
 
14397
      ;;
 
14398
 
 
14399
    hpux9*)
 
14400
      if test "$GCC" = yes; then
 
14401
        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'
 
14402
      else
 
14403
        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'
 
14404
      fi
 
14405
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14406
      hardcode_libdir_separator_F77=:
 
14407
      hardcode_direct_F77=yes
 
14408
 
 
14409
      # hardcode_minus_L: Not really in the search PATH,
 
14410
      # but as the default location of the library.
 
14411
      hardcode_minus_L_F77=yes
 
14412
      export_dynamic_flag_spec_F77='${wl}-E'
 
14413
      ;;
 
14414
 
 
14415
    hpux10*)
 
14416
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14417
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14418
      else
 
14419
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14420
      fi
 
14421
      if test "$with_gnu_ld" = no; then
 
14422
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14423
        hardcode_libdir_separator_F77=:
 
14424
 
 
14425
        hardcode_direct_F77=yes
 
14426
        export_dynamic_flag_spec_F77='${wl}-E'
 
14427
 
 
14428
        # hardcode_minus_L: Not really in the search PATH,
 
14429
        # but as the default location of the library.
 
14430
        hardcode_minus_L_F77=yes
 
14431
      fi
 
14432
      ;;
 
14433
 
 
14434
    hpux11*)
 
14435
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14436
        case $host_cpu in
 
14437
        hppa*64*)
 
14438
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14439
          ;;
 
14440
        ia64*)
 
14441
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14442
          ;;
 
14443
        *)
 
14444
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14445
          ;;
 
14446
        esac
 
14447
      else
 
14448
        case $host_cpu in
 
14449
        hppa*64*)
 
14450
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14451
          ;;
 
14452
        ia64*)
 
14453
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14454
          ;;
 
14455
        *)
 
14456
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14457
          ;;
 
14458
        esac
 
14459
      fi
 
14460
      if test "$with_gnu_ld" = no; then
 
14461
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14462
        hardcode_libdir_separator_F77=:
 
14463
 
 
14464
        case $host_cpu in
 
14465
        hppa*64*|ia64*)
 
14466
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14467
          hardcode_direct_F77=no
 
14468
          hardcode_shlibpath_var_F77=no
 
14469
          ;;
 
14470
        *)
 
14471
          hardcode_direct_F77=yes
 
14472
          export_dynamic_flag_spec_F77='${wl}-E'
 
14473
 
 
14474
          # hardcode_minus_L: Not really in the search PATH,
 
14475
          # but as the default location of the library.
 
14476
          hardcode_minus_L_F77=yes
 
14477
          ;;
 
14478
        esac
 
14479
      fi
 
14480
      ;;
 
14481
 
 
14482
    irix5* | irix6* | nonstopux*)
 
14483
      if test "$GCC" = yes; then
 
14484
        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'
 
14485
      else
 
14486
        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'
 
14487
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14488
      fi
 
14489
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14490
      hardcode_libdir_separator_F77=:
 
14491
      link_all_deplibs_F77=yes
 
14492
      ;;
 
14493
 
 
14494
    netbsd*)
 
14495
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14496
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14497
      else
 
14498
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14499
      fi
 
14500
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14501
      hardcode_direct_F77=yes
 
14502
      hardcode_shlibpath_var_F77=no
 
14503
      ;;
 
14504
 
 
14505
    newsos6)
 
14506
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14507
      hardcode_direct_F77=yes
 
14508
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14509
      hardcode_libdir_separator_F77=:
 
14510
      hardcode_shlibpath_var_F77=no
 
14511
      ;;
 
14512
 
 
14513
    openbsd*)
 
14514
      hardcode_direct_F77=yes
 
14515
      hardcode_shlibpath_var_F77=no
 
14516
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14517
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14518
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14519
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14520
        export_dynamic_flag_spec_F77='${wl}-E'
 
14521
      else
 
14522
       case $host_os in
 
14523
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14524
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14525
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14526
           ;;
 
14527
         *)
 
14528
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14529
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14530
           ;;
 
14531
       esac
 
14532
      fi
 
14533
      ;;
 
14534
 
 
14535
    os2*)
 
14536
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14537
      hardcode_minus_L_F77=yes
 
14538
      allow_undefined_flag_F77=unsupported
 
14539
      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'
 
14540
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14541
      ;;
 
14542
 
 
14543
    osf3*)
 
14544
      if test "$GCC" = yes; then
 
14545
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14546
        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'
 
14547
      else
 
14548
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14549
        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'
 
14550
      fi
 
14551
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14552
      hardcode_libdir_separator_F77=:
 
14553
      ;;
 
14554
 
 
14555
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14556
      if test "$GCC" = yes; then
 
14557
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14558
        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'
 
14559
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14560
      else
 
14561
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14562
        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'
 
14563
        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~
 
14564
        $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'
 
14565
 
 
14566
        # Both c and cxx compiler support -rpath directly
 
14567
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14568
      fi
 
14569
      hardcode_libdir_separator_F77=:
 
14570
      ;;
 
14571
 
 
14572
    solaris*)
 
14573
      no_undefined_flag_F77=' -z text'
 
14574
      if test "$GCC" = yes; then
 
14575
        wlarc='${wl}'
 
14576
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14577
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14578
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14579
      else
 
14580
        wlarc=''
 
14581
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14582
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14583
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14584
      fi
 
14585
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14586
      hardcode_shlibpath_var_F77=no
 
14587
      case $host_os in
 
14588
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14589
      *)
 
14590
        # The compiler driver will combine linker options so we
 
14591
        # cannot just pass the convience library names through
 
14592
        # without $wl, iff we do not link with $LD.
 
14593
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14594
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14595
        case $wlarc in
 
14596
        '')
 
14597
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14598
        *)
 
14599
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14600
        esac ;;
 
14601
      esac
 
14602
      link_all_deplibs_F77=yes
 
14603
      ;;
 
14604
 
 
14605
    sunos4*)
 
14606
      if test "x$host_vendor" = xsequent; then
 
14607
        # Use $CC to link under sequent, because it throws in some extra .o
 
14608
        # files that make .init and .fini sections work.
 
14609
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14610
      else
 
14611
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14612
      fi
 
14613
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14614
      hardcode_direct_F77=yes
 
14615
      hardcode_minus_L_F77=yes
 
14616
      hardcode_shlibpath_var_F77=no
 
14617
      ;;
 
14618
 
 
14619
    sysv4)
 
14620
      case $host_vendor in
 
14621
        sni)
 
14622
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14623
          hardcode_direct_F77=yes # is this really true???
 
14624
        ;;
 
14625
        siemens)
 
14626
          ## LD is ld it makes a PLAMLIB
 
14627
          ## CC just makes a GrossModule.
 
14628
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14629
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14630
          hardcode_direct_F77=no
 
14631
        ;;
 
14632
        motorola)
 
14633
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14634
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14635
        ;;
 
14636
      esac
 
14637
      runpath_var='LD_RUN_PATH'
 
14638
      hardcode_shlibpath_var_F77=no
 
14639
      ;;
 
14640
 
 
14641
    sysv4.3*)
 
14642
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14643
      hardcode_shlibpath_var_F77=no
 
14644
      export_dynamic_flag_spec_F77='-Bexport'
 
14645
      ;;
 
14646
 
 
14647
    sysv4*MP*)
 
14648
      if test -d /usr/nec; then
 
14649
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14650
        hardcode_shlibpath_var_F77=no
 
14651
        runpath_var=LD_RUN_PATH
 
14652
        hardcode_runpath_var=yes
 
14653
        ld_shlibs_F77=yes
 
14654
      fi
 
14655
      ;;
 
14656
 
 
14657
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14658
      no_undefined_flag_F77='${wl}-z,text'
 
14659
      archive_cmds_need_lc_F77=no
 
14660
      hardcode_shlibpath_var_F77=no
 
14661
      runpath_var='LD_RUN_PATH'
 
14662
 
 
14663
      if test "$GCC" = yes; then
 
14664
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14665
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14666
      else
 
14667
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14668
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14669
      fi
 
14670
      ;;
 
14671
 
 
14672
    sysv5* | sco3.2v5* | sco5v6*)
 
14673
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14674
      # link with -lc, and that would cause any symbols used from libc to
 
14675
      # always be unresolved, which means just about no library would
 
14676
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14677
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14678
      # as -z defs.
 
14679
      no_undefined_flag_F77='${wl}-z,text'
 
14680
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14681
      archive_cmds_need_lc_F77=no
 
14682
      hardcode_shlibpath_var_F77=no
 
14683
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14684
      hardcode_libdir_separator_F77=':'
 
14685
      link_all_deplibs_F77=yes
 
14686
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14687
      runpath_var='LD_RUN_PATH'
 
14688
 
 
14689
      if test "$GCC" = yes; then
 
14690
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14691
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14692
      else
 
14693
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14694
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14695
      fi
 
14696
      ;;
 
14697
 
 
14698
    uts4*)
 
14699
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14700
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14701
      hardcode_shlibpath_var_F77=no
 
14702
      ;;
 
14703
 
 
14704
    *)
 
14705
      ld_shlibs_F77=no
 
14706
      ;;
 
14707
    esac
 
14708
  fi
 
14709
 
 
14710
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14711
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
14712
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14713
 
 
14714
#
 
14715
# Do we need to explicitly link libc?
 
14716
#
 
14717
case "x$archive_cmds_need_lc_F77" in
 
14718
x|xyes)
 
14719
  # Assume -lc should be added
 
14720
  archive_cmds_need_lc_F77=yes
 
14721
 
 
14722
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14723
    case $archive_cmds_F77 in
 
14724
    *'~'*)
 
14725
      # FIXME: we may have to deal with multi-command sequences.
 
14726
      ;;
 
14727
    '$CC '*)
 
14728
      # Test whether the compiler implicitly links with -lc since on some
 
14729
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14730
      # to ld, don't add -lc before -lgcc.
 
14731
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14732
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
14733
      $rm conftest*
 
14734
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14735
 
 
14736
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14737
  (eval $ac_compile) 2>&5
 
14738
  ac_status=$?
 
14739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14740
  (exit $ac_status); } 2>conftest.err; then
 
14741
        soname=conftest
 
14742
        lib=conftest
 
14743
        libobjs=conftest.$ac_objext
 
14744
        deplibs=
 
14745
        wl=$lt_prog_compiler_wl_F77
 
14746
        pic_flag=$lt_prog_compiler_pic_F77
 
14747
        compiler_flags=-v
 
14748
        linker_flags=-v
 
14749
        verstring=
 
14750
        output_objdir=.
 
14751
        libname=conftest
 
14752
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14753
        allow_undefined_flag_F77=
 
14754
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14755
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14756
  ac_status=$?
 
14757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14758
  (exit $ac_status); }
 
14759
        then
 
14760
          archive_cmds_need_lc_F77=no
 
14761
        else
 
14762
          archive_cmds_need_lc_F77=yes
 
14763
        fi
 
14764
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14765
      else
 
14766
        cat conftest.err 1>&5
 
14767
      fi
 
14768
      $rm conftest*
 
14769
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14770
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
14771
      ;;
 
14772
    esac
 
14773
  fi
 
14774
  ;;
 
14775
esac
 
14776
 
 
14777
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14778
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
14779
library_names_spec=
 
14780
libname_spec='lib$name'
 
14781
soname_spec=
 
14782
shrext_cmds=".so"
 
14783
postinstall_cmds=
 
14784
postuninstall_cmds=
 
14785
finish_cmds=
 
14786
finish_eval=
 
14787
shlibpath_var=
 
14788
shlibpath_overrides_runpath=unknown
 
14789
version_type=none
 
14790
dynamic_linker="$host_os ld.so"
 
14791
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14792
if test "$GCC" = yes; then
 
14793
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14794
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14795
    # if the path contains ";" then we assume it to be the separator
 
14796
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14797
    # assumed that no part of a normal pathname contains ";" but that should
 
14798
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14799
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14800
  else
 
14801
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14802
  fi
 
14803
else
 
14804
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14805
fi
 
14806
need_lib_prefix=unknown
 
14807
hardcode_into_libs=no
 
14808
 
 
14809
# when you set need_version to no, make sure it does not cause -set_version
 
14810
# flags to be left without arguments
 
14811
need_version=unknown
 
14812
 
 
14813
case $host_os in
 
14814
aix3*)
 
14815
  version_type=linux
 
14816
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14817
  shlibpath_var=LIBPATH
 
14818
 
 
14819
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14820
  soname_spec='${libname}${release}${shared_ext}$major'
 
14821
  ;;
 
14822
 
 
14823
aix4* | aix5*)
 
14824
  version_type=linux
 
14825
  need_lib_prefix=no
 
14826
  need_version=no
 
14827
  hardcode_into_libs=yes
 
14828
  if test "$host_cpu" = ia64; then
 
14829
    # AIX 5 supports IA64
 
14830
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14831
    shlibpath_var=LD_LIBRARY_PATH
 
14832
  else
 
14833
    # With GCC up to 2.95.x, collect2 would create an import file
 
14834
    # for dependence libraries.  The import file would start with
 
14835
    # the line `#! .'.  This would cause the generated library to
 
14836
    # depend on `.', always an invalid library.  This was fixed in
 
14837
    # development snapshots of GCC prior to 3.0.
 
14838
    case $host_os in
 
14839
      aix4 | aix4.[01] | aix4.[01].*)
 
14840
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14841
           echo ' yes '
 
14842
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14843
        :
 
14844
      else
 
14845
        can_build_shared=no
 
14846
      fi
 
14847
      ;;
 
14848
    esac
 
14849
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14850
    # soname into executable. Probably we can add versioning support to
 
14851
    # collect2, so additional links can be useful in future.
 
14852
    if test "$aix_use_runtimelinking" = yes; then
 
14853
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14854
      # instead of lib<name>.a to let people know that these are not
 
14855
      # typical AIX shared libraries.
 
14856
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14857
    else
 
14858
      # We preserve .a as extension for shared libraries through AIX4.2
 
14859
      # and later when we are not doing run time linking.
 
14860
      library_names_spec='${libname}${release}.a $libname.a'
 
14861
      soname_spec='${libname}${release}${shared_ext}$major'
 
14862
    fi
 
14863
    shlibpath_var=LIBPATH
 
14864
  fi
 
14865
  ;;
 
14866
 
 
14867
amigaos*)
 
14868
  library_names_spec='$libname.ixlibrary $libname.a'
 
14869
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14870
  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'
 
14871
  ;;
 
14872
 
 
14873
beos*)
 
14874
  library_names_spec='${libname}${shared_ext}'
 
14875
  dynamic_linker="$host_os ld.so"
 
14876
  shlibpath_var=LIBRARY_PATH
 
14877
  ;;
 
14878
 
 
14879
bsdi[45]*)
 
14880
  version_type=linux
 
14881
  need_version=no
 
14882
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14883
  soname_spec='${libname}${release}${shared_ext}$major'
 
14884
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14885
  shlibpath_var=LD_LIBRARY_PATH
 
14886
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14887
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14888
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14889
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14890
  # libtool to hard-code these into programs
 
14891
  ;;
 
14892
 
 
14893
cygwin* | mingw* | pw32*)
 
14894
  version_type=windows
 
14895
  shrext_cmds=".dll"
 
14896
  need_version=no
 
14897
  need_lib_prefix=no
 
14898
 
 
14899
  case $GCC,$host_os in
 
14900
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14901
    library_names_spec='$libname.dll.a'
 
14902
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14903
    postinstall_cmds='base_file=`basename \${file}`~
 
14904
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14905
      dldir=$destdir/`dirname \$dlpath`~
 
14906
      test -d \$dldir || mkdir -p \$dldir~
 
14907
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14908
      chmod a+x \$dldir/$dlname'
 
14909
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14910
      dlpath=$dir/\$dldll~
 
14911
       $rm \$dlpath'
 
14912
    shlibpath_overrides_runpath=yes
 
14913
 
 
14914
    case $host_os in
 
14915
    cygwin*)
 
14916
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
14917
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14918
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
14919
      ;;
 
14920
    mingw*)
 
14921
      # MinGW DLLs use traditional 'lib' prefix
 
14922
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14923
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14924
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
14925
        # It is most probably a Windows format PATH printed by
 
14926
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
14927
        # path with ; separators, and with drive letters. We can handle the
 
14928
        # drive letters (cygwin fileutils understands them), so leave them,
 
14929
        # especially as we might pass files found there to a mingw objdump,
 
14930
        # which wouldn't understand a cygwinified path. Ahh.
 
14931
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14932
      else
 
14933
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14934
      fi
 
14935
      ;;
 
14936
    pw32*)
 
14937
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
14938
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
14939
      ;;
 
14940
    esac
 
14941
    ;;
 
14942
 
 
14943
  linux*)
 
14944
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
14945
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14946
      supports_anon_versioning=no
 
14947
      case `$LD -v 2>/dev/null` in
 
14948
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14949
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14950
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14951
        *\ 2.11.*) ;; # other 2.11 versions
 
14952
        *) supports_anon_versioning=yes ;;
 
14953
      esac
 
14954
      if test $supports_anon_versioning = yes; then
 
14955
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
14956
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14957
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14958
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14959
      else
 
14960
        $archive_expsym_cmds="$archive_cmds"
 
14961
      fi
 
14962
    else
 
14963
      ld_shlibs=no
 
14964
    fi
 
14965
    ;;
 
14966
 
 
14967
  *)
 
14968
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
14969
    ;;
 
14970
  esac
 
14971
  dynamic_linker='Win32 ld.exe'
 
14972
  # FIXME: first we should search . and the directory the executable is in
 
14973
  shlibpath_var=PATH
 
14974
  ;;
 
14975
 
 
14976
darwin* | rhapsody*)
 
14977
  dynamic_linker="$host_os dyld"
 
14978
  version_type=darwin
 
14979
  need_lib_prefix=no
 
14980
  need_version=no
 
14981
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
14982
  soname_spec='${libname}${release}${major}$shared_ext'
 
14983
  shlibpath_overrides_runpath=yes
 
14984
  shlibpath_var=DYLD_LIBRARY_PATH
 
14985
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
14986
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
14987
  if test "$GCC" = yes; then
 
14988
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
14989
  else
 
14990
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
14991
  fi
 
14992
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
14993
  ;;
 
14994
 
 
14995
dgux*)
 
14996
  version_type=linux
 
14997
  need_lib_prefix=no
 
14998
  need_version=no
 
14999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15000
  soname_spec='${libname}${release}${shared_ext}$major'
 
15001
  shlibpath_var=LD_LIBRARY_PATH
 
15002
  ;;
 
15003
 
 
15004
freebsd1*)
 
15005
  dynamic_linker=no
 
15006
  ;;
 
15007
 
 
15008
kfreebsd*-gnu)
 
15009
  version_type=linux
 
15010
  need_lib_prefix=no
 
15011
  need_version=no
 
15012
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15013
  soname_spec='${libname}${release}${shared_ext}$major'
 
15014
  shlibpath_var=LD_LIBRARY_PATH
 
15015
  shlibpath_overrides_runpath=no
 
15016
  hardcode_into_libs=yes
 
15017
  dynamic_linker='GNU ld.so'
 
15018
  ;;
 
15019
 
 
15020
freebsd* | dragonfly*)
 
15021
  # DragonFly does not have aout.  When/if they implement a new
 
15022
  # versioning mechanism, adjust this.
 
15023
  if test -x /usr/bin/objformat; then
 
15024
    objformat=`/usr/bin/objformat`
 
15025
  else
 
15026
    case $host_os in
 
15027
    freebsd[123]*) objformat=aout ;;
 
15028
    *) objformat=elf ;;
 
15029
    esac
 
15030
  fi
 
15031
  # Handle Gentoo/FreeBSD as it was Linux
 
15032
  case $host_vendor in
 
15033
    gentoo)
 
15034
      version_type=linux ;;
 
15035
    *)
 
15036
      version_type=freebsd-$objformat ;;
 
15037
  esac
 
15038
 
 
15039
  case $version_type in
 
15040
    freebsd-elf*)
 
15041
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15042
      need_version=no
 
15043
      need_lib_prefix=no
 
15044
      ;;
 
15045
    freebsd-*)
 
15046
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15047
      need_version=yes
 
15048
      ;;
 
15049
    linux)
 
15050
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15051
      soname_spec='${libname}${release}${shared_ext}$major'
 
15052
      need_lib_prefix=no
 
15053
      need_version=no
 
15054
      ;;
 
15055
  esac
 
15056
  shlibpath_var=LD_LIBRARY_PATH
 
15057
  case $host_os in
 
15058
  freebsd2*)
 
15059
    shlibpath_overrides_runpath=yes
 
15060
    ;;
 
15061
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15062
    shlibpath_overrides_runpath=yes
 
15063
    hardcode_into_libs=yes
 
15064
    ;;
 
15065
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15066
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15067
    shlibpath_overrides_runpath=no
 
15068
    hardcode_into_libs=yes
 
15069
    ;;
 
15070
  freebsd*) # from 4.6 on
 
15071
    shlibpath_overrides_runpath=yes
 
15072
    hardcode_into_libs=yes
 
15073
    ;;
 
15074
  esac
 
15075
  ;;
 
15076
 
 
15077
gnu*)
 
15078
  version_type=linux
 
15079
  need_lib_prefix=no
 
15080
  need_version=no
 
15081
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15082
  soname_spec='${libname}${release}${shared_ext}$major'
 
15083
  shlibpath_var=LD_LIBRARY_PATH
 
15084
  hardcode_into_libs=yes
 
15085
  ;;
 
15086
 
 
15087
hpux9* | hpux10* | hpux11*)
 
15088
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15089
  # link against other versions.
 
15090
  version_type=sunos
 
15091
  need_lib_prefix=no
 
15092
  need_version=no
 
15093
  case $host_cpu in
 
15094
  ia64*)
 
15095
    shrext_cmds='.so'
 
15096
    hardcode_into_libs=yes
 
15097
    dynamic_linker="$host_os dld.so"
 
15098
    shlibpath_var=LD_LIBRARY_PATH
 
15099
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15100
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15101
    soname_spec='${libname}${release}${shared_ext}$major'
 
15102
    if test "X$HPUX_IA64_MODE" = X32; then
 
15103
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15104
    else
 
15105
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15106
    fi
 
15107
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15108
    ;;
 
15109
   hppa*64*)
 
15110
     shrext_cmds='.sl'
 
15111
     hardcode_into_libs=yes
 
15112
     dynamic_linker="$host_os dld.sl"
 
15113
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15114
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15115
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15116
     soname_spec='${libname}${release}${shared_ext}$major'
 
15117
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15118
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15119
     ;;
 
15120
   *)
 
15121
    shrext_cmds='.sl'
 
15122
    dynamic_linker="$host_os dld.sl"
 
15123
    shlibpath_var=SHLIB_PATH
 
15124
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15125
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15126
    soname_spec='${libname}${release}${shared_ext}$major'
 
15127
    ;;
 
15128
  esac
 
15129
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15130
  postinstall_cmds='chmod 555 $lib'
 
15131
  ;;
 
15132
 
 
15133
interix3*)
 
15134
  version_type=linux
 
15135
  need_lib_prefix=no
 
15136
  need_version=no
 
15137
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15138
  soname_spec='${libname}${release}${shared_ext}$major'
 
15139
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15140
  shlibpath_var=LD_LIBRARY_PATH
 
15141
  shlibpath_overrides_runpath=no
 
15142
  hardcode_into_libs=yes
 
15143
  ;;
 
15144
 
 
15145
irix5* | irix6* | nonstopux*)
 
15146
  case $host_os in
 
15147
    nonstopux*) version_type=nonstopux ;;
 
15148
    *)
 
15149
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15150
                version_type=linux
 
15151
        else
 
15152
                version_type=irix
 
15153
        fi ;;
 
15154
  esac
 
15155
  need_lib_prefix=no
 
15156
  need_version=no
 
15157
  soname_spec='${libname}${release}${shared_ext}$major'
 
15158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15159
  case $host_os in
 
15160
  irix5* | nonstopux*)
 
15161
    libsuff= shlibsuff=
 
15162
    ;;
 
15163
  *)
 
15164
    case $LD in # libtool.m4 will add one of these switches to LD
 
15165
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15166
      libsuff= shlibsuff= libmagic=32-bit;;
 
15167
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15168
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15169
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15170
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15171
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15172
    esac
 
15173
    ;;
 
15174
  esac
 
15175
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15176
  shlibpath_overrides_runpath=no
 
15177
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15178
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15179
  hardcode_into_libs=yes
 
15180
  ;;
 
15181
 
 
15182
# No shared lib support for Linux oldld, aout, or coff.
 
15183
linux*oldld* | linux*aout* | linux*coff*)
 
15184
  dynamic_linker=no
 
15185
  ;;
 
15186
 
 
15187
# This must be Linux ELF.
 
15188
linux*)
 
15189
  version_type=linux
 
15190
  need_lib_prefix=no
 
15191
  need_version=no
 
15192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15193
  soname_spec='${libname}${release}${shared_ext}$major'
 
15194
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15195
  shlibpath_var=LD_LIBRARY_PATH
 
15196
  shlibpath_overrides_runpath=no
 
15197
  # This implies no fast_install, which is unacceptable.
 
15198
  # Some rework will be needed to allow for fast_install
 
15199
  # before this can be enabled.
 
15200
  hardcode_into_libs=yes
 
15201
 
 
15202
  # Append ld.so.conf contents to the search path
 
15203
  if test -f /etc/ld.so.conf; then
 
15204
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15205
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15206
  fi
 
15207
 
 
15208
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15209
  # powerpc, because MkLinux only supported shared libraries with the
 
15210
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15211
  # most powerpc-linux boxes support dynamic linking these days and
 
15212
  # people can always --disable-shared, the test was removed, and we
 
15213
  # assume the GNU/Linux dynamic linker is in use.
 
15214
  dynamic_linker='GNU/Linux ld.so'
 
15215
  ;;
 
15216
 
 
15217
knetbsd*-gnu)
 
15218
  version_type=linux
 
15219
  need_lib_prefix=no
 
15220
  need_version=no
 
15221
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15222
  soname_spec='${libname}${release}${shared_ext}$major'
 
15223
  shlibpath_var=LD_LIBRARY_PATH
 
15224
  shlibpath_overrides_runpath=no
 
15225
  hardcode_into_libs=yes
 
15226
  dynamic_linker='GNU ld.so'
 
15227
  ;;
 
15228
 
 
15229
netbsd*)
 
15230
  version_type=sunos
 
15231
  need_lib_prefix=no
 
15232
  need_version=no
 
15233
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15234
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15235
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15236
    dynamic_linker='NetBSD (a.out) ld.so'
 
15237
  else
 
15238
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15239
    soname_spec='${libname}${release}${shared_ext}$major'
 
15240
    dynamic_linker='NetBSD ld.elf_so'
 
15241
  fi
 
15242
  shlibpath_var=LD_LIBRARY_PATH
 
15243
  shlibpath_overrides_runpath=yes
 
15244
  hardcode_into_libs=yes
 
15245
  ;;
 
15246
 
 
15247
newsos6)
 
15248
  version_type=linux
 
15249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15250
  shlibpath_var=LD_LIBRARY_PATH
 
15251
  shlibpath_overrides_runpath=yes
 
15252
  ;;
 
15253
 
 
15254
nto-qnx*)
 
15255
  version_type=linux
 
15256
  need_lib_prefix=no
 
15257
  need_version=no
 
15258
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15259
  soname_spec='${libname}${release}${shared_ext}$major'
 
15260
  shlibpath_var=LD_LIBRARY_PATH
 
15261
  shlibpath_overrides_runpath=yes
 
15262
  ;;
 
15263
 
 
15264
openbsd*)
 
15265
  version_type=sunos
 
15266
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15267
  need_lib_prefix=no
 
15268
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15269
  case $host_os in
 
15270
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15271
    *)                         need_version=no  ;;
 
15272
  esac
 
15273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15274
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15275
  shlibpath_var=LD_LIBRARY_PATH
 
15276
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15277
    case $host_os in
 
15278
      openbsd2.[89] | openbsd2.[89].*)
 
15279
        shlibpath_overrides_runpath=no
 
15280
        ;;
 
15281
      *)
 
15282
        shlibpath_overrides_runpath=yes
 
15283
        ;;
 
15284
      esac
 
15285
  else
 
15286
    shlibpath_overrides_runpath=yes
 
15287
  fi
 
15288
  ;;
 
15289
 
 
15290
os2*)
 
15291
  libname_spec='$name'
 
15292
  shrext_cmds=".dll"
 
15293
  need_lib_prefix=no
 
15294
  library_names_spec='$libname${shared_ext} $libname.a'
 
15295
  dynamic_linker='OS/2 ld.exe'
 
15296
  shlibpath_var=LIBPATH
 
15297
  ;;
 
15298
 
 
15299
osf3* | osf4* | osf5*)
 
15300
  version_type=osf
 
15301
  need_lib_prefix=no
 
15302
  need_version=no
 
15303
  soname_spec='${libname}${release}${shared_ext}$major'
 
15304
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15305
  shlibpath_var=LD_LIBRARY_PATH
 
15306
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15307
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15308
  ;;
 
15309
 
 
15310
solaris*)
 
15311
  version_type=linux
 
15312
  need_lib_prefix=no
 
15313
  need_version=no
 
15314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15315
  soname_spec='${libname}${release}${shared_ext}$major'
 
15316
  shlibpath_var=LD_LIBRARY_PATH
 
15317
  shlibpath_overrides_runpath=yes
 
15318
  hardcode_into_libs=yes
 
15319
  # ldd complains unless libraries are executable
 
15320
  postinstall_cmds='chmod +x $lib'
 
15321
  ;;
 
15322
 
 
15323
sunos4*)
 
15324
  version_type=sunos
 
15325
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15326
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15327
  shlibpath_var=LD_LIBRARY_PATH
 
15328
  shlibpath_overrides_runpath=yes
 
15329
  if test "$with_gnu_ld" = yes; then
 
15330
    need_lib_prefix=no
 
15331
  fi
 
15332
  need_version=yes
 
15333
  ;;
 
15334
 
 
15335
sysv4 | sysv4.3*)
 
15336
  version_type=linux
 
15337
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15338
  soname_spec='${libname}${release}${shared_ext}$major'
 
15339
  shlibpath_var=LD_LIBRARY_PATH
 
15340
  case $host_vendor in
 
15341
    sni)
 
15342
      shlibpath_overrides_runpath=no
 
15343
      need_lib_prefix=no
 
15344
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15345
      runpath_var=LD_RUN_PATH
 
15346
      ;;
 
15347
    siemens)
 
15348
      need_lib_prefix=no
 
15349
      ;;
 
15350
    motorola)
 
15351
      need_lib_prefix=no
 
15352
      need_version=no
 
15353
      shlibpath_overrides_runpath=no
 
15354
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15355
      ;;
 
15356
  esac
 
15357
  ;;
 
15358
 
 
15359
sysv4*MP*)
 
15360
  if test -d /usr/nec ;then
 
15361
    version_type=linux
 
15362
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15363
    soname_spec='$libname${shared_ext}.$major'
 
15364
    shlibpath_var=LD_LIBRARY_PATH
 
15365
  fi
 
15366
  ;;
 
15367
 
 
15368
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15369
  version_type=freebsd-elf
 
15370
  need_lib_prefix=no
 
15371
  need_version=no
 
15372
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15373
  soname_spec='${libname}${release}${shared_ext}$major'
 
15374
  shlibpath_var=LD_LIBRARY_PATH
 
15375
  hardcode_into_libs=yes
 
15376
  if test "$with_gnu_ld" = yes; then
 
15377
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15378
    shlibpath_overrides_runpath=no
 
15379
  else
 
15380
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15381
    shlibpath_overrides_runpath=yes
 
15382
    case $host_os in
 
15383
      sco3.2v5*)
 
15384
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15385
        ;;
 
15386
    esac
 
15387
  fi
 
15388
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15389
  ;;
 
15390
 
 
15391
uts4*)
 
15392
  version_type=linux
 
15393
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15394
  soname_spec='${libname}${release}${shared_ext}$major'
 
15395
  shlibpath_var=LD_LIBRARY_PATH
 
15396
  ;;
 
15397
 
 
15398
*)
 
15399
  dynamic_linker=no
 
15400
  ;;
 
15401
esac
 
15402
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15403
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15404
test "$dynamic_linker" = no && can_build_shared=no
 
15405
 
 
15406
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15407
if test "$GCC" = yes; then
 
15408
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15409
fi
 
15410
 
 
15411
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15412
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15413
hardcode_action_F77=
 
15414
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15415
   test -n "$runpath_var_F77" || \
 
15416
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15417
 
 
15418
  # We can hardcode non-existant directories.
 
15419
  if test "$hardcode_direct_F77" != no &&
 
15420
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15421
     # have to relink, otherwise we might link with an installed library
 
15422
     # when we should be linking with a yet-to-be-installed one
 
15423
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15424
     test "$hardcode_minus_L_F77" != no; then
 
15425
    # Linking always hardcodes the temporary library directory.
 
15426
    hardcode_action_F77=relink
 
15427
  else
 
15428
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15429
    hardcode_action_F77=immediate
 
15430
  fi
 
15431
else
 
15432
  # We cannot hardcode anything, or else we can only hardcode existing
 
15433
  # directories.
 
15434
  hardcode_action_F77=unsupported
 
15435
fi
 
15436
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15437
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15438
 
 
15439
if test "$hardcode_action_F77" = relink; then
 
15440
  # Fast installation is not supported
 
15441
  enable_fast_install=no
 
15442
elif test "$shlibpath_overrides_runpath" = yes ||
 
15443
     test "$enable_shared" = no; then
 
15444
  # Fast installation is not necessary
 
15445
  enable_fast_install=needless
 
15446
fi
 
15447
 
 
15448
 
 
15449
# The else clause should only fire when bootstrapping the
 
15450
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15451
# with your package, and you will get complaints that there are
 
15452
# no rules to generate ltmain.sh.
 
15453
if test -f "$ltmain"; then
 
15454
  # See if we are running on zsh, and set the options which allow our commands through
 
15455
  # without removal of \ escapes.
 
15456
  if test -n "${ZSH_VERSION+set}" ; then
 
15457
    setopt NO_GLOB_SUBST
 
15458
  fi
 
15459
  # Now quote all the things that may contain metacharacters while being
 
15460
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15461
  # variables and quote the copies for generation of the libtool script.
 
15462
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15463
    SED SHELL STRIP \
 
15464
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15465
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15466
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15467
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15468
    lt_cv_sys_global_symbol_to_c_name_address \
 
15469
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15470
    old_postinstall_cmds old_postuninstall_cmds \
 
15471
    compiler_F77 \
 
15472
    CC_F77 \
 
15473
    LD_F77 \
 
15474
    lt_prog_compiler_wl_F77 \
 
15475
    lt_prog_compiler_pic_F77 \
 
15476
    lt_prog_compiler_static_F77 \
 
15477
    lt_prog_compiler_no_builtin_flag_F77 \
 
15478
    export_dynamic_flag_spec_F77 \
 
15479
    thread_safe_flag_spec_F77 \
 
15480
    whole_archive_flag_spec_F77 \
 
15481
    enable_shared_with_static_runtimes_F77 \
 
15482
    old_archive_cmds_F77 \
 
15483
    old_archive_from_new_cmds_F77 \
 
15484
    predep_objects_F77 \
 
15485
    postdep_objects_F77 \
 
15486
    predeps_F77 \
 
15487
    postdeps_F77 \
 
15488
    compiler_lib_search_path_F77 \
 
15489
    archive_cmds_F77 \
 
15490
    archive_expsym_cmds_F77 \
 
15491
    postinstall_cmds_F77 \
 
15492
    postuninstall_cmds_F77 \
 
15493
    old_archive_from_expsyms_cmds_F77 \
 
15494
    allow_undefined_flag_F77 \
 
15495
    no_undefined_flag_F77 \
 
15496
    export_symbols_cmds_F77 \
 
15497
    hardcode_libdir_flag_spec_F77 \
 
15498
    hardcode_libdir_flag_spec_ld_F77 \
 
15499
    hardcode_libdir_separator_F77 \
 
15500
    hardcode_automatic_F77 \
 
15501
    module_cmds_F77 \
 
15502
    module_expsym_cmds_F77 \
 
15503
    lt_cv_prog_compiler_c_o_F77 \
 
15504
    exclude_expsyms_F77 \
 
15505
    include_expsyms_F77; do
 
15506
 
 
15507
    case $var in
 
15508
    old_archive_cmds_F77 | \
 
15509
    old_archive_from_new_cmds_F77 | \
 
15510
    archive_cmds_F77 | \
 
15511
    archive_expsym_cmds_F77 | \
 
15512
    module_cmds_F77 | \
 
15513
    module_expsym_cmds_F77 | \
 
15514
    old_archive_from_expsyms_cmds_F77 | \
 
15515
    export_symbols_cmds_F77 | \
 
15516
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15517
    postinstall_cmds | postuninstall_cmds | \
 
15518
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15519
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15520
      # Double-quote double-evaled strings.
 
15521
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15522
      ;;
 
15523
    *)
 
15524
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15525
      ;;
 
15526
    esac
 
15527
  done
 
15528
 
 
15529
  case $lt_echo in
 
15530
  *'\$0 --fallback-echo"')
 
15531
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15532
    ;;
 
15533
  esac
 
15534
 
 
15535
cfgfile="$ofile"
 
15536
 
 
15537
  cat <<__EOF__ >> "$cfgfile"
 
15538
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15539
 
 
15540
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15541
 
 
15542
# Shell to use when invoking shell scripts.
 
15543
SHELL=$lt_SHELL
 
15544
 
 
15545
# Whether or not to build shared libraries.
 
15546
build_libtool_libs=$enable_shared
 
15547
 
 
15548
# Whether or not to build static libraries.
 
15549
build_old_libs=$enable_static
 
15550
 
 
15551
# Whether or not to add -lc for building shared libraries.
 
15552
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15553
 
 
15554
# Whether or not to disallow shared libs when runtime libs are static
 
15555
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15556
 
 
15557
# Whether or not to optimize for fast installation.
 
15558
fast_install=$enable_fast_install
 
15559
 
 
15560
# The host system.
 
15561
host_alias=$host_alias
 
15562
host=$host
 
15563
host_os=$host_os
 
15564
 
 
15565
# The build system.
 
15566
build_alias=$build_alias
 
15567
build=$build
 
15568
build_os=$build_os
 
15569
 
 
15570
# An echo program that does not interpret backslashes.
 
15571
echo=$lt_echo
 
15572
 
 
15573
# The archiver.
 
15574
AR=$lt_AR
 
15575
AR_FLAGS=$lt_AR_FLAGS
 
15576
 
 
15577
# A C compiler.
 
15578
LTCC=$lt_LTCC
 
15579
 
 
15580
# LTCC compiler flags.
 
15581
LTCFLAGS=$lt_LTCFLAGS
 
15582
 
 
15583
# A language-specific compiler.
 
15584
CC=$lt_compiler_F77
 
15585
 
 
15586
# Is the compiler the GNU C compiler?
 
15587
with_gcc=$GCC_F77
 
15588
 
 
15589
# An ERE matcher.
 
15590
EGREP=$lt_EGREP
 
15591
 
 
15592
# The linker used to build libraries.
 
15593
LD=$lt_LD_F77
 
15594
 
 
15595
# Whether we need hard or soft links.
 
15596
LN_S=$lt_LN_S
 
15597
 
 
15598
# A BSD-compatible nm program.
 
15599
NM=$lt_NM
 
15600
 
 
15601
# A symbol stripping program
 
15602
STRIP=$lt_STRIP
 
15603
 
 
15604
# Used to examine libraries when file_magic_cmd begins "file"
 
15605
MAGIC_CMD=$MAGIC_CMD
 
15606
 
 
15607
# Used on cygwin: DLL creation program.
 
15608
DLLTOOL="$DLLTOOL"
 
15609
 
 
15610
# Used on cygwin: object dumper.
 
15611
OBJDUMP="$OBJDUMP"
 
15612
 
 
15613
# Used on cygwin: assembler.
 
15614
AS="$AS"
 
15615
 
 
15616
# The name of the directory that contains temporary libtool files.
 
15617
objdir=$objdir
 
15618
 
 
15619
# How to create reloadable object files.
 
15620
reload_flag=$lt_reload_flag
 
15621
reload_cmds=$lt_reload_cmds
 
15622
 
 
15623
# How to pass a linker flag through the compiler.
 
15624
wl=$lt_lt_prog_compiler_wl_F77
 
15625
 
 
15626
# Object file suffix (normally "o").
 
15627
objext="$ac_objext"
 
15628
 
 
15629
# Old archive suffix (normally "a").
 
15630
libext="$libext"
 
15631
 
 
15632
# Shared library suffix (normally ".so").
 
15633
shrext_cmds='$shrext_cmds'
 
15634
 
 
15635
# Executable file suffix (normally "").
 
15636
exeext="$exeext"
 
15637
 
 
15638
# Additional compiler flags for building library objects.
 
15639
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15640
pic_mode=$pic_mode
 
15641
 
 
15642
# What is the maximum length of a command?
 
15643
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15644
 
 
15645
# Does compiler simultaneously support -c and -o options?
 
15646
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15647
 
 
15648
# Must we lock files when doing compilation?
 
15649
need_locks=$lt_need_locks
 
15650
 
 
15651
# Do we need the lib prefix for modules?
 
15652
need_lib_prefix=$need_lib_prefix
 
15653
 
 
15654
# Do we need a version for libraries?
 
15655
need_version=$need_version
 
15656
 
 
15657
# Whether dlopen is supported.
 
15658
dlopen_support=$enable_dlopen
 
15659
 
 
15660
# Whether dlopen of programs is supported.
 
15661
dlopen_self=$enable_dlopen_self
 
15662
 
 
15663
# Whether dlopen of statically linked programs is supported.
 
15664
dlopen_self_static=$enable_dlopen_self_static
 
15665
 
 
15666
# Compiler flag to prevent dynamic linking.
 
15667
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15668
 
 
15669
# Compiler flag to turn off builtin functions.
 
15670
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15671
 
 
15672
# Compiler flag to allow reflexive dlopens.
 
15673
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15674
 
 
15675
# Compiler flag to generate shared objects directly from archives.
 
15676
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15677
 
 
15678
# Compiler flag to generate thread-safe objects.
 
15679
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15680
 
 
15681
# Library versioning type.
 
15682
version_type=$version_type
 
15683
 
 
15684
# Format of library name prefix.
 
15685
libname_spec=$lt_libname_spec
 
15686
 
 
15687
# List of archive names.  First name is the real one, the rest are links.
 
15688
# The last name is the one that the linker finds with -lNAME.
 
15689
library_names_spec=$lt_library_names_spec
 
15690
 
 
15691
# The coded name of the library, if different from the real name.
 
15692
soname_spec=$lt_soname_spec
 
15693
 
 
15694
# Commands used to build and install an old-style archive.
 
15695
RANLIB=$lt_RANLIB
 
15696
old_archive_cmds=$lt_old_archive_cmds_F77
 
15697
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15698
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15699
 
 
15700
# Create an old-style archive from a shared archive.
 
15701
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15702
 
 
15703
# Create a temporary old-style archive to link instead of a shared archive.
 
15704
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15705
 
 
15706
# Commands used to build and install a shared archive.
 
15707
archive_cmds=$lt_archive_cmds_F77
 
15708
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15709
postinstall_cmds=$lt_postinstall_cmds
 
15710
postuninstall_cmds=$lt_postuninstall_cmds
 
15711
 
 
15712
# Commands used to build a loadable module (assumed same as above if empty)
 
15713
module_cmds=$lt_module_cmds_F77
 
15714
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15715
 
 
15716
# Commands to strip libraries.
 
15717
old_striplib=$lt_old_striplib
 
15718
striplib=$lt_striplib
 
15719
 
 
15720
# Dependencies to place before the objects being linked to create a
 
15721
# shared library.
 
15722
predep_objects=$lt_predep_objects_F77
 
15723
 
 
15724
# Dependencies to place after the objects being linked to create a
 
15725
# shared library.
 
15726
postdep_objects=$lt_postdep_objects_F77
 
15727
 
 
15728
# Dependencies to place before the objects being linked to create a
 
15729
# shared library.
 
15730
predeps=$lt_predeps_F77
 
15731
 
 
15732
# Dependencies to place after the objects being linked to create a
 
15733
# shared library.
 
15734
postdeps=$lt_postdeps_F77
 
15735
 
 
15736
# The library search path used internally by the compiler when linking
 
15737
# a shared library.
 
15738
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15739
 
 
15740
# Method to check whether dependent libraries are shared objects.
 
15741
deplibs_check_method=$lt_deplibs_check_method
 
15742
 
 
15743
# Command to use when deplibs_check_method == file_magic.
 
15744
file_magic_cmd=$lt_file_magic_cmd
 
15745
 
 
15746
# Flag that allows shared libraries with undefined symbols to be built.
 
15747
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15748
 
 
15749
# Flag that forces no undefined symbols.
 
15750
no_undefined_flag=$lt_no_undefined_flag_F77
 
15751
 
 
15752
# Commands used to finish a libtool library installation in a directory.
 
15753
finish_cmds=$lt_finish_cmds
 
15754
 
 
15755
# Same as above, but a single script fragment to be evaled but not shown.
 
15756
finish_eval=$lt_finish_eval
 
15757
 
 
15758
# Take the output of nm and produce a listing of raw symbols and C names.
 
15759
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15760
 
 
15761
# Transform the output of nm in a proper C declaration
 
15762
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15763
 
 
15764
# Transform the output of nm in a C name address pair
 
15765
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15766
 
 
15767
# This is the shared library runtime path variable.
 
15768
runpath_var=$runpath_var
 
15769
 
 
15770
# This is the shared library path variable.
 
15771
shlibpath_var=$shlibpath_var
 
15772
 
 
15773
# Is shlibpath searched before the hard-coded library search path?
 
15774
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15775
 
 
15776
# How to hardcode a shared library path into an executable.
 
15777
hardcode_action=$hardcode_action_F77
 
15778
 
 
15779
# Whether we should hardcode library paths into libraries.
 
15780
hardcode_into_libs=$hardcode_into_libs
 
15781
 
 
15782
# Flag to hardcode \$libdir into a binary during linking.
 
15783
# This must work even if \$libdir does not exist.
 
15784
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15785
 
 
15786
# If ld is used when linking, flag to hardcode \$libdir into
 
15787
# a binary during linking. This must work even if \$libdir does
 
15788
# not exist.
 
15789
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15790
 
 
15791
# Whether we need a single -rpath flag with a separated argument.
 
15792
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15793
 
 
15794
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15795
# resulting binary.
 
15796
hardcode_direct=$hardcode_direct_F77
 
15797
 
 
15798
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15799
# resulting binary.
 
15800
hardcode_minus_L=$hardcode_minus_L_F77
 
15801
 
 
15802
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15803
# the resulting binary.
 
15804
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15805
 
 
15806
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15807
# and all subsequent libraries and executables linked against it.
 
15808
hardcode_automatic=$hardcode_automatic_F77
 
15809
 
 
15810
# Variables whose values should be saved in libtool wrapper scripts and
 
15811
# restored at relink time.
 
15812
variables_saved_for_relink="$variables_saved_for_relink"
 
15813
 
 
15814
# Whether libtool must link a program against all its dependency libraries.
 
15815
link_all_deplibs=$link_all_deplibs_F77
 
15816
 
 
15817
# Compile-time system search path for libraries
 
15818
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15819
 
 
15820
# Run-time system search path for libraries
 
15821
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15822
 
 
15823
# Fix the shell variable \$srcfile for the compiler.
 
15824
fix_srcfile_path="$fix_srcfile_path_F77"
 
15825
 
 
15826
# Set to yes if exported symbols are required.
 
15827
always_export_symbols=$always_export_symbols_F77
 
15828
 
 
15829
# The commands to list exported symbols.
 
15830
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15831
 
 
15832
# The commands to extract the exported symbol list from a shared archive.
 
15833
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15834
 
 
15835
# Symbols that should not be listed in the preloaded symbols.
 
15836
exclude_expsyms=$lt_exclude_expsyms_F77
 
15837
 
 
15838
# Symbols that must always be exported.
 
15839
include_expsyms=$lt_include_expsyms_F77
 
15840
 
 
15841
# ### END LIBTOOL TAG CONFIG: $tagname
 
15842
 
 
15843
__EOF__
 
15844
 
 
15845
 
 
15846
else
 
15847
  # If there is no Makefile yet, we rely on a make rule to execute
 
15848
  # `config.status --recheck' to rerun these tests and create the
 
15849
  # libtool script then.
 
15850
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15851
  if test -f "$ltmain_in"; then
 
15852
    test -f Makefile && make "$ltmain"
 
15853
  fi
 
15854
fi
 
15855
 
 
15856
 
 
15857
ac_ext=c
 
15858
ac_cpp='$CPP $CPPFLAGS'
 
15859
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15860
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15861
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15862
 
 
15863
CC="$lt_save_CC"
 
15864
 
 
15865
        else
 
15866
          tagname=""
 
15867
        fi
 
15868
        ;;
 
15869
 
 
15870
      GCJ)
 
15871
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15872
 
 
15873
 
 
15874
# Source file extension for Java test sources.
 
15875
ac_ext=java
 
15876
 
 
15877
# Object file extension for compiled Java test sources.
 
15878
objext=o
 
15879
objext_GCJ=$objext
 
15880
 
 
15881
# Code to be used in simple compile tests
 
15882
lt_simple_compile_test_code="class foo {}\n"
 
15883
 
 
15884
# Code to be used in simple link tests
 
15885
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15886
 
 
15887
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15888
 
 
15889
# If no C compiler was specified, use CC.
 
15890
LTCC=${LTCC-"$CC"}
 
15891
 
 
15892
# If no C compiler flags were specified, use CFLAGS.
 
15893
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
15894
 
 
15895
# Allow CC to be a program name with arguments.
 
15896
compiler=$CC
 
15897
 
 
15898
 
 
15899
# save warnings/boilerplate of simple test code
 
15900
ac_outfile=conftest.$ac_objext
 
15901
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15902
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15903
_lt_compiler_boilerplate=`cat conftest.err`
 
15904
$rm conftest*
 
15905
 
 
15906
ac_outfile=conftest.$ac_objext
 
15907
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15908
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15909
_lt_linker_boilerplate=`cat conftest.err`
 
15910
$rm conftest*
 
15911
 
 
15912
 
 
15913
# Allow CC to be a program name with arguments.
 
15914
lt_save_CC="$CC"
 
15915
CC=${GCJ-"gcj"}
 
15916
compiler=$CC
 
15917
compiler_GCJ=$CC
 
15918
for cc_temp in $compiler""; do
 
15919
  case $cc_temp in
 
15920
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15921
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15922
    \-*) ;;
 
15923
    *) break;;
 
15924
  esac
 
15925
done
 
15926
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15927
 
 
15928
 
 
15929
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15930
archive_cmds_need_lc_GCJ=no
 
15931
 
 
15932
old_archive_cmds_GCJ=$old_archive_cmds
 
15933
 
 
15934
 
 
15935
lt_prog_compiler_no_builtin_flag_GCJ=
 
15936
 
 
15937
if test "$GCC" = yes; then
 
15938
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15939
 
 
15940
 
 
15941
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15942
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
15943
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15944
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15945
else
 
15946
  lt_cv_prog_compiler_rtti_exceptions=no
 
15947
  ac_outfile=conftest.$ac_objext
 
15948
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15949
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15950
   # Insert the option either (1) after the last *FLAGS variable, or
 
15951
   # (2) before a word containing "conftest.", or (3) at the end.
 
15952
   # Note that $ac_compile itself does not contain backslashes and begins
 
15953
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15954
   # The option is referenced via a variable to avoid confusing sed.
 
15955
   lt_compile=`echo "$ac_compile" | $SED \
 
15956
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15957
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15958
   -e 's:$: $lt_compiler_flag:'`
 
15959
   (eval echo "\"\$as_me:15959: $lt_compile\"" >&5)
 
15960
   (eval "$lt_compile" 2>conftest.err)
 
15961
   ac_status=$?
 
15962
   cat conftest.err >&5
 
15963
   echo "$as_me:15963: \$? = $ac_status" >&5
 
15964
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15965
     # The compiler can only warn and ignore the option if not recognized
 
15966
     # So say no if there are warnings other than the usual output.
 
15967
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
15968
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
15969
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15970
       lt_cv_prog_compiler_rtti_exceptions=yes
 
15971
     fi
 
15972
   fi
 
15973
   $rm conftest*
 
15974
 
 
15975
fi
 
15976
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15977
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
15978
 
 
15979
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
15980
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
15981
else
 
15982
    :
 
15983
fi
 
15984
 
 
15985
fi
 
15986
 
 
15987
lt_prog_compiler_wl_GCJ=
 
15988
lt_prog_compiler_pic_GCJ=
 
15989
lt_prog_compiler_static_GCJ=
 
15990
 
 
15991
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15992
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
15993
 
 
15994
  if test "$GCC" = yes; then
 
15995
    lt_prog_compiler_wl_GCJ='-Wl,'
 
15996
    lt_prog_compiler_static_GCJ='-static'
 
15997
 
 
15998
    case $host_os in
 
15999
      aix*)
 
16000
      # All AIX code is PIC.
 
16001
      if test "$host_cpu" = ia64; then
 
16002
        # AIX 5 now supports IA64 processor
 
16003
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16004
      fi
 
16005
      ;;
 
16006
 
 
16007
    amigaos*)
 
16008
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16009
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16010
      # like `-m68040'.
 
16011
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16012
      ;;
 
16013
 
 
16014
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16015
      # PIC is the default for these OSes.
 
16016
      ;;
 
16017
 
 
16018
    mingw* | pw32* | os2*)
 
16019
      # This hack is so that the source file can tell whether it is being
 
16020
      # built for inclusion in a dll (and should export symbols for example).
 
16021
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16022
      ;;
 
16023
 
 
16024
    darwin* | rhapsody*)
 
16025
      # PIC is the default on this platform
 
16026
      # Common symbols not allowed in MH_DYLIB files
 
16027
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16028
      ;;
 
16029
 
 
16030
    interix3*)
 
16031
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16032
      # Instead, we relocate shared libraries at runtime.
 
16033
      ;;
 
16034
 
 
16035
    msdosdjgpp*)
 
16036
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16037
      # on systems that don't support them.
 
16038
      lt_prog_compiler_can_build_shared_GCJ=no
 
16039
      enable_shared=no
 
16040
      ;;
 
16041
 
 
16042
    sysv4*MP*)
 
16043
      if test -d /usr/nec; then
 
16044
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16045
      fi
 
16046
      ;;
 
16047
 
 
16048
    hpux*)
 
16049
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16050
      # not for PA HP-UX.
 
16051
      case $host_cpu in
 
16052
      hppa*64*|ia64*)
 
16053
        # +Z the default
 
16054
        ;;
 
16055
      *)
 
16056
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16057
        ;;
 
16058
      esac
 
16059
      ;;
 
16060
 
 
16061
    *)
 
16062
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16063
      ;;
 
16064
    esac
 
16065
  else
 
16066
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16067
    case $host_os in
 
16068
    aix*)
 
16069
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16070
      if test "$host_cpu" = ia64; then
 
16071
        # AIX 5 now supports IA64 processor
 
16072
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16073
      else
 
16074
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16075
      fi
 
16076
      ;;
 
16077
      darwin*)
 
16078
        # PIC is the default on this platform
 
16079
        # Common symbols not allowed in MH_DYLIB files
 
16080
       case $cc_basename in
 
16081
         xlc*)
 
16082
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16083
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16084
         ;;
 
16085
       esac
 
16086
       ;;
 
16087
 
 
16088
    mingw* | pw32* | os2*)
 
16089
      # This hack is so that the source file can tell whether it is being
 
16090
      # built for inclusion in a dll (and should export symbols for example).
 
16091
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16092
      ;;
 
16093
 
 
16094
    hpux9* | hpux10* | hpux11*)
 
16095
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16096
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16097
      # not for PA HP-UX.
 
16098
      case $host_cpu in
 
16099
      hppa*64*|ia64*)
 
16100
        # +Z the default
 
16101
        ;;
 
16102
      *)
 
16103
        lt_prog_compiler_pic_GCJ='+Z'
 
16104
        ;;
 
16105
      esac
 
16106
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16107
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16108
      ;;
 
16109
 
 
16110
    irix5* | irix6* | nonstopux*)
 
16111
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16112
      # PIC (with -KPIC) is the default.
 
16113
      lt_prog_compiler_static_GCJ='-non_shared'
 
16114
      ;;
 
16115
 
 
16116
    newsos6)
 
16117
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16118
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16119
      ;;
 
16120
 
 
16121
    linux*)
 
16122
      case $cc_basename in
 
16123
      icc* | ecc*)
 
16124
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16125
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16126
        lt_prog_compiler_static_GCJ='-static'
 
16127
        ;;
 
16128
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16129
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16130
        # which looks to be a dead project)
 
16131
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16132
        lt_prog_compiler_pic_GCJ='-fpic'
 
16133
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16134
        ;;
 
16135
      ccc*)
 
16136
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16137
        # All Alpha code is PIC.
 
16138
        lt_prog_compiler_static_GCJ='-non_shared'
 
16139
        ;;
 
16140
      esac
 
16141
      ;;
 
16142
 
 
16143
    osf3* | osf4* | osf5*)
 
16144
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16145
      # All OSF/1 code is PIC.
 
16146
      lt_prog_compiler_static_GCJ='-non_shared'
 
16147
      ;;
 
16148
 
 
16149
    solaris*)
 
16150
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16151
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16152
      case $cc_basename in
 
16153
      f77* | f90* | f95*)
 
16154
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16155
      *)
 
16156
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16157
      esac
 
16158
      ;;
 
16159
 
 
16160
    sunos4*)
 
16161
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16162
      lt_prog_compiler_pic_GCJ='-PIC'
 
16163
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16164
      ;;
 
16165
 
 
16166
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16167
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16168
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16169
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16170
      ;;
 
16171
 
 
16172
    sysv4*MP*)
 
16173
      if test -d /usr/nec ;then
 
16174
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16175
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16176
      fi
 
16177
      ;;
 
16178
 
 
16179
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16180
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16181
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16182
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16183
      ;;
 
16184
 
 
16185
    unicos*)
 
16186
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16187
      lt_prog_compiler_can_build_shared_GCJ=no
 
16188
      ;;
 
16189
 
 
16190
    uts4*)
 
16191
      lt_prog_compiler_pic_GCJ='-pic'
 
16192
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16193
      ;;
 
16194
 
 
16195
    *)
 
16196
      lt_prog_compiler_can_build_shared_GCJ=no
 
16197
      ;;
 
16198
    esac
 
16199
  fi
 
16200
 
 
16201
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16202
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16203
 
 
16204
#
 
16205
# Check to make sure the PIC flag actually works.
 
16206
#
 
16207
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16208
 
 
16209
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16210
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16211
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16213
else
 
16214
  lt_prog_compiler_pic_works_GCJ=no
 
16215
  ac_outfile=conftest.$ac_objext
 
16216
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16217
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16218
   # Insert the option either (1) after the last *FLAGS variable, or
 
16219
   # (2) before a word containing "conftest.", or (3) at the end.
 
16220
   # Note that $ac_compile itself does not contain backslashes and begins
 
16221
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16222
   # The option is referenced via a variable to avoid confusing sed.
 
16223
   lt_compile=`echo "$ac_compile" | $SED \
 
16224
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16225
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16226
   -e 's:$: $lt_compiler_flag:'`
 
16227
   (eval echo "\"\$as_me:16227: $lt_compile\"" >&5)
 
16228
   (eval "$lt_compile" 2>conftest.err)
 
16229
   ac_status=$?
 
16230
   cat conftest.err >&5
 
16231
   echo "$as_me:16231: \$? = $ac_status" >&5
 
16232
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16233
     # The compiler can only warn and ignore the option if not recognized
 
16234
     # So say no if there are warnings other than the usual output.
 
16235
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16236
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16237
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16238
       lt_prog_compiler_pic_works_GCJ=yes
 
16239
     fi
 
16240
   fi
 
16241
   $rm conftest*
 
16242
 
 
16243
fi
 
16244
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16245
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16246
 
 
16247
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16248
    case $lt_prog_compiler_pic_GCJ in
 
16249
     "" | " "*) ;;
 
16250
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16251
     esac
 
16252
else
 
16253
    lt_prog_compiler_pic_GCJ=
 
16254
     lt_prog_compiler_can_build_shared_GCJ=no
 
16255
fi
 
16256
 
 
16257
fi
 
16258
case $host_os in
 
16259
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16260
  *djgpp*)
 
16261
    lt_prog_compiler_pic_GCJ=
 
16262
    ;;
 
16263
  *)
 
16264
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16265
    ;;
 
16266
esac
 
16267
 
 
16268
#
 
16269
# Check to make sure the static flag actually works.
 
16270
#
 
16271
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16272
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16273
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16274
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16275
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16276
else
 
16277
  lt_prog_compiler_static_works_GCJ=no
 
16278
   save_LDFLAGS="$LDFLAGS"
 
16279
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16280
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16281
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16282
     # The linker can only warn and ignore the option if not recognized
 
16283
     # So say no if there are warnings
 
16284
     if test -s conftest.err; then
 
16285
       # Append any errors to the config.log.
 
16286
       cat conftest.err 1>&5
 
16287
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16288
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16289
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16290
         lt_prog_compiler_static_works_GCJ=yes
 
16291
       fi
 
16292
     else
 
16293
       lt_prog_compiler_static_works_GCJ=yes
 
16294
     fi
 
16295
   fi
 
16296
   $rm conftest*
 
16297
   LDFLAGS="$save_LDFLAGS"
 
16298
 
 
16299
fi
 
16300
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16301
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16302
 
 
16303
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16304
    :
 
16305
else
 
16306
    lt_prog_compiler_static_GCJ=
 
16307
fi
 
16308
 
 
16309
 
 
16310
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16314
else
 
16315
  lt_cv_prog_compiler_c_o_GCJ=no
 
16316
   $rm -r conftest 2>/dev/null
 
16317
   mkdir conftest
 
16318
   cd conftest
 
16319
   mkdir out
 
16320
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16321
 
 
16322
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16323
   # Insert the option either (1) after the last *FLAGS variable, or
 
16324
   # (2) before a word containing "conftest.", or (3) at the end.
 
16325
   # Note that $ac_compile itself does not contain backslashes and begins
 
16326
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16327
   lt_compile=`echo "$ac_compile" | $SED \
 
16328
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16329
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16330
   -e 's:$: $lt_compiler_flag:'`
 
16331
   (eval echo "\"\$as_me:16331: $lt_compile\"" >&5)
 
16332
   (eval "$lt_compile" 2>out/conftest.err)
 
16333
   ac_status=$?
 
16334
   cat out/conftest.err >&5
 
16335
   echo "$as_me:16335: \$? = $ac_status" >&5
 
16336
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16337
   then
 
16338
     # The compiler can only warn and ignore the option if not recognized
 
16339
     # So say no if there are warnings
 
16340
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16341
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16342
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16343
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16344
     fi
 
16345
   fi
 
16346
   chmod u+w . 2>&5
 
16347
   $rm conftest*
 
16348
   # SGI C++ compiler will create directory out/ii_files/ for
 
16349
   # template instantiation
 
16350
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16351
   $rm out/* && rmdir out
 
16352
   cd ..
 
16353
   rmdir conftest
 
16354
   $rm conftest*
 
16355
 
 
16356
fi
 
16357
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16358
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16359
 
 
16360
 
 
16361
hard_links="nottested"
 
16362
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16363
  # do not overwrite the value of need_locks provided by the user
 
16364
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16365
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16366
  hard_links=yes
 
16367
  $rm conftest*
 
16368
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16369
  touch conftest.a
 
16370
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16371
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16372
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16373
echo "${ECHO_T}$hard_links" >&6; }
 
16374
  if test "$hard_links" = no; then
 
16375
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16376
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16377
    need_locks=warn
 
16378
  fi
 
16379
else
 
16380
  need_locks=no
 
16381
fi
 
16382
 
 
16383
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16384
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16385
 
 
16386
  runpath_var=
 
16387
  allow_undefined_flag_GCJ=
 
16388
  enable_shared_with_static_runtimes_GCJ=no
 
16389
  archive_cmds_GCJ=
 
16390
  archive_expsym_cmds_GCJ=
 
16391
  old_archive_From_new_cmds_GCJ=
 
16392
  old_archive_from_expsyms_cmds_GCJ=
 
16393
  export_dynamic_flag_spec_GCJ=
 
16394
  whole_archive_flag_spec_GCJ=
 
16395
  thread_safe_flag_spec_GCJ=
 
16396
  hardcode_libdir_flag_spec_GCJ=
 
16397
  hardcode_libdir_flag_spec_ld_GCJ=
 
16398
  hardcode_libdir_separator_GCJ=
 
16399
  hardcode_direct_GCJ=no
 
16400
  hardcode_minus_L_GCJ=no
 
16401
  hardcode_shlibpath_var_GCJ=unsupported
 
16402
  link_all_deplibs_GCJ=unknown
 
16403
  hardcode_automatic_GCJ=no
 
16404
  module_cmds_GCJ=
 
16405
  module_expsym_cmds_GCJ=
 
16406
  always_export_symbols_GCJ=no
 
16407
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16408
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16409
  # included in the symbol list
 
16410
  include_expsyms_GCJ=
 
16411
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16412
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16413
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16414
  # as well as any symbol that contains `d'.
 
16415
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16416
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16417
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16418
  # the symbol is explicitly referenced.  Since portable code cannot
 
16419
  # rely on this symbol name, it's probably fine to never include it in
 
16420
  # preloaded symbol tables.
 
16421
  extract_expsyms_cmds=
 
16422
  # Just being paranoid about ensuring that cc_basename is set.
 
16423
  for cc_temp in $compiler""; do
 
16424
  case $cc_temp in
 
16425
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16426
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16427
    \-*) ;;
 
16428
    *) break;;
 
16429
  esac
 
16430
done
 
16431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16432
 
 
16433
  case $host_os in
 
16434
  cygwin* | mingw* | pw32*)
 
16435
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16436
    # When not using gcc, we currently assume that we are using
 
16437
    # Microsoft Visual C++.
 
16438
    if test "$GCC" != yes; then
 
16439
      with_gnu_ld=no
 
16440
    fi
 
16441
    ;;
 
16442
  interix*)
 
16443
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16444
    with_gnu_ld=yes
 
16445
    ;;
 
16446
  openbsd*)
 
16447
    with_gnu_ld=no
 
16448
    ;;
 
16449
  esac
 
16450
 
 
16451
  ld_shlibs_GCJ=yes
 
16452
  if test "$with_gnu_ld" = yes; then
 
16453
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16454
    wlarc='${wl}'
 
16455
 
 
16456
    # Set some defaults for GNU ld with shared library support. These
 
16457
    # are reset later if shared libraries are not supported. Putting them
 
16458
    # here allows them to be overridden if necessary.
 
16459
    runpath_var=LD_RUN_PATH
 
16460
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16461
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16462
    # ancient GNU ld didn't support --whole-archive et. al.
 
16463
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16464
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16465
      else
 
16466
        whole_archive_flag_spec_GCJ=
 
16467
    fi
 
16468
    supports_anon_versioning=no
 
16469
    case `$LD -v 2>/dev/null` in
 
16470
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16471
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16472
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16473
      *\ 2.11.*) ;; # other 2.11 versions
 
16474
      *) supports_anon_versioning=yes ;;
 
16475
    esac
 
16476
 
 
16477
    # See if GNU ld supports shared libraries.
 
16478
    case $host_os in
 
16479
    aix3* | aix4* | aix5*)
 
16480
      # On AIX/PPC, the GNU linker is very broken
 
16481
      if test "$host_cpu" != ia64; then
 
16482
        ld_shlibs_GCJ=no
 
16483
        cat <<EOF 1>&2
 
16484
 
 
16485
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16486
*** to be unable to reliably create shared libraries on AIX.
 
16487
*** Therefore, libtool is disabling shared libraries support.  If you
 
16488
*** really care for shared libraries, you may want to modify your PATH
 
16489
*** so that a non-GNU linker is found, and then restart.
 
16490
 
 
16491
EOF
 
16492
      fi
 
16493
      ;;
 
16494
 
 
16495
    amigaos*)
 
16496
      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)'
 
16497
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16498
      hardcode_minus_L_GCJ=yes
 
16499
 
 
16500
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16501
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16502
      # to version 4, is to share data among multiple programs linked
 
16503
      # with the same dynamic library.  Since this doesn't match the
 
16504
      # behavior of shared libraries on other platforms, we can't use
 
16505
      # them.
 
16506
      ld_shlibs_GCJ=no
 
16507
      ;;
 
16508
 
 
16509
    beos*)
 
16510
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16511
        allow_undefined_flag_GCJ=unsupported
 
16512
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16513
        # support --undefined.  This deserves some investigation.  FIXME
 
16514
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16515
      else
 
16516
        ld_shlibs_GCJ=no
 
16517
      fi
 
16518
      ;;
 
16519
 
 
16520
    cygwin* | mingw* | pw32*)
 
16521
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16522
      # as there is no search path for DLLs.
 
16523
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16524
      allow_undefined_flag_GCJ=unsupported
 
16525
      always_export_symbols_GCJ=no
 
16526
      enable_shared_with_static_runtimes_GCJ=yes
 
16527
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16528
 
 
16529
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16530
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16531
        # If the export-symbols file already is a .def file (1st line
 
16532
        # is EXPORTS), use it as is; otherwise, prepend...
 
16533
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16534
          cp $export_symbols $output_objdir/$soname.def;
 
16535
        else
 
16536
          echo EXPORTS > $output_objdir/$soname.def;
 
16537
          cat $export_symbols >> $output_objdir/$soname.def;
 
16538
        fi~
 
16539
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16540
      else
 
16541
        ld_shlibs_GCJ=no
 
16542
      fi
 
16543
      ;;
 
16544
 
 
16545
    interix3*)
 
16546
      hardcode_direct_GCJ=no
 
16547
      hardcode_shlibpath_var_GCJ=no
 
16548
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16549
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16550
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16551
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16552
      # default) and relocated if they conflict, which is a slow very memory
 
16553
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16554
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16555
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16556
      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'
 
16557
      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'
 
16558
      ;;
 
16559
 
 
16560
    linux*)
 
16561
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16562
        tmp_addflag=
 
16563
        case $cc_basename,$host_cpu in
 
16564
        pgcc*)                          # Portland Group C compiler
 
16565
          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'
 
16566
          tmp_addflag=' $pic_flag'
 
16567
          ;;
 
16568
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16569
          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'
 
16570
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16571
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16572
          tmp_addflag=' -i_dynamic' ;;
 
16573
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16574
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16575
        ifc* | ifort*)                  # Intel Fortran compiler
 
16576
          tmp_addflag=' -nofor_main' ;;
 
16577
        esac
 
16578
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16579
 
 
16580
        if test $supports_anon_versioning = yes; then
 
16581
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16582
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16583
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16584
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16585
        fi
 
16586
      else
 
16587
        ld_shlibs_GCJ=no
 
16588
      fi
 
16589
      ;;
 
16590
 
 
16591
    netbsd*)
 
16592
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16593
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16594
        wlarc=
 
16595
      else
 
16596
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16597
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16598
      fi
 
16599
      ;;
 
16600
 
 
16601
    solaris*)
 
16602
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16603
        ld_shlibs_GCJ=no
 
16604
        cat <<EOF 1>&2
 
16605
 
 
16606
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16607
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16608
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16609
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16610
*** your PATH or compiler configuration so that the native linker is
 
16611
*** used, and then restart.
 
16612
 
 
16613
EOF
 
16614
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16615
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16616
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16617
      else
 
16618
        ld_shlibs_GCJ=no
 
16619
      fi
 
16620
      ;;
 
16621
 
 
16622
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16623
      case `$LD -v 2>&1` in
 
16624
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16625
        ld_shlibs_GCJ=no
 
16626
        cat <<_LT_EOF 1>&2
 
16627
 
 
16628
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16629
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16630
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16631
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16632
*** your PATH or compiler configuration so that the native linker is
 
16633
*** used, and then restart.
 
16634
 
 
16635
_LT_EOF
 
16636
        ;;
 
16637
        *)
 
16638
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16639
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16640
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16641
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16642
          else
 
16643
            ld_shlibs_GCJ=no
 
16644
          fi
 
16645
        ;;
 
16646
      esac
 
16647
      ;;
 
16648
 
 
16649
    sunos4*)
 
16650
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16651
      wlarc=
 
16652
      hardcode_direct_GCJ=yes
 
16653
      hardcode_shlibpath_var_GCJ=no
 
16654
      ;;
 
16655
 
 
16656
    *)
 
16657
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16658
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16659
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16660
      else
 
16661
        ld_shlibs_GCJ=no
 
16662
      fi
 
16663
      ;;
 
16664
    esac
 
16665
 
 
16666
    if test "$ld_shlibs_GCJ" = no; then
 
16667
      runpath_var=
 
16668
      hardcode_libdir_flag_spec_GCJ=
 
16669
      export_dynamic_flag_spec_GCJ=
 
16670
      whole_archive_flag_spec_GCJ=
 
16671
    fi
 
16672
  else
 
16673
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16674
    case $host_os in
 
16675
    aix3*)
 
16676
      allow_undefined_flag_GCJ=unsupported
 
16677
      always_export_symbols_GCJ=yes
 
16678
      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'
 
16679
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16680
      # are no directories specified by -L.
 
16681
      hardcode_minus_L_GCJ=yes
 
16682
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16683
        # Neither direct hardcoding nor static linking is supported with a
 
16684
        # broken collect2.
 
16685
        hardcode_direct_GCJ=unsupported
 
16686
      fi
 
16687
      ;;
 
16688
 
 
16689
    aix4* | aix5*)
 
16690
      if test "$host_cpu" = ia64; then
 
16691
        # On IA64, the linker does run time linking by default, so we don't
 
16692
        # have to do anything special.
 
16693
        aix_use_runtimelinking=no
 
16694
        exp_sym_flag='-Bexport'
 
16695
        no_entry_flag=""
 
16696
      else
 
16697
        # If we're using GNU nm, then we don't want the "-C" option.
 
16698
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16699
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16700
          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'
 
16701
        else
 
16702
          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'
 
16703
        fi
 
16704
        aix_use_runtimelinking=no
 
16705
 
 
16706
        # Test if we are trying to use run time linking or normal
 
16707
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16708
        # need to do runtime linking.
 
16709
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16710
          for ld_flag in $LDFLAGS; do
 
16711
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16712
            aix_use_runtimelinking=yes
 
16713
            break
 
16714
          fi
 
16715
          done
 
16716
          ;;
 
16717
        esac
 
16718
 
 
16719
        exp_sym_flag='-bexport'
 
16720
        no_entry_flag='-bnoentry'
 
16721
      fi
 
16722
 
 
16723
      # When large executables or shared objects are built, AIX ld can
 
16724
      # have problems creating the table of contents.  If linking a library
 
16725
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16726
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16727
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16728
 
 
16729
      archive_cmds_GCJ=''
 
16730
      hardcode_direct_GCJ=yes
 
16731
      hardcode_libdir_separator_GCJ=':'
 
16732
      link_all_deplibs_GCJ=yes
 
16733
 
 
16734
      if test "$GCC" = yes; then
 
16735
        case $host_os in aix4.[012]|aix4.[012].*)
 
16736
        # We only want to do this on AIX 4.2 and lower, the check
 
16737
        # below for broken collect2 doesn't work under 4.3+
 
16738
          collect2name=`${CC} -print-prog-name=collect2`
 
16739
          if test -f "$collect2name" && \
 
16740
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16741
          then
 
16742
          # We have reworked collect2
 
16743
          hardcode_direct_GCJ=yes
 
16744
          else
 
16745
          # We have old collect2
 
16746
          hardcode_direct_GCJ=unsupported
 
16747
          # It fails to find uninstalled libraries when the uninstalled
 
16748
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16749
          # to unsupported forces relinking
 
16750
          hardcode_minus_L_GCJ=yes
 
16751
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16752
          hardcode_libdir_separator_GCJ=
 
16753
          fi
 
16754
          ;;
 
16755
        esac
 
16756
        shared_flag='-shared'
 
16757
        if test "$aix_use_runtimelinking" = yes; then
 
16758
          shared_flag="$shared_flag "'${wl}-G'
 
16759
        fi
 
16760
      else
 
16761
        # not using gcc
 
16762
        if test "$host_cpu" = ia64; then
 
16763
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16764
        # chokes on -Wl,-G. The following line is correct:
 
16765
          shared_flag='-G'
 
16766
        else
 
16767
          if test "$aix_use_runtimelinking" = yes; then
 
16768
            shared_flag='${wl}-G'
 
16769
          else
 
16770
            shared_flag='${wl}-bM:SRE'
 
16771
          fi
 
16772
        fi
 
16773
      fi
 
16774
 
 
16775
      # It seems that -bexpall does not export symbols beginning with
 
16776
      # underscore (_), so it is better to generate a list of symbols to export.
 
16777
      always_export_symbols_GCJ=yes
 
16778
      if test "$aix_use_runtimelinking" = yes; then
 
16779
        # Warning - without using the other runtime loading flags (-brtl),
 
16780
        # -berok will link without error, but may produce a broken library.
 
16781
        allow_undefined_flag_GCJ='-berok'
 
16782
       # Determine the default libpath from the value encoded in an empty executable.
 
16783
       cat >conftest.$ac_ext <<_ACEOF
 
16784
/* confdefs.h.  */
 
16785
_ACEOF
 
16786
cat confdefs.h >>conftest.$ac_ext
 
16787
cat >>conftest.$ac_ext <<_ACEOF
 
16788
/* end confdefs.h.  */
 
16789
 
 
16790
int
 
16791
main ()
 
16792
{
 
16793
 
 
16794
  ;
 
16795
  return 0;
 
16796
}
 
16797
_ACEOF
 
16798
rm -f conftest.$ac_objext conftest$ac_exeext
 
16799
if { (ac_try="$ac_link"
 
16800
case "(($ac_try" in
 
16801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16802
  *) ac_try_echo=$ac_try;;
 
16803
esac
 
16804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16805
  (eval "$ac_link") 2>conftest.er1
 
16806
  ac_status=$?
 
16807
  grep -v '^ *+' conftest.er1 >conftest.err
 
16808
  rm -f conftest.er1
 
16809
  cat conftest.err >&5
 
16810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16811
  (exit $ac_status); } && {
 
16812
         test -z "$ac_c_werror_flag" ||
 
16813
         test ! -s conftest.err
 
16814
       } && test -s conftest$ac_exeext &&
 
16815
       $as_test_x conftest$ac_exeext; then
 
16816
 
 
16817
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16818
}'`
 
16819
# Check for a 64-bit object if we didn't find anything.
 
16820
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16821
}'`; fi
 
16822
else
 
16823
  echo "$as_me: failed program was:" >&5
 
16824
sed 's/^/| /' conftest.$ac_ext >&5
 
16825
 
 
16826
 
 
16827
fi
 
16828
 
 
16829
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16830
      conftest$ac_exeext conftest.$ac_ext
 
16831
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16832
 
 
16833
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16834
        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"
 
16835
       else
 
16836
        if test "$host_cpu" = ia64; then
 
16837
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16838
          allow_undefined_flag_GCJ="-z nodefs"
 
16839
          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"
 
16840
        else
 
16841
         # Determine the default libpath from the value encoded in an empty executable.
 
16842
         cat >conftest.$ac_ext <<_ACEOF
 
16843
/* confdefs.h.  */
 
16844
_ACEOF
 
16845
cat confdefs.h >>conftest.$ac_ext
 
16846
cat >>conftest.$ac_ext <<_ACEOF
 
16847
/* end confdefs.h.  */
 
16848
 
 
16849
int
 
16850
main ()
 
16851
{
 
16852
 
 
16853
  ;
 
16854
  return 0;
 
16855
}
 
16856
_ACEOF
 
16857
rm -f conftest.$ac_objext conftest$ac_exeext
 
16858
if { (ac_try="$ac_link"
 
16859
case "(($ac_try" in
 
16860
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16861
  *) ac_try_echo=$ac_try;;
 
16862
esac
 
16863
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16864
  (eval "$ac_link") 2>conftest.er1
 
16865
  ac_status=$?
 
16866
  grep -v '^ *+' conftest.er1 >conftest.err
 
16867
  rm -f conftest.er1
 
16868
  cat conftest.err >&5
 
16869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16870
  (exit $ac_status); } && {
 
16871
         test -z "$ac_c_werror_flag" ||
 
16872
         test ! -s conftest.err
 
16873
       } && test -s conftest$ac_exeext &&
 
16874
       $as_test_x conftest$ac_exeext; then
 
16875
 
 
16876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16877
}'`
 
16878
# Check for a 64-bit object if we didn't find anything.
 
16879
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16880
}'`; fi
 
16881
else
 
16882
  echo "$as_me: failed program was:" >&5
 
16883
sed 's/^/| /' conftest.$ac_ext >&5
 
16884
 
 
16885
 
 
16886
fi
 
16887
 
 
16888
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16889
      conftest$ac_exeext conftest.$ac_ext
 
16890
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16891
 
 
16892
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16893
          # Warning - without using the other run time loading flags,
 
16894
          # -berok will link without error, but may produce a broken library.
 
16895
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16896
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16897
          # Exported symbols can be pulled into shared objects from archives
 
16898
          whole_archive_flag_spec_GCJ='$convenience'
 
16899
          archive_cmds_need_lc_GCJ=yes
 
16900
          # This is similar to how AIX traditionally builds its shared libraries.
 
16901
          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'
 
16902
        fi
 
16903
      fi
 
16904
      ;;
 
16905
 
 
16906
    amigaos*)
 
16907
      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)'
 
16908
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16909
      hardcode_minus_L_GCJ=yes
 
16910
      # see comment about different semantics on the GNU ld section
 
16911
      ld_shlibs_GCJ=no
 
16912
      ;;
 
16913
 
 
16914
    bsdi[45]*)
 
16915
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16916
      ;;
 
16917
 
 
16918
    cygwin* | mingw* | pw32*)
 
16919
      # When not using gcc, we currently assume that we are using
 
16920
      # Microsoft Visual C++.
 
16921
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16922
      # no search path for DLLs.
 
16923
      hardcode_libdir_flag_spec_GCJ=' '
 
16924
      allow_undefined_flag_GCJ=unsupported
 
16925
      # Tell ltmain to make .lib files, not .a files.
 
16926
      libext=lib
 
16927
      # Tell ltmain to make .dll files, not .so files.
 
16928
      shrext_cmds=".dll"
 
16929
      # FIXME: Setting linknames here is a bad hack.
 
16930
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16931
      # The linker will automatically build a .lib file if we build a DLL.
 
16932
      old_archive_From_new_cmds_GCJ='true'
 
16933
      # FIXME: Should let the user specify the lib program.
 
16934
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16935
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16936
      enable_shared_with_static_runtimes_GCJ=yes
 
16937
      ;;
 
16938
 
 
16939
    darwin* | rhapsody*)
 
16940
      case $host_os in
 
16941
        rhapsody* | darwin1.[012])
 
16942
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16943
         ;;
 
16944
       *) # Darwin 1.3 on
 
16945
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16946
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16947
         else
 
16948
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16949
             10.[012])
 
16950
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16951
               ;;
 
16952
             10.*)
 
16953
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16954
               ;;
 
16955
           esac
 
16956
         fi
 
16957
         ;;
 
16958
      esac
 
16959
      archive_cmds_need_lc_GCJ=no
 
16960
      hardcode_direct_GCJ=no
 
16961
      hardcode_automatic_GCJ=yes
 
16962
      hardcode_shlibpath_var_GCJ=unsupported
 
16963
      whole_archive_flag_spec_GCJ=''
 
16964
      link_all_deplibs_GCJ=yes
 
16965
    if test "$GCC" = yes ; then
 
16966
        output_verbose_link_cmd='echo'
 
16967
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16968
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16969
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16970
      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}'
 
16971
      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}'
 
16972
    else
 
16973
      case $cc_basename in
 
16974
        xlc*)
 
16975
         output_verbose_link_cmd='echo'
 
16976
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16977
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16978
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16979
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16980
          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}'
 
16981
          ;;
 
16982
       *)
 
16983
         ld_shlibs_GCJ=no
 
16984
          ;;
 
16985
      esac
 
16986
    fi
 
16987
      ;;
 
16988
 
 
16989
    dgux*)
 
16990
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16991
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16992
      hardcode_shlibpath_var_GCJ=no
 
16993
      ;;
 
16994
 
 
16995
    freebsd1*)
 
16996
      ld_shlibs_GCJ=no
 
16997
      ;;
 
16998
 
 
16999
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17000
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17001
    # does not break anything, and helps significantly (at the cost of a little
 
17002
    # extra space).
 
17003
    freebsd2.2*)
 
17004
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17005
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17006
      hardcode_direct_GCJ=yes
 
17007
      hardcode_shlibpath_var_GCJ=no
 
17008
      ;;
 
17009
 
 
17010
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17011
    freebsd2*)
 
17012
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17013
      hardcode_direct_GCJ=yes
 
17014
      hardcode_minus_L_GCJ=yes
 
17015
      hardcode_shlibpath_var_GCJ=no
 
17016
      ;;
 
17017
 
 
17018
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17019
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17020
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17021
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17022
      hardcode_direct_GCJ=yes
 
17023
      hardcode_shlibpath_var_GCJ=no
 
17024
      ;;
 
17025
 
 
17026
    hpux9*)
 
17027
      if test "$GCC" = yes; then
 
17028
        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'
 
17029
      else
 
17030
        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'
 
17031
      fi
 
17032
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17033
      hardcode_libdir_separator_GCJ=:
 
17034
      hardcode_direct_GCJ=yes
 
17035
 
 
17036
      # hardcode_minus_L: Not really in the search PATH,
 
17037
      # but as the default location of the library.
 
17038
      hardcode_minus_L_GCJ=yes
 
17039
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17040
      ;;
 
17041
 
 
17042
    hpux10*)
 
17043
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17044
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17045
      else
 
17046
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17047
      fi
 
17048
      if test "$with_gnu_ld" = no; then
 
17049
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17050
        hardcode_libdir_separator_GCJ=:
 
17051
 
 
17052
        hardcode_direct_GCJ=yes
 
17053
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17054
 
 
17055
        # hardcode_minus_L: Not really in the search PATH,
 
17056
        # but as the default location of the library.
 
17057
        hardcode_minus_L_GCJ=yes
 
17058
      fi
 
17059
      ;;
 
17060
 
 
17061
    hpux11*)
 
17062
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17063
        case $host_cpu in
 
17064
        hppa*64*)
 
17065
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17066
          ;;
 
17067
        ia64*)
 
17068
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17069
          ;;
 
17070
        *)
 
17071
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17072
          ;;
 
17073
        esac
 
17074
      else
 
17075
        case $host_cpu in
 
17076
        hppa*64*)
 
17077
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17078
          ;;
 
17079
        ia64*)
 
17080
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17081
          ;;
 
17082
        *)
 
17083
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17084
          ;;
 
17085
        esac
 
17086
      fi
 
17087
      if test "$with_gnu_ld" = no; then
 
17088
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17089
        hardcode_libdir_separator_GCJ=:
 
17090
 
 
17091
        case $host_cpu in
 
17092
        hppa*64*|ia64*)
 
17093
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17094
          hardcode_direct_GCJ=no
 
17095
          hardcode_shlibpath_var_GCJ=no
 
17096
          ;;
 
17097
        *)
 
17098
          hardcode_direct_GCJ=yes
 
17099
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17100
 
 
17101
          # hardcode_minus_L: Not really in the search PATH,
 
17102
          # but as the default location of the library.
 
17103
          hardcode_minus_L_GCJ=yes
 
17104
          ;;
 
17105
        esac
 
17106
      fi
 
17107
      ;;
 
17108
 
 
17109
    irix5* | irix6* | nonstopux*)
 
17110
      if test "$GCC" = yes; then
 
17111
        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'
 
17112
      else
 
17113
        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'
 
17114
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17115
      fi
 
17116
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17117
      hardcode_libdir_separator_GCJ=:
 
17118
      link_all_deplibs_GCJ=yes
 
17119
      ;;
 
17120
 
 
17121
    netbsd*)
 
17122
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17123
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17124
      else
 
17125
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17126
      fi
 
17127
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17128
      hardcode_direct_GCJ=yes
 
17129
      hardcode_shlibpath_var_GCJ=no
 
17130
      ;;
 
17131
 
 
17132
    newsos6)
 
17133
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17134
      hardcode_direct_GCJ=yes
 
17135
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17136
      hardcode_libdir_separator_GCJ=:
 
17137
      hardcode_shlibpath_var_GCJ=no
 
17138
      ;;
 
17139
 
 
17140
    openbsd*)
 
17141
      hardcode_direct_GCJ=yes
 
17142
      hardcode_shlibpath_var_GCJ=no
 
17143
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17144
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17145
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17146
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17147
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17148
      else
 
17149
       case $host_os in
 
17150
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17151
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17152
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17153
           ;;
 
17154
         *)
 
17155
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17156
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17157
           ;;
 
17158
       esac
 
17159
      fi
 
17160
      ;;
 
17161
 
 
17162
    os2*)
 
17163
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17164
      hardcode_minus_L_GCJ=yes
 
17165
      allow_undefined_flag_GCJ=unsupported
 
17166
      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'
 
17167
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17168
      ;;
 
17169
 
 
17170
    osf3*)
 
17171
      if test "$GCC" = yes; then
 
17172
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17173
        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'
 
17174
      else
 
17175
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17176
        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'
 
17177
      fi
 
17178
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17179
      hardcode_libdir_separator_GCJ=:
 
17180
      ;;
 
17181
 
 
17182
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17183
      if test "$GCC" = yes; then
 
17184
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17185
        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'
 
17186
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17187
      else
 
17188
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17189
        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'
 
17190
        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~
 
17191
        $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'
 
17192
 
 
17193
        # Both c and cxx compiler support -rpath directly
 
17194
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17195
      fi
 
17196
      hardcode_libdir_separator_GCJ=:
 
17197
      ;;
 
17198
 
 
17199
    solaris*)
 
17200
      no_undefined_flag_GCJ=' -z text'
 
17201
      if test "$GCC" = yes; then
 
17202
        wlarc='${wl}'
 
17203
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17204
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17205
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17206
      else
 
17207
        wlarc=''
 
17208
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17209
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17210
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17211
      fi
 
17212
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17213
      hardcode_shlibpath_var_GCJ=no
 
17214
      case $host_os in
 
17215
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17216
      *)
 
17217
        # The compiler driver will combine linker options so we
 
17218
        # cannot just pass the convience library names through
 
17219
        # without $wl, iff we do not link with $LD.
 
17220
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17221
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17222
        case $wlarc in
 
17223
        '')
 
17224
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17225
        *)
 
17226
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17227
        esac ;;
 
17228
      esac
 
17229
      link_all_deplibs_GCJ=yes
 
17230
      ;;
 
17231
 
 
17232
    sunos4*)
 
17233
      if test "x$host_vendor" = xsequent; then
 
17234
        # Use $CC to link under sequent, because it throws in some extra .o
 
17235
        # files that make .init and .fini sections work.
 
17236
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17237
      else
 
17238
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17239
      fi
 
17240
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17241
      hardcode_direct_GCJ=yes
 
17242
      hardcode_minus_L_GCJ=yes
 
17243
      hardcode_shlibpath_var_GCJ=no
 
17244
      ;;
 
17245
 
 
17246
    sysv4)
 
17247
      case $host_vendor in
 
17248
        sni)
 
17249
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17250
          hardcode_direct_GCJ=yes # is this really true???
 
17251
        ;;
 
17252
        siemens)
 
17253
          ## LD is ld it makes a PLAMLIB
 
17254
          ## CC just makes a GrossModule.
 
17255
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17256
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17257
          hardcode_direct_GCJ=no
 
17258
        ;;
 
17259
        motorola)
 
17260
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17261
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17262
        ;;
 
17263
      esac
 
17264
      runpath_var='LD_RUN_PATH'
 
17265
      hardcode_shlibpath_var_GCJ=no
 
17266
      ;;
 
17267
 
 
17268
    sysv4.3*)
 
17269
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17270
      hardcode_shlibpath_var_GCJ=no
 
17271
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17272
      ;;
 
17273
 
 
17274
    sysv4*MP*)
 
17275
      if test -d /usr/nec; then
 
17276
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17277
        hardcode_shlibpath_var_GCJ=no
 
17278
        runpath_var=LD_RUN_PATH
 
17279
        hardcode_runpath_var=yes
 
17280
        ld_shlibs_GCJ=yes
 
17281
      fi
 
17282
      ;;
 
17283
 
 
17284
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17285
      no_undefined_flag_GCJ='${wl}-z,text'
 
17286
      archive_cmds_need_lc_GCJ=no
 
17287
      hardcode_shlibpath_var_GCJ=no
 
17288
      runpath_var='LD_RUN_PATH'
 
17289
 
 
17290
      if test "$GCC" = yes; then
 
17291
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17292
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17293
      else
 
17294
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17295
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17296
      fi
 
17297
      ;;
 
17298
 
 
17299
    sysv5* | sco3.2v5* | sco5v6*)
 
17300
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17301
      # link with -lc, and that would cause any symbols used from libc to
 
17302
      # always be unresolved, which means just about no library would
 
17303
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17304
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17305
      # as -z defs.
 
17306
      no_undefined_flag_GCJ='${wl}-z,text'
 
17307
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17308
      archive_cmds_need_lc_GCJ=no
 
17309
      hardcode_shlibpath_var_GCJ=no
 
17310
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17311
      hardcode_libdir_separator_GCJ=':'
 
17312
      link_all_deplibs_GCJ=yes
 
17313
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17314
      runpath_var='LD_RUN_PATH'
 
17315
 
 
17316
      if test "$GCC" = yes; then
 
17317
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17318
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17319
      else
 
17320
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17321
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17322
      fi
 
17323
      ;;
 
17324
 
 
17325
    uts4*)
 
17326
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17327
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17328
      hardcode_shlibpath_var_GCJ=no
 
17329
      ;;
 
17330
 
 
17331
    *)
 
17332
      ld_shlibs_GCJ=no
 
17333
      ;;
 
17334
    esac
 
17335
  fi
 
17336
 
 
17337
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17338
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17339
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17340
 
 
17341
#
 
17342
# Do we need to explicitly link libc?
 
17343
#
 
17344
case "x$archive_cmds_need_lc_GCJ" in
 
17345
x|xyes)
 
17346
  # Assume -lc should be added
 
17347
  archive_cmds_need_lc_GCJ=yes
 
17348
 
 
17349
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17350
    case $archive_cmds_GCJ in
 
17351
    *'~'*)
 
17352
      # FIXME: we may have to deal with multi-command sequences.
 
17353
      ;;
 
17354
    '$CC '*)
 
17355
      # Test whether the compiler implicitly links with -lc since on some
 
17356
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17357
      # to ld, don't add -lc before -lgcc.
 
17358
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17359
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17360
      $rm conftest*
 
17361
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17362
 
 
17363
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17364
  (eval $ac_compile) 2>&5
 
17365
  ac_status=$?
 
17366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17367
  (exit $ac_status); } 2>conftest.err; then
 
17368
        soname=conftest
 
17369
        lib=conftest
 
17370
        libobjs=conftest.$ac_objext
 
17371
        deplibs=
 
17372
        wl=$lt_prog_compiler_wl_GCJ
 
17373
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17374
        compiler_flags=-v
 
17375
        linker_flags=-v
 
17376
        verstring=
 
17377
        output_objdir=.
 
17378
        libname=conftest
 
17379
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17380
        allow_undefined_flag_GCJ=
 
17381
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17382
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17383
  ac_status=$?
 
17384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17385
  (exit $ac_status); }
 
17386
        then
 
17387
          archive_cmds_need_lc_GCJ=no
 
17388
        else
 
17389
          archive_cmds_need_lc_GCJ=yes
 
17390
        fi
 
17391
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17392
      else
 
17393
        cat conftest.err 1>&5
 
17394
      fi
 
17395
      $rm conftest*
 
17396
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17397
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17398
      ;;
 
17399
    esac
 
17400
  fi
 
17401
  ;;
 
17402
esac
 
17403
 
 
17404
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17405
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17406
library_names_spec=
 
17407
libname_spec='lib$name'
 
17408
soname_spec=
 
17409
shrext_cmds=".so"
 
17410
postinstall_cmds=
 
17411
postuninstall_cmds=
 
17412
finish_cmds=
 
17413
finish_eval=
 
17414
shlibpath_var=
 
17415
shlibpath_overrides_runpath=unknown
 
17416
version_type=none
 
17417
dynamic_linker="$host_os ld.so"
 
17418
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17419
if test "$GCC" = yes; then
 
17420
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17421
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17422
    # if the path contains ";" then we assume it to be the separator
 
17423
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17424
    # assumed that no part of a normal pathname contains ";" but that should
 
17425
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17426
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17427
  else
 
17428
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17429
  fi
 
17430
else
 
17431
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17432
fi
 
17433
need_lib_prefix=unknown
 
17434
hardcode_into_libs=no
 
17435
 
 
17436
# when you set need_version to no, make sure it does not cause -set_version
 
17437
# flags to be left without arguments
 
17438
need_version=unknown
 
17439
 
 
17440
case $host_os in
 
17441
aix3*)
 
17442
  version_type=linux
 
17443
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17444
  shlibpath_var=LIBPATH
 
17445
 
 
17446
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17447
  soname_spec='${libname}${release}${shared_ext}$major'
 
17448
  ;;
 
17449
 
 
17450
aix4* | aix5*)
 
17451
  version_type=linux
 
17452
  need_lib_prefix=no
 
17453
  need_version=no
 
17454
  hardcode_into_libs=yes
 
17455
  if test "$host_cpu" = ia64; then
 
17456
    # AIX 5 supports IA64
 
17457
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17458
    shlibpath_var=LD_LIBRARY_PATH
 
17459
  else
 
17460
    # With GCC up to 2.95.x, collect2 would create an import file
 
17461
    # for dependence libraries.  The import file would start with
 
17462
    # the line `#! .'.  This would cause the generated library to
 
17463
    # depend on `.', always an invalid library.  This was fixed in
 
17464
    # development snapshots of GCC prior to 3.0.
 
17465
    case $host_os in
 
17466
      aix4 | aix4.[01] | aix4.[01].*)
 
17467
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17468
           echo ' yes '
 
17469
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17470
        :
 
17471
      else
 
17472
        can_build_shared=no
 
17473
      fi
 
17474
      ;;
 
17475
    esac
 
17476
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17477
    # soname into executable. Probably we can add versioning support to
 
17478
    # collect2, so additional links can be useful in future.
 
17479
    if test "$aix_use_runtimelinking" = yes; then
 
17480
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17481
      # instead of lib<name>.a to let people know that these are not
 
17482
      # typical AIX shared libraries.
 
17483
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17484
    else
 
17485
      # We preserve .a as extension for shared libraries through AIX4.2
 
17486
      # and later when we are not doing run time linking.
 
17487
      library_names_spec='${libname}${release}.a $libname.a'
 
17488
      soname_spec='${libname}${release}${shared_ext}$major'
 
17489
    fi
 
17490
    shlibpath_var=LIBPATH
 
17491
  fi
 
17492
  ;;
 
17493
 
 
17494
amigaos*)
 
17495
  library_names_spec='$libname.ixlibrary $libname.a'
 
17496
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17497
  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'
 
17498
  ;;
 
17499
 
 
17500
beos*)
 
17501
  library_names_spec='${libname}${shared_ext}'
 
17502
  dynamic_linker="$host_os ld.so"
 
17503
  shlibpath_var=LIBRARY_PATH
 
17504
  ;;
 
17505
 
 
17506
bsdi[45]*)
 
17507
  version_type=linux
 
17508
  need_version=no
 
17509
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17510
  soname_spec='${libname}${release}${shared_ext}$major'
 
17511
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17512
  shlibpath_var=LD_LIBRARY_PATH
 
17513
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17514
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17515
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17516
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17517
  # libtool to hard-code these into programs
 
17518
  ;;
 
17519
 
 
17520
cygwin* | mingw* | pw32*)
 
17521
  version_type=windows
 
17522
  shrext_cmds=".dll"
 
17523
  need_version=no
 
17524
  need_lib_prefix=no
 
17525
 
 
17526
  case $GCC,$host_os in
 
17527
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17528
    library_names_spec='$libname.dll.a'
 
17529
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17530
    postinstall_cmds='base_file=`basename \${file}`~
 
17531
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17532
      dldir=$destdir/`dirname \$dlpath`~
 
17533
      test -d \$dldir || mkdir -p \$dldir~
 
17534
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17535
      chmod a+x \$dldir/$dlname'
 
17536
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17537
      dlpath=$dir/\$dldll~
 
17538
       $rm \$dlpath'
 
17539
    shlibpath_overrides_runpath=yes
 
17540
 
 
17541
    case $host_os in
 
17542
    cygwin*)
 
17543
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17544
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17545
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17546
      ;;
 
17547
    mingw*)
 
17548
      # MinGW DLLs use traditional 'lib' prefix
 
17549
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17550
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17551
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17552
        # It is most probably a Windows format PATH printed by
 
17553
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17554
        # path with ; separators, and with drive letters. We can handle the
 
17555
        # drive letters (cygwin fileutils understands them), so leave them,
 
17556
        # especially as we might pass files found there to a mingw objdump,
 
17557
        # which wouldn't understand a cygwinified path. Ahh.
 
17558
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17559
      else
 
17560
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17561
      fi
 
17562
      ;;
 
17563
    pw32*)
 
17564
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17565
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17566
      ;;
 
17567
    esac
 
17568
    ;;
 
17569
 
 
17570
  linux*)
 
17571
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
17572
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17573
      supports_anon_versioning=no
 
17574
      case `$LD -v 2>/dev/null` in
 
17575
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17576
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17577
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17578
        *\ 2.11.*) ;; # other 2.11 versions
 
17579
        *) supports_anon_versioning=yes ;;
 
17580
      esac
 
17581
      if test $supports_anon_versioning = yes; then
 
17582
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
17583
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17584
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
17585
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17586
      else
 
17587
        $archive_expsym_cmds="$archive_cmds"
 
17588
      fi
 
17589
    else
 
17590
      ld_shlibs=no
 
17591
    fi
 
17592
    ;;
 
17593
 
 
17594
  *)
 
17595
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17596
    ;;
 
17597
  esac
 
17598
  dynamic_linker='Win32 ld.exe'
 
17599
  # FIXME: first we should search . and the directory the executable is in
 
17600
  shlibpath_var=PATH
 
17601
  ;;
 
17602
 
 
17603
darwin* | rhapsody*)
 
17604
  dynamic_linker="$host_os dyld"
 
17605
  version_type=darwin
 
17606
  need_lib_prefix=no
 
17607
  need_version=no
 
17608
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17609
  soname_spec='${libname}${release}${major}$shared_ext'
 
17610
  shlibpath_overrides_runpath=yes
 
17611
  shlibpath_var=DYLD_LIBRARY_PATH
 
17612
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17613
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17614
  if test "$GCC" = yes; then
 
17615
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17616
  else
 
17617
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17618
  fi
 
17619
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17620
  ;;
 
17621
 
 
17622
dgux*)
 
17623
  version_type=linux
 
17624
  need_lib_prefix=no
 
17625
  need_version=no
 
17626
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17627
  soname_spec='${libname}${release}${shared_ext}$major'
 
17628
  shlibpath_var=LD_LIBRARY_PATH
 
17629
  ;;
 
17630
 
 
17631
freebsd1*)
 
17632
  dynamic_linker=no
 
17633
  ;;
 
17634
 
 
17635
kfreebsd*-gnu)
 
17636
  version_type=linux
 
17637
  need_lib_prefix=no
 
17638
  need_version=no
 
17639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17640
  soname_spec='${libname}${release}${shared_ext}$major'
 
17641
  shlibpath_var=LD_LIBRARY_PATH
 
17642
  shlibpath_overrides_runpath=no
 
17643
  hardcode_into_libs=yes
 
17644
  dynamic_linker='GNU ld.so'
 
17645
  ;;
 
17646
 
 
17647
freebsd* | dragonfly*)
 
17648
  # DragonFly does not have aout.  When/if they implement a new
 
17649
  # versioning mechanism, adjust this.
 
17650
  if test -x /usr/bin/objformat; then
 
17651
    objformat=`/usr/bin/objformat`
 
17652
  else
 
17653
    case $host_os in
 
17654
    freebsd[123]*) objformat=aout ;;
 
17655
    *) objformat=elf ;;
 
17656
    esac
 
17657
  fi
 
17658
  # Handle Gentoo/FreeBSD as it was Linux
 
17659
  case $host_vendor in
 
17660
    gentoo)
 
17661
      version_type=linux ;;
 
17662
    *)
 
17663
      version_type=freebsd-$objformat ;;
 
17664
  esac
 
17665
 
 
17666
  case $version_type in
 
17667
    freebsd-elf*)
 
17668
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17669
      need_version=no
 
17670
      need_lib_prefix=no
 
17671
      ;;
 
17672
    freebsd-*)
 
17673
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17674
      need_version=yes
 
17675
      ;;
 
17676
    linux)
 
17677
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17678
      soname_spec='${libname}${release}${shared_ext}$major'
 
17679
      need_lib_prefix=no
 
17680
      need_version=no
 
17681
      ;;
 
17682
  esac
 
17683
  shlibpath_var=LD_LIBRARY_PATH
 
17684
  case $host_os in
 
17685
  freebsd2*)
 
17686
    shlibpath_overrides_runpath=yes
 
17687
    ;;
 
17688
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17689
    shlibpath_overrides_runpath=yes
 
17690
    hardcode_into_libs=yes
 
17691
    ;;
 
17692
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17693
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17694
    shlibpath_overrides_runpath=no
 
17695
    hardcode_into_libs=yes
 
17696
    ;;
 
17697
  freebsd*) # from 4.6 on
 
17698
    shlibpath_overrides_runpath=yes
 
17699
    hardcode_into_libs=yes
 
17700
    ;;
 
17701
  esac
 
17702
  ;;
 
17703
 
 
17704
gnu*)
 
17705
  version_type=linux
 
17706
  need_lib_prefix=no
 
17707
  need_version=no
 
17708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17709
  soname_spec='${libname}${release}${shared_ext}$major'
 
17710
  shlibpath_var=LD_LIBRARY_PATH
 
17711
  hardcode_into_libs=yes
 
17712
  ;;
 
17713
 
 
17714
hpux9* | hpux10* | hpux11*)
 
17715
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17716
  # link against other versions.
 
17717
  version_type=sunos
 
17718
  need_lib_prefix=no
 
17719
  need_version=no
 
17720
  case $host_cpu in
 
17721
  ia64*)
 
17722
    shrext_cmds='.so'
 
17723
    hardcode_into_libs=yes
 
17724
    dynamic_linker="$host_os dld.so"
 
17725
    shlibpath_var=LD_LIBRARY_PATH
 
17726
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17727
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17728
    soname_spec='${libname}${release}${shared_ext}$major'
 
17729
    if test "X$HPUX_IA64_MODE" = X32; then
 
17730
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17731
    else
 
17732
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17733
    fi
 
17734
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17735
    ;;
 
17736
   hppa*64*)
 
17737
     shrext_cmds='.sl'
 
17738
     hardcode_into_libs=yes
 
17739
     dynamic_linker="$host_os dld.sl"
 
17740
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17741
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17742
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17743
     soname_spec='${libname}${release}${shared_ext}$major'
 
17744
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17745
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17746
     ;;
 
17747
   *)
 
17748
    shrext_cmds='.sl'
 
17749
    dynamic_linker="$host_os dld.sl"
 
17750
    shlibpath_var=SHLIB_PATH
 
17751
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17752
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17753
    soname_spec='${libname}${release}${shared_ext}$major'
 
17754
    ;;
 
17755
  esac
 
17756
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17757
  postinstall_cmds='chmod 555 $lib'
 
17758
  ;;
 
17759
 
 
17760
interix3*)
 
17761
  version_type=linux
 
17762
  need_lib_prefix=no
 
17763
  need_version=no
 
17764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17765
  soname_spec='${libname}${release}${shared_ext}$major'
 
17766
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
17767
  shlibpath_var=LD_LIBRARY_PATH
 
17768
  shlibpath_overrides_runpath=no
 
17769
  hardcode_into_libs=yes
 
17770
  ;;
 
17771
 
 
17772
irix5* | irix6* | nonstopux*)
 
17773
  case $host_os in
 
17774
    nonstopux*) version_type=nonstopux ;;
 
17775
    *)
 
17776
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17777
                version_type=linux
 
17778
        else
 
17779
                version_type=irix
 
17780
        fi ;;
 
17781
  esac
 
17782
  need_lib_prefix=no
 
17783
  need_version=no
 
17784
  soname_spec='${libname}${release}${shared_ext}$major'
 
17785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17786
  case $host_os in
 
17787
  irix5* | nonstopux*)
 
17788
    libsuff= shlibsuff=
 
17789
    ;;
 
17790
  *)
 
17791
    case $LD in # libtool.m4 will add one of these switches to LD
 
17792
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17793
      libsuff= shlibsuff= libmagic=32-bit;;
 
17794
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17795
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17796
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17797
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17798
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17799
    esac
 
17800
    ;;
 
17801
  esac
 
17802
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17803
  shlibpath_overrides_runpath=no
 
17804
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17805
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17806
  hardcode_into_libs=yes
 
17807
  ;;
 
17808
 
 
17809
# No shared lib support for Linux oldld, aout, or coff.
 
17810
linux*oldld* | linux*aout* | linux*coff*)
 
17811
  dynamic_linker=no
 
17812
  ;;
 
17813
 
 
17814
# This must be Linux ELF.
 
17815
linux*)
 
17816
  version_type=linux
 
17817
  need_lib_prefix=no
 
17818
  need_version=no
 
17819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17820
  soname_spec='${libname}${release}${shared_ext}$major'
 
17821
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17822
  shlibpath_var=LD_LIBRARY_PATH
 
17823
  shlibpath_overrides_runpath=no
 
17824
  # This implies no fast_install, which is unacceptable.
 
17825
  # Some rework will be needed to allow for fast_install
 
17826
  # before this can be enabled.
 
17827
  hardcode_into_libs=yes
 
17828
 
 
17829
  # Append ld.so.conf contents to the search path
 
17830
  if test -f /etc/ld.so.conf; then
 
17831
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17832
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17833
  fi
 
17834
 
 
17835
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17836
  # powerpc, because MkLinux only supported shared libraries with the
 
17837
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17838
  # most powerpc-linux boxes support dynamic linking these days and
 
17839
  # people can always --disable-shared, the test was removed, and we
 
17840
  # assume the GNU/Linux dynamic linker is in use.
 
17841
  dynamic_linker='GNU/Linux ld.so'
 
17842
  ;;
 
17843
 
 
17844
knetbsd*-gnu)
 
17845
  version_type=linux
 
17846
  need_lib_prefix=no
 
17847
  need_version=no
 
17848
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17849
  soname_spec='${libname}${release}${shared_ext}$major'
 
17850
  shlibpath_var=LD_LIBRARY_PATH
 
17851
  shlibpath_overrides_runpath=no
 
17852
  hardcode_into_libs=yes
 
17853
  dynamic_linker='GNU ld.so'
 
17854
  ;;
 
17855
 
 
17856
netbsd*)
 
17857
  version_type=sunos
 
17858
  need_lib_prefix=no
 
17859
  need_version=no
 
17860
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17861
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17862
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17863
    dynamic_linker='NetBSD (a.out) ld.so'
 
17864
  else
 
17865
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17866
    soname_spec='${libname}${release}${shared_ext}$major'
 
17867
    dynamic_linker='NetBSD ld.elf_so'
 
17868
  fi
 
17869
  shlibpath_var=LD_LIBRARY_PATH
 
17870
  shlibpath_overrides_runpath=yes
 
17871
  hardcode_into_libs=yes
 
17872
  ;;
 
17873
 
 
17874
newsos6)
 
17875
  version_type=linux
 
17876
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17877
  shlibpath_var=LD_LIBRARY_PATH
 
17878
  shlibpath_overrides_runpath=yes
 
17879
  ;;
 
17880
 
 
17881
nto-qnx*)
 
17882
  version_type=linux
 
17883
  need_lib_prefix=no
 
17884
  need_version=no
 
17885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17886
  soname_spec='${libname}${release}${shared_ext}$major'
 
17887
  shlibpath_var=LD_LIBRARY_PATH
 
17888
  shlibpath_overrides_runpath=yes
 
17889
  ;;
 
17890
 
 
17891
openbsd*)
 
17892
  version_type=sunos
 
17893
  sys_lib_dlsearch_path_spec="/usr/lib"
 
17894
  need_lib_prefix=no
 
17895
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17896
  case $host_os in
 
17897
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17898
    *)                         need_version=no  ;;
 
17899
  esac
 
17900
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17901
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17902
  shlibpath_var=LD_LIBRARY_PATH
 
17903
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17904
    case $host_os in
 
17905
      openbsd2.[89] | openbsd2.[89].*)
 
17906
        shlibpath_overrides_runpath=no
 
17907
        ;;
 
17908
      *)
 
17909
        shlibpath_overrides_runpath=yes
 
17910
        ;;
 
17911
      esac
 
17912
  else
 
17913
    shlibpath_overrides_runpath=yes
 
17914
  fi
 
17915
  ;;
 
17916
 
 
17917
os2*)
 
17918
  libname_spec='$name'
 
17919
  shrext_cmds=".dll"
 
17920
  need_lib_prefix=no
 
17921
  library_names_spec='$libname${shared_ext} $libname.a'
 
17922
  dynamic_linker='OS/2 ld.exe'
 
17923
  shlibpath_var=LIBPATH
 
17924
  ;;
 
17925
 
 
17926
osf3* | osf4* | osf5*)
 
17927
  version_type=osf
 
17928
  need_lib_prefix=no
 
17929
  need_version=no
 
17930
  soname_spec='${libname}${release}${shared_ext}$major'
 
17931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17932
  shlibpath_var=LD_LIBRARY_PATH
 
17933
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17934
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17935
  ;;
 
17936
 
 
17937
solaris*)
 
17938
  version_type=linux
 
17939
  need_lib_prefix=no
 
17940
  need_version=no
 
17941
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17942
  soname_spec='${libname}${release}${shared_ext}$major'
 
17943
  shlibpath_var=LD_LIBRARY_PATH
 
17944
  shlibpath_overrides_runpath=yes
 
17945
  hardcode_into_libs=yes
 
17946
  # ldd complains unless libraries are executable
 
17947
  postinstall_cmds='chmod +x $lib'
 
17948
  ;;
 
17949
 
 
17950
sunos4*)
 
17951
  version_type=sunos
 
17952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17953
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17954
  shlibpath_var=LD_LIBRARY_PATH
 
17955
  shlibpath_overrides_runpath=yes
 
17956
  if test "$with_gnu_ld" = yes; then
 
17957
    need_lib_prefix=no
 
17958
  fi
 
17959
  need_version=yes
 
17960
  ;;
 
17961
 
 
17962
sysv4 | sysv4.3*)
 
17963
  version_type=linux
 
17964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17965
  soname_spec='${libname}${release}${shared_ext}$major'
 
17966
  shlibpath_var=LD_LIBRARY_PATH
 
17967
  case $host_vendor in
 
17968
    sni)
 
17969
      shlibpath_overrides_runpath=no
 
17970
      need_lib_prefix=no
 
17971
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17972
      runpath_var=LD_RUN_PATH
 
17973
      ;;
 
17974
    siemens)
 
17975
      need_lib_prefix=no
 
17976
      ;;
 
17977
    motorola)
 
17978
      need_lib_prefix=no
 
17979
      need_version=no
 
17980
      shlibpath_overrides_runpath=no
 
17981
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17982
      ;;
 
17983
  esac
 
17984
  ;;
 
17985
 
 
17986
sysv4*MP*)
 
17987
  if test -d /usr/nec ;then
 
17988
    version_type=linux
 
17989
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17990
    soname_spec='$libname${shared_ext}.$major'
 
17991
    shlibpath_var=LD_LIBRARY_PATH
 
17992
  fi
 
17993
  ;;
 
17994
 
 
17995
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
17996
  version_type=freebsd-elf
 
17997
  need_lib_prefix=no
 
17998
  need_version=no
 
17999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18000
  soname_spec='${libname}${release}${shared_ext}$major'
 
18001
  shlibpath_var=LD_LIBRARY_PATH
 
18002
  hardcode_into_libs=yes
 
18003
  if test "$with_gnu_ld" = yes; then
 
18004
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18005
    shlibpath_overrides_runpath=no
 
18006
  else
 
18007
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18008
    shlibpath_overrides_runpath=yes
 
18009
    case $host_os in
 
18010
      sco3.2v5*)
 
18011
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18012
        ;;
 
18013
    esac
 
18014
  fi
 
18015
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18016
  ;;
 
18017
 
 
18018
uts4*)
 
18019
  version_type=linux
 
18020
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18021
  soname_spec='${libname}${release}${shared_ext}$major'
 
18022
  shlibpath_var=LD_LIBRARY_PATH
 
18023
  ;;
 
18024
 
 
18025
*)
 
18026
  dynamic_linker=no
 
18027
  ;;
 
18028
esac
 
18029
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18030
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18031
test "$dynamic_linker" = no && can_build_shared=no
 
18032
 
 
18033
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18034
if test "$GCC" = yes; then
 
18035
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18036
fi
 
18037
 
 
18038
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18039
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18040
hardcode_action_GCJ=
 
18041
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18042
   test -n "$runpath_var_GCJ" || \
 
18043
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18044
 
 
18045
  # We can hardcode non-existant directories.
 
18046
  if test "$hardcode_direct_GCJ" != no &&
 
18047
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18048
     # have to relink, otherwise we might link with an installed library
 
18049
     # when we should be linking with a yet-to-be-installed one
 
18050
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18051
     test "$hardcode_minus_L_GCJ" != no; then
 
18052
    # Linking always hardcodes the temporary library directory.
 
18053
    hardcode_action_GCJ=relink
 
18054
  else
 
18055
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18056
    hardcode_action_GCJ=immediate
 
18057
  fi
 
18058
else
 
18059
  # We cannot hardcode anything, or else we can only hardcode existing
 
18060
  # directories.
 
18061
  hardcode_action_GCJ=unsupported
 
18062
fi
 
18063
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18064
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18065
 
 
18066
if test "$hardcode_action_GCJ" = relink; then
 
18067
  # Fast installation is not supported
 
18068
  enable_fast_install=no
 
18069
elif test "$shlibpath_overrides_runpath" = yes ||
 
18070
     test "$enable_shared" = no; then
 
18071
  # Fast installation is not necessary
 
18072
  enable_fast_install=needless
 
18073
fi
 
18074
 
 
18075
 
 
18076
# The else clause should only fire when bootstrapping the
 
18077
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18078
# with your package, and you will get complaints that there are
 
18079
# no rules to generate ltmain.sh.
 
18080
if test -f "$ltmain"; then
 
18081
  # See if we are running on zsh, and set the options which allow our commands through
 
18082
  # without removal of \ escapes.
 
18083
  if test -n "${ZSH_VERSION+set}" ; then
 
18084
    setopt NO_GLOB_SUBST
 
18085
  fi
 
18086
  # Now quote all the things that may contain metacharacters while being
 
18087
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18088
  # variables and quote the copies for generation of the libtool script.
 
18089
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18090
    SED SHELL STRIP \
 
18091
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18092
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18093
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18094
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18095
    lt_cv_sys_global_symbol_to_c_name_address \
 
18096
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18097
    old_postinstall_cmds old_postuninstall_cmds \
 
18098
    compiler_GCJ \
 
18099
    CC_GCJ \
 
18100
    LD_GCJ \
 
18101
    lt_prog_compiler_wl_GCJ \
 
18102
    lt_prog_compiler_pic_GCJ \
 
18103
    lt_prog_compiler_static_GCJ \
 
18104
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18105
    export_dynamic_flag_spec_GCJ \
 
18106
    thread_safe_flag_spec_GCJ \
 
18107
    whole_archive_flag_spec_GCJ \
 
18108
    enable_shared_with_static_runtimes_GCJ \
 
18109
    old_archive_cmds_GCJ \
 
18110
    old_archive_from_new_cmds_GCJ \
 
18111
    predep_objects_GCJ \
 
18112
    postdep_objects_GCJ \
 
18113
    predeps_GCJ \
 
18114
    postdeps_GCJ \
 
18115
    compiler_lib_search_path_GCJ \
 
18116
    archive_cmds_GCJ \
 
18117
    archive_expsym_cmds_GCJ \
 
18118
    postinstall_cmds_GCJ \
 
18119
    postuninstall_cmds_GCJ \
 
18120
    old_archive_from_expsyms_cmds_GCJ \
 
18121
    allow_undefined_flag_GCJ \
 
18122
    no_undefined_flag_GCJ \
 
18123
    export_symbols_cmds_GCJ \
 
18124
    hardcode_libdir_flag_spec_GCJ \
 
18125
    hardcode_libdir_flag_spec_ld_GCJ \
 
18126
    hardcode_libdir_separator_GCJ \
 
18127
    hardcode_automatic_GCJ \
 
18128
    module_cmds_GCJ \
 
18129
    module_expsym_cmds_GCJ \
 
18130
    lt_cv_prog_compiler_c_o_GCJ \
 
18131
    exclude_expsyms_GCJ \
 
18132
    include_expsyms_GCJ; do
 
18133
 
 
18134
    case $var in
 
18135
    old_archive_cmds_GCJ | \
 
18136
    old_archive_from_new_cmds_GCJ | \
 
18137
    archive_cmds_GCJ | \
 
18138
    archive_expsym_cmds_GCJ | \
 
18139
    module_cmds_GCJ | \
 
18140
    module_expsym_cmds_GCJ | \
 
18141
    old_archive_from_expsyms_cmds_GCJ | \
 
18142
    export_symbols_cmds_GCJ | \
 
18143
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18144
    postinstall_cmds | postuninstall_cmds | \
 
18145
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18146
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18147
      # Double-quote double-evaled strings.
 
18148
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18149
      ;;
 
18150
    *)
 
18151
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18152
      ;;
 
18153
    esac
 
18154
  done
 
18155
 
 
18156
  case $lt_echo in
 
18157
  *'\$0 --fallback-echo"')
 
18158
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18159
    ;;
 
18160
  esac
 
18161
 
 
18162
cfgfile="$ofile"
 
18163
 
 
18164
  cat <<__EOF__ >> "$cfgfile"
 
18165
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18166
 
 
18167
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18168
 
 
18169
# Shell to use when invoking shell scripts.
 
18170
SHELL=$lt_SHELL
 
18171
 
 
18172
# Whether or not to build shared libraries.
 
18173
build_libtool_libs=$enable_shared
 
18174
 
 
18175
# Whether or not to build static libraries.
 
18176
build_old_libs=$enable_static
 
18177
 
 
18178
# Whether or not to add -lc for building shared libraries.
 
18179
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18180
 
 
18181
# Whether or not to disallow shared libs when runtime libs are static
 
18182
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18183
 
 
18184
# Whether or not to optimize for fast installation.
 
18185
fast_install=$enable_fast_install
 
18186
 
 
18187
# The host system.
 
18188
host_alias=$host_alias
 
18189
host=$host
 
18190
host_os=$host_os
 
18191
 
 
18192
# The build system.
 
18193
build_alias=$build_alias
 
18194
build=$build
 
18195
build_os=$build_os
 
18196
 
 
18197
# An echo program that does not interpret backslashes.
 
18198
echo=$lt_echo
 
18199
 
 
18200
# The archiver.
 
18201
AR=$lt_AR
 
18202
AR_FLAGS=$lt_AR_FLAGS
 
18203
 
 
18204
# A C compiler.
 
18205
LTCC=$lt_LTCC
 
18206
 
 
18207
# LTCC compiler flags.
 
18208
LTCFLAGS=$lt_LTCFLAGS
 
18209
 
 
18210
# A language-specific compiler.
 
18211
CC=$lt_compiler_GCJ
 
18212
 
 
18213
# Is the compiler the GNU C compiler?
 
18214
with_gcc=$GCC_GCJ
 
18215
 
 
18216
# An ERE matcher.
 
18217
EGREP=$lt_EGREP
 
18218
 
 
18219
# The linker used to build libraries.
 
18220
LD=$lt_LD_GCJ
 
18221
 
 
18222
# Whether we need hard or soft links.
 
18223
LN_S=$lt_LN_S
 
18224
 
 
18225
# A BSD-compatible nm program.
 
18226
NM=$lt_NM
 
18227
 
 
18228
# A symbol stripping program
 
18229
STRIP=$lt_STRIP
 
18230
 
 
18231
# Used to examine libraries when file_magic_cmd begins "file"
 
18232
MAGIC_CMD=$MAGIC_CMD
 
18233
 
 
18234
# Used on cygwin: DLL creation program.
 
18235
DLLTOOL="$DLLTOOL"
 
18236
 
 
18237
# Used on cygwin: object dumper.
 
18238
OBJDUMP="$OBJDUMP"
 
18239
 
 
18240
# Used on cygwin: assembler.
 
18241
AS="$AS"
 
18242
 
 
18243
# The name of the directory that contains temporary libtool files.
 
18244
objdir=$objdir
 
18245
 
 
18246
# How to create reloadable object files.
 
18247
reload_flag=$lt_reload_flag
 
18248
reload_cmds=$lt_reload_cmds
 
18249
 
 
18250
# How to pass a linker flag through the compiler.
 
18251
wl=$lt_lt_prog_compiler_wl_GCJ
 
18252
 
 
18253
# Object file suffix (normally "o").
 
18254
objext="$ac_objext"
 
18255
 
 
18256
# Old archive suffix (normally "a").
 
18257
libext="$libext"
 
18258
 
 
18259
# Shared library suffix (normally ".so").
 
18260
shrext_cmds='$shrext_cmds'
 
18261
 
 
18262
# Executable file suffix (normally "").
 
18263
exeext="$exeext"
 
18264
 
 
18265
# Additional compiler flags for building library objects.
 
18266
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18267
pic_mode=$pic_mode
 
18268
 
 
18269
# What is the maximum length of a command?
 
18270
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18271
 
 
18272
# Does compiler simultaneously support -c and -o options?
 
18273
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18274
 
 
18275
# Must we lock files when doing compilation?
 
18276
need_locks=$lt_need_locks
 
18277
 
 
18278
# Do we need the lib prefix for modules?
 
18279
need_lib_prefix=$need_lib_prefix
 
18280
 
 
18281
# Do we need a version for libraries?
 
18282
need_version=$need_version
 
18283
 
 
18284
# Whether dlopen is supported.
 
18285
dlopen_support=$enable_dlopen
 
18286
 
 
18287
# Whether dlopen of programs is supported.
 
18288
dlopen_self=$enable_dlopen_self
 
18289
 
 
18290
# Whether dlopen of statically linked programs is supported.
 
18291
dlopen_self_static=$enable_dlopen_self_static
 
18292
 
 
18293
# Compiler flag to prevent dynamic linking.
 
18294
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18295
 
 
18296
# Compiler flag to turn off builtin functions.
 
18297
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18298
 
 
18299
# Compiler flag to allow reflexive dlopens.
 
18300
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18301
 
 
18302
# Compiler flag to generate shared objects directly from archives.
 
18303
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18304
 
 
18305
# Compiler flag to generate thread-safe objects.
 
18306
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18307
 
 
18308
# Library versioning type.
 
18309
version_type=$version_type
 
18310
 
 
18311
# Format of library name prefix.
 
18312
libname_spec=$lt_libname_spec
 
18313
 
 
18314
# List of archive names.  First name is the real one, the rest are links.
 
18315
# The last name is the one that the linker finds with -lNAME.
 
18316
library_names_spec=$lt_library_names_spec
 
18317
 
 
18318
# The coded name of the library, if different from the real name.
 
18319
soname_spec=$lt_soname_spec
 
18320
 
 
18321
# Commands used to build and install an old-style archive.
 
18322
RANLIB=$lt_RANLIB
 
18323
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18324
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18325
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18326
 
 
18327
# Create an old-style archive from a shared archive.
 
18328
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18329
 
 
18330
# Create a temporary old-style archive to link instead of a shared archive.
 
18331
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18332
 
 
18333
# Commands used to build and install a shared archive.
 
18334
archive_cmds=$lt_archive_cmds_GCJ
 
18335
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18336
postinstall_cmds=$lt_postinstall_cmds
 
18337
postuninstall_cmds=$lt_postuninstall_cmds
 
18338
 
 
18339
# Commands used to build a loadable module (assumed same as above if empty)
 
18340
module_cmds=$lt_module_cmds_GCJ
 
18341
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18342
 
 
18343
# Commands to strip libraries.
 
18344
old_striplib=$lt_old_striplib
 
18345
striplib=$lt_striplib
 
18346
 
 
18347
# Dependencies to place before the objects being linked to create a
 
18348
# shared library.
 
18349
predep_objects=$lt_predep_objects_GCJ
 
18350
 
 
18351
# Dependencies to place after the objects being linked to create a
 
18352
# shared library.
 
18353
postdep_objects=$lt_postdep_objects_GCJ
 
18354
 
 
18355
# Dependencies to place before the objects being linked to create a
 
18356
# shared library.
 
18357
predeps=$lt_predeps_GCJ
 
18358
 
 
18359
# Dependencies to place after the objects being linked to create a
 
18360
# shared library.
 
18361
postdeps=$lt_postdeps_GCJ
 
18362
 
 
18363
# The library search path used internally by the compiler when linking
 
18364
# a shared library.
 
18365
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18366
 
 
18367
# Method to check whether dependent libraries are shared objects.
 
18368
deplibs_check_method=$lt_deplibs_check_method
 
18369
 
 
18370
# Command to use when deplibs_check_method == file_magic.
 
18371
file_magic_cmd=$lt_file_magic_cmd
 
18372
 
 
18373
# Flag that allows shared libraries with undefined symbols to be built.
 
18374
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18375
 
 
18376
# Flag that forces no undefined symbols.
 
18377
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18378
 
 
18379
# Commands used to finish a libtool library installation in a directory.
 
18380
finish_cmds=$lt_finish_cmds
 
18381
 
 
18382
# Same as above, but a single script fragment to be evaled but not shown.
 
18383
finish_eval=$lt_finish_eval
 
18384
 
 
18385
# Take the output of nm and produce a listing of raw symbols and C names.
 
18386
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18387
 
 
18388
# Transform the output of nm in a proper C declaration
 
18389
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18390
 
 
18391
# Transform the output of nm in a C name address pair
 
18392
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18393
 
 
18394
# This is the shared library runtime path variable.
 
18395
runpath_var=$runpath_var
 
18396
 
 
18397
# This is the shared library path variable.
 
18398
shlibpath_var=$shlibpath_var
 
18399
 
 
18400
# Is shlibpath searched before the hard-coded library search path?
 
18401
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18402
 
 
18403
# How to hardcode a shared library path into an executable.
 
18404
hardcode_action=$hardcode_action_GCJ
 
18405
 
 
18406
# Whether we should hardcode library paths into libraries.
 
18407
hardcode_into_libs=$hardcode_into_libs
 
18408
 
 
18409
# Flag to hardcode \$libdir into a binary during linking.
 
18410
# This must work even if \$libdir does not exist.
 
18411
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18412
 
 
18413
# If ld is used when linking, flag to hardcode \$libdir into
 
18414
# a binary during linking. This must work even if \$libdir does
 
18415
# not exist.
 
18416
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18417
 
 
18418
# Whether we need a single -rpath flag with a separated argument.
 
18419
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18420
 
 
18421
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18422
# resulting binary.
 
18423
hardcode_direct=$hardcode_direct_GCJ
 
18424
 
 
18425
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18426
# resulting binary.
 
18427
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18428
 
 
18429
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18430
# the resulting binary.
 
18431
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18432
 
 
18433
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18434
# and all subsequent libraries and executables linked against it.
 
18435
hardcode_automatic=$hardcode_automatic_GCJ
 
18436
 
 
18437
# Variables whose values should be saved in libtool wrapper scripts and
 
18438
# restored at relink time.
 
18439
variables_saved_for_relink="$variables_saved_for_relink"
 
18440
 
 
18441
# Whether libtool must link a program against all its dependency libraries.
 
18442
link_all_deplibs=$link_all_deplibs_GCJ
 
18443
 
 
18444
# Compile-time system search path for libraries
 
18445
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18446
 
 
18447
# Run-time system search path for libraries
 
18448
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18449
 
 
18450
# Fix the shell variable \$srcfile for the compiler.
 
18451
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18452
 
 
18453
# Set to yes if exported symbols are required.
 
18454
always_export_symbols=$always_export_symbols_GCJ
 
18455
 
 
18456
# The commands to list exported symbols.
 
18457
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18458
 
 
18459
# The commands to extract the exported symbol list from a shared archive.
 
18460
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18461
 
 
18462
# Symbols that should not be listed in the preloaded symbols.
 
18463
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18464
 
 
18465
# Symbols that must always be exported.
 
18466
include_expsyms=$lt_include_expsyms_GCJ
 
18467
 
 
18468
# ### END LIBTOOL TAG CONFIG: $tagname
 
18469
 
 
18470
__EOF__
 
18471
 
 
18472
 
 
18473
else
 
18474
  # If there is no Makefile yet, we rely on a make rule to execute
 
18475
  # `config.status --recheck' to rerun these tests and create the
 
18476
  # libtool script then.
 
18477
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18478
  if test -f "$ltmain_in"; then
 
18479
    test -f Makefile && make "$ltmain"
 
18480
  fi
 
18481
fi
 
18482
 
 
18483
 
 
18484
ac_ext=c
 
18485
ac_cpp='$CPP $CPPFLAGS'
 
18486
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18489
 
 
18490
CC="$lt_save_CC"
 
18491
 
 
18492
        else
 
18493
          tagname=""
 
18494
        fi
 
18495
        ;;
 
18496
 
 
18497
      RC)
 
18498
 
 
18499
 
 
18500
# Source file extension for RC test sources.
 
18501
ac_ext=rc
 
18502
 
 
18503
# Object file extension for compiled RC test sources.
 
18504
objext=o
 
18505
objext_RC=$objext
 
18506
 
 
18507
# Code to be used in simple compile tests
 
18508
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18509
 
 
18510
# Code to be used in simple link tests
 
18511
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18512
 
 
18513
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18514
 
 
18515
# If no C compiler was specified, use CC.
 
18516
LTCC=${LTCC-"$CC"}
 
18517
 
 
18518
# If no C compiler flags were specified, use CFLAGS.
 
18519
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18520
 
 
18521
# Allow CC to be a program name with arguments.
 
18522
compiler=$CC
 
18523
 
 
18524
 
 
18525
# save warnings/boilerplate of simple test code
 
18526
ac_outfile=conftest.$ac_objext
 
18527
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18528
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18529
_lt_compiler_boilerplate=`cat conftest.err`
 
18530
$rm conftest*
 
18531
 
 
18532
ac_outfile=conftest.$ac_objext
 
18533
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18534
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18535
_lt_linker_boilerplate=`cat conftest.err`
 
18536
$rm conftest*
 
18537
 
 
18538
 
 
18539
# Allow CC to be a program name with arguments.
 
18540
lt_save_CC="$CC"
 
18541
CC=${RC-"windres"}
 
18542
compiler=$CC
 
18543
compiler_RC=$CC
 
18544
for cc_temp in $compiler""; do
 
18545
  case $cc_temp in
 
18546
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18547
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18548
    \-*) ;;
 
18549
    *) break;;
 
18550
  esac
 
18551
done
 
18552
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18553
 
 
18554
lt_cv_prog_compiler_c_o_RC=yes
 
18555
 
 
18556
# The else clause should only fire when bootstrapping the
 
18557
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18558
# with your package, and you will get complaints that there are
 
18559
# no rules to generate ltmain.sh.
 
18560
if test -f "$ltmain"; then
 
18561
  # See if we are running on zsh, and set the options which allow our commands through
 
18562
  # without removal of \ escapes.
 
18563
  if test -n "${ZSH_VERSION+set}" ; then
 
18564
    setopt NO_GLOB_SUBST
 
18565
  fi
 
18566
  # Now quote all the things that may contain metacharacters while being
 
18567
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18568
  # variables and quote the copies for generation of the libtool script.
 
18569
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18570
    SED SHELL STRIP \
 
18571
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18572
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18573
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18574
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18575
    lt_cv_sys_global_symbol_to_c_name_address \
 
18576
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18577
    old_postinstall_cmds old_postuninstall_cmds \
 
18578
    compiler_RC \
 
18579
    CC_RC \
 
18580
    LD_RC \
 
18581
    lt_prog_compiler_wl_RC \
 
18582
    lt_prog_compiler_pic_RC \
 
18583
    lt_prog_compiler_static_RC \
 
18584
    lt_prog_compiler_no_builtin_flag_RC \
 
18585
    export_dynamic_flag_spec_RC \
 
18586
    thread_safe_flag_spec_RC \
 
18587
    whole_archive_flag_spec_RC \
 
18588
    enable_shared_with_static_runtimes_RC \
 
18589
    old_archive_cmds_RC \
 
18590
    old_archive_from_new_cmds_RC \
 
18591
    predep_objects_RC \
 
18592
    postdep_objects_RC \
 
18593
    predeps_RC \
 
18594
    postdeps_RC \
 
18595
    compiler_lib_search_path_RC \
 
18596
    archive_cmds_RC \
 
18597
    archive_expsym_cmds_RC \
 
18598
    postinstall_cmds_RC \
 
18599
    postuninstall_cmds_RC \
 
18600
    old_archive_from_expsyms_cmds_RC \
 
18601
    allow_undefined_flag_RC \
 
18602
    no_undefined_flag_RC \
 
18603
    export_symbols_cmds_RC \
 
18604
    hardcode_libdir_flag_spec_RC \
 
18605
    hardcode_libdir_flag_spec_ld_RC \
 
18606
    hardcode_libdir_separator_RC \
 
18607
    hardcode_automatic_RC \
 
18608
    module_cmds_RC \
 
18609
    module_expsym_cmds_RC \
 
18610
    lt_cv_prog_compiler_c_o_RC \
 
18611
    exclude_expsyms_RC \
 
18612
    include_expsyms_RC; do
 
18613
 
 
18614
    case $var in
 
18615
    old_archive_cmds_RC | \
 
18616
    old_archive_from_new_cmds_RC | \
 
18617
    archive_cmds_RC | \
 
18618
    archive_expsym_cmds_RC | \
 
18619
    module_cmds_RC | \
 
18620
    module_expsym_cmds_RC | \
 
18621
    old_archive_from_expsyms_cmds_RC | \
 
18622
    export_symbols_cmds_RC | \
 
18623
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18624
    postinstall_cmds | postuninstall_cmds | \
 
18625
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18626
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18627
      # Double-quote double-evaled strings.
 
18628
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18629
      ;;
 
18630
    *)
 
18631
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18632
      ;;
 
18633
    esac
 
18634
  done
 
18635
 
 
18636
  case $lt_echo in
 
18637
  *'\$0 --fallback-echo"')
 
18638
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18639
    ;;
 
18640
  esac
 
18641
 
 
18642
cfgfile="$ofile"
 
18643
 
 
18644
  cat <<__EOF__ >> "$cfgfile"
 
18645
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18646
 
 
18647
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18648
 
 
18649
# Shell to use when invoking shell scripts.
 
18650
SHELL=$lt_SHELL
 
18651
 
 
18652
# Whether or not to build shared libraries.
 
18653
build_libtool_libs=$enable_shared
 
18654
 
 
18655
# Whether or not to build static libraries.
 
18656
build_old_libs=$enable_static
 
18657
 
 
18658
# Whether or not to add -lc for building shared libraries.
 
18659
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18660
 
 
18661
# Whether or not to disallow shared libs when runtime libs are static
 
18662
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18663
 
 
18664
# Whether or not to optimize for fast installation.
 
18665
fast_install=$enable_fast_install
 
18666
 
 
18667
# The host system.
 
18668
host_alias=$host_alias
 
18669
host=$host
 
18670
host_os=$host_os
 
18671
 
 
18672
# The build system.
 
18673
build_alias=$build_alias
 
18674
build=$build
 
18675
build_os=$build_os
 
18676
 
 
18677
# An echo program that does not interpret backslashes.
 
18678
echo=$lt_echo
 
18679
 
 
18680
# The archiver.
 
18681
AR=$lt_AR
 
18682
AR_FLAGS=$lt_AR_FLAGS
 
18683
 
 
18684
# A C compiler.
 
18685
LTCC=$lt_LTCC
 
18686
 
 
18687
# LTCC compiler flags.
 
18688
LTCFLAGS=$lt_LTCFLAGS
 
18689
 
 
18690
# A language-specific compiler.
 
18691
CC=$lt_compiler_RC
 
18692
 
 
18693
# Is the compiler the GNU C compiler?
 
18694
with_gcc=$GCC_RC
 
18695
 
 
18696
# An ERE matcher.
 
18697
EGREP=$lt_EGREP
 
18698
 
 
18699
# The linker used to build libraries.
 
18700
LD=$lt_LD_RC
 
18701
 
 
18702
# Whether we need hard or soft links.
 
18703
LN_S=$lt_LN_S
 
18704
 
 
18705
# A BSD-compatible nm program.
 
18706
NM=$lt_NM
 
18707
 
 
18708
# A symbol stripping program
 
18709
STRIP=$lt_STRIP
 
18710
 
 
18711
# Used to examine libraries when file_magic_cmd begins "file"
 
18712
MAGIC_CMD=$MAGIC_CMD
 
18713
 
 
18714
# Used on cygwin: DLL creation program.
 
18715
DLLTOOL="$DLLTOOL"
 
18716
 
 
18717
# Used on cygwin: object dumper.
 
18718
OBJDUMP="$OBJDUMP"
 
18719
 
 
18720
# Used on cygwin: assembler.
 
18721
AS="$AS"
 
18722
 
 
18723
# The name of the directory that contains temporary libtool files.
 
18724
objdir=$objdir
 
18725
 
 
18726
# How to create reloadable object files.
 
18727
reload_flag=$lt_reload_flag
 
18728
reload_cmds=$lt_reload_cmds
 
18729
 
 
18730
# How to pass a linker flag through the compiler.
 
18731
wl=$lt_lt_prog_compiler_wl_RC
 
18732
 
 
18733
# Object file suffix (normally "o").
 
18734
objext="$ac_objext"
 
18735
 
 
18736
# Old archive suffix (normally "a").
 
18737
libext="$libext"
 
18738
 
 
18739
# Shared library suffix (normally ".so").
 
18740
shrext_cmds='$shrext_cmds'
 
18741
 
 
18742
# Executable file suffix (normally "").
 
18743
exeext="$exeext"
 
18744
 
 
18745
# Additional compiler flags for building library objects.
 
18746
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18747
pic_mode=$pic_mode
 
18748
 
 
18749
# What is the maximum length of a command?
 
18750
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18751
 
 
18752
# Does compiler simultaneously support -c and -o options?
 
18753
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18754
 
 
18755
# Must we lock files when doing compilation?
 
18756
need_locks=$lt_need_locks
 
18757
 
 
18758
# Do we need the lib prefix for modules?
 
18759
need_lib_prefix=$need_lib_prefix
 
18760
 
 
18761
# Do we need a version for libraries?
 
18762
need_version=$need_version
 
18763
 
 
18764
# Whether dlopen is supported.
 
18765
dlopen_support=$enable_dlopen
 
18766
 
 
18767
# Whether dlopen of programs is supported.
 
18768
dlopen_self=$enable_dlopen_self
 
18769
 
 
18770
# Whether dlopen of statically linked programs is supported.
 
18771
dlopen_self_static=$enable_dlopen_self_static
 
18772
 
 
18773
# Compiler flag to prevent dynamic linking.
 
18774
link_static_flag=$lt_lt_prog_compiler_static_RC
 
18775
 
 
18776
# Compiler flag to turn off builtin functions.
 
18777
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
18778
 
 
18779
# Compiler flag to allow reflexive dlopens.
 
18780
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
18781
 
 
18782
# Compiler flag to generate shared objects directly from archives.
 
18783
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
18784
 
 
18785
# Compiler flag to generate thread-safe objects.
 
18786
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
18787
 
 
18788
# Library versioning type.
 
18789
version_type=$version_type
 
18790
 
 
18791
# Format of library name prefix.
 
18792
libname_spec=$lt_libname_spec
 
18793
 
 
18794
# List of archive names.  First name is the real one, the rest are links.
 
18795
# The last name is the one that the linker finds with -lNAME.
 
18796
library_names_spec=$lt_library_names_spec
 
18797
 
 
18798
# The coded name of the library, if different from the real name.
 
18799
soname_spec=$lt_soname_spec
 
18800
 
 
18801
# Commands used to build and install an old-style archive.
 
18802
RANLIB=$lt_RANLIB
 
18803
old_archive_cmds=$lt_old_archive_cmds_RC
 
18804
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18805
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18806
 
 
18807
# Create an old-style archive from a shared archive.
 
18808
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
18809
 
 
18810
# Create a temporary old-style archive to link instead of a shared archive.
 
18811
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
18812
 
 
18813
# Commands used to build and install a shared archive.
 
18814
archive_cmds=$lt_archive_cmds_RC
 
18815
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
18816
postinstall_cmds=$lt_postinstall_cmds
 
18817
postuninstall_cmds=$lt_postuninstall_cmds
 
18818
 
 
18819
# Commands used to build a loadable module (assumed same as above if empty)
 
18820
module_cmds=$lt_module_cmds_RC
 
18821
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
18822
 
 
18823
# Commands to strip libraries.
 
18824
old_striplib=$lt_old_striplib
 
18825
striplib=$lt_striplib
 
18826
 
 
18827
# Dependencies to place before the objects being linked to create a
 
18828
# shared library.
 
18829
predep_objects=$lt_predep_objects_RC
 
18830
 
 
18831
# Dependencies to place after the objects being linked to create a
 
18832
# shared library.
 
18833
postdep_objects=$lt_postdep_objects_RC
 
18834
 
 
18835
# Dependencies to place before the objects being linked to create a
 
18836
# shared library.
 
18837
predeps=$lt_predeps_RC
 
18838
 
 
18839
# Dependencies to place after the objects being linked to create a
 
18840
# shared library.
 
18841
postdeps=$lt_postdeps_RC
 
18842
 
 
18843
# The library search path used internally by the compiler when linking
 
18844
# a shared library.
 
18845
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
18846
 
 
18847
# Method to check whether dependent libraries are shared objects.
 
18848
deplibs_check_method=$lt_deplibs_check_method
 
18849
 
 
18850
# Command to use when deplibs_check_method == file_magic.
 
18851
file_magic_cmd=$lt_file_magic_cmd
 
18852
 
 
18853
# Flag that allows shared libraries with undefined symbols to be built.
 
18854
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
18855
 
 
18856
# Flag that forces no undefined symbols.
 
18857
no_undefined_flag=$lt_no_undefined_flag_RC
 
18858
 
 
18859
# Commands used to finish a libtool library installation in a directory.
 
18860
finish_cmds=$lt_finish_cmds
 
18861
 
 
18862
# Same as above, but a single script fragment to be evaled but not shown.
 
18863
finish_eval=$lt_finish_eval
 
18864
 
 
18865
# Take the output of nm and produce a listing of raw symbols and C names.
 
18866
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18867
 
 
18868
# Transform the output of nm in a proper C declaration
 
18869
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18870
 
 
18871
# Transform the output of nm in a C name address pair
 
18872
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18873
 
 
18874
# This is the shared library runtime path variable.
 
18875
runpath_var=$runpath_var
 
18876
 
 
18877
# This is the shared library path variable.
 
18878
shlibpath_var=$shlibpath_var
 
18879
 
 
18880
# Is shlibpath searched before the hard-coded library search path?
 
18881
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18882
 
 
18883
# How to hardcode a shared library path into an executable.
 
18884
hardcode_action=$hardcode_action_RC
 
18885
 
 
18886
# Whether we should hardcode library paths into libraries.
 
18887
hardcode_into_libs=$hardcode_into_libs
 
18888
 
 
18889
# Flag to hardcode \$libdir into a binary during linking.
 
18890
# This must work even if \$libdir does not exist.
 
18891
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
18892
 
 
18893
# If ld is used when linking, flag to hardcode \$libdir into
 
18894
# a binary during linking. This must work even if \$libdir does
 
18895
# not exist.
 
18896
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
18897
 
 
18898
# Whether we need a single -rpath flag with a separated argument.
 
18899
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
18900
 
 
18901
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18902
# resulting binary.
 
18903
hardcode_direct=$hardcode_direct_RC
 
18904
 
 
18905
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18906
# resulting binary.
 
18907
hardcode_minus_L=$hardcode_minus_L_RC
 
18908
 
 
18909
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18910
# the resulting binary.
 
18911
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
18912
 
 
18913
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18914
# and all subsequent libraries and executables linked against it.
 
18915
hardcode_automatic=$hardcode_automatic_RC
 
18916
 
 
18917
# Variables whose values should be saved in libtool wrapper scripts and
 
18918
# restored at relink time.
 
18919
variables_saved_for_relink="$variables_saved_for_relink"
 
18920
 
 
18921
# Whether libtool must link a program against all its dependency libraries.
 
18922
link_all_deplibs=$link_all_deplibs_RC
 
18923
 
 
18924
# Compile-time system search path for libraries
 
18925
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18926
 
 
18927
# Run-time system search path for libraries
 
18928
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18929
 
 
18930
# Fix the shell variable \$srcfile for the compiler.
 
18931
fix_srcfile_path="$fix_srcfile_path_RC"
 
18932
 
 
18933
# Set to yes if exported symbols are required.
 
18934
always_export_symbols=$always_export_symbols_RC
 
18935
 
 
18936
# The commands to list exported symbols.
 
18937
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
18938
 
 
18939
# The commands to extract the exported symbol list from a shared archive.
 
18940
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18941
 
 
18942
# Symbols that should not be listed in the preloaded symbols.
 
18943
exclude_expsyms=$lt_exclude_expsyms_RC
 
18944
 
 
18945
# Symbols that must always be exported.
 
18946
include_expsyms=$lt_include_expsyms_RC
 
18947
 
 
18948
# ### END LIBTOOL TAG CONFIG: $tagname
 
18949
 
 
18950
__EOF__
 
18951
 
 
18952
 
 
18953
else
 
18954
  # If there is no Makefile yet, we rely on a make rule to execute
 
18955
  # `config.status --recheck' to rerun these tests and create the
 
18956
  # libtool script then.
 
18957
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18958
  if test -f "$ltmain_in"; then
 
18959
    test -f Makefile && make "$ltmain"
 
18960
  fi
 
18961
fi
 
18962
 
 
18963
 
 
18964
ac_ext=c
 
18965
ac_cpp='$CPP $CPPFLAGS'
 
18966
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18967
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18968
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18969
 
 
18970
CC="$lt_save_CC"
 
18971
 
 
18972
        ;;
 
18973
 
 
18974
      *)
 
18975
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
18976
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
18977
   { (exit 1); exit 1; }; }
 
18978
        ;;
 
18979
      esac
 
18980
 
 
18981
      # Append the new tag name to the list of available tags.
 
18982
      if test -n "$tagname" ; then
 
18983
      available_tags="$available_tags $tagname"
 
18984
    fi
 
18985
    fi
 
18986
  done
 
18987
  IFS="$lt_save_ifs"
 
18988
 
 
18989
  # Now substitute the updated list of available tags.
 
18990
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
18991
    mv "${ofile}T" "$ofile"
 
18992
    chmod +x "$ofile"
 
18993
  else
 
18994
    rm -f "${ofile}T"
 
18995
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
18996
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
18997
   { (exit 1); exit 1; }; }
 
18998
  fi
 
18999
fi
 
19000
 
 
19001
 
 
19002
 
 
19003
# This can be used to rebuild libtool when needed
 
19004
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19005
 
 
19006
# Always use our own libtool.
 
19007
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19008
 
 
19009
# Prevent multiple expansion
 
19010
 
 
19011
 
 
19012
 
 
19013
 
 
19014
 
 
19015
 
 
19016
 
 
19017
 
 
19018
 
 
19019
 
 
19020
 
 
19021
 
 
19022
 
 
19023
 
 
19024
 
 
19025
 
 
19026
 
 
19027
 
 
19028
 
 
19029
 
 
19030
# Find a good install program.  We prefer a C program (faster),
 
19031
# so one script is as good as another.  But avoid the broken or
 
19032
# incompatible versions:
 
19033
# SysV /etc/install, /usr/sbin/install
 
19034
# SunOS /usr/etc/install
 
19035
# IRIX /sbin/install
 
19036
# AIX /bin/install
 
19037
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
19038
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
19039
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
19040
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
19041
# OS/2's system install, which has a completely different semantic
 
19042
# ./install, which can be erroneously created by make from ./install.sh.
 
19043
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
19044
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
19045
if test -z "$INSTALL"; then
 
19046
if test "${ac_cv_path_install+set}" = set; then
 
19047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19048
else
 
19049
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19050
for as_dir in $PATH
 
19051
do
 
19052
  IFS=$as_save_IFS
 
19053
  test -z "$as_dir" && as_dir=.
 
19054
  # Account for people who put trailing slashes in PATH elements.
 
19055
case $as_dir/ in
 
19056
  ./ | .// | /cC/* | \
 
19057
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
19058
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
19059
  /usr/ucb/* ) ;;
 
19060
  *)
 
19061
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
19062
    # Don't use installbsd from OSF since it installs stuff as root
 
19063
    # by default.
 
19064
    for ac_prog in ginstall scoinst install; do
 
19065
      for ac_exec_ext in '' $ac_executable_extensions; do
 
19066
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
19067
          if test $ac_prog = install &&
 
19068
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19069
            # AIX install.  It has an incompatible calling convention.
 
19070
            :
 
19071
          elif test $ac_prog = install &&
 
19072
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
19073
            # program-specific install script used by HP pwplus--don't use.
 
19074
            :
 
19075
          else
 
19076
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
19077
            break 3
 
19078
          fi
 
19079
        fi
 
19080
      done
 
19081
    done
 
19082
    ;;
 
19083
esac
 
19084
done
 
19085
IFS=$as_save_IFS
 
19086
 
 
19087
 
 
19088
fi
 
19089
  if test "${ac_cv_path_install+set}" = set; then
 
19090
    INSTALL=$ac_cv_path_install
 
19091
  else
 
19092
    # As a last resort, use the slow shell script.  Don't cache a
 
19093
    # value for INSTALL within a source directory, because that will
 
19094
    # break other packages using the cache if that directory is
 
19095
    # removed, or if the value is a relative name.
 
19096
    INSTALL=$ac_install_sh
 
19097
  fi
 
19098
fi
 
19099
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
19100
echo "${ECHO_T}$INSTALL" >&6; }
 
19101
 
 
19102
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
19103
# It thinks the first close brace ends the variable substitution.
 
19104
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
19105
 
 
19106
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
19107
 
 
19108
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
19109
 
 
19110
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
19111
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
19112
LN_S=$as_ln_s
 
19113
if test "$LN_S" = "ln -s"; then
 
19114
  { echo "$as_me:$LINENO: result: yes" >&5
 
19115
echo "${ECHO_T}yes" >&6; }
 
19116
else
 
19117
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
19118
echo "${ECHO_T}no, using $LN_S" >&6; }
 
19119
fi
 
19120
 
 
19121
# Extract the first word of "ar", so it can be a program name with args.
 
19122
set dummy ar; ac_word=$2
 
19123
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19124
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19125
if test "${ac_cv_path_AR+set}" = set; then
 
19126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19127
else
 
19128
  case $AR in
 
19129
  [\\/]* | ?:[\\/]*)
 
19130
  ac_cv_path_AR="$AR" # Let the user override the test with a path.
 
19131
  ;;
 
19132
  *)
 
19133
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19134
for as_dir in $PATH
 
19135
do
 
19136
  IFS=$as_save_IFS
 
19137
  test -z "$as_dir" && as_dir=.
 
19138
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19139
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19140
    ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
 
19141
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19142
    break 2
 
19143
  fi
 
19144
done
 
19145
done
 
19146
IFS=$as_save_IFS
 
19147
 
 
19148
  test -z "$ac_cv_path_AR" && ac_cv_path_AR="no"
 
19149
  ;;
 
19150
esac
 
19151
fi
 
19152
AR=$ac_cv_path_AR
 
19153
if test -n "$AR"; then
 
19154
  { echo "$as_me:$LINENO: result: $AR" >&5
 
19155
echo "${ECHO_T}$AR" >&6; }
 
19156
else
 
19157
  { echo "$as_me:$LINENO: result: no" >&5
 
19158
echo "${ECHO_T}no" >&6; }
 
19159
fi
 
19160
 
 
19161
 
 
19162
if [ $AR = "no" ] ; then
 
19163
    { { echo "$as_me:$LINENO: error: \"Could not find ar - needed to create a library\"" >&5
 
19164
echo "$as_me: error: \"Could not find ar - needed to create a library\"" >&2;}
 
19165
   { (exit 1); exit 1; }; }
 
19166
fi
 
19167
 
 
19168
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
19169
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
19170
if test "${ac_cv_c_bigendian+set}" = set; then
 
19171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19172
else
 
19173
  # See if sys/param.h defines the BYTE_ORDER macro.
 
19174
cat >conftest.$ac_ext <<_ACEOF
 
19175
/* confdefs.h.  */
 
19176
_ACEOF
 
19177
cat confdefs.h >>conftest.$ac_ext
 
19178
cat >>conftest.$ac_ext <<_ACEOF
 
19179
/* end confdefs.h.  */
 
19180
#include <sys/types.h>
 
19181
#include <sys/param.h>
 
19182
 
 
19183
int
 
19184
main ()
 
19185
{
 
19186
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
19187
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
19188
 bogus endian macros
 
19189
#endif
 
19190
 
 
19191
  ;
 
19192
  return 0;
 
19193
}
 
19194
_ACEOF
 
19195
rm -f conftest.$ac_objext
 
19196
if { (ac_try="$ac_compile"
 
19197
case "(($ac_try" in
 
19198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19199
  *) ac_try_echo=$ac_try;;
 
19200
esac
 
19201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19202
  (eval "$ac_compile") 2>conftest.er1
 
19203
  ac_status=$?
 
19204
  grep -v '^ *+' conftest.er1 >conftest.err
 
19205
  rm -f conftest.er1
 
19206
  cat conftest.err >&5
 
19207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19208
  (exit $ac_status); } && {
 
19209
         test -z "$ac_c_werror_flag" ||
 
19210
         test ! -s conftest.err
 
19211
       } && test -s conftest.$ac_objext; then
 
19212
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
19213
cat >conftest.$ac_ext <<_ACEOF
 
19214
/* confdefs.h.  */
 
19215
_ACEOF
 
19216
cat confdefs.h >>conftest.$ac_ext
 
19217
cat >>conftest.$ac_ext <<_ACEOF
 
19218
/* end confdefs.h.  */
 
19219
#include <sys/types.h>
 
19220
#include <sys/param.h>
 
19221
 
 
19222
int
 
19223
main ()
 
19224
{
 
19225
#if BYTE_ORDER != BIG_ENDIAN
 
19226
 not big endian
 
19227
#endif
 
19228
 
 
19229
  ;
 
19230
  return 0;
 
19231
}
 
19232
_ACEOF
 
19233
rm -f conftest.$ac_objext
 
19234
if { (ac_try="$ac_compile"
 
19235
case "(($ac_try" in
 
19236
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19237
  *) ac_try_echo=$ac_try;;
 
19238
esac
 
19239
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19240
  (eval "$ac_compile") 2>conftest.er1
 
19241
  ac_status=$?
 
19242
  grep -v '^ *+' conftest.er1 >conftest.err
 
19243
  rm -f conftest.er1
 
19244
  cat conftest.err >&5
 
19245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19246
  (exit $ac_status); } && {
 
19247
         test -z "$ac_c_werror_flag" ||
 
19248
         test ! -s conftest.err
 
19249
       } && test -s conftest.$ac_objext; then
 
19250
  ac_cv_c_bigendian=yes
 
19251
else
 
19252
  echo "$as_me: failed program was:" >&5
 
19253
sed 's/^/| /' conftest.$ac_ext >&5
 
19254
 
 
19255
        ac_cv_c_bigendian=no
 
19256
fi
 
19257
 
 
19258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19259
else
 
19260
  echo "$as_me: failed program was:" >&5
 
19261
sed 's/^/| /' conftest.$ac_ext >&5
 
19262
 
 
19263
        # It does not; compile a test program.
 
19264
if test "$cross_compiling" = yes; then
 
19265
  # try to guess the endianness by grepping values into an object file
 
19266
  ac_cv_c_bigendian=unknown
 
19267
  cat >conftest.$ac_ext <<_ACEOF
 
19268
/* confdefs.h.  */
 
19269
_ACEOF
 
19270
cat confdefs.h >>conftest.$ac_ext
 
19271
cat >>conftest.$ac_ext <<_ACEOF
 
19272
/* end confdefs.h.  */
 
19273
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
19274
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
19275
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
19276
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
19277
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
19278
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
19279
int
 
19280
main ()
 
19281
{
 
19282
 _ascii (); _ebcdic ();
 
19283
  ;
 
19284
  return 0;
 
19285
}
 
19286
_ACEOF
 
19287
rm -f conftest.$ac_objext
 
19288
if { (ac_try="$ac_compile"
 
19289
case "(($ac_try" in
 
19290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19291
  *) ac_try_echo=$ac_try;;
 
19292
esac
 
19293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19294
  (eval "$ac_compile") 2>conftest.er1
 
19295
  ac_status=$?
 
19296
  grep -v '^ *+' conftest.er1 >conftest.err
 
19297
  rm -f conftest.er1
 
19298
  cat conftest.err >&5
 
19299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19300
  (exit $ac_status); } && {
 
19301
         test -z "$ac_c_werror_flag" ||
 
19302
         test ! -s conftest.err
 
19303
       } && test -s conftest.$ac_objext; then
 
19304
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
19305
  ac_cv_c_bigendian=yes
 
19306
fi
 
19307
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
19308
  if test "$ac_cv_c_bigendian" = unknown; then
 
19309
    ac_cv_c_bigendian=no
 
19310
  else
 
19311
    # finding both strings is unlikely to happen, but who knows?
 
19312
    ac_cv_c_bigendian=unknown
 
19313
  fi
 
19314
fi
 
19315
else
 
19316
  echo "$as_me: failed program was:" >&5
 
19317
sed 's/^/| /' conftest.$ac_ext >&5
 
19318
 
 
19319
 
 
19320
fi
 
19321
 
 
19322
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19323
else
 
19324
  cat >conftest.$ac_ext <<_ACEOF
 
19325
/* confdefs.h.  */
 
19326
_ACEOF
 
19327
cat confdefs.h >>conftest.$ac_ext
 
19328
cat >>conftest.$ac_ext <<_ACEOF
 
19329
/* end confdefs.h.  */
 
19330
$ac_includes_default
 
19331
int
 
19332
main ()
 
19333
{
 
19334
 
 
19335
  /* Are we little or big endian?  From Harbison&Steele.  */
 
19336
  union
 
19337
  {
 
19338
    long int l;
 
19339
    char c[sizeof (long int)];
 
19340
  } u;
 
19341
  u.l = 1;
 
19342
  return u.c[sizeof (long int) - 1] == 1;
 
19343
 
 
19344
  ;
 
19345
  return 0;
 
19346
}
 
19347
_ACEOF
 
19348
rm -f conftest$ac_exeext
 
19349
if { (ac_try="$ac_link"
 
19350
case "(($ac_try" in
 
19351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19352
  *) ac_try_echo=$ac_try;;
 
19353
esac
 
19354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19355
  (eval "$ac_link") 2>&5
 
19356
  ac_status=$?
 
19357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19358
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
19359
  { (case "(($ac_try" in
 
19360
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19361
  *) ac_try_echo=$ac_try;;
 
19362
esac
 
19363
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19364
  (eval "$ac_try") 2>&5
 
19365
  ac_status=$?
 
19366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19367
  (exit $ac_status); }; }; then
 
19368
  ac_cv_c_bigendian=no
 
19369
else
 
19370
  echo "$as_me: program exited with status $ac_status" >&5
 
19371
echo "$as_me: failed program was:" >&5
 
19372
sed 's/^/| /' conftest.$ac_ext >&5
 
19373
 
 
19374
( exit $ac_status )
 
19375
ac_cv_c_bigendian=yes
 
19376
fi
 
19377
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
19378
fi
 
19379
 
 
19380
 
 
19381
fi
 
19382
 
 
19383
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19384
fi
 
19385
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
19386
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
19387
case $ac_cv_c_bigendian in
 
19388
  yes)
 
19389
 
 
19390
cat >>confdefs.h <<\_ACEOF
 
19391
#define WORDS_BIGENDIAN 1
 
19392
_ACEOF
 
19393
 ;;
 
19394
  no)
 
19395
     ;;
 
19396
  *)
 
19397
    { { echo "$as_me:$LINENO: error: unknown endianness
 
19398
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
19399
echo "$as_me: error: unknown endianness
 
19400
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
19401
   { (exit 1); exit 1; }; } ;;
 
19402
esac
 
19403
 
 
19404
 
 
19405
 
 
19406
{ echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
 
19407
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
 
19408
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
 
19409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19410
else
 
19411
  ac_check_lib_save_LIBS=$LIBS
 
19412
LIBS="-lasound  $LIBS"
 
19413
cat >conftest.$ac_ext <<_ACEOF
 
19414
/* confdefs.h.  */
 
19415
_ACEOF
 
19416
cat confdefs.h >>conftest.$ac_ext
 
19417
cat >>conftest.$ac_ext <<_ACEOF
 
19418
/* end confdefs.h.  */
 
19419
 
 
19420
/* Override any GCC internal prototype to avoid an error.
 
19421
   Use char because int might match the return type of a GCC
 
19422
   builtin and then its argument prototype would still apply.  */
 
19423
#ifdef __cplusplus
 
19424
extern "C"
 
19425
#endif
 
19426
char snd_pcm_open ();
 
19427
int
 
19428
main ()
 
19429
{
 
19430
return snd_pcm_open ();
 
19431
  ;
 
19432
  return 0;
 
19433
}
 
19434
_ACEOF
 
19435
rm -f conftest.$ac_objext conftest$ac_exeext
 
19436
if { (ac_try="$ac_link"
 
19437
case "(($ac_try" in
 
19438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19439
  *) ac_try_echo=$ac_try;;
 
19440
esac
 
19441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19442
  (eval "$ac_link") 2>conftest.er1
 
19443
  ac_status=$?
 
19444
  grep -v '^ *+' conftest.er1 >conftest.err
 
19445
  rm -f conftest.er1
 
19446
  cat conftest.err >&5
 
19447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19448
  (exit $ac_status); } && {
 
19449
         test -z "$ac_c_werror_flag" ||
 
19450
         test ! -s conftest.err
 
19451
       } && test -s conftest$ac_exeext &&
 
19452
       $as_test_x conftest$ac_exeext; then
 
19453
  ac_cv_lib_asound_snd_pcm_open=yes
 
19454
else
 
19455
  echo "$as_me: failed program was:" >&5
 
19456
sed 's/^/| /' conftest.$ac_ext >&5
 
19457
 
 
19458
        ac_cv_lib_asound_snd_pcm_open=no
 
19459
fi
 
19460
 
 
19461
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19462
      conftest$ac_exeext conftest.$ac_ext
 
19463
LIBS=$ac_check_lib_save_LIBS
 
19464
fi
 
19465
{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
 
19466
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
 
19467
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
 
19468
  have_alsa=yes
 
19469
else
 
19470
  have_alsa=no
 
19471
fi
 
19472
 
 
19473
{ echo "$as_me:$LINENO: checking for HPI_SubSysCreate in -lhpi" >&5
 
19474
echo $ECHO_N "checking for HPI_SubSysCreate in -lhpi... $ECHO_C" >&6; }
 
19475
if test "${ac_cv_lib_hpi_HPI_SubSysCreate+set}" = set; then
 
19476
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19477
else
 
19478
  ac_check_lib_save_LIBS=$LIBS
 
19479
LIBS="-lhpi -lm $LIBS"
 
19480
cat >conftest.$ac_ext <<_ACEOF
 
19481
/* confdefs.h.  */
 
19482
_ACEOF
 
19483
cat confdefs.h >>conftest.$ac_ext
 
19484
cat >>conftest.$ac_ext <<_ACEOF
 
19485
/* end confdefs.h.  */
 
19486
 
 
19487
/* Override any GCC internal prototype to avoid an error.
 
19488
   Use char because int might match the return type of a GCC
 
19489
   builtin and then its argument prototype would still apply.  */
 
19490
#ifdef __cplusplus
 
19491
extern "C"
 
19492
#endif
 
19493
char HPI_SubSysCreate ();
 
19494
int
 
19495
main ()
 
19496
{
 
19497
return HPI_SubSysCreate ();
 
19498
  ;
 
19499
  return 0;
 
19500
}
 
19501
_ACEOF
 
19502
rm -f conftest.$ac_objext conftest$ac_exeext
 
19503
if { (ac_try="$ac_link"
 
19504
case "(($ac_try" in
 
19505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19506
  *) ac_try_echo=$ac_try;;
 
19507
esac
 
19508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19509
  (eval "$ac_link") 2>conftest.er1
 
19510
  ac_status=$?
 
19511
  grep -v '^ *+' conftest.er1 >conftest.err
 
19512
  rm -f conftest.er1
 
19513
  cat conftest.err >&5
 
19514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19515
  (exit $ac_status); } && {
 
19516
         test -z "$ac_c_werror_flag" ||
 
19517
         test ! -s conftest.err
 
19518
       } && test -s conftest$ac_exeext &&
 
19519
       $as_test_x conftest$ac_exeext; then
 
19520
  ac_cv_lib_hpi_HPI_SubSysCreate=yes
 
19521
else
 
19522
  echo "$as_me: failed program was:" >&5
 
19523
sed 's/^/| /' conftest.$ac_ext >&5
 
19524
 
 
19525
        ac_cv_lib_hpi_HPI_SubSysCreate=no
 
19526
fi
 
19527
 
 
19528
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19529
      conftest$ac_exeext conftest.$ac_ext
 
19530
LIBS=$ac_check_lib_save_LIBS
 
19531
fi
 
19532
{ echo "$as_me:$LINENO: result: $ac_cv_lib_hpi_HPI_SubSysCreate" >&5
 
19533
echo "${ECHO_T}$ac_cv_lib_hpi_HPI_SubSysCreate" >&6; }
 
19534
if test $ac_cv_lib_hpi_HPI_SubSysCreate = yes; then
 
19535
  have_asihpi=yes
 
19536
else
 
19537
  have_asihpi=no
 
19538
fi
 
19539
 
 
19540
{ echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
 
19541
echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
 
19542
if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
 
19543
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19544
else
 
19545
  ac_check_lib_save_LIBS=$LIBS
 
19546
LIBS="-lossaudio  $LIBS"
 
19547
cat >conftest.$ac_ext <<_ACEOF
 
19548
/* confdefs.h.  */
 
19549
_ACEOF
 
19550
cat confdefs.h >>conftest.$ac_ext
 
19551
cat >>conftest.$ac_ext <<_ACEOF
 
19552
/* end confdefs.h.  */
 
19553
 
 
19554
/* Override any GCC internal prototype to avoid an error.
 
19555
   Use char because int might match the return type of a GCC
 
19556
   builtin and then its argument prototype would still apply.  */
 
19557
#ifdef __cplusplus
 
19558
extern "C"
 
19559
#endif
 
19560
char _oss_ioctl ();
 
19561
int
 
19562
main ()
 
19563
{
 
19564
return _oss_ioctl ();
 
19565
  ;
 
19566
  return 0;
 
19567
}
 
19568
_ACEOF
 
19569
rm -f conftest.$ac_objext conftest$ac_exeext
 
19570
if { (ac_try="$ac_link"
 
19571
case "(($ac_try" in
 
19572
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19573
  *) ac_try_echo=$ac_try;;
 
19574
esac
 
19575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19576
  (eval "$ac_link") 2>conftest.er1
 
19577
  ac_status=$?
 
19578
  grep -v '^ *+' conftest.er1 >conftest.err
 
19579
  rm -f conftest.er1
 
19580
  cat conftest.err >&5
 
19581
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19582
  (exit $ac_status); } && {
 
19583
         test -z "$ac_c_werror_flag" ||
 
19584
         test ! -s conftest.err
 
19585
       } && test -s conftest$ac_exeext &&
 
19586
       $as_test_x conftest$ac_exeext; then
 
19587
  ac_cv_lib_ossaudio__oss_ioctl=yes
 
19588
else
 
19589
  echo "$as_me: failed program was:" >&5
 
19590
sed 's/^/| /' conftest.$ac_ext >&5
 
19591
 
 
19592
        ac_cv_lib_ossaudio__oss_ioctl=no
 
19593
fi
 
19594
 
 
19595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19596
      conftest$ac_exeext conftest.$ac_ext
 
19597
LIBS=$ac_check_lib_save_LIBS
 
19598
fi
 
19599
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
 
19600
echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
 
19601
if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
 
19602
  have_libossaudio=yes
 
19603
else
 
19604
  have_libossaudio=no
 
19605
fi
 
19606
 
 
19607
 
 
19608
 
 
19609
 
 
19610
 
 
19611
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
19612
        if test -n "$ac_tool_prefix"; then
 
19613
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
19614
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
19615
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19616
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19617
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19619
else
 
19620
  case $PKG_CONFIG in
 
19621
  [\\/]* | ?:[\\/]*)
 
19622
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19623
  ;;
 
19624
  *)
 
19625
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19626
for as_dir in $PATH
 
19627
do
 
19628
  IFS=$as_save_IFS
 
19629
  test -z "$as_dir" && as_dir=.
 
19630
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19631
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19632
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19633
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19634
    break 2
 
19635
  fi
 
19636
done
 
19637
done
 
19638
IFS=$as_save_IFS
 
19639
 
 
19640
  ;;
 
19641
esac
 
19642
fi
 
19643
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19644
if test -n "$PKG_CONFIG"; then
 
19645
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19646
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
19647
else
 
19648
  { echo "$as_me:$LINENO: result: no" >&5
 
19649
echo "${ECHO_T}no" >&6; }
 
19650
fi
 
19651
 
 
19652
 
 
19653
fi
 
19654
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
19655
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
19656
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
19657
set dummy pkg-config; ac_word=$2
 
19658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19660
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
19661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19662
else
 
19663
  case $ac_pt_PKG_CONFIG in
 
19664
  [\\/]* | ?:[\\/]*)
 
19665
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
19666
  ;;
 
19667
  *)
 
19668
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19669
for as_dir in $PATH
 
19670
do
 
19671
  IFS=$as_save_IFS
 
19672
  test -z "$as_dir" && as_dir=.
 
19673
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19674
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19675
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19676
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19677
    break 2
 
19678
  fi
 
19679
done
 
19680
done
 
19681
IFS=$as_save_IFS
 
19682
 
 
19683
  ;;
 
19684
esac
 
19685
fi
 
19686
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
19687
if test -n "$ac_pt_PKG_CONFIG"; then
 
19688
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
19689
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
19690
else
 
19691
  { echo "$as_me:$LINENO: result: no" >&5
 
19692
echo "${ECHO_T}no" >&6; }
 
19693
fi
 
19694
 
 
19695
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
19696
    PKG_CONFIG=""
 
19697
  else
 
19698
    case $cross_compiling:$ac_tool_warned in
 
19699
yes:)
 
19700
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
19701
whose name does not start with the host triplet.  If you think this
 
19702
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
19703
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
19704
whose name does not start with the host triplet.  If you think this
 
19705
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
19706
ac_tool_warned=yes ;;
 
19707
esac
 
19708
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
19709
  fi
 
19710
else
 
19711
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
19712
fi
 
19713
 
 
19714
fi
 
19715
if test -n "$PKG_CONFIG"; then
 
19716
        _pkg_min_version=0.9.0
 
19717
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
19718
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
19719
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
19720
                { echo "$as_me:$LINENO: result: yes" >&5
 
19721
echo "${ECHO_T}yes" >&6; }
 
19722
        else
 
19723
                { echo "$as_me:$LINENO: result: no" >&5
 
19724
echo "${ECHO_T}no" >&6; }
 
19725
                PKG_CONFIG=""
 
19726
        fi
 
19727
 
 
19728
fi
 
19729
 
 
19730
pkg_failed=no
 
19731
{ echo "$as_me:$LINENO: checking for JACK" >&5
 
19732
echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
 
19733
 
 
19734
if test -n "$PKG_CONFIG"; then
 
19735
    if test -n "$JACK_CFLAGS"; then
 
19736
        pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
 
19737
    else
 
19738
        if test -n "$PKG_CONFIG" && \
 
19739
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
 
19740
  ($PKG_CONFIG --exists --print-errors "jack") 2>&5
 
19741
  ac_status=$?
 
19742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19743
  (exit $ac_status); }; then
 
19744
  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack" 2>/dev/null`
 
19745
else
 
19746
  pkg_failed=yes
 
19747
fi
 
19748
    fi
 
19749
else
 
19750
        pkg_failed=untried
 
19751
fi
 
19752
if test -n "$PKG_CONFIG"; then
 
19753
    if test -n "$JACK_LIBS"; then
 
19754
        pkg_cv_JACK_LIBS="$JACK_LIBS"
 
19755
    else
 
19756
        if test -n "$PKG_CONFIG" && \
 
19757
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack\"") >&5
 
19758
  ($PKG_CONFIG --exists --print-errors "jack") 2>&5
 
19759
  ac_status=$?
 
19760
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19761
  (exit $ac_status); }; then
 
19762
  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack" 2>/dev/null`
 
19763
else
 
19764
  pkg_failed=yes
 
19765
fi
 
19766
    fi
 
19767
else
 
19768
        pkg_failed=untried
 
19769
fi
 
19770
 
 
19771
 
 
19772
 
 
19773
if test $pkg_failed = yes; then
 
19774
 
 
19775
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
19776
        _pkg_short_errors_supported=yes
 
19777
else
 
19778
        _pkg_short_errors_supported=no
 
19779
fi
 
19780
        if test $_pkg_short_errors_supported = yes; then
 
19781
                JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack"`
 
19782
        else
 
19783
                JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack"`
 
19784
        fi
 
19785
        # Put the nasty error message in config.log where it belongs
 
19786
        echo "$JACK_PKG_ERRORS" >&5
 
19787
 
 
19788
        have_jack=no
 
19789
elif test $pkg_failed = untried; then
 
19790
        have_jack=no
 
19791
else
 
19792
        JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
 
19793
        JACK_LIBS=$pkg_cv_JACK_LIBS
 
19794
        { echo "$as_me:$LINENO: result: yes" >&5
 
19795
echo "${ECHO_T}yes" >&6; }
 
19796
        have_jack=yes
 
19797
fi
 
19798
 
 
19799
 
 
19800
 
 
19801
 
 
19802
for ac_header in sys/soundcard.h linux/soundcard.h machine/soundcard.h
 
19803
do
 
19804
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19805
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19806
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19807
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19808
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19810
fi
 
19811
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19812
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19813
echo "${ECHO_T}$ac_res" >&6; }
 
19814
else
 
19815
  # Is the header compilable?
 
19816
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19817
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
19818
cat >conftest.$ac_ext <<_ACEOF
 
19819
/* confdefs.h.  */
 
19820
_ACEOF
 
19821
cat confdefs.h >>conftest.$ac_ext
 
19822
cat >>conftest.$ac_ext <<_ACEOF
 
19823
/* end confdefs.h.  */
 
19824
$ac_includes_default
 
19825
#include <$ac_header>
 
19826
_ACEOF
 
19827
rm -f conftest.$ac_objext
 
19828
if { (ac_try="$ac_compile"
 
19829
case "(($ac_try" in
 
19830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19831
  *) ac_try_echo=$ac_try;;
 
19832
esac
 
19833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19834
  (eval "$ac_compile") 2>conftest.er1
 
19835
  ac_status=$?
 
19836
  grep -v '^ *+' conftest.er1 >conftest.err
 
19837
  rm -f conftest.er1
 
19838
  cat conftest.err >&5
 
19839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19840
  (exit $ac_status); } && {
 
19841
         test -z "$ac_c_werror_flag" ||
 
19842
         test ! -s conftest.err
 
19843
       } && test -s conftest.$ac_objext; then
 
19844
  ac_header_compiler=yes
 
19845
else
 
19846
  echo "$as_me: failed program was:" >&5
 
19847
sed 's/^/| /' conftest.$ac_ext >&5
 
19848
 
 
19849
        ac_header_compiler=no
 
19850
fi
 
19851
 
 
19852
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19853
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19854
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19855
 
 
19856
# Is the header present?
 
19857
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19858
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
19859
cat >conftest.$ac_ext <<_ACEOF
 
19860
/* confdefs.h.  */
 
19861
_ACEOF
 
19862
cat confdefs.h >>conftest.$ac_ext
 
19863
cat >>conftest.$ac_ext <<_ACEOF
 
19864
/* end confdefs.h.  */
 
19865
#include <$ac_header>
 
19866
_ACEOF
 
19867
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19868
case "(($ac_try" in
 
19869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19870
  *) ac_try_echo=$ac_try;;
 
19871
esac
 
19872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19873
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19874
  ac_status=$?
 
19875
  grep -v '^ *+' conftest.er1 >conftest.err
 
19876
  rm -f conftest.er1
 
19877
  cat conftest.err >&5
 
19878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19879
  (exit $ac_status); } >/dev/null && {
 
19880
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19881
         test ! -s conftest.err
 
19882
       }; then
 
19883
  ac_header_preproc=yes
 
19884
else
 
19885
  echo "$as_me: failed program was:" >&5
 
19886
sed 's/^/| /' conftest.$ac_ext >&5
 
19887
 
 
19888
  ac_header_preproc=no
 
19889
fi
 
19890
 
 
19891
rm -f conftest.err conftest.$ac_ext
 
19892
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19893
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19894
 
 
19895
# So?  What about this header?
 
19896
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19897
  yes:no: )
 
19898
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19899
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19900
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19901
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19902
    ac_header_preproc=yes
 
19903
    ;;
 
19904
  no:yes:* )
 
19905
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19906
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19907
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19908
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19909
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19910
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19911
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19912
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19913
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19914
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19915
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19916
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19917
 
 
19918
    ;;
 
19919
esac
 
19920
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19921
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19922
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19924
else
 
19925
  eval "$as_ac_Header=\$ac_header_preproc"
 
19926
fi
 
19927
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19928
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19929
echo "${ECHO_T}$ac_res" >&6; }
 
19930
 
 
19931
fi
 
19932
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19933
  cat >>confdefs.h <<_ACEOF
 
19934
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19935
_ACEOF
 
19936
 
 
19937
fi
 
19938
 
 
19939
done
 
19940
 
 
19941
 
 
19942
 
 
19943
{ echo "$as_me:$LINENO: checking for short" >&5
 
19944
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
 
19945
if test "${ac_cv_type_short+set}" = set; then
 
19946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19947
else
 
19948
  cat >conftest.$ac_ext <<_ACEOF
 
19949
/* confdefs.h.  */
 
19950
_ACEOF
 
19951
cat confdefs.h >>conftest.$ac_ext
 
19952
cat >>conftest.$ac_ext <<_ACEOF
 
19953
/* end confdefs.h.  */
 
19954
$ac_includes_default
 
19955
typedef short ac__type_new_;
 
19956
int
 
19957
main ()
 
19958
{
 
19959
if ((ac__type_new_ *) 0)
 
19960
  return 0;
 
19961
if (sizeof (ac__type_new_))
 
19962
  return 0;
 
19963
  ;
 
19964
  return 0;
 
19965
}
 
19966
_ACEOF
 
19967
rm -f conftest.$ac_objext
 
19968
if { (ac_try="$ac_compile"
 
19969
case "(($ac_try" in
 
19970
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19971
  *) ac_try_echo=$ac_try;;
 
19972
esac
 
19973
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19974
  (eval "$ac_compile") 2>conftest.er1
 
19975
  ac_status=$?
 
19976
  grep -v '^ *+' conftest.er1 >conftest.err
 
19977
  rm -f conftest.er1
 
19978
  cat conftest.err >&5
 
19979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19980
  (exit $ac_status); } && {
 
19981
         test -z "$ac_c_werror_flag" ||
 
19982
         test ! -s conftest.err
 
19983
       } && test -s conftest.$ac_objext; then
 
19984
  ac_cv_type_short=yes
 
19985
else
 
19986
  echo "$as_me: failed program was:" >&5
 
19987
sed 's/^/| /' conftest.$ac_ext >&5
 
19988
 
 
19989
        ac_cv_type_short=no
 
19990
fi
 
19991
 
 
19992
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19993
fi
 
19994
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
 
19995
echo "${ECHO_T}$ac_cv_type_short" >&6; }
 
19996
 
 
19997
# The cast to long int works around a bug in the HP C Compiler
 
19998
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
19999
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20000
# This bug is HP SR number 8606223364.
 
20001
{ echo "$as_me:$LINENO: checking size of short" >&5
 
20002
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
 
20003
if test "${ac_cv_sizeof_short+set}" = set; then
 
20004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20005
else
 
20006
  if test "$cross_compiling" = yes; then
 
20007
  # Depending upon the size, compute the lo and hi bounds.
 
20008
cat >conftest.$ac_ext <<_ACEOF
 
20009
/* confdefs.h.  */
 
20010
_ACEOF
 
20011
cat confdefs.h >>conftest.$ac_ext
 
20012
cat >>conftest.$ac_ext <<_ACEOF
 
20013
/* end confdefs.h.  */
 
20014
$ac_includes_default
 
20015
   typedef short ac__type_sizeof_;
 
20016
int
 
20017
main ()
 
20018
{
 
20019
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
20020
test_array [0] = 0
 
20021
 
 
20022
  ;
 
20023
  return 0;
 
20024
}
 
20025
_ACEOF
 
20026
rm -f conftest.$ac_objext
 
20027
if { (ac_try="$ac_compile"
 
20028
case "(($ac_try" in
 
20029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20030
  *) ac_try_echo=$ac_try;;
 
20031
esac
 
20032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20033
  (eval "$ac_compile") 2>conftest.er1
 
20034
  ac_status=$?
 
20035
  grep -v '^ *+' conftest.er1 >conftest.err
 
20036
  rm -f conftest.er1
 
20037
  cat conftest.err >&5
 
20038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20039
  (exit $ac_status); } && {
 
20040
         test -z "$ac_c_werror_flag" ||
 
20041
         test ! -s conftest.err
 
20042
       } && test -s conftest.$ac_objext; then
 
20043
  ac_lo=0 ac_mid=0
 
20044
  while :; do
 
20045
    cat >conftest.$ac_ext <<_ACEOF
 
20046
/* confdefs.h.  */
 
20047
_ACEOF
 
20048
cat confdefs.h >>conftest.$ac_ext
 
20049
cat >>conftest.$ac_ext <<_ACEOF
 
20050
/* end confdefs.h.  */
 
20051
$ac_includes_default
 
20052
   typedef short ac__type_sizeof_;
 
20053
int
 
20054
main ()
 
20055
{
 
20056
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20057
test_array [0] = 0
 
20058
 
 
20059
  ;
 
20060
  return 0;
 
20061
}
 
20062
_ACEOF
 
20063
rm -f conftest.$ac_objext
 
20064
if { (ac_try="$ac_compile"
 
20065
case "(($ac_try" in
 
20066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20067
  *) ac_try_echo=$ac_try;;
 
20068
esac
 
20069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20070
  (eval "$ac_compile") 2>conftest.er1
 
20071
  ac_status=$?
 
20072
  grep -v '^ *+' conftest.er1 >conftest.err
 
20073
  rm -f conftest.er1
 
20074
  cat conftest.err >&5
 
20075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20076
  (exit $ac_status); } && {
 
20077
         test -z "$ac_c_werror_flag" ||
 
20078
         test ! -s conftest.err
 
20079
       } && test -s conftest.$ac_objext; then
 
20080
  ac_hi=$ac_mid; break
 
20081
else
 
20082
  echo "$as_me: failed program was:" >&5
 
20083
sed 's/^/| /' conftest.$ac_ext >&5
 
20084
 
 
20085
        ac_lo=`expr $ac_mid + 1`
 
20086
                        if test $ac_lo -le $ac_mid; then
 
20087
                          ac_lo= ac_hi=
 
20088
                          break
 
20089
                        fi
 
20090
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20091
fi
 
20092
 
 
20093
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20094
  done
 
20095
else
 
20096
  echo "$as_me: failed program was:" >&5
 
20097
sed 's/^/| /' conftest.$ac_ext >&5
 
20098
 
 
20099
        cat >conftest.$ac_ext <<_ACEOF
 
20100
/* confdefs.h.  */
 
20101
_ACEOF
 
20102
cat confdefs.h >>conftest.$ac_ext
 
20103
cat >>conftest.$ac_ext <<_ACEOF
 
20104
/* end confdefs.h.  */
 
20105
$ac_includes_default
 
20106
   typedef short ac__type_sizeof_;
 
20107
int
 
20108
main ()
 
20109
{
 
20110
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
20111
test_array [0] = 0
 
20112
 
 
20113
  ;
 
20114
  return 0;
 
20115
}
 
20116
_ACEOF
 
20117
rm -f conftest.$ac_objext
 
20118
if { (ac_try="$ac_compile"
 
20119
case "(($ac_try" in
 
20120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20121
  *) ac_try_echo=$ac_try;;
 
20122
esac
 
20123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20124
  (eval "$ac_compile") 2>conftest.er1
 
20125
  ac_status=$?
 
20126
  grep -v '^ *+' conftest.er1 >conftest.err
 
20127
  rm -f conftest.er1
 
20128
  cat conftest.err >&5
 
20129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20130
  (exit $ac_status); } && {
 
20131
         test -z "$ac_c_werror_flag" ||
 
20132
         test ! -s conftest.err
 
20133
       } && test -s conftest.$ac_objext; then
 
20134
  ac_hi=-1 ac_mid=-1
 
20135
  while :; do
 
20136
    cat >conftest.$ac_ext <<_ACEOF
 
20137
/* confdefs.h.  */
 
20138
_ACEOF
 
20139
cat confdefs.h >>conftest.$ac_ext
 
20140
cat >>conftest.$ac_ext <<_ACEOF
 
20141
/* end confdefs.h.  */
 
20142
$ac_includes_default
 
20143
   typedef short ac__type_sizeof_;
 
20144
int
 
20145
main ()
 
20146
{
 
20147
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
20148
test_array [0] = 0
 
20149
 
 
20150
  ;
 
20151
  return 0;
 
20152
}
 
20153
_ACEOF
 
20154
rm -f conftest.$ac_objext
 
20155
if { (ac_try="$ac_compile"
 
20156
case "(($ac_try" in
 
20157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20158
  *) ac_try_echo=$ac_try;;
 
20159
esac
 
20160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20161
  (eval "$ac_compile") 2>conftest.er1
 
20162
  ac_status=$?
 
20163
  grep -v '^ *+' conftest.er1 >conftest.err
 
20164
  rm -f conftest.er1
 
20165
  cat conftest.err >&5
 
20166
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20167
  (exit $ac_status); } && {
 
20168
         test -z "$ac_c_werror_flag" ||
 
20169
         test ! -s conftest.err
 
20170
       } && test -s conftest.$ac_objext; then
 
20171
  ac_lo=$ac_mid; break
 
20172
else
 
20173
  echo "$as_me: failed program was:" >&5
 
20174
sed 's/^/| /' conftest.$ac_ext >&5
 
20175
 
 
20176
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20177
                        if test $ac_mid -le $ac_hi; then
 
20178
                          ac_lo= ac_hi=
 
20179
                          break
 
20180
                        fi
 
20181
                        ac_mid=`expr 2 '*' $ac_mid`
 
20182
fi
 
20183
 
 
20184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20185
  done
 
20186
else
 
20187
  echo "$as_me: failed program was:" >&5
 
20188
sed 's/^/| /' conftest.$ac_ext >&5
 
20189
 
 
20190
        ac_lo= ac_hi=
 
20191
fi
 
20192
 
 
20193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20194
fi
 
20195
 
 
20196
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20197
# Binary search between lo and hi bounds.
 
20198
while test "x$ac_lo" != "x$ac_hi"; do
 
20199
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
20200
  cat >conftest.$ac_ext <<_ACEOF
 
20201
/* confdefs.h.  */
 
20202
_ACEOF
 
20203
cat confdefs.h >>conftest.$ac_ext
 
20204
cat >>conftest.$ac_ext <<_ACEOF
 
20205
/* end confdefs.h.  */
 
20206
$ac_includes_default
 
20207
   typedef short ac__type_sizeof_;
 
20208
int
 
20209
main ()
 
20210
{
 
20211
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20212
test_array [0] = 0
 
20213
 
 
20214
  ;
 
20215
  return 0;
 
20216
}
 
20217
_ACEOF
 
20218
rm -f conftest.$ac_objext
 
20219
if { (ac_try="$ac_compile"
 
20220
case "(($ac_try" in
 
20221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20222
  *) ac_try_echo=$ac_try;;
 
20223
esac
 
20224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20225
  (eval "$ac_compile") 2>conftest.er1
 
20226
  ac_status=$?
 
20227
  grep -v '^ *+' conftest.er1 >conftest.err
 
20228
  rm -f conftest.er1
 
20229
  cat conftest.err >&5
 
20230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20231
  (exit $ac_status); } && {
 
20232
         test -z "$ac_c_werror_flag" ||
 
20233
         test ! -s conftest.err
 
20234
       } && test -s conftest.$ac_objext; then
 
20235
  ac_hi=$ac_mid
 
20236
else
 
20237
  echo "$as_me: failed program was:" >&5
 
20238
sed 's/^/| /' conftest.$ac_ext >&5
 
20239
 
 
20240
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
20241
fi
 
20242
 
 
20243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20244
done
 
20245
case $ac_lo in
 
20246
?*) ac_cv_sizeof_short=$ac_lo;;
 
20247
'') if test "$ac_cv_type_short" = yes; then
 
20248
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
20249
See \`config.log' for more details." >&5
 
20250
echo "$as_me: error: cannot compute sizeof (short)
 
20251
See \`config.log' for more details." >&2;}
 
20252
   { (exit 77); exit 77; }; }
 
20253
   else
 
20254
     ac_cv_sizeof_short=0
 
20255
   fi ;;
 
20256
esac
 
20257
else
 
20258
  cat >conftest.$ac_ext <<_ACEOF
 
20259
/* confdefs.h.  */
 
20260
_ACEOF
 
20261
cat confdefs.h >>conftest.$ac_ext
 
20262
cat >>conftest.$ac_ext <<_ACEOF
 
20263
/* end confdefs.h.  */
 
20264
$ac_includes_default
 
20265
   typedef short ac__type_sizeof_;
 
20266
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20267
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20268
#include <stdio.h>
 
20269
#include <stdlib.h>
 
20270
int
 
20271
main ()
 
20272
{
 
20273
 
 
20274
  FILE *f = fopen ("conftest.val", "w");
 
20275
  if (! f)
 
20276
    return 1;
 
20277
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
20278
    {
 
20279
      long int i = longval ();
 
20280
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20281
        return 1;
 
20282
      fprintf (f, "%ld\n", i);
 
20283
    }
 
20284
  else
 
20285
    {
 
20286
      unsigned long int i = ulongval ();
 
20287
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20288
        return 1;
 
20289
      fprintf (f, "%lu\n", i);
 
20290
    }
 
20291
  return ferror (f) || fclose (f) != 0;
 
20292
 
 
20293
  ;
 
20294
  return 0;
 
20295
}
 
20296
_ACEOF
 
20297
rm -f conftest$ac_exeext
 
20298
if { (ac_try="$ac_link"
 
20299
case "(($ac_try" in
 
20300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20301
  *) ac_try_echo=$ac_try;;
 
20302
esac
 
20303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20304
  (eval "$ac_link") 2>&5
 
20305
  ac_status=$?
 
20306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20307
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20308
  { (case "(($ac_try" in
 
20309
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20310
  *) ac_try_echo=$ac_try;;
 
20311
esac
 
20312
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20313
  (eval "$ac_try") 2>&5
 
20314
  ac_status=$?
 
20315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20316
  (exit $ac_status); }; }; then
 
20317
  ac_cv_sizeof_short=`cat conftest.val`
 
20318
else
 
20319
  echo "$as_me: program exited with status $ac_status" >&5
 
20320
echo "$as_me: failed program was:" >&5
 
20321
sed 's/^/| /' conftest.$ac_ext >&5
 
20322
 
 
20323
( exit $ac_status )
 
20324
if test "$ac_cv_type_short" = yes; then
 
20325
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
 
20326
See \`config.log' for more details." >&5
 
20327
echo "$as_me: error: cannot compute sizeof (short)
 
20328
See \`config.log' for more details." >&2;}
 
20329
   { (exit 77); exit 77; }; }
 
20330
   else
 
20331
     ac_cv_sizeof_short=0
 
20332
   fi
 
20333
fi
 
20334
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20335
fi
 
20336
rm -f conftest.val
 
20337
fi
 
20338
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
 
20339
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
 
20340
 
 
20341
 
 
20342
 
 
20343
cat >>confdefs.h <<_ACEOF
 
20344
#define SIZEOF_SHORT $ac_cv_sizeof_short
 
20345
_ACEOF
 
20346
 
 
20347
 
 
20348
{ echo "$as_me:$LINENO: checking for int" >&5
 
20349
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
 
20350
if test "${ac_cv_type_int+set}" = set; then
 
20351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20352
else
 
20353
  cat >conftest.$ac_ext <<_ACEOF
 
20354
/* confdefs.h.  */
 
20355
_ACEOF
 
20356
cat confdefs.h >>conftest.$ac_ext
 
20357
cat >>conftest.$ac_ext <<_ACEOF
 
20358
/* end confdefs.h.  */
 
20359
$ac_includes_default
 
20360
typedef int ac__type_new_;
 
20361
int
 
20362
main ()
 
20363
{
 
20364
if ((ac__type_new_ *) 0)
 
20365
  return 0;
 
20366
if (sizeof (ac__type_new_))
 
20367
  return 0;
 
20368
  ;
 
20369
  return 0;
 
20370
}
 
20371
_ACEOF
 
20372
rm -f conftest.$ac_objext
 
20373
if { (ac_try="$ac_compile"
 
20374
case "(($ac_try" in
 
20375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20376
  *) ac_try_echo=$ac_try;;
 
20377
esac
 
20378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20379
  (eval "$ac_compile") 2>conftest.er1
 
20380
  ac_status=$?
 
20381
  grep -v '^ *+' conftest.er1 >conftest.err
 
20382
  rm -f conftest.er1
 
20383
  cat conftest.err >&5
 
20384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20385
  (exit $ac_status); } && {
 
20386
         test -z "$ac_c_werror_flag" ||
 
20387
         test ! -s conftest.err
 
20388
       } && test -s conftest.$ac_objext; then
 
20389
  ac_cv_type_int=yes
 
20390
else
 
20391
  echo "$as_me: failed program was:" >&5
 
20392
sed 's/^/| /' conftest.$ac_ext >&5
 
20393
 
 
20394
        ac_cv_type_int=no
 
20395
fi
 
20396
 
 
20397
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20398
fi
 
20399
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
 
20400
echo "${ECHO_T}$ac_cv_type_int" >&6; }
 
20401
 
 
20402
# The cast to long int works around a bug in the HP C Compiler
 
20403
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
20404
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20405
# This bug is HP SR number 8606223364.
 
20406
{ echo "$as_me:$LINENO: checking size of int" >&5
 
20407
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
 
20408
if test "${ac_cv_sizeof_int+set}" = set; then
 
20409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20410
else
 
20411
  if test "$cross_compiling" = yes; then
 
20412
  # Depending upon the size, compute the lo and hi bounds.
 
20413
cat >conftest.$ac_ext <<_ACEOF
 
20414
/* confdefs.h.  */
 
20415
_ACEOF
 
20416
cat confdefs.h >>conftest.$ac_ext
 
20417
cat >>conftest.$ac_ext <<_ACEOF
 
20418
/* end confdefs.h.  */
 
20419
$ac_includes_default
 
20420
   typedef int ac__type_sizeof_;
 
20421
int
 
20422
main ()
 
20423
{
 
20424
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
20425
test_array [0] = 0
 
20426
 
 
20427
  ;
 
20428
  return 0;
 
20429
}
 
20430
_ACEOF
 
20431
rm -f conftest.$ac_objext
 
20432
if { (ac_try="$ac_compile"
 
20433
case "(($ac_try" in
 
20434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20435
  *) ac_try_echo=$ac_try;;
 
20436
esac
 
20437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20438
  (eval "$ac_compile") 2>conftest.er1
 
20439
  ac_status=$?
 
20440
  grep -v '^ *+' conftest.er1 >conftest.err
 
20441
  rm -f conftest.er1
 
20442
  cat conftest.err >&5
 
20443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20444
  (exit $ac_status); } && {
 
20445
         test -z "$ac_c_werror_flag" ||
 
20446
         test ! -s conftest.err
 
20447
       } && test -s conftest.$ac_objext; then
 
20448
  ac_lo=0 ac_mid=0
 
20449
  while :; do
 
20450
    cat >conftest.$ac_ext <<_ACEOF
 
20451
/* confdefs.h.  */
 
20452
_ACEOF
 
20453
cat confdefs.h >>conftest.$ac_ext
 
20454
cat >>conftest.$ac_ext <<_ACEOF
 
20455
/* end confdefs.h.  */
 
20456
$ac_includes_default
 
20457
   typedef int ac__type_sizeof_;
 
20458
int
 
20459
main ()
 
20460
{
 
20461
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20462
test_array [0] = 0
 
20463
 
 
20464
  ;
 
20465
  return 0;
 
20466
}
 
20467
_ACEOF
 
20468
rm -f conftest.$ac_objext
 
20469
if { (ac_try="$ac_compile"
 
20470
case "(($ac_try" in
 
20471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20472
  *) ac_try_echo=$ac_try;;
 
20473
esac
 
20474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20475
  (eval "$ac_compile") 2>conftest.er1
 
20476
  ac_status=$?
 
20477
  grep -v '^ *+' conftest.er1 >conftest.err
 
20478
  rm -f conftest.er1
 
20479
  cat conftest.err >&5
 
20480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20481
  (exit $ac_status); } && {
 
20482
         test -z "$ac_c_werror_flag" ||
 
20483
         test ! -s conftest.err
 
20484
       } && test -s conftest.$ac_objext; then
 
20485
  ac_hi=$ac_mid; break
 
20486
else
 
20487
  echo "$as_me: failed program was:" >&5
 
20488
sed 's/^/| /' conftest.$ac_ext >&5
 
20489
 
 
20490
        ac_lo=`expr $ac_mid + 1`
 
20491
                        if test $ac_lo -le $ac_mid; then
 
20492
                          ac_lo= ac_hi=
 
20493
                          break
 
20494
                        fi
 
20495
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20496
fi
 
20497
 
 
20498
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20499
  done
 
20500
else
 
20501
  echo "$as_me: failed program was:" >&5
 
20502
sed 's/^/| /' conftest.$ac_ext >&5
 
20503
 
 
20504
        cat >conftest.$ac_ext <<_ACEOF
 
20505
/* confdefs.h.  */
 
20506
_ACEOF
 
20507
cat confdefs.h >>conftest.$ac_ext
 
20508
cat >>conftest.$ac_ext <<_ACEOF
 
20509
/* end confdefs.h.  */
 
20510
$ac_includes_default
 
20511
   typedef int ac__type_sizeof_;
 
20512
int
 
20513
main ()
 
20514
{
 
20515
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
20516
test_array [0] = 0
 
20517
 
 
20518
  ;
 
20519
  return 0;
 
20520
}
 
20521
_ACEOF
 
20522
rm -f conftest.$ac_objext
 
20523
if { (ac_try="$ac_compile"
 
20524
case "(($ac_try" in
 
20525
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20526
  *) ac_try_echo=$ac_try;;
 
20527
esac
 
20528
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20529
  (eval "$ac_compile") 2>conftest.er1
 
20530
  ac_status=$?
 
20531
  grep -v '^ *+' conftest.er1 >conftest.err
 
20532
  rm -f conftest.er1
 
20533
  cat conftest.err >&5
 
20534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20535
  (exit $ac_status); } && {
 
20536
         test -z "$ac_c_werror_flag" ||
 
20537
         test ! -s conftest.err
 
20538
       } && test -s conftest.$ac_objext; then
 
20539
  ac_hi=-1 ac_mid=-1
 
20540
  while :; do
 
20541
    cat >conftest.$ac_ext <<_ACEOF
 
20542
/* confdefs.h.  */
 
20543
_ACEOF
 
20544
cat confdefs.h >>conftest.$ac_ext
 
20545
cat >>conftest.$ac_ext <<_ACEOF
 
20546
/* end confdefs.h.  */
 
20547
$ac_includes_default
 
20548
   typedef int ac__type_sizeof_;
 
20549
int
 
20550
main ()
 
20551
{
 
20552
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
20553
test_array [0] = 0
 
20554
 
 
20555
  ;
 
20556
  return 0;
 
20557
}
 
20558
_ACEOF
 
20559
rm -f conftest.$ac_objext
 
20560
if { (ac_try="$ac_compile"
 
20561
case "(($ac_try" in
 
20562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20563
  *) ac_try_echo=$ac_try;;
 
20564
esac
 
20565
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20566
  (eval "$ac_compile") 2>conftest.er1
 
20567
  ac_status=$?
 
20568
  grep -v '^ *+' conftest.er1 >conftest.err
 
20569
  rm -f conftest.er1
 
20570
  cat conftest.err >&5
 
20571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20572
  (exit $ac_status); } && {
 
20573
         test -z "$ac_c_werror_flag" ||
 
20574
         test ! -s conftest.err
 
20575
       } && test -s conftest.$ac_objext; then
 
20576
  ac_lo=$ac_mid; break
 
20577
else
 
20578
  echo "$as_me: failed program was:" >&5
 
20579
sed 's/^/| /' conftest.$ac_ext >&5
 
20580
 
 
20581
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20582
                        if test $ac_mid -le $ac_hi; then
 
20583
                          ac_lo= ac_hi=
 
20584
                          break
 
20585
                        fi
 
20586
                        ac_mid=`expr 2 '*' $ac_mid`
 
20587
fi
 
20588
 
 
20589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20590
  done
 
20591
else
 
20592
  echo "$as_me: failed program was:" >&5
 
20593
sed 's/^/| /' conftest.$ac_ext >&5
 
20594
 
 
20595
        ac_lo= ac_hi=
 
20596
fi
 
20597
 
 
20598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20599
fi
 
20600
 
 
20601
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20602
# Binary search between lo and hi bounds.
 
20603
while test "x$ac_lo" != "x$ac_hi"; do
 
20604
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
20605
  cat >conftest.$ac_ext <<_ACEOF
 
20606
/* confdefs.h.  */
 
20607
_ACEOF
 
20608
cat confdefs.h >>conftest.$ac_ext
 
20609
cat >>conftest.$ac_ext <<_ACEOF
 
20610
/* end confdefs.h.  */
 
20611
$ac_includes_default
 
20612
   typedef int ac__type_sizeof_;
 
20613
int
 
20614
main ()
 
20615
{
 
20616
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20617
test_array [0] = 0
 
20618
 
 
20619
  ;
 
20620
  return 0;
 
20621
}
 
20622
_ACEOF
 
20623
rm -f conftest.$ac_objext
 
20624
if { (ac_try="$ac_compile"
 
20625
case "(($ac_try" in
 
20626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20627
  *) ac_try_echo=$ac_try;;
 
20628
esac
 
20629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20630
  (eval "$ac_compile") 2>conftest.er1
 
20631
  ac_status=$?
 
20632
  grep -v '^ *+' conftest.er1 >conftest.err
 
20633
  rm -f conftest.er1
 
20634
  cat conftest.err >&5
 
20635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20636
  (exit $ac_status); } && {
 
20637
         test -z "$ac_c_werror_flag" ||
 
20638
         test ! -s conftest.err
 
20639
       } && test -s conftest.$ac_objext; then
 
20640
  ac_hi=$ac_mid
 
20641
else
 
20642
  echo "$as_me: failed program was:" >&5
 
20643
sed 's/^/| /' conftest.$ac_ext >&5
 
20644
 
 
20645
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
20646
fi
 
20647
 
 
20648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20649
done
 
20650
case $ac_lo in
 
20651
?*) ac_cv_sizeof_int=$ac_lo;;
 
20652
'') if test "$ac_cv_type_int" = yes; then
 
20653
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
20654
See \`config.log' for more details." >&5
 
20655
echo "$as_me: error: cannot compute sizeof (int)
 
20656
See \`config.log' for more details." >&2;}
 
20657
   { (exit 77); exit 77; }; }
 
20658
   else
 
20659
     ac_cv_sizeof_int=0
 
20660
   fi ;;
 
20661
esac
 
20662
else
 
20663
  cat >conftest.$ac_ext <<_ACEOF
 
20664
/* confdefs.h.  */
 
20665
_ACEOF
 
20666
cat confdefs.h >>conftest.$ac_ext
 
20667
cat >>conftest.$ac_ext <<_ACEOF
 
20668
/* end confdefs.h.  */
 
20669
$ac_includes_default
 
20670
   typedef int ac__type_sizeof_;
 
20671
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20672
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
20673
#include <stdio.h>
 
20674
#include <stdlib.h>
 
20675
int
 
20676
main ()
 
20677
{
 
20678
 
 
20679
  FILE *f = fopen ("conftest.val", "w");
 
20680
  if (! f)
 
20681
    return 1;
 
20682
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
20683
    {
 
20684
      long int i = longval ();
 
20685
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20686
        return 1;
 
20687
      fprintf (f, "%ld\n", i);
 
20688
    }
 
20689
  else
 
20690
    {
 
20691
      unsigned long int i = ulongval ();
 
20692
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
20693
        return 1;
 
20694
      fprintf (f, "%lu\n", i);
 
20695
    }
 
20696
  return ferror (f) || fclose (f) != 0;
 
20697
 
 
20698
  ;
 
20699
  return 0;
 
20700
}
 
20701
_ACEOF
 
20702
rm -f conftest$ac_exeext
 
20703
if { (ac_try="$ac_link"
 
20704
case "(($ac_try" in
 
20705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20706
  *) ac_try_echo=$ac_try;;
 
20707
esac
 
20708
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20709
  (eval "$ac_link") 2>&5
 
20710
  ac_status=$?
 
20711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20712
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20713
  { (case "(($ac_try" in
 
20714
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20715
  *) ac_try_echo=$ac_try;;
 
20716
esac
 
20717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20718
  (eval "$ac_try") 2>&5
 
20719
  ac_status=$?
 
20720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20721
  (exit $ac_status); }; }; then
 
20722
  ac_cv_sizeof_int=`cat conftest.val`
 
20723
else
 
20724
  echo "$as_me: program exited with status $ac_status" >&5
 
20725
echo "$as_me: failed program was:" >&5
 
20726
sed 's/^/| /' conftest.$ac_ext >&5
 
20727
 
 
20728
( exit $ac_status )
 
20729
if test "$ac_cv_type_int" = yes; then
 
20730
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
 
20731
See \`config.log' for more details." >&5
 
20732
echo "$as_me: error: cannot compute sizeof (int)
 
20733
See \`config.log' for more details." >&2;}
 
20734
   { (exit 77); exit 77; }; }
 
20735
   else
 
20736
     ac_cv_sizeof_int=0
 
20737
   fi
 
20738
fi
 
20739
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20740
fi
 
20741
rm -f conftest.val
 
20742
fi
 
20743
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
 
20744
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
 
20745
 
 
20746
 
 
20747
 
 
20748
cat >>confdefs.h <<_ACEOF
 
20749
#define SIZEOF_INT $ac_cv_sizeof_int
 
20750
_ACEOF
 
20751
 
 
20752
 
 
20753
{ echo "$as_me:$LINENO: checking for long" >&5
 
20754
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
 
20755
if test "${ac_cv_type_long+set}" = set; then
 
20756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20757
else
 
20758
  cat >conftest.$ac_ext <<_ACEOF
 
20759
/* confdefs.h.  */
 
20760
_ACEOF
 
20761
cat confdefs.h >>conftest.$ac_ext
 
20762
cat >>conftest.$ac_ext <<_ACEOF
 
20763
/* end confdefs.h.  */
 
20764
$ac_includes_default
 
20765
typedef long ac__type_new_;
 
20766
int
 
20767
main ()
 
20768
{
 
20769
if ((ac__type_new_ *) 0)
 
20770
  return 0;
 
20771
if (sizeof (ac__type_new_))
 
20772
  return 0;
 
20773
  ;
 
20774
  return 0;
 
20775
}
 
20776
_ACEOF
 
20777
rm -f conftest.$ac_objext
 
20778
if { (ac_try="$ac_compile"
 
20779
case "(($ac_try" in
 
20780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20781
  *) ac_try_echo=$ac_try;;
 
20782
esac
 
20783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20784
  (eval "$ac_compile") 2>conftest.er1
 
20785
  ac_status=$?
 
20786
  grep -v '^ *+' conftest.er1 >conftest.err
 
20787
  rm -f conftest.er1
 
20788
  cat conftest.err >&5
 
20789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20790
  (exit $ac_status); } && {
 
20791
         test -z "$ac_c_werror_flag" ||
 
20792
         test ! -s conftest.err
 
20793
       } && test -s conftest.$ac_objext; then
 
20794
  ac_cv_type_long=yes
 
20795
else
 
20796
  echo "$as_me: failed program was:" >&5
 
20797
sed 's/^/| /' conftest.$ac_ext >&5
 
20798
 
 
20799
        ac_cv_type_long=no
 
20800
fi
 
20801
 
 
20802
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20803
fi
 
20804
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
 
20805
echo "${ECHO_T}$ac_cv_type_long" >&6; }
 
20806
 
 
20807
# The cast to long int works around a bug in the HP C Compiler
 
20808
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
 
20809
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
 
20810
# This bug is HP SR number 8606223364.
 
20811
{ echo "$as_me:$LINENO: checking size of long" >&5
 
20812
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
 
20813
if test "${ac_cv_sizeof_long+set}" = set; then
 
20814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20815
else
 
20816
  if test "$cross_compiling" = yes; then
 
20817
  # Depending upon the size, compute the lo and hi bounds.
 
20818
cat >conftest.$ac_ext <<_ACEOF
 
20819
/* confdefs.h.  */
 
20820
_ACEOF
 
20821
cat confdefs.h >>conftest.$ac_ext
 
20822
cat >>conftest.$ac_ext <<_ACEOF
 
20823
/* end confdefs.h.  */
 
20824
$ac_includes_default
 
20825
   typedef long ac__type_sizeof_;
 
20826
int
 
20827
main ()
 
20828
{
 
20829
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
 
20830
test_array [0] = 0
 
20831
 
 
20832
  ;
 
20833
  return 0;
 
20834
}
 
20835
_ACEOF
 
20836
rm -f conftest.$ac_objext
 
20837
if { (ac_try="$ac_compile"
 
20838
case "(($ac_try" in
 
20839
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20840
  *) ac_try_echo=$ac_try;;
 
20841
esac
 
20842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20843
  (eval "$ac_compile") 2>conftest.er1
 
20844
  ac_status=$?
 
20845
  grep -v '^ *+' conftest.er1 >conftest.err
 
20846
  rm -f conftest.er1
 
20847
  cat conftest.err >&5
 
20848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20849
  (exit $ac_status); } && {
 
20850
         test -z "$ac_c_werror_flag" ||
 
20851
         test ! -s conftest.err
 
20852
       } && test -s conftest.$ac_objext; then
 
20853
  ac_lo=0 ac_mid=0
 
20854
  while :; do
 
20855
    cat >conftest.$ac_ext <<_ACEOF
 
20856
/* confdefs.h.  */
 
20857
_ACEOF
 
20858
cat confdefs.h >>conftest.$ac_ext
 
20859
cat >>conftest.$ac_ext <<_ACEOF
 
20860
/* end confdefs.h.  */
 
20861
$ac_includes_default
 
20862
   typedef long ac__type_sizeof_;
 
20863
int
 
20864
main ()
 
20865
{
 
20866
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
20867
test_array [0] = 0
 
20868
 
 
20869
  ;
 
20870
  return 0;
 
20871
}
 
20872
_ACEOF
 
20873
rm -f conftest.$ac_objext
 
20874
if { (ac_try="$ac_compile"
 
20875
case "(($ac_try" in
 
20876
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20877
  *) ac_try_echo=$ac_try;;
 
20878
esac
 
20879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20880
  (eval "$ac_compile") 2>conftest.er1
 
20881
  ac_status=$?
 
20882
  grep -v '^ *+' conftest.er1 >conftest.err
 
20883
  rm -f conftest.er1
 
20884
  cat conftest.err >&5
 
20885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20886
  (exit $ac_status); } && {
 
20887
         test -z "$ac_c_werror_flag" ||
 
20888
         test ! -s conftest.err
 
20889
       } && test -s conftest.$ac_objext; then
 
20890
  ac_hi=$ac_mid; break
 
20891
else
 
20892
  echo "$as_me: failed program was:" >&5
 
20893
sed 's/^/| /' conftest.$ac_ext >&5
 
20894
 
 
20895
        ac_lo=`expr $ac_mid + 1`
 
20896
                        if test $ac_lo -le $ac_mid; then
 
20897
                          ac_lo= ac_hi=
 
20898
                          break
 
20899
                        fi
 
20900
                        ac_mid=`expr 2 '*' $ac_mid + 1`
 
20901
fi
 
20902
 
 
20903
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20904
  done
 
20905
else
 
20906
  echo "$as_me: failed program was:" >&5
 
20907
sed 's/^/| /' conftest.$ac_ext >&5
 
20908
 
 
20909
        cat >conftest.$ac_ext <<_ACEOF
 
20910
/* confdefs.h.  */
 
20911
_ACEOF
 
20912
cat confdefs.h >>conftest.$ac_ext
 
20913
cat >>conftest.$ac_ext <<_ACEOF
 
20914
/* end confdefs.h.  */
 
20915
$ac_includes_default
 
20916
   typedef long ac__type_sizeof_;
 
20917
int
 
20918
main ()
 
20919
{
 
20920
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
 
20921
test_array [0] = 0
 
20922
 
 
20923
  ;
 
20924
  return 0;
 
20925
}
 
20926
_ACEOF
 
20927
rm -f conftest.$ac_objext
 
20928
if { (ac_try="$ac_compile"
 
20929
case "(($ac_try" in
 
20930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20931
  *) ac_try_echo=$ac_try;;
 
20932
esac
 
20933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20934
  (eval "$ac_compile") 2>conftest.er1
 
20935
  ac_status=$?
 
20936
  grep -v '^ *+' conftest.er1 >conftest.err
 
20937
  rm -f conftest.er1
 
20938
  cat conftest.err >&5
 
20939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20940
  (exit $ac_status); } && {
 
20941
         test -z "$ac_c_werror_flag" ||
 
20942
         test ! -s conftest.err
 
20943
       } && test -s conftest.$ac_objext; then
 
20944
  ac_hi=-1 ac_mid=-1
 
20945
  while :; do
 
20946
    cat >conftest.$ac_ext <<_ACEOF
 
20947
/* confdefs.h.  */
 
20948
_ACEOF
 
20949
cat confdefs.h >>conftest.$ac_ext
 
20950
cat >>conftest.$ac_ext <<_ACEOF
 
20951
/* end confdefs.h.  */
 
20952
$ac_includes_default
 
20953
   typedef long ac__type_sizeof_;
 
20954
int
 
20955
main ()
 
20956
{
 
20957
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
 
20958
test_array [0] = 0
 
20959
 
 
20960
  ;
 
20961
  return 0;
 
20962
}
 
20963
_ACEOF
 
20964
rm -f conftest.$ac_objext
 
20965
if { (ac_try="$ac_compile"
 
20966
case "(($ac_try" in
 
20967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20968
  *) ac_try_echo=$ac_try;;
 
20969
esac
 
20970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20971
  (eval "$ac_compile") 2>conftest.er1
 
20972
  ac_status=$?
 
20973
  grep -v '^ *+' conftest.er1 >conftest.err
 
20974
  rm -f conftest.er1
 
20975
  cat conftest.err >&5
 
20976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20977
  (exit $ac_status); } && {
 
20978
         test -z "$ac_c_werror_flag" ||
 
20979
         test ! -s conftest.err
 
20980
       } && test -s conftest.$ac_objext; then
 
20981
  ac_lo=$ac_mid; break
 
20982
else
 
20983
  echo "$as_me: failed program was:" >&5
 
20984
sed 's/^/| /' conftest.$ac_ext >&5
 
20985
 
 
20986
        ac_hi=`expr '(' $ac_mid ')' - 1`
 
20987
                        if test $ac_mid -le $ac_hi; then
 
20988
                          ac_lo= ac_hi=
 
20989
                          break
 
20990
                        fi
 
20991
                        ac_mid=`expr 2 '*' $ac_mid`
 
20992
fi
 
20993
 
 
20994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20995
  done
 
20996
else
 
20997
  echo "$as_me: failed program was:" >&5
 
20998
sed 's/^/| /' conftest.$ac_ext >&5
 
20999
 
 
21000
        ac_lo= ac_hi=
 
21001
fi
 
21002
 
 
21003
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21004
fi
 
21005
 
 
21006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21007
# Binary search between lo and hi bounds.
 
21008
while test "x$ac_lo" != "x$ac_hi"; do
 
21009
  ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
 
21010
  cat >conftest.$ac_ext <<_ACEOF
 
21011
/* confdefs.h.  */
 
21012
_ACEOF
 
21013
cat confdefs.h >>conftest.$ac_ext
 
21014
cat >>conftest.$ac_ext <<_ACEOF
 
21015
/* end confdefs.h.  */
 
21016
$ac_includes_default
 
21017
   typedef long ac__type_sizeof_;
 
21018
int
 
21019
main ()
 
21020
{
 
21021
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
 
21022
test_array [0] = 0
 
21023
 
 
21024
  ;
 
21025
  return 0;
 
21026
}
 
21027
_ACEOF
 
21028
rm -f conftest.$ac_objext
 
21029
if { (ac_try="$ac_compile"
 
21030
case "(($ac_try" in
 
21031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21032
  *) ac_try_echo=$ac_try;;
 
21033
esac
 
21034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21035
  (eval "$ac_compile") 2>conftest.er1
 
21036
  ac_status=$?
 
21037
  grep -v '^ *+' conftest.er1 >conftest.err
 
21038
  rm -f conftest.er1
 
21039
  cat conftest.err >&5
 
21040
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21041
  (exit $ac_status); } && {
 
21042
         test -z "$ac_c_werror_flag" ||
 
21043
         test ! -s conftest.err
 
21044
       } && test -s conftest.$ac_objext; then
 
21045
  ac_hi=$ac_mid
 
21046
else
 
21047
  echo "$as_me: failed program was:" >&5
 
21048
sed 's/^/| /' conftest.$ac_ext >&5
 
21049
 
 
21050
        ac_lo=`expr '(' $ac_mid ')' + 1`
 
21051
fi
 
21052
 
 
21053
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21054
done
 
21055
case $ac_lo in
 
21056
?*) ac_cv_sizeof_long=$ac_lo;;
 
21057
'') if test "$ac_cv_type_long" = yes; then
 
21058
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
21059
See \`config.log' for more details." >&5
 
21060
echo "$as_me: error: cannot compute sizeof (long)
 
21061
See \`config.log' for more details." >&2;}
 
21062
   { (exit 77); exit 77; }; }
 
21063
   else
 
21064
     ac_cv_sizeof_long=0
 
21065
   fi ;;
 
21066
esac
 
21067
else
 
21068
  cat >conftest.$ac_ext <<_ACEOF
 
21069
/* confdefs.h.  */
 
21070
_ACEOF
 
21071
cat confdefs.h >>conftest.$ac_ext
 
21072
cat >>conftest.$ac_ext <<_ACEOF
 
21073
/* end confdefs.h.  */
 
21074
$ac_includes_default
 
21075
   typedef long ac__type_sizeof_;
 
21076
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21077
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
 
21078
#include <stdio.h>
 
21079
#include <stdlib.h>
 
21080
int
 
21081
main ()
 
21082
{
 
21083
 
 
21084
  FILE *f = fopen ("conftest.val", "w");
 
21085
  if (! f)
 
21086
    return 1;
 
21087
  if (((long int) (sizeof (ac__type_sizeof_))) < 0)
 
21088
    {
 
21089
      long int i = longval ();
 
21090
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21091
        return 1;
 
21092
      fprintf (f, "%ld\n", i);
 
21093
    }
 
21094
  else
 
21095
    {
 
21096
      unsigned long int i = ulongval ();
 
21097
      if (i != ((long int) (sizeof (ac__type_sizeof_))))
 
21098
        return 1;
 
21099
      fprintf (f, "%lu\n", i);
 
21100
    }
 
21101
  return ferror (f) || fclose (f) != 0;
 
21102
 
 
21103
  ;
 
21104
  return 0;
 
21105
}
 
21106
_ACEOF
 
21107
rm -f conftest$ac_exeext
 
21108
if { (ac_try="$ac_link"
 
21109
case "(($ac_try" in
 
21110
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21111
  *) ac_try_echo=$ac_try;;
 
21112
esac
 
21113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21114
  (eval "$ac_link") 2>&5
 
21115
  ac_status=$?
 
21116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21118
  { (case "(($ac_try" in
 
21119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21120
  *) ac_try_echo=$ac_try;;
 
21121
esac
 
21122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21123
  (eval "$ac_try") 2>&5
 
21124
  ac_status=$?
 
21125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21126
  (exit $ac_status); }; }; then
 
21127
  ac_cv_sizeof_long=`cat conftest.val`
 
21128
else
 
21129
  echo "$as_me: program exited with status $ac_status" >&5
 
21130
echo "$as_me: failed program was:" >&5
 
21131
sed 's/^/| /' conftest.$ac_ext >&5
 
21132
 
 
21133
( exit $ac_status )
 
21134
if test "$ac_cv_type_long" = yes; then
 
21135
     { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
 
21136
See \`config.log' for more details." >&5
 
21137
echo "$as_me: error: cannot compute sizeof (long)
 
21138
See \`config.log' for more details." >&2;}
 
21139
   { (exit 77); exit 77; }; }
 
21140
   else
 
21141
     ac_cv_sizeof_long=0
 
21142
   fi
 
21143
fi
 
21144
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21145
fi
 
21146
rm -f conftest.val
 
21147
fi
 
21148
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
 
21149
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
 
21150
 
 
21151
 
 
21152
 
 
21153
cat >>confdefs.h <<_ACEOF
 
21154
#define SIZEOF_LONG $ac_cv_sizeof_long
 
21155
_ACEOF
 
21156
 
 
21157
 
 
21158
 
 
21159
save_LIBS="${LIBS}"
 
21160
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
 
21161
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
 
21162
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
 
21163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21164
else
 
21165
  ac_check_lib_save_LIBS=$LIBS
 
21166
LIBS="-lrt  $LIBS"
 
21167
cat >conftest.$ac_ext <<_ACEOF
 
21168
/* confdefs.h.  */
 
21169
_ACEOF
 
21170
cat confdefs.h >>conftest.$ac_ext
 
21171
cat >>conftest.$ac_ext <<_ACEOF
 
21172
/* end confdefs.h.  */
 
21173
 
 
21174
/* Override any GCC internal prototype to avoid an error.
 
21175
   Use char because int might match the return type of a GCC
 
21176
   builtin and then its argument prototype would still apply.  */
 
21177
#ifdef __cplusplus
 
21178
extern "C"
 
21179
#endif
 
21180
char clock_gettime ();
 
21181
int
 
21182
main ()
 
21183
{
 
21184
return clock_gettime ();
 
21185
  ;
 
21186
  return 0;
 
21187
}
 
21188
_ACEOF
 
21189
rm -f conftest.$ac_objext conftest$ac_exeext
 
21190
if { (ac_try="$ac_link"
 
21191
case "(($ac_try" in
 
21192
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21193
  *) ac_try_echo=$ac_try;;
 
21194
esac
 
21195
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21196
  (eval "$ac_link") 2>conftest.er1
 
21197
  ac_status=$?
 
21198
  grep -v '^ *+' conftest.er1 >conftest.err
 
21199
  rm -f conftest.er1
 
21200
  cat conftest.err >&5
 
21201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21202
  (exit $ac_status); } && {
 
21203
         test -z "$ac_c_werror_flag" ||
 
21204
         test ! -s conftest.err
 
21205
       } && test -s conftest$ac_exeext &&
 
21206
       $as_test_x conftest$ac_exeext; then
 
21207
  ac_cv_lib_rt_clock_gettime=yes
 
21208
else
 
21209
  echo "$as_me: failed program was:" >&5
 
21210
sed 's/^/| /' conftest.$ac_ext >&5
 
21211
 
 
21212
        ac_cv_lib_rt_clock_gettime=no
 
21213
fi
 
21214
 
 
21215
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21216
      conftest$ac_exeext conftest.$ac_ext
 
21217
LIBS=$ac_check_lib_save_LIBS
 
21218
fi
 
21219
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
 
21220
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
 
21221
if test $ac_cv_lib_rt_clock_gettime = yes; then
 
21222
  rt_libs=" -lrt"
 
21223
fi
 
21224
 
 
21225
LIBS="${LIBS}${rt_libs}"
 
21226
DLL_LIBS="${DLL_LIBS}${rt_libs}"
 
21227
 
 
21228
 
 
21229
for ac_func in clock_gettime nanosleep
 
21230
do
 
21231
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21232
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21233
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
21234
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21235
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21236
else
 
21237
  cat >conftest.$ac_ext <<_ACEOF
 
21238
/* confdefs.h.  */
 
21239
_ACEOF
 
21240
cat confdefs.h >>conftest.$ac_ext
 
21241
cat >>conftest.$ac_ext <<_ACEOF
 
21242
/* end confdefs.h.  */
 
21243
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21244
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21245
#define $ac_func innocuous_$ac_func
 
21246
 
 
21247
/* System header to define __stub macros and hopefully few prototypes,
 
21248
    which can conflict with char $ac_func (); below.
 
21249
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21250
    <limits.h> exists even on freestanding compilers.  */
 
21251
 
 
21252
#ifdef __STDC__
 
21253
# include <limits.h>
 
21254
#else
 
21255
# include <assert.h>
 
21256
#endif
 
21257
 
 
21258
#undef $ac_func
 
21259
 
 
21260
/* Override any GCC internal prototype to avoid an error.
 
21261
   Use char because int might match the return type of a GCC
 
21262
   builtin and then its argument prototype would still apply.  */
 
21263
#ifdef __cplusplus
 
21264
extern "C"
 
21265
#endif
 
21266
char $ac_func ();
 
21267
/* The GNU C library defines this for functions which it implements
 
21268
    to always fail with ENOSYS.  Some functions are actually named
 
21269
    something starting with __ and the normal name is an alias.  */
 
21270
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21271
choke me
 
21272
#endif
 
21273
 
 
21274
int
 
21275
main ()
 
21276
{
 
21277
return $ac_func ();
 
21278
  ;
 
21279
  return 0;
 
21280
}
 
21281
_ACEOF
 
21282
rm -f conftest.$ac_objext conftest$ac_exeext
 
21283
if { (ac_try="$ac_link"
 
21284
case "(($ac_try" in
 
21285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21286
  *) ac_try_echo=$ac_try;;
 
21287
esac
 
21288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21289
  (eval "$ac_link") 2>conftest.er1
 
21290
  ac_status=$?
 
21291
  grep -v '^ *+' conftest.er1 >conftest.err
 
21292
  rm -f conftest.er1
 
21293
  cat conftest.err >&5
 
21294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21295
  (exit $ac_status); } && {
 
21296
         test -z "$ac_c_werror_flag" ||
 
21297
         test ! -s conftest.err
 
21298
       } && test -s conftest$ac_exeext &&
 
21299
       $as_test_x conftest$ac_exeext; then
 
21300
  eval "$as_ac_var=yes"
 
21301
else
 
21302
  echo "$as_me: failed program was:" >&5
 
21303
sed 's/^/| /' conftest.$ac_ext >&5
 
21304
 
 
21305
        eval "$as_ac_var=no"
 
21306
fi
 
21307
 
 
21308
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21309
      conftest$ac_exeext conftest.$ac_ext
 
21310
fi
 
21311
ac_res=`eval echo '${'$as_ac_var'}'`
 
21312
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21313
echo "${ECHO_T}$ac_res" >&6; }
 
21314
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21315
  cat >>confdefs.h <<_ACEOF
 
21316
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21317
_ACEOF
 
21318
 
 
21319
fi
 
21320
done
 
21321
 
 
21322
LIBS="${save_LIBS}"
 
21323
 
 
21324
LT_CURRENT=2
 
21325
LT_REVISION=0
 
21326
LT_AGE=0
 
21327
 
 
21328
 
 
21329
 
 
21330
 
 
21331
 
 
21332
 
 
21333
 
 
21334
 
 
21335
 
 
21336
 
 
21337
 
 
21338
 
 
21339
 
 
21340
 
 
21341
if ( echo "${host_os}" | grep ^darwin >> /dev/null ) &&
 
21342
      [ "$enable_mac_universal" = "yes" ] &&
 
21343
       [ "$enable_mac_debug" != "yes" ] ; then
 
21344
   CFLAGS="-O2 -Wall -pedantic -pipe -fPIC -DNDEBUG"
 
21345
else
 
21346
   CFLAGS=${CFLAGS:-"-g -O2 -Wall -pedantic -pipe -fPIC"}
 
21347
fi
 
21348
 
 
21349
if [ $ac_cv_c_bigendian = "yes" ] ; then
 
21350
   CFLAGS="$CFLAGS -DPA_BIG_ENDIAN"
 
21351
else
 
21352
   CFLAGS="$CFLAGS -DPA_LITTLE_ENDIAN"
 
21353
fi
 
21354
 
 
21355
case "${host_os}" in
 
21356
  darwin* )
 
21357
 
 
21358
        cat >>confdefs.h <<\_ACEOF
 
21359
#define PA_USE_COREAUDIO 1
 
21360
_ACEOF
 
21361
 
 
21362
 
 
21363
        CFLAGS="$CFLAGS -Werror"
 
21364
        LIBS="-framework CoreAudio -framework AudioToolbox -framework AudioUnit -framework Carbon"
 
21365
 
 
21366
        if test "x$enable_mac_universal" = "xyes" ; then
 
21367
           mac_version_min="-mmacosx-version-min=10.3"
 
21368
           if [ -d /Developer/SDKs/MacOSX10.5.sdk ] ; then
 
21369
              mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
 
21370
              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
 
21371
           else
 
21372
              mac_arches="-arch i386 -arch ppc"
 
21373
              mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
 
21374
           fi
 
21375
        else
 
21376
           mac_arches=""
 
21377
           mac_sysroot=""
 
21378
           mac_version=""
 
21379
        fi
 
21380
        SHARED_FLAGS="$LIBS -dynamiclib $mac_arches $mac_sysroot $mac_version_min"
 
21381
        CFLAGS="-std=c99 $CFLAGS $mac_arches $mac_sysroot $mac_version_min"
 
21382
        OTHER_OBJS="src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o src/hostapi/coreaudio/pa_mac_core.o src/hostapi/coreaudio/pa_mac_core_utilities.o src/hostapi/coreaudio/pa_mac_core_blocking.o src/common/pa_ringbuffer.o"
 
21383
        PADLL="libportaudio.dylib"
 
21384
        if [ $with_macapi = "asio" ] ; then
 
21385
            if [ $with_asiodir ] ; then
 
21386
              ASIODIR="$with_asiodir"
 
21387
            else
 
21388
              ASIODIR="/usr/local/asiosdk2"
 
21389
            fi
 
21390
            echo "ASIODIR: $ASIODIR"
 
21391
 
 
21392
            OTHER_OBJS="src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/host/asiodrivers.o $ASIODIR/common/asio.o $ASIODIR/host/mac/asioshlib.o"
 
21393
            CFLAGS="$CFLAGS -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/mac -I$ASIODIR/common"
 
21394
            CXXFLAGS="$CFLAGS"
 
21395
        fi
 
21396
        ;;
 
21397
 
 
21398
  mingw* )
 
21399
 
 
21400
        echo "WINAPI: $with_winapi"
 
21401
        if [ $with_winapi = "directx" ] ; then
 
21402
            if [ $with_dxdir ] ; then
 
21403
              DXDIR="$with_dxdir"
 
21404
            else
 
21405
              DXDIR="/usr/local/dx7sdk"
 
21406
            fi
 
21407
            echo "DXDIR: $DXDIR"
 
21408
            OTHER_OBJS="src/hostapi/dsound/pa_win_ds.o src/hostapi/dsound/pa_win_ds_dynlink.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
 
21409
            LIBS="-lwinmm -lm -ldsound -lole32"
 
21410
            PADLL="portaudio.dll"
 
21411
            THREAD_CFLAGS="-mthreads"
 
21412
            SHARED_FLAGS="-shared"
 
21413
            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -ldsound -lole32"
 
21414
            #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
 
21415
            #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
 
21416
            CFLAGS="$CFLAGS -I\$(top_srcdir)/include -I$DXDIR/include -DPA_NO_WMME -DPA_NO_ASIO" -DPA_NO_WDMKS
 
21417
        elif [ $with_winapi = "asio" ] ; then
 
21418
            if [ $with_asiodir ] ; then
 
21419
              ASIODIR="$with_asiodir"
 
21420
            else
 
21421
              ASIODIR="/usr/local/asiosdk2"
 
21422
            fi
 
21423
            echo "ASIODIR: $ASIODIR"
 
21424
 
 
21425
 
 
21426
            OTHER_OBJS="src/hostapi/asio/pa_asio.o src/common/pa_ringbuffer.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/hostapi/asio/iasiothiscallresolver.o $ASIODIR/common/asio.o $ASIODIR/host/asiodrivers.o $ASIODIR/host/pc/asiolist.o"
 
21427
            LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
 
21428
            PADLL="portaudio.dll"
 
21429
            THREAD_CFLAGS="-mthreads"
 
21430
            SHARED_FLAGS="-shared"
 
21431
            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -lstdc++ -lole32 -luuid"
 
21432
            CFLAGS="$CFLAGS -ffast-math -fomit-frame-pointer -I\$(top_srcdir)/src/common -I\$(top_srcdir)/src/hostapi/asio -I$ASIODIR/host/pc -I$ASIODIR/common -I$ASIODIR/host -DPA_NO_WMME -DPA_NO_DS -DPA_NO_WDMKS -DWINDOWS"
 
21433
            CXXFLAGS="$CFLAGS"
 
21434
        elif [ $with_winapi = "wdmks" ] ; then
 
21435
            if [ $with_dxdir ] ; then
 
21436
              DXDIR="$with_dxdir"
 
21437
            else
 
21438
              DXDIR="/usr/local/dx7sdk"
 
21439
            fi
 
21440
            echo "DXDIR: $DXDIR"
 
21441
            OTHER_OBJS="src/hostapi/wdmks/pa_win_wdmks.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o"
 
21442
            LIBS="-lwinmm -lm -luuid -lsetupapi -lole32"
 
21443
            PADLL="portaudio.dll"
 
21444
            THREAD_CFLAGS="-mthreads"
 
21445
            SHARED_FLAGS="-shared"
 
21446
            DLL_LIBS="${DLL_LIBS} -lwinmm -lm -L./dx7sdk/lib -luuid -lsetupapi -lole32"
 
21447
            #VC98="\"/c/Program Files/Microsoft Visual Studio/VC98/Include\""
 
21448
            #CFLAGS="$CFLAGS -I$VC98 -DPA_NO_WMME -DPA_NO_ASIO"
 
21449
            CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -I$DXDIR/include -DPA_NO_WMME -DPA_NO_DS -DPA_NO_ASIO"
 
21450
        else   # WMME default
 
21451
            OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
 
21452
            LIBS="-lwinmm -lm -lstdc++ -lole32 -luuid"
 
21453
            PADLL="portaudio.dll"
 
21454
            THREAD_CFLAGS="-mthreads"
 
21455
            SHARED_FLAGS="-shared"
 
21456
            DLL_LIBS="${DLL_LIBS} -lwinmm"
 
21457
            CFLAGS="$CFLAGS -I\$(top_srcdir)/src/common -DPA_NO_DS -DPA_NO_ASIO -DPA_NO_WDMKS"
 
21458
        fi
 
21459
        ;;
 
21460
 
 
21461
  cygwin* )
 
21462
 
 
21463
        OTHER_OBJS="src/hostapi/wmme/pa_win_wmme.o src/os/win/pa_win_hostapis.o src/os/win/pa_win_util.o src/os/win/pa_win_waveformat.o"
 
21464
        CFLAGS="$CFLAGS -DPA_NO_DS -DPA_NO_WDMKS -DPA_NO_ASIO -DPA_NO_WASAPI"
 
21465
        LIBS="-lwinmm -lm"
 
21466
        PADLL="portaudio.dll"
 
21467
        THREAD_CFLAGS="-mthreads"
 
21468
        SHARED_FLAGS="-shared"
 
21469
        DLL_LIBS="${DLL_LIBS} -lwinmm"
 
21470
        ;;
 
21471
 
 
21472
  irix* )
 
21473
 
 
21474
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
21475
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
21476
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
21477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21478
else
 
21479
  ac_check_lib_save_LIBS=$LIBS
 
21480
LIBS="-lpthread  $LIBS"
 
21481
cat >conftest.$ac_ext <<_ACEOF
 
21482
/* confdefs.h.  */
 
21483
_ACEOF
 
21484
cat confdefs.h >>conftest.$ac_ext
 
21485
cat >>conftest.$ac_ext <<_ACEOF
 
21486
/* end confdefs.h.  */
 
21487
 
 
21488
/* Override any GCC internal prototype to avoid an error.
 
21489
   Use char because int might match the return type of a GCC
 
21490
   builtin and then its argument prototype would still apply.  */
 
21491
#ifdef __cplusplus
 
21492
extern "C"
 
21493
#endif
 
21494
char pthread_create ();
 
21495
int
 
21496
main ()
 
21497
{
 
21498
return pthread_create ();
 
21499
  ;
 
21500
  return 0;
 
21501
}
 
21502
_ACEOF
 
21503
rm -f conftest.$ac_objext conftest$ac_exeext
 
21504
if { (ac_try="$ac_link"
 
21505
case "(($ac_try" in
 
21506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21507
  *) ac_try_echo=$ac_try;;
 
21508
esac
 
21509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21510
  (eval "$ac_link") 2>conftest.er1
 
21511
  ac_status=$?
 
21512
  grep -v '^ *+' conftest.er1 >conftest.err
 
21513
  rm -f conftest.er1
 
21514
  cat conftest.err >&5
 
21515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21516
  (exit $ac_status); } && {
 
21517
         test -z "$ac_c_werror_flag" ||
 
21518
         test ! -s conftest.err
 
21519
       } && test -s conftest$ac_exeext &&
 
21520
       $as_test_x conftest$ac_exeext; then
 
21521
  ac_cv_lib_pthread_pthread_create=yes
 
21522
else
 
21523
  echo "$as_me: failed program was:" >&5
 
21524
sed 's/^/| /' conftest.$ac_ext >&5
 
21525
 
 
21526
        ac_cv_lib_pthread_pthread_create=no
 
21527
fi
 
21528
 
 
21529
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21530
      conftest$ac_exeext conftest.$ac_ext
 
21531
LIBS=$ac_check_lib_save_LIBS
 
21532
fi
 
21533
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
21534
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
21535
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
21536
  cat >>confdefs.h <<_ACEOF
 
21537
#define HAVE_LIBPTHREAD 1
 
21538
_ACEOF
 
21539
 
 
21540
  LIBS="-lpthread $LIBS"
 
21541
 
 
21542
else
 
21543
  { { echo "$as_me:$LINENO: error: IRIX posix thread library not found!" >&5
 
21544
echo "$as_me: error: IRIX posix thread library not found!" >&2;}
 
21545
   { (exit 1); exit 1; }; }
 
21546
fi
 
21547
 
 
21548
 
 
21549
{ echo "$as_me:$LINENO: checking for alOpenPort in -laudio" >&5
 
21550
echo $ECHO_N "checking for alOpenPort in -laudio... $ECHO_C" >&6; }
 
21551
if test "${ac_cv_lib_audio_alOpenPort+set}" = set; then
 
21552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21553
else
 
21554
  ac_check_lib_save_LIBS=$LIBS
 
21555
LIBS="-laudio  $LIBS"
 
21556
cat >conftest.$ac_ext <<_ACEOF
 
21557
/* confdefs.h.  */
 
21558
_ACEOF
 
21559
cat confdefs.h >>conftest.$ac_ext
 
21560
cat >>conftest.$ac_ext <<_ACEOF
 
21561
/* end confdefs.h.  */
 
21562
 
 
21563
/* Override any GCC internal prototype to avoid an error.
 
21564
   Use char because int might match the return type of a GCC
 
21565
   builtin and then its argument prototype would still apply.  */
 
21566
#ifdef __cplusplus
 
21567
extern "C"
 
21568
#endif
 
21569
char alOpenPort ();
 
21570
int
 
21571
main ()
 
21572
{
 
21573
return alOpenPort ();
 
21574
  ;
 
21575
  return 0;
 
21576
}
 
21577
_ACEOF
 
21578
rm -f conftest.$ac_objext conftest$ac_exeext
 
21579
if { (ac_try="$ac_link"
 
21580
case "(($ac_try" in
 
21581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21582
  *) ac_try_echo=$ac_try;;
 
21583
esac
 
21584
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21585
  (eval "$ac_link") 2>conftest.er1
 
21586
  ac_status=$?
 
21587
  grep -v '^ *+' conftest.er1 >conftest.err
 
21588
  rm -f conftest.er1
 
21589
  cat conftest.err >&5
 
21590
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21591
  (exit $ac_status); } && {
 
21592
         test -z "$ac_c_werror_flag" ||
 
21593
         test ! -s conftest.err
 
21594
       } && test -s conftest$ac_exeext &&
 
21595
       $as_test_x conftest$ac_exeext; then
 
21596
  ac_cv_lib_audio_alOpenPort=yes
 
21597
else
 
21598
  echo "$as_me: failed program was:" >&5
 
21599
sed 's/^/| /' conftest.$ac_ext >&5
 
21600
 
 
21601
        ac_cv_lib_audio_alOpenPort=no
 
21602
fi
 
21603
 
 
21604
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21605
      conftest$ac_exeext conftest.$ac_ext
 
21606
LIBS=$ac_check_lib_save_LIBS
 
21607
fi
 
21608
{ echo "$as_me:$LINENO: result: $ac_cv_lib_audio_alOpenPort" >&5
 
21609
echo "${ECHO_T}$ac_cv_lib_audio_alOpenPort" >&6; }
 
21610
if test $ac_cv_lib_audio_alOpenPort = yes; then
 
21611
  cat >>confdefs.h <<_ACEOF
 
21612
#define HAVE_LIBAUDIO 1
 
21613
_ACEOF
 
21614
 
 
21615
  LIBS="-laudio $LIBS"
 
21616
 
 
21617
else
 
21618
  { { echo "$as_me:$LINENO: error: IRIX audio library not found!" >&5
 
21619
echo "$as_me: error: IRIX audio library not found!" >&2;}
 
21620
   { (exit 1); exit 1; }; }
 
21621
fi
 
21622
 
 
21623
 
 
21624
{ echo "$as_me:$LINENO: checking for dmGetUST in -ldmedia" >&5
 
21625
echo $ECHO_N "checking for dmGetUST in -ldmedia... $ECHO_C" >&6; }
 
21626
if test "${ac_cv_lib_dmedia_dmGetUST+set}" = set; then
 
21627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21628
else
 
21629
  ac_check_lib_save_LIBS=$LIBS
 
21630
LIBS="-ldmedia  $LIBS"
 
21631
cat >conftest.$ac_ext <<_ACEOF
 
21632
/* confdefs.h.  */
 
21633
_ACEOF
 
21634
cat confdefs.h >>conftest.$ac_ext
 
21635
cat >>conftest.$ac_ext <<_ACEOF
 
21636
/* end confdefs.h.  */
 
21637
 
 
21638
/* Override any GCC internal prototype to avoid an error.
 
21639
   Use char because int might match the return type of a GCC
 
21640
   builtin and then its argument prototype would still apply.  */
 
21641
#ifdef __cplusplus
 
21642
extern "C"
 
21643
#endif
 
21644
char dmGetUST ();
 
21645
int
 
21646
main ()
 
21647
{
 
21648
return dmGetUST ();
 
21649
  ;
 
21650
  return 0;
 
21651
}
 
21652
_ACEOF
 
21653
rm -f conftest.$ac_objext conftest$ac_exeext
 
21654
if { (ac_try="$ac_link"
 
21655
case "(($ac_try" in
 
21656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21657
  *) ac_try_echo=$ac_try;;
 
21658
esac
 
21659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21660
  (eval "$ac_link") 2>conftest.er1
 
21661
  ac_status=$?
 
21662
  grep -v '^ *+' conftest.er1 >conftest.err
 
21663
  rm -f conftest.er1
 
21664
  cat conftest.err >&5
 
21665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21666
  (exit $ac_status); } && {
 
21667
         test -z "$ac_c_werror_flag" ||
 
21668
         test ! -s conftest.err
 
21669
       } && test -s conftest$ac_exeext &&
 
21670
       $as_test_x conftest$ac_exeext; then
 
21671
  ac_cv_lib_dmedia_dmGetUST=yes
 
21672
else
 
21673
  echo "$as_me: failed program was:" >&5
 
21674
sed 's/^/| /' conftest.$ac_ext >&5
 
21675
 
 
21676
        ac_cv_lib_dmedia_dmGetUST=no
 
21677
fi
 
21678
 
 
21679
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21680
      conftest$ac_exeext conftest.$ac_ext
 
21681
LIBS=$ac_check_lib_save_LIBS
 
21682
fi
 
21683
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmGetUST" >&5
 
21684
echo "${ECHO_T}$ac_cv_lib_dmedia_dmGetUST" >&6; }
 
21685
if test $ac_cv_lib_dmedia_dmGetUST = yes; then
 
21686
  cat >>confdefs.h <<_ACEOF
 
21687
#define HAVE_LIBDMEDIA 1
 
21688
_ACEOF
 
21689
 
 
21690
  LIBS="-ldmedia $LIBS"
 
21691
 
 
21692
else
 
21693
  { { echo "$as_me:$LINENO: error: IRIX digital media library not found!" >&5
 
21694
echo "$as_me: error: IRIX digital media library not found!" >&2;}
 
21695
   { (exit 1); exit 1; }; }
 
21696
fi
 
21697
 
 
21698
 
 
21699
                                cat >>confdefs.h <<\_ACEOF
 
21700
#define PA_USE_SGI 1
 
21701
_ACEOF
 
21702
 
 
21703
 
 
21704
                        THREAD_CFLAGS="-D_REENTRANT"
 
21705
 
 
21706
        OTHER_OBJS="pa_sgi/pa_sgi.o src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
 
21707
 
 
21708
                        LIBS="-lm -ldmedia -laudio -lpthread"
 
21709
        PADLL="libportaudio.so"
 
21710
        SHARED_FLAGS=""
 
21711
        ;;
 
21712
 
 
21713
  *)
 
21714
 
 
21715
        { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
21716
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
21717
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
21718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21719
else
 
21720
  ac_check_lib_save_LIBS=$LIBS
 
21721
LIBS="-lpthread  $LIBS"
 
21722
cat >conftest.$ac_ext <<_ACEOF
 
21723
/* confdefs.h.  */
 
21724
_ACEOF
 
21725
cat confdefs.h >>conftest.$ac_ext
 
21726
cat >>conftest.$ac_ext <<_ACEOF
 
21727
/* end confdefs.h.  */
 
21728
 
 
21729
/* Override any GCC internal prototype to avoid an error.
 
21730
   Use char because int might match the return type of a GCC
 
21731
   builtin and then its argument prototype would still apply.  */
 
21732
#ifdef __cplusplus
 
21733
extern "C"
 
21734
#endif
 
21735
char pthread_create ();
 
21736
int
 
21737
main ()
 
21738
{
 
21739
return pthread_create ();
 
21740
  ;
 
21741
  return 0;
 
21742
}
 
21743
_ACEOF
 
21744
rm -f conftest.$ac_objext conftest$ac_exeext
 
21745
if { (ac_try="$ac_link"
 
21746
case "(($ac_try" in
 
21747
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21748
  *) ac_try_echo=$ac_try;;
 
21749
esac
 
21750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21751
  (eval "$ac_link") 2>conftest.er1
 
21752
  ac_status=$?
 
21753
  grep -v '^ *+' conftest.er1 >conftest.err
 
21754
  rm -f conftest.er1
 
21755
  cat conftest.err >&5
 
21756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21757
  (exit $ac_status); } && {
 
21758
         test -z "$ac_c_werror_flag" ||
 
21759
         test ! -s conftest.err
 
21760
       } && test -s conftest$ac_exeext &&
 
21761
       $as_test_x conftest$ac_exeext; then
 
21762
  ac_cv_lib_pthread_pthread_create=yes
 
21763
else
 
21764
  echo "$as_me: failed program was:" >&5
 
21765
sed 's/^/| /' conftest.$ac_ext >&5
 
21766
 
 
21767
        ac_cv_lib_pthread_pthread_create=no
 
21768
fi
 
21769
 
 
21770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21771
      conftest$ac_exeext conftest.$ac_ext
 
21772
LIBS=$ac_check_lib_save_LIBS
 
21773
fi
 
21774
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
21775
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
21776
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
21777
  have_pthread="yes"
 
21778
else
 
21779
  { { echo "$as_me:$LINENO: error: libpthread not found!" >&5
 
21780
echo "$as_me: error: libpthread not found!" >&2;}
 
21781
   { (exit 1); exit 1; }; }
 
21782
fi
 
21783
 
 
21784
 
 
21785
        if [ $have_alsa = "yes" ] && [ $with_alsa != "no" ] ; then
 
21786
           DLL_LIBS="$DLL_LIBS -lasound"
 
21787
           LIBS="$LIBS -lasound"
 
21788
           OTHER_OBJS="$OTHER_OBJS src/hostapi/alsa/pa_linux_alsa.o"
 
21789
           cat >>confdefs.h <<\_ACEOF
 
21790
#define PA_USE_ALSA 1
 
21791
_ACEOF
 
21792
 
 
21793
        fi
 
21794
 
 
21795
        if [ $have_jack = "yes" ] && [ $with_jack != "no" ] ; then
 
21796
           DLL_LIBS="$DLL_LIBS $JACK_LIBS"
 
21797
           CFLAGS="$CFLAGS $JACK_CFLAGS"
 
21798
           OTHER_OBJS="$OTHER_OBJS src/hostapi/jack/pa_jack.o src/common/pa_ringbuffer.o"
 
21799
           cat >>confdefs.h <<\_ACEOF
 
21800
#define PA_USE_JACK 1
 
21801
_ACEOF
 
21802
 
 
21803
        fi
 
21804
 
 
21805
        if [ $with_oss != "no" ] ; then
 
21806
           OTHER_OBJS="$OTHER_OBJS src/hostapi/oss/pa_unix_oss.o"
 
21807
           if [ $have_libossaudio = "yes" ] ; then
 
21808
                   DLL_LIBS="$DLL_LIBS -lossaudio"
 
21809
                   LIBS="$LIBS -lossaudio"
 
21810
           fi
 
21811
           cat >>confdefs.h <<\_ACEOF
 
21812
#define PA_USE_OSS 1
 
21813
_ACEOF
 
21814
 
 
21815
        fi
 
21816
 
 
21817
        if [ $have_asihpi = "yes" ] && [ $with_asihpi != "no" ] ; then
 
21818
           LIBS="$LIBS -lhpi"
 
21819
           DLL_LIBS="$DLL_LIBS -lhpi"
 
21820
           OTHER_OBJS="$OTHER_OBJS src/hostapi/asihpi/pa_linux_asihpi.o"
 
21821
           cat >>confdefs.h <<\_ACEOF
 
21822
#define PA_USE_ASIHPI 1
 
21823
_ACEOF
 
21824
 
 
21825
        fi
 
21826
 
 
21827
        DLL_LIBS="$DLL_LIBS -lm -lpthread"
 
21828
        LIBS="$LIBS -lm -lpthread"
 
21829
        PADLL="libportaudio.so"
 
21830
 
 
21831
        ## support sun cc compiler flags
 
21832
        case "${host_os}" in
 
21833
           solaris*)
 
21834
              SHARED_FLAGS="-G"
 
21835
              THREAD_CFLAGS="-mt"
 
21836
              ;;
 
21837
           *)
 
21838
              SHARED_FLAGS="-shared -fPIC"
 
21839
              THREAD_CFLAGS="-pthread"
 
21840
              ;;
 
21841
        esac
 
21842
 
 
21843
        OTHER_OBJS="$OTHER_OBJS src/os/unix/pa_unix_hostapis.o src/os/unix/pa_unix_util.o"
 
21844
esac
 
21845
CFLAGS="$CFLAGS $THREAD_CFLAGS"
 
21846
 
 
21847
if test "$enable_cxx" = "yes"; then
 
21848
   subdirs="$subdirs bindings/cpp"
 
21849
 
 
21850
   ENABLE_CXX_TRUE=""
 
21851
   ENABLE_CXX_FALSE="#"
 
21852
else
 
21853
   ENABLE_CXX_TRUE="#"
 
21854
   ENABLE_CXX_FALSE=""
 
21855
fi
 
21856
 
 
21857
 
 
21858
 
 
21859
ac_config_files="$ac_config_files Makefile portaudio-2.0.pc"
 
21860
 
 
21861
cat >confcache <<\_ACEOF
 
21862
# This file is a shell script that caches the results of configure
 
21863
# tests run on this system so they can be shared between configure
 
21864
# scripts and configure runs, see configure's option --config-cache.
 
21865
# It is not useful on other systems.  If it contains results you don't
 
21866
# want to keep, you may remove or edit it.
 
21867
#
 
21868
# config.status only pays attention to the cache file if you give it
 
21869
# the --recheck option to rerun configure.
 
21870
#
 
21871
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21872
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21873
# following values.
 
21874
 
 
21875
_ACEOF
 
21876
 
 
21877
# The following way of writing the cache mishandles newlines in values,
 
21878
# but we know of no workaround that is simple, portable, and efficient.
 
21879
# So, we kill variables containing newlines.
 
21880
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21881
# and sets the high bit in the cache file unless we assign to the vars.
 
21882
(
 
21883
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21884
    eval ac_val=\$$ac_var
 
21885
    case $ac_val in #(
 
21886
    *${as_nl}*)
 
21887
      case $ac_var in #(
 
21888
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
21889
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
21890
      esac
 
21891
      case $ac_var in #(
 
21892
      _ | IFS | as_nl) ;; #(
 
21893
      *) $as_unset $ac_var ;;
 
21894
      esac ;;
 
21895
    esac
 
21896
  done
 
21897
 
 
21898
  (set) 2>&1 |
 
21899
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21900
    *${as_nl}ac_space=\ *)
 
21901
      # `set' does not quote correctly, so add quotes (double-quote
 
21902
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21903
      sed -n \
 
21904
        "s/'/'\\\\''/g;
 
21905
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21906
      ;; #(
 
21907
    *)
 
21908
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21909
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
21910
      ;;
 
21911
    esac |
 
21912
    sort
 
21913
) |
 
21914
  sed '
 
21915
     /^ac_cv_env_/b end
 
21916
     t clear
 
21917
     :clear
 
21918
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21919
     t end
 
21920
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21921
     :end' >>confcache
 
21922
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21923
  if test -w "$cache_file"; then
 
21924
    test "x$cache_file" != "x/dev/null" &&
 
21925
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
21926
echo "$as_me: updating cache $cache_file" >&6;}
 
21927
    cat confcache >$cache_file
 
21928
  else
 
21929
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
21930
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
21931
  fi
 
21932
fi
 
21933
rm -f confcache
 
21934
 
 
21935
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21936
# Let make expand exec_prefix.
 
21937
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21938
 
 
21939
# Transform confdefs.h into DEFS.
 
21940
# Protect against shell expansion while executing Makefile rules.
 
21941
# Protect against Makefile macro expansion.
 
21942
#
 
21943
# If the first sed substitution is executed (which looks for macros that
 
21944
# take arguments), then branch to the quote section.  Otherwise,
 
21945
# look for a macro that doesn't take arguments.
 
21946
ac_script='
 
21947
t clear
 
21948
:clear
 
21949
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
21950
t quote
 
21951
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
21952
t quote
 
21953
b any
 
21954
:quote
 
21955
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
21956
s/\[/\\&/g
 
21957
s/\]/\\&/g
 
21958
s/\$/$$/g
 
21959
H
 
21960
:any
 
21961
${
 
21962
        g
 
21963
        s/^\n//
 
21964
        s/\n/ /g
 
21965
        p
 
21966
}
 
21967
'
 
21968
DEFS=`sed -n "$ac_script" confdefs.h`
 
21969
 
 
21970
 
 
21971
ac_libobjs=
 
21972
ac_ltlibobjs=
 
21973
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21974
  # 1. Remove the extension, and $U if already installed.
 
21975
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21976
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
21977
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21978
  #    will be set to the directory where LIBOBJS objects are built.
 
21979
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21980
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
21981
done
 
21982
LIBOBJS=$ac_libobjs
 
21983
 
 
21984
LTLIBOBJS=$ac_ltlibobjs
 
21985
 
 
21986
 
 
21987
 
 
21988
: ${CONFIG_STATUS=./config.status}
 
21989
ac_clean_files_save=$ac_clean_files
 
21990
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21991
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21992
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21993
cat >$CONFIG_STATUS <<_ACEOF
 
21994
#! $SHELL
 
21995
# Generated by $as_me.
 
21996
# Run this file to recreate the current configuration.
 
21997
# Compiler output produced by configure, useful for debugging
 
21998
# configure, is in config.log if it exists.
 
21999
 
 
22000
debug=false
 
22001
ac_cs_recheck=false
 
22002
ac_cs_silent=false
 
22003
SHELL=\${CONFIG_SHELL-$SHELL}
 
22004
_ACEOF
 
22005
 
 
22006
cat >>$CONFIG_STATUS <<\_ACEOF
 
22007
## --------------------- ##
 
22008
## M4sh Initialization.  ##
 
22009
## --------------------- ##
 
22010
 
 
22011
# Be more Bourne compatible
 
22012
DUALCASE=1; export DUALCASE # for MKS sh
 
22013
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22014
  emulate sh
 
22015
  NULLCMD=:
 
22016
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22017
  # is contrary to our usage.  Disable this feature.
 
22018
  alias -g '${1+"$@"}'='"$@"'
 
22019
  setopt NO_GLOB_SUBST
 
22020
else
 
22021
  case `(set -o) 2>/dev/null` in
 
22022
  *posix*) set -o posix ;;
 
22023
esac
 
22024
 
 
22025
fi
 
22026
 
 
22027
 
 
22028
 
 
22029
 
 
22030
# PATH needs CR
 
22031
# Avoid depending upon Character Ranges.
 
22032
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22033
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22034
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22035
as_cr_digits='0123456789'
 
22036
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22037
 
 
22038
# The user is always right.
 
22039
if test "${PATH_SEPARATOR+set}" != set; then
 
22040
  echo "#! /bin/sh" >conf$$.sh
 
22041
  echo  "exit 0"   >>conf$$.sh
 
22042
  chmod +x conf$$.sh
 
22043
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22044
    PATH_SEPARATOR=';'
 
22045
  else
 
22046
    PATH_SEPARATOR=:
 
22047
  fi
 
22048
  rm -f conf$$.sh
 
22049
fi
 
22050
 
 
22051
# Support unset when possible.
 
22052
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22053
  as_unset=unset
 
22054
else
 
22055
  as_unset=false
 
22056
fi
 
22057
 
 
22058
 
 
22059
# IFS
 
22060
# We need space, tab and new line, in precisely that order.  Quoting is
 
22061
# there to prevent editors from complaining about space-tab.
 
22062
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
22063
# splitting by setting IFS to empty value.)
 
22064
as_nl='
 
22065
'
 
22066
IFS=" ""        $as_nl"
 
22067
 
 
22068
# Find who we are.  Look in the path if we contain no directory separator.
 
22069
case $0 in
 
22070
  *[\\/]* ) as_myself=$0 ;;
 
22071
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22072
for as_dir in $PATH
 
22073
do
 
22074
  IFS=$as_save_IFS
 
22075
  test -z "$as_dir" && as_dir=.
 
22076
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22077
done
 
22078
IFS=$as_save_IFS
 
22079
 
 
22080
     ;;
 
22081
esac
 
22082
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
22083
# in which case we are not to be found in the path.
 
22084
if test "x$as_myself" = x; then
 
22085
  as_myself=$0
 
22086
fi
 
22087
if test ! -f "$as_myself"; then
 
22088
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22089
  { (exit 1); exit 1; }
 
22090
fi
 
22091
 
 
22092
# Work around bugs in pre-3.0 UWIN ksh.
 
22093
for as_var in ENV MAIL MAILPATH
 
22094
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22095
done
 
22096
PS1='$ '
 
22097
PS2='> '
 
22098
PS4='+ '
 
22099
 
 
22100
# NLS nuisances.
 
22101
for as_var in \
 
22102
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22103
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22104
  LC_TELEPHONE LC_TIME
 
22105
do
 
22106
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22107
    eval $as_var=C; export $as_var
 
22108
  else
 
22109
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22110
  fi
 
22111
done
 
22112
 
 
22113
# Required to use basename.
 
22114
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22115
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22116
  as_expr=expr
 
22117
else
 
22118
  as_expr=false
 
22119
fi
 
22120
 
 
22121
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22122
  as_basename=basename
 
22123
else
 
22124
  as_basename=false
 
22125
fi
 
22126
 
 
22127
 
 
22128
# Name of the executable.
 
22129
as_me=`$as_basename -- "$0" ||
 
22130
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22131
         X"$0" : 'X\(//\)$' \| \
 
22132
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22133
echo X/"$0" |
 
22134
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22135
            s//\1/
 
22136
            q
 
22137
          }
 
22138
          /^X\/\(\/\/\)$/{
 
22139
            s//\1/
 
22140
            q
 
22141
          }
 
22142
          /^X\/\(\/\).*/{
 
22143
            s//\1/
 
22144
            q
 
22145
          }
 
22146
          s/.*/./; q'`
 
22147
 
 
22148
# CDPATH.
 
22149
$as_unset CDPATH
 
22150
 
 
22151
 
 
22152
 
 
22153
  as_lineno_1=$LINENO
 
22154
  as_lineno_2=$LINENO
 
22155
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22156
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22157
 
 
22158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22160
  # line-number line after each line using $LINENO; the second 'sed'
 
22161
  # does the real work.  The second script uses 'N' to pair each
 
22162
  # line-number line with the line containing $LINENO, and appends
 
22163
  # trailing '-' during substitution so that $LINENO is not a special
 
22164
  # case at line end.
 
22165
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22166
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
22167
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
22168
  sed -n '
 
22169
    p
 
22170
    /[$]LINENO/=
 
22171
  ' <$as_myself |
 
22172
    sed '
 
22173
      s/[$]LINENO.*/&-/
 
22174
      t lineno
 
22175
      b
 
22176
      :lineno
 
22177
      N
 
22178
      :loop
 
22179
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22180
      t loop
 
22181
      s/-\n.*//
 
22182
    ' >$as_me.lineno &&
 
22183
  chmod +x "$as_me.lineno" ||
 
22184
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22185
   { (exit 1); exit 1; }; }
 
22186
 
 
22187
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22188
  # (the dirname of $[0] is not the place where we might find the
 
22189
  # original and so on.  Autoconf is especially sensitive to this).
 
22190
  . "./$as_me.lineno"
 
22191
  # Exit status is that of the last command.
 
22192
  exit
 
22193
}
 
22194
 
 
22195
 
 
22196
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22197
  as_dirname=dirname
 
22198
else
 
22199
  as_dirname=false
 
22200
fi
 
22201
 
 
22202
ECHO_C= ECHO_N= ECHO_T=
 
22203
case `echo -n x` in
 
22204
-n*)
 
22205
  case `echo 'x\c'` in
 
22206
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22207
  *)   ECHO_C='\c';;
 
22208
  esac;;
 
22209
*)
 
22210
  ECHO_N='-n';;
 
22211
esac
 
22212
 
 
22213
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22214
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22215
  as_expr=expr
 
22216
else
 
22217
  as_expr=false
 
22218
fi
 
22219
 
 
22220
rm -f conf$$ conf$$.exe conf$$.file
 
22221
if test -d conf$$.dir; then
 
22222
  rm -f conf$$.dir/conf$$.file
 
22223
else
 
22224
  rm -f conf$$.dir
 
22225
  mkdir conf$$.dir
 
22226
fi
 
22227
echo >conf$$.file
 
22228
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22229
  as_ln_s='ln -s'
 
22230
  # ... but there are two gotchas:
 
22231
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22232
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22233
  # In both cases, we have to default to `cp -p'.
 
22234
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22235
    as_ln_s='cp -p'
 
22236
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22237
  as_ln_s=ln
 
22238
else
 
22239
  as_ln_s='cp -p'
 
22240
fi
 
22241
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22242
rmdir conf$$.dir 2>/dev/null
 
22243
 
 
22244
if mkdir -p . 2>/dev/null; then
 
22245
  as_mkdir_p=:
 
22246
else
 
22247
  test -d ./-p && rmdir ./-p
 
22248
  as_mkdir_p=false
 
22249
fi
 
22250
 
 
22251
if test -x / >/dev/null 2>&1; then
 
22252
  as_test_x='test -x'
 
22253
else
 
22254
  if ls -dL / >/dev/null 2>&1; then
 
22255
    as_ls_L_option=L
 
22256
  else
 
22257
    as_ls_L_option=
 
22258
  fi
 
22259
  as_test_x='
 
22260
    eval sh -c '\''
 
22261
      if test -d "$1"; then
 
22262
        test -d "$1/.";
 
22263
      else
 
22264
        case $1 in
 
22265
        -*)set "./$1";;
 
22266
        esac;
 
22267
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
22268
        ???[sx]*):;;*)false;;esac;fi
 
22269
    '\'' sh
 
22270
  '
 
22271
fi
 
22272
as_executable_p=$as_test_x
 
22273
 
 
22274
# Sed expression to map a string onto a valid CPP name.
 
22275
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22276
 
 
22277
# Sed expression to map a string onto a valid variable name.
 
22278
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22279
 
 
22280
 
 
22281
exec 6>&1
 
22282
 
 
22283
# Save the log message, to keep $[0] and so on meaningful, and to
 
22284
# report actual input values of CONFIG_FILES etc. instead of their
 
22285
# values after options handling.
 
22286
ac_log="
 
22287
This file was extended by $as_me, which was
 
22288
generated by GNU Autoconf 2.61.  Invocation command line was
 
22289
 
 
22290
  CONFIG_FILES    = $CONFIG_FILES
 
22291
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22292
  CONFIG_LINKS    = $CONFIG_LINKS
 
22293
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22294
  $ $0 $@
 
22295
 
 
22296
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22297
"
 
22298
 
 
22299
_ACEOF
 
22300
 
 
22301
cat >>$CONFIG_STATUS <<_ACEOF
 
22302
# Files that config.status was made for.
 
22303
config_files="$ac_config_files"
 
22304
 
 
22305
_ACEOF
 
22306
 
 
22307
cat >>$CONFIG_STATUS <<\_ACEOF
 
22308
ac_cs_usage="\
 
22309
\`$as_me' instantiates files from templates according to the
 
22310
current configuration.
 
22311
 
 
22312
Usage: $0 [OPTIONS] [FILE]...
 
22313
 
 
22314
  -h, --help       print this help, then exit
 
22315
  -V, --version    print version number and configuration settings, then exit
 
22316
  -q, --quiet      do not print progress messages
 
22317
  -d, --debug      don't remove temporary files
 
22318
      --recheck    update $as_me by reconfiguring in the same conditions
 
22319
  --file=FILE[:TEMPLATE]
 
22320
                   instantiate the configuration file FILE
 
22321
 
 
22322
Configuration files:
 
22323
$config_files
 
22324
 
 
22325
Report bugs to <bug-autoconf@gnu.org>."
 
22326
 
 
22327
_ACEOF
 
22328
cat >>$CONFIG_STATUS <<_ACEOF
 
22329
ac_cs_version="\\
 
22330
config.status
 
22331
configured by $0, generated by GNU Autoconf 2.61,
 
22332
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22333
 
 
22334
Copyright (C) 2006 Free Software Foundation, Inc.
 
22335
This config.status script is free software; the Free Software Foundation
 
22336
gives unlimited permission to copy, distribute and modify it."
 
22337
 
 
22338
ac_pwd='$ac_pwd'
 
22339
srcdir='$srcdir'
 
22340
INSTALL='$INSTALL'
 
22341
_ACEOF
 
22342
 
 
22343
cat >>$CONFIG_STATUS <<\_ACEOF
 
22344
# If no file are specified by the user, then we need to provide default
 
22345
# value.  By we need to know if files were specified by the user.
 
22346
ac_need_defaults=:
 
22347
while test $# != 0
 
22348
do
 
22349
  case $1 in
 
22350
  --*=*)
 
22351
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22352
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22353
    ac_shift=:
 
22354
    ;;
 
22355
  *)
 
22356
    ac_option=$1
 
22357
    ac_optarg=$2
 
22358
    ac_shift=shift
 
22359
    ;;
 
22360
  esac
 
22361
 
 
22362
  case $ac_option in
 
22363
  # Handling of the options.
 
22364
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22365
    ac_cs_recheck=: ;;
 
22366
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22367
    echo "$ac_cs_version"; exit ;;
 
22368
  --debug | --debu | --deb | --de | --d | -d )
 
22369
    debug=: ;;
 
22370
  --file | --fil | --fi | --f )
 
22371
    $ac_shift
 
22372
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22373
    ac_need_defaults=false;;
 
22374
  --he | --h |  --help | --hel | -h )
 
22375
    echo "$ac_cs_usage"; exit ;;
 
22376
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22377
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22378
    ac_cs_silent=: ;;
 
22379
 
 
22380
  # This is an error.
 
22381
  -*) { echo "$as_me: error: unrecognized option: $1
 
22382
Try \`$0 --help' for more information." >&2
 
22383
   { (exit 1); exit 1; }; } ;;
 
22384
 
 
22385
  *) ac_config_targets="$ac_config_targets $1"
 
22386
     ac_need_defaults=false ;;
 
22387
 
 
22388
  esac
 
22389
  shift
 
22390
done
 
22391
 
 
22392
ac_configure_extra_args=
 
22393
 
 
22394
if $ac_cs_silent; then
 
22395
  exec 6>/dev/null
 
22396
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22397
fi
 
22398
 
 
22399
_ACEOF
 
22400
cat >>$CONFIG_STATUS <<_ACEOF
 
22401
if \$ac_cs_recheck; then
 
22402
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22403
  CONFIG_SHELL=$SHELL
 
22404
  export CONFIG_SHELL
 
22405
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22406
fi
 
22407
 
 
22408
_ACEOF
 
22409
cat >>$CONFIG_STATUS <<\_ACEOF
 
22410
exec 5>>config.log
 
22411
{
 
22412
  echo
 
22413
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22414
## Running $as_me. ##
 
22415
_ASBOX
 
22416
  echo "$ac_log"
 
22417
} >&5
 
22418
 
 
22419
_ACEOF
 
22420
cat >>$CONFIG_STATUS <<_ACEOF
 
22421
_ACEOF
 
22422
 
 
22423
cat >>$CONFIG_STATUS <<\_ACEOF
 
22424
 
 
22425
# Handling of arguments.
 
22426
for ac_config_target in $ac_config_targets
 
22427
do
 
22428
  case $ac_config_target in
 
22429
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22430
    "portaudio-2.0.pc") CONFIG_FILES="$CONFIG_FILES portaudio-2.0.pc" ;;
 
22431
 
 
22432
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22433
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22434
   { (exit 1); exit 1; }; };;
 
22435
  esac
 
22436
done
 
22437
 
 
22438
 
 
22439
# If the user did not use the arguments to specify the items to instantiate,
 
22440
# then the envvar interface is used.  Set only those that are not.
 
22441
# We use the long form for the default assignment because of an extremely
 
22442
# bizarre bug on SunOS 4.1.3.
 
22443
if $ac_need_defaults; then
 
22444
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22445
fi
 
22446
 
 
22447
# Have a temporary directory for convenience.  Make it in the build tree
 
22448
# simply because there is no reason against having it here, and in addition,
 
22449
# creating and moving files from /tmp can sometimes cause problems.
 
22450
# Hook for its removal unless debugging.
 
22451
# Note that there is a small window in which the directory will not be cleaned:
 
22452
# after its creation but before its name has been assigned to `$tmp'.
 
22453
$debug ||
 
22454
{
 
22455
  tmp=
 
22456
  trap 'exit_status=$?
 
22457
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
22458
' 0
 
22459
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22460
}
 
22461
# Create a (secure) tmp directory for tmp files.
 
22462
 
 
22463
{
 
22464
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22465
  test -n "$tmp" && test -d "$tmp"
 
22466
}  ||
 
22467
{
 
22468
  tmp=./conf$$-$RANDOM
 
22469
  (umask 077 && mkdir "$tmp")
 
22470
} ||
 
22471
{
 
22472
   echo "$me: cannot create a temporary directory in ." >&2
 
22473
   { (exit 1); exit 1; }
 
22474
}
 
22475
 
 
22476
#
 
22477
# Set up the sed scripts for CONFIG_FILES section.
 
22478
#
 
22479
 
 
22480
# No need to generate the scripts if there are no CONFIG_FILES.
 
22481
# This happens for instance when ./config.status config.h
 
22482
if test -n "$CONFIG_FILES"; then
 
22483
 
 
22484
_ACEOF
 
22485
 
 
22486
 
 
22487
 
 
22488
ac_delim='%!_!# '
 
22489
for ac_last_try in false false false false false :; do
 
22490
  cat >conf$$subs.sed <<_ACEOF
 
22491
SHELL!$SHELL$ac_delim
 
22492
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
22493
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
22494
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
22495
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
22496
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
22497
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
22498
exec_prefix!$exec_prefix$ac_delim
 
22499
prefix!$prefix$ac_delim
 
22500
program_transform_name!$program_transform_name$ac_delim
 
22501
bindir!$bindir$ac_delim
 
22502
sbindir!$sbindir$ac_delim
 
22503
libexecdir!$libexecdir$ac_delim
 
22504
datarootdir!$datarootdir$ac_delim
 
22505
datadir!$datadir$ac_delim
 
22506
sysconfdir!$sysconfdir$ac_delim
 
22507
sharedstatedir!$sharedstatedir$ac_delim
 
22508
localstatedir!$localstatedir$ac_delim
 
22509
includedir!$includedir$ac_delim
 
22510
oldincludedir!$oldincludedir$ac_delim
 
22511
docdir!$docdir$ac_delim
 
22512
infodir!$infodir$ac_delim
 
22513
htmldir!$htmldir$ac_delim
 
22514
dvidir!$dvidir$ac_delim
 
22515
pdfdir!$pdfdir$ac_delim
 
22516
psdir!$psdir$ac_delim
 
22517
libdir!$libdir$ac_delim
 
22518
localedir!$localedir$ac_delim
 
22519
mandir!$mandir$ac_delim
 
22520
DEFS!$DEFS$ac_delim
 
22521
ECHO_C!$ECHO_C$ac_delim
 
22522
ECHO_N!$ECHO_N$ac_delim
 
22523
ECHO_T!$ECHO_T$ac_delim
 
22524
LIBS!$LIBS$ac_delim
 
22525
build_alias!$build_alias$ac_delim
 
22526
host_alias!$host_alias$ac_delim
 
22527
target_alias!$target_alias$ac_delim
 
22528
CC!$CC$ac_delim
 
22529
CFLAGS!$CFLAGS$ac_delim
 
22530
LDFLAGS!$LDFLAGS$ac_delim
 
22531
CPPFLAGS!$CPPFLAGS$ac_delim
 
22532
ac_ct_CC!$ac_ct_CC$ac_delim
 
22533
EXEEXT!$EXEEXT$ac_delim
 
22534
OBJEXT!$OBJEXT$ac_delim
 
22535
build!$build$ac_delim
 
22536
build_cpu!$build_cpu$ac_delim
 
22537
build_vendor!$build_vendor$ac_delim
 
22538
build_os!$build_os$ac_delim
 
22539
host!$host$ac_delim
 
22540
host_cpu!$host_cpu$ac_delim
 
22541
host_vendor!$host_vendor$ac_delim
 
22542
host_os!$host_os$ac_delim
 
22543
GREP!$GREP$ac_delim
 
22544
EGREP!$EGREP$ac_delim
 
22545
LN_S!$LN_S$ac_delim
 
22546
ECHO!$ECHO$ac_delim
 
22547
AR!$AR$ac_delim
 
22548
RANLIB!$RANLIB$ac_delim
 
22549
STRIP!$STRIP$ac_delim
 
22550
DLLTOOL!$DLLTOOL$ac_delim
 
22551
AS!$AS$ac_delim
 
22552
OBJDUMP!$OBJDUMP$ac_delim
 
22553
CPP!$CPP$ac_delim
 
22554
CXX!$CXX$ac_delim
 
22555
CXXFLAGS!$CXXFLAGS$ac_delim
 
22556
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
22557
CXXCPP!$CXXCPP$ac_delim
 
22558
F77!$F77$ac_delim
 
22559
FFLAGS!$FFLAGS$ac_delim
 
22560
ac_ct_F77!$ac_ct_F77$ac_delim
 
22561
LIBTOOL!$LIBTOOL$ac_delim
 
22562
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
22563
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
22564
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
22565
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
22566
JACK_CFLAGS!$JACK_CFLAGS$ac_delim
 
22567
JACK_LIBS!$JACK_LIBS$ac_delim
 
22568
LT_CURRENT!$LT_CURRENT$ac_delim
 
22569
LT_REVISION!$LT_REVISION$ac_delim
 
22570
LT_AGE!$LT_AGE$ac_delim
 
22571
OTHER_OBJS!$OTHER_OBJS$ac_delim
 
22572
PADLL!$PADLL$ac_delim
 
22573
SHARED_FLAGS!$SHARED_FLAGS$ac_delim
 
22574
THREAD_CFLAGS!$THREAD_CFLAGS$ac_delim
 
22575
DLL_LIBS!$DLL_LIBS$ac_delim
 
22576
NASM!$NASM$ac_delim
 
22577
NASMOPT!$NASMOPT$ac_delim
 
22578
subdirs!$subdirs$ac_delim
 
22579
ENABLE_CXX_TRUE!$ENABLE_CXX_TRUE$ac_delim
 
22580
ENABLE_CXX_FALSE!$ENABLE_CXX_FALSE$ac_delim
 
22581
LIBOBJS!$LIBOBJS$ac_delim
 
22582
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
22583
_ACEOF
 
22584
 
 
22585
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
 
22586
    break
 
22587
  elif $ac_last_try; then
 
22588
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22589
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22590
   { (exit 1); exit 1; }; }
 
22591
  else
 
22592
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22593
  fi
 
22594
done
 
22595
 
 
22596
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22597
if test -n "$ac_eof"; then
 
22598
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22599
  ac_eof=`expr $ac_eof + 1`
 
22600
fi
 
22601
 
 
22602
cat >>$CONFIG_STATUS <<_ACEOF
 
22603
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22604
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
22605
_ACEOF
 
22606
sed '
 
22607
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22608
s/^/s,@/; s/!/@,|#_!!_#|/
 
22609
:n
 
22610
t n
 
22611
s/'"$ac_delim"'$/,g/; t
 
22612
s/$/\\/; p
 
22613
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22614
' >>$CONFIG_STATUS <conf$$subs.sed
 
22615
rm -f conf$$subs.sed
 
22616
cat >>$CONFIG_STATUS <<_ACEOF
 
22617
:end
 
22618
s/|#_!!_#|//g
 
22619
CEOF$ac_eof
 
22620
_ACEOF
 
22621
 
 
22622
 
 
22623
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22624
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22625
# trailing colons and then remove the whole line if VPATH becomes empty
 
22626
# (actually we leave an empty line to preserve line numbers).
 
22627
if test "x$srcdir" = x.; then
 
22628
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22629
s/:*\$(srcdir):*/:/
 
22630
s/:*\${srcdir}:*/:/
 
22631
s/:*@srcdir@:*/:/
 
22632
s/^\([^=]*=[     ]*\):*/\1/
 
22633
s/:*$//
 
22634
s/^[^=]*=[       ]*$//
 
22635
}'
 
22636
fi
 
22637
 
 
22638
cat >>$CONFIG_STATUS <<\_ACEOF
 
22639
fi # test -n "$CONFIG_FILES"
 
22640
 
 
22641
 
 
22642
for ac_tag in  :F $CONFIG_FILES
 
22643
do
 
22644
  case $ac_tag in
 
22645
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
22646
  esac
 
22647
  case $ac_mode$ac_tag in
 
22648
  :[FHL]*:*);;
 
22649
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
22650
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
22651
   { (exit 1); exit 1; }; };;
 
22652
  :[FH]-) ac_tag=-:-;;
 
22653
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
22654
  esac
 
22655
  ac_save_IFS=$IFS
 
22656
  IFS=:
 
22657
  set x $ac_tag
 
22658
  IFS=$ac_save_IFS
 
22659
  shift
 
22660
  ac_file=$1
 
22661
  shift
 
22662
 
 
22663
  case $ac_mode in
 
22664
  :L) ac_source=$1;;
 
22665
  :[FH])
 
22666
    ac_file_inputs=
 
22667
    for ac_f
 
22668
    do
 
22669
      case $ac_f in
 
22670
      -) ac_f="$tmp/stdin";;
 
22671
      *) # Look for the file first in the build tree, then in the source tree
 
22672
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
22673
         # because $ac_f cannot contain `:'.
 
22674
         test -f "$ac_f" ||
 
22675
           case $ac_f in
 
22676
           [\\/$]*) false;;
 
22677
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
22678
           esac ||
 
22679
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
22680
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22681
   { (exit 1); exit 1; }; };;
 
22682
      esac
 
22683
      ac_file_inputs="$ac_file_inputs $ac_f"
 
22684
    done
 
22685
 
 
22686
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22687
    # use $as_me), people would be surprised to read:
 
22688
    #    /* config.h.  Generated by config.status.  */
 
22689
    configure_input="Generated from "`IFS=:
 
22690
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
22691
    if test x"$ac_file" != x-; then
 
22692
      configure_input="$ac_file.  $configure_input"
 
22693
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22694
echo "$as_me: creating $ac_file" >&6;}
 
22695
    fi
 
22696
 
 
22697
    case $ac_tag in
 
22698
    *:-:* | *:-) cat >"$tmp/stdin";;
 
22699
    esac
 
22700
    ;;
 
22701
  esac
 
22702
 
 
22703
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22704
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22705
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22706
         X"$ac_file" : 'X\(//\)$' \| \
 
22707
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
22708
echo X"$ac_file" |
 
22709
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22710
            s//\1/
 
22711
            q
 
22712
          }
 
22713
          /^X\(\/\/\)[^/].*/{
 
22714
            s//\1/
 
22715
            q
 
22716
          }
 
22717
          /^X\(\/\/\)$/{
 
22718
            s//\1/
 
22719
            q
 
22720
          }
 
22721
          /^X\(\/\).*/{
 
22722
            s//\1/
 
22723
            q
 
22724
          }
 
22725
          s/.*/./; q'`
 
22726
  { as_dir="$ac_dir"
 
22727
  case $as_dir in #(
 
22728
  -*) as_dir=./$as_dir;;
 
22729
  esac
 
22730
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22731
    as_dirs=
 
22732
    while :; do
 
22733
      case $as_dir in #(
 
22734
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22735
      *) as_qdir=$as_dir;;
 
22736
      esac
 
22737
      as_dirs="'$as_qdir' $as_dirs"
 
22738
      as_dir=`$as_dirname -- "$as_dir" ||
 
22739
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22740
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22741
         X"$as_dir" : 'X\(//\)$' \| \
 
22742
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22743
echo X"$as_dir" |
 
22744
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22745
            s//\1/
 
22746
            q
 
22747
          }
 
22748
          /^X\(\/\/\)[^/].*/{
 
22749
            s//\1/
 
22750
            q
 
22751
          }
 
22752
          /^X\(\/\/\)$/{
 
22753
            s//\1/
 
22754
            q
 
22755
          }
 
22756
          /^X\(\/\).*/{
 
22757
            s//\1/
 
22758
            q
 
22759
          }
 
22760
          s/.*/./; q'`
 
22761
      test -d "$as_dir" && break
 
22762
    done
 
22763
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22764
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22765
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22766
   { (exit 1); exit 1; }; }; }
 
22767
  ac_builddir=.
 
22768
 
 
22769
case "$ac_dir" in
 
22770
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22771
*)
 
22772
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22773
  # A ".." for each directory in $ac_dir_suffix.
 
22774
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
22775
  case $ac_top_builddir_sub in
 
22776
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22777
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
22778
  esac ;;
 
22779
esac
 
22780
ac_abs_top_builddir=$ac_pwd
 
22781
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
22782
# for backward compatibility:
 
22783
ac_top_builddir=$ac_top_build_prefix
 
22784
 
 
22785
case $srcdir in
 
22786
  .)  # We are building in place.
 
22787
    ac_srcdir=.
 
22788
    ac_top_srcdir=$ac_top_builddir_sub
 
22789
    ac_abs_top_srcdir=$ac_pwd ;;
 
22790
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
22791
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22792
    ac_top_srcdir=$srcdir
 
22793
    ac_abs_top_srcdir=$srcdir ;;
 
22794
  *) # Relative name.
 
22795
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
22796
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
22797
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
22798
esac
 
22799
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
22800
 
 
22801
 
 
22802
  case $ac_mode in
 
22803
  :F)
 
22804
  #
 
22805
  # CONFIG_FILE
 
22806
  #
 
22807
 
 
22808
  case $INSTALL in
 
22809
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22810
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
22811
  esac
 
22812
_ACEOF
 
22813
 
 
22814
cat >>$CONFIG_STATUS <<\_ACEOF
 
22815
# If the template does not know about datarootdir, expand it.
 
22816
# FIXME: This hack should be removed a few years after 2.60.
 
22817
ac_datarootdir_hack=; ac_datarootdir_seen=
 
22818
 
 
22819
case `sed -n '/datarootdir/ {
 
22820
  p
 
22821
  q
 
22822
}
 
22823
/@datadir@/p
 
22824
/@docdir@/p
 
22825
/@infodir@/p
 
22826
/@localedir@/p
 
22827
/@mandir@/p
 
22828
' $ac_file_inputs` in
 
22829
*datarootdir*) ac_datarootdir_seen=yes;;
 
22830
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22831
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22832
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22833
_ACEOF
 
22834
cat >>$CONFIG_STATUS <<_ACEOF
 
22835
  ac_datarootdir_hack='
 
22836
  s&@datadir@&$datadir&g
 
22837
  s&@docdir@&$docdir&g
 
22838
  s&@infodir@&$infodir&g
 
22839
  s&@localedir@&$localedir&g
 
22840
  s&@mandir@&$mandir&g
 
22841
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22842
esac
 
22843
_ACEOF
 
22844
 
 
22845
# Neutralize VPATH when `$srcdir' = `.'.
 
22846
# Shell code in configure.ac might set extrasub.
 
22847
# FIXME: do we really want to maintain this feature?
 
22848
cat >>$CONFIG_STATUS <<_ACEOF
 
22849
  sed "$ac_vpsub
 
22850
$extrasub
 
22851
_ACEOF
 
22852
cat >>$CONFIG_STATUS <<\_ACEOF
 
22853
:t
 
22854
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22855
s&@configure_input@&$configure_input&;t t
 
22856
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22857
s&@srcdir@&$ac_srcdir&;t t
 
22858
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22859
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22860
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22861
s&@builddir@&$ac_builddir&;t t
 
22862
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22863
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22864
s&@INSTALL@&$ac_INSTALL&;t t
 
22865
$ac_datarootdir_hack
 
22866
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
 
22867
 
 
22868
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22869
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22870
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22871
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22872
which seems to be undefined.  Please make sure it is defined." >&5
 
22873
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22874
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22875
 
 
22876
  rm -f "$tmp/stdin"
 
22877
  case $ac_file in
 
22878
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
22879
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
22880
  esac
 
22881
 ;;
 
22882
 
 
22883
 
 
22884
 
 
22885
  esac
 
22886
 
 
22887
done # for ac_tag
 
22888
 
 
22889
 
 
22890
{ (exit 0); exit 0; }
 
22891
_ACEOF
 
22892
chmod +x $CONFIG_STATUS
 
22893
ac_clean_files=$ac_clean_files_save
 
22894
 
 
22895
 
 
22896
# configure is writing to config.log, and then calls config.status.
 
22897
# config.status does its own redirection, appending to config.log.
 
22898
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22899
# by configure, so config.status won't be able to write to it; its
 
22900
# output is simply discarded.  So we exec the FD to /dev/null,
 
22901
# effectively closing config.log, so it can be properly (re)opened and
 
22902
# appended to by config.status.  When coming back to configure, we
 
22903
# need to make the FD available again.
 
22904
if test "$no_create" != yes; then
 
22905
  ac_cs_success=:
 
22906
  ac_config_status_args=
 
22907
  test "$silent" = yes &&
 
22908
    ac_config_status_args="$ac_config_status_args --quiet"
 
22909
  exec 5>/dev/null
 
22910
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22911
  exec 5>>config.log
 
22912
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22913
  # would make configure fail if this is the last instruction.
 
22914
  $ac_cs_success || { (exit 1); exit 1; }
 
22915
fi
 
22916
 
 
22917
#
 
22918
# CONFIG_SUBDIRS section.
 
22919
#
 
22920
if test "$no_recursion" != yes; then
 
22921
 
 
22922
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
22923
  ac_sub_configure_args=
 
22924
  ac_prev=
 
22925
  eval "set x $ac_configure_args"
 
22926
  shift
 
22927
  for ac_arg
 
22928
  do
 
22929
    if test -n "$ac_prev"; then
 
22930
      ac_prev=
 
22931
      continue
 
22932
    fi
 
22933
    case $ac_arg in
 
22934
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
22935
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
22936
      ac_prev=cache_file ;;
 
22937
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
22938
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
22939
    | --c=*)
 
22940
      ;;
 
22941
    --config-cache | -C)
 
22942
      ;;
 
22943
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
22944
      ac_prev=srcdir ;;
 
22945
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
22946
      ;;
 
22947
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
22948
      ac_prev=prefix ;;
 
22949
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
22950
      ;;
 
22951
    *)
 
22952
      case $ac_arg in
 
22953
      *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22954
      esac
 
22955
      ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
 
22956
    esac
 
22957
  done
 
22958
 
 
22959
  # Always prepend --prefix to ensure using the same prefix
 
22960
  # in subdir configurations.
 
22961
  ac_arg="--prefix=$prefix"
 
22962
  case $ac_arg in
 
22963
  *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22964
  esac
 
22965
  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
 
22966
 
 
22967
  # Pass --silent
 
22968
  if test "$silent" = yes; then
 
22969
    ac_sub_configure_args="--silent $ac_sub_configure_args"
 
22970
  fi
 
22971
 
 
22972
  ac_popdir=`pwd`
 
22973
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
22974
 
 
22975
    # Do not complain, so a configure script can configure whichever
 
22976
    # parts of a large source tree are present.
 
22977
    test -d "$srcdir/$ac_dir" || continue
 
22978
 
 
22979
    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
 
22980
    echo "$as_me:$LINENO: $ac_msg" >&5
 
22981
    echo "$ac_msg" >&6
 
22982
    { as_dir="$ac_dir"
 
22983
  case $as_dir in #(
 
22984
  -*) as_dir=./$as_dir;;
 
22985
  esac
 
22986
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22987
    as_dirs=
 
22988
    while :; do
 
22989
      case $as_dir in #(
 
22990
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22991
      *) as_qdir=$as_dir;;
 
22992
      esac
 
22993
      as_dirs="'$as_qdir' $as_dirs"
 
22994
      as_dir=`$as_dirname -- "$as_dir" ||
 
22995
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22996
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22997
         X"$as_dir" : 'X\(//\)$' \| \
 
22998
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22999
echo X"$as_dir" |
 
23000
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23001
            s//\1/
 
23002
            q
 
23003
          }
 
23004
          /^X\(\/\/\)[^/].*/{
 
23005
            s//\1/
 
23006
            q
 
23007
          }
 
23008
          /^X\(\/\/\)$/{
 
23009
            s//\1/
 
23010
            q
 
23011
          }
 
23012
          /^X\(\/\).*/{
 
23013
            s//\1/
 
23014
            q
 
23015
          }
 
23016
          s/.*/./; q'`
 
23017
      test -d "$as_dir" && break
 
23018
    done
 
23019
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23020
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23021
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23022
   { (exit 1); exit 1; }; }; }
 
23023
    ac_builddir=.
 
23024
 
 
23025
case "$ac_dir" in
 
23026
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23027
*)
 
23028
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23029
  # A ".." for each directory in $ac_dir_suffix.
 
23030
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
23031
  case $ac_top_builddir_sub in
 
23032
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23033
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23034
  esac ;;
 
23035
esac
 
23036
ac_abs_top_builddir=$ac_pwd
 
23037
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23038
# for backward compatibility:
 
23039
ac_top_builddir=$ac_top_build_prefix
 
23040
 
 
23041
case $srcdir in
 
23042
  .)  # We are building in place.
 
23043
    ac_srcdir=.
 
23044
    ac_top_srcdir=$ac_top_builddir_sub
 
23045
    ac_abs_top_srcdir=$ac_pwd ;;
 
23046
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23047
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23048
    ac_top_srcdir=$srcdir
 
23049
    ac_abs_top_srcdir=$srcdir ;;
 
23050
  *) # Relative name.
 
23051
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23052
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23053
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23054
esac
 
23055
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23056
 
 
23057
 
 
23058
    cd "$ac_dir"
 
23059
 
 
23060
    # Check for guested configure; otherwise get Cygnus style configure.
 
23061
    if test -f "$ac_srcdir/configure.gnu"; then
 
23062
      ac_sub_configure=$ac_srcdir/configure.gnu
 
23063
    elif test -f "$ac_srcdir/configure"; then
 
23064
      ac_sub_configure=$ac_srcdir/configure
 
23065
    elif test -f "$ac_srcdir/configure.in"; then
 
23066
      # This should be Cygnus configure.
 
23067
      ac_sub_configure=$ac_aux_dir/configure
 
23068
    else
 
23069
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
23070
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
23071
      ac_sub_configure=
 
23072
    fi
 
23073
 
 
23074
    # The recursion is here.
 
23075
    if test -n "$ac_sub_configure"; then
 
23076
      # Make the cache file name correct relative to the subdirectory.
 
23077
      case $cache_file in
 
23078
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
23079
      *) # Relative name.
 
23080
        ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
 
23081
      esac
 
23082
 
 
23083
      { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
23084
echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
23085
      # The eval makes quoting arguments work.
 
23086
      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
 
23087
           --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
 
23088
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
23089
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
23090
   { (exit 1); exit 1; }; }
 
23091
    fi
 
23092
 
 
23093
    cd "$ac_popdir"
 
23094
  done
 
23095
fi