~ubuntu-branches/ubuntu/intrepid/ghostscript/intrepid-updates

« back to all changes in this revision

Viewing changes to ijs/autom4te.cache/output.1

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2007-08-13 21:49:58 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20070813214958-ro9nbb3fmvzlr7q3
Tags: 8.61.dfsg.1~svn8187-0ubuntu1
New upstream release
o SVN snapshot rev 8187
o CJK patches from Koji Otani to fix several issues with CJK text
(should fix http://bugs.ghostscript.com/show_bug.cgi?id=689304).
These patches were also applied to ESP Ghostscript and having them
in Gutsy's GPL GS will avoide regressions against Feisty's ESP GS.
o Minor bug fixes from upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
@%:@! /bin/sh
2
 
@%:@ From configure.ac Revision: 5783 .
3
 
@%:@ Guess values for system-dependent variables and create Makefiles.
4
 
@%:@ Generated by GNU Autoconf 2.61 for ijs 0.35.
5
 
@%:@
6
 
@%:@ Report bugs to <inkjet-list@linuxprinting.org>.
7
 
@%:@ 
8
 
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
 
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10
 
@%:@ This configure script is free software; the Free Software Foundation
11
 
@%:@ gives unlimited permission to copy, distribute and modify it.
12
 
## --------------------- ##
13
 
## M4sh Initialization.  ##
14
 
## --------------------- ##
15
 
 
16
 
# Be more Bourne compatible
17
 
DUALCASE=1; export DUALCASE # for MKS sh
18
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19
 
  emulate sh
20
 
  NULLCMD=:
21
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22
 
  # is contrary to our usage.  Disable this feature.
23
 
  alias -g '${1+"$@"}'='"$@"'
24
 
  setopt NO_GLOB_SUBST
25
 
else
26
 
  case `(set -o) 2>/dev/null` in
27
 
  *posix*) set -o posix ;;
28
 
esac
29
 
 
30
 
fi
31
 
 
32
 
 
33
 
 
34
 
 
35
 
# PATH needs CR
36
 
# Avoid depending upon Character Ranges.
37
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40
 
as_cr_digits='0123456789'
41
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
 
 
43
 
# The user is always right.
44
 
if test "${PATH_SEPARATOR+set}" != set; then
45
 
  echo "#! /bin/sh" >conf$$.sh
46
 
  echo  "exit 0"   >>conf$$.sh
47
 
  chmod +x conf$$.sh
48
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49
 
    PATH_SEPARATOR=';'
50
 
  else
51
 
    PATH_SEPARATOR=:
52
 
  fi
53
 
  rm -f conf$$.sh
54
 
fi
55
 
 
56
 
# Support unset when possible.
57
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58
 
  as_unset=unset
59
 
else
60
 
  as_unset=false
61
 
fi
62
 
 
63
 
 
64
 
# IFS
65
 
# We need space, tab and new line, in precisely that order.  Quoting is
66
 
# there to prevent editors from complaining about space-tab.
67
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68
 
# splitting by setting IFS to empty value.)
69
 
as_nl='
70
 
'
71
 
IFS=" ""        $as_nl"
72
 
 
73
 
# Find who we are.  Look in the path if we contain no directory separator.
74
 
case $0 in
75
 
  *[\\/]* ) as_myself=$0 ;;
76
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
 
for as_dir in $PATH
78
 
do
79
 
  IFS=$as_save_IFS
80
 
  test -z "$as_dir" && as_dir=.
81
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82
 
done
83
 
IFS=$as_save_IFS
84
 
 
85
 
     ;;
86
 
esac
87
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
88
 
# in which case we are not to be found in the path.
89
 
if test "x$as_myself" = x; then
90
 
  as_myself=$0
91
 
fi
92
 
if test ! -f "$as_myself"; then
93
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
 
  { (exit 1); exit 1; }
95
 
fi
96
 
 
97
 
# Work around bugs in pre-3.0 UWIN ksh.
98
 
for as_var in ENV MAIL MAILPATH
99
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100
 
done
101
 
PS1='$ '
102
 
PS2='> '
103
 
PS4='+ '
104
 
 
105
 
# NLS nuisances.
106
 
for as_var in \
107
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109
 
  LC_TELEPHONE LC_TIME
110
 
do
111
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112
 
    eval $as_var=C; export $as_var
113
 
  else
114
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
 
  fi
116
 
done
117
 
 
118
 
# Required to use basename.
119
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
120
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121
 
  as_expr=expr
122
 
else
123
 
  as_expr=false
124
 
fi
125
 
 
126
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127
 
  as_basename=basename
128
 
else
129
 
  as_basename=false
130
 
fi
131
 
 
132
 
 
133
 
# Name of the executable.
134
 
as_me=`$as_basename -- "$0" ||
135
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136
 
         X"$0" : 'X\(//\)$' \| \
137
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
 
echo X/"$0" |
139
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
140
 
            s//\1/
141
 
            q
142
 
          }
143
 
          /^X\/\(\/\/\)$/{
144
 
            s//\1/
145
 
            q
146
 
          }
147
 
          /^X\/\(\/\).*/{
148
 
            s//\1/
149
 
            q
150
 
          }
151
 
          s/.*/./; q'`
152
 
 
153
 
# CDPATH.
154
 
$as_unset CDPATH
155
 
 
156
 
 
157
 
if test "x$CONFIG_SHELL" = x; then
158
 
  if (eval ":") 2>/dev/null; then
159
 
  as_have_required=yes
160
 
else
161
 
  as_have_required=no
162
 
fi
163
 
 
164
 
  if test $as_have_required = yes &&     (eval ":
165
 
(as_func_return () {
166
 
  (exit \$1)
167
 
}
168
 
as_func_success () {
169
 
  as_func_return 0
170
 
}
171
 
as_func_failure () {
172
 
  as_func_return 1
173
 
}
174
 
as_func_ret_success () {
175
 
  return 0
176
 
}
177
 
as_func_ret_failure () {
178
 
  return 1
179
 
}
180
 
 
181
 
exitcode=0
182
 
if as_func_success; then
183
 
  :
184
 
else
185
 
  exitcode=1
186
 
  echo as_func_success failed.
187
 
fi
188
 
 
189
 
if as_func_failure; then
190
 
  exitcode=1
191
 
  echo as_func_failure succeeded.
192
 
fi
193
 
 
194
 
if as_func_ret_success; then
195
 
  :
196
 
else
197
 
  exitcode=1
198
 
  echo as_func_ret_success failed.
199
 
fi
200
 
 
201
 
if as_func_ret_failure; then
202
 
  exitcode=1
203
 
  echo as_func_ret_failure succeeded.
204
 
fi
205
 
 
206
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
 
  :
208
 
else
209
 
  exitcode=1
210
 
  echo positional parameters were not saved.
211
 
fi
212
 
 
213
 
test \$exitcode = 0) || { (exit 1); exit 1; }
214
 
 
215
 
(
216
 
  as_lineno_1=\$LINENO
217
 
  as_lineno_2=\$LINENO
218
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220
 
") 2> /dev/null; then
221
 
  :
222
 
else
223
 
  as_candidate_shells=
224
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226
 
do
227
 
  IFS=$as_save_IFS
228
 
  test -z "$as_dir" && as_dir=.
229
 
  case $as_dir in
230
 
         /*)
231
 
           for as_base in sh bash ksh sh5; do
232
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233
 
           done;;
234
 
       esac
235
 
done
236
 
IFS=$as_save_IFS
237
 
 
238
 
 
239
 
      for as_shell in $as_candidate_shells $SHELL; do
240
 
         # Try only shells that exist, to save several forks.
241
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
243
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244
 
  emulate sh
245
 
  NULLCMD=:
246
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247
 
  # is contrary to our usage.  Disable this feature.
248
 
  alias -g '${1+"$@"}'='"$@"'
249
 
  setopt NO_GLOB_SUBST
250
 
else
251
 
  case `(set -o) 2>/dev/null` in
252
 
  *posix*) set -o posix ;;
253
 
esac
254
 
 
255
 
fi
256
 
 
257
 
 
258
 
:
259
 
_ASEOF
260
 
}; then
261
 
  CONFIG_SHELL=$as_shell
262
 
               as_have_required=yes
263
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
264
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265
 
  emulate sh
266
 
  NULLCMD=:
267
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268
 
  # is contrary to our usage.  Disable this feature.
269
 
  alias -g '${1+"$@"}'='"$@"'
270
 
  setopt NO_GLOB_SUBST
271
 
else
272
 
  case `(set -o) 2>/dev/null` in
273
 
  *posix*) set -o posix ;;
274
 
esac
275
 
 
276
 
fi
277
 
 
278
 
 
279
 
:
280
 
(as_func_return () {
281
 
  (exit $1)
282
 
}
283
 
as_func_success () {
284
 
  as_func_return 0
285
 
}
286
 
as_func_failure () {
287
 
  as_func_return 1
288
 
}
289
 
as_func_ret_success () {
290
 
  return 0
291
 
}
292
 
as_func_ret_failure () {
293
 
  return 1
294
 
}
295
 
 
296
 
exitcode=0
297
 
if as_func_success; then
298
 
  :
299
 
else
300
 
  exitcode=1
301
 
  echo as_func_success failed.
302
 
fi
303
 
 
304
 
if as_func_failure; then
305
 
  exitcode=1
306
 
  echo as_func_failure succeeded.
307
 
fi
308
 
 
309
 
if as_func_ret_success; then
310
 
  :
311
 
else
312
 
  exitcode=1
313
 
  echo as_func_ret_success failed.
314
 
fi
315
 
 
316
 
if as_func_ret_failure; then
317
 
  exitcode=1
318
 
  echo as_func_ret_failure succeeded.
319
 
fi
320
 
 
321
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
 
  :
323
 
else
324
 
  exitcode=1
325
 
  echo positional parameters were not saved.
326
 
fi
327
 
 
328
 
test $exitcode = 0) || { (exit 1); exit 1; }
329
 
 
330
 
(
331
 
  as_lineno_1=$LINENO
332
 
  as_lineno_2=$LINENO
333
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
334
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
 
 
336
 
_ASEOF
337
 
}; then
338
 
  break
339
 
fi
340
 
 
341
 
fi
342
 
 
343
 
      done
344
 
 
345
 
      if test "x$CONFIG_SHELL" != x; then
346
 
  for as_var in BASH_ENV ENV
347
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348
 
        done
349
 
        export CONFIG_SHELL
350
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
 
fi
352
 
 
353
 
 
354
 
    if test $as_have_required = no; then
355
 
  echo This script requires a shell more modern than all the
356
 
      echo shells that I found on your system.  Please install a
357
 
      echo modern shell, or manually run the script under such a
358
 
      echo shell if you do have one.
359
 
      { (exit 1); exit 1; }
360
 
fi
361
 
 
362
 
    
363
 
fi
364
 
 
365
 
fi
366
 
 
367
 
 
368
 
 
369
 
(eval "as_func_return () {
370
 
  (exit \$1)
371
 
}
372
 
as_func_success () {
373
 
  as_func_return 0
374
 
}
375
 
as_func_failure () {
376
 
  as_func_return 1
377
 
}
378
 
as_func_ret_success () {
379
 
  return 0
380
 
}
381
 
as_func_ret_failure () {
382
 
  return 1
383
 
}
384
 
 
385
 
exitcode=0
386
 
if as_func_success; then
387
 
  :
388
 
else
389
 
  exitcode=1
390
 
  echo as_func_success failed.
391
 
fi
392
 
 
393
 
if as_func_failure; then
394
 
  exitcode=1
395
 
  echo as_func_failure succeeded.
396
 
fi
397
 
 
398
 
if as_func_ret_success; then
399
 
  :
400
 
else
401
 
  exitcode=1
402
 
  echo as_func_ret_success failed.
403
 
fi
404
 
 
405
 
if as_func_ret_failure; then
406
 
  exitcode=1
407
 
  echo as_func_ret_failure succeeded.
408
 
fi
409
 
 
410
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
 
  :
412
 
else
413
 
  exitcode=1
414
 
  echo positional parameters were not saved.
415
 
fi
416
 
 
417
 
test \$exitcode = 0") || {
418
 
  echo No shell found that supports shell functions.
419
 
  echo Please tell autoconf@gnu.org about your system,
420
 
  echo including any error possibly output before this
421
 
  echo message
422
 
}
423
 
 
424
 
 
425
 
 
426
 
  as_lineno_1=$LINENO
427
 
  as_lineno_2=$LINENO
428
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
429
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
 
 
431
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
433
 
  # line-number line after each line using $LINENO; the second 'sed'
434
 
  # does the real work.  The second script uses 'N' to pair each
435
 
  # line-number line with the line containing $LINENO, and appends
436
 
  # trailing '-' during substitution so that $LINENO is not a special
437
 
  # case at line end.
438
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
441
 
  sed -n '
442
 
    p
443
 
    /[$]LINENO/=
444
 
  ' <$as_myself |
445
 
    sed '
446
 
      s/[$]LINENO.*/&-/
447
 
      t lineno
448
 
      b
449
 
      :lineno
450
 
      N
451
 
      :loop
452
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
 
      t loop
454
 
      s/-\n.*//
455
 
    ' >$as_me.lineno &&
456
 
  chmod +x "$as_me.lineno" ||
457
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458
 
   { (exit 1); exit 1; }; }
459
 
 
460
 
  # Don't try to exec as it changes $[0], causing all sort of problems
461
 
  # (the dirname of $[0] is not the place where we might find the
462
 
  # original and so on.  Autoconf is especially sensitive to this).
463
 
  . "./$as_me.lineno"
464
 
  # Exit status is that of the last command.
465
 
  exit
466
 
}
467
 
 
468
 
 
469
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470
 
  as_dirname=dirname
471
 
else
472
 
  as_dirname=false
473
 
fi
474
 
 
475
 
ECHO_C= ECHO_N= ECHO_T=
476
 
case `echo -n x` in
477
 
-n*)
478
 
  case `echo 'x\c'` in
479
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480
 
  *)   ECHO_C='\c';;
481
 
  esac;;
482
 
*)
483
 
  ECHO_N='-n';;
484
 
esac
485
 
 
486
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
487
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488
 
  as_expr=expr
489
 
else
490
 
  as_expr=false
491
 
fi
492
 
 
493
 
rm -f conf$$ conf$$.exe conf$$.file
494
 
if test -d conf$$.dir; then
495
 
  rm -f conf$$.dir/conf$$.file
496
 
else
497
 
  rm -f conf$$.dir
498
 
  mkdir conf$$.dir
499
 
fi
500
 
echo >conf$$.file
501
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
 
  as_ln_s='ln -s'
503
 
  # ... but there are two gotchas:
504
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506
 
  # In both cases, we have to default to `cp -p'.
507
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
 
    as_ln_s='cp -p'
509
 
elif ln conf$$.file conf$$ 2>/dev/null; then
510
 
  as_ln_s=ln
511
 
else
512
 
  as_ln_s='cp -p'
513
 
fi
514
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515
 
rmdir conf$$.dir 2>/dev/null
516
 
 
517
 
if mkdir -p . 2>/dev/null; then
518
 
  as_mkdir_p=:
519
 
else
520
 
  test -d ./-p && rmdir ./-p
521
 
  as_mkdir_p=false
522
 
fi
523
 
 
524
 
if test -x / >/dev/null 2>&1; then
525
 
  as_test_x='test -x'
526
 
else
527
 
  if ls -dL / >/dev/null 2>&1; then
528
 
    as_ls_L_option=L
529
 
  else
530
 
    as_ls_L_option=
531
 
  fi
532
 
  as_test_x='
533
 
    eval sh -c '\''
534
 
      if test -d "$1"; then
535
 
        test -d "$1/.";
536
 
      else
537
 
        case $1 in
538
 
        -*)set "./$1";;
539
 
        esac;
540
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541
 
        ???[sx]*):;;*)false;;esac;fi
542
 
    '\'' sh
543
 
  '
544
 
fi
545
 
as_executable_p=$as_test_x
546
 
 
547
 
# Sed expression to map a string onto a valid CPP name.
548
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
 
 
550
 
# Sed expression to map a string onto a valid variable name.
551
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
 
 
553
 
 
554
 
 
555
 
 
556
 
# Check that we are running under the correct shell.
557
 
SHELL=${CONFIG_SHELL-/bin/sh}
558
 
 
559
 
case X$ECHO in
560
 
X*--fallback-echo)
561
 
  # Remove one level of quotation (which was required for Make).
562
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563
 
  ;;
564
 
esac
565
 
 
566
 
echo=${ECHO-echo}
567
 
if test "X$1" = X--no-reexec; then
568
 
  # Discard the --no-reexec flag, and continue.
569
 
  shift
570
 
elif test "X$1" = X--fallback-echo; then
571
 
  # Avoid inline document here, it may be left over
572
 
  :
573
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574
 
  # Yippee, $echo works!
575
 
  :
576
 
else
577
 
  # Restart under the correct shell.
578
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
579
 
fi
580
 
 
581
 
if test "X$1" = X--fallback-echo; then
582
 
  # used as fallback echo
583
 
  shift
584
 
  cat <<EOF
585
 
$*
586
 
EOF
587
 
  exit 0
588
 
fi
589
 
 
590
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
 
# if CDPATH is set.
592
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
 
 
594
 
if test -z "$ECHO"; then
595
 
if test "X${echo_test_string+set}" != Xset; then
596
 
# find a string as large as possible, as long as the shell can cope with it
597
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600
 
       echo_test_string=`eval $cmd` &&
601
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602
 
    then
603
 
      break
604
 
    fi
605
 
  done
606
 
fi
607
 
 
608
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
611
 
  :
612
 
else
613
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
614
 
  # backslashes.  This makes it impossible to quote backslashes using
615
 
  #   echo "$something" | sed 's/\\/\\\\/g'
616
 
  #
617
 
  # So, first we look for a working echo in the user's PATH.
618
 
 
619
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620
 
  for dir in $PATH /usr/ucb; do
621
 
    IFS="$lt_save_ifs"
622
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
626
 
      echo="$dir/echo"
627
 
      break
628
 
    fi
629
 
  done
630
 
  IFS="$lt_save_ifs"
631
 
 
632
 
  if test "X$echo" = Xecho; then
633
 
    # We didn't find a better echo, so look for alternatives.
634
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
637
 
      # This shell has a builtin print -r that does the trick.
638
 
      echo='print -r'
639
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
641
 
      # If we have ksh, try running configure again with it.
642
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643
 
      export ORIGINAL_CONFIG_SHELL
644
 
      CONFIG_SHELL=/bin/ksh
645
 
      export CONFIG_SHELL
646
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
 
    else
648
 
      # Try using printf.
649
 
      echo='printf %s\n'
650
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
653
 
        # Cool, printf works
654
 
        :
655
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656
 
           test "X$echo_testing_string" = 'X\t' &&
657
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
659
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660
 
        export CONFIG_SHELL
661
 
        SHELL="$CONFIG_SHELL"
662
 
        export SHELL
663
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
664
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665
 
           test "X$echo_testing_string" = 'X\t' &&
666
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
668
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
669
 
      else
670
 
        # maybe with a smaller string...
671
 
        prev=:
672
 
 
673
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675
 
          then
676
 
            break
677
 
          fi
678
 
          prev="$cmd"
679
 
        done
680
 
 
681
 
        if test "$prev" != 'sed 50q "$0"'; then
682
 
          echo_test_string=`eval $prev`
683
 
          export echo_test_string
684
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685
 
        else
686
 
          # Oops.  We lost completely, so just stick with echo.
687
 
          echo=echo
688
 
        fi
689
 
      fi
690
 
    fi
691
 
  fi
692
 
fi
693
 
fi
694
 
 
695
 
# Copy echo and quote the copy suitably for passing to libtool from
696
 
# the Makefile, instead of quoting the original, which is used later.
697
 
ECHO=$echo
698
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700
 
fi
701
 
 
702
 
 
703
 
 
704
 
 
705
 
tagnames=${tagnames+${tagnames},}CXX
706
 
 
707
 
tagnames=${tagnames+${tagnames},}F77
708
 
 
709
 
exec 7<&0 </dev/null 6>&1
710
 
 
711
 
# Name of the host.
712
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713
 
# so uname gets run too.
714
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
 
 
716
 
#
717
 
# Initializations.
718
 
#
719
 
ac_default_prefix=/usr/local
720
 
ac_clean_files=
721
 
ac_config_libobj_dir=.
722
 
LIB@&t@OBJS=
723
 
cross_compiling=no
724
 
subdirs=
725
 
MFLAGS=
726
 
MAKEFLAGS=
727
 
SHELL=${CONFIG_SHELL-/bin/sh}
728
 
 
729
 
# Identity of this package.
730
 
PACKAGE_NAME='ijs'
731
 
PACKAGE_TARNAME='ijs'
732
 
PACKAGE_VERSION='0.35'
733
 
PACKAGE_STRING='ijs 0.35'
734
 
PACKAGE_BUGREPORT='inkjet-list@linuxprinting.org'
735
 
 
736
 
ac_unique_file="ijs.c"
737
 
# Factoring default headers for most tests.
738
 
ac_includes_default="\
739
 
#include <stdio.h>
740
 
#ifdef HAVE_SYS_TYPES_H
741
 
# include <sys/types.h>
742
 
#endif
743
 
#ifdef HAVE_SYS_STAT_H
744
 
# include <sys/stat.h>
745
 
#endif
746
 
#ifdef STDC_HEADERS
747
 
# include <stdlib.h>
748
 
# include <stddef.h>
749
 
#else
750
 
# ifdef HAVE_STDLIB_H
751
 
#  include <stdlib.h>
752
 
# endif
753
 
#endif
754
 
#ifdef HAVE_STRING_H
755
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
756
 
#  include <memory.h>
757
 
# endif
758
 
# include <string.h>
759
 
#endif
760
 
#ifdef HAVE_STRINGS_H
761
 
# include <strings.h>
762
 
#endif
763
 
#ifdef HAVE_INTTYPES_H
764
 
# include <inttypes.h>
765
 
#endif
766
 
#ifdef HAVE_STDINT_H
767
 
# include <stdint.h>
768
 
#endif
769
 
#ifdef HAVE_UNISTD_H
770
 
# include <unistd.h>
771
 
#endif"
772
 
 
773
 
ac_subst_vars='SHELL
774
 
PATH_SEPARATOR
775
 
PACKAGE_NAME
776
 
PACKAGE_TARNAME
777
 
PACKAGE_VERSION
778
 
PACKAGE_STRING
779
 
PACKAGE_BUGREPORT
780
 
exec_prefix
781
 
prefix
782
 
program_transform_name
783
 
bindir
784
 
sbindir
785
 
libexecdir
786
 
datarootdir
787
 
datadir
788
 
sysconfdir
789
 
sharedstatedir
790
 
localstatedir
791
 
includedir
792
 
oldincludedir
793
 
docdir
794
 
infodir
795
 
htmldir
796
 
dvidir
797
 
pdfdir
798
 
psdir
799
 
libdir
800
 
localedir
801
 
mandir
802
 
DEFS
803
 
ECHO_C
804
 
ECHO_N
805
 
ECHO_T
806
 
LIBS
807
 
build_alias
808
 
host_alias
809
 
target_alias
810
 
INSTALL_PROGRAM
811
 
INSTALL_SCRIPT
812
 
INSTALL_DATA
813
 
am__isrc
814
 
CYGPATH_W
815
 
PACKAGE
816
 
VERSION
817
 
ACLOCAL
818
 
AUTOCONF
819
 
AUTOMAKE
820
 
AUTOHEADER
821
 
MAKEINFO
822
 
install_sh
823
 
STRIP
824
 
INSTALL_STRIP_PROGRAM
825
 
mkdir_p
826
 
AWK
827
 
SET_MAKE
828
 
am__leading_dot
829
 
AMTAR
830
 
am__tar
831
 
am__untar
832
 
IJS_MAJOR_VERSION
833
 
IJS_MINOR_VERSION
834
 
IJS_CURRENT_INTERFACE
835
 
IJS_INTERFACE_AGE
836
 
IJS_BINARY_AGE
837
 
IJS_VERSION
838
 
LT_RELEASE
839
 
LT_CURRENT
840
 
LT_REVISION
841
 
LT_AGE
842
 
build
843
 
build_cpu
844
 
build_vendor
845
 
build_os
846
 
host
847
 
host_cpu
848
 
host_vendor
849
 
host_os
850
 
CC
851
 
CFLAGS
852
 
LDFLAGS
853
 
CPPFLAGS
854
 
ac_ct_CC
855
 
EXEEXT
856
 
OBJEXT
857
 
DEPDIR
858
 
am__include
859
 
am__quote
860
 
AMDEP_TRUE
861
 
AMDEP_FALSE
862
 
AMDEPBACKSLASH
863
 
CCDEPMODE
864
 
am__fastdepCC_TRUE
865
 
am__fastdepCC_FALSE
866
 
GREP
867
 
EGREP
868
 
LN_S
869
 
ECHO
870
 
AR
871
 
RANLIB
872
 
CPP
873
 
CXX
874
 
CXXFLAGS
875
 
ac_ct_CXX
876
 
CXXDEPMODE
877
 
am__fastdepCXX_TRUE
878
 
am__fastdepCXX_FALSE
879
 
CXXCPP
880
 
F77
881
 
FFLAGS
882
 
ac_ct_F77
883
 
LIBTOOL
884
 
LIBTOOL_DEPS
885
 
DB2PS
886
 
PS2PDF
887
 
SYSDEPS_WINDOWS_TRUE
888
 
SYSDEPS_WINDOWS_FALSE
889
 
IJS_CFLAGS
890
 
IJS_LIBS
891
 
IJS_DEPLIBS
892
 
ijs_cflags
893
 
ijs_libs
894
 
INCLUDES
895
 
LIBIJS_LIBS
896
 
LIB@&t@OBJS
897
 
LTLIBOBJS'
898
 
ac_subst_files=''
899
 
      ac_precious_vars='build_alias
900
 
host_alias
901
 
target_alias
902
 
CC
903
 
CFLAGS
904
 
LDFLAGS
905
 
LIBS
906
 
CPPFLAGS
907
 
CPP
908
 
CXX
909
 
CXXFLAGS
910
 
CCC
911
 
CXXCPP
912
 
F77
913
 
FFLAGS'
914
 
 
915
 
 
916
 
# Initialize some variables set by options.
917
 
ac_init_help=
918
 
ac_init_version=false
919
 
# The variables have the same names as the options, with
920
 
# dashes changed to underlines.
921
 
cache_file=/dev/null
922
 
exec_prefix=NONE
923
 
no_create=
924
 
no_recursion=
925
 
prefix=NONE
926
 
program_prefix=NONE
927
 
program_suffix=NONE
928
 
program_transform_name=s,x,x,
929
 
silent=
930
 
site=
931
 
srcdir=
932
 
verbose=
933
 
x_includes=NONE
934
 
x_libraries=NONE
935
 
 
936
 
# Installation directory options.
937
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
938
 
# and all the variables that are supposed to be based on exec_prefix
939
 
# by default will actually change.
940
 
# Use braces instead of parens because sh, perl, etc. also accept them.
941
 
# (The list follows the same order as the GNU Coding Standards.)
942
 
bindir='${exec_prefix}/bin'
943
 
sbindir='${exec_prefix}/sbin'
944
 
libexecdir='${exec_prefix}/libexec'
945
 
datarootdir='${prefix}/share'
946
 
datadir='${datarootdir}'
947
 
sysconfdir='${prefix}/etc'
948
 
sharedstatedir='${prefix}/com'
949
 
localstatedir='${prefix}/var'
950
 
includedir='${prefix}/include'
951
 
oldincludedir='/usr/include'
952
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
953
 
infodir='${datarootdir}/info'
954
 
htmldir='${docdir}'
955
 
dvidir='${docdir}'
956
 
pdfdir='${docdir}'
957
 
psdir='${docdir}'
958
 
libdir='${exec_prefix}/lib'
959
 
localedir='${datarootdir}/locale'
960
 
mandir='${datarootdir}/man'
961
 
 
962
 
ac_prev=
963
 
ac_dashdash=
964
 
for ac_option
965
 
do
966
 
  # If the previous option needs an argument, assign it.
967
 
  if test -n "$ac_prev"; then
968
 
    eval $ac_prev=\$ac_option
969
 
    ac_prev=
970
 
    continue
971
 
  fi
972
 
 
973
 
  case $ac_option in
974
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975
 
  *)    ac_optarg=yes ;;
976
 
  esac
977
 
 
978
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
979
 
 
980
 
  case $ac_dashdash$ac_option in
981
 
  --)
982
 
    ac_dashdash=yes ;;
983
 
 
984
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
985
 
    ac_prev=bindir ;;
986
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987
 
    bindir=$ac_optarg ;;
988
 
 
989
 
  -build | --build | --buil | --bui | --bu)
990
 
    ac_prev=build_alias ;;
991
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
992
 
    build_alias=$ac_optarg ;;
993
 
 
994
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
995
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
996
 
    ac_prev=cache_file ;;
997
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
998
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
999
 
    cache_file=$ac_optarg ;;
1000
 
 
1001
 
  --config-cache | -C)
1002
 
    cache_file=config.cache ;;
1003
 
 
1004
 
  -datadir | --datadir | --datadi | --datad)
1005
 
    ac_prev=datadir ;;
1006
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1007
 
    datadir=$ac_optarg ;;
1008
 
 
1009
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1010
 
  | --dataroo | --dataro | --datar)
1011
 
    ac_prev=datarootdir ;;
1012
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1013
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1014
 
    datarootdir=$ac_optarg ;;
1015
 
 
1016
 
  -disable-* | --disable-*)
1017
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1018
 
    # Reject names that are not valid shell variable names.
1019
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1020
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1021
 
   { (exit 1); exit 1; }; }
1022
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1023
 
    eval enable_$ac_feature=no ;;
1024
 
 
1025
 
  -docdir | --docdir | --docdi | --doc | --do)
1026
 
    ac_prev=docdir ;;
1027
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028
 
    docdir=$ac_optarg ;;
1029
 
 
1030
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031
 
    ac_prev=dvidir ;;
1032
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033
 
    dvidir=$ac_optarg ;;
1034
 
 
1035
 
  -enable-* | --enable-*)
1036
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037
 
    # Reject names that are not valid shell variable names.
1038
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1039
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1040
 
   { (exit 1); exit 1; }; }
1041
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1042
 
    eval enable_$ac_feature=\$ac_optarg ;;
1043
 
 
1044
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046
 
  | --exec | --exe | --ex)
1047
 
    ac_prev=exec_prefix ;;
1048
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050
 
  | --exec=* | --exe=* | --ex=*)
1051
 
    exec_prefix=$ac_optarg ;;
1052
 
 
1053
 
  -gas | --gas | --ga | --g)
1054
 
    # Obsolete; use --with-gas.
1055
 
    with_gas=yes ;;
1056
 
 
1057
 
  -help | --help | --hel | --he | -h)
1058
 
    ac_init_help=long ;;
1059
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060
 
    ac_init_help=recursive ;;
1061
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062
 
    ac_init_help=short ;;
1063
 
 
1064
 
  -host | --host | --hos | --ho)
1065
 
    ac_prev=host_alias ;;
1066
 
  -host=* | --host=* | --hos=* | --ho=*)
1067
 
    host_alias=$ac_optarg ;;
1068
 
 
1069
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070
 
    ac_prev=htmldir ;;
1071
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072
 
  | --ht=*)
1073
 
    htmldir=$ac_optarg ;;
1074
 
 
1075
 
  -includedir | --includedir | --includedi | --included | --include \
1076
 
  | --includ | --inclu | --incl | --inc)
1077
 
    ac_prev=includedir ;;
1078
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1080
 
    includedir=$ac_optarg ;;
1081
 
 
1082
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1083
 
    ac_prev=infodir ;;
1084
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085
 
    infodir=$ac_optarg ;;
1086
 
 
1087
 
  -libdir | --libdir | --libdi | --libd)
1088
 
    ac_prev=libdir ;;
1089
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090
 
    libdir=$ac_optarg ;;
1091
 
 
1092
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093
 
  | --libexe | --libex | --libe)
1094
 
    ac_prev=libexecdir ;;
1095
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096
 
  | --libexe=* | --libex=* | --libe=*)
1097
 
    libexecdir=$ac_optarg ;;
1098
 
 
1099
 
  -localedir | --localedir | --localedi | --localed | --locale)
1100
 
    ac_prev=localedir ;;
1101
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102
 
    localedir=$ac_optarg ;;
1103
 
 
1104
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1105
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1106
 
    ac_prev=localstatedir ;;
1107
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109
 
    localstatedir=$ac_optarg ;;
1110
 
 
1111
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112
 
    ac_prev=mandir ;;
1113
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114
 
    mandir=$ac_optarg ;;
1115
 
 
1116
 
  -nfp | --nfp | --nf)
1117
 
    # Obsolete; use --without-fp.
1118
 
    with_fp=no ;;
1119
 
 
1120
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121
 
  | --no-cr | --no-c | -n)
1122
 
    no_create=yes ;;
1123
 
 
1124
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126
 
    no_recursion=yes ;;
1127
 
 
1128
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130
 
  | --oldin | --oldi | --old | --ol | --o)
1131
 
    ac_prev=oldincludedir ;;
1132
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135
 
    oldincludedir=$ac_optarg ;;
1136
 
 
1137
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138
 
    ac_prev=prefix ;;
1139
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140
 
    prefix=$ac_optarg ;;
1141
 
 
1142
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143
 
  | --program-pre | --program-pr | --program-p)
1144
 
    ac_prev=program_prefix ;;
1145
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147
 
    program_prefix=$ac_optarg ;;
1148
 
 
1149
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150
 
  | --program-suf | --program-su | --program-s)
1151
 
    ac_prev=program_suffix ;;
1152
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154
 
    program_suffix=$ac_optarg ;;
1155
 
 
1156
 
  -program-transform-name | --program-transform-name \
1157
 
  | --program-transform-nam | --program-transform-na \
1158
 
  | --program-transform-n | --program-transform- \
1159
 
  | --program-transform | --program-transfor \
1160
 
  | --program-transfo | --program-transf \
1161
 
  | --program-trans | --program-tran \
1162
 
  | --progr-tra | --program-tr | --program-t)
1163
 
    ac_prev=program_transform_name ;;
1164
 
  -program-transform-name=* | --program-transform-name=* \
1165
 
  | --program-transform-nam=* | --program-transform-na=* \
1166
 
  | --program-transform-n=* | --program-transform-=* \
1167
 
  | --program-transform=* | --program-transfor=* \
1168
 
  | --program-transfo=* | --program-transf=* \
1169
 
  | --program-trans=* | --program-tran=* \
1170
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1171
 
    program_transform_name=$ac_optarg ;;
1172
 
 
1173
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174
 
    ac_prev=pdfdir ;;
1175
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176
 
    pdfdir=$ac_optarg ;;
1177
 
 
1178
 
  -psdir | --psdir | --psdi | --psd | --ps)
1179
 
    ac_prev=psdir ;;
1180
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181
 
    psdir=$ac_optarg ;;
1182
 
 
1183
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184
 
  | -silent | --silent | --silen | --sile | --sil)
1185
 
    silent=yes ;;
1186
 
 
1187
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188
 
    ac_prev=sbindir ;;
1189
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190
 
  | --sbi=* | --sb=*)
1191
 
    sbindir=$ac_optarg ;;
1192
 
 
1193
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195
 
  | --sharedst | --shareds | --shared | --share | --shar \
1196
 
  | --sha | --sh)
1197
 
    ac_prev=sharedstatedir ;;
1198
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201
 
  | --sha=* | --sh=*)
1202
 
    sharedstatedir=$ac_optarg ;;
1203
 
 
1204
 
  -site | --site | --sit)
1205
 
    ac_prev=site ;;
1206
 
  -site=* | --site=* | --sit=*)
1207
 
    site=$ac_optarg ;;
1208
 
 
1209
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210
 
    ac_prev=srcdir ;;
1211
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212
 
    srcdir=$ac_optarg ;;
1213
 
 
1214
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1216
 
    ac_prev=sysconfdir ;;
1217
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219
 
    sysconfdir=$ac_optarg ;;
1220
 
 
1221
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1222
 
    ac_prev=target_alias ;;
1223
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224
 
    target_alias=$ac_optarg ;;
1225
 
 
1226
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227
 
    verbose=yes ;;
1228
 
 
1229
 
  -version | --version | --versio | --versi | --vers | -V)
1230
 
    ac_init_version=: ;;
1231
 
 
1232
 
  -with-* | --with-*)
1233
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234
 
    # Reject names that are not valid shell variable names.
1235
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1237
 
   { (exit 1); exit 1; }; }
1238
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239
 
    eval with_$ac_package=\$ac_optarg ;;
1240
 
 
1241
 
  -without-* | --without-*)
1242
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1243
 
    # Reject names that are not valid shell variable names.
1244
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1246
 
   { (exit 1); exit 1; }; }
1247
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1248
 
    eval with_$ac_package=no ;;
1249
 
 
1250
 
  --x)
1251
 
    # Obsolete; use --with-x.
1252
 
    with_x=yes ;;
1253
 
 
1254
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255
 
  | --x-incl | --x-inc | --x-in | --x-i)
1256
 
    ac_prev=x_includes ;;
1257
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259
 
    x_includes=$ac_optarg ;;
1260
 
 
1261
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263
 
    ac_prev=x_libraries ;;
1264
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266
 
    x_libraries=$ac_optarg ;;
1267
 
 
1268
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1269
 
Try \`$0 --help' for more information." >&2
1270
 
   { (exit 1); exit 1; }; }
1271
 
    ;;
1272
 
 
1273
 
  *=*)
1274
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1275
 
    # Reject names that are not valid shell variable names.
1276
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1277
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1278
 
   { (exit 1); exit 1; }; }
1279
 
    eval $ac_envvar=\$ac_optarg
1280
 
    export $ac_envvar ;;
1281
 
 
1282
 
  *)
1283
 
    # FIXME: should be removed in autoconf 3.0.
1284
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288
 
    ;;
1289
 
 
1290
 
  esac
1291
 
done
1292
 
 
1293
 
if test -n "$ac_prev"; then
1294
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1296
 
   { (exit 1); exit 1; }; }
1297
 
fi
1298
 
 
1299
 
# Be sure to have absolute directory names.
1300
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1301
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1302
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1303
 
                libdir localedir mandir
1304
 
do
1305
 
  eval ac_val=\$$ac_var
1306
 
  case $ac_val in
1307
 
    [\\/$]* | ?:[\\/]* )  continue;;
1308
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1309
 
  esac
1310
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1311
 
   { (exit 1); exit 1; }; }
1312
 
done
1313
 
 
1314
 
# There might be people who depend on the old broken behavior: `$host'
1315
 
# used to hold the argument of --host etc.
1316
 
# FIXME: To remove some day.
1317
 
build=$build_alias
1318
 
host=$host_alias
1319
 
target=$target_alias
1320
 
 
1321
 
# FIXME: To remove some day.
1322
 
if test "x$host_alias" != x; then
1323
 
  if test "x$build_alias" = x; then
1324
 
    cross_compiling=maybe
1325
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1326
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1327
 
  elif test "x$build_alias" != "x$host_alias"; then
1328
 
    cross_compiling=yes
1329
 
  fi
1330
 
fi
1331
 
 
1332
 
ac_tool_prefix=
1333
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
 
 
1335
 
test "$silent" = yes && exec 6>/dev/null
1336
 
 
1337
 
 
1338
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339
 
ac_ls_di=`ls -di .` &&
1340
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1342
 
   { (exit 1); exit 1; }; }
1343
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1345
 
   { (exit 1); exit 1; }; }
1346
 
 
1347
 
 
1348
 
# Find the source files, if location was not specified.
1349
 
if test -z "$srcdir"; then
1350
 
  ac_srcdir_defaulted=yes
1351
 
  # Try the directory containing this script, then the parent directory.
1352
 
  ac_confdir=`$as_dirname -- "$0" ||
1353
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354
 
         X"$0" : 'X\(//\)[^/]' \| \
1355
 
         X"$0" : 'X\(//\)$' \| \
1356
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1357
 
echo X"$0" |
1358
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359
 
            s//\1/
1360
 
            q
1361
 
          }
1362
 
          /^X\(\/\/\)[^/].*/{
1363
 
            s//\1/
1364
 
            q
1365
 
          }
1366
 
          /^X\(\/\/\)$/{
1367
 
            s//\1/
1368
 
            q
1369
 
          }
1370
 
          /^X\(\/\).*/{
1371
 
            s//\1/
1372
 
            q
1373
 
          }
1374
 
          s/.*/./; q'`
1375
 
  srcdir=$ac_confdir
1376
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1377
 
    srcdir=..
1378
 
  fi
1379
 
else
1380
 
  ac_srcdir_defaulted=no
1381
 
fi
1382
 
if test ! -r "$srcdir/$ac_unique_file"; then
1383
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1385
 
   { (exit 1); exit 1; }; }
1386
 
fi
1387
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1388
 
ac_abs_confdir=`(
1389
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1390
 
   { (exit 1); exit 1; }; }
1391
 
        pwd)`
1392
 
# When building in place, set srcdir=.
1393
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1394
 
  srcdir=.
1395
 
fi
1396
 
# Remove unnecessary trailing slashes from srcdir.
1397
 
# Double slashes in file names in object file debugging info
1398
 
# mess up M-x gdb in Emacs.
1399
 
case $srcdir in
1400
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1401
 
esac
1402
 
for ac_var in $ac_precious_vars; do
1403
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1404
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1405
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1406
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407
 
done
1408
 
 
1409
 
#
1410
 
# Report the --help message.
1411
 
#
1412
 
if test "$ac_init_help" = "long"; then
1413
 
  # Omit some internal or obsolete options to make the list less imposing.
1414
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1415
 
  cat <<_ACEOF
1416
 
\`configure' configures ijs 0.35 to adapt to many kinds of systems.
1417
 
 
1418
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1419
 
 
1420
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1421
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1422
 
 
1423
 
Defaults for the options are specified in brackets.
1424
 
 
1425
 
Configuration:
1426
 
  -h, --help              display this help and exit
1427
 
      --help=short        display options specific to this package
1428
 
      --help=recursive    display the short help of all the included packages
1429
 
  -V, --version           display version information and exit
1430
 
  -q, --quiet, --silent   do not print \`checking...' messages
1431
 
      --cache-file=FILE   cache test results in FILE [disabled]
1432
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1433
 
  -n, --no-create         do not create output files
1434
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1435
 
 
1436
 
Installation directories:
1437
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1438
 
                          [$ac_default_prefix]
1439
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1440
 
                          [PREFIX]
1441
 
 
1442
 
By default, \`make install' will install all the files in
1443
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1444
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1445
 
for instance \`--prefix=\$HOME'.
1446
 
 
1447
 
For better control, use the options below.
1448
 
 
1449
 
Fine tuning of the installation directories:
1450
 
  --bindir=DIR           user executables [EPREFIX/bin]
1451
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1452
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1453
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1454
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1455
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1456
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1457
 
  --includedir=DIR       C header files [PREFIX/include]
1458
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1459
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1460
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1461
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1462
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1463
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1464
 
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/ijs@:>@
1465
 
  --htmldir=DIR          html documentation [DOCDIR]
1466
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1467
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1468
 
  --psdir=DIR            ps documentation [DOCDIR]
1469
 
_ACEOF
1470
 
 
1471
 
  cat <<\_ACEOF
1472
 
 
1473
 
Program names:
1474
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1475
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1476
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1477
 
 
1478
 
System types:
1479
 
  --build=BUILD     configure for building on BUILD [guessed]
1480
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1481
 
_ACEOF
1482
 
fi
1483
 
 
1484
 
if test -n "$ac_init_help"; then
1485
 
  case $ac_init_help in
1486
 
     short | recursive ) echo "Configuration of ijs 0.35:";;
1487
 
   esac
1488
 
  cat <<\_ACEOF
1489
 
 
1490
 
Optional Features:
1491
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1492
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1493
 
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=no@:>@
1494
 
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1495
 
  --enable-fast-install@<:@=PKGS@:>@ 
1496
 
                          optimize for fast installation @<:@default=yes@:>@
1497
 
  --disable-dependency-tracking  speeds up one-time build
1498
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1499
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1500
 
 
1501
 
Optional Packages:
1502
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1503
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1504
 
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1505
 
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1506
 
                          both@:>@
1507
 
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
1508
 
 
1509
 
Some influential environment variables:
1510
 
  CC          C compiler command
1511
 
  CFLAGS      C compiler flags
1512
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513
 
              nonstandard directory <lib dir>
1514
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1515
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1516
 
              you have headers in a nonstandard directory <include dir>
1517
 
  CPP         C preprocessor
1518
 
  CXX         C++ compiler command
1519
 
  CXXFLAGS    C++ compiler flags
1520
 
  CXXCPP      C++ preprocessor
1521
 
  F77         Fortran 77 compiler command
1522
 
  FFLAGS      Fortran 77 compiler flags
1523
 
 
1524
 
Use these variables to override the choices made by `configure' or to help
1525
 
it to find libraries and programs with nonstandard names/locations.
1526
 
 
1527
 
Report bugs to <inkjet-list@linuxprinting.org>.
1528
 
_ACEOF
1529
 
ac_status=$?
1530
 
fi
1531
 
 
1532
 
if test "$ac_init_help" = "recursive"; then
1533
 
  # If there are subdirs, report their specific --help.
1534
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1535
 
    test -d "$ac_dir" || continue
1536
 
    ac_builddir=.
1537
 
 
1538
 
case "$ac_dir" in
1539
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1540
 
*)
1541
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1542
 
  # A ".." for each directory in $ac_dir_suffix.
1543
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1544
 
  case $ac_top_builddir_sub in
1545
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1547
 
  esac ;;
1548
 
esac
1549
 
ac_abs_top_builddir=$ac_pwd
1550
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1551
 
# for backward compatibility:
1552
 
ac_top_builddir=$ac_top_build_prefix
1553
 
 
1554
 
case $srcdir in
1555
 
  .)  # We are building in place.
1556
 
    ac_srcdir=.
1557
 
    ac_top_srcdir=$ac_top_builddir_sub
1558
 
    ac_abs_top_srcdir=$ac_pwd ;;
1559
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1560
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1561
 
    ac_top_srcdir=$srcdir
1562
 
    ac_abs_top_srcdir=$srcdir ;;
1563
 
  *) # Relative name.
1564
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1565
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1566
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1567
 
esac
1568
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1569
 
 
1570
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1571
 
    # Check for guested configure.
1572
 
    if test -f "$ac_srcdir/configure.gnu"; then
1573
 
      echo &&
1574
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1575
 
    elif test -f "$ac_srcdir/configure"; then
1576
 
      echo &&
1577
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1578
 
    else
1579
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1580
 
    fi || ac_status=$?
1581
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1582
 
  done
1583
 
fi
1584
 
 
1585
 
test -n "$ac_init_help" && exit $ac_status
1586
 
if $ac_init_version; then
1587
 
  cat <<\_ACEOF
1588
 
ijs configure 0.35
1589
 
generated by GNU Autoconf 2.61
1590
 
 
1591
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1592
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1593
 
This configure script is free software; the Free Software Foundation
1594
 
gives unlimited permission to copy, distribute and modify it.
1595
 
_ACEOF
1596
 
  exit
1597
 
fi
1598
 
cat >config.log <<_ACEOF
1599
 
This file contains any messages produced by compilers while
1600
 
running configure, to aid debugging if configure makes a mistake.
1601
 
 
1602
 
It was created by ijs $as_me 0.35, which was
1603
 
generated by GNU Autoconf 2.61.  Invocation command line was
1604
 
 
1605
 
  $ $0 $@
1606
 
 
1607
 
_ACEOF
1608
 
exec 5>>config.log
1609
 
{
1610
 
cat <<_ASUNAME
1611
 
@%:@@%:@ --------- @%:@@%:@
1612
 
@%:@@%:@ Platform. @%:@@%:@
1613
 
@%:@@%:@ --------- @%:@@%:@
1614
 
 
1615
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1616
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1617
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1618
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1619
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1620
 
 
1621
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1622
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1623
 
 
1624
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1625
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1626
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1627
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1628
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1629
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1630
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1631
 
 
1632
 
_ASUNAME
1633
 
 
1634
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1635
 
for as_dir in $PATH
1636
 
do
1637
 
  IFS=$as_save_IFS
1638
 
  test -z "$as_dir" && as_dir=.
1639
 
  echo "PATH: $as_dir"
1640
 
done
1641
 
IFS=$as_save_IFS
1642
 
 
1643
 
} >&5
1644
 
 
1645
 
cat >&5 <<_ACEOF
1646
 
 
1647
 
 
1648
 
@%:@@%:@ ----------- @%:@@%:@
1649
 
@%:@@%:@ Core tests. @%:@@%:@
1650
 
@%:@@%:@ ----------- @%:@@%:@
1651
 
 
1652
 
_ACEOF
1653
 
 
1654
 
 
1655
 
# Keep a trace of the command line.
1656
 
# Strip out --no-create and --no-recursion so they do not pile up.
1657
 
# Strip out --silent because we don't want to record it for future runs.
1658
 
# Also quote any args containing shell meta-characters.
1659
 
# Make two passes to allow for proper duplicate-argument suppression.
1660
 
ac_configure_args=
1661
 
ac_configure_args0=
1662
 
ac_configure_args1=
1663
 
ac_must_keep_next=false
1664
 
for ac_pass in 1 2
1665
 
do
1666
 
  for ac_arg
1667
 
  do
1668
 
    case $ac_arg in
1669
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1670
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1671
 
    | -silent | --silent | --silen | --sile | --sil)
1672
 
      continue ;;
1673
 
    *\'*)
1674
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1675
 
    esac
1676
 
    case $ac_pass in
1677
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1678
 
    2)
1679
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1680
 
      if test $ac_must_keep_next = true; then
1681
 
        ac_must_keep_next=false # Got value, back to normal.
1682
 
      else
1683
 
        case $ac_arg in
1684
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1685
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1686
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1687
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1688
 
            case "$ac_configure_args0 " in
1689
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1690
 
            esac
1691
 
            ;;
1692
 
          -* ) ac_must_keep_next=true ;;
1693
 
        esac
1694
 
      fi
1695
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1696
 
      ;;
1697
 
    esac
1698
 
  done
1699
 
done
1700
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1701
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1702
 
 
1703
 
# When interrupted or exit'd, cleanup temporary files, and complete
1704
 
# config.log.  We remove comments because anyway the quotes in there
1705
 
# would cause problems or look ugly.
1706
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1707
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1708
 
trap 'exit_status=$?
1709
 
  # Save into config.log some information that might help in debugging.
1710
 
  {
1711
 
    echo
1712
 
 
1713
 
    cat <<\_ASBOX
1714
 
@%:@@%:@ ---------------- @%:@@%:@
1715
 
@%:@@%:@ Cache variables. @%:@@%:@
1716
 
@%:@@%:@ ---------------- @%:@@%:@
1717
 
_ASBOX
1718
 
    echo
1719
 
    # The following way of writing the cache mishandles newlines in values,
1720
 
(
1721
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1722
 
    eval ac_val=\$$ac_var
1723
 
    case $ac_val in #(
1724
 
    *${as_nl}*)
1725
 
      case $ac_var in #(
1726
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1727
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1728
 
      esac
1729
 
      case $ac_var in #(
1730
 
      _ | IFS | as_nl) ;; #(
1731
 
      *) $as_unset $ac_var ;;
1732
 
      esac ;;
1733
 
    esac
1734
 
  done
1735
 
  (set) 2>&1 |
1736
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1737
 
    *${as_nl}ac_space=\ *)
1738
 
      sed -n \
1739
 
        "s/'\''/'\''\\\\'\'''\''/g;
1740
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1741
 
      ;; #(
1742
 
    *)
1743
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1744
 
      ;;
1745
 
    esac |
1746
 
    sort
1747
 
)
1748
 
    echo
1749
 
 
1750
 
    cat <<\_ASBOX
1751
 
@%:@@%:@ ----------------- @%:@@%:@
1752
 
@%:@@%:@ Output variables. @%:@@%:@
1753
 
@%:@@%:@ ----------------- @%:@@%:@
1754
 
_ASBOX
1755
 
    echo
1756
 
    for ac_var in $ac_subst_vars
1757
 
    do
1758
 
      eval ac_val=\$$ac_var
1759
 
      case $ac_val in
1760
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1761
 
      esac
1762
 
      echo "$ac_var='\''$ac_val'\''"
1763
 
    done | sort
1764
 
    echo
1765
 
 
1766
 
    if test -n "$ac_subst_files"; then
1767
 
      cat <<\_ASBOX
1768
 
@%:@@%:@ ------------------- @%:@@%:@
1769
 
@%:@@%:@ File substitutions. @%:@@%:@
1770
 
@%:@@%:@ ------------------- @%:@@%:@
1771
 
_ASBOX
1772
 
      echo
1773
 
      for ac_var in $ac_subst_files
1774
 
      do
1775
 
        eval ac_val=\$$ac_var
1776
 
        case $ac_val in
1777
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1778
 
        esac
1779
 
        echo "$ac_var='\''$ac_val'\''"
1780
 
      done | sort
1781
 
      echo
1782
 
    fi
1783
 
 
1784
 
    if test -s confdefs.h; then
1785
 
      cat <<\_ASBOX
1786
 
@%:@@%:@ ----------- @%:@@%:@
1787
 
@%:@@%:@ confdefs.h. @%:@@%:@
1788
 
@%:@@%:@ ----------- @%:@@%:@
1789
 
_ASBOX
1790
 
      echo
1791
 
      cat confdefs.h
1792
 
      echo
1793
 
    fi
1794
 
    test "$ac_signal" != 0 &&
1795
 
      echo "$as_me: caught signal $ac_signal"
1796
 
    echo "$as_me: exit $exit_status"
1797
 
  } >&5
1798
 
  rm -f core *.core core.conftest.* &&
1799
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1800
 
    exit $exit_status
1801
 
' 0
1802
 
for ac_signal in 1 2 13 15; do
1803
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1804
 
done
1805
 
ac_signal=0
1806
 
 
1807
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1808
 
rm -f -r conftest* confdefs.h
1809
 
 
1810
 
# Predefined preprocessor variables.
1811
 
 
1812
 
cat >>confdefs.h <<_ACEOF
1813
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1814
 
_ACEOF
1815
 
 
1816
 
 
1817
 
cat >>confdefs.h <<_ACEOF
1818
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1819
 
_ACEOF
1820
 
 
1821
 
 
1822
 
cat >>confdefs.h <<_ACEOF
1823
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1824
 
_ACEOF
1825
 
 
1826
 
 
1827
 
cat >>confdefs.h <<_ACEOF
1828
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1829
 
_ACEOF
1830
 
 
1831
 
 
1832
 
cat >>confdefs.h <<_ACEOF
1833
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1834
 
_ACEOF
1835
 
 
1836
 
 
1837
 
# Let the site file select an alternate cache file if it wants to.
1838
 
# Prefer explicitly selected file to automatically selected ones.
1839
 
if test -n "$CONFIG_SITE"; then
1840
 
  set x "$CONFIG_SITE"
1841
 
elif test "x$prefix" != xNONE; then
1842
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1843
 
else
1844
 
  set x "$ac_default_prefix/share/config.site" \
1845
 
        "$ac_default_prefix/etc/config.site"
1846
 
fi
1847
 
shift
1848
 
for ac_site_file
1849
 
do
1850
 
  if test -r "$ac_site_file"; then
1851
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1852
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1853
 
    sed 's/^/| /' "$ac_site_file" >&5
1854
 
    . "$ac_site_file"
1855
 
  fi
1856
 
done
1857
 
 
1858
 
if test -r "$cache_file"; then
1859
 
  # Some versions of bash will fail to source /dev/null (special
1860
 
  # files actually), so we avoid doing that.
1861
 
  if test -f "$cache_file"; then
1862
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1863
 
echo "$as_me: loading cache $cache_file" >&6;}
1864
 
    case $cache_file in
1865
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1866
 
      *)                      . "./$cache_file";;
1867
 
    esac
1868
 
  fi
1869
 
else
1870
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1871
 
echo "$as_me: creating cache $cache_file" >&6;}
1872
 
  >$cache_file
1873
 
fi
1874
 
 
1875
 
# Check that the precious variables saved in the cache have kept the same
1876
 
# value.
1877
 
ac_cache_corrupted=false
1878
 
for ac_var in $ac_precious_vars; do
1879
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1880
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1881
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1882
 
  eval ac_new_val=\$ac_env_${ac_var}_value
1883
 
  case $ac_old_set,$ac_new_set in
1884
 
    set,)
1885
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1886
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1887
 
      ac_cache_corrupted=: ;;
1888
 
    ,set)
1889
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1890
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1891
 
      ac_cache_corrupted=: ;;
1892
 
    ,);;
1893
 
    *)
1894
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1895
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1896
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1897
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1898
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1899
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1900
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1901
 
        ac_cache_corrupted=:
1902
 
      fi;;
1903
 
  esac
1904
 
  # Pass precious variables to config.status.
1905
 
  if test "$ac_new_set" = set; then
1906
 
    case $ac_new_val in
1907
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1908
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1909
 
    esac
1910
 
    case " $ac_configure_args " in
1911
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1912
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1913
 
    esac
1914
 
  fi
1915
 
done
1916
 
if $ac_cache_corrupted; then
1917
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1918
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1919
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1920
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1921
 
   { (exit 1); exit 1; }; }
1922
 
fi
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
ac_ext=c
1949
 
ac_cpp='$CPP $CPPFLAGS'
1950
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1951
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1952
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
IJS_LIBS="-lijs"
1961
 
 
1962
 
IJS_MAJOR_VERSION=0
1963
 
IJS_MINOR_VERSION=35
1964
 
IJS_EXTRA_VERSION=
1965
 
 
1966
 
IJS_CURRENT_INTERFACE=1
1967
 
IJS_INTERFACE_AGE=1
1968
 
IJS_BINARY_AGE=0
1969
 
IJS_VERSION=0.35
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
am__api_version='1.10'
1978
 
 
1979
 
ac_aux_dir=
1980
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1981
 
  if test -f "$ac_dir/install-sh"; then
1982
 
    ac_aux_dir=$ac_dir
1983
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1984
 
    break
1985
 
  elif test -f "$ac_dir/install.sh"; then
1986
 
    ac_aux_dir=$ac_dir
1987
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1988
 
    break
1989
 
  elif test -f "$ac_dir/shtool"; then
1990
 
    ac_aux_dir=$ac_dir
1991
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1992
 
    break
1993
 
  fi
1994
 
done
1995
 
if test -z "$ac_aux_dir"; then
1996
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1997
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1998
 
   { (exit 1); exit 1; }; }
1999
 
fi
2000
 
 
2001
 
# These three variables are undocumented and unsupported,
2002
 
# and are intended to be withdrawn in a future Autoconf release.
2003
 
# They can cause serious problems if a builder's source tree is in a directory
2004
 
# whose full name contains unusual characters.
2005
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2006
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2007
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2008
 
 
2009
 
 
2010
 
# Find a good install program.  We prefer a C program (faster),
2011
 
# so one script is as good as another.  But avoid the broken or
2012
 
# incompatible versions:
2013
 
# SysV /etc/install, /usr/sbin/install
2014
 
# SunOS /usr/etc/install
2015
 
# IRIX /sbin/install
2016
 
# AIX /bin/install
2017
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2018
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2019
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2020
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2021
 
# OS/2's system install, which has a completely different semantic
2022
 
# ./install, which can be erroneously created by make from ./install.sh.
2023
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2024
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2025
 
if test -z "$INSTALL"; then
2026
 
if test "${ac_cv_path_install+set}" = set; then
2027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2028
 
else
2029
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030
 
for as_dir in $PATH
2031
 
do
2032
 
  IFS=$as_save_IFS
2033
 
  test -z "$as_dir" && as_dir=.
2034
 
  # Account for people who put trailing slashes in PATH elements.
2035
 
case $as_dir/ in
2036
 
  ./ | .// | /cC/* | \
2037
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2038
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2039
 
  /usr/ucb/* ) ;;
2040
 
  *)
2041
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2042
 
    # Don't use installbsd from OSF since it installs stuff as root
2043
 
    # by default.
2044
 
    for ac_prog in ginstall scoinst install; do
2045
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2046
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2047
 
          if test $ac_prog = install &&
2048
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2049
 
            # AIX install.  It has an incompatible calling convention.
2050
 
            :
2051
 
          elif test $ac_prog = install &&
2052
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2053
 
            # program-specific install script used by HP pwplus--don't use.
2054
 
            :
2055
 
          else
2056
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2057
 
            break 3
2058
 
          fi
2059
 
        fi
2060
 
      done
2061
 
    done
2062
 
    ;;
2063
 
esac
2064
 
done
2065
 
IFS=$as_save_IFS
2066
 
 
2067
 
 
2068
 
fi
2069
 
  if test "${ac_cv_path_install+set}" = set; then
2070
 
    INSTALL=$ac_cv_path_install
2071
 
  else
2072
 
    # As a last resort, use the slow shell script.  Don't cache a
2073
 
    # value for INSTALL within a source directory, because that will
2074
 
    # break other packages using the cache if that directory is
2075
 
    # removed, or if the value is a relative name.
2076
 
    INSTALL=$ac_install_sh
2077
 
  fi
2078
 
fi
2079
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2080
 
echo "${ECHO_T}$INSTALL" >&6; }
2081
 
 
2082
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2083
 
# It thinks the first close brace ends the variable substitution.
2084
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2085
 
 
2086
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2087
 
 
2088
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2089
 
 
2090
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2091
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2092
 
# Just in case
2093
 
sleep 1
2094
 
echo timestamp > conftest.file
2095
 
# Do `set' in a subshell so we don't clobber the current shell's
2096
 
# arguments.  Must try -L first in case configure is actually a
2097
 
# symlink; some systems play weird games with the mod time of symlinks
2098
 
# (eg FreeBSD returns the mod time of the symlink's containing
2099
 
# directory).
2100
 
if (
2101
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2102
 
   if test "$*" = "X"; then
2103
 
      # -L didn't work.
2104
 
      set X `ls -t $srcdir/configure conftest.file`
2105
 
   fi
2106
 
   rm -f conftest.file
2107
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2108
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2109
 
 
2110
 
      # If neither matched, then we have a broken ls.  This can happen
2111
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2112
 
      # broken ls alias from the environment.  This has actually
2113
 
      # happened.  Such a system could not be considered "sane".
2114
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2115
 
alias in your environment" >&5
2116
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2117
 
alias in your environment" >&2;}
2118
 
   { (exit 1); exit 1; }; }
2119
 
   fi
2120
 
 
2121
 
   test "$2" = conftest.file
2122
 
   )
2123
 
then
2124
 
   # Ok.
2125
 
   :
2126
 
else
2127
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2128
 
Check your system clock" >&5
2129
 
echo "$as_me: error: newly created file is older than distributed files!
2130
 
Check your system clock" >&2;}
2131
 
   { (exit 1); exit 1; }; }
2132
 
fi
2133
 
{ echo "$as_me:$LINENO: result: yes" >&5
2134
 
echo "${ECHO_T}yes" >&6; }
2135
 
test "$program_prefix" != NONE &&
2136
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2137
 
# Use a double $ so make ignores it.
2138
 
test "$program_suffix" != NONE &&
2139
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2140
 
# Double any \ or $.  echo might interpret backslashes.
2141
 
# By default was `s,x,x', remove it if useless.
2142
 
cat <<\_ACEOF >conftest.sed
2143
 
s/[\\$]/&&/g;s/;s,x,x,$//
2144
 
_ACEOF
2145
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2146
 
rm -f conftest.sed
2147
 
 
2148
 
# expand $ac_aux_dir to an absolute path
2149
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2150
 
 
2151
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2152
 
# Use eval to expand $SHELL
2153
 
if eval "$MISSING --run true"; then
2154
 
  am_missing_run="$MISSING --run "
2155
 
else
2156
 
  am_missing_run=
2157
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2158
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2159
 
fi
2160
 
 
2161
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2162
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2163
 
if test -z "$MKDIR_P"; then
2164
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2166
 
else
2167
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2169
 
do
2170
 
  IFS=$as_save_IFS
2171
 
  test -z "$as_dir" && as_dir=.
2172
 
  for ac_prog in mkdir gmkdir; do
2173
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2174
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2175
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2176
 
             'mkdir (GNU coreutils) '* | \
2177
 
             'mkdir (coreutils) '* | \
2178
 
             'mkdir (fileutils) '4.1*)
2179
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2180
 
               break 3;;
2181
 
           esac
2182
 
         done
2183
 
       done
2184
 
done
2185
 
IFS=$as_save_IFS
2186
 
 
2187
 
fi
2188
 
 
2189
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2190
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2191
 
  else
2192
 
    # As a last resort, use the slow shell script.  Don't cache a
2193
 
    # value for MKDIR_P within a source directory, because that will
2194
 
    # break other packages using the cache if that directory is
2195
 
    # removed, or if the value is a relative name.
2196
 
    test -d ./--version && rmdir ./--version
2197
 
    MKDIR_P="$ac_install_sh -d"
2198
 
  fi
2199
 
fi
2200
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2201
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2202
 
 
2203
 
mkdir_p="$MKDIR_P"
2204
 
case $mkdir_p in
2205
 
  [\\/$]* | ?:[\\/]*) ;;
2206
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2207
 
esac
2208
 
 
2209
 
for ac_prog in gawk mawk nawk awk
2210
 
do
2211
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2212
 
set dummy $ac_prog; ac_word=$2
2213
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2214
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215
 
if test "${ac_cv_prog_AWK+set}" = set; then
2216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2217
 
else
2218
 
  if test -n "$AWK"; then
2219
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2220
 
else
2221
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222
 
for as_dir in $PATH
2223
 
do
2224
 
  IFS=$as_save_IFS
2225
 
  test -z "$as_dir" && as_dir=.
2226
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2227
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228
 
    ac_cv_prog_AWK="$ac_prog"
2229
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230
 
    break 2
2231
 
  fi
2232
 
done
2233
 
done
2234
 
IFS=$as_save_IFS
2235
 
 
2236
 
fi
2237
 
fi
2238
 
AWK=$ac_cv_prog_AWK
2239
 
if test -n "$AWK"; then
2240
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2241
 
echo "${ECHO_T}$AWK" >&6; }
2242
 
else
2243
 
  { echo "$as_me:$LINENO: result: no" >&5
2244
 
echo "${ECHO_T}no" >&6; }
2245
 
fi
2246
 
 
2247
 
 
2248
 
  test -n "$AWK" && break
2249
 
done
2250
 
 
2251
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2252
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2253
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2254
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2256
 
else
2257
 
  cat >conftest.make <<\_ACEOF
2258
 
SHELL = /bin/sh
2259
 
all:
2260
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2261
 
_ACEOF
2262
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2263
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2264
 
  *@@@%%%=?*=@@@%%%*)
2265
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2266
 
  *)
2267
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2268
 
esac
2269
 
rm -f conftest.make
2270
 
fi
2271
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2272
 
  { echo "$as_me:$LINENO: result: yes" >&5
2273
 
echo "${ECHO_T}yes" >&6; }
2274
 
  SET_MAKE=
2275
 
else
2276
 
  { echo "$as_me:$LINENO: result: no" >&5
2277
 
echo "${ECHO_T}no" >&6; }
2278
 
  SET_MAKE="MAKE=${MAKE-make}"
2279
 
fi
2280
 
 
2281
 
rm -rf .tst 2>/dev/null
2282
 
mkdir .tst 2>/dev/null
2283
 
if test -d .tst; then
2284
 
  am__leading_dot=.
2285
 
else
2286
 
  am__leading_dot=_
2287
 
fi
2288
 
rmdir .tst 2>/dev/null
2289
 
 
2290
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2291
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2292
 
  # is not polluted with repeated "-I."
2293
 
  am__isrc=' -I$(srcdir)'
2294
 
  # test to see if srcdir already configured
2295
 
  if test -f $srcdir/config.status; then
2296
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2297
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2298
 
   { (exit 1); exit 1; }; }
2299
 
  fi
2300
 
fi
2301
 
 
2302
 
# test whether we have cygpath
2303
 
if test -z "$CYGPATH_W"; then
2304
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2305
 
    CYGPATH_W='cygpath -w'
2306
 
  else
2307
 
    CYGPATH_W=echo
2308
 
  fi
2309
 
fi
2310
 
 
2311
 
 
2312
 
# Define the identity of the package.
2313
 
 PACKAGE=ijs
2314
 
 VERSION=0.35
2315
 
 
2316
 
 
2317
 
cat >>confdefs.h <<_ACEOF
2318
 
@%:@define PACKAGE "$PACKAGE"
2319
 
_ACEOF
2320
 
 
2321
 
 
2322
 
cat >>confdefs.h <<_ACEOF
2323
 
@%:@define VERSION "$VERSION"
2324
 
_ACEOF
2325
 
 
2326
 
# Some tools Automake needs.
2327
 
 
2328
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2329
 
 
2330
 
 
2331
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2332
 
 
2333
 
 
2334
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2335
 
 
2336
 
 
2337
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2338
 
 
2339
 
 
2340
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2341
 
 
2342
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2343
 
 
2344
 
# Installed binaries are usually stripped using `strip' when the user
2345
 
# run `make install-strip'.  However `strip' might not be the right
2346
 
# tool to use in cross-compilation environments, therefore Automake
2347
 
# will honor the `STRIP' environment variable to overrule this program.
2348
 
if test "$cross_compiling" != no; then
2349
 
  if test -n "$ac_tool_prefix"; then
2350
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2351
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2352
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2353
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2354
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2356
 
else
2357
 
  if test -n "$STRIP"; then
2358
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2359
 
else
2360
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361
 
for as_dir in $PATH
2362
 
do
2363
 
  IFS=$as_save_IFS
2364
 
  test -z "$as_dir" && as_dir=.
2365
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2366
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2367
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2368
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2369
 
    break 2
2370
 
  fi
2371
 
done
2372
 
done
2373
 
IFS=$as_save_IFS
2374
 
 
2375
 
fi
2376
 
fi
2377
 
STRIP=$ac_cv_prog_STRIP
2378
 
if test -n "$STRIP"; then
2379
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2380
 
echo "${ECHO_T}$STRIP" >&6; }
2381
 
else
2382
 
  { echo "$as_me:$LINENO: result: no" >&5
2383
 
echo "${ECHO_T}no" >&6; }
2384
 
fi
2385
 
 
2386
 
 
2387
 
fi
2388
 
if test -z "$ac_cv_prog_STRIP"; then
2389
 
  ac_ct_STRIP=$STRIP
2390
 
  # Extract the first word of "strip", so it can be a program name with args.
2391
 
set dummy strip; ac_word=$2
2392
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2393
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2394
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2395
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2396
 
else
2397
 
  if test -n "$ac_ct_STRIP"; then
2398
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2399
 
else
2400
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401
 
for as_dir in $PATH
2402
 
do
2403
 
  IFS=$as_save_IFS
2404
 
  test -z "$as_dir" && as_dir=.
2405
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2406
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2407
 
    ac_cv_prog_ac_ct_STRIP="strip"
2408
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2409
 
    break 2
2410
 
  fi
2411
 
done
2412
 
done
2413
 
IFS=$as_save_IFS
2414
 
 
2415
 
fi
2416
 
fi
2417
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2418
 
if test -n "$ac_ct_STRIP"; then
2419
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2420
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2421
 
else
2422
 
  { echo "$as_me:$LINENO: result: no" >&5
2423
 
echo "${ECHO_T}no" >&6; }
2424
 
fi
2425
 
 
2426
 
  if test "x$ac_ct_STRIP" = x; then
2427
 
    STRIP=":"
2428
 
  else
2429
 
    case $cross_compiling:$ac_tool_warned in
2430
 
yes:)
2431
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432
 
whose name does not start with the host triplet.  If you think this
2433
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2434
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435
 
whose name does not start with the host triplet.  If you think this
2436
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437
 
ac_tool_warned=yes ;;
2438
 
esac
2439
 
    STRIP=$ac_ct_STRIP
2440
 
  fi
2441
 
else
2442
 
  STRIP="$ac_cv_prog_STRIP"
2443
 
fi
2444
 
 
2445
 
fi
2446
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2447
 
 
2448
 
# We need awk for the "check" target.  The system "awk" is bad on
2449
 
# some platforms.
2450
 
# Always define AMTAR for backward compatibility.
2451
 
 
2452
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2453
 
 
2454
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2455
 
 
2456
 
 
2457
 
 
2458
 
 
2459
 
 
2460
 
 
2461
 
 
2462
 
 
2463
 
 
2464
 
 
2465
 
 
2466
 
 
2467
 
 
2468
 
 
2469
 
 
2470
 
LT_RELEASE=$IJS_MAJOR_VERSION.$IJS_MINOR_VERSION
2471
 
LT_CURRENT=$IJS_CURRENT_INTERFACE
2472
 
LT_REVISION=$IJS_INTERFACE_AGE
2473
 
LT_AGE=$IJS_BINARY_AGE
2474
 
 
2475
 
 
2476
 
 
2477
 
 
2478
 
 
2479
 
 
2480
 
# Check whether --enable-shared was given.
2481
 
if test "${enable_shared+set}" = set; then
2482
 
  enableval=$enable_shared; p=${PACKAGE-default}
2483
 
    case $enableval in
2484
 
    yes) enable_shared=yes ;;
2485
 
    no) enable_shared=no ;;
2486
 
    *)
2487
 
      enable_shared=no
2488
 
      # Look at the argument we got.  We use all the common list separators.
2489
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2490
 
      for pkg in $enableval; do
2491
 
        IFS="$lt_save_ifs"
2492
 
        if test "X$pkg" = "X$p"; then
2493
 
          enable_shared=yes
2494
 
        fi
2495
 
      done
2496
 
      IFS="$lt_save_ifs"
2497
 
      ;;
2498
 
    esac
2499
 
else
2500
 
  enable_shared=no
2501
 
fi
2502
 
 
2503
 
 
2504
 
 
2505
 
# Check whether --enable-static was given.
2506
 
if test "${enable_static+set}" = set; then
2507
 
  enableval=$enable_static; p=${PACKAGE-default}
2508
 
    case $enableval in
2509
 
    yes) enable_static=yes ;;
2510
 
    no) enable_static=no ;;
2511
 
    *)
2512
 
     enable_static=no
2513
 
      # Look at the argument we got.  We use all the common list separators.
2514
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2515
 
      for pkg in $enableval; do
2516
 
        IFS="$lt_save_ifs"
2517
 
        if test "X$pkg" = "X$p"; then
2518
 
          enable_static=yes
2519
 
        fi
2520
 
      done
2521
 
      IFS="$lt_save_ifs"
2522
 
      ;;
2523
 
    esac
2524
 
else
2525
 
  enable_static=yes
2526
 
fi
2527
 
 
2528
 
 
2529
 
# Check whether --enable-fast-install was given.
2530
 
if test "${enable_fast_install+set}" = set; then
2531
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
2532
 
    case $enableval in
2533
 
    yes) enable_fast_install=yes ;;
2534
 
    no) enable_fast_install=no ;;
2535
 
    *)
2536
 
      enable_fast_install=no
2537
 
      # Look at the argument we got.  We use all the common list separators.
2538
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2539
 
      for pkg in $enableval; do
2540
 
        IFS="$lt_save_ifs"
2541
 
        if test "X$pkg" = "X$p"; then
2542
 
          enable_fast_install=yes
2543
 
        fi
2544
 
      done
2545
 
      IFS="$lt_save_ifs"
2546
 
      ;;
2547
 
    esac
2548
 
else
2549
 
  enable_fast_install=yes
2550
 
fi
2551
 
 
2552
 
 
2553
 
# Make sure we can run config.sub.
2554
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2555
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2556
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2557
 
   { (exit 1); exit 1; }; }
2558
 
 
2559
 
{ echo "$as_me:$LINENO: checking build system type" >&5
2560
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2561
 
if test "${ac_cv_build+set}" = set; then
2562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2563
 
else
2564
 
  ac_build_alias=$build_alias
2565
 
test "x$ac_build_alias" = x &&
2566
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2567
 
test "x$ac_build_alias" = x &&
2568
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2569
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2570
 
   { (exit 1); exit 1; }; }
2571
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2572
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2573
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2574
 
   { (exit 1); exit 1; }; }
2575
 
 
2576
 
fi
2577
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2578
 
echo "${ECHO_T}$ac_cv_build" >&6; }
2579
 
case $ac_cv_build in
2580
 
*-*-*) ;;
2581
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2582
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2583
 
   { (exit 1); exit 1; }; };;
2584
 
esac
2585
 
build=$ac_cv_build
2586
 
ac_save_IFS=$IFS; IFS='-'
2587
 
set x $ac_cv_build
2588
 
shift
2589
 
build_cpu=$1
2590
 
build_vendor=$2
2591
 
shift; shift
2592
 
# Remember, the first character of IFS is used to create $*,
2593
 
# except with old shells:
2594
 
build_os=$*
2595
 
IFS=$ac_save_IFS
2596
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2597
 
 
2598
 
 
2599
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2600
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2601
 
if test "${ac_cv_host+set}" = set; then
2602
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2603
 
else
2604
 
  if test "x$host_alias" = x; then
2605
 
  ac_cv_host=$ac_cv_build
2606
 
else
2607
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2608
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2609
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2610
 
   { (exit 1); exit 1; }; }
2611
 
fi
2612
 
 
2613
 
fi
2614
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2615
 
echo "${ECHO_T}$ac_cv_host" >&6; }
2616
 
case $ac_cv_host in
2617
 
*-*-*) ;;
2618
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2619
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2620
 
   { (exit 1); exit 1; }; };;
2621
 
esac
2622
 
host=$ac_cv_host
2623
 
ac_save_IFS=$IFS; IFS='-'
2624
 
set x $ac_cv_host
2625
 
shift
2626
 
host_cpu=$1
2627
 
host_vendor=$2
2628
 
shift; shift
2629
 
# Remember, the first character of IFS is used to create $*,
2630
 
# except with old shells:
2631
 
host_os=$*
2632
 
IFS=$ac_save_IFS
2633
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2634
 
 
2635
 
 
2636
 
DEPDIR="${am__leading_dot}deps"
2637
 
 
2638
 
ac_config_commands="$ac_config_commands depfiles"
2639
 
 
2640
 
 
2641
 
am_make=${MAKE-make}
2642
 
cat > confinc << 'END'
2643
 
am__doit:
2644
 
        @echo done
2645
 
.PHONY: am__doit
2646
 
END
2647
 
# If we don't find an include directive, just comment out the code.
2648
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2649
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2650
 
am__include="#"
2651
 
am__quote=
2652
 
_am_result=none
2653
 
# First try GNU make style include.
2654
 
echo "include confinc" > confmf
2655
 
# We grep out `Entering directory' and `Leaving directory'
2656
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2657
 
# In particular we don't look at `^make:' because GNU make might
2658
 
# be invoked under some other name (usually "gmake"), in which
2659
 
# case it prints its new name instead of `make'.
2660
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2661
 
   am__include=include
2662
 
   am__quote=
2663
 
   _am_result=GNU
2664
 
fi
2665
 
# Now try BSD make style include.
2666
 
if test "$am__include" = "#"; then
2667
 
   echo '.include "confinc"' > confmf
2668
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2669
 
      am__include=.include
2670
 
      am__quote="\""
2671
 
      _am_result=BSD
2672
 
   fi
2673
 
fi
2674
 
 
2675
 
 
2676
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
2677
 
echo "${ECHO_T}$_am_result" >&6; }
2678
 
rm -f confinc confmf
2679
 
 
2680
 
# Check whether --enable-dependency-tracking was given.
2681
 
if test "${enable_dependency_tracking+set}" = set; then
2682
 
  enableval=$enable_dependency_tracking; 
2683
 
fi
2684
 
 
2685
 
if test "x$enable_dependency_tracking" != xno; then
2686
 
  am_depcomp="$ac_aux_dir/depcomp"
2687
 
  AMDEPBACKSLASH='\'
2688
 
fi
2689
 
 if test "x$enable_dependency_tracking" != xno; then
2690
 
  AMDEP_TRUE=
2691
 
  AMDEP_FALSE='#'
2692
 
else
2693
 
  AMDEP_TRUE='#'
2694
 
  AMDEP_FALSE=
2695
 
fi
2696
 
 
2697
 
 
2698
 
ac_ext=c
2699
 
ac_cpp='$CPP $CPPFLAGS'
2700
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
 
if test -n "$ac_tool_prefix"; then
2704
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2705
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2706
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2707
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2708
 
if test "${ac_cv_prog_CC+set}" = set; then
2709
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2710
 
else
2711
 
  if test -n "$CC"; then
2712
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2713
 
else
2714
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715
 
for as_dir in $PATH
2716
 
do
2717
 
  IFS=$as_save_IFS
2718
 
  test -z "$as_dir" && as_dir=.
2719
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2720
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2721
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2722
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2723
 
    break 2
2724
 
  fi
2725
 
done
2726
 
done
2727
 
IFS=$as_save_IFS
2728
 
 
2729
 
fi
2730
 
fi
2731
 
CC=$ac_cv_prog_CC
2732
 
if test -n "$CC"; then
2733
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2734
 
echo "${ECHO_T}$CC" >&6; }
2735
 
else
2736
 
  { echo "$as_me:$LINENO: result: no" >&5
2737
 
echo "${ECHO_T}no" >&6; }
2738
 
fi
2739
 
 
2740
 
 
2741
 
fi
2742
 
if test -z "$ac_cv_prog_CC"; then
2743
 
  ac_ct_CC=$CC
2744
 
  # Extract the first word of "gcc", so it can be a program name with args.
2745
 
set dummy gcc; ac_word=$2
2746
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2747
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2748
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2749
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2750
 
else
2751
 
  if test -n "$ac_ct_CC"; then
2752
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2753
 
else
2754
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755
 
for as_dir in $PATH
2756
 
do
2757
 
  IFS=$as_save_IFS
2758
 
  test -z "$as_dir" && as_dir=.
2759
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2760
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2761
 
    ac_cv_prog_ac_ct_CC="gcc"
2762
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2763
 
    break 2
2764
 
  fi
2765
 
done
2766
 
done
2767
 
IFS=$as_save_IFS
2768
 
 
2769
 
fi
2770
 
fi
2771
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2772
 
if test -n "$ac_ct_CC"; then
2773
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2774
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2775
 
else
2776
 
  { echo "$as_me:$LINENO: result: no" >&5
2777
 
echo "${ECHO_T}no" >&6; }
2778
 
fi
2779
 
 
2780
 
  if test "x$ac_ct_CC" = x; then
2781
 
    CC=""
2782
 
  else
2783
 
    case $cross_compiling:$ac_tool_warned in
2784
 
yes:)
2785
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2786
 
whose name does not start with the host triplet.  If you think this
2787
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2788
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2789
 
whose name does not start with the host triplet.  If you think this
2790
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2791
 
ac_tool_warned=yes ;;
2792
 
esac
2793
 
    CC=$ac_ct_CC
2794
 
  fi
2795
 
else
2796
 
  CC="$ac_cv_prog_CC"
2797
 
fi
2798
 
 
2799
 
if test -z "$CC"; then
2800
 
          if test -n "$ac_tool_prefix"; then
2801
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2802
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2803
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2804
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2805
 
if test "${ac_cv_prog_CC+set}" = set; then
2806
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2807
 
else
2808
 
  if test -n "$CC"; then
2809
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2810
 
else
2811
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812
 
for as_dir in $PATH
2813
 
do
2814
 
  IFS=$as_save_IFS
2815
 
  test -z "$as_dir" && as_dir=.
2816
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2817
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2819
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820
 
    break 2
2821
 
  fi
2822
 
done
2823
 
done
2824
 
IFS=$as_save_IFS
2825
 
 
2826
 
fi
2827
 
fi
2828
 
CC=$ac_cv_prog_CC
2829
 
if test -n "$CC"; then
2830
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2831
 
echo "${ECHO_T}$CC" >&6; }
2832
 
else
2833
 
  { echo "$as_me:$LINENO: result: no" >&5
2834
 
echo "${ECHO_T}no" >&6; }
2835
 
fi
2836
 
 
2837
 
 
2838
 
  fi
2839
 
fi
2840
 
if test -z "$CC"; then
2841
 
  # Extract the first word of "cc", so it can be a program name with args.
2842
 
set dummy cc; ac_word=$2
2843
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2844
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845
 
if test "${ac_cv_prog_CC+set}" = set; then
2846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2847
 
else
2848
 
  if test -n "$CC"; then
2849
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2850
 
else
2851
 
  ac_prog_rejected=no
2852
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853
 
for as_dir in $PATH
2854
 
do
2855
 
  IFS=$as_save_IFS
2856
 
  test -z "$as_dir" && as_dir=.
2857
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2858
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2859
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2860
 
       ac_prog_rejected=yes
2861
 
       continue
2862
 
     fi
2863
 
    ac_cv_prog_CC="cc"
2864
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865
 
    break 2
2866
 
  fi
2867
 
done
2868
 
done
2869
 
IFS=$as_save_IFS
2870
 
 
2871
 
if test $ac_prog_rejected = yes; then
2872
 
  # We found a bogon in the path, so make sure we never use it.
2873
 
  set dummy $ac_cv_prog_CC
2874
 
  shift
2875
 
  if test $@%:@ != 0; then
2876
 
    # We chose a different compiler from the bogus one.
2877
 
    # However, it has the same basename, so the bogon will be chosen
2878
 
    # first if we set CC to just the basename; use the full file name.
2879
 
    shift
2880
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2881
 
  fi
2882
 
fi
2883
 
fi
2884
 
fi
2885
 
CC=$ac_cv_prog_CC
2886
 
if test -n "$CC"; then
2887
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2888
 
echo "${ECHO_T}$CC" >&6; }
2889
 
else
2890
 
  { echo "$as_me:$LINENO: result: no" >&5
2891
 
echo "${ECHO_T}no" >&6; }
2892
 
fi
2893
 
 
2894
 
 
2895
 
fi
2896
 
if test -z "$CC"; then
2897
 
  if test -n "$ac_tool_prefix"; then
2898
 
  for ac_prog in cl.exe
2899
 
  do
2900
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2901
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2902
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2903
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904
 
if test "${ac_cv_prog_CC+set}" = set; then
2905
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2906
 
else
2907
 
  if test -n "$CC"; then
2908
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2909
 
else
2910
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911
 
for as_dir in $PATH
2912
 
do
2913
 
  IFS=$as_save_IFS
2914
 
  test -z "$as_dir" && as_dir=.
2915
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2916
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2918
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2919
 
    break 2
2920
 
  fi
2921
 
done
2922
 
done
2923
 
IFS=$as_save_IFS
2924
 
 
2925
 
fi
2926
 
fi
2927
 
CC=$ac_cv_prog_CC
2928
 
if test -n "$CC"; then
2929
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2930
 
echo "${ECHO_T}$CC" >&6; }
2931
 
else
2932
 
  { echo "$as_me:$LINENO: result: no" >&5
2933
 
echo "${ECHO_T}no" >&6; }
2934
 
fi
2935
 
 
2936
 
 
2937
 
    test -n "$CC" && break
2938
 
  done
2939
 
fi
2940
 
if test -z "$CC"; then
2941
 
  ac_ct_CC=$CC
2942
 
  for ac_prog in cl.exe
2943
 
do
2944
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2945
 
set dummy $ac_prog; ac_word=$2
2946
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2947
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2948
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2949
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2950
 
else
2951
 
  if test -n "$ac_ct_CC"; then
2952
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953
 
else
2954
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955
 
for as_dir in $PATH
2956
 
do
2957
 
  IFS=$as_save_IFS
2958
 
  test -z "$as_dir" && as_dir=.
2959
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2960
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2961
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2962
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963
 
    break 2
2964
 
  fi
2965
 
done
2966
 
done
2967
 
IFS=$as_save_IFS
2968
 
 
2969
 
fi
2970
 
fi
2971
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972
 
if test -n "$ac_ct_CC"; then
2973
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2974
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
2975
 
else
2976
 
  { echo "$as_me:$LINENO: result: no" >&5
2977
 
echo "${ECHO_T}no" >&6; }
2978
 
fi
2979
 
 
2980
 
 
2981
 
  test -n "$ac_ct_CC" && break
2982
 
done
2983
 
 
2984
 
  if test "x$ac_ct_CC" = x; then
2985
 
    CC=""
2986
 
  else
2987
 
    case $cross_compiling:$ac_tool_warned in
2988
 
yes:)
2989
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2990
 
whose name does not start with the host triplet.  If you think this
2991
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2992
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2993
 
whose name does not start with the host triplet.  If you think this
2994
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2995
 
ac_tool_warned=yes ;;
2996
 
esac
2997
 
    CC=$ac_ct_CC
2998
 
  fi
2999
 
fi
3000
 
 
3001
 
fi
3002
 
 
3003
 
 
3004
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3005
 
See \`config.log' for more details." >&5
3006
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3007
 
See \`config.log' for more details." >&2;}
3008
 
   { (exit 1); exit 1; }; }
3009
 
 
3010
 
# Provide some information about the compiler.
3011
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
3012
 
ac_compiler=`set X $ac_compile; echo $2`
3013
 
{ (ac_try="$ac_compiler --version >&5"
3014
 
case "(($ac_try" in
3015
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016
 
  *) ac_try_echo=$ac_try;;
3017
 
esac
3018
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019
 
  (eval "$ac_compiler --version >&5") 2>&5
3020
 
  ac_status=$?
3021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3022
 
  (exit $ac_status); }
3023
 
{ (ac_try="$ac_compiler -v >&5"
3024
 
case "(($ac_try" in
3025
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026
 
  *) ac_try_echo=$ac_try;;
3027
 
esac
3028
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029
 
  (eval "$ac_compiler -v >&5") 2>&5
3030
 
  ac_status=$?
3031
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032
 
  (exit $ac_status); }
3033
 
{ (ac_try="$ac_compiler -V >&5"
3034
 
case "(($ac_try" in
3035
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036
 
  *) ac_try_echo=$ac_try;;
3037
 
esac
3038
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039
 
  (eval "$ac_compiler -V >&5") 2>&5
3040
 
  ac_status=$?
3041
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042
 
  (exit $ac_status); }
3043
 
 
3044
 
cat >conftest.$ac_ext <<_ACEOF
3045
 
/* confdefs.h.  */
3046
 
_ACEOF
3047
 
cat confdefs.h >>conftest.$ac_ext
3048
 
cat >>conftest.$ac_ext <<_ACEOF
3049
 
/* end confdefs.h.  */
3050
 
 
3051
 
int
3052
 
main ()
3053
 
{
3054
 
 
3055
 
  ;
3056
 
  return 0;
3057
 
}
3058
 
_ACEOF
3059
 
ac_clean_files_save=$ac_clean_files
3060
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3061
 
# Try to create an executable without -o first, disregard a.out.
3062
 
# It will help us diagnose broken compilers, and finding out an intuition
3063
 
# of exeext.
3064
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3065
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3066
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3067
 
#
3068
 
# List of possible output files, starting from the most likely.
3069
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3070
 
# only as a last resort.  b.out is created by i960 compilers.
3071
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3072
 
#
3073
 
# The IRIX 6 linker writes into existing files which may not be
3074
 
# executable, retaining their permissions.  Remove them first so a
3075
 
# subsequent execution test works.
3076
 
ac_rmfiles=
3077
 
for ac_file in $ac_files
3078
 
do
3079
 
  case $ac_file in
3080
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3081
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3082
 
  esac
3083
 
done
3084
 
rm -f $ac_rmfiles
3085
 
 
3086
 
if { (ac_try="$ac_link_default"
3087
 
case "(($ac_try" in
3088
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089
 
  *) ac_try_echo=$ac_try;;
3090
 
esac
3091
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092
 
  (eval "$ac_link_default") 2>&5
3093
 
  ac_status=$?
3094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095
 
  (exit $ac_status); }; then
3096
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3097
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3098
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3099
 
# so that the user can short-circuit this test for compilers unknown to
3100
 
# Autoconf.
3101
 
for ac_file in $ac_files ''
3102
 
do
3103
 
  test -f "$ac_file" || continue
3104
 
  case $ac_file in
3105
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3106
 
        ;;
3107
 
    [ab].out )
3108
 
        # We found the default executable, but exeext='' is most
3109
 
        # certainly right.
3110
 
        break;;
3111
 
    *.* )
3112
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3113
 
        then :; else
3114
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115
 
        fi
3116
 
        # We set ac_cv_exeext here because the later test for it is not
3117
 
        # safe: cross compilers may not add the suffix if given an `-o'
3118
 
        # argument, so we may need to know it at that point already.
3119
 
        # Even if this section looks crufty: it has the advantage of
3120
 
        # actually working.
3121
 
        break;;
3122
 
    * )
3123
 
        break;;
3124
 
  esac
3125
 
done
3126
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
3127
 
 
3128
 
else
3129
 
  ac_file=''
3130
 
fi
3131
 
 
3132
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3133
 
echo "${ECHO_T}$ac_file" >&6; }
3134
 
if test -z "$ac_file"; then
3135
 
  echo "$as_me: failed program was:" >&5
3136
 
sed 's/^/| /' conftest.$ac_ext >&5
3137
 
 
3138
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3139
 
See \`config.log' for more details." >&5
3140
 
echo "$as_me: error: C compiler cannot create executables
3141
 
See \`config.log' for more details." >&2;}
3142
 
   { (exit 77); exit 77; }; }
3143
 
fi
3144
 
 
3145
 
ac_exeext=$ac_cv_exeext
3146
 
 
3147
 
# Check that the compiler produces executables we can run.  If not, either
3148
 
# the compiler is broken, or we cross compile.
3149
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3150
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3151
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3152
 
# If not cross compiling, check that we can run a simple program.
3153
 
if test "$cross_compiling" != yes; then
3154
 
  if { ac_try='./$ac_file'
3155
 
  { (case "(($ac_try" in
3156
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157
 
  *) ac_try_echo=$ac_try;;
3158
 
esac
3159
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160
 
  (eval "$ac_try") 2>&5
3161
 
  ac_status=$?
3162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
 
  (exit $ac_status); }; }; then
3164
 
    cross_compiling=no
3165
 
  else
3166
 
    if test "$cross_compiling" = maybe; then
3167
 
        cross_compiling=yes
3168
 
    else
3169
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3170
 
If you meant to cross compile, use \`--host'.
3171
 
See \`config.log' for more details." >&5
3172
 
echo "$as_me: error: cannot run C compiled programs.
3173
 
If you meant to cross compile, use \`--host'.
3174
 
See \`config.log' for more details." >&2;}
3175
 
   { (exit 1); exit 1; }; }
3176
 
    fi
3177
 
  fi
3178
 
fi
3179
 
{ echo "$as_me:$LINENO: result: yes" >&5
3180
 
echo "${ECHO_T}yes" >&6; }
3181
 
 
3182
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3183
 
ac_clean_files=$ac_clean_files_save
3184
 
# Check that the compiler produces executables we can run.  If not, either
3185
 
# the compiler is broken, or we cross compile.
3186
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3187
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3188
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3189
 
echo "${ECHO_T}$cross_compiling" >&6; }
3190
 
 
3191
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3192
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3193
 
if { (ac_try="$ac_link"
3194
 
case "(($ac_try" in
3195
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196
 
  *) ac_try_echo=$ac_try;;
3197
 
esac
3198
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199
 
  (eval "$ac_link") 2>&5
3200
 
  ac_status=$?
3201
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202
 
  (exit $ac_status); }; then
3203
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3204
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3205
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
3206
 
# `rm'.
3207
 
for ac_file in conftest.exe conftest conftest.*; do
3208
 
  test -f "$ac_file" || continue
3209
 
  case $ac_file in
3210
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3211
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3212
 
          break;;
3213
 
    * ) break;;
3214
 
  esac
3215
 
done
3216
 
else
3217
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3218
 
See \`config.log' for more details." >&5
3219
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3220
 
See \`config.log' for more details." >&2;}
3221
 
   { (exit 1); exit 1; }; }
3222
 
fi
3223
 
 
3224
 
rm -f conftest$ac_cv_exeext
3225
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3226
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3227
 
 
3228
 
rm -f conftest.$ac_ext
3229
 
EXEEXT=$ac_cv_exeext
3230
 
ac_exeext=$EXEEXT
3231
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3232
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3233
 
if test "${ac_cv_objext+set}" = set; then
3234
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3235
 
else
3236
 
  cat >conftest.$ac_ext <<_ACEOF
3237
 
/* confdefs.h.  */
3238
 
_ACEOF
3239
 
cat confdefs.h >>conftest.$ac_ext
3240
 
cat >>conftest.$ac_ext <<_ACEOF
3241
 
/* end confdefs.h.  */
3242
 
 
3243
 
int
3244
 
main ()
3245
 
{
3246
 
 
3247
 
  ;
3248
 
  return 0;
3249
 
}
3250
 
_ACEOF
3251
 
rm -f conftest.o conftest.obj
3252
 
if { (ac_try="$ac_compile"
3253
 
case "(($ac_try" in
3254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255
 
  *) ac_try_echo=$ac_try;;
3256
 
esac
3257
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258
 
  (eval "$ac_compile") 2>&5
3259
 
  ac_status=$?
3260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261
 
  (exit $ac_status); }; then
3262
 
  for ac_file in conftest.o conftest.obj conftest.*; do
3263
 
  test -f "$ac_file" || continue;
3264
 
  case $ac_file in
3265
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3266
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3267
 
       break;;
3268
 
  esac
3269
 
done
3270
 
else
3271
 
  echo "$as_me: failed program was:" >&5
3272
 
sed 's/^/| /' conftest.$ac_ext >&5
3273
 
 
3274
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3275
 
See \`config.log' for more details." >&5
3276
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3277
 
See \`config.log' for more details." >&2;}
3278
 
   { (exit 1); exit 1; }; }
3279
 
fi
3280
 
 
3281
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3282
 
fi
3283
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3284
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
3285
 
OBJEXT=$ac_cv_objext
3286
 
ac_objext=$OBJEXT
3287
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3288
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3289
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3290
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3291
 
else
3292
 
  cat >conftest.$ac_ext <<_ACEOF
3293
 
/* confdefs.h.  */
3294
 
_ACEOF
3295
 
cat confdefs.h >>conftest.$ac_ext
3296
 
cat >>conftest.$ac_ext <<_ACEOF
3297
 
/* end confdefs.h.  */
3298
 
 
3299
 
int
3300
 
main ()
3301
 
{
3302
 
#ifndef __GNUC__
3303
 
       choke me
3304
 
#endif
3305
 
 
3306
 
  ;
3307
 
  return 0;
3308
 
}
3309
 
_ACEOF
3310
 
rm -f conftest.$ac_objext
3311
 
if { (ac_try="$ac_compile"
3312
 
case "(($ac_try" in
3313
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314
 
  *) ac_try_echo=$ac_try;;
3315
 
esac
3316
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317
 
  (eval "$ac_compile") 2>conftest.er1
3318
 
  ac_status=$?
3319
 
  grep -v '^ *+' conftest.er1 >conftest.err
3320
 
  rm -f conftest.er1
3321
 
  cat conftest.err >&5
3322
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323
 
  (exit $ac_status); } && {
3324
 
         test -z "$ac_c_werror_flag" ||
3325
 
         test ! -s conftest.err
3326
 
       } && test -s conftest.$ac_objext; then
3327
 
  ac_compiler_gnu=yes
3328
 
else
3329
 
  echo "$as_me: failed program was:" >&5
3330
 
sed 's/^/| /' conftest.$ac_ext >&5
3331
 
 
3332
 
        ac_compiler_gnu=no
3333
 
fi
3334
 
 
3335
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3337
 
 
3338
 
fi
3339
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3340
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3341
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3342
 
ac_test_CFLAGS=${CFLAGS+set}
3343
 
ac_save_CFLAGS=$CFLAGS
3344
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3345
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3346
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3347
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3348
 
else
3349
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3350
 
   ac_c_werror_flag=yes
3351
 
   ac_cv_prog_cc_g=no
3352
 
   CFLAGS="-g"
3353
 
   cat >conftest.$ac_ext <<_ACEOF
3354
 
/* confdefs.h.  */
3355
 
_ACEOF
3356
 
cat confdefs.h >>conftest.$ac_ext
3357
 
cat >>conftest.$ac_ext <<_ACEOF
3358
 
/* end confdefs.h.  */
3359
 
 
3360
 
int
3361
 
main ()
3362
 
{
3363
 
 
3364
 
  ;
3365
 
  return 0;
3366
 
}
3367
 
_ACEOF
3368
 
rm -f conftest.$ac_objext
3369
 
if { (ac_try="$ac_compile"
3370
 
case "(($ac_try" in
3371
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372
 
  *) ac_try_echo=$ac_try;;
3373
 
esac
3374
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375
 
  (eval "$ac_compile") 2>conftest.er1
3376
 
  ac_status=$?
3377
 
  grep -v '^ *+' conftest.er1 >conftest.err
3378
 
  rm -f conftest.er1
3379
 
  cat conftest.err >&5
3380
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381
 
  (exit $ac_status); } && {
3382
 
         test -z "$ac_c_werror_flag" ||
3383
 
         test ! -s conftest.err
3384
 
       } && test -s conftest.$ac_objext; then
3385
 
  ac_cv_prog_cc_g=yes
3386
 
else
3387
 
  echo "$as_me: failed program was:" >&5
3388
 
sed 's/^/| /' conftest.$ac_ext >&5
3389
 
 
3390
 
        CFLAGS=""
3391
 
      cat >conftest.$ac_ext <<_ACEOF
3392
 
/* confdefs.h.  */
3393
 
_ACEOF
3394
 
cat confdefs.h >>conftest.$ac_ext
3395
 
cat >>conftest.$ac_ext <<_ACEOF
3396
 
/* end confdefs.h.  */
3397
 
 
3398
 
int
3399
 
main ()
3400
 
{
3401
 
 
3402
 
  ;
3403
 
  return 0;
3404
 
}
3405
 
_ACEOF
3406
 
rm -f conftest.$ac_objext
3407
 
if { (ac_try="$ac_compile"
3408
 
case "(($ac_try" in
3409
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410
 
  *) ac_try_echo=$ac_try;;
3411
 
esac
3412
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413
 
  (eval "$ac_compile") 2>conftest.er1
3414
 
  ac_status=$?
3415
 
  grep -v '^ *+' conftest.er1 >conftest.err
3416
 
  rm -f conftest.er1
3417
 
  cat conftest.err >&5
3418
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419
 
  (exit $ac_status); } && {
3420
 
         test -z "$ac_c_werror_flag" ||
3421
 
         test ! -s conftest.err
3422
 
       } && test -s conftest.$ac_objext; then
3423
 
  :
3424
 
else
3425
 
  echo "$as_me: failed program was:" >&5
3426
 
sed 's/^/| /' conftest.$ac_ext >&5
3427
 
 
3428
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3429
 
         CFLAGS="-g"
3430
 
         cat >conftest.$ac_ext <<_ACEOF
3431
 
/* confdefs.h.  */
3432
 
_ACEOF
3433
 
cat confdefs.h >>conftest.$ac_ext
3434
 
cat >>conftest.$ac_ext <<_ACEOF
3435
 
/* end confdefs.h.  */
3436
 
 
3437
 
int
3438
 
main ()
3439
 
{
3440
 
 
3441
 
  ;
3442
 
  return 0;
3443
 
}
3444
 
_ACEOF
3445
 
rm -f conftest.$ac_objext
3446
 
if { (ac_try="$ac_compile"
3447
 
case "(($ac_try" in
3448
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449
 
  *) ac_try_echo=$ac_try;;
3450
 
esac
3451
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452
 
  (eval "$ac_compile") 2>conftest.er1
3453
 
  ac_status=$?
3454
 
  grep -v '^ *+' conftest.er1 >conftest.err
3455
 
  rm -f conftest.er1
3456
 
  cat conftest.err >&5
3457
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458
 
  (exit $ac_status); } && {
3459
 
         test -z "$ac_c_werror_flag" ||
3460
 
         test ! -s conftest.err
3461
 
       } && test -s conftest.$ac_objext; then
3462
 
  ac_cv_prog_cc_g=yes
3463
 
else
3464
 
  echo "$as_me: failed program was:" >&5
3465
 
sed 's/^/| /' conftest.$ac_ext >&5
3466
 
 
3467
 
        
3468
 
fi
3469
 
 
3470
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471
 
fi
3472
 
 
3473
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474
 
fi
3475
 
 
3476
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3477
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3478
 
fi
3479
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3480
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3481
 
if test "$ac_test_CFLAGS" = set; then
3482
 
  CFLAGS=$ac_save_CFLAGS
3483
 
elif test $ac_cv_prog_cc_g = yes; then
3484
 
  if test "$GCC" = yes; then
3485
 
    CFLAGS="-g -O2"
3486
 
  else
3487
 
    CFLAGS="-g"
3488
 
  fi
3489
 
else
3490
 
  if test "$GCC" = yes; then
3491
 
    CFLAGS="-O2"
3492
 
  else
3493
 
    CFLAGS=
3494
 
  fi
3495
 
fi
3496
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3497
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3498
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3499
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3500
 
else
3501
 
  ac_cv_prog_cc_c89=no
3502
 
ac_save_CC=$CC
3503
 
cat >conftest.$ac_ext <<_ACEOF
3504
 
/* confdefs.h.  */
3505
 
_ACEOF
3506
 
cat confdefs.h >>conftest.$ac_ext
3507
 
cat >>conftest.$ac_ext <<_ACEOF
3508
 
/* end confdefs.h.  */
3509
 
#include <stdarg.h>
3510
 
#include <stdio.h>
3511
 
#include <sys/types.h>
3512
 
#include <sys/stat.h>
3513
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3514
 
struct buf { int x; };
3515
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3516
 
static char *e (p, i)
3517
 
     char **p;
3518
 
     int i;
3519
 
{
3520
 
  return p[i];
3521
 
}
3522
 
static char *f (char * (*g) (char **, int), char **p, ...)
3523
 
{
3524
 
  char *s;
3525
 
  va_list v;
3526
 
  va_start (v,p);
3527
 
  s = g (p, va_arg (v,int));
3528
 
  va_end (v);
3529
 
  return s;
3530
 
}
3531
 
 
3532
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3533
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3534
 
   These don't provoke an error unfortunately, instead are silently treated
3535
 
   as 'x'.  The following induces an error, until -std is added to get
3536
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3537
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3538
 
   that's true only with -std.  */
3539
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3540
 
 
3541
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3542
 
   inside strings and character constants.  */
3543
 
#define FOO(x) 'x'
3544
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3545
 
 
3546
 
int test (int i, double x);
3547
 
struct s1 {int (*f) (int a);};
3548
 
struct s2 {int (*f) (double a);};
3549
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3550
 
int argc;
3551
 
char **argv;
3552
 
int
3553
 
main ()
3554
 
{
3555
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3556
 
  ;
3557
 
  return 0;
3558
 
}
3559
 
_ACEOF
3560
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3561
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3562
 
do
3563
 
  CC="$ac_save_CC $ac_arg"
3564
 
  rm -f conftest.$ac_objext
3565
 
if { (ac_try="$ac_compile"
3566
 
case "(($ac_try" in
3567
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568
 
  *) ac_try_echo=$ac_try;;
3569
 
esac
3570
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571
 
  (eval "$ac_compile") 2>conftest.er1
3572
 
  ac_status=$?
3573
 
  grep -v '^ *+' conftest.er1 >conftest.err
3574
 
  rm -f conftest.er1
3575
 
  cat conftest.err >&5
3576
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
 
  (exit $ac_status); } && {
3578
 
         test -z "$ac_c_werror_flag" ||
3579
 
         test ! -s conftest.err
3580
 
       } && test -s conftest.$ac_objext; then
3581
 
  ac_cv_prog_cc_c89=$ac_arg
3582
 
else
3583
 
  echo "$as_me: failed program was:" >&5
3584
 
sed 's/^/| /' conftest.$ac_ext >&5
3585
 
 
3586
 
        
3587
 
fi
3588
 
 
3589
 
rm -f core conftest.err conftest.$ac_objext 
3590
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3591
 
done
3592
 
rm -f conftest.$ac_ext
3593
 
CC=$ac_save_CC
3594
 
 
3595
 
fi
3596
 
# AC_CACHE_VAL
3597
 
case "x$ac_cv_prog_cc_c89" in
3598
 
  x)
3599
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3600
 
echo "${ECHO_T}none needed" >&6; } ;;
3601
 
  xno)
3602
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3603
 
echo "${ECHO_T}unsupported" >&6; } ;;
3604
 
  *)
3605
 
    CC="$CC $ac_cv_prog_cc_c89"
3606
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3607
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3608
 
esac
3609
 
 
3610
 
 
3611
 
ac_ext=c
3612
 
ac_cpp='$CPP $CPPFLAGS'
3613
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3614
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3615
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3616
 
 
3617
 
depcc="$CC"   am_compiler_list=
3618
 
 
3619
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3620
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3621
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3622
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3623
 
else
3624
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3625
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3626
 
  # making bogus files that we don't know about and never remove.  For
3627
 
  # instance it was reported that on HP-UX the gcc test will end up
3628
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3629
 
  # in D'.
3630
 
  mkdir conftest.dir
3631
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3632
 
  # using a relative directory.
3633
 
  cp "$am_depcomp" conftest.dir
3634
 
  cd conftest.dir
3635
 
  # We will build objects and dependencies in a subdirectory because
3636
 
  # it helps to detect inapplicable dependency modes.  For instance
3637
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3638
 
  # side effect of compilation, but ICC will put the dependencies in
3639
 
  # the current directory while Tru64 will put them in the object
3640
 
  # directory.
3641
 
  mkdir sub
3642
 
 
3643
 
  am_cv_CC_dependencies_compiler_type=none
3644
 
  if test "$am_compiler_list" = ""; then
3645
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3646
 
  fi
3647
 
  for depmode in $am_compiler_list; do
3648
 
    # Setup a source with many dependencies, because some compilers
3649
 
    # like to wrap large dependency lists on column 80 (with \), and
3650
 
    # we should not choose a depcomp mode which is confused by this.
3651
 
    #
3652
 
    # We need to recreate these files for each test, as the compiler may
3653
 
    # overwrite some of them when testing with obscure command lines.
3654
 
    # This happens at least with the AIX C compiler.
3655
 
    : > sub/conftest.c
3656
 
    for i in 1 2 3 4 5 6; do
3657
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3658
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3659
 
      # Solaris 8's {/usr,}/bin/sh.
3660
 
      touch sub/conftst$i.h
3661
 
    done
3662
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3663
 
 
3664
 
    case $depmode in
3665
 
    nosideeffect)
3666
 
      # after this tag, mechanisms are not by side-effect, so they'll
3667
 
      # only be used when explicitly requested
3668
 
      if test "x$enable_dependency_tracking" = xyes; then
3669
 
        continue
3670
 
      else
3671
 
        break
3672
 
      fi
3673
 
      ;;
3674
 
    none) break ;;
3675
 
    esac
3676
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3677
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3678
 
    # handle `-M -o', and we need to detect this.
3679
 
    if depmode=$depmode \
3680
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3681
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3682
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3683
 
         >/dev/null 2>conftest.err &&
3684
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3685
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3686
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3687
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3688
 
      # icc doesn't choke on unknown options, it will just issue warnings
3689
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3690
 
      # that says an option was ignored or not supported.
3691
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3692
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3693
 
      # The diagnosis changed in icc 8.0:
3694
 
      #   icc: Command line remark: option '-MP' not supported
3695
 
      if (grep 'ignoring option' conftest.err ||
3696
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3697
 
        am_cv_CC_dependencies_compiler_type=$depmode
3698
 
        break
3699
 
      fi
3700
 
    fi
3701
 
  done
3702
 
 
3703
 
  cd ..
3704
 
  rm -rf conftest.dir
3705
 
else
3706
 
  am_cv_CC_dependencies_compiler_type=none
3707
 
fi
3708
 
 
3709
 
fi
3710
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3711
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3712
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3713
 
 
3714
 
 if 
3715
 
  test "x$enable_dependency_tracking" != xno \
3716
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3717
 
  am__fastdepCC_TRUE=
3718
 
  am__fastdepCC_FALSE='#'
3719
 
else
3720
 
  am__fastdepCC_TRUE='#'
3721
 
  am__fastdepCC_FALSE=
3722
 
fi
3723
 
 
3724
 
 
3725
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3726
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3727
 
if test "${lt_cv_path_SED+set}" = set; then
3728
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3729
 
else
3730
 
  # Loop through the user's path and test for sed and gsed.
3731
 
# Then use that list of sed's as ones to test for truncation.
3732
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733
 
for as_dir in $PATH
3734
 
do
3735
 
  IFS=$as_save_IFS
3736
 
  test -z "$as_dir" && as_dir=.
3737
 
  for lt_ac_prog in sed gsed; do
3738
 
    for ac_exec_ext in '' $ac_executable_extensions; do
3739
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3740
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3741
 
      fi
3742
 
    done
3743
 
  done
3744
 
done
3745
 
lt_ac_max=0
3746
 
lt_ac_count=0
3747
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3748
 
# along with /bin/sed that truncates output.
3749
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3750
 
  test ! -f $lt_ac_sed && continue
3751
 
  cat /dev/null > conftest.in
3752
 
  lt_ac_count=0
3753
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3754
 
  # Check for GNU sed and select it if it is found.
3755
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3756
 
    lt_cv_path_SED=$lt_ac_sed
3757
 
    break
3758
 
  fi
3759
 
  while true; do
3760
 
    cat conftest.in conftest.in >conftest.tmp
3761
 
    mv conftest.tmp conftest.in
3762
 
    cp conftest.in conftest.nl
3763
 
    echo >>conftest.nl
3764
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3765
 
    cmp -s conftest.out conftest.nl || break
3766
 
    # 10000 chars as input seems more than enough
3767
 
    test $lt_ac_count -gt 10 && break
3768
 
    lt_ac_count=`expr $lt_ac_count + 1`
3769
 
    if test $lt_ac_count -gt $lt_ac_max; then
3770
 
      lt_ac_max=$lt_ac_count
3771
 
      lt_cv_path_SED=$lt_ac_sed
3772
 
    fi
3773
 
  done
3774
 
done
3775
 
 
3776
 
fi
3777
 
 
3778
 
SED=$lt_cv_path_SED
3779
 
{ echo "$as_me:$LINENO: result: $SED" >&5
3780
 
echo "${ECHO_T}$SED" >&6; }
3781
 
 
3782
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3783
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3784
 
if test "${ac_cv_path_GREP+set}" = set; then
3785
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3786
 
else
3787
 
  # Extract the first word of "grep ggrep" to use in msg output
3788
 
if test -z "$GREP"; then
3789
 
set dummy grep ggrep; ac_prog_name=$2
3790
 
if test "${ac_cv_path_GREP+set}" = set; then
3791
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3792
 
else
3793
 
  ac_path_GREP_found=false
3794
 
# Loop through the user's path and test for each of PROGNAME-LIST
3795
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3797
 
do
3798
 
  IFS=$as_save_IFS
3799
 
  test -z "$as_dir" && as_dir=.
3800
 
  for ac_prog in grep ggrep; do
3801
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3802
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3803
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3804
 
    # Check for GNU ac_path_GREP and select it if it is found.
3805
 
  # Check for GNU $ac_path_GREP
3806
 
case `"$ac_path_GREP" --version 2>&1` in
3807
 
*GNU*)
3808
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3809
 
*)
3810
 
  ac_count=0
3811
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3812
 
  while :
3813
 
  do
3814
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3815
 
    mv "conftest.tmp" "conftest.in"
3816
 
    cp "conftest.in" "conftest.nl"
3817
 
    echo 'GREP' >> "conftest.nl"
3818
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3819
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3820
 
    ac_count=`expr $ac_count + 1`
3821
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3822
 
      # Best one so far, save it but keep looking for a better one
3823
 
      ac_cv_path_GREP="$ac_path_GREP"
3824
 
      ac_path_GREP_max=$ac_count
3825
 
    fi
3826
 
    # 10*(2^10) chars as input seems more than enough
3827
 
    test $ac_count -gt 10 && break
3828
 
  done
3829
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3830
 
esac
3831
 
 
3832
 
 
3833
 
    $ac_path_GREP_found && break 3
3834
 
  done
3835
 
done
3836
 
 
3837
 
done
3838
 
IFS=$as_save_IFS
3839
 
 
3840
 
 
3841
 
fi
3842
 
 
3843
 
GREP="$ac_cv_path_GREP"
3844
 
if test -z "$GREP"; then
3845
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3846
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3847
 
   { (exit 1); exit 1; }; }
3848
 
fi
3849
 
 
3850
 
else
3851
 
  ac_cv_path_GREP=$GREP
3852
 
fi
3853
 
 
3854
 
 
3855
 
fi
3856
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3857
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3858
 
 GREP="$ac_cv_path_GREP"
3859
 
 
3860
 
 
3861
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3862
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3863
 
if test "${ac_cv_path_EGREP+set}" = set; then
3864
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3865
 
else
3866
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3867
 
   then ac_cv_path_EGREP="$GREP -E"
3868
 
   else
3869
 
     # Extract the first word of "egrep" to use in msg output
3870
 
if test -z "$EGREP"; then
3871
 
set dummy egrep; ac_prog_name=$2
3872
 
if test "${ac_cv_path_EGREP+set}" = set; then
3873
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3874
 
else
3875
 
  ac_path_EGREP_found=false
3876
 
# Loop through the user's path and test for each of PROGNAME-LIST
3877
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3879
 
do
3880
 
  IFS=$as_save_IFS
3881
 
  test -z "$as_dir" && as_dir=.
3882
 
  for ac_prog in egrep; do
3883
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3884
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3885
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3886
 
    # Check for GNU ac_path_EGREP and select it if it is found.
3887
 
  # Check for GNU $ac_path_EGREP
3888
 
case `"$ac_path_EGREP" --version 2>&1` in
3889
 
*GNU*)
3890
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3891
 
*)
3892
 
  ac_count=0
3893
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3894
 
  while :
3895
 
  do
3896
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3897
 
    mv "conftest.tmp" "conftest.in"
3898
 
    cp "conftest.in" "conftest.nl"
3899
 
    echo 'EGREP' >> "conftest.nl"
3900
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3901
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3902
 
    ac_count=`expr $ac_count + 1`
3903
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3904
 
      # Best one so far, save it but keep looking for a better one
3905
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3906
 
      ac_path_EGREP_max=$ac_count
3907
 
    fi
3908
 
    # 10*(2^10) chars as input seems more than enough
3909
 
    test $ac_count -gt 10 && break
3910
 
  done
3911
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3912
 
esac
3913
 
 
3914
 
 
3915
 
    $ac_path_EGREP_found && break 3
3916
 
  done
3917
 
done
3918
 
 
3919
 
done
3920
 
IFS=$as_save_IFS
3921
 
 
3922
 
 
3923
 
fi
3924
 
 
3925
 
EGREP="$ac_cv_path_EGREP"
3926
 
if test -z "$EGREP"; then
3927
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3928
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3929
 
   { (exit 1); exit 1; }; }
3930
 
fi
3931
 
 
3932
 
else
3933
 
  ac_cv_path_EGREP=$EGREP
3934
 
fi
3935
 
 
3936
 
 
3937
 
   fi
3938
 
fi
3939
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3940
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3941
 
 EGREP="$ac_cv_path_EGREP"
3942
 
 
3943
 
 
3944
 
 
3945
 
# Check whether --with-gnu-ld was given.
3946
 
if test "${with_gnu_ld+set}" = set; then
3947
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3948
 
else
3949
 
  with_gnu_ld=no
3950
 
fi
3951
 
 
3952
 
ac_prog=ld
3953
 
if test "$GCC" = yes; then
3954
 
  # Check if gcc -print-prog-name=ld gives a path.
3955
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3956
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3957
 
  case $host in
3958
 
  *-*-mingw*)
3959
 
    # gcc leaves a trailing carriage return which upsets mingw
3960
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3961
 
  *)
3962
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3963
 
  esac
3964
 
  case $ac_prog in
3965
 
    # Accept absolute paths.
3966
 
    [\\/]* | ?:[\\/]*)
3967
 
      re_direlt='/[^/][^/]*/\.\./'
3968
 
      # Canonicalize the pathname of ld
3969
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3970
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3971
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3972
 
      done
3973
 
      test -z "$LD" && LD="$ac_prog"
3974
 
      ;;
3975
 
  "")
3976
 
    # If it fails, then pretend we aren't using GCC.
3977
 
    ac_prog=ld
3978
 
    ;;
3979
 
  *)
3980
 
    # If it is relative, then search for the first ld in PATH.
3981
 
    with_gnu_ld=unknown
3982
 
    ;;
3983
 
  esac
3984
 
elif test "$with_gnu_ld" = yes; then
3985
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3986
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3987
 
else
3988
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3989
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3990
 
fi
3991
 
if test "${lt_cv_path_LD+set}" = set; then
3992
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3993
 
else
3994
 
  if test -z "$LD"; then
3995
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3996
 
  for ac_dir in $PATH; do
3997
 
    IFS="$lt_save_ifs"
3998
 
    test -z "$ac_dir" && ac_dir=.
3999
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4000
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4001
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4002
 
      # but apparently some variants of GNU ld only accept -v.
4003
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4004
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4005
 
      *GNU* | *'with BFD'*)
4006
 
        test "$with_gnu_ld" != no && break
4007
 
        ;;
4008
 
      *)
4009
 
        test "$with_gnu_ld" != yes && break
4010
 
        ;;
4011
 
      esac
4012
 
    fi
4013
 
  done
4014
 
  IFS="$lt_save_ifs"
4015
 
else
4016
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4017
 
fi
4018
 
fi
4019
 
 
4020
 
LD="$lt_cv_path_LD"
4021
 
if test -n "$LD"; then
4022
 
  { echo "$as_me:$LINENO: result: $LD" >&5
4023
 
echo "${ECHO_T}$LD" >&6; }
4024
 
else
4025
 
  { echo "$as_me:$LINENO: result: no" >&5
4026
 
echo "${ECHO_T}no" >&6; }
4027
 
fi
4028
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4029
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4030
 
   { (exit 1); exit 1; }; }
4031
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4032
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4033
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4034
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4035
 
else
4036
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4037
 
case `$LD -v 2>&1 </dev/null` in
4038
 
*GNU* | *'with BFD'*)
4039
 
  lt_cv_prog_gnu_ld=yes
4040
 
  ;;
4041
 
*)
4042
 
  lt_cv_prog_gnu_ld=no
4043
 
  ;;
4044
 
esac
4045
 
fi
4046
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4047
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4048
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4049
 
 
4050
 
 
4051
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4052
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4053
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4055
 
else
4056
 
  lt_cv_ld_reload_flag='-r'
4057
 
fi
4058
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4059
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4060
 
reload_flag=$lt_cv_ld_reload_flag
4061
 
case $reload_flag in
4062
 
"" | " "*) ;;
4063
 
*) reload_flag=" $reload_flag" ;;
4064
 
esac
4065
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4066
 
case $host_os in
4067
 
  darwin*)
4068
 
    if test "$GCC" = yes; then
4069
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4070
 
    else
4071
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4072
 
    fi
4073
 
    ;;
4074
 
esac
4075
 
 
4076
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4077
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4078
 
if test "${lt_cv_path_NM+set}" = set; then
4079
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4080
 
else
4081
 
  if test -n "$NM"; then
4082
 
  # Let the user override the test.
4083
 
  lt_cv_path_NM="$NM"
4084
 
else
4085
 
  lt_nm_to_check="${ac_tool_prefix}nm"
4086
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
4087
 
    lt_nm_to_check="$lt_nm_to_check nm"
4088
 
  fi
4089
 
  for lt_tmp_nm in $lt_nm_to_check; do
4090
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4091
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4092
 
      IFS="$lt_save_ifs"
4093
 
      test -z "$ac_dir" && ac_dir=.
4094
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
4095
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4096
 
        # Check to see if the nm accepts a BSD-compat flag.
4097
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4098
 
        #   nm: unknown option "B" ignored
4099
 
        # Tru64's nm complains that /dev/null is an invalid object file
4100
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4101
 
        */dev/null* | *'Invalid file or object type'*)
4102
 
          lt_cv_path_NM="$tmp_nm -B"
4103
 
          break
4104
 
          ;;
4105
 
        *)
4106
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4107
 
          */dev/null*)
4108
 
            lt_cv_path_NM="$tmp_nm -p"
4109
 
            break
4110
 
            ;;
4111
 
          *)
4112
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4113
 
            continue # so that we can try to find one that supports BSD flags
4114
 
            ;;
4115
 
          esac
4116
 
          ;;
4117
 
        esac
4118
 
      fi
4119
 
    done
4120
 
    IFS="$lt_save_ifs"
4121
 
  done
4122
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4123
 
fi
4124
 
fi
4125
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4126
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4127
 
NM="$lt_cv_path_NM"
4128
 
 
4129
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4130
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4131
 
LN_S=$as_ln_s
4132
 
if test "$LN_S" = "ln -s"; then
4133
 
  { echo "$as_me:$LINENO: result: yes" >&5
4134
 
echo "${ECHO_T}yes" >&6; }
4135
 
else
4136
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4137
 
echo "${ECHO_T}no, using $LN_S" >&6; }
4138
 
fi
4139
 
 
4140
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4141
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4142
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4144
 
else
4145
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4146
 
lt_cv_file_magic_test_file=
4147
 
lt_cv_deplibs_check_method='unknown'
4148
 
# Need to set the preceding variable on all platforms that support
4149
 
# interlibrary dependencies.
4150
 
# 'none' -- dependencies not supported.
4151
 
# `unknown' -- same as none, but documents that we really don't know.
4152
 
# 'pass_all' -- all dependencies passed with no checks.
4153
 
# 'test_compile' -- check by making test program.
4154
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4155
 
# which responds to the $file_magic_cmd with a given extended regex.
4156
 
# If you have `file' or equivalent on your system and you're not sure
4157
 
# whether `pass_all' will *always* work, you probably want this one.
4158
 
 
4159
 
case $host_os in
4160
 
aix4* | aix5*)
4161
 
  lt_cv_deplibs_check_method=pass_all
4162
 
  ;;
4163
 
 
4164
 
beos*)
4165
 
  lt_cv_deplibs_check_method=pass_all
4166
 
  ;;
4167
 
 
4168
 
bsdi[45]*)
4169
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4170
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4171
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4172
 
  ;;
4173
 
 
4174
 
cygwin*)
4175
 
  # func_win32_libid is a shell function defined in ltmain.sh
4176
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4177
 
  lt_cv_file_magic_cmd='func_win32_libid'
4178
 
  ;;
4179
 
 
4180
 
mingw* | pw32*)
4181
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4182
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4183
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4184
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4185
 
  ;;
4186
 
 
4187
 
darwin* | rhapsody*)
4188
 
  lt_cv_deplibs_check_method=pass_all
4189
 
  ;;
4190
 
 
4191
 
freebsd* | dragonfly*)
4192
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4193
 
    case $host_cpu in
4194
 
    i*86 )
4195
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4196
 
      # Let's accept both of them until this is cleared up.
4197
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4198
 
      lt_cv_file_magic_cmd=/usr/bin/file
4199
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4200
 
      ;;
4201
 
    esac
4202
 
  else
4203
 
    lt_cv_deplibs_check_method=pass_all
4204
 
  fi
4205
 
  ;;
4206
 
 
4207
 
gnu*)
4208
 
  lt_cv_deplibs_check_method=pass_all
4209
 
  ;;
4210
 
 
4211
 
hpux10.20* | hpux11*)
4212
 
  lt_cv_file_magic_cmd=/usr/bin/file
4213
 
  case $host_cpu in
4214
 
  ia64*)
4215
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4216
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4217
 
    ;;
4218
 
  hppa*64*)
4219
 
    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]'
4220
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4221
 
    ;;
4222
 
  *)
4223
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4224
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4225
 
    ;;
4226
 
  esac
4227
 
  ;;
4228
 
 
4229
 
interix3*)
4230
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4231
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4232
 
  ;;
4233
 
 
4234
 
irix5* | irix6* | nonstopux*)
4235
 
  case $LD in
4236
 
  *-32|*"-32 ") libmagic=32-bit;;
4237
 
  *-n32|*"-n32 ") libmagic=N32;;
4238
 
  *-64|*"-64 ") libmagic=64-bit;;
4239
 
  *) libmagic=never-match;;
4240
 
  esac
4241
 
  lt_cv_deplibs_check_method=pass_all
4242
 
  ;;
4243
 
 
4244
 
# This must be Linux ELF.
4245
 
linux* | k*bsd*-gnu)
4246
 
  lt_cv_deplibs_check_method=pass_all
4247
 
  ;;
4248
 
 
4249
 
netbsd* | netbsdelf*-gnu)
4250
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4251
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4252
 
  else
4253
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4254
 
  fi
4255
 
  ;;
4256
 
 
4257
 
newos6*)
4258
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4259
 
  lt_cv_file_magic_cmd=/usr/bin/file
4260
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4261
 
  ;;
4262
 
 
4263
 
nto-qnx*)
4264
 
  lt_cv_deplibs_check_method=unknown
4265
 
  ;;
4266
 
 
4267
 
openbsd*)
4268
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4269
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4270
 
  else
4271
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4272
 
  fi
4273
 
  ;;
4274
 
 
4275
 
osf3* | osf4* | osf5*)
4276
 
  lt_cv_deplibs_check_method=pass_all
4277
 
  ;;
4278
 
 
4279
 
solaris*)
4280
 
  lt_cv_deplibs_check_method=pass_all
4281
 
  ;;
4282
 
 
4283
 
sysv4 | sysv4.3*)
4284
 
  case $host_vendor in
4285
 
  motorola)
4286
 
    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]'
4287
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4288
 
    ;;
4289
 
  ncr)
4290
 
    lt_cv_deplibs_check_method=pass_all
4291
 
    ;;
4292
 
  sequent)
4293
 
    lt_cv_file_magic_cmd='/bin/file'
4294
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4295
 
    ;;
4296
 
  sni)
4297
 
    lt_cv_file_magic_cmd='/bin/file'
4298
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4299
 
    lt_cv_file_magic_test_file=/lib/libc.so
4300
 
    ;;
4301
 
  siemens)
4302
 
    lt_cv_deplibs_check_method=pass_all
4303
 
    ;;
4304
 
  pc)
4305
 
    lt_cv_deplibs_check_method=pass_all
4306
 
    ;;
4307
 
  esac
4308
 
  ;;
4309
 
 
4310
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4311
 
  lt_cv_deplibs_check_method=pass_all
4312
 
  ;;
4313
 
esac
4314
 
 
4315
 
fi
4316
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4317
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4318
 
file_magic_cmd=$lt_cv_file_magic_cmd
4319
 
deplibs_check_method=$lt_cv_deplibs_check_method
4320
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4321
 
 
4322
 
 
4323
 
 
4324
 
 
4325
 
# If no C compiler was specified, use CC.
4326
 
LTCC=${LTCC-"$CC"}
4327
 
 
4328
 
# If no C compiler flags were specified, use CFLAGS.
4329
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4330
 
 
4331
 
# Allow CC to be a program name with arguments.
4332
 
compiler=$CC
4333
 
 
4334
 
 
4335
 
# Check whether --enable-libtool-lock was given.
4336
 
if test "${enable_libtool_lock+set}" = set; then
4337
 
  enableval=$enable_libtool_lock; 
4338
 
fi
4339
 
 
4340
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4341
 
 
4342
 
# Some flags need to be propagated to the compiler or linker for good
4343
 
# libtool support.
4344
 
case $host in
4345
 
ia64-*-hpux*)
4346
 
  # Find out which ABI we are using.
4347
 
  echo 'int i;' > conftest.$ac_ext
4348
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4349
 
  (eval $ac_compile) 2>&5
4350
 
  ac_status=$?
4351
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352
 
  (exit $ac_status); }; then
4353
 
    case `/usr/bin/file conftest.$ac_objext` in
4354
 
    *ELF-32*)
4355
 
      HPUX_IA64_MODE="32"
4356
 
      ;;
4357
 
    *ELF-64*)
4358
 
      HPUX_IA64_MODE="64"
4359
 
      ;;
4360
 
    esac
4361
 
  fi
4362
 
  rm -rf conftest*
4363
 
  ;;
4364
 
*-*-irix6*)
4365
 
  # Find out which ABI we are using.
4366
 
  echo '#line __oline__ "configure"' > conftest.$ac_ext
4367
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368
 
  (eval $ac_compile) 2>&5
4369
 
  ac_status=$?
4370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371
 
  (exit $ac_status); }; then
4372
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4373
 
    case `/usr/bin/file conftest.$ac_objext` in
4374
 
    *32-bit*)
4375
 
      LD="${LD-ld} -melf32bsmip"
4376
 
      ;;
4377
 
    *N32*)
4378
 
      LD="${LD-ld} -melf32bmipn32"
4379
 
      ;;
4380
 
    *64-bit*)
4381
 
      LD="${LD-ld} -melf64bmip"
4382
 
      ;;
4383
 
    esac
4384
 
   else
4385
 
    case `/usr/bin/file conftest.$ac_objext` in
4386
 
    *32-bit*)
4387
 
      LD="${LD-ld} -32"
4388
 
      ;;
4389
 
    *N32*)
4390
 
      LD="${LD-ld} -n32"
4391
 
      ;;
4392
 
    *64-bit*)
4393
 
      LD="${LD-ld} -64"
4394
 
      ;;
4395
 
    esac
4396
 
   fi
4397
 
  fi
4398
 
  rm -rf conftest*
4399
 
  ;;
4400
 
 
4401
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4402
 
  # Find out which ABI we are using.
4403
 
  echo 'int i;' > conftest.$ac_ext
4404
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4405
 
  (eval $ac_compile) 2>&5
4406
 
  ac_status=$?
4407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408
 
  (exit $ac_status); }; then
4409
 
    case `/usr/bin/file conftest.o` in
4410
 
    *32-bit*)
4411
 
      case $host in
4412
 
        x86_64-*linux*)
4413
 
          LD="${LD-ld} -m elf_i386"
4414
 
          ;;
4415
 
        ppc64-*linux*|powerpc64-*linux*)
4416
 
          LD="${LD-ld} -m elf32ppclinux"
4417
 
          ;;
4418
 
        s390x-*linux*)
4419
 
          LD="${LD-ld} -m elf_s390"
4420
 
          ;;
4421
 
        sparc64-*linux*)
4422
 
          LD="${LD-ld} -m elf32_sparc"
4423
 
          ;;
4424
 
      esac
4425
 
      ;;
4426
 
    *64-bit*)
4427
 
      case $host in
4428
 
        x86_64-*linux*)
4429
 
          LD="${LD-ld} -m elf_x86_64"
4430
 
          ;;
4431
 
        ppc*-*linux*|powerpc*-*linux*)
4432
 
          LD="${LD-ld} -m elf64ppc"
4433
 
          ;;
4434
 
        s390*-*linux*)
4435
 
          LD="${LD-ld} -m elf64_s390"
4436
 
          ;;
4437
 
        sparc*-*linux*)
4438
 
          LD="${LD-ld} -m elf64_sparc"
4439
 
          ;;
4440
 
      esac
4441
 
      ;;
4442
 
    esac
4443
 
  fi
4444
 
  rm -rf conftest*
4445
 
  ;;
4446
 
 
4447
 
*-*-sco3.2v5*)
4448
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4449
 
  SAVE_CFLAGS="$CFLAGS"
4450
 
  CFLAGS="$CFLAGS -belf"
4451
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4452
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4453
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4454
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4455
 
else
4456
 
  ac_ext=c
4457
 
ac_cpp='$CPP $CPPFLAGS'
4458
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
 
 
4462
 
     cat >conftest.$ac_ext <<_ACEOF
4463
 
/* confdefs.h.  */
4464
 
_ACEOF
4465
 
cat confdefs.h >>conftest.$ac_ext
4466
 
cat >>conftest.$ac_ext <<_ACEOF
4467
 
/* end confdefs.h.  */
4468
 
 
4469
 
int
4470
 
main ()
4471
 
{
4472
 
 
4473
 
  ;
4474
 
  return 0;
4475
 
}
4476
 
_ACEOF
4477
 
rm -f conftest.$ac_objext conftest$ac_exeext
4478
 
if { (ac_try="$ac_link"
4479
 
case "(($ac_try" in
4480
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481
 
  *) ac_try_echo=$ac_try;;
4482
 
esac
4483
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4484
 
  (eval "$ac_link") 2>conftest.er1
4485
 
  ac_status=$?
4486
 
  grep -v '^ *+' conftest.er1 >conftest.err
4487
 
  rm -f conftest.er1
4488
 
  cat conftest.err >&5
4489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490
 
  (exit $ac_status); } && {
4491
 
         test -z "$ac_c_werror_flag" ||
4492
 
         test ! -s conftest.err
4493
 
       } && test -s conftest$ac_exeext &&
4494
 
       $as_test_x conftest$ac_exeext; then
4495
 
  lt_cv_cc_needs_belf=yes
4496
 
else
4497
 
  echo "$as_me: failed program was:" >&5
4498
 
sed 's/^/| /' conftest.$ac_ext >&5
4499
 
 
4500
 
        lt_cv_cc_needs_belf=no
4501
 
fi
4502
 
 
4503
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4504
 
      conftest$ac_exeext conftest.$ac_ext
4505
 
     ac_ext=c
4506
 
ac_cpp='$CPP $CPPFLAGS'
4507
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4508
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4509
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4510
 
 
4511
 
fi
4512
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4513
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4514
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4515
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4516
 
    CFLAGS="$SAVE_CFLAGS"
4517
 
  fi
4518
 
  ;;
4519
 
sparc*-*solaris*)
4520
 
  # Find out which ABI we are using.
4521
 
  echo 'int i;' > conftest.$ac_ext
4522
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523
 
  (eval $ac_compile) 2>&5
4524
 
  ac_status=$?
4525
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526
 
  (exit $ac_status); }; then
4527
 
    case `/usr/bin/file conftest.o` in
4528
 
    *64-bit*)
4529
 
      case $lt_cv_prog_gnu_ld in
4530
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4531
 
      *)    LD="${LD-ld} -64" ;;
4532
 
      esac
4533
 
      ;;
4534
 
    esac
4535
 
  fi
4536
 
  rm -rf conftest*
4537
 
  ;;
4538
 
 
4539
 
 
4540
 
esac
4541
 
 
4542
 
need_locks="$enable_libtool_lock"
4543
 
 
4544
 
 
4545
 
ac_ext=c
4546
 
ac_cpp='$CPP $CPPFLAGS'
4547
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4550
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4551
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4552
 
# On Suns, sometimes $CPP names a directory.
4553
 
if test -n "$CPP" && test -d "$CPP"; then
4554
 
  CPP=
4555
 
fi
4556
 
if test -z "$CPP"; then
4557
 
  if test "${ac_cv_prog_CPP+set}" = set; then
4558
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4559
 
else
4560
 
      # Double quotes because CPP needs to be expanded
4561
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4562
 
    do
4563
 
      ac_preproc_ok=false
4564
 
for ac_c_preproc_warn_flag in '' yes
4565
 
do
4566
 
  # Use a header file that comes with gcc, so configuring glibc
4567
 
  # with a fresh cross-compiler works.
4568
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4569
 
  # <limits.h> exists even on freestanding compilers.
4570
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4571
 
  # not just through cpp. "Syntax error" is here to catch this case.
4572
 
  cat >conftest.$ac_ext <<_ACEOF
4573
 
/* confdefs.h.  */
4574
 
_ACEOF
4575
 
cat confdefs.h >>conftest.$ac_ext
4576
 
cat >>conftest.$ac_ext <<_ACEOF
4577
 
/* end confdefs.h.  */
4578
 
@%:@ifdef __STDC__
4579
 
@%:@ include <limits.h>
4580
 
@%:@else
4581
 
@%:@ include <assert.h>
4582
 
@%:@endif
4583
 
                     Syntax error
4584
 
_ACEOF
4585
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4586
 
case "(($ac_try" in
4587
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4588
 
  *) ac_try_echo=$ac_try;;
4589
 
esac
4590
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4591
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4592
 
  ac_status=$?
4593
 
  grep -v '^ *+' conftest.er1 >conftest.err
4594
 
  rm -f conftest.er1
4595
 
  cat conftest.err >&5
4596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597
 
  (exit $ac_status); } >/dev/null && {
4598
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4599
 
         test ! -s conftest.err
4600
 
       }; then
4601
 
  :
4602
 
else
4603
 
  echo "$as_me: failed program was:" >&5
4604
 
sed 's/^/| /' conftest.$ac_ext >&5
4605
 
 
4606
 
  # Broken: fails on valid input.
4607
 
continue
4608
 
fi
4609
 
 
4610
 
rm -f conftest.err conftest.$ac_ext
4611
 
 
4612
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4613
 
  # can be detected and how.
4614
 
  cat >conftest.$ac_ext <<_ACEOF
4615
 
/* confdefs.h.  */
4616
 
_ACEOF
4617
 
cat confdefs.h >>conftest.$ac_ext
4618
 
cat >>conftest.$ac_ext <<_ACEOF
4619
 
/* end confdefs.h.  */
4620
 
@%:@include <ac_nonexistent.h>
4621
 
_ACEOF
4622
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4623
 
case "(($ac_try" in
4624
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625
 
  *) ac_try_echo=$ac_try;;
4626
 
esac
4627
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4629
 
  ac_status=$?
4630
 
  grep -v '^ *+' conftest.er1 >conftest.err
4631
 
  rm -f conftest.er1
4632
 
  cat conftest.err >&5
4633
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634
 
  (exit $ac_status); } >/dev/null && {
4635
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4636
 
         test ! -s conftest.err
4637
 
       }; then
4638
 
  # Broken: success on invalid input.
4639
 
continue
4640
 
else
4641
 
  echo "$as_me: failed program was:" >&5
4642
 
sed 's/^/| /' conftest.$ac_ext >&5
4643
 
 
4644
 
  # Passes both tests.
4645
 
ac_preproc_ok=:
4646
 
break
4647
 
fi
4648
 
 
4649
 
rm -f conftest.err conftest.$ac_ext
4650
 
 
4651
 
done
4652
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4653
 
rm -f conftest.err conftest.$ac_ext
4654
 
if $ac_preproc_ok; then
4655
 
  break
4656
 
fi
4657
 
 
4658
 
    done
4659
 
    ac_cv_prog_CPP=$CPP
4660
 
  
4661
 
fi
4662
 
  CPP=$ac_cv_prog_CPP
4663
 
else
4664
 
  ac_cv_prog_CPP=$CPP
4665
 
fi
4666
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4667
 
echo "${ECHO_T}$CPP" >&6; }
4668
 
ac_preproc_ok=false
4669
 
for ac_c_preproc_warn_flag in '' yes
4670
 
do
4671
 
  # Use a header file that comes with gcc, so configuring glibc
4672
 
  # with a fresh cross-compiler works.
4673
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4674
 
  # <limits.h> exists even on freestanding compilers.
4675
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4676
 
  # not just through cpp. "Syntax error" is here to catch this case.
4677
 
  cat >conftest.$ac_ext <<_ACEOF
4678
 
/* confdefs.h.  */
4679
 
_ACEOF
4680
 
cat confdefs.h >>conftest.$ac_ext
4681
 
cat >>conftest.$ac_ext <<_ACEOF
4682
 
/* end confdefs.h.  */
4683
 
@%:@ifdef __STDC__
4684
 
@%:@ include <limits.h>
4685
 
@%:@else
4686
 
@%:@ include <assert.h>
4687
 
@%:@endif
4688
 
                     Syntax error
4689
 
_ACEOF
4690
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4691
 
case "(($ac_try" in
4692
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4693
 
  *) ac_try_echo=$ac_try;;
4694
 
esac
4695
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4696
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4697
 
  ac_status=$?
4698
 
  grep -v '^ *+' conftest.er1 >conftest.err
4699
 
  rm -f conftest.er1
4700
 
  cat conftest.err >&5
4701
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
 
  (exit $ac_status); } >/dev/null && {
4703
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4704
 
         test ! -s conftest.err
4705
 
       }; then
4706
 
  :
4707
 
else
4708
 
  echo "$as_me: failed program was:" >&5
4709
 
sed 's/^/| /' conftest.$ac_ext >&5
4710
 
 
4711
 
  # Broken: fails on valid input.
4712
 
continue
4713
 
fi
4714
 
 
4715
 
rm -f conftest.err conftest.$ac_ext
4716
 
 
4717
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4718
 
  # can be detected and how.
4719
 
  cat >conftest.$ac_ext <<_ACEOF
4720
 
/* confdefs.h.  */
4721
 
_ACEOF
4722
 
cat confdefs.h >>conftest.$ac_ext
4723
 
cat >>conftest.$ac_ext <<_ACEOF
4724
 
/* end confdefs.h.  */
4725
 
@%:@include <ac_nonexistent.h>
4726
 
_ACEOF
4727
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4728
 
case "(($ac_try" in
4729
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730
 
  *) ac_try_echo=$ac_try;;
4731
 
esac
4732
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4733
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734
 
  ac_status=$?
4735
 
  grep -v '^ *+' conftest.er1 >conftest.err
4736
 
  rm -f conftest.er1
4737
 
  cat conftest.err >&5
4738
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739
 
  (exit $ac_status); } >/dev/null && {
4740
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4741
 
         test ! -s conftest.err
4742
 
       }; then
4743
 
  # Broken: success on invalid input.
4744
 
continue
4745
 
else
4746
 
  echo "$as_me: failed program was:" >&5
4747
 
sed 's/^/| /' conftest.$ac_ext >&5
4748
 
 
4749
 
  # Passes both tests.
4750
 
ac_preproc_ok=:
4751
 
break
4752
 
fi
4753
 
 
4754
 
rm -f conftest.err conftest.$ac_ext
4755
 
 
4756
 
done
4757
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4758
 
rm -f conftest.err conftest.$ac_ext
4759
 
if $ac_preproc_ok; then
4760
 
  :
4761
 
else
4762
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4763
 
See \`config.log' for more details." >&5
4764
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4765
 
See \`config.log' for more details." >&2;}
4766
 
   { (exit 1); exit 1; }; }
4767
 
fi
4768
 
 
4769
 
ac_ext=c
4770
 
ac_cpp='$CPP $CPPFLAGS'
4771
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4772
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4773
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4774
 
 
4775
 
 
4776
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4777
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4778
 
if test "${ac_cv_header_stdc+set}" = set; then
4779
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4780
 
else
4781
 
  cat >conftest.$ac_ext <<_ACEOF
4782
 
/* confdefs.h.  */
4783
 
_ACEOF
4784
 
cat confdefs.h >>conftest.$ac_ext
4785
 
cat >>conftest.$ac_ext <<_ACEOF
4786
 
/* end confdefs.h.  */
4787
 
#include <stdlib.h>
4788
 
#include <stdarg.h>
4789
 
#include <string.h>
4790
 
#include <float.h>
4791
 
 
4792
 
int
4793
 
main ()
4794
 
{
4795
 
 
4796
 
  ;
4797
 
  return 0;
4798
 
}
4799
 
_ACEOF
4800
 
rm -f conftest.$ac_objext
4801
 
if { (ac_try="$ac_compile"
4802
 
case "(($ac_try" in
4803
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4804
 
  *) ac_try_echo=$ac_try;;
4805
 
esac
4806
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4807
 
  (eval "$ac_compile") 2>conftest.er1
4808
 
  ac_status=$?
4809
 
  grep -v '^ *+' conftest.er1 >conftest.err
4810
 
  rm -f conftest.er1
4811
 
  cat conftest.err >&5
4812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
 
  (exit $ac_status); } && {
4814
 
         test -z "$ac_c_werror_flag" ||
4815
 
         test ! -s conftest.err
4816
 
       } && test -s conftest.$ac_objext; then
4817
 
  ac_cv_header_stdc=yes
4818
 
else
4819
 
  echo "$as_me: failed program was:" >&5
4820
 
sed 's/^/| /' conftest.$ac_ext >&5
4821
 
 
4822
 
        ac_cv_header_stdc=no
4823
 
fi
4824
 
 
4825
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4826
 
 
4827
 
if test $ac_cv_header_stdc = yes; then
4828
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4829
 
  cat >conftest.$ac_ext <<_ACEOF
4830
 
/* confdefs.h.  */
4831
 
_ACEOF
4832
 
cat confdefs.h >>conftest.$ac_ext
4833
 
cat >>conftest.$ac_ext <<_ACEOF
4834
 
/* end confdefs.h.  */
4835
 
#include <string.h>
4836
 
 
4837
 
_ACEOF
4838
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4839
 
  $EGREP "memchr" >/dev/null 2>&1; then
4840
 
  :
4841
 
else
4842
 
  ac_cv_header_stdc=no
4843
 
fi
4844
 
rm -f conftest*
4845
 
 
4846
 
fi
4847
 
 
4848
 
if test $ac_cv_header_stdc = yes; then
4849
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4850
 
  cat >conftest.$ac_ext <<_ACEOF
4851
 
/* confdefs.h.  */
4852
 
_ACEOF
4853
 
cat confdefs.h >>conftest.$ac_ext
4854
 
cat >>conftest.$ac_ext <<_ACEOF
4855
 
/* end confdefs.h.  */
4856
 
#include <stdlib.h>
4857
 
 
4858
 
_ACEOF
4859
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860
 
  $EGREP "free" >/dev/null 2>&1; then
4861
 
  :
4862
 
else
4863
 
  ac_cv_header_stdc=no
4864
 
fi
4865
 
rm -f conftest*
4866
 
 
4867
 
fi
4868
 
 
4869
 
if test $ac_cv_header_stdc = yes; then
4870
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4871
 
  if test "$cross_compiling" = yes; then
4872
 
  :
4873
 
else
4874
 
  cat >conftest.$ac_ext <<_ACEOF
4875
 
/* confdefs.h.  */
4876
 
_ACEOF
4877
 
cat confdefs.h >>conftest.$ac_ext
4878
 
cat >>conftest.$ac_ext <<_ACEOF
4879
 
/* end confdefs.h.  */
4880
 
#include <ctype.h>
4881
 
#include <stdlib.h>
4882
 
#if ((' ' & 0x0FF) == 0x020)
4883
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4884
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4885
 
#else
4886
 
# define ISLOWER(c) \
4887
 
                   (('a' <= (c) && (c) <= 'i') \
4888
 
                     || ('j' <= (c) && (c) <= 'r') \
4889
 
                     || ('s' <= (c) && (c) <= 'z'))
4890
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4891
 
#endif
4892
 
 
4893
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4894
 
int
4895
 
main ()
4896
 
{
4897
 
  int i;
4898
 
  for (i = 0; i < 256; i++)
4899
 
    if (XOR (islower (i), ISLOWER (i))
4900
 
        || toupper (i) != TOUPPER (i))
4901
 
      return 2;
4902
 
  return 0;
4903
 
}
4904
 
_ACEOF
4905
 
rm -f conftest$ac_exeext
4906
 
if { (ac_try="$ac_link"
4907
 
case "(($ac_try" in
4908
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4909
 
  *) ac_try_echo=$ac_try;;
4910
 
esac
4911
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4912
 
  (eval "$ac_link") 2>&5
4913
 
  ac_status=$?
4914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4916
 
  { (case "(($ac_try" in
4917
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4918
 
  *) ac_try_echo=$ac_try;;
4919
 
esac
4920
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4921
 
  (eval "$ac_try") 2>&5
4922
 
  ac_status=$?
4923
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924
 
  (exit $ac_status); }; }; then
4925
 
  :
4926
 
else
4927
 
  echo "$as_me: program exited with status $ac_status" >&5
4928
 
echo "$as_me: failed program was:" >&5
4929
 
sed 's/^/| /' conftest.$ac_ext >&5
4930
 
 
4931
 
( exit $ac_status )
4932
 
ac_cv_header_stdc=no
4933
 
fi
4934
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4935
 
fi
4936
 
 
4937
 
 
4938
 
fi
4939
 
fi
4940
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4941
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4942
 
if test $ac_cv_header_stdc = yes; then
4943
 
  
4944
 
cat >>confdefs.h <<\_ACEOF
4945
 
@%:@define STDC_HEADERS 1
4946
 
_ACEOF
4947
 
 
4948
 
fi
4949
 
 
4950
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4951
 
 
4952
 
 
4953
 
 
4954
 
 
4955
 
 
4956
 
 
4957
 
 
4958
 
 
4959
 
 
4960
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4961
 
                  inttypes.h stdint.h unistd.h
4962
 
do
4963
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4965
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4966
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4967
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4968
 
else
4969
 
  cat >conftest.$ac_ext <<_ACEOF
4970
 
/* confdefs.h.  */
4971
 
_ACEOF
4972
 
cat confdefs.h >>conftest.$ac_ext
4973
 
cat >>conftest.$ac_ext <<_ACEOF
4974
 
/* end confdefs.h.  */
4975
 
$ac_includes_default
4976
 
 
4977
 
@%:@include <$ac_header>
4978
 
_ACEOF
4979
 
rm -f conftest.$ac_objext
4980
 
if { (ac_try="$ac_compile"
4981
 
case "(($ac_try" in
4982
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4983
 
  *) ac_try_echo=$ac_try;;
4984
 
esac
4985
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4986
 
  (eval "$ac_compile") 2>conftest.er1
4987
 
  ac_status=$?
4988
 
  grep -v '^ *+' conftest.er1 >conftest.err
4989
 
  rm -f conftest.er1
4990
 
  cat conftest.err >&5
4991
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4992
 
  (exit $ac_status); } && {
4993
 
         test -z "$ac_c_werror_flag" ||
4994
 
         test ! -s conftest.err
4995
 
       } && test -s conftest.$ac_objext; then
4996
 
  eval "$as_ac_Header=yes"
4997
 
else
4998
 
  echo "$as_me: failed program was:" >&5
4999
 
sed 's/^/| /' conftest.$ac_ext >&5
5000
 
 
5001
 
        eval "$as_ac_Header=no"
5002
 
fi
5003
 
 
5004
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5005
 
fi
5006
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5007
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5008
 
echo "${ECHO_T}$ac_res" >&6; }
5009
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5010
 
  cat >>confdefs.h <<_ACEOF
5011
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5012
 
_ACEOF
5013
 
 
5014
 
fi
5015
 
 
5016
 
done
5017
 
 
5018
 
 
5019
 
 
5020
 
for ac_header in dlfcn.h
5021
 
do
5022
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5023
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5024
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5025
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5026
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5027
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5028
 
fi
5029
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5030
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5031
 
echo "${ECHO_T}$ac_res" >&6; }
5032
 
else
5033
 
  # Is the header compilable?
5034
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5035
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5036
 
cat >conftest.$ac_ext <<_ACEOF
5037
 
/* confdefs.h.  */
5038
 
_ACEOF
5039
 
cat confdefs.h >>conftest.$ac_ext
5040
 
cat >>conftest.$ac_ext <<_ACEOF
5041
 
/* end confdefs.h.  */
5042
 
$ac_includes_default
5043
 
@%:@include <$ac_header>
5044
 
_ACEOF
5045
 
rm -f conftest.$ac_objext
5046
 
if { (ac_try="$ac_compile"
5047
 
case "(($ac_try" in
5048
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049
 
  *) ac_try_echo=$ac_try;;
5050
 
esac
5051
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052
 
  (eval "$ac_compile") 2>conftest.er1
5053
 
  ac_status=$?
5054
 
  grep -v '^ *+' conftest.er1 >conftest.err
5055
 
  rm -f conftest.er1
5056
 
  cat conftest.err >&5
5057
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058
 
  (exit $ac_status); } && {
5059
 
         test -z "$ac_c_werror_flag" ||
5060
 
         test ! -s conftest.err
5061
 
       } && test -s conftest.$ac_objext; then
5062
 
  ac_header_compiler=yes
5063
 
else
5064
 
  echo "$as_me: failed program was:" >&5
5065
 
sed 's/^/| /' conftest.$ac_ext >&5
5066
 
 
5067
 
        ac_header_compiler=no
5068
 
fi
5069
 
 
5070
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5071
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5072
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
5073
 
 
5074
 
# Is the header present?
5075
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5076
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5077
 
cat >conftest.$ac_ext <<_ACEOF
5078
 
/* confdefs.h.  */
5079
 
_ACEOF
5080
 
cat confdefs.h >>conftest.$ac_ext
5081
 
cat >>conftest.$ac_ext <<_ACEOF
5082
 
/* end confdefs.h.  */
5083
 
@%:@include <$ac_header>
5084
 
_ACEOF
5085
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5086
 
case "(($ac_try" in
5087
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088
 
  *) ac_try_echo=$ac_try;;
5089
 
esac
5090
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5091
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5092
 
  ac_status=$?
5093
 
  grep -v '^ *+' conftest.er1 >conftest.err
5094
 
  rm -f conftest.er1
5095
 
  cat conftest.err >&5
5096
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097
 
  (exit $ac_status); } >/dev/null && {
5098
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5099
 
         test ! -s conftest.err
5100
 
       }; then
5101
 
  ac_header_preproc=yes
5102
 
else
5103
 
  echo "$as_me: failed program was:" >&5
5104
 
sed 's/^/| /' conftest.$ac_ext >&5
5105
 
 
5106
 
  ac_header_preproc=no
5107
 
fi
5108
 
 
5109
 
rm -f conftest.err conftest.$ac_ext
5110
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5111
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
5112
 
 
5113
 
# So?  What about this header?
5114
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5115
 
  yes:no: )
5116
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5117
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5118
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5119
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5120
 
    ac_header_preproc=yes
5121
 
    ;;
5122
 
  no:yes:* )
5123
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5124
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5125
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5126
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5127
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5128
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5129
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5130
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5131
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5132
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5133
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5134
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5135
 
    ( cat <<\_ASBOX
5136
 
@%:@@%:@ -------------------------------------------- @%:@@%:@
5137
 
@%:@@%:@ Report this to inkjet-list@linuxprinting.org @%:@@%:@
5138
 
@%:@@%:@ -------------------------------------------- @%:@@%:@
5139
 
_ASBOX
5140
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
5141
 
    ;;
5142
 
esac
5143
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5144
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5145
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5147
 
else
5148
 
  eval "$as_ac_Header=\$ac_header_preproc"
5149
 
fi
5150
 
ac_res=`eval echo '${'$as_ac_Header'}'`
5151
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
5152
 
echo "${ECHO_T}$ac_res" >&6; }
5153
 
 
5154
 
fi
5155
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5156
 
  cat >>confdefs.h <<_ACEOF
5157
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5158
 
_ACEOF
5159
 
 
5160
 
fi
5161
 
 
5162
 
done
5163
 
 
5164
 
ac_ext=cpp
5165
 
ac_cpp='$CXXCPP $CPPFLAGS'
5166
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5167
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5168
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5169
 
if test -z "$CXX"; then
5170
 
  if test -n "$CCC"; then
5171
 
    CXX=$CCC
5172
 
  else
5173
 
    if test -n "$ac_tool_prefix"; then
5174
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5175
 
  do
5176
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5179
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180
 
if test "${ac_cv_prog_CXX+set}" = set; then
5181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5182
 
else
5183
 
  if test -n "$CXX"; then
5184
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5185
 
else
5186
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187
 
for as_dir in $PATH
5188
 
do
5189
 
  IFS=$as_save_IFS
5190
 
  test -z "$as_dir" && as_dir=.
5191
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5192
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5194
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195
 
    break 2
5196
 
  fi
5197
 
done
5198
 
done
5199
 
IFS=$as_save_IFS
5200
 
 
5201
 
fi
5202
 
fi
5203
 
CXX=$ac_cv_prog_CXX
5204
 
if test -n "$CXX"; then
5205
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
5206
 
echo "${ECHO_T}$CXX" >&6; }
5207
 
else
5208
 
  { echo "$as_me:$LINENO: result: no" >&5
5209
 
echo "${ECHO_T}no" >&6; }
5210
 
fi
5211
 
 
5212
 
 
5213
 
    test -n "$CXX" && break
5214
 
  done
5215
 
fi
5216
 
if test -z "$CXX"; then
5217
 
  ac_ct_CXX=$CXX
5218
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5219
 
do
5220
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5221
 
set dummy $ac_prog; ac_word=$2
5222
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5223
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5225
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5226
 
else
5227
 
  if test -n "$ac_ct_CXX"; then
5228
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5229
 
else
5230
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231
 
for as_dir in $PATH
5232
 
do
5233
 
  IFS=$as_save_IFS
5234
 
  test -z "$as_dir" && as_dir=.
5235
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5236
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5238
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239
 
    break 2
5240
 
  fi
5241
 
done
5242
 
done
5243
 
IFS=$as_save_IFS
5244
 
 
5245
 
fi
5246
 
fi
5247
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5248
 
if test -n "$ac_ct_CXX"; then
5249
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5250
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
5251
 
else
5252
 
  { echo "$as_me:$LINENO: result: no" >&5
5253
 
echo "${ECHO_T}no" >&6; }
5254
 
fi
5255
 
 
5256
 
 
5257
 
  test -n "$ac_ct_CXX" && break
5258
 
done
5259
 
 
5260
 
  if test "x$ac_ct_CXX" = x; then
5261
 
    CXX="g++"
5262
 
  else
5263
 
    case $cross_compiling:$ac_tool_warned in
5264
 
yes:)
5265
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5266
 
whose name does not start with the host triplet.  If you think this
5267
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5268
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5269
 
whose name does not start with the host triplet.  If you think this
5270
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5271
 
ac_tool_warned=yes ;;
5272
 
esac
5273
 
    CXX=$ac_ct_CXX
5274
 
  fi
5275
 
fi
5276
 
 
5277
 
  fi
5278
 
fi
5279
 
# Provide some information about the compiler.
5280
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5281
 
ac_compiler=`set X $ac_compile; echo $2`
5282
 
{ (ac_try="$ac_compiler --version >&5"
5283
 
case "(($ac_try" in
5284
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285
 
  *) ac_try_echo=$ac_try;;
5286
 
esac
5287
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288
 
  (eval "$ac_compiler --version >&5") 2>&5
5289
 
  ac_status=$?
5290
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291
 
  (exit $ac_status); }
5292
 
{ (ac_try="$ac_compiler -v >&5"
5293
 
case "(($ac_try" in
5294
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295
 
  *) ac_try_echo=$ac_try;;
5296
 
esac
5297
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298
 
  (eval "$ac_compiler -v >&5") 2>&5
5299
 
  ac_status=$?
5300
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301
 
  (exit $ac_status); }
5302
 
{ (ac_try="$ac_compiler -V >&5"
5303
 
case "(($ac_try" in
5304
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305
 
  *) ac_try_echo=$ac_try;;
5306
 
esac
5307
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308
 
  (eval "$ac_compiler -V >&5") 2>&5
5309
 
  ac_status=$?
5310
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5311
 
  (exit $ac_status); }
5312
 
 
5313
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5314
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5315
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5316
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5317
 
else
5318
 
  cat >conftest.$ac_ext <<_ACEOF
5319
 
/* confdefs.h.  */
5320
 
_ACEOF
5321
 
cat confdefs.h >>conftest.$ac_ext
5322
 
cat >>conftest.$ac_ext <<_ACEOF
5323
 
/* end confdefs.h.  */
5324
 
 
5325
 
int
5326
 
main ()
5327
 
{
5328
 
#ifndef __GNUC__
5329
 
       choke me
5330
 
#endif
5331
 
 
5332
 
  ;
5333
 
  return 0;
5334
 
}
5335
 
_ACEOF
5336
 
rm -f conftest.$ac_objext
5337
 
if { (ac_try="$ac_compile"
5338
 
case "(($ac_try" in
5339
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340
 
  *) ac_try_echo=$ac_try;;
5341
 
esac
5342
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343
 
  (eval "$ac_compile") 2>conftest.er1
5344
 
  ac_status=$?
5345
 
  grep -v '^ *+' conftest.er1 >conftest.err
5346
 
  rm -f conftest.er1
5347
 
  cat conftest.err >&5
5348
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349
 
  (exit $ac_status); } && {
5350
 
         test -z "$ac_cxx_werror_flag" ||
5351
 
         test ! -s conftest.err
5352
 
       } && test -s conftest.$ac_objext; then
5353
 
  ac_compiler_gnu=yes
5354
 
else
5355
 
  echo "$as_me: failed program was:" >&5
5356
 
sed 's/^/| /' conftest.$ac_ext >&5
5357
 
 
5358
 
        ac_compiler_gnu=no
5359
 
fi
5360
 
 
5361
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5363
 
 
5364
 
fi
5365
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5366
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5367
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5368
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5369
 
ac_save_CXXFLAGS=$CXXFLAGS
5370
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5371
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5372
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5373
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5374
 
else
5375
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5376
 
   ac_cxx_werror_flag=yes
5377
 
   ac_cv_prog_cxx_g=no
5378
 
   CXXFLAGS="-g"
5379
 
   cat >conftest.$ac_ext <<_ACEOF
5380
 
/* confdefs.h.  */
5381
 
_ACEOF
5382
 
cat confdefs.h >>conftest.$ac_ext
5383
 
cat >>conftest.$ac_ext <<_ACEOF
5384
 
/* end confdefs.h.  */
5385
 
 
5386
 
int
5387
 
main ()
5388
 
{
5389
 
 
5390
 
  ;
5391
 
  return 0;
5392
 
}
5393
 
_ACEOF
5394
 
rm -f conftest.$ac_objext
5395
 
if { (ac_try="$ac_compile"
5396
 
case "(($ac_try" in
5397
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398
 
  *) ac_try_echo=$ac_try;;
5399
 
esac
5400
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401
 
  (eval "$ac_compile") 2>conftest.er1
5402
 
  ac_status=$?
5403
 
  grep -v '^ *+' conftest.er1 >conftest.err
5404
 
  rm -f conftest.er1
5405
 
  cat conftest.err >&5
5406
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407
 
  (exit $ac_status); } && {
5408
 
         test -z "$ac_cxx_werror_flag" ||
5409
 
         test ! -s conftest.err
5410
 
       } && test -s conftest.$ac_objext; then
5411
 
  ac_cv_prog_cxx_g=yes
5412
 
else
5413
 
  echo "$as_me: failed program was:" >&5
5414
 
sed 's/^/| /' conftest.$ac_ext >&5
5415
 
 
5416
 
        CXXFLAGS=""
5417
 
      cat >conftest.$ac_ext <<_ACEOF
5418
 
/* confdefs.h.  */
5419
 
_ACEOF
5420
 
cat confdefs.h >>conftest.$ac_ext
5421
 
cat >>conftest.$ac_ext <<_ACEOF
5422
 
/* end confdefs.h.  */
5423
 
 
5424
 
int
5425
 
main ()
5426
 
{
5427
 
 
5428
 
  ;
5429
 
  return 0;
5430
 
}
5431
 
_ACEOF
5432
 
rm -f conftest.$ac_objext
5433
 
if { (ac_try="$ac_compile"
5434
 
case "(($ac_try" in
5435
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436
 
  *) ac_try_echo=$ac_try;;
5437
 
esac
5438
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439
 
  (eval "$ac_compile") 2>conftest.er1
5440
 
  ac_status=$?
5441
 
  grep -v '^ *+' conftest.er1 >conftest.err
5442
 
  rm -f conftest.er1
5443
 
  cat conftest.err >&5
5444
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
 
  (exit $ac_status); } && {
5446
 
         test -z "$ac_cxx_werror_flag" ||
5447
 
         test ! -s conftest.err
5448
 
       } && test -s conftest.$ac_objext; then
5449
 
  :
5450
 
else
5451
 
  echo "$as_me: failed program was:" >&5
5452
 
sed 's/^/| /' conftest.$ac_ext >&5
5453
 
 
5454
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5455
 
         CXXFLAGS="-g"
5456
 
         cat >conftest.$ac_ext <<_ACEOF
5457
 
/* confdefs.h.  */
5458
 
_ACEOF
5459
 
cat confdefs.h >>conftest.$ac_ext
5460
 
cat >>conftest.$ac_ext <<_ACEOF
5461
 
/* end confdefs.h.  */
5462
 
 
5463
 
int
5464
 
main ()
5465
 
{
5466
 
 
5467
 
  ;
5468
 
  return 0;
5469
 
}
5470
 
_ACEOF
5471
 
rm -f conftest.$ac_objext
5472
 
if { (ac_try="$ac_compile"
5473
 
case "(($ac_try" in
5474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475
 
  *) ac_try_echo=$ac_try;;
5476
 
esac
5477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478
 
  (eval "$ac_compile") 2>conftest.er1
5479
 
  ac_status=$?
5480
 
  grep -v '^ *+' conftest.er1 >conftest.err
5481
 
  rm -f conftest.er1
5482
 
  cat conftest.err >&5
5483
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
 
  (exit $ac_status); } && {
5485
 
         test -z "$ac_cxx_werror_flag" ||
5486
 
         test ! -s conftest.err
5487
 
       } && test -s conftest.$ac_objext; then
5488
 
  ac_cv_prog_cxx_g=yes
5489
 
else
5490
 
  echo "$as_me: failed program was:" >&5
5491
 
sed 's/^/| /' conftest.$ac_ext >&5
5492
 
 
5493
 
        
5494
 
fi
5495
 
 
5496
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497
 
fi
5498
 
 
5499
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
 
fi
5501
 
 
5502
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5504
 
fi
5505
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5506
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5507
 
if test "$ac_test_CXXFLAGS" = set; then
5508
 
  CXXFLAGS=$ac_save_CXXFLAGS
5509
 
elif test $ac_cv_prog_cxx_g = yes; then
5510
 
  if test "$GXX" = yes; then
5511
 
    CXXFLAGS="-g -O2"
5512
 
  else
5513
 
    CXXFLAGS="-g"
5514
 
  fi
5515
 
else
5516
 
  if test "$GXX" = yes; then
5517
 
    CXXFLAGS="-O2"
5518
 
  else
5519
 
    CXXFLAGS=
5520
 
  fi
5521
 
fi
5522
 
ac_ext=cpp
5523
 
ac_cpp='$CXXCPP $CPPFLAGS'
5524
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5527
 
 
5528
 
depcc="$CXX"  am_compiler_list=
5529
 
 
5530
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5531
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5532
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5533
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5534
 
else
5535
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5536
 
  # We make a subdir and do the tests there.  Otherwise we can end up
5537
 
  # making bogus files that we don't know about and never remove.  For
5538
 
  # instance it was reported that on HP-UX the gcc test will end up
5539
 
  # making a dummy file named `D' -- because `-MD' means `put the output
5540
 
  # in D'.
5541
 
  mkdir conftest.dir
5542
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
5543
 
  # using a relative directory.
5544
 
  cp "$am_depcomp" conftest.dir
5545
 
  cd conftest.dir
5546
 
  # We will build objects and dependencies in a subdirectory because
5547
 
  # it helps to detect inapplicable dependency modes.  For instance
5548
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
5549
 
  # side effect of compilation, but ICC will put the dependencies in
5550
 
  # the current directory while Tru64 will put them in the object
5551
 
  # directory.
5552
 
  mkdir sub
5553
 
 
5554
 
  am_cv_CXX_dependencies_compiler_type=none
5555
 
  if test "$am_compiler_list" = ""; then
5556
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5557
 
  fi
5558
 
  for depmode in $am_compiler_list; do
5559
 
    # Setup a source with many dependencies, because some compilers
5560
 
    # like to wrap large dependency lists on column 80 (with \), and
5561
 
    # we should not choose a depcomp mode which is confused by this.
5562
 
    #
5563
 
    # We need to recreate these files for each test, as the compiler may
5564
 
    # overwrite some of them when testing with obscure command lines.
5565
 
    # This happens at least with the AIX C compiler.
5566
 
    : > sub/conftest.c
5567
 
    for i in 1 2 3 4 5 6; do
5568
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5569
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5570
 
      # Solaris 8's {/usr,}/bin/sh.
5571
 
      touch sub/conftst$i.h
5572
 
    done
5573
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5574
 
 
5575
 
    case $depmode in
5576
 
    nosideeffect)
5577
 
      # after this tag, mechanisms are not by side-effect, so they'll
5578
 
      # only be used when explicitly requested
5579
 
      if test "x$enable_dependency_tracking" = xyes; then
5580
 
        continue
5581
 
      else
5582
 
        break
5583
 
      fi
5584
 
      ;;
5585
 
    none) break ;;
5586
 
    esac
5587
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5588
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
5589
 
    # handle `-M -o', and we need to detect this.
5590
 
    if depmode=$depmode \
5591
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5592
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5593
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5594
 
         >/dev/null 2>conftest.err &&
5595
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5596
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5597
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5598
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5599
 
      # icc doesn't choke on unknown options, it will just issue warnings
5600
 
      # or remarks (even with -Werror).  So we grep stderr for any message
5601
 
      # that says an option was ignored or not supported.
5602
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
5603
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
5604
 
      # The diagnosis changed in icc 8.0:
5605
 
      #   icc: Command line remark: option '-MP' not supported
5606
 
      if (grep 'ignoring option' conftest.err ||
5607
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5608
 
        am_cv_CXX_dependencies_compiler_type=$depmode
5609
 
        break
5610
 
      fi
5611
 
    fi
5612
 
  done
5613
 
 
5614
 
  cd ..
5615
 
  rm -rf conftest.dir
5616
 
else
5617
 
  am_cv_CXX_dependencies_compiler_type=none
5618
 
fi
5619
 
 
5620
 
fi
5621
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5622
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5623
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5624
 
 
5625
 
 if 
5626
 
  test "x$enable_dependency_tracking" != xno \
5627
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5628
 
  am__fastdepCXX_TRUE=
5629
 
  am__fastdepCXX_FALSE='#'
5630
 
else
5631
 
  am__fastdepCXX_TRUE='#'
5632
 
  am__fastdepCXX_FALSE=
5633
 
fi
5634
 
 
5635
 
 
5636
 
 
5637
 
 
5638
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5639
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5640
 
    (test "X$CXX" != "Xg++"))) ; then
5641
 
  ac_ext=cpp
5642
 
ac_cpp='$CXXCPP $CPPFLAGS'
5643
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5646
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5647
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5648
 
if test -z "$CXXCPP"; then
5649
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5650
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5651
 
else
5652
 
      # Double quotes because CXXCPP needs to be expanded
5653
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
5654
 
    do
5655
 
      ac_preproc_ok=false
5656
 
for ac_cxx_preproc_warn_flag in '' yes
5657
 
do
5658
 
  # Use a header file that comes with gcc, so configuring glibc
5659
 
  # with a fresh cross-compiler works.
5660
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661
 
  # <limits.h> exists even on freestanding compilers.
5662
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5663
 
  # not just through cpp. "Syntax error" is here to catch this case.
5664
 
  cat >conftest.$ac_ext <<_ACEOF
5665
 
/* confdefs.h.  */
5666
 
_ACEOF
5667
 
cat confdefs.h >>conftest.$ac_ext
5668
 
cat >>conftest.$ac_ext <<_ACEOF
5669
 
/* end confdefs.h.  */
5670
 
@%:@ifdef __STDC__
5671
 
@%:@ include <limits.h>
5672
 
@%:@else
5673
 
@%:@ include <assert.h>
5674
 
@%:@endif
5675
 
                     Syntax error
5676
 
_ACEOF
5677
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5678
 
case "(($ac_try" in
5679
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680
 
  *) ac_try_echo=$ac_try;;
5681
 
esac
5682
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5684
 
  ac_status=$?
5685
 
  grep -v '^ *+' conftest.er1 >conftest.err
5686
 
  rm -f conftest.er1
5687
 
  cat conftest.err >&5
5688
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689
 
  (exit $ac_status); } >/dev/null && {
5690
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5691
 
         test ! -s conftest.err
5692
 
       }; then
5693
 
  :
5694
 
else
5695
 
  echo "$as_me: failed program was:" >&5
5696
 
sed 's/^/| /' conftest.$ac_ext >&5
5697
 
 
5698
 
  # Broken: fails on valid input.
5699
 
continue
5700
 
fi
5701
 
 
5702
 
rm -f conftest.err conftest.$ac_ext
5703
 
 
5704
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5705
 
  # can be detected and how.
5706
 
  cat >conftest.$ac_ext <<_ACEOF
5707
 
/* confdefs.h.  */
5708
 
_ACEOF
5709
 
cat confdefs.h >>conftest.$ac_ext
5710
 
cat >>conftest.$ac_ext <<_ACEOF
5711
 
/* end confdefs.h.  */
5712
 
@%:@include <ac_nonexistent.h>
5713
 
_ACEOF
5714
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5715
 
case "(($ac_try" in
5716
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717
 
  *) ac_try_echo=$ac_try;;
5718
 
esac
5719
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5721
 
  ac_status=$?
5722
 
  grep -v '^ *+' conftest.er1 >conftest.err
5723
 
  rm -f conftest.er1
5724
 
  cat conftest.err >&5
5725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5726
 
  (exit $ac_status); } >/dev/null && {
5727
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5728
 
         test ! -s conftest.err
5729
 
       }; then
5730
 
  # Broken: success on invalid input.
5731
 
continue
5732
 
else
5733
 
  echo "$as_me: failed program was:" >&5
5734
 
sed 's/^/| /' conftest.$ac_ext >&5
5735
 
 
5736
 
  # Passes both tests.
5737
 
ac_preproc_ok=:
5738
 
break
5739
 
fi
5740
 
 
5741
 
rm -f conftest.err conftest.$ac_ext
5742
 
 
5743
 
done
5744
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5745
 
rm -f conftest.err conftest.$ac_ext
5746
 
if $ac_preproc_ok; then
5747
 
  break
5748
 
fi
5749
 
 
5750
 
    done
5751
 
    ac_cv_prog_CXXCPP=$CXXCPP
5752
 
  
5753
 
fi
5754
 
  CXXCPP=$ac_cv_prog_CXXCPP
5755
 
else
5756
 
  ac_cv_prog_CXXCPP=$CXXCPP
5757
 
fi
5758
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5759
 
echo "${ECHO_T}$CXXCPP" >&6; }
5760
 
ac_preproc_ok=false
5761
 
for ac_cxx_preproc_warn_flag in '' yes
5762
 
do
5763
 
  # Use a header file that comes with gcc, so configuring glibc
5764
 
  # with a fresh cross-compiler works.
5765
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5766
 
  # <limits.h> exists even on freestanding compilers.
5767
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5768
 
  # not just through cpp. "Syntax error" is here to catch this case.
5769
 
  cat >conftest.$ac_ext <<_ACEOF
5770
 
/* confdefs.h.  */
5771
 
_ACEOF
5772
 
cat confdefs.h >>conftest.$ac_ext
5773
 
cat >>conftest.$ac_ext <<_ACEOF
5774
 
/* end confdefs.h.  */
5775
 
@%:@ifdef __STDC__
5776
 
@%:@ include <limits.h>
5777
 
@%:@else
5778
 
@%:@ include <assert.h>
5779
 
@%:@endif
5780
 
                     Syntax error
5781
 
_ACEOF
5782
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5783
 
case "(($ac_try" in
5784
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785
 
  *) ac_try_echo=$ac_try;;
5786
 
esac
5787
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5789
 
  ac_status=$?
5790
 
  grep -v '^ *+' conftest.er1 >conftest.err
5791
 
  rm -f conftest.er1
5792
 
  cat conftest.err >&5
5793
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794
 
  (exit $ac_status); } >/dev/null && {
5795
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5796
 
         test ! -s conftest.err
5797
 
       }; then
5798
 
  :
5799
 
else
5800
 
  echo "$as_me: failed program was:" >&5
5801
 
sed 's/^/| /' conftest.$ac_ext >&5
5802
 
 
5803
 
  # Broken: fails on valid input.
5804
 
continue
5805
 
fi
5806
 
 
5807
 
rm -f conftest.err conftest.$ac_ext
5808
 
 
5809
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5810
 
  # can be detected and how.
5811
 
  cat >conftest.$ac_ext <<_ACEOF
5812
 
/* confdefs.h.  */
5813
 
_ACEOF
5814
 
cat confdefs.h >>conftest.$ac_ext
5815
 
cat >>conftest.$ac_ext <<_ACEOF
5816
 
/* end confdefs.h.  */
5817
 
@%:@include <ac_nonexistent.h>
5818
 
_ACEOF
5819
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5820
 
case "(($ac_try" in
5821
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822
 
  *) ac_try_echo=$ac_try;;
5823
 
esac
5824
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5826
 
  ac_status=$?
5827
 
  grep -v '^ *+' conftest.er1 >conftest.err
5828
 
  rm -f conftest.er1
5829
 
  cat conftest.err >&5
5830
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831
 
  (exit $ac_status); } >/dev/null && {
5832
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5833
 
         test ! -s conftest.err
5834
 
       }; then
5835
 
  # Broken: success on invalid input.
5836
 
continue
5837
 
else
5838
 
  echo "$as_me: failed program was:" >&5
5839
 
sed 's/^/| /' conftest.$ac_ext >&5
5840
 
 
5841
 
  # Passes both tests.
5842
 
ac_preproc_ok=:
5843
 
break
5844
 
fi
5845
 
 
5846
 
rm -f conftest.err conftest.$ac_ext
5847
 
 
5848
 
done
5849
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5850
 
rm -f conftest.err conftest.$ac_ext
5851
 
if $ac_preproc_ok; then
5852
 
  :
5853
 
else
5854
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5855
 
See \`config.log' for more details." >&5
5856
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5857
 
See \`config.log' for more details." >&2;}
5858
 
   { (exit 1); exit 1; }; }
5859
 
fi
5860
 
 
5861
 
ac_ext=cpp
5862
 
ac_cpp='$CXXCPP $CPPFLAGS'
5863
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5864
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5865
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5866
 
 
5867
 
fi
5868
 
 
5869
 
 
5870
 
ac_ext=f
5871
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5872
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5873
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5874
 
if test -n "$ac_tool_prefix"; then
5875
 
  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
5876
 
  do
5877
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5878
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5879
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5880
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5881
 
if test "${ac_cv_prog_F77+set}" = set; then
5882
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5883
 
else
5884
 
  if test -n "$F77"; then
5885
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
5886
 
else
5887
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888
 
for as_dir in $PATH
5889
 
do
5890
 
  IFS=$as_save_IFS
5891
 
  test -z "$as_dir" && as_dir=.
5892
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5893
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5894
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5895
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896
 
    break 2
5897
 
  fi
5898
 
done
5899
 
done
5900
 
IFS=$as_save_IFS
5901
 
 
5902
 
fi
5903
 
fi
5904
 
F77=$ac_cv_prog_F77
5905
 
if test -n "$F77"; then
5906
 
  { echo "$as_me:$LINENO: result: $F77" >&5
5907
 
echo "${ECHO_T}$F77" >&6; }
5908
 
else
5909
 
  { echo "$as_me:$LINENO: result: no" >&5
5910
 
echo "${ECHO_T}no" >&6; }
5911
 
fi
5912
 
 
5913
 
 
5914
 
    test -n "$F77" && break
5915
 
  done
5916
 
fi
5917
 
if test -z "$F77"; then
5918
 
  ac_ct_F77=$F77
5919
 
  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
5920
 
do
5921
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5922
 
set dummy $ac_prog; ac_word=$2
5923
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5924
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5925
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5927
 
else
5928
 
  if test -n "$ac_ct_F77"; then
5929
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5930
 
else
5931
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932
 
for as_dir in $PATH
5933
 
do
5934
 
  IFS=$as_save_IFS
5935
 
  test -z "$as_dir" && as_dir=.
5936
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5937
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
5939
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940
 
    break 2
5941
 
  fi
5942
 
done
5943
 
done
5944
 
IFS=$as_save_IFS
5945
 
 
5946
 
fi
5947
 
fi
5948
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5949
 
if test -n "$ac_ct_F77"; then
5950
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5951
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
5952
 
else
5953
 
  { echo "$as_me:$LINENO: result: no" >&5
5954
 
echo "${ECHO_T}no" >&6; }
5955
 
fi
5956
 
 
5957
 
 
5958
 
  test -n "$ac_ct_F77" && break
5959
 
done
5960
 
 
5961
 
  if test "x$ac_ct_F77" = x; then
5962
 
    F77=""
5963
 
  else
5964
 
    case $cross_compiling:$ac_tool_warned in
5965
 
yes:)
5966
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5967
 
whose name does not start with the host triplet.  If you think this
5968
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5969
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5970
 
whose name does not start with the host triplet.  If you think this
5971
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5972
 
ac_tool_warned=yes ;;
5973
 
esac
5974
 
    F77=$ac_ct_F77
5975
 
  fi
5976
 
fi
5977
 
 
5978
 
 
5979
 
# Provide some information about the compiler.
5980
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5981
 
ac_compiler=`set X $ac_compile; echo $2`
5982
 
{ (ac_try="$ac_compiler --version >&5"
5983
 
case "(($ac_try" in
5984
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985
 
  *) ac_try_echo=$ac_try;;
5986
 
esac
5987
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988
 
  (eval "$ac_compiler --version >&5") 2>&5
5989
 
  ac_status=$?
5990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991
 
  (exit $ac_status); }
5992
 
{ (ac_try="$ac_compiler -v >&5"
5993
 
case "(($ac_try" in
5994
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995
 
  *) ac_try_echo=$ac_try;;
5996
 
esac
5997
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998
 
  (eval "$ac_compiler -v >&5") 2>&5
5999
 
  ac_status=$?
6000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
 
  (exit $ac_status); }
6002
 
{ (ac_try="$ac_compiler -V >&5"
6003
 
case "(($ac_try" in
6004
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005
 
  *) ac_try_echo=$ac_try;;
6006
 
esac
6007
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008
 
  (eval "$ac_compiler -V >&5") 2>&5
6009
 
  ac_status=$?
6010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011
 
  (exit $ac_status); }
6012
 
rm -f a.out
6013
 
 
6014
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6015
 
# input file.  (Note that this only needs to work for GNU compilers.)
6016
 
ac_save_ext=$ac_ext
6017
 
ac_ext=F
6018
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6019
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6020
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6022
 
else
6023
 
  cat >conftest.$ac_ext <<_ACEOF
6024
 
      program main
6025
 
#ifndef __GNUC__
6026
 
       choke me
6027
 
#endif
6028
 
 
6029
 
      end
6030
 
_ACEOF
6031
 
rm -f conftest.$ac_objext
6032
 
if { (ac_try="$ac_compile"
6033
 
case "(($ac_try" in
6034
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6035
 
  *) ac_try_echo=$ac_try;;
6036
 
esac
6037
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6038
 
  (eval "$ac_compile") 2>conftest.er1
6039
 
  ac_status=$?
6040
 
  grep -v '^ *+' conftest.er1 >conftest.err
6041
 
  rm -f conftest.er1
6042
 
  cat conftest.err >&5
6043
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044
 
  (exit $ac_status); } && {
6045
 
         test -z "$ac_f77_werror_flag" ||
6046
 
         test ! -s conftest.err
6047
 
       } && test -s conftest.$ac_objext; then
6048
 
  ac_compiler_gnu=yes
6049
 
else
6050
 
  echo "$as_me: failed program was:" >&5
6051
 
sed 's/^/| /' conftest.$ac_ext >&5
6052
 
 
6053
 
        ac_compiler_gnu=no
6054
 
fi
6055
 
 
6056
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6058
 
 
6059
 
fi
6060
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6061
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6062
 
ac_ext=$ac_save_ext
6063
 
ac_test_FFLAGS=${FFLAGS+set}
6064
 
ac_save_FFLAGS=$FFLAGS
6065
 
FFLAGS=
6066
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6067
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6068
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6069
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6070
 
else
6071
 
  FFLAGS=-g
6072
 
cat >conftest.$ac_ext <<_ACEOF
6073
 
      program main
6074
 
 
6075
 
      end
6076
 
_ACEOF
6077
 
rm -f conftest.$ac_objext
6078
 
if { (ac_try="$ac_compile"
6079
 
case "(($ac_try" in
6080
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081
 
  *) ac_try_echo=$ac_try;;
6082
 
esac
6083
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084
 
  (eval "$ac_compile") 2>conftest.er1
6085
 
  ac_status=$?
6086
 
  grep -v '^ *+' conftest.er1 >conftest.err
6087
 
  rm -f conftest.er1
6088
 
  cat conftest.err >&5
6089
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090
 
  (exit $ac_status); } && {
6091
 
         test -z "$ac_f77_werror_flag" ||
6092
 
         test ! -s conftest.err
6093
 
       } && test -s conftest.$ac_objext; then
6094
 
  ac_cv_prog_f77_g=yes
6095
 
else
6096
 
  echo "$as_me: failed program was:" >&5
6097
 
sed 's/^/| /' conftest.$ac_ext >&5
6098
 
 
6099
 
        ac_cv_prog_f77_g=no
6100
 
fi
6101
 
 
6102
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103
 
 
6104
 
fi
6105
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6106
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6107
 
if test "$ac_test_FFLAGS" = set; then
6108
 
  FFLAGS=$ac_save_FFLAGS
6109
 
elif test $ac_cv_prog_f77_g = yes; then
6110
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6111
 
    FFLAGS="-g -O2"
6112
 
  else
6113
 
    FFLAGS="-g"
6114
 
  fi
6115
 
else
6116
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6117
 
    FFLAGS="-O2"
6118
 
  else
6119
 
    FFLAGS=
6120
 
  fi
6121
 
fi
6122
 
 
6123
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6124
 
ac_ext=c
6125
 
ac_cpp='$CPP $CPPFLAGS'
6126
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6127
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6128
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6129
 
 
6130
 
 
6131
 
 
6132
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6133
 
 
6134
 
# find the maximum length of command line arguments
6135
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6136
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6137
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6139
 
else
6140
 
    i=0
6141
 
  teststring="ABCD"
6142
 
 
6143
 
  case $build_os in
6144
 
  msdosdjgpp*)
6145
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6146
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6147
 
    # during glob expansion).  Even if it were fixed, the result of this
6148
 
    # check would be larger than it should be.
6149
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6150
 
    ;;
6151
 
 
6152
 
  gnu*)
6153
 
    # Under GNU Hurd, this test is not required because there is
6154
 
    # no limit to the length of command line arguments.
6155
 
    # Libtool will interpret -1 as no limit whatsoever
6156
 
    lt_cv_sys_max_cmd_len=-1;
6157
 
    ;;
6158
 
 
6159
 
  cygwin* | mingw*)
6160
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6161
 
    # about 5 minutes as the teststring grows exponentially.
6162
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6163
 
    # you end up with a "frozen" computer, even though with patience
6164
 
    # the test eventually succeeds (with a max line length of 256k).
6165
 
    # Instead, let's just punt: use the minimum linelength reported by
6166
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6167
 
    lt_cv_sys_max_cmd_len=8192;
6168
 
    ;;
6169
 
 
6170
 
  amigaos*)
6171
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6172
 
    # So we just punt and use a minimum line length of 8192.
6173
 
    lt_cv_sys_max_cmd_len=8192;
6174
 
    ;;
6175
 
 
6176
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6177
 
    # This has been around since 386BSD, at least.  Likely further.
6178
 
    if test -x /sbin/sysctl; then
6179
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6180
 
    elif test -x /usr/sbin/sysctl; then
6181
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6182
 
    else
6183
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6184
 
    fi
6185
 
    # And add a safety zone
6186
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6187
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6188
 
    ;;
6189
 
 
6190
 
  interix*)
6191
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6192
 
    lt_cv_sys_max_cmd_len=196608
6193
 
    ;;
6194
 
 
6195
 
  osf*)
6196
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6197
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6198
 
    # nice to cause kernel panics so lets avoid the loop below.
6199
 
    # First set a reasonable default.
6200
 
    lt_cv_sys_max_cmd_len=16384
6201
 
    #
6202
 
    if test -x /sbin/sysconfig; then
6203
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6204
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6205
 
      esac
6206
 
    fi
6207
 
    ;;
6208
 
  sco3.2v5*)
6209
 
    lt_cv_sys_max_cmd_len=102400
6210
 
    ;;
6211
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6212
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6213
 
    if test -n "$kargmax"; then
6214
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6215
 
    else
6216
 
      lt_cv_sys_max_cmd_len=32768
6217
 
    fi
6218
 
    ;;
6219
 
  *)
6220
 
    # If test is not a shell built-in, we'll probably end up computing a
6221
 
    # maximum length that is only half of the actual maximum length, but
6222
 
    # we can't tell.
6223
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6224
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6225
 
               = "XX$teststring") >/dev/null 2>&1 &&
6226
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6227
 
            lt_cv_sys_max_cmd_len=$new_result &&
6228
 
            test $i != 17 # 1/2 MB should be enough
6229
 
    do
6230
 
      i=`expr $i + 1`
6231
 
      teststring=$teststring$teststring
6232
 
    done
6233
 
    teststring=
6234
 
    # Add a significant safety factor because C++ compilers can tack on massive
6235
 
    # amounts of additional arguments before passing them to the linker.
6236
 
    # It appears as though 1/2 is a usable value.
6237
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6238
 
    ;;
6239
 
  esac
6240
 
 
6241
 
fi
6242
 
 
6243
 
if test -n $lt_cv_sys_max_cmd_len ; then
6244
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6245
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6246
 
else
6247
 
  { echo "$as_me:$LINENO: result: none" >&5
6248
 
echo "${ECHO_T}none" >&6; }
6249
 
fi
6250
 
 
6251
 
 
6252
 
 
6253
 
 
6254
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6255
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6256
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6257
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6258
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6259
 
else
6260
 
  
6261
 
# These are sane defaults that work on at least a few old systems.
6262
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6263
 
 
6264
 
# Character class describing NM global symbol codes.
6265
 
symcode='[BCDEGRST]'
6266
 
 
6267
 
# Regexp to match symbols that can be accessed directly from C.
6268
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6269
 
 
6270
 
# Transform an extracted symbol line into a proper C declaration
6271
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6272
 
 
6273
 
# Transform an extracted symbol line into symbol name and symbol address
6274
 
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'"
6275
 
 
6276
 
# Define system-specific variables.
6277
 
case $host_os in
6278
 
aix*)
6279
 
  symcode='[BCDT]'
6280
 
  ;;
6281
 
cygwin* | mingw* | pw32*)
6282
 
  symcode='[ABCDGISTW]'
6283
 
  ;;
6284
 
hpux*) # Its linker distinguishes data from code symbols
6285
 
  if test "$host_cpu" = ia64; then
6286
 
    symcode='[ABCDEGRST]'
6287
 
  fi
6288
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6289
 
  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'"
6290
 
  ;;
6291
 
linux* | k*bsd*-gnu)
6292
 
  if test "$host_cpu" = ia64; then
6293
 
    symcode='[ABCDGIRSTW]'
6294
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6295
 
    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'"
6296
 
  fi
6297
 
  ;;
6298
 
irix* | nonstopux*)
6299
 
  symcode='[BCDEGRST]'
6300
 
  ;;
6301
 
osf*)
6302
 
  symcode='[BCDEGQRST]'
6303
 
  ;;
6304
 
solaris*)
6305
 
  symcode='[BDRT]'
6306
 
  ;;
6307
 
sco3.2v5*)
6308
 
  symcode='[DT]'
6309
 
  ;;
6310
 
sysv4.2uw2*)
6311
 
  symcode='[DT]'
6312
 
  ;;
6313
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6314
 
  symcode='[ABDT]'
6315
 
  ;;
6316
 
sysv4)
6317
 
  symcode='[DFNSTU]'
6318
 
  ;;
6319
 
esac
6320
 
 
6321
 
# Handle CRLF in mingw tool chain
6322
 
opt_cr=
6323
 
case $build_os in
6324
 
mingw*)
6325
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6326
 
  ;;
6327
 
esac
6328
 
 
6329
 
# If we're using GNU nm, then use its standard symbol codes.
6330
 
case `$NM -V 2>&1` in
6331
 
*GNU* | *'with BFD'*)
6332
 
  symcode='[ABCDGIRSTW]' ;;
6333
 
esac
6334
 
 
6335
 
# Try without a prefix undercore, then with it.
6336
 
for ac_symprfx in "" "_"; do
6337
 
 
6338
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6339
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6340
 
 
6341
 
  # Write the raw and C identifiers.
6342
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6343
 
 
6344
 
  # Check to see that the pipe works correctly.
6345
 
  pipe_works=no
6346
 
 
6347
 
  rm -f conftest*
6348
 
  cat > conftest.$ac_ext <<EOF
6349
 
#ifdef __cplusplus
6350
 
extern "C" {
6351
 
#endif
6352
 
char nm_test_var;
6353
 
void nm_test_func(){}
6354
 
#ifdef __cplusplus
6355
 
}
6356
 
#endif
6357
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6358
 
EOF
6359
 
 
6360
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6361
 
  (eval $ac_compile) 2>&5
6362
 
  ac_status=$?
6363
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6364
 
  (exit $ac_status); }; then
6365
 
    # Now try to grab the symbols.
6366
 
    nlist=conftest.nm
6367
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6368
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6369
 
  ac_status=$?
6370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371
 
  (exit $ac_status); } && test -s "$nlist"; then
6372
 
      # Try sorting and uniquifying the output.
6373
 
      if sort "$nlist" | uniq > "$nlist"T; then
6374
 
        mv -f "$nlist"T "$nlist"
6375
 
      else
6376
 
        rm -f "$nlist"T
6377
 
      fi
6378
 
 
6379
 
      # Make sure that we snagged all the symbols we need.
6380
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6381
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6382
 
          cat <<EOF > conftest.$ac_ext
6383
 
#ifdef __cplusplus
6384
 
extern "C" {
6385
 
#endif
6386
 
 
6387
 
EOF
6388
 
          # Now generate the symbol file.
6389
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6390
 
 
6391
 
          cat <<EOF >> conftest.$ac_ext
6392
 
#if defined (__STDC__) && __STDC__
6393
 
# define lt_ptr_t void *
6394
 
#else
6395
 
# define lt_ptr_t char *
6396
 
# define const
6397
 
#endif
6398
 
 
6399
 
/* The mapping between symbol names and symbols. */
6400
 
const struct {
6401
 
  const char *name;
6402
 
  lt_ptr_t address;
6403
 
}
6404
 
lt_preloaded_symbols[] =
6405
 
{
6406
 
EOF
6407
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6408
 
          cat <<\EOF >> conftest.$ac_ext
6409
 
  {0, (lt_ptr_t) 0}
6410
 
};
6411
 
 
6412
 
#ifdef __cplusplus
6413
 
}
6414
 
#endif
6415
 
EOF
6416
 
          # Now try linking the two files.
6417
 
          mv conftest.$ac_objext conftstm.$ac_objext
6418
 
          lt_save_LIBS="$LIBS"
6419
 
          lt_save_CFLAGS="$CFLAGS"
6420
 
          LIBS="conftstm.$ac_objext"
6421
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6422
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6423
 
  (eval $ac_link) 2>&5
6424
 
  ac_status=$?
6425
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6427
 
            pipe_works=yes
6428
 
          fi
6429
 
          LIBS="$lt_save_LIBS"
6430
 
          CFLAGS="$lt_save_CFLAGS"
6431
 
        else
6432
 
          echo "cannot find nm_test_func in $nlist" >&5
6433
 
        fi
6434
 
      else
6435
 
        echo "cannot find nm_test_var in $nlist" >&5
6436
 
      fi
6437
 
    else
6438
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6439
 
    fi
6440
 
  else
6441
 
    echo "$progname: failed program was:" >&5
6442
 
    cat conftest.$ac_ext >&5
6443
 
  fi
6444
 
  rm -f conftest* conftst*
6445
 
 
6446
 
  # Do not use the global_symbol_pipe unless it works.
6447
 
  if test "$pipe_works" = yes; then
6448
 
    break
6449
 
  else
6450
 
    lt_cv_sys_global_symbol_pipe=
6451
 
  fi
6452
 
done
6453
 
 
6454
 
fi
6455
 
 
6456
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6457
 
  lt_cv_sys_global_symbol_to_cdecl=
6458
 
fi
6459
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6460
 
  { echo "$as_me:$LINENO: result: failed" >&5
6461
 
echo "${ECHO_T}failed" >&6; }
6462
 
else
6463
 
  { echo "$as_me:$LINENO: result: ok" >&5
6464
 
echo "${ECHO_T}ok" >&6; }
6465
 
fi
6466
 
 
6467
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
6468
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6469
 
if test "${lt_cv_objdir+set}" = set; then
6470
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6471
 
else
6472
 
  rm -f .libs 2>/dev/null
6473
 
mkdir .libs 2>/dev/null
6474
 
if test -d .libs; then
6475
 
  lt_cv_objdir=.libs
6476
 
else
6477
 
  # MS-DOS does not allow filenames that begin with a dot.
6478
 
  lt_cv_objdir=_libs
6479
 
fi
6480
 
rmdir .libs 2>/dev/null
6481
 
fi
6482
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6483
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
6484
 
objdir=$lt_cv_objdir
6485
 
 
6486
 
 
6487
 
 
6488
 
 
6489
 
 
6490
 
case $host_os in
6491
 
aix3*)
6492
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6493
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6494
 
  # vanish in a puff of smoke.
6495
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6496
 
    COLLECT_NAMES=
6497
 
    export COLLECT_NAMES
6498
 
  fi
6499
 
  ;;
6500
 
esac
6501
 
 
6502
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6503
 
# metacharacters that are still active within double-quoted strings.
6504
 
Xsed='sed -e 1s/^X//'
6505
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6506
 
 
6507
 
# Same as above, but do not quote variable references.
6508
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6509
 
 
6510
 
# Sed substitution to delay expansion of an escaped shell variable in a
6511
 
# double_quote_subst'ed string.
6512
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6513
 
 
6514
 
# Sed substitution to avoid accidental globbing in evaled expressions
6515
 
no_glob_subst='s/\*/\\\*/g'
6516
 
 
6517
 
# Constants:
6518
 
rm="rm -f"
6519
 
 
6520
 
# Global variables:
6521
 
default_ofile=libtool
6522
 
can_build_shared=yes
6523
 
 
6524
 
# All known linkers require a `.a' archive for static linking (except MSVC,
6525
 
# which needs '.lib').
6526
 
libext=a
6527
 
ltmain="$ac_aux_dir/ltmain.sh"
6528
 
ofile="$default_ofile"
6529
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6530
 
 
6531
 
if test -n "$ac_tool_prefix"; then
6532
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6533
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6534
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6535
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6536
 
if test "${ac_cv_prog_AR+set}" = set; then
6537
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6538
 
else
6539
 
  if test -n "$AR"; then
6540
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6541
 
else
6542
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543
 
for as_dir in $PATH
6544
 
do
6545
 
  IFS=$as_save_IFS
6546
 
  test -z "$as_dir" && as_dir=.
6547
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6548
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6550
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6551
 
    break 2
6552
 
  fi
6553
 
done
6554
 
done
6555
 
IFS=$as_save_IFS
6556
 
 
6557
 
fi
6558
 
fi
6559
 
AR=$ac_cv_prog_AR
6560
 
if test -n "$AR"; then
6561
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6562
 
echo "${ECHO_T}$AR" >&6; }
6563
 
else
6564
 
  { echo "$as_me:$LINENO: result: no" >&5
6565
 
echo "${ECHO_T}no" >&6; }
6566
 
fi
6567
 
 
6568
 
 
6569
 
fi
6570
 
if test -z "$ac_cv_prog_AR"; then
6571
 
  ac_ct_AR=$AR
6572
 
  # Extract the first word of "ar", so it can be a program name with args.
6573
 
set dummy ar; ac_word=$2
6574
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6575
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6576
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6577
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6578
 
else
6579
 
  if test -n "$ac_ct_AR"; then
6580
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6581
 
else
6582
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583
 
for as_dir in $PATH
6584
 
do
6585
 
  IFS=$as_save_IFS
6586
 
  test -z "$as_dir" && as_dir=.
6587
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6588
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589
 
    ac_cv_prog_ac_ct_AR="ar"
6590
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591
 
    break 2
6592
 
  fi
6593
 
done
6594
 
done
6595
 
IFS=$as_save_IFS
6596
 
 
6597
 
fi
6598
 
fi
6599
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6600
 
if test -n "$ac_ct_AR"; then
6601
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6602
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
6603
 
else
6604
 
  { echo "$as_me:$LINENO: result: no" >&5
6605
 
echo "${ECHO_T}no" >&6; }
6606
 
fi
6607
 
 
6608
 
  if test "x$ac_ct_AR" = x; then
6609
 
    AR="false"
6610
 
  else
6611
 
    case $cross_compiling:$ac_tool_warned in
6612
 
yes:)
6613
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6614
 
whose name does not start with the host triplet.  If you think this
6615
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6616
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6617
 
whose name does not start with the host triplet.  If you think this
6618
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6619
 
ac_tool_warned=yes ;;
6620
 
esac
6621
 
    AR=$ac_ct_AR
6622
 
  fi
6623
 
else
6624
 
  AR="$ac_cv_prog_AR"
6625
 
fi
6626
 
 
6627
 
if test -n "$ac_tool_prefix"; then
6628
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6629
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6630
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6631
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6632
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
6633
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6634
 
else
6635
 
  if test -n "$RANLIB"; then
6636
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6637
 
else
6638
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639
 
for as_dir in $PATH
6640
 
do
6641
 
  IFS=$as_save_IFS
6642
 
  test -z "$as_dir" && as_dir=.
6643
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6644
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6646
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6647
 
    break 2
6648
 
  fi
6649
 
done
6650
 
done
6651
 
IFS=$as_save_IFS
6652
 
 
6653
 
fi
6654
 
fi
6655
 
RANLIB=$ac_cv_prog_RANLIB
6656
 
if test -n "$RANLIB"; then
6657
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6658
 
echo "${ECHO_T}$RANLIB" >&6; }
6659
 
else
6660
 
  { echo "$as_me:$LINENO: result: no" >&5
6661
 
echo "${ECHO_T}no" >&6; }
6662
 
fi
6663
 
 
6664
 
 
6665
 
fi
6666
 
if test -z "$ac_cv_prog_RANLIB"; then
6667
 
  ac_ct_RANLIB=$RANLIB
6668
 
  # Extract the first word of "ranlib", so it can be a program name with args.
6669
 
set dummy ranlib; ac_word=$2
6670
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6671
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6672
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6674
 
else
6675
 
  if test -n "$ac_ct_RANLIB"; then
6676
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6677
 
else
6678
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679
 
for as_dir in $PATH
6680
 
do
6681
 
  IFS=$as_save_IFS
6682
 
  test -z "$as_dir" && as_dir=.
6683
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6684
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6686
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6687
 
    break 2
6688
 
  fi
6689
 
done
6690
 
done
6691
 
IFS=$as_save_IFS
6692
 
 
6693
 
fi
6694
 
fi
6695
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6696
 
if test -n "$ac_ct_RANLIB"; then
6697
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6698
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6699
 
else
6700
 
  { echo "$as_me:$LINENO: result: no" >&5
6701
 
echo "${ECHO_T}no" >&6; }
6702
 
fi
6703
 
 
6704
 
  if test "x$ac_ct_RANLIB" = x; then
6705
 
    RANLIB=":"
6706
 
  else
6707
 
    case $cross_compiling:$ac_tool_warned in
6708
 
yes:)
6709
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6710
 
whose name does not start with the host triplet.  If you think this
6711
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6712
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6713
 
whose name does not start with the host triplet.  If you think this
6714
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6715
 
ac_tool_warned=yes ;;
6716
 
esac
6717
 
    RANLIB=$ac_ct_RANLIB
6718
 
  fi
6719
 
else
6720
 
  RANLIB="$ac_cv_prog_RANLIB"
6721
 
fi
6722
 
 
6723
 
if test -n "$ac_tool_prefix"; then
6724
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6725
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
6726
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6727
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728
 
if test "${ac_cv_prog_STRIP+set}" = set; then
6729
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6730
 
else
6731
 
  if test -n "$STRIP"; then
6732
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6733
 
else
6734
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735
 
for as_dir in $PATH
6736
 
do
6737
 
  IFS=$as_save_IFS
6738
 
  test -z "$as_dir" && as_dir=.
6739
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6740
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6742
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743
 
    break 2
6744
 
  fi
6745
 
done
6746
 
done
6747
 
IFS=$as_save_IFS
6748
 
 
6749
 
fi
6750
 
fi
6751
 
STRIP=$ac_cv_prog_STRIP
6752
 
if test -n "$STRIP"; then
6753
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6754
 
echo "${ECHO_T}$STRIP" >&6; }
6755
 
else
6756
 
  { echo "$as_me:$LINENO: result: no" >&5
6757
 
echo "${ECHO_T}no" >&6; }
6758
 
fi
6759
 
 
6760
 
 
6761
 
fi
6762
 
if test -z "$ac_cv_prog_STRIP"; then
6763
 
  ac_ct_STRIP=$STRIP
6764
 
  # Extract the first word of "strip", so it can be a program name with args.
6765
 
set dummy strip; ac_word=$2
6766
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6767
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6768
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6770
 
else
6771
 
  if test -n "$ac_ct_STRIP"; then
6772
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6773
 
else
6774
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775
 
for as_dir in $PATH
6776
 
do
6777
 
  IFS=$as_save_IFS
6778
 
  test -z "$as_dir" && as_dir=.
6779
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6780
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781
 
    ac_cv_prog_ac_ct_STRIP="strip"
6782
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6783
 
    break 2
6784
 
  fi
6785
 
done
6786
 
done
6787
 
IFS=$as_save_IFS
6788
 
 
6789
 
fi
6790
 
fi
6791
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6792
 
if test -n "$ac_ct_STRIP"; then
6793
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6794
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6795
 
else
6796
 
  { echo "$as_me:$LINENO: result: no" >&5
6797
 
echo "${ECHO_T}no" >&6; }
6798
 
fi
6799
 
 
6800
 
  if test "x$ac_ct_STRIP" = x; then
6801
 
    STRIP=":"
6802
 
  else
6803
 
    case $cross_compiling:$ac_tool_warned in
6804
 
yes:)
6805
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6806
 
whose name does not start with the host triplet.  If you think this
6807
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6808
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6809
 
whose name does not start with the host triplet.  If you think this
6810
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6811
 
ac_tool_warned=yes ;;
6812
 
esac
6813
 
    STRIP=$ac_ct_STRIP
6814
 
  fi
6815
 
else
6816
 
  STRIP="$ac_cv_prog_STRIP"
6817
 
fi
6818
 
 
6819
 
 
6820
 
old_CC="$CC"
6821
 
old_CFLAGS="$CFLAGS"
6822
 
 
6823
 
# Set sane defaults for various variables
6824
 
test -z "$AR" && AR=ar
6825
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
6826
 
test -z "$AS" && AS=as
6827
 
test -z "$CC" && CC=cc
6828
 
test -z "$LTCC" && LTCC=$CC
6829
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6830
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
6831
 
test -z "$LD" && LD=ld
6832
 
test -z "$LN_S" && LN_S="ln -s"
6833
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
6834
 
test -z "$NM" && NM=nm
6835
 
test -z "$SED" && SED=sed
6836
 
test -z "$OBJDUMP" && OBJDUMP=objdump
6837
 
test -z "$RANLIB" && RANLIB=:
6838
 
test -z "$STRIP" && STRIP=:
6839
 
test -z "$ac_objext" && ac_objext=o
6840
 
 
6841
 
# Determine commands to create old-style static archives.
6842
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6843
 
old_postinstall_cmds='chmod 644 $oldlib'
6844
 
old_postuninstall_cmds=
6845
 
 
6846
 
if test -n "$RANLIB"; then
6847
 
  case $host_os in
6848
 
  openbsd*)
6849
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6850
 
    ;;
6851
 
  *)
6852
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6853
 
    ;;
6854
 
  esac
6855
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6856
 
fi
6857
 
 
6858
 
for cc_temp in $compiler""; do
6859
 
  case $cc_temp in
6860
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6861
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6862
 
    \-*) ;;
6863
 
    *) break;;
6864
 
  esac
6865
 
done
6866
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6867
 
 
6868
 
 
6869
 
# Only perform the check for file, if the check method requires it
6870
 
case $deplibs_check_method in
6871
 
file_magic*)
6872
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6873
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6874
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6875
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6876
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6877
 
else
6878
 
  case $MAGIC_CMD in
6879
 
[\\/*] |  ?:[\\/]*)
6880
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6881
 
  ;;
6882
 
*)
6883
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6884
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6885
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6886
 
  for ac_dir in $ac_dummy; do
6887
 
    IFS="$lt_save_ifs"
6888
 
    test -z "$ac_dir" && ac_dir=.
6889
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
6890
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6891
 
      if test -n "$file_magic_test_file"; then
6892
 
        case $deplibs_check_method in
6893
 
        "file_magic "*)
6894
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6895
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6896
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6897
 
            $EGREP "$file_magic_regex" > /dev/null; then
6898
 
            :
6899
 
          else
6900
 
            cat <<EOF 1>&2
6901
 
 
6902
 
*** Warning: the command libtool uses to detect shared libraries,
6903
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6904
 
*** The result is that libtool may fail to recognize shared libraries
6905
 
*** as such.  This will affect the creation of libtool libraries that
6906
 
*** depend on shared libraries, but programs linked with such libtool
6907
 
*** libraries will work regardless of this problem.  Nevertheless, you
6908
 
*** may want to report the problem to your system manager and/or to
6909
 
*** bug-libtool@gnu.org
6910
 
 
6911
 
EOF
6912
 
          fi ;;
6913
 
        esac
6914
 
      fi
6915
 
      break
6916
 
    fi
6917
 
  done
6918
 
  IFS="$lt_save_ifs"
6919
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6920
 
  ;;
6921
 
esac
6922
 
fi
6923
 
 
6924
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6925
 
if test -n "$MAGIC_CMD"; then
6926
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6927
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6928
 
else
6929
 
  { echo "$as_me:$LINENO: result: no" >&5
6930
 
echo "${ECHO_T}no" >&6; }
6931
 
fi
6932
 
 
6933
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
6934
 
  if test -n "$ac_tool_prefix"; then
6935
 
    { echo "$as_me:$LINENO: checking for file" >&5
6936
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6937
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6938
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6939
 
else
6940
 
  case $MAGIC_CMD in
6941
 
[\\/*] |  ?:[\\/]*)
6942
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6943
 
  ;;
6944
 
*)
6945
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
6946
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6947
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6948
 
  for ac_dir in $ac_dummy; do
6949
 
    IFS="$lt_save_ifs"
6950
 
    test -z "$ac_dir" && ac_dir=.
6951
 
    if test -f $ac_dir/file; then
6952
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6953
 
      if test -n "$file_magic_test_file"; then
6954
 
        case $deplibs_check_method in
6955
 
        "file_magic "*)
6956
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6957
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6958
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6959
 
            $EGREP "$file_magic_regex" > /dev/null; then
6960
 
            :
6961
 
          else
6962
 
            cat <<EOF 1>&2
6963
 
 
6964
 
*** Warning: the command libtool uses to detect shared libraries,
6965
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
6966
 
*** The result is that libtool may fail to recognize shared libraries
6967
 
*** as such.  This will affect the creation of libtool libraries that
6968
 
*** depend on shared libraries, but programs linked with such libtool
6969
 
*** libraries will work regardless of this problem.  Nevertheless, you
6970
 
*** may want to report the problem to your system manager and/or to
6971
 
*** bug-libtool@gnu.org
6972
 
 
6973
 
EOF
6974
 
          fi ;;
6975
 
        esac
6976
 
      fi
6977
 
      break
6978
 
    fi
6979
 
  done
6980
 
  IFS="$lt_save_ifs"
6981
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
6982
 
  ;;
6983
 
esac
6984
 
fi
6985
 
 
6986
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6987
 
if test -n "$MAGIC_CMD"; then
6988
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6989
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
6990
 
else
6991
 
  { echo "$as_me:$LINENO: result: no" >&5
6992
 
echo "${ECHO_T}no" >&6; }
6993
 
fi
6994
 
 
6995
 
  else
6996
 
    MAGIC_CMD=:
6997
 
  fi
6998
 
fi
6999
 
 
7000
 
  fi
7001
 
  ;;
7002
 
esac
7003
 
 
7004
 
enable_dlopen=no
7005
 
enable_win32_dll=no
7006
 
 
7007
 
# Check whether --enable-libtool-lock was given.
7008
 
if test "${enable_libtool_lock+set}" = set; then
7009
 
  enableval=$enable_libtool_lock; 
7010
 
fi
7011
 
 
7012
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7013
 
 
7014
 
 
7015
 
# Check whether --with-pic was given.
7016
 
if test "${with_pic+set}" = set; then
7017
 
  withval=$with_pic; pic_mode="$withval"
7018
 
else
7019
 
  pic_mode=default
7020
 
fi
7021
 
 
7022
 
test -z "$pic_mode" && pic_mode=default
7023
 
 
7024
 
# Use C for the default configuration in the libtool script
7025
 
tagname=
7026
 
lt_save_CC="$CC"
7027
 
ac_ext=c
7028
 
ac_cpp='$CPP $CPPFLAGS'
7029
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7032
 
 
7033
 
 
7034
 
# Source file extension for C test sources.
7035
 
ac_ext=c
7036
 
 
7037
 
# Object file extension for compiled C test sources.
7038
 
objext=o
7039
 
objext=$objext
7040
 
 
7041
 
# Code to be used in simple compile tests
7042
 
lt_simple_compile_test_code="int some_variable = 0;\n"
7043
 
 
7044
 
# Code to be used in simple link tests
7045
 
lt_simple_link_test_code='int main(){return(0);}\n'
7046
 
 
7047
 
 
7048
 
# If no C compiler was specified, use CC.
7049
 
LTCC=${LTCC-"$CC"}
7050
 
 
7051
 
# If no C compiler flags were specified, use CFLAGS.
7052
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7053
 
 
7054
 
# Allow CC to be a program name with arguments.
7055
 
compiler=$CC
7056
 
 
7057
 
 
7058
 
# save warnings/boilerplate of simple test code
7059
 
ac_outfile=conftest.$ac_objext
7060
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7061
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7062
 
_lt_compiler_boilerplate=`cat conftest.err`
7063
 
$rm conftest*
7064
 
 
7065
 
ac_outfile=conftest.$ac_objext
7066
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7067
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7068
 
_lt_linker_boilerplate=`cat conftest.err`
7069
 
$rm conftest*
7070
 
 
7071
 
 
7072
 
 
7073
 
lt_prog_compiler_no_builtin_flag=
7074
 
 
7075
 
if test "$GCC" = yes; then
7076
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7077
 
 
7078
 
  
7079
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7080
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7081
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7082
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7083
 
else
7084
 
  lt_cv_prog_compiler_rtti_exceptions=no
7085
 
  ac_outfile=conftest.$ac_objext
7086
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7087
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7088
 
   # Insert the option either (1) after the last *FLAGS variable, or
7089
 
   # (2) before a word containing "conftest.", or (3) at the end.
7090
 
   # Note that $ac_compile itself does not contain backslashes and begins
7091
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7092
 
   # The option is referenced via a variable to avoid confusing sed.
7093
 
   lt_compile=`echo "$ac_compile" | $SED \
7094
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7095
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7096
 
   -e 's:$: $lt_compiler_flag:'`
7097
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7098
 
   (eval "$lt_compile" 2>conftest.err)
7099
 
   ac_status=$?
7100
 
   cat conftest.err >&5
7101
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7102
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7103
 
     # The compiler can only warn and ignore the option if not recognized
7104
 
     # So say no if there are warnings other than the usual output.
7105
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7106
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7107
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7108
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7109
 
     fi
7110
 
   fi
7111
 
   $rm conftest*
7112
 
 
7113
 
fi
7114
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7115
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7116
 
 
7117
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7118
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7119
 
else
7120
 
    :
7121
 
fi
7122
 
 
7123
 
fi
7124
 
 
7125
 
lt_prog_compiler_wl=
7126
 
lt_prog_compiler_pic=
7127
 
lt_prog_compiler_static=
7128
 
 
7129
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7130
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7131
 
 
7132
 
  if test "$GCC" = yes; then
7133
 
    lt_prog_compiler_wl='-Wl,'
7134
 
    lt_prog_compiler_static='-static'
7135
 
 
7136
 
    case $host_os in
7137
 
      aix*)
7138
 
      # All AIX code is PIC.
7139
 
      if test "$host_cpu" = ia64; then
7140
 
        # AIX 5 now supports IA64 processor
7141
 
        lt_prog_compiler_static='-Bstatic'
7142
 
      fi
7143
 
      ;;
7144
 
 
7145
 
    amigaos*)
7146
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7147
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7148
 
      # like `-m68040'.
7149
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7150
 
      ;;
7151
 
 
7152
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7153
 
      # PIC is the default for these OSes.
7154
 
      ;;
7155
 
 
7156
 
    mingw* | pw32* | os2*)
7157
 
      # This hack is so that the source file can tell whether it is being
7158
 
      # built for inclusion in a dll (and should export symbols for example).
7159
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7160
 
      ;;
7161
 
 
7162
 
    darwin* | rhapsody*)
7163
 
      # PIC is the default on this platform
7164
 
      # Common symbols not allowed in MH_DYLIB files
7165
 
      lt_prog_compiler_pic='-fno-common'
7166
 
      ;;
7167
 
 
7168
 
    interix3*)
7169
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7170
 
      # Instead, we relocate shared libraries at runtime.
7171
 
      ;;
7172
 
 
7173
 
    msdosdjgpp*)
7174
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7175
 
      # on systems that don't support them.
7176
 
      lt_prog_compiler_can_build_shared=no
7177
 
      enable_shared=no
7178
 
      ;;
7179
 
 
7180
 
    sysv4*MP*)
7181
 
      if test -d /usr/nec; then
7182
 
        lt_prog_compiler_pic=-Kconform_pic
7183
 
      fi
7184
 
      ;;
7185
 
 
7186
 
    hpux*)
7187
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7188
 
      # not for PA HP-UX.
7189
 
      case $host_cpu in
7190
 
      hppa*64*|ia64*)
7191
 
        # +Z the default
7192
 
        ;;
7193
 
      *)
7194
 
        lt_prog_compiler_pic='-fPIC'
7195
 
        ;;
7196
 
      esac
7197
 
      ;;
7198
 
 
7199
 
    *)
7200
 
      lt_prog_compiler_pic='-fPIC'
7201
 
      ;;
7202
 
    esac
7203
 
  else
7204
 
    # PORTME Check for flag to pass linker flags through the system compiler.
7205
 
    case $host_os in
7206
 
    aix*)
7207
 
      lt_prog_compiler_wl='-Wl,'
7208
 
      if test "$host_cpu" = ia64; then
7209
 
        # AIX 5 now supports IA64 processor
7210
 
        lt_prog_compiler_static='-Bstatic'
7211
 
      else
7212
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7213
 
      fi
7214
 
      ;;
7215
 
      darwin*)
7216
 
        # PIC is the default on this platform
7217
 
        # Common symbols not allowed in MH_DYLIB files
7218
 
       case $cc_basename in
7219
 
         xlc*)
7220
 
         lt_prog_compiler_pic='-qnocommon'
7221
 
         lt_prog_compiler_wl='-Wl,'
7222
 
         ;;
7223
 
       esac
7224
 
       ;;
7225
 
 
7226
 
    mingw* | pw32* | os2*)
7227
 
      # This hack is so that the source file can tell whether it is being
7228
 
      # built for inclusion in a dll (and should export symbols for example).
7229
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7230
 
      ;;
7231
 
 
7232
 
    hpux9* | hpux10* | hpux11*)
7233
 
      lt_prog_compiler_wl='-Wl,'
7234
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7235
 
      # not for PA HP-UX.
7236
 
      case $host_cpu in
7237
 
      hppa*64*|ia64*)
7238
 
        # +Z the default
7239
 
        ;;
7240
 
      *)
7241
 
        lt_prog_compiler_pic='+Z'
7242
 
        ;;
7243
 
      esac
7244
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7245
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7246
 
      ;;
7247
 
 
7248
 
    irix5* | irix6* | nonstopux*)
7249
 
      lt_prog_compiler_wl='-Wl,'
7250
 
      # PIC (with -KPIC) is the default.
7251
 
      lt_prog_compiler_static='-non_shared'
7252
 
      ;;
7253
 
 
7254
 
    newsos6)
7255
 
      lt_prog_compiler_pic='-KPIC'
7256
 
      lt_prog_compiler_static='-Bstatic'
7257
 
      ;;
7258
 
 
7259
 
    linux* | k*bsd*-gnu)
7260
 
      case $cc_basename in
7261
 
      icc* | ecc*)
7262
 
        lt_prog_compiler_wl='-Wl,'
7263
 
        lt_prog_compiler_pic='-KPIC'
7264
 
        lt_prog_compiler_static='-static'
7265
 
        ;;
7266
 
      pgcc* | pgf77* | pgf90* | pgf95*)
7267
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
7268
 
        # which looks to be a dead project)
7269
 
        lt_prog_compiler_wl='-Wl,'
7270
 
        lt_prog_compiler_pic='-fpic'
7271
 
        lt_prog_compiler_static='-Bstatic'
7272
 
        ;;
7273
 
      ccc*)
7274
 
        lt_prog_compiler_wl='-Wl,'
7275
 
        # All Alpha code is PIC.
7276
 
        lt_prog_compiler_static='-non_shared'
7277
 
        ;;
7278
 
      esac
7279
 
      ;;
7280
 
 
7281
 
    osf3* | osf4* | osf5*)
7282
 
      lt_prog_compiler_wl='-Wl,'
7283
 
      # All OSF/1 code is PIC.
7284
 
      lt_prog_compiler_static='-non_shared'
7285
 
      ;;
7286
 
 
7287
 
    solaris*)
7288
 
      lt_prog_compiler_pic='-KPIC'
7289
 
      lt_prog_compiler_static='-Bstatic'
7290
 
      case $cc_basename in
7291
 
      f77* | f90* | f95*)
7292
 
        lt_prog_compiler_wl='-Qoption ld ';;
7293
 
      *)
7294
 
        lt_prog_compiler_wl='-Wl,';;
7295
 
      esac
7296
 
      ;;
7297
 
 
7298
 
    sunos4*)
7299
 
      lt_prog_compiler_wl='-Qoption ld '
7300
 
      lt_prog_compiler_pic='-PIC'
7301
 
      lt_prog_compiler_static='-Bstatic'
7302
 
      ;;
7303
 
 
7304
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
7305
 
      lt_prog_compiler_wl='-Wl,'
7306
 
      lt_prog_compiler_pic='-KPIC'
7307
 
      lt_prog_compiler_static='-Bstatic'
7308
 
      ;;
7309
 
 
7310
 
    sysv4*MP*)
7311
 
      if test -d /usr/nec ;then
7312
 
        lt_prog_compiler_pic='-Kconform_pic'
7313
 
        lt_prog_compiler_static='-Bstatic'
7314
 
      fi
7315
 
      ;;
7316
 
 
7317
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7318
 
      lt_prog_compiler_wl='-Wl,'
7319
 
      lt_prog_compiler_pic='-KPIC'
7320
 
      lt_prog_compiler_static='-Bstatic'
7321
 
      ;;
7322
 
 
7323
 
    unicos*)
7324
 
      lt_prog_compiler_wl='-Wl,'
7325
 
      lt_prog_compiler_can_build_shared=no
7326
 
      ;;
7327
 
 
7328
 
    uts4*)
7329
 
      lt_prog_compiler_pic='-pic'
7330
 
      lt_prog_compiler_static='-Bstatic'
7331
 
      ;;
7332
 
 
7333
 
    *)
7334
 
      lt_prog_compiler_can_build_shared=no
7335
 
      ;;
7336
 
    esac
7337
 
  fi
7338
 
 
7339
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7340
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7341
 
 
7342
 
#
7343
 
# Check to make sure the PIC flag actually works.
7344
 
#
7345
 
if test -n "$lt_prog_compiler_pic"; then
7346
 
  
7347
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7348
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7349
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7350
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7351
 
else
7352
 
  lt_prog_compiler_pic_works=no
7353
 
  ac_outfile=conftest.$ac_objext
7354
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7355
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7356
 
   # Insert the option either (1) after the last *FLAGS variable, or
7357
 
   # (2) before a word containing "conftest.", or (3) at the end.
7358
 
   # Note that $ac_compile itself does not contain backslashes and begins
7359
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7360
 
   # The option is referenced via a variable to avoid confusing sed.
7361
 
   lt_compile=`echo "$ac_compile" | $SED \
7362
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7363
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7364
 
   -e 's:$: $lt_compiler_flag:'`
7365
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7366
 
   (eval "$lt_compile" 2>conftest.err)
7367
 
   ac_status=$?
7368
 
   cat conftest.err >&5
7369
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7370
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7371
 
     # The compiler can only warn and ignore the option if not recognized
7372
 
     # So say no if there are warnings other than the usual output.
7373
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7374
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7375
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7376
 
       lt_prog_compiler_pic_works=yes
7377
 
     fi
7378
 
   fi
7379
 
   $rm conftest*
7380
 
 
7381
 
fi
7382
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7383
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7384
 
 
7385
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
7386
 
    case $lt_prog_compiler_pic in
7387
 
     "" | " "*) ;;
7388
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7389
 
     esac
7390
 
else
7391
 
    lt_prog_compiler_pic=
7392
 
     lt_prog_compiler_can_build_shared=no
7393
 
fi
7394
 
 
7395
 
fi
7396
 
case $host_os in
7397
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7398
 
  *djgpp*)
7399
 
    lt_prog_compiler_pic=
7400
 
    ;;
7401
 
  *)
7402
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7403
 
    ;;
7404
 
esac
7405
 
 
7406
 
#
7407
 
# Check to make sure the static flag actually works.
7408
 
#
7409
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7410
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7411
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7412
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7413
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7414
 
else
7415
 
  lt_prog_compiler_static_works=no
7416
 
   save_LDFLAGS="$LDFLAGS"
7417
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7418
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7419
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7420
 
     # The linker can only warn and ignore the option if not recognized
7421
 
     # So say no if there are warnings
7422
 
     if test -s conftest.err; then
7423
 
       # Append any errors to the config.log.
7424
 
       cat conftest.err 1>&5
7425
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7426
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7427
 
       if diff conftest.exp conftest.er2 >/dev/null; then
7428
 
         lt_prog_compiler_static_works=yes
7429
 
       fi
7430
 
     else
7431
 
       lt_prog_compiler_static_works=yes
7432
 
     fi
7433
 
   fi
7434
 
   $rm conftest*
7435
 
   LDFLAGS="$save_LDFLAGS"
7436
 
 
7437
 
fi
7438
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7439
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7440
 
 
7441
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7442
 
    :
7443
 
else
7444
 
    lt_prog_compiler_static=
7445
 
fi
7446
 
 
7447
 
 
7448
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7449
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7450
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7451
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7452
 
else
7453
 
  lt_cv_prog_compiler_c_o=no
7454
 
   $rm -r conftest 2>/dev/null
7455
 
   mkdir conftest
7456
 
   cd conftest
7457
 
   mkdir out
7458
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7459
 
 
7460
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7461
 
   # Insert the option either (1) after the last *FLAGS variable, or
7462
 
   # (2) before a word containing "conftest.", or (3) at the end.
7463
 
   # Note that $ac_compile itself does not contain backslashes and begins
7464
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7465
 
   lt_compile=`echo "$ac_compile" | $SED \
7466
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7467
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7468
 
   -e 's:$: $lt_compiler_flag:'`
7469
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7470
 
   (eval "$lt_compile" 2>out/conftest.err)
7471
 
   ac_status=$?
7472
 
   cat out/conftest.err >&5
7473
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7474
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7475
 
   then
7476
 
     # The compiler can only warn and ignore the option if not recognized
7477
 
     # So say no if there are warnings
7478
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7479
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7480
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7481
 
       lt_cv_prog_compiler_c_o=yes
7482
 
     fi
7483
 
   fi
7484
 
   chmod u+w . 2>&5
7485
 
   $rm conftest*
7486
 
   # SGI C++ compiler will create directory out/ii_files/ for
7487
 
   # template instantiation
7488
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7489
 
   $rm out/* && rmdir out
7490
 
   cd ..
7491
 
   rmdir conftest
7492
 
   $rm conftest*
7493
 
 
7494
 
fi
7495
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7496
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7497
 
 
7498
 
 
7499
 
hard_links="nottested"
7500
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7501
 
  # do not overwrite the value of need_locks provided by the user
7502
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7503
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7504
 
  hard_links=yes
7505
 
  $rm conftest*
7506
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7507
 
  touch conftest.a
7508
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
7509
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7510
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
7511
 
echo "${ECHO_T}$hard_links" >&6; }
7512
 
  if test "$hard_links" = no; then
7513
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7514
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7515
 
    need_locks=warn
7516
 
  fi
7517
 
else
7518
 
  need_locks=no
7519
 
fi
7520
 
 
7521
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7522
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7523
 
 
7524
 
  runpath_var=
7525
 
  allow_undefined_flag=
7526
 
  enable_shared_with_static_runtimes=no
7527
 
  archive_cmds=
7528
 
  archive_expsym_cmds=
7529
 
  old_archive_From_new_cmds=
7530
 
  old_archive_from_expsyms_cmds=
7531
 
  export_dynamic_flag_spec=
7532
 
  whole_archive_flag_spec=
7533
 
  thread_safe_flag_spec=
7534
 
  hardcode_libdir_flag_spec=
7535
 
  hardcode_libdir_flag_spec_ld=
7536
 
  hardcode_libdir_separator=
7537
 
  hardcode_direct=no
7538
 
  hardcode_minus_L=no
7539
 
  hardcode_shlibpath_var=unsupported
7540
 
  link_all_deplibs=unknown
7541
 
  hardcode_automatic=no
7542
 
  module_cmds=
7543
 
  module_expsym_cmds=
7544
 
  always_export_symbols=no
7545
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7546
 
  # include_expsyms should be a list of space-separated symbols to be *always*
7547
 
  # included in the symbol list
7548
 
  include_expsyms=
7549
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
7550
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7551
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7552
 
  # as well as any symbol that contains `d'.
7553
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7554
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7555
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
7556
 
  # the symbol is explicitly referenced.  Since portable code cannot
7557
 
  # rely on this symbol name, it's probably fine to never include it in
7558
 
  # preloaded symbol tables.
7559
 
  extract_expsyms_cmds=
7560
 
  # Just being paranoid about ensuring that cc_basename is set.
7561
 
  for cc_temp in $compiler""; do
7562
 
  case $cc_temp in
7563
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7564
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7565
 
    \-*) ;;
7566
 
    *) break;;
7567
 
  esac
7568
 
done
7569
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7570
 
 
7571
 
  case $host_os in
7572
 
  cygwin* | mingw* | pw32*)
7573
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7574
 
    # When not using gcc, we currently assume that we are using
7575
 
    # Microsoft Visual C++.
7576
 
    if test "$GCC" != yes; then
7577
 
      with_gnu_ld=no
7578
 
    fi
7579
 
    ;;
7580
 
  interix*)
7581
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7582
 
    with_gnu_ld=yes
7583
 
    ;;
7584
 
  openbsd*)
7585
 
    with_gnu_ld=no
7586
 
    ;;
7587
 
  esac
7588
 
 
7589
 
  ld_shlibs=yes
7590
 
  if test "$with_gnu_ld" = yes; then
7591
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
7592
 
    wlarc='${wl}'
7593
 
 
7594
 
    # Set some defaults for GNU ld with shared library support. These
7595
 
    # are reset later if shared libraries are not supported. Putting them
7596
 
    # here allows them to be overridden if necessary.
7597
 
    runpath_var=LD_RUN_PATH
7598
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7599
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
7600
 
    # ancient GNU ld didn't support --whole-archive et. al.
7601
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7602
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7603
 
      else
7604
 
        whole_archive_flag_spec=
7605
 
    fi
7606
 
    supports_anon_versioning=no
7607
 
    case `$LD -v 2>/dev/null` in
7608
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7609
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7610
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7611
 
      *\ 2.11.*) ;; # other 2.11 versions
7612
 
      *) supports_anon_versioning=yes ;;
7613
 
    esac
7614
 
 
7615
 
    # See if GNU ld supports shared libraries.
7616
 
    case $host_os in
7617
 
    aix3* | aix4* | aix5*)
7618
 
      # On AIX/PPC, the GNU linker is very broken
7619
 
      if test "$host_cpu" != ia64; then
7620
 
        ld_shlibs=no
7621
 
        cat <<EOF 1>&2
7622
 
 
7623
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7624
 
*** to be unable to reliably create shared libraries on AIX.
7625
 
*** Therefore, libtool is disabling shared libraries support.  If you
7626
 
*** really care for shared libraries, you may want to modify your PATH
7627
 
*** so that a non-GNU linker is found, and then restart.
7628
 
 
7629
 
EOF
7630
 
      fi
7631
 
      ;;
7632
 
 
7633
 
    amigaos*)
7634
 
      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)'
7635
 
      hardcode_libdir_flag_spec='-L$libdir'
7636
 
      hardcode_minus_L=yes
7637
 
 
7638
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7639
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7640
 
      # to version 4, is to share data among multiple programs linked
7641
 
      # with the same dynamic library.  Since this doesn't match the
7642
 
      # behavior of shared libraries on other platforms, we can't use
7643
 
      # them.
7644
 
      ld_shlibs=no
7645
 
      ;;
7646
 
 
7647
 
    beos*)
7648
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7649
 
        allow_undefined_flag=unsupported
7650
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7651
 
        # support --undefined.  This deserves some investigation.  FIXME
7652
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7653
 
      else
7654
 
        ld_shlibs=no
7655
 
      fi
7656
 
      ;;
7657
 
 
7658
 
    cygwin* | mingw* | pw32*)
7659
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7660
 
      # as there is no search path for DLLs.
7661
 
      hardcode_libdir_flag_spec='-L$libdir'
7662
 
      allow_undefined_flag=unsupported
7663
 
      always_export_symbols=no
7664
 
      enable_shared_with_static_runtimes=yes
7665
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7666
 
 
7667
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7668
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7669
 
        # If the export-symbols file already is a .def file (1st line
7670
 
        # is EXPORTS), use it as is; otherwise, prepend...
7671
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7672
 
          cp $export_symbols $output_objdir/$soname.def;
7673
 
        else
7674
 
          echo EXPORTS > $output_objdir/$soname.def;
7675
 
          cat $export_symbols >> $output_objdir/$soname.def;
7676
 
        fi~
7677
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7678
 
      else
7679
 
        ld_shlibs=no
7680
 
      fi
7681
 
      ;;
7682
 
 
7683
 
    interix3*)
7684
 
      hardcode_direct=no
7685
 
      hardcode_shlibpath_var=no
7686
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7687
 
      export_dynamic_flag_spec='${wl}-E'
7688
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7689
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7690
 
      # default) and relocated if they conflict, which is a slow very memory
7691
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
7692
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7693
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7694
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7695
 
      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'
7696
 
      ;;
7697
 
 
7698
 
    linux* | k*bsd*-gnu)
7699
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7700
 
        tmp_addflag=
7701
 
        case $cc_basename,$host_cpu in
7702
 
        pgcc*)                          # Portland Group C compiler
7703
 
          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'
7704
 
          tmp_addflag=' $pic_flag'
7705
 
          ;;
7706
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7707
 
          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'
7708
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
7709
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7710
 
          tmp_addflag=' -i_dynamic' ;;
7711
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7712
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
7713
 
        ifc* | ifort*)                  # Intel Fortran compiler
7714
 
          tmp_addflag=' -nofor_main' ;;
7715
 
        esac
7716
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7717
 
 
7718
 
        if test $supports_anon_versioning = yes; then
7719
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7720
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7721
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7722
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7723
 
        fi
7724
 
        link_all_deplibs=no
7725
 
      else
7726
 
        ld_shlibs=no
7727
 
      fi
7728
 
      ;;
7729
 
 
7730
 
    netbsd* | netbsdelf*-gnu)
7731
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7732
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7733
 
        wlarc=
7734
 
      else
7735
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7736
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7737
 
      fi
7738
 
      ;;
7739
 
 
7740
 
    solaris*)
7741
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7742
 
        ld_shlibs=no
7743
 
        cat <<EOF 1>&2
7744
 
 
7745
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7746
 
*** create shared libraries on Solaris systems.  Therefore, libtool
7747
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
7748
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
7749
 
*** your PATH or compiler configuration so that the native linker is
7750
 
*** used, and then restart.
7751
 
 
7752
 
EOF
7753
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7754
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7755
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7756
 
      else
7757
 
        ld_shlibs=no
7758
 
      fi
7759
 
      ;;
7760
 
 
7761
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7762
 
      case `$LD -v 2>&1` in
7763
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
7764
 
        ld_shlibs=no
7765
 
        cat <<_LT_EOF 1>&2
7766
 
 
7767
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7768
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7769
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
7770
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7771
 
*** your PATH or compiler configuration so that the native linker is
7772
 
*** used, and then restart.
7773
 
 
7774
 
_LT_EOF
7775
 
        ;;
7776
 
        *)
7777
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7778
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7779
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7780
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7781
 
          else
7782
 
            ld_shlibs=no
7783
 
          fi
7784
 
        ;;
7785
 
      esac
7786
 
      ;;
7787
 
 
7788
 
    sunos4*)
7789
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7790
 
      wlarc=
7791
 
      hardcode_direct=yes
7792
 
      hardcode_shlibpath_var=no
7793
 
      ;;
7794
 
 
7795
 
    *)
7796
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7797
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7798
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7799
 
      else
7800
 
        ld_shlibs=no
7801
 
      fi
7802
 
      ;;
7803
 
    esac
7804
 
 
7805
 
    if test "$ld_shlibs" = no; then
7806
 
      runpath_var=
7807
 
      hardcode_libdir_flag_spec=
7808
 
      export_dynamic_flag_spec=
7809
 
      whole_archive_flag_spec=
7810
 
    fi
7811
 
  else
7812
 
    # PORTME fill in a description of your system's linker (not GNU ld)
7813
 
    case $host_os in
7814
 
    aix3*)
7815
 
      allow_undefined_flag=unsupported
7816
 
      always_export_symbols=yes
7817
 
      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'
7818
 
      # Note: this linker hardcodes the directories in LIBPATH if there
7819
 
      # are no directories specified by -L.
7820
 
      hardcode_minus_L=yes
7821
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7822
 
        # Neither direct hardcoding nor static linking is supported with a
7823
 
        # broken collect2.
7824
 
        hardcode_direct=unsupported
7825
 
      fi
7826
 
      ;;
7827
 
 
7828
 
    aix4* | aix5*)
7829
 
      if test "$host_cpu" = ia64; then
7830
 
        # On IA64, the linker does run time linking by default, so we don't
7831
 
        # have to do anything special.
7832
 
        aix_use_runtimelinking=no
7833
 
        exp_sym_flag='-Bexport'
7834
 
        no_entry_flag=""
7835
 
      else
7836
 
        # If we're using GNU nm, then we don't want the "-C" option.
7837
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7838
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7839
 
          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'
7840
 
        else
7841
 
          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'
7842
 
        fi
7843
 
        aix_use_runtimelinking=no
7844
 
 
7845
 
        # Test if we are trying to use run time linking or normal
7846
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7847
 
        # need to do runtime linking.
7848
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7849
 
          for ld_flag in $LDFLAGS; do
7850
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7851
 
            aix_use_runtimelinking=yes
7852
 
            break
7853
 
          fi
7854
 
          done
7855
 
          ;;
7856
 
        esac
7857
 
 
7858
 
        exp_sym_flag='-bexport'
7859
 
        no_entry_flag='-bnoentry'
7860
 
      fi
7861
 
 
7862
 
      # When large executables or shared objects are built, AIX ld can
7863
 
      # have problems creating the table of contents.  If linking a library
7864
 
      # or program results in "error TOC overflow" add -mminimal-toc to
7865
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7866
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7867
 
 
7868
 
      archive_cmds=''
7869
 
      hardcode_direct=yes
7870
 
      hardcode_libdir_separator=':'
7871
 
      link_all_deplibs=yes
7872
 
 
7873
 
      if test "$GCC" = yes; then
7874
 
        case $host_os in aix4.[012]|aix4.[012].*)
7875
 
        # We only want to do this on AIX 4.2 and lower, the check
7876
 
        # below for broken collect2 doesn't work under 4.3+
7877
 
          collect2name=`${CC} -print-prog-name=collect2`
7878
 
          if test -f "$collect2name" && \
7879
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
7880
 
          then
7881
 
          # We have reworked collect2
7882
 
          hardcode_direct=yes
7883
 
          else
7884
 
          # We have old collect2
7885
 
          hardcode_direct=unsupported
7886
 
          # It fails to find uninstalled libraries when the uninstalled
7887
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
7888
 
          # to unsupported forces relinking
7889
 
          hardcode_minus_L=yes
7890
 
          hardcode_libdir_flag_spec='-L$libdir'
7891
 
          hardcode_libdir_separator=
7892
 
          fi
7893
 
          ;;
7894
 
        esac
7895
 
        shared_flag='-shared'
7896
 
        if test "$aix_use_runtimelinking" = yes; then
7897
 
          shared_flag="$shared_flag "'${wl}-G'
7898
 
        fi
7899
 
      else
7900
 
        # not using gcc
7901
 
        if test "$host_cpu" = ia64; then
7902
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7903
 
        # chokes on -Wl,-G. The following line is correct:
7904
 
          shared_flag='-G'
7905
 
        else
7906
 
          if test "$aix_use_runtimelinking" = yes; then
7907
 
            shared_flag='${wl}-G'
7908
 
          else
7909
 
            shared_flag='${wl}-bM:SRE'
7910
 
          fi
7911
 
        fi
7912
 
      fi
7913
 
 
7914
 
      # It seems that -bexpall does not export symbols beginning with
7915
 
      # underscore (_), so it is better to generate a list of symbols to export.
7916
 
      always_export_symbols=yes
7917
 
      if test "$aix_use_runtimelinking" = yes; then
7918
 
        # Warning - without using the other runtime loading flags (-brtl),
7919
 
        # -berok will link without error, but may produce a broken library.
7920
 
        allow_undefined_flag='-berok'
7921
 
       # Determine the default libpath from the value encoded in an empty executable.
7922
 
       cat >conftest.$ac_ext <<_ACEOF
7923
 
/* confdefs.h.  */
7924
 
_ACEOF
7925
 
cat confdefs.h >>conftest.$ac_ext
7926
 
cat >>conftest.$ac_ext <<_ACEOF
7927
 
/* end confdefs.h.  */
7928
 
 
7929
 
int
7930
 
main ()
7931
 
{
7932
 
 
7933
 
  ;
7934
 
  return 0;
7935
 
}
7936
 
_ACEOF
7937
 
rm -f conftest.$ac_objext conftest$ac_exeext
7938
 
if { (ac_try="$ac_link"
7939
 
case "(($ac_try" in
7940
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941
 
  *) ac_try_echo=$ac_try;;
7942
 
esac
7943
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7944
 
  (eval "$ac_link") 2>conftest.er1
7945
 
  ac_status=$?
7946
 
  grep -v '^ *+' conftest.er1 >conftest.err
7947
 
  rm -f conftest.er1
7948
 
  cat conftest.err >&5
7949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950
 
  (exit $ac_status); } && {
7951
 
         test -z "$ac_c_werror_flag" ||
7952
 
         test ! -s conftest.err
7953
 
       } && test -s conftest$ac_exeext &&
7954
 
       $as_test_x conftest$ac_exeext; then
7955
 
  
7956
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7957
 
}'`
7958
 
# Check for a 64-bit object if we didn't find anything.
7959
 
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; }
7960
 
}'`; fi
7961
 
else
7962
 
  echo "$as_me: failed program was:" >&5
7963
 
sed 's/^/| /' conftest.$ac_ext >&5
7964
 
 
7965
 
        
7966
 
fi
7967
 
 
7968
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7969
 
      conftest$ac_exeext conftest.$ac_ext
7970
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7971
 
 
7972
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7973
 
        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"
7974
 
       else
7975
 
        if test "$host_cpu" = ia64; then
7976
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7977
 
          allow_undefined_flag="-z nodefs"
7978
 
          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"
7979
 
        else
7980
 
         # Determine the default libpath from the value encoded in an empty executable.
7981
 
         cat >conftest.$ac_ext <<_ACEOF
7982
 
/* confdefs.h.  */
7983
 
_ACEOF
7984
 
cat confdefs.h >>conftest.$ac_ext
7985
 
cat >>conftest.$ac_ext <<_ACEOF
7986
 
/* end confdefs.h.  */
7987
 
 
7988
 
int
7989
 
main ()
7990
 
{
7991
 
 
7992
 
  ;
7993
 
  return 0;
7994
 
}
7995
 
_ACEOF
7996
 
rm -f conftest.$ac_objext conftest$ac_exeext
7997
 
if { (ac_try="$ac_link"
7998
 
case "(($ac_try" in
7999
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000
 
  *) ac_try_echo=$ac_try;;
8001
 
esac
8002
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003
 
  (eval "$ac_link") 2>conftest.er1
8004
 
  ac_status=$?
8005
 
  grep -v '^ *+' conftest.er1 >conftest.err
8006
 
  rm -f conftest.er1
8007
 
  cat conftest.err >&5
8008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009
 
  (exit $ac_status); } && {
8010
 
         test -z "$ac_c_werror_flag" ||
8011
 
         test ! -s conftest.err
8012
 
       } && test -s conftest$ac_exeext &&
8013
 
       $as_test_x conftest$ac_exeext; then
8014
 
  
8015
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8016
 
}'`
8017
 
# Check for a 64-bit object if we didn't find anything.
8018
 
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; }
8019
 
}'`; fi
8020
 
else
8021
 
  echo "$as_me: failed program was:" >&5
8022
 
sed 's/^/| /' conftest.$ac_ext >&5
8023
 
 
8024
 
        
8025
 
fi
8026
 
 
8027
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8028
 
      conftest$ac_exeext conftest.$ac_ext
8029
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8030
 
 
8031
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8032
 
          # Warning - without using the other run time loading flags,
8033
 
          # -berok will link without error, but may produce a broken library.
8034
 
          no_undefined_flag=' ${wl}-bernotok'
8035
 
          allow_undefined_flag=' ${wl}-berok'
8036
 
          # Exported symbols can be pulled into shared objects from archives
8037
 
          whole_archive_flag_spec='$convenience'
8038
 
          archive_cmds_need_lc=yes
8039
 
          # This is similar to how AIX traditionally builds its shared libraries.
8040
 
          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'
8041
 
        fi
8042
 
      fi
8043
 
      ;;
8044
 
 
8045
 
    amigaos*)
8046
 
      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)'
8047
 
      hardcode_libdir_flag_spec='-L$libdir'
8048
 
      hardcode_minus_L=yes
8049
 
      # see comment about different semantics on the GNU ld section
8050
 
      ld_shlibs=no
8051
 
      ;;
8052
 
 
8053
 
    bsdi[45]*)
8054
 
      export_dynamic_flag_spec=-rdynamic
8055
 
      ;;
8056
 
 
8057
 
    cygwin* | mingw* | pw32*)
8058
 
      # When not using gcc, we currently assume that we are using
8059
 
      # Microsoft Visual C++.
8060
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8061
 
      # no search path for DLLs.
8062
 
      hardcode_libdir_flag_spec=' '
8063
 
      allow_undefined_flag=unsupported
8064
 
      # Tell ltmain to make .lib files, not .a files.
8065
 
      libext=lib
8066
 
      # Tell ltmain to make .dll files, not .so files.
8067
 
      shrext_cmds=".dll"
8068
 
      # FIXME: Setting linknames here is a bad hack.
8069
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8070
 
      # The linker will automatically build a .lib file if we build a DLL.
8071
 
      old_archive_From_new_cmds='true'
8072
 
      # FIXME: Should let the user specify the lib program.
8073
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8074
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8075
 
      enable_shared_with_static_runtimes=yes
8076
 
      ;;
8077
 
 
8078
 
    darwin* | rhapsody*)
8079
 
      case $host_os in
8080
 
        rhapsody* | darwin1.[012])
8081
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8082
 
         ;;
8083
 
       *) # Darwin 1.3 on
8084
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8085
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8086
 
         else
8087
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8088
 
             10.[012])
8089
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8090
 
               ;;
8091
 
             10.*)
8092
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8093
 
               ;;
8094
 
           esac
8095
 
         fi
8096
 
         ;;
8097
 
      esac
8098
 
      archive_cmds_need_lc=no
8099
 
      hardcode_direct=no
8100
 
      hardcode_automatic=yes
8101
 
      hardcode_shlibpath_var=unsupported
8102
 
      whole_archive_flag_spec=''
8103
 
      link_all_deplibs=yes
8104
 
    if test "$GCC" = yes ; then
8105
 
        output_verbose_link_cmd='echo'
8106
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8107
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8108
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8109
 
      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}'
8110
 
      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}'
8111
 
    else
8112
 
      case $cc_basename in
8113
 
        xlc*)
8114
 
         output_verbose_link_cmd='echo'
8115
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8116
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8117
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8118
 
         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}'
8119
 
          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}'
8120
 
          ;;
8121
 
       *)
8122
 
         ld_shlibs=no
8123
 
          ;;
8124
 
      esac
8125
 
    fi
8126
 
      ;;
8127
 
 
8128
 
    dgux*)
8129
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8130
 
      hardcode_libdir_flag_spec='-L$libdir'
8131
 
      hardcode_shlibpath_var=no
8132
 
      ;;
8133
 
 
8134
 
    freebsd1*)
8135
 
      ld_shlibs=no
8136
 
      ;;
8137
 
 
8138
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8139
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8140
 
    # does not break anything, and helps significantly (at the cost of a little
8141
 
    # extra space).
8142
 
    freebsd2.2*)
8143
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8144
 
      hardcode_libdir_flag_spec='-R$libdir'
8145
 
      hardcode_direct=yes
8146
 
      hardcode_shlibpath_var=no
8147
 
      ;;
8148
 
 
8149
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8150
 
    freebsd2*)
8151
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8152
 
      hardcode_direct=yes
8153
 
      hardcode_minus_L=yes
8154
 
      hardcode_shlibpath_var=no
8155
 
      ;;
8156
 
 
8157
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8158
 
    freebsd* | dragonfly*)
8159
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8160
 
      hardcode_libdir_flag_spec='-R$libdir'
8161
 
      hardcode_direct=yes
8162
 
      hardcode_shlibpath_var=no
8163
 
      ;;
8164
 
 
8165
 
    hpux9*)
8166
 
      if test "$GCC" = yes; then
8167
 
        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'
8168
 
      else
8169
 
        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'
8170
 
      fi
8171
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8172
 
      hardcode_libdir_separator=:
8173
 
      hardcode_direct=yes
8174
 
 
8175
 
      # hardcode_minus_L: Not really in the search PATH,
8176
 
      # but as the default location of the library.
8177
 
      hardcode_minus_L=yes
8178
 
      export_dynamic_flag_spec='${wl}-E'
8179
 
      ;;
8180
 
 
8181
 
    hpux10*)
8182
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8183
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8184
 
      else
8185
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8186
 
      fi
8187
 
      if test "$with_gnu_ld" = no; then
8188
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8189
 
        hardcode_libdir_separator=:
8190
 
 
8191
 
        hardcode_direct=yes
8192
 
        export_dynamic_flag_spec='${wl}-E'
8193
 
 
8194
 
        # hardcode_minus_L: Not really in the search PATH,
8195
 
        # but as the default location of the library.
8196
 
        hardcode_minus_L=yes
8197
 
      fi
8198
 
      ;;
8199
 
 
8200
 
    hpux11*)
8201
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8202
 
        case $host_cpu in
8203
 
        hppa*64*)
8204
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8205
 
          ;;
8206
 
        ia64*)
8207
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8208
 
          ;;
8209
 
        *)
8210
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8211
 
          ;;
8212
 
        esac
8213
 
      else
8214
 
        case $host_cpu in
8215
 
        hppa*64*)
8216
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8217
 
          ;;
8218
 
        ia64*)
8219
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8220
 
          ;;
8221
 
        *)
8222
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8223
 
          ;;
8224
 
        esac
8225
 
      fi
8226
 
      if test "$with_gnu_ld" = no; then
8227
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8228
 
        hardcode_libdir_separator=:
8229
 
 
8230
 
        case $host_cpu in
8231
 
        hppa*64*|ia64*)
8232
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8233
 
          hardcode_direct=no
8234
 
          hardcode_shlibpath_var=no
8235
 
          ;;
8236
 
        *)
8237
 
          hardcode_direct=yes
8238
 
          export_dynamic_flag_spec='${wl}-E'
8239
 
 
8240
 
          # hardcode_minus_L: Not really in the search PATH,
8241
 
          # but as the default location of the library.
8242
 
          hardcode_minus_L=yes
8243
 
          ;;
8244
 
        esac
8245
 
      fi
8246
 
      ;;
8247
 
 
8248
 
    irix5* | irix6* | nonstopux*)
8249
 
      if test "$GCC" = yes; then
8250
 
        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'
8251
 
      else
8252
 
        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'
8253
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8254
 
      fi
8255
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256
 
      hardcode_libdir_separator=:
8257
 
      link_all_deplibs=yes
8258
 
      ;;
8259
 
 
8260
 
    netbsd* | netbsdelf*-gnu)
8261
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8262
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8263
 
      else
8264
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8265
 
      fi
8266
 
      hardcode_libdir_flag_spec='-R$libdir'
8267
 
      hardcode_direct=yes
8268
 
      hardcode_shlibpath_var=no
8269
 
      ;;
8270
 
 
8271
 
    newsos6)
8272
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8273
 
      hardcode_direct=yes
8274
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8275
 
      hardcode_libdir_separator=:
8276
 
      hardcode_shlibpath_var=no
8277
 
      ;;
8278
 
 
8279
 
    openbsd*)
8280
 
      hardcode_direct=yes
8281
 
      hardcode_shlibpath_var=no
8282
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8283
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8284
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8285
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8286
 
        export_dynamic_flag_spec='${wl}-E'
8287
 
      else
8288
 
       case $host_os in
8289
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8290
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8291
 
           hardcode_libdir_flag_spec='-R$libdir'
8292
 
           ;;
8293
 
         *)
8294
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8295
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8296
 
           ;;
8297
 
       esac
8298
 
      fi
8299
 
      ;;
8300
 
 
8301
 
    os2*)
8302
 
      hardcode_libdir_flag_spec='-L$libdir'
8303
 
      hardcode_minus_L=yes
8304
 
      allow_undefined_flag=unsupported
8305
 
      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'
8306
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8307
 
      ;;
8308
 
 
8309
 
    osf3*)
8310
 
      if test "$GCC" = yes; then
8311
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8312
 
        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'
8313
 
      else
8314
 
        allow_undefined_flag=' -expect_unresolved \*'
8315
 
        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'
8316
 
      fi
8317
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8318
 
      hardcode_libdir_separator=:
8319
 
      ;;
8320
 
 
8321
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8322
 
      if test "$GCC" = yes; then
8323
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8324
 
        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'
8325
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8326
 
      else
8327
 
        allow_undefined_flag=' -expect_unresolved \*'
8328
 
        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'
8329
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8330
 
        $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'
8331
 
 
8332
 
        # Both c and cxx compiler support -rpath directly
8333
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8334
 
      fi
8335
 
      hardcode_libdir_separator=:
8336
 
      ;;
8337
 
 
8338
 
    solaris*)
8339
 
      no_undefined_flag=' -z text'
8340
 
      if test "$GCC" = yes; then
8341
 
        wlarc='${wl}'
8342
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8343
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8344
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8345
 
      else
8346
 
        wlarc=''
8347
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8348
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8349
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8350
 
      fi
8351
 
      hardcode_libdir_flag_spec='-R$libdir'
8352
 
      hardcode_shlibpath_var=no
8353
 
      case $host_os in
8354
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8355
 
      *)
8356
 
        # The compiler driver will combine linker options so we
8357
 
        # cannot just pass the convience library names through
8358
 
        # without $wl, iff we do not link with $LD.
8359
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
8360
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
8361
 
        case $wlarc in
8362
 
        '')
8363
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8364
 
        *)
8365
 
          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' ;;
8366
 
        esac ;;
8367
 
      esac
8368
 
      link_all_deplibs=yes
8369
 
      ;;
8370
 
 
8371
 
    sunos4*)
8372
 
      if test "x$host_vendor" = xsequent; then
8373
 
        # Use $CC to link under sequent, because it throws in some extra .o
8374
 
        # files that make .init and .fini sections work.
8375
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8376
 
      else
8377
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8378
 
      fi
8379
 
      hardcode_libdir_flag_spec='-L$libdir'
8380
 
      hardcode_direct=yes
8381
 
      hardcode_minus_L=yes
8382
 
      hardcode_shlibpath_var=no
8383
 
      ;;
8384
 
 
8385
 
    sysv4)
8386
 
      case $host_vendor in
8387
 
        sni)
8388
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389
 
          hardcode_direct=yes # is this really true???
8390
 
        ;;
8391
 
        siemens)
8392
 
          ## LD is ld it makes a PLAMLIB
8393
 
          ## CC just makes a GrossModule.
8394
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8395
 
          reload_cmds='$CC -r -o $output$reload_objs'
8396
 
          hardcode_direct=no
8397
 
        ;;
8398
 
        motorola)
8399
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8400
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8401
 
        ;;
8402
 
      esac
8403
 
      runpath_var='LD_RUN_PATH'
8404
 
      hardcode_shlibpath_var=no
8405
 
      ;;
8406
 
 
8407
 
    sysv4.3*)
8408
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8409
 
      hardcode_shlibpath_var=no
8410
 
      export_dynamic_flag_spec='-Bexport'
8411
 
      ;;
8412
 
 
8413
 
    sysv4*MP*)
8414
 
      if test -d /usr/nec; then
8415
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8416
 
        hardcode_shlibpath_var=no
8417
 
        runpath_var=LD_RUN_PATH
8418
 
        hardcode_runpath_var=yes
8419
 
        ld_shlibs=yes
8420
 
      fi
8421
 
      ;;
8422
 
 
8423
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8424
 
      no_undefined_flag='${wl}-z,text'
8425
 
      archive_cmds_need_lc=no
8426
 
      hardcode_shlibpath_var=no
8427
 
      runpath_var='LD_RUN_PATH'
8428
 
 
8429
 
      if test "$GCC" = yes; then
8430
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8431
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8432
 
      else
8433
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8434
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8435
 
      fi
8436
 
      ;;
8437
 
 
8438
 
    sysv5* | sco3.2v5* | sco5v6*)
8439
 
      # Note: We can NOT use -z defs as we might desire, because we do not
8440
 
      # link with -lc, and that would cause any symbols used from libc to
8441
 
      # always be unresolved, which means just about no library would
8442
 
      # ever link correctly.  If we're not using GNU ld we use -z text
8443
 
      # though, which does catch some bad symbols but isn't as heavy-handed
8444
 
      # as -z defs.
8445
 
      no_undefined_flag='${wl}-z,text'
8446
 
      allow_undefined_flag='${wl}-z,nodefs'
8447
 
      archive_cmds_need_lc=no
8448
 
      hardcode_shlibpath_var=no
8449
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8450
 
      hardcode_libdir_separator=':'
8451
 
      link_all_deplibs=yes
8452
 
      export_dynamic_flag_spec='${wl}-Bexport'
8453
 
      runpath_var='LD_RUN_PATH'
8454
 
 
8455
 
      if test "$GCC" = yes; then
8456
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8457
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8458
 
      else
8459
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8460
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8461
 
      fi
8462
 
      ;;
8463
 
 
8464
 
    uts4*)
8465
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8466
 
      hardcode_libdir_flag_spec='-L$libdir'
8467
 
      hardcode_shlibpath_var=no
8468
 
      ;;
8469
 
 
8470
 
    *)
8471
 
      ld_shlibs=no
8472
 
      ;;
8473
 
    esac
8474
 
  fi
8475
 
 
8476
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8477
 
echo "${ECHO_T}$ld_shlibs" >&6; }
8478
 
test "$ld_shlibs" = no && can_build_shared=no
8479
 
 
8480
 
#
8481
 
# Do we need to explicitly link libc?
8482
 
#
8483
 
case "x$archive_cmds_need_lc" in
8484
 
x|xyes)
8485
 
  # Assume -lc should be added
8486
 
  archive_cmds_need_lc=yes
8487
 
 
8488
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8489
 
    case $archive_cmds in
8490
 
    *'~'*)
8491
 
      # FIXME: we may have to deal with multi-command sequences.
8492
 
      ;;
8493
 
    '$CC '*)
8494
 
      # Test whether the compiler implicitly links with -lc since on some
8495
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8496
 
      # to ld, don't add -lc before -lgcc.
8497
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8498
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8499
 
      $rm conftest*
8500
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8501
 
 
8502
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503
 
  (eval $ac_compile) 2>&5
8504
 
  ac_status=$?
8505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506
 
  (exit $ac_status); } 2>conftest.err; then
8507
 
        soname=conftest
8508
 
        lib=conftest
8509
 
        libobjs=conftest.$ac_objext
8510
 
        deplibs=
8511
 
        wl=$lt_prog_compiler_wl
8512
 
        pic_flag=$lt_prog_compiler_pic
8513
 
        compiler_flags=-v
8514
 
        linker_flags=-v
8515
 
        verstring=
8516
 
        output_objdir=.
8517
 
        libname=conftest
8518
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
8519
 
        allow_undefined_flag=
8520
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8521
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8522
 
  ac_status=$?
8523
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524
 
  (exit $ac_status); }
8525
 
        then
8526
 
          archive_cmds_need_lc=no
8527
 
        else
8528
 
          archive_cmds_need_lc=yes
8529
 
        fi
8530
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
8531
 
      else
8532
 
        cat conftest.err 1>&5
8533
 
      fi
8534
 
      $rm conftest*
8535
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8536
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8537
 
      ;;
8538
 
    esac
8539
 
  fi
8540
 
  ;;
8541
 
esac
8542
 
 
8543
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8544
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8545
 
library_names_spec=
8546
 
libname_spec='lib$name'
8547
 
soname_spec=
8548
 
shrext_cmds=".so"
8549
 
postinstall_cmds=
8550
 
postuninstall_cmds=
8551
 
finish_cmds=
8552
 
finish_eval=
8553
 
shlibpath_var=
8554
 
shlibpath_overrides_runpath=unknown
8555
 
version_type=none
8556
 
dynamic_linker="$host_os ld.so"
8557
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8558
 
if test "$GCC" = yes; then
8559
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8561
 
    # if the path contains ";" then we assume it to be the separator
8562
 
    # otherwise default to the standard path separator (i.e. ":") - it is
8563
 
    # assumed that no part of a normal pathname contains ";" but that should
8564
 
    # okay in the real world where ";" in dirpaths is itself problematic.
8565
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8566
 
  else
8567
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8568
 
  fi
8569
 
else
8570
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8571
 
fi
8572
 
need_lib_prefix=unknown
8573
 
hardcode_into_libs=no
8574
 
 
8575
 
# when you set need_version to no, make sure it does not cause -set_version
8576
 
# flags to be left without arguments
8577
 
need_version=unknown
8578
 
 
8579
 
case $host_os in
8580
 
aix3*)
8581
 
  version_type=linux
8582
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8583
 
  shlibpath_var=LIBPATH
8584
 
 
8585
 
  # AIX 3 has no versioning support, so we append a major version to the name.
8586
 
  soname_spec='${libname}${release}${shared_ext}$major'
8587
 
  ;;
8588
 
 
8589
 
aix4* | aix5*)
8590
 
  version_type=linux
8591
 
  need_lib_prefix=no
8592
 
  need_version=no
8593
 
  hardcode_into_libs=yes
8594
 
  if test "$host_cpu" = ia64; then
8595
 
    # AIX 5 supports IA64
8596
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8597
 
    shlibpath_var=LD_LIBRARY_PATH
8598
 
  else
8599
 
    # With GCC up to 2.95.x, collect2 would create an import file
8600
 
    # for dependence libraries.  The import file would start with
8601
 
    # the line `#! .'.  This would cause the generated library to
8602
 
    # depend on `.', always an invalid library.  This was fixed in
8603
 
    # development snapshots of GCC prior to 3.0.
8604
 
    case $host_os in
8605
 
      aix4 | aix4.[01] | aix4.[01].*)
8606
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8607
 
           echo ' yes '
8608
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8609
 
        :
8610
 
      else
8611
 
        can_build_shared=no
8612
 
      fi
8613
 
      ;;
8614
 
    esac
8615
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8616
 
    # soname into executable. Probably we can add versioning support to
8617
 
    # collect2, so additional links can be useful in future.
8618
 
    if test "$aix_use_runtimelinking" = yes; then
8619
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8620
 
      # instead of lib<name>.a to let people know that these are not
8621
 
      # typical AIX shared libraries.
8622
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8623
 
    else
8624
 
      # We preserve .a as extension for shared libraries through AIX4.2
8625
 
      # and later when we are not doing run time linking.
8626
 
      library_names_spec='${libname}${release}.a $libname.a'
8627
 
      soname_spec='${libname}${release}${shared_ext}$major'
8628
 
    fi
8629
 
    shlibpath_var=LIBPATH
8630
 
  fi
8631
 
  ;;
8632
 
 
8633
 
amigaos*)
8634
 
  library_names_spec='$libname.ixlibrary $libname.a'
8635
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8636
 
  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'
8637
 
  ;;
8638
 
 
8639
 
beos*)
8640
 
  library_names_spec='${libname}${shared_ext}'
8641
 
  dynamic_linker="$host_os ld.so"
8642
 
  shlibpath_var=LIBRARY_PATH
8643
 
  ;;
8644
 
 
8645
 
bsdi[45]*)
8646
 
  version_type=linux
8647
 
  need_version=no
8648
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8649
 
  soname_spec='${libname}${release}${shared_ext}$major'
8650
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8651
 
  shlibpath_var=LD_LIBRARY_PATH
8652
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8653
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8654
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8655
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8656
 
  # libtool to hard-code these into programs
8657
 
  ;;
8658
 
 
8659
 
cygwin* | mingw* | pw32*)
8660
 
  version_type=windows
8661
 
  shrext_cmds=".dll"
8662
 
  need_version=no
8663
 
  need_lib_prefix=no
8664
 
 
8665
 
  case $GCC,$host_os in
8666
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
8667
 
    library_names_spec='$libname.dll.a'
8668
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8669
 
    postinstall_cmds='base_file=`basename \${file}`~
8670
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8671
 
      dldir=$destdir/`dirname \$dlpath`~
8672
 
      test -d \$dldir || mkdir -p \$dldir~
8673
 
      $install_prog $dir/$dlname \$dldir/$dlname~
8674
 
      chmod a+x \$dldir/$dlname'
8675
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8676
 
      dlpath=$dir/\$dldll~
8677
 
       $rm \$dlpath'
8678
 
    shlibpath_overrides_runpath=yes
8679
 
 
8680
 
    case $host_os in
8681
 
    cygwin*)
8682
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8683
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8684
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8685
 
      ;;
8686
 
    mingw*)
8687
 
      # MinGW DLLs use traditional 'lib' prefix
8688
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8689
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8690
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8691
 
        # It is most probably a Windows format PATH printed by
8692
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8693
 
        # path with ; separators, and with drive letters. We can handle the
8694
 
        # drive letters (cygwin fileutils understands them), so leave them,
8695
 
        # especially as we might pass files found there to a mingw objdump,
8696
 
        # which wouldn't understand a cygwinified path. Ahh.
8697
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8698
 
      else
8699
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8700
 
      fi
8701
 
      ;;
8702
 
    pw32*)
8703
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8704
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8705
 
      ;;
8706
 
    esac
8707
 
    ;;
8708
 
 
8709
 
  *)
8710
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8711
 
    ;;
8712
 
  esac
8713
 
  dynamic_linker='Win32 ld.exe'
8714
 
  # FIXME: first we should search . and the directory the executable is in
8715
 
  shlibpath_var=PATH
8716
 
  ;;
8717
 
 
8718
 
darwin* | rhapsody*)
8719
 
  dynamic_linker="$host_os dyld"
8720
 
  version_type=darwin
8721
 
  need_lib_prefix=no
8722
 
  need_version=no
8723
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8724
 
  soname_spec='${libname}${release}${major}$shared_ext'
8725
 
  shlibpath_overrides_runpath=yes
8726
 
  shlibpath_var=DYLD_LIBRARY_PATH
8727
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8728
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8729
 
  if test "$GCC" = yes; then
8730
 
    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"`
8731
 
  else
8732
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8733
 
  fi
8734
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8735
 
  ;;
8736
 
 
8737
 
dgux*)
8738
 
  version_type=linux
8739
 
  need_lib_prefix=no
8740
 
  need_version=no
8741
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8742
 
  soname_spec='${libname}${release}${shared_ext}$major'
8743
 
  shlibpath_var=LD_LIBRARY_PATH
8744
 
  ;;
8745
 
 
8746
 
freebsd1*)
8747
 
  dynamic_linker=no
8748
 
  ;;
8749
 
 
8750
 
freebsd* | dragonfly*)
8751
 
  # DragonFly does not have aout.  When/if they implement a new
8752
 
  # versioning mechanism, adjust this.
8753
 
  if test -x /usr/bin/objformat; then
8754
 
    objformat=`/usr/bin/objformat`
8755
 
  else
8756
 
    case $host_os in
8757
 
    freebsd[123]*) objformat=aout ;;
8758
 
    *) objformat=elf ;;
8759
 
    esac
8760
 
  fi
8761
 
  version_type=freebsd-$objformat
8762
 
  case $version_type in
8763
 
    freebsd-elf*)
8764
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8765
 
      need_version=no
8766
 
      need_lib_prefix=no
8767
 
      ;;
8768
 
    freebsd-*)
8769
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8770
 
      need_version=yes
8771
 
      ;;
8772
 
  esac
8773
 
  shlibpath_var=LD_LIBRARY_PATH
8774
 
  case $host_os in
8775
 
  freebsd2*)
8776
 
    shlibpath_overrides_runpath=yes
8777
 
    ;;
8778
 
  freebsd3.[01]* | freebsdelf3.[01]*)
8779
 
    shlibpath_overrides_runpath=yes
8780
 
    hardcode_into_libs=yes
8781
 
    ;;
8782
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8783
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8784
 
    shlibpath_overrides_runpath=no
8785
 
    hardcode_into_libs=yes
8786
 
    ;;
8787
 
  freebsd*) # from 4.6 on
8788
 
    shlibpath_overrides_runpath=yes
8789
 
    hardcode_into_libs=yes
8790
 
    ;;
8791
 
  esac
8792
 
  ;;
8793
 
 
8794
 
gnu*)
8795
 
  version_type=linux
8796
 
  need_lib_prefix=no
8797
 
  need_version=no
8798
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8799
 
  soname_spec='${libname}${release}${shared_ext}$major'
8800
 
  shlibpath_var=LD_LIBRARY_PATH
8801
 
  hardcode_into_libs=yes
8802
 
  ;;
8803
 
 
8804
 
hpux9* | hpux10* | hpux11*)
8805
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
8806
 
  # link against other versions.
8807
 
  version_type=sunos
8808
 
  need_lib_prefix=no
8809
 
  need_version=no
8810
 
  case $host_cpu in
8811
 
  ia64*)
8812
 
    shrext_cmds='.so'
8813
 
    hardcode_into_libs=yes
8814
 
    dynamic_linker="$host_os dld.so"
8815
 
    shlibpath_var=LD_LIBRARY_PATH
8816
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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
 
    if test "X$HPUX_IA64_MODE" = X32; then
8820
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8821
 
    else
8822
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8823
 
    fi
8824
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8825
 
    ;;
8826
 
   hppa*64*)
8827
 
     shrext_cmds='.sl'
8828
 
     hardcode_into_libs=yes
8829
 
     dynamic_linker="$host_os dld.sl"
8830
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8831
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8832
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8833
 
     soname_spec='${libname}${release}${shared_ext}$major'
8834
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8835
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8836
 
     ;;
8837
 
   *)
8838
 
    shrext_cmds='.sl'
8839
 
    dynamic_linker="$host_os dld.sl"
8840
 
    shlibpath_var=SHLIB_PATH
8841
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8842
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843
 
    soname_spec='${libname}${release}${shared_ext}$major'
8844
 
    ;;
8845
 
  esac
8846
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8847
 
  postinstall_cmds='chmod 555 $lib'
8848
 
  ;;
8849
 
 
8850
 
interix3*)
8851
 
  version_type=linux
8852
 
  need_lib_prefix=no
8853
 
  need_version=no
8854
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8855
 
  soname_spec='${libname}${release}${shared_ext}$major'
8856
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8857
 
  shlibpath_var=LD_LIBRARY_PATH
8858
 
  shlibpath_overrides_runpath=no
8859
 
  hardcode_into_libs=yes
8860
 
  ;;
8861
 
 
8862
 
irix5* | irix6* | nonstopux*)
8863
 
  case $host_os in
8864
 
    nonstopux*) version_type=nonstopux ;;
8865
 
    *)
8866
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
8867
 
                version_type=linux
8868
 
        else
8869
 
                version_type=irix
8870
 
        fi ;;
8871
 
  esac
8872
 
  need_lib_prefix=no
8873
 
  need_version=no
8874
 
  soname_spec='${libname}${release}${shared_ext}$major'
8875
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8876
 
  case $host_os in
8877
 
  irix5* | nonstopux*)
8878
 
    libsuff= shlibsuff=
8879
 
    ;;
8880
 
  *)
8881
 
    case $LD in # libtool.m4 will add one of these switches to LD
8882
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8883
 
      libsuff= shlibsuff= libmagic=32-bit;;
8884
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8885
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
8886
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8887
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8888
 
    *) libsuff= shlibsuff= libmagic=never-match;;
8889
 
    esac
8890
 
    ;;
8891
 
  esac
8892
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8893
 
  shlibpath_overrides_runpath=no
8894
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8895
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8896
 
  hardcode_into_libs=yes
8897
 
  ;;
8898
 
 
8899
 
# No shared lib support for Linux oldld, aout, or coff.
8900
 
linux*oldld* | linux*aout* | linux*coff*)
8901
 
  dynamic_linker=no
8902
 
  ;;
8903
 
 
8904
 
# This must be Linux ELF.
8905
 
linux* | k*bsd*-gnu)
8906
 
  version_type=linux
8907
 
  need_lib_prefix=no
8908
 
  need_version=no
8909
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910
 
  soname_spec='${libname}${release}${shared_ext}$major'
8911
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8912
 
  shlibpath_var=LD_LIBRARY_PATH
8913
 
  shlibpath_overrides_runpath=no
8914
 
  # This implies no fast_install, which is unacceptable.
8915
 
  # Some rework will be needed to allow for fast_install
8916
 
  # before this can be enabled.
8917
 
  hardcode_into_libs=yes
8918
 
 
8919
 
  # Append ld.so.conf contents to the search path
8920
 
  if test -f /etc/ld.so.conf; then
8921
 
    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' ' '`
8922
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8923
 
  fi
8924
 
 
8925
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
8926
 
  # powerpc, because MkLinux only supported shared libraries with the
8927
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
8928
 
  # most powerpc-linux boxes support dynamic linking these days and
8929
 
  # people can always --disable-shared, the test was removed, and we
8930
 
  # assume the GNU/Linux dynamic linker is in use.
8931
 
  dynamic_linker='GNU/Linux ld.so'
8932
 
  ;;
8933
 
 
8934
 
netbsdelf*-gnu)
8935
 
  version_type=linux
8936
 
  need_lib_prefix=no
8937
 
  need_version=no
8938
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8939
 
  soname_spec='${libname}${release}${shared_ext}$major'
8940
 
  shlibpath_var=LD_LIBRARY_PATH
8941
 
  shlibpath_overrides_runpath=no
8942
 
  hardcode_into_libs=yes
8943
 
  dynamic_linker='NetBSD ld.elf_so'
8944
 
  ;;
8945
 
 
8946
 
netbsd*)
8947
 
  version_type=sunos
8948
 
  need_lib_prefix=no
8949
 
  need_version=no
8950
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8951
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8952
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8953
 
    dynamic_linker='NetBSD (a.out) ld.so'
8954
 
  else
8955
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956
 
    soname_spec='${libname}${release}${shared_ext}$major'
8957
 
    dynamic_linker='NetBSD ld.elf_so'
8958
 
  fi
8959
 
  shlibpath_var=LD_LIBRARY_PATH
8960
 
  shlibpath_overrides_runpath=yes
8961
 
  hardcode_into_libs=yes
8962
 
  ;;
8963
 
 
8964
 
newsos6)
8965
 
  version_type=linux
8966
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967
 
  shlibpath_var=LD_LIBRARY_PATH
8968
 
  shlibpath_overrides_runpath=yes
8969
 
  ;;
8970
 
 
8971
 
nto-qnx*)
8972
 
  version_type=linux
8973
 
  need_lib_prefix=no
8974
 
  need_version=no
8975
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8976
 
  soname_spec='${libname}${release}${shared_ext}$major'
8977
 
  shlibpath_var=LD_LIBRARY_PATH
8978
 
  shlibpath_overrides_runpath=yes
8979
 
  ;;
8980
 
 
8981
 
openbsd*)
8982
 
  version_type=sunos
8983
 
  sys_lib_dlsearch_path_spec="/usr/lib"
8984
 
  need_lib_prefix=no
8985
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8986
 
  case $host_os in
8987
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8988
 
    *)                         need_version=no  ;;
8989
 
  esac
8990
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8992
 
  shlibpath_var=LD_LIBRARY_PATH
8993
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8994
 
    case $host_os in
8995
 
      openbsd2.[89] | openbsd2.[89].*)
8996
 
        shlibpath_overrides_runpath=no
8997
 
        ;;
8998
 
      *)
8999
 
        shlibpath_overrides_runpath=yes
9000
 
        ;;
9001
 
      esac
9002
 
  else
9003
 
    shlibpath_overrides_runpath=yes
9004
 
  fi
9005
 
  ;;
9006
 
 
9007
 
os2*)
9008
 
  libname_spec='$name'
9009
 
  shrext_cmds=".dll"
9010
 
  need_lib_prefix=no
9011
 
  library_names_spec='$libname${shared_ext} $libname.a'
9012
 
  dynamic_linker='OS/2 ld.exe'
9013
 
  shlibpath_var=LIBPATH
9014
 
  ;;
9015
 
 
9016
 
osf3* | osf4* | osf5*)
9017
 
  version_type=osf
9018
 
  need_lib_prefix=no
9019
 
  need_version=no
9020
 
  soname_spec='${libname}${release}${shared_ext}$major'
9021
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022
 
  shlibpath_var=LD_LIBRARY_PATH
9023
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9024
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9025
 
  ;;
9026
 
 
9027
 
solaris*)
9028
 
  version_type=linux
9029
 
  need_lib_prefix=no
9030
 
  need_version=no
9031
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032
 
  soname_spec='${libname}${release}${shared_ext}$major'
9033
 
  shlibpath_var=LD_LIBRARY_PATH
9034
 
  shlibpath_overrides_runpath=yes
9035
 
  hardcode_into_libs=yes
9036
 
  # ldd complains unless libraries are executable
9037
 
  postinstall_cmds='chmod +x $lib'
9038
 
  ;;
9039
 
 
9040
 
sunos4*)
9041
 
  version_type=sunos
9042
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9043
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9044
 
  shlibpath_var=LD_LIBRARY_PATH
9045
 
  shlibpath_overrides_runpath=yes
9046
 
  if test "$with_gnu_ld" = yes; then
9047
 
    need_lib_prefix=no
9048
 
  fi
9049
 
  need_version=yes
9050
 
  ;;
9051
 
 
9052
 
sysv4 | sysv4.3*)
9053
 
  version_type=linux
9054
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055
 
  soname_spec='${libname}${release}${shared_ext}$major'
9056
 
  shlibpath_var=LD_LIBRARY_PATH
9057
 
  case $host_vendor in
9058
 
    sni)
9059
 
      shlibpath_overrides_runpath=no
9060
 
      need_lib_prefix=no
9061
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9062
 
      runpath_var=LD_RUN_PATH
9063
 
      ;;
9064
 
    siemens)
9065
 
      need_lib_prefix=no
9066
 
      ;;
9067
 
    motorola)
9068
 
      need_lib_prefix=no
9069
 
      need_version=no
9070
 
      shlibpath_overrides_runpath=no
9071
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9072
 
      ;;
9073
 
  esac
9074
 
  ;;
9075
 
 
9076
 
sysv4*MP*)
9077
 
  if test -d /usr/nec ;then
9078
 
    version_type=linux
9079
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9080
 
    soname_spec='$libname${shared_ext}.$major'
9081
 
    shlibpath_var=LD_LIBRARY_PATH
9082
 
  fi
9083
 
  ;;
9084
 
 
9085
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9086
 
  version_type=freebsd-elf
9087
 
  need_lib_prefix=no
9088
 
  need_version=no
9089
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9090
 
  soname_spec='${libname}${release}${shared_ext}$major'
9091
 
  shlibpath_var=LD_LIBRARY_PATH
9092
 
  hardcode_into_libs=yes
9093
 
  if test "$with_gnu_ld" = yes; then
9094
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9095
 
    shlibpath_overrides_runpath=no
9096
 
  else
9097
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9098
 
    shlibpath_overrides_runpath=yes
9099
 
    case $host_os in
9100
 
      sco3.2v5*)
9101
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9102
 
        ;;
9103
 
    esac
9104
 
  fi
9105
 
  sys_lib_dlsearch_path_spec='/usr/lib'
9106
 
  ;;
9107
 
 
9108
 
uts4*)
9109
 
  version_type=linux
9110
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111
 
  soname_spec='${libname}${release}${shared_ext}$major'
9112
 
  shlibpath_var=LD_LIBRARY_PATH
9113
 
  ;;
9114
 
 
9115
 
*)
9116
 
  dynamic_linker=no
9117
 
  ;;
9118
 
esac
9119
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9120
 
echo "${ECHO_T}$dynamic_linker" >&6; }
9121
 
test "$dynamic_linker" = no && can_build_shared=no
9122
 
 
9123
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9124
 
if test "$GCC" = yes; then
9125
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9126
 
fi
9127
 
 
9128
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9129
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9130
 
hardcode_action=
9131
 
if test -n "$hardcode_libdir_flag_spec" || \
9132
 
   test -n "$runpath_var" || \
9133
 
   test "X$hardcode_automatic" = "Xyes" ; then
9134
 
 
9135
 
  # We can hardcode non-existant directories.
9136
 
  if test "$hardcode_direct" != no &&
9137
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9138
 
     # have to relink, otherwise we might link with an installed library
9139
 
     # when we should be linking with a yet-to-be-installed one
9140
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9141
 
     test "$hardcode_minus_L" != no; then
9142
 
    # Linking always hardcodes the temporary library directory.
9143
 
    hardcode_action=relink
9144
 
  else
9145
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9146
 
    hardcode_action=immediate
9147
 
  fi
9148
 
else
9149
 
  # We cannot hardcode anything, or else we can only hardcode existing
9150
 
  # directories.
9151
 
  hardcode_action=unsupported
9152
 
fi
9153
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9154
 
echo "${ECHO_T}$hardcode_action" >&6; }
9155
 
 
9156
 
if test "$hardcode_action" = relink; then
9157
 
  # Fast installation is not supported
9158
 
  enable_fast_install=no
9159
 
elif test "$shlibpath_overrides_runpath" = yes ||
9160
 
     test "$enable_shared" = no; then
9161
 
  # Fast installation is not necessary
9162
 
  enable_fast_install=needless
9163
 
fi
9164
 
 
9165
 
striplib=
9166
 
old_striplib=
9167
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9168
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9169
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9170
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9171
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9172
 
  { echo "$as_me:$LINENO: result: yes" >&5
9173
 
echo "${ECHO_T}yes" >&6; }
9174
 
else
9175
 
# FIXME - insert some real tests, host_os isn't really good enough
9176
 
  case $host_os in
9177
 
   darwin*)
9178
 
       if test -n "$STRIP" ; then
9179
 
         striplib="$STRIP -x"
9180
 
         { echo "$as_me:$LINENO: result: yes" >&5
9181
 
echo "${ECHO_T}yes" >&6; }
9182
 
       else
9183
 
  { echo "$as_me:$LINENO: result: no" >&5
9184
 
echo "${ECHO_T}no" >&6; }
9185
 
fi
9186
 
       ;;
9187
 
   *)
9188
 
  { echo "$as_me:$LINENO: result: no" >&5
9189
 
echo "${ECHO_T}no" >&6; }
9190
 
    ;;
9191
 
  esac
9192
 
fi
9193
 
 
9194
 
if test "x$enable_dlopen" != xyes; then
9195
 
  enable_dlopen=unknown
9196
 
  enable_dlopen_self=unknown
9197
 
  enable_dlopen_self_static=unknown
9198
 
else
9199
 
  lt_cv_dlopen=no
9200
 
  lt_cv_dlopen_libs=
9201
 
 
9202
 
  case $host_os in
9203
 
  beos*)
9204
 
    lt_cv_dlopen="load_add_on"
9205
 
    lt_cv_dlopen_libs=
9206
 
    lt_cv_dlopen_self=yes
9207
 
    ;;
9208
 
 
9209
 
  mingw* | pw32*)
9210
 
    lt_cv_dlopen="LoadLibrary"
9211
 
    lt_cv_dlopen_libs=
9212
 
   ;;
9213
 
 
9214
 
  cygwin*)
9215
 
    lt_cv_dlopen="dlopen"
9216
 
    lt_cv_dlopen_libs=
9217
 
   ;;
9218
 
 
9219
 
  darwin*)
9220
 
  # if libdl is installed we need to link against it
9221
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9222
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9223
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9224
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9225
 
else
9226
 
  ac_check_lib_save_LIBS=$LIBS
9227
 
LIBS="-ldl  $LIBS"
9228
 
cat >conftest.$ac_ext <<_ACEOF
9229
 
/* confdefs.h.  */
9230
 
_ACEOF
9231
 
cat confdefs.h >>conftest.$ac_ext
9232
 
cat >>conftest.$ac_ext <<_ACEOF
9233
 
/* end confdefs.h.  */
9234
 
 
9235
 
/* Override any GCC internal prototype to avoid an error.
9236
 
   Use char because int might match the return type of a GCC
9237
 
   builtin and then its argument prototype would still apply.  */
9238
 
#ifdef __cplusplus
9239
 
extern "C"
9240
 
#endif
9241
 
char dlopen ();
9242
 
int
9243
 
main ()
9244
 
{
9245
 
return dlopen ();
9246
 
  ;
9247
 
  return 0;
9248
 
}
9249
 
_ACEOF
9250
 
rm -f conftest.$ac_objext conftest$ac_exeext
9251
 
if { (ac_try="$ac_link"
9252
 
case "(($ac_try" in
9253
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254
 
  *) ac_try_echo=$ac_try;;
9255
 
esac
9256
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257
 
  (eval "$ac_link") 2>conftest.er1
9258
 
  ac_status=$?
9259
 
  grep -v '^ *+' conftest.er1 >conftest.err
9260
 
  rm -f conftest.er1
9261
 
  cat conftest.err >&5
9262
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263
 
  (exit $ac_status); } && {
9264
 
         test -z "$ac_c_werror_flag" ||
9265
 
         test ! -s conftest.err
9266
 
       } && test -s conftest$ac_exeext &&
9267
 
       $as_test_x conftest$ac_exeext; then
9268
 
  ac_cv_lib_dl_dlopen=yes
9269
 
else
9270
 
  echo "$as_me: failed program was:" >&5
9271
 
sed 's/^/| /' conftest.$ac_ext >&5
9272
 
 
9273
 
        ac_cv_lib_dl_dlopen=no
9274
 
fi
9275
 
 
9276
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9277
 
      conftest$ac_exeext conftest.$ac_ext
9278
 
LIBS=$ac_check_lib_save_LIBS
9279
 
fi
9280
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9281
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9282
 
if test $ac_cv_lib_dl_dlopen = yes; then
9283
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9284
 
else
9285
 
  
9286
 
    lt_cv_dlopen="dyld"
9287
 
    lt_cv_dlopen_libs=
9288
 
    lt_cv_dlopen_self=yes
9289
 
    
9290
 
fi
9291
 
 
9292
 
   ;;
9293
 
 
9294
 
  *)
9295
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9296
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9297
 
if test "${ac_cv_func_shl_load+set}" = set; then
9298
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9299
 
else
9300
 
  cat >conftest.$ac_ext <<_ACEOF
9301
 
/* confdefs.h.  */
9302
 
_ACEOF
9303
 
cat confdefs.h >>conftest.$ac_ext
9304
 
cat >>conftest.$ac_ext <<_ACEOF
9305
 
/* end confdefs.h.  */
9306
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9307
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9308
 
#define shl_load innocuous_shl_load
9309
 
 
9310
 
/* System header to define __stub macros and hopefully few prototypes,
9311
 
    which can conflict with char shl_load (); below.
9312
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313
 
    <limits.h> exists even on freestanding compilers.  */
9314
 
 
9315
 
#ifdef __STDC__
9316
 
# include <limits.h>
9317
 
#else
9318
 
# include <assert.h>
9319
 
#endif
9320
 
 
9321
 
#undef shl_load
9322
 
 
9323
 
/* Override any GCC internal prototype to avoid an error.
9324
 
   Use char because int might match the return type of a GCC
9325
 
   builtin and then its argument prototype would still apply.  */
9326
 
#ifdef __cplusplus
9327
 
extern "C"
9328
 
#endif
9329
 
char shl_load ();
9330
 
/* The GNU C library defines this for functions which it implements
9331
 
    to always fail with ENOSYS.  Some functions are actually named
9332
 
    something starting with __ and the normal name is an alias.  */
9333
 
#if defined __stub_shl_load || defined __stub___shl_load
9334
 
choke me
9335
 
#endif
9336
 
 
9337
 
int
9338
 
main ()
9339
 
{
9340
 
return shl_load ();
9341
 
  ;
9342
 
  return 0;
9343
 
}
9344
 
_ACEOF
9345
 
rm -f conftest.$ac_objext conftest$ac_exeext
9346
 
if { (ac_try="$ac_link"
9347
 
case "(($ac_try" in
9348
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349
 
  *) ac_try_echo=$ac_try;;
9350
 
esac
9351
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352
 
  (eval "$ac_link") 2>conftest.er1
9353
 
  ac_status=$?
9354
 
  grep -v '^ *+' conftest.er1 >conftest.err
9355
 
  rm -f conftest.er1
9356
 
  cat conftest.err >&5
9357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358
 
  (exit $ac_status); } && {
9359
 
         test -z "$ac_c_werror_flag" ||
9360
 
         test ! -s conftest.err
9361
 
       } && test -s conftest$ac_exeext &&
9362
 
       $as_test_x conftest$ac_exeext; then
9363
 
  ac_cv_func_shl_load=yes
9364
 
else
9365
 
  echo "$as_me: failed program was:" >&5
9366
 
sed 's/^/| /' conftest.$ac_ext >&5
9367
 
 
9368
 
        ac_cv_func_shl_load=no
9369
 
fi
9370
 
 
9371
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9372
 
      conftest$ac_exeext conftest.$ac_ext
9373
 
fi
9374
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9375
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9376
 
if test $ac_cv_func_shl_load = yes; then
9377
 
  lt_cv_dlopen="shl_load"
9378
 
else
9379
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9380
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9381
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9382
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9383
 
else
9384
 
  ac_check_lib_save_LIBS=$LIBS
9385
 
LIBS="-ldld  $LIBS"
9386
 
cat >conftest.$ac_ext <<_ACEOF
9387
 
/* confdefs.h.  */
9388
 
_ACEOF
9389
 
cat confdefs.h >>conftest.$ac_ext
9390
 
cat >>conftest.$ac_ext <<_ACEOF
9391
 
/* end confdefs.h.  */
9392
 
 
9393
 
/* Override any GCC internal prototype to avoid an error.
9394
 
   Use char because int might match the return type of a GCC
9395
 
   builtin and then its argument prototype would still apply.  */
9396
 
#ifdef __cplusplus
9397
 
extern "C"
9398
 
#endif
9399
 
char shl_load ();
9400
 
int
9401
 
main ()
9402
 
{
9403
 
return shl_load ();
9404
 
  ;
9405
 
  return 0;
9406
 
}
9407
 
_ACEOF
9408
 
rm -f conftest.$ac_objext conftest$ac_exeext
9409
 
if { (ac_try="$ac_link"
9410
 
case "(($ac_try" in
9411
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412
 
  *) ac_try_echo=$ac_try;;
9413
 
esac
9414
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415
 
  (eval "$ac_link") 2>conftest.er1
9416
 
  ac_status=$?
9417
 
  grep -v '^ *+' conftest.er1 >conftest.err
9418
 
  rm -f conftest.er1
9419
 
  cat conftest.err >&5
9420
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421
 
  (exit $ac_status); } && {
9422
 
         test -z "$ac_c_werror_flag" ||
9423
 
         test ! -s conftest.err
9424
 
       } && test -s conftest$ac_exeext &&
9425
 
       $as_test_x conftest$ac_exeext; then
9426
 
  ac_cv_lib_dld_shl_load=yes
9427
 
else
9428
 
  echo "$as_me: failed program was:" >&5
9429
 
sed 's/^/| /' conftest.$ac_ext >&5
9430
 
 
9431
 
        ac_cv_lib_dld_shl_load=no
9432
 
fi
9433
 
 
9434
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435
 
      conftest$ac_exeext conftest.$ac_ext
9436
 
LIBS=$ac_check_lib_save_LIBS
9437
 
fi
9438
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9439
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9440
 
if test $ac_cv_lib_dld_shl_load = yes; then
9441
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9442
 
else
9443
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
9444
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9445
 
if test "${ac_cv_func_dlopen+set}" = set; then
9446
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9447
 
else
9448
 
  cat >conftest.$ac_ext <<_ACEOF
9449
 
/* confdefs.h.  */
9450
 
_ACEOF
9451
 
cat confdefs.h >>conftest.$ac_ext
9452
 
cat >>conftest.$ac_ext <<_ACEOF
9453
 
/* end confdefs.h.  */
9454
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9455
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9456
 
#define dlopen innocuous_dlopen
9457
 
 
9458
 
/* System header to define __stub macros and hopefully few prototypes,
9459
 
    which can conflict with char dlopen (); below.
9460
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9461
 
    <limits.h> exists even on freestanding compilers.  */
9462
 
 
9463
 
#ifdef __STDC__
9464
 
# include <limits.h>
9465
 
#else
9466
 
# include <assert.h>
9467
 
#endif
9468
 
 
9469
 
#undef dlopen
9470
 
 
9471
 
/* Override any GCC internal prototype to avoid an error.
9472
 
   Use char because int might match the return type of a GCC
9473
 
   builtin and then its argument prototype would still apply.  */
9474
 
#ifdef __cplusplus
9475
 
extern "C"
9476
 
#endif
9477
 
char dlopen ();
9478
 
/* The GNU C library defines this for functions which it implements
9479
 
    to always fail with ENOSYS.  Some functions are actually named
9480
 
    something starting with __ and the normal name is an alias.  */
9481
 
#if defined __stub_dlopen || defined __stub___dlopen
9482
 
choke me
9483
 
#endif
9484
 
 
9485
 
int
9486
 
main ()
9487
 
{
9488
 
return dlopen ();
9489
 
  ;
9490
 
  return 0;
9491
 
}
9492
 
_ACEOF
9493
 
rm -f conftest.$ac_objext conftest$ac_exeext
9494
 
if { (ac_try="$ac_link"
9495
 
case "(($ac_try" in
9496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9497
 
  *) ac_try_echo=$ac_try;;
9498
 
esac
9499
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9500
 
  (eval "$ac_link") 2>conftest.er1
9501
 
  ac_status=$?
9502
 
  grep -v '^ *+' conftest.er1 >conftest.err
9503
 
  rm -f conftest.er1
9504
 
  cat conftest.err >&5
9505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506
 
  (exit $ac_status); } && {
9507
 
         test -z "$ac_c_werror_flag" ||
9508
 
         test ! -s conftest.err
9509
 
       } && test -s conftest$ac_exeext &&
9510
 
       $as_test_x conftest$ac_exeext; then
9511
 
  ac_cv_func_dlopen=yes
9512
 
else
9513
 
  echo "$as_me: failed program was:" >&5
9514
 
sed 's/^/| /' conftest.$ac_ext >&5
9515
 
 
9516
 
        ac_cv_func_dlopen=no
9517
 
fi
9518
 
 
9519
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9520
 
      conftest$ac_exeext conftest.$ac_ext
9521
 
fi
9522
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9523
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9524
 
if test $ac_cv_func_dlopen = yes; then
9525
 
  lt_cv_dlopen="dlopen"
9526
 
else
9527
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9528
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9529
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9530
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9531
 
else
9532
 
  ac_check_lib_save_LIBS=$LIBS
9533
 
LIBS="-ldl  $LIBS"
9534
 
cat >conftest.$ac_ext <<_ACEOF
9535
 
/* confdefs.h.  */
9536
 
_ACEOF
9537
 
cat confdefs.h >>conftest.$ac_ext
9538
 
cat >>conftest.$ac_ext <<_ACEOF
9539
 
/* end confdefs.h.  */
9540
 
 
9541
 
/* Override any GCC internal prototype to avoid an error.
9542
 
   Use char because int might match the return type of a GCC
9543
 
   builtin and then its argument prototype would still apply.  */
9544
 
#ifdef __cplusplus
9545
 
extern "C"
9546
 
#endif
9547
 
char dlopen ();
9548
 
int
9549
 
main ()
9550
 
{
9551
 
return dlopen ();
9552
 
  ;
9553
 
  return 0;
9554
 
}
9555
 
_ACEOF
9556
 
rm -f conftest.$ac_objext conftest$ac_exeext
9557
 
if { (ac_try="$ac_link"
9558
 
case "(($ac_try" in
9559
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560
 
  *) ac_try_echo=$ac_try;;
9561
 
esac
9562
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563
 
  (eval "$ac_link") 2>conftest.er1
9564
 
  ac_status=$?
9565
 
  grep -v '^ *+' conftest.er1 >conftest.err
9566
 
  rm -f conftest.er1
9567
 
  cat conftest.err >&5
9568
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569
 
  (exit $ac_status); } && {
9570
 
         test -z "$ac_c_werror_flag" ||
9571
 
         test ! -s conftest.err
9572
 
       } && test -s conftest$ac_exeext &&
9573
 
       $as_test_x conftest$ac_exeext; then
9574
 
  ac_cv_lib_dl_dlopen=yes
9575
 
else
9576
 
  echo "$as_me: failed program was:" >&5
9577
 
sed 's/^/| /' conftest.$ac_ext >&5
9578
 
 
9579
 
        ac_cv_lib_dl_dlopen=no
9580
 
fi
9581
 
 
9582
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583
 
      conftest$ac_exeext conftest.$ac_ext
9584
 
LIBS=$ac_check_lib_save_LIBS
9585
 
fi
9586
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9587
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9588
 
if test $ac_cv_lib_dl_dlopen = yes; then
9589
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9590
 
else
9591
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9592
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9593
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9594
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9595
 
else
9596
 
  ac_check_lib_save_LIBS=$LIBS
9597
 
LIBS="-lsvld  $LIBS"
9598
 
cat >conftest.$ac_ext <<_ACEOF
9599
 
/* confdefs.h.  */
9600
 
_ACEOF
9601
 
cat confdefs.h >>conftest.$ac_ext
9602
 
cat >>conftest.$ac_ext <<_ACEOF
9603
 
/* end confdefs.h.  */
9604
 
 
9605
 
/* Override any GCC internal prototype to avoid an error.
9606
 
   Use char because int might match the return type of a GCC
9607
 
   builtin and then its argument prototype would still apply.  */
9608
 
#ifdef __cplusplus
9609
 
extern "C"
9610
 
#endif
9611
 
char dlopen ();
9612
 
int
9613
 
main ()
9614
 
{
9615
 
return dlopen ();
9616
 
  ;
9617
 
  return 0;
9618
 
}
9619
 
_ACEOF
9620
 
rm -f conftest.$ac_objext conftest$ac_exeext
9621
 
if { (ac_try="$ac_link"
9622
 
case "(($ac_try" in
9623
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9624
 
  *) ac_try_echo=$ac_try;;
9625
 
esac
9626
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9627
 
  (eval "$ac_link") 2>conftest.er1
9628
 
  ac_status=$?
9629
 
  grep -v '^ *+' conftest.er1 >conftest.err
9630
 
  rm -f conftest.er1
9631
 
  cat conftest.err >&5
9632
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633
 
  (exit $ac_status); } && {
9634
 
         test -z "$ac_c_werror_flag" ||
9635
 
         test ! -s conftest.err
9636
 
       } && test -s conftest$ac_exeext &&
9637
 
       $as_test_x conftest$ac_exeext; then
9638
 
  ac_cv_lib_svld_dlopen=yes
9639
 
else
9640
 
  echo "$as_me: failed program was:" >&5
9641
 
sed 's/^/| /' conftest.$ac_ext >&5
9642
 
 
9643
 
        ac_cv_lib_svld_dlopen=no
9644
 
fi
9645
 
 
9646
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9647
 
      conftest$ac_exeext conftest.$ac_ext
9648
 
LIBS=$ac_check_lib_save_LIBS
9649
 
fi
9650
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9651
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9652
 
if test $ac_cv_lib_svld_dlopen = yes; then
9653
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9654
 
else
9655
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9656
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9657
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9658
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9659
 
else
9660
 
  ac_check_lib_save_LIBS=$LIBS
9661
 
LIBS="-ldld  $LIBS"
9662
 
cat >conftest.$ac_ext <<_ACEOF
9663
 
/* confdefs.h.  */
9664
 
_ACEOF
9665
 
cat confdefs.h >>conftest.$ac_ext
9666
 
cat >>conftest.$ac_ext <<_ACEOF
9667
 
/* end confdefs.h.  */
9668
 
 
9669
 
/* Override any GCC internal prototype to avoid an error.
9670
 
   Use char because int might match the return type of a GCC
9671
 
   builtin and then its argument prototype would still apply.  */
9672
 
#ifdef __cplusplus
9673
 
extern "C"
9674
 
#endif
9675
 
char dld_link ();
9676
 
int
9677
 
main ()
9678
 
{
9679
 
return dld_link ();
9680
 
  ;
9681
 
  return 0;
9682
 
}
9683
 
_ACEOF
9684
 
rm -f conftest.$ac_objext conftest$ac_exeext
9685
 
if { (ac_try="$ac_link"
9686
 
case "(($ac_try" in
9687
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9688
 
  *) ac_try_echo=$ac_try;;
9689
 
esac
9690
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9691
 
  (eval "$ac_link") 2>conftest.er1
9692
 
  ac_status=$?
9693
 
  grep -v '^ *+' conftest.er1 >conftest.err
9694
 
  rm -f conftest.er1
9695
 
  cat conftest.err >&5
9696
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697
 
  (exit $ac_status); } && {
9698
 
         test -z "$ac_c_werror_flag" ||
9699
 
         test ! -s conftest.err
9700
 
       } && test -s conftest$ac_exeext &&
9701
 
       $as_test_x conftest$ac_exeext; then
9702
 
  ac_cv_lib_dld_dld_link=yes
9703
 
else
9704
 
  echo "$as_me: failed program was:" >&5
9705
 
sed 's/^/| /' conftest.$ac_ext >&5
9706
 
 
9707
 
        ac_cv_lib_dld_dld_link=no
9708
 
fi
9709
 
 
9710
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9711
 
      conftest$ac_exeext conftest.$ac_ext
9712
 
LIBS=$ac_check_lib_save_LIBS
9713
 
fi
9714
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9715
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9716
 
if test $ac_cv_lib_dld_dld_link = yes; then
9717
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9718
 
fi
9719
 
 
9720
 
              
9721
 
fi
9722
 
 
9723
 
            
9724
 
fi
9725
 
 
9726
 
          
9727
 
fi
9728
 
 
9729
 
        
9730
 
fi
9731
 
 
9732
 
      
9733
 
fi
9734
 
 
9735
 
    ;;
9736
 
  esac
9737
 
 
9738
 
  if test "x$lt_cv_dlopen" != xno; then
9739
 
    enable_dlopen=yes
9740
 
  else
9741
 
    enable_dlopen=no
9742
 
  fi
9743
 
 
9744
 
  case $lt_cv_dlopen in
9745
 
  dlopen)
9746
 
    save_CPPFLAGS="$CPPFLAGS"
9747
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9748
 
 
9749
 
    save_LDFLAGS="$LDFLAGS"
9750
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9751
 
 
9752
 
    save_LIBS="$LIBS"
9753
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
9754
 
 
9755
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9756
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9757
 
if test "${lt_cv_dlopen_self+set}" = set; then
9758
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9759
 
else
9760
 
          if test "$cross_compiling" = yes; then :
9761
 
  lt_cv_dlopen_self=cross
9762
 
else
9763
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9764
 
  lt_status=$lt_dlunknown
9765
 
  cat > conftest.$ac_ext <<EOF
9766
 
#line __oline__ "configure"
9767
 
#include "confdefs.h"
9768
 
 
9769
 
#if HAVE_DLFCN_H
9770
 
#include <dlfcn.h>
9771
 
#endif
9772
 
 
9773
 
#include <stdio.h>
9774
 
 
9775
 
#ifdef RTLD_GLOBAL
9776
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
9777
 
#else
9778
 
#  ifdef DL_GLOBAL
9779
 
#    define LT_DLGLOBAL         DL_GLOBAL
9780
 
#  else
9781
 
#    define LT_DLGLOBAL         0
9782
 
#  endif
9783
 
#endif
9784
 
 
9785
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9786
 
   find out it does not work in some platform. */
9787
 
#ifndef LT_DLLAZY_OR_NOW
9788
 
#  ifdef RTLD_LAZY
9789
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9790
 
#  else
9791
 
#    ifdef DL_LAZY
9792
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9793
 
#    else
9794
 
#      ifdef RTLD_NOW
9795
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9796
 
#      else
9797
 
#        ifdef DL_NOW
9798
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
9799
 
#        else
9800
 
#          define LT_DLLAZY_OR_NOW      0
9801
 
#        endif
9802
 
#      endif
9803
 
#    endif
9804
 
#  endif
9805
 
#endif
9806
 
 
9807
 
#ifdef __cplusplus
9808
 
extern "C" void exit (int);
9809
 
#endif
9810
 
 
9811
 
void fnord() { int i=42;}
9812
 
int main ()
9813
 
{
9814
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9815
 
  int status = $lt_dlunknown;
9816
 
 
9817
 
  if (self)
9818
 
    {
9819
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9820
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9821
 
      /* dlclose (self); */
9822
 
    }
9823
 
  else
9824
 
    puts (dlerror ());
9825
 
 
9826
 
    exit (status);
9827
 
}
9828
 
EOF
9829
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9830
 
  (eval $ac_link) 2>&5
9831
 
  ac_status=$?
9832
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9834
 
    (./conftest; exit; ) >&5 2>/dev/null
9835
 
    lt_status=$?
9836
 
    case x$lt_status in
9837
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9838
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9839
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9840
 
    esac
9841
 
  else :
9842
 
    # compilation failed
9843
 
    lt_cv_dlopen_self=no
9844
 
  fi
9845
 
fi
9846
 
rm -fr conftest*
9847
 
 
9848
 
    
9849
 
fi
9850
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9851
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9852
 
 
9853
 
    if test "x$lt_cv_dlopen_self" = xyes; then
9854
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9855
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9856
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9857
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
9858
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9859
 
else
9860
 
          if test "$cross_compiling" = yes; then :
9861
 
  lt_cv_dlopen_self_static=cross
9862
 
else
9863
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9864
 
  lt_status=$lt_dlunknown
9865
 
  cat > conftest.$ac_ext <<EOF
9866
 
#line __oline__ "configure"
9867
 
#include "confdefs.h"
9868
 
 
9869
 
#if HAVE_DLFCN_H
9870
 
#include <dlfcn.h>
9871
 
#endif
9872
 
 
9873
 
#include <stdio.h>
9874
 
 
9875
 
#ifdef RTLD_GLOBAL
9876
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
9877
 
#else
9878
 
#  ifdef DL_GLOBAL
9879
 
#    define LT_DLGLOBAL         DL_GLOBAL
9880
 
#  else
9881
 
#    define LT_DLGLOBAL         0
9882
 
#  endif
9883
 
#endif
9884
 
 
9885
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9886
 
   find out it does not work in some platform. */
9887
 
#ifndef LT_DLLAZY_OR_NOW
9888
 
#  ifdef RTLD_LAZY
9889
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9890
 
#  else
9891
 
#    ifdef DL_LAZY
9892
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
9893
 
#    else
9894
 
#      ifdef RTLD_NOW
9895
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9896
 
#      else
9897
 
#        ifdef DL_NOW
9898
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
9899
 
#        else
9900
 
#          define LT_DLLAZY_OR_NOW      0
9901
 
#        endif
9902
 
#      endif
9903
 
#    endif
9904
 
#  endif
9905
 
#endif
9906
 
 
9907
 
#ifdef __cplusplus
9908
 
extern "C" void exit (int);
9909
 
#endif
9910
 
 
9911
 
void fnord() { int i=42;}
9912
 
int main ()
9913
 
{
9914
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9915
 
  int status = $lt_dlunknown;
9916
 
 
9917
 
  if (self)
9918
 
    {
9919
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9920
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9921
 
      /* dlclose (self); */
9922
 
    }
9923
 
  else
9924
 
    puts (dlerror ());
9925
 
 
9926
 
    exit (status);
9927
 
}
9928
 
EOF
9929
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930
 
  (eval $ac_link) 2>&5
9931
 
  ac_status=$?
9932
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9934
 
    (./conftest; exit; ) >&5 2>/dev/null
9935
 
    lt_status=$?
9936
 
    case x$lt_status in
9937
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9938
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9939
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9940
 
    esac
9941
 
  else :
9942
 
    # compilation failed
9943
 
    lt_cv_dlopen_self_static=no
9944
 
  fi
9945
 
fi
9946
 
rm -fr conftest*
9947
 
 
9948
 
      
9949
 
fi
9950
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9951
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9952
 
    fi
9953
 
 
9954
 
    CPPFLAGS="$save_CPPFLAGS"
9955
 
    LDFLAGS="$save_LDFLAGS"
9956
 
    LIBS="$save_LIBS"
9957
 
    ;;
9958
 
  esac
9959
 
 
9960
 
  case $lt_cv_dlopen_self in
9961
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9962
 
  *) enable_dlopen_self=unknown ;;
9963
 
  esac
9964
 
 
9965
 
  case $lt_cv_dlopen_self_static in
9966
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9967
 
  *) enable_dlopen_self_static=unknown ;;
9968
 
  esac
9969
 
fi
9970
 
 
9971
 
 
9972
 
# Report which library types will actually be built
9973
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9974
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9975
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9976
 
echo "${ECHO_T}$can_build_shared" >&6; }
9977
 
 
9978
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9979
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9980
 
test "$can_build_shared" = "no" && enable_shared=no
9981
 
 
9982
 
# On AIX, shared libraries and static libraries use the same namespace, and
9983
 
# are all built from PIC.
9984
 
case $host_os in
9985
 
aix3*)
9986
 
  test "$enable_shared" = yes && enable_static=no
9987
 
  if test -n "$RANLIB"; then
9988
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9989
 
    postinstall_cmds='$RANLIB $lib'
9990
 
  fi
9991
 
  ;;
9992
 
 
9993
 
aix4* | aix5*)
9994
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9995
 
    test "$enable_shared" = yes && enable_static=no
9996
 
  fi
9997
 
    ;;
9998
 
esac
9999
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10000
 
echo "${ECHO_T}$enable_shared" >&6; }
10001
 
 
10002
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10003
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10004
 
# Make sure either enable_shared or enable_static is yes.
10005
 
test "$enable_shared" = yes || enable_static=yes
10006
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10007
 
echo "${ECHO_T}$enable_static" >&6; }
10008
 
 
10009
 
# The else clause should only fire when bootstrapping the
10010
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10011
 
# with your package, and you will get complaints that there are
10012
 
# no rules to generate ltmain.sh.
10013
 
if test -f "$ltmain"; then
10014
 
  # See if we are running on zsh, and set the options which allow our commands through
10015
 
  # without removal of \ escapes.
10016
 
  if test -n "${ZSH_VERSION+set}" ; then
10017
 
    setopt NO_GLOB_SUBST
10018
 
  fi
10019
 
  # Now quote all the things that may contain metacharacters while being
10020
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10021
 
  # variables and quote the copies for generation of the libtool script.
10022
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10023
 
    SED SHELL STRIP \
10024
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10025
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10026
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10027
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10028
 
    lt_cv_sys_global_symbol_to_c_name_address \
10029
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10030
 
    old_postinstall_cmds old_postuninstall_cmds \
10031
 
    compiler \
10032
 
    CC \
10033
 
    LD \
10034
 
    lt_prog_compiler_wl \
10035
 
    lt_prog_compiler_pic \
10036
 
    lt_prog_compiler_static \
10037
 
    lt_prog_compiler_no_builtin_flag \
10038
 
    export_dynamic_flag_spec \
10039
 
    thread_safe_flag_spec \
10040
 
    whole_archive_flag_spec \
10041
 
    enable_shared_with_static_runtimes \
10042
 
    old_archive_cmds \
10043
 
    old_archive_from_new_cmds \
10044
 
    predep_objects \
10045
 
    postdep_objects \
10046
 
    predeps \
10047
 
    postdeps \
10048
 
    compiler_lib_search_path \
10049
 
    archive_cmds \
10050
 
    archive_expsym_cmds \
10051
 
    postinstall_cmds \
10052
 
    postuninstall_cmds \
10053
 
    old_archive_from_expsyms_cmds \
10054
 
    allow_undefined_flag \
10055
 
    no_undefined_flag \
10056
 
    export_symbols_cmds \
10057
 
    hardcode_libdir_flag_spec \
10058
 
    hardcode_libdir_flag_spec_ld \
10059
 
    hardcode_libdir_separator \
10060
 
    hardcode_automatic \
10061
 
    module_cmds \
10062
 
    module_expsym_cmds \
10063
 
    lt_cv_prog_compiler_c_o \
10064
 
    exclude_expsyms \
10065
 
    include_expsyms; do
10066
 
 
10067
 
    case $var in
10068
 
    old_archive_cmds | \
10069
 
    old_archive_from_new_cmds | \
10070
 
    archive_cmds | \
10071
 
    archive_expsym_cmds | \
10072
 
    module_cmds | \
10073
 
    module_expsym_cmds | \
10074
 
    old_archive_from_expsyms_cmds | \
10075
 
    export_symbols_cmds | \
10076
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10077
 
    postinstall_cmds | postuninstall_cmds | \
10078
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10079
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10080
 
      # Double-quote double-evaled strings.
10081
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10082
 
      ;;
10083
 
    *)
10084
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10085
 
      ;;
10086
 
    esac
10087
 
  done
10088
 
 
10089
 
  case $lt_echo in
10090
 
  *'\$0 --fallback-echo"')
10091
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10092
 
    ;;
10093
 
  esac
10094
 
 
10095
 
cfgfile="${ofile}T"
10096
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10097
 
  $rm -f "$cfgfile"
10098
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10099
 
echo "$as_me: creating $ofile" >&6;}
10100
 
 
10101
 
  cat <<__EOF__ >> "$cfgfile"
10102
 
#! $SHELL
10103
 
 
10104
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10105
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10106
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10107
 
#
10108
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10109
 
# Free Software Foundation, Inc.
10110
 
#
10111
 
# This file is part of GNU Libtool:
10112
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10113
 
#
10114
 
# This program is free software; you can redistribute it and/or modify
10115
 
# it under the terms of the GNU General Public License as published by
10116
 
# the Free Software Foundation; either version 2 of the License, or
10117
 
# (at your option) any later version.
10118
 
#
10119
 
# This program is distributed in the hope that it will be useful, but
10120
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10121
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10122
 
# General Public License for more details.
10123
 
#
10124
 
# You should have received a copy of the GNU General Public License
10125
 
# along with this program; if not, write to the Free Software
10126
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10127
 
#
10128
 
# As a special exception to the GNU General Public License, if you
10129
 
# distribute this file as part of a program that contains a
10130
 
# configuration script generated by Autoconf, you may include it under
10131
 
# the same distribution terms that you use for the rest of that program.
10132
 
 
10133
 
# A sed program that does not truncate output.
10134
 
SED=$lt_SED
10135
 
 
10136
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10137
 
Xsed="$SED -e 1s/^X//"
10138
 
 
10139
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10140
 
# if CDPATH is set.
10141
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10142
 
 
10143
 
# The names of the tagged configurations supported by this script.
10144
 
available_tags=
10145
 
 
10146
 
# ### BEGIN LIBTOOL CONFIG
10147
 
 
10148
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10149
 
 
10150
 
# Shell to use when invoking shell scripts.
10151
 
SHELL=$lt_SHELL
10152
 
 
10153
 
# Whether or not to build shared libraries.
10154
 
build_libtool_libs=$enable_shared
10155
 
 
10156
 
# Whether or not to build static libraries.
10157
 
build_old_libs=$enable_static
10158
 
 
10159
 
# Whether or not to add -lc for building shared libraries.
10160
 
build_libtool_need_lc=$archive_cmds_need_lc
10161
 
 
10162
 
# Whether or not to disallow shared libs when runtime libs are static
10163
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10164
 
 
10165
 
# Whether or not to optimize for fast installation.
10166
 
fast_install=$enable_fast_install
10167
 
 
10168
 
# The host system.
10169
 
host_alias=$host_alias
10170
 
host=$host
10171
 
host_os=$host_os
10172
 
 
10173
 
# The build system.
10174
 
build_alias=$build_alias
10175
 
build=$build
10176
 
build_os=$build_os
10177
 
 
10178
 
# An echo program that does not interpret backslashes.
10179
 
echo=$lt_echo
10180
 
 
10181
 
# The archiver.
10182
 
AR=$lt_AR
10183
 
AR_FLAGS=$lt_AR_FLAGS
10184
 
 
10185
 
# A C compiler.
10186
 
LTCC=$lt_LTCC
10187
 
 
10188
 
# LTCC compiler flags.
10189
 
LTCFLAGS=$lt_LTCFLAGS
10190
 
 
10191
 
# A language-specific compiler.
10192
 
CC=$lt_compiler
10193
 
 
10194
 
# Is the compiler the GNU C compiler?
10195
 
with_gcc=$GCC
10196
 
 
10197
 
# An ERE matcher.
10198
 
EGREP=$lt_EGREP
10199
 
 
10200
 
# The linker used to build libraries.
10201
 
LD=$lt_LD
10202
 
 
10203
 
# Whether we need hard or soft links.
10204
 
LN_S=$lt_LN_S
10205
 
 
10206
 
# A BSD-compatible nm program.
10207
 
NM=$lt_NM
10208
 
 
10209
 
# A symbol stripping program
10210
 
STRIP=$lt_STRIP
10211
 
 
10212
 
# Used to examine libraries when file_magic_cmd begins "file"
10213
 
MAGIC_CMD=$MAGIC_CMD
10214
 
 
10215
 
# Used on cygwin: DLL creation program.
10216
 
DLLTOOL="$DLLTOOL"
10217
 
 
10218
 
# Used on cygwin: object dumper.
10219
 
OBJDUMP="$OBJDUMP"
10220
 
 
10221
 
# Used on cygwin: assembler.
10222
 
AS="$AS"
10223
 
 
10224
 
# The name of the directory that contains temporary libtool files.
10225
 
objdir=$objdir
10226
 
 
10227
 
# How to create reloadable object files.
10228
 
reload_flag=$lt_reload_flag
10229
 
reload_cmds=$lt_reload_cmds
10230
 
 
10231
 
# How to pass a linker flag through the compiler.
10232
 
wl=$lt_lt_prog_compiler_wl
10233
 
 
10234
 
# Object file suffix (normally "o").
10235
 
objext="$ac_objext"
10236
 
 
10237
 
# Old archive suffix (normally "a").
10238
 
libext="$libext"
10239
 
 
10240
 
# Shared library suffix (normally ".so").
10241
 
shrext_cmds='$shrext_cmds'
10242
 
 
10243
 
# Executable file suffix (normally "").
10244
 
exeext="$exeext"
10245
 
 
10246
 
# Additional compiler flags for building library objects.
10247
 
pic_flag=$lt_lt_prog_compiler_pic
10248
 
pic_mode=$pic_mode
10249
 
 
10250
 
# What is the maximum length of a command?
10251
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10252
 
 
10253
 
# Does compiler simultaneously support -c and -o options?
10254
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10255
 
 
10256
 
# Must we lock files when doing compilation?
10257
 
need_locks=$lt_need_locks
10258
 
 
10259
 
# Do we need the lib prefix for modules?
10260
 
need_lib_prefix=$need_lib_prefix
10261
 
 
10262
 
# Do we need a version for libraries?
10263
 
need_version=$need_version
10264
 
 
10265
 
# Whether dlopen is supported.
10266
 
dlopen_support=$enable_dlopen
10267
 
 
10268
 
# Whether dlopen of programs is supported.
10269
 
dlopen_self=$enable_dlopen_self
10270
 
 
10271
 
# Whether dlopen of statically linked programs is supported.
10272
 
dlopen_self_static=$enable_dlopen_self_static
10273
 
 
10274
 
# Compiler flag to prevent dynamic linking.
10275
 
link_static_flag=$lt_lt_prog_compiler_static
10276
 
 
10277
 
# Compiler flag to turn off builtin functions.
10278
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10279
 
 
10280
 
# Compiler flag to allow reflexive dlopens.
10281
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10282
 
 
10283
 
# Compiler flag to generate shared objects directly from archives.
10284
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10285
 
 
10286
 
# Compiler flag to generate thread-safe objects.
10287
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10288
 
 
10289
 
# Library versioning type.
10290
 
version_type=$version_type
10291
 
 
10292
 
# Format of library name prefix.
10293
 
libname_spec=$lt_libname_spec
10294
 
 
10295
 
# List of archive names.  First name is the real one, the rest are links.
10296
 
# The last name is the one that the linker finds with -lNAME.
10297
 
library_names_spec=$lt_library_names_spec
10298
 
 
10299
 
# The coded name of the library, if different from the real name.
10300
 
soname_spec=$lt_soname_spec
10301
 
 
10302
 
# Commands used to build and install an old-style archive.
10303
 
RANLIB=$lt_RANLIB
10304
 
old_archive_cmds=$lt_old_archive_cmds
10305
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10306
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10307
 
 
10308
 
# Create an old-style archive from a shared archive.
10309
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10310
 
 
10311
 
# Create a temporary old-style archive to link instead of a shared archive.
10312
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10313
 
 
10314
 
# Commands used to build and install a shared archive.
10315
 
archive_cmds=$lt_archive_cmds
10316
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10317
 
postinstall_cmds=$lt_postinstall_cmds
10318
 
postuninstall_cmds=$lt_postuninstall_cmds
10319
 
 
10320
 
# Commands used to build a loadable module (assumed same as above if empty)
10321
 
module_cmds=$lt_module_cmds
10322
 
module_expsym_cmds=$lt_module_expsym_cmds
10323
 
 
10324
 
# Commands to strip libraries.
10325
 
old_striplib=$lt_old_striplib
10326
 
striplib=$lt_striplib
10327
 
 
10328
 
# Dependencies to place before the objects being linked to create a
10329
 
# shared library.
10330
 
predep_objects=$lt_predep_objects
10331
 
 
10332
 
# Dependencies to place after the objects being linked to create a
10333
 
# shared library.
10334
 
postdep_objects=$lt_postdep_objects
10335
 
 
10336
 
# Dependencies to place before the objects being linked to create a
10337
 
# shared library.
10338
 
predeps=$lt_predeps
10339
 
 
10340
 
# Dependencies to place after the objects being linked to create a
10341
 
# shared library.
10342
 
postdeps=$lt_postdeps
10343
 
 
10344
 
# The library search path used internally by the compiler when linking
10345
 
# a shared library.
10346
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10347
 
 
10348
 
# Method to check whether dependent libraries are shared objects.
10349
 
deplibs_check_method=$lt_deplibs_check_method
10350
 
 
10351
 
# Command to use when deplibs_check_method == file_magic.
10352
 
file_magic_cmd=$lt_file_magic_cmd
10353
 
 
10354
 
# Flag that allows shared libraries with undefined symbols to be built.
10355
 
allow_undefined_flag=$lt_allow_undefined_flag
10356
 
 
10357
 
# Flag that forces no undefined symbols.
10358
 
no_undefined_flag=$lt_no_undefined_flag
10359
 
 
10360
 
# Commands used to finish a libtool library installation in a directory.
10361
 
finish_cmds=$lt_finish_cmds
10362
 
 
10363
 
# Same as above, but a single script fragment to be evaled but not shown.
10364
 
finish_eval=$lt_finish_eval
10365
 
 
10366
 
# Take the output of nm and produce a listing of raw symbols and C names.
10367
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10368
 
 
10369
 
# Transform the output of nm in a proper C declaration
10370
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10371
 
 
10372
 
# Transform the output of nm in a C name address pair
10373
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10374
 
 
10375
 
# This is the shared library runtime path variable.
10376
 
runpath_var=$runpath_var
10377
 
 
10378
 
# This is the shared library path variable.
10379
 
shlibpath_var=$shlibpath_var
10380
 
 
10381
 
# Is shlibpath searched before the hard-coded library search path?
10382
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10383
 
 
10384
 
# How to hardcode a shared library path into an executable.
10385
 
hardcode_action=$hardcode_action
10386
 
 
10387
 
# Whether we should hardcode library paths into libraries.
10388
 
hardcode_into_libs=$hardcode_into_libs
10389
 
 
10390
 
# Flag to hardcode \$libdir into a binary during linking.
10391
 
# This must work even if \$libdir does not exist.
10392
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10393
 
 
10394
 
# If ld is used when linking, flag to hardcode \$libdir into
10395
 
# a binary during linking. This must work even if \$libdir does
10396
 
# not exist.
10397
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10398
 
 
10399
 
# Whether we need a single -rpath flag with a separated argument.
10400
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10401
 
 
10402
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10403
 
# resulting binary.
10404
 
hardcode_direct=$hardcode_direct
10405
 
 
10406
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10407
 
# resulting binary.
10408
 
hardcode_minus_L=$hardcode_minus_L
10409
 
 
10410
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10411
 
# the resulting binary.
10412
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10413
 
 
10414
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10415
 
# and all subsequent libraries and executables linked against it.
10416
 
hardcode_automatic=$hardcode_automatic
10417
 
 
10418
 
# Variables whose values should be saved in libtool wrapper scripts and
10419
 
# restored at relink time.
10420
 
variables_saved_for_relink="$variables_saved_for_relink"
10421
 
 
10422
 
# Whether libtool must link a program against all its dependency libraries.
10423
 
link_all_deplibs=$link_all_deplibs
10424
 
 
10425
 
# Compile-time system search path for libraries
10426
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10427
 
 
10428
 
# Run-time system search path for libraries
10429
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10430
 
 
10431
 
# Fix the shell variable \$srcfile for the compiler.
10432
 
fix_srcfile_path="$fix_srcfile_path"
10433
 
 
10434
 
# Set to yes if exported symbols are required.
10435
 
always_export_symbols=$always_export_symbols
10436
 
 
10437
 
# The commands to list exported symbols.
10438
 
export_symbols_cmds=$lt_export_symbols_cmds
10439
 
 
10440
 
# The commands to extract the exported symbol list from a shared archive.
10441
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10442
 
 
10443
 
# Symbols that should not be listed in the preloaded symbols.
10444
 
exclude_expsyms=$lt_exclude_expsyms
10445
 
 
10446
 
# Symbols that must always be exported.
10447
 
include_expsyms=$lt_include_expsyms
10448
 
 
10449
 
# ### END LIBTOOL CONFIG
10450
 
 
10451
 
__EOF__
10452
 
 
10453
 
 
10454
 
  case $host_os in
10455
 
  aix3*)
10456
 
    cat <<\EOF >> "$cfgfile"
10457
 
 
10458
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10459
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10460
 
# vanish in a puff of smoke.
10461
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10462
 
  COLLECT_NAMES=
10463
 
  export COLLECT_NAMES
10464
 
fi
10465
 
EOF
10466
 
    ;;
10467
 
  esac
10468
 
 
10469
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10470
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10471
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10472
 
  # is reportedly fixed, but why not run on old versions too?
10473
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10474
 
 
10475
 
  mv -f "$cfgfile" "$ofile" || \
10476
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10477
 
  chmod +x "$ofile"
10478
 
 
10479
 
else
10480
 
  # If there is no Makefile yet, we rely on a make rule to execute
10481
 
  # `config.status --recheck' to rerun these tests and create the
10482
 
  # libtool script then.
10483
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10484
 
  if test -f "$ltmain_in"; then
10485
 
    test -f Makefile && make "$ltmain"
10486
 
  fi
10487
 
fi
10488
 
 
10489
 
 
10490
 
ac_ext=c
10491
 
ac_cpp='$CPP $CPPFLAGS'
10492
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10493
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10494
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10495
 
 
10496
 
CC="$lt_save_CC"
10497
 
 
10498
 
 
10499
 
# Check whether --with-tags was given.
10500
 
if test "${with_tags+set}" = set; then
10501
 
  withval=$with_tags; tagnames="$withval"
10502
 
fi
10503
 
 
10504
 
 
10505
 
if test -f "$ltmain" && test -n "$tagnames"; then
10506
 
  if test ! -f "${ofile}"; then
10507
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10508
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10509
 
  fi
10510
 
 
10511
 
  if test -z "$LTCC"; then
10512
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10513
 
    if test -z "$LTCC"; then
10514
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10515
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10516
 
    else
10517
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10518
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10519
 
    fi
10520
 
  fi
10521
 
  if test -z "$LTCFLAGS"; then
10522
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10523
 
  fi
10524
 
 
10525
 
  # Extract list of available tagged configurations in $ofile.
10526
 
  # Note that this assumes the entire list is on one line.
10527
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10528
 
 
10529
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10530
 
  for tagname in $tagnames; do
10531
 
    IFS="$lt_save_ifs"
10532
 
    # Check whether tagname contains only valid characters
10533
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10534
 
    "") ;;
10535
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10536
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10537
 
   { (exit 1); exit 1; }; }
10538
 
        ;;
10539
 
    esac
10540
 
 
10541
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10542
 
    then
10543
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10544
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10545
 
   { (exit 1); exit 1; }; }
10546
 
    fi
10547
 
 
10548
 
    # Update the list of available tags.
10549
 
    if test -n "$tagname"; then
10550
 
      echo appending configuration tag \"$tagname\" to $ofile
10551
 
 
10552
 
      case $tagname in
10553
 
      CXX)
10554
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10555
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10556
 
            (test "X$CXX" != "Xg++"))) ; then
10557
 
          ac_ext=cpp
10558
 
ac_cpp='$CXXCPP $CPPFLAGS'
10559
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10560
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10561
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10562
 
 
10563
 
 
10564
 
 
10565
 
 
10566
 
archive_cmds_need_lc_CXX=no
10567
 
allow_undefined_flag_CXX=
10568
 
always_export_symbols_CXX=no
10569
 
archive_expsym_cmds_CXX=
10570
 
export_dynamic_flag_spec_CXX=
10571
 
hardcode_direct_CXX=no
10572
 
hardcode_libdir_flag_spec_CXX=
10573
 
hardcode_libdir_flag_spec_ld_CXX=
10574
 
hardcode_libdir_separator_CXX=
10575
 
hardcode_minus_L_CXX=no
10576
 
hardcode_shlibpath_var_CXX=unsupported
10577
 
hardcode_automatic_CXX=no
10578
 
module_cmds_CXX=
10579
 
module_expsym_cmds_CXX=
10580
 
link_all_deplibs_CXX=unknown
10581
 
old_archive_cmds_CXX=$old_archive_cmds
10582
 
no_undefined_flag_CXX=
10583
 
whole_archive_flag_spec_CXX=
10584
 
enable_shared_with_static_runtimes_CXX=no
10585
 
 
10586
 
# Dependencies to place before and after the object being linked:
10587
 
predep_objects_CXX=
10588
 
postdep_objects_CXX=
10589
 
predeps_CXX=
10590
 
postdeps_CXX=
10591
 
compiler_lib_search_path_CXX=
10592
 
 
10593
 
# Source file extension for C++ test sources.
10594
 
ac_ext=cpp
10595
 
 
10596
 
# Object file extension for compiled C++ test sources.
10597
 
objext=o
10598
 
objext_CXX=$objext
10599
 
 
10600
 
# Code to be used in simple compile tests
10601
 
lt_simple_compile_test_code="int some_variable = 0;\n"
10602
 
 
10603
 
# Code to be used in simple link tests
10604
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10605
 
 
10606
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10607
 
 
10608
 
# If no C compiler was specified, use CC.
10609
 
LTCC=${LTCC-"$CC"}
10610
 
 
10611
 
# If no C compiler flags were specified, use CFLAGS.
10612
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10613
 
 
10614
 
# Allow CC to be a program name with arguments.
10615
 
compiler=$CC
10616
 
 
10617
 
 
10618
 
# save warnings/boilerplate of simple test code
10619
 
ac_outfile=conftest.$ac_objext
10620
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10621
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10622
 
_lt_compiler_boilerplate=`cat conftest.err`
10623
 
$rm conftest*
10624
 
 
10625
 
ac_outfile=conftest.$ac_objext
10626
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10627
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10628
 
_lt_linker_boilerplate=`cat conftest.err`
10629
 
$rm conftest*
10630
 
 
10631
 
 
10632
 
# Allow CC to be a program name with arguments.
10633
 
lt_save_CC=$CC
10634
 
lt_save_LD=$LD
10635
 
lt_save_GCC=$GCC
10636
 
GCC=$GXX
10637
 
lt_save_with_gnu_ld=$with_gnu_ld
10638
 
lt_save_path_LD=$lt_cv_path_LD
10639
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10640
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10641
 
else
10642
 
  $as_unset lt_cv_prog_gnu_ld
10643
 
fi
10644
 
if test -n "${lt_cv_path_LDCXX+set}"; then
10645
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
10646
 
else
10647
 
  $as_unset lt_cv_path_LD
10648
 
fi
10649
 
test -z "${LDCXX+set}" || LD=$LDCXX
10650
 
CC=${CXX-"c++"}
10651
 
compiler=$CC
10652
 
compiler_CXX=$CC
10653
 
for cc_temp in $compiler""; do
10654
 
  case $cc_temp in
10655
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10656
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10657
 
    \-*) ;;
10658
 
    *) break;;
10659
 
  esac
10660
 
done
10661
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10662
 
 
10663
 
 
10664
 
# We don't want -fno-exception wen compiling C++ code, so set the
10665
 
# no_builtin_flag separately
10666
 
if test "$GXX" = yes; then
10667
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10668
 
else
10669
 
  lt_prog_compiler_no_builtin_flag_CXX=
10670
 
fi
10671
 
 
10672
 
if test "$GXX" = yes; then
10673
 
  # Set up default GNU C++ configuration
10674
 
 
10675
 
  
10676
 
# Check whether --with-gnu-ld was given.
10677
 
if test "${with_gnu_ld+set}" = set; then
10678
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10679
 
else
10680
 
  with_gnu_ld=no
10681
 
fi
10682
 
 
10683
 
ac_prog=ld
10684
 
if test "$GCC" = yes; then
10685
 
  # Check if gcc -print-prog-name=ld gives a path.
10686
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10687
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10688
 
  case $host in
10689
 
  *-*-mingw*)
10690
 
    # gcc leaves a trailing carriage return which upsets mingw
10691
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10692
 
  *)
10693
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10694
 
  esac
10695
 
  case $ac_prog in
10696
 
    # Accept absolute paths.
10697
 
    [\\/]* | ?:[\\/]*)
10698
 
      re_direlt='/[^/][^/]*/\.\./'
10699
 
      # Canonicalize the pathname of ld
10700
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10701
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10702
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10703
 
      done
10704
 
      test -z "$LD" && LD="$ac_prog"
10705
 
      ;;
10706
 
  "")
10707
 
    # If it fails, then pretend we aren't using GCC.
10708
 
    ac_prog=ld
10709
 
    ;;
10710
 
  *)
10711
 
    # If it is relative, then search for the first ld in PATH.
10712
 
    with_gnu_ld=unknown
10713
 
    ;;
10714
 
  esac
10715
 
elif test "$with_gnu_ld" = yes; then
10716
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10717
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10718
 
else
10719
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10720
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10721
 
fi
10722
 
if test "${lt_cv_path_LD+set}" = set; then
10723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10724
 
else
10725
 
  if test -z "$LD"; then
10726
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10727
 
  for ac_dir in $PATH; do
10728
 
    IFS="$lt_save_ifs"
10729
 
    test -z "$ac_dir" && ac_dir=.
10730
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10731
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
10732
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10733
 
      # but apparently some variants of GNU ld only accept -v.
10734
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10735
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10736
 
      *GNU* | *'with BFD'*)
10737
 
        test "$with_gnu_ld" != no && break
10738
 
        ;;
10739
 
      *)
10740
 
        test "$with_gnu_ld" != yes && break
10741
 
        ;;
10742
 
      esac
10743
 
    fi
10744
 
  done
10745
 
  IFS="$lt_save_ifs"
10746
 
else
10747
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10748
 
fi
10749
 
fi
10750
 
 
10751
 
LD="$lt_cv_path_LD"
10752
 
if test -n "$LD"; then
10753
 
  { echo "$as_me:$LINENO: result: $LD" >&5
10754
 
echo "${ECHO_T}$LD" >&6; }
10755
 
else
10756
 
  { echo "$as_me:$LINENO: result: no" >&5
10757
 
echo "${ECHO_T}no" >&6; }
10758
 
fi
10759
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10760
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10761
 
   { (exit 1); exit 1; }; }
10762
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10763
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10764
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10765
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10766
 
else
10767
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10768
 
case `$LD -v 2>&1 </dev/null` in
10769
 
*GNU* | *'with BFD'*)
10770
 
  lt_cv_prog_gnu_ld=yes
10771
 
  ;;
10772
 
*)
10773
 
  lt_cv_prog_gnu_ld=no
10774
 
  ;;
10775
 
esac
10776
 
fi
10777
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10778
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10779
 
with_gnu_ld=$lt_cv_prog_gnu_ld
10780
 
 
10781
 
 
10782
 
 
10783
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10784
 
  # archiving commands below assume that GNU ld is being used.
10785
 
  if test "$with_gnu_ld" = yes; then
10786
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10787
 
    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'
10788
 
 
10789
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10790
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10791
 
 
10792
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
10793
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10794
 
    #     investigate it a little bit more. (MM)
10795
 
    wlarc='${wl}'
10796
 
 
10797
 
    # ancient GNU ld didn't support --whole-archive et. al.
10798
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10799
 
        grep 'no-whole-archive' > /dev/null; then
10800
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10801
 
    else
10802
 
      whole_archive_flag_spec_CXX=
10803
 
    fi
10804
 
  else
10805
 
    with_gnu_ld=no
10806
 
    wlarc=
10807
 
 
10808
 
    # A generic and very simple default shared library creation
10809
 
    # command for GNU C++ for the case where it uses the native
10810
 
    # linker, instead of GNU ld.  If possible, this setting should
10811
 
    # overridden to take advantage of the native linker features on
10812
 
    # the platform it is being used on.
10813
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10814
 
  fi
10815
 
 
10816
 
  # Commands to make compiler produce verbose output that lists
10817
 
  # what "hidden" libraries, object files and flags are used when
10818
 
  # linking a shared library.
10819
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10820
 
 
10821
 
else
10822
 
  GXX=no
10823
 
  with_gnu_ld=no
10824
 
  wlarc=
10825
 
fi
10826
 
 
10827
 
# PORTME: fill in a description of your system's C++ link characteristics
10828
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10829
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10830
 
ld_shlibs_CXX=yes
10831
 
case $host_os in
10832
 
  aix3*)
10833
 
    # FIXME: insert proper C++ library support
10834
 
    ld_shlibs_CXX=no
10835
 
    ;;
10836
 
  aix4* | aix5*)
10837
 
    if test "$host_cpu" = ia64; then
10838
 
      # On IA64, the linker does run time linking by default, so we don't
10839
 
      # have to do anything special.
10840
 
      aix_use_runtimelinking=no
10841
 
      exp_sym_flag='-Bexport'
10842
 
      no_entry_flag=""
10843
 
    else
10844
 
      aix_use_runtimelinking=no
10845
 
 
10846
 
      # Test if we are trying to use run time linking or normal
10847
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10848
 
      # need to do runtime linking.
10849
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10850
 
        for ld_flag in $LDFLAGS; do
10851
 
          case $ld_flag in
10852
 
          *-brtl*)
10853
 
            aix_use_runtimelinking=yes
10854
 
            break
10855
 
            ;;
10856
 
          esac
10857
 
        done
10858
 
        ;;
10859
 
      esac
10860
 
 
10861
 
      exp_sym_flag='-bexport'
10862
 
      no_entry_flag='-bnoentry'
10863
 
    fi
10864
 
 
10865
 
    # When large executables or shared objects are built, AIX ld can
10866
 
    # have problems creating the table of contents.  If linking a library
10867
 
    # or program results in "error TOC overflow" add -mminimal-toc to
10868
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10869
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10870
 
 
10871
 
    archive_cmds_CXX=''
10872
 
    hardcode_direct_CXX=yes
10873
 
    hardcode_libdir_separator_CXX=':'
10874
 
    link_all_deplibs_CXX=yes
10875
 
 
10876
 
    if test "$GXX" = yes; then
10877
 
      case $host_os in aix4.[012]|aix4.[012].*)
10878
 
      # We only want to do this on AIX 4.2 and lower, the check
10879
 
      # below for broken collect2 doesn't work under 4.3+
10880
 
        collect2name=`${CC} -print-prog-name=collect2`
10881
 
        if test -f "$collect2name" && \
10882
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
10883
 
        then
10884
 
          # We have reworked collect2
10885
 
          hardcode_direct_CXX=yes
10886
 
        else
10887
 
          # We have old collect2
10888
 
          hardcode_direct_CXX=unsupported
10889
 
          # It fails to find uninstalled libraries when the uninstalled
10890
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
10891
 
          # to unsupported forces relinking
10892
 
          hardcode_minus_L_CXX=yes
10893
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10894
 
          hardcode_libdir_separator_CXX=
10895
 
        fi
10896
 
        ;;
10897
 
      esac
10898
 
      shared_flag='-shared'
10899
 
      if test "$aix_use_runtimelinking" = yes; then
10900
 
        shared_flag="$shared_flag "'${wl}-G'
10901
 
      fi
10902
 
    else
10903
 
      # not using gcc
10904
 
      if test "$host_cpu" = ia64; then
10905
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10906
 
        # chokes on -Wl,-G. The following line is correct:
10907
 
        shared_flag='-G'
10908
 
      else
10909
 
        if test "$aix_use_runtimelinking" = yes; then
10910
 
          shared_flag='${wl}-G'
10911
 
        else
10912
 
          shared_flag='${wl}-bM:SRE'
10913
 
        fi
10914
 
      fi
10915
 
    fi
10916
 
 
10917
 
    # It seems that -bexpall does not export symbols beginning with
10918
 
    # underscore (_), so it is better to generate a list of symbols to export.
10919
 
    always_export_symbols_CXX=yes
10920
 
    if test "$aix_use_runtimelinking" = yes; then
10921
 
      # Warning - without using the other runtime loading flags (-brtl),
10922
 
      # -berok will link without error, but may produce a broken library.
10923
 
      allow_undefined_flag_CXX='-berok'
10924
 
      # Determine the default libpath from the value encoded in an empty executable.
10925
 
      cat >conftest.$ac_ext <<_ACEOF
10926
 
/* confdefs.h.  */
10927
 
_ACEOF
10928
 
cat confdefs.h >>conftest.$ac_ext
10929
 
cat >>conftest.$ac_ext <<_ACEOF
10930
 
/* end confdefs.h.  */
10931
 
 
10932
 
int
10933
 
main ()
10934
 
{
10935
 
 
10936
 
  ;
10937
 
  return 0;
10938
 
}
10939
 
_ACEOF
10940
 
rm -f conftest.$ac_objext conftest$ac_exeext
10941
 
if { (ac_try="$ac_link"
10942
 
case "(($ac_try" in
10943
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944
 
  *) ac_try_echo=$ac_try;;
10945
 
esac
10946
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947
 
  (eval "$ac_link") 2>conftest.er1
10948
 
  ac_status=$?
10949
 
  grep -v '^ *+' conftest.er1 >conftest.err
10950
 
  rm -f conftest.er1
10951
 
  cat conftest.err >&5
10952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953
 
  (exit $ac_status); } && {
10954
 
         test -z "$ac_cxx_werror_flag" ||
10955
 
         test ! -s conftest.err
10956
 
       } && test -s conftest$ac_exeext &&
10957
 
       $as_test_x conftest$ac_exeext; then
10958
 
  
10959
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10960
 
}'`
10961
 
# Check for a 64-bit object if we didn't find anything.
10962
 
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; }
10963
 
}'`; fi
10964
 
else
10965
 
  echo "$as_me: failed program was:" >&5
10966
 
sed 's/^/| /' conftest.$ac_ext >&5
10967
 
 
10968
 
        
10969
 
fi
10970
 
 
10971
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10972
 
      conftest$ac_exeext conftest.$ac_ext
10973
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10974
 
 
10975
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10976
 
 
10977
 
      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"
10978
 
     else
10979
 
      if test "$host_cpu" = ia64; then
10980
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10981
 
        allow_undefined_flag_CXX="-z nodefs"
10982
 
        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"
10983
 
      else
10984
 
        # Determine the default libpath from the value encoded in an empty executable.
10985
 
        cat >conftest.$ac_ext <<_ACEOF
10986
 
/* confdefs.h.  */
10987
 
_ACEOF
10988
 
cat confdefs.h >>conftest.$ac_ext
10989
 
cat >>conftest.$ac_ext <<_ACEOF
10990
 
/* end confdefs.h.  */
10991
 
 
10992
 
int
10993
 
main ()
10994
 
{
10995
 
 
10996
 
  ;
10997
 
  return 0;
10998
 
}
10999
 
_ACEOF
11000
 
rm -f conftest.$ac_objext conftest$ac_exeext
11001
 
if { (ac_try="$ac_link"
11002
 
case "(($ac_try" in
11003
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004
 
  *) ac_try_echo=$ac_try;;
11005
 
esac
11006
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007
 
  (eval "$ac_link") 2>conftest.er1
11008
 
  ac_status=$?
11009
 
  grep -v '^ *+' conftest.er1 >conftest.err
11010
 
  rm -f conftest.er1
11011
 
  cat conftest.err >&5
11012
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013
 
  (exit $ac_status); } && {
11014
 
         test -z "$ac_cxx_werror_flag" ||
11015
 
         test ! -s conftest.err
11016
 
       } && test -s conftest$ac_exeext &&
11017
 
       $as_test_x conftest$ac_exeext; then
11018
 
  
11019
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11020
 
}'`
11021
 
# Check for a 64-bit object if we didn't find anything.
11022
 
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; }
11023
 
}'`; fi
11024
 
else
11025
 
  echo "$as_me: failed program was:" >&5
11026
 
sed 's/^/| /' conftest.$ac_ext >&5
11027
 
 
11028
 
        
11029
 
fi
11030
 
 
11031
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11032
 
      conftest$ac_exeext conftest.$ac_ext
11033
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11034
 
 
11035
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11036
 
        # Warning - without using the other run time loading flags,
11037
 
        # -berok will link without error, but may produce a broken library.
11038
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11039
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11040
 
        # Exported symbols can be pulled into shared objects from archives
11041
 
        whole_archive_flag_spec_CXX='$convenience'
11042
 
        archive_cmds_need_lc_CXX=yes
11043
 
        # This is similar to how AIX traditionally builds its shared libraries.
11044
 
        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'
11045
 
      fi
11046
 
    fi
11047
 
    ;;
11048
 
 
11049
 
  beos*)
11050
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11051
 
      allow_undefined_flag_CXX=unsupported
11052
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11053
 
      # support --undefined.  This deserves some investigation.  FIXME
11054
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11055
 
    else
11056
 
      ld_shlibs_CXX=no
11057
 
    fi
11058
 
    ;;
11059
 
 
11060
 
  chorus*)
11061
 
    case $cc_basename in
11062
 
      *)
11063
 
        # FIXME: insert proper C++ library support
11064
 
        ld_shlibs_CXX=no
11065
 
        ;;
11066
 
    esac
11067
 
    ;;
11068
 
 
11069
 
  cygwin* | mingw* | pw32*)
11070
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11071
 
    # as there is no search path for DLLs.
11072
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11073
 
    allow_undefined_flag_CXX=unsupported
11074
 
    always_export_symbols_CXX=no
11075
 
    enable_shared_with_static_runtimes_CXX=yes
11076
 
 
11077
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11078
 
      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'
11079
 
      # If the export-symbols file already is a .def file (1st line
11080
 
      # is EXPORTS), use it as is; otherwise, prepend...
11081
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11082
 
        cp $export_symbols $output_objdir/$soname.def;
11083
 
      else
11084
 
        echo EXPORTS > $output_objdir/$soname.def;
11085
 
        cat $export_symbols >> $output_objdir/$soname.def;
11086
 
      fi~
11087
 
      $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'
11088
 
    else
11089
 
      ld_shlibs_CXX=no
11090
 
    fi
11091
 
  ;;
11092
 
      darwin* | rhapsody*)
11093
 
        case $host_os in
11094
 
        rhapsody* | darwin1.[012])
11095
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11096
 
         ;;
11097
 
       *) # Darwin 1.3 on
11098
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11099
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11100
 
         else
11101
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11102
 
             10.[012])
11103
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11104
 
               ;;
11105
 
             10.*)
11106
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11107
 
               ;;
11108
 
           esac
11109
 
         fi
11110
 
         ;;
11111
 
        esac
11112
 
      archive_cmds_need_lc_CXX=no
11113
 
      hardcode_direct_CXX=no
11114
 
      hardcode_automatic_CXX=yes
11115
 
      hardcode_shlibpath_var_CXX=unsupported
11116
 
      whole_archive_flag_spec_CXX=''
11117
 
      link_all_deplibs_CXX=yes
11118
 
 
11119
 
    if test "$GXX" = yes ; then
11120
 
      lt_int_apple_cc_single_mod=no
11121
 
      output_verbose_link_cmd='echo'
11122
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11123
 
       lt_int_apple_cc_single_mod=yes
11124
 
      fi
11125
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11126
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11127
 
      else
11128
 
          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'
11129
 
        fi
11130
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11131
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11132
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11133
 
            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}'
11134
 
          else
11135
 
            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}'
11136
 
          fi
11137
 
            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}'
11138
 
      else
11139
 
      case $cc_basename in
11140
 
        xlc*)
11141
 
         output_verbose_link_cmd='echo'
11142
 
          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'
11143
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11144
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11145
 
          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}'
11146
 
          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}'
11147
 
          ;;
11148
 
       *)
11149
 
         ld_shlibs_CXX=no
11150
 
          ;;
11151
 
      esac
11152
 
      fi
11153
 
        ;;
11154
 
 
11155
 
  dgux*)
11156
 
    case $cc_basename in
11157
 
      ec++*)
11158
 
        # FIXME: insert proper C++ library support
11159
 
        ld_shlibs_CXX=no
11160
 
        ;;
11161
 
      ghcx*)
11162
 
        # Green Hills C++ Compiler
11163
 
        # FIXME: insert proper C++ library support
11164
 
        ld_shlibs_CXX=no
11165
 
        ;;
11166
 
      *)
11167
 
        # FIXME: insert proper C++ library support
11168
 
        ld_shlibs_CXX=no
11169
 
        ;;
11170
 
    esac
11171
 
    ;;
11172
 
  freebsd[12]*)
11173
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11174
 
    ld_shlibs_CXX=no
11175
 
    ;;
11176
 
  freebsd-elf*)
11177
 
    archive_cmds_need_lc_CXX=no
11178
 
    ;;
11179
 
  freebsd* | dragonfly*)
11180
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11181
 
    # conventions
11182
 
    ld_shlibs_CXX=yes
11183
 
    ;;
11184
 
  gnu*)
11185
 
    ;;
11186
 
  hpux9*)
11187
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11188
 
    hardcode_libdir_separator_CXX=:
11189
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11190
 
    hardcode_direct_CXX=yes
11191
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11192
 
                                # but as the default
11193
 
                                # location of the library.
11194
 
 
11195
 
    case $cc_basename in
11196
 
    CC*)
11197
 
      # FIXME: insert proper C++ library support
11198
 
      ld_shlibs_CXX=no
11199
 
      ;;
11200
 
    aCC*)
11201
 
      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'
11202
 
      # Commands to make compiler produce verbose output that lists
11203
 
      # what "hidden" libraries, object files and flags are used when
11204
 
      # linking a shared library.
11205
 
      #
11206
 
      # There doesn't appear to be a way to prevent this compiler from
11207
 
      # explicitly linking system object files so we need to strip them
11208
 
      # from the output so that they don't get included in the library
11209
 
      # dependencies.
11210
 
      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'
11211
 
      ;;
11212
 
    *)
11213
 
      if test "$GXX" = yes; then
11214
 
        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'
11215
 
      else
11216
 
        # FIXME: insert proper C++ library support
11217
 
        ld_shlibs_CXX=no
11218
 
      fi
11219
 
      ;;
11220
 
    esac
11221
 
    ;;
11222
 
  hpux10*|hpux11*)
11223
 
    if test $with_gnu_ld = no; then
11224
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11225
 
      hardcode_libdir_separator_CXX=:
11226
 
 
11227
 
      case $host_cpu in
11228
 
      hppa*64*|ia64*)
11229
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11230
 
        ;;
11231
 
      *)
11232
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11233
 
        ;;
11234
 
      esac
11235
 
    fi
11236
 
    case $host_cpu in
11237
 
    hppa*64*|ia64*)
11238
 
      hardcode_direct_CXX=no
11239
 
      hardcode_shlibpath_var_CXX=no
11240
 
      ;;
11241
 
    *)
11242
 
      hardcode_direct_CXX=yes
11243
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11244
 
                                              # but as the default
11245
 
                                              # location of the library.
11246
 
      ;;
11247
 
    esac
11248
 
 
11249
 
    case $cc_basename in
11250
 
      CC*)
11251
 
        # FIXME: insert proper C++ library support
11252
 
        ld_shlibs_CXX=no
11253
 
        ;;
11254
 
      aCC*)
11255
 
        case $host_cpu in
11256
 
        hppa*64*)
11257
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11258
 
          ;;
11259
 
        ia64*)
11260
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11261
 
          ;;
11262
 
        *)
11263
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11264
 
          ;;
11265
 
        esac
11266
 
        # Commands to make compiler produce verbose output that lists
11267
 
        # what "hidden" libraries, object files and flags are used when
11268
 
        # linking a shared library.
11269
 
        #
11270
 
        # There doesn't appear to be a way to prevent this compiler from
11271
 
        # explicitly linking system object files so we need to strip them
11272
 
        # from the output so that they don't get included in the library
11273
 
        # dependencies.
11274
 
        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'
11275
 
        ;;
11276
 
      *)
11277
 
        if test "$GXX" = yes; then
11278
 
          if test $with_gnu_ld = no; then
11279
 
            case $host_cpu in
11280
 
            hppa*64*)
11281
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11282
 
              ;;
11283
 
            ia64*)
11284
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11285
 
              ;;
11286
 
            *)
11287
 
              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'
11288
 
              ;;
11289
 
            esac
11290
 
          fi
11291
 
        else
11292
 
          # FIXME: insert proper C++ library support
11293
 
          ld_shlibs_CXX=no
11294
 
        fi
11295
 
        ;;
11296
 
    esac
11297
 
    ;;
11298
 
  interix3*)
11299
 
    hardcode_direct_CXX=no
11300
 
    hardcode_shlibpath_var_CXX=no
11301
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11303
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11304
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11305
 
    # default) and relocated if they conflict, which is a slow very memory
11306
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11307
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11308
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11309
 
    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'
11310
 
    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'
11311
 
    ;;
11312
 
  irix5* | irix6*)
11313
 
    case $cc_basename in
11314
 
      CC*)
11315
 
        # SGI C++
11316
 
        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'
11317
 
 
11318
 
        # Archives containing C++ object files must be created using
11319
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11320
 
        # necessary to make sure instantiated templates are included
11321
 
        # in the archive.
11322
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11323
 
        ;;
11324
 
      *)
11325
 
        if test "$GXX" = yes; then
11326
 
          if test "$with_gnu_ld" = no; then
11327
 
            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'
11328
 
          else
11329
 
            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'
11330
 
          fi
11331
 
        fi
11332
 
        link_all_deplibs_CXX=yes
11333
 
        ;;
11334
 
    esac
11335
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11336
 
    hardcode_libdir_separator_CXX=:
11337
 
    ;;
11338
 
  linux* | k*bsd*-gnu)
11339
 
    case $cc_basename in
11340
 
      KCC*)
11341
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11342
 
 
11343
 
        # KCC will only create a shared library if the output file
11344
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11345
 
        # to its proper name (with version) after linking.
11346
 
        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'
11347
 
        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'
11348
 
        # Commands to make compiler produce verbose output that lists
11349
 
        # what "hidden" libraries, object files and flags are used when
11350
 
        # linking a shared library.
11351
 
        #
11352
 
        # There doesn't appear to be a way to prevent this compiler from
11353
 
        # explicitly linking system object files so we need to strip them
11354
 
        # from the output so that they don't get included in the library
11355
 
        # dependencies.
11356
 
        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'
11357
 
 
11358
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11359
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11360
 
 
11361
 
        # Archives containing C++ object files must be created using
11362
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11363
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11364
 
        ;;
11365
 
      icpc*)
11366
 
        # Intel C++
11367
 
        with_gnu_ld=yes
11368
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11369
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11370
 
        # earlier do not add the objects themselves.
11371
 
        case `$CC -V 2>&1` in
11372
 
        *"Version 7."*)
11373
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11374
 
          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'
11375
 
          ;;
11376
 
        *)  # Version 8.0 or newer
11377
 
          tmp_idyn=
11378
 
          case $host_cpu in
11379
 
            ia64*) tmp_idyn=' -i_dynamic';;
11380
 
          esac
11381
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11382
 
          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'
11383
 
          ;;
11384
 
        esac
11385
 
        archive_cmds_need_lc_CXX=no
11386
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11387
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11388
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11389
 
        ;;
11390
 
      pgCC*)
11391
 
        # Portland Group C++ compiler
11392
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11393
 
        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'
11394
 
 
11395
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11396
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11397
 
        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'
11398
 
        ;;
11399
 
      cxx*)
11400
 
        # Compaq C++
11401
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11402
 
        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'
11403
 
 
11404
 
        runpath_var=LD_RUN_PATH
11405
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11406
 
        hardcode_libdir_separator_CXX=:
11407
 
 
11408
 
        # Commands to make compiler produce verbose output that lists
11409
 
        # what "hidden" libraries, object files and flags are used when
11410
 
        # linking a shared library.
11411
 
        #
11412
 
        # There doesn't appear to be a way to prevent this compiler from
11413
 
        # explicitly linking system object files so we need to strip them
11414
 
        # from the output so that they don't get included in the library
11415
 
        # dependencies.
11416
 
        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'
11417
 
        ;;
11418
 
    esac
11419
 
    ;;
11420
 
  lynxos*)
11421
 
    # FIXME: insert proper C++ library support
11422
 
    ld_shlibs_CXX=no
11423
 
    ;;
11424
 
  m88k*)
11425
 
    # FIXME: insert proper C++ library support
11426
 
    ld_shlibs_CXX=no
11427
 
    ;;
11428
 
  mvs*)
11429
 
    case $cc_basename in
11430
 
      cxx*)
11431
 
        # FIXME: insert proper C++ library support
11432
 
        ld_shlibs_CXX=no
11433
 
        ;;
11434
 
      *)
11435
 
        # FIXME: insert proper C++ library support
11436
 
        ld_shlibs_CXX=no
11437
 
        ;;
11438
 
    esac
11439
 
    ;;
11440
 
  netbsd* | netbsdelf*-gnu)
11441
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11442
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11443
 
      wlarc=
11444
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11445
 
      hardcode_direct_CXX=yes
11446
 
      hardcode_shlibpath_var_CXX=no
11447
 
    fi
11448
 
    # Workaround some broken pre-1.5 toolchains
11449
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11450
 
    ;;
11451
 
  openbsd2*)
11452
 
    # C++ shared libraries are fairly broken
11453
 
    ld_shlibs_CXX=no
11454
 
    ;;
11455
 
  openbsd*)
11456
 
    hardcode_direct_CXX=yes
11457
 
    hardcode_shlibpath_var_CXX=no
11458
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11459
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11460
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11461
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11462
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11463
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11464
 
    fi
11465
 
    output_verbose_link_cmd='echo'
11466
 
    ;;
11467
 
  osf3*)
11468
 
    case $cc_basename in
11469
 
      KCC*)
11470
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11471
 
 
11472
 
        # KCC will only create a shared library if the output file
11473
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11474
 
        # to its proper name (with version) after linking.
11475
 
        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'
11476
 
 
11477
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11478
 
        hardcode_libdir_separator_CXX=:
11479
 
 
11480
 
        # Archives containing C++ object files must be created using
11481
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11482
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11483
 
 
11484
 
        ;;
11485
 
      RCC*)
11486
 
        # Rational C++ 2.4.1
11487
 
        # FIXME: insert proper C++ library support
11488
 
        ld_shlibs_CXX=no
11489
 
        ;;
11490
 
      cxx*)
11491
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11492
 
        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'
11493
 
 
11494
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11495
 
        hardcode_libdir_separator_CXX=:
11496
 
 
11497
 
        # Commands to make compiler produce verbose output that lists
11498
 
        # what "hidden" libraries, object files and flags are used when
11499
 
        # linking a shared library.
11500
 
        #
11501
 
        # There doesn't appear to be a way to prevent this compiler from
11502
 
        # explicitly linking system object files so we need to strip them
11503
 
        # from the output so that they don't get included in the library
11504
 
        # dependencies.
11505
 
        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'
11506
 
        ;;
11507
 
      *)
11508
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11509
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11510
 
          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'
11511
 
 
11512
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11513
 
          hardcode_libdir_separator_CXX=:
11514
 
 
11515
 
          # Commands to make compiler produce verbose output that lists
11516
 
          # what "hidden" libraries, object files and flags are used when
11517
 
          # linking a shared library.
11518
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11519
 
 
11520
 
        else
11521
 
          # FIXME: insert proper C++ library support
11522
 
          ld_shlibs_CXX=no
11523
 
        fi
11524
 
        ;;
11525
 
    esac
11526
 
    ;;
11527
 
  osf4* | osf5*)
11528
 
    case $cc_basename in
11529
 
      KCC*)
11530
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11531
 
 
11532
 
        # KCC will only create a shared library if the output file
11533
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11534
 
        # to its proper name (with version) after linking.
11535
 
        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'
11536
 
 
11537
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11538
 
        hardcode_libdir_separator_CXX=:
11539
 
 
11540
 
        # Archives containing C++ object files must be created using
11541
 
        # the KAI C++ compiler.
11542
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11543
 
        ;;
11544
 
      RCC*)
11545
 
        # Rational C++ 2.4.1
11546
 
        # FIXME: insert proper C++ library support
11547
 
        ld_shlibs_CXX=no
11548
 
        ;;
11549
 
      cxx*)
11550
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11551
 
        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'
11552
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11553
 
          echo "-hidden">> $lib.exp~
11554
 
          $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~
11555
 
          $rm $lib.exp'
11556
 
 
11557
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11558
 
        hardcode_libdir_separator_CXX=:
11559
 
 
11560
 
        # Commands to make compiler produce verbose output that lists
11561
 
        # what "hidden" libraries, object files and flags are used when
11562
 
        # linking a shared library.
11563
 
        #
11564
 
        # There doesn't appear to be a way to prevent this compiler from
11565
 
        # explicitly linking system object files so we need to strip them
11566
 
        # from the output so that they don't get included in the library
11567
 
        # dependencies.
11568
 
        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'
11569
 
        ;;
11570
 
      *)
11571
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11572
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573
 
         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'
11574
 
 
11575
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576
 
          hardcode_libdir_separator_CXX=:
11577
 
 
11578
 
          # Commands to make compiler produce verbose output that lists
11579
 
          # what "hidden" libraries, object files and flags are used when
11580
 
          # linking a shared library.
11581
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11582
 
 
11583
 
        else
11584
 
          # FIXME: insert proper C++ library support
11585
 
          ld_shlibs_CXX=no
11586
 
        fi
11587
 
        ;;
11588
 
    esac
11589
 
    ;;
11590
 
  psos*)
11591
 
    # FIXME: insert proper C++ library support
11592
 
    ld_shlibs_CXX=no
11593
 
    ;;
11594
 
  sunos4*)
11595
 
    case $cc_basename in
11596
 
      CC*)
11597
 
        # Sun C++ 4.x
11598
 
        # FIXME: insert proper C++ library support
11599
 
        ld_shlibs_CXX=no
11600
 
        ;;
11601
 
      lcc*)
11602
 
        # Lucid
11603
 
        # FIXME: insert proper C++ library support
11604
 
        ld_shlibs_CXX=no
11605
 
        ;;
11606
 
      *)
11607
 
        # FIXME: insert proper C++ library support
11608
 
        ld_shlibs_CXX=no
11609
 
        ;;
11610
 
    esac
11611
 
    ;;
11612
 
  solaris*)
11613
 
    case $cc_basename in
11614
 
      CC*)
11615
 
        # Sun C++ 4.2, 5.x and Centerline C++
11616
 
        archive_cmds_need_lc_CXX=yes
11617
 
        no_undefined_flag_CXX=' -zdefs'
11618
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11619
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11620
 
        $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'
11621
 
 
11622
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11623
 
        hardcode_shlibpath_var_CXX=no
11624
 
        case $host_os in
11625
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11626
 
          *)
11627
 
            # The C++ compiler is used as linker so we must use $wl
11628
 
            # flag to pass the commands to the underlying system
11629
 
            # linker. We must also pass each convience library through
11630
 
            # to the system linker between allextract/defaultextract.
11631
 
            # The C++ compiler will combine linker options so we
11632
 
            # cannot just pass the convience library names through
11633
 
            # without $wl.
11634
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11635
 
            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'
11636
 
            ;;
11637
 
        esac
11638
 
        link_all_deplibs_CXX=yes
11639
 
 
11640
 
        output_verbose_link_cmd='echo'
11641
 
 
11642
 
        # Archives containing C++ object files must be created using
11643
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11644
 
        # necessary to make sure instantiated templates are included
11645
 
        # in the archive.
11646
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11647
 
        ;;
11648
 
      gcx*)
11649
 
        # Green Hills C++ Compiler
11650
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11651
 
 
11652
 
        # The C++ compiler must be used to create the archive.
11653
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11654
 
        ;;
11655
 
      *)
11656
 
        # GNU C++ compiler with Solaris linker
11657
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11658
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11659
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11660
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11661
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11662
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11663
 
 
11664
 
            # Commands to make compiler produce verbose output that lists
11665
 
            # what "hidden" libraries, object files and flags are used when
11666
 
            # linking a shared library.
11667
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11668
 
          else
11669
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11670
 
            # platform.
11671
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11672
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11673
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11674
 
 
11675
 
            # Commands to make compiler produce verbose output that lists
11676
 
            # what "hidden" libraries, object files and flags are used when
11677
 
            # linking a shared library.
11678
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11679
 
          fi
11680
 
 
11681
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11682
 
        fi
11683
 
        ;;
11684
 
    esac
11685
 
    ;;
11686
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11687
 
    no_undefined_flag_CXX='${wl}-z,text'
11688
 
    archive_cmds_need_lc_CXX=no
11689
 
    hardcode_shlibpath_var_CXX=no
11690
 
    runpath_var='LD_RUN_PATH'
11691
 
 
11692
 
    case $cc_basename in
11693
 
      CC*)
11694
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11695
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11696
 
        ;;
11697
 
      *)
11698
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11699
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11700
 
        ;;
11701
 
    esac
11702
 
    ;;
11703
 
  sysv5* | sco3.2v5* | sco5v6*)
11704
 
    # Note: We can NOT use -z defs as we might desire, because we do not
11705
 
    # link with -lc, and that would cause any symbols used from libc to
11706
 
    # always be unresolved, which means just about no library would
11707
 
    # ever link correctly.  If we're not using GNU ld we use -z text
11708
 
    # though, which does catch some bad symbols but isn't as heavy-handed
11709
 
    # as -z defs.
11710
 
    # For security reasons, it is highly recommended that you always
11711
 
    # use absolute paths for naming shared libraries, and exclude the
11712
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
11713
 
    # requires that you compile everything twice, which is a pain.
11714
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
11715
 
    # non-empty value in the environment.  Most likely only useful for
11716
 
    # creating official distributions of packages.
11717
 
    # This is a hack until libtool officially supports absolute path
11718
 
    # names for shared libraries.
11719
 
    no_undefined_flag_CXX='${wl}-z,text'
11720
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11721
 
    archive_cmds_need_lc_CXX=no
11722
 
    hardcode_shlibpath_var_CXX=no
11723
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11724
 
    hardcode_libdir_separator_CXX=':'
11725
 
    link_all_deplibs_CXX=yes
11726
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11727
 
    runpath_var='LD_RUN_PATH'
11728
 
 
11729
 
    case $cc_basename in
11730
 
      CC*)
11731
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11732
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11733
 
        ;;
11734
 
      *)
11735
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11736
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11737
 
        ;;
11738
 
    esac
11739
 
    ;;
11740
 
  tandem*)
11741
 
    case $cc_basename in
11742
 
      NCC*)
11743
 
        # NonStop-UX NCC 3.20
11744
 
        # FIXME: insert proper C++ library support
11745
 
        ld_shlibs_CXX=no
11746
 
        ;;
11747
 
      *)
11748
 
        # FIXME: insert proper C++ library support
11749
 
        ld_shlibs_CXX=no
11750
 
        ;;
11751
 
    esac
11752
 
    ;;
11753
 
  vxworks*)
11754
 
    # FIXME: insert proper C++ library support
11755
 
    ld_shlibs_CXX=no
11756
 
    ;;
11757
 
  *)
11758
 
    # FIXME: insert proper C++ library support
11759
 
    ld_shlibs_CXX=no
11760
 
    ;;
11761
 
esac
11762
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11763
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11764
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11765
 
 
11766
 
GCC_CXX="$GXX"
11767
 
LD_CXX="$LD"
11768
 
 
11769
 
 
11770
 
cat > conftest.$ac_ext <<EOF
11771
 
class Foo
11772
 
{
11773
 
public:
11774
 
  Foo (void) { a = 0; }
11775
 
private:
11776
 
  int a;
11777
 
};
11778
 
EOF
11779
 
 
11780
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781
 
  (eval $ac_compile) 2>&5
11782
 
  ac_status=$?
11783
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784
 
  (exit $ac_status); }; then
11785
 
  # Parse the compiler output and extract the necessary
11786
 
  # objects, libraries and library flags.
11787
 
 
11788
 
  # Sentinel used to keep track of whether or not we are before
11789
 
  # the conftest object file.
11790
 
  pre_test_object_deps_done=no
11791
 
 
11792
 
  # The `*' in the case matches for architectures that use `case' in
11793
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11794
 
  # eval without this substitution.
11795
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11796
 
 
11797
 
  for p in `eval $output_verbose_link_cmd`; do
11798
 
    case $p in
11799
 
 
11800
 
    -L* | -R* | -l*)
11801
 
       # Some compilers place space between "-{L,R}" and the path.
11802
 
       # Remove the space.
11803
 
       if test $p = "-L" \
11804
 
          || test $p = "-R"; then
11805
 
         prev=$p
11806
 
         continue
11807
 
       else
11808
 
         prev=
11809
 
       fi
11810
 
 
11811
 
       if test "$pre_test_object_deps_done" = no; then
11812
 
         case $p in
11813
 
         -L* | -R*)
11814
 
           # Internal compiler library paths should come after those
11815
 
           # provided the user.  The postdeps already come after the
11816
 
           # user supplied libs so there is no need to process them.
11817
 
           if test -z "$compiler_lib_search_path_CXX"; then
11818
 
             compiler_lib_search_path_CXX="${prev}${p}"
11819
 
           else
11820
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11821
 
           fi
11822
 
           ;;
11823
 
         # The "-l" case would never come before the object being
11824
 
         # linked, so don't bother handling this case.
11825
 
         esac
11826
 
       else
11827
 
         if test -z "$postdeps_CXX"; then
11828
 
           postdeps_CXX="${prev}${p}"
11829
 
         else
11830
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11831
 
         fi
11832
 
       fi
11833
 
       ;;
11834
 
 
11835
 
    *.$objext)
11836
 
       # This assumes that the test object file only shows up
11837
 
       # once in the compiler output.
11838
 
       if test "$p" = "conftest.$objext"; then
11839
 
         pre_test_object_deps_done=yes
11840
 
         continue
11841
 
       fi
11842
 
 
11843
 
       if test "$pre_test_object_deps_done" = no; then
11844
 
         if test -z "$predep_objects_CXX"; then
11845
 
           predep_objects_CXX="$p"
11846
 
         else
11847
 
           predep_objects_CXX="$predep_objects_CXX $p"
11848
 
         fi
11849
 
       else
11850
 
         if test -z "$postdep_objects_CXX"; then
11851
 
           postdep_objects_CXX="$p"
11852
 
         else
11853
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
11854
 
         fi
11855
 
       fi
11856
 
       ;;
11857
 
 
11858
 
    *) ;; # Ignore the rest.
11859
 
 
11860
 
    esac
11861
 
  done
11862
 
 
11863
 
  # Clean up.
11864
 
  rm -f a.out a.exe
11865
 
else
11866
 
  echo "libtool.m4: error: problem compiling CXX test program"
11867
 
fi
11868
 
 
11869
 
$rm -f confest.$objext
11870
 
 
11871
 
# PORTME: override above test on systems where it is broken
11872
 
case $host_os in
11873
 
interix3*)
11874
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11875
 
  # hack all around it, let's just trust "g++" to DTRT.
11876
 
  predep_objects_CXX=
11877
 
  postdep_objects_CXX=
11878
 
  postdeps_CXX=
11879
 
  ;;
11880
 
 
11881
 
solaris*)
11882
 
  case $cc_basename in
11883
 
  CC*)
11884
 
    # Adding this requires a known-good setup of shared libraries for
11885
 
    # Sun compiler versions before 5.6, else PIC objects from an old
11886
 
    # archive will be linked into the output, leading to subtle bugs.
11887
 
    postdeps_CXX='-lCstd -lCrun'
11888
 
    ;;
11889
 
  esac
11890
 
  ;;
11891
 
esac
11892
 
 
11893
 
 
11894
 
case " $postdeps_CXX " in
11895
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11896
 
esac
11897
 
 
11898
 
lt_prog_compiler_wl_CXX=
11899
 
lt_prog_compiler_pic_CXX=
11900
 
lt_prog_compiler_static_CXX=
11901
 
 
11902
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11903
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11904
 
 
11905
 
  # C++ specific cases for pic, static, wl, etc.
11906
 
  if test "$GXX" = yes; then
11907
 
    lt_prog_compiler_wl_CXX='-Wl,'
11908
 
    lt_prog_compiler_static_CXX='-static'
11909
 
 
11910
 
    case $host_os in
11911
 
    aix*)
11912
 
      # All AIX code is PIC.
11913
 
      if test "$host_cpu" = ia64; then
11914
 
        # AIX 5 now supports IA64 processor
11915
 
        lt_prog_compiler_static_CXX='-Bstatic'
11916
 
      fi
11917
 
      ;;
11918
 
    amigaos*)
11919
 
      # FIXME: we need at least 68020 code to build shared libraries, but
11920
 
      # adding the `-m68020' flag to GCC prevents building anything better,
11921
 
      # like `-m68040'.
11922
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11923
 
      ;;
11924
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11925
 
      # PIC is the default for these OSes.
11926
 
      ;;
11927
 
    mingw* | os2* | pw32*)
11928
 
      # This hack is so that the source file can tell whether it is being
11929
 
      # built for inclusion in a dll (and should export symbols for example).
11930
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11931
 
      ;;
11932
 
    darwin* | rhapsody*)
11933
 
      # PIC is the default on this platform
11934
 
      # Common symbols not allowed in MH_DYLIB files
11935
 
      lt_prog_compiler_pic_CXX='-fno-common'
11936
 
      ;;
11937
 
    *djgpp*)
11938
 
      # DJGPP does not support shared libraries at all
11939
 
      lt_prog_compiler_pic_CXX=
11940
 
      ;;
11941
 
    interix3*)
11942
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11943
 
      # Instead, we relocate shared libraries at runtime.
11944
 
      ;;
11945
 
    sysv4*MP*)
11946
 
      if test -d /usr/nec; then
11947
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
11948
 
      fi
11949
 
      ;;
11950
 
    hpux*)
11951
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11952
 
      # not for PA HP-UX.
11953
 
      case $host_cpu in
11954
 
      hppa*64*|ia64*)
11955
 
        ;;
11956
 
      *)
11957
 
        lt_prog_compiler_pic_CXX='-fPIC'
11958
 
        ;;
11959
 
      esac
11960
 
      ;;
11961
 
    *)
11962
 
      lt_prog_compiler_pic_CXX='-fPIC'
11963
 
      ;;
11964
 
    esac
11965
 
  else
11966
 
    case $host_os in
11967
 
      aix4* | aix5*)
11968
 
        # All AIX code is PIC.
11969
 
        if test "$host_cpu" = ia64; then
11970
 
          # AIX 5 now supports IA64 processor
11971
 
          lt_prog_compiler_static_CXX='-Bstatic'
11972
 
        else
11973
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11974
 
        fi
11975
 
        ;;
11976
 
      chorus*)
11977
 
        case $cc_basename in
11978
 
        cxch68*)
11979
 
          # Green Hills C++ Compiler
11980
 
          # _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"
11981
 
          ;;
11982
 
        esac
11983
 
        ;;
11984
 
       darwin*)
11985
 
         # PIC is the default on this platform
11986
 
         # Common symbols not allowed in MH_DYLIB files
11987
 
         case $cc_basename in
11988
 
           xlc*)
11989
 
           lt_prog_compiler_pic_CXX='-qnocommon'
11990
 
           lt_prog_compiler_wl_CXX='-Wl,'
11991
 
           ;;
11992
 
         esac
11993
 
       ;;
11994
 
      dgux*)
11995
 
        case $cc_basename in
11996
 
          ec++*)
11997
 
            lt_prog_compiler_pic_CXX='-KPIC'
11998
 
            ;;
11999
 
          ghcx*)
12000
 
            # Green Hills C++ Compiler
12001
 
            lt_prog_compiler_pic_CXX='-pic'
12002
 
            ;;
12003
 
          *)
12004
 
            ;;
12005
 
        esac
12006
 
        ;;
12007
 
      freebsd* | dragonfly*)
12008
 
        # FreeBSD uses GNU C++
12009
 
        ;;
12010
 
      hpux9* | hpux10* | hpux11*)
12011
 
        case $cc_basename in
12012
 
          CC*)
12013
 
            lt_prog_compiler_wl_CXX='-Wl,'
12014
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12015
 
            if test "$host_cpu" != ia64; then
12016
 
              lt_prog_compiler_pic_CXX='+Z'
12017
 
            fi
12018
 
            ;;
12019
 
          aCC*)
12020
 
            lt_prog_compiler_wl_CXX='-Wl,'
12021
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12022
 
            case $host_cpu in
12023
 
            hppa*64*|ia64*)
12024
 
              # +Z the default
12025
 
              ;;
12026
 
            *)
12027
 
              lt_prog_compiler_pic_CXX='+Z'
12028
 
              ;;
12029
 
            esac
12030
 
            ;;
12031
 
          *)
12032
 
            ;;
12033
 
        esac
12034
 
        ;;
12035
 
      interix*)
12036
 
        # This is c89, which is MS Visual C++ (no shared libs)
12037
 
        # Anyone wants to do a port?
12038
 
        ;;
12039
 
      irix5* | irix6* | nonstopux*)
12040
 
        case $cc_basename in
12041
 
          CC*)
12042
 
            lt_prog_compiler_wl_CXX='-Wl,'
12043
 
            lt_prog_compiler_static_CXX='-non_shared'
12044
 
            # CC pic flag -KPIC is the default.
12045
 
            ;;
12046
 
          *)
12047
 
            ;;
12048
 
        esac
12049
 
        ;;
12050
 
      linux* | k*bsd*-gnu)
12051
 
        case $cc_basename in
12052
 
          KCC*)
12053
 
            # KAI C++ Compiler
12054
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12055
 
            lt_prog_compiler_pic_CXX='-fPIC'
12056
 
            ;;
12057
 
          icpc* | ecpc*)
12058
 
            # Intel C++
12059
 
            lt_prog_compiler_wl_CXX='-Wl,'
12060
 
            lt_prog_compiler_pic_CXX='-KPIC'
12061
 
            lt_prog_compiler_static_CXX='-static'
12062
 
            ;;
12063
 
          pgCC*)
12064
 
            # Portland Group C++ compiler.
12065
 
            lt_prog_compiler_wl_CXX='-Wl,'
12066
 
            lt_prog_compiler_pic_CXX='-fpic'
12067
 
            lt_prog_compiler_static_CXX='-Bstatic'
12068
 
            ;;
12069
 
          cxx*)
12070
 
            # Compaq C++
12071
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12072
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12073
 
            lt_prog_compiler_pic_CXX=
12074
 
            lt_prog_compiler_static_CXX='-non_shared'
12075
 
            ;;
12076
 
          *)
12077
 
            ;;
12078
 
        esac
12079
 
        ;;
12080
 
      lynxos*)
12081
 
        ;;
12082
 
      m88k*)
12083
 
        ;;
12084
 
      mvs*)
12085
 
        case $cc_basename in
12086
 
          cxx*)
12087
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12088
 
            ;;
12089
 
          *)
12090
 
            ;;
12091
 
        esac
12092
 
        ;;
12093
 
      netbsd* | netbsdelf*-gnu)
12094
 
        ;;
12095
 
      osf3* | osf4* | osf5*)
12096
 
        case $cc_basename in
12097
 
          KCC*)
12098
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12099
 
            ;;
12100
 
          RCC*)
12101
 
            # Rational C++ 2.4.1
12102
 
            lt_prog_compiler_pic_CXX='-pic'
12103
 
            ;;
12104
 
          cxx*)
12105
 
            # Digital/Compaq C++
12106
 
            lt_prog_compiler_wl_CXX='-Wl,'
12107
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12108
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12109
 
            lt_prog_compiler_pic_CXX=
12110
 
            lt_prog_compiler_static_CXX='-non_shared'
12111
 
            ;;
12112
 
          *)
12113
 
            ;;
12114
 
        esac
12115
 
        ;;
12116
 
      psos*)
12117
 
        ;;
12118
 
      solaris*)
12119
 
        case $cc_basename in
12120
 
          CC*)
12121
 
            # Sun C++ 4.2, 5.x and Centerline C++
12122
 
            lt_prog_compiler_pic_CXX='-KPIC'
12123
 
            lt_prog_compiler_static_CXX='-Bstatic'
12124
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12125
 
            ;;
12126
 
          gcx*)
12127
 
            # Green Hills C++ Compiler
12128
 
            lt_prog_compiler_pic_CXX='-PIC'
12129
 
            ;;
12130
 
          *)
12131
 
            ;;
12132
 
        esac
12133
 
        ;;
12134
 
      sunos4*)
12135
 
        case $cc_basename in
12136
 
          CC*)
12137
 
            # Sun C++ 4.x
12138
 
            lt_prog_compiler_pic_CXX='-pic'
12139
 
            lt_prog_compiler_static_CXX='-Bstatic'
12140
 
            ;;
12141
 
          lcc*)
12142
 
            # Lucid
12143
 
            lt_prog_compiler_pic_CXX='-pic'
12144
 
            ;;
12145
 
          *)
12146
 
            ;;
12147
 
        esac
12148
 
        ;;
12149
 
      tandem*)
12150
 
        case $cc_basename in
12151
 
          NCC*)
12152
 
            # NonStop-UX NCC 3.20
12153
 
            lt_prog_compiler_pic_CXX='-KPIC'
12154
 
            ;;
12155
 
          *)
12156
 
            ;;
12157
 
        esac
12158
 
        ;;
12159
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12160
 
        case $cc_basename in
12161
 
          CC*)
12162
 
            lt_prog_compiler_wl_CXX='-Wl,'
12163
 
            lt_prog_compiler_pic_CXX='-KPIC'
12164
 
            lt_prog_compiler_static_CXX='-Bstatic'
12165
 
            ;;
12166
 
        esac
12167
 
        ;;
12168
 
      vxworks*)
12169
 
        ;;
12170
 
      *)
12171
 
        lt_prog_compiler_can_build_shared_CXX=no
12172
 
        ;;
12173
 
    esac
12174
 
  fi
12175
 
 
12176
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12177
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12178
 
 
12179
 
#
12180
 
# Check to make sure the PIC flag actually works.
12181
 
#
12182
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12183
 
  
12184
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12185
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12186
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12187
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12188
 
else
12189
 
  lt_prog_compiler_pic_works_CXX=no
12190
 
  ac_outfile=conftest.$ac_objext
12191
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12192
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12193
 
   # Insert the option either (1) after the last *FLAGS variable, or
12194
 
   # (2) before a word containing "conftest.", or (3) at the end.
12195
 
   # Note that $ac_compile itself does not contain backslashes and begins
12196
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12197
 
   # The option is referenced via a variable to avoid confusing sed.
12198
 
   lt_compile=`echo "$ac_compile" | $SED \
12199
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12200
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12201
 
   -e 's:$: $lt_compiler_flag:'`
12202
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12203
 
   (eval "$lt_compile" 2>conftest.err)
12204
 
   ac_status=$?
12205
 
   cat conftest.err >&5
12206
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12207
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12208
 
     # The compiler can only warn and ignore the option if not recognized
12209
 
     # So say no if there are warnings other than the usual output.
12210
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12211
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12212
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12213
 
       lt_prog_compiler_pic_works_CXX=yes
12214
 
     fi
12215
 
   fi
12216
 
   $rm conftest*
12217
 
 
12218
 
fi
12219
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12220
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12221
 
 
12222
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12223
 
    case $lt_prog_compiler_pic_CXX in
12224
 
     "" | " "*) ;;
12225
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12226
 
     esac
12227
 
else
12228
 
    lt_prog_compiler_pic_CXX=
12229
 
     lt_prog_compiler_can_build_shared_CXX=no
12230
 
fi
12231
 
 
12232
 
fi
12233
 
case $host_os in
12234
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12235
 
  *djgpp*)
12236
 
    lt_prog_compiler_pic_CXX=
12237
 
    ;;
12238
 
  *)
12239
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12240
 
    ;;
12241
 
esac
12242
 
 
12243
 
#
12244
 
# Check to make sure the static flag actually works.
12245
 
#
12246
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12247
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12248
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12249
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12250
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12251
 
else
12252
 
  lt_prog_compiler_static_works_CXX=no
12253
 
   save_LDFLAGS="$LDFLAGS"
12254
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12255
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12256
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12257
 
     # The linker can only warn and ignore the option if not recognized
12258
 
     # So say no if there are warnings
12259
 
     if test -s conftest.err; then
12260
 
       # Append any errors to the config.log.
12261
 
       cat conftest.err 1>&5
12262
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12263
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12264
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12265
 
         lt_prog_compiler_static_works_CXX=yes
12266
 
       fi
12267
 
     else
12268
 
       lt_prog_compiler_static_works_CXX=yes
12269
 
     fi
12270
 
   fi
12271
 
   $rm conftest*
12272
 
   LDFLAGS="$save_LDFLAGS"
12273
 
 
12274
 
fi
12275
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12276
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12277
 
 
12278
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12279
 
    :
12280
 
else
12281
 
    lt_prog_compiler_static_CXX=
12282
 
fi
12283
 
 
12284
 
 
12285
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12286
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12287
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12288
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12289
 
else
12290
 
  lt_cv_prog_compiler_c_o_CXX=no
12291
 
   $rm -r conftest 2>/dev/null
12292
 
   mkdir conftest
12293
 
   cd conftest
12294
 
   mkdir out
12295
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12296
 
 
12297
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12298
 
   # Insert the option either (1) after the last *FLAGS variable, or
12299
 
   # (2) before a word containing "conftest.", or (3) at the end.
12300
 
   # Note that $ac_compile itself does not contain backslashes and begins
12301
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12302
 
   lt_compile=`echo "$ac_compile" | $SED \
12303
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12304
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12305
 
   -e 's:$: $lt_compiler_flag:'`
12306
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12307
 
   (eval "$lt_compile" 2>out/conftest.err)
12308
 
   ac_status=$?
12309
 
   cat out/conftest.err >&5
12310
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12311
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12312
 
   then
12313
 
     # The compiler can only warn and ignore the option if not recognized
12314
 
     # So say no if there are warnings
12315
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12316
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12317
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12318
 
       lt_cv_prog_compiler_c_o_CXX=yes
12319
 
     fi
12320
 
   fi
12321
 
   chmod u+w . 2>&5
12322
 
   $rm conftest*
12323
 
   # SGI C++ compiler will create directory out/ii_files/ for
12324
 
   # template instantiation
12325
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12326
 
   $rm out/* && rmdir out
12327
 
   cd ..
12328
 
   rmdir conftest
12329
 
   $rm conftest*
12330
 
 
12331
 
fi
12332
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12333
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12334
 
 
12335
 
 
12336
 
hard_links="nottested"
12337
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12338
 
  # do not overwrite the value of need_locks provided by the user
12339
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12340
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12341
 
  hard_links=yes
12342
 
  $rm conftest*
12343
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12344
 
  touch conftest.a
12345
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12346
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12347
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
12348
 
echo "${ECHO_T}$hard_links" >&6; }
12349
 
  if test "$hard_links" = no; then
12350
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12351
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12352
 
    need_locks=warn
12353
 
  fi
12354
 
else
12355
 
  need_locks=no
12356
 
fi
12357
 
 
12358
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12359
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12360
 
 
12361
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12362
 
  case $host_os in
12363
 
  aix4* | aix5*)
12364
 
    # If we're using GNU nm, then we don't want the "-C" option.
12365
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12366
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12367
 
      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'
12368
 
    else
12369
 
      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'
12370
 
    fi
12371
 
    ;;
12372
 
  pw32*)
12373
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12374
 
  ;;
12375
 
  cygwin* | mingw*)
12376
 
    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'
12377
 
  ;;
12378
 
  linux* | k*bsd*-gnu)
12379
 
    link_all_deplibs_CXX=no
12380
 
  ;;
12381
 
  *)
12382
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12383
 
  ;;
12384
 
  esac
12385
 
 
12386
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12387
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12388
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12389
 
 
12390
 
#
12391
 
# Do we need to explicitly link libc?
12392
 
#
12393
 
case "x$archive_cmds_need_lc_CXX" in
12394
 
x|xyes)
12395
 
  # Assume -lc should be added
12396
 
  archive_cmds_need_lc_CXX=yes
12397
 
 
12398
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12399
 
    case $archive_cmds_CXX in
12400
 
    *'~'*)
12401
 
      # FIXME: we may have to deal with multi-command sequences.
12402
 
      ;;
12403
 
    '$CC '*)
12404
 
      # Test whether the compiler implicitly links with -lc since on some
12405
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12406
 
      # to ld, don't add -lc before -lgcc.
12407
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12408
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12409
 
      $rm conftest*
12410
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12411
 
 
12412
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12413
 
  (eval $ac_compile) 2>&5
12414
 
  ac_status=$?
12415
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416
 
  (exit $ac_status); } 2>conftest.err; then
12417
 
        soname=conftest
12418
 
        lib=conftest
12419
 
        libobjs=conftest.$ac_objext
12420
 
        deplibs=
12421
 
        wl=$lt_prog_compiler_wl_CXX
12422
 
        pic_flag=$lt_prog_compiler_pic_CXX
12423
 
        compiler_flags=-v
12424
 
        linker_flags=-v
12425
 
        verstring=
12426
 
        output_objdir=.
12427
 
        libname=conftest
12428
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12429
 
        allow_undefined_flag_CXX=
12430
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12431
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12432
 
  ac_status=$?
12433
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434
 
  (exit $ac_status); }
12435
 
        then
12436
 
          archive_cmds_need_lc_CXX=no
12437
 
        else
12438
 
          archive_cmds_need_lc_CXX=yes
12439
 
        fi
12440
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12441
 
      else
12442
 
        cat conftest.err 1>&5
12443
 
      fi
12444
 
      $rm conftest*
12445
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12446
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12447
 
      ;;
12448
 
    esac
12449
 
  fi
12450
 
  ;;
12451
 
esac
12452
 
 
12453
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12454
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12455
 
library_names_spec=
12456
 
libname_spec='lib$name'
12457
 
soname_spec=
12458
 
shrext_cmds=".so"
12459
 
postinstall_cmds=
12460
 
postuninstall_cmds=
12461
 
finish_cmds=
12462
 
finish_eval=
12463
 
shlibpath_var=
12464
 
shlibpath_overrides_runpath=unknown
12465
 
version_type=none
12466
 
dynamic_linker="$host_os ld.so"
12467
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12468
 
if test "$GCC" = yes; then
12469
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12470
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12471
 
    # if the path contains ";" then we assume it to be the separator
12472
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12473
 
    # assumed that no part of a normal pathname contains ";" but that should
12474
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12475
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12476
 
  else
12477
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12478
 
  fi
12479
 
else
12480
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12481
 
fi
12482
 
need_lib_prefix=unknown
12483
 
hardcode_into_libs=no
12484
 
 
12485
 
# when you set need_version to no, make sure it does not cause -set_version
12486
 
# flags to be left without arguments
12487
 
need_version=unknown
12488
 
 
12489
 
case $host_os in
12490
 
aix3*)
12491
 
  version_type=linux
12492
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12493
 
  shlibpath_var=LIBPATH
12494
 
 
12495
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12496
 
  soname_spec='${libname}${release}${shared_ext}$major'
12497
 
  ;;
12498
 
 
12499
 
aix4* | aix5*)
12500
 
  version_type=linux
12501
 
  need_lib_prefix=no
12502
 
  need_version=no
12503
 
  hardcode_into_libs=yes
12504
 
  if test "$host_cpu" = ia64; then
12505
 
    # AIX 5 supports IA64
12506
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12507
 
    shlibpath_var=LD_LIBRARY_PATH
12508
 
  else
12509
 
    # With GCC up to 2.95.x, collect2 would create an import file
12510
 
    # for dependence libraries.  The import file would start with
12511
 
    # the line `#! .'.  This would cause the generated library to
12512
 
    # depend on `.', always an invalid library.  This was fixed in
12513
 
    # development snapshots of GCC prior to 3.0.
12514
 
    case $host_os in
12515
 
      aix4 | aix4.[01] | aix4.[01].*)
12516
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12517
 
           echo ' yes '
12518
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12519
 
        :
12520
 
      else
12521
 
        can_build_shared=no
12522
 
      fi
12523
 
      ;;
12524
 
    esac
12525
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12526
 
    # soname into executable. Probably we can add versioning support to
12527
 
    # collect2, so additional links can be useful in future.
12528
 
    if test "$aix_use_runtimelinking" = yes; then
12529
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12530
 
      # instead of lib<name>.a to let people know that these are not
12531
 
      # typical AIX shared libraries.
12532
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12533
 
    else
12534
 
      # We preserve .a as extension for shared libraries through AIX4.2
12535
 
      # and later when we are not doing run time linking.
12536
 
      library_names_spec='${libname}${release}.a $libname.a'
12537
 
      soname_spec='${libname}${release}${shared_ext}$major'
12538
 
    fi
12539
 
    shlibpath_var=LIBPATH
12540
 
  fi
12541
 
  ;;
12542
 
 
12543
 
amigaos*)
12544
 
  library_names_spec='$libname.ixlibrary $libname.a'
12545
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12546
 
  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'
12547
 
  ;;
12548
 
 
12549
 
beos*)
12550
 
  library_names_spec='${libname}${shared_ext}'
12551
 
  dynamic_linker="$host_os ld.so"
12552
 
  shlibpath_var=LIBRARY_PATH
12553
 
  ;;
12554
 
 
12555
 
bsdi[45]*)
12556
 
  version_type=linux
12557
 
  need_version=no
12558
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559
 
  soname_spec='${libname}${release}${shared_ext}$major'
12560
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12561
 
  shlibpath_var=LD_LIBRARY_PATH
12562
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12563
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12564
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12565
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12566
 
  # libtool to hard-code these into programs
12567
 
  ;;
12568
 
 
12569
 
cygwin* | mingw* | pw32*)
12570
 
  version_type=windows
12571
 
  shrext_cmds=".dll"
12572
 
  need_version=no
12573
 
  need_lib_prefix=no
12574
 
 
12575
 
  case $GCC,$host_os in
12576
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12577
 
    library_names_spec='$libname.dll.a'
12578
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12579
 
    postinstall_cmds='base_file=`basename \${file}`~
12580
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12581
 
      dldir=$destdir/`dirname \$dlpath`~
12582
 
      test -d \$dldir || mkdir -p \$dldir~
12583
 
      $install_prog $dir/$dlname \$dldir/$dlname~
12584
 
      chmod a+x \$dldir/$dlname'
12585
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12586
 
      dlpath=$dir/\$dldll~
12587
 
       $rm \$dlpath'
12588
 
    shlibpath_overrides_runpath=yes
12589
 
 
12590
 
    case $host_os in
12591
 
    cygwin*)
12592
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12593
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12594
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12595
 
      ;;
12596
 
    mingw*)
12597
 
      # MinGW DLLs use traditional 'lib' prefix
12598
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12599
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12600
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12601
 
        # It is most probably a Windows format PATH printed by
12602
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12603
 
        # path with ; separators, and with drive letters. We can handle the
12604
 
        # drive letters (cygwin fileutils understands them), so leave them,
12605
 
        # especially as we might pass files found there to a mingw objdump,
12606
 
        # which wouldn't understand a cygwinified path. Ahh.
12607
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12608
 
      else
12609
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12610
 
      fi
12611
 
      ;;
12612
 
    pw32*)
12613
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12614
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12615
 
      ;;
12616
 
    esac
12617
 
    ;;
12618
 
 
12619
 
  *)
12620
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12621
 
    ;;
12622
 
  esac
12623
 
  dynamic_linker='Win32 ld.exe'
12624
 
  # FIXME: first we should search . and the directory the executable is in
12625
 
  shlibpath_var=PATH
12626
 
  ;;
12627
 
 
12628
 
darwin* | rhapsody*)
12629
 
  dynamic_linker="$host_os dyld"
12630
 
  version_type=darwin
12631
 
  need_lib_prefix=no
12632
 
  need_version=no
12633
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12634
 
  soname_spec='${libname}${release}${major}$shared_ext'
12635
 
  shlibpath_overrides_runpath=yes
12636
 
  shlibpath_var=DYLD_LIBRARY_PATH
12637
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12638
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12639
 
  if test "$GCC" = yes; then
12640
 
    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"`
12641
 
  else
12642
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12643
 
  fi
12644
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12645
 
  ;;
12646
 
 
12647
 
dgux*)
12648
 
  version_type=linux
12649
 
  need_lib_prefix=no
12650
 
  need_version=no
12651
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12652
 
  soname_spec='${libname}${release}${shared_ext}$major'
12653
 
  shlibpath_var=LD_LIBRARY_PATH
12654
 
  ;;
12655
 
 
12656
 
freebsd1*)
12657
 
  dynamic_linker=no
12658
 
  ;;
12659
 
 
12660
 
freebsd* | dragonfly*)
12661
 
  # DragonFly does not have aout.  When/if they implement a new
12662
 
  # versioning mechanism, adjust this.
12663
 
  if test -x /usr/bin/objformat; then
12664
 
    objformat=`/usr/bin/objformat`
12665
 
  else
12666
 
    case $host_os in
12667
 
    freebsd[123]*) objformat=aout ;;
12668
 
    *) objformat=elf ;;
12669
 
    esac
12670
 
  fi
12671
 
  version_type=freebsd-$objformat
12672
 
  case $version_type in
12673
 
    freebsd-elf*)
12674
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12675
 
      need_version=no
12676
 
      need_lib_prefix=no
12677
 
      ;;
12678
 
    freebsd-*)
12679
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12680
 
      need_version=yes
12681
 
      ;;
12682
 
  esac
12683
 
  shlibpath_var=LD_LIBRARY_PATH
12684
 
  case $host_os in
12685
 
  freebsd2*)
12686
 
    shlibpath_overrides_runpath=yes
12687
 
    ;;
12688
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12689
 
    shlibpath_overrides_runpath=yes
12690
 
    hardcode_into_libs=yes
12691
 
    ;;
12692
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12693
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12694
 
    shlibpath_overrides_runpath=no
12695
 
    hardcode_into_libs=yes
12696
 
    ;;
12697
 
  freebsd*) # from 4.6 on
12698
 
    shlibpath_overrides_runpath=yes
12699
 
    hardcode_into_libs=yes
12700
 
    ;;
12701
 
  esac
12702
 
  ;;
12703
 
 
12704
 
gnu*)
12705
 
  version_type=linux
12706
 
  need_lib_prefix=no
12707
 
  need_version=no
12708
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12709
 
  soname_spec='${libname}${release}${shared_ext}$major'
12710
 
  shlibpath_var=LD_LIBRARY_PATH
12711
 
  hardcode_into_libs=yes
12712
 
  ;;
12713
 
 
12714
 
hpux9* | hpux10* | hpux11*)
12715
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12716
 
  # link against other versions.
12717
 
  version_type=sunos
12718
 
  need_lib_prefix=no
12719
 
  need_version=no
12720
 
  case $host_cpu in
12721
 
  ia64*)
12722
 
    shrext_cmds='.so'
12723
 
    hardcode_into_libs=yes
12724
 
    dynamic_linker="$host_os dld.so"
12725
 
    shlibpath_var=LD_LIBRARY_PATH
12726
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12727
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728
 
    soname_spec='${libname}${release}${shared_ext}$major'
12729
 
    if test "X$HPUX_IA64_MODE" = X32; then
12730
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12731
 
    else
12732
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12733
 
    fi
12734
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12735
 
    ;;
12736
 
   hppa*64*)
12737
 
     shrext_cmds='.sl'
12738
 
     hardcode_into_libs=yes
12739
 
     dynamic_linker="$host_os dld.sl"
12740
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12741
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12742
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12743
 
     soname_spec='${libname}${release}${shared_ext}$major'
12744
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12745
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12746
 
     ;;
12747
 
   *)
12748
 
    shrext_cmds='.sl'
12749
 
    dynamic_linker="$host_os dld.sl"
12750
 
    shlibpath_var=SHLIB_PATH
12751
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12752
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12753
 
    soname_spec='${libname}${release}${shared_ext}$major'
12754
 
    ;;
12755
 
  esac
12756
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12757
 
  postinstall_cmds='chmod 555 $lib'
12758
 
  ;;
12759
 
 
12760
 
interix3*)
12761
 
  version_type=linux
12762
 
  need_lib_prefix=no
12763
 
  need_version=no
12764
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12765
 
  soname_spec='${libname}${release}${shared_ext}$major'
12766
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12767
 
  shlibpath_var=LD_LIBRARY_PATH
12768
 
  shlibpath_overrides_runpath=no
12769
 
  hardcode_into_libs=yes
12770
 
  ;;
12771
 
 
12772
 
irix5* | irix6* | nonstopux*)
12773
 
  case $host_os in
12774
 
    nonstopux*) version_type=nonstopux ;;
12775
 
    *)
12776
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12777
 
                version_type=linux
12778
 
        else
12779
 
                version_type=irix
12780
 
        fi ;;
12781
 
  esac
12782
 
  need_lib_prefix=no
12783
 
  need_version=no
12784
 
  soname_spec='${libname}${release}${shared_ext}$major'
12785
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12786
 
  case $host_os in
12787
 
  irix5* | nonstopux*)
12788
 
    libsuff= shlibsuff=
12789
 
    ;;
12790
 
  *)
12791
 
    case $LD in # libtool.m4 will add one of these switches to LD
12792
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12793
 
      libsuff= shlibsuff= libmagic=32-bit;;
12794
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12795
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12796
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12797
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12798
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12799
 
    esac
12800
 
    ;;
12801
 
  esac
12802
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12803
 
  shlibpath_overrides_runpath=no
12804
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12805
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12806
 
  hardcode_into_libs=yes
12807
 
  ;;
12808
 
 
12809
 
# No shared lib support for Linux oldld, aout, or coff.
12810
 
linux*oldld* | linux*aout* | linux*coff*)
12811
 
  dynamic_linker=no
12812
 
  ;;
12813
 
 
12814
 
# This must be Linux ELF.
12815
 
linux* | k*bsd*-gnu)
12816
 
  version_type=linux
12817
 
  need_lib_prefix=no
12818
 
  need_version=no
12819
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12820
 
  soname_spec='${libname}${release}${shared_ext}$major'
12821
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12822
 
  shlibpath_var=LD_LIBRARY_PATH
12823
 
  shlibpath_overrides_runpath=no
12824
 
  # This implies no fast_install, which is unacceptable.
12825
 
  # Some rework will be needed to allow for fast_install
12826
 
  # before this can be enabled.
12827
 
  hardcode_into_libs=yes
12828
 
 
12829
 
  # Append ld.so.conf contents to the search path
12830
 
  if test -f /etc/ld.so.conf; then
12831
 
    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' ' '`
12832
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12833
 
  fi
12834
 
 
12835
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12836
 
  # powerpc, because MkLinux only supported shared libraries with the
12837
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12838
 
  # most powerpc-linux boxes support dynamic linking these days and
12839
 
  # people can always --disable-shared, the test was removed, and we
12840
 
  # assume the GNU/Linux dynamic linker is in use.
12841
 
  dynamic_linker='GNU/Linux ld.so'
12842
 
  ;;
12843
 
 
12844
 
netbsdelf*-gnu)
12845
 
  version_type=linux
12846
 
  need_lib_prefix=no
12847
 
  need_version=no
12848
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12849
 
  soname_spec='${libname}${release}${shared_ext}$major'
12850
 
  shlibpath_var=LD_LIBRARY_PATH
12851
 
  shlibpath_overrides_runpath=no
12852
 
  hardcode_into_libs=yes
12853
 
  dynamic_linker='NetBSD ld.elf_so'
12854
 
  ;;
12855
 
 
12856
 
netbsd*)
12857
 
  version_type=sunos
12858
 
  need_lib_prefix=no
12859
 
  need_version=no
12860
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12861
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12862
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12863
 
    dynamic_linker='NetBSD (a.out) ld.so'
12864
 
  else
12865
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866
 
    soname_spec='${libname}${release}${shared_ext}$major'
12867
 
    dynamic_linker='NetBSD ld.elf_so'
12868
 
  fi
12869
 
  shlibpath_var=LD_LIBRARY_PATH
12870
 
  shlibpath_overrides_runpath=yes
12871
 
  hardcode_into_libs=yes
12872
 
  ;;
12873
 
 
12874
 
newsos6)
12875
 
  version_type=linux
12876
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877
 
  shlibpath_var=LD_LIBRARY_PATH
12878
 
  shlibpath_overrides_runpath=yes
12879
 
  ;;
12880
 
 
12881
 
nto-qnx*)
12882
 
  version_type=linux
12883
 
  need_lib_prefix=no
12884
 
  need_version=no
12885
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12886
 
  soname_spec='${libname}${release}${shared_ext}$major'
12887
 
  shlibpath_var=LD_LIBRARY_PATH
12888
 
  shlibpath_overrides_runpath=yes
12889
 
  ;;
12890
 
 
12891
 
openbsd*)
12892
 
  version_type=sunos
12893
 
  sys_lib_dlsearch_path_spec="/usr/lib"
12894
 
  need_lib_prefix=no
12895
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12896
 
  case $host_os in
12897
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12898
 
    *)                         need_version=no  ;;
12899
 
  esac
12900
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12901
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12902
 
  shlibpath_var=LD_LIBRARY_PATH
12903
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12904
 
    case $host_os in
12905
 
      openbsd2.[89] | openbsd2.[89].*)
12906
 
        shlibpath_overrides_runpath=no
12907
 
        ;;
12908
 
      *)
12909
 
        shlibpath_overrides_runpath=yes
12910
 
        ;;
12911
 
      esac
12912
 
  else
12913
 
    shlibpath_overrides_runpath=yes
12914
 
  fi
12915
 
  ;;
12916
 
 
12917
 
os2*)
12918
 
  libname_spec='$name'
12919
 
  shrext_cmds=".dll"
12920
 
  need_lib_prefix=no
12921
 
  library_names_spec='$libname${shared_ext} $libname.a'
12922
 
  dynamic_linker='OS/2 ld.exe'
12923
 
  shlibpath_var=LIBPATH
12924
 
  ;;
12925
 
 
12926
 
osf3* | osf4* | osf5*)
12927
 
  version_type=osf
12928
 
  need_lib_prefix=no
12929
 
  need_version=no
12930
 
  soname_spec='${libname}${release}${shared_ext}$major'
12931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932
 
  shlibpath_var=LD_LIBRARY_PATH
12933
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12934
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12935
 
  ;;
12936
 
 
12937
 
solaris*)
12938
 
  version_type=linux
12939
 
  need_lib_prefix=no
12940
 
  need_version=no
12941
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12942
 
  soname_spec='${libname}${release}${shared_ext}$major'
12943
 
  shlibpath_var=LD_LIBRARY_PATH
12944
 
  shlibpath_overrides_runpath=yes
12945
 
  hardcode_into_libs=yes
12946
 
  # ldd complains unless libraries are executable
12947
 
  postinstall_cmds='chmod +x $lib'
12948
 
  ;;
12949
 
 
12950
 
sunos4*)
12951
 
  version_type=sunos
12952
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12953
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12954
 
  shlibpath_var=LD_LIBRARY_PATH
12955
 
  shlibpath_overrides_runpath=yes
12956
 
  if test "$with_gnu_ld" = yes; then
12957
 
    need_lib_prefix=no
12958
 
  fi
12959
 
  need_version=yes
12960
 
  ;;
12961
 
 
12962
 
sysv4 | sysv4.3*)
12963
 
  version_type=linux
12964
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12965
 
  soname_spec='${libname}${release}${shared_ext}$major'
12966
 
  shlibpath_var=LD_LIBRARY_PATH
12967
 
  case $host_vendor in
12968
 
    sni)
12969
 
      shlibpath_overrides_runpath=no
12970
 
      need_lib_prefix=no
12971
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
12972
 
      runpath_var=LD_RUN_PATH
12973
 
      ;;
12974
 
    siemens)
12975
 
      need_lib_prefix=no
12976
 
      ;;
12977
 
    motorola)
12978
 
      need_lib_prefix=no
12979
 
      need_version=no
12980
 
      shlibpath_overrides_runpath=no
12981
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12982
 
      ;;
12983
 
  esac
12984
 
  ;;
12985
 
 
12986
 
sysv4*MP*)
12987
 
  if test -d /usr/nec ;then
12988
 
    version_type=linux
12989
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12990
 
    soname_spec='$libname${shared_ext}.$major'
12991
 
    shlibpath_var=LD_LIBRARY_PATH
12992
 
  fi
12993
 
  ;;
12994
 
 
12995
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12996
 
  version_type=freebsd-elf
12997
 
  need_lib_prefix=no
12998
 
  need_version=no
12999
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13000
 
  soname_spec='${libname}${release}${shared_ext}$major'
13001
 
  shlibpath_var=LD_LIBRARY_PATH
13002
 
  hardcode_into_libs=yes
13003
 
  if test "$with_gnu_ld" = yes; then
13004
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13005
 
    shlibpath_overrides_runpath=no
13006
 
  else
13007
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13008
 
    shlibpath_overrides_runpath=yes
13009
 
    case $host_os in
13010
 
      sco3.2v5*)
13011
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13012
 
        ;;
13013
 
    esac
13014
 
  fi
13015
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13016
 
  ;;
13017
 
 
13018
 
uts4*)
13019
 
  version_type=linux
13020
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13021
 
  soname_spec='${libname}${release}${shared_ext}$major'
13022
 
  shlibpath_var=LD_LIBRARY_PATH
13023
 
  ;;
13024
 
 
13025
 
*)
13026
 
  dynamic_linker=no
13027
 
  ;;
13028
 
esac
13029
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13030
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13031
 
test "$dynamic_linker" = no && can_build_shared=no
13032
 
 
13033
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13034
 
if test "$GCC" = yes; then
13035
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13036
 
fi
13037
 
 
13038
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13039
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13040
 
hardcode_action_CXX=
13041
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13042
 
   test -n "$runpath_var_CXX" || \
13043
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13044
 
 
13045
 
  # We can hardcode non-existant directories.
13046
 
  if test "$hardcode_direct_CXX" != no &&
13047
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13048
 
     # have to relink, otherwise we might link with an installed library
13049
 
     # when we should be linking with a yet-to-be-installed one
13050
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13051
 
     test "$hardcode_minus_L_CXX" != no; then
13052
 
    # Linking always hardcodes the temporary library directory.
13053
 
    hardcode_action_CXX=relink
13054
 
  else
13055
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13056
 
    hardcode_action_CXX=immediate
13057
 
  fi
13058
 
else
13059
 
  # We cannot hardcode anything, or else we can only hardcode existing
13060
 
  # directories.
13061
 
  hardcode_action_CXX=unsupported
13062
 
fi
13063
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13064
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13065
 
 
13066
 
if test "$hardcode_action_CXX" = relink; then
13067
 
  # Fast installation is not supported
13068
 
  enable_fast_install=no
13069
 
elif test "$shlibpath_overrides_runpath" = yes ||
13070
 
     test "$enable_shared" = no; then
13071
 
  # Fast installation is not necessary
13072
 
  enable_fast_install=needless
13073
 
fi
13074
 
 
13075
 
 
13076
 
# The else clause should only fire when bootstrapping the
13077
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13078
 
# with your package, and you will get complaints that there are
13079
 
# no rules to generate ltmain.sh.
13080
 
if test -f "$ltmain"; then
13081
 
  # See if we are running on zsh, and set the options which allow our commands through
13082
 
  # without removal of \ escapes.
13083
 
  if test -n "${ZSH_VERSION+set}" ; then
13084
 
    setopt NO_GLOB_SUBST
13085
 
  fi
13086
 
  # Now quote all the things that may contain metacharacters while being
13087
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13088
 
  # variables and quote the copies for generation of the libtool script.
13089
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13090
 
    SED SHELL STRIP \
13091
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13092
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13093
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13094
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13095
 
    lt_cv_sys_global_symbol_to_c_name_address \
13096
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13097
 
    old_postinstall_cmds old_postuninstall_cmds \
13098
 
    compiler_CXX \
13099
 
    CC_CXX \
13100
 
    LD_CXX \
13101
 
    lt_prog_compiler_wl_CXX \
13102
 
    lt_prog_compiler_pic_CXX \
13103
 
    lt_prog_compiler_static_CXX \
13104
 
    lt_prog_compiler_no_builtin_flag_CXX \
13105
 
    export_dynamic_flag_spec_CXX \
13106
 
    thread_safe_flag_spec_CXX \
13107
 
    whole_archive_flag_spec_CXX \
13108
 
    enable_shared_with_static_runtimes_CXX \
13109
 
    old_archive_cmds_CXX \
13110
 
    old_archive_from_new_cmds_CXX \
13111
 
    predep_objects_CXX \
13112
 
    postdep_objects_CXX \
13113
 
    predeps_CXX \
13114
 
    postdeps_CXX \
13115
 
    compiler_lib_search_path_CXX \
13116
 
    archive_cmds_CXX \
13117
 
    archive_expsym_cmds_CXX \
13118
 
    postinstall_cmds_CXX \
13119
 
    postuninstall_cmds_CXX \
13120
 
    old_archive_from_expsyms_cmds_CXX \
13121
 
    allow_undefined_flag_CXX \
13122
 
    no_undefined_flag_CXX \
13123
 
    export_symbols_cmds_CXX \
13124
 
    hardcode_libdir_flag_spec_CXX \
13125
 
    hardcode_libdir_flag_spec_ld_CXX \
13126
 
    hardcode_libdir_separator_CXX \
13127
 
    hardcode_automatic_CXX \
13128
 
    module_cmds_CXX \
13129
 
    module_expsym_cmds_CXX \
13130
 
    lt_cv_prog_compiler_c_o_CXX \
13131
 
    exclude_expsyms_CXX \
13132
 
    include_expsyms_CXX; do
13133
 
 
13134
 
    case $var in
13135
 
    old_archive_cmds_CXX | \
13136
 
    old_archive_from_new_cmds_CXX | \
13137
 
    archive_cmds_CXX | \
13138
 
    archive_expsym_cmds_CXX | \
13139
 
    module_cmds_CXX | \
13140
 
    module_expsym_cmds_CXX | \
13141
 
    old_archive_from_expsyms_cmds_CXX | \
13142
 
    export_symbols_cmds_CXX | \
13143
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13144
 
    postinstall_cmds | postuninstall_cmds | \
13145
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13146
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13147
 
      # Double-quote double-evaled strings.
13148
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13149
 
      ;;
13150
 
    *)
13151
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13152
 
      ;;
13153
 
    esac
13154
 
  done
13155
 
 
13156
 
  case $lt_echo in
13157
 
  *'\$0 --fallback-echo"')
13158
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13159
 
    ;;
13160
 
  esac
13161
 
 
13162
 
cfgfile="$ofile"
13163
 
 
13164
 
  cat <<__EOF__ >> "$cfgfile"
13165
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13166
 
 
13167
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13168
 
 
13169
 
# Shell to use when invoking shell scripts.
13170
 
SHELL=$lt_SHELL
13171
 
 
13172
 
# Whether or not to build shared libraries.
13173
 
build_libtool_libs=$enable_shared
13174
 
 
13175
 
# Whether or not to build static libraries.
13176
 
build_old_libs=$enable_static
13177
 
 
13178
 
# Whether or not to add -lc for building shared libraries.
13179
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13180
 
 
13181
 
# Whether or not to disallow shared libs when runtime libs are static
13182
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13183
 
 
13184
 
# Whether or not to optimize for fast installation.
13185
 
fast_install=$enable_fast_install
13186
 
 
13187
 
# The host system.
13188
 
host_alias=$host_alias
13189
 
host=$host
13190
 
host_os=$host_os
13191
 
 
13192
 
# The build system.
13193
 
build_alias=$build_alias
13194
 
build=$build
13195
 
build_os=$build_os
13196
 
 
13197
 
# An echo program that does not interpret backslashes.
13198
 
echo=$lt_echo
13199
 
 
13200
 
# The archiver.
13201
 
AR=$lt_AR
13202
 
AR_FLAGS=$lt_AR_FLAGS
13203
 
 
13204
 
# A C compiler.
13205
 
LTCC=$lt_LTCC
13206
 
 
13207
 
# LTCC compiler flags.
13208
 
LTCFLAGS=$lt_LTCFLAGS
13209
 
 
13210
 
# A language-specific compiler.
13211
 
CC=$lt_compiler_CXX
13212
 
 
13213
 
# Is the compiler the GNU C compiler?
13214
 
with_gcc=$GCC_CXX
13215
 
 
13216
 
# An ERE matcher.
13217
 
EGREP=$lt_EGREP
13218
 
 
13219
 
# The linker used to build libraries.
13220
 
LD=$lt_LD_CXX
13221
 
 
13222
 
# Whether we need hard or soft links.
13223
 
LN_S=$lt_LN_S
13224
 
 
13225
 
# A BSD-compatible nm program.
13226
 
NM=$lt_NM
13227
 
 
13228
 
# A symbol stripping program
13229
 
STRIP=$lt_STRIP
13230
 
 
13231
 
# Used to examine libraries when file_magic_cmd begins "file"
13232
 
MAGIC_CMD=$MAGIC_CMD
13233
 
 
13234
 
# Used on cygwin: DLL creation program.
13235
 
DLLTOOL="$DLLTOOL"
13236
 
 
13237
 
# Used on cygwin: object dumper.
13238
 
OBJDUMP="$OBJDUMP"
13239
 
 
13240
 
# Used on cygwin: assembler.
13241
 
AS="$AS"
13242
 
 
13243
 
# The name of the directory that contains temporary libtool files.
13244
 
objdir=$objdir
13245
 
 
13246
 
# How to create reloadable object files.
13247
 
reload_flag=$lt_reload_flag
13248
 
reload_cmds=$lt_reload_cmds
13249
 
 
13250
 
# How to pass a linker flag through the compiler.
13251
 
wl=$lt_lt_prog_compiler_wl_CXX
13252
 
 
13253
 
# Object file suffix (normally "o").
13254
 
objext="$ac_objext"
13255
 
 
13256
 
# Old archive suffix (normally "a").
13257
 
libext="$libext"
13258
 
 
13259
 
# Shared library suffix (normally ".so").
13260
 
shrext_cmds='$shrext_cmds'
13261
 
 
13262
 
# Executable file suffix (normally "").
13263
 
exeext="$exeext"
13264
 
 
13265
 
# Additional compiler flags for building library objects.
13266
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13267
 
pic_mode=$pic_mode
13268
 
 
13269
 
# What is the maximum length of a command?
13270
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13271
 
 
13272
 
# Does compiler simultaneously support -c and -o options?
13273
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13274
 
 
13275
 
# Must we lock files when doing compilation?
13276
 
need_locks=$lt_need_locks
13277
 
 
13278
 
# Do we need the lib prefix for modules?
13279
 
need_lib_prefix=$need_lib_prefix
13280
 
 
13281
 
# Do we need a version for libraries?
13282
 
need_version=$need_version
13283
 
 
13284
 
# Whether dlopen is supported.
13285
 
dlopen_support=$enable_dlopen
13286
 
 
13287
 
# Whether dlopen of programs is supported.
13288
 
dlopen_self=$enable_dlopen_self
13289
 
 
13290
 
# Whether dlopen of statically linked programs is supported.
13291
 
dlopen_self_static=$enable_dlopen_self_static
13292
 
 
13293
 
# Compiler flag to prevent dynamic linking.
13294
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13295
 
 
13296
 
# Compiler flag to turn off builtin functions.
13297
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13298
 
 
13299
 
# Compiler flag to allow reflexive dlopens.
13300
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13301
 
 
13302
 
# Compiler flag to generate shared objects directly from archives.
13303
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13304
 
 
13305
 
# Compiler flag to generate thread-safe objects.
13306
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13307
 
 
13308
 
# Library versioning type.
13309
 
version_type=$version_type
13310
 
 
13311
 
# Format of library name prefix.
13312
 
libname_spec=$lt_libname_spec
13313
 
 
13314
 
# List of archive names.  First name is the real one, the rest are links.
13315
 
# The last name is the one that the linker finds with -lNAME.
13316
 
library_names_spec=$lt_library_names_spec
13317
 
 
13318
 
# The coded name of the library, if different from the real name.
13319
 
soname_spec=$lt_soname_spec
13320
 
 
13321
 
# Commands used to build and install an old-style archive.
13322
 
RANLIB=$lt_RANLIB
13323
 
old_archive_cmds=$lt_old_archive_cmds_CXX
13324
 
old_postinstall_cmds=$lt_old_postinstall_cmds
13325
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13326
 
 
13327
 
# Create an old-style archive from a shared archive.
13328
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13329
 
 
13330
 
# Create a temporary old-style archive to link instead of a shared archive.
13331
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13332
 
 
13333
 
# Commands used to build and install a shared archive.
13334
 
archive_cmds=$lt_archive_cmds_CXX
13335
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13336
 
postinstall_cmds=$lt_postinstall_cmds
13337
 
postuninstall_cmds=$lt_postuninstall_cmds
13338
 
 
13339
 
# Commands used to build a loadable module (assumed same as above if empty)
13340
 
module_cmds=$lt_module_cmds_CXX
13341
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
13342
 
 
13343
 
# Commands to strip libraries.
13344
 
old_striplib=$lt_old_striplib
13345
 
striplib=$lt_striplib
13346
 
 
13347
 
# Dependencies to place before the objects being linked to create a
13348
 
# shared library.
13349
 
predep_objects=$lt_predep_objects_CXX
13350
 
 
13351
 
# Dependencies to place after the objects being linked to create a
13352
 
# shared library.
13353
 
postdep_objects=$lt_postdep_objects_CXX
13354
 
 
13355
 
# Dependencies to place before the objects being linked to create a
13356
 
# shared library.
13357
 
predeps=$lt_predeps_CXX
13358
 
 
13359
 
# Dependencies to place after the objects being linked to create a
13360
 
# shared library.
13361
 
postdeps=$lt_postdeps_CXX
13362
 
 
13363
 
# The library search path used internally by the compiler when linking
13364
 
# a shared library.
13365
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13366
 
 
13367
 
# Method to check whether dependent libraries are shared objects.
13368
 
deplibs_check_method=$lt_deplibs_check_method
13369
 
 
13370
 
# Command to use when deplibs_check_method == file_magic.
13371
 
file_magic_cmd=$lt_file_magic_cmd
13372
 
 
13373
 
# Flag that allows shared libraries with undefined symbols to be built.
13374
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
13375
 
 
13376
 
# Flag that forces no undefined symbols.
13377
 
no_undefined_flag=$lt_no_undefined_flag_CXX
13378
 
 
13379
 
# Commands used to finish a libtool library installation in a directory.
13380
 
finish_cmds=$lt_finish_cmds
13381
 
 
13382
 
# Same as above, but a single script fragment to be evaled but not shown.
13383
 
finish_eval=$lt_finish_eval
13384
 
 
13385
 
# Take the output of nm and produce a listing of raw symbols and C names.
13386
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13387
 
 
13388
 
# Transform the output of nm in a proper C declaration
13389
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13390
 
 
13391
 
# Transform the output of nm in a C name address pair
13392
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13393
 
 
13394
 
# This is the shared library runtime path variable.
13395
 
runpath_var=$runpath_var
13396
 
 
13397
 
# This is the shared library path variable.
13398
 
shlibpath_var=$shlibpath_var
13399
 
 
13400
 
# Is shlibpath searched before the hard-coded library search path?
13401
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13402
 
 
13403
 
# How to hardcode a shared library path into an executable.
13404
 
hardcode_action=$hardcode_action_CXX
13405
 
 
13406
 
# Whether we should hardcode library paths into libraries.
13407
 
hardcode_into_libs=$hardcode_into_libs
13408
 
 
13409
 
# Flag to hardcode \$libdir into a binary during linking.
13410
 
# This must work even if \$libdir does not exist.
13411
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13412
 
 
13413
 
# If ld is used when linking, flag to hardcode \$libdir into
13414
 
# a binary during linking. This must work even if \$libdir does
13415
 
# not exist.
13416
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13417
 
 
13418
 
# Whether we need a single -rpath flag with a separated argument.
13419
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13420
 
 
13421
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13422
 
# resulting binary.
13423
 
hardcode_direct=$hardcode_direct_CXX
13424
 
 
13425
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13426
 
# resulting binary.
13427
 
hardcode_minus_L=$hardcode_minus_L_CXX
13428
 
 
13429
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13430
 
# the resulting binary.
13431
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13432
 
 
13433
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
13434
 
# and all subsequent libraries and executables linked against it.
13435
 
hardcode_automatic=$hardcode_automatic_CXX
13436
 
 
13437
 
# Variables whose values should be saved in libtool wrapper scripts and
13438
 
# restored at relink time.
13439
 
variables_saved_for_relink="$variables_saved_for_relink"
13440
 
 
13441
 
# Whether libtool must link a program against all its dependency libraries.
13442
 
link_all_deplibs=$link_all_deplibs_CXX
13443
 
 
13444
 
# Compile-time system search path for libraries
13445
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13446
 
 
13447
 
# Run-time system search path for libraries
13448
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13449
 
 
13450
 
# Fix the shell variable \$srcfile for the compiler.
13451
 
fix_srcfile_path="$fix_srcfile_path_CXX"
13452
 
 
13453
 
# Set to yes if exported symbols are required.
13454
 
always_export_symbols=$always_export_symbols_CXX
13455
 
 
13456
 
# The commands to list exported symbols.
13457
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
13458
 
 
13459
 
# The commands to extract the exported symbol list from a shared archive.
13460
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13461
 
 
13462
 
# Symbols that should not be listed in the preloaded symbols.
13463
 
exclude_expsyms=$lt_exclude_expsyms_CXX
13464
 
 
13465
 
# Symbols that must always be exported.
13466
 
include_expsyms=$lt_include_expsyms_CXX
13467
 
 
13468
 
# ### END LIBTOOL TAG CONFIG: $tagname
13469
 
 
13470
 
__EOF__
13471
 
 
13472
 
 
13473
 
else
13474
 
  # If there is no Makefile yet, we rely on a make rule to execute
13475
 
  # `config.status --recheck' to rerun these tests and create the
13476
 
  # libtool script then.
13477
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13478
 
  if test -f "$ltmain_in"; then
13479
 
    test -f Makefile && make "$ltmain"
13480
 
  fi
13481
 
fi
13482
 
 
13483
 
 
13484
 
ac_ext=c
13485
 
ac_cpp='$CPP $CPPFLAGS'
13486
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13487
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13488
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13489
 
 
13490
 
CC=$lt_save_CC
13491
 
LDCXX=$LD
13492
 
LD=$lt_save_LD
13493
 
GCC=$lt_save_GCC
13494
 
with_gnu_ldcxx=$with_gnu_ld
13495
 
with_gnu_ld=$lt_save_with_gnu_ld
13496
 
lt_cv_path_LDCXX=$lt_cv_path_LD
13497
 
lt_cv_path_LD=$lt_save_path_LD
13498
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13499
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13500
 
 
13501
 
        else
13502
 
          tagname=""
13503
 
        fi
13504
 
        ;;
13505
 
 
13506
 
      F77)
13507
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
13508
 
          
13509
 
ac_ext=f
13510
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13511
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13512
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13513
 
 
13514
 
 
13515
 
archive_cmds_need_lc_F77=no
13516
 
allow_undefined_flag_F77=
13517
 
always_export_symbols_F77=no
13518
 
archive_expsym_cmds_F77=
13519
 
export_dynamic_flag_spec_F77=
13520
 
hardcode_direct_F77=no
13521
 
hardcode_libdir_flag_spec_F77=
13522
 
hardcode_libdir_flag_spec_ld_F77=
13523
 
hardcode_libdir_separator_F77=
13524
 
hardcode_minus_L_F77=no
13525
 
hardcode_automatic_F77=no
13526
 
module_cmds_F77=
13527
 
module_expsym_cmds_F77=
13528
 
link_all_deplibs_F77=unknown
13529
 
old_archive_cmds_F77=$old_archive_cmds
13530
 
no_undefined_flag_F77=
13531
 
whole_archive_flag_spec_F77=
13532
 
enable_shared_with_static_runtimes_F77=no
13533
 
 
13534
 
# Source file extension for f77 test sources.
13535
 
ac_ext=f
13536
 
 
13537
 
# Object file extension for compiled f77 test sources.
13538
 
objext=o
13539
 
objext_F77=$objext
13540
 
 
13541
 
# Code to be used in simple compile tests
13542
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13543
 
 
13544
 
# Code to be used in simple link tests
13545
 
lt_simple_link_test_code="      program t\n      end\n"
13546
 
 
13547
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13548
 
 
13549
 
# If no C compiler was specified, use CC.
13550
 
LTCC=${LTCC-"$CC"}
13551
 
 
13552
 
# If no C compiler flags were specified, use CFLAGS.
13553
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13554
 
 
13555
 
# Allow CC to be a program name with arguments.
13556
 
compiler=$CC
13557
 
 
13558
 
 
13559
 
# save warnings/boilerplate of simple test code
13560
 
ac_outfile=conftest.$ac_objext
13561
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13562
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13563
 
_lt_compiler_boilerplate=`cat conftest.err`
13564
 
$rm conftest*
13565
 
 
13566
 
ac_outfile=conftest.$ac_objext
13567
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13568
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13569
 
_lt_linker_boilerplate=`cat conftest.err`
13570
 
$rm conftest*
13571
 
 
13572
 
 
13573
 
# Allow CC to be a program name with arguments.
13574
 
lt_save_CC="$CC"
13575
 
CC=${F77-"f77"}
13576
 
compiler=$CC
13577
 
compiler_F77=$CC
13578
 
for cc_temp in $compiler""; do
13579
 
  case $cc_temp in
13580
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13581
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13582
 
    \-*) ;;
13583
 
    *) break;;
13584
 
  esac
13585
 
done
13586
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13587
 
 
13588
 
 
13589
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13590
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13591
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13592
 
echo "${ECHO_T}$can_build_shared" >&6; }
13593
 
 
13594
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13595
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13596
 
test "$can_build_shared" = "no" && enable_shared=no
13597
 
 
13598
 
# On AIX, shared libraries and static libraries use the same namespace, and
13599
 
# are all built from PIC.
13600
 
case $host_os in
13601
 
aix3*)
13602
 
  test "$enable_shared" = yes && enable_static=no
13603
 
  if test -n "$RANLIB"; then
13604
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13605
 
    postinstall_cmds='$RANLIB $lib'
13606
 
  fi
13607
 
  ;;
13608
 
aix4* | aix5*)
13609
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13610
 
    test "$enable_shared" = yes && enable_static=no
13611
 
  fi
13612
 
  ;;
13613
 
esac
13614
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13615
 
echo "${ECHO_T}$enable_shared" >&6; }
13616
 
 
13617
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13618
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13619
 
# Make sure either enable_shared or enable_static is yes.
13620
 
test "$enable_shared" = yes || enable_static=yes
13621
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13622
 
echo "${ECHO_T}$enable_static" >&6; }
13623
 
 
13624
 
GCC_F77="$G77"
13625
 
LD_F77="$LD"
13626
 
 
13627
 
lt_prog_compiler_wl_F77=
13628
 
lt_prog_compiler_pic_F77=
13629
 
lt_prog_compiler_static_F77=
13630
 
 
13631
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13632
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13633
 
 
13634
 
  if test "$GCC" = yes; then
13635
 
    lt_prog_compiler_wl_F77='-Wl,'
13636
 
    lt_prog_compiler_static_F77='-static'
13637
 
 
13638
 
    case $host_os in
13639
 
      aix*)
13640
 
      # All AIX code is PIC.
13641
 
      if test "$host_cpu" = ia64; then
13642
 
        # AIX 5 now supports IA64 processor
13643
 
        lt_prog_compiler_static_F77='-Bstatic'
13644
 
      fi
13645
 
      ;;
13646
 
 
13647
 
    amigaos*)
13648
 
      # FIXME: we need at least 68020 code to build shared libraries, but
13649
 
      # adding the `-m68020' flag to GCC prevents building anything better,
13650
 
      # like `-m68040'.
13651
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13652
 
      ;;
13653
 
 
13654
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13655
 
      # PIC is the default for these OSes.
13656
 
      ;;
13657
 
 
13658
 
    mingw* | pw32* | os2*)
13659
 
      # This hack is so that the source file can tell whether it is being
13660
 
      # built for inclusion in a dll (and should export symbols for example).
13661
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13662
 
      ;;
13663
 
 
13664
 
    darwin* | rhapsody*)
13665
 
      # PIC is the default on this platform
13666
 
      # Common symbols not allowed in MH_DYLIB files
13667
 
      lt_prog_compiler_pic_F77='-fno-common'
13668
 
      ;;
13669
 
 
13670
 
    interix3*)
13671
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13672
 
      # Instead, we relocate shared libraries at runtime.
13673
 
      ;;
13674
 
 
13675
 
    msdosdjgpp*)
13676
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13677
 
      # on systems that don't support them.
13678
 
      lt_prog_compiler_can_build_shared_F77=no
13679
 
      enable_shared=no
13680
 
      ;;
13681
 
 
13682
 
    sysv4*MP*)
13683
 
      if test -d /usr/nec; then
13684
 
        lt_prog_compiler_pic_F77=-Kconform_pic
13685
 
      fi
13686
 
      ;;
13687
 
 
13688
 
    hpux*)
13689
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13690
 
      # not for PA HP-UX.
13691
 
      case $host_cpu in
13692
 
      hppa*64*|ia64*)
13693
 
        # +Z the default
13694
 
        ;;
13695
 
      *)
13696
 
        lt_prog_compiler_pic_F77='-fPIC'
13697
 
        ;;
13698
 
      esac
13699
 
      ;;
13700
 
 
13701
 
    *)
13702
 
      lt_prog_compiler_pic_F77='-fPIC'
13703
 
      ;;
13704
 
    esac
13705
 
  else
13706
 
    # PORTME Check for flag to pass linker flags through the system compiler.
13707
 
    case $host_os in
13708
 
    aix*)
13709
 
      lt_prog_compiler_wl_F77='-Wl,'
13710
 
      if test "$host_cpu" = ia64; then
13711
 
        # AIX 5 now supports IA64 processor
13712
 
        lt_prog_compiler_static_F77='-Bstatic'
13713
 
      else
13714
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13715
 
      fi
13716
 
      ;;
13717
 
      darwin*)
13718
 
        # PIC is the default on this platform
13719
 
        # Common symbols not allowed in MH_DYLIB files
13720
 
       case $cc_basename in
13721
 
         xlc*)
13722
 
         lt_prog_compiler_pic_F77='-qnocommon'
13723
 
         lt_prog_compiler_wl_F77='-Wl,'
13724
 
         ;;
13725
 
       esac
13726
 
       ;;
13727
 
 
13728
 
    mingw* | pw32* | os2*)
13729
 
      # This hack is so that the source file can tell whether it is being
13730
 
      # built for inclusion in a dll (and should export symbols for example).
13731
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13732
 
      ;;
13733
 
 
13734
 
    hpux9* | hpux10* | hpux11*)
13735
 
      lt_prog_compiler_wl_F77='-Wl,'
13736
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13737
 
      # not for PA HP-UX.
13738
 
      case $host_cpu in
13739
 
      hppa*64*|ia64*)
13740
 
        # +Z the default
13741
 
        ;;
13742
 
      *)
13743
 
        lt_prog_compiler_pic_F77='+Z'
13744
 
        ;;
13745
 
      esac
13746
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13747
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13748
 
      ;;
13749
 
 
13750
 
    irix5* | irix6* | nonstopux*)
13751
 
      lt_prog_compiler_wl_F77='-Wl,'
13752
 
      # PIC (with -KPIC) is the default.
13753
 
      lt_prog_compiler_static_F77='-non_shared'
13754
 
      ;;
13755
 
 
13756
 
    newsos6)
13757
 
      lt_prog_compiler_pic_F77='-KPIC'
13758
 
      lt_prog_compiler_static_F77='-Bstatic'
13759
 
      ;;
13760
 
 
13761
 
    linux* | k*bsd*-gnu)
13762
 
      case $cc_basename in
13763
 
      icc* | ecc*)
13764
 
        lt_prog_compiler_wl_F77='-Wl,'
13765
 
        lt_prog_compiler_pic_F77='-KPIC'
13766
 
        lt_prog_compiler_static_F77='-static'
13767
 
        ;;
13768
 
      pgcc* | pgf77* | pgf90* | pgf95*)
13769
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
13770
 
        # which looks to be a dead project)
13771
 
        lt_prog_compiler_wl_F77='-Wl,'
13772
 
        lt_prog_compiler_pic_F77='-fpic'
13773
 
        lt_prog_compiler_static_F77='-Bstatic'
13774
 
        ;;
13775
 
      ccc*)
13776
 
        lt_prog_compiler_wl_F77='-Wl,'
13777
 
        # All Alpha code is PIC.
13778
 
        lt_prog_compiler_static_F77='-non_shared'
13779
 
        ;;
13780
 
      esac
13781
 
      ;;
13782
 
 
13783
 
    osf3* | osf4* | osf5*)
13784
 
      lt_prog_compiler_wl_F77='-Wl,'
13785
 
      # All OSF/1 code is PIC.
13786
 
      lt_prog_compiler_static_F77='-non_shared'
13787
 
      ;;
13788
 
 
13789
 
    solaris*)
13790
 
      lt_prog_compiler_pic_F77='-KPIC'
13791
 
      lt_prog_compiler_static_F77='-Bstatic'
13792
 
      case $cc_basename in
13793
 
      f77* | f90* | f95*)
13794
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
13795
 
      *)
13796
 
        lt_prog_compiler_wl_F77='-Wl,';;
13797
 
      esac
13798
 
      ;;
13799
 
 
13800
 
    sunos4*)
13801
 
      lt_prog_compiler_wl_F77='-Qoption ld '
13802
 
      lt_prog_compiler_pic_F77='-PIC'
13803
 
      lt_prog_compiler_static_F77='-Bstatic'
13804
 
      ;;
13805
 
 
13806
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
13807
 
      lt_prog_compiler_wl_F77='-Wl,'
13808
 
      lt_prog_compiler_pic_F77='-KPIC'
13809
 
      lt_prog_compiler_static_F77='-Bstatic'
13810
 
      ;;
13811
 
 
13812
 
    sysv4*MP*)
13813
 
      if test -d /usr/nec ;then
13814
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
13815
 
        lt_prog_compiler_static_F77='-Bstatic'
13816
 
      fi
13817
 
      ;;
13818
 
 
13819
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13820
 
      lt_prog_compiler_wl_F77='-Wl,'
13821
 
      lt_prog_compiler_pic_F77='-KPIC'
13822
 
      lt_prog_compiler_static_F77='-Bstatic'
13823
 
      ;;
13824
 
 
13825
 
    unicos*)
13826
 
      lt_prog_compiler_wl_F77='-Wl,'
13827
 
      lt_prog_compiler_can_build_shared_F77=no
13828
 
      ;;
13829
 
 
13830
 
    uts4*)
13831
 
      lt_prog_compiler_pic_F77='-pic'
13832
 
      lt_prog_compiler_static_F77='-Bstatic'
13833
 
      ;;
13834
 
 
13835
 
    *)
13836
 
      lt_prog_compiler_can_build_shared_F77=no
13837
 
      ;;
13838
 
    esac
13839
 
  fi
13840
 
 
13841
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13842
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13843
 
 
13844
 
#
13845
 
# Check to make sure the PIC flag actually works.
13846
 
#
13847
 
if test -n "$lt_prog_compiler_pic_F77"; then
13848
 
  
13849
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13850
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13851
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13852
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13853
 
else
13854
 
  lt_prog_compiler_pic_works_F77=no
13855
 
  ac_outfile=conftest.$ac_objext
13856
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13857
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13858
 
   # Insert the option either (1) after the last *FLAGS variable, or
13859
 
   # (2) before a word containing "conftest.", or (3) at the end.
13860
 
   # Note that $ac_compile itself does not contain backslashes and begins
13861
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13862
 
   # The option is referenced via a variable to avoid confusing sed.
13863
 
   lt_compile=`echo "$ac_compile" | $SED \
13864
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13865
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13866
 
   -e 's:$: $lt_compiler_flag:'`
13867
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13868
 
   (eval "$lt_compile" 2>conftest.err)
13869
 
   ac_status=$?
13870
 
   cat conftest.err >&5
13871
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13872
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
13873
 
     # The compiler can only warn and ignore the option if not recognized
13874
 
     # So say no if there are warnings other than the usual output.
13875
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13876
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13877
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13878
 
       lt_prog_compiler_pic_works_F77=yes
13879
 
     fi
13880
 
   fi
13881
 
   $rm conftest*
13882
 
 
13883
 
fi
13884
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13885
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13886
 
 
13887
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13888
 
    case $lt_prog_compiler_pic_F77 in
13889
 
     "" | " "*) ;;
13890
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13891
 
     esac
13892
 
else
13893
 
    lt_prog_compiler_pic_F77=
13894
 
     lt_prog_compiler_can_build_shared_F77=no
13895
 
fi
13896
 
 
13897
 
fi
13898
 
case $host_os in
13899
 
  # For platforms which do not support PIC, -DPIC is meaningless:
13900
 
  *djgpp*)
13901
 
    lt_prog_compiler_pic_F77=
13902
 
    ;;
13903
 
  *)
13904
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13905
 
    ;;
13906
 
esac
13907
 
 
13908
 
#
13909
 
# Check to make sure the static flag actually works.
13910
 
#
13911
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13912
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13913
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13914
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13915
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13916
 
else
13917
 
  lt_prog_compiler_static_works_F77=no
13918
 
   save_LDFLAGS="$LDFLAGS"
13919
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13920
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13921
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13922
 
     # The linker can only warn and ignore the option if not recognized
13923
 
     # So say no if there are warnings
13924
 
     if test -s conftest.err; then
13925
 
       # Append any errors to the config.log.
13926
 
       cat conftest.err 1>&5
13927
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13928
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13929
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13930
 
         lt_prog_compiler_static_works_F77=yes
13931
 
       fi
13932
 
     else
13933
 
       lt_prog_compiler_static_works_F77=yes
13934
 
     fi
13935
 
   fi
13936
 
   $rm conftest*
13937
 
   LDFLAGS="$save_LDFLAGS"
13938
 
 
13939
 
fi
13940
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13941
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13942
 
 
13943
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13944
 
    :
13945
 
else
13946
 
    lt_prog_compiler_static_F77=
13947
 
fi
13948
 
 
13949
 
 
13950
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13951
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13952
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13954
 
else
13955
 
  lt_cv_prog_compiler_c_o_F77=no
13956
 
   $rm -r conftest 2>/dev/null
13957
 
   mkdir conftest
13958
 
   cd conftest
13959
 
   mkdir out
13960
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13961
 
 
13962
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
13963
 
   # Insert the option either (1) after the last *FLAGS variable, or
13964
 
   # (2) before a word containing "conftest.", or (3) at the end.
13965
 
   # Note that $ac_compile itself does not contain backslashes and begins
13966
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
13967
 
   lt_compile=`echo "$ac_compile" | $SED \
13968
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13969
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13970
 
   -e 's:$: $lt_compiler_flag:'`
13971
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13972
 
   (eval "$lt_compile" 2>out/conftest.err)
13973
 
   ac_status=$?
13974
 
   cat out/conftest.err >&5
13975
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
13976
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13977
 
   then
13978
 
     # The compiler can only warn and ignore the option if not recognized
13979
 
     # So say no if there are warnings
13980
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13981
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13982
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13983
 
       lt_cv_prog_compiler_c_o_F77=yes
13984
 
     fi
13985
 
   fi
13986
 
   chmod u+w . 2>&5
13987
 
   $rm conftest*
13988
 
   # SGI C++ compiler will create directory out/ii_files/ for
13989
 
   # template instantiation
13990
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13991
 
   $rm out/* && rmdir out
13992
 
   cd ..
13993
 
   rmdir conftest
13994
 
   $rm conftest*
13995
 
 
13996
 
fi
13997
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13998
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13999
 
 
14000
 
 
14001
 
hard_links="nottested"
14002
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14003
 
  # do not overwrite the value of need_locks provided by the user
14004
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14005
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14006
 
  hard_links=yes
14007
 
  $rm conftest*
14008
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14009
 
  touch conftest.a
14010
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14011
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14012
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14013
 
echo "${ECHO_T}$hard_links" >&6; }
14014
 
  if test "$hard_links" = no; then
14015
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14016
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14017
 
    need_locks=warn
14018
 
  fi
14019
 
else
14020
 
  need_locks=no
14021
 
fi
14022
 
 
14023
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14024
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14025
 
 
14026
 
  runpath_var=
14027
 
  allow_undefined_flag_F77=
14028
 
  enable_shared_with_static_runtimes_F77=no
14029
 
  archive_cmds_F77=
14030
 
  archive_expsym_cmds_F77=
14031
 
  old_archive_From_new_cmds_F77=
14032
 
  old_archive_from_expsyms_cmds_F77=
14033
 
  export_dynamic_flag_spec_F77=
14034
 
  whole_archive_flag_spec_F77=
14035
 
  thread_safe_flag_spec_F77=
14036
 
  hardcode_libdir_flag_spec_F77=
14037
 
  hardcode_libdir_flag_spec_ld_F77=
14038
 
  hardcode_libdir_separator_F77=
14039
 
  hardcode_direct_F77=no
14040
 
  hardcode_minus_L_F77=no
14041
 
  hardcode_shlibpath_var_F77=unsupported
14042
 
  link_all_deplibs_F77=unknown
14043
 
  hardcode_automatic_F77=no
14044
 
  module_cmds_F77=
14045
 
  module_expsym_cmds_F77=
14046
 
  always_export_symbols_F77=no
14047
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14048
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14049
 
  # included in the symbol list
14050
 
  include_expsyms_F77=
14051
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14052
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14053
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14054
 
  # as well as any symbol that contains `d'.
14055
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14056
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14057
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14058
 
  # the symbol is explicitly referenced.  Since portable code cannot
14059
 
  # rely on this symbol name, it's probably fine to never include it in
14060
 
  # preloaded symbol tables.
14061
 
  extract_expsyms_cmds=
14062
 
  # Just being paranoid about ensuring that cc_basename is set.
14063
 
  for cc_temp in $compiler""; do
14064
 
  case $cc_temp in
14065
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14066
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14067
 
    \-*) ;;
14068
 
    *) break;;
14069
 
  esac
14070
 
done
14071
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14072
 
 
14073
 
  case $host_os in
14074
 
  cygwin* | mingw* | pw32*)
14075
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14076
 
    # When not using gcc, we currently assume that we are using
14077
 
    # Microsoft Visual C++.
14078
 
    if test "$GCC" != yes; then
14079
 
      with_gnu_ld=no
14080
 
    fi
14081
 
    ;;
14082
 
  interix*)
14083
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14084
 
    with_gnu_ld=yes
14085
 
    ;;
14086
 
  openbsd*)
14087
 
    with_gnu_ld=no
14088
 
    ;;
14089
 
  esac
14090
 
 
14091
 
  ld_shlibs_F77=yes
14092
 
  if test "$with_gnu_ld" = yes; then
14093
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14094
 
    wlarc='${wl}'
14095
 
 
14096
 
    # Set some defaults for GNU ld with shared library support. These
14097
 
    # are reset later if shared libraries are not supported. Putting them
14098
 
    # here allows them to be overridden if necessary.
14099
 
    runpath_var=LD_RUN_PATH
14100
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14101
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14102
 
    # ancient GNU ld didn't support --whole-archive et. al.
14103
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14104
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14105
 
      else
14106
 
        whole_archive_flag_spec_F77=
14107
 
    fi
14108
 
    supports_anon_versioning=no
14109
 
    case `$LD -v 2>/dev/null` in
14110
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14111
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14112
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14113
 
      *\ 2.11.*) ;; # other 2.11 versions
14114
 
      *) supports_anon_versioning=yes ;;
14115
 
    esac
14116
 
 
14117
 
    # See if GNU ld supports shared libraries.
14118
 
    case $host_os in
14119
 
    aix3* | aix4* | aix5*)
14120
 
      # On AIX/PPC, the GNU linker is very broken
14121
 
      if test "$host_cpu" != ia64; then
14122
 
        ld_shlibs_F77=no
14123
 
        cat <<EOF 1>&2
14124
 
 
14125
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14126
 
*** to be unable to reliably create shared libraries on AIX.
14127
 
*** Therefore, libtool is disabling shared libraries support.  If you
14128
 
*** really care for shared libraries, you may want to modify your PATH
14129
 
*** so that a non-GNU linker is found, and then restart.
14130
 
 
14131
 
EOF
14132
 
      fi
14133
 
      ;;
14134
 
 
14135
 
    amigaos*)
14136
 
      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)'
14137
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14138
 
      hardcode_minus_L_F77=yes
14139
 
 
14140
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14141
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14142
 
      # to version 4, is to share data among multiple programs linked
14143
 
      # with the same dynamic library.  Since this doesn't match the
14144
 
      # behavior of shared libraries on other platforms, we can't use
14145
 
      # them.
14146
 
      ld_shlibs_F77=no
14147
 
      ;;
14148
 
 
14149
 
    beos*)
14150
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14151
 
        allow_undefined_flag_F77=unsupported
14152
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14153
 
        # support --undefined.  This deserves some investigation.  FIXME
14154
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155
 
      else
14156
 
        ld_shlibs_F77=no
14157
 
      fi
14158
 
      ;;
14159
 
 
14160
 
    cygwin* | mingw* | pw32*)
14161
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14162
 
      # as there is no search path for DLLs.
14163
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14164
 
      allow_undefined_flag_F77=unsupported
14165
 
      always_export_symbols_F77=no
14166
 
      enable_shared_with_static_runtimes_F77=yes
14167
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14168
 
 
14169
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14170
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14171
 
        # If the export-symbols file already is a .def file (1st line
14172
 
        # is EXPORTS), use it as is; otherwise, prepend...
14173
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14174
 
          cp $export_symbols $output_objdir/$soname.def;
14175
 
        else
14176
 
          echo EXPORTS > $output_objdir/$soname.def;
14177
 
          cat $export_symbols >> $output_objdir/$soname.def;
14178
 
        fi~
14179
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14180
 
      else
14181
 
        ld_shlibs_F77=no
14182
 
      fi
14183
 
      ;;
14184
 
 
14185
 
    interix3*)
14186
 
      hardcode_direct_F77=no
14187
 
      hardcode_shlibpath_var_F77=no
14188
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14189
 
      export_dynamic_flag_spec_F77='${wl}-E'
14190
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14191
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14192
 
      # default) and relocated if they conflict, which is a slow very memory
14193
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14194
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14195
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14196
 
      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'
14197
 
      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'
14198
 
      ;;
14199
 
 
14200
 
    linux* | k*bsd*-gnu)
14201
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14202
 
        tmp_addflag=
14203
 
        case $cc_basename,$host_cpu in
14204
 
        pgcc*)                          # Portland Group C compiler
14205
 
          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'
14206
 
          tmp_addflag=' $pic_flag'
14207
 
          ;;
14208
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14209
 
          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'
14210
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14211
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14212
 
          tmp_addflag=' -i_dynamic' ;;
14213
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14214
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14215
 
        ifc* | ifort*)                  # Intel Fortran compiler
14216
 
          tmp_addflag=' -nofor_main' ;;
14217
 
        esac
14218
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14219
 
 
14220
 
        if test $supports_anon_versioning = yes; then
14221
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14222
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14223
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14224
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14225
 
        fi
14226
 
        link_all_deplibs_F77=no
14227
 
      else
14228
 
        ld_shlibs_F77=no
14229
 
      fi
14230
 
      ;;
14231
 
 
14232
 
    netbsd* | netbsdelf*-gnu)
14233
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14235
 
        wlarc=
14236
 
      else
14237
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14239
 
      fi
14240
 
      ;;
14241
 
 
14242
 
    solaris*)
14243
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14244
 
        ld_shlibs_F77=no
14245
 
        cat <<EOF 1>&2
14246
 
 
14247
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14249
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14250
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14251
 
*** your PATH or compiler configuration so that the native linker is
14252
 
*** used, and then restart.
14253
 
 
14254
 
EOF
14255
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14258
 
      else
14259
 
        ld_shlibs_F77=no
14260
 
      fi
14261
 
      ;;
14262
 
 
14263
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14264
 
      case `$LD -v 2>&1` in
14265
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
14266
 
        ld_shlibs_F77=no
14267
 
        cat <<_LT_EOF 1>&2
14268
 
 
14269
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14270
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14271
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14272
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14273
 
*** your PATH or compiler configuration so that the native linker is
14274
 
*** used, and then restart.
14275
 
 
14276
 
_LT_EOF
14277
 
        ;;
14278
 
        *)
14279
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14280
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14281
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14282
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14283
 
          else
14284
 
            ld_shlibs_F77=no
14285
 
          fi
14286
 
        ;;
14287
 
      esac
14288
 
      ;;
14289
 
 
14290
 
    sunos4*)
14291
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14292
 
      wlarc=
14293
 
      hardcode_direct_F77=yes
14294
 
      hardcode_shlibpath_var_F77=no
14295
 
      ;;
14296
 
 
14297
 
    *)
14298
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301
 
      else
14302
 
        ld_shlibs_F77=no
14303
 
      fi
14304
 
      ;;
14305
 
    esac
14306
 
 
14307
 
    if test "$ld_shlibs_F77" = no; then
14308
 
      runpath_var=
14309
 
      hardcode_libdir_flag_spec_F77=
14310
 
      export_dynamic_flag_spec_F77=
14311
 
      whole_archive_flag_spec_F77=
14312
 
    fi
14313
 
  else
14314
 
    # PORTME fill in a description of your system's linker (not GNU ld)
14315
 
    case $host_os in
14316
 
    aix3*)
14317
 
      allow_undefined_flag_F77=unsupported
14318
 
      always_export_symbols_F77=yes
14319
 
      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'
14320
 
      # Note: this linker hardcodes the directories in LIBPATH if there
14321
 
      # are no directories specified by -L.
14322
 
      hardcode_minus_L_F77=yes
14323
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14324
 
        # Neither direct hardcoding nor static linking is supported with a
14325
 
        # broken collect2.
14326
 
        hardcode_direct_F77=unsupported
14327
 
      fi
14328
 
      ;;
14329
 
 
14330
 
    aix4* | aix5*)
14331
 
      if test "$host_cpu" = ia64; then
14332
 
        # On IA64, the linker does run time linking by default, so we don't
14333
 
        # have to do anything special.
14334
 
        aix_use_runtimelinking=no
14335
 
        exp_sym_flag='-Bexport'
14336
 
        no_entry_flag=""
14337
 
      else
14338
 
        # If we're using GNU nm, then we don't want the "-C" option.
14339
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
14340
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14341
 
          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'
14342
 
        else
14343
 
          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'
14344
 
        fi
14345
 
        aix_use_runtimelinking=no
14346
 
 
14347
 
        # Test if we are trying to use run time linking or normal
14348
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14349
 
        # need to do runtime linking.
14350
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14351
 
          for ld_flag in $LDFLAGS; do
14352
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14353
 
            aix_use_runtimelinking=yes
14354
 
            break
14355
 
          fi
14356
 
          done
14357
 
          ;;
14358
 
        esac
14359
 
 
14360
 
        exp_sym_flag='-bexport'
14361
 
        no_entry_flag='-bnoentry'
14362
 
      fi
14363
 
 
14364
 
      # When large executables or shared objects are built, AIX ld can
14365
 
      # have problems creating the table of contents.  If linking a library
14366
 
      # or program results in "error TOC overflow" add -mminimal-toc to
14367
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14368
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14369
 
 
14370
 
      archive_cmds_F77=''
14371
 
      hardcode_direct_F77=yes
14372
 
      hardcode_libdir_separator_F77=':'
14373
 
      link_all_deplibs_F77=yes
14374
 
 
14375
 
      if test "$GCC" = yes; then
14376
 
        case $host_os in aix4.[012]|aix4.[012].*)
14377
 
        # We only want to do this on AIX 4.2 and lower, the check
14378
 
        # below for broken collect2 doesn't work under 4.3+
14379
 
          collect2name=`${CC} -print-prog-name=collect2`
14380
 
          if test -f "$collect2name" && \
14381
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
14382
 
          then
14383
 
          # We have reworked collect2
14384
 
          hardcode_direct_F77=yes
14385
 
          else
14386
 
          # We have old collect2
14387
 
          hardcode_direct_F77=unsupported
14388
 
          # It fails to find uninstalled libraries when the uninstalled
14389
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
14390
 
          # to unsupported forces relinking
14391
 
          hardcode_minus_L_F77=yes
14392
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
14393
 
          hardcode_libdir_separator_F77=
14394
 
          fi
14395
 
          ;;
14396
 
        esac
14397
 
        shared_flag='-shared'
14398
 
        if test "$aix_use_runtimelinking" = yes; then
14399
 
          shared_flag="$shared_flag "'${wl}-G'
14400
 
        fi
14401
 
      else
14402
 
        # not using gcc
14403
 
        if test "$host_cpu" = ia64; then
14404
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14405
 
        # chokes on -Wl,-G. The following line is correct:
14406
 
          shared_flag='-G'
14407
 
        else
14408
 
          if test "$aix_use_runtimelinking" = yes; then
14409
 
            shared_flag='${wl}-G'
14410
 
          else
14411
 
            shared_flag='${wl}-bM:SRE'
14412
 
          fi
14413
 
        fi
14414
 
      fi
14415
 
 
14416
 
      # It seems that -bexpall does not export symbols beginning with
14417
 
      # underscore (_), so it is better to generate a list of symbols to export.
14418
 
      always_export_symbols_F77=yes
14419
 
      if test "$aix_use_runtimelinking" = yes; then
14420
 
        # Warning - without using the other runtime loading flags (-brtl),
14421
 
        # -berok will link without error, but may produce a broken library.
14422
 
        allow_undefined_flag_F77='-berok'
14423
 
       # Determine the default libpath from the value encoded in an empty executable.
14424
 
       cat >conftest.$ac_ext <<_ACEOF
14425
 
      program main
14426
 
 
14427
 
      end
14428
 
_ACEOF
14429
 
rm -f conftest.$ac_objext conftest$ac_exeext
14430
 
if { (ac_try="$ac_link"
14431
 
case "(($ac_try" in
14432
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433
 
  *) ac_try_echo=$ac_try;;
14434
 
esac
14435
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436
 
  (eval "$ac_link") 2>conftest.er1
14437
 
  ac_status=$?
14438
 
  grep -v '^ *+' conftest.er1 >conftest.err
14439
 
  rm -f conftest.er1
14440
 
  cat conftest.err >&5
14441
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442
 
  (exit $ac_status); } && {
14443
 
         test -z "$ac_f77_werror_flag" ||
14444
 
         test ! -s conftest.err
14445
 
       } && test -s conftest$ac_exeext &&
14446
 
       $as_test_x conftest$ac_exeext; then
14447
 
  
14448
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14449
 
}'`
14450
 
# Check for a 64-bit object if we didn't find anything.
14451
 
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; }
14452
 
}'`; fi
14453
 
else
14454
 
  echo "$as_me: failed program was:" >&5
14455
 
sed 's/^/| /' conftest.$ac_ext >&5
14456
 
 
14457
 
        
14458
 
fi
14459
 
 
14460
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14461
 
      conftest$ac_exeext conftest.$ac_ext
14462
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14463
 
 
14464
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14465
 
        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"
14466
 
       else
14467
 
        if test "$host_cpu" = ia64; then
14468
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14469
 
          allow_undefined_flag_F77="-z nodefs"
14470
 
          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"
14471
 
        else
14472
 
         # Determine the default libpath from the value encoded in an empty executable.
14473
 
         cat >conftest.$ac_ext <<_ACEOF
14474
 
      program main
14475
 
 
14476
 
      end
14477
 
_ACEOF
14478
 
rm -f conftest.$ac_objext conftest$ac_exeext
14479
 
if { (ac_try="$ac_link"
14480
 
case "(($ac_try" in
14481
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14482
 
  *) ac_try_echo=$ac_try;;
14483
 
esac
14484
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14485
 
  (eval "$ac_link") 2>conftest.er1
14486
 
  ac_status=$?
14487
 
  grep -v '^ *+' conftest.er1 >conftest.err
14488
 
  rm -f conftest.er1
14489
 
  cat conftest.err >&5
14490
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491
 
  (exit $ac_status); } && {
14492
 
         test -z "$ac_f77_werror_flag" ||
14493
 
         test ! -s conftest.err
14494
 
       } && test -s conftest$ac_exeext &&
14495
 
       $as_test_x conftest$ac_exeext; then
14496
 
  
14497
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14498
 
}'`
14499
 
# Check for a 64-bit object if we didn't find anything.
14500
 
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; }
14501
 
}'`; fi
14502
 
else
14503
 
  echo "$as_me: failed program was:" >&5
14504
 
sed 's/^/| /' conftest.$ac_ext >&5
14505
 
 
14506
 
        
14507
 
fi
14508
 
 
14509
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14510
 
      conftest$ac_exeext conftest.$ac_ext
14511
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14512
 
 
14513
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14514
 
          # Warning - without using the other run time loading flags,
14515
 
          # -berok will link without error, but may produce a broken library.
14516
 
          no_undefined_flag_F77=' ${wl}-bernotok'
14517
 
          allow_undefined_flag_F77=' ${wl}-berok'
14518
 
          # Exported symbols can be pulled into shared objects from archives
14519
 
          whole_archive_flag_spec_F77='$convenience'
14520
 
          archive_cmds_need_lc_F77=yes
14521
 
          # This is similar to how AIX traditionally builds its shared libraries.
14522
 
          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'
14523
 
        fi
14524
 
      fi
14525
 
      ;;
14526
 
 
14527
 
    amigaos*)
14528
 
      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)'
14529
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14530
 
      hardcode_minus_L_F77=yes
14531
 
      # see comment about different semantics on the GNU ld section
14532
 
      ld_shlibs_F77=no
14533
 
      ;;
14534
 
 
14535
 
    bsdi[45]*)
14536
 
      export_dynamic_flag_spec_F77=-rdynamic
14537
 
      ;;
14538
 
 
14539
 
    cygwin* | mingw* | pw32*)
14540
 
      # When not using gcc, we currently assume that we are using
14541
 
      # Microsoft Visual C++.
14542
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
14543
 
      # no search path for DLLs.
14544
 
      hardcode_libdir_flag_spec_F77=' '
14545
 
      allow_undefined_flag_F77=unsupported
14546
 
      # Tell ltmain to make .lib files, not .a files.
14547
 
      libext=lib
14548
 
      # Tell ltmain to make .dll files, not .so files.
14549
 
      shrext_cmds=".dll"
14550
 
      # FIXME: Setting linknames here is a bad hack.
14551
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14552
 
      # The linker will automatically build a .lib file if we build a DLL.
14553
 
      old_archive_From_new_cmds_F77='true'
14554
 
      # FIXME: Should let the user specify the lib program.
14555
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14556
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14557
 
      enable_shared_with_static_runtimes_F77=yes
14558
 
      ;;
14559
 
 
14560
 
    darwin* | rhapsody*)
14561
 
      case $host_os in
14562
 
        rhapsody* | darwin1.[012])
14563
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14564
 
         ;;
14565
 
       *) # Darwin 1.3 on
14566
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14567
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14568
 
         else
14569
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
14570
 
             10.[012])
14571
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14572
 
               ;;
14573
 
             10.*)
14574
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14575
 
               ;;
14576
 
           esac
14577
 
         fi
14578
 
         ;;
14579
 
      esac
14580
 
      archive_cmds_need_lc_F77=no
14581
 
      hardcode_direct_F77=no
14582
 
      hardcode_automatic_F77=yes
14583
 
      hardcode_shlibpath_var_F77=unsupported
14584
 
      whole_archive_flag_spec_F77=''
14585
 
      link_all_deplibs_F77=yes
14586
 
    if test "$GCC" = yes ; then
14587
 
        output_verbose_link_cmd='echo'
14588
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14589
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14590
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14591
 
      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}'
14592
 
      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}'
14593
 
    else
14594
 
      case $cc_basename in
14595
 
        xlc*)
14596
 
         output_verbose_link_cmd='echo'
14597
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14598
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14599
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14600
 
         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}'
14601
 
          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}'
14602
 
          ;;
14603
 
       *)
14604
 
         ld_shlibs_F77=no
14605
 
          ;;
14606
 
      esac
14607
 
    fi
14608
 
      ;;
14609
 
 
14610
 
    dgux*)
14611
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14612
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14613
 
      hardcode_shlibpath_var_F77=no
14614
 
      ;;
14615
 
 
14616
 
    freebsd1*)
14617
 
      ld_shlibs_F77=no
14618
 
      ;;
14619
 
 
14620
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14621
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
14622
 
    # does not break anything, and helps significantly (at the cost of a little
14623
 
    # extra space).
14624
 
    freebsd2.2*)
14625
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14626
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14627
 
      hardcode_direct_F77=yes
14628
 
      hardcode_shlibpath_var_F77=no
14629
 
      ;;
14630
 
 
14631
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14632
 
    freebsd2*)
14633
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14634
 
      hardcode_direct_F77=yes
14635
 
      hardcode_minus_L_F77=yes
14636
 
      hardcode_shlibpath_var_F77=no
14637
 
      ;;
14638
 
 
14639
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14640
 
    freebsd* | dragonfly*)
14641
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14642
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14643
 
      hardcode_direct_F77=yes
14644
 
      hardcode_shlibpath_var_F77=no
14645
 
      ;;
14646
 
 
14647
 
    hpux9*)
14648
 
      if test "$GCC" = yes; then
14649
 
        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'
14650
 
      else
14651
 
        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'
14652
 
      fi
14653
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14654
 
      hardcode_libdir_separator_F77=:
14655
 
      hardcode_direct_F77=yes
14656
 
 
14657
 
      # hardcode_minus_L: Not really in the search PATH,
14658
 
      # but as the default location of the library.
14659
 
      hardcode_minus_L_F77=yes
14660
 
      export_dynamic_flag_spec_F77='${wl}-E'
14661
 
      ;;
14662
 
 
14663
 
    hpux10*)
14664
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14665
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14666
 
      else
14667
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14668
 
      fi
14669
 
      if test "$with_gnu_ld" = no; then
14670
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14671
 
        hardcode_libdir_separator_F77=:
14672
 
 
14673
 
        hardcode_direct_F77=yes
14674
 
        export_dynamic_flag_spec_F77='${wl}-E'
14675
 
 
14676
 
        # hardcode_minus_L: Not really in the search PATH,
14677
 
        # but as the default location of the library.
14678
 
        hardcode_minus_L_F77=yes
14679
 
      fi
14680
 
      ;;
14681
 
 
14682
 
    hpux11*)
14683
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14684
 
        case $host_cpu in
14685
 
        hppa*64*)
14686
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14687
 
          ;;
14688
 
        ia64*)
14689
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14690
 
          ;;
14691
 
        *)
14692
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14693
 
          ;;
14694
 
        esac
14695
 
      else
14696
 
        case $host_cpu in
14697
 
        hppa*64*)
14698
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14699
 
          ;;
14700
 
        ia64*)
14701
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14702
 
          ;;
14703
 
        *)
14704
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705
 
          ;;
14706
 
        esac
14707
 
      fi
14708
 
      if test "$with_gnu_ld" = no; then
14709
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14710
 
        hardcode_libdir_separator_F77=:
14711
 
 
14712
 
        case $host_cpu in
14713
 
        hppa*64*|ia64*)
14714
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14715
 
          hardcode_direct_F77=no
14716
 
          hardcode_shlibpath_var_F77=no
14717
 
          ;;
14718
 
        *)
14719
 
          hardcode_direct_F77=yes
14720
 
          export_dynamic_flag_spec_F77='${wl}-E'
14721
 
 
14722
 
          # hardcode_minus_L: Not really in the search PATH,
14723
 
          # but as the default location of the library.
14724
 
          hardcode_minus_L_F77=yes
14725
 
          ;;
14726
 
        esac
14727
 
      fi
14728
 
      ;;
14729
 
 
14730
 
    irix5* | irix6* | nonstopux*)
14731
 
      if test "$GCC" = yes; then
14732
 
        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'
14733
 
      else
14734
 
        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'
14735
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14736
 
      fi
14737
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14738
 
      hardcode_libdir_separator_F77=:
14739
 
      link_all_deplibs_F77=yes
14740
 
      ;;
14741
 
 
14742
 
    netbsd* | netbsdelf*-gnu)
14743
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14744
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14745
 
      else
14746
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14747
 
      fi
14748
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14749
 
      hardcode_direct_F77=yes
14750
 
      hardcode_shlibpath_var_F77=no
14751
 
      ;;
14752
 
 
14753
 
    newsos6)
14754
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14755
 
      hardcode_direct_F77=yes
14756
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14757
 
      hardcode_libdir_separator_F77=:
14758
 
      hardcode_shlibpath_var_F77=no
14759
 
      ;;
14760
 
 
14761
 
    openbsd*)
14762
 
      hardcode_direct_F77=yes
14763
 
      hardcode_shlibpath_var_F77=no
14764
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14765
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14766
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14767
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14768
 
        export_dynamic_flag_spec_F77='${wl}-E'
14769
 
      else
14770
 
       case $host_os in
14771
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14772
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14773
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
14774
 
           ;;
14775
 
         *)
14776
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14777
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14778
 
           ;;
14779
 
       esac
14780
 
      fi
14781
 
      ;;
14782
 
 
14783
 
    os2*)
14784
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14785
 
      hardcode_minus_L_F77=yes
14786
 
      allow_undefined_flag_F77=unsupported
14787
 
      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'
14788
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14789
 
      ;;
14790
 
 
14791
 
    osf3*)
14792
 
      if test "$GCC" = yes; then
14793
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14794
 
        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'
14795
 
      else
14796
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14797
 
        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'
14798
 
      fi
14799
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14800
 
      hardcode_libdir_separator_F77=:
14801
 
      ;;
14802
 
 
14803
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
14804
 
      if test "$GCC" = yes; then
14805
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14806
 
        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'
14807
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14808
 
      else
14809
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
14810
 
        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'
14811
 
        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~
14812
 
        $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'
14813
 
 
14814
 
        # Both c and cxx compiler support -rpath directly
14815
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
14816
 
      fi
14817
 
      hardcode_libdir_separator_F77=:
14818
 
      ;;
14819
 
 
14820
 
    solaris*)
14821
 
      no_undefined_flag_F77=' -z text'
14822
 
      if test "$GCC" = yes; then
14823
 
        wlarc='${wl}'
14824
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14825
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14826
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14827
 
      else
14828
 
        wlarc=''
14829
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14830
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14831
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14832
 
      fi
14833
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
14834
 
      hardcode_shlibpath_var_F77=no
14835
 
      case $host_os in
14836
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
14837
 
      *)
14838
 
        # The compiler driver will combine linker options so we
14839
 
        # cannot just pass the convience library names through
14840
 
        # without $wl, iff we do not link with $LD.
14841
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
14842
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
14843
 
        case $wlarc in
14844
 
        '')
14845
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14846
 
        *)
14847
 
          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' ;;
14848
 
        esac ;;
14849
 
      esac
14850
 
      link_all_deplibs_F77=yes
14851
 
      ;;
14852
 
 
14853
 
    sunos4*)
14854
 
      if test "x$host_vendor" = xsequent; then
14855
 
        # Use $CC to link under sequent, because it throws in some extra .o
14856
 
        # files that make .init and .fini sections work.
14857
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14858
 
      else
14859
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14860
 
      fi
14861
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14862
 
      hardcode_direct_F77=yes
14863
 
      hardcode_minus_L_F77=yes
14864
 
      hardcode_shlibpath_var_F77=no
14865
 
      ;;
14866
 
 
14867
 
    sysv4)
14868
 
      case $host_vendor in
14869
 
        sni)
14870
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14871
 
          hardcode_direct_F77=yes # is this really true???
14872
 
        ;;
14873
 
        siemens)
14874
 
          ## LD is ld it makes a PLAMLIB
14875
 
          ## CC just makes a GrossModule.
14876
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14877
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
14878
 
          hardcode_direct_F77=no
14879
 
        ;;
14880
 
        motorola)
14881
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14882
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14883
 
        ;;
14884
 
      esac
14885
 
      runpath_var='LD_RUN_PATH'
14886
 
      hardcode_shlibpath_var_F77=no
14887
 
      ;;
14888
 
 
14889
 
    sysv4.3*)
14890
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891
 
      hardcode_shlibpath_var_F77=no
14892
 
      export_dynamic_flag_spec_F77='-Bexport'
14893
 
      ;;
14894
 
 
14895
 
    sysv4*MP*)
14896
 
      if test -d /usr/nec; then
14897
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14898
 
        hardcode_shlibpath_var_F77=no
14899
 
        runpath_var=LD_RUN_PATH
14900
 
        hardcode_runpath_var=yes
14901
 
        ld_shlibs_F77=yes
14902
 
      fi
14903
 
      ;;
14904
 
 
14905
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14906
 
      no_undefined_flag_F77='${wl}-z,text'
14907
 
      archive_cmds_need_lc_F77=no
14908
 
      hardcode_shlibpath_var_F77=no
14909
 
      runpath_var='LD_RUN_PATH'
14910
 
 
14911
 
      if test "$GCC" = yes; then
14912
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14913
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914
 
      else
14915
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14917
 
      fi
14918
 
      ;;
14919
 
 
14920
 
    sysv5* | sco3.2v5* | sco5v6*)
14921
 
      # Note: We can NOT use -z defs as we might desire, because we do not
14922
 
      # link with -lc, and that would cause any symbols used from libc to
14923
 
      # always be unresolved, which means just about no library would
14924
 
      # ever link correctly.  If we're not using GNU ld we use -z text
14925
 
      # though, which does catch some bad symbols but isn't as heavy-handed
14926
 
      # as -z defs.
14927
 
      no_undefined_flag_F77='${wl}-z,text'
14928
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
14929
 
      archive_cmds_need_lc_F77=no
14930
 
      hardcode_shlibpath_var_F77=no
14931
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14932
 
      hardcode_libdir_separator_F77=':'
14933
 
      link_all_deplibs_F77=yes
14934
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14935
 
      runpath_var='LD_RUN_PATH'
14936
 
 
14937
 
      if test "$GCC" = yes; then
14938
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14939
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14940
 
      else
14941
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14942
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14943
 
      fi
14944
 
      ;;
14945
 
 
14946
 
    uts4*)
14947
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14948
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14949
 
      hardcode_shlibpath_var_F77=no
14950
 
      ;;
14951
 
 
14952
 
    *)
14953
 
      ld_shlibs_F77=no
14954
 
      ;;
14955
 
    esac
14956
 
  fi
14957
 
 
14958
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14959
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14960
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14961
 
 
14962
 
#
14963
 
# Do we need to explicitly link libc?
14964
 
#
14965
 
case "x$archive_cmds_need_lc_F77" in
14966
 
x|xyes)
14967
 
  # Assume -lc should be added
14968
 
  archive_cmds_need_lc_F77=yes
14969
 
 
14970
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
14971
 
    case $archive_cmds_F77 in
14972
 
    *'~'*)
14973
 
      # FIXME: we may have to deal with multi-command sequences.
14974
 
      ;;
14975
 
    '$CC '*)
14976
 
      # Test whether the compiler implicitly links with -lc since on some
14977
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14978
 
      # to ld, don't add -lc before -lgcc.
14979
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14980
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14981
 
      $rm conftest*
14982
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14983
 
 
14984
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14985
 
  (eval $ac_compile) 2>&5
14986
 
  ac_status=$?
14987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988
 
  (exit $ac_status); } 2>conftest.err; then
14989
 
        soname=conftest
14990
 
        lib=conftest
14991
 
        libobjs=conftest.$ac_objext
14992
 
        deplibs=
14993
 
        wl=$lt_prog_compiler_wl_F77
14994
 
        pic_flag=$lt_prog_compiler_pic_F77
14995
 
        compiler_flags=-v
14996
 
        linker_flags=-v
14997
 
        verstring=
14998
 
        output_objdir=.
14999
 
        libname=conftest
15000
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15001
 
        allow_undefined_flag_F77=
15002
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15003
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15004
 
  ac_status=$?
15005
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006
 
  (exit $ac_status); }
15007
 
        then
15008
 
          archive_cmds_need_lc_F77=no
15009
 
        else
15010
 
          archive_cmds_need_lc_F77=yes
15011
 
        fi
15012
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15013
 
      else
15014
 
        cat conftest.err 1>&5
15015
 
      fi
15016
 
      $rm conftest*
15017
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15018
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15019
 
      ;;
15020
 
    esac
15021
 
  fi
15022
 
  ;;
15023
 
esac
15024
 
 
15025
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15026
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15027
 
library_names_spec=
15028
 
libname_spec='lib$name'
15029
 
soname_spec=
15030
 
shrext_cmds=".so"
15031
 
postinstall_cmds=
15032
 
postuninstall_cmds=
15033
 
finish_cmds=
15034
 
finish_eval=
15035
 
shlibpath_var=
15036
 
shlibpath_overrides_runpath=unknown
15037
 
version_type=none
15038
 
dynamic_linker="$host_os ld.so"
15039
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15040
 
if test "$GCC" = yes; then
15041
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15042
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15043
 
    # if the path contains ";" then we assume it to be the separator
15044
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15045
 
    # assumed that no part of a normal pathname contains ";" but that should
15046
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15047
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15048
 
  else
15049
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15050
 
  fi
15051
 
else
15052
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15053
 
fi
15054
 
need_lib_prefix=unknown
15055
 
hardcode_into_libs=no
15056
 
 
15057
 
# when you set need_version to no, make sure it does not cause -set_version
15058
 
# flags to be left without arguments
15059
 
need_version=unknown
15060
 
 
15061
 
case $host_os in
15062
 
aix3*)
15063
 
  version_type=linux
15064
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15065
 
  shlibpath_var=LIBPATH
15066
 
 
15067
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15068
 
  soname_spec='${libname}${release}${shared_ext}$major'
15069
 
  ;;
15070
 
 
15071
 
aix4* | aix5*)
15072
 
  version_type=linux
15073
 
  need_lib_prefix=no
15074
 
  need_version=no
15075
 
  hardcode_into_libs=yes
15076
 
  if test "$host_cpu" = ia64; then
15077
 
    # AIX 5 supports IA64
15078
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15079
 
    shlibpath_var=LD_LIBRARY_PATH
15080
 
  else
15081
 
    # With GCC up to 2.95.x, collect2 would create an import file
15082
 
    # for dependence libraries.  The import file would start with
15083
 
    # the line `#! .'.  This would cause the generated library to
15084
 
    # depend on `.', always an invalid library.  This was fixed in
15085
 
    # development snapshots of GCC prior to 3.0.
15086
 
    case $host_os in
15087
 
      aix4 | aix4.[01] | aix4.[01].*)
15088
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15089
 
           echo ' yes '
15090
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15091
 
        :
15092
 
      else
15093
 
        can_build_shared=no
15094
 
      fi
15095
 
      ;;
15096
 
    esac
15097
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15098
 
    # soname into executable. Probably we can add versioning support to
15099
 
    # collect2, so additional links can be useful in future.
15100
 
    if test "$aix_use_runtimelinking" = yes; then
15101
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15102
 
      # instead of lib<name>.a to let people know that these are not
15103
 
      # typical AIX shared libraries.
15104
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15105
 
    else
15106
 
      # We preserve .a as extension for shared libraries through AIX4.2
15107
 
      # and later when we are not doing run time linking.
15108
 
      library_names_spec='${libname}${release}.a $libname.a'
15109
 
      soname_spec='${libname}${release}${shared_ext}$major'
15110
 
    fi
15111
 
    shlibpath_var=LIBPATH
15112
 
  fi
15113
 
  ;;
15114
 
 
15115
 
amigaos*)
15116
 
  library_names_spec='$libname.ixlibrary $libname.a'
15117
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15118
 
  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'
15119
 
  ;;
15120
 
 
15121
 
beos*)
15122
 
  library_names_spec='${libname}${shared_ext}'
15123
 
  dynamic_linker="$host_os ld.so"
15124
 
  shlibpath_var=LIBRARY_PATH
15125
 
  ;;
15126
 
 
15127
 
bsdi[45]*)
15128
 
  version_type=linux
15129
 
  need_version=no
15130
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15131
 
  soname_spec='${libname}${release}${shared_ext}$major'
15132
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15133
 
  shlibpath_var=LD_LIBRARY_PATH
15134
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15135
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15136
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15137
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15138
 
  # libtool to hard-code these into programs
15139
 
  ;;
15140
 
 
15141
 
cygwin* | mingw* | pw32*)
15142
 
  version_type=windows
15143
 
  shrext_cmds=".dll"
15144
 
  need_version=no
15145
 
  need_lib_prefix=no
15146
 
 
15147
 
  case $GCC,$host_os in
15148
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15149
 
    library_names_spec='$libname.dll.a'
15150
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15151
 
    postinstall_cmds='base_file=`basename \${file}`~
15152
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15153
 
      dldir=$destdir/`dirname \$dlpath`~
15154
 
      test -d \$dldir || mkdir -p \$dldir~
15155
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15156
 
      chmod a+x \$dldir/$dlname'
15157
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15158
 
      dlpath=$dir/\$dldll~
15159
 
       $rm \$dlpath'
15160
 
    shlibpath_overrides_runpath=yes
15161
 
 
15162
 
    case $host_os in
15163
 
    cygwin*)
15164
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15165
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15166
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15167
 
      ;;
15168
 
    mingw*)
15169
 
      # MinGW DLLs use traditional 'lib' prefix
15170
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15171
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15172
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15173
 
        # It is most probably a Windows format PATH printed by
15174
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15175
 
        # path with ; separators, and with drive letters. We can handle the
15176
 
        # drive letters (cygwin fileutils understands them), so leave them,
15177
 
        # especially as we might pass files found there to a mingw objdump,
15178
 
        # which wouldn't understand a cygwinified path. Ahh.
15179
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15180
 
      else
15181
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15182
 
      fi
15183
 
      ;;
15184
 
    pw32*)
15185
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15186
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15187
 
      ;;
15188
 
    esac
15189
 
    ;;
15190
 
 
15191
 
  *)
15192
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15193
 
    ;;
15194
 
  esac
15195
 
  dynamic_linker='Win32 ld.exe'
15196
 
  # FIXME: first we should search . and the directory the executable is in
15197
 
  shlibpath_var=PATH
15198
 
  ;;
15199
 
 
15200
 
darwin* | rhapsody*)
15201
 
  dynamic_linker="$host_os dyld"
15202
 
  version_type=darwin
15203
 
  need_lib_prefix=no
15204
 
  need_version=no
15205
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15206
 
  soname_spec='${libname}${release}${major}$shared_ext'
15207
 
  shlibpath_overrides_runpath=yes
15208
 
  shlibpath_var=DYLD_LIBRARY_PATH
15209
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15210
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15211
 
  if test "$GCC" = yes; then
15212
 
    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"`
15213
 
  else
15214
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15215
 
  fi
15216
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15217
 
  ;;
15218
 
 
15219
 
dgux*)
15220
 
  version_type=linux
15221
 
  need_lib_prefix=no
15222
 
  need_version=no
15223
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15224
 
  soname_spec='${libname}${release}${shared_ext}$major'
15225
 
  shlibpath_var=LD_LIBRARY_PATH
15226
 
  ;;
15227
 
 
15228
 
freebsd1*)
15229
 
  dynamic_linker=no
15230
 
  ;;
15231
 
 
15232
 
freebsd* | dragonfly*)
15233
 
  # DragonFly does not have aout.  When/if they implement a new
15234
 
  # versioning mechanism, adjust this.
15235
 
  if test -x /usr/bin/objformat; then
15236
 
    objformat=`/usr/bin/objformat`
15237
 
  else
15238
 
    case $host_os in
15239
 
    freebsd[123]*) objformat=aout ;;
15240
 
    *) objformat=elf ;;
15241
 
    esac
15242
 
  fi
15243
 
  version_type=freebsd-$objformat
15244
 
  case $version_type in
15245
 
    freebsd-elf*)
15246
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15247
 
      need_version=no
15248
 
      need_lib_prefix=no
15249
 
      ;;
15250
 
    freebsd-*)
15251
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15252
 
      need_version=yes
15253
 
      ;;
15254
 
  esac
15255
 
  shlibpath_var=LD_LIBRARY_PATH
15256
 
  case $host_os in
15257
 
  freebsd2*)
15258
 
    shlibpath_overrides_runpath=yes
15259
 
    ;;
15260
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15261
 
    shlibpath_overrides_runpath=yes
15262
 
    hardcode_into_libs=yes
15263
 
    ;;
15264
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15265
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15266
 
    shlibpath_overrides_runpath=no
15267
 
    hardcode_into_libs=yes
15268
 
    ;;
15269
 
  freebsd*) # from 4.6 on
15270
 
    shlibpath_overrides_runpath=yes
15271
 
    hardcode_into_libs=yes
15272
 
    ;;
15273
 
  esac
15274
 
  ;;
15275
 
 
15276
 
gnu*)
15277
 
  version_type=linux
15278
 
  need_lib_prefix=no
15279
 
  need_version=no
15280
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15281
 
  soname_spec='${libname}${release}${shared_ext}$major'
15282
 
  shlibpath_var=LD_LIBRARY_PATH
15283
 
  hardcode_into_libs=yes
15284
 
  ;;
15285
 
 
15286
 
hpux9* | hpux10* | hpux11*)
15287
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
15288
 
  # link against other versions.
15289
 
  version_type=sunos
15290
 
  need_lib_prefix=no
15291
 
  need_version=no
15292
 
  case $host_cpu in
15293
 
  ia64*)
15294
 
    shrext_cmds='.so'
15295
 
    hardcode_into_libs=yes
15296
 
    dynamic_linker="$host_os dld.so"
15297
 
    shlibpath_var=LD_LIBRARY_PATH
15298
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15299
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300
 
    soname_spec='${libname}${release}${shared_ext}$major'
15301
 
    if test "X$HPUX_IA64_MODE" = X32; then
15302
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15303
 
    else
15304
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15305
 
    fi
15306
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15307
 
    ;;
15308
 
   hppa*64*)
15309
 
     shrext_cmds='.sl'
15310
 
     hardcode_into_libs=yes
15311
 
     dynamic_linker="$host_os dld.sl"
15312
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15313
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15317
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15318
 
     ;;
15319
 
   *)
15320
 
    shrext_cmds='.sl'
15321
 
    dynamic_linker="$host_os dld.sl"
15322
 
    shlibpath_var=SHLIB_PATH
15323
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15324
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325
 
    soname_spec='${libname}${release}${shared_ext}$major'
15326
 
    ;;
15327
 
  esac
15328
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15329
 
  postinstall_cmds='chmod 555 $lib'
15330
 
  ;;
15331
 
 
15332
 
interix3*)
15333
 
  version_type=linux
15334
 
  need_lib_prefix=no
15335
 
  need_version=no
15336
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15337
 
  soname_spec='${libname}${release}${shared_ext}$major'
15338
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15339
 
  shlibpath_var=LD_LIBRARY_PATH
15340
 
  shlibpath_overrides_runpath=no
15341
 
  hardcode_into_libs=yes
15342
 
  ;;
15343
 
 
15344
 
irix5* | irix6* | nonstopux*)
15345
 
  case $host_os in
15346
 
    nonstopux*) version_type=nonstopux ;;
15347
 
    *)
15348
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
15349
 
                version_type=linux
15350
 
        else
15351
 
                version_type=irix
15352
 
        fi ;;
15353
 
  esac
15354
 
  need_lib_prefix=no
15355
 
  need_version=no
15356
 
  soname_spec='${libname}${release}${shared_ext}$major'
15357
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15358
 
  case $host_os in
15359
 
  irix5* | nonstopux*)
15360
 
    libsuff= shlibsuff=
15361
 
    ;;
15362
 
  *)
15363
 
    case $LD in # libtool.m4 will add one of these switches to LD
15364
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15365
 
      libsuff= shlibsuff= libmagic=32-bit;;
15366
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15367
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
15368
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15369
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15370
 
    *) libsuff= shlibsuff= libmagic=never-match;;
15371
 
    esac
15372
 
    ;;
15373
 
  esac
15374
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15375
 
  shlibpath_overrides_runpath=no
15376
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15377
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15378
 
  hardcode_into_libs=yes
15379
 
  ;;
15380
 
 
15381
 
# No shared lib support for Linux oldld, aout, or coff.
15382
 
linux*oldld* | linux*aout* | linux*coff*)
15383
 
  dynamic_linker=no
15384
 
  ;;
15385
 
 
15386
 
# This must be Linux ELF.
15387
 
linux* | k*bsd*-gnu)
15388
 
  version_type=linux
15389
 
  need_lib_prefix=no
15390
 
  need_version=no
15391
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392
 
  soname_spec='${libname}${release}${shared_ext}$major'
15393
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15394
 
  shlibpath_var=LD_LIBRARY_PATH
15395
 
  shlibpath_overrides_runpath=no
15396
 
  # This implies no fast_install, which is unacceptable.
15397
 
  # Some rework will be needed to allow for fast_install
15398
 
  # before this can be enabled.
15399
 
  hardcode_into_libs=yes
15400
 
 
15401
 
  # Append ld.so.conf contents to the search path
15402
 
  if test -f /etc/ld.so.conf; then
15403
 
    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' ' '`
15404
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15405
 
  fi
15406
 
 
15407
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
15408
 
  # powerpc, because MkLinux only supported shared libraries with the
15409
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
15410
 
  # most powerpc-linux boxes support dynamic linking these days and
15411
 
  # people can always --disable-shared, the test was removed, and we
15412
 
  # assume the GNU/Linux dynamic linker is in use.
15413
 
  dynamic_linker='GNU/Linux ld.so'
15414
 
  ;;
15415
 
 
15416
 
netbsdelf*-gnu)
15417
 
  version_type=linux
15418
 
  need_lib_prefix=no
15419
 
  need_version=no
15420
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15421
 
  soname_spec='${libname}${release}${shared_ext}$major'
15422
 
  shlibpath_var=LD_LIBRARY_PATH
15423
 
  shlibpath_overrides_runpath=no
15424
 
  hardcode_into_libs=yes
15425
 
  dynamic_linker='NetBSD ld.elf_so'
15426
 
  ;;
15427
 
 
15428
 
netbsd*)
15429
 
  version_type=sunos
15430
 
  need_lib_prefix=no
15431
 
  need_version=no
15432
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15433
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15434
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15435
 
    dynamic_linker='NetBSD (a.out) ld.so'
15436
 
  else
15437
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438
 
    soname_spec='${libname}${release}${shared_ext}$major'
15439
 
    dynamic_linker='NetBSD ld.elf_so'
15440
 
  fi
15441
 
  shlibpath_var=LD_LIBRARY_PATH
15442
 
  shlibpath_overrides_runpath=yes
15443
 
  hardcode_into_libs=yes
15444
 
  ;;
15445
 
 
15446
 
newsos6)
15447
 
  version_type=linux
15448
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449
 
  shlibpath_var=LD_LIBRARY_PATH
15450
 
  shlibpath_overrides_runpath=yes
15451
 
  ;;
15452
 
 
15453
 
nto-qnx*)
15454
 
  version_type=linux
15455
 
  need_lib_prefix=no
15456
 
  need_version=no
15457
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458
 
  soname_spec='${libname}${release}${shared_ext}$major'
15459
 
  shlibpath_var=LD_LIBRARY_PATH
15460
 
  shlibpath_overrides_runpath=yes
15461
 
  ;;
15462
 
 
15463
 
openbsd*)
15464
 
  version_type=sunos
15465
 
  sys_lib_dlsearch_path_spec="/usr/lib"
15466
 
  need_lib_prefix=no
15467
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15468
 
  case $host_os in
15469
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15470
 
    *)                         need_version=no  ;;
15471
 
  esac
15472
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15473
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15474
 
  shlibpath_var=LD_LIBRARY_PATH
15475
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15476
 
    case $host_os in
15477
 
      openbsd2.[89] | openbsd2.[89].*)
15478
 
        shlibpath_overrides_runpath=no
15479
 
        ;;
15480
 
      *)
15481
 
        shlibpath_overrides_runpath=yes
15482
 
        ;;
15483
 
      esac
15484
 
  else
15485
 
    shlibpath_overrides_runpath=yes
15486
 
  fi
15487
 
  ;;
15488
 
 
15489
 
os2*)
15490
 
  libname_spec='$name'
15491
 
  shrext_cmds=".dll"
15492
 
  need_lib_prefix=no
15493
 
  library_names_spec='$libname${shared_ext} $libname.a'
15494
 
  dynamic_linker='OS/2 ld.exe'
15495
 
  shlibpath_var=LIBPATH
15496
 
  ;;
15497
 
 
15498
 
osf3* | osf4* | osf5*)
15499
 
  version_type=osf
15500
 
  need_lib_prefix=no
15501
 
  need_version=no
15502
 
  soname_spec='${libname}${release}${shared_ext}$major'
15503
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15504
 
  shlibpath_var=LD_LIBRARY_PATH
15505
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15507
 
  ;;
15508
 
 
15509
 
solaris*)
15510
 
  version_type=linux
15511
 
  need_lib_prefix=no
15512
 
  need_version=no
15513
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514
 
  soname_spec='${libname}${release}${shared_ext}$major'
15515
 
  shlibpath_var=LD_LIBRARY_PATH
15516
 
  shlibpath_overrides_runpath=yes
15517
 
  hardcode_into_libs=yes
15518
 
  # ldd complains unless libraries are executable
15519
 
  postinstall_cmds='chmod +x $lib'
15520
 
  ;;
15521
 
 
15522
 
sunos4*)
15523
 
  version_type=sunos
15524
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15526
 
  shlibpath_var=LD_LIBRARY_PATH
15527
 
  shlibpath_overrides_runpath=yes
15528
 
  if test "$with_gnu_ld" = yes; then
15529
 
    need_lib_prefix=no
15530
 
  fi
15531
 
  need_version=yes
15532
 
  ;;
15533
 
 
15534
 
sysv4 | sysv4.3*)
15535
 
  version_type=linux
15536
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537
 
  soname_spec='${libname}${release}${shared_ext}$major'
15538
 
  shlibpath_var=LD_LIBRARY_PATH
15539
 
  case $host_vendor in
15540
 
    sni)
15541
 
      shlibpath_overrides_runpath=no
15542
 
      need_lib_prefix=no
15543
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
15544
 
      runpath_var=LD_RUN_PATH
15545
 
      ;;
15546
 
    siemens)
15547
 
      need_lib_prefix=no
15548
 
      ;;
15549
 
    motorola)
15550
 
      need_lib_prefix=no
15551
 
      need_version=no
15552
 
      shlibpath_overrides_runpath=no
15553
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15554
 
      ;;
15555
 
  esac
15556
 
  ;;
15557
 
 
15558
 
sysv4*MP*)
15559
 
  if test -d /usr/nec ;then
15560
 
    version_type=linux
15561
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15562
 
    soname_spec='$libname${shared_ext}.$major'
15563
 
    shlibpath_var=LD_LIBRARY_PATH
15564
 
  fi
15565
 
  ;;
15566
 
 
15567
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15568
 
  version_type=freebsd-elf
15569
 
  need_lib_prefix=no
15570
 
  need_version=no
15571
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15572
 
  soname_spec='${libname}${release}${shared_ext}$major'
15573
 
  shlibpath_var=LD_LIBRARY_PATH
15574
 
  hardcode_into_libs=yes
15575
 
  if test "$with_gnu_ld" = yes; then
15576
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15577
 
    shlibpath_overrides_runpath=no
15578
 
  else
15579
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15580
 
    shlibpath_overrides_runpath=yes
15581
 
    case $host_os in
15582
 
      sco3.2v5*)
15583
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15584
 
        ;;
15585
 
    esac
15586
 
  fi
15587
 
  sys_lib_dlsearch_path_spec='/usr/lib'
15588
 
  ;;
15589
 
 
15590
 
uts4*)
15591
 
  version_type=linux
15592
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593
 
  soname_spec='${libname}${release}${shared_ext}$major'
15594
 
  shlibpath_var=LD_LIBRARY_PATH
15595
 
  ;;
15596
 
 
15597
 
*)
15598
 
  dynamic_linker=no
15599
 
  ;;
15600
 
esac
15601
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15602
 
echo "${ECHO_T}$dynamic_linker" >&6; }
15603
 
test "$dynamic_linker" = no && can_build_shared=no
15604
 
 
15605
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15606
 
if test "$GCC" = yes; then
15607
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15608
 
fi
15609
 
 
15610
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15611
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15612
 
hardcode_action_F77=
15613
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
15614
 
   test -n "$runpath_var_F77" || \
15615
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
15616
 
 
15617
 
  # We can hardcode non-existant directories.
15618
 
  if test "$hardcode_direct_F77" != no &&
15619
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15620
 
     # have to relink, otherwise we might link with an installed library
15621
 
     # when we should be linking with a yet-to-be-installed one
15622
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15623
 
     test "$hardcode_minus_L_F77" != no; then
15624
 
    # Linking always hardcodes the temporary library directory.
15625
 
    hardcode_action_F77=relink
15626
 
  else
15627
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15628
 
    hardcode_action_F77=immediate
15629
 
  fi
15630
 
else
15631
 
  # We cannot hardcode anything, or else we can only hardcode existing
15632
 
  # directories.
15633
 
  hardcode_action_F77=unsupported
15634
 
fi
15635
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15636
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
15637
 
 
15638
 
if test "$hardcode_action_F77" = relink; then
15639
 
  # Fast installation is not supported
15640
 
  enable_fast_install=no
15641
 
elif test "$shlibpath_overrides_runpath" = yes ||
15642
 
     test "$enable_shared" = no; then
15643
 
  # Fast installation is not necessary
15644
 
  enable_fast_install=needless
15645
 
fi
15646
 
 
15647
 
 
15648
 
# The else clause should only fire when bootstrapping the
15649
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
15650
 
# with your package, and you will get complaints that there are
15651
 
# no rules to generate ltmain.sh.
15652
 
if test -f "$ltmain"; then
15653
 
  # See if we are running on zsh, and set the options which allow our commands through
15654
 
  # without removal of \ escapes.
15655
 
  if test -n "${ZSH_VERSION+set}" ; then
15656
 
    setopt NO_GLOB_SUBST
15657
 
  fi
15658
 
  # Now quote all the things that may contain metacharacters while being
15659
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15660
 
  # variables and quote the copies for generation of the libtool script.
15661
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15662
 
    SED SHELL STRIP \
15663
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15664
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15665
 
    deplibs_check_method reload_flag reload_cmds need_locks \
15666
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15667
 
    lt_cv_sys_global_symbol_to_c_name_address \
15668
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15669
 
    old_postinstall_cmds old_postuninstall_cmds \
15670
 
    compiler_F77 \
15671
 
    CC_F77 \
15672
 
    LD_F77 \
15673
 
    lt_prog_compiler_wl_F77 \
15674
 
    lt_prog_compiler_pic_F77 \
15675
 
    lt_prog_compiler_static_F77 \
15676
 
    lt_prog_compiler_no_builtin_flag_F77 \
15677
 
    export_dynamic_flag_spec_F77 \
15678
 
    thread_safe_flag_spec_F77 \
15679
 
    whole_archive_flag_spec_F77 \
15680
 
    enable_shared_with_static_runtimes_F77 \
15681
 
    old_archive_cmds_F77 \
15682
 
    old_archive_from_new_cmds_F77 \
15683
 
    predep_objects_F77 \
15684
 
    postdep_objects_F77 \
15685
 
    predeps_F77 \
15686
 
    postdeps_F77 \
15687
 
    compiler_lib_search_path_F77 \
15688
 
    archive_cmds_F77 \
15689
 
    archive_expsym_cmds_F77 \
15690
 
    postinstall_cmds_F77 \
15691
 
    postuninstall_cmds_F77 \
15692
 
    old_archive_from_expsyms_cmds_F77 \
15693
 
    allow_undefined_flag_F77 \
15694
 
    no_undefined_flag_F77 \
15695
 
    export_symbols_cmds_F77 \
15696
 
    hardcode_libdir_flag_spec_F77 \
15697
 
    hardcode_libdir_flag_spec_ld_F77 \
15698
 
    hardcode_libdir_separator_F77 \
15699
 
    hardcode_automatic_F77 \
15700
 
    module_cmds_F77 \
15701
 
    module_expsym_cmds_F77 \
15702
 
    lt_cv_prog_compiler_c_o_F77 \
15703
 
    exclude_expsyms_F77 \
15704
 
    include_expsyms_F77; do
15705
 
 
15706
 
    case $var in
15707
 
    old_archive_cmds_F77 | \
15708
 
    old_archive_from_new_cmds_F77 | \
15709
 
    archive_cmds_F77 | \
15710
 
    archive_expsym_cmds_F77 | \
15711
 
    module_cmds_F77 | \
15712
 
    module_expsym_cmds_F77 | \
15713
 
    old_archive_from_expsyms_cmds_F77 | \
15714
 
    export_symbols_cmds_F77 | \
15715
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15716
 
    postinstall_cmds | postuninstall_cmds | \
15717
 
    old_postinstall_cmds | old_postuninstall_cmds | \
15718
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15719
 
      # Double-quote double-evaled strings.
15720
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15721
 
      ;;
15722
 
    *)
15723
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15724
 
      ;;
15725
 
    esac
15726
 
  done
15727
 
 
15728
 
  case $lt_echo in
15729
 
  *'\$0 --fallback-echo"')
15730
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15731
 
    ;;
15732
 
  esac
15733
 
 
15734
 
cfgfile="$ofile"
15735
 
 
15736
 
  cat <<__EOF__ >> "$cfgfile"
15737
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15738
 
 
15739
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15740
 
 
15741
 
# Shell to use when invoking shell scripts.
15742
 
SHELL=$lt_SHELL
15743
 
 
15744
 
# Whether or not to build shared libraries.
15745
 
build_libtool_libs=$enable_shared
15746
 
 
15747
 
# Whether or not to build static libraries.
15748
 
build_old_libs=$enable_static
15749
 
 
15750
 
# Whether or not to add -lc for building shared libraries.
15751
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
15752
 
 
15753
 
# Whether or not to disallow shared libs when runtime libs are static
15754
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15755
 
 
15756
 
# Whether or not to optimize for fast installation.
15757
 
fast_install=$enable_fast_install
15758
 
 
15759
 
# The host system.
15760
 
host_alias=$host_alias
15761
 
host=$host
15762
 
host_os=$host_os
15763
 
 
15764
 
# The build system.
15765
 
build_alias=$build_alias
15766
 
build=$build
15767
 
build_os=$build_os
15768
 
 
15769
 
# An echo program that does not interpret backslashes.
15770
 
echo=$lt_echo
15771
 
 
15772
 
# The archiver.
15773
 
AR=$lt_AR
15774
 
AR_FLAGS=$lt_AR_FLAGS
15775
 
 
15776
 
# A C compiler.
15777
 
LTCC=$lt_LTCC
15778
 
 
15779
 
# LTCC compiler flags.
15780
 
LTCFLAGS=$lt_LTCFLAGS
15781
 
 
15782
 
# A language-specific compiler.
15783
 
CC=$lt_compiler_F77
15784
 
 
15785
 
# Is the compiler the GNU C compiler?
15786
 
with_gcc=$GCC_F77
15787
 
 
15788
 
# An ERE matcher.
15789
 
EGREP=$lt_EGREP
15790
 
 
15791
 
# The linker used to build libraries.
15792
 
LD=$lt_LD_F77
15793
 
 
15794
 
# Whether we need hard or soft links.
15795
 
LN_S=$lt_LN_S
15796
 
 
15797
 
# A BSD-compatible nm program.
15798
 
NM=$lt_NM
15799
 
 
15800
 
# A symbol stripping program
15801
 
STRIP=$lt_STRIP
15802
 
 
15803
 
# Used to examine libraries when file_magic_cmd begins "file"
15804
 
MAGIC_CMD=$MAGIC_CMD
15805
 
 
15806
 
# Used on cygwin: DLL creation program.
15807
 
DLLTOOL="$DLLTOOL"
15808
 
 
15809
 
# Used on cygwin: object dumper.
15810
 
OBJDUMP="$OBJDUMP"
15811
 
 
15812
 
# Used on cygwin: assembler.
15813
 
AS="$AS"
15814
 
 
15815
 
# The name of the directory that contains temporary libtool files.
15816
 
objdir=$objdir
15817
 
 
15818
 
# How to create reloadable object files.
15819
 
reload_flag=$lt_reload_flag
15820
 
reload_cmds=$lt_reload_cmds
15821
 
 
15822
 
# How to pass a linker flag through the compiler.
15823
 
wl=$lt_lt_prog_compiler_wl_F77
15824
 
 
15825
 
# Object file suffix (normally "o").
15826
 
objext="$ac_objext"
15827
 
 
15828
 
# Old archive suffix (normally "a").
15829
 
libext="$libext"
15830
 
 
15831
 
# Shared library suffix (normally ".so").
15832
 
shrext_cmds='$shrext_cmds'
15833
 
 
15834
 
# Executable file suffix (normally "").
15835
 
exeext="$exeext"
15836
 
 
15837
 
# Additional compiler flags for building library objects.
15838
 
pic_flag=$lt_lt_prog_compiler_pic_F77
15839
 
pic_mode=$pic_mode
15840
 
 
15841
 
# What is the maximum length of a command?
15842
 
max_cmd_len=$lt_cv_sys_max_cmd_len
15843
 
 
15844
 
# Does compiler simultaneously support -c and -o options?
15845
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15846
 
 
15847
 
# Must we lock files when doing compilation?
15848
 
need_locks=$lt_need_locks
15849
 
 
15850
 
# Do we need the lib prefix for modules?
15851
 
need_lib_prefix=$need_lib_prefix
15852
 
 
15853
 
# Do we need a version for libraries?
15854
 
need_version=$need_version
15855
 
 
15856
 
# Whether dlopen is supported.
15857
 
dlopen_support=$enable_dlopen
15858
 
 
15859
 
# Whether dlopen of programs is supported.
15860
 
dlopen_self=$enable_dlopen_self
15861
 
 
15862
 
# Whether dlopen of statically linked programs is supported.
15863
 
dlopen_self_static=$enable_dlopen_self_static
15864
 
 
15865
 
# Compiler flag to prevent dynamic linking.
15866
 
link_static_flag=$lt_lt_prog_compiler_static_F77
15867
 
 
15868
 
# Compiler flag to turn off builtin functions.
15869
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15870
 
 
15871
 
# Compiler flag to allow reflexive dlopens.
15872
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15873
 
 
15874
 
# Compiler flag to generate shared objects directly from archives.
15875
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15876
 
 
15877
 
# Compiler flag to generate thread-safe objects.
15878
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15879
 
 
15880
 
# Library versioning type.
15881
 
version_type=$version_type
15882
 
 
15883
 
# Format of library name prefix.
15884
 
libname_spec=$lt_libname_spec
15885
 
 
15886
 
# List of archive names.  First name is the real one, the rest are links.
15887
 
# The last name is the one that the linker finds with -lNAME.
15888
 
library_names_spec=$lt_library_names_spec
15889
 
 
15890
 
# The coded name of the library, if different from the real name.
15891
 
soname_spec=$lt_soname_spec
15892
 
 
15893
 
# Commands used to build and install an old-style archive.
15894
 
RANLIB=$lt_RANLIB
15895
 
old_archive_cmds=$lt_old_archive_cmds_F77
15896
 
old_postinstall_cmds=$lt_old_postinstall_cmds
15897
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
15898
 
 
15899
 
# Create an old-style archive from a shared archive.
15900
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15901
 
 
15902
 
# Create a temporary old-style archive to link instead of a shared archive.
15903
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15904
 
 
15905
 
# Commands used to build and install a shared archive.
15906
 
archive_cmds=$lt_archive_cmds_F77
15907
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15908
 
postinstall_cmds=$lt_postinstall_cmds
15909
 
postuninstall_cmds=$lt_postuninstall_cmds
15910
 
 
15911
 
# Commands used to build a loadable module (assumed same as above if empty)
15912
 
module_cmds=$lt_module_cmds_F77
15913
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
15914
 
 
15915
 
# Commands to strip libraries.
15916
 
old_striplib=$lt_old_striplib
15917
 
striplib=$lt_striplib
15918
 
 
15919
 
# Dependencies to place before the objects being linked to create a
15920
 
# shared library.
15921
 
predep_objects=$lt_predep_objects_F77
15922
 
 
15923
 
# Dependencies to place after the objects being linked to create a
15924
 
# shared library.
15925
 
postdep_objects=$lt_postdep_objects_F77
15926
 
 
15927
 
# Dependencies to place before the objects being linked to create a
15928
 
# shared library.
15929
 
predeps=$lt_predeps_F77
15930
 
 
15931
 
# Dependencies to place after the objects being linked to create a
15932
 
# shared library.
15933
 
postdeps=$lt_postdeps_F77
15934
 
 
15935
 
# The library search path used internally by the compiler when linking
15936
 
# a shared library.
15937
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15938
 
 
15939
 
# Method to check whether dependent libraries are shared objects.
15940
 
deplibs_check_method=$lt_deplibs_check_method
15941
 
 
15942
 
# Command to use when deplibs_check_method == file_magic.
15943
 
file_magic_cmd=$lt_file_magic_cmd
15944
 
 
15945
 
# Flag that allows shared libraries with undefined symbols to be built.
15946
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
15947
 
 
15948
 
# Flag that forces no undefined symbols.
15949
 
no_undefined_flag=$lt_no_undefined_flag_F77
15950
 
 
15951
 
# Commands used to finish a libtool library installation in a directory.
15952
 
finish_cmds=$lt_finish_cmds
15953
 
 
15954
 
# Same as above, but a single script fragment to be evaled but not shown.
15955
 
finish_eval=$lt_finish_eval
15956
 
 
15957
 
# Take the output of nm and produce a listing of raw symbols and C names.
15958
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15959
 
 
15960
 
# Transform the output of nm in a proper C declaration
15961
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15962
 
 
15963
 
# Transform the output of nm in a C name address pair
15964
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15965
 
 
15966
 
# This is the shared library runtime path variable.
15967
 
runpath_var=$runpath_var
15968
 
 
15969
 
# This is the shared library path variable.
15970
 
shlibpath_var=$shlibpath_var
15971
 
 
15972
 
# Is shlibpath searched before the hard-coded library search path?
15973
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15974
 
 
15975
 
# How to hardcode a shared library path into an executable.
15976
 
hardcode_action=$hardcode_action_F77
15977
 
 
15978
 
# Whether we should hardcode library paths into libraries.
15979
 
hardcode_into_libs=$hardcode_into_libs
15980
 
 
15981
 
# Flag to hardcode \$libdir into a binary during linking.
15982
 
# This must work even if \$libdir does not exist.
15983
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15984
 
 
15985
 
# If ld is used when linking, flag to hardcode \$libdir into
15986
 
# a binary during linking. This must work even if \$libdir does
15987
 
# not exist.
15988
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15989
 
 
15990
 
# Whether we need a single -rpath flag with a separated argument.
15991
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15992
 
 
15993
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15994
 
# resulting binary.
15995
 
hardcode_direct=$hardcode_direct_F77
15996
 
 
15997
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15998
 
# resulting binary.
15999
 
hardcode_minus_L=$hardcode_minus_L_F77
16000
 
 
16001
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16002
 
# the resulting binary.
16003
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16004
 
 
16005
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16006
 
# and all subsequent libraries and executables linked against it.
16007
 
hardcode_automatic=$hardcode_automatic_F77
16008
 
 
16009
 
# Variables whose values should be saved in libtool wrapper scripts and
16010
 
# restored at relink time.
16011
 
variables_saved_for_relink="$variables_saved_for_relink"
16012
 
 
16013
 
# Whether libtool must link a program against all its dependency libraries.
16014
 
link_all_deplibs=$link_all_deplibs_F77
16015
 
 
16016
 
# Compile-time system search path for libraries
16017
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16018
 
 
16019
 
# Run-time system search path for libraries
16020
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16021
 
 
16022
 
# Fix the shell variable \$srcfile for the compiler.
16023
 
fix_srcfile_path="$fix_srcfile_path_F77"
16024
 
 
16025
 
# Set to yes if exported symbols are required.
16026
 
always_export_symbols=$always_export_symbols_F77
16027
 
 
16028
 
# The commands to list exported symbols.
16029
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16030
 
 
16031
 
# The commands to extract the exported symbol list from a shared archive.
16032
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16033
 
 
16034
 
# Symbols that should not be listed in the preloaded symbols.
16035
 
exclude_expsyms=$lt_exclude_expsyms_F77
16036
 
 
16037
 
# Symbols that must always be exported.
16038
 
include_expsyms=$lt_include_expsyms_F77
16039
 
 
16040
 
# ### END LIBTOOL TAG CONFIG: $tagname
16041
 
 
16042
 
__EOF__
16043
 
 
16044
 
 
16045
 
else
16046
 
  # If there is no Makefile yet, we rely on a make rule to execute
16047
 
  # `config.status --recheck' to rerun these tests and create the
16048
 
  # libtool script then.
16049
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16050
 
  if test -f "$ltmain_in"; then
16051
 
    test -f Makefile && make "$ltmain"
16052
 
  fi
16053
 
fi
16054
 
 
16055
 
 
16056
 
ac_ext=c
16057
 
ac_cpp='$CPP $CPPFLAGS'
16058
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16059
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16060
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16061
 
 
16062
 
CC="$lt_save_CC"
16063
 
 
16064
 
        else
16065
 
          tagname=""
16066
 
        fi
16067
 
        ;;
16068
 
 
16069
 
      GCJ)
16070
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16071
 
          
16072
 
 
16073
 
# Source file extension for Java test sources.
16074
 
ac_ext=java
16075
 
 
16076
 
# Object file extension for compiled Java test sources.
16077
 
objext=o
16078
 
objext_GCJ=$objext
16079
 
 
16080
 
# Code to be used in simple compile tests
16081
 
lt_simple_compile_test_code="class foo {}\n"
16082
 
 
16083
 
# Code to be used in simple link tests
16084
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16085
 
 
16086
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16087
 
 
16088
 
# If no C compiler was specified, use CC.
16089
 
LTCC=${LTCC-"$CC"}
16090
 
 
16091
 
# If no C compiler flags were specified, use CFLAGS.
16092
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16093
 
 
16094
 
# Allow CC to be a program name with arguments.
16095
 
compiler=$CC
16096
 
 
16097
 
 
16098
 
# save warnings/boilerplate of simple test code
16099
 
ac_outfile=conftest.$ac_objext
16100
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16101
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16102
 
_lt_compiler_boilerplate=`cat conftest.err`
16103
 
$rm conftest*
16104
 
 
16105
 
ac_outfile=conftest.$ac_objext
16106
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16107
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16108
 
_lt_linker_boilerplate=`cat conftest.err`
16109
 
$rm conftest*
16110
 
 
16111
 
 
16112
 
# Allow CC to be a program name with arguments.
16113
 
lt_save_CC="$CC"
16114
 
CC=${GCJ-"gcj"}
16115
 
compiler=$CC
16116
 
compiler_GCJ=$CC
16117
 
for cc_temp in $compiler""; do
16118
 
  case $cc_temp in
16119
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16120
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16121
 
    \-*) ;;
16122
 
    *) break;;
16123
 
  esac
16124
 
done
16125
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16126
 
 
16127
 
 
16128
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16129
 
archive_cmds_need_lc_GCJ=no
16130
 
 
16131
 
old_archive_cmds_GCJ=$old_archive_cmds
16132
 
 
16133
 
 
16134
 
lt_prog_compiler_no_builtin_flag_GCJ=
16135
 
 
16136
 
if test "$GCC" = yes; then
16137
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16138
 
 
16139
 
  
16140
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16141
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16142
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16143
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16144
 
else
16145
 
  lt_cv_prog_compiler_rtti_exceptions=no
16146
 
  ac_outfile=conftest.$ac_objext
16147
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16148
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16149
 
   # Insert the option either (1) after the last *FLAGS variable, or
16150
 
   # (2) before a word containing "conftest.", or (3) at the end.
16151
 
   # Note that $ac_compile itself does not contain backslashes and begins
16152
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16153
 
   # The option is referenced via a variable to avoid confusing sed.
16154
 
   lt_compile=`echo "$ac_compile" | $SED \
16155
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16156
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16157
 
   -e 's:$: $lt_compiler_flag:'`
16158
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16159
 
   (eval "$lt_compile" 2>conftest.err)
16160
 
   ac_status=$?
16161
 
   cat conftest.err >&5
16162
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16163
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16164
 
     # The compiler can only warn and ignore the option if not recognized
16165
 
     # So say no if there are warnings other than the usual output.
16166
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16167
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16168
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16169
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16170
 
     fi
16171
 
   fi
16172
 
   $rm conftest*
16173
 
 
16174
 
fi
16175
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16176
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16177
 
 
16178
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16179
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16180
 
else
16181
 
    :
16182
 
fi
16183
 
 
16184
 
fi
16185
 
 
16186
 
lt_prog_compiler_wl_GCJ=
16187
 
lt_prog_compiler_pic_GCJ=
16188
 
lt_prog_compiler_static_GCJ=
16189
 
 
16190
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16191
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16192
 
 
16193
 
  if test "$GCC" = yes; then
16194
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16195
 
    lt_prog_compiler_static_GCJ='-static'
16196
 
 
16197
 
    case $host_os in
16198
 
      aix*)
16199
 
      # All AIX code is PIC.
16200
 
      if test "$host_cpu" = ia64; then
16201
 
        # AIX 5 now supports IA64 processor
16202
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16203
 
      fi
16204
 
      ;;
16205
 
 
16206
 
    amigaos*)
16207
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16208
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16209
 
      # like `-m68040'.
16210
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16211
 
      ;;
16212
 
 
16213
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16214
 
      # PIC is the default for these OSes.
16215
 
      ;;
16216
 
 
16217
 
    mingw* | pw32* | os2*)
16218
 
      # This hack is so that the source file can tell whether it is being
16219
 
      # built for inclusion in a dll (and should export symbols for example).
16220
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16221
 
      ;;
16222
 
 
16223
 
    darwin* | rhapsody*)
16224
 
      # PIC is the default on this platform
16225
 
      # Common symbols not allowed in MH_DYLIB files
16226
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16227
 
      ;;
16228
 
 
16229
 
    interix3*)
16230
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16231
 
      # Instead, we relocate shared libraries at runtime.
16232
 
      ;;
16233
 
 
16234
 
    msdosdjgpp*)
16235
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16236
 
      # on systems that don't support them.
16237
 
      lt_prog_compiler_can_build_shared_GCJ=no
16238
 
      enable_shared=no
16239
 
      ;;
16240
 
 
16241
 
    sysv4*MP*)
16242
 
      if test -d /usr/nec; then
16243
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16244
 
      fi
16245
 
      ;;
16246
 
 
16247
 
    hpux*)
16248
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16249
 
      # not for PA HP-UX.
16250
 
      case $host_cpu in
16251
 
      hppa*64*|ia64*)
16252
 
        # +Z the default
16253
 
        ;;
16254
 
      *)
16255
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16256
 
        ;;
16257
 
      esac
16258
 
      ;;
16259
 
 
16260
 
    *)
16261
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16262
 
      ;;
16263
 
    esac
16264
 
  else
16265
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16266
 
    case $host_os in
16267
 
    aix*)
16268
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16269
 
      if test "$host_cpu" = ia64; then
16270
 
        # AIX 5 now supports IA64 processor
16271
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16272
 
      else
16273
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16274
 
      fi
16275
 
      ;;
16276
 
      darwin*)
16277
 
        # PIC is the default on this platform
16278
 
        # Common symbols not allowed in MH_DYLIB files
16279
 
       case $cc_basename in
16280
 
         xlc*)
16281
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16282
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16283
 
         ;;
16284
 
       esac
16285
 
       ;;
16286
 
 
16287
 
    mingw* | pw32* | os2*)
16288
 
      # This hack is so that the source file can tell whether it is being
16289
 
      # built for inclusion in a dll (and should export symbols for example).
16290
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16291
 
      ;;
16292
 
 
16293
 
    hpux9* | hpux10* | hpux11*)
16294
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16295
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16296
 
      # not for PA HP-UX.
16297
 
      case $host_cpu in
16298
 
      hppa*64*|ia64*)
16299
 
        # +Z the default
16300
 
        ;;
16301
 
      *)
16302
 
        lt_prog_compiler_pic_GCJ='+Z'
16303
 
        ;;
16304
 
      esac
16305
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16306
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16307
 
      ;;
16308
 
 
16309
 
    irix5* | irix6* | nonstopux*)
16310
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16311
 
      # PIC (with -KPIC) is the default.
16312
 
      lt_prog_compiler_static_GCJ='-non_shared'
16313
 
      ;;
16314
 
 
16315
 
    newsos6)
16316
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16317
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16318
 
      ;;
16319
 
 
16320
 
    linux* | k*bsd*-gnu)
16321
 
      case $cc_basename in
16322
 
      icc* | ecc*)
16323
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16324
 
        lt_prog_compiler_pic_GCJ='-KPIC'
16325
 
        lt_prog_compiler_static_GCJ='-static'
16326
 
        ;;
16327
 
      pgcc* | pgf77* | pgf90* | pgf95*)
16328
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
16329
 
        # which looks to be a dead project)
16330
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16331
 
        lt_prog_compiler_pic_GCJ='-fpic'
16332
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16333
 
        ;;
16334
 
      ccc*)
16335
 
        lt_prog_compiler_wl_GCJ='-Wl,'
16336
 
        # All Alpha code is PIC.
16337
 
        lt_prog_compiler_static_GCJ='-non_shared'
16338
 
        ;;
16339
 
      esac
16340
 
      ;;
16341
 
 
16342
 
    osf3* | osf4* | osf5*)
16343
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16344
 
      # All OSF/1 code is PIC.
16345
 
      lt_prog_compiler_static_GCJ='-non_shared'
16346
 
      ;;
16347
 
 
16348
 
    solaris*)
16349
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16350
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16351
 
      case $cc_basename in
16352
 
      f77* | f90* | f95*)
16353
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16354
 
      *)
16355
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
16356
 
      esac
16357
 
      ;;
16358
 
 
16359
 
    sunos4*)
16360
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
16361
 
      lt_prog_compiler_pic_GCJ='-PIC'
16362
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16363
 
      ;;
16364
 
 
16365
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
16366
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16367
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16368
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16369
 
      ;;
16370
 
 
16371
 
    sysv4*MP*)
16372
 
      if test -d /usr/nec ;then
16373
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
16374
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16375
 
      fi
16376
 
      ;;
16377
 
 
16378
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16379
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16380
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16381
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16382
 
      ;;
16383
 
 
16384
 
    unicos*)
16385
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16386
 
      lt_prog_compiler_can_build_shared_GCJ=no
16387
 
      ;;
16388
 
 
16389
 
    uts4*)
16390
 
      lt_prog_compiler_pic_GCJ='-pic'
16391
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16392
 
      ;;
16393
 
 
16394
 
    *)
16395
 
      lt_prog_compiler_can_build_shared_GCJ=no
16396
 
      ;;
16397
 
    esac
16398
 
  fi
16399
 
 
16400
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16401
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16402
 
 
16403
 
#
16404
 
# Check to make sure the PIC flag actually works.
16405
 
#
16406
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
16407
 
  
16408
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16409
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16410
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16411
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16412
 
else
16413
 
  lt_prog_compiler_pic_works_GCJ=no
16414
 
  ac_outfile=conftest.$ac_objext
16415
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16416
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16417
 
   # Insert the option either (1) after the last *FLAGS variable, or
16418
 
   # (2) before a word containing "conftest.", or (3) at the end.
16419
 
   # Note that $ac_compile itself does not contain backslashes and begins
16420
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16421
 
   # The option is referenced via a variable to avoid confusing sed.
16422
 
   lt_compile=`echo "$ac_compile" | $SED \
16423
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16424
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16425
 
   -e 's:$: $lt_compiler_flag:'`
16426
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16427
 
   (eval "$lt_compile" 2>conftest.err)
16428
 
   ac_status=$?
16429
 
   cat conftest.err >&5
16430
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16431
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16432
 
     # The compiler can only warn and ignore the option if not recognized
16433
 
     # So say no if there are warnings other than the usual output.
16434
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16435
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16436
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16437
 
       lt_prog_compiler_pic_works_GCJ=yes
16438
 
     fi
16439
 
   fi
16440
 
   $rm conftest*
16441
 
 
16442
 
fi
16443
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16444
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16445
 
 
16446
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16447
 
    case $lt_prog_compiler_pic_GCJ in
16448
 
     "" | " "*) ;;
16449
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16450
 
     esac
16451
 
else
16452
 
    lt_prog_compiler_pic_GCJ=
16453
 
     lt_prog_compiler_can_build_shared_GCJ=no
16454
 
fi
16455
 
 
16456
 
fi
16457
 
case $host_os in
16458
 
  # For platforms which do not support PIC, -DPIC is meaningless:
16459
 
  *djgpp*)
16460
 
    lt_prog_compiler_pic_GCJ=
16461
 
    ;;
16462
 
  *)
16463
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16464
 
    ;;
16465
 
esac
16466
 
 
16467
 
#
16468
 
# Check to make sure the static flag actually works.
16469
 
#
16470
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16471
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16472
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16473
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16474
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16475
 
else
16476
 
  lt_prog_compiler_static_works_GCJ=no
16477
 
   save_LDFLAGS="$LDFLAGS"
16478
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16479
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16480
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16481
 
     # The linker can only warn and ignore the option if not recognized
16482
 
     # So say no if there are warnings
16483
 
     if test -s conftest.err; then
16484
 
       # Append any errors to the config.log.
16485
 
       cat conftest.err 1>&5
16486
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16487
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16488
 
       if diff conftest.exp conftest.er2 >/dev/null; then
16489
 
         lt_prog_compiler_static_works_GCJ=yes
16490
 
       fi
16491
 
     else
16492
 
       lt_prog_compiler_static_works_GCJ=yes
16493
 
     fi
16494
 
   fi
16495
 
   $rm conftest*
16496
 
   LDFLAGS="$save_LDFLAGS"
16497
 
 
16498
 
fi
16499
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16500
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16501
 
 
16502
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16503
 
    :
16504
 
else
16505
 
    lt_prog_compiler_static_GCJ=
16506
 
fi
16507
 
 
16508
 
 
16509
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16510
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16511
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16513
 
else
16514
 
  lt_cv_prog_compiler_c_o_GCJ=no
16515
 
   $rm -r conftest 2>/dev/null
16516
 
   mkdir conftest
16517
 
   cd conftest
16518
 
   mkdir out
16519
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16520
 
 
16521
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
16522
 
   # Insert the option either (1) after the last *FLAGS variable, or
16523
 
   # (2) before a word containing "conftest.", or (3) at the end.
16524
 
   # Note that $ac_compile itself does not contain backslashes and begins
16525
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16526
 
   lt_compile=`echo "$ac_compile" | $SED \
16527
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16528
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16529
 
   -e 's:$: $lt_compiler_flag:'`
16530
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16531
 
   (eval "$lt_compile" 2>out/conftest.err)
16532
 
   ac_status=$?
16533
 
   cat out/conftest.err >&5
16534
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16535
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16536
 
   then
16537
 
     # The compiler can only warn and ignore the option if not recognized
16538
 
     # So say no if there are warnings
16539
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16540
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16541
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16542
 
       lt_cv_prog_compiler_c_o_GCJ=yes
16543
 
     fi
16544
 
   fi
16545
 
   chmod u+w . 2>&5
16546
 
   $rm conftest*
16547
 
   # SGI C++ compiler will create directory out/ii_files/ for
16548
 
   # template instantiation
16549
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16550
 
   $rm out/* && rmdir out
16551
 
   cd ..
16552
 
   rmdir conftest
16553
 
   $rm conftest*
16554
 
 
16555
 
fi
16556
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16557
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16558
 
 
16559
 
 
16560
 
hard_links="nottested"
16561
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16562
 
  # do not overwrite the value of need_locks provided by the user
16563
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16564
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16565
 
  hard_links=yes
16566
 
  $rm conftest*
16567
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16568
 
  touch conftest.a
16569
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
16570
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16571
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16572
 
echo "${ECHO_T}$hard_links" >&6; }
16573
 
  if test "$hard_links" = no; then
16574
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16575
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16576
 
    need_locks=warn
16577
 
  fi
16578
 
else
16579
 
  need_locks=no
16580
 
fi
16581
 
 
16582
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16583
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16584
 
 
16585
 
  runpath_var=
16586
 
  allow_undefined_flag_GCJ=
16587
 
  enable_shared_with_static_runtimes_GCJ=no
16588
 
  archive_cmds_GCJ=
16589
 
  archive_expsym_cmds_GCJ=
16590
 
  old_archive_From_new_cmds_GCJ=
16591
 
  old_archive_from_expsyms_cmds_GCJ=
16592
 
  export_dynamic_flag_spec_GCJ=
16593
 
  whole_archive_flag_spec_GCJ=
16594
 
  thread_safe_flag_spec_GCJ=
16595
 
  hardcode_libdir_flag_spec_GCJ=
16596
 
  hardcode_libdir_flag_spec_ld_GCJ=
16597
 
  hardcode_libdir_separator_GCJ=
16598
 
  hardcode_direct_GCJ=no
16599
 
  hardcode_minus_L_GCJ=no
16600
 
  hardcode_shlibpath_var_GCJ=unsupported
16601
 
  link_all_deplibs_GCJ=unknown
16602
 
  hardcode_automatic_GCJ=no
16603
 
  module_cmds_GCJ=
16604
 
  module_expsym_cmds_GCJ=
16605
 
  always_export_symbols_GCJ=no
16606
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16607
 
  # include_expsyms should be a list of space-separated symbols to be *always*
16608
 
  # included in the symbol list
16609
 
  include_expsyms_GCJ=
16610
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
16611
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16612
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16613
 
  # as well as any symbol that contains `d'.
16614
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16615
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16616
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
16617
 
  # the symbol is explicitly referenced.  Since portable code cannot
16618
 
  # rely on this symbol name, it's probably fine to never include it in
16619
 
  # preloaded symbol tables.
16620
 
  extract_expsyms_cmds=
16621
 
  # Just being paranoid about ensuring that cc_basename is set.
16622
 
  for cc_temp in $compiler""; do
16623
 
  case $cc_temp in
16624
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16625
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16626
 
    \-*) ;;
16627
 
    *) break;;
16628
 
  esac
16629
 
done
16630
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16631
 
 
16632
 
  case $host_os in
16633
 
  cygwin* | mingw* | pw32*)
16634
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16635
 
    # When not using gcc, we currently assume that we are using
16636
 
    # Microsoft Visual C++.
16637
 
    if test "$GCC" != yes; then
16638
 
      with_gnu_ld=no
16639
 
    fi
16640
 
    ;;
16641
 
  interix*)
16642
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16643
 
    with_gnu_ld=yes
16644
 
    ;;
16645
 
  openbsd*)
16646
 
    with_gnu_ld=no
16647
 
    ;;
16648
 
  esac
16649
 
 
16650
 
  ld_shlibs_GCJ=yes
16651
 
  if test "$with_gnu_ld" = yes; then
16652
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
16653
 
    wlarc='${wl}'
16654
 
 
16655
 
    # Set some defaults for GNU ld with shared library support. These
16656
 
    # are reset later if shared libraries are not supported. Putting them
16657
 
    # here allows them to be overridden if necessary.
16658
 
    runpath_var=LD_RUN_PATH
16659
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16660
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16661
 
    # ancient GNU ld didn't support --whole-archive et. al.
16662
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16663
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16664
 
      else
16665
 
        whole_archive_flag_spec_GCJ=
16666
 
    fi
16667
 
    supports_anon_versioning=no
16668
 
    case `$LD -v 2>/dev/null` in
16669
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16670
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16671
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16672
 
      *\ 2.11.*) ;; # other 2.11 versions
16673
 
      *) supports_anon_versioning=yes ;;
16674
 
    esac
16675
 
 
16676
 
    # See if GNU ld supports shared libraries.
16677
 
    case $host_os in
16678
 
    aix3* | aix4* | aix5*)
16679
 
      # On AIX/PPC, the GNU linker is very broken
16680
 
      if test "$host_cpu" != ia64; then
16681
 
        ld_shlibs_GCJ=no
16682
 
        cat <<EOF 1>&2
16683
 
 
16684
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16685
 
*** to be unable to reliably create shared libraries on AIX.
16686
 
*** Therefore, libtool is disabling shared libraries support.  If you
16687
 
*** really care for shared libraries, you may want to modify your PATH
16688
 
*** so that a non-GNU linker is found, and then restart.
16689
 
 
16690
 
EOF
16691
 
      fi
16692
 
      ;;
16693
 
 
16694
 
    amigaos*)
16695
 
      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)'
16696
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16697
 
      hardcode_minus_L_GCJ=yes
16698
 
 
16699
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16700
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
16701
 
      # to version 4, is to share data among multiple programs linked
16702
 
      # with the same dynamic library.  Since this doesn't match the
16703
 
      # behavior of shared libraries on other platforms, we can't use
16704
 
      # them.
16705
 
      ld_shlibs_GCJ=no
16706
 
      ;;
16707
 
 
16708
 
    beos*)
16709
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16710
 
        allow_undefined_flag_GCJ=unsupported
16711
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16712
 
        # support --undefined.  This deserves some investigation.  FIXME
16713
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16714
 
      else
16715
 
        ld_shlibs_GCJ=no
16716
 
      fi
16717
 
      ;;
16718
 
 
16719
 
    cygwin* | mingw* | pw32*)
16720
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16721
 
      # as there is no search path for DLLs.
16722
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16723
 
      allow_undefined_flag_GCJ=unsupported
16724
 
      always_export_symbols_GCJ=no
16725
 
      enable_shared_with_static_runtimes_GCJ=yes
16726
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16727
 
 
16728
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16729
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16730
 
        # If the export-symbols file already is a .def file (1st line
16731
 
        # is EXPORTS), use it as is; otherwise, prepend...
16732
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16733
 
          cp $export_symbols $output_objdir/$soname.def;
16734
 
        else
16735
 
          echo EXPORTS > $output_objdir/$soname.def;
16736
 
          cat $export_symbols >> $output_objdir/$soname.def;
16737
 
        fi~
16738
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16739
 
      else
16740
 
        ld_shlibs_GCJ=no
16741
 
      fi
16742
 
      ;;
16743
 
 
16744
 
    interix3*)
16745
 
      hardcode_direct_GCJ=no
16746
 
      hardcode_shlibpath_var_GCJ=no
16747
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16748
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16749
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16750
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16751
 
      # default) and relocated if they conflict, which is a slow very memory
16752
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16753
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16754
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16755
 
      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'
16756
 
      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'
16757
 
      ;;
16758
 
 
16759
 
    linux* | k*bsd*-gnu)
16760
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16761
 
        tmp_addflag=
16762
 
        case $cc_basename,$host_cpu in
16763
 
        pgcc*)                          # Portland Group C compiler
16764
 
          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'
16765
 
          tmp_addflag=' $pic_flag'
16766
 
          ;;
16767
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16768
 
          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'
16769
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
16770
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16771
 
          tmp_addflag=' -i_dynamic' ;;
16772
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16773
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
16774
 
        ifc* | ifort*)                  # Intel Fortran compiler
16775
 
          tmp_addflag=' -nofor_main' ;;
16776
 
        esac
16777
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16778
 
 
16779
 
        if test $supports_anon_versioning = yes; then
16780
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16781
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16782
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16783
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16784
 
        fi
16785
 
        link_all_deplibs_GCJ=no
16786
 
      else
16787
 
        ld_shlibs_GCJ=no
16788
 
      fi
16789
 
      ;;
16790
 
 
16791
 
    netbsd* | netbsdelf*-gnu)
16792
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16793
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16794
 
        wlarc=
16795
 
      else
16796
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16797
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16798
 
      fi
16799
 
      ;;
16800
 
 
16801
 
    solaris*)
16802
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16803
 
        ld_shlibs_GCJ=no
16804
 
        cat <<EOF 1>&2
16805
 
 
16806
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16807
 
*** create shared libraries on Solaris systems.  Therefore, libtool
16808
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16809
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
16810
 
*** your PATH or compiler configuration so that the native linker is
16811
 
*** used, and then restart.
16812
 
 
16813
 
EOF
16814
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16815
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16816
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16817
 
      else
16818
 
        ld_shlibs_GCJ=no
16819
 
      fi
16820
 
      ;;
16821
 
 
16822
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16823
 
      case `$LD -v 2>&1` in
16824
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 
16825
 
        ld_shlibs_GCJ=no
16826
 
        cat <<_LT_EOF 1>&2
16827
 
 
16828
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16829
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16830
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16831
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16832
 
*** your PATH or compiler configuration so that the native linker is
16833
 
*** used, and then restart.
16834
 
 
16835
 
_LT_EOF
16836
 
        ;;
16837
 
        *)
16838
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16839
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16840
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16841
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16842
 
          else
16843
 
            ld_shlibs_GCJ=no
16844
 
          fi
16845
 
        ;;
16846
 
      esac
16847
 
      ;;
16848
 
 
16849
 
    sunos4*)
16850
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16851
 
      wlarc=
16852
 
      hardcode_direct_GCJ=yes
16853
 
      hardcode_shlibpath_var_GCJ=no
16854
 
      ;;
16855
 
 
16856
 
    *)
16857
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16858
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16859
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16860
 
      else
16861
 
        ld_shlibs_GCJ=no
16862
 
      fi
16863
 
      ;;
16864
 
    esac
16865
 
 
16866
 
    if test "$ld_shlibs_GCJ" = no; then
16867
 
      runpath_var=
16868
 
      hardcode_libdir_flag_spec_GCJ=
16869
 
      export_dynamic_flag_spec_GCJ=
16870
 
      whole_archive_flag_spec_GCJ=
16871
 
    fi
16872
 
  else
16873
 
    # PORTME fill in a description of your system's linker (not GNU ld)
16874
 
    case $host_os in
16875
 
    aix3*)
16876
 
      allow_undefined_flag_GCJ=unsupported
16877
 
      always_export_symbols_GCJ=yes
16878
 
      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'
16879
 
      # Note: this linker hardcodes the directories in LIBPATH if there
16880
 
      # are no directories specified by -L.
16881
 
      hardcode_minus_L_GCJ=yes
16882
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16883
 
        # Neither direct hardcoding nor static linking is supported with a
16884
 
        # broken collect2.
16885
 
        hardcode_direct_GCJ=unsupported
16886
 
      fi
16887
 
      ;;
16888
 
 
16889
 
    aix4* | aix5*)
16890
 
      if test "$host_cpu" = ia64; then
16891
 
        # On IA64, the linker does run time linking by default, so we don't
16892
 
        # have to do anything special.
16893
 
        aix_use_runtimelinking=no
16894
 
        exp_sym_flag='-Bexport'
16895
 
        no_entry_flag=""
16896
 
      else
16897
 
        # If we're using GNU nm, then we don't want the "-C" option.
16898
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
16899
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16900
 
          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'
16901
 
        else
16902
 
          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'
16903
 
        fi
16904
 
        aix_use_runtimelinking=no
16905
 
 
16906
 
        # Test if we are trying to use run time linking or normal
16907
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16908
 
        # need to do runtime linking.
16909
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16910
 
          for ld_flag in $LDFLAGS; do
16911
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16912
 
            aix_use_runtimelinking=yes
16913
 
            break
16914
 
          fi
16915
 
          done
16916
 
          ;;
16917
 
        esac
16918
 
 
16919
 
        exp_sym_flag='-bexport'
16920
 
        no_entry_flag='-bnoentry'
16921
 
      fi
16922
 
 
16923
 
      # When large executables or shared objects are built, AIX ld can
16924
 
      # have problems creating the table of contents.  If linking a library
16925
 
      # or program results in "error TOC overflow" add -mminimal-toc to
16926
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16927
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16928
 
 
16929
 
      archive_cmds_GCJ=''
16930
 
      hardcode_direct_GCJ=yes
16931
 
      hardcode_libdir_separator_GCJ=':'
16932
 
      link_all_deplibs_GCJ=yes
16933
 
 
16934
 
      if test "$GCC" = yes; then
16935
 
        case $host_os in aix4.[012]|aix4.[012].*)
16936
 
        # We only want to do this on AIX 4.2 and lower, the check
16937
 
        # below for broken collect2 doesn't work under 4.3+
16938
 
          collect2name=`${CC} -print-prog-name=collect2`
16939
 
          if test -f "$collect2name" && \
16940
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
16941
 
          then
16942
 
          # We have reworked collect2
16943
 
          hardcode_direct_GCJ=yes
16944
 
          else
16945
 
          # We have old collect2
16946
 
          hardcode_direct_GCJ=unsupported
16947
 
          # It fails to find uninstalled libraries when the uninstalled
16948
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
16949
 
          # to unsupported forces relinking
16950
 
          hardcode_minus_L_GCJ=yes
16951
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16952
 
          hardcode_libdir_separator_GCJ=
16953
 
          fi
16954
 
          ;;
16955
 
        esac
16956
 
        shared_flag='-shared'
16957
 
        if test "$aix_use_runtimelinking" = yes; then
16958
 
          shared_flag="$shared_flag "'${wl}-G'
16959
 
        fi
16960
 
      else
16961
 
        # not using gcc
16962
 
        if test "$host_cpu" = ia64; then
16963
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16964
 
        # chokes on -Wl,-G. The following line is correct:
16965
 
          shared_flag='-G'
16966
 
        else
16967
 
          if test "$aix_use_runtimelinking" = yes; then
16968
 
            shared_flag='${wl}-G'
16969
 
          else
16970
 
            shared_flag='${wl}-bM:SRE'
16971
 
          fi
16972
 
        fi
16973
 
      fi
16974
 
 
16975
 
      # It seems that -bexpall does not export symbols beginning with
16976
 
      # underscore (_), so it is better to generate a list of symbols to export.
16977
 
      always_export_symbols_GCJ=yes
16978
 
      if test "$aix_use_runtimelinking" = yes; then
16979
 
        # Warning - without using the other runtime loading flags (-brtl),
16980
 
        # -berok will link without error, but may produce a broken library.
16981
 
        allow_undefined_flag_GCJ='-berok'
16982
 
       # Determine the default libpath from the value encoded in an empty executable.
16983
 
       cat >conftest.$ac_ext <<_ACEOF
16984
 
/* confdefs.h.  */
16985
 
_ACEOF
16986
 
cat confdefs.h >>conftest.$ac_ext
16987
 
cat >>conftest.$ac_ext <<_ACEOF
16988
 
/* end confdefs.h.  */
16989
 
 
16990
 
int
16991
 
main ()
16992
 
{
16993
 
 
16994
 
  ;
16995
 
  return 0;
16996
 
}
16997
 
_ACEOF
16998
 
rm -f conftest.$ac_objext conftest$ac_exeext
16999
 
if { (ac_try="$ac_link"
17000
 
case "(($ac_try" in
17001
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002
 
  *) ac_try_echo=$ac_try;;
17003
 
esac
17004
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005
 
  (eval "$ac_link") 2>conftest.er1
17006
 
  ac_status=$?
17007
 
  grep -v '^ *+' conftest.er1 >conftest.err
17008
 
  rm -f conftest.er1
17009
 
  cat conftest.err >&5
17010
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011
 
  (exit $ac_status); } && {
17012
 
         test -z "$ac_c_werror_flag" ||
17013
 
         test ! -s conftest.err
17014
 
       } && test -s conftest$ac_exeext &&
17015
 
       $as_test_x conftest$ac_exeext; then
17016
 
  
17017
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17018
 
}'`
17019
 
# Check for a 64-bit object if we didn't find anything.
17020
 
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; }
17021
 
}'`; fi
17022
 
else
17023
 
  echo "$as_me: failed program was:" >&5
17024
 
sed 's/^/| /' conftest.$ac_ext >&5
17025
 
 
17026
 
        
17027
 
fi
17028
 
 
17029
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030
 
      conftest$ac_exeext conftest.$ac_ext
17031
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17032
 
 
17033
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17034
 
        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"
17035
 
       else
17036
 
        if test "$host_cpu" = ia64; then
17037
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17038
 
          allow_undefined_flag_GCJ="-z nodefs"
17039
 
          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"
17040
 
        else
17041
 
         # Determine the default libpath from the value encoded in an empty executable.
17042
 
         cat >conftest.$ac_ext <<_ACEOF
17043
 
/* confdefs.h.  */
17044
 
_ACEOF
17045
 
cat confdefs.h >>conftest.$ac_ext
17046
 
cat >>conftest.$ac_ext <<_ACEOF
17047
 
/* end confdefs.h.  */
17048
 
 
17049
 
int
17050
 
main ()
17051
 
{
17052
 
 
17053
 
  ;
17054
 
  return 0;
17055
 
}
17056
 
_ACEOF
17057
 
rm -f conftest.$ac_objext conftest$ac_exeext
17058
 
if { (ac_try="$ac_link"
17059
 
case "(($ac_try" in
17060
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061
 
  *) ac_try_echo=$ac_try;;
17062
 
esac
17063
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17064
 
  (eval "$ac_link") 2>conftest.er1
17065
 
  ac_status=$?
17066
 
  grep -v '^ *+' conftest.er1 >conftest.err
17067
 
  rm -f conftest.er1
17068
 
  cat conftest.err >&5
17069
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070
 
  (exit $ac_status); } && {
17071
 
         test -z "$ac_c_werror_flag" ||
17072
 
         test ! -s conftest.err
17073
 
       } && test -s conftest$ac_exeext &&
17074
 
       $as_test_x conftest$ac_exeext; then
17075
 
  
17076
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17077
 
}'`
17078
 
# Check for a 64-bit object if we didn't find anything.
17079
 
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; }
17080
 
}'`; fi
17081
 
else
17082
 
  echo "$as_me: failed program was:" >&5
17083
 
sed 's/^/| /' conftest.$ac_ext >&5
17084
 
 
17085
 
        
17086
 
fi
17087
 
 
17088
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17089
 
      conftest$ac_exeext conftest.$ac_ext
17090
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17091
 
 
17092
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17093
 
          # Warning - without using the other run time loading flags,
17094
 
          # -berok will link without error, but may produce a broken library.
17095
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17096
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17097
 
          # Exported symbols can be pulled into shared objects from archives
17098
 
          whole_archive_flag_spec_GCJ='$convenience'
17099
 
          archive_cmds_need_lc_GCJ=yes
17100
 
          # This is similar to how AIX traditionally builds its shared libraries.
17101
 
          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'
17102
 
        fi
17103
 
      fi
17104
 
      ;;
17105
 
 
17106
 
    amigaos*)
17107
 
      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)'
17108
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17109
 
      hardcode_minus_L_GCJ=yes
17110
 
      # see comment about different semantics on the GNU ld section
17111
 
      ld_shlibs_GCJ=no
17112
 
      ;;
17113
 
 
17114
 
    bsdi[45]*)
17115
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17116
 
      ;;
17117
 
 
17118
 
    cygwin* | mingw* | pw32*)
17119
 
      # When not using gcc, we currently assume that we are using
17120
 
      # Microsoft Visual C++.
17121
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17122
 
      # no search path for DLLs.
17123
 
      hardcode_libdir_flag_spec_GCJ=' '
17124
 
      allow_undefined_flag_GCJ=unsupported
17125
 
      # Tell ltmain to make .lib files, not .a files.
17126
 
      libext=lib
17127
 
      # Tell ltmain to make .dll files, not .so files.
17128
 
      shrext_cmds=".dll"
17129
 
      # FIXME: Setting linknames here is a bad hack.
17130
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17131
 
      # The linker will automatically build a .lib file if we build a DLL.
17132
 
      old_archive_From_new_cmds_GCJ='true'
17133
 
      # FIXME: Should let the user specify the lib program.
17134
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17135
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17136
 
      enable_shared_with_static_runtimes_GCJ=yes
17137
 
      ;;
17138
 
 
17139
 
    darwin* | rhapsody*)
17140
 
      case $host_os in
17141
 
        rhapsody* | darwin1.[012])
17142
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17143
 
         ;;
17144
 
       *) # Darwin 1.3 on
17145
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17146
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17147
 
         else
17148
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17149
 
             10.[012])
17150
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17151
 
               ;;
17152
 
             10.*)
17153
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17154
 
               ;;
17155
 
           esac
17156
 
         fi
17157
 
         ;;
17158
 
      esac
17159
 
      archive_cmds_need_lc_GCJ=no
17160
 
      hardcode_direct_GCJ=no
17161
 
      hardcode_automatic_GCJ=yes
17162
 
      hardcode_shlibpath_var_GCJ=unsupported
17163
 
      whole_archive_flag_spec_GCJ=''
17164
 
      link_all_deplibs_GCJ=yes
17165
 
    if test "$GCC" = yes ; then
17166
 
        output_verbose_link_cmd='echo'
17167
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17168
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17169
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17170
 
      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}'
17171
 
      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}'
17172
 
    else
17173
 
      case $cc_basename in
17174
 
        xlc*)
17175
 
         output_verbose_link_cmd='echo'
17176
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17177
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17178
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17179
 
         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}'
17180
 
          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}'
17181
 
          ;;
17182
 
       *)
17183
 
         ld_shlibs_GCJ=no
17184
 
          ;;
17185
 
      esac
17186
 
    fi
17187
 
      ;;
17188
 
 
17189
 
    dgux*)
17190
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17191
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17192
 
      hardcode_shlibpath_var_GCJ=no
17193
 
      ;;
17194
 
 
17195
 
    freebsd1*)
17196
 
      ld_shlibs_GCJ=no
17197
 
      ;;
17198
 
 
17199
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17200
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17201
 
    # does not break anything, and helps significantly (at the cost of a little
17202
 
    # extra space).
17203
 
    freebsd2.2*)
17204
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17205
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17206
 
      hardcode_direct_GCJ=yes
17207
 
      hardcode_shlibpath_var_GCJ=no
17208
 
      ;;
17209
 
 
17210
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17211
 
    freebsd2*)
17212
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17213
 
      hardcode_direct_GCJ=yes
17214
 
      hardcode_minus_L_GCJ=yes
17215
 
      hardcode_shlibpath_var_GCJ=no
17216
 
      ;;
17217
 
 
17218
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17219
 
    freebsd* | dragonfly*)
17220
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17221
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17222
 
      hardcode_direct_GCJ=yes
17223
 
      hardcode_shlibpath_var_GCJ=no
17224
 
      ;;
17225
 
 
17226
 
    hpux9*)
17227
 
      if test "$GCC" = yes; then
17228
 
        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'
17229
 
      else
17230
 
        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'
17231
 
      fi
17232
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17233
 
      hardcode_libdir_separator_GCJ=:
17234
 
      hardcode_direct_GCJ=yes
17235
 
 
17236
 
      # hardcode_minus_L: Not really in the search PATH,
17237
 
      # but as the default location of the library.
17238
 
      hardcode_minus_L_GCJ=yes
17239
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17240
 
      ;;
17241
 
 
17242
 
    hpux10*)
17243
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17244
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17245
 
      else
17246
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17247
 
      fi
17248
 
      if test "$with_gnu_ld" = no; then
17249
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17250
 
        hardcode_libdir_separator_GCJ=:
17251
 
 
17252
 
        hardcode_direct_GCJ=yes
17253
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17254
 
 
17255
 
        # hardcode_minus_L: Not really in the search PATH,
17256
 
        # but as the default location of the library.
17257
 
        hardcode_minus_L_GCJ=yes
17258
 
      fi
17259
 
      ;;
17260
 
 
17261
 
    hpux11*)
17262
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17263
 
        case $host_cpu in
17264
 
        hppa*64*)
17265
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17266
 
          ;;
17267
 
        ia64*)
17268
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17269
 
          ;;
17270
 
        *)
17271
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17272
 
          ;;
17273
 
        esac
17274
 
      else
17275
 
        case $host_cpu in
17276
 
        hppa*64*)
17277
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17278
 
          ;;
17279
 
        ia64*)
17280
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17281
 
          ;;
17282
 
        *)
17283
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17284
 
          ;;
17285
 
        esac
17286
 
      fi
17287
 
      if test "$with_gnu_ld" = no; then
17288
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17289
 
        hardcode_libdir_separator_GCJ=:
17290
 
 
17291
 
        case $host_cpu in
17292
 
        hppa*64*|ia64*)
17293
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17294
 
          hardcode_direct_GCJ=no
17295
 
          hardcode_shlibpath_var_GCJ=no
17296
 
          ;;
17297
 
        *)
17298
 
          hardcode_direct_GCJ=yes
17299
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17300
 
 
17301
 
          # hardcode_minus_L: Not really in the search PATH,
17302
 
          # but as the default location of the library.
17303
 
          hardcode_minus_L_GCJ=yes
17304
 
          ;;
17305
 
        esac
17306
 
      fi
17307
 
      ;;
17308
 
 
17309
 
    irix5* | irix6* | nonstopux*)
17310
 
      if test "$GCC" = yes; then
17311
 
        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'
17312
 
      else
17313
 
        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'
17314
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17315
 
      fi
17316
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17317
 
      hardcode_libdir_separator_GCJ=:
17318
 
      link_all_deplibs_GCJ=yes
17319
 
      ;;
17320
 
 
17321
 
    netbsd* | netbsdelf*-gnu)
17322
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17323
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17324
 
      else
17325
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17326
 
      fi
17327
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17328
 
      hardcode_direct_GCJ=yes
17329
 
      hardcode_shlibpath_var_GCJ=no
17330
 
      ;;
17331
 
 
17332
 
    newsos6)
17333
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17334
 
      hardcode_direct_GCJ=yes
17335
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17336
 
      hardcode_libdir_separator_GCJ=:
17337
 
      hardcode_shlibpath_var_GCJ=no
17338
 
      ;;
17339
 
 
17340
 
    openbsd*)
17341
 
      hardcode_direct_GCJ=yes
17342
 
      hardcode_shlibpath_var_GCJ=no
17343
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17344
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17345
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17346
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17347
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17348
 
      else
17349
 
       case $host_os in
17350
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17351
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17352
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17353
 
           ;;
17354
 
         *)
17355
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17356
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17357
 
           ;;
17358
 
       esac
17359
 
      fi
17360
 
      ;;
17361
 
 
17362
 
    os2*)
17363
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17364
 
      hardcode_minus_L_GCJ=yes
17365
 
      allow_undefined_flag_GCJ=unsupported
17366
 
      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'
17367
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17368
 
      ;;
17369
 
 
17370
 
    osf3*)
17371
 
      if test "$GCC" = yes; then
17372
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17373
 
        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'
17374
 
      else
17375
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17376
 
        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'
17377
 
      fi
17378
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17379
 
      hardcode_libdir_separator_GCJ=:
17380
 
      ;;
17381
 
 
17382
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17383
 
      if test "$GCC" = yes; then
17384
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17385
 
        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'
17386
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17387
 
      else
17388
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17389
 
        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'
17390
 
        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~
17391
 
        $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'
17392
 
 
17393
 
        # Both c and cxx compiler support -rpath directly
17394
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17395
 
      fi
17396
 
      hardcode_libdir_separator_GCJ=:
17397
 
      ;;
17398
 
 
17399
 
    solaris*)
17400
 
      no_undefined_flag_GCJ=' -z text'
17401
 
      if test "$GCC" = yes; then
17402
 
        wlarc='${wl}'
17403
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17404
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17405
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17406
 
      else
17407
 
        wlarc=''
17408
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17409
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17410
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17411
 
      fi
17412
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17413
 
      hardcode_shlibpath_var_GCJ=no
17414
 
      case $host_os in
17415
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17416
 
      *)
17417
 
        # The compiler driver will combine linker options so we
17418
 
        # cannot just pass the convience library names through
17419
 
        # without $wl, iff we do not link with $LD.
17420
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
17421
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
17422
 
        case $wlarc in
17423
 
        '')
17424
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17425
 
        *)
17426
 
          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' ;;
17427
 
        esac ;;
17428
 
      esac
17429
 
      link_all_deplibs_GCJ=yes
17430
 
      ;;
17431
 
 
17432
 
    sunos4*)
17433
 
      if test "x$host_vendor" = xsequent; then
17434
 
        # Use $CC to link under sequent, because it throws in some extra .o
17435
 
        # files that make .init and .fini sections work.
17436
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17437
 
      else
17438
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17439
 
      fi
17440
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17441
 
      hardcode_direct_GCJ=yes
17442
 
      hardcode_minus_L_GCJ=yes
17443
 
      hardcode_shlibpath_var_GCJ=no
17444
 
      ;;
17445
 
 
17446
 
    sysv4)
17447
 
      case $host_vendor in
17448
 
        sni)
17449
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17450
 
          hardcode_direct_GCJ=yes # is this really true???
17451
 
        ;;
17452
 
        siemens)
17453
 
          ## LD is ld it makes a PLAMLIB
17454
 
          ## CC just makes a GrossModule.
17455
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17456
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17457
 
          hardcode_direct_GCJ=no
17458
 
        ;;
17459
 
        motorola)
17460
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17461
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17462
 
        ;;
17463
 
      esac
17464
 
      runpath_var='LD_RUN_PATH'
17465
 
      hardcode_shlibpath_var_GCJ=no
17466
 
      ;;
17467
 
 
17468
 
    sysv4.3*)
17469
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17470
 
      hardcode_shlibpath_var_GCJ=no
17471
 
      export_dynamic_flag_spec_GCJ='-Bexport'
17472
 
      ;;
17473
 
 
17474
 
    sysv4*MP*)
17475
 
      if test -d /usr/nec; then
17476
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17477
 
        hardcode_shlibpath_var_GCJ=no
17478
 
        runpath_var=LD_RUN_PATH
17479
 
        hardcode_runpath_var=yes
17480
 
        ld_shlibs_GCJ=yes
17481
 
      fi
17482
 
      ;;
17483
 
 
17484
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17485
 
      no_undefined_flag_GCJ='${wl}-z,text'
17486
 
      archive_cmds_need_lc_GCJ=no
17487
 
      hardcode_shlibpath_var_GCJ=no
17488
 
      runpath_var='LD_RUN_PATH'
17489
 
 
17490
 
      if test "$GCC" = yes; then
17491
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17492
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17493
 
      else
17494
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17495
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17496
 
      fi
17497
 
      ;;
17498
 
 
17499
 
    sysv5* | sco3.2v5* | sco5v6*)
17500
 
      # Note: We can NOT use -z defs as we might desire, because we do not
17501
 
      # link with -lc, and that would cause any symbols used from libc to
17502
 
      # always be unresolved, which means just about no library would
17503
 
      # ever link correctly.  If we're not using GNU ld we use -z text
17504
 
      # though, which does catch some bad symbols but isn't as heavy-handed
17505
 
      # as -z defs.
17506
 
      no_undefined_flag_GCJ='${wl}-z,text'
17507
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17508
 
      archive_cmds_need_lc_GCJ=no
17509
 
      hardcode_shlibpath_var_GCJ=no
17510
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17511
 
      hardcode_libdir_separator_GCJ=':'
17512
 
      link_all_deplibs_GCJ=yes
17513
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17514
 
      runpath_var='LD_RUN_PATH'
17515
 
 
17516
 
      if test "$GCC" = yes; then
17517
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17518
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17519
 
      else
17520
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17522
 
      fi
17523
 
      ;;
17524
 
 
17525
 
    uts4*)
17526
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17527
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17528
 
      hardcode_shlibpath_var_GCJ=no
17529
 
      ;;
17530
 
 
17531
 
    *)
17532
 
      ld_shlibs_GCJ=no
17533
 
      ;;
17534
 
    esac
17535
 
  fi
17536
 
 
17537
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17538
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17539
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17540
 
 
17541
 
#
17542
 
# Do we need to explicitly link libc?
17543
 
#
17544
 
case "x$archive_cmds_need_lc_GCJ" in
17545
 
x|xyes)
17546
 
  # Assume -lc should be added
17547
 
  archive_cmds_need_lc_GCJ=yes
17548
 
 
17549
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
17550
 
    case $archive_cmds_GCJ in
17551
 
    *'~'*)
17552
 
      # FIXME: we may have to deal with multi-command sequences.
17553
 
      ;;
17554
 
    '$CC '*)
17555
 
      # Test whether the compiler implicitly links with -lc since on some
17556
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17557
 
      # to ld, don't add -lc before -lgcc.
17558
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17559
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17560
 
      $rm conftest*
17561
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17562
 
 
17563
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17564
 
  (eval $ac_compile) 2>&5
17565
 
  ac_status=$?
17566
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567
 
  (exit $ac_status); } 2>conftest.err; then
17568
 
        soname=conftest
17569
 
        lib=conftest
17570
 
        libobjs=conftest.$ac_objext
17571
 
        deplibs=
17572
 
        wl=$lt_prog_compiler_wl_GCJ
17573
 
        pic_flag=$lt_prog_compiler_pic_GCJ
17574
 
        compiler_flags=-v
17575
 
        linker_flags=-v
17576
 
        verstring=
17577
 
        output_objdir=.
17578
 
        libname=conftest
17579
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17580
 
        allow_undefined_flag_GCJ=
17581
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17582
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17583
 
  ac_status=$?
17584
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585
 
  (exit $ac_status); }
17586
 
        then
17587
 
          archive_cmds_need_lc_GCJ=no
17588
 
        else
17589
 
          archive_cmds_need_lc_GCJ=yes
17590
 
        fi
17591
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17592
 
      else
17593
 
        cat conftest.err 1>&5
17594
 
      fi
17595
 
      $rm conftest*
17596
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17597
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17598
 
      ;;
17599
 
    esac
17600
 
  fi
17601
 
  ;;
17602
 
esac
17603
 
 
17604
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17605
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17606
 
library_names_spec=
17607
 
libname_spec='lib$name'
17608
 
soname_spec=
17609
 
shrext_cmds=".so"
17610
 
postinstall_cmds=
17611
 
postuninstall_cmds=
17612
 
finish_cmds=
17613
 
finish_eval=
17614
 
shlibpath_var=
17615
 
shlibpath_overrides_runpath=unknown
17616
 
version_type=none
17617
 
dynamic_linker="$host_os ld.so"
17618
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
17619
 
if test "$GCC" = yes; then
17620
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17621
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17622
 
    # if the path contains ";" then we assume it to be the separator
17623
 
    # otherwise default to the standard path separator (i.e. ":") - it is
17624
 
    # assumed that no part of a normal pathname contains ";" but that should
17625
 
    # okay in the real world where ";" in dirpaths is itself problematic.
17626
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17627
 
  else
17628
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17629
 
  fi
17630
 
else
17631
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17632
 
fi
17633
 
need_lib_prefix=unknown
17634
 
hardcode_into_libs=no
17635
 
 
17636
 
# when you set need_version to no, make sure it does not cause -set_version
17637
 
# flags to be left without arguments
17638
 
need_version=unknown
17639
 
 
17640
 
case $host_os in
17641
 
aix3*)
17642
 
  version_type=linux
17643
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17644
 
  shlibpath_var=LIBPATH
17645
 
 
17646
 
  # AIX 3 has no versioning support, so we append a major version to the name.
17647
 
  soname_spec='${libname}${release}${shared_ext}$major'
17648
 
  ;;
17649
 
 
17650
 
aix4* | aix5*)
17651
 
  version_type=linux
17652
 
  need_lib_prefix=no
17653
 
  need_version=no
17654
 
  hardcode_into_libs=yes
17655
 
  if test "$host_cpu" = ia64; then
17656
 
    # AIX 5 supports IA64
17657
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17658
 
    shlibpath_var=LD_LIBRARY_PATH
17659
 
  else
17660
 
    # With GCC up to 2.95.x, collect2 would create an import file
17661
 
    # for dependence libraries.  The import file would start with
17662
 
    # the line `#! .'.  This would cause the generated library to
17663
 
    # depend on `.', always an invalid library.  This was fixed in
17664
 
    # development snapshots of GCC prior to 3.0.
17665
 
    case $host_os in
17666
 
      aix4 | aix4.[01] | aix4.[01].*)
17667
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17668
 
           echo ' yes '
17669
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17670
 
        :
17671
 
      else
17672
 
        can_build_shared=no
17673
 
      fi
17674
 
      ;;
17675
 
    esac
17676
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17677
 
    # soname into executable. Probably we can add versioning support to
17678
 
    # collect2, so additional links can be useful in future.
17679
 
    if test "$aix_use_runtimelinking" = yes; then
17680
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17681
 
      # instead of lib<name>.a to let people know that these are not
17682
 
      # typical AIX shared libraries.
17683
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684
 
    else
17685
 
      # We preserve .a as extension for shared libraries through AIX4.2
17686
 
      # and later when we are not doing run time linking.
17687
 
      library_names_spec='${libname}${release}.a $libname.a'
17688
 
      soname_spec='${libname}${release}${shared_ext}$major'
17689
 
    fi
17690
 
    shlibpath_var=LIBPATH
17691
 
  fi
17692
 
  ;;
17693
 
 
17694
 
amigaos*)
17695
 
  library_names_spec='$libname.ixlibrary $libname.a'
17696
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17697
 
  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'
17698
 
  ;;
17699
 
 
17700
 
beos*)
17701
 
  library_names_spec='${libname}${shared_ext}'
17702
 
  dynamic_linker="$host_os ld.so"
17703
 
  shlibpath_var=LIBRARY_PATH
17704
 
  ;;
17705
 
 
17706
 
bsdi[45]*)
17707
 
  version_type=linux
17708
 
  need_version=no
17709
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17710
 
  soname_spec='${libname}${release}${shared_ext}$major'
17711
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17712
 
  shlibpath_var=LD_LIBRARY_PATH
17713
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17714
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17715
 
  # the default ld.so.conf also contains /usr/contrib/lib and
17716
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17717
 
  # libtool to hard-code these into programs
17718
 
  ;;
17719
 
 
17720
 
cygwin* | mingw* | pw32*)
17721
 
  version_type=windows
17722
 
  shrext_cmds=".dll"
17723
 
  need_version=no
17724
 
  need_lib_prefix=no
17725
 
 
17726
 
  case $GCC,$host_os in
17727
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
17728
 
    library_names_spec='$libname.dll.a'
17729
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17730
 
    postinstall_cmds='base_file=`basename \${file}`~
17731
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17732
 
      dldir=$destdir/`dirname \$dlpath`~
17733
 
      test -d \$dldir || mkdir -p \$dldir~
17734
 
      $install_prog $dir/$dlname \$dldir/$dlname~
17735
 
      chmod a+x \$dldir/$dlname'
17736
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17737
 
      dlpath=$dir/\$dldll~
17738
 
       $rm \$dlpath'
17739
 
    shlibpath_overrides_runpath=yes
17740
 
 
17741
 
    case $host_os in
17742
 
    cygwin*)
17743
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17744
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17745
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17746
 
      ;;
17747
 
    mingw*)
17748
 
      # MinGW DLLs use traditional 'lib' prefix
17749
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17750
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17751
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17752
 
        # It is most probably a Windows format PATH printed by
17753
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17754
 
        # path with ; separators, and with drive letters. We can handle the
17755
 
        # drive letters (cygwin fileutils understands them), so leave them,
17756
 
        # especially as we might pass files found there to a mingw objdump,
17757
 
        # which wouldn't understand a cygwinified path. Ahh.
17758
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17759
 
      else
17760
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17761
 
      fi
17762
 
      ;;
17763
 
    pw32*)
17764
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
17765
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17766
 
      ;;
17767
 
    esac
17768
 
    ;;
17769
 
 
17770
 
  *)
17771
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17772
 
    ;;
17773
 
  esac
17774
 
  dynamic_linker='Win32 ld.exe'
17775
 
  # FIXME: first we should search . and the directory the executable is in
17776
 
  shlibpath_var=PATH
17777
 
  ;;
17778
 
 
17779
 
darwin* | rhapsody*)
17780
 
  dynamic_linker="$host_os dyld"
17781
 
  version_type=darwin
17782
 
  need_lib_prefix=no
17783
 
  need_version=no
17784
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17785
 
  soname_spec='${libname}${release}${major}$shared_ext'
17786
 
  shlibpath_overrides_runpath=yes
17787
 
  shlibpath_var=DYLD_LIBRARY_PATH
17788
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17789
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17790
 
  if test "$GCC" = yes; then
17791
 
    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"`
17792
 
  else
17793
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17794
 
  fi
17795
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17796
 
  ;;
17797
 
 
17798
 
dgux*)
17799
 
  version_type=linux
17800
 
  need_lib_prefix=no
17801
 
  need_version=no
17802
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17803
 
  soname_spec='${libname}${release}${shared_ext}$major'
17804
 
  shlibpath_var=LD_LIBRARY_PATH
17805
 
  ;;
17806
 
 
17807
 
freebsd1*)
17808
 
  dynamic_linker=no
17809
 
  ;;
17810
 
 
17811
 
freebsd* | dragonfly*)
17812
 
  # DragonFly does not have aout.  When/if they implement a new
17813
 
  # versioning mechanism, adjust this.
17814
 
  if test -x /usr/bin/objformat; then
17815
 
    objformat=`/usr/bin/objformat`
17816
 
  else
17817
 
    case $host_os in
17818
 
    freebsd[123]*) objformat=aout ;;
17819
 
    *) objformat=elf ;;
17820
 
    esac
17821
 
  fi
17822
 
  version_type=freebsd-$objformat
17823
 
  case $version_type in
17824
 
    freebsd-elf*)
17825
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17826
 
      need_version=no
17827
 
      need_lib_prefix=no
17828
 
      ;;
17829
 
    freebsd-*)
17830
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17831
 
      need_version=yes
17832
 
      ;;
17833
 
  esac
17834
 
  shlibpath_var=LD_LIBRARY_PATH
17835
 
  case $host_os in
17836
 
  freebsd2*)
17837
 
    shlibpath_overrides_runpath=yes
17838
 
    ;;
17839
 
  freebsd3.[01]* | freebsdelf3.[01]*)
17840
 
    shlibpath_overrides_runpath=yes
17841
 
    hardcode_into_libs=yes
17842
 
    ;;
17843
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17844
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17845
 
    shlibpath_overrides_runpath=no
17846
 
    hardcode_into_libs=yes
17847
 
    ;;
17848
 
  freebsd*) # from 4.6 on
17849
 
    shlibpath_overrides_runpath=yes
17850
 
    hardcode_into_libs=yes
17851
 
    ;;
17852
 
  esac
17853
 
  ;;
17854
 
 
17855
 
gnu*)
17856
 
  version_type=linux
17857
 
  need_lib_prefix=no
17858
 
  need_version=no
17859
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17860
 
  soname_spec='${libname}${release}${shared_ext}$major'
17861
 
  shlibpath_var=LD_LIBRARY_PATH
17862
 
  hardcode_into_libs=yes
17863
 
  ;;
17864
 
 
17865
 
hpux9* | hpux10* | hpux11*)
17866
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
17867
 
  # link against other versions.
17868
 
  version_type=sunos
17869
 
  need_lib_prefix=no
17870
 
  need_version=no
17871
 
  case $host_cpu in
17872
 
  ia64*)
17873
 
    shrext_cmds='.so'
17874
 
    hardcode_into_libs=yes
17875
 
    dynamic_linker="$host_os dld.so"
17876
 
    shlibpath_var=LD_LIBRARY_PATH
17877
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17878
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17879
 
    soname_spec='${libname}${release}${shared_ext}$major'
17880
 
    if test "X$HPUX_IA64_MODE" = X32; then
17881
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17882
 
    else
17883
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17884
 
    fi
17885
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17886
 
    ;;
17887
 
   hppa*64*)
17888
 
     shrext_cmds='.sl'
17889
 
     hardcode_into_libs=yes
17890
 
     dynamic_linker="$host_os dld.sl"
17891
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17892
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17893
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17894
 
     soname_spec='${libname}${release}${shared_ext}$major'
17895
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17896
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17897
 
     ;;
17898
 
   *)
17899
 
    shrext_cmds='.sl'
17900
 
    dynamic_linker="$host_os dld.sl"
17901
 
    shlibpath_var=SHLIB_PATH
17902
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17903
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17904
 
    soname_spec='${libname}${release}${shared_ext}$major'
17905
 
    ;;
17906
 
  esac
17907
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17908
 
  postinstall_cmds='chmod 555 $lib'
17909
 
  ;;
17910
 
 
17911
 
interix3*)
17912
 
  version_type=linux
17913
 
  need_lib_prefix=no
17914
 
  need_version=no
17915
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17916
 
  soname_spec='${libname}${release}${shared_ext}$major'
17917
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17918
 
  shlibpath_var=LD_LIBRARY_PATH
17919
 
  shlibpath_overrides_runpath=no
17920
 
  hardcode_into_libs=yes
17921
 
  ;;
17922
 
 
17923
 
irix5* | irix6* | nonstopux*)
17924
 
  case $host_os in
17925
 
    nonstopux*) version_type=nonstopux ;;
17926
 
    *)
17927
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
17928
 
                version_type=linux
17929
 
        else
17930
 
                version_type=irix
17931
 
        fi ;;
17932
 
  esac
17933
 
  need_lib_prefix=no
17934
 
  need_version=no
17935
 
  soname_spec='${libname}${release}${shared_ext}$major'
17936
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17937
 
  case $host_os in
17938
 
  irix5* | nonstopux*)
17939
 
    libsuff= shlibsuff=
17940
 
    ;;
17941
 
  *)
17942
 
    case $LD in # libtool.m4 will add one of these switches to LD
17943
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17944
 
      libsuff= shlibsuff= libmagic=32-bit;;
17945
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17946
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
17947
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17948
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17949
 
    *) libsuff= shlibsuff= libmagic=never-match;;
17950
 
    esac
17951
 
    ;;
17952
 
  esac
17953
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17954
 
  shlibpath_overrides_runpath=no
17955
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17956
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17957
 
  hardcode_into_libs=yes
17958
 
  ;;
17959
 
 
17960
 
# No shared lib support for Linux oldld, aout, or coff.
17961
 
linux*oldld* | linux*aout* | linux*coff*)
17962
 
  dynamic_linker=no
17963
 
  ;;
17964
 
 
17965
 
# This must be Linux ELF.
17966
 
linux* | k*bsd*-gnu)
17967
 
  version_type=linux
17968
 
  need_lib_prefix=no
17969
 
  need_version=no
17970
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17971
 
  soname_spec='${libname}${release}${shared_ext}$major'
17972
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17973
 
  shlibpath_var=LD_LIBRARY_PATH
17974
 
  shlibpath_overrides_runpath=no
17975
 
  # This implies no fast_install, which is unacceptable.
17976
 
  # Some rework will be needed to allow for fast_install
17977
 
  # before this can be enabled.
17978
 
  hardcode_into_libs=yes
17979
 
 
17980
 
  # Append ld.so.conf contents to the search path
17981
 
  if test -f /etc/ld.so.conf; then
17982
 
    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' ' '`
17983
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17984
 
  fi
17985
 
 
17986
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
17987
 
  # powerpc, because MkLinux only supported shared libraries with the
17988
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
17989
 
  # most powerpc-linux boxes support dynamic linking these days and
17990
 
  # people can always --disable-shared, the test was removed, and we
17991
 
  # assume the GNU/Linux dynamic linker is in use.
17992
 
  dynamic_linker='GNU/Linux ld.so'
17993
 
  ;;
17994
 
 
17995
 
netbsdelf*-gnu)
17996
 
  version_type=linux
17997
 
  need_lib_prefix=no
17998
 
  need_version=no
17999
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18000
 
  soname_spec='${libname}${release}${shared_ext}$major'
18001
 
  shlibpath_var=LD_LIBRARY_PATH
18002
 
  shlibpath_overrides_runpath=no
18003
 
  hardcode_into_libs=yes
18004
 
  dynamic_linker='NetBSD ld.elf_so'
18005
 
  ;;
18006
 
 
18007
 
netbsd*)
18008
 
  version_type=sunos
18009
 
  need_lib_prefix=no
18010
 
  need_version=no
18011
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18012
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18013
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18014
 
    dynamic_linker='NetBSD (a.out) ld.so'
18015
 
  else
18016
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18017
 
    soname_spec='${libname}${release}${shared_ext}$major'
18018
 
    dynamic_linker='NetBSD ld.elf_so'
18019
 
  fi
18020
 
  shlibpath_var=LD_LIBRARY_PATH
18021
 
  shlibpath_overrides_runpath=yes
18022
 
  hardcode_into_libs=yes
18023
 
  ;;
18024
 
 
18025
 
newsos6)
18026
 
  version_type=linux
18027
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028
 
  shlibpath_var=LD_LIBRARY_PATH
18029
 
  shlibpath_overrides_runpath=yes
18030
 
  ;;
18031
 
 
18032
 
nto-qnx*)
18033
 
  version_type=linux
18034
 
  need_lib_prefix=no
18035
 
  need_version=no
18036
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18037
 
  soname_spec='${libname}${release}${shared_ext}$major'
18038
 
  shlibpath_var=LD_LIBRARY_PATH
18039
 
  shlibpath_overrides_runpath=yes
18040
 
  ;;
18041
 
 
18042
 
openbsd*)
18043
 
  version_type=sunos
18044
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18045
 
  need_lib_prefix=no
18046
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18047
 
  case $host_os in
18048
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18049
 
    *)                         need_version=no  ;;
18050
 
  esac
18051
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18052
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18053
 
  shlibpath_var=LD_LIBRARY_PATH
18054
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18055
 
    case $host_os in
18056
 
      openbsd2.[89] | openbsd2.[89].*)
18057
 
        shlibpath_overrides_runpath=no
18058
 
        ;;
18059
 
      *)
18060
 
        shlibpath_overrides_runpath=yes
18061
 
        ;;
18062
 
      esac
18063
 
  else
18064
 
    shlibpath_overrides_runpath=yes
18065
 
  fi
18066
 
  ;;
18067
 
 
18068
 
os2*)
18069
 
  libname_spec='$name'
18070
 
  shrext_cmds=".dll"
18071
 
  need_lib_prefix=no
18072
 
  library_names_spec='$libname${shared_ext} $libname.a'
18073
 
  dynamic_linker='OS/2 ld.exe'
18074
 
  shlibpath_var=LIBPATH
18075
 
  ;;
18076
 
 
18077
 
osf3* | osf4* | osf5*)
18078
 
  version_type=osf
18079
 
  need_lib_prefix=no
18080
 
  need_version=no
18081
 
  soname_spec='${libname}${release}${shared_ext}$major'
18082
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18083
 
  shlibpath_var=LD_LIBRARY_PATH
18084
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18085
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18086
 
  ;;
18087
 
 
18088
 
solaris*)
18089
 
  version_type=linux
18090
 
  need_lib_prefix=no
18091
 
  need_version=no
18092
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18093
 
  soname_spec='${libname}${release}${shared_ext}$major'
18094
 
  shlibpath_var=LD_LIBRARY_PATH
18095
 
  shlibpath_overrides_runpath=yes
18096
 
  hardcode_into_libs=yes
18097
 
  # ldd complains unless libraries are executable
18098
 
  postinstall_cmds='chmod +x $lib'
18099
 
  ;;
18100
 
 
18101
 
sunos4*)
18102
 
  version_type=sunos
18103
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18104
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18105
 
  shlibpath_var=LD_LIBRARY_PATH
18106
 
  shlibpath_overrides_runpath=yes
18107
 
  if test "$with_gnu_ld" = yes; then
18108
 
    need_lib_prefix=no
18109
 
  fi
18110
 
  need_version=yes
18111
 
  ;;
18112
 
 
18113
 
sysv4 | sysv4.3*)
18114
 
  version_type=linux
18115
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18116
 
  soname_spec='${libname}${release}${shared_ext}$major'
18117
 
  shlibpath_var=LD_LIBRARY_PATH
18118
 
  case $host_vendor in
18119
 
    sni)
18120
 
      shlibpath_overrides_runpath=no
18121
 
      need_lib_prefix=no
18122
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18123
 
      runpath_var=LD_RUN_PATH
18124
 
      ;;
18125
 
    siemens)
18126
 
      need_lib_prefix=no
18127
 
      ;;
18128
 
    motorola)
18129
 
      need_lib_prefix=no
18130
 
      need_version=no
18131
 
      shlibpath_overrides_runpath=no
18132
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18133
 
      ;;
18134
 
  esac
18135
 
  ;;
18136
 
 
18137
 
sysv4*MP*)
18138
 
  if test -d /usr/nec ;then
18139
 
    version_type=linux
18140
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18141
 
    soname_spec='$libname${shared_ext}.$major'
18142
 
    shlibpath_var=LD_LIBRARY_PATH
18143
 
  fi
18144
 
  ;;
18145
 
 
18146
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18147
 
  version_type=freebsd-elf
18148
 
  need_lib_prefix=no
18149
 
  need_version=no
18150
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18151
 
  soname_spec='${libname}${release}${shared_ext}$major'
18152
 
  shlibpath_var=LD_LIBRARY_PATH
18153
 
  hardcode_into_libs=yes
18154
 
  if test "$with_gnu_ld" = yes; then
18155
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18156
 
    shlibpath_overrides_runpath=no
18157
 
  else
18158
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18159
 
    shlibpath_overrides_runpath=yes
18160
 
    case $host_os in
18161
 
      sco3.2v5*)
18162
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18163
 
        ;;
18164
 
    esac
18165
 
  fi
18166
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18167
 
  ;;
18168
 
 
18169
 
uts4*)
18170
 
  version_type=linux
18171
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18172
 
  soname_spec='${libname}${release}${shared_ext}$major'
18173
 
  shlibpath_var=LD_LIBRARY_PATH
18174
 
  ;;
18175
 
 
18176
 
*)
18177
 
  dynamic_linker=no
18178
 
  ;;
18179
 
esac
18180
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18181
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18182
 
test "$dynamic_linker" = no && can_build_shared=no
18183
 
 
18184
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18185
 
if test "$GCC" = yes; then
18186
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18187
 
fi
18188
 
 
18189
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18190
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18191
 
hardcode_action_GCJ=
18192
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18193
 
   test -n "$runpath_var_GCJ" || \
18194
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18195
 
 
18196
 
  # We can hardcode non-existant directories.
18197
 
  if test "$hardcode_direct_GCJ" != no &&
18198
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18199
 
     # have to relink, otherwise we might link with an installed library
18200
 
     # when we should be linking with a yet-to-be-installed one
18201
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18202
 
     test "$hardcode_minus_L_GCJ" != no; then
18203
 
    # Linking always hardcodes the temporary library directory.
18204
 
    hardcode_action_GCJ=relink
18205
 
  else
18206
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18207
 
    hardcode_action_GCJ=immediate
18208
 
  fi
18209
 
else
18210
 
  # We cannot hardcode anything, or else we can only hardcode existing
18211
 
  # directories.
18212
 
  hardcode_action_GCJ=unsupported
18213
 
fi
18214
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18215
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18216
 
 
18217
 
if test "$hardcode_action_GCJ" = relink; then
18218
 
  # Fast installation is not supported
18219
 
  enable_fast_install=no
18220
 
elif test "$shlibpath_overrides_runpath" = yes ||
18221
 
     test "$enable_shared" = no; then
18222
 
  # Fast installation is not necessary
18223
 
  enable_fast_install=needless
18224
 
fi
18225
 
 
18226
 
 
18227
 
# The else clause should only fire when bootstrapping the
18228
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18229
 
# with your package, and you will get complaints that there are
18230
 
# no rules to generate ltmain.sh.
18231
 
if test -f "$ltmain"; then
18232
 
  # See if we are running on zsh, and set the options which allow our commands through
18233
 
  # without removal of \ escapes.
18234
 
  if test -n "${ZSH_VERSION+set}" ; then
18235
 
    setopt NO_GLOB_SUBST
18236
 
  fi
18237
 
  # Now quote all the things that may contain metacharacters while being
18238
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18239
 
  # variables and quote the copies for generation of the libtool script.
18240
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18241
 
    SED SHELL STRIP \
18242
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18243
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18244
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18245
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18246
 
    lt_cv_sys_global_symbol_to_c_name_address \
18247
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18248
 
    old_postinstall_cmds old_postuninstall_cmds \
18249
 
    compiler_GCJ \
18250
 
    CC_GCJ \
18251
 
    LD_GCJ \
18252
 
    lt_prog_compiler_wl_GCJ \
18253
 
    lt_prog_compiler_pic_GCJ \
18254
 
    lt_prog_compiler_static_GCJ \
18255
 
    lt_prog_compiler_no_builtin_flag_GCJ \
18256
 
    export_dynamic_flag_spec_GCJ \
18257
 
    thread_safe_flag_spec_GCJ \
18258
 
    whole_archive_flag_spec_GCJ \
18259
 
    enable_shared_with_static_runtimes_GCJ \
18260
 
    old_archive_cmds_GCJ \
18261
 
    old_archive_from_new_cmds_GCJ \
18262
 
    predep_objects_GCJ \
18263
 
    postdep_objects_GCJ \
18264
 
    predeps_GCJ \
18265
 
    postdeps_GCJ \
18266
 
    compiler_lib_search_path_GCJ \
18267
 
    archive_cmds_GCJ \
18268
 
    archive_expsym_cmds_GCJ \
18269
 
    postinstall_cmds_GCJ \
18270
 
    postuninstall_cmds_GCJ \
18271
 
    old_archive_from_expsyms_cmds_GCJ \
18272
 
    allow_undefined_flag_GCJ \
18273
 
    no_undefined_flag_GCJ \
18274
 
    export_symbols_cmds_GCJ \
18275
 
    hardcode_libdir_flag_spec_GCJ \
18276
 
    hardcode_libdir_flag_spec_ld_GCJ \
18277
 
    hardcode_libdir_separator_GCJ \
18278
 
    hardcode_automatic_GCJ \
18279
 
    module_cmds_GCJ \
18280
 
    module_expsym_cmds_GCJ \
18281
 
    lt_cv_prog_compiler_c_o_GCJ \
18282
 
    exclude_expsyms_GCJ \
18283
 
    include_expsyms_GCJ; do
18284
 
 
18285
 
    case $var in
18286
 
    old_archive_cmds_GCJ | \
18287
 
    old_archive_from_new_cmds_GCJ | \
18288
 
    archive_cmds_GCJ | \
18289
 
    archive_expsym_cmds_GCJ | \
18290
 
    module_cmds_GCJ | \
18291
 
    module_expsym_cmds_GCJ | \
18292
 
    old_archive_from_expsyms_cmds_GCJ | \
18293
 
    export_symbols_cmds_GCJ | \
18294
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18295
 
    postinstall_cmds | postuninstall_cmds | \
18296
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18297
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18298
 
      # Double-quote double-evaled strings.
18299
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18300
 
      ;;
18301
 
    *)
18302
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18303
 
      ;;
18304
 
    esac
18305
 
  done
18306
 
 
18307
 
  case $lt_echo in
18308
 
  *'\$0 --fallback-echo"')
18309
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18310
 
    ;;
18311
 
  esac
18312
 
 
18313
 
cfgfile="$ofile"
18314
 
 
18315
 
  cat <<__EOF__ >> "$cfgfile"
18316
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18317
 
 
18318
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18319
 
 
18320
 
# Shell to use when invoking shell scripts.
18321
 
SHELL=$lt_SHELL
18322
 
 
18323
 
# Whether or not to build shared libraries.
18324
 
build_libtool_libs=$enable_shared
18325
 
 
18326
 
# Whether or not to build static libraries.
18327
 
build_old_libs=$enable_static
18328
 
 
18329
 
# Whether or not to add -lc for building shared libraries.
18330
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18331
 
 
18332
 
# Whether or not to disallow shared libs when runtime libs are static
18333
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18334
 
 
18335
 
# Whether or not to optimize for fast installation.
18336
 
fast_install=$enable_fast_install
18337
 
 
18338
 
# The host system.
18339
 
host_alias=$host_alias
18340
 
host=$host
18341
 
host_os=$host_os
18342
 
 
18343
 
# The build system.
18344
 
build_alias=$build_alias
18345
 
build=$build
18346
 
build_os=$build_os
18347
 
 
18348
 
# An echo program that does not interpret backslashes.
18349
 
echo=$lt_echo
18350
 
 
18351
 
# The archiver.
18352
 
AR=$lt_AR
18353
 
AR_FLAGS=$lt_AR_FLAGS
18354
 
 
18355
 
# A C compiler.
18356
 
LTCC=$lt_LTCC
18357
 
 
18358
 
# LTCC compiler flags.
18359
 
LTCFLAGS=$lt_LTCFLAGS
18360
 
 
18361
 
# A language-specific compiler.
18362
 
CC=$lt_compiler_GCJ
18363
 
 
18364
 
# Is the compiler the GNU C compiler?
18365
 
with_gcc=$GCC_GCJ
18366
 
 
18367
 
# An ERE matcher.
18368
 
EGREP=$lt_EGREP
18369
 
 
18370
 
# The linker used to build libraries.
18371
 
LD=$lt_LD_GCJ
18372
 
 
18373
 
# Whether we need hard or soft links.
18374
 
LN_S=$lt_LN_S
18375
 
 
18376
 
# A BSD-compatible nm program.
18377
 
NM=$lt_NM
18378
 
 
18379
 
# A symbol stripping program
18380
 
STRIP=$lt_STRIP
18381
 
 
18382
 
# Used to examine libraries when file_magic_cmd begins "file"
18383
 
MAGIC_CMD=$MAGIC_CMD
18384
 
 
18385
 
# Used on cygwin: DLL creation program.
18386
 
DLLTOOL="$DLLTOOL"
18387
 
 
18388
 
# Used on cygwin: object dumper.
18389
 
OBJDUMP="$OBJDUMP"
18390
 
 
18391
 
# Used on cygwin: assembler.
18392
 
AS="$AS"
18393
 
 
18394
 
# The name of the directory that contains temporary libtool files.
18395
 
objdir=$objdir
18396
 
 
18397
 
# How to create reloadable object files.
18398
 
reload_flag=$lt_reload_flag
18399
 
reload_cmds=$lt_reload_cmds
18400
 
 
18401
 
# How to pass a linker flag through the compiler.
18402
 
wl=$lt_lt_prog_compiler_wl_GCJ
18403
 
 
18404
 
# Object file suffix (normally "o").
18405
 
objext="$ac_objext"
18406
 
 
18407
 
# Old archive suffix (normally "a").
18408
 
libext="$libext"
18409
 
 
18410
 
# Shared library suffix (normally ".so").
18411
 
shrext_cmds='$shrext_cmds'
18412
 
 
18413
 
# Executable file suffix (normally "").
18414
 
exeext="$exeext"
18415
 
 
18416
 
# Additional compiler flags for building library objects.
18417
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
18418
 
pic_mode=$pic_mode
18419
 
 
18420
 
# What is the maximum length of a command?
18421
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18422
 
 
18423
 
# Does compiler simultaneously support -c and -o options?
18424
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18425
 
 
18426
 
# Must we lock files when doing compilation?
18427
 
need_locks=$lt_need_locks
18428
 
 
18429
 
# Do we need the lib prefix for modules?
18430
 
need_lib_prefix=$need_lib_prefix
18431
 
 
18432
 
# Do we need a version for libraries?
18433
 
need_version=$need_version
18434
 
 
18435
 
# Whether dlopen is supported.
18436
 
dlopen_support=$enable_dlopen
18437
 
 
18438
 
# Whether dlopen of programs is supported.
18439
 
dlopen_self=$enable_dlopen_self
18440
 
 
18441
 
# Whether dlopen of statically linked programs is supported.
18442
 
dlopen_self_static=$enable_dlopen_self_static
18443
 
 
18444
 
# Compiler flag to prevent dynamic linking.
18445
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
18446
 
 
18447
 
# Compiler flag to turn off builtin functions.
18448
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18449
 
 
18450
 
# Compiler flag to allow reflexive dlopens.
18451
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18452
 
 
18453
 
# Compiler flag to generate shared objects directly from archives.
18454
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18455
 
 
18456
 
# Compiler flag to generate thread-safe objects.
18457
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18458
 
 
18459
 
# Library versioning type.
18460
 
version_type=$version_type
18461
 
 
18462
 
# Format of library name prefix.
18463
 
libname_spec=$lt_libname_spec
18464
 
 
18465
 
# List of archive names.  First name is the real one, the rest are links.
18466
 
# The last name is the one that the linker finds with -lNAME.
18467
 
library_names_spec=$lt_library_names_spec
18468
 
 
18469
 
# The coded name of the library, if different from the real name.
18470
 
soname_spec=$lt_soname_spec
18471
 
 
18472
 
# Commands used to build and install an old-style archive.
18473
 
RANLIB=$lt_RANLIB
18474
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
18475
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18476
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18477
 
 
18478
 
# Create an old-style archive from a shared archive.
18479
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18480
 
 
18481
 
# Create a temporary old-style archive to link instead of a shared archive.
18482
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18483
 
 
18484
 
# Commands used to build and install a shared archive.
18485
 
archive_cmds=$lt_archive_cmds_GCJ
18486
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18487
 
postinstall_cmds=$lt_postinstall_cmds
18488
 
postuninstall_cmds=$lt_postuninstall_cmds
18489
 
 
18490
 
# Commands used to build a loadable module (assumed same as above if empty)
18491
 
module_cmds=$lt_module_cmds_GCJ
18492
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18493
 
 
18494
 
# Commands to strip libraries.
18495
 
old_striplib=$lt_old_striplib
18496
 
striplib=$lt_striplib
18497
 
 
18498
 
# Dependencies to place before the objects being linked to create a
18499
 
# shared library.
18500
 
predep_objects=$lt_predep_objects_GCJ
18501
 
 
18502
 
# Dependencies to place after the objects being linked to create a
18503
 
# shared library.
18504
 
postdep_objects=$lt_postdep_objects_GCJ
18505
 
 
18506
 
# Dependencies to place before the objects being linked to create a
18507
 
# shared library.
18508
 
predeps=$lt_predeps_GCJ
18509
 
 
18510
 
# Dependencies to place after the objects being linked to create a
18511
 
# shared library.
18512
 
postdeps=$lt_postdeps_GCJ
18513
 
 
18514
 
# The library search path used internally by the compiler when linking
18515
 
# a shared library.
18516
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18517
 
 
18518
 
# Method to check whether dependent libraries are shared objects.
18519
 
deplibs_check_method=$lt_deplibs_check_method
18520
 
 
18521
 
# Command to use when deplibs_check_method == file_magic.
18522
 
file_magic_cmd=$lt_file_magic_cmd
18523
 
 
18524
 
# Flag that allows shared libraries with undefined symbols to be built.
18525
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18526
 
 
18527
 
# Flag that forces no undefined symbols.
18528
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
18529
 
 
18530
 
# Commands used to finish a libtool library installation in a directory.
18531
 
finish_cmds=$lt_finish_cmds
18532
 
 
18533
 
# Same as above, but a single script fragment to be evaled but not shown.
18534
 
finish_eval=$lt_finish_eval
18535
 
 
18536
 
# Take the output of nm and produce a listing of raw symbols and C names.
18537
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18538
 
 
18539
 
# Transform the output of nm in a proper C declaration
18540
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18541
 
 
18542
 
# Transform the output of nm in a C name address pair
18543
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18544
 
 
18545
 
# This is the shared library runtime path variable.
18546
 
runpath_var=$runpath_var
18547
 
 
18548
 
# This is the shared library path variable.
18549
 
shlibpath_var=$shlibpath_var
18550
 
 
18551
 
# Is shlibpath searched before the hard-coded library search path?
18552
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18553
 
 
18554
 
# How to hardcode a shared library path into an executable.
18555
 
hardcode_action=$hardcode_action_GCJ
18556
 
 
18557
 
# Whether we should hardcode library paths into libraries.
18558
 
hardcode_into_libs=$hardcode_into_libs
18559
 
 
18560
 
# Flag to hardcode \$libdir into a binary during linking.
18561
 
# This must work even if \$libdir does not exist.
18562
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18563
 
 
18564
 
# If ld is used when linking, flag to hardcode \$libdir into
18565
 
# a binary during linking. This must work even if \$libdir does
18566
 
# not exist.
18567
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18568
 
 
18569
 
# Whether we need a single -rpath flag with a separated argument.
18570
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18571
 
 
18572
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18573
 
# resulting binary.
18574
 
hardcode_direct=$hardcode_direct_GCJ
18575
 
 
18576
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18577
 
# resulting binary.
18578
 
hardcode_minus_L=$hardcode_minus_L_GCJ
18579
 
 
18580
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18581
 
# the resulting binary.
18582
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18583
 
 
18584
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
18585
 
# and all subsequent libraries and executables linked against it.
18586
 
hardcode_automatic=$hardcode_automatic_GCJ
18587
 
 
18588
 
# Variables whose values should be saved in libtool wrapper scripts and
18589
 
# restored at relink time.
18590
 
variables_saved_for_relink="$variables_saved_for_relink"
18591
 
 
18592
 
# Whether libtool must link a program against all its dependency libraries.
18593
 
link_all_deplibs=$link_all_deplibs_GCJ
18594
 
 
18595
 
# Compile-time system search path for libraries
18596
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18597
 
 
18598
 
# Run-time system search path for libraries
18599
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18600
 
 
18601
 
# Fix the shell variable \$srcfile for the compiler.
18602
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
18603
 
 
18604
 
# Set to yes if exported symbols are required.
18605
 
always_export_symbols=$always_export_symbols_GCJ
18606
 
 
18607
 
# The commands to list exported symbols.
18608
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18609
 
 
18610
 
# The commands to extract the exported symbol list from a shared archive.
18611
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
18612
 
 
18613
 
# Symbols that should not be listed in the preloaded symbols.
18614
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
18615
 
 
18616
 
# Symbols that must always be exported.
18617
 
include_expsyms=$lt_include_expsyms_GCJ
18618
 
 
18619
 
# ### END LIBTOOL TAG CONFIG: $tagname
18620
 
 
18621
 
__EOF__
18622
 
 
18623
 
 
18624
 
else
18625
 
  # If there is no Makefile yet, we rely on a make rule to execute
18626
 
  # `config.status --recheck' to rerun these tests and create the
18627
 
  # libtool script then.
18628
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18629
 
  if test -f "$ltmain_in"; then
18630
 
    test -f Makefile && make "$ltmain"
18631
 
  fi
18632
 
fi
18633
 
 
18634
 
 
18635
 
ac_ext=c
18636
 
ac_cpp='$CPP $CPPFLAGS'
18637
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
18640
 
 
18641
 
CC="$lt_save_CC"
18642
 
 
18643
 
        else
18644
 
          tagname=""
18645
 
        fi
18646
 
        ;;
18647
 
 
18648
 
      RC)
18649
 
        
18650
 
 
18651
 
# Source file extension for RC test sources.
18652
 
ac_ext=rc
18653
 
 
18654
 
# Object file extension for compiled RC test sources.
18655
 
objext=o
18656
 
objext_RC=$objext
18657
 
 
18658
 
# Code to be used in simple compile tests
18659
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18660
 
 
18661
 
# Code to be used in simple link tests
18662
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
18663
 
 
18664
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18665
 
 
18666
 
# If no C compiler was specified, use CC.
18667
 
LTCC=${LTCC-"$CC"}
18668
 
 
18669
 
# If no C compiler flags were specified, use CFLAGS.
18670
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18671
 
 
18672
 
# Allow CC to be a program name with arguments.
18673
 
compiler=$CC
18674
 
 
18675
 
 
18676
 
# save warnings/boilerplate of simple test code
18677
 
ac_outfile=conftest.$ac_objext
18678
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18679
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18680
 
_lt_compiler_boilerplate=`cat conftest.err`
18681
 
$rm conftest*
18682
 
 
18683
 
ac_outfile=conftest.$ac_objext
18684
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18685
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18686
 
_lt_linker_boilerplate=`cat conftest.err`
18687
 
$rm conftest*
18688
 
 
18689
 
 
18690
 
# Allow CC to be a program name with arguments.
18691
 
lt_save_CC="$CC"
18692
 
CC=${RC-"windres"}
18693
 
compiler=$CC
18694
 
compiler_RC=$CC
18695
 
for cc_temp in $compiler""; do
18696
 
  case $cc_temp in
18697
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18698
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18699
 
    \-*) ;;
18700
 
    *) break;;
18701
 
  esac
18702
 
done
18703
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18704
 
 
18705
 
lt_cv_prog_compiler_c_o_RC=yes
18706
 
 
18707
 
# The else clause should only fire when bootstrapping the
18708
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
18709
 
# with your package, and you will get complaints that there are
18710
 
# no rules to generate ltmain.sh.
18711
 
if test -f "$ltmain"; then
18712
 
  # See if we are running on zsh, and set the options which allow our commands through
18713
 
  # without removal of \ escapes.
18714
 
  if test -n "${ZSH_VERSION+set}" ; then
18715
 
    setopt NO_GLOB_SUBST
18716
 
  fi
18717
 
  # Now quote all the things that may contain metacharacters while being
18718
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18719
 
  # variables and quote the copies for generation of the libtool script.
18720
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18721
 
    SED SHELL STRIP \
18722
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18723
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18724
 
    deplibs_check_method reload_flag reload_cmds need_locks \
18725
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18726
 
    lt_cv_sys_global_symbol_to_c_name_address \
18727
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18728
 
    old_postinstall_cmds old_postuninstall_cmds \
18729
 
    compiler_RC \
18730
 
    CC_RC \
18731
 
    LD_RC \
18732
 
    lt_prog_compiler_wl_RC \
18733
 
    lt_prog_compiler_pic_RC \
18734
 
    lt_prog_compiler_static_RC \
18735
 
    lt_prog_compiler_no_builtin_flag_RC \
18736
 
    export_dynamic_flag_spec_RC \
18737
 
    thread_safe_flag_spec_RC \
18738
 
    whole_archive_flag_spec_RC \
18739
 
    enable_shared_with_static_runtimes_RC \
18740
 
    old_archive_cmds_RC \
18741
 
    old_archive_from_new_cmds_RC \
18742
 
    predep_objects_RC \
18743
 
    postdep_objects_RC \
18744
 
    predeps_RC \
18745
 
    postdeps_RC \
18746
 
    compiler_lib_search_path_RC \
18747
 
    archive_cmds_RC \
18748
 
    archive_expsym_cmds_RC \
18749
 
    postinstall_cmds_RC \
18750
 
    postuninstall_cmds_RC \
18751
 
    old_archive_from_expsyms_cmds_RC \
18752
 
    allow_undefined_flag_RC \
18753
 
    no_undefined_flag_RC \
18754
 
    export_symbols_cmds_RC \
18755
 
    hardcode_libdir_flag_spec_RC \
18756
 
    hardcode_libdir_flag_spec_ld_RC \
18757
 
    hardcode_libdir_separator_RC \
18758
 
    hardcode_automatic_RC \
18759
 
    module_cmds_RC \
18760
 
    module_expsym_cmds_RC \
18761
 
    lt_cv_prog_compiler_c_o_RC \
18762
 
    exclude_expsyms_RC \
18763
 
    include_expsyms_RC; do
18764
 
 
18765
 
    case $var in
18766
 
    old_archive_cmds_RC | \
18767
 
    old_archive_from_new_cmds_RC | \
18768
 
    archive_cmds_RC | \
18769
 
    archive_expsym_cmds_RC | \
18770
 
    module_cmds_RC | \
18771
 
    module_expsym_cmds_RC | \
18772
 
    old_archive_from_expsyms_cmds_RC | \
18773
 
    export_symbols_cmds_RC | \
18774
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18775
 
    postinstall_cmds | postuninstall_cmds | \
18776
 
    old_postinstall_cmds | old_postuninstall_cmds | \
18777
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18778
 
      # Double-quote double-evaled strings.
18779
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18780
 
      ;;
18781
 
    *)
18782
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18783
 
      ;;
18784
 
    esac
18785
 
  done
18786
 
 
18787
 
  case $lt_echo in
18788
 
  *'\$0 --fallback-echo"')
18789
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18790
 
    ;;
18791
 
  esac
18792
 
 
18793
 
cfgfile="$ofile"
18794
 
 
18795
 
  cat <<__EOF__ >> "$cfgfile"
18796
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18797
 
 
18798
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18799
 
 
18800
 
# Shell to use when invoking shell scripts.
18801
 
SHELL=$lt_SHELL
18802
 
 
18803
 
# Whether or not to build shared libraries.
18804
 
build_libtool_libs=$enable_shared
18805
 
 
18806
 
# Whether or not to build static libraries.
18807
 
build_old_libs=$enable_static
18808
 
 
18809
 
# Whether or not to add -lc for building shared libraries.
18810
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
18811
 
 
18812
 
# Whether or not to disallow shared libs when runtime libs are static
18813
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18814
 
 
18815
 
# Whether or not to optimize for fast installation.
18816
 
fast_install=$enable_fast_install
18817
 
 
18818
 
# The host system.
18819
 
host_alias=$host_alias
18820
 
host=$host
18821
 
host_os=$host_os
18822
 
 
18823
 
# The build system.
18824
 
build_alias=$build_alias
18825
 
build=$build
18826
 
build_os=$build_os
18827
 
 
18828
 
# An echo program that does not interpret backslashes.
18829
 
echo=$lt_echo
18830
 
 
18831
 
# The archiver.
18832
 
AR=$lt_AR
18833
 
AR_FLAGS=$lt_AR_FLAGS
18834
 
 
18835
 
# A C compiler.
18836
 
LTCC=$lt_LTCC
18837
 
 
18838
 
# LTCC compiler flags.
18839
 
LTCFLAGS=$lt_LTCFLAGS
18840
 
 
18841
 
# A language-specific compiler.
18842
 
CC=$lt_compiler_RC
18843
 
 
18844
 
# Is the compiler the GNU C compiler?
18845
 
with_gcc=$GCC_RC
18846
 
 
18847
 
# An ERE matcher.
18848
 
EGREP=$lt_EGREP
18849
 
 
18850
 
# The linker used to build libraries.
18851
 
LD=$lt_LD_RC
18852
 
 
18853
 
# Whether we need hard or soft links.
18854
 
LN_S=$lt_LN_S
18855
 
 
18856
 
# A BSD-compatible nm program.
18857
 
NM=$lt_NM
18858
 
 
18859
 
# A symbol stripping program
18860
 
STRIP=$lt_STRIP
18861
 
 
18862
 
# Used to examine libraries when file_magic_cmd begins "file"
18863
 
MAGIC_CMD=$MAGIC_CMD
18864
 
 
18865
 
# Used on cygwin: DLL creation program.
18866
 
DLLTOOL="$DLLTOOL"
18867
 
 
18868
 
# Used on cygwin: object dumper.
18869
 
OBJDUMP="$OBJDUMP"
18870
 
 
18871
 
# Used on cygwin: assembler.
18872
 
AS="$AS"
18873
 
 
18874
 
# The name of the directory that contains temporary libtool files.
18875
 
objdir=$objdir
18876
 
 
18877
 
# How to create reloadable object files.
18878
 
reload_flag=$lt_reload_flag
18879
 
reload_cmds=$lt_reload_cmds
18880
 
 
18881
 
# How to pass a linker flag through the compiler.
18882
 
wl=$lt_lt_prog_compiler_wl_RC
18883
 
 
18884
 
# Object file suffix (normally "o").
18885
 
objext="$ac_objext"
18886
 
 
18887
 
# Old archive suffix (normally "a").
18888
 
libext="$libext"
18889
 
 
18890
 
# Shared library suffix (normally ".so").
18891
 
shrext_cmds='$shrext_cmds'
18892
 
 
18893
 
# Executable file suffix (normally "").
18894
 
exeext="$exeext"
18895
 
 
18896
 
# Additional compiler flags for building library objects.
18897
 
pic_flag=$lt_lt_prog_compiler_pic_RC
18898
 
pic_mode=$pic_mode
18899
 
 
18900
 
# What is the maximum length of a command?
18901
 
max_cmd_len=$lt_cv_sys_max_cmd_len
18902
 
 
18903
 
# Does compiler simultaneously support -c and -o options?
18904
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18905
 
 
18906
 
# Must we lock files when doing compilation?
18907
 
need_locks=$lt_need_locks
18908
 
 
18909
 
# Do we need the lib prefix for modules?
18910
 
need_lib_prefix=$need_lib_prefix
18911
 
 
18912
 
# Do we need a version for libraries?
18913
 
need_version=$need_version
18914
 
 
18915
 
# Whether dlopen is supported.
18916
 
dlopen_support=$enable_dlopen
18917
 
 
18918
 
# Whether dlopen of programs is supported.
18919
 
dlopen_self=$enable_dlopen_self
18920
 
 
18921
 
# Whether dlopen of statically linked programs is supported.
18922
 
dlopen_self_static=$enable_dlopen_self_static
18923
 
 
18924
 
# Compiler flag to prevent dynamic linking.
18925
 
link_static_flag=$lt_lt_prog_compiler_static_RC
18926
 
 
18927
 
# Compiler flag to turn off builtin functions.
18928
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18929
 
 
18930
 
# Compiler flag to allow reflexive dlopens.
18931
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18932
 
 
18933
 
# Compiler flag to generate shared objects directly from archives.
18934
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18935
 
 
18936
 
# Compiler flag to generate thread-safe objects.
18937
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18938
 
 
18939
 
# Library versioning type.
18940
 
version_type=$version_type
18941
 
 
18942
 
# Format of library name prefix.
18943
 
libname_spec=$lt_libname_spec
18944
 
 
18945
 
# List of archive names.  First name is the real one, the rest are links.
18946
 
# The last name is the one that the linker finds with -lNAME.
18947
 
library_names_spec=$lt_library_names_spec
18948
 
 
18949
 
# The coded name of the library, if different from the real name.
18950
 
soname_spec=$lt_soname_spec
18951
 
 
18952
 
# Commands used to build and install an old-style archive.
18953
 
RANLIB=$lt_RANLIB
18954
 
old_archive_cmds=$lt_old_archive_cmds_RC
18955
 
old_postinstall_cmds=$lt_old_postinstall_cmds
18956
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18957
 
 
18958
 
# Create an old-style archive from a shared archive.
18959
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18960
 
 
18961
 
# Create a temporary old-style archive to link instead of a shared archive.
18962
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18963
 
 
18964
 
# Commands used to build and install a shared archive.
18965
 
archive_cmds=$lt_archive_cmds_RC
18966
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18967
 
postinstall_cmds=$lt_postinstall_cmds
18968
 
postuninstall_cmds=$lt_postuninstall_cmds
18969
 
 
18970
 
# Commands used to build a loadable module (assumed same as above if empty)
18971
 
module_cmds=$lt_module_cmds_RC
18972
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
18973
 
 
18974
 
# Commands to strip libraries.
18975
 
old_striplib=$lt_old_striplib
18976
 
striplib=$lt_striplib
18977
 
 
18978
 
# Dependencies to place before the objects being linked to create a
18979
 
# shared library.
18980
 
predep_objects=$lt_predep_objects_RC
18981
 
 
18982
 
# Dependencies to place after the objects being linked to create a
18983
 
# shared library.
18984
 
postdep_objects=$lt_postdep_objects_RC
18985
 
 
18986
 
# Dependencies to place before the objects being linked to create a
18987
 
# shared library.
18988
 
predeps=$lt_predeps_RC
18989
 
 
18990
 
# Dependencies to place after the objects being linked to create a
18991
 
# shared library.
18992
 
postdeps=$lt_postdeps_RC
18993
 
 
18994
 
# The library search path used internally by the compiler when linking
18995
 
# a shared library.
18996
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18997
 
 
18998
 
# Method to check whether dependent libraries are shared objects.
18999
 
deplibs_check_method=$lt_deplibs_check_method
19000
 
 
19001
 
# Command to use when deplibs_check_method == file_magic.
19002
 
file_magic_cmd=$lt_file_magic_cmd
19003
 
 
19004
 
# Flag that allows shared libraries with undefined symbols to be built.
19005
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19006
 
 
19007
 
# Flag that forces no undefined symbols.
19008
 
no_undefined_flag=$lt_no_undefined_flag_RC
19009
 
 
19010
 
# Commands used to finish a libtool library installation in a directory.
19011
 
finish_cmds=$lt_finish_cmds
19012
 
 
19013
 
# Same as above, but a single script fragment to be evaled but not shown.
19014
 
finish_eval=$lt_finish_eval
19015
 
 
19016
 
# Take the output of nm and produce a listing of raw symbols and C names.
19017
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19018
 
 
19019
 
# Transform the output of nm in a proper C declaration
19020
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19021
 
 
19022
 
# Transform the output of nm in a C name address pair
19023
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19024
 
 
19025
 
# This is the shared library runtime path variable.
19026
 
runpath_var=$runpath_var
19027
 
 
19028
 
# This is the shared library path variable.
19029
 
shlibpath_var=$shlibpath_var
19030
 
 
19031
 
# Is shlibpath searched before the hard-coded library search path?
19032
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19033
 
 
19034
 
# How to hardcode a shared library path into an executable.
19035
 
hardcode_action=$hardcode_action_RC
19036
 
 
19037
 
# Whether we should hardcode library paths into libraries.
19038
 
hardcode_into_libs=$hardcode_into_libs
19039
 
 
19040
 
# Flag to hardcode \$libdir into a binary during linking.
19041
 
# This must work even if \$libdir does not exist.
19042
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19043
 
 
19044
 
# If ld is used when linking, flag to hardcode \$libdir into
19045
 
# a binary during linking. This must work even if \$libdir does
19046
 
# not exist.
19047
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19048
 
 
19049
 
# Whether we need a single -rpath flag with a separated argument.
19050
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19051
 
 
19052
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19053
 
# resulting binary.
19054
 
hardcode_direct=$hardcode_direct_RC
19055
 
 
19056
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19057
 
# resulting binary.
19058
 
hardcode_minus_L=$hardcode_minus_L_RC
19059
 
 
19060
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19061
 
# the resulting binary.
19062
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19063
 
 
19064
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19065
 
# and all subsequent libraries and executables linked against it.
19066
 
hardcode_automatic=$hardcode_automatic_RC
19067
 
 
19068
 
# Variables whose values should be saved in libtool wrapper scripts and
19069
 
# restored at relink time.
19070
 
variables_saved_for_relink="$variables_saved_for_relink"
19071
 
 
19072
 
# Whether libtool must link a program against all its dependency libraries.
19073
 
link_all_deplibs=$link_all_deplibs_RC
19074
 
 
19075
 
# Compile-time system search path for libraries
19076
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19077
 
 
19078
 
# Run-time system search path for libraries
19079
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19080
 
 
19081
 
# Fix the shell variable \$srcfile for the compiler.
19082
 
fix_srcfile_path="$fix_srcfile_path_RC"
19083
 
 
19084
 
# Set to yes if exported symbols are required.
19085
 
always_export_symbols=$always_export_symbols_RC
19086
 
 
19087
 
# The commands to list exported symbols.
19088
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19089
 
 
19090
 
# The commands to extract the exported symbol list from a shared archive.
19091
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19092
 
 
19093
 
# Symbols that should not be listed in the preloaded symbols.
19094
 
exclude_expsyms=$lt_exclude_expsyms_RC
19095
 
 
19096
 
# Symbols that must always be exported.
19097
 
include_expsyms=$lt_include_expsyms_RC
19098
 
 
19099
 
# ### END LIBTOOL TAG CONFIG: $tagname
19100
 
 
19101
 
__EOF__
19102
 
 
19103
 
 
19104
 
else
19105
 
  # If there is no Makefile yet, we rely on a make rule to execute
19106
 
  # `config.status --recheck' to rerun these tests and create the
19107
 
  # libtool script then.
19108
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19109
 
  if test -f "$ltmain_in"; then
19110
 
    test -f Makefile && make "$ltmain"
19111
 
  fi
19112
 
fi
19113
 
 
19114
 
 
19115
 
ac_ext=c
19116
 
ac_cpp='$CPP $CPPFLAGS'
19117
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19118
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19119
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19120
 
 
19121
 
CC="$lt_save_CC"
19122
 
 
19123
 
        ;;
19124
 
 
19125
 
      *)
19126
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19127
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19128
 
   { (exit 1); exit 1; }; }
19129
 
        ;;
19130
 
      esac
19131
 
 
19132
 
      # Append the new tag name to the list of available tags.
19133
 
      if test -n "$tagname" ; then
19134
 
      available_tags="$available_tags $tagname"
19135
 
    fi
19136
 
    fi
19137
 
  done
19138
 
  IFS="$lt_save_ifs"
19139
 
 
19140
 
  # Now substitute the updated list of available tags.
19141
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19142
 
    mv "${ofile}T" "$ofile"
19143
 
    chmod +x "$ofile"
19144
 
  else
19145
 
    rm -f "${ofile}T"
19146
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19147
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19148
 
   { (exit 1); exit 1; }; }
19149
 
  fi
19150
 
fi
19151
 
 
19152
 
 
19153
 
 
19154
 
# This can be used to rebuild libtool when needed
19155
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19156
 
 
19157
 
# Always use our own libtool.
19158
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19159
 
 
19160
 
# Prevent multiple expansion
19161
 
 
19162
 
 
19163
 
 
19164
 
 
19165
 
 
19166
 
 
19167
 
 
19168
 
 
19169
 
 
19170
 
 
19171
 
 
19172
 
  
19173
 
 
19174
 
  
19175
 
 
19176
 
 
19177
 
  
19178
 
       
19179
 
       
19180
 
 
19181
 
 
19182
 
 
19183
 
 
19184
 
ac_ext=c
19185
 
ac_cpp='$CPP $CPPFLAGS'
19186
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19187
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19188
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189
 
if test -n "$ac_tool_prefix"; then
19190
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19191
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19192
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19193
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19194
 
if test "${ac_cv_prog_CC+set}" = set; then
19195
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19196
 
else
19197
 
  if test -n "$CC"; then
19198
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
19199
 
else
19200
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19201
 
for as_dir in $PATH
19202
 
do
19203
 
  IFS=$as_save_IFS
19204
 
  test -z "$as_dir" && as_dir=.
19205
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19206
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19207
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19208
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19209
 
    break 2
19210
 
  fi
19211
 
done
19212
 
done
19213
 
IFS=$as_save_IFS
19214
 
 
19215
 
fi
19216
 
fi
19217
 
CC=$ac_cv_prog_CC
19218
 
if test -n "$CC"; then
19219
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19220
 
echo "${ECHO_T}$CC" >&6; }
19221
 
else
19222
 
  { echo "$as_me:$LINENO: result: no" >&5
19223
 
echo "${ECHO_T}no" >&6; }
19224
 
fi
19225
 
 
19226
 
 
19227
 
fi
19228
 
if test -z "$ac_cv_prog_CC"; then
19229
 
  ac_ct_CC=$CC
19230
 
  # Extract the first word of "gcc", so it can be a program name with args.
19231
 
set dummy gcc; ac_word=$2
19232
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19233
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19234
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19235
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19236
 
else
19237
 
  if test -n "$ac_ct_CC"; then
19238
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19239
 
else
19240
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19241
 
for as_dir in $PATH
19242
 
do
19243
 
  IFS=$as_save_IFS
19244
 
  test -z "$as_dir" && as_dir=.
19245
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19246
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19247
 
    ac_cv_prog_ac_ct_CC="gcc"
19248
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19249
 
    break 2
19250
 
  fi
19251
 
done
19252
 
done
19253
 
IFS=$as_save_IFS
19254
 
 
19255
 
fi
19256
 
fi
19257
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19258
 
if test -n "$ac_ct_CC"; then
19259
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19260
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
19261
 
else
19262
 
  { echo "$as_me:$LINENO: result: no" >&5
19263
 
echo "${ECHO_T}no" >&6; }
19264
 
fi
19265
 
 
19266
 
  if test "x$ac_ct_CC" = x; then
19267
 
    CC=""
19268
 
  else
19269
 
    case $cross_compiling:$ac_tool_warned in
19270
 
yes:)
19271
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19272
 
whose name does not start with the host triplet.  If you think this
19273
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
19274
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19275
 
whose name does not start with the host triplet.  If you think this
19276
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19277
 
ac_tool_warned=yes ;;
19278
 
esac
19279
 
    CC=$ac_ct_CC
19280
 
  fi
19281
 
else
19282
 
  CC="$ac_cv_prog_CC"
19283
 
fi
19284
 
 
19285
 
if test -z "$CC"; then
19286
 
          if test -n "$ac_tool_prefix"; then
19287
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19288
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
19289
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19290
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19291
 
if test "${ac_cv_prog_CC+set}" = set; then
19292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19293
 
else
19294
 
  if test -n "$CC"; then
19295
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
19296
 
else
19297
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19298
 
for as_dir in $PATH
19299
 
do
19300
 
  IFS=$as_save_IFS
19301
 
  test -z "$as_dir" && as_dir=.
19302
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19303
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19304
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19305
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19306
 
    break 2
19307
 
  fi
19308
 
done
19309
 
done
19310
 
IFS=$as_save_IFS
19311
 
 
19312
 
fi
19313
 
fi
19314
 
CC=$ac_cv_prog_CC
19315
 
if test -n "$CC"; then
19316
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19317
 
echo "${ECHO_T}$CC" >&6; }
19318
 
else
19319
 
  { echo "$as_me:$LINENO: result: no" >&5
19320
 
echo "${ECHO_T}no" >&6; }
19321
 
fi
19322
 
 
19323
 
 
19324
 
  fi
19325
 
fi
19326
 
if test -z "$CC"; then
19327
 
  # Extract the first word of "cc", so it can be a program name with args.
19328
 
set dummy cc; ac_word=$2
19329
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19330
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19331
 
if test "${ac_cv_prog_CC+set}" = set; then
19332
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19333
 
else
19334
 
  if test -n "$CC"; then
19335
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
19336
 
else
19337
 
  ac_prog_rejected=no
19338
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19339
 
for as_dir in $PATH
19340
 
do
19341
 
  IFS=$as_save_IFS
19342
 
  test -z "$as_dir" && as_dir=.
19343
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19344
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19345
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19346
 
       ac_prog_rejected=yes
19347
 
       continue
19348
 
     fi
19349
 
    ac_cv_prog_CC="cc"
19350
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19351
 
    break 2
19352
 
  fi
19353
 
done
19354
 
done
19355
 
IFS=$as_save_IFS
19356
 
 
19357
 
if test $ac_prog_rejected = yes; then
19358
 
  # We found a bogon in the path, so make sure we never use it.
19359
 
  set dummy $ac_cv_prog_CC
19360
 
  shift
19361
 
  if test $@%:@ != 0; then
19362
 
    # We chose a different compiler from the bogus one.
19363
 
    # However, it has the same basename, so the bogon will be chosen
19364
 
    # first if we set CC to just the basename; use the full file name.
19365
 
    shift
19366
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19367
 
  fi
19368
 
fi
19369
 
fi
19370
 
fi
19371
 
CC=$ac_cv_prog_CC
19372
 
if test -n "$CC"; then
19373
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19374
 
echo "${ECHO_T}$CC" >&6; }
19375
 
else
19376
 
  { echo "$as_me:$LINENO: result: no" >&5
19377
 
echo "${ECHO_T}no" >&6; }
19378
 
fi
19379
 
 
19380
 
 
19381
 
fi
19382
 
if test -z "$CC"; then
19383
 
  if test -n "$ac_tool_prefix"; then
19384
 
  for ac_prog in cl.exe
19385
 
  do
19386
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19387
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19388
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19389
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19390
 
if test "${ac_cv_prog_CC+set}" = set; then
19391
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19392
 
else
19393
 
  if test -n "$CC"; then
19394
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
19395
 
else
19396
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397
 
for as_dir in $PATH
19398
 
do
19399
 
  IFS=$as_save_IFS
19400
 
  test -z "$as_dir" && as_dir=.
19401
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19402
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19403
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19404
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19405
 
    break 2
19406
 
  fi
19407
 
done
19408
 
done
19409
 
IFS=$as_save_IFS
19410
 
 
19411
 
fi
19412
 
fi
19413
 
CC=$ac_cv_prog_CC
19414
 
if test -n "$CC"; then
19415
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19416
 
echo "${ECHO_T}$CC" >&6; }
19417
 
else
19418
 
  { echo "$as_me:$LINENO: result: no" >&5
19419
 
echo "${ECHO_T}no" >&6; }
19420
 
fi
19421
 
 
19422
 
 
19423
 
    test -n "$CC" && break
19424
 
  done
19425
 
fi
19426
 
if test -z "$CC"; then
19427
 
  ac_ct_CC=$CC
19428
 
  for ac_prog in cl.exe
19429
 
do
19430
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19431
 
set dummy $ac_prog; ac_word=$2
19432
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19433
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19434
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19435
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19436
 
else
19437
 
  if test -n "$ac_ct_CC"; then
19438
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19439
 
else
19440
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19441
 
for as_dir in $PATH
19442
 
do
19443
 
  IFS=$as_save_IFS
19444
 
  test -z "$as_dir" && as_dir=.
19445
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19446
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19447
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
19448
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19449
 
    break 2
19450
 
  fi
19451
 
done
19452
 
done
19453
 
IFS=$as_save_IFS
19454
 
 
19455
 
fi
19456
 
fi
19457
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19458
 
if test -n "$ac_ct_CC"; then
19459
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19460
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
19461
 
else
19462
 
  { echo "$as_me:$LINENO: result: no" >&5
19463
 
echo "${ECHO_T}no" >&6; }
19464
 
fi
19465
 
 
19466
 
 
19467
 
  test -n "$ac_ct_CC" && break
19468
 
done
19469
 
 
19470
 
  if test "x$ac_ct_CC" = x; then
19471
 
    CC=""
19472
 
  else
19473
 
    case $cross_compiling:$ac_tool_warned in
19474
 
yes:)
19475
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19476
 
whose name does not start with the host triplet.  If you think this
19477
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
19478
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19479
 
whose name does not start with the host triplet.  If you think this
19480
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19481
 
ac_tool_warned=yes ;;
19482
 
esac
19483
 
    CC=$ac_ct_CC
19484
 
  fi
19485
 
fi
19486
 
 
19487
 
fi
19488
 
 
19489
 
 
19490
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19491
 
See \`config.log' for more details." >&5
19492
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
19493
 
See \`config.log' for more details." >&2;}
19494
 
   { (exit 1); exit 1; }; }
19495
 
 
19496
 
# Provide some information about the compiler.
19497
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
19498
 
ac_compiler=`set X $ac_compile; echo $2`
19499
 
{ (ac_try="$ac_compiler --version >&5"
19500
 
case "(($ac_try" in
19501
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502
 
  *) ac_try_echo=$ac_try;;
19503
 
esac
19504
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505
 
  (eval "$ac_compiler --version >&5") 2>&5
19506
 
  ac_status=$?
19507
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508
 
  (exit $ac_status); }
19509
 
{ (ac_try="$ac_compiler -v >&5"
19510
 
case "(($ac_try" in
19511
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512
 
  *) ac_try_echo=$ac_try;;
19513
 
esac
19514
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515
 
  (eval "$ac_compiler -v >&5") 2>&5
19516
 
  ac_status=$?
19517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518
 
  (exit $ac_status); }
19519
 
{ (ac_try="$ac_compiler -V >&5"
19520
 
case "(($ac_try" in
19521
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522
 
  *) ac_try_echo=$ac_try;;
19523
 
esac
19524
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525
 
  (eval "$ac_compiler -V >&5") 2>&5
19526
 
  ac_status=$?
19527
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528
 
  (exit $ac_status); }
19529
 
 
19530
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19531
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19532
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19533
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19534
 
else
19535
 
  cat >conftest.$ac_ext <<_ACEOF
19536
 
/* confdefs.h.  */
19537
 
_ACEOF
19538
 
cat confdefs.h >>conftest.$ac_ext
19539
 
cat >>conftest.$ac_ext <<_ACEOF
19540
 
/* end confdefs.h.  */
19541
 
 
19542
 
int
19543
 
main ()
19544
 
{
19545
 
#ifndef __GNUC__
19546
 
       choke me
19547
 
#endif
19548
 
 
19549
 
  ;
19550
 
  return 0;
19551
 
}
19552
 
_ACEOF
19553
 
rm -f conftest.$ac_objext
19554
 
if { (ac_try="$ac_compile"
19555
 
case "(($ac_try" in
19556
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19557
 
  *) ac_try_echo=$ac_try;;
19558
 
esac
19559
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19560
 
  (eval "$ac_compile") 2>conftest.er1
19561
 
  ac_status=$?
19562
 
  grep -v '^ *+' conftest.er1 >conftest.err
19563
 
  rm -f conftest.er1
19564
 
  cat conftest.err >&5
19565
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19566
 
  (exit $ac_status); } && {
19567
 
         test -z "$ac_c_werror_flag" ||
19568
 
         test ! -s conftest.err
19569
 
       } && test -s conftest.$ac_objext; then
19570
 
  ac_compiler_gnu=yes
19571
 
else
19572
 
  echo "$as_me: failed program was:" >&5
19573
 
sed 's/^/| /' conftest.$ac_ext >&5
19574
 
 
19575
 
        ac_compiler_gnu=no
19576
 
fi
19577
 
 
19578
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19579
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19580
 
 
19581
 
fi
19582
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19583
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19584
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
19585
 
ac_test_CFLAGS=${CFLAGS+set}
19586
 
ac_save_CFLAGS=$CFLAGS
19587
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19588
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19589
 
if test "${ac_cv_prog_cc_g+set}" = set; then
19590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19591
 
else
19592
 
  ac_save_c_werror_flag=$ac_c_werror_flag
19593
 
   ac_c_werror_flag=yes
19594
 
   ac_cv_prog_cc_g=no
19595
 
   CFLAGS="-g"
19596
 
   cat >conftest.$ac_ext <<_ACEOF
19597
 
/* confdefs.h.  */
19598
 
_ACEOF
19599
 
cat confdefs.h >>conftest.$ac_ext
19600
 
cat >>conftest.$ac_ext <<_ACEOF
19601
 
/* end confdefs.h.  */
19602
 
 
19603
 
int
19604
 
main ()
19605
 
{
19606
 
 
19607
 
  ;
19608
 
  return 0;
19609
 
}
19610
 
_ACEOF
19611
 
rm -f conftest.$ac_objext
19612
 
if { (ac_try="$ac_compile"
19613
 
case "(($ac_try" in
19614
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19615
 
  *) ac_try_echo=$ac_try;;
19616
 
esac
19617
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19618
 
  (eval "$ac_compile") 2>conftest.er1
19619
 
  ac_status=$?
19620
 
  grep -v '^ *+' conftest.er1 >conftest.err
19621
 
  rm -f conftest.er1
19622
 
  cat conftest.err >&5
19623
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624
 
  (exit $ac_status); } && {
19625
 
         test -z "$ac_c_werror_flag" ||
19626
 
         test ! -s conftest.err
19627
 
       } && test -s conftest.$ac_objext; then
19628
 
  ac_cv_prog_cc_g=yes
19629
 
else
19630
 
  echo "$as_me: failed program was:" >&5
19631
 
sed 's/^/| /' conftest.$ac_ext >&5
19632
 
 
19633
 
        CFLAGS=""
19634
 
      cat >conftest.$ac_ext <<_ACEOF
19635
 
/* confdefs.h.  */
19636
 
_ACEOF
19637
 
cat confdefs.h >>conftest.$ac_ext
19638
 
cat >>conftest.$ac_ext <<_ACEOF
19639
 
/* end confdefs.h.  */
19640
 
 
19641
 
int
19642
 
main ()
19643
 
{
19644
 
 
19645
 
  ;
19646
 
  return 0;
19647
 
}
19648
 
_ACEOF
19649
 
rm -f conftest.$ac_objext
19650
 
if { (ac_try="$ac_compile"
19651
 
case "(($ac_try" in
19652
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653
 
  *) ac_try_echo=$ac_try;;
19654
 
esac
19655
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656
 
  (eval "$ac_compile") 2>conftest.er1
19657
 
  ac_status=$?
19658
 
  grep -v '^ *+' conftest.er1 >conftest.err
19659
 
  rm -f conftest.er1
19660
 
  cat conftest.err >&5
19661
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662
 
  (exit $ac_status); } && {
19663
 
         test -z "$ac_c_werror_flag" ||
19664
 
         test ! -s conftest.err
19665
 
       } && test -s conftest.$ac_objext; then
19666
 
  :
19667
 
else
19668
 
  echo "$as_me: failed program was:" >&5
19669
 
sed 's/^/| /' conftest.$ac_ext >&5
19670
 
 
19671
 
        ac_c_werror_flag=$ac_save_c_werror_flag
19672
 
         CFLAGS="-g"
19673
 
         cat >conftest.$ac_ext <<_ACEOF
19674
 
/* confdefs.h.  */
19675
 
_ACEOF
19676
 
cat confdefs.h >>conftest.$ac_ext
19677
 
cat >>conftest.$ac_ext <<_ACEOF
19678
 
/* end confdefs.h.  */
19679
 
 
19680
 
int
19681
 
main ()
19682
 
{
19683
 
 
19684
 
  ;
19685
 
  return 0;
19686
 
}
19687
 
_ACEOF
19688
 
rm -f conftest.$ac_objext
19689
 
if { (ac_try="$ac_compile"
19690
 
case "(($ac_try" in
19691
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692
 
  *) ac_try_echo=$ac_try;;
19693
 
esac
19694
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695
 
  (eval "$ac_compile") 2>conftest.er1
19696
 
  ac_status=$?
19697
 
  grep -v '^ *+' conftest.er1 >conftest.err
19698
 
  rm -f conftest.er1
19699
 
  cat conftest.err >&5
19700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701
 
  (exit $ac_status); } && {
19702
 
         test -z "$ac_c_werror_flag" ||
19703
 
         test ! -s conftest.err
19704
 
       } && test -s conftest.$ac_objext; then
19705
 
  ac_cv_prog_cc_g=yes
19706
 
else
19707
 
  echo "$as_me: failed program was:" >&5
19708
 
sed 's/^/| /' conftest.$ac_ext >&5
19709
 
 
19710
 
        
19711
 
fi
19712
 
 
19713
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714
 
fi
19715
 
 
19716
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19717
 
fi
19718
 
 
19719
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720
 
   ac_c_werror_flag=$ac_save_c_werror_flag
19721
 
fi
19722
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19723
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19724
 
if test "$ac_test_CFLAGS" = set; then
19725
 
  CFLAGS=$ac_save_CFLAGS
19726
 
elif test $ac_cv_prog_cc_g = yes; then
19727
 
  if test "$GCC" = yes; then
19728
 
    CFLAGS="-g -O2"
19729
 
  else
19730
 
    CFLAGS="-g"
19731
 
  fi
19732
 
else
19733
 
  if test "$GCC" = yes; then
19734
 
    CFLAGS="-O2"
19735
 
  else
19736
 
    CFLAGS=
19737
 
  fi
19738
 
fi
19739
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19740
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19741
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
19742
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19743
 
else
19744
 
  ac_cv_prog_cc_c89=no
19745
 
ac_save_CC=$CC
19746
 
cat >conftest.$ac_ext <<_ACEOF
19747
 
/* confdefs.h.  */
19748
 
_ACEOF
19749
 
cat confdefs.h >>conftest.$ac_ext
19750
 
cat >>conftest.$ac_ext <<_ACEOF
19751
 
/* end confdefs.h.  */
19752
 
#include <stdarg.h>
19753
 
#include <stdio.h>
19754
 
#include <sys/types.h>
19755
 
#include <sys/stat.h>
19756
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19757
 
struct buf { int x; };
19758
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
19759
 
static char *e (p, i)
19760
 
     char **p;
19761
 
     int i;
19762
 
{
19763
 
  return p[i];
19764
 
}
19765
 
static char *f (char * (*g) (char **, int), char **p, ...)
19766
 
{
19767
 
  char *s;
19768
 
  va_list v;
19769
 
  va_start (v,p);
19770
 
  s = g (p, va_arg (v,int));
19771
 
  va_end (v);
19772
 
  return s;
19773
 
}
19774
 
 
19775
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19776
 
   function prototypes and stuff, but not '\xHH' hex character constants.
19777
 
   These don't provoke an error unfortunately, instead are silently treated
19778
 
   as 'x'.  The following induces an error, until -std is added to get
19779
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19780
 
   array size at least.  It's necessary to write '\x00'==0 to get something
19781
 
   that's true only with -std.  */
19782
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19783
 
 
19784
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19785
 
   inside strings and character constants.  */
19786
 
#define FOO(x) 'x'
19787
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19788
 
 
19789
 
int test (int i, double x);
19790
 
struct s1 {int (*f) (int a);};
19791
 
struct s2 {int (*f) (double a);};
19792
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19793
 
int argc;
19794
 
char **argv;
19795
 
int
19796
 
main ()
19797
 
{
19798
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19799
 
  ;
19800
 
  return 0;
19801
 
}
19802
 
_ACEOF
19803
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19804
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19805
 
do
19806
 
  CC="$ac_save_CC $ac_arg"
19807
 
  rm -f conftest.$ac_objext
19808
 
if { (ac_try="$ac_compile"
19809
 
case "(($ac_try" in
19810
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19811
 
  *) ac_try_echo=$ac_try;;
19812
 
esac
19813
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19814
 
  (eval "$ac_compile") 2>conftest.er1
19815
 
  ac_status=$?
19816
 
  grep -v '^ *+' conftest.er1 >conftest.err
19817
 
  rm -f conftest.er1
19818
 
  cat conftest.err >&5
19819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820
 
  (exit $ac_status); } && {
19821
 
         test -z "$ac_c_werror_flag" ||
19822
 
         test ! -s conftest.err
19823
 
       } && test -s conftest.$ac_objext; then
19824
 
  ac_cv_prog_cc_c89=$ac_arg
19825
 
else
19826
 
  echo "$as_me: failed program was:" >&5
19827
 
sed 's/^/| /' conftest.$ac_ext >&5
19828
 
 
19829
 
        
19830
 
fi
19831
 
 
19832
 
rm -f core conftest.err conftest.$ac_objext 
19833
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
19834
 
done
19835
 
rm -f conftest.$ac_ext
19836
 
CC=$ac_save_CC
19837
 
 
19838
 
fi
19839
 
# AC_CACHE_VAL
19840
 
case "x$ac_cv_prog_cc_c89" in
19841
 
  x)
19842
 
    { echo "$as_me:$LINENO: result: none needed" >&5
19843
 
echo "${ECHO_T}none needed" >&6; } ;;
19844
 
  xno)
19845
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
19846
 
echo "${ECHO_T}unsupported" >&6; } ;;
19847
 
  *)
19848
 
    CC="$CC $ac_cv_prog_cc_c89"
19849
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19850
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19851
 
esac
19852
 
 
19853
 
 
19854
 
ac_ext=c
19855
 
ac_cpp='$CPP $CPPFLAGS'
19856
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19859
 
 
19860
 
depcc="$CC"   am_compiler_list=
19861
 
 
19862
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19863
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19864
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19865
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19866
 
else
19867
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19868
 
  # We make a subdir and do the tests there.  Otherwise we can end up
19869
 
  # making bogus files that we don't know about and never remove.  For
19870
 
  # instance it was reported that on HP-UX the gcc test will end up
19871
 
  # making a dummy file named `D' -- because `-MD' means `put the output
19872
 
  # in D'.
19873
 
  mkdir conftest.dir
19874
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
19875
 
  # using a relative directory.
19876
 
  cp "$am_depcomp" conftest.dir
19877
 
  cd conftest.dir
19878
 
  # We will build objects and dependencies in a subdirectory because
19879
 
  # it helps to detect inapplicable dependency modes.  For instance
19880
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
19881
 
  # side effect of compilation, but ICC will put the dependencies in
19882
 
  # the current directory while Tru64 will put them in the object
19883
 
  # directory.
19884
 
  mkdir sub
19885
 
 
19886
 
  am_cv_CC_dependencies_compiler_type=none
19887
 
  if test "$am_compiler_list" = ""; then
19888
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19889
 
  fi
19890
 
  for depmode in $am_compiler_list; do
19891
 
    # Setup a source with many dependencies, because some compilers
19892
 
    # like to wrap large dependency lists on column 80 (with \), and
19893
 
    # we should not choose a depcomp mode which is confused by this.
19894
 
    #
19895
 
    # We need to recreate these files for each test, as the compiler may
19896
 
    # overwrite some of them when testing with obscure command lines.
19897
 
    # This happens at least with the AIX C compiler.
19898
 
    : > sub/conftest.c
19899
 
    for i in 1 2 3 4 5 6; do
19900
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19901
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19902
 
      # Solaris 8's {/usr,}/bin/sh.
19903
 
      touch sub/conftst$i.h
19904
 
    done
19905
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19906
 
 
19907
 
    case $depmode in
19908
 
    nosideeffect)
19909
 
      # after this tag, mechanisms are not by side-effect, so they'll
19910
 
      # only be used when explicitly requested
19911
 
      if test "x$enable_dependency_tracking" = xyes; then
19912
 
        continue
19913
 
      else
19914
 
        break
19915
 
      fi
19916
 
      ;;
19917
 
    none) break ;;
19918
 
    esac
19919
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19920
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
19921
 
    # handle `-M -o', and we need to detect this.
19922
 
    if depmode=$depmode \
19923
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19924
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19925
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19926
 
         >/dev/null 2>conftest.err &&
19927
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19928
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19929
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19930
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19931
 
      # icc doesn't choke on unknown options, it will just issue warnings
19932
 
      # or remarks (even with -Werror).  So we grep stderr for any message
19933
 
      # that says an option was ignored or not supported.
19934
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
19935
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
19936
 
      # The diagnosis changed in icc 8.0:
19937
 
      #   icc: Command line remark: option '-MP' not supported
19938
 
      if (grep 'ignoring option' conftest.err ||
19939
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19940
 
        am_cv_CC_dependencies_compiler_type=$depmode
19941
 
        break
19942
 
      fi
19943
 
    fi
19944
 
  done
19945
 
 
19946
 
  cd ..
19947
 
  rm -rf conftest.dir
19948
 
else
19949
 
  am_cv_CC_dependencies_compiler_type=none
19950
 
fi
19951
 
 
19952
 
fi
19953
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19954
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19955
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19956
 
 
19957
 
 if 
19958
 
  test "x$enable_dependency_tracking" != xno \
19959
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19960
 
  am__fastdepCC_TRUE=
19961
 
  am__fastdepCC_FALSE='#'
19962
 
else
19963
 
  am__fastdepCC_TRUE='#'
19964
 
  am__fastdepCC_FALSE=
19965
 
fi
19966
 
 
19967
 
 
19968
 
ac_ext=c
19969
 
ac_cpp='$CPP $CPPFLAGS'
19970
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19971
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19972
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19973
 
if test -n "$ac_tool_prefix"; then
19974
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19975
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19976
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19977
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19978
 
if test "${ac_cv_prog_CC+set}" = set; then
19979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19980
 
else
19981
 
  if test -n "$CC"; then
19982
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
19983
 
else
19984
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19985
 
for as_dir in $PATH
19986
 
do
19987
 
  IFS=$as_save_IFS
19988
 
  test -z "$as_dir" && as_dir=.
19989
 
  for ac_exec_ext in '' $ac_executable_extensions; do
19990
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19991
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19992
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993
 
    break 2
19994
 
  fi
19995
 
done
19996
 
done
19997
 
IFS=$as_save_IFS
19998
 
 
19999
 
fi
20000
 
fi
20001
 
CC=$ac_cv_prog_CC
20002
 
if test -n "$CC"; then
20003
 
  { echo "$as_me:$LINENO: result: $CC" >&5
20004
 
echo "${ECHO_T}$CC" >&6; }
20005
 
else
20006
 
  { echo "$as_me:$LINENO: result: no" >&5
20007
 
echo "${ECHO_T}no" >&6; }
20008
 
fi
20009
 
 
20010
 
 
20011
 
fi
20012
 
if test -z "$ac_cv_prog_CC"; then
20013
 
  ac_ct_CC=$CC
20014
 
  # Extract the first word of "gcc", so it can be a program name with args.
20015
 
set dummy gcc; ac_word=$2
20016
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20017
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20018
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20019
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20020
 
else
20021
 
  if test -n "$ac_ct_CC"; then
20022
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20023
 
else
20024
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20025
 
for as_dir in $PATH
20026
 
do
20027
 
  IFS=$as_save_IFS
20028
 
  test -z "$as_dir" && as_dir=.
20029
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20030
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20031
 
    ac_cv_prog_ac_ct_CC="gcc"
20032
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20033
 
    break 2
20034
 
  fi
20035
 
done
20036
 
done
20037
 
IFS=$as_save_IFS
20038
 
 
20039
 
fi
20040
 
fi
20041
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20042
 
if test -n "$ac_ct_CC"; then
20043
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20044
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
20045
 
else
20046
 
  { echo "$as_me:$LINENO: result: no" >&5
20047
 
echo "${ECHO_T}no" >&6; }
20048
 
fi
20049
 
 
20050
 
  if test "x$ac_ct_CC" = x; then
20051
 
    CC=""
20052
 
  else
20053
 
    case $cross_compiling:$ac_tool_warned in
20054
 
yes:)
20055
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20056
 
whose name does not start with the host triplet.  If you think this
20057
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
20058
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20059
 
whose name does not start with the host triplet.  If you think this
20060
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20061
 
ac_tool_warned=yes ;;
20062
 
esac
20063
 
    CC=$ac_ct_CC
20064
 
  fi
20065
 
else
20066
 
  CC="$ac_cv_prog_CC"
20067
 
fi
20068
 
 
20069
 
if test -z "$CC"; then
20070
 
          if test -n "$ac_tool_prefix"; then
20071
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
20072
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
20073
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20074
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20075
 
if test "${ac_cv_prog_CC+set}" = set; then
20076
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20077
 
else
20078
 
  if test -n "$CC"; then
20079
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
20080
 
else
20081
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20082
 
for as_dir in $PATH
20083
 
do
20084
 
  IFS=$as_save_IFS
20085
 
  test -z "$as_dir" && as_dir=.
20086
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20087
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20088
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
20089
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20090
 
    break 2
20091
 
  fi
20092
 
done
20093
 
done
20094
 
IFS=$as_save_IFS
20095
 
 
20096
 
fi
20097
 
fi
20098
 
CC=$ac_cv_prog_CC
20099
 
if test -n "$CC"; then
20100
 
  { echo "$as_me:$LINENO: result: $CC" >&5
20101
 
echo "${ECHO_T}$CC" >&6; }
20102
 
else
20103
 
  { echo "$as_me:$LINENO: result: no" >&5
20104
 
echo "${ECHO_T}no" >&6; }
20105
 
fi
20106
 
 
20107
 
 
20108
 
  fi
20109
 
fi
20110
 
if test -z "$CC"; then
20111
 
  # Extract the first word of "cc", so it can be a program name with args.
20112
 
set dummy cc; ac_word=$2
20113
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20114
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20115
 
if test "${ac_cv_prog_CC+set}" = set; then
20116
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20117
 
else
20118
 
  if test -n "$CC"; then
20119
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
20120
 
else
20121
 
  ac_prog_rejected=no
20122
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20123
 
for as_dir in $PATH
20124
 
do
20125
 
  IFS=$as_save_IFS
20126
 
  test -z "$as_dir" && as_dir=.
20127
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20128
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20129
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
20130
 
       ac_prog_rejected=yes
20131
 
       continue
20132
 
     fi
20133
 
    ac_cv_prog_CC="cc"
20134
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20135
 
    break 2
20136
 
  fi
20137
 
done
20138
 
done
20139
 
IFS=$as_save_IFS
20140
 
 
20141
 
if test $ac_prog_rejected = yes; then
20142
 
  # We found a bogon in the path, so make sure we never use it.
20143
 
  set dummy $ac_cv_prog_CC
20144
 
  shift
20145
 
  if test $@%:@ != 0; then
20146
 
    # We chose a different compiler from the bogus one.
20147
 
    # However, it has the same basename, so the bogon will be chosen
20148
 
    # first if we set CC to just the basename; use the full file name.
20149
 
    shift
20150
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
20151
 
  fi
20152
 
fi
20153
 
fi
20154
 
fi
20155
 
CC=$ac_cv_prog_CC
20156
 
if test -n "$CC"; then
20157
 
  { echo "$as_me:$LINENO: result: $CC" >&5
20158
 
echo "${ECHO_T}$CC" >&6; }
20159
 
else
20160
 
  { echo "$as_me:$LINENO: result: no" >&5
20161
 
echo "${ECHO_T}no" >&6; }
20162
 
fi
20163
 
 
20164
 
 
20165
 
fi
20166
 
if test -z "$CC"; then
20167
 
  if test -n "$ac_tool_prefix"; then
20168
 
  for ac_prog in cl.exe
20169
 
  do
20170
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20171
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20172
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20173
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20174
 
if test "${ac_cv_prog_CC+set}" = set; then
20175
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20176
 
else
20177
 
  if test -n "$CC"; then
20178
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
20179
 
else
20180
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20181
 
for as_dir in $PATH
20182
 
do
20183
 
  IFS=$as_save_IFS
20184
 
  test -z "$as_dir" && as_dir=.
20185
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20186
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20187
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
20188
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20189
 
    break 2
20190
 
  fi
20191
 
done
20192
 
done
20193
 
IFS=$as_save_IFS
20194
 
 
20195
 
fi
20196
 
fi
20197
 
CC=$ac_cv_prog_CC
20198
 
if test -n "$CC"; then
20199
 
  { echo "$as_me:$LINENO: result: $CC" >&5
20200
 
echo "${ECHO_T}$CC" >&6; }
20201
 
else
20202
 
  { echo "$as_me:$LINENO: result: no" >&5
20203
 
echo "${ECHO_T}no" >&6; }
20204
 
fi
20205
 
 
20206
 
 
20207
 
    test -n "$CC" && break
20208
 
  done
20209
 
fi
20210
 
if test -z "$CC"; then
20211
 
  ac_ct_CC=$CC
20212
 
  for ac_prog in cl.exe
20213
 
do
20214
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
20215
 
set dummy $ac_prog; ac_word=$2
20216
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20217
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20218
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
20219
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20220
 
else
20221
 
  if test -n "$ac_ct_CC"; then
20222
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
20223
 
else
20224
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225
 
for as_dir in $PATH
20226
 
do
20227
 
  IFS=$as_save_IFS
20228
 
  test -z "$as_dir" && as_dir=.
20229
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20230
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20231
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
20232
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20233
 
    break 2
20234
 
  fi
20235
 
done
20236
 
done
20237
 
IFS=$as_save_IFS
20238
 
 
20239
 
fi
20240
 
fi
20241
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
20242
 
if test -n "$ac_ct_CC"; then
20243
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
20244
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
20245
 
else
20246
 
  { echo "$as_me:$LINENO: result: no" >&5
20247
 
echo "${ECHO_T}no" >&6; }
20248
 
fi
20249
 
 
20250
 
 
20251
 
  test -n "$ac_ct_CC" && break
20252
 
done
20253
 
 
20254
 
  if test "x$ac_ct_CC" = x; then
20255
 
    CC=""
20256
 
  else
20257
 
    case $cross_compiling:$ac_tool_warned in
20258
 
yes:)
20259
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20260
 
whose name does not start with the host triplet.  If you think this
20261
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
20262
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20263
 
whose name does not start with the host triplet.  If you think this
20264
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20265
 
ac_tool_warned=yes ;;
20266
 
esac
20267
 
    CC=$ac_ct_CC
20268
 
  fi
20269
 
fi
20270
 
 
20271
 
fi
20272
 
 
20273
 
 
20274
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
20275
 
See \`config.log' for more details." >&5
20276
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
20277
 
See \`config.log' for more details." >&2;}
20278
 
   { (exit 1); exit 1; }; }
20279
 
 
20280
 
# Provide some information about the compiler.
20281
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
20282
 
ac_compiler=`set X $ac_compile; echo $2`
20283
 
{ (ac_try="$ac_compiler --version >&5"
20284
 
case "(($ac_try" in
20285
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286
 
  *) ac_try_echo=$ac_try;;
20287
 
esac
20288
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20289
 
  (eval "$ac_compiler --version >&5") 2>&5
20290
 
  ac_status=$?
20291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292
 
  (exit $ac_status); }
20293
 
{ (ac_try="$ac_compiler -v >&5"
20294
 
case "(($ac_try" in
20295
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296
 
  *) ac_try_echo=$ac_try;;
20297
 
esac
20298
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299
 
  (eval "$ac_compiler -v >&5") 2>&5
20300
 
  ac_status=$?
20301
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
 
  (exit $ac_status); }
20303
 
{ (ac_try="$ac_compiler -V >&5"
20304
 
case "(($ac_try" in
20305
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306
 
  *) ac_try_echo=$ac_try;;
20307
 
esac
20308
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309
 
  (eval "$ac_compiler -V >&5") 2>&5
20310
 
  ac_status=$?
20311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312
 
  (exit $ac_status); }
20313
 
 
20314
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
20315
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
20316
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
20317
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20318
 
else
20319
 
  cat >conftest.$ac_ext <<_ACEOF
20320
 
/* confdefs.h.  */
20321
 
_ACEOF
20322
 
cat confdefs.h >>conftest.$ac_ext
20323
 
cat >>conftest.$ac_ext <<_ACEOF
20324
 
/* end confdefs.h.  */
20325
 
 
20326
 
int
20327
 
main ()
20328
 
{
20329
 
#ifndef __GNUC__
20330
 
       choke me
20331
 
#endif
20332
 
 
20333
 
  ;
20334
 
  return 0;
20335
 
}
20336
 
_ACEOF
20337
 
rm -f conftest.$ac_objext
20338
 
if { (ac_try="$ac_compile"
20339
 
case "(($ac_try" in
20340
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341
 
  *) ac_try_echo=$ac_try;;
20342
 
esac
20343
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20344
 
  (eval "$ac_compile") 2>conftest.er1
20345
 
  ac_status=$?
20346
 
  grep -v '^ *+' conftest.er1 >conftest.err
20347
 
  rm -f conftest.er1
20348
 
  cat conftest.err >&5
20349
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350
 
  (exit $ac_status); } && {
20351
 
         test -z "$ac_c_werror_flag" ||
20352
 
         test ! -s conftest.err
20353
 
       } && test -s conftest.$ac_objext; then
20354
 
  ac_compiler_gnu=yes
20355
 
else
20356
 
  echo "$as_me: failed program was:" >&5
20357
 
sed 's/^/| /' conftest.$ac_ext >&5
20358
 
 
20359
 
        ac_compiler_gnu=no
20360
 
fi
20361
 
 
20362
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20363
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
20364
 
 
20365
 
fi
20366
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
20367
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
20368
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
20369
 
ac_test_CFLAGS=${CFLAGS+set}
20370
 
ac_save_CFLAGS=$CFLAGS
20371
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
20372
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
20373
 
if test "${ac_cv_prog_cc_g+set}" = set; then
20374
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20375
 
else
20376
 
  ac_save_c_werror_flag=$ac_c_werror_flag
20377
 
   ac_c_werror_flag=yes
20378
 
   ac_cv_prog_cc_g=no
20379
 
   CFLAGS="-g"
20380
 
   cat >conftest.$ac_ext <<_ACEOF
20381
 
/* confdefs.h.  */
20382
 
_ACEOF
20383
 
cat confdefs.h >>conftest.$ac_ext
20384
 
cat >>conftest.$ac_ext <<_ACEOF
20385
 
/* end confdefs.h.  */
20386
 
 
20387
 
int
20388
 
main ()
20389
 
{
20390
 
 
20391
 
  ;
20392
 
  return 0;
20393
 
}
20394
 
_ACEOF
20395
 
rm -f conftest.$ac_objext
20396
 
if { (ac_try="$ac_compile"
20397
 
case "(($ac_try" in
20398
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20399
 
  *) ac_try_echo=$ac_try;;
20400
 
esac
20401
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402
 
  (eval "$ac_compile") 2>conftest.er1
20403
 
  ac_status=$?
20404
 
  grep -v '^ *+' conftest.er1 >conftest.err
20405
 
  rm -f conftest.er1
20406
 
  cat conftest.err >&5
20407
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408
 
  (exit $ac_status); } && {
20409
 
         test -z "$ac_c_werror_flag" ||
20410
 
         test ! -s conftest.err
20411
 
       } && test -s conftest.$ac_objext; then
20412
 
  ac_cv_prog_cc_g=yes
20413
 
else
20414
 
  echo "$as_me: failed program was:" >&5
20415
 
sed 's/^/| /' conftest.$ac_ext >&5
20416
 
 
20417
 
        CFLAGS=""
20418
 
      cat >conftest.$ac_ext <<_ACEOF
20419
 
/* confdefs.h.  */
20420
 
_ACEOF
20421
 
cat confdefs.h >>conftest.$ac_ext
20422
 
cat >>conftest.$ac_ext <<_ACEOF
20423
 
/* end confdefs.h.  */
20424
 
 
20425
 
int
20426
 
main ()
20427
 
{
20428
 
 
20429
 
  ;
20430
 
  return 0;
20431
 
}
20432
 
_ACEOF
20433
 
rm -f conftest.$ac_objext
20434
 
if { (ac_try="$ac_compile"
20435
 
case "(($ac_try" in
20436
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437
 
  *) ac_try_echo=$ac_try;;
20438
 
esac
20439
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440
 
  (eval "$ac_compile") 2>conftest.er1
20441
 
  ac_status=$?
20442
 
  grep -v '^ *+' conftest.er1 >conftest.err
20443
 
  rm -f conftest.er1
20444
 
  cat conftest.err >&5
20445
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446
 
  (exit $ac_status); } && {
20447
 
         test -z "$ac_c_werror_flag" ||
20448
 
         test ! -s conftest.err
20449
 
       } && test -s conftest.$ac_objext; then
20450
 
  :
20451
 
else
20452
 
  echo "$as_me: failed program was:" >&5
20453
 
sed 's/^/| /' conftest.$ac_ext >&5
20454
 
 
20455
 
        ac_c_werror_flag=$ac_save_c_werror_flag
20456
 
         CFLAGS="-g"
20457
 
         cat >conftest.$ac_ext <<_ACEOF
20458
 
/* confdefs.h.  */
20459
 
_ACEOF
20460
 
cat confdefs.h >>conftest.$ac_ext
20461
 
cat >>conftest.$ac_ext <<_ACEOF
20462
 
/* end confdefs.h.  */
20463
 
 
20464
 
int
20465
 
main ()
20466
 
{
20467
 
 
20468
 
  ;
20469
 
  return 0;
20470
 
}
20471
 
_ACEOF
20472
 
rm -f conftest.$ac_objext
20473
 
if { (ac_try="$ac_compile"
20474
 
case "(($ac_try" in
20475
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476
 
  *) ac_try_echo=$ac_try;;
20477
 
esac
20478
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479
 
  (eval "$ac_compile") 2>conftest.er1
20480
 
  ac_status=$?
20481
 
  grep -v '^ *+' conftest.er1 >conftest.err
20482
 
  rm -f conftest.er1
20483
 
  cat conftest.err >&5
20484
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485
 
  (exit $ac_status); } && {
20486
 
         test -z "$ac_c_werror_flag" ||
20487
 
         test ! -s conftest.err
20488
 
       } && test -s conftest.$ac_objext; then
20489
 
  ac_cv_prog_cc_g=yes
20490
 
else
20491
 
  echo "$as_me: failed program was:" >&5
20492
 
sed 's/^/| /' conftest.$ac_ext >&5
20493
 
 
20494
 
        
20495
 
fi
20496
 
 
20497
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20498
 
fi
20499
 
 
20500
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501
 
fi
20502
 
 
20503
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504
 
   ac_c_werror_flag=$ac_save_c_werror_flag
20505
 
fi
20506
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
20507
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
20508
 
if test "$ac_test_CFLAGS" = set; then
20509
 
  CFLAGS=$ac_save_CFLAGS
20510
 
elif test $ac_cv_prog_cc_g = yes; then
20511
 
  if test "$GCC" = yes; then
20512
 
    CFLAGS="-g -O2"
20513
 
  else
20514
 
    CFLAGS="-g"
20515
 
  fi
20516
 
else
20517
 
  if test "$GCC" = yes; then
20518
 
    CFLAGS="-O2"
20519
 
  else
20520
 
    CFLAGS=
20521
 
  fi
20522
 
fi
20523
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
20524
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
20525
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
20526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20527
 
else
20528
 
  ac_cv_prog_cc_c89=no
20529
 
ac_save_CC=$CC
20530
 
cat >conftest.$ac_ext <<_ACEOF
20531
 
/* confdefs.h.  */
20532
 
_ACEOF
20533
 
cat confdefs.h >>conftest.$ac_ext
20534
 
cat >>conftest.$ac_ext <<_ACEOF
20535
 
/* end confdefs.h.  */
20536
 
#include <stdarg.h>
20537
 
#include <stdio.h>
20538
 
#include <sys/types.h>
20539
 
#include <sys/stat.h>
20540
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
20541
 
struct buf { int x; };
20542
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
20543
 
static char *e (p, i)
20544
 
     char **p;
20545
 
     int i;
20546
 
{
20547
 
  return p[i];
20548
 
}
20549
 
static char *f (char * (*g) (char **, int), char **p, ...)
20550
 
{
20551
 
  char *s;
20552
 
  va_list v;
20553
 
  va_start (v,p);
20554
 
  s = g (p, va_arg (v,int));
20555
 
  va_end (v);
20556
 
  return s;
20557
 
}
20558
 
 
20559
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
20560
 
   function prototypes and stuff, but not '\xHH' hex character constants.
20561
 
   These don't provoke an error unfortunately, instead are silently treated
20562
 
   as 'x'.  The following induces an error, until -std is added to get
20563
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
20564
 
   array size at least.  It's necessary to write '\x00'==0 to get something
20565
 
   that's true only with -std.  */
20566
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
20567
 
 
20568
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
20569
 
   inside strings and character constants.  */
20570
 
#define FOO(x) 'x'
20571
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
20572
 
 
20573
 
int test (int i, double x);
20574
 
struct s1 {int (*f) (int a);};
20575
 
struct s2 {int (*f) (double a);};
20576
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
20577
 
int argc;
20578
 
char **argv;
20579
 
int
20580
 
main ()
20581
 
{
20582
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
20583
 
  ;
20584
 
  return 0;
20585
 
}
20586
 
_ACEOF
20587
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
20588
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
20589
 
do
20590
 
  CC="$ac_save_CC $ac_arg"
20591
 
  rm -f conftest.$ac_objext
20592
 
if { (ac_try="$ac_compile"
20593
 
case "(($ac_try" in
20594
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595
 
  *) ac_try_echo=$ac_try;;
20596
 
esac
20597
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598
 
  (eval "$ac_compile") 2>conftest.er1
20599
 
  ac_status=$?
20600
 
  grep -v '^ *+' conftest.er1 >conftest.err
20601
 
  rm -f conftest.er1
20602
 
  cat conftest.err >&5
20603
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604
 
  (exit $ac_status); } && {
20605
 
         test -z "$ac_c_werror_flag" ||
20606
 
         test ! -s conftest.err
20607
 
       } && test -s conftest.$ac_objext; then
20608
 
  ac_cv_prog_cc_c89=$ac_arg
20609
 
else
20610
 
  echo "$as_me: failed program was:" >&5
20611
 
sed 's/^/| /' conftest.$ac_ext >&5
20612
 
 
20613
 
        
20614
 
fi
20615
 
 
20616
 
rm -f core conftest.err conftest.$ac_objext 
20617
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
20618
 
done
20619
 
rm -f conftest.$ac_ext
20620
 
CC=$ac_save_CC
20621
 
 
20622
 
fi
20623
 
# AC_CACHE_VAL
20624
 
case "x$ac_cv_prog_cc_c89" in
20625
 
  x)
20626
 
    { echo "$as_me:$LINENO: result: none needed" >&5
20627
 
echo "${ECHO_T}none needed" >&6; } ;;
20628
 
  xno)
20629
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
20630
 
echo "${ECHO_T}unsupported" >&6; } ;;
20631
 
  *)
20632
 
    CC="$CC $ac_cv_prog_cc_c89"
20633
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20634
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
20635
 
esac
20636
 
 
20637
 
 
20638
 
ac_ext=c
20639
 
ac_cpp='$CPP $CPPFLAGS'
20640
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20641
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20642
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643
 
 
20644
 
depcc="$CC"   am_compiler_list=
20645
 
 
20646
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20647
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20648
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20649
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20650
 
else
20651
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20652
 
  # We make a subdir and do the tests there.  Otherwise we can end up
20653
 
  # making bogus files that we don't know about and never remove.  For
20654
 
  # instance it was reported that on HP-UX the gcc test will end up
20655
 
  # making a dummy file named `D' -- because `-MD' means `put the output
20656
 
  # in D'.
20657
 
  mkdir conftest.dir
20658
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
20659
 
  # using a relative directory.
20660
 
  cp "$am_depcomp" conftest.dir
20661
 
  cd conftest.dir
20662
 
  # We will build objects and dependencies in a subdirectory because
20663
 
  # it helps to detect inapplicable dependency modes.  For instance
20664
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
20665
 
  # side effect of compilation, but ICC will put the dependencies in
20666
 
  # the current directory while Tru64 will put them in the object
20667
 
  # directory.
20668
 
  mkdir sub
20669
 
 
20670
 
  am_cv_CC_dependencies_compiler_type=none
20671
 
  if test "$am_compiler_list" = ""; then
20672
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20673
 
  fi
20674
 
  for depmode in $am_compiler_list; do
20675
 
    # Setup a source with many dependencies, because some compilers
20676
 
    # like to wrap large dependency lists on column 80 (with \), and
20677
 
    # we should not choose a depcomp mode which is confused by this.
20678
 
    #
20679
 
    # We need to recreate these files for each test, as the compiler may
20680
 
    # overwrite some of them when testing with obscure command lines.
20681
 
    # This happens at least with the AIX C compiler.
20682
 
    : > sub/conftest.c
20683
 
    for i in 1 2 3 4 5 6; do
20684
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20685
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20686
 
      # Solaris 8's {/usr,}/bin/sh.
20687
 
      touch sub/conftst$i.h
20688
 
    done
20689
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20690
 
 
20691
 
    case $depmode in
20692
 
    nosideeffect)
20693
 
      # after this tag, mechanisms are not by side-effect, so they'll
20694
 
      # only be used when explicitly requested
20695
 
      if test "x$enable_dependency_tracking" = xyes; then
20696
 
        continue
20697
 
      else
20698
 
        break
20699
 
      fi
20700
 
      ;;
20701
 
    none) break ;;
20702
 
    esac
20703
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20704
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
20705
 
    # handle `-M -o', and we need to detect this.
20706
 
    if depmode=$depmode \
20707
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20708
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20709
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20710
 
         >/dev/null 2>conftest.err &&
20711
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20712
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20713
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20714
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20715
 
      # icc doesn't choke on unknown options, it will just issue warnings
20716
 
      # or remarks (even with -Werror).  So we grep stderr for any message
20717
 
      # that says an option was ignored or not supported.
20718
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
20719
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
20720
 
      # The diagnosis changed in icc 8.0:
20721
 
      #   icc: Command line remark: option '-MP' not supported
20722
 
      if (grep 'ignoring option' conftest.err ||
20723
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20724
 
        am_cv_CC_dependencies_compiler_type=$depmode
20725
 
        break
20726
 
      fi
20727
 
    fi
20728
 
  done
20729
 
 
20730
 
  cd ..
20731
 
  rm -rf conftest.dir
20732
 
else
20733
 
  am_cv_CC_dependencies_compiler_type=none
20734
 
fi
20735
 
 
20736
 
fi
20737
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20738
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
20739
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20740
 
 
20741
 
 if 
20742
 
  test "x$enable_dependency_tracking" != xno \
20743
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20744
 
  am__fastdepCC_TRUE=
20745
 
  am__fastdepCC_FALSE='#'
20746
 
else
20747
 
  am__fastdepCC_TRUE='#'
20748
 
  am__fastdepCC_FALSE=
20749
 
fi
20750
 
 
20751
 
 
20752
 
 
20753
 
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
20754
 
 
20755
 
 
20756
 
 
20757
 
{ echo "$as_me:$LINENO: checking for library containing strerror" >&5
20758
 
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
20759
 
if test "${ac_cv_search_strerror+set}" = set; then
20760
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20761
 
else
20762
 
  ac_func_search_save_LIBS=$LIBS
20763
 
cat >conftest.$ac_ext <<_ACEOF
20764
 
/* confdefs.h.  */
20765
 
_ACEOF
20766
 
cat confdefs.h >>conftest.$ac_ext
20767
 
cat >>conftest.$ac_ext <<_ACEOF
20768
 
/* end confdefs.h.  */
20769
 
 
20770
 
/* Override any GCC internal prototype to avoid an error.
20771
 
   Use char because int might match the return type of a GCC
20772
 
   builtin and then its argument prototype would still apply.  */
20773
 
#ifdef __cplusplus
20774
 
extern "C"
20775
 
#endif
20776
 
char strerror ();
20777
 
int
20778
 
main ()
20779
 
{
20780
 
return strerror ();
20781
 
  ;
20782
 
  return 0;
20783
 
}
20784
 
_ACEOF
20785
 
for ac_lib in '' cposix; do
20786
 
  if test -z "$ac_lib"; then
20787
 
    ac_res="none required"
20788
 
  else
20789
 
    ac_res=-l$ac_lib
20790
 
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20791
 
  fi
20792
 
  rm -f conftest.$ac_objext conftest$ac_exeext
20793
 
if { (ac_try="$ac_link"
20794
 
case "(($ac_try" in
20795
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20796
 
  *) ac_try_echo=$ac_try;;
20797
 
esac
20798
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20799
 
  (eval "$ac_link") 2>conftest.er1
20800
 
  ac_status=$?
20801
 
  grep -v '^ *+' conftest.er1 >conftest.err
20802
 
  rm -f conftest.er1
20803
 
  cat conftest.err >&5
20804
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805
 
  (exit $ac_status); } && {
20806
 
         test -z "$ac_c_werror_flag" ||
20807
 
         test ! -s conftest.err
20808
 
       } && test -s conftest$ac_exeext &&
20809
 
       $as_test_x conftest$ac_exeext; then
20810
 
  ac_cv_search_strerror=$ac_res
20811
 
else
20812
 
  echo "$as_me: failed program was:" >&5
20813
 
sed 's/^/| /' conftest.$ac_ext >&5
20814
 
 
20815
 
        
20816
 
fi
20817
 
 
20818
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20819
 
      conftest$ac_exeext 
20820
 
  if test "${ac_cv_search_strerror+set}" = set; then
20821
 
  break
20822
 
fi
20823
 
done
20824
 
if test "${ac_cv_search_strerror+set}" = set; then
20825
 
  :
20826
 
else
20827
 
  ac_cv_search_strerror=no
20828
 
fi
20829
 
rm conftest.$ac_ext
20830
 
LIBS=$ac_func_search_save_LIBS
20831
 
fi
20832
 
{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
20833
 
echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
20834
 
ac_res=$ac_cv_search_strerror
20835
 
if test "$ac_res" != no; then
20836
 
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20837
 
  
20838
 
fi
20839
 
 
20840
 
# Find a good install program.  We prefer a C program (faster),
20841
 
# so one script is as good as another.  But avoid the broken or
20842
 
# incompatible versions:
20843
 
# SysV /etc/install, /usr/sbin/install
20844
 
# SunOS /usr/etc/install
20845
 
# IRIX /sbin/install
20846
 
# AIX /bin/install
20847
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
20848
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20849
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
20850
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20851
 
# OS/2's system install, which has a completely different semantic
20852
 
# ./install, which can be erroneously created by make from ./install.sh.
20853
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20854
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20855
 
if test -z "$INSTALL"; then
20856
 
if test "${ac_cv_path_install+set}" = set; then
20857
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20858
 
else
20859
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20860
 
for as_dir in $PATH
20861
 
do
20862
 
  IFS=$as_save_IFS
20863
 
  test -z "$as_dir" && as_dir=.
20864
 
  # Account for people who put trailing slashes in PATH elements.
20865
 
case $as_dir/ in
20866
 
  ./ | .// | /cC/* | \
20867
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20868
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20869
 
  /usr/ucb/* ) ;;
20870
 
  *)
20871
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
20872
 
    # Don't use installbsd from OSF since it installs stuff as root
20873
 
    # by default.
20874
 
    for ac_prog in ginstall scoinst install; do
20875
 
      for ac_exec_ext in '' $ac_executable_extensions; do
20876
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20877
 
          if test $ac_prog = install &&
20878
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20879
 
            # AIX install.  It has an incompatible calling convention.
20880
 
            :
20881
 
          elif test $ac_prog = install &&
20882
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20883
 
            # program-specific install script used by HP pwplus--don't use.
20884
 
            :
20885
 
          else
20886
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20887
 
            break 3
20888
 
          fi
20889
 
        fi
20890
 
      done
20891
 
    done
20892
 
    ;;
20893
 
esac
20894
 
done
20895
 
IFS=$as_save_IFS
20896
 
 
20897
 
 
20898
 
fi
20899
 
  if test "${ac_cv_path_install+set}" = set; then
20900
 
    INSTALL=$ac_cv_path_install
20901
 
  else
20902
 
    # As a last resort, use the slow shell script.  Don't cache a
20903
 
    # value for INSTALL within a source directory, because that will
20904
 
    # break other packages using the cache if that directory is
20905
 
    # removed, or if the value is a relative name.
20906
 
    INSTALL=$ac_install_sh
20907
 
  fi
20908
 
fi
20909
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
20910
 
echo "${ECHO_T}$INSTALL" >&6; }
20911
 
 
20912
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20913
 
# It thinks the first close brace ends the variable substitution.
20914
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20915
 
 
20916
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20917
 
 
20918
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20919
 
 
20920
 
 
20921
 
# Extract the first word of "db2ps", so it can be a program name with args.
20922
 
set dummy db2ps; ac_word=$2
20923
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20924
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20925
 
if test "${ac_cv_path_DB2PS+set}" = set; then
20926
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20927
 
else
20928
 
  case $DB2PS in
20929
 
  [\\/]* | ?:[\\/]*)
20930
 
  ac_cv_path_DB2PS="$DB2PS" # Let the user override the test with a path.
20931
 
  ;;
20932
 
  *)
20933
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20934
 
for as_dir in $PATH
20935
 
do
20936
 
  IFS=$as_save_IFS
20937
 
  test -z "$as_dir" && as_dir=.
20938
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20939
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20940
 
    ac_cv_path_DB2PS="$as_dir/$ac_word$ac_exec_ext"
20941
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20942
 
    break 2
20943
 
  fi
20944
 
done
20945
 
done
20946
 
IFS=$as_save_IFS
20947
 
 
20948
 
  ;;
20949
 
esac
20950
 
fi
20951
 
DB2PS=$ac_cv_path_DB2PS
20952
 
if test -n "$DB2PS"; then
20953
 
  { echo "$as_me:$LINENO: result: $DB2PS" >&5
20954
 
echo "${ECHO_T}$DB2PS" >&6; }
20955
 
else
20956
 
  { echo "$as_me:$LINENO: result: no" >&5
20957
 
echo "${ECHO_T}no" >&6; }
20958
 
fi
20959
 
 
20960
 
 
20961
 
if test x${DB2PS} = x ; then
20962
 
  { echo "$as_me:$LINENO: WARNING: PostScript documentation cannot be generated!" >&5
20963
 
echo "$as_me: WARNING: PostScript documentation cannot be generated!" >&2;}
20964
 
fi
20965
 
 
20966
 
# Extract the first word of "ps2pdf", so it can be a program name with args.
20967
 
set dummy ps2pdf; ac_word=$2
20968
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20969
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20970
 
if test "${ac_cv_path_PS2PDF+set}" = set; then
20971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20972
 
else
20973
 
  case $PS2PDF in
20974
 
  [\\/]* | ?:[\\/]*)
20975
 
  ac_cv_path_PS2PDF="$PS2PDF" # Let the user override the test with a path.
20976
 
  ;;
20977
 
  *)
20978
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20979
 
for as_dir in $PATH
20980
 
do
20981
 
  IFS=$as_save_IFS
20982
 
  test -z "$as_dir" && as_dir=.
20983
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20984
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20985
 
    ac_cv_path_PS2PDF="$as_dir/$ac_word$ac_exec_ext"
20986
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20987
 
    break 2
20988
 
  fi
20989
 
done
20990
 
done
20991
 
IFS=$as_save_IFS
20992
 
 
20993
 
  ;;
20994
 
esac
20995
 
fi
20996
 
PS2PDF=$ac_cv_path_PS2PDF
20997
 
if test -n "$PS2PDF"; then
20998
 
  { echo "$as_me:$LINENO: result: $PS2PDF" >&5
20999
 
echo "${ECHO_T}$PS2PDF" >&6; }
21000
 
else
21001
 
  { echo "$as_me:$LINENO: result: no" >&5
21002
 
echo "${ECHO_T}no" >&6; }
21003
 
fi
21004
 
 
21005
 
 
21006
 
if test x${PS2PDF} = x ; then
21007
 
  { echo "$as_me:$LINENO: WARNING: PDF documentation cannot be generated!" >&5
21008
 
echo "$as_me: WARNING: PDF documentation cannot be generated!" >&2;}
21009
 
fi
21010
 
 
21011
 
 
21012
 
 
21013
 
 
21014
 
case ${host_os} in
21015
 
  cygwin | mingw32 | pw32 | interix3 | interix | uwin) libijs_sysdeps="windows";;
21016
 
  *) libijs_sysdeps="unix";;
21017
 
esac
21018
 
 if test x$libijs_sysdeps = xwindows; then
21019
 
  SYSDEPS_WINDOWS_TRUE=
21020
 
  SYSDEPS_WINDOWS_FALSE='#'
21021
 
else
21022
 
  SYSDEPS_WINDOWS_TRUE='#'
21023
 
  SYSDEPS_WINDOWS_FALSE=
21024
 
fi
21025
 
 
21026
 
 
21027
 
 
21028
 
 
21029
 
 
21030
 
 
21031
 
 
21032
 
 
21033
 
ijs_libs="${IJS_LIBS} ${IJS_DEPLIBS}"
21034
 
 
21035
 
 
21036
 
LIBIJS_LIBS="${LIBIJS_LIBS} ${IJS_DEPLIBS}"
21037
 
 
21038
 
 
21039
 
 
21040
 
ac_config_files="$ac_config_files Makefile"
21041
 
 
21042
 
ac_config_files="$ac_config_files ijs-config"
21043
 
 
21044
 
ac_config_files="$ac_config_files ijs.pc"
21045
 
 
21046
 
cat >confcache <<\_ACEOF
21047
 
# This file is a shell script that caches the results of configure
21048
 
# tests run on this system so they can be shared between configure
21049
 
# scripts and configure runs, see configure's option --config-cache.
21050
 
# It is not useful on other systems.  If it contains results you don't
21051
 
# want to keep, you may remove or edit it.
21052
 
#
21053
 
# config.status only pays attention to the cache file if you give it
21054
 
# the --recheck option to rerun configure.
21055
 
#
21056
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
21057
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
21058
 
# following values.
21059
 
 
21060
 
_ACEOF
21061
 
 
21062
 
# The following way of writing the cache mishandles newlines in values,
21063
 
# but we know of no workaround that is simple, portable, and efficient.
21064
 
# So, we kill variables containing newlines.
21065
 
# Ultrix sh set writes to stderr and can't be redirected directly,
21066
 
# and sets the high bit in the cache file unless we assign to the vars.
21067
 
(
21068
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21069
 
    eval ac_val=\$$ac_var
21070
 
    case $ac_val in #(
21071
 
    *${as_nl}*)
21072
 
      case $ac_var in #(
21073
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21074
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21075
 
      esac
21076
 
      case $ac_var in #(
21077
 
      _ | IFS | as_nl) ;; #(
21078
 
      *) $as_unset $ac_var ;;
21079
 
      esac ;;
21080
 
    esac
21081
 
  done
21082
 
 
21083
 
  (set) 2>&1 |
21084
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21085
 
    *${as_nl}ac_space=\ *)
21086
 
      # `set' does not quote correctly, so add quotes (double-quote
21087
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
21088
 
      sed -n \
21089
 
        "s/'/'\\\\''/g;
21090
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21091
 
      ;; #(
21092
 
    *)
21093
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
21094
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21095
 
      ;;
21096
 
    esac |
21097
 
    sort
21098
 
) |
21099
 
  sed '
21100
 
     /^ac_cv_env_/b end
21101
 
     t clear
21102
 
     :clear
21103
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21104
 
     t end
21105
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21106
 
     :end' >>confcache
21107
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21108
 
  if test -w "$cache_file"; then
21109
 
    test "x$cache_file" != "x/dev/null" &&
21110
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21111
 
echo "$as_me: updating cache $cache_file" >&6;}
21112
 
    cat confcache >$cache_file
21113
 
  else
21114
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21115
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21116
 
  fi
21117
 
fi
21118
 
rm -f confcache
21119
 
 
21120
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
21121
 
# Let make expand exec_prefix.
21122
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21123
 
 
21124
 
# Transform confdefs.h into DEFS.
21125
 
# Protect against shell expansion while executing Makefile rules.
21126
 
# Protect against Makefile macro expansion.
21127
 
#
21128
 
# If the first sed substitution is executed (which looks for macros that
21129
 
# take arguments), then branch to the quote section.  Otherwise,
21130
 
# look for a macro that doesn't take arguments.
21131
 
ac_script='
21132
 
t clear
21133
 
:clear
21134
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
21135
 
t quote
21136
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
21137
 
t quote
21138
 
b any
21139
 
:quote
21140
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
21141
 
s/\[/\\&/g
21142
 
s/\]/\\&/g
21143
 
s/\$/$$/g
21144
 
H
21145
 
:any
21146
 
${
21147
 
        g
21148
 
        s/^\n//
21149
 
        s/\n/ /g
21150
 
        p
21151
 
}
21152
 
'
21153
 
DEFS=`sed -n "$ac_script" confdefs.h`
21154
 
 
21155
 
 
21156
 
ac_libobjs=
21157
 
ac_ltlibobjs=
21158
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
21159
 
  # 1. Remove the extension, and $U if already installed.
21160
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21161
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
21162
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21163
 
  #    will be set to the directory where LIBOBJS objects are built.
21164
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21165
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21166
 
done
21167
 
LIB@&t@OBJS=$ac_libobjs
21168
 
 
21169
 
LTLIBOBJS=$ac_ltlibobjs
21170
 
 
21171
 
 
21172
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21173
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21174
 
Usually this means the macro was only invoked conditionally." >&5
21175
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
21176
 
Usually this means the macro was only invoked conditionally." >&2;}
21177
 
   { (exit 1); exit 1; }; }
21178
 
fi
21179
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21180
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21181
 
Usually this means the macro was only invoked conditionally." >&5
21182
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21183
 
Usually this means the macro was only invoked conditionally." >&2;}
21184
 
   { (exit 1); exit 1; }; }
21185
 
fi
21186
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21187
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21188
 
Usually this means the macro was only invoked conditionally." >&5
21189
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21190
 
Usually this means the macro was only invoked conditionally." >&2;}
21191
 
   { (exit 1); exit 1; }; }
21192
 
fi
21193
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21194
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21195
 
Usually this means the macro was only invoked conditionally." >&5
21196
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21197
 
Usually this means the macro was only invoked conditionally." >&2;}
21198
 
   { (exit 1); exit 1; }; }
21199
 
fi
21200
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21201
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21202
 
Usually this means the macro was only invoked conditionally." >&5
21203
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21204
 
Usually this means the macro was only invoked conditionally." >&2;}
21205
 
   { (exit 1); exit 1; }; }
21206
 
fi
21207
 
if test -z "${SYSDEPS_WINDOWS_TRUE}" && test -z "${SYSDEPS_WINDOWS_FALSE}"; then
21208
 
  { { echo "$as_me:$LINENO: error: conditional \"SYSDEPS_WINDOWS\" was never defined.
21209
 
Usually this means the macro was only invoked conditionally." >&5
21210
 
echo "$as_me: error: conditional \"SYSDEPS_WINDOWS\" was never defined.
21211
 
Usually this means the macro was only invoked conditionally." >&2;}
21212
 
   { (exit 1); exit 1; }; }
21213
 
fi
21214
 
 
21215
 
: ${CONFIG_STATUS=./config.status}
21216
 
ac_clean_files_save=$ac_clean_files
21217
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21218
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21219
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
21220
 
cat >$CONFIG_STATUS <<_ACEOF
21221
 
#! $SHELL
21222
 
# Generated by $as_me.
21223
 
# Run this file to recreate the current configuration.
21224
 
# Compiler output produced by configure, useful for debugging
21225
 
# configure, is in config.log if it exists.
21226
 
 
21227
 
debug=false
21228
 
ac_cs_recheck=false
21229
 
ac_cs_silent=false
21230
 
SHELL=\${CONFIG_SHELL-$SHELL}
21231
 
_ACEOF
21232
 
 
21233
 
cat >>$CONFIG_STATUS <<\_ACEOF
21234
 
## --------------------- ##
21235
 
## M4sh Initialization.  ##
21236
 
## --------------------- ##
21237
 
 
21238
 
# Be more Bourne compatible
21239
 
DUALCASE=1; export DUALCASE # for MKS sh
21240
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21241
 
  emulate sh
21242
 
  NULLCMD=:
21243
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21244
 
  # is contrary to our usage.  Disable this feature.
21245
 
  alias -g '${1+"$@"}'='"$@"'
21246
 
  setopt NO_GLOB_SUBST
21247
 
else
21248
 
  case `(set -o) 2>/dev/null` in
21249
 
  *posix*) set -o posix ;;
21250
 
esac
21251
 
 
21252
 
fi
21253
 
 
21254
 
 
21255
 
 
21256
 
 
21257
 
# PATH needs CR
21258
 
# Avoid depending upon Character Ranges.
21259
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21260
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21261
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21262
 
as_cr_digits='0123456789'
21263
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
21264
 
 
21265
 
# The user is always right.
21266
 
if test "${PATH_SEPARATOR+set}" != set; then
21267
 
  echo "#! /bin/sh" >conf$$.sh
21268
 
  echo  "exit 0"   >>conf$$.sh
21269
 
  chmod +x conf$$.sh
21270
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21271
 
    PATH_SEPARATOR=';'
21272
 
  else
21273
 
    PATH_SEPARATOR=:
21274
 
  fi
21275
 
  rm -f conf$$.sh
21276
 
fi
21277
 
 
21278
 
# Support unset when possible.
21279
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21280
 
  as_unset=unset
21281
 
else
21282
 
  as_unset=false
21283
 
fi
21284
 
 
21285
 
 
21286
 
# IFS
21287
 
# We need space, tab and new line, in precisely that order.  Quoting is
21288
 
# there to prevent editors from complaining about space-tab.
21289
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21290
 
# splitting by setting IFS to empty value.)
21291
 
as_nl='
21292
 
'
21293
 
IFS=" ""        $as_nl"
21294
 
 
21295
 
# Find who we are.  Look in the path if we contain no directory separator.
21296
 
case $0 in
21297
 
  *[\\/]* ) as_myself=$0 ;;
21298
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21299
 
for as_dir in $PATH
21300
 
do
21301
 
  IFS=$as_save_IFS
21302
 
  test -z "$as_dir" && as_dir=.
21303
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21304
 
done
21305
 
IFS=$as_save_IFS
21306
 
 
21307
 
     ;;
21308
 
esac
21309
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
21310
 
# in which case we are not to be found in the path.
21311
 
if test "x$as_myself" = x; then
21312
 
  as_myself=$0
21313
 
fi
21314
 
if test ! -f "$as_myself"; then
21315
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21316
 
  { (exit 1); exit 1; }
21317
 
fi
21318
 
 
21319
 
# Work around bugs in pre-3.0 UWIN ksh.
21320
 
for as_var in ENV MAIL MAILPATH
21321
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21322
 
done
21323
 
PS1='$ '
21324
 
PS2='> '
21325
 
PS4='+ '
21326
 
 
21327
 
# NLS nuisances.
21328
 
for as_var in \
21329
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21330
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21331
 
  LC_TELEPHONE LC_TIME
21332
 
do
21333
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21334
 
    eval $as_var=C; export $as_var
21335
 
  else
21336
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21337
 
  fi
21338
 
done
21339
 
 
21340
 
# Required to use basename.
21341
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
21342
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21343
 
  as_expr=expr
21344
 
else
21345
 
  as_expr=false
21346
 
fi
21347
 
 
21348
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21349
 
  as_basename=basename
21350
 
else
21351
 
  as_basename=false
21352
 
fi
21353
 
 
21354
 
 
21355
 
# Name of the executable.
21356
 
as_me=`$as_basename -- "$0" ||
21357
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21358
 
         X"$0" : 'X\(//\)$' \| \
21359
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21360
 
echo X/"$0" |
21361
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
21362
 
            s//\1/
21363
 
            q
21364
 
          }
21365
 
          /^X\/\(\/\/\)$/{
21366
 
            s//\1/
21367
 
            q
21368
 
          }
21369
 
          /^X\/\(\/\).*/{
21370
 
            s//\1/
21371
 
            q
21372
 
          }
21373
 
          s/.*/./; q'`
21374
 
 
21375
 
# CDPATH.
21376
 
$as_unset CDPATH
21377
 
 
21378
 
 
21379
 
 
21380
 
  as_lineno_1=$LINENO
21381
 
  as_lineno_2=$LINENO
21382
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
21383
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21384
 
 
21385
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21386
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
21387
 
  # line-number line after each line using $LINENO; the second 'sed'
21388
 
  # does the real work.  The second script uses 'N' to pair each
21389
 
  # line-number line with the line containing $LINENO, and appends
21390
 
  # trailing '-' during substitution so that $LINENO is not a special
21391
 
  # case at line end.
21392
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21393
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
21394
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
21395
 
  sed -n '
21396
 
    p
21397
 
    /[$]LINENO/=
21398
 
  ' <$as_myself |
21399
 
    sed '
21400
 
      s/[$]LINENO.*/&-/
21401
 
      t lineno
21402
 
      b
21403
 
      :lineno
21404
 
      N
21405
 
      :loop
21406
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21407
 
      t loop
21408
 
      s/-\n.*//
21409
 
    ' >$as_me.lineno &&
21410
 
  chmod +x "$as_me.lineno" ||
21411
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21412
 
   { (exit 1); exit 1; }; }
21413
 
 
21414
 
  # Don't try to exec as it changes $[0], causing all sort of problems
21415
 
  # (the dirname of $[0] is not the place where we might find the
21416
 
  # original and so on.  Autoconf is especially sensitive to this).
21417
 
  . "./$as_me.lineno"
21418
 
  # Exit status is that of the last command.
21419
 
  exit
21420
 
}
21421
 
 
21422
 
 
21423
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21424
 
  as_dirname=dirname
21425
 
else
21426
 
  as_dirname=false
21427
 
fi
21428
 
 
21429
 
ECHO_C= ECHO_N= ECHO_T=
21430
 
case `echo -n x` in
21431
 
-n*)
21432
 
  case `echo 'x\c'` in
21433
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21434
 
  *)   ECHO_C='\c';;
21435
 
  esac;;
21436
 
*)
21437
 
  ECHO_N='-n';;
21438
 
esac
21439
 
 
21440
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
21441
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21442
 
  as_expr=expr
21443
 
else
21444
 
  as_expr=false
21445
 
fi
21446
 
 
21447
 
rm -f conf$$ conf$$.exe conf$$.file
21448
 
if test -d conf$$.dir; then
21449
 
  rm -f conf$$.dir/conf$$.file
21450
 
else
21451
 
  rm -f conf$$.dir
21452
 
  mkdir conf$$.dir
21453
 
fi
21454
 
echo >conf$$.file
21455
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
21456
 
  as_ln_s='ln -s'
21457
 
  # ... but there are two gotchas:
21458
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21459
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21460
 
  # In both cases, we have to default to `cp -p'.
21461
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21462
 
    as_ln_s='cp -p'
21463
 
elif ln conf$$.file conf$$ 2>/dev/null; then
21464
 
  as_ln_s=ln
21465
 
else
21466
 
  as_ln_s='cp -p'
21467
 
fi
21468
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21469
 
rmdir conf$$.dir 2>/dev/null
21470
 
 
21471
 
if mkdir -p . 2>/dev/null; then
21472
 
  as_mkdir_p=:
21473
 
else
21474
 
  test -d ./-p && rmdir ./-p
21475
 
  as_mkdir_p=false
21476
 
fi
21477
 
 
21478
 
if test -x / >/dev/null 2>&1; then
21479
 
  as_test_x='test -x'
21480
 
else
21481
 
  if ls -dL / >/dev/null 2>&1; then
21482
 
    as_ls_L_option=L
21483
 
  else
21484
 
    as_ls_L_option=
21485
 
  fi
21486
 
  as_test_x='
21487
 
    eval sh -c '\''
21488
 
      if test -d "$1"; then
21489
 
        test -d "$1/.";
21490
 
      else
21491
 
        case $1 in
21492
 
        -*)set "./$1";;
21493
 
        esac;
21494
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21495
 
        ???[sx]*):;;*)false;;esac;fi
21496
 
    '\'' sh
21497
 
  '
21498
 
fi
21499
 
as_executable_p=$as_test_x
21500
 
 
21501
 
# Sed expression to map a string onto a valid CPP name.
21502
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21503
 
 
21504
 
# Sed expression to map a string onto a valid variable name.
21505
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21506
 
 
21507
 
 
21508
 
exec 6>&1
21509
 
 
21510
 
# Save the log message, to keep $[0] and so on meaningful, and to
21511
 
# report actual input values of CONFIG_FILES etc. instead of their
21512
 
# values after options handling.
21513
 
ac_log="
21514
 
This file was extended by ijs $as_me 0.35, which was
21515
 
generated by GNU Autoconf 2.61.  Invocation command line was
21516
 
 
21517
 
  CONFIG_FILES    = $CONFIG_FILES
21518
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
21519
 
  CONFIG_LINKS    = $CONFIG_LINKS
21520
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
21521
 
  $ $0 $@
21522
 
 
21523
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
21524
 
"
21525
 
 
21526
 
_ACEOF
21527
 
 
21528
 
cat >>$CONFIG_STATUS <<_ACEOF
21529
 
# Files that config.status was made for.
21530
 
config_files="$ac_config_files"
21531
 
config_commands="$ac_config_commands"
21532
 
 
21533
 
_ACEOF
21534
 
 
21535
 
cat >>$CONFIG_STATUS <<\_ACEOF
21536
 
ac_cs_usage="\
21537
 
\`$as_me' instantiates files from templates according to the
21538
 
current configuration.
21539
 
 
21540
 
Usage: $0 [OPTIONS] [FILE]...
21541
 
 
21542
 
  -h, --help       print this help, then exit
21543
 
  -V, --version    print version number and configuration settings, then exit
21544
 
  -q, --quiet      do not print progress messages
21545
 
  -d, --debug      don't remove temporary files
21546
 
      --recheck    update $as_me by reconfiguring in the same conditions
21547
 
  --file=FILE[:TEMPLATE]
21548
 
                   instantiate the configuration file FILE
21549
 
 
21550
 
Configuration files:
21551
 
$config_files
21552
 
 
21553
 
Configuration commands:
21554
 
$config_commands
21555
 
 
21556
 
Report bugs to <bug-autoconf@gnu.org>."
21557
 
 
21558
 
_ACEOF
21559
 
cat >>$CONFIG_STATUS <<_ACEOF
21560
 
ac_cs_version="\\
21561
 
ijs config.status 0.35
21562
 
configured by $0, generated by GNU Autoconf 2.61,
21563
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21564
 
 
21565
 
Copyright (C) 2006 Free Software Foundation, Inc.
21566
 
This config.status script is free software; the Free Software Foundation
21567
 
gives unlimited permission to copy, distribute and modify it."
21568
 
 
21569
 
ac_pwd='$ac_pwd'
21570
 
srcdir='$srcdir'
21571
 
INSTALL='$INSTALL'
21572
 
MKDIR_P='$MKDIR_P'
21573
 
_ACEOF
21574
 
 
21575
 
cat >>$CONFIG_STATUS <<\_ACEOF
21576
 
# If no file are specified by the user, then we need to provide default
21577
 
# value.  By we need to know if files were specified by the user.
21578
 
ac_need_defaults=:
21579
 
while test $# != 0
21580
 
do
21581
 
  case $1 in
21582
 
  --*=*)
21583
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21584
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21585
 
    ac_shift=:
21586
 
    ;;
21587
 
  *)
21588
 
    ac_option=$1
21589
 
    ac_optarg=$2
21590
 
    ac_shift=shift
21591
 
    ;;
21592
 
  esac
21593
 
 
21594
 
  case $ac_option in
21595
 
  # Handling of the options.
21596
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21597
 
    ac_cs_recheck=: ;;
21598
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21599
 
    echo "$ac_cs_version"; exit ;;
21600
 
  --debug | --debu | --deb | --de | --d | -d )
21601
 
    debug=: ;;
21602
 
  --file | --fil | --fi | --f )
21603
 
    $ac_shift
21604
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21605
 
    ac_need_defaults=false;;
21606
 
  --he | --h |  --help | --hel | -h )
21607
 
    echo "$ac_cs_usage"; exit ;;
21608
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21609
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21610
 
    ac_cs_silent=: ;;
21611
 
 
21612
 
  # This is an error.
21613
 
  -*) { echo "$as_me: error: unrecognized option: $1
21614
 
Try \`$0 --help' for more information." >&2
21615
 
   { (exit 1); exit 1; }; } ;;
21616
 
 
21617
 
  *) ac_config_targets="$ac_config_targets $1"
21618
 
     ac_need_defaults=false ;;
21619
 
 
21620
 
  esac
21621
 
  shift
21622
 
done
21623
 
 
21624
 
ac_configure_extra_args=
21625
 
 
21626
 
if $ac_cs_silent; then
21627
 
  exec 6>/dev/null
21628
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
21629
 
fi
21630
 
 
21631
 
_ACEOF
21632
 
cat >>$CONFIG_STATUS <<_ACEOF
21633
 
if \$ac_cs_recheck; then
21634
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21635
 
  CONFIG_SHELL=$SHELL
21636
 
  export CONFIG_SHELL
21637
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21638
 
fi
21639
 
 
21640
 
_ACEOF
21641
 
cat >>$CONFIG_STATUS <<\_ACEOF
21642
 
exec 5>>config.log
21643
 
{
21644
 
  echo
21645
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
21646
 
@%:@@%:@ Running $as_me. @%:@@%:@
21647
 
_ASBOX
21648
 
  echo "$ac_log"
21649
 
} >&5
21650
 
 
21651
 
_ACEOF
21652
 
cat >>$CONFIG_STATUS <<_ACEOF
21653
 
#
21654
 
# INIT-COMMANDS
21655
 
#
21656
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21657
 
 
21658
 
_ACEOF
21659
 
 
21660
 
cat >>$CONFIG_STATUS <<\_ACEOF
21661
 
 
21662
 
# Handling of arguments.
21663
 
for ac_config_target in $ac_config_targets
21664
 
do
21665
 
  case $ac_config_target in
21666
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21667
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21668
 
    "ijs-config") CONFIG_FILES="$CONFIG_FILES ijs-config" ;;
21669
 
    "ijs.pc") CONFIG_FILES="$CONFIG_FILES ijs.pc" ;;
21670
 
 
21671
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21672
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21673
 
   { (exit 1); exit 1; }; };;
21674
 
  esac
21675
 
done
21676
 
 
21677
 
 
21678
 
# If the user did not use the arguments to specify the items to instantiate,
21679
 
# then the envvar interface is used.  Set only those that are not.
21680
 
# We use the long form for the default assignment because of an extremely
21681
 
# bizarre bug on SunOS 4.1.3.
21682
 
if $ac_need_defaults; then
21683
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21684
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21685
 
fi
21686
 
 
21687
 
# Have a temporary directory for convenience.  Make it in the build tree
21688
 
# simply because there is no reason against having it here, and in addition,
21689
 
# creating and moving files from /tmp can sometimes cause problems.
21690
 
# Hook for its removal unless debugging.
21691
 
# Note that there is a small window in which the directory will not be cleaned:
21692
 
# after its creation but before its name has been assigned to `$tmp'.
21693
 
$debug ||
21694
 
{
21695
 
  tmp=
21696
 
  trap 'exit_status=$?
21697
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21698
 
' 0
21699
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21700
 
}
21701
 
# Create a (secure) tmp directory for tmp files.
21702
 
 
21703
 
{
21704
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21705
 
  test -n "$tmp" && test -d "$tmp"
21706
 
}  ||
21707
 
{
21708
 
  tmp=./conf$$-$RANDOM
21709
 
  (umask 077 && mkdir "$tmp")
21710
 
} ||
21711
 
{
21712
 
   echo "$me: cannot create a temporary directory in ." >&2
21713
 
   { (exit 1); exit 1; }
21714
 
}
21715
 
 
21716
 
#
21717
 
# Set up the sed scripts for CONFIG_FILES section.
21718
 
#
21719
 
 
21720
 
# No need to generate the scripts if there are no CONFIG_FILES.
21721
 
# This happens for instance when ./config.status config.h
21722
 
if test -n "$CONFIG_FILES"; then
21723
 
 
21724
 
_ACEOF
21725
 
 
21726
 
 
21727
 
 
21728
 
ac_delim='%!_!# '
21729
 
for ac_last_try in false false false false false :; do
21730
 
  cat >conf$$subs.sed <<_ACEOF
21731
 
SHELL!$SHELL$ac_delim
21732
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21733
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21734
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21735
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21736
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21737
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21738
 
exec_prefix!$exec_prefix$ac_delim
21739
 
prefix!$prefix$ac_delim
21740
 
program_transform_name!$program_transform_name$ac_delim
21741
 
bindir!$bindir$ac_delim
21742
 
sbindir!$sbindir$ac_delim
21743
 
libexecdir!$libexecdir$ac_delim
21744
 
datarootdir!$datarootdir$ac_delim
21745
 
datadir!$datadir$ac_delim
21746
 
sysconfdir!$sysconfdir$ac_delim
21747
 
sharedstatedir!$sharedstatedir$ac_delim
21748
 
localstatedir!$localstatedir$ac_delim
21749
 
includedir!$includedir$ac_delim
21750
 
oldincludedir!$oldincludedir$ac_delim
21751
 
docdir!$docdir$ac_delim
21752
 
infodir!$infodir$ac_delim
21753
 
htmldir!$htmldir$ac_delim
21754
 
dvidir!$dvidir$ac_delim
21755
 
pdfdir!$pdfdir$ac_delim
21756
 
psdir!$psdir$ac_delim
21757
 
libdir!$libdir$ac_delim
21758
 
localedir!$localedir$ac_delim
21759
 
mandir!$mandir$ac_delim
21760
 
DEFS!$DEFS$ac_delim
21761
 
ECHO_C!$ECHO_C$ac_delim
21762
 
ECHO_N!$ECHO_N$ac_delim
21763
 
ECHO_T!$ECHO_T$ac_delim
21764
 
LIBS!$LIBS$ac_delim
21765
 
build_alias!$build_alias$ac_delim
21766
 
host_alias!$host_alias$ac_delim
21767
 
target_alias!$target_alias$ac_delim
21768
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21769
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21770
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
21771
 
am__isrc!$am__isrc$ac_delim
21772
 
CYGPATH_W!$CYGPATH_W$ac_delim
21773
 
PACKAGE!$PACKAGE$ac_delim
21774
 
VERSION!$VERSION$ac_delim
21775
 
ACLOCAL!$ACLOCAL$ac_delim
21776
 
AUTOCONF!$AUTOCONF$ac_delim
21777
 
AUTOMAKE!$AUTOMAKE$ac_delim
21778
 
AUTOHEADER!$AUTOHEADER$ac_delim
21779
 
MAKEINFO!$MAKEINFO$ac_delim
21780
 
install_sh!$install_sh$ac_delim
21781
 
STRIP!$STRIP$ac_delim
21782
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21783
 
mkdir_p!$mkdir_p$ac_delim
21784
 
AWK!$AWK$ac_delim
21785
 
SET_MAKE!$SET_MAKE$ac_delim
21786
 
am__leading_dot!$am__leading_dot$ac_delim
21787
 
AMTAR!$AMTAR$ac_delim
21788
 
am__tar!$am__tar$ac_delim
21789
 
am__untar!$am__untar$ac_delim
21790
 
IJS_MAJOR_VERSION!$IJS_MAJOR_VERSION$ac_delim
21791
 
IJS_MINOR_VERSION!$IJS_MINOR_VERSION$ac_delim
21792
 
IJS_CURRENT_INTERFACE!$IJS_CURRENT_INTERFACE$ac_delim
21793
 
IJS_INTERFACE_AGE!$IJS_INTERFACE_AGE$ac_delim
21794
 
IJS_BINARY_AGE!$IJS_BINARY_AGE$ac_delim
21795
 
IJS_VERSION!$IJS_VERSION$ac_delim
21796
 
LT_RELEASE!$LT_RELEASE$ac_delim
21797
 
LT_CURRENT!$LT_CURRENT$ac_delim
21798
 
LT_REVISION!$LT_REVISION$ac_delim
21799
 
LT_AGE!$LT_AGE$ac_delim
21800
 
build!$build$ac_delim
21801
 
build_cpu!$build_cpu$ac_delim
21802
 
build_vendor!$build_vendor$ac_delim
21803
 
build_os!$build_os$ac_delim
21804
 
host!$host$ac_delim
21805
 
host_cpu!$host_cpu$ac_delim
21806
 
host_vendor!$host_vendor$ac_delim
21807
 
host_os!$host_os$ac_delim
21808
 
CC!$CC$ac_delim
21809
 
CFLAGS!$CFLAGS$ac_delim
21810
 
LDFLAGS!$LDFLAGS$ac_delim
21811
 
CPPFLAGS!$CPPFLAGS$ac_delim
21812
 
ac_ct_CC!$ac_ct_CC$ac_delim
21813
 
EXEEXT!$EXEEXT$ac_delim
21814
 
OBJEXT!$OBJEXT$ac_delim
21815
 
DEPDIR!$DEPDIR$ac_delim
21816
 
am__include!$am__include$ac_delim
21817
 
am__quote!$am__quote$ac_delim
21818
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21819
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21820
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21821
 
CCDEPMODE!$CCDEPMODE$ac_delim
21822
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21823
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21824
 
GREP!$GREP$ac_delim
21825
 
EGREP!$EGREP$ac_delim
21826
 
LN_S!$LN_S$ac_delim
21827
 
ECHO!$ECHO$ac_delim
21828
 
_ACEOF
21829
 
 
21830
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21831
 
    break
21832
 
  elif $ac_last_try; then
21833
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21834
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21835
 
   { (exit 1); exit 1; }; }
21836
 
  else
21837
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21838
 
  fi
21839
 
done
21840
 
 
21841
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21842
 
if test -n "$ac_eof"; then
21843
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21844
 
  ac_eof=`expr $ac_eof + 1`
21845
 
fi
21846
 
 
21847
 
cat >>$CONFIG_STATUS <<_ACEOF
21848
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21849
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21850
 
_ACEOF
21851
 
sed '
21852
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21853
 
s/^/s,@/; s/!/@,|#_!!_#|/
21854
 
:n
21855
 
t n
21856
 
s/'"$ac_delim"'$/,g/; t
21857
 
s/$/\\/; p
21858
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21859
 
' >>$CONFIG_STATUS <conf$$subs.sed
21860
 
rm -f conf$$subs.sed
21861
 
cat >>$CONFIG_STATUS <<_ACEOF
21862
 
CEOF$ac_eof
21863
 
_ACEOF
21864
 
 
21865
 
 
21866
 
ac_delim='%!_!# '
21867
 
for ac_last_try in false false false false false :; do
21868
 
  cat >conf$$subs.sed <<_ACEOF
21869
 
AR!$AR$ac_delim
21870
 
RANLIB!$RANLIB$ac_delim
21871
 
CPP!$CPP$ac_delim
21872
 
CXX!$CXX$ac_delim
21873
 
CXXFLAGS!$CXXFLAGS$ac_delim
21874
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
21875
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
21876
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21877
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21878
 
CXXCPP!$CXXCPP$ac_delim
21879
 
F77!$F77$ac_delim
21880
 
FFLAGS!$FFLAGS$ac_delim
21881
 
ac_ct_F77!$ac_ct_F77$ac_delim
21882
 
LIBTOOL!$LIBTOOL$ac_delim
21883
 
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
21884
 
DB2PS!$DB2PS$ac_delim
21885
 
PS2PDF!$PS2PDF$ac_delim
21886
 
SYSDEPS_WINDOWS_TRUE!$SYSDEPS_WINDOWS_TRUE$ac_delim
21887
 
SYSDEPS_WINDOWS_FALSE!$SYSDEPS_WINDOWS_FALSE$ac_delim
21888
 
IJS_CFLAGS!$IJS_CFLAGS$ac_delim
21889
 
IJS_LIBS!$IJS_LIBS$ac_delim
21890
 
IJS_DEPLIBS!$IJS_DEPLIBS$ac_delim
21891
 
ijs_cflags!$ijs_cflags$ac_delim
21892
 
ijs_libs!$ijs_libs$ac_delim
21893
 
INCLUDES!$INCLUDES$ac_delim
21894
 
LIBIJS_LIBS!$LIBIJS_LIBS$ac_delim
21895
 
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
21896
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
21897
 
_ACEOF
21898
 
 
21899
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
21900
 
    break
21901
 
  elif $ac_last_try; then
21902
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21903
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21904
 
   { (exit 1); exit 1; }; }
21905
 
  else
21906
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21907
 
  fi
21908
 
done
21909
 
 
21910
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21911
 
if test -n "$ac_eof"; then
21912
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21913
 
  ac_eof=`expr $ac_eof + 1`
21914
 
fi
21915
 
 
21916
 
cat >>$CONFIG_STATUS <<_ACEOF
21917
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21918
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21919
 
_ACEOF
21920
 
sed '
21921
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21922
 
s/^/s,@/; s/!/@,|#_!!_#|/
21923
 
:n
21924
 
t n
21925
 
s/'"$ac_delim"'$/,g/; t
21926
 
s/$/\\/; p
21927
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21928
 
' >>$CONFIG_STATUS <conf$$subs.sed
21929
 
rm -f conf$$subs.sed
21930
 
cat >>$CONFIG_STATUS <<_ACEOF
21931
 
:end
21932
 
s/|#_!!_#|//g
21933
 
CEOF$ac_eof
21934
 
_ACEOF
21935
 
 
21936
 
 
21937
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
21938
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21939
 
# trailing colons and then remove the whole line if VPATH becomes empty
21940
 
# (actually we leave an empty line to preserve line numbers).
21941
 
if test "x$srcdir" = x.; then
21942
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
21943
 
s/:*\$(srcdir):*/:/
21944
 
s/:*\${srcdir}:*/:/
21945
 
s/:*@srcdir@:*/:/
21946
 
s/^\([^=]*=[     ]*\):*/\1/
21947
 
s/:*$//
21948
 
s/^[^=]*=[       ]*$//
21949
 
}'
21950
 
fi
21951
 
 
21952
 
cat >>$CONFIG_STATUS <<\_ACEOF
21953
 
fi # test -n "$CONFIG_FILES"
21954
 
 
21955
 
 
21956
 
for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
21957
 
do
21958
 
  case $ac_tag in
21959
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
21960
 
  esac
21961
 
  case $ac_mode$ac_tag in
21962
 
  :[FHL]*:*);;
21963
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21964
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21965
 
   { (exit 1); exit 1; }; };;
21966
 
  :[FH]-) ac_tag=-:-;;
21967
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21968
 
  esac
21969
 
  ac_save_IFS=$IFS
21970
 
  IFS=:
21971
 
  set x $ac_tag
21972
 
  IFS=$ac_save_IFS
21973
 
  shift
21974
 
  ac_file=$1
21975
 
  shift
21976
 
 
21977
 
  case $ac_mode in
21978
 
  :L) ac_source=$1;;
21979
 
  :[FH])
21980
 
    ac_file_inputs=
21981
 
    for ac_f
21982
 
    do
21983
 
      case $ac_f in
21984
 
      -) ac_f="$tmp/stdin";;
21985
 
      *) # Look for the file first in the build tree, then in the source tree
21986
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
21987
 
         # because $ac_f cannot contain `:'.
21988
 
         test -f "$ac_f" ||
21989
 
           case $ac_f in
21990
 
           [\\/$]*) false;;
21991
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21992
 
           esac ||
21993
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21994
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21995
 
   { (exit 1); exit 1; }; };;
21996
 
      esac
21997
 
      ac_file_inputs="$ac_file_inputs $ac_f"
21998
 
    done
21999
 
 
22000
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
22001
 
    # use $as_me), people would be surprised to read:
22002
 
    #    /* config.h.  Generated by config.status.  */
22003
 
    configure_input="Generated from "`IFS=:
22004
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22005
 
    if test x"$ac_file" != x-; then
22006
 
      configure_input="$ac_file.  $configure_input"
22007
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
22008
 
echo "$as_me: creating $ac_file" >&6;}
22009
 
    fi
22010
 
 
22011
 
    case $ac_tag in
22012
 
    *:-:* | *:-) cat >"$tmp/stdin";;
22013
 
    esac
22014
 
    ;;
22015
 
  esac
22016
 
 
22017
 
  ac_dir=`$as_dirname -- "$ac_file" ||
22018
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22019
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
22020
 
         X"$ac_file" : 'X\(//\)$' \| \
22021
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22022
 
echo X"$ac_file" |
22023
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22024
 
            s//\1/
22025
 
            q
22026
 
          }
22027
 
          /^X\(\/\/\)[^/].*/{
22028
 
            s//\1/
22029
 
            q
22030
 
          }
22031
 
          /^X\(\/\/\)$/{
22032
 
            s//\1/
22033
 
            q
22034
 
          }
22035
 
          /^X\(\/\).*/{
22036
 
            s//\1/
22037
 
            q
22038
 
          }
22039
 
          s/.*/./; q'`
22040
 
  { as_dir="$ac_dir"
22041
 
  case $as_dir in #(
22042
 
  -*) as_dir=./$as_dir;;
22043
 
  esac
22044
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22045
 
    as_dirs=
22046
 
    while :; do
22047
 
      case $as_dir in #(
22048
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22049
 
      *) as_qdir=$as_dir;;
22050
 
      esac
22051
 
      as_dirs="'$as_qdir' $as_dirs"
22052
 
      as_dir=`$as_dirname -- "$as_dir" ||
22053
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22054
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
22055
 
         X"$as_dir" : 'X\(//\)$' \| \
22056
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22057
 
echo X"$as_dir" |
22058
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22059
 
            s//\1/
22060
 
            q
22061
 
          }
22062
 
          /^X\(\/\/\)[^/].*/{
22063
 
            s//\1/
22064
 
            q
22065
 
          }
22066
 
          /^X\(\/\/\)$/{
22067
 
            s//\1/
22068
 
            q
22069
 
          }
22070
 
          /^X\(\/\).*/{
22071
 
            s//\1/
22072
 
            q
22073
 
          }
22074
 
          s/.*/./; q'`
22075
 
      test -d "$as_dir" && break
22076
 
    done
22077
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
22078
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22079
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22080
 
   { (exit 1); exit 1; }; }; }
22081
 
  ac_builddir=.
22082
 
 
22083
 
case "$ac_dir" in
22084
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22085
 
*)
22086
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22087
 
  # A ".." for each directory in $ac_dir_suffix.
22088
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22089
 
  case $ac_top_builddir_sub in
22090
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22091
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22092
 
  esac ;;
22093
 
esac
22094
 
ac_abs_top_builddir=$ac_pwd
22095
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
22096
 
# for backward compatibility:
22097
 
ac_top_builddir=$ac_top_build_prefix
22098
 
 
22099
 
case $srcdir in
22100
 
  .)  # We are building in place.
22101
 
    ac_srcdir=.
22102
 
    ac_top_srcdir=$ac_top_builddir_sub
22103
 
    ac_abs_top_srcdir=$ac_pwd ;;
22104
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
22105
 
    ac_srcdir=$srcdir$ac_dir_suffix;
22106
 
    ac_top_srcdir=$srcdir
22107
 
    ac_abs_top_srcdir=$srcdir ;;
22108
 
  *) # Relative name.
22109
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22110
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
22111
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22112
 
esac
22113
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22114
 
 
22115
 
 
22116
 
  case $ac_mode in
22117
 
  :F)
22118
 
  #
22119
 
  # CONFIG_FILE
22120
 
  #
22121
 
 
22122
 
  case $INSTALL in
22123
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22124
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22125
 
  esac
22126
 
  ac_MKDIR_P=$MKDIR_P
22127
 
  case $MKDIR_P in
22128
 
  [\\/$]* | ?:[\\/]* ) ;;
22129
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22130
 
  esac
22131
 
_ACEOF
22132
 
 
22133
 
cat >>$CONFIG_STATUS <<\_ACEOF
22134
 
# If the template does not know about datarootdir, expand it.
22135
 
# FIXME: This hack should be removed a few years after 2.60.
22136
 
ac_datarootdir_hack=; ac_datarootdir_seen=
22137
 
 
22138
 
case `sed -n '/datarootdir/ {
22139
 
  p
22140
 
  q
22141
 
}
22142
 
/@datadir@/p
22143
 
/@docdir@/p
22144
 
/@infodir@/p
22145
 
/@localedir@/p
22146
 
/@mandir@/p
22147
 
' $ac_file_inputs` in
22148
 
*datarootdir*) ac_datarootdir_seen=yes;;
22149
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22150
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22151
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22152
 
_ACEOF
22153
 
cat >>$CONFIG_STATUS <<_ACEOF
22154
 
  ac_datarootdir_hack='
22155
 
  s&@datadir@&$datadir&g
22156
 
  s&@docdir@&$docdir&g
22157
 
  s&@infodir@&$infodir&g
22158
 
  s&@localedir@&$localedir&g
22159
 
  s&@mandir@&$mandir&g
22160
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
22161
 
esac
22162
 
_ACEOF
22163
 
 
22164
 
# Neutralize VPATH when `$srcdir' = `.'.
22165
 
# Shell code in configure.ac might set extrasub.
22166
 
# FIXME: do we really want to maintain this feature?
22167
 
cat >>$CONFIG_STATUS <<_ACEOF
22168
 
  sed "$ac_vpsub
22169
 
$extrasub
22170
 
_ACEOF
22171
 
cat >>$CONFIG_STATUS <<\_ACEOF
22172
 
:t
22173
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22174
 
s&@configure_input@&$configure_input&;t t
22175
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
22176
 
s&@srcdir@&$ac_srcdir&;t t
22177
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
22178
 
s&@top_srcdir@&$ac_top_srcdir&;t t
22179
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22180
 
s&@builddir@&$ac_builddir&;t t
22181
 
s&@abs_builddir@&$ac_abs_builddir&;t t
22182
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22183
 
s&@INSTALL@&$ac_INSTALL&;t t
22184
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
22185
 
$ac_datarootdir_hack
22186
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22187
 
 
22188
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22189
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22190
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22191
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22192
 
which seems to be undefined.  Please make sure it is defined." >&5
22193
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22194
 
which seems to be undefined.  Please make sure it is defined." >&2;}
22195
 
 
22196
 
  rm -f "$tmp/stdin"
22197
 
  case $ac_file in
22198
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
22199
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22200
 
  esac
22201
 
 ;;
22202
 
  
22203
 
  
22204
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22205
 
echo "$as_me: executing $ac_file commands" >&6;}
22206
 
 ;;
22207
 
  esac
22208
 
 
22209
 
 
22210
 
  case $ac_file$ac_mode in
22211
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22212
 
  # Strip MF so we end up with the name of the file.
22213
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
22214
 
  # Check whether this is an Automake generated Makefile or not.
22215
 
  # We used to match only the files named `Makefile.in', but
22216
 
  # some people rename them; so instead we look at the file content.
22217
 
  # Grep'ing the first line is not enough: some people post-process
22218
 
  # each Makefile.in and add a new line on top of each file to say so.
22219
 
  # Grep'ing the whole file is not good either: AIX grep has a line
22220
 
  # limit of 2048, but all sed's we know have understand at least 4000.
22221
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22222
 
    dirpart=`$as_dirname -- "$mf" ||
22223
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22224
 
         X"$mf" : 'X\(//\)[^/]' \| \
22225
 
         X"$mf" : 'X\(//\)$' \| \
22226
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22227
 
echo X"$mf" |
22228
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22229
 
            s//\1/
22230
 
            q
22231
 
          }
22232
 
          /^X\(\/\/\)[^/].*/{
22233
 
            s//\1/
22234
 
            q
22235
 
          }
22236
 
          /^X\(\/\/\)$/{
22237
 
            s//\1/
22238
 
            q
22239
 
          }
22240
 
          /^X\(\/\).*/{
22241
 
            s//\1/
22242
 
            q
22243
 
          }
22244
 
          s/.*/./; q'`
22245
 
  else
22246
 
    continue
22247
 
  fi
22248
 
  # Extract the definition of DEPDIR, am__include, and am__quote
22249
 
  # from the Makefile without running `make'.
22250
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22251
 
  test -z "$DEPDIR" && continue
22252
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
22253
 
  test -z "am__include" && continue
22254
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22255
 
  # When using ansi2knr, U may be empty or an underscore; expand it
22256
 
  U=`sed -n 's/^U = //p' < "$mf"`
22257
 
  # Find all dependency output files, they are included files with
22258
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
22259
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
22260
 
  # expansion.
22261
 
  for file in `sed -n "
22262
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22263
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22264
 
    # Make sure the directory exists.
22265
 
    test -f "$dirpart/$file" && continue
22266
 
    fdir=`$as_dirname -- "$file" ||
22267
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22268
 
         X"$file" : 'X\(//\)[^/]' \| \
22269
 
         X"$file" : 'X\(//\)$' \| \
22270
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22271
 
echo X"$file" |
22272
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22273
 
            s//\1/
22274
 
            q
22275
 
          }
22276
 
          /^X\(\/\/\)[^/].*/{
22277
 
            s//\1/
22278
 
            q
22279
 
          }
22280
 
          /^X\(\/\/\)$/{
22281
 
            s//\1/
22282
 
            q
22283
 
          }
22284
 
          /^X\(\/\).*/{
22285
 
            s//\1/
22286
 
            q
22287
 
          }
22288
 
          s/.*/./; q'`
22289
 
    { as_dir=$dirpart/$fdir
22290
 
  case $as_dir in #(
22291
 
  -*) as_dir=./$as_dir;;
22292
 
  esac
22293
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22294
 
    as_dirs=
22295
 
    while :; do
22296
 
      case $as_dir in #(
22297
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22298
 
      *) as_qdir=$as_dir;;
22299
 
      esac
22300
 
      as_dirs="'$as_qdir' $as_dirs"
22301
 
      as_dir=`$as_dirname -- "$as_dir" ||
22302
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22303
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
22304
 
         X"$as_dir" : 'X\(//\)$' \| \
22305
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22306
 
echo X"$as_dir" |
22307
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22308
 
            s//\1/
22309
 
            q
22310
 
          }
22311
 
          /^X\(\/\/\)[^/].*/{
22312
 
            s//\1/
22313
 
            q
22314
 
          }
22315
 
          /^X\(\/\/\)$/{
22316
 
            s//\1/
22317
 
            q
22318
 
          }
22319
 
          /^X\(\/\).*/{
22320
 
            s//\1/
22321
 
            q
22322
 
          }
22323
 
          s/.*/./; q'`
22324
 
      test -d "$as_dir" && break
22325
 
    done
22326
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
22327
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22328
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22329
 
   { (exit 1); exit 1; }; }; }
22330
 
    # echo "creating $dirpart/$file"
22331
 
    echo '# dummy' > "$dirpart/$file"
22332
 
  done
22333
 
done
22334
 
 ;;
22335
 
    "ijs-config":F) chmod +x ijs-config ;;
22336
 
 
22337
 
  esac
22338
 
done # for ac_tag
22339
 
 
22340
 
 
22341
 
{ (exit 0); exit 0; }
22342
 
_ACEOF
22343
 
chmod +x $CONFIG_STATUS
22344
 
ac_clean_files=$ac_clean_files_save
22345
 
 
22346
 
 
22347
 
# configure is writing to config.log, and then calls config.status.
22348
 
# config.status does its own redirection, appending to config.log.
22349
 
# Unfortunately, on DOS this fails, as config.log is still kept open
22350
 
# by configure, so config.status won't be able to write to it; its
22351
 
# output is simply discarded.  So we exec the FD to /dev/null,
22352
 
# effectively closing config.log, so it can be properly (re)opened and
22353
 
# appended to by config.status.  When coming back to configure, we
22354
 
# need to make the FD available again.
22355
 
if test "$no_create" != yes; then
22356
 
  ac_cs_success=:
22357
 
  ac_config_status_args=
22358
 
  test "$silent" = yes &&
22359
 
    ac_config_status_args="$ac_config_status_args --quiet"
22360
 
  exec 5>/dev/null
22361
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22362
 
  exec 5>>config.log
22363
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22364
 
  # would make configure fail if this is the last instruction.
22365
 
  $ac_cs_success || { (exit 1); exit 1; }
22366
 
fi
22367