~ubuntu-branches/ubuntu/quantal/sdlgfx/quantal

« back to all changes in this revision

Viewing changes to Test/autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Barry deFreese
  • Date: 2009-10-06 15:11:11 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091006151111-ymnd515d0v9uw8qi
Tags: 2.0.20-1
[ Barry deFreese ]
* New upstream release. (Closes: #549250).
* Add ${misc:Depends} for debhelper package.
* Add README.source for quilt patch system.
* Improve -dev package description.
* Fix watch file.
* Bump Standards Version to 3.8.3. (No changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@%:@! /bin/sh
 
2
@%:@ Guess values for system-dependent variables and create Makefiles.
 
3
@%:@ Generated by GNU Autoconf 2.61.
 
4
@%:@ 
 
5
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
@%:@ 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
@%:@ This configure script is free software; the Free Software Foundation
 
8
@%:@ gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
    
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
 
 
553
# Check that we are running under the correct shell.
 
554
SHELL=${CONFIG_SHELL-/bin/sh}
 
555
 
 
556
case X$ECHO in
 
557
X*--fallback-echo)
 
558
  # Remove one level of quotation (which was required for Make).
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
560
  ;;
 
561
esac
 
562
 
 
563
echo=${ECHO-echo}
 
564
if test "X$1" = X--no-reexec; then
 
565
  # Discard the --no-reexec flag, and continue.
 
566
  shift
 
567
elif test "X$1" = X--fallback-echo; then
 
568
  # Avoid inline document here, it may be left over
 
569
  :
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
 
572
  :
 
573
else
 
574
  # Restart under the correct shell.
 
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
576
fi
 
577
 
 
578
if test "X$1" = X--fallback-echo; then
 
579
  # used as fallback echo
 
580
  shift
 
581
  cat <<EOF
 
582
$*
 
583
EOF
 
584
  exit 0
 
585
fi
 
586
 
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
588
# if CDPATH is set.
 
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
590
 
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
597
       echo_test_string=`eval $cmd` &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
 
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
 
628
 
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
666
      else
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
 
674
          fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
 
686
      fi
 
687
    fi
 
688
  fi
 
689
fi
 
690
fi
 
691
 
 
692
# Copy echo and quote the copy suitably for passing to libtool from
 
693
# the Makefile, instead of quoting the original, which is used later.
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
697
fi
 
698
 
 
699
 
 
700
 
 
701
 
 
702
tagnames=${tagnames+${tagnames},}CXX
 
703
 
 
704
tagnames=${tagnames+${tagnames},}F77
 
705
 
 
706
exec 7<&0 </dev/null 6>&1
 
707
 
 
708
# Name of the host.
 
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
710
# so uname gets run too.
 
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
712
 
 
713
#
 
714
# Initializations.
 
715
#
 
716
ac_default_prefix=/usr/local
 
717
ac_clean_files=
 
718
ac_config_libobj_dir=.
 
719
LIB@&t@OBJS=
 
720
cross_compiling=no
 
721
subdirs=
 
722
MFLAGS=
 
723
MAKEFLAGS=
 
724
SHELL=${CONFIG_SHELL-/bin/sh}
 
725
 
 
726
# Identity of this package.
 
727
PACKAGE_NAME=
 
728
PACKAGE_TARNAME=
 
729
PACKAGE_VERSION=
 
730
PACKAGE_STRING=
 
731
PACKAGE_BUGREPORT=
 
732
 
 
733
ac_unique_file="TestGfxPrimitives.c"
 
734
# Factoring default headers for most tests.
 
735
ac_includes_default="\
 
736
#include <stdio.h>
 
737
#ifdef HAVE_SYS_TYPES_H
 
738
# include <sys/types.h>
 
739
#endif
 
740
#ifdef HAVE_SYS_STAT_H
 
741
# include <sys/stat.h>
 
742
#endif
 
743
#ifdef STDC_HEADERS
 
744
# include <stdlib.h>
 
745
# include <stddef.h>
 
746
#else
 
747
# ifdef HAVE_STDLIB_H
 
748
#  include <stdlib.h>
 
749
# endif
 
750
#endif
 
751
#ifdef HAVE_STRING_H
 
752
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
753
#  include <memory.h>
 
754
# endif
 
755
# include <string.h>
 
756
#endif
 
757
#ifdef HAVE_STRINGS_H
 
758
# include <strings.h>
 
759
#endif
 
760
#ifdef HAVE_INTTYPES_H
 
761
# include <inttypes.h>
 
762
#endif
 
763
#ifdef HAVE_STDINT_H
 
764
# include <stdint.h>
 
765
#endif
 
766
#ifdef HAVE_UNISTD_H
 
767
# include <unistd.h>
 
768
#endif"
 
769
 
 
770
ac_subst_vars='SHELL
 
771
PATH_SEPARATOR
 
772
PACKAGE_NAME
 
773
PACKAGE_TARNAME
 
774
PACKAGE_VERSION
 
775
PACKAGE_STRING
 
776
PACKAGE_BUGREPORT
 
777
exec_prefix
 
778
prefix
 
779
program_transform_name
 
780
bindir
 
781
sbindir
 
782
libexecdir
 
783
datarootdir
 
784
datadir
 
785
sysconfdir
 
786
sharedstatedir
 
787
localstatedir
 
788
includedir
 
789
oldincludedir
 
790
docdir
 
791
infodir
 
792
htmldir
 
793
dvidir
 
794
pdfdir
 
795
psdir
 
796
libdir
 
797
localedir
 
798
mandir
 
799
DEFS
 
800
ECHO_C
 
801
ECHO_N
 
802
ECHO_T
 
803
LIBS
 
804
build_alias
 
805
host_alias
 
806
target_alias
 
807
build
 
808
build_cpu
 
809
build_vendor
 
810
build_os
 
811
host
 
812
host_cpu
 
813
host_vendor
 
814
host_os
 
815
target
 
816
target_cpu
 
817
target_vendor
 
818
target_os
 
819
INSTALL_PROGRAM
 
820
INSTALL_SCRIPT
 
821
INSTALL_DATA
 
822
am__isrc
 
823
CYGPATH_W
 
824
PACKAGE
 
825
VERSION
 
826
ACLOCAL
 
827
AUTOCONF
 
828
AUTOMAKE
 
829
AUTOHEADER
 
830
MAKEINFO
 
831
install_sh
 
832
STRIP
 
833
INSTALL_STRIP_PROGRAM
 
834
mkdir_p
 
835
AWK
 
836
SET_MAKE
 
837
am__leading_dot
 
838
AMTAR
 
839
am__tar
 
840
am__untar
 
841
CC
 
842
CFLAGS
 
843
LDFLAGS
 
844
CPPFLAGS
 
845
ac_ct_CC
 
846
EXEEXT
 
847
OBJEXT
 
848
DEPDIR
 
849
am__include
 
850
am__quote
 
851
AMDEP_TRUE
 
852
AMDEP_FALSE
 
853
AMDEPBACKSLASH
 
854
CCDEPMODE
 
855
am__fastdepCC_TRUE
 
856
am__fastdepCC_FALSE
 
857
SED
 
858
GREP
 
859
EGREP
 
860
LN_S
 
861
ECHO
 
862
AR
 
863
RANLIB
 
864
DSYMUTIL
 
865
NMEDIT
 
866
DLLTOOL
 
867
AS
 
868
OBJDUMP
 
869
CPP
 
870
CXX
 
871
CXXFLAGS
 
872
ac_ct_CXX
 
873
CXXDEPMODE
 
874
am__fastdepCXX_TRUE
 
875
am__fastdepCXX_FALSE
 
876
CXXCPP
 
877
F77
 
878
FFLAGS
 
879
ac_ct_F77
 
880
LIBTOOL
 
881
MATHLIB
 
882
SDL_CONFIG
 
883
SDL_CFLAGS
 
884
SDL_LIBS
 
885
LIB@&t@OBJS
 
886
LTLIBOBJS'
 
887
ac_subst_files=''
 
888
      ac_precious_vars='build_alias
 
889
host_alias
 
890
target_alias
 
891
CC
 
892
CFLAGS
 
893
LDFLAGS
 
894
LIBS
 
895
CPPFLAGS
 
896
CPP
 
897
CXX
 
898
CXXFLAGS
 
899
CCC
 
900
CXXCPP
 
901
F77
 
902
FFLAGS'
 
903
 
 
904
 
 
905
# Initialize some variables set by options.
 
906
ac_init_help=
 
907
ac_init_version=false
 
908
# The variables have the same names as the options, with
 
909
# dashes changed to underlines.
 
910
cache_file=/dev/null
 
911
exec_prefix=NONE
 
912
no_create=
 
913
no_recursion=
 
914
prefix=NONE
 
915
program_prefix=NONE
 
916
program_suffix=NONE
 
917
program_transform_name=s,x,x,
 
918
silent=
 
919
site=
 
920
srcdir=
 
921
verbose=
 
922
x_includes=NONE
 
923
x_libraries=NONE
 
924
 
 
925
# Installation directory options.
 
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
927
# and all the variables that are supposed to be based on exec_prefix
 
928
# by default will actually change.
 
929
# Use braces instead of parens because sh, perl, etc. also accept them.
 
930
# (The list follows the same order as the GNU Coding Standards.)
 
931
bindir='${exec_prefix}/bin'
 
932
sbindir='${exec_prefix}/sbin'
 
933
libexecdir='${exec_prefix}/libexec'
 
934
datarootdir='${prefix}/share'
 
935
datadir='${datarootdir}'
 
936
sysconfdir='${prefix}/etc'
 
937
sharedstatedir='${prefix}/com'
 
938
localstatedir='${prefix}/var'
 
939
includedir='${prefix}/include'
 
940
oldincludedir='/usr/include'
 
941
docdir='${datarootdir}/doc/${PACKAGE}'
 
942
infodir='${datarootdir}/info'
 
943
htmldir='${docdir}'
 
944
dvidir='${docdir}'
 
945
pdfdir='${docdir}'
 
946
psdir='${docdir}'
 
947
libdir='${exec_prefix}/lib'
 
948
localedir='${datarootdir}/locale'
 
949
mandir='${datarootdir}/man'
 
950
 
 
951
ac_prev=
 
952
ac_dashdash=
 
953
for ac_option
 
954
do
 
955
  # If the previous option needs an argument, assign it.
 
956
  if test -n "$ac_prev"; then
 
957
    eval $ac_prev=\$ac_option
 
958
    ac_prev=
 
959
    continue
 
960
  fi
 
961
 
 
962
  case $ac_option in
 
963
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
964
  *)    ac_optarg=yes ;;
 
965
  esac
 
966
 
 
967
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
968
 
 
969
  case $ac_dashdash$ac_option in
 
970
  --)
 
971
    ac_dashdash=yes ;;
 
972
 
 
973
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
974
    ac_prev=bindir ;;
 
975
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
976
    bindir=$ac_optarg ;;
 
977
 
 
978
  -build | --build | --buil | --bui | --bu)
 
979
    ac_prev=build_alias ;;
 
980
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
981
    build_alias=$ac_optarg ;;
 
982
 
 
983
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
984
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
985
    ac_prev=cache_file ;;
 
986
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
987
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
988
    cache_file=$ac_optarg ;;
 
989
 
 
990
  --config-cache | -C)
 
991
    cache_file=config.cache ;;
 
992
 
 
993
  -datadir | --datadir | --datadi | --datad)
 
994
    ac_prev=datadir ;;
 
995
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
996
    datadir=$ac_optarg ;;
 
997
 
 
998
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
999
  | --dataroo | --dataro | --datar)
 
1000
    ac_prev=datarootdir ;;
 
1001
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1002
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1003
    datarootdir=$ac_optarg ;;
 
1004
 
 
1005
  -disable-* | --disable-*)
 
1006
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1007
    # Reject names that are not valid shell variable names.
 
1008
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1009
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1010
   { (exit 1); exit 1; }; }
 
1011
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1012
    eval enable_$ac_feature=no ;;
 
1013
 
 
1014
  -docdir | --docdir | --docdi | --doc | --do)
 
1015
    ac_prev=docdir ;;
 
1016
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1017
    docdir=$ac_optarg ;;
 
1018
 
 
1019
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1020
    ac_prev=dvidir ;;
 
1021
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1022
    dvidir=$ac_optarg ;;
 
1023
 
 
1024
  -enable-* | --enable-*)
 
1025
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1026
    # Reject names that are not valid shell variable names.
 
1027
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1028
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1029
   { (exit 1); exit 1; }; }
 
1030
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1031
    eval enable_$ac_feature=\$ac_optarg ;;
 
1032
 
 
1033
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1034
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1035
  | --exec | --exe | --ex)
 
1036
    ac_prev=exec_prefix ;;
 
1037
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1038
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1039
  | --exec=* | --exe=* | --ex=*)
 
1040
    exec_prefix=$ac_optarg ;;
 
1041
 
 
1042
  -gas | --gas | --ga | --g)
 
1043
    # Obsolete; use --with-gas.
 
1044
    with_gas=yes ;;
 
1045
 
 
1046
  -help | --help | --hel | --he | -h)
 
1047
    ac_init_help=long ;;
 
1048
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1049
    ac_init_help=recursive ;;
 
1050
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1051
    ac_init_help=short ;;
 
1052
 
 
1053
  -host | --host | --hos | --ho)
 
1054
    ac_prev=host_alias ;;
 
1055
  -host=* | --host=* | --hos=* | --ho=*)
 
1056
    host_alias=$ac_optarg ;;
 
1057
 
 
1058
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1059
    ac_prev=htmldir ;;
 
1060
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1061
  | --ht=*)
 
1062
    htmldir=$ac_optarg ;;
 
1063
 
 
1064
  -includedir | --includedir | --includedi | --included | --include \
 
1065
  | --includ | --inclu | --incl | --inc)
 
1066
    ac_prev=includedir ;;
 
1067
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1068
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1069
    includedir=$ac_optarg ;;
 
1070
 
 
1071
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1072
    ac_prev=infodir ;;
 
1073
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1074
    infodir=$ac_optarg ;;
 
1075
 
 
1076
  -libdir | --libdir | --libdi | --libd)
 
1077
    ac_prev=libdir ;;
 
1078
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1079
    libdir=$ac_optarg ;;
 
1080
 
 
1081
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1082
  | --libexe | --libex | --libe)
 
1083
    ac_prev=libexecdir ;;
 
1084
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1085
  | --libexe=* | --libex=* | --libe=*)
 
1086
    libexecdir=$ac_optarg ;;
 
1087
 
 
1088
  -localedir | --localedir | --localedi | --localed | --locale)
 
1089
    ac_prev=localedir ;;
 
1090
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1091
    localedir=$ac_optarg ;;
 
1092
 
 
1093
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1094
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1095
    ac_prev=localstatedir ;;
 
1096
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1097
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1098
    localstatedir=$ac_optarg ;;
 
1099
 
 
1100
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1101
    ac_prev=mandir ;;
 
1102
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1103
    mandir=$ac_optarg ;;
 
1104
 
 
1105
  -nfp | --nfp | --nf)
 
1106
    # Obsolete; use --without-fp.
 
1107
    with_fp=no ;;
 
1108
 
 
1109
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1110
  | --no-cr | --no-c | -n)
 
1111
    no_create=yes ;;
 
1112
 
 
1113
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1114
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1115
    no_recursion=yes ;;
 
1116
 
 
1117
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1118
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1119
  | --oldin | --oldi | --old | --ol | --o)
 
1120
    ac_prev=oldincludedir ;;
 
1121
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1122
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1123
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1124
    oldincludedir=$ac_optarg ;;
 
1125
 
 
1126
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1127
    ac_prev=prefix ;;
 
1128
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1129
    prefix=$ac_optarg ;;
 
1130
 
 
1131
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1132
  | --program-pre | --program-pr | --program-p)
 
1133
    ac_prev=program_prefix ;;
 
1134
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1135
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1136
    program_prefix=$ac_optarg ;;
 
1137
 
 
1138
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1139
  | --program-suf | --program-su | --program-s)
 
1140
    ac_prev=program_suffix ;;
 
1141
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1142
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1143
    program_suffix=$ac_optarg ;;
 
1144
 
 
1145
  -program-transform-name | --program-transform-name \
 
1146
  | --program-transform-nam | --program-transform-na \
 
1147
  | --program-transform-n | --program-transform- \
 
1148
  | --program-transform | --program-transfor \
 
1149
  | --program-transfo | --program-transf \
 
1150
  | --program-trans | --program-tran \
 
1151
  | --progr-tra | --program-tr | --program-t)
 
1152
    ac_prev=program_transform_name ;;
 
1153
  -program-transform-name=* | --program-transform-name=* \
 
1154
  | --program-transform-nam=* | --program-transform-na=* \
 
1155
  | --program-transform-n=* | --program-transform-=* \
 
1156
  | --program-transform=* | --program-transfor=* \
 
1157
  | --program-transfo=* | --program-transf=* \
 
1158
  | --program-trans=* | --program-tran=* \
 
1159
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1160
    program_transform_name=$ac_optarg ;;
 
1161
 
 
1162
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1163
    ac_prev=pdfdir ;;
 
1164
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1165
    pdfdir=$ac_optarg ;;
 
1166
 
 
1167
  -psdir | --psdir | --psdi | --psd | --ps)
 
1168
    ac_prev=psdir ;;
 
1169
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1170
    psdir=$ac_optarg ;;
 
1171
 
 
1172
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1173
  | -silent | --silent | --silen | --sile | --sil)
 
1174
    silent=yes ;;
 
1175
 
 
1176
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1177
    ac_prev=sbindir ;;
 
1178
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1179
  | --sbi=* | --sb=*)
 
1180
    sbindir=$ac_optarg ;;
 
1181
 
 
1182
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1183
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1184
  | --sharedst | --shareds | --shared | --share | --shar \
 
1185
  | --sha | --sh)
 
1186
    ac_prev=sharedstatedir ;;
 
1187
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1188
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1189
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1190
  | --sha=* | --sh=*)
 
1191
    sharedstatedir=$ac_optarg ;;
 
1192
 
 
1193
  -site | --site | --sit)
 
1194
    ac_prev=site ;;
 
1195
  -site=* | --site=* | --sit=*)
 
1196
    site=$ac_optarg ;;
 
1197
 
 
1198
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1199
    ac_prev=srcdir ;;
 
1200
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1201
    srcdir=$ac_optarg ;;
 
1202
 
 
1203
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1204
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1205
    ac_prev=sysconfdir ;;
 
1206
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1207
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1208
    sysconfdir=$ac_optarg ;;
 
1209
 
 
1210
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1211
    ac_prev=target_alias ;;
 
1212
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1213
    target_alias=$ac_optarg ;;
 
1214
 
 
1215
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1216
    verbose=yes ;;
 
1217
 
 
1218
  -version | --version | --versio | --versi | --vers | -V)
 
1219
    ac_init_version=: ;;
 
1220
 
 
1221
  -with-* | --with-*)
 
1222
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1223
    # Reject names that are not valid shell variable names.
 
1224
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1225
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1226
   { (exit 1); exit 1; }; }
 
1227
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1228
    eval with_$ac_package=\$ac_optarg ;;
 
1229
 
 
1230
  -without-* | --without-*)
 
1231
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1232
    # Reject names that are not valid shell variable names.
 
1233
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1234
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1235
   { (exit 1); exit 1; }; }
 
1236
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1237
    eval with_$ac_package=no ;;
 
1238
 
 
1239
  --x)
 
1240
    # Obsolete; use --with-x.
 
1241
    with_x=yes ;;
 
1242
 
 
1243
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1244
  | --x-incl | --x-inc | --x-in | --x-i)
 
1245
    ac_prev=x_includes ;;
 
1246
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1247
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1248
    x_includes=$ac_optarg ;;
 
1249
 
 
1250
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1251
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1252
    ac_prev=x_libraries ;;
 
1253
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1254
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1255
    x_libraries=$ac_optarg ;;
 
1256
 
 
1257
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1258
Try \`$0 --help' for more information." >&2
 
1259
   { (exit 1); exit 1; }; }
 
1260
    ;;
 
1261
 
 
1262
  *=*)
 
1263
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1264
    # Reject names that are not valid shell variable names.
 
1265
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1266
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1267
   { (exit 1); exit 1; }; }
 
1268
    eval $ac_envvar=\$ac_optarg
 
1269
    export $ac_envvar ;;
 
1270
 
 
1271
  *)
 
1272
    # FIXME: should be removed in autoconf 3.0.
 
1273
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1274
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1275
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1276
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1277
    ;;
 
1278
 
 
1279
  esac
 
1280
done
 
1281
 
 
1282
if test -n "$ac_prev"; then
 
1283
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1284
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1285
   { (exit 1); exit 1; }; }
 
1286
fi
 
1287
 
 
1288
# Be sure to have absolute directory names.
 
1289
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1290
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1291
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1292
                libdir localedir mandir
 
1293
do
 
1294
  eval ac_val=\$$ac_var
 
1295
  case $ac_val in
 
1296
    [\\/$]* | ?:[\\/]* )  continue;;
 
1297
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1298
  esac
 
1299
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1300
   { (exit 1); exit 1; }; }
 
1301
done
 
1302
 
 
1303
# There might be people who depend on the old broken behavior: `$host'
 
1304
# used to hold the argument of --host etc.
 
1305
# FIXME: To remove some day.
 
1306
build=$build_alias
 
1307
host=$host_alias
 
1308
target=$target_alias
 
1309
 
 
1310
# FIXME: To remove some day.
 
1311
if test "x$host_alias" != x; then
 
1312
  if test "x$build_alias" = x; then
 
1313
    cross_compiling=maybe
 
1314
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1315
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1316
  elif test "x$build_alias" != "x$host_alias"; then
 
1317
    cross_compiling=yes
 
1318
  fi
 
1319
fi
 
1320
 
 
1321
ac_tool_prefix=
 
1322
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1323
 
 
1324
test "$silent" = yes && exec 6>/dev/null
 
1325
 
 
1326
 
 
1327
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1328
ac_ls_di=`ls -di .` &&
 
1329
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1330
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1331
   { (exit 1); exit 1; }; }
 
1332
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1333
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1334
   { (exit 1); exit 1; }; }
 
1335
 
 
1336
 
 
1337
# Find the source files, if location was not specified.
 
1338
if test -z "$srcdir"; then
 
1339
  ac_srcdir_defaulted=yes
 
1340
  # Try the directory containing this script, then the parent directory.
 
1341
  ac_confdir=`$as_dirname -- "$0" ||
 
1342
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1343
         X"$0" : 'X\(//\)[^/]' \| \
 
1344
         X"$0" : 'X\(//\)$' \| \
 
1345
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1346
echo X"$0" |
 
1347
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1348
            s//\1/
 
1349
            q
 
1350
          }
 
1351
          /^X\(\/\/\)[^/].*/{
 
1352
            s//\1/
 
1353
            q
 
1354
          }
 
1355
          /^X\(\/\/\)$/{
 
1356
            s//\1/
 
1357
            q
 
1358
          }
 
1359
          /^X\(\/\).*/{
 
1360
            s//\1/
 
1361
            q
 
1362
          }
 
1363
          s/.*/./; q'`
 
1364
  srcdir=$ac_confdir
 
1365
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1366
    srcdir=..
 
1367
  fi
 
1368
else
 
1369
  ac_srcdir_defaulted=no
 
1370
fi
 
1371
if test ! -r "$srcdir/$ac_unique_file"; then
 
1372
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1373
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1374
   { (exit 1); exit 1; }; }
 
1375
fi
 
1376
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1377
ac_abs_confdir=`(
 
1378
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
        pwd)`
 
1381
# When building in place, set srcdir=.
 
1382
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1383
  srcdir=.
 
1384
fi
 
1385
# Remove unnecessary trailing slashes from srcdir.
 
1386
# Double slashes in file names in object file debugging info
 
1387
# mess up M-x gdb in Emacs.
 
1388
case $srcdir in
 
1389
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1390
esac
 
1391
for ac_var in $ac_precious_vars; do
 
1392
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1393
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1394
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1395
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1396
done
 
1397
 
 
1398
#
 
1399
# Report the --help message.
 
1400
#
 
1401
if test "$ac_init_help" = "long"; then
 
1402
  # Omit some internal or obsolete options to make the list less imposing.
 
1403
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1404
  cat <<_ACEOF
 
1405
\`configure' configures this package to adapt to many kinds of systems.
 
1406
 
 
1407
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1408
 
 
1409
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1410
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1411
 
 
1412
Defaults for the options are specified in brackets.
 
1413
 
 
1414
Configuration:
 
1415
  -h, --help              display this help and exit
 
1416
      --help=short        display options specific to this package
 
1417
      --help=recursive    display the short help of all the included packages
 
1418
  -V, --version           display version information and exit
 
1419
  -q, --quiet, --silent   do not print \`checking...' messages
 
1420
      --cache-file=FILE   cache test results in FILE [disabled]
 
1421
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1422
  -n, --no-create         do not create output files
 
1423
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1424
 
 
1425
Installation directories:
 
1426
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1427
                          [$ac_default_prefix]
 
1428
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1429
                          [PREFIX]
 
1430
 
 
1431
By default, \`make install' will install all the files in
 
1432
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1433
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1434
for instance \`--prefix=\$HOME'.
 
1435
 
 
1436
For better control, use the options below.
 
1437
 
 
1438
Fine tuning of the installation directories:
 
1439
  --bindir=DIR           user executables [EPREFIX/bin]
 
1440
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1441
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1442
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1443
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1444
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1445
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1446
  --includedir=DIR       C header files [PREFIX/include]
 
1447
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1448
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1449
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1450
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1451
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1452
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1453
  --docdir=DIR           documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
 
1454
  --htmldir=DIR          html documentation [DOCDIR]
 
1455
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1456
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1457
  --psdir=DIR            ps documentation [DOCDIR]
 
1458
_ACEOF
 
1459
 
 
1460
  cat <<\_ACEOF
 
1461
 
 
1462
Program names:
 
1463
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1464
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1465
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1466
 
 
1467
System types:
 
1468
  --build=BUILD     configure for building on BUILD [guessed]
 
1469
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1470
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1471
_ACEOF
 
1472
fi
 
1473
 
 
1474
if test -n "$ac_init_help"; then
 
1475
 
 
1476
  cat <<\_ACEOF
 
1477
 
 
1478
Optional Features:
 
1479
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1480
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1481
  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
 
1482
  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
 
1483
  --enable-fast-install@<:@=PKGS@:>@ 
 
1484
                          optimize for fast installation @<:@default=yes@:>@
 
1485
  --disable-dependency-tracking  speeds up one-time build
 
1486
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1487
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1488
  --disable-sdltest       Do not try to compile and run a test SDL program
 
1489
 
 
1490
Optional Packages:
 
1491
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1492
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1493
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1494
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1495
                          both@:>@
 
1496
  --with-tags@<:@=TAGS@:>@      include additional configurations @<:@automatic@:>@
 
1497
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
 
1498
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
 
1499
 
 
1500
Some influential environment variables:
 
1501
  CC          C compiler command
 
1502
  CFLAGS      C compiler flags
 
1503
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1504
              nonstandard directory <lib dir>
 
1505
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1506
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1507
              you have headers in a nonstandard directory <include dir>
 
1508
  CPP         C preprocessor
 
1509
  CXX         C++ compiler command
 
1510
  CXXFLAGS    C++ compiler flags
 
1511
  CXXCPP      C++ preprocessor
 
1512
  F77         Fortran 77 compiler command
 
1513
  FFLAGS      Fortran 77 compiler flags
 
1514
 
 
1515
Use these variables to override the choices made by `configure' or to help
 
1516
it to find libraries and programs with nonstandard names/locations.
 
1517
 
 
1518
_ACEOF
 
1519
ac_status=$?
 
1520
fi
 
1521
 
 
1522
if test "$ac_init_help" = "recursive"; then
 
1523
  # If there are subdirs, report their specific --help.
 
1524
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1525
    test -d "$ac_dir" || continue
 
1526
    ac_builddir=.
 
1527
 
 
1528
case "$ac_dir" in
 
1529
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1530
*)
 
1531
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1532
  # A ".." for each directory in $ac_dir_suffix.
 
1533
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1534
  case $ac_top_builddir_sub in
 
1535
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1536
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1537
  esac ;;
 
1538
esac
 
1539
ac_abs_top_builddir=$ac_pwd
 
1540
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1541
# for backward compatibility:
 
1542
ac_top_builddir=$ac_top_build_prefix
 
1543
 
 
1544
case $srcdir in
 
1545
  .)  # We are building in place.
 
1546
    ac_srcdir=.
 
1547
    ac_top_srcdir=$ac_top_builddir_sub
 
1548
    ac_abs_top_srcdir=$ac_pwd ;;
 
1549
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1550
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1551
    ac_top_srcdir=$srcdir
 
1552
    ac_abs_top_srcdir=$srcdir ;;
 
1553
  *) # Relative name.
 
1554
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1555
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1556
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1557
esac
 
1558
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1559
 
 
1560
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1561
    # Check for guested configure.
 
1562
    if test -f "$ac_srcdir/configure.gnu"; then
 
1563
      echo &&
 
1564
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1565
    elif test -f "$ac_srcdir/configure"; then
 
1566
      echo &&
 
1567
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1568
    else
 
1569
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1570
    fi || ac_status=$?
 
1571
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1572
  done
 
1573
fi
 
1574
 
 
1575
test -n "$ac_init_help" && exit $ac_status
 
1576
if $ac_init_version; then
 
1577
  cat <<\_ACEOF
 
1578
configure
 
1579
generated by GNU Autoconf 2.61
 
1580
 
 
1581
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1582
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1583
This configure script is free software; the Free Software Foundation
 
1584
gives unlimited permission to copy, distribute and modify it.
 
1585
_ACEOF
 
1586
  exit
 
1587
fi
 
1588
cat >config.log <<_ACEOF
 
1589
This file contains any messages produced by compilers while
 
1590
running configure, to aid debugging if configure makes a mistake.
 
1591
 
 
1592
It was created by $as_me, which was
 
1593
generated by GNU Autoconf 2.61.  Invocation command line was
 
1594
 
 
1595
  $ $0 $@
 
1596
 
 
1597
_ACEOF
 
1598
exec 5>>config.log
 
1599
{
 
1600
cat <<_ASUNAME
 
1601
@%:@@%:@ --------- @%:@@%:@
 
1602
@%:@@%:@ Platform. @%:@@%:@
 
1603
@%:@@%:@ --------- @%:@@%:@
 
1604
 
 
1605
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1606
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1607
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1608
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1609
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1610
 
 
1611
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1612
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1613
 
 
1614
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1615
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1616
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1617
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1618
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1619
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1620
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1621
 
 
1622
_ASUNAME
 
1623
 
 
1624
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1625
for as_dir in $PATH
 
1626
do
 
1627
  IFS=$as_save_IFS
 
1628
  test -z "$as_dir" && as_dir=.
 
1629
  echo "PATH: $as_dir"
 
1630
done
 
1631
IFS=$as_save_IFS
 
1632
 
 
1633
} >&5
 
1634
 
 
1635
cat >&5 <<_ACEOF
 
1636
 
 
1637
 
 
1638
@%:@@%:@ ----------- @%:@@%:@
 
1639
@%:@@%:@ Core tests. @%:@@%:@
 
1640
@%:@@%:@ ----------- @%:@@%:@
 
1641
 
 
1642
_ACEOF
 
1643
 
 
1644
 
 
1645
# Keep a trace of the command line.
 
1646
# Strip out --no-create and --no-recursion so they do not pile up.
 
1647
# Strip out --silent because we don't want to record it for future runs.
 
1648
# Also quote any args containing shell meta-characters.
 
1649
# Make two passes to allow for proper duplicate-argument suppression.
 
1650
ac_configure_args=
 
1651
ac_configure_args0=
 
1652
ac_configure_args1=
 
1653
ac_must_keep_next=false
 
1654
for ac_pass in 1 2
 
1655
do
 
1656
  for ac_arg
 
1657
  do
 
1658
    case $ac_arg in
 
1659
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1660
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1661
    | -silent | --silent | --silen | --sile | --sil)
 
1662
      continue ;;
 
1663
    *\'*)
 
1664
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1665
    esac
 
1666
    case $ac_pass in
 
1667
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1668
    2)
 
1669
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1670
      if test $ac_must_keep_next = true; then
 
1671
        ac_must_keep_next=false # Got value, back to normal.
 
1672
      else
 
1673
        case $ac_arg in
 
1674
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1675
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1676
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1677
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1678
            case "$ac_configure_args0 " in
 
1679
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1680
            esac
 
1681
            ;;
 
1682
          -* ) ac_must_keep_next=true ;;
 
1683
        esac
 
1684
      fi
 
1685
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1686
      ;;
 
1687
    esac
 
1688
  done
 
1689
done
 
1690
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1691
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1692
 
 
1693
# When interrupted or exit'd, cleanup temporary files, and complete
 
1694
# config.log.  We remove comments because anyway the quotes in there
 
1695
# would cause problems or look ugly.
 
1696
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1697
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1698
trap 'exit_status=$?
 
1699
  # Save into config.log some information that might help in debugging.
 
1700
  {
 
1701
    echo
 
1702
 
 
1703
    cat <<\_ASBOX
 
1704
@%:@@%:@ ---------------- @%:@@%:@
 
1705
@%:@@%:@ Cache variables. @%:@@%:@
 
1706
@%:@@%:@ ---------------- @%:@@%:@
 
1707
_ASBOX
 
1708
    echo
 
1709
    # The following way of writing the cache mishandles newlines in values,
 
1710
(
 
1711
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1712
    eval ac_val=\$$ac_var
 
1713
    case $ac_val in #(
 
1714
    *${as_nl}*)
 
1715
      case $ac_var in #(
 
1716
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1717
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1718
      esac
 
1719
      case $ac_var in #(
 
1720
      _ | IFS | as_nl) ;; #(
 
1721
      *) $as_unset $ac_var ;;
 
1722
      esac ;;
 
1723
    esac
 
1724
  done
 
1725
  (set) 2>&1 |
 
1726
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1727
    *${as_nl}ac_space=\ *)
 
1728
      sed -n \
 
1729
        "s/'\''/'\''\\\\'\'''\''/g;
 
1730
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1731
      ;; #(
 
1732
    *)
 
1733
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1734
      ;;
 
1735
    esac |
 
1736
    sort
 
1737
)
 
1738
    echo
 
1739
 
 
1740
    cat <<\_ASBOX
 
1741
@%:@@%:@ ----------------- @%:@@%:@
 
1742
@%:@@%:@ Output variables. @%:@@%:@
 
1743
@%:@@%:@ ----------------- @%:@@%:@
 
1744
_ASBOX
 
1745
    echo
 
1746
    for ac_var in $ac_subst_vars
 
1747
    do
 
1748
      eval ac_val=\$$ac_var
 
1749
      case $ac_val in
 
1750
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1751
      esac
 
1752
      echo "$ac_var='\''$ac_val'\''"
 
1753
    done | sort
 
1754
    echo
 
1755
 
 
1756
    if test -n "$ac_subst_files"; then
 
1757
      cat <<\_ASBOX
 
1758
@%:@@%:@ ------------------- @%:@@%:@
 
1759
@%:@@%:@ File substitutions. @%:@@%:@
 
1760
@%:@@%:@ ------------------- @%:@@%:@
 
1761
_ASBOX
 
1762
      echo
 
1763
      for ac_var in $ac_subst_files
 
1764
      do
 
1765
        eval ac_val=\$$ac_var
 
1766
        case $ac_val in
 
1767
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1768
        esac
 
1769
        echo "$ac_var='\''$ac_val'\''"
 
1770
      done | sort
 
1771
      echo
 
1772
    fi
 
1773
 
 
1774
    if test -s confdefs.h; then
 
1775
      cat <<\_ASBOX
 
1776
@%:@@%:@ ----------- @%:@@%:@
 
1777
@%:@@%:@ confdefs.h. @%:@@%:@
 
1778
@%:@@%:@ ----------- @%:@@%:@
 
1779
_ASBOX
 
1780
      echo
 
1781
      cat confdefs.h
 
1782
      echo
 
1783
    fi
 
1784
    test "$ac_signal" != 0 &&
 
1785
      echo "$as_me: caught signal $ac_signal"
 
1786
    echo "$as_me: exit $exit_status"
 
1787
  } >&5
 
1788
  rm -f core *.core core.conftest.* &&
 
1789
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1790
    exit $exit_status
 
1791
' 0
 
1792
for ac_signal in 1 2 13 15; do
 
1793
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1794
done
 
1795
ac_signal=0
 
1796
 
 
1797
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1798
rm -f -r conftest* confdefs.h
 
1799
 
 
1800
# Predefined preprocessor variables.
 
1801
 
 
1802
cat >>confdefs.h <<_ACEOF
 
1803
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
1804
_ACEOF
 
1805
 
 
1806
 
 
1807
cat >>confdefs.h <<_ACEOF
 
1808
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1809
_ACEOF
 
1810
 
 
1811
 
 
1812
cat >>confdefs.h <<_ACEOF
 
1813
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1814
_ACEOF
 
1815
 
 
1816
 
 
1817
cat >>confdefs.h <<_ACEOF
 
1818
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
1819
_ACEOF
 
1820
 
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1824
_ACEOF
 
1825
 
 
1826
 
 
1827
# Let the site file select an alternate cache file if it wants to.
 
1828
# Prefer explicitly selected file to automatically selected ones.
 
1829
if test -n "$CONFIG_SITE"; then
 
1830
  set x "$CONFIG_SITE"
 
1831
elif test "x$prefix" != xNONE; then
 
1832
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1833
else
 
1834
  set x "$ac_default_prefix/share/config.site" \
 
1835
        "$ac_default_prefix/etc/config.site"
 
1836
fi
 
1837
shift
 
1838
for ac_site_file
 
1839
do
 
1840
  if test -r "$ac_site_file"; then
 
1841
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1842
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1843
    sed 's/^/| /' "$ac_site_file" >&5
 
1844
    . "$ac_site_file"
 
1845
  fi
 
1846
done
 
1847
 
 
1848
if test -r "$cache_file"; then
 
1849
  # Some versions of bash will fail to source /dev/null (special
 
1850
  # files actually), so we avoid doing that.
 
1851
  if test -f "$cache_file"; then
 
1852
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1853
echo "$as_me: loading cache $cache_file" >&6;}
 
1854
    case $cache_file in
 
1855
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1856
      *)                      . "./$cache_file";;
 
1857
    esac
 
1858
  fi
 
1859
else
 
1860
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1861
echo "$as_me: creating cache $cache_file" >&6;}
 
1862
  >$cache_file
 
1863
fi
 
1864
 
 
1865
# Check that the precious variables saved in the cache have kept the same
 
1866
# value.
 
1867
ac_cache_corrupted=false
 
1868
for ac_var in $ac_precious_vars; do
 
1869
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1870
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1871
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1872
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1873
  case $ac_old_set,$ac_new_set in
 
1874
    set,)
 
1875
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1876
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1877
      ac_cache_corrupted=: ;;
 
1878
    ,set)
 
1879
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1880
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1881
      ac_cache_corrupted=: ;;
 
1882
    ,);;
 
1883
    *)
 
1884
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1885
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1886
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1887
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1888
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1889
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1890
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1891
        ac_cache_corrupted=:
 
1892
      fi;;
 
1893
  esac
 
1894
  # Pass precious variables to config.status.
 
1895
  if test "$ac_new_set" = set; then
 
1896
    case $ac_new_val in
 
1897
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1898
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1899
    esac
 
1900
    case " $ac_configure_args " in
 
1901
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1902
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1903
    esac
 
1904
  fi
 
1905
done
 
1906
if $ac_cache_corrupted; then
 
1907
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1908
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1909
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1910
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1911
   { (exit 1); exit 1; }; }
 
1912
fi
 
1913
 
 
1914
 
 
1915
 
 
1916
 
 
1917
 
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
 
 
1924
 
 
1925
 
 
1926
 
 
1927
 
 
1928
 
 
1929
 
 
1930
ac_ext=c
 
1931
ac_cpp='$CPP $CPPFLAGS'
 
1932
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1933
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1934
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
ac_aux_dir=
 
1940
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1941
  if test -f "$ac_dir/install-sh"; then
 
1942
    ac_aux_dir=$ac_dir
 
1943
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1944
    break
 
1945
  elif test -f "$ac_dir/install.sh"; then
 
1946
    ac_aux_dir=$ac_dir
 
1947
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1948
    break
 
1949
  elif test -f "$ac_dir/shtool"; then
 
1950
    ac_aux_dir=$ac_dir
 
1951
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1952
    break
 
1953
  fi
 
1954
done
 
1955
if test -z "$ac_aux_dir"; then
 
1956
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1957
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1958
   { (exit 1); exit 1; }; }
 
1959
fi
 
1960
 
 
1961
# These three variables are undocumented and unsupported,
 
1962
# and are intended to be withdrawn in a future Autoconf release.
 
1963
# They can cause serious problems if a builder's source tree is in a directory
 
1964
# whose full name contains unusual characters.
 
1965
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1966
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1967
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1968
 
 
1969
 
 
1970
# Make sure we can run config.sub.
 
1971
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1972
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1973
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1974
   { (exit 1); exit 1; }; }
 
1975
 
 
1976
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1977
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1978
if test "${ac_cv_build+set}" = set; then
 
1979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1980
else
 
1981
  ac_build_alias=$build_alias
 
1982
test "x$ac_build_alias" = x &&
 
1983
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
1984
test "x$ac_build_alias" = x &&
 
1985
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
1986
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
1987
   { (exit 1); exit 1; }; }
 
1988
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
1989
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
1990
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
1991
   { (exit 1); exit 1; }; }
 
1992
 
 
1993
fi
 
1994
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1995
echo "${ECHO_T}$ac_cv_build" >&6; }
 
1996
case $ac_cv_build in
 
1997
*-*-*) ;;
 
1998
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
1999
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2000
   { (exit 1); exit 1; }; };;
 
2001
esac
 
2002
build=$ac_cv_build
 
2003
ac_save_IFS=$IFS; IFS='-'
 
2004
set x $ac_cv_build
 
2005
shift
 
2006
build_cpu=$1
 
2007
build_vendor=$2
 
2008
shift; shift
 
2009
# Remember, the first character of IFS is used to create $*,
 
2010
# except with old shells:
 
2011
build_os=$*
 
2012
IFS=$ac_save_IFS
 
2013
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2014
 
 
2015
 
 
2016
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2017
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2018
if test "${ac_cv_host+set}" = set; then
 
2019
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2020
else
 
2021
  if test "x$host_alias" = x; then
 
2022
  ac_cv_host=$ac_cv_build
 
2023
else
 
2024
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2025
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2026
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2027
   { (exit 1); exit 1; }; }
 
2028
fi
 
2029
 
 
2030
fi
 
2031
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2032
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2033
case $ac_cv_host in
 
2034
*-*-*) ;;
 
2035
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2036
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2037
   { (exit 1); exit 1; }; };;
 
2038
esac
 
2039
host=$ac_cv_host
 
2040
ac_save_IFS=$IFS; IFS='-'
 
2041
set x $ac_cv_host
 
2042
shift
 
2043
host_cpu=$1
 
2044
host_vendor=$2
 
2045
shift; shift
 
2046
# Remember, the first character of IFS is used to create $*,
 
2047
# except with old shells:
 
2048
host_os=$*
 
2049
IFS=$ac_save_IFS
 
2050
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2051
 
 
2052
 
 
2053
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2054
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2055
if test "${ac_cv_target+set}" = set; then
 
2056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2057
else
 
2058
  if test "x$target_alias" = x; then
 
2059
  ac_cv_target=$ac_cv_host
 
2060
else
 
2061
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2062
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2063
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2064
   { (exit 1); exit 1; }; }
 
2065
fi
 
2066
 
 
2067
fi
 
2068
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2069
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2070
case $ac_cv_target in
 
2071
*-*-*) ;;
 
2072
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2073
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2074
   { (exit 1); exit 1; }; };;
 
2075
esac
 
2076
target=$ac_cv_target
 
2077
ac_save_IFS=$IFS; IFS='-'
 
2078
set x $ac_cv_target
 
2079
shift
 
2080
target_cpu=$1
 
2081
target_vendor=$2
 
2082
shift; shift
 
2083
# Remember, the first character of IFS is used to create $*,
 
2084
# except with old shells:
 
2085
target_os=$*
 
2086
IFS=$ac_save_IFS
 
2087
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2088
 
 
2089
 
 
2090
# The aliases save the names the user supplied, while $host etc.
 
2091
# will get canonicalized.
 
2092
test -n "$target_alias" &&
 
2093
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2094
    NONENONEs,x,x, &&
 
2095
  program_prefix=${target_alias}-
 
2096
 
 
2097
am__api_version='1.10'
 
2098
 
 
2099
# Find a good install program.  We prefer a C program (faster),
 
2100
# so one script is as good as another.  But avoid the broken or
 
2101
# incompatible versions:
 
2102
# SysV /etc/install, /usr/sbin/install
 
2103
# SunOS /usr/etc/install
 
2104
# IRIX /sbin/install
 
2105
# AIX /bin/install
 
2106
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2107
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2108
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2109
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2110
# OS/2's system install, which has a completely different semantic
 
2111
# ./install, which can be erroneously created by make from ./install.sh.
 
2112
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2113
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2114
if test -z "$INSTALL"; then
 
2115
if test "${ac_cv_path_install+set}" = set; then
 
2116
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2117
else
 
2118
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2119
for as_dir in $PATH
 
2120
do
 
2121
  IFS=$as_save_IFS
 
2122
  test -z "$as_dir" && as_dir=.
 
2123
  # Account for people who put trailing slashes in PATH elements.
 
2124
case $as_dir/ in
 
2125
  ./ | .// | /cC/* | \
 
2126
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2127
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2128
  /usr/ucb/* ) ;;
 
2129
  *)
 
2130
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2131
    # Don't use installbsd from OSF since it installs stuff as root
 
2132
    # by default.
 
2133
    for ac_prog in ginstall scoinst install; do
 
2134
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2135
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2136
          if test $ac_prog = install &&
 
2137
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2138
            # AIX install.  It has an incompatible calling convention.
 
2139
            :
 
2140
          elif test $ac_prog = install &&
 
2141
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2142
            # program-specific install script used by HP pwplus--don't use.
 
2143
            :
 
2144
          else
 
2145
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2146
            break 3
 
2147
          fi
 
2148
        fi
 
2149
      done
 
2150
    done
 
2151
    ;;
 
2152
esac
 
2153
done
 
2154
IFS=$as_save_IFS
 
2155
 
 
2156
 
 
2157
fi
 
2158
  if test "${ac_cv_path_install+set}" = set; then
 
2159
    INSTALL=$ac_cv_path_install
 
2160
  else
 
2161
    # As a last resort, use the slow shell script.  Don't cache a
 
2162
    # value for INSTALL within a source directory, because that will
 
2163
    # break other packages using the cache if that directory is
 
2164
    # removed, or if the value is a relative name.
 
2165
    INSTALL=$ac_install_sh
 
2166
  fi
 
2167
fi
 
2168
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2169
echo "${ECHO_T}$INSTALL" >&6; }
 
2170
 
 
2171
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2172
# It thinks the first close brace ends the variable substitution.
 
2173
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2174
 
 
2175
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2176
 
 
2177
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2178
 
 
2179
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2180
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2181
# Just in case
 
2182
sleep 1
 
2183
echo timestamp > conftest.file
 
2184
# Do `set' in a subshell so we don't clobber the current shell's
 
2185
# arguments.  Must try -L first in case configure is actually a
 
2186
# symlink; some systems play weird games with the mod time of symlinks
 
2187
# (eg FreeBSD returns the mod time of the symlink's containing
 
2188
# directory).
 
2189
if (
 
2190
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2191
   if test "$*" = "X"; then
 
2192
      # -L didn't work.
 
2193
      set X `ls -t $srcdir/configure conftest.file`
 
2194
   fi
 
2195
   rm -f conftest.file
 
2196
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2197
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2198
 
 
2199
      # If neither matched, then we have a broken ls.  This can happen
 
2200
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2201
      # broken ls alias from the environment.  This has actually
 
2202
      # happened.  Such a system could not be considered "sane".
 
2203
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2204
alias in your environment" >&5
 
2205
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2206
alias in your environment" >&2;}
 
2207
   { (exit 1); exit 1; }; }
 
2208
   fi
 
2209
 
 
2210
   test "$2" = conftest.file
 
2211
   )
 
2212
then
 
2213
   # Ok.
 
2214
   :
 
2215
else
 
2216
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2217
Check your system clock" >&5
 
2218
echo "$as_me: error: newly created file is older than distributed files!
 
2219
Check your system clock" >&2;}
 
2220
   { (exit 1); exit 1; }; }
 
2221
fi
 
2222
{ echo "$as_me:$LINENO: result: yes" >&5
 
2223
echo "${ECHO_T}yes" >&6; }
 
2224
test "$program_prefix" != NONE &&
 
2225
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2226
# Use a double $ so make ignores it.
 
2227
test "$program_suffix" != NONE &&
 
2228
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2229
# Double any \ or $.  echo might interpret backslashes.
 
2230
# By default was `s,x,x', remove it if useless.
 
2231
cat <<\_ACEOF >conftest.sed
 
2232
s/[\\$]/&&/g;s/;s,x,x,$//
 
2233
_ACEOF
 
2234
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2235
rm -f conftest.sed
 
2236
 
 
2237
# expand $ac_aux_dir to an absolute path
 
2238
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2239
 
 
2240
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2241
# Use eval to expand $SHELL
 
2242
if eval "$MISSING --run true"; then
 
2243
  am_missing_run="$MISSING --run "
 
2244
else
 
2245
  am_missing_run=
 
2246
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2247
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2248
fi
 
2249
 
 
2250
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2251
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2252
if test -z "$MKDIR_P"; then
 
2253
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2255
else
 
2256
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2257
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2258
do
 
2259
  IFS=$as_save_IFS
 
2260
  test -z "$as_dir" && as_dir=.
 
2261
  for ac_prog in mkdir gmkdir; do
 
2262
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2263
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2264
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2265
             'mkdir (GNU coreutils) '* | \
 
2266
             'mkdir (coreutils) '* | \
 
2267
             'mkdir (fileutils) '4.1*)
 
2268
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2269
               break 3;;
 
2270
           esac
 
2271
         done
 
2272
       done
 
2273
done
 
2274
IFS=$as_save_IFS
 
2275
 
 
2276
fi
 
2277
 
 
2278
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2279
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2280
  else
 
2281
    # As a last resort, use the slow shell script.  Don't cache a
 
2282
    # value for MKDIR_P within a source directory, because that will
 
2283
    # break other packages using the cache if that directory is
 
2284
    # removed, or if the value is a relative name.
 
2285
    test -d ./--version && rmdir ./--version
 
2286
    MKDIR_P="$ac_install_sh -d"
 
2287
  fi
 
2288
fi
 
2289
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2290
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2291
 
 
2292
mkdir_p="$MKDIR_P"
 
2293
case $mkdir_p in
 
2294
  [\\/$]* | ?:[\\/]*) ;;
 
2295
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2296
esac
 
2297
 
 
2298
for ac_prog in gawk mawk nawk awk
 
2299
do
 
2300
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2301
set dummy $ac_prog; ac_word=$2
 
2302
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2303
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2304
if test "${ac_cv_prog_AWK+set}" = set; then
 
2305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2306
else
 
2307
  if test -n "$AWK"; then
 
2308
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2309
else
 
2310
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2311
for as_dir in $PATH
 
2312
do
 
2313
  IFS=$as_save_IFS
 
2314
  test -z "$as_dir" && as_dir=.
 
2315
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2316
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2317
    ac_cv_prog_AWK="$ac_prog"
 
2318
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2319
    break 2
 
2320
  fi
 
2321
done
 
2322
done
 
2323
IFS=$as_save_IFS
 
2324
 
 
2325
fi
 
2326
fi
 
2327
AWK=$ac_cv_prog_AWK
 
2328
if test -n "$AWK"; then
 
2329
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2330
echo "${ECHO_T}$AWK" >&6; }
 
2331
else
 
2332
  { echo "$as_me:$LINENO: result: no" >&5
 
2333
echo "${ECHO_T}no" >&6; }
 
2334
fi
 
2335
 
 
2336
 
 
2337
  test -n "$AWK" && break
 
2338
done
 
2339
 
 
2340
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2341
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2342
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2343
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2345
else
 
2346
  cat >conftest.make <<\_ACEOF
 
2347
SHELL = /bin/sh
 
2348
all:
 
2349
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2350
_ACEOF
 
2351
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2352
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2353
  *@@@%%%=?*=@@@%%%*)
 
2354
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2355
  *)
 
2356
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2357
esac
 
2358
rm -f conftest.make
 
2359
fi
 
2360
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2361
  { echo "$as_me:$LINENO: result: yes" >&5
 
2362
echo "${ECHO_T}yes" >&6; }
 
2363
  SET_MAKE=
 
2364
else
 
2365
  { echo "$as_me:$LINENO: result: no" >&5
 
2366
echo "${ECHO_T}no" >&6; }
 
2367
  SET_MAKE="MAKE=${MAKE-make}"
 
2368
fi
 
2369
 
 
2370
rm -rf .tst 2>/dev/null
 
2371
mkdir .tst 2>/dev/null
 
2372
if test -d .tst; then
 
2373
  am__leading_dot=.
 
2374
else
 
2375
  am__leading_dot=_
 
2376
fi
 
2377
rmdir .tst 2>/dev/null
 
2378
 
 
2379
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2380
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2381
  # is not polluted with repeated "-I."
 
2382
  am__isrc=' -I$(srcdir)'
 
2383
  # test to see if srcdir already configured
 
2384
  if test -f $srcdir/config.status; then
 
2385
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2386
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2387
   { (exit 1); exit 1; }; }
 
2388
  fi
 
2389
fi
 
2390
 
 
2391
# test whether we have cygpath
 
2392
if test -z "$CYGPATH_W"; then
 
2393
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2394
    CYGPATH_W='cygpath -w'
 
2395
  else
 
2396
    CYGPATH_W=echo
 
2397
  fi
 
2398
fi
 
2399
 
 
2400
 
 
2401
# Define the identity of the package.
 
2402
 PACKAGE=TestGfxPrimitives
 
2403
 VERSION=1.0
 
2404
 
 
2405
 
 
2406
cat >>confdefs.h <<_ACEOF
 
2407
@%:@define PACKAGE "$PACKAGE"
 
2408
_ACEOF
 
2409
 
 
2410
 
 
2411
cat >>confdefs.h <<_ACEOF
 
2412
@%:@define VERSION "$VERSION"
 
2413
_ACEOF
 
2414
 
 
2415
# Some tools Automake needs.
 
2416
 
 
2417
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2418
 
 
2419
 
 
2420
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2421
 
 
2422
 
 
2423
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2424
 
 
2425
 
 
2426
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2427
 
 
2428
 
 
2429
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2430
 
 
2431
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2432
 
 
2433
# Installed binaries are usually stripped using `strip' when the user
 
2434
# run `make install-strip'.  However `strip' might not be the right
 
2435
# tool to use in cross-compilation environments, therefore Automake
 
2436
# will honor the `STRIP' environment variable to overrule this program.
 
2437
if test "$cross_compiling" != no; then
 
2438
  if test -n "$ac_tool_prefix"; then
 
2439
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2440
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2441
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2442
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2443
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2445
else
 
2446
  if test -n "$STRIP"; then
 
2447
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2448
else
 
2449
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2450
for as_dir in $PATH
 
2451
do
 
2452
  IFS=$as_save_IFS
 
2453
  test -z "$as_dir" && as_dir=.
 
2454
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2455
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2456
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2457
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2458
    break 2
 
2459
  fi
 
2460
done
 
2461
done
 
2462
IFS=$as_save_IFS
 
2463
 
 
2464
fi
 
2465
fi
 
2466
STRIP=$ac_cv_prog_STRIP
 
2467
if test -n "$STRIP"; then
 
2468
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2469
echo "${ECHO_T}$STRIP" >&6; }
 
2470
else
 
2471
  { echo "$as_me:$LINENO: result: no" >&5
 
2472
echo "${ECHO_T}no" >&6; }
 
2473
fi
 
2474
 
 
2475
 
 
2476
fi
 
2477
if test -z "$ac_cv_prog_STRIP"; then
 
2478
  ac_ct_STRIP=$STRIP
 
2479
  # Extract the first word of "strip", so it can be a program name with args.
 
2480
set dummy strip; ac_word=$2
 
2481
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2482
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2483
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2485
else
 
2486
  if test -n "$ac_ct_STRIP"; then
 
2487
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2488
else
 
2489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2490
for as_dir in $PATH
 
2491
do
 
2492
  IFS=$as_save_IFS
 
2493
  test -z "$as_dir" && as_dir=.
 
2494
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2495
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2496
    ac_cv_prog_ac_ct_STRIP="strip"
 
2497
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2498
    break 2
 
2499
  fi
 
2500
done
 
2501
done
 
2502
IFS=$as_save_IFS
 
2503
 
 
2504
fi
 
2505
fi
 
2506
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2507
if test -n "$ac_ct_STRIP"; then
 
2508
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2509
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2510
else
 
2511
  { echo "$as_me:$LINENO: result: no" >&5
 
2512
echo "${ECHO_T}no" >&6; }
 
2513
fi
 
2514
 
 
2515
  if test "x$ac_ct_STRIP" = x; then
 
2516
    STRIP=":"
 
2517
  else
 
2518
    case $cross_compiling:$ac_tool_warned in
 
2519
yes:)
 
2520
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2521
whose name does not start with the host triplet.  If you think this
 
2522
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2523
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2524
whose name does not start with the host triplet.  If you think this
 
2525
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2526
ac_tool_warned=yes ;;
 
2527
esac
 
2528
    STRIP=$ac_ct_STRIP
 
2529
  fi
 
2530
else
 
2531
  STRIP="$ac_cv_prog_STRIP"
 
2532
fi
 
2533
 
 
2534
fi
 
2535
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2536
 
 
2537
# We need awk for the "check" target.  The system "awk" is bad on
 
2538
# some platforms.
 
2539
# Always define AMTAR for backward compatibility.
 
2540
 
 
2541
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2542
 
 
2543
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2544
 
 
2545
 
 
2546
 
 
2547
 
 
2548
 
 
2549
 
 
2550
SDL_VERSION=1.2.0
 
2551
 
 
2552
 
 
2553
 
 
2554
# Check whether --enable-shared was given.
 
2555
if test "${enable_shared+set}" = set; then
 
2556
  enableval=$enable_shared; p=${PACKAGE-default}
 
2557
    case $enableval in
 
2558
    yes) enable_shared=yes ;;
 
2559
    no) enable_shared=no ;;
 
2560
    *)
 
2561
      enable_shared=no
 
2562
      # Look at the argument we got.  We use all the common list separators.
 
2563
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2564
      for pkg in $enableval; do
 
2565
        IFS="$lt_save_ifs"
 
2566
        if test "X$pkg" = "X$p"; then
 
2567
          enable_shared=yes
 
2568
        fi
 
2569
      done
 
2570
      IFS="$lt_save_ifs"
 
2571
      ;;
 
2572
    esac
 
2573
else
 
2574
  enable_shared=yes
 
2575
fi
 
2576
 
 
2577
 
 
2578
# Check whether --enable-static was given.
 
2579
if test "${enable_static+set}" = set; then
 
2580
  enableval=$enable_static; p=${PACKAGE-default}
 
2581
    case $enableval in
 
2582
    yes) enable_static=yes ;;
 
2583
    no) enable_static=no ;;
 
2584
    *)
 
2585
     enable_static=no
 
2586
      # Look at the argument we got.  We use all the common list separators.
 
2587
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2588
      for pkg in $enableval; do
 
2589
        IFS="$lt_save_ifs"
 
2590
        if test "X$pkg" = "X$p"; then
 
2591
          enable_static=yes
 
2592
        fi
 
2593
      done
 
2594
      IFS="$lt_save_ifs"
 
2595
      ;;
 
2596
    esac
 
2597
else
 
2598
  enable_static=yes
 
2599
fi
 
2600
 
 
2601
 
 
2602
# Check whether --enable-fast-install was given.
 
2603
if test "${enable_fast_install+set}" = set; then
 
2604
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2605
    case $enableval in
 
2606
    yes) enable_fast_install=yes ;;
 
2607
    no) enable_fast_install=no ;;
 
2608
    *)
 
2609
      enable_fast_install=no
 
2610
      # Look at the argument we got.  We use all the common list separators.
 
2611
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2612
      for pkg in $enableval; do
 
2613
        IFS="$lt_save_ifs"
 
2614
        if test "X$pkg" = "X$p"; then
 
2615
          enable_fast_install=yes
 
2616
        fi
 
2617
      done
 
2618
      IFS="$lt_save_ifs"
 
2619
      ;;
 
2620
    esac
 
2621
else
 
2622
  enable_fast_install=yes
 
2623
fi
 
2624
 
 
2625
 
 
2626
DEPDIR="${am__leading_dot}deps"
 
2627
 
 
2628
ac_config_commands="$ac_config_commands depfiles"
 
2629
 
 
2630
 
 
2631
am_make=${MAKE-make}
 
2632
cat > confinc << 'END'
 
2633
am__doit:
 
2634
        @echo done
 
2635
.PHONY: am__doit
 
2636
END
 
2637
# If we don't find an include directive, just comment out the code.
 
2638
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2639
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2640
am__include="#"
 
2641
am__quote=
 
2642
_am_result=none
 
2643
# First try GNU make style include.
 
2644
echo "include confinc" > confmf
 
2645
# We grep out `Entering directory' and `Leaving directory'
 
2646
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2647
# In particular we don't look at `^make:' because GNU make might
 
2648
# be invoked under some other name (usually "gmake"), in which
 
2649
# case it prints its new name instead of `make'.
 
2650
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2651
   am__include=include
 
2652
   am__quote=
 
2653
   _am_result=GNU
 
2654
fi
 
2655
# Now try BSD make style include.
 
2656
if test "$am__include" = "#"; then
 
2657
   echo '.include "confinc"' > confmf
 
2658
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2659
      am__include=.include
 
2660
      am__quote="\""
 
2661
      _am_result=BSD
 
2662
   fi
 
2663
fi
 
2664
 
 
2665
 
 
2666
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2667
echo "${ECHO_T}$_am_result" >&6; }
 
2668
rm -f confinc confmf
 
2669
 
 
2670
# Check whether --enable-dependency-tracking was given.
 
2671
if test "${enable_dependency_tracking+set}" = set; then
 
2672
  enableval=$enable_dependency_tracking; 
 
2673
fi
 
2674
 
 
2675
if test "x$enable_dependency_tracking" != xno; then
 
2676
  am_depcomp="$ac_aux_dir/depcomp"
 
2677
  AMDEPBACKSLASH='\'
 
2678
fi
 
2679
 if test "x$enable_dependency_tracking" != xno; then
 
2680
  AMDEP_TRUE=
 
2681
  AMDEP_FALSE='#'
 
2682
else
 
2683
  AMDEP_TRUE='#'
 
2684
  AMDEP_FALSE=
 
2685
fi
 
2686
 
 
2687
 
 
2688
ac_ext=c
 
2689
ac_cpp='$CPP $CPPFLAGS'
 
2690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2693
if test -n "$ac_tool_prefix"; then
 
2694
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2695
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2696
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2698
if test "${ac_cv_prog_CC+set}" = set; then
 
2699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2700
else
 
2701
  if test -n "$CC"; then
 
2702
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2703
else
 
2704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2705
for as_dir in $PATH
 
2706
do
 
2707
  IFS=$as_save_IFS
 
2708
  test -z "$as_dir" && as_dir=.
 
2709
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2710
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2711
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2712
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2713
    break 2
 
2714
  fi
 
2715
done
 
2716
done
 
2717
IFS=$as_save_IFS
 
2718
 
 
2719
fi
 
2720
fi
 
2721
CC=$ac_cv_prog_CC
 
2722
if test -n "$CC"; then
 
2723
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2724
echo "${ECHO_T}$CC" >&6; }
 
2725
else
 
2726
  { echo "$as_me:$LINENO: result: no" >&5
 
2727
echo "${ECHO_T}no" >&6; }
 
2728
fi
 
2729
 
 
2730
 
 
2731
fi
 
2732
if test -z "$ac_cv_prog_CC"; then
 
2733
  ac_ct_CC=$CC
 
2734
  # Extract the first word of "gcc", so it can be a program name with args.
 
2735
set dummy gcc; ac_word=$2
 
2736
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2737
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2738
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2740
else
 
2741
  if test -n "$ac_ct_CC"; then
 
2742
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2743
else
 
2744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2745
for as_dir in $PATH
 
2746
do
 
2747
  IFS=$as_save_IFS
 
2748
  test -z "$as_dir" && as_dir=.
 
2749
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2750
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2751
    ac_cv_prog_ac_ct_CC="gcc"
 
2752
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2753
    break 2
 
2754
  fi
 
2755
done
 
2756
done
 
2757
IFS=$as_save_IFS
 
2758
 
 
2759
fi
 
2760
fi
 
2761
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2762
if test -n "$ac_ct_CC"; then
 
2763
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2764
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2765
else
 
2766
  { echo "$as_me:$LINENO: result: no" >&5
 
2767
echo "${ECHO_T}no" >&6; }
 
2768
fi
 
2769
 
 
2770
  if test "x$ac_ct_CC" = x; then
 
2771
    CC=""
 
2772
  else
 
2773
    case $cross_compiling:$ac_tool_warned in
 
2774
yes:)
 
2775
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2776
whose name does not start with the host triplet.  If you think this
 
2777
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2778
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2779
whose name does not start with the host triplet.  If you think this
 
2780
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2781
ac_tool_warned=yes ;;
 
2782
esac
 
2783
    CC=$ac_ct_CC
 
2784
  fi
 
2785
else
 
2786
  CC="$ac_cv_prog_CC"
 
2787
fi
 
2788
 
 
2789
if test -z "$CC"; then
 
2790
          if test -n "$ac_tool_prefix"; then
 
2791
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2792
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2793
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2794
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2795
if test "${ac_cv_prog_CC+set}" = set; then
 
2796
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2797
else
 
2798
  if test -n "$CC"; then
 
2799
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2800
else
 
2801
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2802
for as_dir in $PATH
 
2803
do
 
2804
  IFS=$as_save_IFS
 
2805
  test -z "$as_dir" && as_dir=.
 
2806
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2807
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2808
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2809
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2810
    break 2
 
2811
  fi
 
2812
done
 
2813
done
 
2814
IFS=$as_save_IFS
 
2815
 
 
2816
fi
 
2817
fi
 
2818
CC=$ac_cv_prog_CC
 
2819
if test -n "$CC"; then
 
2820
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2821
echo "${ECHO_T}$CC" >&6; }
 
2822
else
 
2823
  { echo "$as_me:$LINENO: result: no" >&5
 
2824
echo "${ECHO_T}no" >&6; }
 
2825
fi
 
2826
 
 
2827
 
 
2828
  fi
 
2829
fi
 
2830
if test -z "$CC"; then
 
2831
  # Extract the first word of "cc", so it can be a program name with args.
 
2832
set dummy cc; ac_word=$2
 
2833
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2835
if test "${ac_cv_prog_CC+set}" = set; then
 
2836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2837
else
 
2838
  if test -n "$CC"; then
 
2839
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2840
else
 
2841
  ac_prog_rejected=no
 
2842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2843
for as_dir in $PATH
 
2844
do
 
2845
  IFS=$as_save_IFS
 
2846
  test -z "$as_dir" && as_dir=.
 
2847
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2849
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2850
       ac_prog_rejected=yes
 
2851
       continue
 
2852
     fi
 
2853
    ac_cv_prog_CC="cc"
 
2854
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2855
    break 2
 
2856
  fi
 
2857
done
 
2858
done
 
2859
IFS=$as_save_IFS
 
2860
 
 
2861
if test $ac_prog_rejected = yes; then
 
2862
  # We found a bogon in the path, so make sure we never use it.
 
2863
  set dummy $ac_cv_prog_CC
 
2864
  shift
 
2865
  if test $@%:@ != 0; then
 
2866
    # We chose a different compiler from the bogus one.
 
2867
    # However, it has the same basename, so the bogon will be chosen
 
2868
    # first if we set CC to just the basename; use the full file name.
 
2869
    shift
 
2870
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2871
  fi
 
2872
fi
 
2873
fi
 
2874
fi
 
2875
CC=$ac_cv_prog_CC
 
2876
if test -n "$CC"; then
 
2877
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2878
echo "${ECHO_T}$CC" >&6; }
 
2879
else
 
2880
  { echo "$as_me:$LINENO: result: no" >&5
 
2881
echo "${ECHO_T}no" >&6; }
 
2882
fi
 
2883
 
 
2884
 
 
2885
fi
 
2886
if test -z "$CC"; then
 
2887
  if test -n "$ac_tool_prefix"; then
 
2888
  for ac_prog in cl.exe
 
2889
  do
 
2890
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2891
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2892
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2893
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2894
if test "${ac_cv_prog_CC+set}" = set; then
 
2895
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2896
else
 
2897
  if test -n "$CC"; then
 
2898
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2899
else
 
2900
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2901
for as_dir in $PATH
 
2902
do
 
2903
  IFS=$as_save_IFS
 
2904
  test -z "$as_dir" && as_dir=.
 
2905
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2906
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2907
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2908
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2909
    break 2
 
2910
  fi
 
2911
done
 
2912
done
 
2913
IFS=$as_save_IFS
 
2914
 
 
2915
fi
 
2916
fi
 
2917
CC=$ac_cv_prog_CC
 
2918
if test -n "$CC"; then
 
2919
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2920
echo "${ECHO_T}$CC" >&6; }
 
2921
else
 
2922
  { echo "$as_me:$LINENO: result: no" >&5
 
2923
echo "${ECHO_T}no" >&6; }
 
2924
fi
 
2925
 
 
2926
 
 
2927
    test -n "$CC" && break
 
2928
  done
 
2929
fi
 
2930
if test -z "$CC"; then
 
2931
  ac_ct_CC=$CC
 
2932
  for ac_prog in cl.exe
 
2933
do
 
2934
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2935
set dummy $ac_prog; ac_word=$2
 
2936
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2937
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2938
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2939
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2940
else
 
2941
  if test -n "$ac_ct_CC"; then
 
2942
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2943
else
 
2944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2945
for as_dir in $PATH
 
2946
do
 
2947
  IFS=$as_save_IFS
 
2948
  test -z "$as_dir" && as_dir=.
 
2949
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2950
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2951
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2952
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2953
    break 2
 
2954
  fi
 
2955
done
 
2956
done
 
2957
IFS=$as_save_IFS
 
2958
 
 
2959
fi
 
2960
fi
 
2961
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2962
if test -n "$ac_ct_CC"; then
 
2963
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2964
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2965
else
 
2966
  { echo "$as_me:$LINENO: result: no" >&5
 
2967
echo "${ECHO_T}no" >&6; }
 
2968
fi
 
2969
 
 
2970
 
 
2971
  test -n "$ac_ct_CC" && break
 
2972
done
 
2973
 
 
2974
  if test "x$ac_ct_CC" = x; then
 
2975
    CC=""
 
2976
  else
 
2977
    case $cross_compiling:$ac_tool_warned in
 
2978
yes:)
 
2979
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2980
whose name does not start with the host triplet.  If you think this
 
2981
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2982
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2983
whose name does not start with the host triplet.  If you think this
 
2984
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2985
ac_tool_warned=yes ;;
 
2986
esac
 
2987
    CC=$ac_ct_CC
 
2988
  fi
 
2989
fi
 
2990
 
 
2991
fi
 
2992
 
 
2993
 
 
2994
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2995
See \`config.log' for more details." >&5
 
2996
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2997
See \`config.log' for more details." >&2;}
 
2998
   { (exit 1); exit 1; }; }
 
2999
 
 
3000
# Provide some information about the compiler.
 
3001
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3002
ac_compiler=`set X $ac_compile; echo $2`
 
3003
{ (ac_try="$ac_compiler --version >&5"
 
3004
case "(($ac_try" in
 
3005
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3006
  *) ac_try_echo=$ac_try;;
 
3007
esac
 
3008
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3009
  (eval "$ac_compiler --version >&5") 2>&5
 
3010
  ac_status=$?
 
3011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3012
  (exit $ac_status); }
 
3013
{ (ac_try="$ac_compiler -v >&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 -v >&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
 
 
3034
cat >conftest.$ac_ext <<_ACEOF
 
3035
/* confdefs.h.  */
 
3036
_ACEOF
 
3037
cat confdefs.h >>conftest.$ac_ext
 
3038
cat >>conftest.$ac_ext <<_ACEOF
 
3039
/* end confdefs.h.  */
 
3040
 
 
3041
int
 
3042
main ()
 
3043
{
 
3044
 
 
3045
  ;
 
3046
  return 0;
 
3047
}
 
3048
_ACEOF
 
3049
ac_clean_files_save=$ac_clean_files
 
3050
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3051
# Try to create an executable without -o first, disregard a.out.
 
3052
# It will help us diagnose broken compilers, and finding out an intuition
 
3053
# of exeext.
 
3054
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3055
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3056
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3057
#
 
3058
# List of possible output files, starting from the most likely.
 
3059
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3060
# only as a last resort.  b.out is created by i960 compilers.
 
3061
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3062
#
 
3063
# The IRIX 6 linker writes into existing files which may not be
 
3064
# executable, retaining their permissions.  Remove them first so a
 
3065
# subsequent execution test works.
 
3066
ac_rmfiles=
 
3067
for ac_file in $ac_files
 
3068
do
 
3069
  case $ac_file in
 
3070
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3071
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3072
  esac
 
3073
done
 
3074
rm -f $ac_rmfiles
 
3075
 
 
3076
if { (ac_try="$ac_link_default"
 
3077
case "(($ac_try" in
 
3078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3079
  *) ac_try_echo=$ac_try;;
 
3080
esac
 
3081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3082
  (eval "$ac_link_default") 2>&5
 
3083
  ac_status=$?
 
3084
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3085
  (exit $ac_status); }; then
 
3086
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3087
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3088
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3089
# so that the user can short-circuit this test for compilers unknown to
 
3090
# Autoconf.
 
3091
for ac_file in $ac_files ''
 
3092
do
 
3093
  test -f "$ac_file" || continue
 
3094
  case $ac_file in
 
3095
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3096
        ;;
 
3097
    [ab].out )
 
3098
        # We found the default executable, but exeext='' is most
 
3099
        # certainly right.
 
3100
        break;;
 
3101
    *.* )
 
3102
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3103
        then :; else
 
3104
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3105
        fi
 
3106
        # We set ac_cv_exeext here because the later test for it is not
 
3107
        # safe: cross compilers may not add the suffix if given an `-o'
 
3108
        # argument, so we may need to know it at that point already.
 
3109
        # Even if this section looks crufty: it has the advantage of
 
3110
        # actually working.
 
3111
        break;;
 
3112
    * )
 
3113
        break;;
 
3114
  esac
 
3115
done
 
3116
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3117
 
 
3118
else
 
3119
  ac_file=''
 
3120
fi
 
3121
 
 
3122
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3123
echo "${ECHO_T}$ac_file" >&6; }
 
3124
if test -z "$ac_file"; then
 
3125
  echo "$as_me: failed program was:" >&5
 
3126
sed 's/^/| /' conftest.$ac_ext >&5
 
3127
 
 
3128
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3129
See \`config.log' for more details." >&5
 
3130
echo "$as_me: error: C compiler cannot create executables
 
3131
See \`config.log' for more details." >&2;}
 
3132
   { (exit 77); exit 77; }; }
 
3133
fi
 
3134
 
 
3135
ac_exeext=$ac_cv_exeext
 
3136
 
 
3137
# Check that the compiler produces executables we can run.  If not, either
 
3138
# the compiler is broken, or we cross compile.
 
3139
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3140
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3141
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3142
# If not cross compiling, check that we can run a simple program.
 
3143
if test "$cross_compiling" != yes; then
 
3144
  if { ac_try='./$ac_file'
 
3145
  { (case "(($ac_try" in
 
3146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3147
  *) ac_try_echo=$ac_try;;
 
3148
esac
 
3149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3150
  (eval "$ac_try") 2>&5
 
3151
  ac_status=$?
 
3152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3153
  (exit $ac_status); }; }; then
 
3154
    cross_compiling=no
 
3155
  else
 
3156
    if test "$cross_compiling" = maybe; then
 
3157
        cross_compiling=yes
 
3158
    else
 
3159
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3160
If you meant to cross compile, use \`--host'.
 
3161
See \`config.log' for more details." >&5
 
3162
echo "$as_me: error: cannot run C compiled programs.
 
3163
If you meant to cross compile, use \`--host'.
 
3164
See \`config.log' for more details." >&2;}
 
3165
   { (exit 1); exit 1; }; }
 
3166
    fi
 
3167
  fi
 
3168
fi
 
3169
{ echo "$as_me:$LINENO: result: yes" >&5
 
3170
echo "${ECHO_T}yes" >&6; }
 
3171
 
 
3172
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3173
ac_clean_files=$ac_clean_files_save
 
3174
# Check that the compiler produces executables we can run.  If not, either
 
3175
# the compiler is broken, or we cross compile.
 
3176
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3177
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3178
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3179
echo "${ECHO_T}$cross_compiling" >&6; }
 
3180
 
 
3181
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3182
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3183
if { (ac_try="$ac_link"
 
3184
case "(($ac_try" in
 
3185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3186
  *) ac_try_echo=$ac_try;;
 
3187
esac
 
3188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3189
  (eval "$ac_link") 2>&5
 
3190
  ac_status=$?
 
3191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3192
  (exit $ac_status); }; then
 
3193
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3194
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3195
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3196
# `rm'.
 
3197
for ac_file in conftest.exe conftest conftest.*; do
 
3198
  test -f "$ac_file" || continue
 
3199
  case $ac_file in
 
3200
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3201
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3202
          break;;
 
3203
    * ) break;;
 
3204
  esac
 
3205
done
 
3206
else
 
3207
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3208
See \`config.log' for more details." >&5
 
3209
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3210
See \`config.log' for more details." >&2;}
 
3211
   { (exit 1); exit 1; }; }
 
3212
fi
 
3213
 
 
3214
rm -f conftest$ac_cv_exeext
 
3215
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3216
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3217
 
 
3218
rm -f conftest.$ac_ext
 
3219
EXEEXT=$ac_cv_exeext
 
3220
ac_exeext=$EXEEXT
 
3221
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3222
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3223
if test "${ac_cv_objext+set}" = set; then
 
3224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3225
else
 
3226
  cat >conftest.$ac_ext <<_ACEOF
 
3227
/* confdefs.h.  */
 
3228
_ACEOF
 
3229
cat confdefs.h >>conftest.$ac_ext
 
3230
cat >>conftest.$ac_ext <<_ACEOF
 
3231
/* end confdefs.h.  */
 
3232
 
 
3233
int
 
3234
main ()
 
3235
{
 
3236
 
 
3237
  ;
 
3238
  return 0;
 
3239
}
 
3240
_ACEOF
 
3241
rm -f conftest.o conftest.obj
 
3242
if { (ac_try="$ac_compile"
 
3243
case "(($ac_try" in
 
3244
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3245
  *) ac_try_echo=$ac_try;;
 
3246
esac
 
3247
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3248
  (eval "$ac_compile") 2>&5
 
3249
  ac_status=$?
 
3250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3251
  (exit $ac_status); }; then
 
3252
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3253
  test -f "$ac_file" || continue;
 
3254
  case $ac_file in
 
3255
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3256
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3257
       break;;
 
3258
  esac
 
3259
done
 
3260
else
 
3261
  echo "$as_me: failed program was:" >&5
 
3262
sed 's/^/| /' conftest.$ac_ext >&5
 
3263
 
 
3264
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3265
See \`config.log' for more details." >&5
 
3266
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3267
See \`config.log' for more details." >&2;}
 
3268
   { (exit 1); exit 1; }; }
 
3269
fi
 
3270
 
 
3271
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3272
fi
 
3273
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3274
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3275
OBJEXT=$ac_cv_objext
 
3276
ac_objext=$OBJEXT
 
3277
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3278
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3279
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3281
else
 
3282
  cat >conftest.$ac_ext <<_ACEOF
 
3283
/* confdefs.h.  */
 
3284
_ACEOF
 
3285
cat confdefs.h >>conftest.$ac_ext
 
3286
cat >>conftest.$ac_ext <<_ACEOF
 
3287
/* end confdefs.h.  */
 
3288
 
 
3289
int
 
3290
main ()
 
3291
{
 
3292
#ifndef __GNUC__
 
3293
       choke me
 
3294
#endif
 
3295
 
 
3296
  ;
 
3297
  return 0;
 
3298
}
 
3299
_ACEOF
 
3300
rm -f conftest.$ac_objext
 
3301
if { (ac_try="$ac_compile"
 
3302
case "(($ac_try" in
 
3303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3304
  *) ac_try_echo=$ac_try;;
 
3305
esac
 
3306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3307
  (eval "$ac_compile") 2>conftest.er1
 
3308
  ac_status=$?
 
3309
  grep -v '^ *+' conftest.er1 >conftest.err
 
3310
  rm -f conftest.er1
 
3311
  cat conftest.err >&5
 
3312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3313
  (exit $ac_status); } && {
 
3314
         test -z "$ac_c_werror_flag" ||
 
3315
         test ! -s conftest.err
 
3316
       } && test -s conftest.$ac_objext; then
 
3317
  ac_compiler_gnu=yes
 
3318
else
 
3319
  echo "$as_me: failed program was:" >&5
 
3320
sed 's/^/| /' conftest.$ac_ext >&5
 
3321
 
 
3322
        ac_compiler_gnu=no
 
3323
fi
 
3324
 
 
3325
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3326
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3327
 
 
3328
fi
 
3329
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3330
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3331
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3332
ac_test_CFLAGS=${CFLAGS+set}
 
3333
ac_save_CFLAGS=$CFLAGS
 
3334
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3335
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3336
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3337
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3338
else
 
3339
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3340
   ac_c_werror_flag=yes
 
3341
   ac_cv_prog_cc_g=no
 
3342
   CFLAGS="-g"
 
3343
   cat >conftest.$ac_ext <<_ACEOF
 
3344
/* confdefs.h.  */
 
3345
_ACEOF
 
3346
cat confdefs.h >>conftest.$ac_ext
 
3347
cat >>conftest.$ac_ext <<_ACEOF
 
3348
/* end confdefs.h.  */
 
3349
 
 
3350
int
 
3351
main ()
 
3352
{
 
3353
 
 
3354
  ;
 
3355
  return 0;
 
3356
}
 
3357
_ACEOF
 
3358
rm -f conftest.$ac_objext
 
3359
if { (ac_try="$ac_compile"
 
3360
case "(($ac_try" in
 
3361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3362
  *) ac_try_echo=$ac_try;;
 
3363
esac
 
3364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3365
  (eval "$ac_compile") 2>conftest.er1
 
3366
  ac_status=$?
 
3367
  grep -v '^ *+' conftest.er1 >conftest.err
 
3368
  rm -f conftest.er1
 
3369
  cat conftest.err >&5
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3371
  (exit $ac_status); } && {
 
3372
         test -z "$ac_c_werror_flag" ||
 
3373
         test ! -s conftest.err
 
3374
       } && test -s conftest.$ac_objext; then
 
3375
  ac_cv_prog_cc_g=yes
 
3376
else
 
3377
  echo "$as_me: failed program was:" >&5
 
3378
sed 's/^/| /' conftest.$ac_ext >&5
 
3379
 
 
3380
        CFLAGS=""
 
3381
      cat >conftest.$ac_ext <<_ACEOF
 
3382
/* confdefs.h.  */
 
3383
_ACEOF
 
3384
cat confdefs.h >>conftest.$ac_ext
 
3385
cat >>conftest.$ac_ext <<_ACEOF
 
3386
/* end confdefs.h.  */
 
3387
 
 
3388
int
 
3389
main ()
 
3390
{
 
3391
 
 
3392
  ;
 
3393
  return 0;
 
3394
}
 
3395
_ACEOF
 
3396
rm -f conftest.$ac_objext
 
3397
if { (ac_try="$ac_compile"
 
3398
case "(($ac_try" in
 
3399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3400
  *) ac_try_echo=$ac_try;;
 
3401
esac
 
3402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3403
  (eval "$ac_compile") 2>conftest.er1
 
3404
  ac_status=$?
 
3405
  grep -v '^ *+' conftest.er1 >conftest.err
 
3406
  rm -f conftest.er1
 
3407
  cat conftest.err >&5
 
3408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3409
  (exit $ac_status); } && {
 
3410
         test -z "$ac_c_werror_flag" ||
 
3411
         test ! -s conftest.err
 
3412
       } && test -s conftest.$ac_objext; then
 
3413
  :
 
3414
else
 
3415
  echo "$as_me: failed program was:" >&5
 
3416
sed 's/^/| /' conftest.$ac_ext >&5
 
3417
 
 
3418
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3419
         CFLAGS="-g"
 
3420
         cat >conftest.$ac_ext <<_ACEOF
 
3421
/* confdefs.h.  */
 
3422
_ACEOF
 
3423
cat confdefs.h >>conftest.$ac_ext
 
3424
cat >>conftest.$ac_ext <<_ACEOF
 
3425
/* end confdefs.h.  */
 
3426
 
 
3427
int
 
3428
main ()
 
3429
{
 
3430
 
 
3431
  ;
 
3432
  return 0;
 
3433
}
 
3434
_ACEOF
 
3435
rm -f conftest.$ac_objext
 
3436
if { (ac_try="$ac_compile"
 
3437
case "(($ac_try" in
 
3438
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3439
  *) ac_try_echo=$ac_try;;
 
3440
esac
 
3441
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3442
  (eval "$ac_compile") 2>conftest.er1
 
3443
  ac_status=$?
 
3444
  grep -v '^ *+' conftest.er1 >conftest.err
 
3445
  rm -f conftest.er1
 
3446
  cat conftest.err >&5
 
3447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3448
  (exit $ac_status); } && {
 
3449
         test -z "$ac_c_werror_flag" ||
 
3450
         test ! -s conftest.err
 
3451
       } && test -s conftest.$ac_objext; then
 
3452
  ac_cv_prog_cc_g=yes
 
3453
else
 
3454
  echo "$as_me: failed program was:" >&5
 
3455
sed 's/^/| /' conftest.$ac_ext >&5
 
3456
 
 
3457
        
 
3458
fi
 
3459
 
 
3460
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3461
fi
 
3462
 
 
3463
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3464
fi
 
3465
 
 
3466
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3467
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3468
fi
 
3469
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3470
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3471
if test "$ac_test_CFLAGS" = set; then
 
3472
  CFLAGS=$ac_save_CFLAGS
 
3473
elif test $ac_cv_prog_cc_g = yes; then
 
3474
  if test "$GCC" = yes; then
 
3475
    CFLAGS="-g -O2"
 
3476
  else
 
3477
    CFLAGS="-g"
 
3478
  fi
 
3479
else
 
3480
  if test "$GCC" = yes; then
 
3481
    CFLAGS="-O2"
 
3482
  else
 
3483
    CFLAGS=
 
3484
  fi
 
3485
fi
 
3486
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3487
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3488
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3490
else
 
3491
  ac_cv_prog_cc_c89=no
 
3492
ac_save_CC=$CC
 
3493
cat >conftest.$ac_ext <<_ACEOF
 
3494
/* confdefs.h.  */
 
3495
_ACEOF
 
3496
cat confdefs.h >>conftest.$ac_ext
 
3497
cat >>conftest.$ac_ext <<_ACEOF
 
3498
/* end confdefs.h.  */
 
3499
#include <stdarg.h>
 
3500
#include <stdio.h>
 
3501
#include <sys/types.h>
 
3502
#include <sys/stat.h>
 
3503
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3504
struct buf { int x; };
 
3505
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3506
static char *e (p, i)
 
3507
     char **p;
 
3508
     int i;
 
3509
{
 
3510
  return p[i];
 
3511
}
 
3512
static char *f (char * (*g) (char **, int), char **p, ...)
 
3513
{
 
3514
  char *s;
 
3515
  va_list v;
 
3516
  va_start (v,p);
 
3517
  s = g (p, va_arg (v,int));
 
3518
  va_end (v);
 
3519
  return s;
 
3520
}
 
3521
 
 
3522
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3523
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3524
   These don't provoke an error unfortunately, instead are silently treated
 
3525
   as 'x'.  The following induces an error, until -std is added to get
 
3526
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3527
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3528
   that's true only with -std.  */
 
3529
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3530
 
 
3531
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3532
   inside strings and character constants.  */
 
3533
#define FOO(x) 'x'
 
3534
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3535
 
 
3536
int test (int i, double x);
 
3537
struct s1 {int (*f) (int a);};
 
3538
struct s2 {int (*f) (double a);};
 
3539
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3540
int argc;
 
3541
char **argv;
 
3542
int
 
3543
main ()
 
3544
{
 
3545
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3546
  ;
 
3547
  return 0;
 
3548
}
 
3549
_ACEOF
 
3550
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3551
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3552
do
 
3553
  CC="$ac_save_CC $ac_arg"
 
3554
  rm -f conftest.$ac_objext
 
3555
if { (ac_try="$ac_compile"
 
3556
case "(($ac_try" in
 
3557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3558
  *) ac_try_echo=$ac_try;;
 
3559
esac
 
3560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3561
  (eval "$ac_compile") 2>conftest.er1
 
3562
  ac_status=$?
 
3563
  grep -v '^ *+' conftest.er1 >conftest.err
 
3564
  rm -f conftest.er1
 
3565
  cat conftest.err >&5
 
3566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3567
  (exit $ac_status); } && {
 
3568
         test -z "$ac_c_werror_flag" ||
 
3569
         test ! -s conftest.err
 
3570
       } && test -s conftest.$ac_objext; then
 
3571
  ac_cv_prog_cc_c89=$ac_arg
 
3572
else
 
3573
  echo "$as_me: failed program was:" >&5
 
3574
sed 's/^/| /' conftest.$ac_ext >&5
 
3575
 
 
3576
        
 
3577
fi
 
3578
 
 
3579
rm -f core conftest.err conftest.$ac_objext 
 
3580
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3581
done
 
3582
rm -f conftest.$ac_ext
 
3583
CC=$ac_save_CC
 
3584
 
 
3585
fi
 
3586
# AC_CACHE_VAL
 
3587
case "x$ac_cv_prog_cc_c89" in
 
3588
  x)
 
3589
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3590
echo "${ECHO_T}none needed" >&6; } ;;
 
3591
  xno)
 
3592
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3593
echo "${ECHO_T}unsupported" >&6; } ;;
 
3594
  *)
 
3595
    CC="$CC $ac_cv_prog_cc_c89"
 
3596
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3597
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3598
esac
 
3599
 
 
3600
 
 
3601
ac_ext=c
 
3602
ac_cpp='$CPP $CPPFLAGS'
 
3603
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3604
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3605
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3606
 
 
3607
depcc="$CC"   am_compiler_list=
 
3608
 
 
3609
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3610
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3611
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3612
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3613
else
 
3614
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3615
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3616
  # making bogus files that we don't know about and never remove.  For
 
3617
  # instance it was reported that on HP-UX the gcc test will end up
 
3618
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3619
  # in D'.
 
3620
  mkdir conftest.dir
 
3621
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3622
  # using a relative directory.
 
3623
  cp "$am_depcomp" conftest.dir
 
3624
  cd conftest.dir
 
3625
  # We will build objects and dependencies in a subdirectory because
 
3626
  # it helps to detect inapplicable dependency modes.  For instance
 
3627
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3628
  # side effect of compilation, but ICC will put the dependencies in
 
3629
  # the current directory while Tru64 will put them in the object
 
3630
  # directory.
 
3631
  mkdir sub
 
3632
 
 
3633
  am_cv_CC_dependencies_compiler_type=none
 
3634
  if test "$am_compiler_list" = ""; then
 
3635
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3636
  fi
 
3637
  for depmode in $am_compiler_list; do
 
3638
    # Setup a source with many dependencies, because some compilers
 
3639
    # like to wrap large dependency lists on column 80 (with \), and
 
3640
    # we should not choose a depcomp mode which is confused by this.
 
3641
    #
 
3642
    # We need to recreate these files for each test, as the compiler may
 
3643
    # overwrite some of them when testing with obscure command lines.
 
3644
    # This happens at least with the AIX C compiler.
 
3645
    : > sub/conftest.c
 
3646
    for i in 1 2 3 4 5 6; do
 
3647
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3648
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3649
      # Solaris 8's {/usr,}/bin/sh.
 
3650
      touch sub/conftst$i.h
 
3651
    done
 
3652
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3653
 
 
3654
    case $depmode in
 
3655
    nosideeffect)
 
3656
      # after this tag, mechanisms are not by side-effect, so they'll
 
3657
      # only be used when explicitly requested
 
3658
      if test "x$enable_dependency_tracking" = xyes; then
 
3659
        continue
 
3660
      else
 
3661
        break
 
3662
      fi
 
3663
      ;;
 
3664
    none) break ;;
 
3665
    esac
 
3666
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3667
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3668
    # handle `-M -o', and we need to detect this.
 
3669
    if depmode=$depmode \
 
3670
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3671
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3672
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3673
         >/dev/null 2>conftest.err &&
 
3674
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3675
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3676
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3677
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3678
      # icc doesn't choke on unknown options, it will just issue warnings
 
3679
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3680
      # that says an option was ignored or not supported.
 
3681
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3682
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3683
      # The diagnosis changed in icc 8.0:
 
3684
      #   icc: Command line remark: option '-MP' not supported
 
3685
      if (grep 'ignoring option' conftest.err ||
 
3686
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3687
        am_cv_CC_dependencies_compiler_type=$depmode
 
3688
        break
 
3689
      fi
 
3690
    fi
 
3691
  done
 
3692
 
 
3693
  cd ..
 
3694
  rm -rf conftest.dir
 
3695
else
 
3696
  am_cv_CC_dependencies_compiler_type=none
 
3697
fi
 
3698
 
 
3699
fi
 
3700
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3701
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3702
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3703
 
 
3704
 if 
 
3705
  test "x$enable_dependency_tracking" != xno \
 
3706
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3707
  am__fastdepCC_TRUE=
 
3708
  am__fastdepCC_FALSE='#'
 
3709
else
 
3710
  am__fastdepCC_TRUE='#'
 
3711
  am__fastdepCC_FALSE=
 
3712
fi
 
3713
 
 
3714
 
 
3715
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3716
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3717
if test "${lt_cv_path_SED+set}" = set; then
 
3718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3719
else
 
3720
  # Loop through the user's path and test for sed and gsed.
 
3721
# Then use that list of sed's as ones to test for truncation.
 
3722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3723
for as_dir in $PATH
 
3724
do
 
3725
  IFS=$as_save_IFS
 
3726
  test -z "$as_dir" && as_dir=.
 
3727
  for lt_ac_prog in sed gsed; do
 
3728
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3729
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3730
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3731
      fi
 
3732
    done
 
3733
  done
 
3734
done
 
3735
IFS=$as_save_IFS
 
3736
lt_ac_max=0
 
3737
lt_ac_count=0
 
3738
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3739
# along with /bin/sed that truncates output.
 
3740
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3741
  test ! -f $lt_ac_sed && continue
 
3742
  cat /dev/null > conftest.in
 
3743
  lt_ac_count=0
 
3744
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3745
  # Check for GNU sed and select it if it is found.
 
3746
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3747
    lt_cv_path_SED=$lt_ac_sed
 
3748
    break
 
3749
  fi
 
3750
  while true; do
 
3751
    cat conftest.in conftest.in >conftest.tmp
 
3752
    mv conftest.tmp conftest.in
 
3753
    cp conftest.in conftest.nl
 
3754
    echo >>conftest.nl
 
3755
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3756
    cmp -s conftest.out conftest.nl || break
 
3757
    # 10000 chars as input seems more than enough
 
3758
    test $lt_ac_count -gt 10 && break
 
3759
    lt_ac_count=`expr $lt_ac_count + 1`
 
3760
    if test $lt_ac_count -gt $lt_ac_max; then
 
3761
      lt_ac_max=$lt_ac_count
 
3762
      lt_cv_path_SED=$lt_ac_sed
 
3763
    fi
 
3764
  done
 
3765
done
 
3766
 
 
3767
fi
 
3768
 
 
3769
SED=$lt_cv_path_SED
 
3770
 
 
3771
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3772
echo "${ECHO_T}$SED" >&6; }
 
3773
 
 
3774
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3775
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3776
if test "${ac_cv_path_GREP+set}" = set; then
 
3777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3778
else
 
3779
  # Extract the first word of "grep ggrep" to use in msg output
 
3780
if test -z "$GREP"; then
 
3781
set dummy grep ggrep; ac_prog_name=$2
 
3782
if test "${ac_cv_path_GREP+set}" = set; then
 
3783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3784
else
 
3785
  ac_path_GREP_found=false
 
3786
# Loop through the user's path and test for each of PROGNAME-LIST
 
3787
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3788
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3789
do
 
3790
  IFS=$as_save_IFS
 
3791
  test -z "$as_dir" && as_dir=.
 
3792
  for ac_prog in grep ggrep; do
 
3793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3794
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3795
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3796
    # Check for GNU ac_path_GREP and select it if it is found.
 
3797
  # Check for GNU $ac_path_GREP
 
3798
case `"$ac_path_GREP" --version 2>&1` in
 
3799
*GNU*)
 
3800
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3801
*)
 
3802
  ac_count=0
 
3803
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3804
  while :
 
3805
  do
 
3806
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3807
    mv "conftest.tmp" "conftest.in"
 
3808
    cp "conftest.in" "conftest.nl"
 
3809
    echo 'GREP' >> "conftest.nl"
 
3810
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3811
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3812
    ac_count=`expr $ac_count + 1`
 
3813
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3814
      # Best one so far, save it but keep looking for a better one
 
3815
      ac_cv_path_GREP="$ac_path_GREP"
 
3816
      ac_path_GREP_max=$ac_count
 
3817
    fi
 
3818
    # 10*(2^10) chars as input seems more than enough
 
3819
    test $ac_count -gt 10 && break
 
3820
  done
 
3821
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3822
esac
 
3823
 
 
3824
 
 
3825
    $ac_path_GREP_found && break 3
 
3826
  done
 
3827
done
 
3828
 
 
3829
done
 
3830
IFS=$as_save_IFS
 
3831
 
 
3832
 
 
3833
fi
 
3834
 
 
3835
GREP="$ac_cv_path_GREP"
 
3836
if test -z "$GREP"; then
 
3837
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3838
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3839
   { (exit 1); exit 1; }; }
 
3840
fi
 
3841
 
 
3842
else
 
3843
  ac_cv_path_GREP=$GREP
 
3844
fi
 
3845
 
 
3846
 
 
3847
fi
 
3848
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3849
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3850
 GREP="$ac_cv_path_GREP"
 
3851
 
 
3852
 
 
3853
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3854
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3855
if test "${ac_cv_path_EGREP+set}" = set; then
 
3856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3857
else
 
3858
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3859
   then ac_cv_path_EGREP="$GREP -E"
 
3860
   else
 
3861
     # Extract the first word of "egrep" to use in msg output
 
3862
if test -z "$EGREP"; then
 
3863
set dummy egrep; ac_prog_name=$2
 
3864
if test "${ac_cv_path_EGREP+set}" = set; then
 
3865
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3866
else
 
3867
  ac_path_EGREP_found=false
 
3868
# Loop through the user's path and test for each of PROGNAME-LIST
 
3869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3870
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3871
do
 
3872
  IFS=$as_save_IFS
 
3873
  test -z "$as_dir" && as_dir=.
 
3874
  for ac_prog in egrep; do
 
3875
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3876
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3877
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3878
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3879
  # Check for GNU $ac_path_EGREP
 
3880
case `"$ac_path_EGREP" --version 2>&1` in
 
3881
*GNU*)
 
3882
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3883
*)
 
3884
  ac_count=0
 
3885
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3886
  while :
 
3887
  do
 
3888
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3889
    mv "conftest.tmp" "conftest.in"
 
3890
    cp "conftest.in" "conftest.nl"
 
3891
    echo 'EGREP' >> "conftest.nl"
 
3892
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3893
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3894
    ac_count=`expr $ac_count + 1`
 
3895
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3896
      # Best one so far, save it but keep looking for a better one
 
3897
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3898
      ac_path_EGREP_max=$ac_count
 
3899
    fi
 
3900
    # 10*(2^10) chars as input seems more than enough
 
3901
    test $ac_count -gt 10 && break
 
3902
  done
 
3903
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3904
esac
 
3905
 
 
3906
 
 
3907
    $ac_path_EGREP_found && break 3
 
3908
  done
 
3909
done
 
3910
 
 
3911
done
 
3912
IFS=$as_save_IFS
 
3913
 
 
3914
 
 
3915
fi
 
3916
 
 
3917
EGREP="$ac_cv_path_EGREP"
 
3918
if test -z "$EGREP"; then
 
3919
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3920
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3921
   { (exit 1); exit 1; }; }
 
3922
fi
 
3923
 
 
3924
else
 
3925
  ac_cv_path_EGREP=$EGREP
 
3926
fi
 
3927
 
 
3928
 
 
3929
   fi
 
3930
fi
 
3931
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3932
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3933
 EGREP="$ac_cv_path_EGREP"
 
3934
 
 
3935
 
 
3936
 
 
3937
# Check whether --with-gnu-ld was given.
 
3938
if test "${with_gnu_ld+set}" = set; then
 
3939
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3940
else
 
3941
  with_gnu_ld=no
 
3942
fi
 
3943
 
 
3944
ac_prog=ld
 
3945
if test "$GCC" = yes; then
 
3946
  # Check if gcc -print-prog-name=ld gives a path.
 
3947
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3948
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
3949
  case $host in
 
3950
  *-*-mingw*)
 
3951
    # gcc leaves a trailing carriage return which upsets mingw
 
3952
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3953
  *)
 
3954
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3955
  esac
 
3956
  case $ac_prog in
 
3957
    # Accept absolute paths.
 
3958
    [\\/]* | ?:[\\/]*)
 
3959
      re_direlt='/[^/][^/]*/\.\./'
 
3960
      # Canonicalize the pathname of ld
 
3961
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3962
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3963
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3964
      done
 
3965
      test -z "$LD" && LD="$ac_prog"
 
3966
      ;;
 
3967
  "")
 
3968
    # If it fails, then pretend we aren't using GCC.
 
3969
    ac_prog=ld
 
3970
    ;;
 
3971
  *)
 
3972
    # If it is relative, then search for the first ld in PATH.
 
3973
    with_gnu_ld=unknown
 
3974
    ;;
 
3975
  esac
 
3976
elif test "$with_gnu_ld" = yes; then
 
3977
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3978
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
3979
else
 
3980
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3981
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
3982
fi
 
3983
if test "${lt_cv_path_LD+set}" = set; then
 
3984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3985
else
 
3986
  if test -z "$LD"; then
 
3987
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3988
  for ac_dir in $PATH; do
 
3989
    IFS="$lt_save_ifs"
 
3990
    test -z "$ac_dir" && ac_dir=.
 
3991
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3992
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3993
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3994
      # but apparently some variants of GNU ld only accept -v.
 
3995
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3996
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3997
      *GNU* | *'with BFD'*)
 
3998
        test "$with_gnu_ld" != no && break
 
3999
        ;;
 
4000
      *)
 
4001
        test "$with_gnu_ld" != yes && break
 
4002
        ;;
 
4003
      esac
 
4004
    fi
 
4005
  done
 
4006
  IFS="$lt_save_ifs"
 
4007
else
 
4008
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4009
fi
 
4010
fi
 
4011
 
 
4012
LD="$lt_cv_path_LD"
 
4013
if test -n "$LD"; then
 
4014
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4015
echo "${ECHO_T}$LD" >&6; }
 
4016
else
 
4017
  { echo "$as_me:$LINENO: result: no" >&5
 
4018
echo "${ECHO_T}no" >&6; }
 
4019
fi
 
4020
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4021
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4022
   { (exit 1); exit 1; }; }
 
4023
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4024
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4025
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4027
else
 
4028
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4029
case `$LD -v 2>&1 </dev/null` in
 
4030
*GNU* | *'with BFD'*)
 
4031
  lt_cv_prog_gnu_ld=yes
 
4032
  ;;
 
4033
*)
 
4034
  lt_cv_prog_gnu_ld=no
 
4035
  ;;
 
4036
esac
 
4037
fi
 
4038
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4039
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4040
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4041
 
 
4042
 
 
4043
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4044
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4045
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4046
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4047
else
 
4048
  lt_cv_ld_reload_flag='-r'
 
4049
fi
 
4050
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4051
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4052
reload_flag=$lt_cv_ld_reload_flag
 
4053
case $reload_flag in
 
4054
"" | " "*) ;;
 
4055
*) reload_flag=" $reload_flag" ;;
 
4056
esac
 
4057
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4058
case $host_os in
 
4059
  darwin*)
 
4060
    if test "$GCC" = yes; then
 
4061
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4062
    else
 
4063
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4064
    fi
 
4065
    ;;
 
4066
esac
 
4067
 
 
4068
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4069
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4070
if test "${lt_cv_path_NM+set}" = set; then
 
4071
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4072
else
 
4073
  if test -n "$NM"; then
 
4074
  # Let the user override the test.
 
4075
  lt_cv_path_NM="$NM"
 
4076
else
 
4077
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4078
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4079
    lt_nm_to_check="$lt_nm_to_check nm"
 
4080
  fi
 
4081
  for lt_tmp_nm in $lt_nm_to_check; do
 
4082
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4083
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4084
      IFS="$lt_save_ifs"
 
4085
      test -z "$ac_dir" && ac_dir=.
 
4086
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4087
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4088
        # Check to see if the nm accepts a BSD-compat flag.
 
4089
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4090
        #   nm: unknown option "B" ignored
 
4091
        # Tru64's nm complains that /dev/null is an invalid object file
 
4092
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4093
        */dev/null* | *'Invalid file or object type'*)
 
4094
          lt_cv_path_NM="$tmp_nm -B"
 
4095
          break
 
4096
          ;;
 
4097
        *)
 
4098
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4099
          */dev/null*)
 
4100
            lt_cv_path_NM="$tmp_nm -p"
 
4101
            break
 
4102
            ;;
 
4103
          *)
 
4104
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4105
            continue # so that we can try to find one that supports BSD flags
 
4106
            ;;
 
4107
          esac
 
4108
          ;;
 
4109
        esac
 
4110
      fi
 
4111
    done
 
4112
    IFS="$lt_save_ifs"
 
4113
  done
 
4114
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4115
fi
 
4116
fi
 
4117
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4118
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4119
NM="$lt_cv_path_NM"
 
4120
 
 
4121
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4122
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4123
LN_S=$as_ln_s
 
4124
if test "$LN_S" = "ln -s"; then
 
4125
  { echo "$as_me:$LINENO: result: yes" >&5
 
4126
echo "${ECHO_T}yes" >&6; }
 
4127
else
 
4128
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4129
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4130
fi
 
4131
 
 
4132
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4133
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4134
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4136
else
 
4137
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4138
lt_cv_file_magic_test_file=
 
4139
lt_cv_deplibs_check_method='unknown'
 
4140
# Need to set the preceding variable on all platforms that support
 
4141
# interlibrary dependencies.
 
4142
# 'none' -- dependencies not supported.
 
4143
# `unknown' -- same as none, but documents that we really don't know.
 
4144
# 'pass_all' -- all dependencies passed with no checks.
 
4145
# 'test_compile' -- check by making test program.
 
4146
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4147
# which responds to the $file_magic_cmd with a given extended regex.
 
4148
# If you have `file' or equivalent on your system and you're not sure
 
4149
# whether `pass_all' will *always* work, you probably want this one.
 
4150
 
 
4151
case $host_os in
 
4152
aix[4-9]*)
 
4153
  lt_cv_deplibs_check_method=pass_all
 
4154
  ;;
 
4155
 
 
4156
beos*)
 
4157
  lt_cv_deplibs_check_method=pass_all
 
4158
  ;;
 
4159
 
 
4160
bsdi[45]*)
 
4161
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4162
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4163
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4164
  ;;
 
4165
 
 
4166
cygwin*)
 
4167
  # func_win32_libid is a shell function defined in ltmain.sh
 
4168
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4169
  lt_cv_file_magic_cmd='func_win32_libid'
 
4170
  ;;
 
4171
 
 
4172
mingw* | pw32*)
 
4173
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4174
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4175
  # unless we find 'file', for example because we are cross-compiling.
 
4176
  if ( file / ) >/dev/null 2>&1; then
 
4177
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4178
    lt_cv_file_magic_cmd='func_win32_libid'
 
4179
  else
 
4180
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4181
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4182
  fi
 
4183
  ;;
 
4184
 
 
4185
darwin* | rhapsody*)
 
4186
  lt_cv_deplibs_check_method=pass_all
 
4187
  ;;
 
4188
 
 
4189
freebsd* | dragonfly*)
 
4190
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4191
    case $host_cpu in
 
4192
    i*86 )
 
4193
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4194
      # Let's accept both of them until this is cleared up.
 
4195
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4196
      lt_cv_file_magic_cmd=/usr/bin/file
 
4197
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4198
      ;;
 
4199
    esac
 
4200
  else
 
4201
    lt_cv_deplibs_check_method=pass_all
 
4202
  fi
 
4203
  ;;
 
4204
 
 
4205
gnu*)
 
4206
  lt_cv_deplibs_check_method=pass_all
 
4207
  ;;
 
4208
 
 
4209
hpux10.20* | hpux11*)
 
4210
  lt_cv_file_magic_cmd=/usr/bin/file
 
4211
  case $host_cpu in
 
4212
  ia64*)
 
4213
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4214
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4215
    ;;
 
4216
  hppa*64*)
 
4217
    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]'
 
4218
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4219
    ;;
 
4220
  *)
 
4221
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4222
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4223
    ;;
 
4224
  esac
 
4225
  ;;
 
4226
 
 
4227
interix[3-9]*)
 
4228
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4229
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4230
  ;;
 
4231
 
 
4232
irix5* | irix6* | nonstopux*)
 
4233
  case $LD in
 
4234
  *-32|*"-32 ") libmagic=32-bit;;
 
4235
  *-n32|*"-n32 ") libmagic=N32;;
 
4236
  *-64|*"-64 ") libmagic=64-bit;;
 
4237
  *) libmagic=never-match;;
 
4238
  esac
 
4239
  lt_cv_deplibs_check_method=pass_all
 
4240
  ;;
 
4241
 
 
4242
# This must be Linux ELF.
 
4243
linux* | k*bsd*-gnu)
 
4244
  lt_cv_deplibs_check_method=pass_all
 
4245
  ;;
 
4246
 
 
4247
netbsd* | netbsdelf*-gnu)
 
4248
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4249
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4250
  else
 
4251
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4252
  fi
 
4253
  ;;
 
4254
 
 
4255
newos6*)
 
4256
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4257
  lt_cv_file_magic_cmd=/usr/bin/file
 
4258
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4259
  ;;
 
4260
 
 
4261
nto-qnx*)
 
4262
  lt_cv_deplibs_check_method=unknown
 
4263
  ;;
 
4264
 
 
4265
openbsd*)
 
4266
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4267
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4268
  else
 
4269
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4270
  fi
 
4271
  ;;
 
4272
 
 
4273
osf3* | osf4* | osf5*)
 
4274
  lt_cv_deplibs_check_method=pass_all
 
4275
  ;;
 
4276
 
 
4277
rdos*)
 
4278
  lt_cv_deplibs_check_method=pass_all
 
4279
  ;;
 
4280
 
 
4281
solaris*)
 
4282
  lt_cv_deplibs_check_method=pass_all
 
4283
  ;;
 
4284
 
 
4285
sysv4 | sysv4.3*)
 
4286
  case $host_vendor in
 
4287
  motorola)
 
4288
    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]'
 
4289
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4290
    ;;
 
4291
  ncr)
 
4292
    lt_cv_deplibs_check_method=pass_all
 
4293
    ;;
 
4294
  sequent)
 
4295
    lt_cv_file_magic_cmd='/bin/file'
 
4296
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4297
    ;;
 
4298
  sni)
 
4299
    lt_cv_file_magic_cmd='/bin/file'
 
4300
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4301
    lt_cv_file_magic_test_file=/lib/libc.so
 
4302
    ;;
 
4303
  siemens)
 
4304
    lt_cv_deplibs_check_method=pass_all
 
4305
    ;;
 
4306
  pc)
 
4307
    lt_cv_deplibs_check_method=pass_all
 
4308
    ;;
 
4309
  esac
 
4310
  ;;
 
4311
 
 
4312
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4313
  lt_cv_deplibs_check_method=pass_all
 
4314
  ;;
 
4315
esac
 
4316
 
 
4317
fi
 
4318
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4319
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4320
file_magic_cmd=$lt_cv_file_magic_cmd
 
4321
deplibs_check_method=$lt_cv_deplibs_check_method
 
4322
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4323
 
 
4324
 
 
4325
 
 
4326
 
 
4327
# If no C compiler was specified, use CC.
 
4328
LTCC=${LTCC-"$CC"}
 
4329
 
 
4330
# If no C compiler flags were specified, use CFLAGS.
 
4331
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4332
 
 
4333
# Allow CC to be a program name with arguments.
 
4334
compiler=$CC
 
4335
 
 
4336
 
 
4337
# Check whether --enable-libtool-lock was given.
 
4338
if test "${enable_libtool_lock+set}" = set; then
 
4339
  enableval=$enable_libtool_lock; 
 
4340
fi
 
4341
 
 
4342
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4343
 
 
4344
# Some flags need to be propagated to the compiler or linker for good
 
4345
# libtool support.
 
4346
case $host in
 
4347
ia64-*-hpux*)
 
4348
  # Find out which ABI we are using.
 
4349
  echo 'int i;' > conftest.$ac_ext
 
4350
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4351
  (eval $ac_compile) 2>&5
 
4352
  ac_status=$?
 
4353
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4354
  (exit $ac_status); }; then
 
4355
    case `/usr/bin/file conftest.$ac_objext` in
 
4356
    *ELF-32*)
 
4357
      HPUX_IA64_MODE="32"
 
4358
      ;;
 
4359
    *ELF-64*)
 
4360
      HPUX_IA64_MODE="64"
 
4361
      ;;
 
4362
    esac
 
4363
  fi
 
4364
  rm -rf conftest*
 
4365
  ;;
 
4366
*-*-irix6*)
 
4367
  # Find out which ABI we are using.
 
4368
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
4369
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4370
  (eval $ac_compile) 2>&5
 
4371
  ac_status=$?
 
4372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4373
  (exit $ac_status); }; then
 
4374
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4375
    case `/usr/bin/file conftest.$ac_objext` in
 
4376
    *32-bit*)
 
4377
      LD="${LD-ld} -melf32bsmip"
 
4378
      ;;
 
4379
    *N32*)
 
4380
      LD="${LD-ld} -melf32bmipn32"
 
4381
      ;;
 
4382
    *64-bit*)
 
4383
      LD="${LD-ld} -melf64bmip"
 
4384
      ;;
 
4385
    esac
 
4386
   else
 
4387
    case `/usr/bin/file conftest.$ac_objext` in
 
4388
    *32-bit*)
 
4389
      LD="${LD-ld} -32"
 
4390
      ;;
 
4391
    *N32*)
 
4392
      LD="${LD-ld} -n32"
 
4393
      ;;
 
4394
    *64-bit*)
 
4395
      LD="${LD-ld} -64"
 
4396
      ;;
 
4397
    esac
 
4398
   fi
 
4399
  fi
 
4400
  rm -rf conftest*
 
4401
  ;;
 
4402
 
 
4403
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4404
s390*-*linux*|sparc*-*linux*)
 
4405
  # Find out which ABI we are using.
 
4406
  echo 'int i;' > conftest.$ac_ext
 
4407
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4408
  (eval $ac_compile) 2>&5
 
4409
  ac_status=$?
 
4410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4411
  (exit $ac_status); }; then
 
4412
    case `/usr/bin/file conftest.o` in
 
4413
    *32-bit*)
 
4414
      case $host in
 
4415
        x86_64-*kfreebsd*-gnu)
 
4416
          LD="${LD-ld} -m elf_i386_fbsd"
 
4417
          ;;
 
4418
        x86_64-*linux*)
 
4419
          LD="${LD-ld} -m elf_i386"
 
4420
          ;;
 
4421
        ppc64-*linux*|powerpc64-*linux*)
 
4422
          LD="${LD-ld} -m elf32ppclinux"
 
4423
          ;;
 
4424
        s390x-*linux*)
 
4425
          LD="${LD-ld} -m elf_s390"
 
4426
          ;;
 
4427
        sparc64-*linux*)
 
4428
          LD="${LD-ld} -m elf32_sparc"
 
4429
          ;;
 
4430
      esac
 
4431
      ;;
 
4432
    *64-bit*)
 
4433
      case $host in
 
4434
        x86_64-*kfreebsd*-gnu)
 
4435
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4436
          ;;
 
4437
        x86_64-*linux*)
 
4438
          LD="${LD-ld} -m elf_x86_64"
 
4439
          ;;
 
4440
        ppc*-*linux*|powerpc*-*linux*)
 
4441
          LD="${LD-ld} -m elf64ppc"
 
4442
          ;;
 
4443
        s390*-*linux*)
 
4444
          LD="${LD-ld} -m elf64_s390"
 
4445
          ;;
 
4446
        sparc*-*linux*)
 
4447
          LD="${LD-ld} -m elf64_sparc"
 
4448
          ;;
 
4449
      esac
 
4450
      ;;
 
4451
    esac
 
4452
  fi
 
4453
  rm -rf conftest*
 
4454
  ;;
 
4455
 
 
4456
*-*-sco3.2v5*)
 
4457
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4458
  SAVE_CFLAGS="$CFLAGS"
 
4459
  CFLAGS="$CFLAGS -belf"
 
4460
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4461
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4462
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4464
else
 
4465
  ac_ext=c
 
4466
ac_cpp='$CPP $CPPFLAGS'
 
4467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4470
 
 
4471
     cat >conftest.$ac_ext <<_ACEOF
 
4472
/* confdefs.h.  */
 
4473
_ACEOF
 
4474
cat confdefs.h >>conftest.$ac_ext
 
4475
cat >>conftest.$ac_ext <<_ACEOF
 
4476
/* end confdefs.h.  */
 
4477
 
 
4478
int
 
4479
main ()
 
4480
{
 
4481
 
 
4482
  ;
 
4483
  return 0;
 
4484
}
 
4485
_ACEOF
 
4486
rm -f conftest.$ac_objext conftest$ac_exeext
 
4487
if { (ac_try="$ac_link"
 
4488
case "(($ac_try" in
 
4489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4490
  *) ac_try_echo=$ac_try;;
 
4491
esac
 
4492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4493
  (eval "$ac_link") 2>conftest.er1
 
4494
  ac_status=$?
 
4495
  grep -v '^ *+' conftest.er1 >conftest.err
 
4496
  rm -f conftest.er1
 
4497
  cat conftest.err >&5
 
4498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4499
  (exit $ac_status); } && {
 
4500
         test -z "$ac_c_werror_flag" ||
 
4501
         test ! -s conftest.err
 
4502
       } && test -s conftest$ac_exeext &&
 
4503
       $as_test_x conftest$ac_exeext; then
 
4504
  lt_cv_cc_needs_belf=yes
 
4505
else
 
4506
  echo "$as_me: failed program was:" >&5
 
4507
sed 's/^/| /' conftest.$ac_ext >&5
 
4508
 
 
4509
        lt_cv_cc_needs_belf=no
 
4510
fi
 
4511
 
 
4512
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4513
      conftest$ac_exeext conftest.$ac_ext
 
4514
     ac_ext=c
 
4515
ac_cpp='$CPP $CPPFLAGS'
 
4516
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4517
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4518
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4519
 
 
4520
fi
 
4521
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4522
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4523
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4524
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4525
    CFLAGS="$SAVE_CFLAGS"
 
4526
  fi
 
4527
  ;;
 
4528
sparc*-*solaris*)
 
4529
  # Find out which ABI we are using.
 
4530
  echo 'int i;' > conftest.$ac_ext
 
4531
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4532
  (eval $ac_compile) 2>&5
 
4533
  ac_status=$?
 
4534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4535
  (exit $ac_status); }; then
 
4536
    case `/usr/bin/file conftest.o` in
 
4537
    *64-bit*)
 
4538
      case $lt_cv_prog_gnu_ld in
 
4539
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4540
      *)
 
4541
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4542
          LD="${LD-ld} -64"
 
4543
        fi
 
4544
        ;;
 
4545
      esac
 
4546
      ;;
 
4547
    esac
 
4548
  fi
 
4549
  rm -rf conftest*
 
4550
  ;;
 
4551
 
 
4552
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
4553
  if test -n "$ac_tool_prefix"; then
 
4554
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
4555
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
4556
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4557
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4558
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
4559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4560
else
 
4561
  if test -n "$DLLTOOL"; then
 
4562
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
4563
else
 
4564
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4565
for as_dir in $PATH
 
4566
do
 
4567
  IFS=$as_save_IFS
 
4568
  test -z "$as_dir" && as_dir=.
 
4569
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4570
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4571
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
4572
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4573
    break 2
 
4574
  fi
 
4575
done
 
4576
done
 
4577
IFS=$as_save_IFS
 
4578
 
 
4579
fi
 
4580
fi
 
4581
DLLTOOL=$ac_cv_prog_DLLTOOL
 
4582
if test -n "$DLLTOOL"; then
 
4583
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
4584
echo "${ECHO_T}$DLLTOOL" >&6; }
 
4585
else
 
4586
  { echo "$as_me:$LINENO: result: no" >&5
 
4587
echo "${ECHO_T}no" >&6; }
 
4588
fi
 
4589
 
 
4590
 
 
4591
fi
 
4592
if test -z "$ac_cv_prog_DLLTOOL"; then
 
4593
  ac_ct_DLLTOOL=$DLLTOOL
 
4594
  # Extract the first word of "dlltool", so it can be a program name with args.
 
4595
set dummy dlltool; ac_word=$2
 
4596
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4597
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4598
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
4599
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4600
else
 
4601
  if test -n "$ac_ct_DLLTOOL"; then
 
4602
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
4603
else
 
4604
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4605
for as_dir in $PATH
 
4606
do
 
4607
  IFS=$as_save_IFS
 
4608
  test -z "$as_dir" && as_dir=.
 
4609
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4610
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4611
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
4612
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4613
    break 2
 
4614
  fi
 
4615
done
 
4616
done
 
4617
IFS=$as_save_IFS
 
4618
 
 
4619
fi
 
4620
fi
 
4621
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
4622
if test -n "$ac_ct_DLLTOOL"; then
 
4623
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
4624
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
 
4625
else
 
4626
  { echo "$as_me:$LINENO: result: no" >&5
 
4627
echo "${ECHO_T}no" >&6; }
 
4628
fi
 
4629
 
 
4630
  if test "x$ac_ct_DLLTOOL" = x; then
 
4631
    DLLTOOL="false"
 
4632
  else
 
4633
    case $cross_compiling:$ac_tool_warned in
 
4634
yes:)
 
4635
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4636
whose name does not start with the host triplet.  If you think this
 
4637
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4638
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4639
whose name does not start with the host triplet.  If you think this
 
4640
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4641
ac_tool_warned=yes ;;
 
4642
esac
 
4643
    DLLTOOL=$ac_ct_DLLTOOL
 
4644
  fi
 
4645
else
 
4646
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
4647
fi
 
4648
 
 
4649
  if test -n "$ac_tool_prefix"; then
 
4650
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
4651
set dummy ${ac_tool_prefix}as; ac_word=$2
 
4652
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4654
if test "${ac_cv_prog_AS+set}" = set; then
 
4655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4656
else
 
4657
  if test -n "$AS"; then
 
4658
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
4659
else
 
4660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4661
for as_dir in $PATH
 
4662
do
 
4663
  IFS=$as_save_IFS
 
4664
  test -z "$as_dir" && as_dir=.
 
4665
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4666
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4667
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
4668
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4669
    break 2
 
4670
  fi
 
4671
done
 
4672
done
 
4673
IFS=$as_save_IFS
 
4674
 
 
4675
fi
 
4676
fi
 
4677
AS=$ac_cv_prog_AS
 
4678
if test -n "$AS"; then
 
4679
  { echo "$as_me:$LINENO: result: $AS" >&5
 
4680
echo "${ECHO_T}$AS" >&6; }
 
4681
else
 
4682
  { echo "$as_me:$LINENO: result: no" >&5
 
4683
echo "${ECHO_T}no" >&6; }
 
4684
fi
 
4685
 
 
4686
 
 
4687
fi
 
4688
if test -z "$ac_cv_prog_AS"; then
 
4689
  ac_ct_AS=$AS
 
4690
  # Extract the first word of "as", so it can be a program name with args.
 
4691
set dummy as; ac_word=$2
 
4692
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4693
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4694
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
4695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4696
else
 
4697
  if test -n "$ac_ct_AS"; then
 
4698
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
4699
else
 
4700
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4701
for as_dir in $PATH
 
4702
do
 
4703
  IFS=$as_save_IFS
 
4704
  test -z "$as_dir" && as_dir=.
 
4705
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4706
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4707
    ac_cv_prog_ac_ct_AS="as"
 
4708
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4709
    break 2
 
4710
  fi
 
4711
done
 
4712
done
 
4713
IFS=$as_save_IFS
 
4714
 
 
4715
fi
 
4716
fi
 
4717
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
4718
if test -n "$ac_ct_AS"; then
 
4719
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
4720
echo "${ECHO_T}$ac_ct_AS" >&6; }
 
4721
else
 
4722
  { echo "$as_me:$LINENO: result: no" >&5
 
4723
echo "${ECHO_T}no" >&6; }
 
4724
fi
 
4725
 
 
4726
  if test "x$ac_ct_AS" = x; then
 
4727
    AS="false"
 
4728
  else
 
4729
    case $cross_compiling:$ac_tool_warned in
 
4730
yes:)
 
4731
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4732
whose name does not start with the host triplet.  If you think this
 
4733
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4734
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4735
whose name does not start with the host triplet.  If you think this
 
4736
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4737
ac_tool_warned=yes ;;
 
4738
esac
 
4739
    AS=$ac_ct_AS
 
4740
  fi
 
4741
else
 
4742
  AS="$ac_cv_prog_AS"
 
4743
fi
 
4744
 
 
4745
  if test -n "$ac_tool_prefix"; then
 
4746
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
4747
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
4748
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4750
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
4751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4752
else
 
4753
  if test -n "$OBJDUMP"; then
 
4754
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
4755
else
 
4756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4757
for as_dir in $PATH
 
4758
do
 
4759
  IFS=$as_save_IFS
 
4760
  test -z "$as_dir" && as_dir=.
 
4761
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4762
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4763
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
4764
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4765
    break 2
 
4766
  fi
 
4767
done
 
4768
done
 
4769
IFS=$as_save_IFS
 
4770
 
 
4771
fi
 
4772
fi
 
4773
OBJDUMP=$ac_cv_prog_OBJDUMP
 
4774
if test -n "$OBJDUMP"; then
 
4775
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
4776
echo "${ECHO_T}$OBJDUMP" >&6; }
 
4777
else
 
4778
  { echo "$as_me:$LINENO: result: no" >&5
 
4779
echo "${ECHO_T}no" >&6; }
 
4780
fi
 
4781
 
 
4782
 
 
4783
fi
 
4784
if test -z "$ac_cv_prog_OBJDUMP"; then
 
4785
  ac_ct_OBJDUMP=$OBJDUMP
 
4786
  # Extract the first word of "objdump", so it can be a program name with args.
 
4787
set dummy objdump; ac_word=$2
 
4788
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4790
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
4791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4792
else
 
4793
  if test -n "$ac_ct_OBJDUMP"; then
 
4794
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
4795
else
 
4796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4797
for as_dir in $PATH
 
4798
do
 
4799
  IFS=$as_save_IFS
 
4800
  test -z "$as_dir" && as_dir=.
 
4801
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4802
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4803
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
4804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4805
    break 2
 
4806
  fi
 
4807
done
 
4808
done
 
4809
IFS=$as_save_IFS
 
4810
 
 
4811
fi
 
4812
fi
 
4813
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
4814
if test -n "$ac_ct_OBJDUMP"; then
 
4815
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
4816
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
4817
else
 
4818
  { echo "$as_me:$LINENO: result: no" >&5
 
4819
echo "${ECHO_T}no" >&6; }
 
4820
fi
 
4821
 
 
4822
  if test "x$ac_ct_OBJDUMP" = x; then
 
4823
    OBJDUMP="false"
 
4824
  else
 
4825
    case $cross_compiling:$ac_tool_warned in
 
4826
yes:)
 
4827
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
4828
whose name does not start with the host triplet.  If you think this
 
4829
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
4830
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
4831
whose name does not start with the host triplet.  If you think this
 
4832
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
4833
ac_tool_warned=yes ;;
 
4834
esac
 
4835
    OBJDUMP=$ac_ct_OBJDUMP
 
4836
  fi
 
4837
else
 
4838
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
4839
fi
 
4840
 
 
4841
  ;;
 
4842
  
 
4843
esac
 
4844
 
 
4845
need_locks="$enable_libtool_lock"
 
4846
 
 
4847
 
 
4848
ac_ext=c
 
4849
ac_cpp='$CPP $CPPFLAGS'
 
4850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4853
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4854
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4855
# On Suns, sometimes $CPP names a directory.
 
4856
if test -n "$CPP" && test -d "$CPP"; then
 
4857
  CPP=
 
4858
fi
 
4859
if test -z "$CPP"; then
 
4860
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4862
else
 
4863
      # Double quotes because CPP needs to be expanded
 
4864
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4865
    do
 
4866
      ac_preproc_ok=false
 
4867
for ac_c_preproc_warn_flag in '' yes
 
4868
do
 
4869
  # Use a header file that comes with gcc, so configuring glibc
 
4870
  # with a fresh cross-compiler works.
 
4871
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4872
  # <limits.h> exists even on freestanding compilers.
 
4873
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4874
  # not just through cpp. "Syntax error" is here to catch this case.
 
4875
  cat >conftest.$ac_ext <<_ACEOF
 
4876
/* confdefs.h.  */
 
4877
_ACEOF
 
4878
cat confdefs.h >>conftest.$ac_ext
 
4879
cat >>conftest.$ac_ext <<_ACEOF
 
4880
/* end confdefs.h.  */
 
4881
@%:@ifdef __STDC__
 
4882
@%:@ include <limits.h>
 
4883
@%:@else
 
4884
@%:@ include <assert.h>
 
4885
@%:@endif
 
4886
                     Syntax error
 
4887
_ACEOF
 
4888
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4889
case "(($ac_try" in
 
4890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4891
  *) ac_try_echo=$ac_try;;
 
4892
esac
 
4893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4894
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4895
  ac_status=$?
 
4896
  grep -v '^ *+' conftest.er1 >conftest.err
 
4897
  rm -f conftest.er1
 
4898
  cat conftest.err >&5
 
4899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4900
  (exit $ac_status); } >/dev/null && {
 
4901
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4902
         test ! -s conftest.err
 
4903
       }; then
 
4904
  :
 
4905
else
 
4906
  echo "$as_me: failed program was:" >&5
 
4907
sed 's/^/| /' conftest.$ac_ext >&5
 
4908
 
 
4909
  # Broken: fails on valid input.
 
4910
continue
 
4911
fi
 
4912
 
 
4913
rm -f conftest.err conftest.$ac_ext
 
4914
 
 
4915
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4916
  # can be detected and how.
 
4917
  cat >conftest.$ac_ext <<_ACEOF
 
4918
/* confdefs.h.  */
 
4919
_ACEOF
 
4920
cat confdefs.h >>conftest.$ac_ext
 
4921
cat >>conftest.$ac_ext <<_ACEOF
 
4922
/* end confdefs.h.  */
 
4923
@%:@include <ac_nonexistent.h>
 
4924
_ACEOF
 
4925
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4926
case "(($ac_try" in
 
4927
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4928
  *) ac_try_echo=$ac_try;;
 
4929
esac
 
4930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4931
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4932
  ac_status=$?
 
4933
  grep -v '^ *+' conftest.er1 >conftest.err
 
4934
  rm -f conftest.er1
 
4935
  cat conftest.err >&5
 
4936
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4937
  (exit $ac_status); } >/dev/null && {
 
4938
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4939
         test ! -s conftest.err
 
4940
       }; then
 
4941
  # Broken: success on invalid input.
 
4942
continue
 
4943
else
 
4944
  echo "$as_me: failed program was:" >&5
 
4945
sed 's/^/| /' conftest.$ac_ext >&5
 
4946
 
 
4947
  # Passes both tests.
 
4948
ac_preproc_ok=:
 
4949
break
 
4950
fi
 
4951
 
 
4952
rm -f conftest.err conftest.$ac_ext
 
4953
 
 
4954
done
 
4955
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4956
rm -f conftest.err conftest.$ac_ext
 
4957
if $ac_preproc_ok; then
 
4958
  break
 
4959
fi
 
4960
 
 
4961
    done
 
4962
    ac_cv_prog_CPP=$CPP
 
4963
  
 
4964
fi
 
4965
  CPP=$ac_cv_prog_CPP
 
4966
else
 
4967
  ac_cv_prog_CPP=$CPP
 
4968
fi
 
4969
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4970
echo "${ECHO_T}$CPP" >&6; }
 
4971
ac_preproc_ok=false
 
4972
for ac_c_preproc_warn_flag in '' yes
 
4973
do
 
4974
  # Use a header file that comes with gcc, so configuring glibc
 
4975
  # with a fresh cross-compiler works.
 
4976
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4977
  # <limits.h> exists even on freestanding compilers.
 
4978
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4979
  # not just through cpp. "Syntax error" is here to catch this case.
 
4980
  cat >conftest.$ac_ext <<_ACEOF
 
4981
/* confdefs.h.  */
 
4982
_ACEOF
 
4983
cat confdefs.h >>conftest.$ac_ext
 
4984
cat >>conftest.$ac_ext <<_ACEOF
 
4985
/* end confdefs.h.  */
 
4986
@%:@ifdef __STDC__
 
4987
@%:@ include <limits.h>
 
4988
@%:@else
 
4989
@%:@ include <assert.h>
 
4990
@%:@endif
 
4991
                     Syntax error
 
4992
_ACEOF
 
4993
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4994
case "(($ac_try" in
 
4995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4996
  *) ac_try_echo=$ac_try;;
 
4997
esac
 
4998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4999
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5000
  ac_status=$?
 
5001
  grep -v '^ *+' conftest.er1 >conftest.err
 
5002
  rm -f conftest.er1
 
5003
  cat conftest.err >&5
 
5004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5005
  (exit $ac_status); } >/dev/null && {
 
5006
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5007
         test ! -s conftest.err
 
5008
       }; then
 
5009
  :
 
5010
else
 
5011
  echo "$as_me: failed program was:" >&5
 
5012
sed 's/^/| /' conftest.$ac_ext >&5
 
5013
 
 
5014
  # Broken: fails on valid input.
 
5015
continue
 
5016
fi
 
5017
 
 
5018
rm -f conftest.err conftest.$ac_ext
 
5019
 
 
5020
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5021
  # can be detected and how.
 
5022
  cat >conftest.$ac_ext <<_ACEOF
 
5023
/* confdefs.h.  */
 
5024
_ACEOF
 
5025
cat confdefs.h >>conftest.$ac_ext
 
5026
cat >>conftest.$ac_ext <<_ACEOF
 
5027
/* end confdefs.h.  */
 
5028
@%:@include <ac_nonexistent.h>
 
5029
_ACEOF
 
5030
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5031
case "(($ac_try" in
 
5032
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5033
  *) ac_try_echo=$ac_try;;
 
5034
esac
 
5035
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5036
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5037
  ac_status=$?
 
5038
  grep -v '^ *+' conftest.er1 >conftest.err
 
5039
  rm -f conftest.er1
 
5040
  cat conftest.err >&5
 
5041
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5042
  (exit $ac_status); } >/dev/null && {
 
5043
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5044
         test ! -s conftest.err
 
5045
       }; then
 
5046
  # Broken: success on invalid input.
 
5047
continue
 
5048
else
 
5049
  echo "$as_me: failed program was:" >&5
 
5050
sed 's/^/| /' conftest.$ac_ext >&5
 
5051
 
 
5052
  # Passes both tests.
 
5053
ac_preproc_ok=:
 
5054
break
 
5055
fi
 
5056
 
 
5057
rm -f conftest.err conftest.$ac_ext
 
5058
 
 
5059
done
 
5060
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5061
rm -f conftest.err conftest.$ac_ext
 
5062
if $ac_preproc_ok; then
 
5063
  :
 
5064
else
 
5065
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5066
See \`config.log' for more details." >&5
 
5067
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5068
See \`config.log' for more details." >&2;}
 
5069
   { (exit 1); exit 1; }; }
 
5070
fi
 
5071
 
 
5072
ac_ext=c
 
5073
ac_cpp='$CPP $CPPFLAGS'
 
5074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5077
 
 
5078
 
 
5079
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5080
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5081
if test "${ac_cv_header_stdc+set}" = set; then
 
5082
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5083
else
 
5084
  cat >conftest.$ac_ext <<_ACEOF
 
5085
/* confdefs.h.  */
 
5086
_ACEOF
 
5087
cat confdefs.h >>conftest.$ac_ext
 
5088
cat >>conftest.$ac_ext <<_ACEOF
 
5089
/* end confdefs.h.  */
 
5090
#include <stdlib.h>
 
5091
#include <stdarg.h>
 
5092
#include <string.h>
 
5093
#include <float.h>
 
5094
 
 
5095
int
 
5096
main ()
 
5097
{
 
5098
 
 
5099
  ;
 
5100
  return 0;
 
5101
}
 
5102
_ACEOF
 
5103
rm -f conftest.$ac_objext
 
5104
if { (ac_try="$ac_compile"
 
5105
case "(($ac_try" in
 
5106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5107
  *) ac_try_echo=$ac_try;;
 
5108
esac
 
5109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5110
  (eval "$ac_compile") 2>conftest.er1
 
5111
  ac_status=$?
 
5112
  grep -v '^ *+' conftest.er1 >conftest.err
 
5113
  rm -f conftest.er1
 
5114
  cat conftest.err >&5
 
5115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5116
  (exit $ac_status); } && {
 
5117
         test -z "$ac_c_werror_flag" ||
 
5118
         test ! -s conftest.err
 
5119
       } && test -s conftest.$ac_objext; then
 
5120
  ac_cv_header_stdc=yes
 
5121
else
 
5122
  echo "$as_me: failed program was:" >&5
 
5123
sed 's/^/| /' conftest.$ac_ext >&5
 
5124
 
 
5125
        ac_cv_header_stdc=no
 
5126
fi
 
5127
 
 
5128
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5129
 
 
5130
if test $ac_cv_header_stdc = yes; then
 
5131
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5132
  cat >conftest.$ac_ext <<_ACEOF
 
5133
/* confdefs.h.  */
 
5134
_ACEOF
 
5135
cat confdefs.h >>conftest.$ac_ext
 
5136
cat >>conftest.$ac_ext <<_ACEOF
 
5137
/* end confdefs.h.  */
 
5138
#include <string.h>
 
5139
 
 
5140
_ACEOF
 
5141
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5142
  $EGREP "memchr" >/dev/null 2>&1; then
 
5143
  :
 
5144
else
 
5145
  ac_cv_header_stdc=no
 
5146
fi
 
5147
rm -f conftest*
 
5148
 
 
5149
fi
 
5150
 
 
5151
if test $ac_cv_header_stdc = yes; then
 
5152
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5153
  cat >conftest.$ac_ext <<_ACEOF
 
5154
/* confdefs.h.  */
 
5155
_ACEOF
 
5156
cat confdefs.h >>conftest.$ac_ext
 
5157
cat >>conftest.$ac_ext <<_ACEOF
 
5158
/* end confdefs.h.  */
 
5159
#include <stdlib.h>
 
5160
 
 
5161
_ACEOF
 
5162
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5163
  $EGREP "free" >/dev/null 2>&1; then
 
5164
  :
 
5165
else
 
5166
  ac_cv_header_stdc=no
 
5167
fi
 
5168
rm -f conftest*
 
5169
 
 
5170
fi
 
5171
 
 
5172
if test $ac_cv_header_stdc = yes; then
 
5173
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5174
  if test "$cross_compiling" = yes; then
 
5175
  :
 
5176
else
 
5177
  cat >conftest.$ac_ext <<_ACEOF
 
5178
/* confdefs.h.  */
 
5179
_ACEOF
 
5180
cat confdefs.h >>conftest.$ac_ext
 
5181
cat >>conftest.$ac_ext <<_ACEOF
 
5182
/* end confdefs.h.  */
 
5183
#include <ctype.h>
 
5184
#include <stdlib.h>
 
5185
#if ((' ' & 0x0FF) == 0x020)
 
5186
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5187
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5188
#else
 
5189
# define ISLOWER(c) \
 
5190
                   (('a' <= (c) && (c) <= 'i') \
 
5191
                     || ('j' <= (c) && (c) <= 'r') \
 
5192
                     || ('s' <= (c) && (c) <= 'z'))
 
5193
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5194
#endif
 
5195
 
 
5196
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5197
int
 
5198
main ()
 
5199
{
 
5200
  int i;
 
5201
  for (i = 0; i < 256; i++)
 
5202
    if (XOR (islower (i), ISLOWER (i))
 
5203
        || toupper (i) != TOUPPER (i))
 
5204
      return 2;
 
5205
  return 0;
 
5206
}
 
5207
_ACEOF
 
5208
rm -f conftest$ac_exeext
 
5209
if { (ac_try="$ac_link"
 
5210
case "(($ac_try" in
 
5211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5212
  *) ac_try_echo=$ac_try;;
 
5213
esac
 
5214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5215
  (eval "$ac_link") 2>&5
 
5216
  ac_status=$?
 
5217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5218
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5219
  { (case "(($ac_try" in
 
5220
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5221
  *) ac_try_echo=$ac_try;;
 
5222
esac
 
5223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5224
  (eval "$ac_try") 2>&5
 
5225
  ac_status=$?
 
5226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5227
  (exit $ac_status); }; }; then
 
5228
  :
 
5229
else
 
5230
  echo "$as_me: program exited with status $ac_status" >&5
 
5231
echo "$as_me: failed program was:" >&5
 
5232
sed 's/^/| /' conftest.$ac_ext >&5
 
5233
 
 
5234
( exit $ac_status )
 
5235
ac_cv_header_stdc=no
 
5236
fi
 
5237
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5238
fi
 
5239
 
 
5240
 
 
5241
fi
 
5242
fi
 
5243
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5244
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5245
if test $ac_cv_header_stdc = yes; then
 
5246
  
 
5247
cat >>confdefs.h <<\_ACEOF
 
5248
@%:@define STDC_HEADERS 1
 
5249
_ACEOF
 
5250
 
 
5251
fi
 
5252
 
 
5253
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5254
 
 
5255
 
 
5256
 
 
5257
 
 
5258
 
 
5259
 
 
5260
 
 
5261
 
 
5262
 
 
5263
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5264
                  inttypes.h stdint.h unistd.h
 
5265
do
 
5266
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5267
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5268
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5269
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5270
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5271
else
 
5272
  cat >conftest.$ac_ext <<_ACEOF
 
5273
/* confdefs.h.  */
 
5274
_ACEOF
 
5275
cat confdefs.h >>conftest.$ac_ext
 
5276
cat >>conftest.$ac_ext <<_ACEOF
 
5277
/* end confdefs.h.  */
 
5278
$ac_includes_default
 
5279
 
 
5280
@%:@include <$ac_header>
 
5281
_ACEOF
 
5282
rm -f conftest.$ac_objext
 
5283
if { (ac_try="$ac_compile"
 
5284
case "(($ac_try" in
 
5285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5286
  *) ac_try_echo=$ac_try;;
 
5287
esac
 
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5289
  (eval "$ac_compile") 2>conftest.er1
 
5290
  ac_status=$?
 
5291
  grep -v '^ *+' conftest.er1 >conftest.err
 
5292
  rm -f conftest.er1
 
5293
  cat conftest.err >&5
 
5294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5295
  (exit $ac_status); } && {
 
5296
         test -z "$ac_c_werror_flag" ||
 
5297
         test ! -s conftest.err
 
5298
       } && test -s conftest.$ac_objext; then
 
5299
  eval "$as_ac_Header=yes"
 
5300
else
 
5301
  echo "$as_me: failed program was:" >&5
 
5302
sed 's/^/| /' conftest.$ac_ext >&5
 
5303
 
 
5304
        eval "$as_ac_Header=no"
 
5305
fi
 
5306
 
 
5307
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5308
fi
 
5309
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5310
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5311
echo "${ECHO_T}$ac_res" >&6; }
 
5312
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5313
  cat >>confdefs.h <<_ACEOF
 
5314
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5315
_ACEOF
 
5316
 
 
5317
fi
 
5318
 
 
5319
done
 
5320
 
 
5321
 
 
5322
 
 
5323
for ac_header in dlfcn.h
 
5324
do
 
5325
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5326
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5327
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5328
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5329
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5330
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5331
fi
 
5332
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5333
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5334
echo "${ECHO_T}$ac_res" >&6; }
 
5335
else
 
5336
  # Is the header compilable?
 
5337
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5338
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5339
cat >conftest.$ac_ext <<_ACEOF
 
5340
/* confdefs.h.  */
 
5341
_ACEOF
 
5342
cat confdefs.h >>conftest.$ac_ext
 
5343
cat >>conftest.$ac_ext <<_ACEOF
 
5344
/* end confdefs.h.  */
 
5345
$ac_includes_default
 
5346
@%:@include <$ac_header>
 
5347
_ACEOF
 
5348
rm -f conftest.$ac_objext
 
5349
if { (ac_try="$ac_compile"
 
5350
case "(($ac_try" in
 
5351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5352
  *) ac_try_echo=$ac_try;;
 
5353
esac
 
5354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5355
  (eval "$ac_compile") 2>conftest.er1
 
5356
  ac_status=$?
 
5357
  grep -v '^ *+' conftest.er1 >conftest.err
 
5358
  rm -f conftest.er1
 
5359
  cat conftest.err >&5
 
5360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5361
  (exit $ac_status); } && {
 
5362
         test -z "$ac_c_werror_flag" ||
 
5363
         test ! -s conftest.err
 
5364
       } && test -s conftest.$ac_objext; then
 
5365
  ac_header_compiler=yes
 
5366
else
 
5367
  echo "$as_me: failed program was:" >&5
 
5368
sed 's/^/| /' conftest.$ac_ext >&5
 
5369
 
 
5370
        ac_header_compiler=no
 
5371
fi
 
5372
 
 
5373
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5374
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5375
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5376
 
 
5377
# Is the header present?
 
5378
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5379
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5380
cat >conftest.$ac_ext <<_ACEOF
 
5381
/* confdefs.h.  */
 
5382
_ACEOF
 
5383
cat confdefs.h >>conftest.$ac_ext
 
5384
cat >>conftest.$ac_ext <<_ACEOF
 
5385
/* end confdefs.h.  */
 
5386
@%:@include <$ac_header>
 
5387
_ACEOF
 
5388
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5389
case "(($ac_try" in
 
5390
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5391
  *) ac_try_echo=$ac_try;;
 
5392
esac
 
5393
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5394
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5395
  ac_status=$?
 
5396
  grep -v '^ *+' conftest.er1 >conftest.err
 
5397
  rm -f conftest.er1
 
5398
  cat conftest.err >&5
 
5399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5400
  (exit $ac_status); } >/dev/null && {
 
5401
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5402
         test ! -s conftest.err
 
5403
       }; then
 
5404
  ac_header_preproc=yes
 
5405
else
 
5406
  echo "$as_me: failed program was:" >&5
 
5407
sed 's/^/| /' conftest.$ac_ext >&5
 
5408
 
 
5409
  ac_header_preproc=no
 
5410
fi
 
5411
 
 
5412
rm -f conftest.err conftest.$ac_ext
 
5413
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5414
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5415
 
 
5416
# So?  What about this header?
 
5417
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5418
  yes:no: )
 
5419
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5420
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5421
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5422
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5423
    ac_header_preproc=yes
 
5424
    ;;
 
5425
  no:yes:* )
 
5426
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5427
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5428
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5429
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5430
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5431
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5432
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5433
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5434
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5435
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5436
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5437
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5438
    
 
5439
    ;;
 
5440
esac
 
5441
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5442
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5443
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5445
else
 
5446
  eval "$as_ac_Header=\$ac_header_preproc"
 
5447
fi
 
5448
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5449
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5450
echo "${ECHO_T}$ac_res" >&6; }
 
5451
 
 
5452
fi
 
5453
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5454
  cat >>confdefs.h <<_ACEOF
 
5455
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5456
_ACEOF
 
5457
 
 
5458
fi
 
5459
 
 
5460
done
 
5461
 
 
5462
ac_ext=cpp
 
5463
ac_cpp='$CXXCPP $CPPFLAGS'
 
5464
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5465
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5466
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5467
if test -z "$CXX"; then
 
5468
  if test -n "$CCC"; then
 
5469
    CXX=$CCC
 
5470
  else
 
5471
    if test -n "$ac_tool_prefix"; then
 
5472
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5473
  do
 
5474
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5475
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5476
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5477
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5478
if test "${ac_cv_prog_CXX+set}" = set; then
 
5479
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5480
else
 
5481
  if test -n "$CXX"; then
 
5482
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5483
else
 
5484
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5485
for as_dir in $PATH
 
5486
do
 
5487
  IFS=$as_save_IFS
 
5488
  test -z "$as_dir" && as_dir=.
 
5489
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5490
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5491
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5492
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5493
    break 2
 
5494
  fi
 
5495
done
 
5496
done
 
5497
IFS=$as_save_IFS
 
5498
 
 
5499
fi
 
5500
fi
 
5501
CXX=$ac_cv_prog_CXX
 
5502
if test -n "$CXX"; then
 
5503
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5504
echo "${ECHO_T}$CXX" >&6; }
 
5505
else
 
5506
  { echo "$as_me:$LINENO: result: no" >&5
 
5507
echo "${ECHO_T}no" >&6; }
 
5508
fi
 
5509
 
 
5510
 
 
5511
    test -n "$CXX" && break
 
5512
  done
 
5513
fi
 
5514
if test -z "$CXX"; then
 
5515
  ac_ct_CXX=$CXX
 
5516
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5517
do
 
5518
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5519
set dummy $ac_prog; ac_word=$2
 
5520
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5522
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5523
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5524
else
 
5525
  if test -n "$ac_ct_CXX"; then
 
5526
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5527
else
 
5528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5529
for as_dir in $PATH
 
5530
do
 
5531
  IFS=$as_save_IFS
 
5532
  test -z "$as_dir" && as_dir=.
 
5533
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5534
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5535
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5536
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5537
    break 2
 
5538
  fi
 
5539
done
 
5540
done
 
5541
IFS=$as_save_IFS
 
5542
 
 
5543
fi
 
5544
fi
 
5545
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5546
if test -n "$ac_ct_CXX"; then
 
5547
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5548
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5549
else
 
5550
  { echo "$as_me:$LINENO: result: no" >&5
 
5551
echo "${ECHO_T}no" >&6; }
 
5552
fi
 
5553
 
 
5554
 
 
5555
  test -n "$ac_ct_CXX" && break
 
5556
done
 
5557
 
 
5558
  if test "x$ac_ct_CXX" = x; then
 
5559
    CXX="g++"
 
5560
  else
 
5561
    case $cross_compiling:$ac_tool_warned in
 
5562
yes:)
 
5563
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5564
whose name does not start with the host triplet.  If you think this
 
5565
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5566
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5567
whose name does not start with the host triplet.  If you think this
 
5568
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5569
ac_tool_warned=yes ;;
 
5570
esac
 
5571
    CXX=$ac_ct_CXX
 
5572
  fi
 
5573
fi
 
5574
 
 
5575
  fi
 
5576
fi
 
5577
# Provide some information about the compiler.
 
5578
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5579
ac_compiler=`set X $ac_compile; echo $2`
 
5580
{ (ac_try="$ac_compiler --version >&5"
 
5581
case "(($ac_try" in
 
5582
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5583
  *) ac_try_echo=$ac_try;;
 
5584
esac
 
5585
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5586
  (eval "$ac_compiler --version >&5") 2>&5
 
5587
  ac_status=$?
 
5588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5589
  (exit $ac_status); }
 
5590
{ (ac_try="$ac_compiler -v >&5"
 
5591
case "(($ac_try" in
 
5592
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5593
  *) ac_try_echo=$ac_try;;
 
5594
esac
 
5595
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5596
  (eval "$ac_compiler -v >&5") 2>&5
 
5597
  ac_status=$?
 
5598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5599
  (exit $ac_status); }
 
5600
{ (ac_try="$ac_compiler -V >&5"
 
5601
case "(($ac_try" in
 
5602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5603
  *) ac_try_echo=$ac_try;;
 
5604
esac
 
5605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5606
  (eval "$ac_compiler -V >&5") 2>&5
 
5607
  ac_status=$?
 
5608
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5609
  (exit $ac_status); }
 
5610
 
 
5611
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5612
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5613
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5615
else
 
5616
  cat >conftest.$ac_ext <<_ACEOF
 
5617
/* confdefs.h.  */
 
5618
_ACEOF
 
5619
cat confdefs.h >>conftest.$ac_ext
 
5620
cat >>conftest.$ac_ext <<_ACEOF
 
5621
/* end confdefs.h.  */
 
5622
 
 
5623
int
 
5624
main ()
 
5625
{
 
5626
#ifndef __GNUC__
 
5627
       choke me
 
5628
#endif
 
5629
 
 
5630
  ;
 
5631
  return 0;
 
5632
}
 
5633
_ACEOF
 
5634
rm -f conftest.$ac_objext
 
5635
if { (ac_try="$ac_compile"
 
5636
case "(($ac_try" in
 
5637
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5638
  *) ac_try_echo=$ac_try;;
 
5639
esac
 
5640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5641
  (eval "$ac_compile") 2>conftest.er1
 
5642
  ac_status=$?
 
5643
  grep -v '^ *+' conftest.er1 >conftest.err
 
5644
  rm -f conftest.er1
 
5645
  cat conftest.err >&5
 
5646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5647
  (exit $ac_status); } && {
 
5648
         test -z "$ac_cxx_werror_flag" ||
 
5649
         test ! -s conftest.err
 
5650
       } && test -s conftest.$ac_objext; then
 
5651
  ac_compiler_gnu=yes
 
5652
else
 
5653
  echo "$as_me: failed program was:" >&5
 
5654
sed 's/^/| /' conftest.$ac_ext >&5
 
5655
 
 
5656
        ac_compiler_gnu=no
 
5657
fi
 
5658
 
 
5659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5660
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5661
 
 
5662
fi
 
5663
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5664
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5665
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5666
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5667
ac_save_CXXFLAGS=$CXXFLAGS
 
5668
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5669
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5670
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5672
else
 
5673
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5674
   ac_cxx_werror_flag=yes
 
5675
   ac_cv_prog_cxx_g=no
 
5676
   CXXFLAGS="-g"
 
5677
   cat >conftest.$ac_ext <<_ACEOF
 
5678
/* confdefs.h.  */
 
5679
_ACEOF
 
5680
cat confdefs.h >>conftest.$ac_ext
 
5681
cat >>conftest.$ac_ext <<_ACEOF
 
5682
/* end confdefs.h.  */
 
5683
 
 
5684
int
 
5685
main ()
 
5686
{
 
5687
 
 
5688
  ;
 
5689
  return 0;
 
5690
}
 
5691
_ACEOF
 
5692
rm -f conftest.$ac_objext
 
5693
if { (ac_try="$ac_compile"
 
5694
case "(($ac_try" in
 
5695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5696
  *) ac_try_echo=$ac_try;;
 
5697
esac
 
5698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5699
  (eval "$ac_compile") 2>conftest.er1
 
5700
  ac_status=$?
 
5701
  grep -v '^ *+' conftest.er1 >conftest.err
 
5702
  rm -f conftest.er1
 
5703
  cat conftest.err >&5
 
5704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5705
  (exit $ac_status); } && {
 
5706
         test -z "$ac_cxx_werror_flag" ||
 
5707
         test ! -s conftest.err
 
5708
       } && test -s conftest.$ac_objext; then
 
5709
  ac_cv_prog_cxx_g=yes
 
5710
else
 
5711
  echo "$as_me: failed program was:" >&5
 
5712
sed 's/^/| /' conftest.$ac_ext >&5
 
5713
 
 
5714
        CXXFLAGS=""
 
5715
      cat >conftest.$ac_ext <<_ACEOF
 
5716
/* confdefs.h.  */
 
5717
_ACEOF
 
5718
cat confdefs.h >>conftest.$ac_ext
 
5719
cat >>conftest.$ac_ext <<_ACEOF
 
5720
/* end confdefs.h.  */
 
5721
 
 
5722
int
 
5723
main ()
 
5724
{
 
5725
 
 
5726
  ;
 
5727
  return 0;
 
5728
}
 
5729
_ACEOF
 
5730
rm -f conftest.$ac_objext
 
5731
if { (ac_try="$ac_compile"
 
5732
case "(($ac_try" in
 
5733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5734
  *) ac_try_echo=$ac_try;;
 
5735
esac
 
5736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5737
  (eval "$ac_compile") 2>conftest.er1
 
5738
  ac_status=$?
 
5739
  grep -v '^ *+' conftest.er1 >conftest.err
 
5740
  rm -f conftest.er1
 
5741
  cat conftest.err >&5
 
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5743
  (exit $ac_status); } && {
 
5744
         test -z "$ac_cxx_werror_flag" ||
 
5745
         test ! -s conftest.err
 
5746
       } && test -s conftest.$ac_objext; then
 
5747
  :
 
5748
else
 
5749
  echo "$as_me: failed program was:" >&5
 
5750
sed 's/^/| /' conftest.$ac_ext >&5
 
5751
 
 
5752
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5753
         CXXFLAGS="-g"
 
5754
         cat >conftest.$ac_ext <<_ACEOF
 
5755
/* confdefs.h.  */
 
5756
_ACEOF
 
5757
cat confdefs.h >>conftest.$ac_ext
 
5758
cat >>conftest.$ac_ext <<_ACEOF
 
5759
/* end confdefs.h.  */
 
5760
 
 
5761
int
 
5762
main ()
 
5763
{
 
5764
 
 
5765
  ;
 
5766
  return 0;
 
5767
}
 
5768
_ACEOF
 
5769
rm -f conftest.$ac_objext
 
5770
if { (ac_try="$ac_compile"
 
5771
case "(($ac_try" in
 
5772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5773
  *) ac_try_echo=$ac_try;;
 
5774
esac
 
5775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5776
  (eval "$ac_compile") 2>conftest.er1
 
5777
  ac_status=$?
 
5778
  grep -v '^ *+' conftest.er1 >conftest.err
 
5779
  rm -f conftest.er1
 
5780
  cat conftest.err >&5
 
5781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5782
  (exit $ac_status); } && {
 
5783
         test -z "$ac_cxx_werror_flag" ||
 
5784
         test ! -s conftest.err
 
5785
       } && test -s conftest.$ac_objext; then
 
5786
  ac_cv_prog_cxx_g=yes
 
5787
else
 
5788
  echo "$as_me: failed program was:" >&5
 
5789
sed 's/^/| /' conftest.$ac_ext >&5
 
5790
 
 
5791
        
 
5792
fi
 
5793
 
 
5794
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5795
fi
 
5796
 
 
5797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5798
fi
 
5799
 
 
5800
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5801
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5802
fi
 
5803
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5804
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5805
if test "$ac_test_CXXFLAGS" = set; then
 
5806
  CXXFLAGS=$ac_save_CXXFLAGS
 
5807
elif test $ac_cv_prog_cxx_g = yes; then
 
5808
  if test "$GXX" = yes; then
 
5809
    CXXFLAGS="-g -O2"
 
5810
  else
 
5811
    CXXFLAGS="-g"
 
5812
  fi
 
5813
else
 
5814
  if test "$GXX" = yes; then
 
5815
    CXXFLAGS="-O2"
 
5816
  else
 
5817
    CXXFLAGS=
 
5818
  fi
 
5819
fi
 
5820
ac_ext=cpp
 
5821
ac_cpp='$CXXCPP $CPPFLAGS'
 
5822
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5823
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5824
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5825
 
 
5826
depcc="$CXX"  am_compiler_list=
 
5827
 
 
5828
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5829
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5830
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5831
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5832
else
 
5833
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5834
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5835
  # making bogus files that we don't know about and never remove.  For
 
5836
  # instance it was reported that on HP-UX the gcc test will end up
 
5837
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5838
  # in D'.
 
5839
  mkdir conftest.dir
 
5840
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5841
  # using a relative directory.
 
5842
  cp "$am_depcomp" conftest.dir
 
5843
  cd conftest.dir
 
5844
  # We will build objects and dependencies in a subdirectory because
 
5845
  # it helps to detect inapplicable dependency modes.  For instance
 
5846
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5847
  # side effect of compilation, but ICC will put the dependencies in
 
5848
  # the current directory while Tru64 will put them in the object
 
5849
  # directory.
 
5850
  mkdir sub
 
5851
 
 
5852
  am_cv_CXX_dependencies_compiler_type=none
 
5853
  if test "$am_compiler_list" = ""; then
 
5854
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5855
  fi
 
5856
  for depmode in $am_compiler_list; do
 
5857
    # Setup a source with many dependencies, because some compilers
 
5858
    # like to wrap large dependency lists on column 80 (with \), and
 
5859
    # we should not choose a depcomp mode which is confused by this.
 
5860
    #
 
5861
    # We need to recreate these files for each test, as the compiler may
 
5862
    # overwrite some of them when testing with obscure command lines.
 
5863
    # This happens at least with the AIX C compiler.
 
5864
    : > sub/conftest.c
 
5865
    for i in 1 2 3 4 5 6; do
 
5866
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5867
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5868
      # Solaris 8's {/usr,}/bin/sh.
 
5869
      touch sub/conftst$i.h
 
5870
    done
 
5871
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5872
 
 
5873
    case $depmode in
 
5874
    nosideeffect)
 
5875
      # after this tag, mechanisms are not by side-effect, so they'll
 
5876
      # only be used when explicitly requested
 
5877
      if test "x$enable_dependency_tracking" = xyes; then
 
5878
        continue
 
5879
      else
 
5880
        break
 
5881
      fi
 
5882
      ;;
 
5883
    none) break ;;
 
5884
    esac
 
5885
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5886
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5887
    # handle `-M -o', and we need to detect this.
 
5888
    if depmode=$depmode \
 
5889
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5890
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5891
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5892
         >/dev/null 2>conftest.err &&
 
5893
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5894
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5895
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5896
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5897
      # icc doesn't choke on unknown options, it will just issue warnings
 
5898
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5899
      # that says an option was ignored or not supported.
 
5900
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5901
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5902
      # The diagnosis changed in icc 8.0:
 
5903
      #   icc: Command line remark: option '-MP' not supported
 
5904
      if (grep 'ignoring option' conftest.err ||
 
5905
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5906
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5907
        break
 
5908
      fi
 
5909
    fi
 
5910
  done
 
5911
 
 
5912
  cd ..
 
5913
  rm -rf conftest.dir
 
5914
else
 
5915
  am_cv_CXX_dependencies_compiler_type=none
 
5916
fi
 
5917
 
 
5918
fi
 
5919
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5920
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5921
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5922
 
 
5923
 if 
 
5924
  test "x$enable_dependency_tracking" != xno \
 
5925
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5926
  am__fastdepCXX_TRUE=
 
5927
  am__fastdepCXX_FALSE='#'
 
5928
else
 
5929
  am__fastdepCXX_TRUE='#'
 
5930
  am__fastdepCXX_FALSE=
 
5931
fi
 
5932
 
 
5933
 
 
5934
 
 
5935
 
 
5936
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5937
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5938
    (test "X$CXX" != "Xg++"))) ; then
 
5939
  ac_ext=cpp
 
5940
ac_cpp='$CXXCPP $CPPFLAGS'
 
5941
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5942
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5943
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5944
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5945
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5946
if test -z "$CXXCPP"; then
 
5947
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5949
else
 
5950
      # Double quotes because CXXCPP needs to be expanded
 
5951
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5952
    do
 
5953
      ac_preproc_ok=false
 
5954
for ac_cxx_preproc_warn_flag in '' yes
 
5955
do
 
5956
  # Use a header file that comes with gcc, so configuring glibc
 
5957
  # with a fresh cross-compiler works.
 
5958
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5959
  # <limits.h> exists even on freestanding compilers.
 
5960
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5961
  # not just through cpp. "Syntax error" is here to catch this case.
 
5962
  cat >conftest.$ac_ext <<_ACEOF
 
5963
/* confdefs.h.  */
 
5964
_ACEOF
 
5965
cat confdefs.h >>conftest.$ac_ext
 
5966
cat >>conftest.$ac_ext <<_ACEOF
 
5967
/* end confdefs.h.  */
 
5968
@%:@ifdef __STDC__
 
5969
@%:@ include <limits.h>
 
5970
@%:@else
 
5971
@%:@ include <assert.h>
 
5972
@%:@endif
 
5973
                     Syntax error
 
5974
_ACEOF
 
5975
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5976
case "(($ac_try" in
 
5977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5978
  *) ac_try_echo=$ac_try;;
 
5979
esac
 
5980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5981
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5982
  ac_status=$?
 
5983
  grep -v '^ *+' conftest.er1 >conftest.err
 
5984
  rm -f conftest.er1
 
5985
  cat conftest.err >&5
 
5986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5987
  (exit $ac_status); } >/dev/null && {
 
5988
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5989
         test ! -s conftest.err
 
5990
       }; then
 
5991
  :
 
5992
else
 
5993
  echo "$as_me: failed program was:" >&5
 
5994
sed 's/^/| /' conftest.$ac_ext >&5
 
5995
 
 
5996
  # Broken: fails on valid input.
 
5997
continue
 
5998
fi
 
5999
 
 
6000
rm -f conftest.err conftest.$ac_ext
 
6001
 
 
6002
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6003
  # can be detected and how.
 
6004
  cat >conftest.$ac_ext <<_ACEOF
 
6005
/* confdefs.h.  */
 
6006
_ACEOF
 
6007
cat confdefs.h >>conftest.$ac_ext
 
6008
cat >>conftest.$ac_ext <<_ACEOF
 
6009
/* end confdefs.h.  */
 
6010
@%:@include <ac_nonexistent.h>
 
6011
_ACEOF
 
6012
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6013
case "(($ac_try" in
 
6014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6015
  *) ac_try_echo=$ac_try;;
 
6016
esac
 
6017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6018
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6019
  ac_status=$?
 
6020
  grep -v '^ *+' conftest.er1 >conftest.err
 
6021
  rm -f conftest.er1
 
6022
  cat conftest.err >&5
 
6023
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6024
  (exit $ac_status); } >/dev/null && {
 
6025
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6026
         test ! -s conftest.err
 
6027
       }; then
 
6028
  # Broken: success on invalid input.
 
6029
continue
 
6030
else
 
6031
  echo "$as_me: failed program was:" >&5
 
6032
sed 's/^/| /' conftest.$ac_ext >&5
 
6033
 
 
6034
  # Passes both tests.
 
6035
ac_preproc_ok=:
 
6036
break
 
6037
fi
 
6038
 
 
6039
rm -f conftest.err conftest.$ac_ext
 
6040
 
 
6041
done
 
6042
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6043
rm -f conftest.err conftest.$ac_ext
 
6044
if $ac_preproc_ok; then
 
6045
  break
 
6046
fi
 
6047
 
 
6048
    done
 
6049
    ac_cv_prog_CXXCPP=$CXXCPP
 
6050
  
 
6051
fi
 
6052
  CXXCPP=$ac_cv_prog_CXXCPP
 
6053
else
 
6054
  ac_cv_prog_CXXCPP=$CXXCPP
 
6055
fi
 
6056
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6057
echo "${ECHO_T}$CXXCPP" >&6; }
 
6058
ac_preproc_ok=false
 
6059
for ac_cxx_preproc_warn_flag in '' yes
 
6060
do
 
6061
  # Use a header file that comes with gcc, so configuring glibc
 
6062
  # with a fresh cross-compiler works.
 
6063
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6064
  # <limits.h> exists even on freestanding compilers.
 
6065
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6066
  # not just through cpp. "Syntax error" is here to catch this case.
 
6067
  cat >conftest.$ac_ext <<_ACEOF
 
6068
/* confdefs.h.  */
 
6069
_ACEOF
 
6070
cat confdefs.h >>conftest.$ac_ext
 
6071
cat >>conftest.$ac_ext <<_ACEOF
 
6072
/* end confdefs.h.  */
 
6073
@%:@ifdef __STDC__
 
6074
@%:@ include <limits.h>
 
6075
@%:@else
 
6076
@%:@ include <assert.h>
 
6077
@%:@endif
 
6078
                     Syntax error
 
6079
_ACEOF
 
6080
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6081
case "(($ac_try" in
 
6082
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6083
  *) ac_try_echo=$ac_try;;
 
6084
esac
 
6085
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6086
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6087
  ac_status=$?
 
6088
  grep -v '^ *+' conftest.er1 >conftest.err
 
6089
  rm -f conftest.er1
 
6090
  cat conftest.err >&5
 
6091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6092
  (exit $ac_status); } >/dev/null && {
 
6093
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6094
         test ! -s conftest.err
 
6095
       }; then
 
6096
  :
 
6097
else
 
6098
  echo "$as_me: failed program was:" >&5
 
6099
sed 's/^/| /' conftest.$ac_ext >&5
 
6100
 
 
6101
  # Broken: fails on valid input.
 
6102
continue
 
6103
fi
 
6104
 
 
6105
rm -f conftest.err conftest.$ac_ext
 
6106
 
 
6107
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6108
  # can be detected and how.
 
6109
  cat >conftest.$ac_ext <<_ACEOF
 
6110
/* confdefs.h.  */
 
6111
_ACEOF
 
6112
cat confdefs.h >>conftest.$ac_ext
 
6113
cat >>conftest.$ac_ext <<_ACEOF
 
6114
/* end confdefs.h.  */
 
6115
@%:@include <ac_nonexistent.h>
 
6116
_ACEOF
 
6117
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6118
case "(($ac_try" in
 
6119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6120
  *) ac_try_echo=$ac_try;;
 
6121
esac
 
6122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6123
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6124
  ac_status=$?
 
6125
  grep -v '^ *+' conftest.er1 >conftest.err
 
6126
  rm -f conftest.er1
 
6127
  cat conftest.err >&5
 
6128
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6129
  (exit $ac_status); } >/dev/null && {
 
6130
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6131
         test ! -s conftest.err
 
6132
       }; then
 
6133
  # Broken: success on invalid input.
 
6134
continue
 
6135
else
 
6136
  echo "$as_me: failed program was:" >&5
 
6137
sed 's/^/| /' conftest.$ac_ext >&5
 
6138
 
 
6139
  # Passes both tests.
 
6140
ac_preproc_ok=:
 
6141
break
 
6142
fi
 
6143
 
 
6144
rm -f conftest.err conftest.$ac_ext
 
6145
 
 
6146
done
 
6147
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6148
rm -f conftest.err conftest.$ac_ext
 
6149
if $ac_preproc_ok; then
 
6150
  :
 
6151
else
 
6152
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6153
See \`config.log' for more details." >&5
 
6154
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6155
See \`config.log' for more details." >&2;}
 
6156
   { (exit 1); exit 1; }; }
 
6157
fi
 
6158
 
 
6159
ac_ext=cpp
 
6160
ac_cpp='$CXXCPP $CPPFLAGS'
 
6161
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6162
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6163
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6164
 
 
6165
fi
 
6166
 
 
6167
 
 
6168
ac_ext=f
 
6169
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6170
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6171
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6172
if test -n "$ac_tool_prefix"; then
 
6173
  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
 
6174
  do
 
6175
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6176
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6177
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6178
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6179
if test "${ac_cv_prog_F77+set}" = set; then
 
6180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6181
else
 
6182
  if test -n "$F77"; then
 
6183
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6184
else
 
6185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6186
for as_dir in $PATH
 
6187
do
 
6188
  IFS=$as_save_IFS
 
6189
  test -z "$as_dir" && as_dir=.
 
6190
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6191
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6192
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6193
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6194
    break 2
 
6195
  fi
 
6196
done
 
6197
done
 
6198
IFS=$as_save_IFS
 
6199
 
 
6200
fi
 
6201
fi
 
6202
F77=$ac_cv_prog_F77
 
6203
if test -n "$F77"; then
 
6204
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6205
echo "${ECHO_T}$F77" >&6; }
 
6206
else
 
6207
  { echo "$as_me:$LINENO: result: no" >&5
 
6208
echo "${ECHO_T}no" >&6; }
 
6209
fi
 
6210
 
 
6211
 
 
6212
    test -n "$F77" && break
 
6213
  done
 
6214
fi
 
6215
if test -z "$F77"; then
 
6216
  ac_ct_F77=$F77
 
6217
  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
 
6218
do
 
6219
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6220
set dummy $ac_prog; ac_word=$2
 
6221
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6223
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6225
else
 
6226
  if test -n "$ac_ct_F77"; then
 
6227
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6228
else
 
6229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6230
for as_dir in $PATH
 
6231
do
 
6232
  IFS=$as_save_IFS
 
6233
  test -z "$as_dir" && as_dir=.
 
6234
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6235
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6236
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6237
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6238
    break 2
 
6239
  fi
 
6240
done
 
6241
done
 
6242
IFS=$as_save_IFS
 
6243
 
 
6244
fi
 
6245
fi
 
6246
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6247
if test -n "$ac_ct_F77"; then
 
6248
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6249
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6250
else
 
6251
  { echo "$as_me:$LINENO: result: no" >&5
 
6252
echo "${ECHO_T}no" >&6; }
 
6253
fi
 
6254
 
 
6255
 
 
6256
  test -n "$ac_ct_F77" && break
 
6257
done
 
6258
 
 
6259
  if test "x$ac_ct_F77" = x; then
 
6260
    F77=""
 
6261
  else
 
6262
    case $cross_compiling:$ac_tool_warned in
 
6263
yes:)
 
6264
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6265
whose name does not start with the host triplet.  If you think this
 
6266
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6267
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6268
whose name does not start with the host triplet.  If you think this
 
6269
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6270
ac_tool_warned=yes ;;
 
6271
esac
 
6272
    F77=$ac_ct_F77
 
6273
  fi
 
6274
fi
 
6275
 
 
6276
 
 
6277
# Provide some information about the compiler.
 
6278
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6279
ac_compiler=`set X $ac_compile; echo $2`
 
6280
{ (ac_try="$ac_compiler --version >&5"
 
6281
case "(($ac_try" in
 
6282
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6283
  *) ac_try_echo=$ac_try;;
 
6284
esac
 
6285
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6286
  (eval "$ac_compiler --version >&5") 2>&5
 
6287
  ac_status=$?
 
6288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6289
  (exit $ac_status); }
 
6290
{ (ac_try="$ac_compiler -v >&5"
 
6291
case "(($ac_try" in
 
6292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6293
  *) ac_try_echo=$ac_try;;
 
6294
esac
 
6295
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6296
  (eval "$ac_compiler -v >&5") 2>&5
 
6297
  ac_status=$?
 
6298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6299
  (exit $ac_status); }
 
6300
{ (ac_try="$ac_compiler -V >&5"
 
6301
case "(($ac_try" in
 
6302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6303
  *) ac_try_echo=$ac_try;;
 
6304
esac
 
6305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6306
  (eval "$ac_compiler -V >&5") 2>&5
 
6307
  ac_status=$?
 
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6309
  (exit $ac_status); }
 
6310
rm -f a.out
 
6311
 
 
6312
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6313
# input file.  (Note that this only needs to work for GNU compilers.)
 
6314
ac_save_ext=$ac_ext
 
6315
ac_ext=F
 
6316
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6317
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6318
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6319
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6320
else
 
6321
  cat >conftest.$ac_ext <<_ACEOF
 
6322
      program main
 
6323
#ifndef __GNUC__
 
6324
       choke me
 
6325
#endif
 
6326
 
 
6327
      end
 
6328
_ACEOF
 
6329
rm -f conftest.$ac_objext
 
6330
if { (ac_try="$ac_compile"
 
6331
case "(($ac_try" in
 
6332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6333
  *) ac_try_echo=$ac_try;;
 
6334
esac
 
6335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6336
  (eval "$ac_compile") 2>conftest.er1
 
6337
  ac_status=$?
 
6338
  grep -v '^ *+' conftest.er1 >conftest.err
 
6339
  rm -f conftest.er1
 
6340
  cat conftest.err >&5
 
6341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6342
  (exit $ac_status); } && {
 
6343
         test -z "$ac_f77_werror_flag" ||
 
6344
         test ! -s conftest.err
 
6345
       } && test -s conftest.$ac_objext; then
 
6346
  ac_compiler_gnu=yes
 
6347
else
 
6348
  echo "$as_me: failed program was:" >&5
 
6349
sed 's/^/| /' conftest.$ac_ext >&5
 
6350
 
 
6351
        ac_compiler_gnu=no
 
6352
fi
 
6353
 
 
6354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6355
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6356
 
 
6357
fi
 
6358
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6359
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6360
ac_ext=$ac_save_ext
 
6361
ac_test_FFLAGS=${FFLAGS+set}
 
6362
ac_save_FFLAGS=$FFLAGS
 
6363
FFLAGS=
 
6364
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6365
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6366
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6367
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6368
else
 
6369
  FFLAGS=-g
 
6370
cat >conftest.$ac_ext <<_ACEOF
 
6371
      program main
 
6372
 
 
6373
      end
 
6374
_ACEOF
 
6375
rm -f conftest.$ac_objext
 
6376
if { (ac_try="$ac_compile"
 
6377
case "(($ac_try" in
 
6378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6379
  *) ac_try_echo=$ac_try;;
 
6380
esac
 
6381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6382
  (eval "$ac_compile") 2>conftest.er1
 
6383
  ac_status=$?
 
6384
  grep -v '^ *+' conftest.er1 >conftest.err
 
6385
  rm -f conftest.er1
 
6386
  cat conftest.err >&5
 
6387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6388
  (exit $ac_status); } && {
 
6389
         test -z "$ac_f77_werror_flag" ||
 
6390
         test ! -s conftest.err
 
6391
       } && test -s conftest.$ac_objext; then
 
6392
  ac_cv_prog_f77_g=yes
 
6393
else
 
6394
  echo "$as_me: failed program was:" >&5
 
6395
sed 's/^/| /' conftest.$ac_ext >&5
 
6396
 
 
6397
        ac_cv_prog_f77_g=no
 
6398
fi
 
6399
 
 
6400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6401
 
 
6402
fi
 
6403
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6404
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6405
if test "$ac_test_FFLAGS" = set; then
 
6406
  FFLAGS=$ac_save_FFLAGS
 
6407
elif test $ac_cv_prog_f77_g = yes; then
 
6408
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6409
    FFLAGS="-g -O2"
 
6410
  else
 
6411
    FFLAGS="-g"
 
6412
  fi
 
6413
else
 
6414
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6415
    FFLAGS="-O2"
 
6416
  else
 
6417
    FFLAGS=
 
6418
  fi
 
6419
fi
 
6420
 
 
6421
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6422
ac_ext=c
 
6423
ac_cpp='$CPP $CPPFLAGS'
 
6424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6427
 
 
6428
 
 
6429
 
 
6430
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6431
# find the maximum length of command line arguments
 
6432
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6433
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6434
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6436
else
 
6437
    i=0
 
6438
  teststring="ABCD"
 
6439
 
 
6440
  case $build_os in
 
6441
  msdosdjgpp*)
 
6442
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6443
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6444
    # during glob expansion).  Even if it were fixed, the result of this
 
6445
    # check would be larger than it should be.
 
6446
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6447
    ;;
 
6448
 
 
6449
  gnu*)
 
6450
    # Under GNU Hurd, this test is not required because there is
 
6451
    # no limit to the length of command line arguments.
 
6452
    # Libtool will interpret -1 as no limit whatsoever
 
6453
    lt_cv_sys_max_cmd_len=-1;
 
6454
    ;;
 
6455
 
 
6456
  cygwin* | mingw*)
 
6457
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6458
    # about 5 minutes as the teststring grows exponentially.
 
6459
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6460
    # you end up with a "frozen" computer, even though with patience
 
6461
    # the test eventually succeeds (with a max line length of 256k).
 
6462
    # Instead, let's just punt: use the minimum linelength reported by
 
6463
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6464
    lt_cv_sys_max_cmd_len=8192;
 
6465
    ;;
 
6466
 
 
6467
  amigaos*)
 
6468
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6469
    # So we just punt and use a minimum line length of 8192.
 
6470
    lt_cv_sys_max_cmd_len=8192;
 
6471
    ;;
 
6472
 
 
6473
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6474
    # This has been around since 386BSD, at least.  Likely further.
 
6475
    if test -x /sbin/sysctl; then
 
6476
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6477
    elif test -x /usr/sbin/sysctl; then
 
6478
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6479
    else
 
6480
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6481
    fi
 
6482
    # And add a safety zone
 
6483
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6484
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6485
    ;;
 
6486
 
 
6487
  interix*)
 
6488
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6489
    lt_cv_sys_max_cmd_len=196608
 
6490
    ;;
 
6491
 
 
6492
  osf*)
 
6493
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6494
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6495
    # nice to cause kernel panics so lets avoid the loop below.
 
6496
    # First set a reasonable default.
 
6497
    lt_cv_sys_max_cmd_len=16384
 
6498
    #
 
6499
    if test -x /sbin/sysconfig; then
 
6500
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6501
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6502
      esac
 
6503
    fi
 
6504
    ;;
 
6505
  sco3.2v5*)
 
6506
    lt_cv_sys_max_cmd_len=102400
 
6507
    ;;
 
6508
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6509
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6510
    if test -n "$kargmax"; then
 
6511
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6512
    else
 
6513
      lt_cv_sys_max_cmd_len=32768
 
6514
    fi
 
6515
    ;;
 
6516
  *)
 
6517
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6518
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6519
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6520
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6521
    else
 
6522
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6523
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6524
               = "XX$teststring") >/dev/null 2>&1 &&
 
6525
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6526
              lt_cv_sys_max_cmd_len=$new_result &&
 
6527
              test $i != 17 # 1/2 MB should be enough
 
6528
      do
 
6529
        i=`expr $i + 1`
 
6530
        teststring=$teststring$teststring
 
6531
      done
 
6532
      teststring=
 
6533
      # Add a significant safety factor because C++ compilers can tack on massive
 
6534
      # amounts of additional arguments before passing them to the linker.
 
6535
      # It appears as though 1/2 is a usable value.
 
6536
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6537
    fi
 
6538
    ;;
 
6539
  esac
 
6540
 
 
6541
fi
 
6542
 
 
6543
if test -n $lt_cv_sys_max_cmd_len ; then
 
6544
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6545
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6546
else
 
6547
  { echo "$as_me:$LINENO: result: none" >&5
 
6548
echo "${ECHO_T}none" >&6; }
 
6549
fi
 
6550
 
 
6551
 
 
6552
 
 
6553
 
 
6554
 
 
6555
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6556
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6557
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6558
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6560
else
 
6561
  
 
6562
# These are sane defaults that work on at least a few old systems.
 
6563
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6564
 
 
6565
# Character class describing NM global symbol codes.
 
6566
symcode='[BCDEGRST]'
 
6567
 
 
6568
# Regexp to match symbols that can be accessed directly from C.
 
6569
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6570
 
 
6571
# Transform an extracted symbol line into a proper C declaration
 
6572
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6573
 
 
6574
# Transform an extracted symbol line into symbol name and symbol address
 
6575
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'"
 
6576
 
 
6577
# Define system-specific variables.
 
6578
case $host_os in
 
6579
aix*)
 
6580
  symcode='[BCDT]'
 
6581
  ;;
 
6582
cygwin* | mingw* | pw32*)
 
6583
  symcode='[ABCDGISTW]'
 
6584
  ;;
 
6585
hpux*) # Its linker distinguishes data from code symbols
 
6586
  if test "$host_cpu" = ia64; then
 
6587
    symcode='[ABCDEGRST]'
 
6588
  fi
 
6589
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6590
  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'"
 
6591
  ;;
 
6592
linux* | k*bsd*-gnu)
 
6593
  if test "$host_cpu" = ia64; then
 
6594
    symcode='[ABCDGIRSTW]'
 
6595
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6596
    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'"
 
6597
  fi
 
6598
  ;;
 
6599
irix* | nonstopux*)
 
6600
  symcode='[BCDEGRST]'
 
6601
  ;;
 
6602
osf*)
 
6603
  symcode='[BCDEGQRST]'
 
6604
  ;;
 
6605
solaris*)
 
6606
  symcode='[BDRT]'
 
6607
  ;;
 
6608
sco3.2v5*)
 
6609
  symcode='[DT]'
 
6610
  ;;
 
6611
sysv4.2uw2*)
 
6612
  symcode='[DT]'
 
6613
  ;;
 
6614
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6615
  symcode='[ABDT]'
 
6616
  ;;
 
6617
sysv4)
 
6618
  symcode='[DFNSTU]'
 
6619
  ;;
 
6620
esac
 
6621
 
 
6622
# Handle CRLF in mingw tool chain
 
6623
opt_cr=
 
6624
case $build_os in
 
6625
mingw*)
 
6626
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6627
  ;;
 
6628
esac
 
6629
 
 
6630
# If we're using GNU nm, then use its standard symbol codes.
 
6631
case `$NM -V 2>&1` in
 
6632
*GNU* | *'with BFD'*)
 
6633
  symcode='[ABCDGIRSTW]' ;;
 
6634
esac
 
6635
 
 
6636
# Try without a prefix undercore, then with it.
 
6637
for ac_symprfx in "" "_"; do
 
6638
 
 
6639
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6640
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6641
 
 
6642
  # Write the raw and C identifiers.
 
6643
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6644
 
 
6645
  # Check to see that the pipe works correctly.
 
6646
  pipe_works=no
 
6647
 
 
6648
  rm -f conftest*
 
6649
  cat > conftest.$ac_ext <<EOF
 
6650
#ifdef __cplusplus
 
6651
extern "C" {
 
6652
#endif
 
6653
char nm_test_var;
 
6654
void nm_test_func(){}
 
6655
#ifdef __cplusplus
 
6656
}
 
6657
#endif
 
6658
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6659
EOF
 
6660
 
 
6661
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6662
  (eval $ac_compile) 2>&5
 
6663
  ac_status=$?
 
6664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6665
  (exit $ac_status); }; then
 
6666
    # Now try to grab the symbols.
 
6667
    nlist=conftest.nm
 
6668
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6669
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6670
  ac_status=$?
 
6671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6672
  (exit $ac_status); } && test -s "$nlist"; then
 
6673
      # Try sorting and uniquifying the output.
 
6674
      if sort "$nlist" | uniq > "$nlist"T; then
 
6675
        mv -f "$nlist"T "$nlist"
 
6676
      else
 
6677
        rm -f "$nlist"T
 
6678
      fi
 
6679
 
 
6680
      # Make sure that we snagged all the symbols we need.
 
6681
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6682
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6683
          cat <<EOF > conftest.$ac_ext
 
6684
#ifdef __cplusplus
 
6685
extern "C" {
 
6686
#endif
 
6687
 
 
6688
EOF
 
6689
          # Now generate the symbol file.
 
6690
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6691
 
 
6692
          cat <<EOF >> conftest.$ac_ext
 
6693
#if defined (__STDC__) && __STDC__
 
6694
# define lt_ptr_t void *
 
6695
#else
 
6696
# define lt_ptr_t char *
 
6697
# define const
 
6698
#endif
 
6699
 
 
6700
/* The mapping between symbol names and symbols. */
 
6701
const struct {
 
6702
  const char *name;
 
6703
  lt_ptr_t address;
 
6704
}
 
6705
lt_preloaded_symbols[] =
 
6706
{
 
6707
EOF
 
6708
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6709
          cat <<\EOF >> conftest.$ac_ext
 
6710
  {0, (lt_ptr_t) 0}
 
6711
};
 
6712
 
 
6713
#ifdef __cplusplus
 
6714
}
 
6715
#endif
 
6716
EOF
 
6717
          # Now try linking the two files.
 
6718
          mv conftest.$ac_objext conftstm.$ac_objext
 
6719
          lt_save_LIBS="$LIBS"
 
6720
          lt_save_CFLAGS="$CFLAGS"
 
6721
          LIBS="conftstm.$ac_objext"
 
6722
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6723
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6724
  (eval $ac_link) 2>&5
 
6725
  ac_status=$?
 
6726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6727
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6728
            pipe_works=yes
 
6729
          fi
 
6730
          LIBS="$lt_save_LIBS"
 
6731
          CFLAGS="$lt_save_CFLAGS"
 
6732
        else
 
6733
          echo "cannot find nm_test_func in $nlist" >&5
 
6734
        fi
 
6735
      else
 
6736
        echo "cannot find nm_test_var in $nlist" >&5
 
6737
      fi
 
6738
    else
 
6739
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6740
    fi
 
6741
  else
 
6742
    echo "$progname: failed program was:" >&5
 
6743
    cat conftest.$ac_ext >&5
 
6744
  fi
 
6745
  rm -rf conftest* conftst*
 
6746
 
 
6747
  # Do not use the global_symbol_pipe unless it works.
 
6748
  if test "$pipe_works" = yes; then
 
6749
    break
 
6750
  else
 
6751
    lt_cv_sys_global_symbol_pipe=
 
6752
  fi
 
6753
done
 
6754
 
 
6755
fi
 
6756
 
 
6757
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6758
  lt_cv_sys_global_symbol_to_cdecl=
 
6759
fi
 
6760
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6761
  { echo "$as_me:$LINENO: result: failed" >&5
 
6762
echo "${ECHO_T}failed" >&6; }
 
6763
else
 
6764
  { echo "$as_me:$LINENO: result: ok" >&5
 
6765
echo "${ECHO_T}ok" >&6; }
 
6766
fi
 
6767
 
 
6768
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6769
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6770
if test "${lt_cv_objdir+set}" = set; then
 
6771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6772
else
 
6773
  rm -f .libs 2>/dev/null
 
6774
mkdir .libs 2>/dev/null
 
6775
if test -d .libs; then
 
6776
  lt_cv_objdir=.libs
 
6777
else
 
6778
  # MS-DOS does not allow filenames that begin with a dot.
 
6779
  lt_cv_objdir=_libs
 
6780
fi
 
6781
rmdir .libs 2>/dev/null
 
6782
fi
 
6783
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6784
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6785
objdir=$lt_cv_objdir
 
6786
 
 
6787
 
 
6788
 
 
6789
 
 
6790
 
 
6791
case $host_os in
 
6792
aix3*)
 
6793
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6794
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6795
  # vanish in a puff of smoke.
 
6796
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6797
    COLLECT_NAMES=
 
6798
    export COLLECT_NAMES
 
6799
  fi
 
6800
  ;;
 
6801
esac
 
6802
 
 
6803
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6804
# metacharacters that are still active within double-quoted strings.
 
6805
Xsed='sed -e 1s/^X//'
 
6806
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6807
 
 
6808
# Same as above, but do not quote variable references.
 
6809
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6810
 
 
6811
# Sed substitution to delay expansion of an escaped shell variable in a
 
6812
# double_quote_subst'ed string.
 
6813
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6814
 
 
6815
# Sed substitution to avoid accidental globbing in evaled expressions
 
6816
no_glob_subst='s/\*/\\\*/g'
 
6817
 
 
6818
# Constants:
 
6819
rm="rm -f"
 
6820
 
 
6821
# Global variables:
 
6822
default_ofile=libtool
 
6823
can_build_shared=yes
 
6824
 
 
6825
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6826
# which needs '.lib').
 
6827
libext=a
 
6828
ltmain="$ac_aux_dir/ltmain.sh"
 
6829
ofile="$default_ofile"
 
6830
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6831
 
 
6832
if test -n "$ac_tool_prefix"; then
 
6833
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6834
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6835
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6837
if test "${ac_cv_prog_AR+set}" = set; then
 
6838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6839
else
 
6840
  if test -n "$AR"; then
 
6841
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6842
else
 
6843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6844
for as_dir in $PATH
 
6845
do
 
6846
  IFS=$as_save_IFS
 
6847
  test -z "$as_dir" && as_dir=.
 
6848
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6849
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6850
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6852
    break 2
 
6853
  fi
 
6854
done
 
6855
done
 
6856
IFS=$as_save_IFS
 
6857
 
 
6858
fi
 
6859
fi
 
6860
AR=$ac_cv_prog_AR
 
6861
if test -n "$AR"; then
 
6862
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6863
echo "${ECHO_T}$AR" >&6; }
 
6864
else
 
6865
  { echo "$as_me:$LINENO: result: no" >&5
 
6866
echo "${ECHO_T}no" >&6; }
 
6867
fi
 
6868
 
 
6869
 
 
6870
fi
 
6871
if test -z "$ac_cv_prog_AR"; then
 
6872
  ac_ct_AR=$AR
 
6873
  # Extract the first word of "ar", so it can be a program name with args.
 
6874
set dummy ar; ac_word=$2
 
6875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6877
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6879
else
 
6880
  if test -n "$ac_ct_AR"; then
 
6881
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6882
else
 
6883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6884
for as_dir in $PATH
 
6885
do
 
6886
  IFS=$as_save_IFS
 
6887
  test -z "$as_dir" && as_dir=.
 
6888
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6890
    ac_cv_prog_ac_ct_AR="ar"
 
6891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6892
    break 2
 
6893
  fi
 
6894
done
 
6895
done
 
6896
IFS=$as_save_IFS
 
6897
 
 
6898
fi
 
6899
fi
 
6900
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6901
if test -n "$ac_ct_AR"; then
 
6902
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6903
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6904
else
 
6905
  { echo "$as_me:$LINENO: result: no" >&5
 
6906
echo "${ECHO_T}no" >&6; }
 
6907
fi
 
6908
 
 
6909
  if test "x$ac_ct_AR" = x; then
 
6910
    AR="false"
 
6911
  else
 
6912
    case $cross_compiling:$ac_tool_warned in
 
6913
yes:)
 
6914
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6915
whose name does not start with the host triplet.  If you think this
 
6916
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6917
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6918
whose name does not start with the host triplet.  If you think this
 
6919
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6920
ac_tool_warned=yes ;;
 
6921
esac
 
6922
    AR=$ac_ct_AR
 
6923
  fi
 
6924
else
 
6925
  AR="$ac_cv_prog_AR"
 
6926
fi
 
6927
 
 
6928
if test -n "$ac_tool_prefix"; then
 
6929
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6930
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6931
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6932
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6933
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6935
else
 
6936
  if test -n "$RANLIB"; then
 
6937
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6938
else
 
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6940
for as_dir in $PATH
 
6941
do
 
6942
  IFS=$as_save_IFS
 
6943
  test -z "$as_dir" && as_dir=.
 
6944
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6945
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6946
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6947
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6948
    break 2
 
6949
  fi
 
6950
done
 
6951
done
 
6952
IFS=$as_save_IFS
 
6953
 
 
6954
fi
 
6955
fi
 
6956
RANLIB=$ac_cv_prog_RANLIB
 
6957
if test -n "$RANLIB"; then
 
6958
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6959
echo "${ECHO_T}$RANLIB" >&6; }
 
6960
else
 
6961
  { echo "$as_me:$LINENO: result: no" >&5
 
6962
echo "${ECHO_T}no" >&6; }
 
6963
fi
 
6964
 
 
6965
 
 
6966
fi
 
6967
if test -z "$ac_cv_prog_RANLIB"; then
 
6968
  ac_ct_RANLIB=$RANLIB
 
6969
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6970
set dummy ranlib; ac_word=$2
 
6971
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6972
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6973
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6974
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6975
else
 
6976
  if test -n "$ac_ct_RANLIB"; then
 
6977
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6978
else
 
6979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6980
for as_dir in $PATH
 
6981
do
 
6982
  IFS=$as_save_IFS
 
6983
  test -z "$as_dir" && as_dir=.
 
6984
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6985
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6986
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6987
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6988
    break 2
 
6989
  fi
 
6990
done
 
6991
done
 
6992
IFS=$as_save_IFS
 
6993
 
 
6994
fi
 
6995
fi
 
6996
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6997
if test -n "$ac_ct_RANLIB"; then
 
6998
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6999
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7000
else
 
7001
  { echo "$as_me:$LINENO: result: no" >&5
 
7002
echo "${ECHO_T}no" >&6; }
 
7003
fi
 
7004
 
 
7005
  if test "x$ac_ct_RANLIB" = x; then
 
7006
    RANLIB=":"
 
7007
  else
 
7008
    case $cross_compiling:$ac_tool_warned in
 
7009
yes:)
 
7010
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7011
whose name does not start with the host triplet.  If you think this
 
7012
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7013
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7014
whose name does not start with the host triplet.  If you think this
 
7015
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7016
ac_tool_warned=yes ;;
 
7017
esac
 
7018
    RANLIB=$ac_ct_RANLIB
 
7019
  fi
 
7020
else
 
7021
  RANLIB="$ac_cv_prog_RANLIB"
 
7022
fi
 
7023
 
 
7024
if test -n "$ac_tool_prefix"; then
 
7025
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7026
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7027
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7029
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7030
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7031
else
 
7032
  if test -n "$STRIP"; then
 
7033
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7034
else
 
7035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7036
for as_dir in $PATH
 
7037
do
 
7038
  IFS=$as_save_IFS
 
7039
  test -z "$as_dir" && as_dir=.
 
7040
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7041
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7042
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7043
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7044
    break 2
 
7045
  fi
 
7046
done
 
7047
done
 
7048
IFS=$as_save_IFS
 
7049
 
 
7050
fi
 
7051
fi
 
7052
STRIP=$ac_cv_prog_STRIP
 
7053
if test -n "$STRIP"; then
 
7054
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7055
echo "${ECHO_T}$STRIP" >&6; }
 
7056
else
 
7057
  { echo "$as_me:$LINENO: result: no" >&5
 
7058
echo "${ECHO_T}no" >&6; }
 
7059
fi
 
7060
 
 
7061
 
 
7062
fi
 
7063
if test -z "$ac_cv_prog_STRIP"; then
 
7064
  ac_ct_STRIP=$STRIP
 
7065
  # Extract the first word of "strip", so it can be a program name with args.
 
7066
set dummy strip; ac_word=$2
 
7067
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7068
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7069
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7071
else
 
7072
  if test -n "$ac_ct_STRIP"; then
 
7073
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7074
else
 
7075
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7076
for as_dir in $PATH
 
7077
do
 
7078
  IFS=$as_save_IFS
 
7079
  test -z "$as_dir" && as_dir=.
 
7080
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7081
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7082
    ac_cv_prog_ac_ct_STRIP="strip"
 
7083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7084
    break 2
 
7085
  fi
 
7086
done
 
7087
done
 
7088
IFS=$as_save_IFS
 
7089
 
 
7090
fi
 
7091
fi
 
7092
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7093
if test -n "$ac_ct_STRIP"; then
 
7094
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7095
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7096
else
 
7097
  { echo "$as_me:$LINENO: result: no" >&5
 
7098
echo "${ECHO_T}no" >&6; }
 
7099
fi
 
7100
 
 
7101
  if test "x$ac_ct_STRIP" = x; then
 
7102
    STRIP=":"
 
7103
  else
 
7104
    case $cross_compiling:$ac_tool_warned in
 
7105
yes:)
 
7106
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7107
whose name does not start with the host triplet.  If you think this
 
7108
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7109
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7110
whose name does not start with the host triplet.  If you think this
 
7111
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7112
ac_tool_warned=yes ;;
 
7113
esac
 
7114
    STRIP=$ac_ct_STRIP
 
7115
  fi
 
7116
else
 
7117
  STRIP="$ac_cv_prog_STRIP"
 
7118
fi
 
7119
 
 
7120
 
 
7121
old_CC="$CC"
 
7122
old_CFLAGS="$CFLAGS"
 
7123
 
 
7124
# Set sane defaults for various variables
 
7125
test -z "$AR" && AR=ar
 
7126
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7127
test -z "$AS" && AS=as
 
7128
test -z "$CC" && CC=cc
 
7129
test -z "$LTCC" && LTCC=$CC
 
7130
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7131
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7132
test -z "$LD" && LD=ld
 
7133
test -z "$LN_S" && LN_S="ln -s"
 
7134
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7135
test -z "$NM" && NM=nm
 
7136
test -z "$SED" && SED=sed
 
7137
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7138
test -z "$RANLIB" && RANLIB=:
 
7139
test -z "$STRIP" && STRIP=:
 
7140
test -z "$ac_objext" && ac_objext=o
 
7141
 
 
7142
# Determine commands to create old-style static archives.
 
7143
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7144
old_postinstall_cmds='chmod 644 $oldlib'
 
7145
old_postuninstall_cmds=
 
7146
 
 
7147
if test -n "$RANLIB"; then
 
7148
  case $host_os in
 
7149
  openbsd*)
 
7150
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7151
    ;;
 
7152
  *)
 
7153
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7154
    ;;
 
7155
  esac
 
7156
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7157
fi
 
7158
 
 
7159
for cc_temp in $compiler""; do
 
7160
  case $cc_temp in
 
7161
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7162
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7163
    \-*) ;;
 
7164
    *) break;;
 
7165
  esac
 
7166
done
 
7167
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7168
 
 
7169
 
 
7170
# Only perform the check for file, if the check method requires it
 
7171
case $deplibs_check_method in
 
7172
file_magic*)
 
7173
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7174
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7175
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7176
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7178
else
 
7179
  case $MAGIC_CMD in
 
7180
[\\/*] |  ?:[\\/]*)
 
7181
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7182
  ;;
 
7183
*)
 
7184
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7185
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7186
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7187
  for ac_dir in $ac_dummy; do
 
7188
    IFS="$lt_save_ifs"
 
7189
    test -z "$ac_dir" && ac_dir=.
 
7190
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7191
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7192
      if test -n "$file_magic_test_file"; then
 
7193
        case $deplibs_check_method in
 
7194
        "file_magic "*)
 
7195
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7196
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7197
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7198
            $EGREP "$file_magic_regex" > /dev/null; then
 
7199
            :
 
7200
          else
 
7201
            cat <<EOF 1>&2
 
7202
 
 
7203
*** Warning: the command libtool uses to detect shared libraries,
 
7204
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7205
*** The result is that libtool may fail to recognize shared libraries
 
7206
*** as such.  This will affect the creation of libtool libraries that
 
7207
*** depend on shared libraries, but programs linked with such libtool
 
7208
*** libraries will work regardless of this problem.  Nevertheless, you
 
7209
*** may want to report the problem to your system manager and/or to
 
7210
*** bug-libtool@gnu.org
 
7211
 
 
7212
EOF
 
7213
          fi ;;
 
7214
        esac
 
7215
      fi
 
7216
      break
 
7217
    fi
 
7218
  done
 
7219
  IFS="$lt_save_ifs"
 
7220
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7221
  ;;
 
7222
esac
 
7223
fi
 
7224
 
 
7225
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7226
if test -n "$MAGIC_CMD"; then
 
7227
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7228
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7229
else
 
7230
  { echo "$as_me:$LINENO: result: no" >&5
 
7231
echo "${ECHO_T}no" >&6; }
 
7232
fi
 
7233
 
 
7234
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7235
  if test -n "$ac_tool_prefix"; then
 
7236
    { echo "$as_me:$LINENO: checking for file" >&5
 
7237
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7238
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7239
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7240
else
 
7241
  case $MAGIC_CMD in
 
7242
[\\/*] |  ?:[\\/]*)
 
7243
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7244
  ;;
 
7245
*)
 
7246
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7247
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7248
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7249
  for ac_dir in $ac_dummy; do
 
7250
    IFS="$lt_save_ifs"
 
7251
    test -z "$ac_dir" && ac_dir=.
 
7252
    if test -f $ac_dir/file; then
 
7253
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7254
      if test -n "$file_magic_test_file"; then
 
7255
        case $deplibs_check_method in
 
7256
        "file_magic "*)
 
7257
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7258
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7259
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7260
            $EGREP "$file_magic_regex" > /dev/null; then
 
7261
            :
 
7262
          else
 
7263
            cat <<EOF 1>&2
 
7264
 
 
7265
*** Warning: the command libtool uses to detect shared libraries,
 
7266
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7267
*** The result is that libtool may fail to recognize shared libraries
 
7268
*** as such.  This will affect the creation of libtool libraries that
 
7269
*** depend on shared libraries, but programs linked with such libtool
 
7270
*** libraries will work regardless of this problem.  Nevertheless, you
 
7271
*** may want to report the problem to your system manager and/or to
 
7272
*** bug-libtool@gnu.org
 
7273
 
 
7274
EOF
 
7275
          fi ;;
 
7276
        esac
 
7277
      fi
 
7278
      break
 
7279
    fi
 
7280
  done
 
7281
  IFS="$lt_save_ifs"
 
7282
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7283
  ;;
 
7284
esac
 
7285
fi
 
7286
 
 
7287
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7288
if test -n "$MAGIC_CMD"; then
 
7289
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7290
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7291
else
 
7292
  { echo "$as_me:$LINENO: result: no" >&5
 
7293
echo "${ECHO_T}no" >&6; }
 
7294
fi
 
7295
 
 
7296
  else
 
7297
    MAGIC_CMD=:
 
7298
  fi
 
7299
fi
 
7300
 
 
7301
  fi
 
7302
  ;;
 
7303
esac
 
7304
 
 
7305
 
 
7306
  case $host_os in
 
7307
    rhapsody* | darwin*)
 
7308
    if test -n "$ac_tool_prefix"; then
 
7309
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7310
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7311
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7312
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7313
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7314
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7315
else
 
7316
  if test -n "$DSYMUTIL"; then
 
7317
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7318
else
 
7319
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7320
for as_dir in $PATH
 
7321
do
 
7322
  IFS=$as_save_IFS
 
7323
  test -z "$as_dir" && as_dir=.
 
7324
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7325
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7326
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7327
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7328
    break 2
 
7329
  fi
 
7330
done
 
7331
done
 
7332
IFS=$as_save_IFS
 
7333
 
 
7334
fi
 
7335
fi
 
7336
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7337
if test -n "$DSYMUTIL"; then
 
7338
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7339
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7340
else
 
7341
  { echo "$as_me:$LINENO: result: no" >&5
 
7342
echo "${ECHO_T}no" >&6; }
 
7343
fi
 
7344
 
 
7345
 
 
7346
fi
 
7347
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7348
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7349
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7350
set dummy dsymutil; ac_word=$2
 
7351
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7352
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7353
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7354
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7355
else
 
7356
  if test -n "$ac_ct_DSYMUTIL"; then
 
7357
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7358
else
 
7359
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7360
for as_dir in $PATH
 
7361
do
 
7362
  IFS=$as_save_IFS
 
7363
  test -z "$as_dir" && as_dir=.
 
7364
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7365
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7366
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7367
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7368
    break 2
 
7369
  fi
 
7370
done
 
7371
done
 
7372
IFS=$as_save_IFS
 
7373
 
 
7374
fi
 
7375
fi
 
7376
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7377
if test -n "$ac_ct_DSYMUTIL"; then
 
7378
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7379
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7380
else
 
7381
  { echo "$as_me:$LINENO: result: no" >&5
 
7382
echo "${ECHO_T}no" >&6; }
 
7383
fi
 
7384
 
 
7385
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7386
    DSYMUTIL=":"
 
7387
  else
 
7388
    case $cross_compiling:$ac_tool_warned in
 
7389
yes:)
 
7390
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7391
whose name does not start with the host triplet.  If you think this
 
7392
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7393
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7394
whose name does not start with the host triplet.  If you think this
 
7395
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7396
ac_tool_warned=yes ;;
 
7397
esac
 
7398
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7399
  fi
 
7400
else
 
7401
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7402
fi
 
7403
 
 
7404
    if test -n "$ac_tool_prefix"; then
 
7405
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7406
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7409
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7411
else
 
7412
  if test -n "$NMEDIT"; then
 
7413
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7414
else
 
7415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7416
for as_dir in $PATH
 
7417
do
 
7418
  IFS=$as_save_IFS
 
7419
  test -z "$as_dir" && as_dir=.
 
7420
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7422
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7424
    break 2
 
7425
  fi
 
7426
done
 
7427
done
 
7428
IFS=$as_save_IFS
 
7429
 
 
7430
fi
 
7431
fi
 
7432
NMEDIT=$ac_cv_prog_NMEDIT
 
7433
if test -n "$NMEDIT"; then
 
7434
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7435
echo "${ECHO_T}$NMEDIT" >&6; }
 
7436
else
 
7437
  { echo "$as_me:$LINENO: result: no" >&5
 
7438
echo "${ECHO_T}no" >&6; }
 
7439
fi
 
7440
 
 
7441
 
 
7442
fi
 
7443
if test -z "$ac_cv_prog_NMEDIT"; then
 
7444
  ac_ct_NMEDIT=$NMEDIT
 
7445
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7446
set dummy nmedit; ac_word=$2
 
7447
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7448
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7449
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7451
else
 
7452
  if test -n "$ac_ct_NMEDIT"; then
 
7453
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7454
else
 
7455
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7456
for as_dir in $PATH
 
7457
do
 
7458
  IFS=$as_save_IFS
 
7459
  test -z "$as_dir" && as_dir=.
 
7460
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7461
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7462
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7463
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7464
    break 2
 
7465
  fi
 
7466
done
 
7467
done
 
7468
IFS=$as_save_IFS
 
7469
 
 
7470
fi
 
7471
fi
 
7472
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7473
if test -n "$ac_ct_NMEDIT"; then
 
7474
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7475
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7476
else
 
7477
  { echo "$as_me:$LINENO: result: no" >&5
 
7478
echo "${ECHO_T}no" >&6; }
 
7479
fi
 
7480
 
 
7481
  if test "x$ac_ct_NMEDIT" = x; then
 
7482
    NMEDIT=":"
 
7483
  else
 
7484
    case $cross_compiling:$ac_tool_warned in
 
7485
yes:)
 
7486
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7487
whose name does not start with the host triplet.  If you think this
 
7488
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7489
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7490
whose name does not start with the host triplet.  If you think this
 
7491
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7492
ac_tool_warned=yes ;;
 
7493
esac
 
7494
    NMEDIT=$ac_ct_NMEDIT
 
7495
  fi
 
7496
else
 
7497
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7498
fi
 
7499
 
 
7500
 
 
7501
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7502
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7503
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7505
else
 
7506
  lt_cv_apple_cc_single_mod=no
 
7507
      if test -z "${LT_MULTI_MODULE}"; then
 
7508
   # By default we will add the -single_module flag. You can override
 
7509
   # by either setting the environment variable LT_MULTI_MODULE
 
7510
   # non-empty at configure time, or by adding -multi_module to the
 
7511
   # link flags.
 
7512
   echo "int foo(void){return 1;}" > conftest.c
 
7513
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7514
     -dynamiclib ${wl}-single_module conftest.c
 
7515
   if test -f libconftest.dylib; then
 
7516
     lt_cv_apple_cc_single_mod=yes
 
7517
     rm -rf libconftest.dylib*
 
7518
   fi
 
7519
   rm conftest.c
 
7520
      fi
 
7521
fi
 
7522
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7523
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7524
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7525
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7526
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7528
else
 
7529
  lt_cv_ld_exported_symbols_list=no
 
7530
      save_LDFLAGS=$LDFLAGS
 
7531
      echo "_main" > conftest.sym
 
7532
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7533
      cat >conftest.$ac_ext <<_ACEOF
 
7534
/* confdefs.h.  */
 
7535
_ACEOF
 
7536
cat confdefs.h >>conftest.$ac_ext
 
7537
cat >>conftest.$ac_ext <<_ACEOF
 
7538
/* end confdefs.h.  */
 
7539
 
 
7540
int
 
7541
main ()
 
7542
{
 
7543
 
 
7544
  ;
 
7545
  return 0;
 
7546
}
 
7547
_ACEOF
 
7548
rm -f conftest.$ac_objext conftest$ac_exeext
 
7549
if { (ac_try="$ac_link"
 
7550
case "(($ac_try" in
 
7551
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7552
  *) ac_try_echo=$ac_try;;
 
7553
esac
 
7554
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7555
  (eval "$ac_link") 2>conftest.er1
 
7556
  ac_status=$?
 
7557
  grep -v '^ *+' conftest.er1 >conftest.err
 
7558
  rm -f conftest.er1
 
7559
  cat conftest.err >&5
 
7560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7561
  (exit $ac_status); } && {
 
7562
         test -z "$ac_c_werror_flag" ||
 
7563
         test ! -s conftest.err
 
7564
       } && test -s conftest$ac_exeext &&
 
7565
       $as_test_x conftest$ac_exeext; then
 
7566
  lt_cv_ld_exported_symbols_list=yes
 
7567
else
 
7568
  echo "$as_me: failed program was:" >&5
 
7569
sed 's/^/| /' conftest.$ac_ext >&5
 
7570
 
 
7571
        lt_cv_ld_exported_symbols_list=no
 
7572
fi
 
7573
 
 
7574
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7575
      conftest$ac_exeext conftest.$ac_ext
 
7576
   LDFLAGS="$save_LDFLAGS"
 
7577
    
 
7578
fi
 
7579
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7580
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7581
    case $host_os in
 
7582
    rhapsody* | darwin1.[0123])
 
7583
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7584
    darwin1.*)
 
7585
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7586
    darwin*)
 
7587
      # if running on 10.5 or later, the deployment target defaults
 
7588
      # to the OS version, if on x86, and 10.4, the deployment
 
7589
      # target defaults to 10.4. Don't you love it?
 
7590
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7591
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7592
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7593
   10.[012]*)
 
7594
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7595
   10.*)
 
7596
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7597
      esac
 
7598
    ;;
 
7599
  esac
 
7600
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7601
      _lt_dar_single_mod='$single_module'
 
7602
    fi
 
7603
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7604
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7605
    else
 
7606
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7607
    fi
 
7608
    if test "$DSYMUTIL" != ":"; then
 
7609
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7610
    else
 
7611
      _lt_dsymutil=
 
7612
    fi
 
7613
    ;;
 
7614
  esac
 
7615
 
 
7616
 
 
7617
enable_dlopen=no
 
7618
enable_win32_dll=yes
 
7619
 
 
7620
# Check whether --enable-libtool-lock was given.
 
7621
if test "${enable_libtool_lock+set}" = set; then
 
7622
  enableval=$enable_libtool_lock; 
 
7623
fi
 
7624
 
 
7625
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7626
 
 
7627
 
 
7628
# Check whether --with-pic was given.
 
7629
if test "${with_pic+set}" = set; then
 
7630
  withval=$with_pic; pic_mode="$withval"
 
7631
else
 
7632
  pic_mode=default
 
7633
fi
 
7634
 
 
7635
test -z "$pic_mode" && pic_mode=default
 
7636
 
 
7637
# Use C for the default configuration in the libtool script
 
7638
tagname=
 
7639
lt_save_CC="$CC"
 
7640
ac_ext=c
 
7641
ac_cpp='$CPP $CPPFLAGS'
 
7642
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7643
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7644
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7645
 
 
7646
 
 
7647
# Source file extension for C test sources.
 
7648
ac_ext=c
 
7649
 
 
7650
# Object file extension for compiled C test sources.
 
7651
objext=o
 
7652
objext=$objext
 
7653
 
 
7654
# Code to be used in simple compile tests
 
7655
lt_simple_compile_test_code="int some_variable = 0;"
 
7656
 
 
7657
# Code to be used in simple link tests
 
7658
lt_simple_link_test_code='int main(){return(0);}'
 
7659
 
 
7660
 
 
7661
# If no C compiler was specified, use CC.
 
7662
LTCC=${LTCC-"$CC"}
 
7663
 
 
7664
# If no C compiler flags were specified, use CFLAGS.
 
7665
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7666
 
 
7667
# Allow CC to be a program name with arguments.
 
7668
compiler=$CC
 
7669
 
 
7670
 
 
7671
# save warnings/boilerplate of simple test code
 
7672
ac_outfile=conftest.$ac_objext
 
7673
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7674
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7675
_lt_compiler_boilerplate=`cat conftest.err`
 
7676
$rm conftest*
 
7677
 
 
7678
ac_outfile=conftest.$ac_objext
 
7679
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7680
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7681
_lt_linker_boilerplate=`cat conftest.err`
 
7682
$rm -r conftest*
 
7683
 
 
7684
 
 
7685
## CAVEAT EMPTOR:
 
7686
## There is no encapsulation within the following macros, do not change
 
7687
## the running order or otherwise move them around unless you know exactly
 
7688
## what you are doing...
 
7689
 
 
7690
lt_prog_compiler_no_builtin_flag=
 
7691
 
 
7692
if test "$GCC" = yes; then
 
7693
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7694
 
 
7695
  
 
7696
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7697
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7698
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7700
else
 
7701
  lt_cv_prog_compiler_rtti_exceptions=no
 
7702
  ac_outfile=conftest.$ac_objext
 
7703
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7704
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7705
   # Insert the option either (1) after the last *FLAGS variable, or
 
7706
   # (2) before a word containing "conftest.", or (3) at the end.
 
7707
   # Note that $ac_compile itself does not contain backslashes and begins
 
7708
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7709
   # The option is referenced via a variable to avoid confusing sed.
 
7710
   lt_compile=`echo "$ac_compile" | $SED \
 
7711
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7712
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7713
   -e 's:$: $lt_compiler_flag:'`
 
7714
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
7715
   (eval "$lt_compile" 2>conftest.err)
 
7716
   ac_status=$?
 
7717
   cat conftest.err >&5
 
7718
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
7719
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7720
     # The compiler can only warn and ignore the option if not recognized
 
7721
     # So say no if there are warnings other than the usual output.
 
7722
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7723
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7724
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7725
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7726
     fi
 
7727
   fi
 
7728
   $rm conftest*
 
7729
 
 
7730
fi
 
7731
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7732
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7733
 
 
7734
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7735
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7736
else
 
7737
    :
 
7738
fi
 
7739
 
 
7740
fi
 
7741
 
 
7742
lt_prog_compiler_wl=
 
7743
lt_prog_compiler_pic=
 
7744
lt_prog_compiler_static=
 
7745
 
 
7746
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7747
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7748
 
 
7749
  if test "$GCC" = yes; then
 
7750
    lt_prog_compiler_wl='-Wl,'
 
7751
    lt_prog_compiler_static='-static'
 
7752
 
 
7753
    case $host_os in
 
7754
      aix*)
 
7755
      # All AIX code is PIC.
 
7756
      if test "$host_cpu" = ia64; then
 
7757
        # AIX 5 now supports IA64 processor
 
7758
        lt_prog_compiler_static='-Bstatic'
 
7759
      fi
 
7760
      ;;
 
7761
 
 
7762
    amigaos*)
 
7763
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7764
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7765
      # like `-m68040'.
 
7766
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7767
      ;;
 
7768
 
 
7769
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7770
      # PIC is the default for these OSes.
 
7771
      ;;
 
7772
 
 
7773
    mingw* | cygwin* | pw32* | os2*)
 
7774
      # This hack is so that the source file can tell whether it is being
 
7775
      # built for inclusion in a dll (and should export symbols for example).
 
7776
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7777
      # (--disable-auto-import) libraries
 
7778
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7779
      ;;
 
7780
 
 
7781
    darwin* | rhapsody*)
 
7782
      # PIC is the default on this platform
 
7783
      # Common symbols not allowed in MH_DYLIB files
 
7784
      lt_prog_compiler_pic='-fno-common'
 
7785
      ;;
 
7786
 
 
7787
    interix[3-9]*)
 
7788
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7789
      # Instead, we relocate shared libraries at runtime.
 
7790
      ;;
 
7791
 
 
7792
    msdosdjgpp*)
 
7793
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7794
      # on systems that don't support them.
 
7795
      lt_prog_compiler_can_build_shared=no
 
7796
      enable_shared=no
 
7797
      ;;
 
7798
 
 
7799
    sysv4*MP*)
 
7800
      if test -d /usr/nec; then
 
7801
        lt_prog_compiler_pic=-Kconform_pic
 
7802
      fi
 
7803
      ;;
 
7804
 
 
7805
    hpux*)
 
7806
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7807
      # not for PA HP-UX.
 
7808
      case $host_cpu in
 
7809
      hppa*64*|ia64*)
 
7810
        # +Z the default
 
7811
        ;;
 
7812
      *)
 
7813
        lt_prog_compiler_pic='-fPIC'
 
7814
        ;;
 
7815
      esac
 
7816
      ;;
 
7817
 
 
7818
    *)
 
7819
      lt_prog_compiler_pic='-fPIC'
 
7820
      ;;
 
7821
    esac
 
7822
  else
 
7823
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7824
    case $host_os in
 
7825
    aix*)
 
7826
      lt_prog_compiler_wl='-Wl,'
 
7827
      if test "$host_cpu" = ia64; then
 
7828
        # AIX 5 now supports IA64 processor
 
7829
        lt_prog_compiler_static='-Bstatic'
 
7830
      else
 
7831
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7832
      fi
 
7833
      ;;
 
7834
      darwin*)
 
7835
        # PIC is the default on this platform
 
7836
        # Common symbols not allowed in MH_DYLIB files
 
7837
       case $cc_basename in
 
7838
         xlc*)
 
7839
         lt_prog_compiler_pic='-qnocommon'
 
7840
         lt_prog_compiler_wl='-Wl,'
 
7841
         ;;
 
7842
       esac
 
7843
       ;;
 
7844
 
 
7845
    mingw* | cygwin* | pw32* | os2*)
 
7846
      # This hack is so that the source file can tell whether it is being
 
7847
      # built for inclusion in a dll (and should export symbols for example).
 
7848
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7849
      ;;
 
7850
 
 
7851
    hpux9* | hpux10* | hpux11*)
 
7852
      lt_prog_compiler_wl='-Wl,'
 
7853
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7854
      # not for PA HP-UX.
 
7855
      case $host_cpu in
 
7856
      hppa*64*|ia64*)
 
7857
        # +Z the default
 
7858
        ;;
 
7859
      *)
 
7860
        lt_prog_compiler_pic='+Z'
 
7861
        ;;
 
7862
      esac
 
7863
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7864
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7865
      ;;
 
7866
 
 
7867
    irix5* | irix6* | nonstopux*)
 
7868
      lt_prog_compiler_wl='-Wl,'
 
7869
      # PIC (with -KPIC) is the default.
 
7870
      lt_prog_compiler_static='-non_shared'
 
7871
      ;;
 
7872
 
 
7873
    newsos6)
 
7874
      lt_prog_compiler_pic='-KPIC'
 
7875
      lt_prog_compiler_static='-Bstatic'
 
7876
      ;;
 
7877
 
 
7878
    linux* | k*bsd*-gnu)
 
7879
      case $cc_basename in
 
7880
      icc* | ecc*)
 
7881
        lt_prog_compiler_wl='-Wl,'
 
7882
        lt_prog_compiler_pic='-KPIC'
 
7883
        lt_prog_compiler_static='-static'
 
7884
        ;;
 
7885
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7886
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7887
        # which looks to be a dead project)
 
7888
        lt_prog_compiler_wl='-Wl,'
 
7889
        lt_prog_compiler_pic='-fpic'
 
7890
        lt_prog_compiler_static='-Bstatic'
 
7891
        ;;
 
7892
      ccc*)
 
7893
        lt_prog_compiler_wl='-Wl,'
 
7894
        # All Alpha code is PIC.
 
7895
        lt_prog_compiler_static='-non_shared'
 
7896
        ;;
 
7897
      *)
 
7898
        case `$CC -V 2>&1 | sed 5q` in
 
7899
        *Sun\ C*)
 
7900
          # Sun C 5.9
 
7901
          lt_prog_compiler_pic='-KPIC'
 
7902
          lt_prog_compiler_static='-Bstatic'
 
7903
          lt_prog_compiler_wl='-Wl,'
 
7904
          ;;
 
7905
        *Sun\ F*)
 
7906
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7907
          lt_prog_compiler_pic='-KPIC'
 
7908
          lt_prog_compiler_static='-Bstatic'
 
7909
          lt_prog_compiler_wl=''
 
7910
          ;;
 
7911
        esac
 
7912
        ;;
 
7913
      esac
 
7914
      ;;
 
7915
 
 
7916
    osf3* | osf4* | osf5*)
 
7917
      lt_prog_compiler_wl='-Wl,'
 
7918
      # All OSF/1 code is PIC.
 
7919
      lt_prog_compiler_static='-non_shared'
 
7920
      ;;
 
7921
 
 
7922
    rdos*)
 
7923
      lt_prog_compiler_static='-non_shared'
 
7924
      ;;
 
7925
 
 
7926
    solaris*)
 
7927
      lt_prog_compiler_pic='-KPIC'
 
7928
      lt_prog_compiler_static='-Bstatic'
 
7929
      case $cc_basename in
 
7930
      f77* | f90* | f95*)
 
7931
        lt_prog_compiler_wl='-Qoption ld ';;
 
7932
      *)
 
7933
        lt_prog_compiler_wl='-Wl,';;
 
7934
      esac
 
7935
      ;;
 
7936
 
 
7937
    sunos4*)
 
7938
      lt_prog_compiler_wl='-Qoption ld '
 
7939
      lt_prog_compiler_pic='-PIC'
 
7940
      lt_prog_compiler_static='-Bstatic'
 
7941
      ;;
 
7942
 
 
7943
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7944
      lt_prog_compiler_wl='-Wl,'
 
7945
      lt_prog_compiler_pic='-KPIC'
 
7946
      lt_prog_compiler_static='-Bstatic'
 
7947
      ;;
 
7948
 
 
7949
    sysv4*MP*)
 
7950
      if test -d /usr/nec ;then
 
7951
        lt_prog_compiler_pic='-Kconform_pic'
 
7952
        lt_prog_compiler_static='-Bstatic'
 
7953
      fi
 
7954
      ;;
 
7955
 
 
7956
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7957
      lt_prog_compiler_wl='-Wl,'
 
7958
      lt_prog_compiler_pic='-KPIC'
 
7959
      lt_prog_compiler_static='-Bstatic'
 
7960
      ;;
 
7961
 
 
7962
    unicos*)
 
7963
      lt_prog_compiler_wl='-Wl,'
 
7964
      lt_prog_compiler_can_build_shared=no
 
7965
      ;;
 
7966
 
 
7967
    uts4*)
 
7968
      lt_prog_compiler_pic='-pic'
 
7969
      lt_prog_compiler_static='-Bstatic'
 
7970
      ;;
 
7971
 
 
7972
    *)
 
7973
      lt_prog_compiler_can_build_shared=no
 
7974
      ;;
 
7975
    esac
 
7976
  fi
 
7977
 
 
7978
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7979
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7980
 
 
7981
#
 
7982
# Check to make sure the PIC flag actually works.
 
7983
#
 
7984
if test -n "$lt_prog_compiler_pic"; then
 
7985
  
 
7986
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7987
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7988
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7990
else
 
7991
  lt_cv_prog_compiler_pic_works=no
 
7992
  ac_outfile=conftest.$ac_objext
 
7993
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7994
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7995
   # Insert the option either (1) after the last *FLAGS variable, or
 
7996
   # (2) before a word containing "conftest.", or (3) at the end.
 
7997
   # Note that $ac_compile itself does not contain backslashes and begins
 
7998
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7999
   # The option is referenced via a variable to avoid confusing sed.
 
8000
   lt_compile=`echo "$ac_compile" | $SED \
 
8001
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8002
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8003
   -e 's:$: $lt_compiler_flag:'`
 
8004
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
8005
   (eval "$lt_compile" 2>conftest.err)
 
8006
   ac_status=$?
 
8007
   cat conftest.err >&5
 
8008
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
8009
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8010
     # The compiler can only warn and ignore the option if not recognized
 
8011
     # So say no if there are warnings other than the usual output.
 
8012
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8013
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8014
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8015
       lt_cv_prog_compiler_pic_works=yes
 
8016
     fi
 
8017
   fi
 
8018
   $rm conftest*
 
8019
 
 
8020
fi
 
8021
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8022
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
8023
 
 
8024
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8025
    case $lt_prog_compiler_pic in
 
8026
     "" | " "*) ;;
 
8027
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8028
     esac
 
8029
else
 
8030
    lt_prog_compiler_pic=
 
8031
     lt_prog_compiler_can_build_shared=no
 
8032
fi
 
8033
 
 
8034
fi
 
8035
case $host_os in
 
8036
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8037
  *djgpp*)
 
8038
    lt_prog_compiler_pic=
 
8039
    ;;
 
8040
  *)
 
8041
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8042
    ;;
 
8043
esac
 
8044
 
 
8045
#
 
8046
# Check to make sure the static flag actually works.
 
8047
#
 
8048
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8049
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8050
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
8051
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8052
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8053
else
 
8054
  lt_cv_prog_compiler_static_works=no
 
8055
   save_LDFLAGS="$LDFLAGS"
 
8056
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8057
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8058
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8059
     # The linker can only warn and ignore the option if not recognized
 
8060
     # So say no if there are warnings
 
8061
     if test -s conftest.err; then
 
8062
       # Append any errors to the config.log.
 
8063
       cat conftest.err 1>&5
 
8064
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8065
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8066
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8067
         lt_cv_prog_compiler_static_works=yes
 
8068
       fi
 
8069
     else
 
8070
       lt_cv_prog_compiler_static_works=yes
 
8071
     fi
 
8072
   fi
 
8073
   $rm -r conftest*
 
8074
   LDFLAGS="$save_LDFLAGS"
 
8075
 
 
8076
fi
 
8077
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8078
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
8079
 
 
8080
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8081
    :
 
8082
else
 
8083
    lt_prog_compiler_static=
 
8084
fi
 
8085
 
 
8086
 
 
8087
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8088
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8089
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8091
else
 
8092
  lt_cv_prog_compiler_c_o=no
 
8093
   $rm -r conftest 2>/dev/null
 
8094
   mkdir conftest
 
8095
   cd conftest
 
8096
   mkdir out
 
8097
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8098
 
 
8099
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8100
   # Insert the option either (1) after the last *FLAGS variable, or
 
8101
   # (2) before a word containing "conftest.", or (3) at the end.
 
8102
   # Note that $ac_compile itself does not contain backslashes and begins
 
8103
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8104
   lt_compile=`echo "$ac_compile" | $SED \
 
8105
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8106
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8107
   -e 's:$: $lt_compiler_flag:'`
 
8108
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
8109
   (eval "$lt_compile" 2>out/conftest.err)
 
8110
   ac_status=$?
 
8111
   cat out/conftest.err >&5
 
8112
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
8113
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8114
   then
 
8115
     # The compiler can only warn and ignore the option if not recognized
 
8116
     # So say no if there are warnings
 
8117
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8118
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8119
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8120
       lt_cv_prog_compiler_c_o=yes
 
8121
     fi
 
8122
   fi
 
8123
   chmod u+w . 2>&5
 
8124
   $rm conftest*
 
8125
   # SGI C++ compiler will create directory out/ii_files/ for
 
8126
   # template instantiation
 
8127
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8128
   $rm out/* && rmdir out
 
8129
   cd ..
 
8130
   rmdir conftest
 
8131
   $rm conftest*
 
8132
 
 
8133
fi
 
8134
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8135
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8136
 
 
8137
 
 
8138
hard_links="nottested"
 
8139
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8140
  # do not overwrite the value of need_locks provided by the user
 
8141
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8142
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8143
  hard_links=yes
 
8144
  $rm conftest*
 
8145
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8146
  touch conftest.a
 
8147
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8148
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8149
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8150
echo "${ECHO_T}$hard_links" >&6; }
 
8151
  if test "$hard_links" = no; then
 
8152
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8153
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8154
    need_locks=warn
 
8155
  fi
 
8156
else
 
8157
  need_locks=no
 
8158
fi
 
8159
 
 
8160
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8161
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8162
 
 
8163
  runpath_var=
 
8164
  allow_undefined_flag=
 
8165
  enable_shared_with_static_runtimes=no
 
8166
  archive_cmds=
 
8167
  archive_expsym_cmds=
 
8168
  old_archive_From_new_cmds=
 
8169
  old_archive_from_expsyms_cmds=
 
8170
  export_dynamic_flag_spec=
 
8171
  whole_archive_flag_spec=
 
8172
  thread_safe_flag_spec=
 
8173
  hardcode_libdir_flag_spec=
 
8174
  hardcode_libdir_flag_spec_ld=
 
8175
  hardcode_libdir_separator=
 
8176
  hardcode_direct=no
 
8177
  hardcode_minus_L=no
 
8178
  hardcode_shlibpath_var=unsupported
 
8179
  link_all_deplibs=unknown
 
8180
  hardcode_automatic=no
 
8181
  module_cmds=
 
8182
  module_expsym_cmds=
 
8183
  always_export_symbols=no
 
8184
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8185
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8186
  # included in the symbol list
 
8187
  include_expsyms=
 
8188
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8189
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8190
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8191
  # as well as any symbol that contains `d'.
 
8192
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8193
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8194
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8195
  # the symbol is explicitly referenced.  Since portable code cannot
 
8196
  # rely on this symbol name, it's probably fine to never include it in
 
8197
  # preloaded symbol tables.
 
8198
  # Exclude shared library initialization/finalization symbols.
 
8199
  extract_expsyms_cmds=
 
8200
  # Just being paranoid about ensuring that cc_basename is set.
 
8201
  for cc_temp in $compiler""; do
 
8202
  case $cc_temp in
 
8203
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8204
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8205
    \-*) ;;
 
8206
    *) break;;
 
8207
  esac
 
8208
done
 
8209
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8210
 
 
8211
  case $host_os in
 
8212
  cygwin* | mingw* | pw32*)
 
8213
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8214
    # When not using gcc, we currently assume that we are using
 
8215
    # Microsoft Visual C++.
 
8216
    if test "$GCC" != yes; then
 
8217
      with_gnu_ld=no
 
8218
    fi
 
8219
    ;;
 
8220
  interix*)
 
8221
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8222
    with_gnu_ld=yes
 
8223
    ;;
 
8224
  openbsd*)
 
8225
    with_gnu_ld=no
 
8226
    ;;
 
8227
  esac
 
8228
 
 
8229
  ld_shlibs=yes
 
8230
  if test "$with_gnu_ld" = yes; then
 
8231
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8232
    wlarc='${wl}'
 
8233
 
 
8234
    # Set some defaults for GNU ld with shared library support. These
 
8235
    # are reset later if shared libraries are not supported. Putting them
 
8236
    # here allows them to be overridden if necessary.
 
8237
    runpath_var=LD_RUN_PATH
 
8238
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8239
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8240
    # ancient GNU ld didn't support --whole-archive et. al.
 
8241
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8242
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8243
      else
 
8244
        whole_archive_flag_spec=
 
8245
    fi
 
8246
    supports_anon_versioning=no
 
8247
    case `$LD -v 2>/dev/null` in
 
8248
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8249
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8250
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8251
      *\ 2.11.*) ;; # other 2.11 versions
 
8252
      *) supports_anon_versioning=yes ;;
 
8253
    esac
 
8254
 
 
8255
    # See if GNU ld supports shared libraries.
 
8256
    case $host_os in
 
8257
    aix[3-9]*)
 
8258
      # On AIX/PPC, the GNU linker is very broken
 
8259
      if test "$host_cpu" != ia64; then
 
8260
        ld_shlibs=no
 
8261
        cat <<EOF 1>&2
 
8262
 
 
8263
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8264
*** to be unable to reliably create shared libraries on AIX.
 
8265
*** Therefore, libtool is disabling shared libraries support.  If you
 
8266
*** really care for shared libraries, you may want to modify your PATH
 
8267
*** so that a non-GNU linker is found, and then restart.
 
8268
 
 
8269
EOF
 
8270
      fi
 
8271
      ;;
 
8272
 
 
8273
    amigaos*)
 
8274
      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)'
 
8275
      hardcode_libdir_flag_spec='-L$libdir'
 
8276
      hardcode_minus_L=yes
 
8277
 
 
8278
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8279
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8280
      # to version 4, is to share data among multiple programs linked
 
8281
      # with the same dynamic library.  Since this doesn't match the
 
8282
      # behavior of shared libraries on other platforms, we can't use
 
8283
      # them.
 
8284
      ld_shlibs=no
 
8285
      ;;
 
8286
 
 
8287
    beos*)
 
8288
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8289
        allow_undefined_flag=unsupported
 
8290
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8291
        # support --undefined.  This deserves some investigation.  FIXME
 
8292
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8293
      else
 
8294
        ld_shlibs=no
 
8295
      fi
 
8296
      ;;
 
8297
 
 
8298
    cygwin* | mingw* | pw32*)
 
8299
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8300
      # as there is no search path for DLLs.
 
8301
      hardcode_libdir_flag_spec='-L$libdir'
 
8302
      allow_undefined_flag=unsupported
 
8303
      always_export_symbols=no
 
8304
      enable_shared_with_static_runtimes=yes
 
8305
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8306
 
 
8307
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8308
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8309
        # If the export-symbols file already is a .def file (1st line
 
8310
        # is EXPORTS), use it as is; otherwise, prepend...
 
8311
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8312
          cp $export_symbols $output_objdir/$soname.def;
 
8313
        else
 
8314
          echo EXPORTS > $output_objdir/$soname.def;
 
8315
          cat $export_symbols >> $output_objdir/$soname.def;
 
8316
        fi~
 
8317
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8318
      else
 
8319
        ld_shlibs=no
 
8320
      fi
 
8321
      ;;
 
8322
 
 
8323
    interix[3-9]*)
 
8324
      hardcode_direct=no
 
8325
      hardcode_shlibpath_var=no
 
8326
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8327
      export_dynamic_flag_spec='${wl}-E'
 
8328
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8329
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8330
      # default) and relocated if they conflict, which is a slow very memory
 
8331
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8332
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8333
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8334
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8335
      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'
 
8336
      ;;
 
8337
 
 
8338
    gnu* | linux* | k*bsd*-gnu)
 
8339
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8340
        tmp_addflag=
 
8341
        case $cc_basename,$host_cpu in
 
8342
        pgcc*)                          # Portland Group C compiler
 
8343
          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'
 
8344
          tmp_addflag=' $pic_flag'
 
8345
          ;;
 
8346
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8347
          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'
 
8348
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8349
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8350
          tmp_addflag=' -i_dynamic' ;;
 
8351
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8352
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8353
        ifc* | ifort*)                  # Intel Fortran compiler
 
8354
          tmp_addflag=' -nofor_main' ;;
 
8355
        esac
 
8356
        case `$CC -V 2>&1 | sed 5q` in
 
8357
        *Sun\ C*)                       # Sun C 5.9
 
8358
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8359
          tmp_sharedflag='-G' ;;
 
8360
        *Sun\ F*)                       # Sun Fortran 8.3
 
8361
          tmp_sharedflag='-G' ;;
 
8362
        *)
 
8363
          tmp_sharedflag='-shared' ;;
 
8364
        esac
 
8365
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8366
 
 
8367
        if test $supports_anon_versioning = yes; then
 
8368
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8369
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8370
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8371
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8372
        fi
 
8373
        link_all_deplibs=no
 
8374
      else
 
8375
        ld_shlibs=no
 
8376
      fi
 
8377
      ;;
 
8378
 
 
8379
    netbsd* | netbsdelf*-gnu)
 
8380
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8381
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8382
        wlarc=
 
8383
      else
 
8384
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8385
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8386
      fi
 
8387
      ;;
 
8388
 
 
8389
    solaris*)
 
8390
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8391
        ld_shlibs=no
 
8392
        cat <<EOF 1>&2
 
8393
 
 
8394
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8395
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8396
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8397
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8398
*** your PATH or compiler configuration so that the native linker is
 
8399
*** used, and then restart.
 
8400
 
 
8401
EOF
 
8402
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8403
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8404
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8405
      else
 
8406
        ld_shlibs=no
 
8407
      fi
 
8408
      ;;
 
8409
 
 
8410
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8411
      case `$LD -v 2>&1` in
 
8412
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8413
        ld_shlibs=no
 
8414
        cat <<_LT_EOF 1>&2
 
8415
 
 
8416
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8417
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8418
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8419
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8420
*** your PATH or compiler configuration so that the native linker is
 
8421
*** used, and then restart.
 
8422
 
 
8423
_LT_EOF
 
8424
        ;;
 
8425
        *)
 
8426
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8427
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8428
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8429
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8430
          else
 
8431
            ld_shlibs=no
 
8432
          fi
 
8433
        ;;
 
8434
      esac
 
8435
      ;;
 
8436
 
 
8437
    sunos4*)
 
8438
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8439
      wlarc=
 
8440
      hardcode_direct=yes
 
8441
      hardcode_shlibpath_var=no
 
8442
      ;;
 
8443
 
 
8444
    *)
 
8445
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8446
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8447
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8448
      else
 
8449
        ld_shlibs=no
 
8450
      fi
 
8451
      ;;
 
8452
    esac
 
8453
 
 
8454
    if test "$ld_shlibs" = no; then
 
8455
      runpath_var=
 
8456
      hardcode_libdir_flag_spec=
 
8457
      export_dynamic_flag_spec=
 
8458
      whole_archive_flag_spec=
 
8459
    fi
 
8460
  else
 
8461
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8462
    case $host_os in
 
8463
    aix3*)
 
8464
      allow_undefined_flag=unsupported
 
8465
      always_export_symbols=yes
 
8466
      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'
 
8467
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8468
      # are no directories specified by -L.
 
8469
      hardcode_minus_L=yes
 
8470
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8471
        # Neither direct hardcoding nor static linking is supported with a
 
8472
        # broken collect2.
 
8473
        hardcode_direct=unsupported
 
8474
      fi
 
8475
      ;;
 
8476
 
 
8477
    aix[4-9]*)
 
8478
      if test "$host_cpu" = ia64; then
 
8479
        # On IA64, the linker does run time linking by default, so we don't
 
8480
        # have to do anything special.
 
8481
        aix_use_runtimelinking=no
 
8482
        exp_sym_flag='-Bexport'
 
8483
        no_entry_flag=""
 
8484
      else
 
8485
        # If we're using GNU nm, then we don't want the "-C" option.
 
8486
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8487
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8488
          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'
 
8489
        else
 
8490
          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'
 
8491
        fi
 
8492
        aix_use_runtimelinking=no
 
8493
 
 
8494
        # Test if we are trying to use run time linking or normal
 
8495
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8496
        # need to do runtime linking.
 
8497
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8498
          for ld_flag in $LDFLAGS; do
 
8499
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8500
            aix_use_runtimelinking=yes
 
8501
            break
 
8502
          fi
 
8503
          done
 
8504
          ;;
 
8505
        esac
 
8506
 
 
8507
        exp_sym_flag='-bexport'
 
8508
        no_entry_flag='-bnoentry'
 
8509
      fi
 
8510
 
 
8511
      # When large executables or shared objects are built, AIX ld can
 
8512
      # have problems creating the table of contents.  If linking a library
 
8513
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8514
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8515
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8516
 
 
8517
      archive_cmds=''
 
8518
      hardcode_direct=yes
 
8519
      hardcode_libdir_separator=':'
 
8520
      link_all_deplibs=yes
 
8521
 
 
8522
      if test "$GCC" = yes; then
 
8523
        case $host_os in aix4.[012]|aix4.[012].*)
 
8524
        # We only want to do this on AIX 4.2 and lower, the check
 
8525
        # below for broken collect2 doesn't work under 4.3+
 
8526
          collect2name=`${CC} -print-prog-name=collect2`
 
8527
          if test -f "$collect2name" && \
 
8528
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8529
          then
 
8530
          # We have reworked collect2
 
8531
          :
 
8532
          else
 
8533
          # We have old collect2
 
8534
          hardcode_direct=unsupported
 
8535
          # It fails to find uninstalled libraries when the uninstalled
 
8536
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8537
          # to unsupported forces relinking
 
8538
          hardcode_minus_L=yes
 
8539
          hardcode_libdir_flag_spec='-L$libdir'
 
8540
          hardcode_libdir_separator=
 
8541
          fi
 
8542
          ;;
 
8543
        esac
 
8544
        shared_flag='-shared'
 
8545
        if test "$aix_use_runtimelinking" = yes; then
 
8546
          shared_flag="$shared_flag "'${wl}-G'
 
8547
        fi
 
8548
      else
 
8549
        # not using gcc
 
8550
        if test "$host_cpu" = ia64; then
 
8551
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8552
        # chokes on -Wl,-G. The following line is correct:
 
8553
          shared_flag='-G'
 
8554
        else
 
8555
          if test "$aix_use_runtimelinking" = yes; then
 
8556
            shared_flag='${wl}-G'
 
8557
          else
 
8558
            shared_flag='${wl}-bM:SRE'
 
8559
          fi
 
8560
        fi
 
8561
      fi
 
8562
 
 
8563
      # It seems that -bexpall does not export symbols beginning with
 
8564
      # underscore (_), so it is better to generate a list of symbols to export.
 
8565
      always_export_symbols=yes
 
8566
      if test "$aix_use_runtimelinking" = yes; then
 
8567
        # Warning - without using the other runtime loading flags (-brtl),
 
8568
        # -berok will link without error, but may produce a broken library.
 
8569
        allow_undefined_flag='-berok'
 
8570
       # Determine the default libpath from the value encoded in an empty executable.
 
8571
       cat >conftest.$ac_ext <<_ACEOF
 
8572
/* confdefs.h.  */
 
8573
_ACEOF
 
8574
cat confdefs.h >>conftest.$ac_ext
 
8575
cat >>conftest.$ac_ext <<_ACEOF
 
8576
/* end confdefs.h.  */
 
8577
 
 
8578
int
 
8579
main ()
 
8580
{
 
8581
 
 
8582
  ;
 
8583
  return 0;
 
8584
}
 
8585
_ACEOF
 
8586
rm -f conftest.$ac_objext conftest$ac_exeext
 
8587
if { (ac_try="$ac_link"
 
8588
case "(($ac_try" in
 
8589
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8590
  *) ac_try_echo=$ac_try;;
 
8591
esac
 
8592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8593
  (eval "$ac_link") 2>conftest.er1
 
8594
  ac_status=$?
 
8595
  grep -v '^ *+' conftest.er1 >conftest.err
 
8596
  rm -f conftest.er1
 
8597
  cat conftest.err >&5
 
8598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8599
  (exit $ac_status); } && {
 
8600
         test -z "$ac_c_werror_flag" ||
 
8601
         test ! -s conftest.err
 
8602
       } && test -s conftest$ac_exeext &&
 
8603
       $as_test_x conftest$ac_exeext; then
 
8604
  
 
8605
lt_aix_libpath_sed='
 
8606
    /Import File Strings/,/^$/ {
 
8607
        /^0/ {
 
8608
            s/^0  *\(.*\)$/\1/
 
8609
            p
 
8610
        }
 
8611
    }'
 
8612
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8613
# Check for a 64-bit object if we didn't find anything.
 
8614
if test -z "$aix_libpath"; then
 
8615
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8616
fi
 
8617
else
 
8618
  echo "$as_me: failed program was:" >&5
 
8619
sed 's/^/| /' conftest.$ac_ext >&5
 
8620
 
 
8621
        
 
8622
fi
 
8623
 
 
8624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8625
      conftest$ac_exeext conftest.$ac_ext
 
8626
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8627
 
 
8628
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8629
        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"
 
8630
       else
 
8631
        if test "$host_cpu" = ia64; then
 
8632
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8633
          allow_undefined_flag="-z nodefs"
 
8634
          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"
 
8635
        else
 
8636
         # Determine the default libpath from the value encoded in an empty executable.
 
8637
         cat >conftest.$ac_ext <<_ACEOF
 
8638
/* confdefs.h.  */
 
8639
_ACEOF
 
8640
cat confdefs.h >>conftest.$ac_ext
 
8641
cat >>conftest.$ac_ext <<_ACEOF
 
8642
/* end confdefs.h.  */
 
8643
 
 
8644
int
 
8645
main ()
 
8646
{
 
8647
 
 
8648
  ;
 
8649
  return 0;
 
8650
}
 
8651
_ACEOF
 
8652
rm -f conftest.$ac_objext conftest$ac_exeext
 
8653
if { (ac_try="$ac_link"
 
8654
case "(($ac_try" in
 
8655
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8656
  *) ac_try_echo=$ac_try;;
 
8657
esac
 
8658
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8659
  (eval "$ac_link") 2>conftest.er1
 
8660
  ac_status=$?
 
8661
  grep -v '^ *+' conftest.er1 >conftest.err
 
8662
  rm -f conftest.er1
 
8663
  cat conftest.err >&5
 
8664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8665
  (exit $ac_status); } && {
 
8666
         test -z "$ac_c_werror_flag" ||
 
8667
         test ! -s conftest.err
 
8668
       } && test -s conftest$ac_exeext &&
 
8669
       $as_test_x conftest$ac_exeext; then
 
8670
  
 
8671
lt_aix_libpath_sed='
 
8672
    /Import File Strings/,/^$/ {
 
8673
        /^0/ {
 
8674
            s/^0  *\(.*\)$/\1/
 
8675
            p
 
8676
        }
 
8677
    }'
 
8678
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8679
# Check for a 64-bit object if we didn't find anything.
 
8680
if test -z "$aix_libpath"; then
 
8681
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8682
fi
 
8683
else
 
8684
  echo "$as_me: failed program was:" >&5
 
8685
sed 's/^/| /' conftest.$ac_ext >&5
 
8686
 
 
8687
        
 
8688
fi
 
8689
 
 
8690
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8691
      conftest$ac_exeext conftest.$ac_ext
 
8692
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8693
 
 
8694
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8695
          # Warning - without using the other run time loading flags,
 
8696
          # -berok will link without error, but may produce a broken library.
 
8697
          no_undefined_flag=' ${wl}-bernotok'
 
8698
          allow_undefined_flag=' ${wl}-berok'
 
8699
          # Exported symbols can be pulled into shared objects from archives
 
8700
          whole_archive_flag_spec='$convenience'
 
8701
          archive_cmds_need_lc=yes
 
8702
          # This is similar to how AIX traditionally builds its shared libraries.
 
8703
          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'
 
8704
        fi
 
8705
      fi
 
8706
      ;;
 
8707
 
 
8708
    amigaos*)
 
8709
      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)'
 
8710
      hardcode_libdir_flag_spec='-L$libdir'
 
8711
      hardcode_minus_L=yes
 
8712
      # see comment about different semantics on the GNU ld section
 
8713
      ld_shlibs=no
 
8714
      ;;
 
8715
 
 
8716
    bsdi[45]*)
 
8717
      export_dynamic_flag_spec=-rdynamic
 
8718
      ;;
 
8719
 
 
8720
    cygwin* | mingw* | pw32*)
 
8721
      # When not using gcc, we currently assume that we are using
 
8722
      # Microsoft Visual C++.
 
8723
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8724
      # no search path for DLLs.
 
8725
      hardcode_libdir_flag_spec=' '
 
8726
      allow_undefined_flag=unsupported
 
8727
      # Tell ltmain to make .lib files, not .a files.
 
8728
      libext=lib
 
8729
      # Tell ltmain to make .dll files, not .so files.
 
8730
      shrext_cmds=".dll"
 
8731
      # FIXME: Setting linknames here is a bad hack.
 
8732
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8733
      # The linker will automatically build a .lib file if we build a DLL.
 
8734
      old_archive_From_new_cmds='true'
 
8735
      # FIXME: Should let the user specify the lib program.
 
8736
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8737
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8738
      enable_shared_with_static_runtimes=yes
 
8739
      ;;
 
8740
 
 
8741
    darwin* | rhapsody*)
 
8742
      case $host_os in
 
8743
        rhapsody* | darwin1.[012])
 
8744
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8745
         ;;
 
8746
       *) # Darwin 1.3 on
 
8747
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8748
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8749
         else
 
8750
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8751
             10.[012])
 
8752
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8753
               ;;
 
8754
             10.*)
 
8755
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8756
               ;;
 
8757
           esac
 
8758
         fi
 
8759
         ;;
 
8760
      esac
 
8761
      archive_cmds_need_lc=no
 
8762
      hardcode_direct=no
 
8763
      hardcode_automatic=yes
 
8764
      hardcode_shlibpath_var=unsupported
 
8765
      whole_archive_flag_spec=''
 
8766
      link_all_deplibs=yes
 
8767
    if test "$GCC" = yes ; then
 
8768
        output_verbose_link_cmd='echo'
 
8769
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8770
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8771
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8772
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8773
    else
 
8774
      case $cc_basename in
 
8775
        xlc*)
 
8776
         output_verbose_link_cmd='echo'
 
8777
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8778
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8779
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8780
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8781
          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}'
 
8782
          ;;
 
8783
       *)
 
8784
         ld_shlibs=no
 
8785
          ;;
 
8786
      esac
 
8787
    fi
 
8788
      ;;
 
8789
 
 
8790
    dgux*)
 
8791
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8792
      hardcode_libdir_flag_spec='-L$libdir'
 
8793
      hardcode_shlibpath_var=no
 
8794
      ;;
 
8795
 
 
8796
    freebsd1*)
 
8797
      ld_shlibs=no
 
8798
      ;;
 
8799
 
 
8800
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8801
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8802
    # does not break anything, and helps significantly (at the cost of a little
 
8803
    # extra space).
 
8804
    freebsd2.2*)
 
8805
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8806
      hardcode_libdir_flag_spec='-R$libdir'
 
8807
      hardcode_direct=yes
 
8808
      hardcode_shlibpath_var=no
 
8809
      ;;
 
8810
 
 
8811
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8812
    freebsd2*)
 
8813
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8814
      hardcode_direct=yes
 
8815
      hardcode_minus_L=yes
 
8816
      hardcode_shlibpath_var=no
 
8817
      ;;
 
8818
 
 
8819
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8820
    freebsd* | dragonfly*)
 
8821
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8822
      hardcode_libdir_flag_spec='-R$libdir'
 
8823
      hardcode_direct=yes
 
8824
      hardcode_shlibpath_var=no
 
8825
      ;;
 
8826
 
 
8827
    hpux9*)
 
8828
      if test "$GCC" = yes; then
 
8829
        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'
 
8830
      else
 
8831
        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'
 
8832
      fi
 
8833
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8834
      hardcode_libdir_separator=:
 
8835
      hardcode_direct=yes
 
8836
 
 
8837
      # hardcode_minus_L: Not really in the search PATH,
 
8838
      # but as the default location of the library.
 
8839
      hardcode_minus_L=yes
 
8840
      export_dynamic_flag_spec='${wl}-E'
 
8841
      ;;
 
8842
 
 
8843
    hpux10*)
 
8844
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8845
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8846
      else
 
8847
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8848
      fi
 
8849
      if test "$with_gnu_ld" = no; then
 
8850
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8851
        hardcode_libdir_separator=:
 
8852
 
 
8853
        hardcode_direct=yes
 
8854
        export_dynamic_flag_spec='${wl}-E'
 
8855
 
 
8856
        # hardcode_minus_L: Not really in the search PATH,
 
8857
        # but as the default location of the library.
 
8858
        hardcode_minus_L=yes
 
8859
      fi
 
8860
      ;;
 
8861
 
 
8862
    hpux11*)
 
8863
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8864
        case $host_cpu in
 
8865
        hppa*64*)
 
8866
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8867
          ;;
 
8868
        ia64*)
 
8869
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8870
          ;;
 
8871
        *)
 
8872
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8873
          ;;
 
8874
        esac
 
8875
      else
 
8876
        case $host_cpu in
 
8877
        hppa*64*)
 
8878
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8879
          ;;
 
8880
        ia64*)
 
8881
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8882
          ;;
 
8883
        *)
 
8884
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8885
          ;;
 
8886
        esac
 
8887
      fi
 
8888
      if test "$with_gnu_ld" = no; then
 
8889
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8890
        hardcode_libdir_separator=:
 
8891
 
 
8892
        case $host_cpu in
 
8893
        hppa*64*|ia64*)
 
8894
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8895
          hardcode_direct=no
 
8896
          hardcode_shlibpath_var=no
 
8897
          ;;
 
8898
        *)
 
8899
          hardcode_direct=yes
 
8900
          export_dynamic_flag_spec='${wl}-E'
 
8901
 
 
8902
          # hardcode_minus_L: Not really in the search PATH,
 
8903
          # but as the default location of the library.
 
8904
          hardcode_minus_L=yes
 
8905
          ;;
 
8906
        esac
 
8907
      fi
 
8908
      ;;
 
8909
 
 
8910
    irix5* | irix6* | nonstopux*)
 
8911
      if test "$GCC" = yes; then
 
8912
        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'
 
8913
      else
 
8914
        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'
 
8915
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8916
      fi
 
8917
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8918
      hardcode_libdir_separator=:
 
8919
      link_all_deplibs=yes
 
8920
      ;;
 
8921
 
 
8922
    netbsd* | netbsdelf*-gnu)
 
8923
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8924
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8925
      else
 
8926
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8927
      fi
 
8928
      hardcode_libdir_flag_spec='-R$libdir'
 
8929
      hardcode_direct=yes
 
8930
      hardcode_shlibpath_var=no
 
8931
      ;;
 
8932
 
 
8933
    newsos6)
 
8934
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8935
      hardcode_direct=yes
 
8936
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8937
      hardcode_libdir_separator=:
 
8938
      hardcode_shlibpath_var=no
 
8939
      ;;
 
8940
 
 
8941
    openbsd*)
 
8942
      if test -f /usr/libexec/ld.so; then
 
8943
        hardcode_direct=yes
 
8944
        hardcode_shlibpath_var=no
 
8945
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8946
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8947
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8948
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8949
          export_dynamic_flag_spec='${wl}-E'
 
8950
        else
 
8951
          case $host_os in
 
8952
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8953
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8954
             hardcode_libdir_flag_spec='-R$libdir'
 
8955
             ;;
 
8956
           *)
 
8957
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8958
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8959
             ;;
 
8960
          esac
 
8961
        fi
 
8962
      else
 
8963
        ld_shlibs=no
 
8964
      fi
 
8965
      ;;
 
8966
 
 
8967
    os2*)
 
8968
      hardcode_libdir_flag_spec='-L$libdir'
 
8969
      hardcode_minus_L=yes
 
8970
      allow_undefined_flag=unsupported
 
8971
      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'
 
8972
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8973
      ;;
 
8974
 
 
8975
    osf3*)
 
8976
      if test "$GCC" = yes; then
 
8977
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8978
        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'
 
8979
      else
 
8980
        allow_undefined_flag=' -expect_unresolved \*'
 
8981
        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'
 
8982
      fi
 
8983
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8984
      hardcode_libdir_separator=:
 
8985
      ;;
 
8986
 
 
8987
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8988
      if test "$GCC" = yes; then
 
8989
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8990
        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'
 
8991
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8992
      else
 
8993
        allow_undefined_flag=' -expect_unresolved \*'
 
8994
        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'
 
8995
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8996
        $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'
 
8997
 
 
8998
        # Both c and cxx compiler support -rpath directly
 
8999
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9000
      fi
 
9001
      hardcode_libdir_separator=:
 
9002
      ;;
 
9003
 
 
9004
    solaris*)
 
9005
      no_undefined_flag=' -z text'
 
9006
      if test "$GCC" = yes; then
 
9007
        wlarc='${wl}'
 
9008
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9009
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9010
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9011
      else
 
9012
        wlarc=''
 
9013
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9014
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9015
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9016
      fi
 
9017
      hardcode_libdir_flag_spec='-R$libdir'
 
9018
      hardcode_shlibpath_var=no
 
9019
      case $host_os in
 
9020
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9021
      *)
 
9022
        # The compiler driver will combine and reorder linker options,
 
9023
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9024
        # but is careful enough not to reorder.
 
9025
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9026
        if test "$GCC" = yes; then
 
9027
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9028
        else
 
9029
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9030
        fi
 
9031
        ;;
 
9032
      esac
 
9033
      link_all_deplibs=yes
 
9034
      ;;
 
9035
 
 
9036
    sunos4*)
 
9037
      if test "x$host_vendor" = xsequent; then
 
9038
        # Use $CC to link under sequent, because it throws in some extra .o
 
9039
        # files that make .init and .fini sections work.
 
9040
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9041
      else
 
9042
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9043
      fi
 
9044
      hardcode_libdir_flag_spec='-L$libdir'
 
9045
      hardcode_direct=yes
 
9046
      hardcode_minus_L=yes
 
9047
      hardcode_shlibpath_var=no
 
9048
      ;;
 
9049
 
 
9050
    sysv4)
 
9051
      case $host_vendor in
 
9052
        sni)
 
9053
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9054
          hardcode_direct=yes # is this really true???
 
9055
        ;;
 
9056
        siemens)
 
9057
          ## LD is ld it makes a PLAMLIB
 
9058
          ## CC just makes a GrossModule.
 
9059
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9060
          reload_cmds='$CC -r -o $output$reload_objs'
 
9061
          hardcode_direct=no
 
9062
        ;;
 
9063
        motorola)
 
9064
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9065
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9066
        ;;
 
9067
      esac
 
9068
      runpath_var='LD_RUN_PATH'
 
9069
      hardcode_shlibpath_var=no
 
9070
      ;;
 
9071
 
 
9072
    sysv4.3*)
 
9073
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9074
      hardcode_shlibpath_var=no
 
9075
      export_dynamic_flag_spec='-Bexport'
 
9076
      ;;
 
9077
 
 
9078
    sysv4*MP*)
 
9079
      if test -d /usr/nec; then
 
9080
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9081
        hardcode_shlibpath_var=no
 
9082
        runpath_var=LD_RUN_PATH
 
9083
        hardcode_runpath_var=yes
 
9084
        ld_shlibs=yes
 
9085
      fi
 
9086
      ;;
 
9087
 
 
9088
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9089
      no_undefined_flag='${wl}-z,text'
 
9090
      archive_cmds_need_lc=no
 
9091
      hardcode_shlibpath_var=no
 
9092
      runpath_var='LD_RUN_PATH'
 
9093
 
 
9094
      if test "$GCC" = yes; then
 
9095
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9096
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9097
      else
 
9098
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9099
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9100
      fi
 
9101
      ;;
 
9102
 
 
9103
    sysv5* | sco3.2v5* | sco5v6*)
 
9104
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9105
      # link with -lc, and that would cause any symbols used from libc to
 
9106
      # always be unresolved, which means just about no library would
 
9107
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9108
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9109
      # as -z defs.
 
9110
      no_undefined_flag='${wl}-z,text'
 
9111
      allow_undefined_flag='${wl}-z,nodefs'
 
9112
      archive_cmds_need_lc=no
 
9113
      hardcode_shlibpath_var=no
 
9114
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9115
      hardcode_libdir_separator=':'
 
9116
      link_all_deplibs=yes
 
9117
      export_dynamic_flag_spec='${wl}-Bexport'
 
9118
      runpath_var='LD_RUN_PATH'
 
9119
 
 
9120
      if test "$GCC" = yes; then
 
9121
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9122
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9123
      else
 
9124
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9125
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9126
      fi
 
9127
      ;;
 
9128
 
 
9129
    uts4*)
 
9130
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9131
      hardcode_libdir_flag_spec='-L$libdir'
 
9132
      hardcode_shlibpath_var=no
 
9133
      ;;
 
9134
 
 
9135
    *)
 
9136
      ld_shlibs=no
 
9137
      ;;
 
9138
    esac
 
9139
  fi
 
9140
 
 
9141
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9142
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9143
test "$ld_shlibs" = no && can_build_shared=no
 
9144
 
 
9145
#
 
9146
# Do we need to explicitly link libc?
 
9147
#
 
9148
case "x$archive_cmds_need_lc" in
 
9149
x|xyes)
 
9150
  # Assume -lc should be added
 
9151
  archive_cmds_need_lc=yes
 
9152
 
 
9153
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9154
    case $archive_cmds in
 
9155
    *'~'*)
 
9156
      # FIXME: we may have to deal with multi-command sequences.
 
9157
      ;;
 
9158
    '$CC '*)
 
9159
      # Test whether the compiler implicitly links with -lc since on some
 
9160
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9161
      # to ld, don't add -lc before -lgcc.
 
9162
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9163
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9164
      $rm conftest*
 
9165
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9166
 
 
9167
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9168
  (eval $ac_compile) 2>&5
 
9169
  ac_status=$?
 
9170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9171
  (exit $ac_status); } 2>conftest.err; then
 
9172
        soname=conftest
 
9173
        lib=conftest
 
9174
        libobjs=conftest.$ac_objext
 
9175
        deplibs=
 
9176
        wl=$lt_prog_compiler_wl
 
9177
        pic_flag=$lt_prog_compiler_pic
 
9178
        compiler_flags=-v
 
9179
        linker_flags=-v
 
9180
        verstring=
 
9181
        output_objdir=.
 
9182
        libname=conftest
 
9183
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9184
        allow_undefined_flag=
 
9185
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9186
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9187
  ac_status=$?
 
9188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9189
  (exit $ac_status); }
 
9190
        then
 
9191
          archive_cmds_need_lc=no
 
9192
        else
 
9193
          archive_cmds_need_lc=yes
 
9194
        fi
 
9195
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9196
      else
 
9197
        cat conftest.err 1>&5
 
9198
      fi
 
9199
      $rm conftest*
 
9200
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9201
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9202
      ;;
 
9203
    esac
 
9204
  fi
 
9205
  ;;
 
9206
esac
 
9207
 
 
9208
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9209
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9210
library_names_spec=
 
9211
libname_spec='lib$name'
 
9212
soname_spec=
 
9213
shrext_cmds=".so"
 
9214
postinstall_cmds=
 
9215
postuninstall_cmds=
 
9216
finish_cmds=
 
9217
finish_eval=
 
9218
shlibpath_var=
 
9219
shlibpath_overrides_runpath=unknown
 
9220
version_type=none
 
9221
dynamic_linker="$host_os ld.so"
 
9222
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9223
 
 
9224
if test "$GCC" = yes; then
 
9225
  case $host_os in
 
9226
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9227
    *) lt_awk_arg="/^libraries:/" ;;
 
9228
  esac
 
9229
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9230
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9231
    # if the path contains ";" then we assume it to be the separator
 
9232
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9233
    # assumed that no part of a normal pathname contains ";" but that should
 
9234
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9235
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9236
  else
 
9237
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9238
  fi
 
9239
  # Ok, now we have the path, separated by spaces, we can step through it
 
9240
  # and add multilib dir if necessary.
 
9241
  lt_tmp_lt_search_path_spec=
 
9242
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9243
  for lt_sys_path in $lt_search_path_spec; do
 
9244
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9245
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9246
    else
 
9247
      test -d "$lt_sys_path" && \
 
9248
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9249
    fi
 
9250
  done
 
9251
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9252
BEGIN {RS=" "; FS="/|\n";} {
 
9253
  lt_foo="";
 
9254
  lt_count=0;
 
9255
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9256
    if ($lt_i != "" && $lt_i != ".") {
 
9257
      if ($lt_i == "..") {
 
9258
        lt_count++;
 
9259
      } else {
 
9260
        if (lt_count == 0) {
 
9261
          lt_foo="/" $lt_i lt_foo;
 
9262
        } else {
 
9263
          lt_count--;
 
9264
        }
 
9265
      }
 
9266
    }
 
9267
  }
 
9268
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9269
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9270
}'`
 
9271
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9272
else
 
9273
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9274
fi
 
9275
need_lib_prefix=unknown
 
9276
hardcode_into_libs=no
 
9277
 
 
9278
# when you set need_version to no, make sure it does not cause -set_version
 
9279
# flags to be left without arguments
 
9280
need_version=unknown
 
9281
 
 
9282
case $host_os in
 
9283
aix3*)
 
9284
  version_type=linux
 
9285
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9286
  shlibpath_var=LIBPATH
 
9287
 
 
9288
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9289
  soname_spec='${libname}${release}${shared_ext}$major'
 
9290
  ;;
 
9291
 
 
9292
aix[4-9]*)
 
9293
  version_type=linux
 
9294
  need_lib_prefix=no
 
9295
  need_version=no
 
9296
  hardcode_into_libs=yes
 
9297
  if test "$host_cpu" = ia64; then
 
9298
    # AIX 5 supports IA64
 
9299
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9300
    shlibpath_var=LD_LIBRARY_PATH
 
9301
  else
 
9302
    # With GCC up to 2.95.x, collect2 would create an import file
 
9303
    # for dependence libraries.  The import file would start with
 
9304
    # the line `#! .'.  This would cause the generated library to
 
9305
    # depend on `.', always an invalid library.  This was fixed in
 
9306
    # development snapshots of GCC prior to 3.0.
 
9307
    case $host_os in
 
9308
      aix4 | aix4.[01] | aix4.[01].*)
 
9309
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9310
           echo ' yes '
 
9311
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9312
        :
 
9313
      else
 
9314
        can_build_shared=no
 
9315
      fi
 
9316
      ;;
 
9317
    esac
 
9318
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9319
    # soname into executable. Probably we can add versioning support to
 
9320
    # collect2, so additional links can be useful in future.
 
9321
    if test "$aix_use_runtimelinking" = yes; then
 
9322
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9323
      # instead of lib<name>.a to let people know that these are not
 
9324
      # typical AIX shared libraries.
 
9325
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9326
    else
 
9327
      # We preserve .a as extension for shared libraries through AIX4.2
 
9328
      # and later when we are not doing run time linking.
 
9329
      library_names_spec='${libname}${release}.a $libname.a'
 
9330
      soname_spec='${libname}${release}${shared_ext}$major'
 
9331
    fi
 
9332
    shlibpath_var=LIBPATH
 
9333
  fi
 
9334
  ;;
 
9335
 
 
9336
amigaos*)
 
9337
  library_names_spec='$libname.ixlibrary $libname.a'
 
9338
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9339
  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'
 
9340
  ;;
 
9341
 
 
9342
beos*)
 
9343
  library_names_spec='${libname}${shared_ext}'
 
9344
  dynamic_linker="$host_os ld.so"
 
9345
  shlibpath_var=LIBRARY_PATH
 
9346
  ;;
 
9347
 
 
9348
bsdi[45]*)
 
9349
  version_type=linux
 
9350
  need_version=no
 
9351
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9352
  soname_spec='${libname}${release}${shared_ext}$major'
 
9353
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9354
  shlibpath_var=LD_LIBRARY_PATH
 
9355
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9356
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9357
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9358
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9359
  # libtool to hard-code these into programs
 
9360
  ;;
 
9361
 
 
9362
cygwin* | mingw* | pw32*)
 
9363
  version_type=windows
 
9364
  shrext_cmds=".dll"
 
9365
  need_version=no
 
9366
  need_lib_prefix=no
 
9367
 
 
9368
  case $GCC,$host_os in
 
9369
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9370
    library_names_spec='$libname.dll.a'
 
9371
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9372
    postinstall_cmds='base_file=`basename \${file}`~
 
9373
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9374
      dldir=$destdir/`dirname \$dlpath`~
 
9375
      test -d \$dldir || mkdir -p \$dldir~
 
9376
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9377
      chmod a+x \$dldir/$dlname'
 
9378
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9379
      dlpath=$dir/\$dldll~
 
9380
       $rm \$dlpath'
 
9381
    shlibpath_overrides_runpath=yes
 
9382
 
 
9383
    case $host_os in
 
9384
    cygwin*)
 
9385
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9386
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9387
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9388
      ;;
 
9389
    mingw*)
 
9390
      # MinGW DLLs use traditional 'lib' prefix
 
9391
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9392
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9393
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9394
        # It is most probably a Windows format PATH printed by
 
9395
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9396
        # path with ; separators, and with drive letters. We can handle the
 
9397
        # drive letters (cygwin fileutils understands them), so leave them,
 
9398
        # especially as we might pass files found there to a mingw objdump,
 
9399
        # which wouldn't understand a cygwinified path. Ahh.
 
9400
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9401
      else
 
9402
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9403
      fi
 
9404
      ;;
 
9405
    pw32*)
 
9406
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9407
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9408
      ;;
 
9409
    esac
 
9410
    ;;
 
9411
 
 
9412
  *)
 
9413
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9414
    ;;
 
9415
  esac
 
9416
  dynamic_linker='Win32 ld.exe'
 
9417
  # FIXME: first we should search . and the directory the executable is in
 
9418
  shlibpath_var=PATH
 
9419
  ;;
 
9420
 
 
9421
darwin* | rhapsody*)
 
9422
  dynamic_linker="$host_os dyld"
 
9423
  version_type=darwin
 
9424
  need_lib_prefix=no
 
9425
  need_version=no
 
9426
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9427
  soname_spec='${libname}${release}${major}$shared_ext'
 
9428
  shlibpath_overrides_runpath=yes
 
9429
  shlibpath_var=DYLD_LIBRARY_PATH
 
9430
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9431
  
 
9432
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 
 
9433
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9434
  ;;
 
9435
 
 
9436
dgux*)
 
9437
  version_type=linux
 
9438
  need_lib_prefix=no
 
9439
  need_version=no
 
9440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9441
  soname_spec='${libname}${release}${shared_ext}$major'
 
9442
  shlibpath_var=LD_LIBRARY_PATH
 
9443
  ;;
 
9444
 
 
9445
freebsd1*)
 
9446
  dynamic_linker=no
 
9447
  ;;
 
9448
 
 
9449
freebsd* | dragonfly*)
 
9450
  # DragonFly does not have aout.  When/if they implement a new
 
9451
  # versioning mechanism, adjust this.
 
9452
  if test -x /usr/bin/objformat; then
 
9453
    objformat=`/usr/bin/objformat`
 
9454
  else
 
9455
    case $host_os in
 
9456
    freebsd[123]*) objformat=aout ;;
 
9457
    *) objformat=elf ;;
 
9458
    esac
 
9459
  fi
 
9460
  version_type=freebsd-$objformat
 
9461
  case $version_type in
 
9462
    freebsd-elf*)
 
9463
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9464
      need_version=no
 
9465
      need_lib_prefix=no
 
9466
      ;;
 
9467
    freebsd-*)
 
9468
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9469
      need_version=yes
 
9470
      ;;
 
9471
  esac
 
9472
  shlibpath_var=LD_LIBRARY_PATH
 
9473
  case $host_os in
 
9474
  freebsd2*)
 
9475
    shlibpath_overrides_runpath=yes
 
9476
    ;;
 
9477
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9478
    shlibpath_overrides_runpath=yes
 
9479
    hardcode_into_libs=yes
 
9480
    ;;
 
9481
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9482
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9483
    shlibpath_overrides_runpath=no
 
9484
    hardcode_into_libs=yes
 
9485
    ;;
 
9486
  *) # from 4.6 on, and DragonFly
 
9487
    shlibpath_overrides_runpath=yes
 
9488
    hardcode_into_libs=yes
 
9489
    ;;
 
9490
  esac
 
9491
  ;;
 
9492
 
 
9493
gnu*)
 
9494
  version_type=linux
 
9495
  need_lib_prefix=no
 
9496
  need_version=no
 
9497
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9498
  soname_spec='${libname}${release}${shared_ext}$major'
 
9499
  shlibpath_var=LD_LIBRARY_PATH
 
9500
  hardcode_into_libs=yes
 
9501
  ;;
 
9502
 
 
9503
hpux9* | hpux10* | hpux11*)
 
9504
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9505
  # link against other versions.
 
9506
  version_type=sunos
 
9507
  need_lib_prefix=no
 
9508
  need_version=no
 
9509
  case $host_cpu in
 
9510
  ia64*)
 
9511
    shrext_cmds='.so'
 
9512
    hardcode_into_libs=yes
 
9513
    dynamic_linker="$host_os dld.so"
 
9514
    shlibpath_var=LD_LIBRARY_PATH
 
9515
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9516
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9517
    soname_spec='${libname}${release}${shared_ext}$major'
 
9518
    if test "X$HPUX_IA64_MODE" = X32; then
 
9519
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9520
    else
 
9521
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9522
    fi
 
9523
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9524
    ;;
 
9525
   hppa*64*)
 
9526
     shrext_cmds='.sl'
 
9527
     hardcode_into_libs=yes
 
9528
     dynamic_linker="$host_os dld.sl"
 
9529
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9530
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9531
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9532
     soname_spec='${libname}${release}${shared_ext}$major'
 
9533
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9534
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9535
     ;;
 
9536
   *)
 
9537
    shrext_cmds='.sl'
 
9538
    dynamic_linker="$host_os dld.sl"
 
9539
    shlibpath_var=SHLIB_PATH
 
9540
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9541
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9542
    soname_spec='${libname}${release}${shared_ext}$major'
 
9543
    ;;
 
9544
  esac
 
9545
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9546
  postinstall_cmds='chmod 555 $lib'
 
9547
  ;;
 
9548
 
 
9549
interix[3-9]*)
 
9550
  version_type=linux
 
9551
  need_lib_prefix=no
 
9552
  need_version=no
 
9553
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9554
  soname_spec='${libname}${release}${shared_ext}$major'
 
9555
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9556
  shlibpath_var=LD_LIBRARY_PATH
 
9557
  shlibpath_overrides_runpath=no
 
9558
  hardcode_into_libs=yes
 
9559
  ;;
 
9560
 
 
9561
irix5* | irix6* | nonstopux*)
 
9562
  case $host_os in
 
9563
    nonstopux*) version_type=nonstopux ;;
 
9564
    *)
 
9565
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9566
                version_type=linux
 
9567
        else
 
9568
                version_type=irix
 
9569
        fi ;;
 
9570
  esac
 
9571
  need_lib_prefix=no
 
9572
  need_version=no
 
9573
  soname_spec='${libname}${release}${shared_ext}$major'
 
9574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9575
  case $host_os in
 
9576
  irix5* | nonstopux*)
 
9577
    libsuff= shlibsuff=
 
9578
    ;;
 
9579
  *)
 
9580
    case $LD in # libtool.m4 will add one of these switches to LD
 
9581
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9582
      libsuff= shlibsuff= libmagic=32-bit;;
 
9583
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9584
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9585
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9586
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9587
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9588
    esac
 
9589
    ;;
 
9590
  esac
 
9591
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9592
  shlibpath_overrides_runpath=no
 
9593
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9594
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9595
  hardcode_into_libs=yes
 
9596
  ;;
 
9597
 
 
9598
# No shared lib support for Linux oldld, aout, or coff.
 
9599
linux*oldld* | linux*aout* | linux*coff*)
 
9600
  dynamic_linker=no
 
9601
  ;;
 
9602
 
 
9603
# This must be Linux ELF.
 
9604
linux* | k*bsd*-gnu)
 
9605
  version_type=linux
 
9606
  need_lib_prefix=no
 
9607
  need_version=no
 
9608
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9609
  soname_spec='${libname}${release}${shared_ext}$major'
 
9610
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9611
  shlibpath_var=LD_LIBRARY_PATH
 
9612
  shlibpath_overrides_runpath=no
 
9613
  # This implies no fast_install, which is unacceptable.
 
9614
  # Some rework will be needed to allow for fast_install
 
9615
  # before this can be enabled.
 
9616
  hardcode_into_libs=yes
 
9617
 
 
9618
  # Append ld.so.conf contents to the search path
 
9619
  if test -f /etc/ld.so.conf; then
 
9620
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9621
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9622
  fi
 
9623
 
 
9624
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9625
  # powerpc, because MkLinux only supported shared libraries with the
 
9626
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9627
  # most powerpc-linux boxes support dynamic linking these days and
 
9628
  # people can always --disable-shared, the test was removed, and we
 
9629
  # assume the GNU/Linux dynamic linker is in use.
 
9630
  dynamic_linker='GNU/Linux ld.so'
 
9631
  ;;
 
9632
 
 
9633
netbsdelf*-gnu)
 
9634
  version_type=linux
 
9635
  need_lib_prefix=no
 
9636
  need_version=no
 
9637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9638
  soname_spec='${libname}${release}${shared_ext}$major'
 
9639
  shlibpath_var=LD_LIBRARY_PATH
 
9640
  shlibpath_overrides_runpath=no
 
9641
  hardcode_into_libs=yes
 
9642
  dynamic_linker='NetBSD ld.elf_so'
 
9643
  ;;
 
9644
 
 
9645
netbsd*)
 
9646
  version_type=sunos
 
9647
  need_lib_prefix=no
 
9648
  need_version=no
 
9649
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9650
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9651
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9652
    dynamic_linker='NetBSD (a.out) ld.so'
 
9653
  else
 
9654
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9655
    soname_spec='${libname}${release}${shared_ext}$major'
 
9656
    dynamic_linker='NetBSD ld.elf_so'
 
9657
  fi
 
9658
  shlibpath_var=LD_LIBRARY_PATH
 
9659
  shlibpath_overrides_runpath=yes
 
9660
  hardcode_into_libs=yes
 
9661
  ;;
 
9662
 
 
9663
newsos6)
 
9664
  version_type=linux
 
9665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9666
  shlibpath_var=LD_LIBRARY_PATH
 
9667
  shlibpath_overrides_runpath=yes
 
9668
  ;;
 
9669
 
 
9670
nto-qnx*)
 
9671
  version_type=linux
 
9672
  need_lib_prefix=no
 
9673
  need_version=no
 
9674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9675
  soname_spec='${libname}${release}${shared_ext}$major'
 
9676
  shlibpath_var=LD_LIBRARY_PATH
 
9677
  shlibpath_overrides_runpath=yes
 
9678
  ;;
 
9679
 
 
9680
openbsd*)
 
9681
  version_type=sunos
 
9682
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9683
  need_lib_prefix=no
 
9684
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9685
  case $host_os in
 
9686
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9687
    *)                         need_version=no  ;;
 
9688
  esac
 
9689
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9691
  shlibpath_var=LD_LIBRARY_PATH
 
9692
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9693
    case $host_os in
 
9694
      openbsd2.[89] | openbsd2.[89].*)
 
9695
        shlibpath_overrides_runpath=no
 
9696
        ;;
 
9697
      *)
 
9698
        shlibpath_overrides_runpath=yes
 
9699
        ;;
 
9700
      esac
 
9701
  else
 
9702
    shlibpath_overrides_runpath=yes
 
9703
  fi
 
9704
  ;;
 
9705
 
 
9706
os2*)
 
9707
  libname_spec='$name'
 
9708
  shrext_cmds=".dll"
 
9709
  need_lib_prefix=no
 
9710
  library_names_spec='$libname${shared_ext} $libname.a'
 
9711
  dynamic_linker='OS/2 ld.exe'
 
9712
  shlibpath_var=LIBPATH
 
9713
  ;;
 
9714
 
 
9715
osf3* | osf4* | osf5*)
 
9716
  version_type=osf
 
9717
  need_lib_prefix=no
 
9718
  need_version=no
 
9719
  soname_spec='${libname}${release}${shared_ext}$major'
 
9720
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9721
  shlibpath_var=LD_LIBRARY_PATH
 
9722
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9723
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9724
  ;;
 
9725
 
 
9726
rdos*)
 
9727
  dynamic_linker=no
 
9728
  ;;
 
9729
 
 
9730
solaris*)
 
9731
  version_type=linux
 
9732
  need_lib_prefix=no
 
9733
  need_version=no
 
9734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9735
  soname_spec='${libname}${release}${shared_ext}$major'
 
9736
  shlibpath_var=LD_LIBRARY_PATH
 
9737
  shlibpath_overrides_runpath=yes
 
9738
  hardcode_into_libs=yes
 
9739
  # ldd complains unless libraries are executable
 
9740
  postinstall_cmds='chmod +x $lib'
 
9741
  ;;
 
9742
 
 
9743
sunos4*)
 
9744
  version_type=sunos
 
9745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9746
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9747
  shlibpath_var=LD_LIBRARY_PATH
 
9748
  shlibpath_overrides_runpath=yes
 
9749
  if test "$with_gnu_ld" = yes; then
 
9750
    need_lib_prefix=no
 
9751
  fi
 
9752
  need_version=yes
 
9753
  ;;
 
9754
 
 
9755
sysv4 | sysv4.3*)
 
9756
  version_type=linux
 
9757
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9758
  soname_spec='${libname}${release}${shared_ext}$major'
 
9759
  shlibpath_var=LD_LIBRARY_PATH
 
9760
  case $host_vendor in
 
9761
    sni)
 
9762
      shlibpath_overrides_runpath=no
 
9763
      need_lib_prefix=no
 
9764
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9765
      runpath_var=LD_RUN_PATH
 
9766
      ;;
 
9767
    siemens)
 
9768
      need_lib_prefix=no
 
9769
      ;;
 
9770
    motorola)
 
9771
      need_lib_prefix=no
 
9772
      need_version=no
 
9773
      shlibpath_overrides_runpath=no
 
9774
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9775
      ;;
 
9776
  esac
 
9777
  ;;
 
9778
 
 
9779
sysv4*MP*)
 
9780
  if test -d /usr/nec ;then
 
9781
    version_type=linux
 
9782
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9783
    soname_spec='$libname${shared_ext}.$major'
 
9784
    shlibpath_var=LD_LIBRARY_PATH
 
9785
  fi
 
9786
  ;;
 
9787
 
 
9788
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9789
  version_type=freebsd-elf
 
9790
  need_lib_prefix=no
 
9791
  need_version=no
 
9792
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9793
  soname_spec='${libname}${release}${shared_ext}$major'
 
9794
  shlibpath_var=LD_LIBRARY_PATH
 
9795
  hardcode_into_libs=yes
 
9796
  if test "$with_gnu_ld" = yes; then
 
9797
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9798
    shlibpath_overrides_runpath=no
 
9799
  else
 
9800
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9801
    shlibpath_overrides_runpath=yes
 
9802
    case $host_os in
 
9803
      sco3.2v5*)
 
9804
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9805
        ;;
 
9806
    esac
 
9807
  fi
 
9808
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9809
  ;;
 
9810
 
 
9811
uts4*)
 
9812
  version_type=linux
 
9813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9814
  soname_spec='${libname}${release}${shared_ext}$major'
 
9815
  shlibpath_var=LD_LIBRARY_PATH
 
9816
  ;;
 
9817
 
 
9818
*)
 
9819
  dynamic_linker=no
 
9820
  ;;
 
9821
esac
 
9822
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9823
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9824
test "$dynamic_linker" = no && can_build_shared=no
 
9825
 
 
9826
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9828
else
 
9829
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9830
fi
 
9831
 
 
9832
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9833
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9835
else
 
9836
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9837
fi
 
9838
 
 
9839
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9840
 
 
9841
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9842
if test "$GCC" = yes; then
 
9843
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9844
fi
 
9845
 
 
9846
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9847
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9848
hardcode_action=
 
9849
if test -n "$hardcode_libdir_flag_spec" || \
 
9850
   test -n "$runpath_var" || \
 
9851
   test "X$hardcode_automatic" = "Xyes" ; then
 
9852
 
 
9853
  # We can hardcode non-existant directories.
 
9854
  if test "$hardcode_direct" != no &&
 
9855
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9856
     # have to relink, otherwise we might link with an installed library
 
9857
     # when we should be linking with a yet-to-be-installed one
 
9858
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9859
     test "$hardcode_minus_L" != no; then
 
9860
    # Linking always hardcodes the temporary library directory.
 
9861
    hardcode_action=relink
 
9862
  else
 
9863
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9864
    hardcode_action=immediate
 
9865
  fi
 
9866
else
 
9867
  # We cannot hardcode anything, or else we can only hardcode existing
 
9868
  # directories.
 
9869
  hardcode_action=unsupported
 
9870
fi
 
9871
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9872
echo "${ECHO_T}$hardcode_action" >&6; }
 
9873
 
 
9874
if test "$hardcode_action" = relink; then
 
9875
  # Fast installation is not supported
 
9876
  enable_fast_install=no
 
9877
elif test "$shlibpath_overrides_runpath" = yes ||
 
9878
     test "$enable_shared" = no; then
 
9879
  # Fast installation is not necessary
 
9880
  enable_fast_install=needless
 
9881
fi
 
9882
 
 
9883
striplib=
 
9884
old_striplib=
 
9885
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9886
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9887
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9888
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9889
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9890
  { echo "$as_me:$LINENO: result: yes" >&5
 
9891
echo "${ECHO_T}yes" >&6; }
 
9892
else
 
9893
# FIXME - insert some real tests, host_os isn't really good enough
 
9894
  case $host_os in
 
9895
   darwin*)
 
9896
       if test -n "$STRIP" ; then
 
9897
         striplib="$STRIP -x"
 
9898
         old_striplib="$STRIP -S"
 
9899
         { echo "$as_me:$LINENO: result: yes" >&5
 
9900
echo "${ECHO_T}yes" >&6; }
 
9901
       else
 
9902
  { echo "$as_me:$LINENO: result: no" >&5
 
9903
echo "${ECHO_T}no" >&6; }
 
9904
fi
 
9905
       ;;
 
9906
   *)
 
9907
  { echo "$as_me:$LINENO: result: no" >&5
 
9908
echo "${ECHO_T}no" >&6; }
 
9909
    ;;
 
9910
  esac
 
9911
fi
 
9912
 
 
9913
if test "x$enable_dlopen" != xyes; then
 
9914
  enable_dlopen=unknown
 
9915
  enable_dlopen_self=unknown
 
9916
  enable_dlopen_self_static=unknown
 
9917
else
 
9918
  lt_cv_dlopen=no
 
9919
  lt_cv_dlopen_libs=
 
9920
 
 
9921
  case $host_os in
 
9922
  beos*)
 
9923
    lt_cv_dlopen="load_add_on"
 
9924
    lt_cv_dlopen_libs=
 
9925
    lt_cv_dlopen_self=yes
 
9926
    ;;
 
9927
 
 
9928
  mingw* | pw32*)
 
9929
    lt_cv_dlopen="LoadLibrary"
 
9930
    lt_cv_dlopen_libs=
 
9931
   ;;
 
9932
 
 
9933
  cygwin*)
 
9934
    lt_cv_dlopen="dlopen"
 
9935
    lt_cv_dlopen_libs=
 
9936
   ;;
 
9937
 
 
9938
  darwin*)
 
9939
  # if libdl is installed we need to link against it
 
9940
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9941
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9942
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9944
else
 
9945
  ac_check_lib_save_LIBS=$LIBS
 
9946
LIBS="-ldl  $LIBS"
 
9947
cat >conftest.$ac_ext <<_ACEOF
 
9948
/* confdefs.h.  */
 
9949
_ACEOF
 
9950
cat confdefs.h >>conftest.$ac_ext
 
9951
cat >>conftest.$ac_ext <<_ACEOF
 
9952
/* end confdefs.h.  */
 
9953
 
 
9954
/* Override any GCC internal prototype to avoid an error.
 
9955
   Use char because int might match the return type of a GCC
 
9956
   builtin and then its argument prototype would still apply.  */
 
9957
#ifdef __cplusplus
 
9958
extern "C"
 
9959
#endif
 
9960
char dlopen ();
 
9961
int
 
9962
main ()
 
9963
{
 
9964
return dlopen ();
 
9965
  ;
 
9966
  return 0;
 
9967
}
 
9968
_ACEOF
 
9969
rm -f conftest.$ac_objext conftest$ac_exeext
 
9970
if { (ac_try="$ac_link"
 
9971
case "(($ac_try" in
 
9972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9973
  *) ac_try_echo=$ac_try;;
 
9974
esac
 
9975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9976
  (eval "$ac_link") 2>conftest.er1
 
9977
  ac_status=$?
 
9978
  grep -v '^ *+' conftest.er1 >conftest.err
 
9979
  rm -f conftest.er1
 
9980
  cat conftest.err >&5
 
9981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9982
  (exit $ac_status); } && {
 
9983
         test -z "$ac_c_werror_flag" ||
 
9984
         test ! -s conftest.err
 
9985
       } && test -s conftest$ac_exeext &&
 
9986
       $as_test_x conftest$ac_exeext; then
 
9987
  ac_cv_lib_dl_dlopen=yes
 
9988
else
 
9989
  echo "$as_me: failed program was:" >&5
 
9990
sed 's/^/| /' conftest.$ac_ext >&5
 
9991
 
 
9992
        ac_cv_lib_dl_dlopen=no
 
9993
fi
 
9994
 
 
9995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9996
      conftest$ac_exeext conftest.$ac_ext
 
9997
LIBS=$ac_check_lib_save_LIBS
 
9998
fi
 
9999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10000
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10001
if test $ac_cv_lib_dl_dlopen = yes; then
 
10002
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10003
else
 
10004
  
 
10005
    lt_cv_dlopen="dyld"
 
10006
    lt_cv_dlopen_libs=
 
10007
    lt_cv_dlopen_self=yes
 
10008
    
 
10009
fi
 
10010
 
 
10011
   ;;
 
10012
 
 
10013
  *)
 
10014
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
10015
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
10016
if test "${ac_cv_func_shl_load+set}" = set; then
 
10017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10018
else
 
10019
  cat >conftest.$ac_ext <<_ACEOF
 
10020
/* confdefs.h.  */
 
10021
_ACEOF
 
10022
cat confdefs.h >>conftest.$ac_ext
 
10023
cat >>conftest.$ac_ext <<_ACEOF
 
10024
/* end confdefs.h.  */
 
10025
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10026
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10027
#define shl_load innocuous_shl_load
 
10028
 
 
10029
/* System header to define __stub macros and hopefully few prototypes,
 
10030
    which can conflict with char shl_load (); below.
 
10031
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10032
    <limits.h> exists even on freestanding compilers.  */
 
10033
 
 
10034
#ifdef __STDC__
 
10035
# include <limits.h>
 
10036
#else
 
10037
# include <assert.h>
 
10038
#endif
 
10039
 
 
10040
#undef shl_load
 
10041
 
 
10042
/* Override any GCC internal prototype to avoid an error.
 
10043
   Use char because int might match the return type of a GCC
 
10044
   builtin and then its argument prototype would still apply.  */
 
10045
#ifdef __cplusplus
 
10046
extern "C"
 
10047
#endif
 
10048
char shl_load ();
 
10049
/* The GNU C library defines this for functions which it implements
 
10050
    to always fail with ENOSYS.  Some functions are actually named
 
10051
    something starting with __ and the normal name is an alias.  */
 
10052
#if defined __stub_shl_load || defined __stub___shl_load
 
10053
choke me
 
10054
#endif
 
10055
 
 
10056
int
 
10057
main ()
 
10058
{
 
10059
return shl_load ();
 
10060
  ;
 
10061
  return 0;
 
10062
}
 
10063
_ACEOF
 
10064
rm -f conftest.$ac_objext conftest$ac_exeext
 
10065
if { (ac_try="$ac_link"
 
10066
case "(($ac_try" in
 
10067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10068
  *) ac_try_echo=$ac_try;;
 
10069
esac
 
10070
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10071
  (eval "$ac_link") 2>conftest.er1
 
10072
  ac_status=$?
 
10073
  grep -v '^ *+' conftest.er1 >conftest.err
 
10074
  rm -f conftest.er1
 
10075
  cat conftest.err >&5
 
10076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10077
  (exit $ac_status); } && {
 
10078
         test -z "$ac_c_werror_flag" ||
 
10079
         test ! -s conftest.err
 
10080
       } && test -s conftest$ac_exeext &&
 
10081
       $as_test_x conftest$ac_exeext; then
 
10082
  ac_cv_func_shl_load=yes
 
10083
else
 
10084
  echo "$as_me: failed program was:" >&5
 
10085
sed 's/^/| /' conftest.$ac_ext >&5
 
10086
 
 
10087
        ac_cv_func_shl_load=no
 
10088
fi
 
10089
 
 
10090
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10091
      conftest$ac_exeext conftest.$ac_ext
 
10092
fi
 
10093
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10094
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
10095
if test $ac_cv_func_shl_load = yes; then
 
10096
  lt_cv_dlopen="shl_load"
 
10097
else
 
10098
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10099
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
10100
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10102
else
 
10103
  ac_check_lib_save_LIBS=$LIBS
 
10104
LIBS="-ldld  $LIBS"
 
10105
cat >conftest.$ac_ext <<_ACEOF
 
10106
/* confdefs.h.  */
 
10107
_ACEOF
 
10108
cat confdefs.h >>conftest.$ac_ext
 
10109
cat >>conftest.$ac_ext <<_ACEOF
 
10110
/* end confdefs.h.  */
 
10111
 
 
10112
/* Override any GCC internal prototype to avoid an error.
 
10113
   Use char because int might match the return type of a GCC
 
10114
   builtin and then its argument prototype would still apply.  */
 
10115
#ifdef __cplusplus
 
10116
extern "C"
 
10117
#endif
 
10118
char shl_load ();
 
10119
int
 
10120
main ()
 
10121
{
 
10122
return shl_load ();
 
10123
  ;
 
10124
  return 0;
 
10125
}
 
10126
_ACEOF
 
10127
rm -f conftest.$ac_objext conftest$ac_exeext
 
10128
if { (ac_try="$ac_link"
 
10129
case "(($ac_try" in
 
10130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10131
  *) ac_try_echo=$ac_try;;
 
10132
esac
 
10133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10134
  (eval "$ac_link") 2>conftest.er1
 
10135
  ac_status=$?
 
10136
  grep -v '^ *+' conftest.er1 >conftest.err
 
10137
  rm -f conftest.er1
 
10138
  cat conftest.err >&5
 
10139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10140
  (exit $ac_status); } && {
 
10141
         test -z "$ac_c_werror_flag" ||
 
10142
         test ! -s conftest.err
 
10143
       } && test -s conftest$ac_exeext &&
 
10144
       $as_test_x conftest$ac_exeext; then
 
10145
  ac_cv_lib_dld_shl_load=yes
 
10146
else
 
10147
  echo "$as_me: failed program was:" >&5
 
10148
sed 's/^/| /' conftest.$ac_ext >&5
 
10149
 
 
10150
        ac_cv_lib_dld_shl_load=no
 
10151
fi
 
10152
 
 
10153
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10154
      conftest$ac_exeext conftest.$ac_ext
 
10155
LIBS=$ac_check_lib_save_LIBS
 
10156
fi
 
10157
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10158
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10159
if test $ac_cv_lib_dld_shl_load = yes; then
 
10160
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10161
else
 
10162
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10163
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10164
if test "${ac_cv_func_dlopen+set}" = set; then
 
10165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10166
else
 
10167
  cat >conftest.$ac_ext <<_ACEOF
 
10168
/* confdefs.h.  */
 
10169
_ACEOF
 
10170
cat confdefs.h >>conftest.$ac_ext
 
10171
cat >>conftest.$ac_ext <<_ACEOF
 
10172
/* end confdefs.h.  */
 
10173
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10174
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10175
#define dlopen innocuous_dlopen
 
10176
 
 
10177
/* System header to define __stub macros and hopefully few prototypes,
 
10178
    which can conflict with char dlopen (); below.
 
10179
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10180
    <limits.h> exists even on freestanding compilers.  */
 
10181
 
 
10182
#ifdef __STDC__
 
10183
# include <limits.h>
 
10184
#else
 
10185
# include <assert.h>
 
10186
#endif
 
10187
 
 
10188
#undef dlopen
 
10189
 
 
10190
/* Override any GCC internal prototype to avoid an error.
 
10191
   Use char because int might match the return type of a GCC
 
10192
   builtin and then its argument prototype would still apply.  */
 
10193
#ifdef __cplusplus
 
10194
extern "C"
 
10195
#endif
 
10196
char dlopen ();
 
10197
/* The GNU C library defines this for functions which it implements
 
10198
    to always fail with ENOSYS.  Some functions are actually named
 
10199
    something starting with __ and the normal name is an alias.  */
 
10200
#if defined __stub_dlopen || defined __stub___dlopen
 
10201
choke me
 
10202
#endif
 
10203
 
 
10204
int
 
10205
main ()
 
10206
{
 
10207
return dlopen ();
 
10208
  ;
 
10209
  return 0;
 
10210
}
 
10211
_ACEOF
 
10212
rm -f conftest.$ac_objext conftest$ac_exeext
 
10213
if { (ac_try="$ac_link"
 
10214
case "(($ac_try" in
 
10215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10216
  *) ac_try_echo=$ac_try;;
 
10217
esac
 
10218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10219
  (eval "$ac_link") 2>conftest.er1
 
10220
  ac_status=$?
 
10221
  grep -v '^ *+' conftest.er1 >conftest.err
 
10222
  rm -f conftest.er1
 
10223
  cat conftest.err >&5
 
10224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10225
  (exit $ac_status); } && {
 
10226
         test -z "$ac_c_werror_flag" ||
 
10227
         test ! -s conftest.err
 
10228
       } && test -s conftest$ac_exeext &&
 
10229
       $as_test_x conftest$ac_exeext; then
 
10230
  ac_cv_func_dlopen=yes
 
10231
else
 
10232
  echo "$as_me: failed program was:" >&5
 
10233
sed 's/^/| /' conftest.$ac_ext >&5
 
10234
 
 
10235
        ac_cv_func_dlopen=no
 
10236
fi
 
10237
 
 
10238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10239
      conftest$ac_exeext conftest.$ac_ext
 
10240
fi
 
10241
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10242
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10243
if test $ac_cv_func_dlopen = yes; then
 
10244
  lt_cv_dlopen="dlopen"
 
10245
else
 
10246
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10247
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10248
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10250
else
 
10251
  ac_check_lib_save_LIBS=$LIBS
 
10252
LIBS="-ldl  $LIBS"
 
10253
cat >conftest.$ac_ext <<_ACEOF
 
10254
/* confdefs.h.  */
 
10255
_ACEOF
 
10256
cat confdefs.h >>conftest.$ac_ext
 
10257
cat >>conftest.$ac_ext <<_ACEOF
 
10258
/* end confdefs.h.  */
 
10259
 
 
10260
/* Override any GCC internal prototype to avoid an error.
 
10261
   Use char because int might match the return type of a GCC
 
10262
   builtin and then its argument prototype would still apply.  */
 
10263
#ifdef __cplusplus
 
10264
extern "C"
 
10265
#endif
 
10266
char dlopen ();
 
10267
int
 
10268
main ()
 
10269
{
 
10270
return dlopen ();
 
10271
  ;
 
10272
  return 0;
 
10273
}
 
10274
_ACEOF
 
10275
rm -f conftest.$ac_objext conftest$ac_exeext
 
10276
if { (ac_try="$ac_link"
 
10277
case "(($ac_try" in
 
10278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10279
  *) ac_try_echo=$ac_try;;
 
10280
esac
 
10281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10282
  (eval "$ac_link") 2>conftest.er1
 
10283
  ac_status=$?
 
10284
  grep -v '^ *+' conftest.er1 >conftest.err
 
10285
  rm -f conftest.er1
 
10286
  cat conftest.err >&5
 
10287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10288
  (exit $ac_status); } && {
 
10289
         test -z "$ac_c_werror_flag" ||
 
10290
         test ! -s conftest.err
 
10291
       } && test -s conftest$ac_exeext &&
 
10292
       $as_test_x conftest$ac_exeext; then
 
10293
  ac_cv_lib_dl_dlopen=yes
 
10294
else
 
10295
  echo "$as_me: failed program was:" >&5
 
10296
sed 's/^/| /' conftest.$ac_ext >&5
 
10297
 
 
10298
        ac_cv_lib_dl_dlopen=no
 
10299
fi
 
10300
 
 
10301
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10302
      conftest$ac_exeext conftest.$ac_ext
 
10303
LIBS=$ac_check_lib_save_LIBS
 
10304
fi
 
10305
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10306
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10307
if test $ac_cv_lib_dl_dlopen = yes; then
 
10308
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10309
else
 
10310
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10311
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10312
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10314
else
 
10315
  ac_check_lib_save_LIBS=$LIBS
 
10316
LIBS="-lsvld  $LIBS"
 
10317
cat >conftest.$ac_ext <<_ACEOF
 
10318
/* confdefs.h.  */
 
10319
_ACEOF
 
10320
cat confdefs.h >>conftest.$ac_ext
 
10321
cat >>conftest.$ac_ext <<_ACEOF
 
10322
/* end confdefs.h.  */
 
10323
 
 
10324
/* Override any GCC internal prototype to avoid an error.
 
10325
   Use char because int might match the return type of a GCC
 
10326
   builtin and then its argument prototype would still apply.  */
 
10327
#ifdef __cplusplus
 
10328
extern "C"
 
10329
#endif
 
10330
char dlopen ();
 
10331
int
 
10332
main ()
 
10333
{
 
10334
return dlopen ();
 
10335
  ;
 
10336
  return 0;
 
10337
}
 
10338
_ACEOF
 
10339
rm -f conftest.$ac_objext conftest$ac_exeext
 
10340
if { (ac_try="$ac_link"
 
10341
case "(($ac_try" in
 
10342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10343
  *) ac_try_echo=$ac_try;;
 
10344
esac
 
10345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10346
  (eval "$ac_link") 2>conftest.er1
 
10347
  ac_status=$?
 
10348
  grep -v '^ *+' conftest.er1 >conftest.err
 
10349
  rm -f conftest.er1
 
10350
  cat conftest.err >&5
 
10351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10352
  (exit $ac_status); } && {
 
10353
         test -z "$ac_c_werror_flag" ||
 
10354
         test ! -s conftest.err
 
10355
       } && test -s conftest$ac_exeext &&
 
10356
       $as_test_x conftest$ac_exeext; then
 
10357
  ac_cv_lib_svld_dlopen=yes
 
10358
else
 
10359
  echo "$as_me: failed program was:" >&5
 
10360
sed 's/^/| /' conftest.$ac_ext >&5
 
10361
 
 
10362
        ac_cv_lib_svld_dlopen=no
 
10363
fi
 
10364
 
 
10365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10366
      conftest$ac_exeext conftest.$ac_ext
 
10367
LIBS=$ac_check_lib_save_LIBS
 
10368
fi
 
10369
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10370
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10371
if test $ac_cv_lib_svld_dlopen = yes; then
 
10372
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10373
else
 
10374
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10375
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10376
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10377
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10378
else
 
10379
  ac_check_lib_save_LIBS=$LIBS
 
10380
LIBS="-ldld  $LIBS"
 
10381
cat >conftest.$ac_ext <<_ACEOF
 
10382
/* confdefs.h.  */
 
10383
_ACEOF
 
10384
cat confdefs.h >>conftest.$ac_ext
 
10385
cat >>conftest.$ac_ext <<_ACEOF
 
10386
/* end confdefs.h.  */
 
10387
 
 
10388
/* Override any GCC internal prototype to avoid an error.
 
10389
   Use char because int might match the return type of a GCC
 
10390
   builtin and then its argument prototype would still apply.  */
 
10391
#ifdef __cplusplus
 
10392
extern "C"
 
10393
#endif
 
10394
char dld_link ();
 
10395
int
 
10396
main ()
 
10397
{
 
10398
return dld_link ();
 
10399
  ;
 
10400
  return 0;
 
10401
}
 
10402
_ACEOF
 
10403
rm -f conftest.$ac_objext conftest$ac_exeext
 
10404
if { (ac_try="$ac_link"
 
10405
case "(($ac_try" in
 
10406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10407
  *) ac_try_echo=$ac_try;;
 
10408
esac
 
10409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10410
  (eval "$ac_link") 2>conftest.er1
 
10411
  ac_status=$?
 
10412
  grep -v '^ *+' conftest.er1 >conftest.err
 
10413
  rm -f conftest.er1
 
10414
  cat conftest.err >&5
 
10415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10416
  (exit $ac_status); } && {
 
10417
         test -z "$ac_c_werror_flag" ||
 
10418
         test ! -s conftest.err
 
10419
       } && test -s conftest$ac_exeext &&
 
10420
       $as_test_x conftest$ac_exeext; then
 
10421
  ac_cv_lib_dld_dld_link=yes
 
10422
else
 
10423
  echo "$as_me: failed program was:" >&5
 
10424
sed 's/^/| /' conftest.$ac_ext >&5
 
10425
 
 
10426
        ac_cv_lib_dld_dld_link=no
 
10427
fi
 
10428
 
 
10429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10430
      conftest$ac_exeext conftest.$ac_ext
 
10431
LIBS=$ac_check_lib_save_LIBS
 
10432
fi
 
10433
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10434
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10435
if test $ac_cv_lib_dld_dld_link = yes; then
 
10436
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10437
fi
 
10438
 
 
10439
              
 
10440
fi
 
10441
 
 
10442
            
 
10443
fi
 
10444
 
 
10445
          
 
10446
fi
 
10447
 
 
10448
        
 
10449
fi
 
10450
 
 
10451
      
 
10452
fi
 
10453
 
 
10454
    ;;
 
10455
  esac
 
10456
 
 
10457
  if test "x$lt_cv_dlopen" != xno; then
 
10458
    enable_dlopen=yes
 
10459
  else
 
10460
    enable_dlopen=no
 
10461
  fi
 
10462
 
 
10463
  case $lt_cv_dlopen in
 
10464
  dlopen)
 
10465
    save_CPPFLAGS="$CPPFLAGS"
 
10466
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10467
 
 
10468
    save_LDFLAGS="$LDFLAGS"
 
10469
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10470
 
 
10471
    save_LIBS="$LIBS"
 
10472
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10473
 
 
10474
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10475
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10476
if test "${lt_cv_dlopen_self+set}" = set; then
 
10477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10478
else
 
10479
          if test "$cross_compiling" = yes; then :
 
10480
  lt_cv_dlopen_self=cross
 
10481
else
 
10482
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10483
  lt_status=$lt_dlunknown
 
10484
  cat > conftest.$ac_ext <<EOF
 
10485
#line __oline__ "configure"
 
10486
#include "confdefs.h"
 
10487
 
 
10488
#if HAVE_DLFCN_H
 
10489
#include <dlfcn.h>
 
10490
#endif
 
10491
 
 
10492
#include <stdio.h>
 
10493
 
 
10494
#ifdef RTLD_GLOBAL
 
10495
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10496
#else
 
10497
#  ifdef DL_GLOBAL
 
10498
#    define LT_DLGLOBAL         DL_GLOBAL
 
10499
#  else
 
10500
#    define LT_DLGLOBAL         0
 
10501
#  endif
 
10502
#endif
 
10503
 
 
10504
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10505
   find out it does not work in some platform. */
 
10506
#ifndef LT_DLLAZY_OR_NOW
 
10507
#  ifdef RTLD_LAZY
 
10508
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10509
#  else
 
10510
#    ifdef DL_LAZY
 
10511
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10512
#    else
 
10513
#      ifdef RTLD_NOW
 
10514
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10515
#      else
 
10516
#        ifdef DL_NOW
 
10517
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10518
#        else
 
10519
#          define LT_DLLAZY_OR_NOW      0
 
10520
#        endif
 
10521
#      endif
 
10522
#    endif
 
10523
#  endif
 
10524
#endif
 
10525
 
 
10526
#ifdef __cplusplus
 
10527
extern "C" void exit (int);
 
10528
#endif
 
10529
 
 
10530
void fnord() { int i=42;}
 
10531
int main ()
 
10532
{
 
10533
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10534
  int status = $lt_dlunknown;
 
10535
 
 
10536
  if (self)
 
10537
    {
 
10538
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10539
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10540
      /* dlclose (self); */
 
10541
    }
 
10542
  else
 
10543
    puts (dlerror ());
 
10544
 
 
10545
    exit (status);
 
10546
}
 
10547
EOF
 
10548
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10549
  (eval $ac_link) 2>&5
 
10550
  ac_status=$?
 
10551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10552
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10553
    (./conftest; exit; ) >&5 2>/dev/null
 
10554
    lt_status=$?
 
10555
    case x$lt_status in
 
10556
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10557
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10558
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10559
    esac
 
10560
  else :
 
10561
    # compilation failed
 
10562
    lt_cv_dlopen_self=no
 
10563
  fi
 
10564
fi
 
10565
rm -fr conftest*
 
10566
 
 
10567
    
 
10568
fi
 
10569
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10570
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10571
 
 
10572
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10573
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10574
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10575
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10576
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10578
else
 
10579
          if test "$cross_compiling" = yes; then :
 
10580
  lt_cv_dlopen_self_static=cross
 
10581
else
 
10582
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10583
  lt_status=$lt_dlunknown
 
10584
  cat > conftest.$ac_ext <<EOF
 
10585
#line __oline__ "configure"
 
10586
#include "confdefs.h"
 
10587
 
 
10588
#if HAVE_DLFCN_H
 
10589
#include <dlfcn.h>
 
10590
#endif
 
10591
 
 
10592
#include <stdio.h>
 
10593
 
 
10594
#ifdef RTLD_GLOBAL
 
10595
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10596
#else
 
10597
#  ifdef DL_GLOBAL
 
10598
#    define LT_DLGLOBAL         DL_GLOBAL
 
10599
#  else
 
10600
#    define LT_DLGLOBAL         0
 
10601
#  endif
 
10602
#endif
 
10603
 
 
10604
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10605
   find out it does not work in some platform. */
 
10606
#ifndef LT_DLLAZY_OR_NOW
 
10607
#  ifdef RTLD_LAZY
 
10608
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10609
#  else
 
10610
#    ifdef DL_LAZY
 
10611
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10612
#    else
 
10613
#      ifdef RTLD_NOW
 
10614
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10615
#      else
 
10616
#        ifdef DL_NOW
 
10617
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10618
#        else
 
10619
#          define LT_DLLAZY_OR_NOW      0
 
10620
#        endif
 
10621
#      endif
 
10622
#    endif
 
10623
#  endif
 
10624
#endif
 
10625
 
 
10626
#ifdef __cplusplus
 
10627
extern "C" void exit (int);
 
10628
#endif
 
10629
 
 
10630
void fnord() { int i=42;}
 
10631
int main ()
 
10632
{
 
10633
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10634
  int status = $lt_dlunknown;
 
10635
 
 
10636
  if (self)
 
10637
    {
 
10638
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10639
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10640
      /* dlclose (self); */
 
10641
    }
 
10642
  else
 
10643
    puts (dlerror ());
 
10644
 
 
10645
    exit (status);
 
10646
}
 
10647
EOF
 
10648
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10649
  (eval $ac_link) 2>&5
 
10650
  ac_status=$?
 
10651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10652
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10653
    (./conftest; exit; ) >&5 2>/dev/null
 
10654
    lt_status=$?
 
10655
    case x$lt_status in
 
10656
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10657
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10658
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10659
    esac
 
10660
  else :
 
10661
    # compilation failed
 
10662
    lt_cv_dlopen_self_static=no
 
10663
  fi
 
10664
fi
 
10665
rm -fr conftest*
 
10666
 
 
10667
      
 
10668
fi
 
10669
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10670
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10671
    fi
 
10672
 
 
10673
    CPPFLAGS="$save_CPPFLAGS"
 
10674
    LDFLAGS="$save_LDFLAGS"
 
10675
    LIBS="$save_LIBS"
 
10676
    ;;
 
10677
  esac
 
10678
 
 
10679
  case $lt_cv_dlopen_self in
 
10680
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10681
  *) enable_dlopen_self=unknown ;;
 
10682
  esac
 
10683
 
 
10684
  case $lt_cv_dlopen_self_static in
 
10685
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10686
  *) enable_dlopen_self_static=unknown ;;
 
10687
  esac
 
10688
fi
 
10689
 
 
10690
 
 
10691
# Report which library types will actually be built
 
10692
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10693
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10694
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10695
echo "${ECHO_T}$can_build_shared" >&6; }
 
10696
 
 
10697
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10698
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10699
test "$can_build_shared" = "no" && enable_shared=no
 
10700
 
 
10701
# On AIX, shared libraries and static libraries use the same namespace, and
 
10702
# are all built from PIC.
 
10703
case $host_os in
 
10704
aix3*)
 
10705
  test "$enable_shared" = yes && enable_static=no
 
10706
  if test -n "$RANLIB"; then
 
10707
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10708
    postinstall_cmds='$RANLIB $lib'
 
10709
  fi
 
10710
  ;;
 
10711
 
 
10712
aix[4-9]*)
 
10713
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10714
    test "$enable_shared" = yes && enable_static=no
 
10715
  fi
 
10716
    ;;
 
10717
esac
 
10718
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10719
echo "${ECHO_T}$enable_shared" >&6; }
 
10720
 
 
10721
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10722
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10723
# Make sure either enable_shared or enable_static is yes.
 
10724
test "$enable_shared" = yes || enable_static=yes
 
10725
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10726
echo "${ECHO_T}$enable_static" >&6; }
 
10727
 
 
10728
# The else clause should only fire when bootstrapping the
 
10729
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10730
# with your package, and you will get complaints that there are
 
10731
# no rules to generate ltmain.sh.
 
10732
if test -f "$ltmain"; then
 
10733
  # See if we are running on zsh, and set the options which allow our commands through
 
10734
  # without removal of \ escapes.
 
10735
  if test -n "${ZSH_VERSION+set}" ; then
 
10736
    setopt NO_GLOB_SUBST
 
10737
  fi
 
10738
  # Now quote all the things that may contain metacharacters while being
 
10739
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10740
  # variables and quote the copies for generation of the libtool script.
 
10741
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10742
    SED SHELL STRIP \
 
10743
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10744
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10745
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10746
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10747
    lt_cv_sys_global_symbol_to_c_name_address \
 
10748
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10749
    old_postinstall_cmds old_postuninstall_cmds \
 
10750
    compiler \
 
10751
    CC \
 
10752
    LD \
 
10753
    lt_prog_compiler_wl \
 
10754
    lt_prog_compiler_pic \
 
10755
    lt_prog_compiler_static \
 
10756
    lt_prog_compiler_no_builtin_flag \
 
10757
    export_dynamic_flag_spec \
 
10758
    thread_safe_flag_spec \
 
10759
    whole_archive_flag_spec \
 
10760
    enable_shared_with_static_runtimes \
 
10761
    old_archive_cmds \
 
10762
    old_archive_from_new_cmds \
 
10763
    predep_objects \
 
10764
    postdep_objects \
 
10765
    predeps \
 
10766
    postdeps \
 
10767
    compiler_lib_search_path \
 
10768
    compiler_lib_search_dirs \
 
10769
    archive_cmds \
 
10770
    archive_expsym_cmds \
 
10771
    postinstall_cmds \
 
10772
    postuninstall_cmds \
 
10773
    old_archive_from_expsyms_cmds \
 
10774
    allow_undefined_flag \
 
10775
    no_undefined_flag \
 
10776
    export_symbols_cmds \
 
10777
    hardcode_libdir_flag_spec \
 
10778
    hardcode_libdir_flag_spec_ld \
 
10779
    hardcode_libdir_separator \
 
10780
    hardcode_automatic \
 
10781
    module_cmds \
 
10782
    module_expsym_cmds \
 
10783
    lt_cv_prog_compiler_c_o \
 
10784
    fix_srcfile_path \
 
10785
    exclude_expsyms \
 
10786
    include_expsyms; do
 
10787
 
 
10788
    case $var in
 
10789
    old_archive_cmds | \
 
10790
    old_archive_from_new_cmds | \
 
10791
    archive_cmds | \
 
10792
    archive_expsym_cmds | \
 
10793
    module_cmds | \
 
10794
    module_expsym_cmds | \
 
10795
    old_archive_from_expsyms_cmds | \
 
10796
    export_symbols_cmds | \
 
10797
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10798
    postinstall_cmds | postuninstall_cmds | \
 
10799
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10800
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10801
      # Double-quote double-evaled strings.
 
10802
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10803
      ;;
 
10804
    *)
 
10805
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10806
      ;;
 
10807
    esac
 
10808
  done
 
10809
 
 
10810
  case $lt_echo in
 
10811
  *'\$0 --fallback-echo"')
 
10812
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10813
    ;;
 
10814
  esac
 
10815
 
 
10816
cfgfile="${ofile}T"
 
10817
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10818
  $rm -f "$cfgfile"
 
10819
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10820
echo "$as_me: creating $ofile" >&6;}
 
10821
 
 
10822
  cat <<__EOF__ >> "$cfgfile"
 
10823
#! $SHELL
 
10824
 
 
10825
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10826
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10827
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10828
#
 
10829
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10830
# Free Software Foundation, Inc.
 
10831
#
 
10832
# This file is part of GNU Libtool:
 
10833
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10834
#
 
10835
# This program is free software; you can redistribute it and/or modify
 
10836
# it under the terms of the GNU General Public License as published by
 
10837
# the Free Software Foundation; either version 2 of the License, or
 
10838
# (at your option) any later version.
 
10839
#
 
10840
# This program is distributed in the hope that it will be useful, but
 
10841
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10842
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10843
# General Public License for more details.
 
10844
#
 
10845
# You should have received a copy of the GNU General Public License
 
10846
# along with this program; if not, write to the Free Software
 
10847
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10848
#
 
10849
# As a special exception to the GNU General Public License, if you
 
10850
# distribute this file as part of a program that contains a
 
10851
# configuration script generated by Autoconf, you may include it under
 
10852
# the same distribution terms that you use for the rest of that program.
 
10853
 
 
10854
# A sed program that does not truncate output.
 
10855
SED=$lt_SED
 
10856
 
 
10857
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10858
Xsed="$SED -e 1s/^X//"
 
10859
 
 
10860
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10861
# if CDPATH is set.
 
10862
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10863
 
 
10864
# The names of the tagged configurations supported by this script.
 
10865
available_tags=
 
10866
 
 
10867
# ### BEGIN LIBTOOL CONFIG
 
10868
 
 
10869
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10870
 
 
10871
# Shell to use when invoking shell scripts.
 
10872
SHELL=$lt_SHELL
 
10873
 
 
10874
# Whether or not to build shared libraries.
 
10875
build_libtool_libs=$enable_shared
 
10876
 
 
10877
# Whether or not to build static libraries.
 
10878
build_old_libs=$enable_static
 
10879
 
 
10880
# Whether or not to add -lc for building shared libraries.
 
10881
build_libtool_need_lc=$archive_cmds_need_lc
 
10882
 
 
10883
# Whether or not to disallow shared libs when runtime libs are static
 
10884
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10885
 
 
10886
# Whether or not to optimize for fast installation.
 
10887
fast_install=$enable_fast_install
 
10888
 
 
10889
# The host system.
 
10890
host_alias=$host_alias
 
10891
host=$host
 
10892
host_os=$host_os
 
10893
 
 
10894
# The build system.
 
10895
build_alias=$build_alias
 
10896
build=$build
 
10897
build_os=$build_os
 
10898
 
 
10899
# An echo program that does not interpret backslashes.
 
10900
echo=$lt_echo
 
10901
 
 
10902
# The archiver.
 
10903
AR=$lt_AR
 
10904
AR_FLAGS=$lt_AR_FLAGS
 
10905
 
 
10906
# A C compiler.
 
10907
LTCC=$lt_LTCC
 
10908
 
 
10909
# LTCC compiler flags.
 
10910
LTCFLAGS=$lt_LTCFLAGS
 
10911
 
 
10912
# A language-specific compiler.
 
10913
CC=$lt_compiler
 
10914
 
 
10915
# Is the compiler the GNU C compiler?
 
10916
with_gcc=$GCC
 
10917
 
 
10918
# An ERE matcher.
 
10919
EGREP=$lt_EGREP
 
10920
 
 
10921
# The linker used to build libraries.
 
10922
LD=$lt_LD
 
10923
 
 
10924
# Whether we need hard or soft links.
 
10925
LN_S=$lt_LN_S
 
10926
 
 
10927
# A BSD-compatible nm program.
 
10928
NM=$lt_NM
 
10929
 
 
10930
# A symbol stripping program
 
10931
STRIP=$lt_STRIP
 
10932
 
 
10933
# Used to examine libraries when file_magic_cmd begins "file"
 
10934
MAGIC_CMD=$MAGIC_CMD
 
10935
 
 
10936
# Used on cygwin: DLL creation program.
 
10937
DLLTOOL="$DLLTOOL"
 
10938
 
 
10939
# Used on cygwin: object dumper.
 
10940
OBJDUMP="$OBJDUMP"
 
10941
 
 
10942
# Used on cygwin: assembler.
 
10943
AS="$AS"
 
10944
 
 
10945
# The name of the directory that contains temporary libtool files.
 
10946
objdir=$objdir
 
10947
 
 
10948
# How to create reloadable object files.
 
10949
reload_flag=$lt_reload_flag
 
10950
reload_cmds=$lt_reload_cmds
 
10951
 
 
10952
# How to pass a linker flag through the compiler.
 
10953
wl=$lt_lt_prog_compiler_wl
 
10954
 
 
10955
# Object file suffix (normally "o").
 
10956
objext="$ac_objext"
 
10957
 
 
10958
# Old archive suffix (normally "a").
 
10959
libext="$libext"
 
10960
 
 
10961
# Shared library suffix (normally ".so").
 
10962
shrext_cmds='$shrext_cmds'
 
10963
 
 
10964
# Executable file suffix (normally "").
 
10965
exeext="$exeext"
 
10966
 
 
10967
# Additional compiler flags for building library objects.
 
10968
pic_flag=$lt_lt_prog_compiler_pic
 
10969
pic_mode=$pic_mode
 
10970
 
 
10971
# What is the maximum length of a command?
 
10972
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10973
 
 
10974
# Does compiler simultaneously support -c and -o options?
 
10975
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10976
 
 
10977
# Must we lock files when doing compilation?
 
10978
need_locks=$lt_need_locks
 
10979
 
 
10980
# Do we need the lib prefix for modules?
 
10981
need_lib_prefix=$need_lib_prefix
 
10982
 
 
10983
# Do we need a version for libraries?
 
10984
need_version=$need_version
 
10985
 
 
10986
# Whether dlopen is supported.
 
10987
dlopen_support=$enable_dlopen
 
10988
 
 
10989
# Whether dlopen of programs is supported.
 
10990
dlopen_self=$enable_dlopen_self
 
10991
 
 
10992
# Whether dlopen of statically linked programs is supported.
 
10993
dlopen_self_static=$enable_dlopen_self_static
 
10994
 
 
10995
# Compiler flag to prevent dynamic linking.
 
10996
link_static_flag=$lt_lt_prog_compiler_static
 
10997
 
 
10998
# Compiler flag to turn off builtin functions.
 
10999
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11000
 
 
11001
# Compiler flag to allow reflexive dlopens.
 
11002
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11003
 
 
11004
# Compiler flag to generate shared objects directly from archives.
 
11005
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11006
 
 
11007
# Compiler flag to generate thread-safe objects.
 
11008
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11009
 
 
11010
# Library versioning type.
 
11011
version_type=$version_type
 
11012
 
 
11013
# Format of library name prefix.
 
11014
libname_spec=$lt_libname_spec
 
11015
 
 
11016
# List of archive names.  First name is the real one, the rest are links.
 
11017
# The last name is the one that the linker finds with -lNAME.
 
11018
library_names_spec=$lt_library_names_spec
 
11019
 
 
11020
# The coded name of the library, if different from the real name.
 
11021
soname_spec=$lt_soname_spec
 
11022
 
 
11023
# Commands used to build and install an old-style archive.
 
11024
RANLIB=$lt_RANLIB
 
11025
old_archive_cmds=$lt_old_archive_cmds
 
11026
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11027
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11028
 
 
11029
# Create an old-style archive from a shared archive.
 
11030
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11031
 
 
11032
# Create a temporary old-style archive to link instead of a shared archive.
 
11033
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11034
 
 
11035
# Commands used to build and install a shared archive.
 
11036
archive_cmds=$lt_archive_cmds
 
11037
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11038
postinstall_cmds=$lt_postinstall_cmds
 
11039
postuninstall_cmds=$lt_postuninstall_cmds
 
11040
 
 
11041
# Commands used to build a loadable module (assumed same as above if empty)
 
11042
module_cmds=$lt_module_cmds
 
11043
module_expsym_cmds=$lt_module_expsym_cmds
 
11044
 
 
11045
# Commands to strip libraries.
 
11046
old_striplib=$lt_old_striplib
 
11047
striplib=$lt_striplib
 
11048
 
 
11049
# Dependencies to place before the objects being linked to create a
 
11050
# shared library.
 
11051
predep_objects=$lt_predep_objects
 
11052
 
 
11053
# Dependencies to place after the objects being linked to create a
 
11054
# shared library.
 
11055
postdep_objects=$lt_postdep_objects
 
11056
 
 
11057
# Dependencies to place before the objects being linked to create a
 
11058
# shared library.
 
11059
predeps=$lt_predeps
 
11060
 
 
11061
# Dependencies to place after the objects being linked to create a
 
11062
# shared library.
 
11063
postdeps=$lt_postdeps
 
11064
 
 
11065
# The directories searched by this compiler when creating a shared
 
11066
# library
 
11067
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11068
 
 
11069
# The library search path used internally by the compiler when linking
 
11070
# a shared library.
 
11071
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11072
 
 
11073
# Method to check whether dependent libraries are shared objects.
 
11074
deplibs_check_method=$lt_deplibs_check_method
 
11075
 
 
11076
# Command to use when deplibs_check_method == file_magic.
 
11077
file_magic_cmd=$lt_file_magic_cmd
 
11078
 
 
11079
# Flag that allows shared libraries with undefined symbols to be built.
 
11080
allow_undefined_flag=$lt_allow_undefined_flag
 
11081
 
 
11082
# Flag that forces no undefined symbols.
 
11083
no_undefined_flag=$lt_no_undefined_flag
 
11084
 
 
11085
# Commands used to finish a libtool library installation in a directory.
 
11086
finish_cmds=$lt_finish_cmds
 
11087
 
 
11088
# Same as above, but a single script fragment to be evaled but not shown.
 
11089
finish_eval=$lt_finish_eval
 
11090
 
 
11091
# Take the output of nm and produce a listing of raw symbols and C names.
 
11092
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11093
 
 
11094
# Transform the output of nm in a proper C declaration
 
11095
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11096
 
 
11097
# Transform the output of nm in a C name address pair
 
11098
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11099
 
 
11100
# This is the shared library runtime path variable.
 
11101
runpath_var=$runpath_var
 
11102
 
 
11103
# This is the shared library path variable.
 
11104
shlibpath_var=$shlibpath_var
 
11105
 
 
11106
# Is shlibpath searched before the hard-coded library search path?
 
11107
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11108
 
 
11109
# How to hardcode a shared library path into an executable.
 
11110
hardcode_action=$hardcode_action
 
11111
 
 
11112
# Whether we should hardcode library paths into libraries.
 
11113
hardcode_into_libs=$hardcode_into_libs
 
11114
 
 
11115
# Flag to hardcode \$libdir into a binary during linking.
 
11116
# This must work even if \$libdir does not exist.
 
11117
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11118
 
 
11119
# If ld is used when linking, flag to hardcode \$libdir into
 
11120
# a binary during linking. This must work even if \$libdir does
 
11121
# not exist.
 
11122
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11123
 
 
11124
# Whether we need a single -rpath flag with a separated argument.
 
11125
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11126
 
 
11127
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11128
# resulting binary.
 
11129
hardcode_direct=$hardcode_direct
 
11130
 
 
11131
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11132
# resulting binary.
 
11133
hardcode_minus_L=$hardcode_minus_L
 
11134
 
 
11135
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11136
# the resulting binary.
 
11137
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11138
 
 
11139
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11140
# and all subsequent libraries and executables linked against it.
 
11141
hardcode_automatic=$hardcode_automatic
 
11142
 
 
11143
# Variables whose values should be saved in libtool wrapper scripts and
 
11144
# restored at relink time.
 
11145
variables_saved_for_relink="$variables_saved_for_relink"
 
11146
 
 
11147
# Whether libtool must link a program against all its dependency libraries.
 
11148
link_all_deplibs=$link_all_deplibs
 
11149
 
 
11150
# Compile-time system search path for libraries
 
11151
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11152
 
 
11153
# Run-time system search path for libraries
 
11154
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11155
 
 
11156
# Fix the shell variable \$srcfile for the compiler.
 
11157
fix_srcfile_path=$lt_fix_srcfile_path
 
11158
 
 
11159
# Set to yes if exported symbols are required.
 
11160
always_export_symbols=$always_export_symbols
 
11161
 
 
11162
# The commands to list exported symbols.
 
11163
export_symbols_cmds=$lt_export_symbols_cmds
 
11164
 
 
11165
# The commands to extract the exported symbol list from a shared archive.
 
11166
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11167
 
 
11168
# Symbols that should not be listed in the preloaded symbols.
 
11169
exclude_expsyms=$lt_exclude_expsyms
 
11170
 
 
11171
# Symbols that must always be exported.
 
11172
include_expsyms=$lt_include_expsyms
 
11173
 
 
11174
# ### END LIBTOOL CONFIG
 
11175
 
 
11176
__EOF__
 
11177
 
 
11178
 
 
11179
  case $host_os in
 
11180
  aix3*)
 
11181
    cat <<\EOF >> "$cfgfile"
 
11182
 
 
11183
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11184
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11185
# vanish in a puff of smoke.
 
11186
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11187
  COLLECT_NAMES=
 
11188
  export COLLECT_NAMES
 
11189
fi
 
11190
EOF
 
11191
    ;;
 
11192
  esac
 
11193
 
 
11194
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11195
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11196
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11197
  # is reportedly fixed, but why not run on old versions too?
 
11198
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11199
 
 
11200
  mv -f "$cfgfile" "$ofile" || \
 
11201
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11202
  chmod +x "$ofile"
 
11203
 
 
11204
else
 
11205
  # If there is no Makefile yet, we rely on a make rule to execute
 
11206
  # `config.status --recheck' to rerun these tests and create the
 
11207
  # libtool script then.
 
11208
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11209
  if test -f "$ltmain_in"; then
 
11210
    test -f Makefile && make "$ltmain"
 
11211
  fi
 
11212
fi
 
11213
 
 
11214
 
 
11215
ac_ext=c
 
11216
ac_cpp='$CPP $CPPFLAGS'
 
11217
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11218
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11219
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11220
 
 
11221
CC="$lt_save_CC"
 
11222
 
 
11223
 
 
11224
# Check whether --with-tags was given.
 
11225
if test "${with_tags+set}" = set; then
 
11226
  withval=$with_tags; tagnames="$withval"
 
11227
fi
 
11228
 
 
11229
 
 
11230
if test -f "$ltmain" && test -n "$tagnames"; then
 
11231
  if test ! -f "${ofile}"; then
 
11232
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11233
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11234
  fi
 
11235
 
 
11236
  if test -z "$LTCC"; then
 
11237
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11238
    if test -z "$LTCC"; then
 
11239
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11240
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11241
    else
 
11242
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11243
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11244
    fi
 
11245
  fi
 
11246
  if test -z "$LTCFLAGS"; then
 
11247
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11248
  fi
 
11249
 
 
11250
  # Extract list of available tagged configurations in $ofile.
 
11251
  # Note that this assumes the entire list is on one line.
 
11252
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11253
 
 
11254
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11255
  for tagname in $tagnames; do
 
11256
    IFS="$lt_save_ifs"
 
11257
    # Check whether tagname contains only valid characters
 
11258
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11259
    "") ;;
 
11260
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11261
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11262
   { (exit 1); exit 1; }; }
 
11263
        ;;
 
11264
    esac
 
11265
 
 
11266
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11267
    then
 
11268
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11269
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11270
   { (exit 1); exit 1; }; }
 
11271
    fi
 
11272
 
 
11273
    # Update the list of available tags.
 
11274
    if test -n "$tagname"; then
 
11275
      echo appending configuration tag \"$tagname\" to $ofile
 
11276
 
 
11277
      case $tagname in
 
11278
      CXX)
 
11279
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11280
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11281
            (test "X$CXX" != "Xg++"))) ; then
 
11282
          ac_ext=cpp
 
11283
ac_cpp='$CXXCPP $CPPFLAGS'
 
11284
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11285
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11286
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11287
 
 
11288
 
 
11289
 
 
11290
 
 
11291
archive_cmds_need_lc_CXX=no
 
11292
allow_undefined_flag_CXX=
 
11293
always_export_symbols_CXX=no
 
11294
archive_expsym_cmds_CXX=
 
11295
export_dynamic_flag_spec_CXX=
 
11296
hardcode_direct_CXX=no
 
11297
hardcode_libdir_flag_spec_CXX=
 
11298
hardcode_libdir_flag_spec_ld_CXX=
 
11299
hardcode_libdir_separator_CXX=
 
11300
hardcode_minus_L_CXX=no
 
11301
hardcode_shlibpath_var_CXX=unsupported
 
11302
hardcode_automatic_CXX=no
 
11303
module_cmds_CXX=
 
11304
module_expsym_cmds_CXX=
 
11305
link_all_deplibs_CXX=unknown
 
11306
old_archive_cmds_CXX=$old_archive_cmds
 
11307
no_undefined_flag_CXX=
 
11308
whole_archive_flag_spec_CXX=
 
11309
enable_shared_with_static_runtimes_CXX=no
 
11310
 
 
11311
# Dependencies to place before and after the object being linked:
 
11312
predep_objects_CXX=
 
11313
postdep_objects_CXX=
 
11314
predeps_CXX=
 
11315
postdeps_CXX=
 
11316
compiler_lib_search_path_CXX=
 
11317
compiler_lib_search_dirs_CXX=
 
11318
 
 
11319
# Source file extension for C++ test sources.
 
11320
ac_ext=cpp
 
11321
 
 
11322
# Object file extension for compiled C++ test sources.
 
11323
objext=o
 
11324
objext_CXX=$objext
 
11325
 
 
11326
# Code to be used in simple compile tests
 
11327
lt_simple_compile_test_code="int some_variable = 0;"
 
11328
 
 
11329
# Code to be used in simple link tests
 
11330
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11331
 
 
11332
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11333
 
 
11334
# If no C compiler was specified, use CC.
 
11335
LTCC=${LTCC-"$CC"}
 
11336
 
 
11337
# If no C compiler flags were specified, use CFLAGS.
 
11338
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11339
 
 
11340
# Allow CC to be a program name with arguments.
 
11341
compiler=$CC
 
11342
 
 
11343
 
 
11344
# save warnings/boilerplate of simple test code
 
11345
ac_outfile=conftest.$ac_objext
 
11346
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11347
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11348
_lt_compiler_boilerplate=`cat conftest.err`
 
11349
$rm conftest*
 
11350
 
 
11351
ac_outfile=conftest.$ac_objext
 
11352
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11353
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11354
_lt_linker_boilerplate=`cat conftest.err`
 
11355
$rm -r conftest*
 
11356
 
 
11357
 
 
11358
# Allow CC to be a program name with arguments.
 
11359
lt_save_CC=$CC
 
11360
lt_save_LD=$LD
 
11361
lt_save_GCC=$GCC
 
11362
GCC=$GXX
 
11363
lt_save_with_gnu_ld=$with_gnu_ld
 
11364
lt_save_path_LD=$lt_cv_path_LD
 
11365
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11366
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11367
else
 
11368
  $as_unset lt_cv_prog_gnu_ld
 
11369
fi
 
11370
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11371
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11372
else
 
11373
  $as_unset lt_cv_path_LD
 
11374
fi
 
11375
test -z "${LDCXX+set}" || LD=$LDCXX
 
11376
CC=${CXX-"c++"}
 
11377
compiler=$CC
 
11378
compiler_CXX=$CC
 
11379
for cc_temp in $compiler""; do
 
11380
  case $cc_temp in
 
11381
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11382
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11383
    \-*) ;;
 
11384
    *) break;;
 
11385
  esac
 
11386
done
 
11387
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11388
 
 
11389
 
 
11390
# We don't want -fno-exception wen compiling C++ code, so set the
 
11391
# no_builtin_flag separately
 
11392
if test "$GXX" = yes; then
 
11393
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11394
else
 
11395
  lt_prog_compiler_no_builtin_flag_CXX=
 
11396
fi
 
11397
 
 
11398
if test "$GXX" = yes; then
 
11399
  # Set up default GNU C++ configuration
 
11400
 
 
11401
  
 
11402
# Check whether --with-gnu-ld was given.
 
11403
if test "${with_gnu_ld+set}" = set; then
 
11404
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11405
else
 
11406
  with_gnu_ld=no
 
11407
fi
 
11408
 
 
11409
ac_prog=ld
 
11410
if test "$GCC" = yes; then
 
11411
  # Check if gcc -print-prog-name=ld gives a path.
 
11412
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11413
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11414
  case $host in
 
11415
  *-*-mingw*)
 
11416
    # gcc leaves a trailing carriage return which upsets mingw
 
11417
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11418
  *)
 
11419
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11420
  esac
 
11421
  case $ac_prog in
 
11422
    # Accept absolute paths.
 
11423
    [\\/]* | ?:[\\/]*)
 
11424
      re_direlt='/[^/][^/]*/\.\./'
 
11425
      # Canonicalize the pathname of ld
 
11426
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11427
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11428
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11429
      done
 
11430
      test -z "$LD" && LD="$ac_prog"
 
11431
      ;;
 
11432
  "")
 
11433
    # If it fails, then pretend we aren't using GCC.
 
11434
    ac_prog=ld
 
11435
    ;;
 
11436
  *)
 
11437
    # If it is relative, then search for the first ld in PATH.
 
11438
    with_gnu_ld=unknown
 
11439
    ;;
 
11440
  esac
 
11441
elif test "$with_gnu_ld" = yes; then
 
11442
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11443
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11444
else
 
11445
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11446
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11447
fi
 
11448
if test "${lt_cv_path_LD+set}" = set; then
 
11449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11450
else
 
11451
  if test -z "$LD"; then
 
11452
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11453
  for ac_dir in $PATH; do
 
11454
    IFS="$lt_save_ifs"
 
11455
    test -z "$ac_dir" && ac_dir=.
 
11456
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11457
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11458
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11459
      # but apparently some variants of GNU ld only accept -v.
 
11460
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11461
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11462
      *GNU* | *'with BFD'*)
 
11463
        test "$with_gnu_ld" != no && break
 
11464
        ;;
 
11465
      *)
 
11466
        test "$with_gnu_ld" != yes && break
 
11467
        ;;
 
11468
      esac
 
11469
    fi
 
11470
  done
 
11471
  IFS="$lt_save_ifs"
 
11472
else
 
11473
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11474
fi
 
11475
fi
 
11476
 
 
11477
LD="$lt_cv_path_LD"
 
11478
if test -n "$LD"; then
 
11479
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11480
echo "${ECHO_T}$LD" >&6; }
 
11481
else
 
11482
  { echo "$as_me:$LINENO: result: no" >&5
 
11483
echo "${ECHO_T}no" >&6; }
 
11484
fi
 
11485
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11486
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11487
   { (exit 1); exit 1; }; }
 
11488
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11489
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11490
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11492
else
 
11493
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11494
case `$LD -v 2>&1 </dev/null` in
 
11495
*GNU* | *'with BFD'*)
 
11496
  lt_cv_prog_gnu_ld=yes
 
11497
  ;;
 
11498
*)
 
11499
  lt_cv_prog_gnu_ld=no
 
11500
  ;;
 
11501
esac
 
11502
fi
 
11503
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11504
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11505
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11506
 
 
11507
 
 
11508
 
 
11509
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11510
  # archiving commands below assume that GNU ld is being used.
 
11511
  if test "$with_gnu_ld" = yes; then
 
11512
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11513
    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'
 
11514
 
 
11515
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11516
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11517
 
 
11518
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11519
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11520
    #     investigate it a little bit more. (MM)
 
11521
    wlarc='${wl}'
 
11522
 
 
11523
    # ancient GNU ld didn't support --whole-archive et. al.
 
11524
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11525
        grep 'no-whole-archive' > /dev/null; then
 
11526
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11527
    else
 
11528
      whole_archive_flag_spec_CXX=
 
11529
    fi
 
11530
  else
 
11531
    with_gnu_ld=no
 
11532
    wlarc=
 
11533
 
 
11534
    # A generic and very simple default shared library creation
 
11535
    # command for GNU C++ for the case where it uses the native
 
11536
    # linker, instead of GNU ld.  If possible, this setting should
 
11537
    # overridden to take advantage of the native linker features on
 
11538
    # the platform it is being used on.
 
11539
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11540
  fi
 
11541
 
 
11542
  # Commands to make compiler produce verbose output that lists
 
11543
  # what "hidden" libraries, object files and flags are used when
 
11544
  # linking a shared library.
 
11545
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11546
 
 
11547
else
 
11548
  GXX=no
 
11549
  with_gnu_ld=no
 
11550
  wlarc=
 
11551
fi
 
11552
 
 
11553
# PORTME: fill in a description of your system's C++ link characteristics
 
11554
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11555
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11556
ld_shlibs_CXX=yes
 
11557
case $host_os in
 
11558
  aix3*)
 
11559
    # FIXME: insert proper C++ library support
 
11560
    ld_shlibs_CXX=no
 
11561
    ;;
 
11562
  aix[4-9]*)
 
11563
    if test "$host_cpu" = ia64; then
 
11564
      # On IA64, the linker does run time linking by default, so we don't
 
11565
      # have to do anything special.
 
11566
      aix_use_runtimelinking=no
 
11567
      exp_sym_flag='-Bexport'
 
11568
      no_entry_flag=""
 
11569
    else
 
11570
      aix_use_runtimelinking=no
 
11571
 
 
11572
      # Test if we are trying to use run time linking or normal
 
11573
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11574
      # need to do runtime linking.
 
11575
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11576
        for ld_flag in $LDFLAGS; do
 
11577
          case $ld_flag in
 
11578
          *-brtl*)
 
11579
            aix_use_runtimelinking=yes
 
11580
            break
 
11581
            ;;
 
11582
          esac
 
11583
        done
 
11584
        ;;
 
11585
      esac
 
11586
 
 
11587
      exp_sym_flag='-bexport'
 
11588
      no_entry_flag='-bnoentry'
 
11589
    fi
 
11590
 
 
11591
    # When large executables or shared objects are built, AIX ld can
 
11592
    # have problems creating the table of contents.  If linking a library
 
11593
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11594
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11595
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11596
 
 
11597
    archive_cmds_CXX=''
 
11598
    hardcode_direct_CXX=yes
 
11599
    hardcode_libdir_separator_CXX=':'
 
11600
    link_all_deplibs_CXX=yes
 
11601
 
 
11602
    if test "$GXX" = yes; then
 
11603
      case $host_os in aix4.[012]|aix4.[012].*)
 
11604
      # We only want to do this on AIX 4.2 and lower, the check
 
11605
      # below for broken collect2 doesn't work under 4.3+
 
11606
        collect2name=`${CC} -print-prog-name=collect2`
 
11607
        if test -f "$collect2name" && \
 
11608
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11609
        then
 
11610
          # We have reworked collect2
 
11611
          :
 
11612
        else
 
11613
          # We have old collect2
 
11614
          hardcode_direct_CXX=unsupported
 
11615
          # It fails to find uninstalled libraries when the uninstalled
 
11616
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11617
          # to unsupported forces relinking
 
11618
          hardcode_minus_L_CXX=yes
 
11619
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11620
          hardcode_libdir_separator_CXX=
 
11621
        fi
 
11622
        ;;
 
11623
      esac
 
11624
      shared_flag='-shared'
 
11625
      if test "$aix_use_runtimelinking" = yes; then
 
11626
        shared_flag="$shared_flag "'${wl}-G'
 
11627
      fi
 
11628
    else
 
11629
      # not using gcc
 
11630
      if test "$host_cpu" = ia64; then
 
11631
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11632
        # chokes on -Wl,-G. The following line is correct:
 
11633
        shared_flag='-G'
 
11634
      else
 
11635
        if test "$aix_use_runtimelinking" = yes; then
 
11636
          shared_flag='${wl}-G'
 
11637
        else
 
11638
          shared_flag='${wl}-bM:SRE'
 
11639
        fi
 
11640
      fi
 
11641
    fi
 
11642
 
 
11643
    # It seems that -bexpall does not export symbols beginning with
 
11644
    # underscore (_), so it is better to generate a list of symbols to export.
 
11645
    always_export_symbols_CXX=yes
 
11646
    if test "$aix_use_runtimelinking" = yes; then
 
11647
      # Warning - without using the other runtime loading flags (-brtl),
 
11648
      # -berok will link without error, but may produce a broken library.
 
11649
      allow_undefined_flag_CXX='-berok'
 
11650
      # Determine the default libpath from the value encoded in an empty executable.
 
11651
      cat >conftest.$ac_ext <<_ACEOF
 
11652
/* confdefs.h.  */
 
11653
_ACEOF
 
11654
cat confdefs.h >>conftest.$ac_ext
 
11655
cat >>conftest.$ac_ext <<_ACEOF
 
11656
/* end confdefs.h.  */
 
11657
 
 
11658
int
 
11659
main ()
 
11660
{
 
11661
 
 
11662
  ;
 
11663
  return 0;
 
11664
}
 
11665
_ACEOF
 
11666
rm -f conftest.$ac_objext conftest$ac_exeext
 
11667
if { (ac_try="$ac_link"
 
11668
case "(($ac_try" in
 
11669
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11670
  *) ac_try_echo=$ac_try;;
 
11671
esac
 
11672
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11673
  (eval "$ac_link") 2>conftest.er1
 
11674
  ac_status=$?
 
11675
  grep -v '^ *+' conftest.er1 >conftest.err
 
11676
  rm -f conftest.er1
 
11677
  cat conftest.err >&5
 
11678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11679
  (exit $ac_status); } && {
 
11680
         test -z "$ac_cxx_werror_flag" ||
 
11681
         test ! -s conftest.err
 
11682
       } && test -s conftest$ac_exeext &&
 
11683
       $as_test_x conftest$ac_exeext; then
 
11684
  
 
11685
lt_aix_libpath_sed='
 
11686
    /Import File Strings/,/^$/ {
 
11687
        /^0/ {
 
11688
            s/^0  *\(.*\)$/\1/
 
11689
            p
 
11690
        }
 
11691
    }'
 
11692
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11693
# Check for a 64-bit object if we didn't find anything.
 
11694
if test -z "$aix_libpath"; then
 
11695
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11696
fi
 
11697
else
 
11698
  echo "$as_me: failed program was:" >&5
 
11699
sed 's/^/| /' conftest.$ac_ext >&5
 
11700
 
 
11701
        
 
11702
fi
 
11703
 
 
11704
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11705
      conftest$ac_exeext conftest.$ac_ext
 
11706
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11707
 
 
11708
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11709
 
 
11710
      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"
 
11711
     else
 
11712
      if test "$host_cpu" = ia64; then
 
11713
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11714
        allow_undefined_flag_CXX="-z nodefs"
 
11715
        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"
 
11716
      else
 
11717
        # Determine the default libpath from the value encoded in an empty executable.
 
11718
        cat >conftest.$ac_ext <<_ACEOF
 
11719
/* confdefs.h.  */
 
11720
_ACEOF
 
11721
cat confdefs.h >>conftest.$ac_ext
 
11722
cat >>conftest.$ac_ext <<_ACEOF
 
11723
/* end confdefs.h.  */
 
11724
 
 
11725
int
 
11726
main ()
 
11727
{
 
11728
 
 
11729
  ;
 
11730
  return 0;
 
11731
}
 
11732
_ACEOF
 
11733
rm -f conftest.$ac_objext conftest$ac_exeext
 
11734
if { (ac_try="$ac_link"
 
11735
case "(($ac_try" in
 
11736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11737
  *) ac_try_echo=$ac_try;;
 
11738
esac
 
11739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11740
  (eval "$ac_link") 2>conftest.er1
 
11741
  ac_status=$?
 
11742
  grep -v '^ *+' conftest.er1 >conftest.err
 
11743
  rm -f conftest.er1
 
11744
  cat conftest.err >&5
 
11745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11746
  (exit $ac_status); } && {
 
11747
         test -z "$ac_cxx_werror_flag" ||
 
11748
         test ! -s conftest.err
 
11749
       } && test -s conftest$ac_exeext &&
 
11750
       $as_test_x conftest$ac_exeext; then
 
11751
  
 
11752
lt_aix_libpath_sed='
 
11753
    /Import File Strings/,/^$/ {
 
11754
        /^0/ {
 
11755
            s/^0  *\(.*\)$/\1/
 
11756
            p
 
11757
        }
 
11758
    }'
 
11759
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11760
# Check for a 64-bit object if we didn't find anything.
 
11761
if test -z "$aix_libpath"; then
 
11762
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11763
fi
 
11764
else
 
11765
  echo "$as_me: failed program was:" >&5
 
11766
sed 's/^/| /' conftest.$ac_ext >&5
 
11767
 
 
11768
        
 
11769
fi
 
11770
 
 
11771
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11772
      conftest$ac_exeext conftest.$ac_ext
 
11773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11774
 
 
11775
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11776
        # Warning - without using the other run time loading flags,
 
11777
        # -berok will link without error, but may produce a broken library.
 
11778
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11779
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11780
        # Exported symbols can be pulled into shared objects from archives
 
11781
        whole_archive_flag_spec_CXX='$convenience'
 
11782
        archive_cmds_need_lc_CXX=yes
 
11783
        # This is similar to how AIX traditionally builds its shared libraries.
 
11784
        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'
 
11785
      fi
 
11786
    fi
 
11787
    ;;
 
11788
 
 
11789
  beos*)
 
11790
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11791
      allow_undefined_flag_CXX=unsupported
 
11792
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11793
      # support --undefined.  This deserves some investigation.  FIXME
 
11794
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11795
    else
 
11796
      ld_shlibs_CXX=no
 
11797
    fi
 
11798
    ;;
 
11799
 
 
11800
  chorus*)
 
11801
    case $cc_basename in
 
11802
      *)
 
11803
        # FIXME: insert proper C++ library support
 
11804
        ld_shlibs_CXX=no
 
11805
        ;;
 
11806
    esac
 
11807
    ;;
 
11808
 
 
11809
  cygwin* | mingw* | pw32*)
 
11810
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11811
    # as there is no search path for DLLs.
 
11812
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11813
    allow_undefined_flag_CXX=unsupported
 
11814
    always_export_symbols_CXX=no
 
11815
    enable_shared_with_static_runtimes_CXX=yes
 
11816
 
 
11817
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11818
      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'
 
11819
      # If the export-symbols file already is a .def file (1st line
 
11820
      # is EXPORTS), use it as is; otherwise, prepend...
 
11821
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11822
        cp $export_symbols $output_objdir/$soname.def;
 
11823
      else
 
11824
        echo EXPORTS > $output_objdir/$soname.def;
 
11825
        cat $export_symbols >> $output_objdir/$soname.def;
 
11826
      fi~
 
11827
      $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'
 
11828
    else
 
11829
      ld_shlibs_CXX=no
 
11830
    fi
 
11831
  ;;
 
11832
      darwin* | rhapsody*)
 
11833
      archive_cmds_need_lc_CXX=no
 
11834
      hardcode_direct_CXX=no
 
11835
      hardcode_automatic_CXX=yes
 
11836
      hardcode_shlibpath_var_CXX=unsupported
 
11837
      whole_archive_flag_spec_CXX=''
 
11838
      link_all_deplibs_CXX=yes
 
11839
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11840
      if test "$GXX" = yes ; then
 
11841
      output_verbose_link_cmd='echo'
 
11842
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11843
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11844
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11845
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11846
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11847
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11848
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
11849
      fi
 
11850
      else
 
11851
      case $cc_basename in
 
11852
        xlc*)
 
11853
         output_verbose_link_cmd='echo'
 
11854
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11855
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11856
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11857
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11858
          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}'
 
11859
          ;;
 
11860
       *)
 
11861
         ld_shlibs_CXX=no
 
11862
          ;;
 
11863
      esac
 
11864
      fi
 
11865
        ;;
 
11866
 
 
11867
  dgux*)
 
11868
    case $cc_basename in
 
11869
      ec++*)
 
11870
        # FIXME: insert proper C++ library support
 
11871
        ld_shlibs_CXX=no
 
11872
        ;;
 
11873
      ghcx*)
 
11874
        # Green Hills C++ Compiler
 
11875
        # FIXME: insert proper C++ library support
 
11876
        ld_shlibs_CXX=no
 
11877
        ;;
 
11878
      *)
 
11879
        # FIXME: insert proper C++ library support
 
11880
        ld_shlibs_CXX=no
 
11881
        ;;
 
11882
    esac
 
11883
    ;;
 
11884
  freebsd[12]*)
 
11885
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11886
    ld_shlibs_CXX=no
 
11887
    ;;
 
11888
  freebsd-elf*)
 
11889
    archive_cmds_need_lc_CXX=no
 
11890
    ;;
 
11891
  freebsd* | dragonfly*)
 
11892
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11893
    # conventions
 
11894
    ld_shlibs_CXX=yes
 
11895
    ;;
 
11896
  gnu*)
 
11897
    ;;
 
11898
  hpux9*)
 
11899
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11900
    hardcode_libdir_separator_CXX=:
 
11901
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11902
    hardcode_direct_CXX=yes
 
11903
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11904
                                # but as the default
 
11905
                                # location of the library.
 
11906
 
 
11907
    case $cc_basename in
 
11908
    CC*)
 
11909
      # FIXME: insert proper C++ library support
 
11910
      ld_shlibs_CXX=no
 
11911
      ;;
 
11912
    aCC*)
 
11913
      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'
 
11914
      # Commands to make compiler produce verbose output that lists
 
11915
      # what "hidden" libraries, object files and flags are used when
 
11916
      # linking a shared library.
 
11917
      #
 
11918
      # There doesn't appear to be a way to prevent this compiler from
 
11919
      # explicitly linking system object files so we need to strip them
 
11920
      # from the output so that they don't get included in the library
 
11921
      # dependencies.
 
11922
      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'
 
11923
      ;;
 
11924
    *)
 
11925
      if test "$GXX" = yes; then
 
11926
        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'
 
11927
      else
 
11928
        # FIXME: insert proper C++ library support
 
11929
        ld_shlibs_CXX=no
 
11930
      fi
 
11931
      ;;
 
11932
    esac
 
11933
    ;;
 
11934
  hpux10*|hpux11*)
 
11935
    if test $with_gnu_ld = no; then
 
11936
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11937
      hardcode_libdir_separator_CXX=:
 
11938
 
 
11939
      case $host_cpu in
 
11940
      hppa*64*|ia64*) ;;
 
11941
      *)
 
11942
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11943
        ;;
 
11944
      esac
 
11945
    fi
 
11946
    case $host_cpu in
 
11947
    hppa*64*|ia64*)
 
11948
      hardcode_direct_CXX=no
 
11949
      hardcode_shlibpath_var_CXX=no
 
11950
      ;;
 
11951
    *)
 
11952
      hardcode_direct_CXX=yes
 
11953
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11954
                                              # but as the default
 
11955
                                              # location of the library.
 
11956
      ;;
 
11957
    esac
 
11958
 
 
11959
    case $cc_basename in
 
11960
      CC*)
 
11961
        # FIXME: insert proper C++ library support
 
11962
        ld_shlibs_CXX=no
 
11963
        ;;
 
11964
      aCC*)
 
11965
        case $host_cpu in
 
11966
        hppa*64*)
 
11967
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11968
          ;;
 
11969
        ia64*)
 
11970
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11971
          ;;
 
11972
        *)
 
11973
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11974
          ;;
 
11975
        esac
 
11976
        # Commands to make compiler produce verbose output that lists
 
11977
        # what "hidden" libraries, object files and flags are used when
 
11978
        # linking a shared library.
 
11979
        #
 
11980
        # There doesn't appear to be a way to prevent this compiler from
 
11981
        # explicitly linking system object files so we need to strip them
 
11982
        # from the output so that they don't get included in the library
 
11983
        # dependencies.
 
11984
        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'
 
11985
        ;;
 
11986
      *)
 
11987
        if test "$GXX" = yes; then
 
11988
          if test $with_gnu_ld = no; then
 
11989
            case $host_cpu in
 
11990
            hppa*64*)
 
11991
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11992
              ;;
 
11993
            ia64*)
 
11994
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11995
              ;;
 
11996
            *)
 
11997
              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'
 
11998
              ;;
 
11999
            esac
 
12000
          fi
 
12001
        else
 
12002
          # FIXME: insert proper C++ library support
 
12003
          ld_shlibs_CXX=no
 
12004
        fi
 
12005
        ;;
 
12006
    esac
 
12007
    ;;
 
12008
  interix[3-9]*)
 
12009
    hardcode_direct_CXX=no
 
12010
    hardcode_shlibpath_var_CXX=no
 
12011
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12012
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12013
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12014
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12015
    # default) and relocated if they conflict, which is a slow very memory
 
12016
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12017
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12018
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12019
    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'
 
12020
    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'
 
12021
    ;;
 
12022
  irix5* | irix6*)
 
12023
    case $cc_basename in
 
12024
      CC*)
 
12025
        # SGI C++
 
12026
        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'
 
12027
 
 
12028
        # Archives containing C++ object files must be created using
 
12029
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12030
        # necessary to make sure instantiated templates are included
 
12031
        # in the archive.
 
12032
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12033
        ;;
 
12034
      *)
 
12035
        if test "$GXX" = yes; then
 
12036
          if test "$with_gnu_ld" = no; then
 
12037
            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'
 
12038
          else
 
12039
            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'
 
12040
          fi
 
12041
        fi
 
12042
        link_all_deplibs_CXX=yes
 
12043
        ;;
 
12044
    esac
 
12045
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12046
    hardcode_libdir_separator_CXX=:
 
12047
    ;;
 
12048
  linux* | k*bsd*-gnu)
 
12049
    case $cc_basename in
 
12050
      KCC*)
 
12051
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12052
 
 
12053
        # KCC will only create a shared library if the output file
 
12054
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12055
        # to its proper name (with version) after linking.
 
12056
        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'
 
12057
        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'
 
12058
        # Commands to make compiler produce verbose output that lists
 
12059
        # what "hidden" libraries, object files and flags are used when
 
12060
        # linking a shared library.
 
12061
        #
 
12062
        # There doesn't appear to be a way to prevent this compiler from
 
12063
        # explicitly linking system object files so we need to strip them
 
12064
        # from the output so that they don't get included in the library
 
12065
        # dependencies.
 
12066
        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'
 
12067
 
 
12068
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12069
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12070
 
 
12071
        # Archives containing C++ object files must be created using
 
12072
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12073
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12074
        ;;
 
12075
      icpc*)
 
12076
        # Intel C++
 
12077
        with_gnu_ld=yes
 
12078
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12079
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12080
        # earlier do not add the objects themselves.
 
12081
        case `$CC -V 2>&1` in
 
12082
        *"Version 7."*)
 
12083
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12084
          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'
 
12085
          ;;
 
12086
        *)  # Version 8.0 or newer
 
12087
          tmp_idyn=
 
12088
          case $host_cpu in
 
12089
            ia64*) tmp_idyn=' -i_dynamic';;
 
12090
          esac
 
12091
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12092
          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'
 
12093
          ;;
 
12094
        esac
 
12095
        archive_cmds_need_lc_CXX=no
 
12096
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12097
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12098
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12099
        ;;
 
12100
      pgCC* | pgcpp*)
 
12101
        # Portland Group C++ compiler
 
12102
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12103
        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'
 
12104
 
 
12105
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12106
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12107
        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'
 
12108
        ;;
 
12109
      cxx*)
 
12110
        # Compaq C++
 
12111
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12112
        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'
 
12113
 
 
12114
        runpath_var=LD_RUN_PATH
 
12115
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12116
        hardcode_libdir_separator_CXX=:
 
12117
 
 
12118
        # Commands to make compiler produce verbose output that lists
 
12119
        # what "hidden" libraries, object files and flags are used when
 
12120
        # linking a shared library.
 
12121
        #
 
12122
        # There doesn't appear to be a way to prevent this compiler from
 
12123
        # explicitly linking system object files so we need to strip them
 
12124
        # from the output so that they don't get included in the library
 
12125
        # dependencies.
 
12126
        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'
 
12127
        ;;
 
12128
      *)
 
12129
        case `$CC -V 2>&1 | sed 5q` in
 
12130
        *Sun\ C*)
 
12131
          # Sun C++ 5.9
 
12132
          no_undefined_flag_CXX=' -zdefs'
 
12133
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12134
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12135
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12136
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12137
 
 
12138
          # Not sure whether something based on
 
12139
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12140
          # would be better.
 
12141
          output_verbose_link_cmd='echo'
 
12142
 
 
12143
          # Archives containing C++ object files must be created using
 
12144
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12145
          # necessary to make sure instantiated templates are included
 
12146
          # in the archive.
 
12147
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12148
          ;;
 
12149
        esac
 
12150
        ;;
 
12151
    esac
 
12152
    ;;
 
12153
  lynxos*)
 
12154
    # FIXME: insert proper C++ library support
 
12155
    ld_shlibs_CXX=no
 
12156
    ;;
 
12157
  m88k*)
 
12158
    # FIXME: insert proper C++ library support
 
12159
    ld_shlibs_CXX=no
 
12160
    ;;
 
12161
  mvs*)
 
12162
    case $cc_basename in
 
12163
      cxx*)
 
12164
        # FIXME: insert proper C++ library support
 
12165
        ld_shlibs_CXX=no
 
12166
        ;;
 
12167
      *)
 
12168
        # FIXME: insert proper C++ library support
 
12169
        ld_shlibs_CXX=no
 
12170
        ;;
 
12171
    esac
 
12172
    ;;
 
12173
  netbsd* | netbsdelf*-gnu)
 
12174
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12175
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12176
      wlarc=
 
12177
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12178
      hardcode_direct_CXX=yes
 
12179
      hardcode_shlibpath_var_CXX=no
 
12180
    fi
 
12181
    # Workaround some broken pre-1.5 toolchains
 
12182
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12183
    ;;
 
12184
  openbsd2*)
 
12185
    # C++ shared libraries are fairly broken
 
12186
    ld_shlibs_CXX=no
 
12187
    ;;
 
12188
  openbsd*)
 
12189
    if test -f /usr/libexec/ld.so; then
 
12190
      hardcode_direct_CXX=yes
 
12191
      hardcode_shlibpath_var_CXX=no
 
12192
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12193
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12194
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12195
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12196
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12197
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12198
      fi
 
12199
      output_verbose_link_cmd='echo'
 
12200
    else
 
12201
      ld_shlibs_CXX=no
 
12202
    fi
 
12203
    ;;
 
12204
  osf3*)
 
12205
    case $cc_basename in
 
12206
      KCC*)
 
12207
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12208
 
 
12209
        # KCC will only create a shared library if the output file
 
12210
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12211
        # to its proper name (with version) after linking.
 
12212
        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'
 
12213
 
 
12214
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12215
        hardcode_libdir_separator_CXX=:
 
12216
 
 
12217
        # Archives containing C++ object files must be created using
 
12218
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12219
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12220
 
 
12221
        ;;
 
12222
      RCC*)
 
12223
        # Rational C++ 2.4.1
 
12224
        # FIXME: insert proper C++ library support
 
12225
        ld_shlibs_CXX=no
 
12226
        ;;
 
12227
      cxx*)
 
12228
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12229
        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'
 
12230
 
 
12231
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12232
        hardcode_libdir_separator_CXX=:
 
12233
 
 
12234
        # Commands to make compiler produce verbose output that lists
 
12235
        # what "hidden" libraries, object files and flags are used when
 
12236
        # linking a shared library.
 
12237
        #
 
12238
        # There doesn't appear to be a way to prevent this compiler from
 
12239
        # explicitly linking system object files so we need to strip them
 
12240
        # from the output so that they don't get included in the library
 
12241
        # dependencies.
 
12242
        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'
 
12243
        ;;
 
12244
      *)
 
12245
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12246
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12247
          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'
 
12248
 
 
12249
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12250
          hardcode_libdir_separator_CXX=:
 
12251
 
 
12252
          # Commands to make compiler produce verbose output that lists
 
12253
          # what "hidden" libraries, object files and flags are used when
 
12254
          # linking a shared library.
 
12255
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12256
 
 
12257
        else
 
12258
          # FIXME: insert proper C++ library support
 
12259
          ld_shlibs_CXX=no
 
12260
        fi
 
12261
        ;;
 
12262
    esac
 
12263
    ;;
 
12264
  osf4* | osf5*)
 
12265
    case $cc_basename in
 
12266
      KCC*)
 
12267
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12268
 
 
12269
        # KCC will only create a shared library if the output file
 
12270
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12271
        # to its proper name (with version) after linking.
 
12272
        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'
 
12273
 
 
12274
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12275
        hardcode_libdir_separator_CXX=:
 
12276
 
 
12277
        # Archives containing C++ object files must be created using
 
12278
        # the KAI C++ compiler.
 
12279
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12280
        ;;
 
12281
      RCC*)
 
12282
        # Rational C++ 2.4.1
 
12283
        # FIXME: insert proper C++ library support
 
12284
        ld_shlibs_CXX=no
 
12285
        ;;
 
12286
      cxx*)
 
12287
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12288
        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'
 
12289
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12290
          echo "-hidden">> $lib.exp~
 
12291
          $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~
 
12292
          $rm $lib.exp'
 
12293
 
 
12294
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12295
        hardcode_libdir_separator_CXX=:
 
12296
 
 
12297
        # Commands to make compiler produce verbose output that lists
 
12298
        # what "hidden" libraries, object files and flags are used when
 
12299
        # linking a shared library.
 
12300
        #
 
12301
        # There doesn't appear to be a way to prevent this compiler from
 
12302
        # explicitly linking system object files so we need to strip them
 
12303
        # from the output so that they don't get included in the library
 
12304
        # dependencies.
 
12305
        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'
 
12306
        ;;
 
12307
      *)
 
12308
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12309
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12310
         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'
 
12311
 
 
12312
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12313
          hardcode_libdir_separator_CXX=:
 
12314
 
 
12315
          # Commands to make compiler produce verbose output that lists
 
12316
          # what "hidden" libraries, object files and flags are used when
 
12317
          # linking a shared library.
 
12318
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12319
 
 
12320
        else
 
12321
          # FIXME: insert proper C++ library support
 
12322
          ld_shlibs_CXX=no
 
12323
        fi
 
12324
        ;;
 
12325
    esac
 
12326
    ;;
 
12327
  psos*)
 
12328
    # FIXME: insert proper C++ library support
 
12329
    ld_shlibs_CXX=no
 
12330
    ;;
 
12331
  sunos4*)
 
12332
    case $cc_basename in
 
12333
      CC*)
 
12334
        # Sun C++ 4.x
 
12335
        # FIXME: insert proper C++ library support
 
12336
        ld_shlibs_CXX=no
 
12337
        ;;
 
12338
      lcc*)
 
12339
        # Lucid
 
12340
        # FIXME: insert proper C++ library support
 
12341
        ld_shlibs_CXX=no
 
12342
        ;;
 
12343
      *)
 
12344
        # FIXME: insert proper C++ library support
 
12345
        ld_shlibs_CXX=no
 
12346
        ;;
 
12347
    esac
 
12348
    ;;
 
12349
  solaris*)
 
12350
    case $cc_basename in
 
12351
      CC*)
 
12352
        # Sun C++ 4.2, 5.x and Centerline C++
 
12353
        archive_cmds_need_lc_CXX=yes
 
12354
        no_undefined_flag_CXX=' -zdefs'
 
12355
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12356
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12357
        $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'
 
12358
 
 
12359
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12360
        hardcode_shlibpath_var_CXX=no
 
12361
        case $host_os in
 
12362
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12363
          *)
 
12364
            # The compiler driver will combine and reorder linker options,
 
12365
            # but understands `-z linker_flag'.
 
12366
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12367
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12368
            ;;
 
12369
        esac
 
12370
        link_all_deplibs_CXX=yes
 
12371
 
 
12372
        output_verbose_link_cmd='echo'
 
12373
 
 
12374
        # Archives containing C++ object files must be created using
 
12375
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12376
        # necessary to make sure instantiated templates are included
 
12377
        # in the archive.
 
12378
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12379
        ;;
 
12380
      gcx*)
 
12381
        # Green Hills C++ Compiler
 
12382
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12383
 
 
12384
        # The C++ compiler must be used to create the archive.
 
12385
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12386
        ;;
 
12387
      *)
 
12388
        # GNU C++ compiler with Solaris linker
 
12389
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12390
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12391
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12392
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12393
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12394
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12395
 
 
12396
            # Commands to make compiler produce verbose output that lists
 
12397
            # what "hidden" libraries, object files and flags are used when
 
12398
            # linking a shared library.
 
12399
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12400
          else
 
12401
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12402
            # platform.
 
12403
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12404
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12405
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12406
 
 
12407
            # Commands to make compiler produce verbose output that lists
 
12408
            # what "hidden" libraries, object files and flags are used when
 
12409
            # linking a shared library.
 
12410
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12411
          fi
 
12412
 
 
12413
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12414
          case $host_os in
 
12415
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12416
          *)
 
12417
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12418
            ;;
 
12419
          esac
 
12420
        fi
 
12421
        ;;
 
12422
    esac
 
12423
    ;;
 
12424
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12425
    no_undefined_flag_CXX='${wl}-z,text'
 
12426
    archive_cmds_need_lc_CXX=no
 
12427
    hardcode_shlibpath_var_CXX=no
 
12428
    runpath_var='LD_RUN_PATH'
 
12429
 
 
12430
    case $cc_basename in
 
12431
      CC*)
 
12432
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12433
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12434
        ;;
 
12435
      *)
 
12436
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12437
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12438
        ;;
 
12439
    esac
 
12440
    ;;
 
12441
  sysv5* | sco3.2v5* | sco5v6*)
 
12442
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12443
    # link with -lc, and that would cause any symbols used from libc to
 
12444
    # always be unresolved, which means just about no library would
 
12445
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12446
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12447
    # as -z defs.
 
12448
    # For security reasons, it is highly recommended that you always
 
12449
    # use absolute paths for naming shared libraries, and exclude the
 
12450
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12451
    # requires that you compile everything twice, which is a pain.
 
12452
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12453
    # non-empty value in the environment.  Most likely only useful for
 
12454
    # creating official distributions of packages.
 
12455
    # This is a hack until libtool officially supports absolute path
 
12456
    # names for shared libraries.
 
12457
    no_undefined_flag_CXX='${wl}-z,text'
 
12458
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12459
    archive_cmds_need_lc_CXX=no
 
12460
    hardcode_shlibpath_var_CXX=no
 
12461
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12462
    hardcode_libdir_separator_CXX=':'
 
12463
    link_all_deplibs_CXX=yes
 
12464
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12465
    runpath_var='LD_RUN_PATH'
 
12466
 
 
12467
    case $cc_basename in
 
12468
      CC*)
 
12469
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12470
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12471
        ;;
 
12472
      *)
 
12473
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12474
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12475
        ;;
 
12476
    esac
 
12477
    ;;
 
12478
  tandem*)
 
12479
    case $cc_basename in
 
12480
      NCC*)
 
12481
        # NonStop-UX NCC 3.20
 
12482
        # FIXME: insert proper C++ library support
 
12483
        ld_shlibs_CXX=no
 
12484
        ;;
 
12485
      *)
 
12486
        # FIXME: insert proper C++ library support
 
12487
        ld_shlibs_CXX=no
 
12488
        ;;
 
12489
    esac
 
12490
    ;;
 
12491
  vxworks*)
 
12492
    # FIXME: insert proper C++ library support
 
12493
    ld_shlibs_CXX=no
 
12494
    ;;
 
12495
  *)
 
12496
    # FIXME: insert proper C++ library support
 
12497
    ld_shlibs_CXX=no
 
12498
    ;;
 
12499
esac
 
12500
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12501
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12502
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12503
 
 
12504
GCC_CXX="$GXX"
 
12505
LD_CXX="$LD"
 
12506
 
 
12507
## CAVEAT EMPTOR:
 
12508
## There is no encapsulation within the following macros, do not change
 
12509
## the running order or otherwise move them around unless you know exactly
 
12510
## what you are doing...
 
12511
cat > conftest.$ac_ext <<EOF
 
12512
class Foo
 
12513
{
 
12514
public:
 
12515
  Foo (void) { a = 0; }
 
12516
private:
 
12517
  int a;
 
12518
};
 
12519
EOF
 
12520
 
 
12521
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12522
  (eval $ac_compile) 2>&5
 
12523
  ac_status=$?
 
12524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12525
  (exit $ac_status); }; then
 
12526
  # Parse the compiler output and extract the necessary
 
12527
  # objects, libraries and library flags.
 
12528
 
 
12529
  # Sentinel used to keep track of whether or not we are before
 
12530
  # the conftest object file.
 
12531
  pre_test_object_deps_done=no
 
12532
 
 
12533
  # The `*' in the case matches for architectures that use `case' in
 
12534
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12535
  # eval without this substitution.
 
12536
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12537
 
 
12538
  for p in `eval $output_verbose_link_cmd`; do
 
12539
    case $p in
 
12540
 
 
12541
    -L* | -R* | -l*)
 
12542
       # Some compilers place space between "-{L,R}" and the path.
 
12543
       # Remove the space.
 
12544
       if test $p = "-L" \
 
12545
          || test $p = "-R"; then
 
12546
         prev=$p
 
12547
         continue
 
12548
       else
 
12549
         prev=
 
12550
       fi
 
12551
 
 
12552
       if test "$pre_test_object_deps_done" = no; then
 
12553
         case $p in
 
12554
         -L* | -R*)
 
12555
           # Internal compiler library paths should come after those
 
12556
           # provided the user.  The postdeps already come after the
 
12557
           # user supplied libs so there is no need to process them.
 
12558
           if test -z "$compiler_lib_search_path_CXX"; then
 
12559
             compiler_lib_search_path_CXX="${prev}${p}"
 
12560
           else
 
12561
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12562
           fi
 
12563
           ;;
 
12564
         # The "-l" case would never come before the object being
 
12565
         # linked, so don't bother handling this case.
 
12566
         esac
 
12567
       else
 
12568
         if test -z "$postdeps_CXX"; then
 
12569
           postdeps_CXX="${prev}${p}"
 
12570
         else
 
12571
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12572
         fi
 
12573
       fi
 
12574
       ;;
 
12575
 
 
12576
    *.$objext)
 
12577
       # This assumes that the test object file only shows up
 
12578
       # once in the compiler output.
 
12579
       if test "$p" = "conftest.$objext"; then
 
12580
         pre_test_object_deps_done=yes
 
12581
         continue
 
12582
       fi
 
12583
 
 
12584
       if test "$pre_test_object_deps_done" = no; then
 
12585
         if test -z "$predep_objects_CXX"; then
 
12586
           predep_objects_CXX="$p"
 
12587
         else
 
12588
           predep_objects_CXX="$predep_objects_CXX $p"
 
12589
         fi
 
12590
       else
 
12591
         if test -z "$postdep_objects_CXX"; then
 
12592
           postdep_objects_CXX="$p"
 
12593
         else
 
12594
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12595
         fi
 
12596
       fi
 
12597
       ;;
 
12598
 
 
12599
    *) ;; # Ignore the rest.
 
12600
 
 
12601
    esac
 
12602
  done
 
12603
 
 
12604
  # Clean up.
 
12605
  rm -f a.out a.exe
 
12606
else
 
12607
  echo "libtool.m4: error: problem compiling CXX test program"
 
12608
fi
 
12609
 
 
12610
$rm -f confest.$objext
 
12611
 
 
12612
compiler_lib_search_dirs_CXX=
 
12613
if test -n "$compiler_lib_search_path_CXX"; then
 
12614
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12615
fi
 
12616
 
 
12617
# PORTME: override above test on systems where it is broken
 
12618
case $host_os in
 
12619
interix[3-9]*)
 
12620
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12621
  # hack all around it, let's just trust "g++" to DTRT.
 
12622
  predep_objects_CXX=
 
12623
  postdep_objects_CXX=
 
12624
  postdeps_CXX=
 
12625
  ;;
 
12626
 
 
12627
linux*)
 
12628
  case `$CC -V 2>&1 | sed 5q` in
 
12629
  *Sun\ C*)
 
12630
    # Sun C++ 5.9
 
12631
    #
 
12632
    # The more standards-conforming stlport4 library is
 
12633
    # incompatible with the Cstd library. Avoid specifying
 
12634
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12635
    # -library=stlport4 depends on it.
 
12636
    case " $CXX $CXXFLAGS " in
 
12637
    *" -library=stlport4 "*)
 
12638
      solaris_use_stlport4=yes
 
12639
      ;;
 
12640
    esac
 
12641
    if test "$solaris_use_stlport4" != yes; then
 
12642
      postdeps_CXX='-library=Cstd -library=Crun'
 
12643
    fi
 
12644
    ;;
 
12645
  esac
 
12646
  ;;
 
12647
 
 
12648
solaris*)
 
12649
  case $cc_basename in
 
12650
  CC*)
 
12651
    # The more standards-conforming stlport4 library is
 
12652
    # incompatible with the Cstd library. Avoid specifying
 
12653
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12654
    # -library=stlport4 depends on it.
 
12655
    case " $CXX $CXXFLAGS " in
 
12656
    *" -library=stlport4 "*)
 
12657
      solaris_use_stlport4=yes
 
12658
      ;;
 
12659
    esac
 
12660
 
 
12661
    # Adding this requires a known-good setup of shared libraries for
 
12662
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12663
    # archive will be linked into the output, leading to subtle bugs.
 
12664
    if test "$solaris_use_stlport4" != yes; then
 
12665
      postdeps_CXX='-library=Cstd -library=Crun'
 
12666
    fi
 
12667
    ;;
 
12668
  esac
 
12669
  ;;
 
12670
esac
 
12671
 
 
12672
case " $postdeps_CXX " in
 
12673
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12674
esac
 
12675
 
 
12676
lt_prog_compiler_wl_CXX=
 
12677
lt_prog_compiler_pic_CXX=
 
12678
lt_prog_compiler_static_CXX=
 
12679
 
 
12680
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12681
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12682
 
 
12683
  # C++ specific cases for pic, static, wl, etc.
 
12684
  if test "$GXX" = yes; then
 
12685
    lt_prog_compiler_wl_CXX='-Wl,'
 
12686
    lt_prog_compiler_static_CXX='-static'
 
12687
 
 
12688
    case $host_os in
 
12689
    aix*)
 
12690
      # All AIX code is PIC.
 
12691
      if test "$host_cpu" = ia64; then
 
12692
        # AIX 5 now supports IA64 processor
 
12693
        lt_prog_compiler_static_CXX='-Bstatic'
 
12694
      fi
 
12695
      ;;
 
12696
    amigaos*)
 
12697
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12698
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12699
      # like `-m68040'.
 
12700
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12701
      ;;
 
12702
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12703
      # PIC is the default for these OSes.
 
12704
      ;;
 
12705
    mingw* | cygwin* | os2* | pw32*)
 
12706
      # This hack is so that the source file can tell whether it is being
 
12707
      # built for inclusion in a dll (and should export symbols for example).
 
12708
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12709
      # (--disable-auto-import) libraries
 
12710
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12711
      ;;
 
12712
    darwin* | rhapsody*)
 
12713
      # PIC is the default on this platform
 
12714
      # Common symbols not allowed in MH_DYLIB files
 
12715
      lt_prog_compiler_pic_CXX='-fno-common'
 
12716
      ;;
 
12717
    *djgpp*)
 
12718
      # DJGPP does not support shared libraries at all
 
12719
      lt_prog_compiler_pic_CXX=
 
12720
      ;;
 
12721
    interix[3-9]*)
 
12722
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12723
      # Instead, we relocate shared libraries at runtime.
 
12724
      ;;
 
12725
    sysv4*MP*)
 
12726
      if test -d /usr/nec; then
 
12727
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12728
      fi
 
12729
      ;;
 
12730
    hpux*)
 
12731
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12732
      # not for PA HP-UX.
 
12733
      case $host_cpu in
 
12734
      hppa*64*|ia64*)
 
12735
        ;;
 
12736
      *)
 
12737
        lt_prog_compiler_pic_CXX='-fPIC'
 
12738
        ;;
 
12739
      esac
 
12740
      ;;
 
12741
    *)
 
12742
      lt_prog_compiler_pic_CXX='-fPIC'
 
12743
      ;;
 
12744
    esac
 
12745
  else
 
12746
    case $host_os in
 
12747
      aix[4-9]*)
 
12748
        # All AIX code is PIC.
 
12749
        if test "$host_cpu" = ia64; then
 
12750
          # AIX 5 now supports IA64 processor
 
12751
          lt_prog_compiler_static_CXX='-Bstatic'
 
12752
        else
 
12753
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12754
        fi
 
12755
        ;;
 
12756
      chorus*)
 
12757
        case $cc_basename in
 
12758
        cxch68*)
 
12759
          # Green Hills C++ Compiler
 
12760
          # _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"
 
12761
          ;;
 
12762
        esac
 
12763
        ;;
 
12764
       darwin*)
 
12765
         # PIC is the default on this platform
 
12766
         # Common symbols not allowed in MH_DYLIB files
 
12767
         case $cc_basename in
 
12768
           xlc*)
 
12769
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12770
           lt_prog_compiler_wl_CXX='-Wl,'
 
12771
           ;;
 
12772
         esac
 
12773
       ;;
 
12774
      dgux*)
 
12775
        case $cc_basename in
 
12776
          ec++*)
 
12777
            lt_prog_compiler_pic_CXX='-KPIC'
 
12778
            ;;
 
12779
          ghcx*)
 
12780
            # Green Hills C++ Compiler
 
12781
            lt_prog_compiler_pic_CXX='-pic'
 
12782
            ;;
 
12783
          *)
 
12784
            ;;
 
12785
        esac
 
12786
        ;;
 
12787
      freebsd* | dragonfly*)
 
12788
        # FreeBSD uses GNU C++
 
12789
        ;;
 
12790
      hpux9* | hpux10* | hpux11*)
 
12791
        case $cc_basename in
 
12792
          CC*)
 
12793
            lt_prog_compiler_wl_CXX='-Wl,'
 
12794
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12795
            if test "$host_cpu" != ia64; then
 
12796
              lt_prog_compiler_pic_CXX='+Z'
 
12797
            fi
 
12798
            ;;
 
12799
          aCC*)
 
12800
            lt_prog_compiler_wl_CXX='-Wl,'
 
12801
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12802
            case $host_cpu in
 
12803
            hppa*64*|ia64*)
 
12804
              # +Z the default
 
12805
              ;;
 
12806
            *)
 
12807
              lt_prog_compiler_pic_CXX='+Z'
 
12808
              ;;
 
12809
            esac
 
12810
            ;;
 
12811
          *)
 
12812
            ;;
 
12813
        esac
 
12814
        ;;
 
12815
      interix*)
 
12816
        # This is c89, which is MS Visual C++ (no shared libs)
 
12817
        # Anyone wants to do a port?
 
12818
        ;;
 
12819
      irix5* | irix6* | nonstopux*)
 
12820
        case $cc_basename in
 
12821
          CC*)
 
12822
            lt_prog_compiler_wl_CXX='-Wl,'
 
12823
            lt_prog_compiler_static_CXX='-non_shared'
 
12824
            # CC pic flag -KPIC is the default.
 
12825
            ;;
 
12826
          *)
 
12827
            ;;
 
12828
        esac
 
12829
        ;;
 
12830
      linux* | k*bsd*-gnu)
 
12831
        case $cc_basename in
 
12832
          KCC*)
 
12833
            # KAI C++ Compiler
 
12834
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12835
            lt_prog_compiler_pic_CXX='-fPIC'
 
12836
            ;;
 
12837
          icpc* | ecpc*)
 
12838
            # Intel C++
 
12839
            lt_prog_compiler_wl_CXX='-Wl,'
 
12840
            lt_prog_compiler_pic_CXX='-KPIC'
 
12841
            lt_prog_compiler_static_CXX='-static'
 
12842
            ;;
 
12843
          pgCC* | pgcpp*)
 
12844
            # Portland Group C++ compiler.
 
12845
            lt_prog_compiler_wl_CXX='-Wl,'
 
12846
            lt_prog_compiler_pic_CXX='-fpic'
 
12847
            lt_prog_compiler_static_CXX='-Bstatic'
 
12848
            ;;
 
12849
          cxx*)
 
12850
            # Compaq C++
 
12851
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12852
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12853
            lt_prog_compiler_pic_CXX=
 
12854
            lt_prog_compiler_static_CXX='-non_shared'
 
12855
            ;;
 
12856
          *)
 
12857
            case `$CC -V 2>&1 | sed 5q` in
 
12858
            *Sun\ C*)
 
12859
              # Sun C++ 5.9
 
12860
              lt_prog_compiler_pic_CXX='-KPIC'
 
12861
              lt_prog_compiler_static_CXX='-Bstatic'
 
12862
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12863
              ;;
 
12864
            esac
 
12865
            ;;
 
12866
        esac
 
12867
        ;;
 
12868
      lynxos*)
 
12869
        ;;
 
12870
      m88k*)
 
12871
        ;;
 
12872
      mvs*)
 
12873
        case $cc_basename in
 
12874
          cxx*)
 
12875
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12876
            ;;
 
12877
          *)
 
12878
            ;;
 
12879
        esac
 
12880
        ;;
 
12881
      netbsd* | netbsdelf*-gnu)
 
12882
        ;;
 
12883
      osf3* | osf4* | osf5*)
 
12884
        case $cc_basename in
 
12885
          KCC*)
 
12886
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12887
            ;;
 
12888
          RCC*)
 
12889
            # Rational C++ 2.4.1
 
12890
            lt_prog_compiler_pic_CXX='-pic'
 
12891
            ;;
 
12892
          cxx*)
 
12893
            # Digital/Compaq C++
 
12894
            lt_prog_compiler_wl_CXX='-Wl,'
 
12895
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12896
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12897
            lt_prog_compiler_pic_CXX=
 
12898
            lt_prog_compiler_static_CXX='-non_shared'
 
12899
            ;;
 
12900
          *)
 
12901
            ;;
 
12902
        esac
 
12903
        ;;
 
12904
      psos*)
 
12905
        ;;
 
12906
      solaris*)
 
12907
        case $cc_basename in
 
12908
          CC*)
 
12909
            # Sun C++ 4.2, 5.x and Centerline C++
 
12910
            lt_prog_compiler_pic_CXX='-KPIC'
 
12911
            lt_prog_compiler_static_CXX='-Bstatic'
 
12912
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12913
            ;;
 
12914
          gcx*)
 
12915
            # Green Hills C++ Compiler
 
12916
            lt_prog_compiler_pic_CXX='-PIC'
 
12917
            ;;
 
12918
          *)
 
12919
            ;;
 
12920
        esac
 
12921
        ;;
 
12922
      sunos4*)
 
12923
        case $cc_basename in
 
12924
          CC*)
 
12925
            # Sun C++ 4.x
 
12926
            lt_prog_compiler_pic_CXX='-pic'
 
12927
            lt_prog_compiler_static_CXX='-Bstatic'
 
12928
            ;;
 
12929
          lcc*)
 
12930
            # Lucid
 
12931
            lt_prog_compiler_pic_CXX='-pic'
 
12932
            ;;
 
12933
          *)
 
12934
            ;;
 
12935
        esac
 
12936
        ;;
 
12937
      tandem*)
 
12938
        case $cc_basename in
 
12939
          NCC*)
 
12940
            # NonStop-UX NCC 3.20
 
12941
            lt_prog_compiler_pic_CXX='-KPIC'
 
12942
            ;;
 
12943
          *)
 
12944
            ;;
 
12945
        esac
 
12946
        ;;
 
12947
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12948
        case $cc_basename in
 
12949
          CC*)
 
12950
            lt_prog_compiler_wl_CXX='-Wl,'
 
12951
            lt_prog_compiler_pic_CXX='-KPIC'
 
12952
            lt_prog_compiler_static_CXX='-Bstatic'
 
12953
            ;;
 
12954
        esac
 
12955
        ;;
 
12956
      vxworks*)
 
12957
        ;;
 
12958
      *)
 
12959
        lt_prog_compiler_can_build_shared_CXX=no
 
12960
        ;;
 
12961
    esac
 
12962
  fi
 
12963
 
 
12964
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12965
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12966
 
 
12967
#
 
12968
# Check to make sure the PIC flag actually works.
 
12969
#
 
12970
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12971
  
 
12972
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12973
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12974
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12975
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12976
else
 
12977
  lt_cv_prog_compiler_pic_works_CXX=no
 
12978
  ac_outfile=conftest.$ac_objext
 
12979
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12980
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12981
   # Insert the option either (1) after the last *FLAGS variable, or
 
12982
   # (2) before a word containing "conftest.", or (3) at the end.
 
12983
   # Note that $ac_compile itself does not contain backslashes and begins
 
12984
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12985
   # The option is referenced via a variable to avoid confusing sed.
 
12986
   lt_compile=`echo "$ac_compile" | $SED \
 
12987
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12988
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12989
   -e 's:$: $lt_compiler_flag:'`
 
12990
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
12991
   (eval "$lt_compile" 2>conftest.err)
 
12992
   ac_status=$?
 
12993
   cat conftest.err >&5
 
12994
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
12995
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12996
     # The compiler can only warn and ignore the option if not recognized
 
12997
     # So say no if there are warnings other than the usual output.
 
12998
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12999
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13000
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13001
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13002
     fi
 
13003
   fi
 
13004
   $rm conftest*
 
13005
 
 
13006
fi
 
13007
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13008
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13009
 
 
13010
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13011
    case $lt_prog_compiler_pic_CXX in
 
13012
     "" | " "*) ;;
 
13013
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13014
     esac
 
13015
else
 
13016
    lt_prog_compiler_pic_CXX=
 
13017
     lt_prog_compiler_can_build_shared_CXX=no
 
13018
fi
 
13019
 
 
13020
fi
 
13021
case $host_os in
 
13022
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13023
  *djgpp*)
 
13024
    lt_prog_compiler_pic_CXX=
 
13025
    ;;
 
13026
  *)
 
13027
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13028
    ;;
 
13029
esac
 
13030
 
 
13031
#
 
13032
# Check to make sure the static flag actually works.
 
13033
#
 
13034
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13035
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13036
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13037
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13039
else
 
13040
  lt_cv_prog_compiler_static_works_CXX=no
 
13041
   save_LDFLAGS="$LDFLAGS"
 
13042
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13043
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13044
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13045
     # The linker can only warn and ignore the option if not recognized
 
13046
     # So say no if there are warnings
 
13047
     if test -s conftest.err; then
 
13048
       # Append any errors to the config.log.
 
13049
       cat conftest.err 1>&5
 
13050
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13051
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13052
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13053
         lt_cv_prog_compiler_static_works_CXX=yes
 
13054
       fi
 
13055
     else
 
13056
       lt_cv_prog_compiler_static_works_CXX=yes
 
13057
     fi
 
13058
   fi
 
13059
   $rm -r conftest*
 
13060
   LDFLAGS="$save_LDFLAGS"
 
13061
 
 
13062
fi
 
13063
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13064
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13065
 
 
13066
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13067
    :
 
13068
else
 
13069
    lt_prog_compiler_static_CXX=
 
13070
fi
 
13071
 
 
13072
 
 
13073
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13074
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13075
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13077
else
 
13078
  lt_cv_prog_compiler_c_o_CXX=no
 
13079
   $rm -r conftest 2>/dev/null
 
13080
   mkdir conftest
 
13081
   cd conftest
 
13082
   mkdir out
 
13083
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13084
 
 
13085
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13086
   # Insert the option either (1) after the last *FLAGS variable, or
 
13087
   # (2) before a word containing "conftest.", or (3) at the end.
 
13088
   # Note that $ac_compile itself does not contain backslashes and begins
 
13089
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13090
   lt_compile=`echo "$ac_compile" | $SED \
 
13091
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13092
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13093
   -e 's:$: $lt_compiler_flag:'`
 
13094
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13095
   (eval "$lt_compile" 2>out/conftest.err)
 
13096
   ac_status=$?
 
13097
   cat out/conftest.err >&5
 
13098
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13099
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13100
   then
 
13101
     # The compiler can only warn and ignore the option if not recognized
 
13102
     # So say no if there are warnings
 
13103
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13104
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13105
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13106
       lt_cv_prog_compiler_c_o_CXX=yes
 
13107
     fi
 
13108
   fi
 
13109
   chmod u+w . 2>&5
 
13110
   $rm conftest*
 
13111
   # SGI C++ compiler will create directory out/ii_files/ for
 
13112
   # template instantiation
 
13113
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13114
   $rm out/* && rmdir out
 
13115
   cd ..
 
13116
   rmdir conftest
 
13117
   $rm conftest*
 
13118
 
 
13119
fi
 
13120
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13121
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13122
 
 
13123
 
 
13124
hard_links="nottested"
 
13125
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13126
  # do not overwrite the value of need_locks provided by the user
 
13127
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13128
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13129
  hard_links=yes
 
13130
  $rm conftest*
 
13131
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13132
  touch conftest.a
 
13133
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13134
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13135
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13136
echo "${ECHO_T}$hard_links" >&6; }
 
13137
  if test "$hard_links" = no; then
 
13138
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13139
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13140
    need_locks=warn
 
13141
  fi
 
13142
else
 
13143
  need_locks=no
 
13144
fi
 
13145
 
 
13146
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13147
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13148
 
 
13149
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13150
  case $host_os in
 
13151
  aix[4-9]*)
 
13152
    # If we're using GNU nm, then we don't want the "-C" option.
 
13153
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13154
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13155
      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'
 
13156
    else
 
13157
      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'
 
13158
    fi
 
13159
    ;;
 
13160
  pw32*)
 
13161
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13162
  ;;
 
13163
  cygwin* | mingw*)
 
13164
    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'
 
13165
  ;;
 
13166
  linux* | k*bsd*-gnu)
 
13167
    link_all_deplibs_CXX=no
 
13168
  ;;
 
13169
  *)
 
13170
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13171
  ;;
 
13172
  esac
 
13173
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13174
 
 
13175
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13176
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13177
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13178
 
 
13179
#
 
13180
# Do we need to explicitly link libc?
 
13181
#
 
13182
case "x$archive_cmds_need_lc_CXX" in
 
13183
x|xyes)
 
13184
  # Assume -lc should be added
 
13185
  archive_cmds_need_lc_CXX=yes
 
13186
 
 
13187
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13188
    case $archive_cmds_CXX in
 
13189
    *'~'*)
 
13190
      # FIXME: we may have to deal with multi-command sequences.
 
13191
      ;;
 
13192
    '$CC '*)
 
13193
      # Test whether the compiler implicitly links with -lc since on some
 
13194
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13195
      # to ld, don't add -lc before -lgcc.
 
13196
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13197
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13198
      $rm conftest*
 
13199
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13200
 
 
13201
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13202
  (eval $ac_compile) 2>&5
 
13203
  ac_status=$?
 
13204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13205
  (exit $ac_status); } 2>conftest.err; then
 
13206
        soname=conftest
 
13207
        lib=conftest
 
13208
        libobjs=conftest.$ac_objext
 
13209
        deplibs=
 
13210
        wl=$lt_prog_compiler_wl_CXX
 
13211
        pic_flag=$lt_prog_compiler_pic_CXX
 
13212
        compiler_flags=-v
 
13213
        linker_flags=-v
 
13214
        verstring=
 
13215
        output_objdir=.
 
13216
        libname=conftest
 
13217
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13218
        allow_undefined_flag_CXX=
 
13219
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13220
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13221
  ac_status=$?
 
13222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13223
  (exit $ac_status); }
 
13224
        then
 
13225
          archive_cmds_need_lc_CXX=no
 
13226
        else
 
13227
          archive_cmds_need_lc_CXX=yes
 
13228
        fi
 
13229
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13230
      else
 
13231
        cat conftest.err 1>&5
 
13232
      fi
 
13233
      $rm conftest*
 
13234
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13235
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13236
      ;;
 
13237
    esac
 
13238
  fi
 
13239
  ;;
 
13240
esac
 
13241
 
 
13242
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13243
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13244
library_names_spec=
 
13245
libname_spec='lib$name'
 
13246
soname_spec=
 
13247
shrext_cmds=".so"
 
13248
postinstall_cmds=
 
13249
postuninstall_cmds=
 
13250
finish_cmds=
 
13251
finish_eval=
 
13252
shlibpath_var=
 
13253
shlibpath_overrides_runpath=unknown
 
13254
version_type=none
 
13255
dynamic_linker="$host_os ld.so"
 
13256
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13257
 
 
13258
need_lib_prefix=unknown
 
13259
hardcode_into_libs=no
 
13260
 
 
13261
# when you set need_version to no, make sure it does not cause -set_version
 
13262
# flags to be left without arguments
 
13263
need_version=unknown
 
13264
 
 
13265
case $host_os in
 
13266
aix3*)
 
13267
  version_type=linux
 
13268
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13269
  shlibpath_var=LIBPATH
 
13270
 
 
13271
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13272
  soname_spec='${libname}${release}${shared_ext}$major'
 
13273
  ;;
 
13274
 
 
13275
aix[4-9]*)
 
13276
  version_type=linux
 
13277
  need_lib_prefix=no
 
13278
  need_version=no
 
13279
  hardcode_into_libs=yes
 
13280
  if test "$host_cpu" = ia64; then
 
13281
    # AIX 5 supports IA64
 
13282
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13283
    shlibpath_var=LD_LIBRARY_PATH
 
13284
  else
 
13285
    # With GCC up to 2.95.x, collect2 would create an import file
 
13286
    # for dependence libraries.  The import file would start with
 
13287
    # the line `#! .'.  This would cause the generated library to
 
13288
    # depend on `.', always an invalid library.  This was fixed in
 
13289
    # development snapshots of GCC prior to 3.0.
 
13290
    case $host_os in
 
13291
      aix4 | aix4.[01] | aix4.[01].*)
 
13292
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13293
           echo ' yes '
 
13294
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13295
        :
 
13296
      else
 
13297
        can_build_shared=no
 
13298
      fi
 
13299
      ;;
 
13300
    esac
 
13301
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13302
    # soname into executable. Probably we can add versioning support to
 
13303
    # collect2, so additional links can be useful in future.
 
13304
    if test "$aix_use_runtimelinking" = yes; then
 
13305
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13306
      # instead of lib<name>.a to let people know that these are not
 
13307
      # typical AIX shared libraries.
 
13308
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13309
    else
 
13310
      # We preserve .a as extension for shared libraries through AIX4.2
 
13311
      # and later when we are not doing run time linking.
 
13312
      library_names_spec='${libname}${release}.a $libname.a'
 
13313
      soname_spec='${libname}${release}${shared_ext}$major'
 
13314
    fi
 
13315
    shlibpath_var=LIBPATH
 
13316
  fi
 
13317
  ;;
 
13318
 
 
13319
amigaos*)
 
13320
  library_names_spec='$libname.ixlibrary $libname.a'
 
13321
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13322
  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'
 
13323
  ;;
 
13324
 
 
13325
beos*)
 
13326
  library_names_spec='${libname}${shared_ext}'
 
13327
  dynamic_linker="$host_os ld.so"
 
13328
  shlibpath_var=LIBRARY_PATH
 
13329
  ;;
 
13330
 
 
13331
bsdi[45]*)
 
13332
  version_type=linux
 
13333
  need_version=no
 
13334
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13335
  soname_spec='${libname}${release}${shared_ext}$major'
 
13336
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13337
  shlibpath_var=LD_LIBRARY_PATH
 
13338
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13339
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13340
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13341
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13342
  # libtool to hard-code these into programs
 
13343
  ;;
 
13344
 
 
13345
cygwin* | mingw* | pw32*)
 
13346
  version_type=windows
 
13347
  shrext_cmds=".dll"
 
13348
  need_version=no
 
13349
  need_lib_prefix=no
 
13350
 
 
13351
  case $GCC,$host_os in
 
13352
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13353
    library_names_spec='$libname.dll.a'
 
13354
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13355
    postinstall_cmds='base_file=`basename \${file}`~
 
13356
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13357
      dldir=$destdir/`dirname \$dlpath`~
 
13358
      test -d \$dldir || mkdir -p \$dldir~
 
13359
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13360
      chmod a+x \$dldir/$dlname'
 
13361
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13362
      dlpath=$dir/\$dldll~
 
13363
       $rm \$dlpath'
 
13364
    shlibpath_overrides_runpath=yes
 
13365
 
 
13366
    case $host_os in
 
13367
    cygwin*)
 
13368
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13369
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13370
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13371
      ;;
 
13372
    mingw*)
 
13373
      # MinGW DLLs use traditional 'lib' prefix
 
13374
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13375
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13376
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13377
        # It is most probably a Windows format PATH printed by
 
13378
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13379
        # path with ; separators, and with drive letters. We can handle the
 
13380
        # drive letters (cygwin fileutils understands them), so leave them,
 
13381
        # especially as we might pass files found there to a mingw objdump,
 
13382
        # which wouldn't understand a cygwinified path. Ahh.
 
13383
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13384
      else
 
13385
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13386
      fi
 
13387
      ;;
 
13388
    pw32*)
 
13389
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13390
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13391
      ;;
 
13392
    esac
 
13393
    ;;
 
13394
 
 
13395
  *)
 
13396
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13397
    ;;
 
13398
  esac
 
13399
  dynamic_linker='Win32 ld.exe'
 
13400
  # FIXME: first we should search . and the directory the executable is in
 
13401
  shlibpath_var=PATH
 
13402
  ;;
 
13403
 
 
13404
darwin* | rhapsody*)
 
13405
  dynamic_linker="$host_os dyld"
 
13406
  version_type=darwin
 
13407
  need_lib_prefix=no
 
13408
  need_version=no
 
13409
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13410
  soname_spec='${libname}${release}${major}$shared_ext'
 
13411
  shlibpath_overrides_runpath=yes
 
13412
  shlibpath_var=DYLD_LIBRARY_PATH
 
13413
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13414
   
 
13415
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13416
  ;;
 
13417
 
 
13418
dgux*)
 
13419
  version_type=linux
 
13420
  need_lib_prefix=no
 
13421
  need_version=no
 
13422
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13423
  soname_spec='${libname}${release}${shared_ext}$major'
 
13424
  shlibpath_var=LD_LIBRARY_PATH
 
13425
  ;;
 
13426
 
 
13427
freebsd1*)
 
13428
  dynamic_linker=no
 
13429
  ;;
 
13430
 
 
13431
freebsd* | dragonfly*)
 
13432
  # DragonFly does not have aout.  When/if they implement a new
 
13433
  # versioning mechanism, adjust this.
 
13434
  if test -x /usr/bin/objformat; then
 
13435
    objformat=`/usr/bin/objformat`
 
13436
  else
 
13437
    case $host_os in
 
13438
    freebsd[123]*) objformat=aout ;;
 
13439
    *) objformat=elf ;;
 
13440
    esac
 
13441
  fi
 
13442
  version_type=freebsd-$objformat
 
13443
  case $version_type in
 
13444
    freebsd-elf*)
 
13445
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13446
      need_version=no
 
13447
      need_lib_prefix=no
 
13448
      ;;
 
13449
    freebsd-*)
 
13450
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13451
      need_version=yes
 
13452
      ;;
 
13453
  esac
 
13454
  shlibpath_var=LD_LIBRARY_PATH
 
13455
  case $host_os in
 
13456
  freebsd2*)
 
13457
    shlibpath_overrides_runpath=yes
 
13458
    ;;
 
13459
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13460
    shlibpath_overrides_runpath=yes
 
13461
    hardcode_into_libs=yes
 
13462
    ;;
 
13463
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13464
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13465
    shlibpath_overrides_runpath=no
 
13466
    hardcode_into_libs=yes
 
13467
    ;;
 
13468
  *) # from 4.6 on, and DragonFly
 
13469
    shlibpath_overrides_runpath=yes
 
13470
    hardcode_into_libs=yes
 
13471
    ;;
 
13472
  esac
 
13473
  ;;
 
13474
 
 
13475
gnu*)
 
13476
  version_type=linux
 
13477
  need_lib_prefix=no
 
13478
  need_version=no
 
13479
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13480
  soname_spec='${libname}${release}${shared_ext}$major'
 
13481
  shlibpath_var=LD_LIBRARY_PATH
 
13482
  hardcode_into_libs=yes
 
13483
  ;;
 
13484
 
 
13485
hpux9* | hpux10* | hpux11*)
 
13486
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13487
  # link against other versions.
 
13488
  version_type=sunos
 
13489
  need_lib_prefix=no
 
13490
  need_version=no
 
13491
  case $host_cpu in
 
13492
  ia64*)
 
13493
    shrext_cmds='.so'
 
13494
    hardcode_into_libs=yes
 
13495
    dynamic_linker="$host_os dld.so"
 
13496
    shlibpath_var=LD_LIBRARY_PATH
 
13497
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13498
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13499
    soname_spec='${libname}${release}${shared_ext}$major'
 
13500
    if test "X$HPUX_IA64_MODE" = X32; then
 
13501
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13502
    else
 
13503
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13504
    fi
 
13505
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13506
    ;;
 
13507
   hppa*64*)
 
13508
     shrext_cmds='.sl'
 
13509
     hardcode_into_libs=yes
 
13510
     dynamic_linker="$host_os dld.sl"
 
13511
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13512
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13513
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13514
     soname_spec='${libname}${release}${shared_ext}$major'
 
13515
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13516
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13517
     ;;
 
13518
   *)
 
13519
    shrext_cmds='.sl'
 
13520
    dynamic_linker="$host_os dld.sl"
 
13521
    shlibpath_var=SHLIB_PATH
 
13522
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13523
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13524
    soname_spec='${libname}${release}${shared_ext}$major'
 
13525
    ;;
 
13526
  esac
 
13527
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13528
  postinstall_cmds='chmod 555 $lib'
 
13529
  ;;
 
13530
 
 
13531
interix[3-9]*)
 
13532
  version_type=linux
 
13533
  need_lib_prefix=no
 
13534
  need_version=no
 
13535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13536
  soname_spec='${libname}${release}${shared_ext}$major'
 
13537
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13538
  shlibpath_var=LD_LIBRARY_PATH
 
13539
  shlibpath_overrides_runpath=no
 
13540
  hardcode_into_libs=yes
 
13541
  ;;
 
13542
 
 
13543
irix5* | irix6* | nonstopux*)
 
13544
  case $host_os in
 
13545
    nonstopux*) version_type=nonstopux ;;
 
13546
    *)
 
13547
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13548
                version_type=linux
 
13549
        else
 
13550
                version_type=irix
 
13551
        fi ;;
 
13552
  esac
 
13553
  need_lib_prefix=no
 
13554
  need_version=no
 
13555
  soname_spec='${libname}${release}${shared_ext}$major'
 
13556
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13557
  case $host_os in
 
13558
  irix5* | nonstopux*)
 
13559
    libsuff= shlibsuff=
 
13560
    ;;
 
13561
  *)
 
13562
    case $LD in # libtool.m4 will add one of these switches to LD
 
13563
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13564
      libsuff= shlibsuff= libmagic=32-bit;;
 
13565
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13566
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13567
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13568
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13569
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13570
    esac
 
13571
    ;;
 
13572
  esac
 
13573
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13574
  shlibpath_overrides_runpath=no
 
13575
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13576
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13577
  hardcode_into_libs=yes
 
13578
  ;;
 
13579
 
 
13580
# No shared lib support for Linux oldld, aout, or coff.
 
13581
linux*oldld* | linux*aout* | linux*coff*)
 
13582
  dynamic_linker=no
 
13583
  ;;
 
13584
 
 
13585
# This must be Linux ELF.
 
13586
linux* | k*bsd*-gnu)
 
13587
  version_type=linux
 
13588
  need_lib_prefix=no
 
13589
  need_version=no
 
13590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13591
  soname_spec='${libname}${release}${shared_ext}$major'
 
13592
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13593
  shlibpath_var=LD_LIBRARY_PATH
 
13594
  shlibpath_overrides_runpath=no
 
13595
  # This implies no fast_install, which is unacceptable.
 
13596
  # Some rework will be needed to allow for fast_install
 
13597
  # before this can be enabled.
 
13598
  hardcode_into_libs=yes
 
13599
 
 
13600
  # Append ld.so.conf contents to the search path
 
13601
  if test -f /etc/ld.so.conf; then
 
13602
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13603
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13604
  fi
 
13605
 
 
13606
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13607
  # powerpc, because MkLinux only supported shared libraries with the
 
13608
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13609
  # most powerpc-linux boxes support dynamic linking these days and
 
13610
  # people can always --disable-shared, the test was removed, and we
 
13611
  # assume the GNU/Linux dynamic linker is in use.
 
13612
  dynamic_linker='GNU/Linux ld.so'
 
13613
  ;;
 
13614
 
 
13615
netbsdelf*-gnu)
 
13616
  version_type=linux
 
13617
  need_lib_prefix=no
 
13618
  need_version=no
 
13619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13620
  soname_spec='${libname}${release}${shared_ext}$major'
 
13621
  shlibpath_var=LD_LIBRARY_PATH
 
13622
  shlibpath_overrides_runpath=no
 
13623
  hardcode_into_libs=yes
 
13624
  dynamic_linker='NetBSD ld.elf_so'
 
13625
  ;;
 
13626
 
 
13627
netbsd*)
 
13628
  version_type=sunos
 
13629
  need_lib_prefix=no
 
13630
  need_version=no
 
13631
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13632
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13633
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13634
    dynamic_linker='NetBSD (a.out) ld.so'
 
13635
  else
 
13636
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13637
    soname_spec='${libname}${release}${shared_ext}$major'
 
13638
    dynamic_linker='NetBSD ld.elf_so'
 
13639
  fi
 
13640
  shlibpath_var=LD_LIBRARY_PATH
 
13641
  shlibpath_overrides_runpath=yes
 
13642
  hardcode_into_libs=yes
 
13643
  ;;
 
13644
 
 
13645
newsos6)
 
13646
  version_type=linux
 
13647
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13648
  shlibpath_var=LD_LIBRARY_PATH
 
13649
  shlibpath_overrides_runpath=yes
 
13650
  ;;
 
13651
 
 
13652
nto-qnx*)
 
13653
  version_type=linux
 
13654
  need_lib_prefix=no
 
13655
  need_version=no
 
13656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13657
  soname_spec='${libname}${release}${shared_ext}$major'
 
13658
  shlibpath_var=LD_LIBRARY_PATH
 
13659
  shlibpath_overrides_runpath=yes
 
13660
  ;;
 
13661
 
 
13662
openbsd*)
 
13663
  version_type=sunos
 
13664
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13665
  need_lib_prefix=no
 
13666
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13667
  case $host_os in
 
13668
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13669
    *)                         need_version=no  ;;
 
13670
  esac
 
13671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13672
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13673
  shlibpath_var=LD_LIBRARY_PATH
 
13674
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13675
    case $host_os in
 
13676
      openbsd2.[89] | openbsd2.[89].*)
 
13677
        shlibpath_overrides_runpath=no
 
13678
        ;;
 
13679
      *)
 
13680
        shlibpath_overrides_runpath=yes
 
13681
        ;;
 
13682
      esac
 
13683
  else
 
13684
    shlibpath_overrides_runpath=yes
 
13685
  fi
 
13686
  ;;
 
13687
 
 
13688
os2*)
 
13689
  libname_spec='$name'
 
13690
  shrext_cmds=".dll"
 
13691
  need_lib_prefix=no
 
13692
  library_names_spec='$libname${shared_ext} $libname.a'
 
13693
  dynamic_linker='OS/2 ld.exe'
 
13694
  shlibpath_var=LIBPATH
 
13695
  ;;
 
13696
 
 
13697
osf3* | osf4* | osf5*)
 
13698
  version_type=osf
 
13699
  need_lib_prefix=no
 
13700
  need_version=no
 
13701
  soname_spec='${libname}${release}${shared_ext}$major'
 
13702
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13703
  shlibpath_var=LD_LIBRARY_PATH
 
13704
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13705
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13706
  ;;
 
13707
 
 
13708
rdos*)
 
13709
  dynamic_linker=no
 
13710
  ;;
 
13711
 
 
13712
solaris*)
 
13713
  version_type=linux
 
13714
  need_lib_prefix=no
 
13715
  need_version=no
 
13716
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13717
  soname_spec='${libname}${release}${shared_ext}$major'
 
13718
  shlibpath_var=LD_LIBRARY_PATH
 
13719
  shlibpath_overrides_runpath=yes
 
13720
  hardcode_into_libs=yes
 
13721
  # ldd complains unless libraries are executable
 
13722
  postinstall_cmds='chmod +x $lib'
 
13723
  ;;
 
13724
 
 
13725
sunos4*)
 
13726
  version_type=sunos
 
13727
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13728
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13729
  shlibpath_var=LD_LIBRARY_PATH
 
13730
  shlibpath_overrides_runpath=yes
 
13731
  if test "$with_gnu_ld" = yes; then
 
13732
    need_lib_prefix=no
 
13733
  fi
 
13734
  need_version=yes
 
13735
  ;;
 
13736
 
 
13737
sysv4 | sysv4.3*)
 
13738
  version_type=linux
 
13739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13740
  soname_spec='${libname}${release}${shared_ext}$major'
 
13741
  shlibpath_var=LD_LIBRARY_PATH
 
13742
  case $host_vendor in
 
13743
    sni)
 
13744
      shlibpath_overrides_runpath=no
 
13745
      need_lib_prefix=no
 
13746
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13747
      runpath_var=LD_RUN_PATH
 
13748
      ;;
 
13749
    siemens)
 
13750
      need_lib_prefix=no
 
13751
      ;;
 
13752
    motorola)
 
13753
      need_lib_prefix=no
 
13754
      need_version=no
 
13755
      shlibpath_overrides_runpath=no
 
13756
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13757
      ;;
 
13758
  esac
 
13759
  ;;
 
13760
 
 
13761
sysv4*MP*)
 
13762
  if test -d /usr/nec ;then
 
13763
    version_type=linux
 
13764
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13765
    soname_spec='$libname${shared_ext}.$major'
 
13766
    shlibpath_var=LD_LIBRARY_PATH
 
13767
  fi
 
13768
  ;;
 
13769
 
 
13770
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13771
  version_type=freebsd-elf
 
13772
  need_lib_prefix=no
 
13773
  need_version=no
 
13774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13775
  soname_spec='${libname}${release}${shared_ext}$major'
 
13776
  shlibpath_var=LD_LIBRARY_PATH
 
13777
  hardcode_into_libs=yes
 
13778
  if test "$with_gnu_ld" = yes; then
 
13779
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13780
    shlibpath_overrides_runpath=no
 
13781
  else
 
13782
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13783
    shlibpath_overrides_runpath=yes
 
13784
    case $host_os in
 
13785
      sco3.2v5*)
 
13786
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13787
        ;;
 
13788
    esac
 
13789
  fi
 
13790
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13791
  ;;
 
13792
 
 
13793
uts4*)
 
13794
  version_type=linux
 
13795
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13796
  soname_spec='${libname}${release}${shared_ext}$major'
 
13797
  shlibpath_var=LD_LIBRARY_PATH
 
13798
  ;;
 
13799
 
 
13800
*)
 
13801
  dynamic_linker=no
 
13802
  ;;
 
13803
esac
 
13804
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13805
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13806
test "$dynamic_linker" = no && can_build_shared=no
 
13807
 
 
13808
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13810
else
 
13811
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13812
fi
 
13813
 
 
13814
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13815
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13817
else
 
13818
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13819
fi
 
13820
 
 
13821
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13822
 
 
13823
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13824
if test "$GCC" = yes; then
 
13825
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13826
fi
 
13827
 
 
13828
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13829
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13830
hardcode_action_CXX=
 
13831
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13832
   test -n "$runpath_var_CXX" || \
 
13833
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13834
 
 
13835
  # We can hardcode non-existant directories.
 
13836
  if test "$hardcode_direct_CXX" != no &&
 
13837
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13838
     # have to relink, otherwise we might link with an installed library
 
13839
     # when we should be linking with a yet-to-be-installed one
 
13840
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13841
     test "$hardcode_minus_L_CXX" != no; then
 
13842
    # Linking always hardcodes the temporary library directory.
 
13843
    hardcode_action_CXX=relink
 
13844
  else
 
13845
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13846
    hardcode_action_CXX=immediate
 
13847
  fi
 
13848
else
 
13849
  # We cannot hardcode anything, or else we can only hardcode existing
 
13850
  # directories.
 
13851
  hardcode_action_CXX=unsupported
 
13852
fi
 
13853
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13854
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13855
 
 
13856
if test "$hardcode_action_CXX" = relink; then
 
13857
  # Fast installation is not supported
 
13858
  enable_fast_install=no
 
13859
elif test "$shlibpath_overrides_runpath" = yes ||
 
13860
     test "$enable_shared" = no; then
 
13861
  # Fast installation is not necessary
 
13862
  enable_fast_install=needless
 
13863
fi
 
13864
 
 
13865
 
 
13866
# The else clause should only fire when bootstrapping the
 
13867
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13868
# with your package, and you will get complaints that there are
 
13869
# no rules to generate ltmain.sh.
 
13870
if test -f "$ltmain"; then
 
13871
  # See if we are running on zsh, and set the options which allow our commands through
 
13872
  # without removal of \ escapes.
 
13873
  if test -n "${ZSH_VERSION+set}" ; then
 
13874
    setopt NO_GLOB_SUBST
 
13875
  fi
 
13876
  # Now quote all the things that may contain metacharacters while being
 
13877
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13878
  # variables and quote the copies for generation of the libtool script.
 
13879
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13880
    SED SHELL STRIP \
 
13881
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13882
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13883
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13884
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13885
    lt_cv_sys_global_symbol_to_c_name_address \
 
13886
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13887
    old_postinstall_cmds old_postuninstall_cmds \
 
13888
    compiler_CXX \
 
13889
    CC_CXX \
 
13890
    LD_CXX \
 
13891
    lt_prog_compiler_wl_CXX \
 
13892
    lt_prog_compiler_pic_CXX \
 
13893
    lt_prog_compiler_static_CXX \
 
13894
    lt_prog_compiler_no_builtin_flag_CXX \
 
13895
    export_dynamic_flag_spec_CXX \
 
13896
    thread_safe_flag_spec_CXX \
 
13897
    whole_archive_flag_spec_CXX \
 
13898
    enable_shared_with_static_runtimes_CXX \
 
13899
    old_archive_cmds_CXX \
 
13900
    old_archive_from_new_cmds_CXX \
 
13901
    predep_objects_CXX \
 
13902
    postdep_objects_CXX \
 
13903
    predeps_CXX \
 
13904
    postdeps_CXX \
 
13905
    compiler_lib_search_path_CXX \
 
13906
    compiler_lib_search_dirs_CXX \
 
13907
    archive_cmds_CXX \
 
13908
    archive_expsym_cmds_CXX \
 
13909
    postinstall_cmds_CXX \
 
13910
    postuninstall_cmds_CXX \
 
13911
    old_archive_from_expsyms_cmds_CXX \
 
13912
    allow_undefined_flag_CXX \
 
13913
    no_undefined_flag_CXX \
 
13914
    export_symbols_cmds_CXX \
 
13915
    hardcode_libdir_flag_spec_CXX \
 
13916
    hardcode_libdir_flag_spec_ld_CXX \
 
13917
    hardcode_libdir_separator_CXX \
 
13918
    hardcode_automatic_CXX \
 
13919
    module_cmds_CXX \
 
13920
    module_expsym_cmds_CXX \
 
13921
    lt_cv_prog_compiler_c_o_CXX \
 
13922
    fix_srcfile_path_CXX \
 
13923
    exclude_expsyms_CXX \
 
13924
    include_expsyms_CXX; do
 
13925
 
 
13926
    case $var in
 
13927
    old_archive_cmds_CXX | \
 
13928
    old_archive_from_new_cmds_CXX | \
 
13929
    archive_cmds_CXX | \
 
13930
    archive_expsym_cmds_CXX | \
 
13931
    module_cmds_CXX | \
 
13932
    module_expsym_cmds_CXX | \
 
13933
    old_archive_from_expsyms_cmds_CXX | \
 
13934
    export_symbols_cmds_CXX | \
 
13935
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13936
    postinstall_cmds | postuninstall_cmds | \
 
13937
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13938
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13939
      # Double-quote double-evaled strings.
 
13940
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13941
      ;;
 
13942
    *)
 
13943
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13944
      ;;
 
13945
    esac
 
13946
  done
 
13947
 
 
13948
  case $lt_echo in
 
13949
  *'\$0 --fallback-echo"')
 
13950
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13951
    ;;
 
13952
  esac
 
13953
 
 
13954
cfgfile="$ofile"
 
13955
 
 
13956
  cat <<__EOF__ >> "$cfgfile"
 
13957
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13958
 
 
13959
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13960
 
 
13961
# Shell to use when invoking shell scripts.
 
13962
SHELL=$lt_SHELL
 
13963
 
 
13964
# Whether or not to build shared libraries.
 
13965
build_libtool_libs=$enable_shared
 
13966
 
 
13967
# Whether or not to build static libraries.
 
13968
build_old_libs=$enable_static
 
13969
 
 
13970
# Whether or not to add -lc for building shared libraries.
 
13971
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13972
 
 
13973
# Whether or not to disallow shared libs when runtime libs are static
 
13974
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13975
 
 
13976
# Whether or not to optimize for fast installation.
 
13977
fast_install=$enable_fast_install
 
13978
 
 
13979
# The host system.
 
13980
host_alias=$host_alias
 
13981
host=$host
 
13982
host_os=$host_os
 
13983
 
 
13984
# The build system.
 
13985
build_alias=$build_alias
 
13986
build=$build
 
13987
build_os=$build_os
 
13988
 
 
13989
# An echo program that does not interpret backslashes.
 
13990
echo=$lt_echo
 
13991
 
 
13992
# The archiver.
 
13993
AR=$lt_AR
 
13994
AR_FLAGS=$lt_AR_FLAGS
 
13995
 
 
13996
# A C compiler.
 
13997
LTCC=$lt_LTCC
 
13998
 
 
13999
# LTCC compiler flags.
 
14000
LTCFLAGS=$lt_LTCFLAGS
 
14001
 
 
14002
# A language-specific compiler.
 
14003
CC=$lt_compiler_CXX
 
14004
 
 
14005
# Is the compiler the GNU C compiler?
 
14006
with_gcc=$GCC_CXX
 
14007
 
 
14008
# An ERE matcher.
 
14009
EGREP=$lt_EGREP
 
14010
 
 
14011
# The linker used to build libraries.
 
14012
LD=$lt_LD_CXX
 
14013
 
 
14014
# Whether we need hard or soft links.
 
14015
LN_S=$lt_LN_S
 
14016
 
 
14017
# A BSD-compatible nm program.
 
14018
NM=$lt_NM
 
14019
 
 
14020
# A symbol stripping program
 
14021
STRIP=$lt_STRIP
 
14022
 
 
14023
# Used to examine libraries when file_magic_cmd begins "file"
 
14024
MAGIC_CMD=$MAGIC_CMD
 
14025
 
 
14026
# Used on cygwin: DLL creation program.
 
14027
DLLTOOL="$DLLTOOL"
 
14028
 
 
14029
# Used on cygwin: object dumper.
 
14030
OBJDUMP="$OBJDUMP"
 
14031
 
 
14032
# Used on cygwin: assembler.
 
14033
AS="$AS"
 
14034
 
 
14035
# The name of the directory that contains temporary libtool files.
 
14036
objdir=$objdir
 
14037
 
 
14038
# How to create reloadable object files.
 
14039
reload_flag=$lt_reload_flag
 
14040
reload_cmds=$lt_reload_cmds
 
14041
 
 
14042
# How to pass a linker flag through the compiler.
 
14043
wl=$lt_lt_prog_compiler_wl_CXX
 
14044
 
 
14045
# Object file suffix (normally "o").
 
14046
objext="$ac_objext"
 
14047
 
 
14048
# Old archive suffix (normally "a").
 
14049
libext="$libext"
 
14050
 
 
14051
# Shared library suffix (normally ".so").
 
14052
shrext_cmds='$shrext_cmds'
 
14053
 
 
14054
# Executable file suffix (normally "").
 
14055
exeext="$exeext"
 
14056
 
 
14057
# Additional compiler flags for building library objects.
 
14058
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14059
pic_mode=$pic_mode
 
14060
 
 
14061
# What is the maximum length of a command?
 
14062
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14063
 
 
14064
# Does compiler simultaneously support -c and -o options?
 
14065
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14066
 
 
14067
# Must we lock files when doing compilation?
 
14068
need_locks=$lt_need_locks
 
14069
 
 
14070
# Do we need the lib prefix for modules?
 
14071
need_lib_prefix=$need_lib_prefix
 
14072
 
 
14073
# Do we need a version for libraries?
 
14074
need_version=$need_version
 
14075
 
 
14076
# Whether dlopen is supported.
 
14077
dlopen_support=$enable_dlopen
 
14078
 
 
14079
# Whether dlopen of programs is supported.
 
14080
dlopen_self=$enable_dlopen_self
 
14081
 
 
14082
# Whether dlopen of statically linked programs is supported.
 
14083
dlopen_self_static=$enable_dlopen_self_static
 
14084
 
 
14085
# Compiler flag to prevent dynamic linking.
 
14086
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14087
 
 
14088
# Compiler flag to turn off builtin functions.
 
14089
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14090
 
 
14091
# Compiler flag to allow reflexive dlopens.
 
14092
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14093
 
 
14094
# Compiler flag to generate shared objects directly from archives.
 
14095
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14096
 
 
14097
# Compiler flag to generate thread-safe objects.
 
14098
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14099
 
 
14100
# Library versioning type.
 
14101
version_type=$version_type
 
14102
 
 
14103
# Format of library name prefix.
 
14104
libname_spec=$lt_libname_spec
 
14105
 
 
14106
# List of archive names.  First name is the real one, the rest are links.
 
14107
# The last name is the one that the linker finds with -lNAME.
 
14108
library_names_spec=$lt_library_names_spec
 
14109
 
 
14110
# The coded name of the library, if different from the real name.
 
14111
soname_spec=$lt_soname_spec
 
14112
 
 
14113
# Commands used to build and install an old-style archive.
 
14114
RANLIB=$lt_RANLIB
 
14115
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14116
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14117
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14118
 
 
14119
# Create an old-style archive from a shared archive.
 
14120
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14121
 
 
14122
# Create a temporary old-style archive to link instead of a shared archive.
 
14123
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14124
 
 
14125
# Commands used to build and install a shared archive.
 
14126
archive_cmds=$lt_archive_cmds_CXX
 
14127
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14128
postinstall_cmds=$lt_postinstall_cmds
 
14129
postuninstall_cmds=$lt_postuninstall_cmds
 
14130
 
 
14131
# Commands used to build a loadable module (assumed same as above if empty)
 
14132
module_cmds=$lt_module_cmds_CXX
 
14133
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14134
 
 
14135
# Commands to strip libraries.
 
14136
old_striplib=$lt_old_striplib
 
14137
striplib=$lt_striplib
 
14138
 
 
14139
# Dependencies to place before the objects being linked to create a
 
14140
# shared library.
 
14141
predep_objects=$lt_predep_objects_CXX
 
14142
 
 
14143
# Dependencies to place after the objects being linked to create a
 
14144
# shared library.
 
14145
postdep_objects=$lt_postdep_objects_CXX
 
14146
 
 
14147
# Dependencies to place before the objects being linked to create a
 
14148
# shared library.
 
14149
predeps=$lt_predeps_CXX
 
14150
 
 
14151
# Dependencies to place after the objects being linked to create a
 
14152
# shared library.
 
14153
postdeps=$lt_postdeps_CXX
 
14154
 
 
14155
# The directories searched by this compiler when creating a shared
 
14156
# library
 
14157
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14158
 
 
14159
# The library search path used internally by the compiler when linking
 
14160
# a shared library.
 
14161
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14162
 
 
14163
# Method to check whether dependent libraries are shared objects.
 
14164
deplibs_check_method=$lt_deplibs_check_method
 
14165
 
 
14166
# Command to use when deplibs_check_method == file_magic.
 
14167
file_magic_cmd=$lt_file_magic_cmd
 
14168
 
 
14169
# Flag that allows shared libraries with undefined symbols to be built.
 
14170
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14171
 
 
14172
# Flag that forces no undefined symbols.
 
14173
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14174
 
 
14175
# Commands used to finish a libtool library installation in a directory.
 
14176
finish_cmds=$lt_finish_cmds
 
14177
 
 
14178
# Same as above, but a single script fragment to be evaled but not shown.
 
14179
finish_eval=$lt_finish_eval
 
14180
 
 
14181
# Take the output of nm and produce a listing of raw symbols and C names.
 
14182
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14183
 
 
14184
# Transform the output of nm in a proper C declaration
 
14185
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14186
 
 
14187
# Transform the output of nm in a C name address pair
 
14188
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14189
 
 
14190
# This is the shared library runtime path variable.
 
14191
runpath_var=$runpath_var
 
14192
 
 
14193
# This is the shared library path variable.
 
14194
shlibpath_var=$shlibpath_var
 
14195
 
 
14196
# Is shlibpath searched before the hard-coded library search path?
 
14197
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14198
 
 
14199
# How to hardcode a shared library path into an executable.
 
14200
hardcode_action=$hardcode_action_CXX
 
14201
 
 
14202
# Whether we should hardcode library paths into libraries.
 
14203
hardcode_into_libs=$hardcode_into_libs
 
14204
 
 
14205
# Flag to hardcode \$libdir into a binary during linking.
 
14206
# This must work even if \$libdir does not exist.
 
14207
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14208
 
 
14209
# If ld is used when linking, flag to hardcode \$libdir into
 
14210
# a binary during linking. This must work even if \$libdir does
 
14211
# not exist.
 
14212
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14213
 
 
14214
# Whether we need a single -rpath flag with a separated argument.
 
14215
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14216
 
 
14217
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14218
# resulting binary.
 
14219
hardcode_direct=$hardcode_direct_CXX
 
14220
 
 
14221
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14222
# resulting binary.
 
14223
hardcode_minus_L=$hardcode_minus_L_CXX
 
14224
 
 
14225
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14226
# the resulting binary.
 
14227
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14228
 
 
14229
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14230
# and all subsequent libraries and executables linked against it.
 
14231
hardcode_automatic=$hardcode_automatic_CXX
 
14232
 
 
14233
# Variables whose values should be saved in libtool wrapper scripts and
 
14234
# restored at relink time.
 
14235
variables_saved_for_relink="$variables_saved_for_relink"
 
14236
 
 
14237
# Whether libtool must link a program against all its dependency libraries.
 
14238
link_all_deplibs=$link_all_deplibs_CXX
 
14239
 
 
14240
# Compile-time system search path for libraries
 
14241
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14242
 
 
14243
# Run-time system search path for libraries
 
14244
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14245
 
 
14246
# Fix the shell variable \$srcfile for the compiler.
 
14247
fix_srcfile_path=$lt_fix_srcfile_path
 
14248
 
 
14249
# Set to yes if exported symbols are required.
 
14250
always_export_symbols=$always_export_symbols_CXX
 
14251
 
 
14252
# The commands to list exported symbols.
 
14253
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14254
 
 
14255
# The commands to extract the exported symbol list from a shared archive.
 
14256
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14257
 
 
14258
# Symbols that should not be listed in the preloaded symbols.
 
14259
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14260
 
 
14261
# Symbols that must always be exported.
 
14262
include_expsyms=$lt_include_expsyms_CXX
 
14263
 
 
14264
# ### END LIBTOOL TAG CONFIG: $tagname
 
14265
 
 
14266
__EOF__
 
14267
 
 
14268
 
 
14269
else
 
14270
  # If there is no Makefile yet, we rely on a make rule to execute
 
14271
  # `config.status --recheck' to rerun these tests and create the
 
14272
  # libtool script then.
 
14273
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14274
  if test -f "$ltmain_in"; then
 
14275
    test -f Makefile && make "$ltmain"
 
14276
  fi
 
14277
fi
 
14278
 
 
14279
 
 
14280
ac_ext=c
 
14281
ac_cpp='$CPP $CPPFLAGS'
 
14282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14285
 
 
14286
CC=$lt_save_CC
 
14287
LDCXX=$LD
 
14288
LD=$lt_save_LD
 
14289
GCC=$lt_save_GCC
 
14290
with_gnu_ldcxx=$with_gnu_ld
 
14291
with_gnu_ld=$lt_save_with_gnu_ld
 
14292
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14293
lt_cv_path_LD=$lt_save_path_LD
 
14294
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14295
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14296
 
 
14297
        else
 
14298
          tagname=""
 
14299
        fi
 
14300
        ;;
 
14301
 
 
14302
      F77)
 
14303
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14304
          
 
14305
ac_ext=f
 
14306
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14307
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14308
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14309
 
 
14310
 
 
14311
archive_cmds_need_lc_F77=no
 
14312
allow_undefined_flag_F77=
 
14313
always_export_symbols_F77=no
 
14314
archive_expsym_cmds_F77=
 
14315
export_dynamic_flag_spec_F77=
 
14316
hardcode_direct_F77=no
 
14317
hardcode_libdir_flag_spec_F77=
 
14318
hardcode_libdir_flag_spec_ld_F77=
 
14319
hardcode_libdir_separator_F77=
 
14320
hardcode_minus_L_F77=no
 
14321
hardcode_automatic_F77=no
 
14322
module_cmds_F77=
 
14323
module_expsym_cmds_F77=
 
14324
link_all_deplibs_F77=unknown
 
14325
old_archive_cmds_F77=$old_archive_cmds
 
14326
no_undefined_flag_F77=
 
14327
whole_archive_flag_spec_F77=
 
14328
enable_shared_with_static_runtimes_F77=no
 
14329
 
 
14330
# Source file extension for f77 test sources.
 
14331
ac_ext=f
 
14332
 
 
14333
# Object file extension for compiled f77 test sources.
 
14334
objext=o
 
14335
objext_F77=$objext
 
14336
 
 
14337
# Code to be used in simple compile tests
 
14338
lt_simple_compile_test_code="\
 
14339
      subroutine t
 
14340
      return
 
14341
      end
 
14342
"
 
14343
 
 
14344
# Code to be used in simple link tests
 
14345
lt_simple_link_test_code="\
 
14346
      program t
 
14347
      end
 
14348
"
 
14349
 
 
14350
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14351
 
 
14352
# If no C compiler was specified, use CC.
 
14353
LTCC=${LTCC-"$CC"}
 
14354
 
 
14355
# If no C compiler flags were specified, use CFLAGS.
 
14356
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14357
 
 
14358
# Allow CC to be a program name with arguments.
 
14359
compiler=$CC
 
14360
 
 
14361
 
 
14362
# save warnings/boilerplate of simple test code
 
14363
ac_outfile=conftest.$ac_objext
 
14364
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14365
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14366
_lt_compiler_boilerplate=`cat conftest.err`
 
14367
$rm conftest*
 
14368
 
 
14369
ac_outfile=conftest.$ac_objext
 
14370
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14371
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14372
_lt_linker_boilerplate=`cat conftest.err`
 
14373
$rm -r conftest*
 
14374
 
 
14375
 
 
14376
# Allow CC to be a program name with arguments.
 
14377
lt_save_CC="$CC"
 
14378
CC=${F77-"f77"}
 
14379
compiler=$CC
 
14380
compiler_F77=$CC
 
14381
for cc_temp in $compiler""; do
 
14382
  case $cc_temp in
 
14383
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14384
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14385
    \-*) ;;
 
14386
    *) break;;
 
14387
  esac
 
14388
done
 
14389
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14390
 
 
14391
 
 
14392
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14393
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14394
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14395
echo "${ECHO_T}$can_build_shared" >&6; }
 
14396
 
 
14397
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14398
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14399
test "$can_build_shared" = "no" && enable_shared=no
 
14400
 
 
14401
# On AIX, shared libraries and static libraries use the same namespace, and
 
14402
# are all built from PIC.
 
14403
case $host_os in
 
14404
aix3*)
 
14405
  test "$enable_shared" = yes && enable_static=no
 
14406
  if test -n "$RANLIB"; then
 
14407
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14408
    postinstall_cmds='$RANLIB $lib'
 
14409
  fi
 
14410
  ;;
 
14411
aix[4-9]*)
 
14412
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14413
    test "$enable_shared" = yes && enable_static=no
 
14414
  fi
 
14415
  ;;
 
14416
esac
 
14417
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14418
echo "${ECHO_T}$enable_shared" >&6; }
 
14419
 
 
14420
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14421
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14422
# Make sure either enable_shared or enable_static is yes.
 
14423
test "$enable_shared" = yes || enable_static=yes
 
14424
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14425
echo "${ECHO_T}$enable_static" >&6; }
 
14426
 
 
14427
GCC_F77="$G77"
 
14428
LD_F77="$LD"
 
14429
 
 
14430
lt_prog_compiler_wl_F77=
 
14431
lt_prog_compiler_pic_F77=
 
14432
lt_prog_compiler_static_F77=
 
14433
 
 
14434
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14435
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14436
 
 
14437
  if test "$GCC" = yes; then
 
14438
    lt_prog_compiler_wl_F77='-Wl,'
 
14439
    lt_prog_compiler_static_F77='-static'
 
14440
 
 
14441
    case $host_os in
 
14442
      aix*)
 
14443
      # All AIX code is PIC.
 
14444
      if test "$host_cpu" = ia64; then
 
14445
        # AIX 5 now supports IA64 processor
 
14446
        lt_prog_compiler_static_F77='-Bstatic'
 
14447
      fi
 
14448
      ;;
 
14449
 
 
14450
    amigaos*)
 
14451
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14452
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14453
      # like `-m68040'.
 
14454
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14455
      ;;
 
14456
 
 
14457
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14458
      # PIC is the default for these OSes.
 
14459
      ;;
 
14460
 
 
14461
    mingw* | cygwin* | pw32* | os2*)
 
14462
      # This hack is so that the source file can tell whether it is being
 
14463
      # built for inclusion in a dll (and should export symbols for example).
 
14464
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14465
      # (--disable-auto-import) libraries
 
14466
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14467
      ;;
 
14468
 
 
14469
    darwin* | rhapsody*)
 
14470
      # PIC is the default on this platform
 
14471
      # Common symbols not allowed in MH_DYLIB files
 
14472
      lt_prog_compiler_pic_F77='-fno-common'
 
14473
      ;;
 
14474
 
 
14475
    interix[3-9]*)
 
14476
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14477
      # Instead, we relocate shared libraries at runtime.
 
14478
      ;;
 
14479
 
 
14480
    msdosdjgpp*)
 
14481
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14482
      # on systems that don't support them.
 
14483
      lt_prog_compiler_can_build_shared_F77=no
 
14484
      enable_shared=no
 
14485
      ;;
 
14486
 
 
14487
    sysv4*MP*)
 
14488
      if test -d /usr/nec; then
 
14489
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14490
      fi
 
14491
      ;;
 
14492
 
 
14493
    hpux*)
 
14494
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14495
      # not for PA HP-UX.
 
14496
      case $host_cpu in
 
14497
      hppa*64*|ia64*)
 
14498
        # +Z the default
 
14499
        ;;
 
14500
      *)
 
14501
        lt_prog_compiler_pic_F77='-fPIC'
 
14502
        ;;
 
14503
      esac
 
14504
      ;;
 
14505
 
 
14506
    *)
 
14507
      lt_prog_compiler_pic_F77='-fPIC'
 
14508
      ;;
 
14509
    esac
 
14510
  else
 
14511
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14512
    case $host_os in
 
14513
    aix*)
 
14514
      lt_prog_compiler_wl_F77='-Wl,'
 
14515
      if test "$host_cpu" = ia64; then
 
14516
        # AIX 5 now supports IA64 processor
 
14517
        lt_prog_compiler_static_F77='-Bstatic'
 
14518
      else
 
14519
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14520
      fi
 
14521
      ;;
 
14522
      darwin*)
 
14523
        # PIC is the default on this platform
 
14524
        # Common symbols not allowed in MH_DYLIB files
 
14525
       case $cc_basename in
 
14526
         xlc*)
 
14527
         lt_prog_compiler_pic_F77='-qnocommon'
 
14528
         lt_prog_compiler_wl_F77='-Wl,'
 
14529
         ;;
 
14530
       esac
 
14531
       ;;
 
14532
 
 
14533
    mingw* | cygwin* | pw32* | os2*)
 
14534
      # This hack is so that the source file can tell whether it is being
 
14535
      # built for inclusion in a dll (and should export symbols for example).
 
14536
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14537
      ;;
 
14538
 
 
14539
    hpux9* | hpux10* | hpux11*)
 
14540
      lt_prog_compiler_wl_F77='-Wl,'
 
14541
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14542
      # not for PA HP-UX.
 
14543
      case $host_cpu in
 
14544
      hppa*64*|ia64*)
 
14545
        # +Z the default
 
14546
        ;;
 
14547
      *)
 
14548
        lt_prog_compiler_pic_F77='+Z'
 
14549
        ;;
 
14550
      esac
 
14551
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14552
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14553
      ;;
 
14554
 
 
14555
    irix5* | irix6* | nonstopux*)
 
14556
      lt_prog_compiler_wl_F77='-Wl,'
 
14557
      # PIC (with -KPIC) is the default.
 
14558
      lt_prog_compiler_static_F77='-non_shared'
 
14559
      ;;
 
14560
 
 
14561
    newsos6)
 
14562
      lt_prog_compiler_pic_F77='-KPIC'
 
14563
      lt_prog_compiler_static_F77='-Bstatic'
 
14564
      ;;
 
14565
 
 
14566
    linux* | k*bsd*-gnu)
 
14567
      case $cc_basename in
 
14568
      icc* | ecc*)
 
14569
        lt_prog_compiler_wl_F77='-Wl,'
 
14570
        lt_prog_compiler_pic_F77='-KPIC'
 
14571
        lt_prog_compiler_static_F77='-static'
 
14572
        ;;
 
14573
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14574
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14575
        # which looks to be a dead project)
 
14576
        lt_prog_compiler_wl_F77='-Wl,'
 
14577
        lt_prog_compiler_pic_F77='-fpic'
 
14578
        lt_prog_compiler_static_F77='-Bstatic'
 
14579
        ;;
 
14580
      ccc*)
 
14581
        lt_prog_compiler_wl_F77='-Wl,'
 
14582
        # All Alpha code is PIC.
 
14583
        lt_prog_compiler_static_F77='-non_shared'
 
14584
        ;;
 
14585
      *)
 
14586
        case `$CC -V 2>&1 | sed 5q` in
 
14587
        *Sun\ C*)
 
14588
          # Sun C 5.9
 
14589
          lt_prog_compiler_pic_F77='-KPIC'
 
14590
          lt_prog_compiler_static_F77='-Bstatic'
 
14591
          lt_prog_compiler_wl_F77='-Wl,'
 
14592
          ;;
 
14593
        *Sun\ F*)
 
14594
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14595
          lt_prog_compiler_pic_F77='-KPIC'
 
14596
          lt_prog_compiler_static_F77='-Bstatic'
 
14597
          lt_prog_compiler_wl_F77=''
 
14598
          ;;
 
14599
        esac
 
14600
        ;;
 
14601
      esac
 
14602
      ;;
 
14603
 
 
14604
    osf3* | osf4* | osf5*)
 
14605
      lt_prog_compiler_wl_F77='-Wl,'
 
14606
      # All OSF/1 code is PIC.
 
14607
      lt_prog_compiler_static_F77='-non_shared'
 
14608
      ;;
 
14609
 
 
14610
    rdos*)
 
14611
      lt_prog_compiler_static_F77='-non_shared'
 
14612
      ;;
 
14613
 
 
14614
    solaris*)
 
14615
      lt_prog_compiler_pic_F77='-KPIC'
 
14616
      lt_prog_compiler_static_F77='-Bstatic'
 
14617
      case $cc_basename in
 
14618
      f77* | f90* | f95*)
 
14619
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14620
      *)
 
14621
        lt_prog_compiler_wl_F77='-Wl,';;
 
14622
      esac
 
14623
      ;;
 
14624
 
 
14625
    sunos4*)
 
14626
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14627
      lt_prog_compiler_pic_F77='-PIC'
 
14628
      lt_prog_compiler_static_F77='-Bstatic'
 
14629
      ;;
 
14630
 
 
14631
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14632
      lt_prog_compiler_wl_F77='-Wl,'
 
14633
      lt_prog_compiler_pic_F77='-KPIC'
 
14634
      lt_prog_compiler_static_F77='-Bstatic'
 
14635
      ;;
 
14636
 
 
14637
    sysv4*MP*)
 
14638
      if test -d /usr/nec ;then
 
14639
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14640
        lt_prog_compiler_static_F77='-Bstatic'
 
14641
      fi
 
14642
      ;;
 
14643
 
 
14644
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14645
      lt_prog_compiler_wl_F77='-Wl,'
 
14646
      lt_prog_compiler_pic_F77='-KPIC'
 
14647
      lt_prog_compiler_static_F77='-Bstatic'
 
14648
      ;;
 
14649
 
 
14650
    unicos*)
 
14651
      lt_prog_compiler_wl_F77='-Wl,'
 
14652
      lt_prog_compiler_can_build_shared_F77=no
 
14653
      ;;
 
14654
 
 
14655
    uts4*)
 
14656
      lt_prog_compiler_pic_F77='-pic'
 
14657
      lt_prog_compiler_static_F77='-Bstatic'
 
14658
      ;;
 
14659
 
 
14660
    *)
 
14661
      lt_prog_compiler_can_build_shared_F77=no
 
14662
      ;;
 
14663
    esac
 
14664
  fi
 
14665
 
 
14666
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14667
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14668
 
 
14669
#
 
14670
# Check to make sure the PIC flag actually works.
 
14671
#
 
14672
if test -n "$lt_prog_compiler_pic_F77"; then
 
14673
  
 
14674
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14675
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14676
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14678
else
 
14679
  lt_cv_prog_compiler_pic_works_F77=no
 
14680
  ac_outfile=conftest.$ac_objext
 
14681
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14682
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14683
   # Insert the option either (1) after the last *FLAGS variable, or
 
14684
   # (2) before a word containing "conftest.", or (3) at the end.
 
14685
   # Note that $ac_compile itself does not contain backslashes and begins
 
14686
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14687
   # The option is referenced via a variable to avoid confusing sed.
 
14688
   lt_compile=`echo "$ac_compile" | $SED \
 
14689
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14690
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14691
   -e 's:$: $lt_compiler_flag:'`
 
14692
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14693
   (eval "$lt_compile" 2>conftest.err)
 
14694
   ac_status=$?
 
14695
   cat conftest.err >&5
 
14696
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14697
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14698
     # The compiler can only warn and ignore the option if not recognized
 
14699
     # So say no if there are warnings other than the usual output.
 
14700
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14701
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14702
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14703
       lt_cv_prog_compiler_pic_works_F77=yes
 
14704
     fi
 
14705
   fi
 
14706
   $rm conftest*
 
14707
 
 
14708
fi
 
14709
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14710
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14711
 
 
14712
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14713
    case $lt_prog_compiler_pic_F77 in
 
14714
     "" | " "*) ;;
 
14715
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14716
     esac
 
14717
else
 
14718
    lt_prog_compiler_pic_F77=
 
14719
     lt_prog_compiler_can_build_shared_F77=no
 
14720
fi
 
14721
 
 
14722
fi
 
14723
case $host_os in
 
14724
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14725
  *djgpp*)
 
14726
    lt_prog_compiler_pic_F77=
 
14727
    ;;
 
14728
  *)
 
14729
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14730
    ;;
 
14731
esac
 
14732
 
 
14733
#
 
14734
# Check to make sure the static flag actually works.
 
14735
#
 
14736
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14737
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14738
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14739
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14740
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14741
else
 
14742
  lt_cv_prog_compiler_static_works_F77=no
 
14743
   save_LDFLAGS="$LDFLAGS"
 
14744
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14745
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14746
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14747
     # The linker can only warn and ignore the option if not recognized
 
14748
     # So say no if there are warnings
 
14749
     if test -s conftest.err; then
 
14750
       # Append any errors to the config.log.
 
14751
       cat conftest.err 1>&5
 
14752
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14753
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14754
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14755
         lt_cv_prog_compiler_static_works_F77=yes
 
14756
       fi
 
14757
     else
 
14758
       lt_cv_prog_compiler_static_works_F77=yes
 
14759
     fi
 
14760
   fi
 
14761
   $rm -r conftest*
 
14762
   LDFLAGS="$save_LDFLAGS"
 
14763
 
 
14764
fi
 
14765
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14766
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14767
 
 
14768
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14769
    :
 
14770
else
 
14771
    lt_prog_compiler_static_F77=
 
14772
fi
 
14773
 
 
14774
 
 
14775
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14776
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14777
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14778
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14779
else
 
14780
  lt_cv_prog_compiler_c_o_F77=no
 
14781
   $rm -r conftest 2>/dev/null
 
14782
   mkdir conftest
 
14783
   cd conftest
 
14784
   mkdir out
 
14785
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14786
 
 
14787
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14788
   # Insert the option either (1) after the last *FLAGS variable, or
 
14789
   # (2) before a word containing "conftest.", or (3) at the end.
 
14790
   # Note that $ac_compile itself does not contain backslashes and begins
 
14791
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14792
   lt_compile=`echo "$ac_compile" | $SED \
 
14793
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14794
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14795
   -e 's:$: $lt_compiler_flag:'`
 
14796
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
14797
   (eval "$lt_compile" 2>out/conftest.err)
 
14798
   ac_status=$?
 
14799
   cat out/conftest.err >&5
 
14800
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
14801
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14802
   then
 
14803
     # The compiler can only warn and ignore the option if not recognized
 
14804
     # So say no if there are warnings
 
14805
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14806
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14807
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14808
       lt_cv_prog_compiler_c_o_F77=yes
 
14809
     fi
 
14810
   fi
 
14811
   chmod u+w . 2>&5
 
14812
   $rm conftest*
 
14813
   # SGI C++ compiler will create directory out/ii_files/ for
 
14814
   # template instantiation
 
14815
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14816
   $rm out/* && rmdir out
 
14817
   cd ..
 
14818
   rmdir conftest
 
14819
   $rm conftest*
 
14820
 
 
14821
fi
 
14822
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14823
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14824
 
 
14825
 
 
14826
hard_links="nottested"
 
14827
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14828
  # do not overwrite the value of need_locks provided by the user
 
14829
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14830
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14831
  hard_links=yes
 
14832
  $rm conftest*
 
14833
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14834
  touch conftest.a
 
14835
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14836
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14837
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14838
echo "${ECHO_T}$hard_links" >&6; }
 
14839
  if test "$hard_links" = no; then
 
14840
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14841
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14842
    need_locks=warn
 
14843
  fi
 
14844
else
 
14845
  need_locks=no
 
14846
fi
 
14847
 
 
14848
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14849
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14850
 
 
14851
  runpath_var=
 
14852
  allow_undefined_flag_F77=
 
14853
  enable_shared_with_static_runtimes_F77=no
 
14854
  archive_cmds_F77=
 
14855
  archive_expsym_cmds_F77=
 
14856
  old_archive_From_new_cmds_F77=
 
14857
  old_archive_from_expsyms_cmds_F77=
 
14858
  export_dynamic_flag_spec_F77=
 
14859
  whole_archive_flag_spec_F77=
 
14860
  thread_safe_flag_spec_F77=
 
14861
  hardcode_libdir_flag_spec_F77=
 
14862
  hardcode_libdir_flag_spec_ld_F77=
 
14863
  hardcode_libdir_separator_F77=
 
14864
  hardcode_direct_F77=no
 
14865
  hardcode_minus_L_F77=no
 
14866
  hardcode_shlibpath_var_F77=unsupported
 
14867
  link_all_deplibs_F77=unknown
 
14868
  hardcode_automatic_F77=no
 
14869
  module_cmds_F77=
 
14870
  module_expsym_cmds_F77=
 
14871
  always_export_symbols_F77=no
 
14872
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14873
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14874
  # included in the symbol list
 
14875
  include_expsyms_F77=
 
14876
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14877
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14878
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14879
  # as well as any symbol that contains `d'.
 
14880
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14881
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14882
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14883
  # the symbol is explicitly referenced.  Since portable code cannot
 
14884
  # rely on this symbol name, it's probably fine to never include it in
 
14885
  # preloaded symbol tables.
 
14886
  # Exclude shared library initialization/finalization symbols.
 
14887
  extract_expsyms_cmds=
 
14888
  # Just being paranoid about ensuring that cc_basename is set.
 
14889
  for cc_temp in $compiler""; do
 
14890
  case $cc_temp in
 
14891
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14892
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14893
    \-*) ;;
 
14894
    *) break;;
 
14895
  esac
 
14896
done
 
14897
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14898
 
 
14899
  case $host_os in
 
14900
  cygwin* | mingw* | pw32*)
 
14901
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14902
    # When not using gcc, we currently assume that we are using
 
14903
    # Microsoft Visual C++.
 
14904
    if test "$GCC" != yes; then
 
14905
      with_gnu_ld=no
 
14906
    fi
 
14907
    ;;
 
14908
  interix*)
 
14909
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14910
    with_gnu_ld=yes
 
14911
    ;;
 
14912
  openbsd*)
 
14913
    with_gnu_ld=no
 
14914
    ;;
 
14915
  esac
 
14916
 
 
14917
  ld_shlibs_F77=yes
 
14918
  if test "$with_gnu_ld" = yes; then
 
14919
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14920
    wlarc='${wl}'
 
14921
 
 
14922
    # Set some defaults for GNU ld with shared library support. These
 
14923
    # are reset later if shared libraries are not supported. Putting them
 
14924
    # here allows them to be overridden if necessary.
 
14925
    runpath_var=LD_RUN_PATH
 
14926
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14927
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14928
    # ancient GNU ld didn't support --whole-archive et. al.
 
14929
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14930
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14931
      else
 
14932
        whole_archive_flag_spec_F77=
 
14933
    fi
 
14934
    supports_anon_versioning=no
 
14935
    case `$LD -v 2>/dev/null` in
 
14936
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14937
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14938
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14939
      *\ 2.11.*) ;; # other 2.11 versions
 
14940
      *) supports_anon_versioning=yes ;;
 
14941
    esac
 
14942
 
 
14943
    # See if GNU ld supports shared libraries.
 
14944
    case $host_os in
 
14945
    aix[3-9]*)
 
14946
      # On AIX/PPC, the GNU linker is very broken
 
14947
      if test "$host_cpu" != ia64; then
 
14948
        ld_shlibs_F77=no
 
14949
        cat <<EOF 1>&2
 
14950
 
 
14951
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14952
*** to be unable to reliably create shared libraries on AIX.
 
14953
*** Therefore, libtool is disabling shared libraries support.  If you
 
14954
*** really care for shared libraries, you may want to modify your PATH
 
14955
*** so that a non-GNU linker is found, and then restart.
 
14956
 
 
14957
EOF
 
14958
      fi
 
14959
      ;;
 
14960
 
 
14961
    amigaos*)
 
14962
      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)'
 
14963
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14964
      hardcode_minus_L_F77=yes
 
14965
 
 
14966
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14967
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14968
      # to version 4, is to share data among multiple programs linked
 
14969
      # with the same dynamic library.  Since this doesn't match the
 
14970
      # behavior of shared libraries on other platforms, we can't use
 
14971
      # them.
 
14972
      ld_shlibs_F77=no
 
14973
      ;;
 
14974
 
 
14975
    beos*)
 
14976
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14977
        allow_undefined_flag_F77=unsupported
 
14978
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14979
        # support --undefined.  This deserves some investigation.  FIXME
 
14980
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14981
      else
 
14982
        ld_shlibs_F77=no
 
14983
      fi
 
14984
      ;;
 
14985
 
 
14986
    cygwin* | mingw* | pw32*)
 
14987
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14988
      # as there is no search path for DLLs.
 
14989
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14990
      allow_undefined_flag_F77=unsupported
 
14991
      always_export_symbols_F77=no
 
14992
      enable_shared_with_static_runtimes_F77=yes
 
14993
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14994
 
 
14995
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14996
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14997
        # If the export-symbols file already is a .def file (1st line
 
14998
        # is EXPORTS), use it as is; otherwise, prepend...
 
14999
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15000
          cp $export_symbols $output_objdir/$soname.def;
 
15001
        else
 
15002
          echo EXPORTS > $output_objdir/$soname.def;
 
15003
          cat $export_symbols >> $output_objdir/$soname.def;
 
15004
        fi~
 
15005
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15006
      else
 
15007
        ld_shlibs_F77=no
 
15008
      fi
 
15009
      ;;
 
15010
 
 
15011
    interix[3-9]*)
 
15012
      hardcode_direct_F77=no
 
15013
      hardcode_shlibpath_var_F77=no
 
15014
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15015
      export_dynamic_flag_spec_F77='${wl}-E'
 
15016
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15017
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15018
      # default) and relocated if they conflict, which is a slow very memory
 
15019
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15020
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15021
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15022
      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'
 
15023
      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'
 
15024
      ;;
 
15025
 
 
15026
    gnu* | linux* | k*bsd*-gnu)
 
15027
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15028
        tmp_addflag=
 
15029
        case $cc_basename,$host_cpu in
 
15030
        pgcc*)                          # Portland Group C compiler
 
15031
          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'
 
15032
          tmp_addflag=' $pic_flag'
 
15033
          ;;
 
15034
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15035
          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'
 
15036
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15037
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15038
          tmp_addflag=' -i_dynamic' ;;
 
15039
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15040
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15041
        ifc* | ifort*)                  # Intel Fortran compiler
 
15042
          tmp_addflag=' -nofor_main' ;;
 
15043
        esac
 
15044
        case `$CC -V 2>&1 | sed 5q` in
 
15045
        *Sun\ C*)                       # Sun C 5.9
 
15046
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15047
          tmp_sharedflag='-G' ;;
 
15048
        *Sun\ F*)                       # Sun Fortran 8.3
 
15049
          tmp_sharedflag='-G' ;;
 
15050
        *)
 
15051
          tmp_sharedflag='-shared' ;;
 
15052
        esac
 
15053
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15054
 
 
15055
        if test $supports_anon_versioning = yes; then
 
15056
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15057
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15058
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15059
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15060
        fi
 
15061
        link_all_deplibs_F77=no
 
15062
      else
 
15063
        ld_shlibs_F77=no
 
15064
      fi
 
15065
      ;;
 
15066
 
 
15067
    netbsd* | netbsdelf*-gnu)
 
15068
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15069
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15070
        wlarc=
 
15071
      else
 
15072
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15073
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15074
      fi
 
15075
      ;;
 
15076
 
 
15077
    solaris*)
 
15078
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15079
        ld_shlibs_F77=no
 
15080
        cat <<EOF 1>&2
 
15081
 
 
15082
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15083
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15084
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15085
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15086
*** your PATH or compiler configuration so that the native linker is
 
15087
*** used, and then restart.
 
15088
 
 
15089
EOF
 
15090
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15091
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15092
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15093
      else
 
15094
        ld_shlibs_F77=no
 
15095
      fi
 
15096
      ;;
 
15097
 
 
15098
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15099
      case `$LD -v 2>&1` in
 
15100
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15101
        ld_shlibs_F77=no
 
15102
        cat <<_LT_EOF 1>&2
 
15103
 
 
15104
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15105
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15106
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15107
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15108
*** your PATH or compiler configuration so that the native linker is
 
15109
*** used, and then restart.
 
15110
 
 
15111
_LT_EOF
 
15112
        ;;
 
15113
        *)
 
15114
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15115
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15116
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15117
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15118
          else
 
15119
            ld_shlibs_F77=no
 
15120
          fi
 
15121
        ;;
 
15122
      esac
 
15123
      ;;
 
15124
 
 
15125
    sunos4*)
 
15126
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15127
      wlarc=
 
15128
      hardcode_direct_F77=yes
 
15129
      hardcode_shlibpath_var_F77=no
 
15130
      ;;
 
15131
 
 
15132
    *)
 
15133
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15134
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15135
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15136
      else
 
15137
        ld_shlibs_F77=no
 
15138
      fi
 
15139
      ;;
 
15140
    esac
 
15141
 
 
15142
    if test "$ld_shlibs_F77" = no; then
 
15143
      runpath_var=
 
15144
      hardcode_libdir_flag_spec_F77=
 
15145
      export_dynamic_flag_spec_F77=
 
15146
      whole_archive_flag_spec_F77=
 
15147
    fi
 
15148
  else
 
15149
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15150
    case $host_os in
 
15151
    aix3*)
 
15152
      allow_undefined_flag_F77=unsupported
 
15153
      always_export_symbols_F77=yes
 
15154
      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'
 
15155
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15156
      # are no directories specified by -L.
 
15157
      hardcode_minus_L_F77=yes
 
15158
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15159
        # Neither direct hardcoding nor static linking is supported with a
 
15160
        # broken collect2.
 
15161
        hardcode_direct_F77=unsupported
 
15162
      fi
 
15163
      ;;
 
15164
 
 
15165
    aix[4-9]*)
 
15166
      if test "$host_cpu" = ia64; then
 
15167
        # On IA64, the linker does run time linking by default, so we don't
 
15168
        # have to do anything special.
 
15169
        aix_use_runtimelinking=no
 
15170
        exp_sym_flag='-Bexport'
 
15171
        no_entry_flag=""
 
15172
      else
 
15173
        # If we're using GNU nm, then we don't want the "-C" option.
 
15174
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15175
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15176
          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'
 
15177
        else
 
15178
          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'
 
15179
        fi
 
15180
        aix_use_runtimelinking=no
 
15181
 
 
15182
        # Test if we are trying to use run time linking or normal
 
15183
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15184
        # need to do runtime linking.
 
15185
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15186
          for ld_flag in $LDFLAGS; do
 
15187
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15188
            aix_use_runtimelinking=yes
 
15189
            break
 
15190
          fi
 
15191
          done
 
15192
          ;;
 
15193
        esac
 
15194
 
 
15195
        exp_sym_flag='-bexport'
 
15196
        no_entry_flag='-bnoentry'
 
15197
      fi
 
15198
 
 
15199
      # When large executables or shared objects are built, AIX ld can
 
15200
      # have problems creating the table of contents.  If linking a library
 
15201
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15202
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15203
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15204
 
 
15205
      archive_cmds_F77=''
 
15206
      hardcode_direct_F77=yes
 
15207
      hardcode_libdir_separator_F77=':'
 
15208
      link_all_deplibs_F77=yes
 
15209
 
 
15210
      if test "$GCC" = yes; then
 
15211
        case $host_os in aix4.[012]|aix4.[012].*)
 
15212
        # We only want to do this on AIX 4.2 and lower, the check
 
15213
        # below for broken collect2 doesn't work under 4.3+
 
15214
          collect2name=`${CC} -print-prog-name=collect2`
 
15215
          if test -f "$collect2name" && \
 
15216
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15217
          then
 
15218
          # We have reworked collect2
 
15219
          :
 
15220
          else
 
15221
          # We have old collect2
 
15222
          hardcode_direct_F77=unsupported
 
15223
          # It fails to find uninstalled libraries when the uninstalled
 
15224
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15225
          # to unsupported forces relinking
 
15226
          hardcode_minus_L_F77=yes
 
15227
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15228
          hardcode_libdir_separator_F77=
 
15229
          fi
 
15230
          ;;
 
15231
        esac
 
15232
        shared_flag='-shared'
 
15233
        if test "$aix_use_runtimelinking" = yes; then
 
15234
          shared_flag="$shared_flag "'${wl}-G'
 
15235
        fi
 
15236
      else
 
15237
        # not using gcc
 
15238
        if test "$host_cpu" = ia64; then
 
15239
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15240
        # chokes on -Wl,-G. The following line is correct:
 
15241
          shared_flag='-G'
 
15242
        else
 
15243
          if test "$aix_use_runtimelinking" = yes; then
 
15244
            shared_flag='${wl}-G'
 
15245
          else
 
15246
            shared_flag='${wl}-bM:SRE'
 
15247
          fi
 
15248
        fi
 
15249
      fi
 
15250
 
 
15251
      # It seems that -bexpall does not export symbols beginning with
 
15252
      # underscore (_), so it is better to generate a list of symbols to export.
 
15253
      always_export_symbols_F77=yes
 
15254
      if test "$aix_use_runtimelinking" = yes; then
 
15255
        # Warning - without using the other runtime loading flags (-brtl),
 
15256
        # -berok will link without error, but may produce a broken library.
 
15257
        allow_undefined_flag_F77='-berok'
 
15258
       # Determine the default libpath from the value encoded in an empty executable.
 
15259
       cat >conftest.$ac_ext <<_ACEOF
 
15260
      program main
 
15261
 
 
15262
      end
 
15263
_ACEOF
 
15264
rm -f conftest.$ac_objext conftest$ac_exeext
 
15265
if { (ac_try="$ac_link"
 
15266
case "(($ac_try" in
 
15267
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15268
  *) ac_try_echo=$ac_try;;
 
15269
esac
 
15270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15271
  (eval "$ac_link") 2>conftest.er1
 
15272
  ac_status=$?
 
15273
  grep -v '^ *+' conftest.er1 >conftest.err
 
15274
  rm -f conftest.er1
 
15275
  cat conftest.err >&5
 
15276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15277
  (exit $ac_status); } && {
 
15278
         test -z "$ac_f77_werror_flag" ||
 
15279
         test ! -s conftest.err
 
15280
       } && test -s conftest$ac_exeext &&
 
15281
       $as_test_x conftest$ac_exeext; then
 
15282
  
 
15283
lt_aix_libpath_sed='
 
15284
    /Import File Strings/,/^$/ {
 
15285
        /^0/ {
 
15286
            s/^0  *\(.*\)$/\1/
 
15287
            p
 
15288
        }
 
15289
    }'
 
15290
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15291
# Check for a 64-bit object if we didn't find anything.
 
15292
if test -z "$aix_libpath"; then
 
15293
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15294
fi
 
15295
else
 
15296
  echo "$as_me: failed program was:" >&5
 
15297
sed 's/^/| /' conftest.$ac_ext >&5
 
15298
 
 
15299
        
 
15300
fi
 
15301
 
 
15302
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15303
      conftest$ac_exeext conftest.$ac_ext
 
15304
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15305
 
 
15306
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15307
        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"
 
15308
       else
 
15309
        if test "$host_cpu" = ia64; then
 
15310
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15311
          allow_undefined_flag_F77="-z nodefs"
 
15312
          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"
 
15313
        else
 
15314
         # Determine the default libpath from the value encoded in an empty executable.
 
15315
         cat >conftest.$ac_ext <<_ACEOF
 
15316
      program main
 
15317
 
 
15318
      end
 
15319
_ACEOF
 
15320
rm -f conftest.$ac_objext conftest$ac_exeext
 
15321
if { (ac_try="$ac_link"
 
15322
case "(($ac_try" in
 
15323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15324
  *) ac_try_echo=$ac_try;;
 
15325
esac
 
15326
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15327
  (eval "$ac_link") 2>conftest.er1
 
15328
  ac_status=$?
 
15329
  grep -v '^ *+' conftest.er1 >conftest.err
 
15330
  rm -f conftest.er1
 
15331
  cat conftest.err >&5
 
15332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15333
  (exit $ac_status); } && {
 
15334
         test -z "$ac_f77_werror_flag" ||
 
15335
         test ! -s conftest.err
 
15336
       } && test -s conftest$ac_exeext &&
 
15337
       $as_test_x conftest$ac_exeext; then
 
15338
  
 
15339
lt_aix_libpath_sed='
 
15340
    /Import File Strings/,/^$/ {
 
15341
        /^0/ {
 
15342
            s/^0  *\(.*\)$/\1/
 
15343
            p
 
15344
        }
 
15345
    }'
 
15346
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15347
# Check for a 64-bit object if we didn't find anything.
 
15348
if test -z "$aix_libpath"; then
 
15349
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15350
fi
 
15351
else
 
15352
  echo "$as_me: failed program was:" >&5
 
15353
sed 's/^/| /' conftest.$ac_ext >&5
 
15354
 
 
15355
        
 
15356
fi
 
15357
 
 
15358
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15359
      conftest$ac_exeext conftest.$ac_ext
 
15360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15361
 
 
15362
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15363
          # Warning - without using the other run time loading flags,
 
15364
          # -berok will link without error, but may produce a broken library.
 
15365
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15366
          allow_undefined_flag_F77=' ${wl}-berok'
 
15367
          # Exported symbols can be pulled into shared objects from archives
 
15368
          whole_archive_flag_spec_F77='$convenience'
 
15369
          archive_cmds_need_lc_F77=yes
 
15370
          # This is similar to how AIX traditionally builds its shared libraries.
 
15371
          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'
 
15372
        fi
 
15373
      fi
 
15374
      ;;
 
15375
 
 
15376
    amigaos*)
 
15377
      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)'
 
15378
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15379
      hardcode_minus_L_F77=yes
 
15380
      # see comment about different semantics on the GNU ld section
 
15381
      ld_shlibs_F77=no
 
15382
      ;;
 
15383
 
 
15384
    bsdi[45]*)
 
15385
      export_dynamic_flag_spec_F77=-rdynamic
 
15386
      ;;
 
15387
 
 
15388
    cygwin* | mingw* | pw32*)
 
15389
      # When not using gcc, we currently assume that we are using
 
15390
      # Microsoft Visual C++.
 
15391
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15392
      # no search path for DLLs.
 
15393
      hardcode_libdir_flag_spec_F77=' '
 
15394
      allow_undefined_flag_F77=unsupported
 
15395
      # Tell ltmain to make .lib files, not .a files.
 
15396
      libext=lib
 
15397
      # Tell ltmain to make .dll files, not .so files.
 
15398
      shrext_cmds=".dll"
 
15399
      # FIXME: Setting linknames here is a bad hack.
 
15400
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15401
      # The linker will automatically build a .lib file if we build a DLL.
 
15402
      old_archive_From_new_cmds_F77='true'
 
15403
      # FIXME: Should let the user specify the lib program.
 
15404
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15405
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15406
      enable_shared_with_static_runtimes_F77=yes
 
15407
      ;;
 
15408
 
 
15409
    darwin* | rhapsody*)
 
15410
      case $host_os in
 
15411
        rhapsody* | darwin1.[012])
 
15412
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15413
         ;;
 
15414
       *) # Darwin 1.3 on
 
15415
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15416
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15417
         else
 
15418
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15419
             10.[012])
 
15420
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15421
               ;;
 
15422
             10.*)
 
15423
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15424
               ;;
 
15425
           esac
 
15426
         fi
 
15427
         ;;
 
15428
      esac
 
15429
      archive_cmds_need_lc_F77=no
 
15430
      hardcode_direct_F77=no
 
15431
      hardcode_automatic_F77=yes
 
15432
      hardcode_shlibpath_var_F77=unsupported
 
15433
      whole_archive_flag_spec_F77=''
 
15434
      link_all_deplibs_F77=yes
 
15435
    if test "$GCC" = yes ; then
 
15436
        output_verbose_link_cmd='echo'
 
15437
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15438
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15439
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15440
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15441
    else
 
15442
      case $cc_basename in
 
15443
        xlc*)
 
15444
         output_verbose_link_cmd='echo'
 
15445
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15446
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15447
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15448
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15449
          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}'
 
15450
          ;;
 
15451
       *)
 
15452
         ld_shlibs_F77=no
 
15453
          ;;
 
15454
      esac
 
15455
    fi
 
15456
      ;;
 
15457
 
 
15458
    dgux*)
 
15459
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15460
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15461
      hardcode_shlibpath_var_F77=no
 
15462
      ;;
 
15463
 
 
15464
    freebsd1*)
 
15465
      ld_shlibs_F77=no
 
15466
      ;;
 
15467
 
 
15468
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15469
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15470
    # does not break anything, and helps significantly (at the cost of a little
 
15471
    # extra space).
 
15472
    freebsd2.2*)
 
15473
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15474
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15475
      hardcode_direct_F77=yes
 
15476
      hardcode_shlibpath_var_F77=no
 
15477
      ;;
 
15478
 
 
15479
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15480
    freebsd2*)
 
15481
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15482
      hardcode_direct_F77=yes
 
15483
      hardcode_minus_L_F77=yes
 
15484
      hardcode_shlibpath_var_F77=no
 
15485
      ;;
 
15486
 
 
15487
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15488
    freebsd* | dragonfly*)
 
15489
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15490
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15491
      hardcode_direct_F77=yes
 
15492
      hardcode_shlibpath_var_F77=no
 
15493
      ;;
 
15494
 
 
15495
    hpux9*)
 
15496
      if test "$GCC" = yes; then
 
15497
        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'
 
15498
      else
 
15499
        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'
 
15500
      fi
 
15501
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15502
      hardcode_libdir_separator_F77=:
 
15503
      hardcode_direct_F77=yes
 
15504
 
 
15505
      # hardcode_minus_L: Not really in the search PATH,
 
15506
      # but as the default location of the library.
 
15507
      hardcode_minus_L_F77=yes
 
15508
      export_dynamic_flag_spec_F77='${wl}-E'
 
15509
      ;;
 
15510
 
 
15511
    hpux10*)
 
15512
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15513
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15514
      else
 
15515
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15516
      fi
 
15517
      if test "$with_gnu_ld" = no; then
 
15518
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15519
        hardcode_libdir_separator_F77=:
 
15520
 
 
15521
        hardcode_direct_F77=yes
 
15522
        export_dynamic_flag_spec_F77='${wl}-E'
 
15523
 
 
15524
        # hardcode_minus_L: Not really in the search PATH,
 
15525
        # but as the default location of the library.
 
15526
        hardcode_minus_L_F77=yes
 
15527
      fi
 
15528
      ;;
 
15529
 
 
15530
    hpux11*)
 
15531
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15532
        case $host_cpu in
 
15533
        hppa*64*)
 
15534
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15535
          ;;
 
15536
        ia64*)
 
15537
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15538
          ;;
 
15539
        *)
 
15540
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15541
          ;;
 
15542
        esac
 
15543
      else
 
15544
        case $host_cpu in
 
15545
        hppa*64*)
 
15546
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15547
          ;;
 
15548
        ia64*)
 
15549
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15550
          ;;
 
15551
        *)
 
15552
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15553
          ;;
 
15554
        esac
 
15555
      fi
 
15556
      if test "$with_gnu_ld" = no; then
 
15557
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15558
        hardcode_libdir_separator_F77=:
 
15559
 
 
15560
        case $host_cpu in
 
15561
        hppa*64*|ia64*)
 
15562
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15563
          hardcode_direct_F77=no
 
15564
          hardcode_shlibpath_var_F77=no
 
15565
          ;;
 
15566
        *)
 
15567
          hardcode_direct_F77=yes
 
15568
          export_dynamic_flag_spec_F77='${wl}-E'
 
15569
 
 
15570
          # hardcode_minus_L: Not really in the search PATH,
 
15571
          # but as the default location of the library.
 
15572
          hardcode_minus_L_F77=yes
 
15573
          ;;
 
15574
        esac
 
15575
      fi
 
15576
      ;;
 
15577
 
 
15578
    irix5* | irix6* | nonstopux*)
 
15579
      if test "$GCC" = yes; then
 
15580
        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'
 
15581
      else
 
15582
        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'
 
15583
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15584
      fi
 
15585
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15586
      hardcode_libdir_separator_F77=:
 
15587
      link_all_deplibs_F77=yes
 
15588
      ;;
 
15589
 
 
15590
    netbsd* | netbsdelf*-gnu)
 
15591
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15592
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15593
      else
 
15594
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15595
      fi
 
15596
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15597
      hardcode_direct_F77=yes
 
15598
      hardcode_shlibpath_var_F77=no
 
15599
      ;;
 
15600
 
 
15601
    newsos6)
 
15602
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15603
      hardcode_direct_F77=yes
 
15604
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15605
      hardcode_libdir_separator_F77=:
 
15606
      hardcode_shlibpath_var_F77=no
 
15607
      ;;
 
15608
 
 
15609
    openbsd*)
 
15610
      if test -f /usr/libexec/ld.so; then
 
15611
        hardcode_direct_F77=yes
 
15612
        hardcode_shlibpath_var_F77=no
 
15613
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15614
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15615
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15616
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15617
          export_dynamic_flag_spec_F77='${wl}-E'
 
15618
        else
 
15619
          case $host_os in
 
15620
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15621
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15622
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15623
             ;;
 
15624
           *)
 
15625
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15626
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15627
             ;;
 
15628
          esac
 
15629
        fi
 
15630
      else
 
15631
        ld_shlibs_F77=no
 
15632
      fi
 
15633
      ;;
 
15634
 
 
15635
    os2*)
 
15636
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15637
      hardcode_minus_L_F77=yes
 
15638
      allow_undefined_flag_F77=unsupported
 
15639
      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'
 
15640
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15641
      ;;
 
15642
 
 
15643
    osf3*)
 
15644
      if test "$GCC" = yes; then
 
15645
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15646
        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'
 
15647
      else
 
15648
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15649
        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'
 
15650
      fi
 
15651
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15652
      hardcode_libdir_separator_F77=:
 
15653
      ;;
 
15654
 
 
15655
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15656
      if test "$GCC" = yes; then
 
15657
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15658
        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'
 
15659
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15660
      else
 
15661
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15662
        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'
 
15663
        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~
 
15664
        $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'
 
15665
 
 
15666
        # Both c and cxx compiler support -rpath directly
 
15667
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15668
      fi
 
15669
      hardcode_libdir_separator_F77=:
 
15670
      ;;
 
15671
 
 
15672
    solaris*)
 
15673
      no_undefined_flag_F77=' -z text'
 
15674
      if test "$GCC" = yes; then
 
15675
        wlarc='${wl}'
 
15676
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15677
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15678
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15679
      else
 
15680
        wlarc=''
 
15681
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15682
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15683
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15684
      fi
 
15685
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15686
      hardcode_shlibpath_var_F77=no
 
15687
      case $host_os in
 
15688
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15689
      *)
 
15690
        # The compiler driver will combine and reorder linker options,
 
15691
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15692
        # but is careful enough not to reorder.
 
15693
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15694
        if test "$GCC" = yes; then
 
15695
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15696
        else
 
15697
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15698
        fi
 
15699
        ;;
 
15700
      esac
 
15701
      link_all_deplibs_F77=yes
 
15702
      ;;
 
15703
 
 
15704
    sunos4*)
 
15705
      if test "x$host_vendor" = xsequent; then
 
15706
        # Use $CC to link under sequent, because it throws in some extra .o
 
15707
        # files that make .init and .fini sections work.
 
15708
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15709
      else
 
15710
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15711
      fi
 
15712
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15713
      hardcode_direct_F77=yes
 
15714
      hardcode_minus_L_F77=yes
 
15715
      hardcode_shlibpath_var_F77=no
 
15716
      ;;
 
15717
 
 
15718
    sysv4)
 
15719
      case $host_vendor in
 
15720
        sni)
 
15721
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15722
          hardcode_direct_F77=yes # is this really true???
 
15723
        ;;
 
15724
        siemens)
 
15725
          ## LD is ld it makes a PLAMLIB
 
15726
          ## CC just makes a GrossModule.
 
15727
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15728
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15729
          hardcode_direct_F77=no
 
15730
        ;;
 
15731
        motorola)
 
15732
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15733
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15734
        ;;
 
15735
      esac
 
15736
      runpath_var='LD_RUN_PATH'
 
15737
      hardcode_shlibpath_var_F77=no
 
15738
      ;;
 
15739
 
 
15740
    sysv4.3*)
 
15741
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15742
      hardcode_shlibpath_var_F77=no
 
15743
      export_dynamic_flag_spec_F77='-Bexport'
 
15744
      ;;
 
15745
 
 
15746
    sysv4*MP*)
 
15747
      if test -d /usr/nec; then
 
15748
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15749
        hardcode_shlibpath_var_F77=no
 
15750
        runpath_var=LD_RUN_PATH
 
15751
        hardcode_runpath_var=yes
 
15752
        ld_shlibs_F77=yes
 
15753
      fi
 
15754
      ;;
 
15755
 
 
15756
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15757
      no_undefined_flag_F77='${wl}-z,text'
 
15758
      archive_cmds_need_lc_F77=no
 
15759
      hardcode_shlibpath_var_F77=no
 
15760
      runpath_var='LD_RUN_PATH'
 
15761
 
 
15762
      if test "$GCC" = yes; then
 
15763
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15764
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15765
      else
 
15766
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15767
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15768
      fi
 
15769
      ;;
 
15770
 
 
15771
    sysv5* | sco3.2v5* | sco5v6*)
 
15772
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15773
      # link with -lc, and that would cause any symbols used from libc to
 
15774
      # always be unresolved, which means just about no library would
 
15775
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15776
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15777
      # as -z defs.
 
15778
      no_undefined_flag_F77='${wl}-z,text'
 
15779
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15780
      archive_cmds_need_lc_F77=no
 
15781
      hardcode_shlibpath_var_F77=no
 
15782
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15783
      hardcode_libdir_separator_F77=':'
 
15784
      link_all_deplibs_F77=yes
 
15785
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15786
      runpath_var='LD_RUN_PATH'
 
15787
 
 
15788
      if test "$GCC" = yes; then
 
15789
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15790
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15791
      else
 
15792
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15793
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15794
      fi
 
15795
      ;;
 
15796
 
 
15797
    uts4*)
 
15798
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15799
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15800
      hardcode_shlibpath_var_F77=no
 
15801
      ;;
 
15802
 
 
15803
    *)
 
15804
      ld_shlibs_F77=no
 
15805
      ;;
 
15806
    esac
 
15807
  fi
 
15808
 
 
15809
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15810
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15811
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15812
 
 
15813
#
 
15814
# Do we need to explicitly link libc?
 
15815
#
 
15816
case "x$archive_cmds_need_lc_F77" in
 
15817
x|xyes)
 
15818
  # Assume -lc should be added
 
15819
  archive_cmds_need_lc_F77=yes
 
15820
 
 
15821
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15822
    case $archive_cmds_F77 in
 
15823
    *'~'*)
 
15824
      # FIXME: we may have to deal with multi-command sequences.
 
15825
      ;;
 
15826
    '$CC '*)
 
15827
      # Test whether the compiler implicitly links with -lc since on some
 
15828
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15829
      # to ld, don't add -lc before -lgcc.
 
15830
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15831
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15832
      $rm conftest*
 
15833
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15834
 
 
15835
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15836
  (eval $ac_compile) 2>&5
 
15837
  ac_status=$?
 
15838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15839
  (exit $ac_status); } 2>conftest.err; then
 
15840
        soname=conftest
 
15841
        lib=conftest
 
15842
        libobjs=conftest.$ac_objext
 
15843
        deplibs=
 
15844
        wl=$lt_prog_compiler_wl_F77
 
15845
        pic_flag=$lt_prog_compiler_pic_F77
 
15846
        compiler_flags=-v
 
15847
        linker_flags=-v
 
15848
        verstring=
 
15849
        output_objdir=.
 
15850
        libname=conftest
 
15851
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15852
        allow_undefined_flag_F77=
 
15853
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15854
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15855
  ac_status=$?
 
15856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15857
  (exit $ac_status); }
 
15858
        then
 
15859
          archive_cmds_need_lc_F77=no
 
15860
        else
 
15861
          archive_cmds_need_lc_F77=yes
 
15862
        fi
 
15863
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15864
      else
 
15865
        cat conftest.err 1>&5
 
15866
      fi
 
15867
      $rm conftest*
 
15868
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15869
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15870
      ;;
 
15871
    esac
 
15872
  fi
 
15873
  ;;
 
15874
esac
 
15875
 
 
15876
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15877
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15878
library_names_spec=
 
15879
libname_spec='lib$name'
 
15880
soname_spec=
 
15881
shrext_cmds=".so"
 
15882
postinstall_cmds=
 
15883
postuninstall_cmds=
 
15884
finish_cmds=
 
15885
finish_eval=
 
15886
shlibpath_var=
 
15887
shlibpath_overrides_runpath=unknown
 
15888
version_type=none
 
15889
dynamic_linker="$host_os ld.so"
 
15890
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15891
 
 
15892
need_lib_prefix=unknown
 
15893
hardcode_into_libs=no
 
15894
 
 
15895
# when you set need_version to no, make sure it does not cause -set_version
 
15896
# flags to be left without arguments
 
15897
need_version=unknown
 
15898
 
 
15899
case $host_os in
 
15900
aix3*)
 
15901
  version_type=linux
 
15902
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15903
  shlibpath_var=LIBPATH
 
15904
 
 
15905
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15906
  soname_spec='${libname}${release}${shared_ext}$major'
 
15907
  ;;
 
15908
 
 
15909
aix[4-9]*)
 
15910
  version_type=linux
 
15911
  need_lib_prefix=no
 
15912
  need_version=no
 
15913
  hardcode_into_libs=yes
 
15914
  if test "$host_cpu" = ia64; then
 
15915
    # AIX 5 supports IA64
 
15916
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15917
    shlibpath_var=LD_LIBRARY_PATH
 
15918
  else
 
15919
    # With GCC up to 2.95.x, collect2 would create an import file
 
15920
    # for dependence libraries.  The import file would start with
 
15921
    # the line `#! .'.  This would cause the generated library to
 
15922
    # depend on `.', always an invalid library.  This was fixed in
 
15923
    # development snapshots of GCC prior to 3.0.
 
15924
    case $host_os in
 
15925
      aix4 | aix4.[01] | aix4.[01].*)
 
15926
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15927
           echo ' yes '
 
15928
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15929
        :
 
15930
      else
 
15931
        can_build_shared=no
 
15932
      fi
 
15933
      ;;
 
15934
    esac
 
15935
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15936
    # soname into executable. Probably we can add versioning support to
 
15937
    # collect2, so additional links can be useful in future.
 
15938
    if test "$aix_use_runtimelinking" = yes; then
 
15939
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15940
      # instead of lib<name>.a to let people know that these are not
 
15941
      # typical AIX shared libraries.
 
15942
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15943
    else
 
15944
      # We preserve .a as extension for shared libraries through AIX4.2
 
15945
      # and later when we are not doing run time linking.
 
15946
      library_names_spec='${libname}${release}.a $libname.a'
 
15947
      soname_spec='${libname}${release}${shared_ext}$major'
 
15948
    fi
 
15949
    shlibpath_var=LIBPATH
 
15950
  fi
 
15951
  ;;
 
15952
 
 
15953
amigaos*)
 
15954
  library_names_spec='$libname.ixlibrary $libname.a'
 
15955
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15956
  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'
 
15957
  ;;
 
15958
 
 
15959
beos*)
 
15960
  library_names_spec='${libname}${shared_ext}'
 
15961
  dynamic_linker="$host_os ld.so"
 
15962
  shlibpath_var=LIBRARY_PATH
 
15963
  ;;
 
15964
 
 
15965
bsdi[45]*)
 
15966
  version_type=linux
 
15967
  need_version=no
 
15968
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15969
  soname_spec='${libname}${release}${shared_ext}$major'
 
15970
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15971
  shlibpath_var=LD_LIBRARY_PATH
 
15972
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15973
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15974
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15975
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15976
  # libtool to hard-code these into programs
 
15977
  ;;
 
15978
 
 
15979
cygwin* | mingw* | pw32*)
 
15980
  version_type=windows
 
15981
  shrext_cmds=".dll"
 
15982
  need_version=no
 
15983
  need_lib_prefix=no
 
15984
 
 
15985
  case $GCC,$host_os in
 
15986
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15987
    library_names_spec='$libname.dll.a'
 
15988
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15989
    postinstall_cmds='base_file=`basename \${file}`~
 
15990
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15991
      dldir=$destdir/`dirname \$dlpath`~
 
15992
      test -d \$dldir || mkdir -p \$dldir~
 
15993
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15994
      chmod a+x \$dldir/$dlname'
 
15995
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15996
      dlpath=$dir/\$dldll~
 
15997
       $rm \$dlpath'
 
15998
    shlibpath_overrides_runpath=yes
 
15999
 
 
16000
    case $host_os in
 
16001
    cygwin*)
 
16002
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16003
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16004
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16005
      ;;
 
16006
    mingw*)
 
16007
      # MinGW DLLs use traditional 'lib' prefix
 
16008
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16009
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16010
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16011
        # It is most probably a Windows format PATH printed by
 
16012
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16013
        # path with ; separators, and with drive letters. We can handle the
 
16014
        # drive letters (cygwin fileutils understands them), so leave them,
 
16015
        # especially as we might pass files found there to a mingw objdump,
 
16016
        # which wouldn't understand a cygwinified path. Ahh.
 
16017
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16018
      else
 
16019
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16020
      fi
 
16021
      ;;
 
16022
    pw32*)
 
16023
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16024
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16025
      ;;
 
16026
    esac
 
16027
    ;;
 
16028
 
 
16029
  *)
 
16030
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16031
    ;;
 
16032
  esac
 
16033
  dynamic_linker='Win32 ld.exe'
 
16034
  # FIXME: first we should search . and the directory the executable is in
 
16035
  shlibpath_var=PATH
 
16036
  ;;
 
16037
 
 
16038
darwin* | rhapsody*)
 
16039
  dynamic_linker="$host_os dyld"
 
16040
  version_type=darwin
 
16041
  need_lib_prefix=no
 
16042
  need_version=no
 
16043
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16044
  soname_spec='${libname}${release}${major}$shared_ext'
 
16045
  shlibpath_overrides_runpath=yes
 
16046
  shlibpath_var=DYLD_LIBRARY_PATH
 
16047
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16048
   
 
16049
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16050
  ;;
 
16051
 
 
16052
dgux*)
 
16053
  version_type=linux
 
16054
  need_lib_prefix=no
 
16055
  need_version=no
 
16056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16057
  soname_spec='${libname}${release}${shared_ext}$major'
 
16058
  shlibpath_var=LD_LIBRARY_PATH
 
16059
  ;;
 
16060
 
 
16061
freebsd1*)
 
16062
  dynamic_linker=no
 
16063
  ;;
 
16064
 
 
16065
freebsd* | dragonfly*)
 
16066
  # DragonFly does not have aout.  When/if they implement a new
 
16067
  # versioning mechanism, adjust this.
 
16068
  if test -x /usr/bin/objformat; then
 
16069
    objformat=`/usr/bin/objformat`
 
16070
  else
 
16071
    case $host_os in
 
16072
    freebsd[123]*) objformat=aout ;;
 
16073
    *) objformat=elf ;;
 
16074
    esac
 
16075
  fi
 
16076
  version_type=freebsd-$objformat
 
16077
  case $version_type in
 
16078
    freebsd-elf*)
 
16079
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16080
      need_version=no
 
16081
      need_lib_prefix=no
 
16082
      ;;
 
16083
    freebsd-*)
 
16084
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16085
      need_version=yes
 
16086
      ;;
 
16087
  esac
 
16088
  shlibpath_var=LD_LIBRARY_PATH
 
16089
  case $host_os in
 
16090
  freebsd2*)
 
16091
    shlibpath_overrides_runpath=yes
 
16092
    ;;
 
16093
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16094
    shlibpath_overrides_runpath=yes
 
16095
    hardcode_into_libs=yes
 
16096
    ;;
 
16097
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16098
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16099
    shlibpath_overrides_runpath=no
 
16100
    hardcode_into_libs=yes
 
16101
    ;;
 
16102
  *) # from 4.6 on, and DragonFly
 
16103
    shlibpath_overrides_runpath=yes
 
16104
    hardcode_into_libs=yes
 
16105
    ;;
 
16106
  esac
 
16107
  ;;
 
16108
 
 
16109
gnu*)
 
16110
  version_type=linux
 
16111
  need_lib_prefix=no
 
16112
  need_version=no
 
16113
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16114
  soname_spec='${libname}${release}${shared_ext}$major'
 
16115
  shlibpath_var=LD_LIBRARY_PATH
 
16116
  hardcode_into_libs=yes
 
16117
  ;;
 
16118
 
 
16119
hpux9* | hpux10* | hpux11*)
 
16120
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16121
  # link against other versions.
 
16122
  version_type=sunos
 
16123
  need_lib_prefix=no
 
16124
  need_version=no
 
16125
  case $host_cpu in
 
16126
  ia64*)
 
16127
    shrext_cmds='.so'
 
16128
    hardcode_into_libs=yes
 
16129
    dynamic_linker="$host_os dld.so"
 
16130
    shlibpath_var=LD_LIBRARY_PATH
 
16131
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16132
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16133
    soname_spec='${libname}${release}${shared_ext}$major'
 
16134
    if test "X$HPUX_IA64_MODE" = X32; then
 
16135
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16136
    else
 
16137
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16138
    fi
 
16139
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16140
    ;;
 
16141
   hppa*64*)
 
16142
     shrext_cmds='.sl'
 
16143
     hardcode_into_libs=yes
 
16144
     dynamic_linker="$host_os dld.sl"
 
16145
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16146
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16147
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16148
     soname_spec='${libname}${release}${shared_ext}$major'
 
16149
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16150
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16151
     ;;
 
16152
   *)
 
16153
    shrext_cmds='.sl'
 
16154
    dynamic_linker="$host_os dld.sl"
 
16155
    shlibpath_var=SHLIB_PATH
 
16156
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16157
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16158
    soname_spec='${libname}${release}${shared_ext}$major'
 
16159
    ;;
 
16160
  esac
 
16161
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16162
  postinstall_cmds='chmod 555 $lib'
 
16163
  ;;
 
16164
 
 
16165
interix[3-9]*)
 
16166
  version_type=linux
 
16167
  need_lib_prefix=no
 
16168
  need_version=no
 
16169
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16170
  soname_spec='${libname}${release}${shared_ext}$major'
 
16171
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16172
  shlibpath_var=LD_LIBRARY_PATH
 
16173
  shlibpath_overrides_runpath=no
 
16174
  hardcode_into_libs=yes
 
16175
  ;;
 
16176
 
 
16177
irix5* | irix6* | nonstopux*)
 
16178
  case $host_os in
 
16179
    nonstopux*) version_type=nonstopux ;;
 
16180
    *)
 
16181
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16182
                version_type=linux
 
16183
        else
 
16184
                version_type=irix
 
16185
        fi ;;
 
16186
  esac
 
16187
  need_lib_prefix=no
 
16188
  need_version=no
 
16189
  soname_spec='${libname}${release}${shared_ext}$major'
 
16190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16191
  case $host_os in
 
16192
  irix5* | nonstopux*)
 
16193
    libsuff= shlibsuff=
 
16194
    ;;
 
16195
  *)
 
16196
    case $LD in # libtool.m4 will add one of these switches to LD
 
16197
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16198
      libsuff= shlibsuff= libmagic=32-bit;;
 
16199
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16200
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16201
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16202
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16203
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16204
    esac
 
16205
    ;;
 
16206
  esac
 
16207
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16208
  shlibpath_overrides_runpath=no
 
16209
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16210
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16211
  hardcode_into_libs=yes
 
16212
  ;;
 
16213
 
 
16214
# No shared lib support for Linux oldld, aout, or coff.
 
16215
linux*oldld* | linux*aout* | linux*coff*)
 
16216
  dynamic_linker=no
 
16217
  ;;
 
16218
 
 
16219
# This must be Linux ELF.
 
16220
linux* | k*bsd*-gnu)
 
16221
  version_type=linux
 
16222
  need_lib_prefix=no
 
16223
  need_version=no
 
16224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16225
  soname_spec='${libname}${release}${shared_ext}$major'
 
16226
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16227
  shlibpath_var=LD_LIBRARY_PATH
 
16228
  shlibpath_overrides_runpath=no
 
16229
  # This implies no fast_install, which is unacceptable.
 
16230
  # Some rework will be needed to allow for fast_install
 
16231
  # before this can be enabled.
 
16232
  hardcode_into_libs=yes
 
16233
 
 
16234
  # Append ld.so.conf contents to the search path
 
16235
  if test -f /etc/ld.so.conf; then
 
16236
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16237
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16238
  fi
 
16239
 
 
16240
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16241
  # powerpc, because MkLinux only supported shared libraries with the
 
16242
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16243
  # most powerpc-linux boxes support dynamic linking these days and
 
16244
  # people can always --disable-shared, the test was removed, and we
 
16245
  # assume the GNU/Linux dynamic linker is in use.
 
16246
  dynamic_linker='GNU/Linux ld.so'
 
16247
  ;;
 
16248
 
 
16249
netbsdelf*-gnu)
 
16250
  version_type=linux
 
16251
  need_lib_prefix=no
 
16252
  need_version=no
 
16253
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16254
  soname_spec='${libname}${release}${shared_ext}$major'
 
16255
  shlibpath_var=LD_LIBRARY_PATH
 
16256
  shlibpath_overrides_runpath=no
 
16257
  hardcode_into_libs=yes
 
16258
  dynamic_linker='NetBSD ld.elf_so'
 
16259
  ;;
 
16260
 
 
16261
netbsd*)
 
16262
  version_type=sunos
 
16263
  need_lib_prefix=no
 
16264
  need_version=no
 
16265
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16266
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16267
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16268
    dynamic_linker='NetBSD (a.out) ld.so'
 
16269
  else
 
16270
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16271
    soname_spec='${libname}${release}${shared_ext}$major'
 
16272
    dynamic_linker='NetBSD ld.elf_so'
 
16273
  fi
 
16274
  shlibpath_var=LD_LIBRARY_PATH
 
16275
  shlibpath_overrides_runpath=yes
 
16276
  hardcode_into_libs=yes
 
16277
  ;;
 
16278
 
 
16279
newsos6)
 
16280
  version_type=linux
 
16281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16282
  shlibpath_var=LD_LIBRARY_PATH
 
16283
  shlibpath_overrides_runpath=yes
 
16284
  ;;
 
16285
 
 
16286
nto-qnx*)
 
16287
  version_type=linux
 
16288
  need_lib_prefix=no
 
16289
  need_version=no
 
16290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16291
  soname_spec='${libname}${release}${shared_ext}$major'
 
16292
  shlibpath_var=LD_LIBRARY_PATH
 
16293
  shlibpath_overrides_runpath=yes
 
16294
  ;;
 
16295
 
 
16296
openbsd*)
 
16297
  version_type=sunos
 
16298
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16299
  need_lib_prefix=no
 
16300
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16301
  case $host_os in
 
16302
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16303
    *)                         need_version=no  ;;
 
16304
  esac
 
16305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16306
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16307
  shlibpath_var=LD_LIBRARY_PATH
 
16308
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16309
    case $host_os in
 
16310
      openbsd2.[89] | openbsd2.[89].*)
 
16311
        shlibpath_overrides_runpath=no
 
16312
        ;;
 
16313
      *)
 
16314
        shlibpath_overrides_runpath=yes
 
16315
        ;;
 
16316
      esac
 
16317
  else
 
16318
    shlibpath_overrides_runpath=yes
 
16319
  fi
 
16320
  ;;
 
16321
 
 
16322
os2*)
 
16323
  libname_spec='$name'
 
16324
  shrext_cmds=".dll"
 
16325
  need_lib_prefix=no
 
16326
  library_names_spec='$libname${shared_ext} $libname.a'
 
16327
  dynamic_linker='OS/2 ld.exe'
 
16328
  shlibpath_var=LIBPATH
 
16329
  ;;
 
16330
 
 
16331
osf3* | osf4* | osf5*)
 
16332
  version_type=osf
 
16333
  need_lib_prefix=no
 
16334
  need_version=no
 
16335
  soname_spec='${libname}${release}${shared_ext}$major'
 
16336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16337
  shlibpath_var=LD_LIBRARY_PATH
 
16338
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16339
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16340
  ;;
 
16341
 
 
16342
rdos*)
 
16343
  dynamic_linker=no
 
16344
  ;;
 
16345
 
 
16346
solaris*)
 
16347
  version_type=linux
 
16348
  need_lib_prefix=no
 
16349
  need_version=no
 
16350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16351
  soname_spec='${libname}${release}${shared_ext}$major'
 
16352
  shlibpath_var=LD_LIBRARY_PATH
 
16353
  shlibpath_overrides_runpath=yes
 
16354
  hardcode_into_libs=yes
 
16355
  # ldd complains unless libraries are executable
 
16356
  postinstall_cmds='chmod +x $lib'
 
16357
  ;;
 
16358
 
 
16359
sunos4*)
 
16360
  version_type=sunos
 
16361
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16362
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16363
  shlibpath_var=LD_LIBRARY_PATH
 
16364
  shlibpath_overrides_runpath=yes
 
16365
  if test "$with_gnu_ld" = yes; then
 
16366
    need_lib_prefix=no
 
16367
  fi
 
16368
  need_version=yes
 
16369
  ;;
 
16370
 
 
16371
sysv4 | sysv4.3*)
 
16372
  version_type=linux
 
16373
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16374
  soname_spec='${libname}${release}${shared_ext}$major'
 
16375
  shlibpath_var=LD_LIBRARY_PATH
 
16376
  case $host_vendor in
 
16377
    sni)
 
16378
      shlibpath_overrides_runpath=no
 
16379
      need_lib_prefix=no
 
16380
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16381
      runpath_var=LD_RUN_PATH
 
16382
      ;;
 
16383
    siemens)
 
16384
      need_lib_prefix=no
 
16385
      ;;
 
16386
    motorola)
 
16387
      need_lib_prefix=no
 
16388
      need_version=no
 
16389
      shlibpath_overrides_runpath=no
 
16390
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16391
      ;;
 
16392
  esac
 
16393
  ;;
 
16394
 
 
16395
sysv4*MP*)
 
16396
  if test -d /usr/nec ;then
 
16397
    version_type=linux
 
16398
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16399
    soname_spec='$libname${shared_ext}.$major'
 
16400
    shlibpath_var=LD_LIBRARY_PATH
 
16401
  fi
 
16402
  ;;
 
16403
 
 
16404
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16405
  version_type=freebsd-elf
 
16406
  need_lib_prefix=no
 
16407
  need_version=no
 
16408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16409
  soname_spec='${libname}${release}${shared_ext}$major'
 
16410
  shlibpath_var=LD_LIBRARY_PATH
 
16411
  hardcode_into_libs=yes
 
16412
  if test "$with_gnu_ld" = yes; then
 
16413
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16414
    shlibpath_overrides_runpath=no
 
16415
  else
 
16416
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16417
    shlibpath_overrides_runpath=yes
 
16418
    case $host_os in
 
16419
      sco3.2v5*)
 
16420
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16421
        ;;
 
16422
    esac
 
16423
  fi
 
16424
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16425
  ;;
 
16426
 
 
16427
uts4*)
 
16428
  version_type=linux
 
16429
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16430
  soname_spec='${libname}${release}${shared_ext}$major'
 
16431
  shlibpath_var=LD_LIBRARY_PATH
 
16432
  ;;
 
16433
 
 
16434
*)
 
16435
  dynamic_linker=no
 
16436
  ;;
 
16437
esac
 
16438
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16439
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16440
test "$dynamic_linker" = no && can_build_shared=no
 
16441
 
 
16442
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16444
else
 
16445
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16446
fi
 
16447
 
 
16448
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16449
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16451
else
 
16452
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16453
fi
 
16454
 
 
16455
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16456
 
 
16457
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16458
if test "$GCC" = yes; then
 
16459
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16460
fi
 
16461
 
 
16462
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16463
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16464
hardcode_action_F77=
 
16465
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16466
   test -n "$runpath_var_F77" || \
 
16467
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16468
 
 
16469
  # We can hardcode non-existant directories.
 
16470
  if test "$hardcode_direct_F77" != no &&
 
16471
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16472
     # have to relink, otherwise we might link with an installed library
 
16473
     # when we should be linking with a yet-to-be-installed one
 
16474
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16475
     test "$hardcode_minus_L_F77" != no; then
 
16476
    # Linking always hardcodes the temporary library directory.
 
16477
    hardcode_action_F77=relink
 
16478
  else
 
16479
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16480
    hardcode_action_F77=immediate
 
16481
  fi
 
16482
else
 
16483
  # We cannot hardcode anything, or else we can only hardcode existing
 
16484
  # directories.
 
16485
  hardcode_action_F77=unsupported
 
16486
fi
 
16487
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16488
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16489
 
 
16490
if test "$hardcode_action_F77" = relink; then
 
16491
  # Fast installation is not supported
 
16492
  enable_fast_install=no
 
16493
elif test "$shlibpath_overrides_runpath" = yes ||
 
16494
     test "$enable_shared" = no; then
 
16495
  # Fast installation is not necessary
 
16496
  enable_fast_install=needless
 
16497
fi
 
16498
 
 
16499
 
 
16500
# The else clause should only fire when bootstrapping the
 
16501
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16502
# with your package, and you will get complaints that there are
 
16503
# no rules to generate ltmain.sh.
 
16504
if test -f "$ltmain"; then
 
16505
  # See if we are running on zsh, and set the options which allow our commands through
 
16506
  # without removal of \ escapes.
 
16507
  if test -n "${ZSH_VERSION+set}" ; then
 
16508
    setopt NO_GLOB_SUBST
 
16509
  fi
 
16510
  # Now quote all the things that may contain metacharacters while being
 
16511
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16512
  # variables and quote the copies for generation of the libtool script.
 
16513
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16514
    SED SHELL STRIP \
 
16515
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16516
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16517
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16518
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16519
    lt_cv_sys_global_symbol_to_c_name_address \
 
16520
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16521
    old_postinstall_cmds old_postuninstall_cmds \
 
16522
    compiler_F77 \
 
16523
    CC_F77 \
 
16524
    LD_F77 \
 
16525
    lt_prog_compiler_wl_F77 \
 
16526
    lt_prog_compiler_pic_F77 \
 
16527
    lt_prog_compiler_static_F77 \
 
16528
    lt_prog_compiler_no_builtin_flag_F77 \
 
16529
    export_dynamic_flag_spec_F77 \
 
16530
    thread_safe_flag_spec_F77 \
 
16531
    whole_archive_flag_spec_F77 \
 
16532
    enable_shared_with_static_runtimes_F77 \
 
16533
    old_archive_cmds_F77 \
 
16534
    old_archive_from_new_cmds_F77 \
 
16535
    predep_objects_F77 \
 
16536
    postdep_objects_F77 \
 
16537
    predeps_F77 \
 
16538
    postdeps_F77 \
 
16539
    compiler_lib_search_path_F77 \
 
16540
    compiler_lib_search_dirs_F77 \
 
16541
    archive_cmds_F77 \
 
16542
    archive_expsym_cmds_F77 \
 
16543
    postinstall_cmds_F77 \
 
16544
    postuninstall_cmds_F77 \
 
16545
    old_archive_from_expsyms_cmds_F77 \
 
16546
    allow_undefined_flag_F77 \
 
16547
    no_undefined_flag_F77 \
 
16548
    export_symbols_cmds_F77 \
 
16549
    hardcode_libdir_flag_spec_F77 \
 
16550
    hardcode_libdir_flag_spec_ld_F77 \
 
16551
    hardcode_libdir_separator_F77 \
 
16552
    hardcode_automatic_F77 \
 
16553
    module_cmds_F77 \
 
16554
    module_expsym_cmds_F77 \
 
16555
    lt_cv_prog_compiler_c_o_F77 \
 
16556
    fix_srcfile_path_F77 \
 
16557
    exclude_expsyms_F77 \
 
16558
    include_expsyms_F77; do
 
16559
 
 
16560
    case $var in
 
16561
    old_archive_cmds_F77 | \
 
16562
    old_archive_from_new_cmds_F77 | \
 
16563
    archive_cmds_F77 | \
 
16564
    archive_expsym_cmds_F77 | \
 
16565
    module_cmds_F77 | \
 
16566
    module_expsym_cmds_F77 | \
 
16567
    old_archive_from_expsyms_cmds_F77 | \
 
16568
    export_symbols_cmds_F77 | \
 
16569
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16570
    postinstall_cmds | postuninstall_cmds | \
 
16571
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16572
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16573
      # Double-quote double-evaled strings.
 
16574
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16575
      ;;
 
16576
    *)
 
16577
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16578
      ;;
 
16579
    esac
 
16580
  done
 
16581
 
 
16582
  case $lt_echo in
 
16583
  *'\$0 --fallback-echo"')
 
16584
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16585
    ;;
 
16586
  esac
 
16587
 
 
16588
cfgfile="$ofile"
 
16589
 
 
16590
  cat <<__EOF__ >> "$cfgfile"
 
16591
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16592
 
 
16593
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16594
 
 
16595
# Shell to use when invoking shell scripts.
 
16596
SHELL=$lt_SHELL
 
16597
 
 
16598
# Whether or not to build shared libraries.
 
16599
build_libtool_libs=$enable_shared
 
16600
 
 
16601
# Whether or not to build static libraries.
 
16602
build_old_libs=$enable_static
 
16603
 
 
16604
# Whether or not to add -lc for building shared libraries.
 
16605
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16606
 
 
16607
# Whether or not to disallow shared libs when runtime libs are static
 
16608
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16609
 
 
16610
# Whether or not to optimize for fast installation.
 
16611
fast_install=$enable_fast_install
 
16612
 
 
16613
# The host system.
 
16614
host_alias=$host_alias
 
16615
host=$host
 
16616
host_os=$host_os
 
16617
 
 
16618
# The build system.
 
16619
build_alias=$build_alias
 
16620
build=$build
 
16621
build_os=$build_os
 
16622
 
 
16623
# An echo program that does not interpret backslashes.
 
16624
echo=$lt_echo
 
16625
 
 
16626
# The archiver.
 
16627
AR=$lt_AR
 
16628
AR_FLAGS=$lt_AR_FLAGS
 
16629
 
 
16630
# A C compiler.
 
16631
LTCC=$lt_LTCC
 
16632
 
 
16633
# LTCC compiler flags.
 
16634
LTCFLAGS=$lt_LTCFLAGS
 
16635
 
 
16636
# A language-specific compiler.
 
16637
CC=$lt_compiler_F77
 
16638
 
 
16639
# Is the compiler the GNU C compiler?
 
16640
with_gcc=$GCC_F77
 
16641
 
 
16642
# An ERE matcher.
 
16643
EGREP=$lt_EGREP
 
16644
 
 
16645
# The linker used to build libraries.
 
16646
LD=$lt_LD_F77
 
16647
 
 
16648
# Whether we need hard or soft links.
 
16649
LN_S=$lt_LN_S
 
16650
 
 
16651
# A BSD-compatible nm program.
 
16652
NM=$lt_NM
 
16653
 
 
16654
# A symbol stripping program
 
16655
STRIP=$lt_STRIP
 
16656
 
 
16657
# Used to examine libraries when file_magic_cmd begins "file"
 
16658
MAGIC_CMD=$MAGIC_CMD
 
16659
 
 
16660
# Used on cygwin: DLL creation program.
 
16661
DLLTOOL="$DLLTOOL"
 
16662
 
 
16663
# Used on cygwin: object dumper.
 
16664
OBJDUMP="$OBJDUMP"
 
16665
 
 
16666
# Used on cygwin: assembler.
 
16667
AS="$AS"
 
16668
 
 
16669
# The name of the directory that contains temporary libtool files.
 
16670
objdir=$objdir
 
16671
 
 
16672
# How to create reloadable object files.
 
16673
reload_flag=$lt_reload_flag
 
16674
reload_cmds=$lt_reload_cmds
 
16675
 
 
16676
# How to pass a linker flag through the compiler.
 
16677
wl=$lt_lt_prog_compiler_wl_F77
 
16678
 
 
16679
# Object file suffix (normally "o").
 
16680
objext="$ac_objext"
 
16681
 
 
16682
# Old archive suffix (normally "a").
 
16683
libext="$libext"
 
16684
 
 
16685
# Shared library suffix (normally ".so").
 
16686
shrext_cmds='$shrext_cmds'
 
16687
 
 
16688
# Executable file suffix (normally "").
 
16689
exeext="$exeext"
 
16690
 
 
16691
# Additional compiler flags for building library objects.
 
16692
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16693
pic_mode=$pic_mode
 
16694
 
 
16695
# What is the maximum length of a command?
 
16696
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16697
 
 
16698
# Does compiler simultaneously support -c and -o options?
 
16699
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16700
 
 
16701
# Must we lock files when doing compilation?
 
16702
need_locks=$lt_need_locks
 
16703
 
 
16704
# Do we need the lib prefix for modules?
 
16705
need_lib_prefix=$need_lib_prefix
 
16706
 
 
16707
# Do we need a version for libraries?
 
16708
need_version=$need_version
 
16709
 
 
16710
# Whether dlopen is supported.
 
16711
dlopen_support=$enable_dlopen
 
16712
 
 
16713
# Whether dlopen of programs is supported.
 
16714
dlopen_self=$enable_dlopen_self
 
16715
 
 
16716
# Whether dlopen of statically linked programs is supported.
 
16717
dlopen_self_static=$enable_dlopen_self_static
 
16718
 
 
16719
# Compiler flag to prevent dynamic linking.
 
16720
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16721
 
 
16722
# Compiler flag to turn off builtin functions.
 
16723
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16724
 
 
16725
# Compiler flag to allow reflexive dlopens.
 
16726
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16727
 
 
16728
# Compiler flag to generate shared objects directly from archives.
 
16729
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16730
 
 
16731
# Compiler flag to generate thread-safe objects.
 
16732
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16733
 
 
16734
# Library versioning type.
 
16735
version_type=$version_type
 
16736
 
 
16737
# Format of library name prefix.
 
16738
libname_spec=$lt_libname_spec
 
16739
 
 
16740
# List of archive names.  First name is the real one, the rest are links.
 
16741
# The last name is the one that the linker finds with -lNAME.
 
16742
library_names_spec=$lt_library_names_spec
 
16743
 
 
16744
# The coded name of the library, if different from the real name.
 
16745
soname_spec=$lt_soname_spec
 
16746
 
 
16747
# Commands used to build and install an old-style archive.
 
16748
RANLIB=$lt_RANLIB
 
16749
old_archive_cmds=$lt_old_archive_cmds_F77
 
16750
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16751
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16752
 
 
16753
# Create an old-style archive from a shared archive.
 
16754
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16755
 
 
16756
# Create a temporary old-style archive to link instead of a shared archive.
 
16757
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16758
 
 
16759
# Commands used to build and install a shared archive.
 
16760
archive_cmds=$lt_archive_cmds_F77
 
16761
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16762
postinstall_cmds=$lt_postinstall_cmds
 
16763
postuninstall_cmds=$lt_postuninstall_cmds
 
16764
 
 
16765
# Commands used to build a loadable module (assumed same as above if empty)
 
16766
module_cmds=$lt_module_cmds_F77
 
16767
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16768
 
 
16769
# Commands to strip libraries.
 
16770
old_striplib=$lt_old_striplib
 
16771
striplib=$lt_striplib
 
16772
 
 
16773
# Dependencies to place before the objects being linked to create a
 
16774
# shared library.
 
16775
predep_objects=$lt_predep_objects_F77
 
16776
 
 
16777
# Dependencies to place after the objects being linked to create a
 
16778
# shared library.
 
16779
postdep_objects=$lt_postdep_objects_F77
 
16780
 
 
16781
# Dependencies to place before the objects being linked to create a
 
16782
# shared library.
 
16783
predeps=$lt_predeps_F77
 
16784
 
 
16785
# Dependencies to place after the objects being linked to create a
 
16786
# shared library.
 
16787
postdeps=$lt_postdeps_F77
 
16788
 
 
16789
# The directories searched by this compiler when creating a shared
 
16790
# library
 
16791
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16792
 
 
16793
# The library search path used internally by the compiler when linking
 
16794
# a shared library.
 
16795
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16796
 
 
16797
# Method to check whether dependent libraries are shared objects.
 
16798
deplibs_check_method=$lt_deplibs_check_method
 
16799
 
 
16800
# Command to use when deplibs_check_method == file_magic.
 
16801
file_magic_cmd=$lt_file_magic_cmd
 
16802
 
 
16803
# Flag that allows shared libraries with undefined symbols to be built.
 
16804
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16805
 
 
16806
# Flag that forces no undefined symbols.
 
16807
no_undefined_flag=$lt_no_undefined_flag_F77
 
16808
 
 
16809
# Commands used to finish a libtool library installation in a directory.
 
16810
finish_cmds=$lt_finish_cmds
 
16811
 
 
16812
# Same as above, but a single script fragment to be evaled but not shown.
 
16813
finish_eval=$lt_finish_eval
 
16814
 
 
16815
# Take the output of nm and produce a listing of raw symbols and C names.
 
16816
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16817
 
 
16818
# Transform the output of nm in a proper C declaration
 
16819
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16820
 
 
16821
# Transform the output of nm in a C name address pair
 
16822
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16823
 
 
16824
# This is the shared library runtime path variable.
 
16825
runpath_var=$runpath_var
 
16826
 
 
16827
# This is the shared library path variable.
 
16828
shlibpath_var=$shlibpath_var
 
16829
 
 
16830
# Is shlibpath searched before the hard-coded library search path?
 
16831
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16832
 
 
16833
# How to hardcode a shared library path into an executable.
 
16834
hardcode_action=$hardcode_action_F77
 
16835
 
 
16836
# Whether we should hardcode library paths into libraries.
 
16837
hardcode_into_libs=$hardcode_into_libs
 
16838
 
 
16839
# Flag to hardcode \$libdir into a binary during linking.
 
16840
# This must work even if \$libdir does not exist.
 
16841
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16842
 
 
16843
# If ld is used when linking, flag to hardcode \$libdir into
 
16844
# a binary during linking. This must work even if \$libdir does
 
16845
# not exist.
 
16846
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16847
 
 
16848
# Whether we need a single -rpath flag with a separated argument.
 
16849
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16850
 
 
16851
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16852
# resulting binary.
 
16853
hardcode_direct=$hardcode_direct_F77
 
16854
 
 
16855
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16856
# resulting binary.
 
16857
hardcode_minus_L=$hardcode_minus_L_F77
 
16858
 
 
16859
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16860
# the resulting binary.
 
16861
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16862
 
 
16863
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16864
# and all subsequent libraries and executables linked against it.
 
16865
hardcode_automatic=$hardcode_automatic_F77
 
16866
 
 
16867
# Variables whose values should be saved in libtool wrapper scripts and
 
16868
# restored at relink time.
 
16869
variables_saved_for_relink="$variables_saved_for_relink"
 
16870
 
 
16871
# Whether libtool must link a program against all its dependency libraries.
 
16872
link_all_deplibs=$link_all_deplibs_F77
 
16873
 
 
16874
# Compile-time system search path for libraries
 
16875
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16876
 
 
16877
# Run-time system search path for libraries
 
16878
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16879
 
 
16880
# Fix the shell variable \$srcfile for the compiler.
 
16881
fix_srcfile_path=$lt_fix_srcfile_path
 
16882
 
 
16883
# Set to yes if exported symbols are required.
 
16884
always_export_symbols=$always_export_symbols_F77
 
16885
 
 
16886
# The commands to list exported symbols.
 
16887
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16888
 
 
16889
# The commands to extract the exported symbol list from a shared archive.
 
16890
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16891
 
 
16892
# Symbols that should not be listed in the preloaded symbols.
 
16893
exclude_expsyms=$lt_exclude_expsyms_F77
 
16894
 
 
16895
# Symbols that must always be exported.
 
16896
include_expsyms=$lt_include_expsyms_F77
 
16897
 
 
16898
# ### END LIBTOOL TAG CONFIG: $tagname
 
16899
 
 
16900
__EOF__
 
16901
 
 
16902
 
 
16903
else
 
16904
  # If there is no Makefile yet, we rely on a make rule to execute
 
16905
  # `config.status --recheck' to rerun these tests and create the
 
16906
  # libtool script then.
 
16907
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16908
  if test -f "$ltmain_in"; then
 
16909
    test -f Makefile && make "$ltmain"
 
16910
  fi
 
16911
fi
 
16912
 
 
16913
 
 
16914
ac_ext=c
 
16915
ac_cpp='$CPP $CPPFLAGS'
 
16916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16919
 
 
16920
CC="$lt_save_CC"
 
16921
 
 
16922
        else
 
16923
          tagname=""
 
16924
        fi
 
16925
        ;;
 
16926
 
 
16927
      GCJ)
 
16928
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16929
          
 
16930
 
 
16931
# Source file extension for Java test sources.
 
16932
ac_ext=java
 
16933
 
 
16934
# Object file extension for compiled Java test sources.
 
16935
objext=o
 
16936
objext_GCJ=$objext
 
16937
 
 
16938
# Code to be used in simple compile tests
 
16939
lt_simple_compile_test_code="class foo {}"
 
16940
 
 
16941
# Code to be used in simple link tests
 
16942
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16943
 
 
16944
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16945
 
 
16946
# If no C compiler was specified, use CC.
 
16947
LTCC=${LTCC-"$CC"}
 
16948
 
 
16949
# If no C compiler flags were specified, use CFLAGS.
 
16950
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16951
 
 
16952
# Allow CC to be a program name with arguments.
 
16953
compiler=$CC
 
16954
 
 
16955
 
 
16956
# save warnings/boilerplate of simple test code
 
16957
ac_outfile=conftest.$ac_objext
 
16958
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16959
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16960
_lt_compiler_boilerplate=`cat conftest.err`
 
16961
$rm conftest*
 
16962
 
 
16963
ac_outfile=conftest.$ac_objext
 
16964
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16965
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16966
_lt_linker_boilerplate=`cat conftest.err`
 
16967
$rm -r conftest*
 
16968
 
 
16969
 
 
16970
# Allow CC to be a program name with arguments.
 
16971
lt_save_CC="$CC"
 
16972
CC=${GCJ-"gcj"}
 
16973
compiler=$CC
 
16974
compiler_GCJ=$CC
 
16975
for cc_temp in $compiler""; do
 
16976
  case $cc_temp in
 
16977
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16978
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16979
    \-*) ;;
 
16980
    *) break;;
 
16981
  esac
 
16982
done
 
16983
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16984
 
 
16985
 
 
16986
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16987
archive_cmds_need_lc_GCJ=no
 
16988
 
 
16989
old_archive_cmds_GCJ=$old_archive_cmds
 
16990
 
 
16991
## CAVEAT EMPTOR:
 
16992
## There is no encapsulation within the following macros, do not change
 
16993
## the running order or otherwise move them around unless you know exactly
 
16994
## what you are doing...
 
16995
 
 
16996
lt_prog_compiler_no_builtin_flag_GCJ=
 
16997
 
 
16998
if test "$GCC" = yes; then
 
16999
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17000
 
 
17001
  
 
17002
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17003
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
17004
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17006
else
 
17007
  lt_cv_prog_compiler_rtti_exceptions=no
 
17008
  ac_outfile=conftest.$ac_objext
 
17009
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17010
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17011
   # Insert the option either (1) after the last *FLAGS variable, or
 
17012
   # (2) before a word containing "conftest.", or (3) at the end.
 
17013
   # Note that $ac_compile itself does not contain backslashes and begins
 
17014
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17015
   # The option is referenced via a variable to avoid confusing sed.
 
17016
   lt_compile=`echo "$ac_compile" | $SED \
 
17017
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17018
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17019
   -e 's:$: $lt_compiler_flag:'`
 
17020
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
17021
   (eval "$lt_compile" 2>conftest.err)
 
17022
   ac_status=$?
 
17023
   cat conftest.err >&5
 
17024
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
17025
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17026
     # The compiler can only warn and ignore the option if not recognized
 
17027
     # So say no if there are warnings other than the usual output.
 
17028
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17029
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17030
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17031
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17032
     fi
 
17033
   fi
 
17034
   $rm conftest*
 
17035
 
 
17036
fi
 
17037
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17038
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17039
 
 
17040
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17041
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17042
else
 
17043
    :
 
17044
fi
 
17045
 
 
17046
fi
 
17047
 
 
17048
lt_prog_compiler_wl_GCJ=
 
17049
lt_prog_compiler_pic_GCJ=
 
17050
lt_prog_compiler_static_GCJ=
 
17051
 
 
17052
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17053
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
17054
 
 
17055
  if test "$GCC" = yes; then
 
17056
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17057
    lt_prog_compiler_static_GCJ='-static'
 
17058
 
 
17059
    case $host_os in
 
17060
      aix*)
 
17061
      # All AIX code is PIC.
 
17062
      if test "$host_cpu" = ia64; then
 
17063
        # AIX 5 now supports IA64 processor
 
17064
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17065
      fi
 
17066
      ;;
 
17067
 
 
17068
    amigaos*)
 
17069
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17070
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17071
      # like `-m68040'.
 
17072
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17073
      ;;
 
17074
 
 
17075
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17076
      # PIC is the default for these OSes.
 
17077
      ;;
 
17078
 
 
17079
    mingw* | cygwin* | pw32* | os2*)
 
17080
      # This hack is so that the source file can tell whether it is being
 
17081
      # built for inclusion in a dll (and should export symbols for example).
 
17082
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17083
      # (--disable-auto-import) libraries
 
17084
      
 
17085
      ;;
 
17086
 
 
17087
    darwin* | rhapsody*)
 
17088
      # PIC is the default on this platform
 
17089
      # Common symbols not allowed in MH_DYLIB files
 
17090
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17091
      ;;
 
17092
 
 
17093
    interix[3-9]*)
 
17094
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17095
      # Instead, we relocate shared libraries at runtime.
 
17096
      ;;
 
17097
 
 
17098
    msdosdjgpp*)
 
17099
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17100
      # on systems that don't support them.
 
17101
      lt_prog_compiler_can_build_shared_GCJ=no
 
17102
      enable_shared=no
 
17103
      ;;
 
17104
 
 
17105
    sysv4*MP*)
 
17106
      if test -d /usr/nec; then
 
17107
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17108
      fi
 
17109
      ;;
 
17110
 
 
17111
    hpux*)
 
17112
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17113
      # not for PA HP-UX.
 
17114
      case $host_cpu in
 
17115
      hppa*64*|ia64*)
 
17116
        # +Z the default
 
17117
        ;;
 
17118
      *)
 
17119
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17120
        ;;
 
17121
      esac
 
17122
      ;;
 
17123
 
 
17124
    *)
 
17125
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17126
      ;;
 
17127
    esac
 
17128
  else
 
17129
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17130
    case $host_os in
 
17131
    aix*)
 
17132
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17133
      if test "$host_cpu" = ia64; then
 
17134
        # AIX 5 now supports IA64 processor
 
17135
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17136
      else
 
17137
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17138
      fi
 
17139
      ;;
 
17140
      darwin*)
 
17141
        # PIC is the default on this platform
 
17142
        # Common symbols not allowed in MH_DYLIB files
 
17143
       case $cc_basename in
 
17144
         xlc*)
 
17145
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17146
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17147
         ;;
 
17148
       esac
 
17149
       ;;
 
17150
 
 
17151
    mingw* | cygwin* | pw32* | os2*)
 
17152
      # This hack is so that the source file can tell whether it is being
 
17153
      # built for inclusion in a dll (and should export symbols for example).
 
17154
      
 
17155
      ;;
 
17156
 
 
17157
    hpux9* | hpux10* | hpux11*)
 
17158
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17159
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17160
      # not for PA HP-UX.
 
17161
      case $host_cpu in
 
17162
      hppa*64*|ia64*)
 
17163
        # +Z the default
 
17164
        ;;
 
17165
      *)
 
17166
        lt_prog_compiler_pic_GCJ='+Z'
 
17167
        ;;
 
17168
      esac
 
17169
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17170
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17171
      ;;
 
17172
 
 
17173
    irix5* | irix6* | nonstopux*)
 
17174
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17175
      # PIC (with -KPIC) is the default.
 
17176
      lt_prog_compiler_static_GCJ='-non_shared'
 
17177
      ;;
 
17178
 
 
17179
    newsos6)
 
17180
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17181
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17182
      ;;
 
17183
 
 
17184
    linux* | k*bsd*-gnu)
 
17185
      case $cc_basename in
 
17186
      icc* | ecc*)
 
17187
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17188
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17189
        lt_prog_compiler_static_GCJ='-static'
 
17190
        ;;
 
17191
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17192
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17193
        # which looks to be a dead project)
 
17194
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17195
        lt_prog_compiler_pic_GCJ='-fpic'
 
17196
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17197
        ;;
 
17198
      ccc*)
 
17199
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17200
        # All Alpha code is PIC.
 
17201
        lt_prog_compiler_static_GCJ='-non_shared'
 
17202
        ;;
 
17203
      *)
 
17204
        case `$CC -V 2>&1 | sed 5q` in
 
17205
        *Sun\ C*)
 
17206
          # Sun C 5.9
 
17207
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17208
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17209
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17210
          ;;
 
17211
        *Sun\ F*)
 
17212
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17213
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17214
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17215
          lt_prog_compiler_wl_GCJ=''
 
17216
          ;;
 
17217
        esac
 
17218
        ;;
 
17219
      esac
 
17220
      ;;
 
17221
 
 
17222
    osf3* | osf4* | osf5*)
 
17223
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17224
      # All OSF/1 code is PIC.
 
17225
      lt_prog_compiler_static_GCJ='-non_shared'
 
17226
      ;;
 
17227
 
 
17228
    rdos*)
 
17229
      lt_prog_compiler_static_GCJ='-non_shared'
 
17230
      ;;
 
17231
 
 
17232
    solaris*)
 
17233
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17234
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17235
      case $cc_basename in
 
17236
      f77* | f90* | f95*)
 
17237
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17238
      *)
 
17239
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17240
      esac
 
17241
      ;;
 
17242
 
 
17243
    sunos4*)
 
17244
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17245
      lt_prog_compiler_pic_GCJ='-PIC'
 
17246
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17247
      ;;
 
17248
 
 
17249
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17250
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17251
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17252
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17253
      ;;
 
17254
 
 
17255
    sysv4*MP*)
 
17256
      if test -d /usr/nec ;then
 
17257
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17258
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17259
      fi
 
17260
      ;;
 
17261
 
 
17262
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17263
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17264
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17265
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17266
      ;;
 
17267
 
 
17268
    unicos*)
 
17269
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17270
      lt_prog_compiler_can_build_shared_GCJ=no
 
17271
      ;;
 
17272
 
 
17273
    uts4*)
 
17274
      lt_prog_compiler_pic_GCJ='-pic'
 
17275
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17276
      ;;
 
17277
 
 
17278
    *)
 
17279
      lt_prog_compiler_can_build_shared_GCJ=no
 
17280
      ;;
 
17281
    esac
 
17282
  fi
 
17283
 
 
17284
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17285
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17286
 
 
17287
#
 
17288
# Check to make sure the PIC flag actually works.
 
17289
#
 
17290
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17291
  
 
17292
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17293
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17294
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17295
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17296
else
 
17297
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17298
  ac_outfile=conftest.$ac_objext
 
17299
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17300
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17301
   # Insert the option either (1) after the last *FLAGS variable, or
 
17302
   # (2) before a word containing "conftest.", or (3) at the end.
 
17303
   # Note that $ac_compile itself does not contain backslashes and begins
 
17304
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17305
   # The option is referenced via a variable to avoid confusing sed.
 
17306
   lt_compile=`echo "$ac_compile" | $SED \
 
17307
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17308
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17309
   -e 's:$: $lt_compiler_flag:'`
 
17310
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
17311
   (eval "$lt_compile" 2>conftest.err)
 
17312
   ac_status=$?
 
17313
   cat conftest.err >&5
 
17314
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
17315
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17316
     # The compiler can only warn and ignore the option if not recognized
 
17317
     # So say no if there are warnings other than the usual output.
 
17318
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17319
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17320
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17321
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17322
     fi
 
17323
   fi
 
17324
   $rm conftest*
 
17325
 
 
17326
fi
 
17327
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17328
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17329
 
 
17330
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17331
    case $lt_prog_compiler_pic_GCJ in
 
17332
     "" | " "*) ;;
 
17333
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17334
     esac
 
17335
else
 
17336
    lt_prog_compiler_pic_GCJ=
 
17337
     lt_prog_compiler_can_build_shared_GCJ=no
 
17338
fi
 
17339
 
 
17340
fi
 
17341
case $host_os in
 
17342
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17343
  *djgpp*)
 
17344
    lt_prog_compiler_pic_GCJ=
 
17345
    ;;
 
17346
  *)
 
17347
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17348
    ;;
 
17349
esac
 
17350
 
 
17351
#
 
17352
# Check to make sure the static flag actually works.
 
17353
#
 
17354
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17355
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17356
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17357
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17359
else
 
17360
  lt_cv_prog_compiler_static_works_GCJ=no
 
17361
   save_LDFLAGS="$LDFLAGS"
 
17362
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17363
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17364
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17365
     # The linker can only warn and ignore the option if not recognized
 
17366
     # So say no if there are warnings
 
17367
     if test -s conftest.err; then
 
17368
       # Append any errors to the config.log.
 
17369
       cat conftest.err 1>&5
 
17370
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17371
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17372
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17373
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17374
       fi
 
17375
     else
 
17376
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17377
     fi
 
17378
   fi
 
17379
   $rm -r conftest*
 
17380
   LDFLAGS="$save_LDFLAGS"
 
17381
 
 
17382
fi
 
17383
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17384
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17385
 
 
17386
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17387
    :
 
17388
else
 
17389
    lt_prog_compiler_static_GCJ=
 
17390
fi
 
17391
 
 
17392
 
 
17393
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17394
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17395
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17397
else
 
17398
  lt_cv_prog_compiler_c_o_GCJ=no
 
17399
   $rm -r conftest 2>/dev/null
 
17400
   mkdir conftest
 
17401
   cd conftest
 
17402
   mkdir out
 
17403
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17404
 
 
17405
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17406
   # Insert the option either (1) after the last *FLAGS variable, or
 
17407
   # (2) before a word containing "conftest.", or (3) at the end.
 
17408
   # Note that $ac_compile itself does not contain backslashes and begins
 
17409
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17410
   lt_compile=`echo "$ac_compile" | $SED \
 
17411
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17412
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17413
   -e 's:$: $lt_compiler_flag:'`
 
17414
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
17415
   (eval "$lt_compile" 2>out/conftest.err)
 
17416
   ac_status=$?
 
17417
   cat out/conftest.err >&5
 
17418
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
17419
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17420
   then
 
17421
     # The compiler can only warn and ignore the option if not recognized
 
17422
     # So say no if there are warnings
 
17423
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17424
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17425
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17426
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17427
     fi
 
17428
   fi
 
17429
   chmod u+w . 2>&5
 
17430
   $rm conftest*
 
17431
   # SGI C++ compiler will create directory out/ii_files/ for
 
17432
   # template instantiation
 
17433
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17434
   $rm out/* && rmdir out
 
17435
   cd ..
 
17436
   rmdir conftest
 
17437
   $rm conftest*
 
17438
 
 
17439
fi
 
17440
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17441
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17442
 
 
17443
 
 
17444
hard_links="nottested"
 
17445
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17446
  # do not overwrite the value of need_locks provided by the user
 
17447
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17448
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17449
  hard_links=yes
 
17450
  $rm conftest*
 
17451
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17452
  touch conftest.a
 
17453
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17454
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17455
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17456
echo "${ECHO_T}$hard_links" >&6; }
 
17457
  if test "$hard_links" = no; then
 
17458
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17459
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17460
    need_locks=warn
 
17461
  fi
 
17462
else
 
17463
  need_locks=no
 
17464
fi
 
17465
 
 
17466
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17467
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17468
 
 
17469
  runpath_var=
 
17470
  allow_undefined_flag_GCJ=
 
17471
  enable_shared_with_static_runtimes_GCJ=no
 
17472
  archive_cmds_GCJ=
 
17473
  archive_expsym_cmds_GCJ=
 
17474
  old_archive_From_new_cmds_GCJ=
 
17475
  old_archive_from_expsyms_cmds_GCJ=
 
17476
  export_dynamic_flag_spec_GCJ=
 
17477
  whole_archive_flag_spec_GCJ=
 
17478
  thread_safe_flag_spec_GCJ=
 
17479
  hardcode_libdir_flag_spec_GCJ=
 
17480
  hardcode_libdir_flag_spec_ld_GCJ=
 
17481
  hardcode_libdir_separator_GCJ=
 
17482
  hardcode_direct_GCJ=no
 
17483
  hardcode_minus_L_GCJ=no
 
17484
  hardcode_shlibpath_var_GCJ=unsupported
 
17485
  link_all_deplibs_GCJ=unknown
 
17486
  hardcode_automatic_GCJ=no
 
17487
  module_cmds_GCJ=
 
17488
  module_expsym_cmds_GCJ=
 
17489
  always_export_symbols_GCJ=no
 
17490
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17491
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17492
  # included in the symbol list
 
17493
  include_expsyms_GCJ=
 
17494
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17495
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17496
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17497
  # as well as any symbol that contains `d'.
 
17498
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17499
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17500
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17501
  # the symbol is explicitly referenced.  Since portable code cannot
 
17502
  # rely on this symbol name, it's probably fine to never include it in
 
17503
  # preloaded symbol tables.
 
17504
  # Exclude shared library initialization/finalization symbols.
 
17505
  extract_expsyms_cmds=
 
17506
  # Just being paranoid about ensuring that cc_basename is set.
 
17507
  for cc_temp in $compiler""; do
 
17508
  case $cc_temp in
 
17509
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17510
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17511
    \-*) ;;
 
17512
    *) break;;
 
17513
  esac
 
17514
done
 
17515
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17516
 
 
17517
  case $host_os in
 
17518
  cygwin* | mingw* | pw32*)
 
17519
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17520
    # When not using gcc, we currently assume that we are using
 
17521
    # Microsoft Visual C++.
 
17522
    if test "$GCC" != yes; then
 
17523
      with_gnu_ld=no
 
17524
    fi
 
17525
    ;;
 
17526
  interix*)
 
17527
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17528
    with_gnu_ld=yes
 
17529
    ;;
 
17530
  openbsd*)
 
17531
    with_gnu_ld=no
 
17532
    ;;
 
17533
  esac
 
17534
 
 
17535
  ld_shlibs_GCJ=yes
 
17536
  if test "$with_gnu_ld" = yes; then
 
17537
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17538
    wlarc='${wl}'
 
17539
 
 
17540
    # Set some defaults for GNU ld with shared library support. These
 
17541
    # are reset later if shared libraries are not supported. Putting them
 
17542
    # here allows them to be overridden if necessary.
 
17543
    runpath_var=LD_RUN_PATH
 
17544
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17545
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17546
    # ancient GNU ld didn't support --whole-archive et. al.
 
17547
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17548
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17549
      else
 
17550
        whole_archive_flag_spec_GCJ=
 
17551
    fi
 
17552
    supports_anon_versioning=no
 
17553
    case `$LD -v 2>/dev/null` in
 
17554
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17555
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17556
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17557
      *\ 2.11.*) ;; # other 2.11 versions
 
17558
      *) supports_anon_versioning=yes ;;
 
17559
    esac
 
17560
 
 
17561
    # See if GNU ld supports shared libraries.
 
17562
    case $host_os in
 
17563
    aix[3-9]*)
 
17564
      # On AIX/PPC, the GNU linker is very broken
 
17565
      if test "$host_cpu" != ia64; then
 
17566
        ld_shlibs_GCJ=no
 
17567
        cat <<EOF 1>&2
 
17568
 
 
17569
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17570
*** to be unable to reliably create shared libraries on AIX.
 
17571
*** Therefore, libtool is disabling shared libraries support.  If you
 
17572
*** really care for shared libraries, you may want to modify your PATH
 
17573
*** so that a non-GNU linker is found, and then restart.
 
17574
 
 
17575
EOF
 
17576
      fi
 
17577
      ;;
 
17578
 
 
17579
    amigaos*)
 
17580
      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)'
 
17581
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17582
      hardcode_minus_L_GCJ=yes
 
17583
 
 
17584
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17585
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17586
      # to version 4, is to share data among multiple programs linked
 
17587
      # with the same dynamic library.  Since this doesn't match the
 
17588
      # behavior of shared libraries on other platforms, we can't use
 
17589
      # them.
 
17590
      ld_shlibs_GCJ=no
 
17591
      ;;
 
17592
 
 
17593
    beos*)
 
17594
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17595
        allow_undefined_flag_GCJ=unsupported
 
17596
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17597
        # support --undefined.  This deserves some investigation.  FIXME
 
17598
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17599
      else
 
17600
        ld_shlibs_GCJ=no
 
17601
      fi
 
17602
      ;;
 
17603
 
 
17604
    cygwin* | mingw* | pw32*)
 
17605
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17606
      # as there is no search path for DLLs.
 
17607
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17608
      allow_undefined_flag_GCJ=unsupported
 
17609
      always_export_symbols_GCJ=no
 
17610
      enable_shared_with_static_runtimes_GCJ=yes
 
17611
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17612
 
 
17613
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17614
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17615
        # If the export-symbols file already is a .def file (1st line
 
17616
        # is EXPORTS), use it as is; otherwise, prepend...
 
17617
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17618
          cp $export_symbols $output_objdir/$soname.def;
 
17619
        else
 
17620
          echo EXPORTS > $output_objdir/$soname.def;
 
17621
          cat $export_symbols >> $output_objdir/$soname.def;
 
17622
        fi~
 
17623
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17624
      else
 
17625
        ld_shlibs_GCJ=no
 
17626
      fi
 
17627
      ;;
 
17628
 
 
17629
    interix[3-9]*)
 
17630
      hardcode_direct_GCJ=no
 
17631
      hardcode_shlibpath_var_GCJ=no
 
17632
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17633
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17634
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17635
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17636
      # default) and relocated if they conflict, which is a slow very memory
 
17637
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17638
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17639
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17640
      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'
 
17641
      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'
 
17642
      ;;
 
17643
 
 
17644
    gnu* | linux* | k*bsd*-gnu)
 
17645
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17646
        tmp_addflag=
 
17647
        case $cc_basename,$host_cpu in
 
17648
        pgcc*)                          # Portland Group C compiler
 
17649
          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'
 
17650
          tmp_addflag=' $pic_flag'
 
17651
          ;;
 
17652
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17653
          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'
 
17654
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17655
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17656
          tmp_addflag=' -i_dynamic' ;;
 
17657
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17658
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17659
        ifc* | ifort*)                  # Intel Fortran compiler
 
17660
          tmp_addflag=' -nofor_main' ;;
 
17661
        esac
 
17662
        case `$CC -V 2>&1 | sed 5q` in
 
17663
        *Sun\ C*)                       # Sun C 5.9
 
17664
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17665
          tmp_sharedflag='-G' ;;
 
17666
        *Sun\ F*)                       # Sun Fortran 8.3
 
17667
          tmp_sharedflag='-G' ;;
 
17668
        *)
 
17669
          tmp_sharedflag='-shared' ;;
 
17670
        esac
 
17671
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17672
 
 
17673
        if test $supports_anon_versioning = yes; then
 
17674
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17675
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17676
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17677
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17678
        fi
 
17679
        link_all_deplibs_GCJ=no
 
17680
      else
 
17681
        ld_shlibs_GCJ=no
 
17682
      fi
 
17683
      ;;
 
17684
 
 
17685
    netbsd* | netbsdelf*-gnu)
 
17686
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17687
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17688
        wlarc=
 
17689
      else
 
17690
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17691
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17692
      fi
 
17693
      ;;
 
17694
 
 
17695
    solaris*)
 
17696
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17697
        ld_shlibs_GCJ=no
 
17698
        cat <<EOF 1>&2
 
17699
 
 
17700
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17701
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17702
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17703
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17704
*** your PATH or compiler configuration so that the native linker is
 
17705
*** used, and then restart.
 
17706
 
 
17707
EOF
 
17708
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17709
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17710
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17711
      else
 
17712
        ld_shlibs_GCJ=no
 
17713
      fi
 
17714
      ;;
 
17715
 
 
17716
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17717
      case `$LD -v 2>&1` in
 
17718
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17719
        ld_shlibs_GCJ=no
 
17720
        cat <<_LT_EOF 1>&2
 
17721
 
 
17722
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17723
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17724
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17725
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17726
*** your PATH or compiler configuration so that the native linker is
 
17727
*** used, and then restart.
 
17728
 
 
17729
_LT_EOF
 
17730
        ;;
 
17731
        *)
 
17732
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17733
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17734
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17735
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17736
          else
 
17737
            ld_shlibs_GCJ=no
 
17738
          fi
 
17739
        ;;
 
17740
      esac
 
17741
      ;;
 
17742
 
 
17743
    sunos4*)
 
17744
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17745
      wlarc=
 
17746
      hardcode_direct_GCJ=yes
 
17747
      hardcode_shlibpath_var_GCJ=no
 
17748
      ;;
 
17749
 
 
17750
    *)
 
17751
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17752
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17753
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17754
      else
 
17755
        ld_shlibs_GCJ=no
 
17756
      fi
 
17757
      ;;
 
17758
    esac
 
17759
 
 
17760
    if test "$ld_shlibs_GCJ" = no; then
 
17761
      runpath_var=
 
17762
      hardcode_libdir_flag_spec_GCJ=
 
17763
      export_dynamic_flag_spec_GCJ=
 
17764
      whole_archive_flag_spec_GCJ=
 
17765
    fi
 
17766
  else
 
17767
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17768
    case $host_os in
 
17769
    aix3*)
 
17770
      allow_undefined_flag_GCJ=unsupported
 
17771
      always_export_symbols_GCJ=yes
 
17772
      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'
 
17773
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17774
      # are no directories specified by -L.
 
17775
      hardcode_minus_L_GCJ=yes
 
17776
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17777
        # Neither direct hardcoding nor static linking is supported with a
 
17778
        # broken collect2.
 
17779
        hardcode_direct_GCJ=unsupported
 
17780
      fi
 
17781
      ;;
 
17782
 
 
17783
    aix[4-9]*)
 
17784
      if test "$host_cpu" = ia64; then
 
17785
        # On IA64, the linker does run time linking by default, so we don't
 
17786
        # have to do anything special.
 
17787
        aix_use_runtimelinking=no
 
17788
        exp_sym_flag='-Bexport'
 
17789
        no_entry_flag=""
 
17790
      else
 
17791
        # If we're using GNU nm, then we don't want the "-C" option.
 
17792
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17793
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17794
          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'
 
17795
        else
 
17796
          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'
 
17797
        fi
 
17798
        aix_use_runtimelinking=no
 
17799
 
 
17800
        # Test if we are trying to use run time linking or normal
 
17801
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17802
        # need to do runtime linking.
 
17803
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17804
          for ld_flag in $LDFLAGS; do
 
17805
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17806
            aix_use_runtimelinking=yes
 
17807
            break
 
17808
          fi
 
17809
          done
 
17810
          ;;
 
17811
        esac
 
17812
 
 
17813
        exp_sym_flag='-bexport'
 
17814
        no_entry_flag='-bnoentry'
 
17815
      fi
 
17816
 
 
17817
      # When large executables or shared objects are built, AIX ld can
 
17818
      # have problems creating the table of contents.  If linking a library
 
17819
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17820
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17821
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17822
 
 
17823
      archive_cmds_GCJ=''
 
17824
      hardcode_direct_GCJ=yes
 
17825
      hardcode_libdir_separator_GCJ=':'
 
17826
      link_all_deplibs_GCJ=yes
 
17827
 
 
17828
      if test "$GCC" = yes; then
 
17829
        case $host_os in aix4.[012]|aix4.[012].*)
 
17830
        # We only want to do this on AIX 4.2 and lower, the check
 
17831
        # below for broken collect2 doesn't work under 4.3+
 
17832
          collect2name=`${CC} -print-prog-name=collect2`
 
17833
          if test -f "$collect2name" && \
 
17834
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17835
          then
 
17836
          # We have reworked collect2
 
17837
          :
 
17838
          else
 
17839
          # We have old collect2
 
17840
          hardcode_direct_GCJ=unsupported
 
17841
          # It fails to find uninstalled libraries when the uninstalled
 
17842
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17843
          # to unsupported forces relinking
 
17844
          hardcode_minus_L_GCJ=yes
 
17845
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17846
          hardcode_libdir_separator_GCJ=
 
17847
          fi
 
17848
          ;;
 
17849
        esac
 
17850
        shared_flag='-shared'
 
17851
        if test "$aix_use_runtimelinking" = yes; then
 
17852
          shared_flag="$shared_flag "'${wl}-G'
 
17853
        fi
 
17854
      else
 
17855
        # not using gcc
 
17856
        if test "$host_cpu" = ia64; then
 
17857
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17858
        # chokes on -Wl,-G. The following line is correct:
 
17859
          shared_flag='-G'
 
17860
        else
 
17861
          if test "$aix_use_runtimelinking" = yes; then
 
17862
            shared_flag='${wl}-G'
 
17863
          else
 
17864
            shared_flag='${wl}-bM:SRE'
 
17865
          fi
 
17866
        fi
 
17867
      fi
 
17868
 
 
17869
      # It seems that -bexpall does not export symbols beginning with
 
17870
      # underscore (_), so it is better to generate a list of symbols to export.
 
17871
      always_export_symbols_GCJ=yes
 
17872
      if test "$aix_use_runtimelinking" = yes; then
 
17873
        # Warning - without using the other runtime loading flags (-brtl),
 
17874
        # -berok will link without error, but may produce a broken library.
 
17875
        allow_undefined_flag_GCJ='-berok'
 
17876
       # Determine the default libpath from the value encoded in an empty executable.
 
17877
       cat >conftest.$ac_ext <<_ACEOF
 
17878
/* confdefs.h.  */
 
17879
_ACEOF
 
17880
cat confdefs.h >>conftest.$ac_ext
 
17881
cat >>conftest.$ac_ext <<_ACEOF
 
17882
/* end confdefs.h.  */
 
17883
 
 
17884
int
 
17885
main ()
 
17886
{
 
17887
 
 
17888
  ;
 
17889
  return 0;
 
17890
}
 
17891
_ACEOF
 
17892
rm -f conftest.$ac_objext conftest$ac_exeext
 
17893
if { (ac_try="$ac_link"
 
17894
case "(($ac_try" in
 
17895
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17896
  *) ac_try_echo=$ac_try;;
 
17897
esac
 
17898
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17899
  (eval "$ac_link") 2>conftest.er1
 
17900
  ac_status=$?
 
17901
  grep -v '^ *+' conftest.er1 >conftest.err
 
17902
  rm -f conftest.er1
 
17903
  cat conftest.err >&5
 
17904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17905
  (exit $ac_status); } && {
 
17906
         test -z "$ac_c_werror_flag" ||
 
17907
         test ! -s conftest.err
 
17908
       } && test -s conftest$ac_exeext &&
 
17909
       $as_test_x conftest$ac_exeext; then
 
17910
  
 
17911
lt_aix_libpath_sed='
 
17912
    /Import File Strings/,/^$/ {
 
17913
        /^0/ {
 
17914
            s/^0  *\(.*\)$/\1/
 
17915
            p
 
17916
        }
 
17917
    }'
 
17918
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17919
# Check for a 64-bit object if we didn't find anything.
 
17920
if test -z "$aix_libpath"; then
 
17921
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17922
fi
 
17923
else
 
17924
  echo "$as_me: failed program was:" >&5
 
17925
sed 's/^/| /' conftest.$ac_ext >&5
 
17926
 
 
17927
        
 
17928
fi
 
17929
 
 
17930
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17931
      conftest$ac_exeext conftest.$ac_ext
 
17932
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17933
 
 
17934
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17935
        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"
 
17936
       else
 
17937
        if test "$host_cpu" = ia64; then
 
17938
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17939
          allow_undefined_flag_GCJ="-z nodefs"
 
17940
          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"
 
17941
        else
 
17942
         # Determine the default libpath from the value encoded in an empty executable.
 
17943
         cat >conftest.$ac_ext <<_ACEOF
 
17944
/* confdefs.h.  */
 
17945
_ACEOF
 
17946
cat confdefs.h >>conftest.$ac_ext
 
17947
cat >>conftest.$ac_ext <<_ACEOF
 
17948
/* end confdefs.h.  */
 
17949
 
 
17950
int
 
17951
main ()
 
17952
{
 
17953
 
 
17954
  ;
 
17955
  return 0;
 
17956
}
 
17957
_ACEOF
 
17958
rm -f conftest.$ac_objext conftest$ac_exeext
 
17959
if { (ac_try="$ac_link"
 
17960
case "(($ac_try" in
 
17961
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17962
  *) ac_try_echo=$ac_try;;
 
17963
esac
 
17964
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17965
  (eval "$ac_link") 2>conftest.er1
 
17966
  ac_status=$?
 
17967
  grep -v '^ *+' conftest.er1 >conftest.err
 
17968
  rm -f conftest.er1
 
17969
  cat conftest.err >&5
 
17970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17971
  (exit $ac_status); } && {
 
17972
         test -z "$ac_c_werror_flag" ||
 
17973
         test ! -s conftest.err
 
17974
       } && test -s conftest$ac_exeext &&
 
17975
       $as_test_x conftest$ac_exeext; then
 
17976
  
 
17977
lt_aix_libpath_sed='
 
17978
    /Import File Strings/,/^$/ {
 
17979
        /^0/ {
 
17980
            s/^0  *\(.*\)$/\1/
 
17981
            p
 
17982
        }
 
17983
    }'
 
17984
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17985
# Check for a 64-bit object if we didn't find anything.
 
17986
if test -z "$aix_libpath"; then
 
17987
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17988
fi
 
17989
else
 
17990
  echo "$as_me: failed program was:" >&5
 
17991
sed 's/^/| /' conftest.$ac_ext >&5
 
17992
 
 
17993
        
 
17994
fi
 
17995
 
 
17996
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17997
      conftest$ac_exeext conftest.$ac_ext
 
17998
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17999
 
 
18000
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18001
          # Warning - without using the other run time loading flags,
 
18002
          # -berok will link without error, but may produce a broken library.
 
18003
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18004
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18005
          # Exported symbols can be pulled into shared objects from archives
 
18006
          whole_archive_flag_spec_GCJ='$convenience'
 
18007
          archive_cmds_need_lc_GCJ=yes
 
18008
          # This is similar to how AIX traditionally builds its shared libraries.
 
18009
          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'
 
18010
        fi
 
18011
      fi
 
18012
      ;;
 
18013
 
 
18014
    amigaos*)
 
18015
      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)'
 
18016
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18017
      hardcode_minus_L_GCJ=yes
 
18018
      # see comment about different semantics on the GNU ld section
 
18019
      ld_shlibs_GCJ=no
 
18020
      ;;
 
18021
 
 
18022
    bsdi[45]*)
 
18023
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18024
      ;;
 
18025
 
 
18026
    cygwin* | mingw* | pw32*)
 
18027
      # When not using gcc, we currently assume that we are using
 
18028
      # Microsoft Visual C++.
 
18029
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18030
      # no search path for DLLs.
 
18031
      hardcode_libdir_flag_spec_GCJ=' '
 
18032
      allow_undefined_flag_GCJ=unsupported
 
18033
      # Tell ltmain to make .lib files, not .a files.
 
18034
      libext=lib
 
18035
      # Tell ltmain to make .dll files, not .so files.
 
18036
      shrext_cmds=".dll"
 
18037
      # FIXME: Setting linknames here is a bad hack.
 
18038
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18039
      # The linker will automatically build a .lib file if we build a DLL.
 
18040
      old_archive_From_new_cmds_GCJ='true'
 
18041
      # FIXME: Should let the user specify the lib program.
 
18042
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18043
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18044
      enable_shared_with_static_runtimes_GCJ=yes
 
18045
      ;;
 
18046
 
 
18047
    darwin* | rhapsody*)
 
18048
      case $host_os in
 
18049
        rhapsody* | darwin1.[012])
 
18050
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18051
         ;;
 
18052
       *) # Darwin 1.3 on
 
18053
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18054
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18055
         else
 
18056
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18057
             10.[012])
 
18058
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18059
               ;;
 
18060
             10.*)
 
18061
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18062
               ;;
 
18063
           esac
 
18064
         fi
 
18065
         ;;
 
18066
      esac
 
18067
      archive_cmds_need_lc_GCJ=no
 
18068
      hardcode_direct_GCJ=no
 
18069
      hardcode_automatic_GCJ=yes
 
18070
      hardcode_shlibpath_var_GCJ=unsupported
 
18071
      whole_archive_flag_spec_GCJ=''
 
18072
      link_all_deplibs_GCJ=yes
 
18073
    if test "$GCC" = yes ; then
 
18074
        output_verbose_link_cmd='echo'
 
18075
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
18076
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18077
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
18078
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
18079
    else
 
18080
      case $cc_basename in
 
18081
        xlc*)
 
18082
         output_verbose_link_cmd='echo'
 
18083
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18084
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18085
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18086
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18087
          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}'
 
18088
          ;;
 
18089
       *)
 
18090
         ld_shlibs_GCJ=no
 
18091
          ;;
 
18092
      esac
 
18093
    fi
 
18094
      ;;
 
18095
 
 
18096
    dgux*)
 
18097
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18098
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18099
      hardcode_shlibpath_var_GCJ=no
 
18100
      ;;
 
18101
 
 
18102
    freebsd1*)
 
18103
      ld_shlibs_GCJ=no
 
18104
      ;;
 
18105
 
 
18106
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18107
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18108
    # does not break anything, and helps significantly (at the cost of a little
 
18109
    # extra space).
 
18110
    freebsd2.2*)
 
18111
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18112
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18113
      hardcode_direct_GCJ=yes
 
18114
      hardcode_shlibpath_var_GCJ=no
 
18115
      ;;
 
18116
 
 
18117
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18118
    freebsd2*)
 
18119
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18120
      hardcode_direct_GCJ=yes
 
18121
      hardcode_minus_L_GCJ=yes
 
18122
      hardcode_shlibpath_var_GCJ=no
 
18123
      ;;
 
18124
 
 
18125
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18126
    freebsd* | dragonfly*)
 
18127
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18128
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18129
      hardcode_direct_GCJ=yes
 
18130
      hardcode_shlibpath_var_GCJ=no
 
18131
      ;;
 
18132
 
 
18133
    hpux9*)
 
18134
      if test "$GCC" = yes; then
 
18135
        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'
 
18136
      else
 
18137
        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'
 
18138
      fi
 
18139
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18140
      hardcode_libdir_separator_GCJ=:
 
18141
      hardcode_direct_GCJ=yes
 
18142
 
 
18143
      # hardcode_minus_L: Not really in the search PATH,
 
18144
      # but as the default location of the library.
 
18145
      hardcode_minus_L_GCJ=yes
 
18146
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18147
      ;;
 
18148
 
 
18149
    hpux10*)
 
18150
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18151
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18152
      else
 
18153
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18154
      fi
 
18155
      if test "$with_gnu_ld" = no; then
 
18156
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18157
        hardcode_libdir_separator_GCJ=:
 
18158
 
 
18159
        hardcode_direct_GCJ=yes
 
18160
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18161
 
 
18162
        # hardcode_minus_L: Not really in the search PATH,
 
18163
        # but as the default location of the library.
 
18164
        hardcode_minus_L_GCJ=yes
 
18165
      fi
 
18166
      ;;
 
18167
 
 
18168
    hpux11*)
 
18169
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18170
        case $host_cpu in
 
18171
        hppa*64*)
 
18172
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18173
          ;;
 
18174
        ia64*)
 
18175
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18176
          ;;
 
18177
        *)
 
18178
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18179
          ;;
 
18180
        esac
 
18181
      else
 
18182
        case $host_cpu in
 
18183
        hppa*64*)
 
18184
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18185
          ;;
 
18186
        ia64*)
 
18187
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18188
          ;;
 
18189
        *)
 
18190
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18191
          ;;
 
18192
        esac
 
18193
      fi
 
18194
      if test "$with_gnu_ld" = no; then
 
18195
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18196
        hardcode_libdir_separator_GCJ=:
 
18197
 
 
18198
        case $host_cpu in
 
18199
        hppa*64*|ia64*)
 
18200
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18201
          hardcode_direct_GCJ=no
 
18202
          hardcode_shlibpath_var_GCJ=no
 
18203
          ;;
 
18204
        *)
 
18205
          hardcode_direct_GCJ=yes
 
18206
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18207
 
 
18208
          # hardcode_minus_L: Not really in the search PATH,
 
18209
          # but as the default location of the library.
 
18210
          hardcode_minus_L_GCJ=yes
 
18211
          ;;
 
18212
        esac
 
18213
      fi
 
18214
      ;;
 
18215
 
 
18216
    irix5* | irix6* | nonstopux*)
 
18217
      if test "$GCC" = yes; then
 
18218
        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'
 
18219
      else
 
18220
        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'
 
18221
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18222
      fi
 
18223
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18224
      hardcode_libdir_separator_GCJ=:
 
18225
      link_all_deplibs_GCJ=yes
 
18226
      ;;
 
18227
 
 
18228
    netbsd* | netbsdelf*-gnu)
 
18229
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18230
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18231
      else
 
18232
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18233
      fi
 
18234
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18235
      hardcode_direct_GCJ=yes
 
18236
      hardcode_shlibpath_var_GCJ=no
 
18237
      ;;
 
18238
 
 
18239
    newsos6)
 
18240
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18241
      hardcode_direct_GCJ=yes
 
18242
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18243
      hardcode_libdir_separator_GCJ=:
 
18244
      hardcode_shlibpath_var_GCJ=no
 
18245
      ;;
 
18246
 
 
18247
    openbsd*)
 
18248
      if test -f /usr/libexec/ld.so; then
 
18249
        hardcode_direct_GCJ=yes
 
18250
        hardcode_shlibpath_var_GCJ=no
 
18251
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18252
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18253
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18254
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18255
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18256
        else
 
18257
          case $host_os in
 
18258
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18259
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18260
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18261
             ;;
 
18262
           *)
 
18263
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18264
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18265
             ;;
 
18266
          esac
 
18267
        fi
 
18268
      else
 
18269
        ld_shlibs_GCJ=no
 
18270
      fi
 
18271
      ;;
 
18272
 
 
18273
    os2*)
 
18274
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18275
      hardcode_minus_L_GCJ=yes
 
18276
      allow_undefined_flag_GCJ=unsupported
 
18277
      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'
 
18278
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18279
      ;;
 
18280
 
 
18281
    osf3*)
 
18282
      if test "$GCC" = yes; then
 
18283
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18284
        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'
 
18285
      else
 
18286
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18287
        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'
 
18288
      fi
 
18289
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18290
      hardcode_libdir_separator_GCJ=:
 
18291
      ;;
 
18292
 
 
18293
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18294
      if test "$GCC" = yes; then
 
18295
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18296
        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'
 
18297
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18298
      else
 
18299
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18300
        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'
 
18301
        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~
 
18302
        $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'
 
18303
 
 
18304
        # Both c and cxx compiler support -rpath directly
 
18305
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18306
      fi
 
18307
      hardcode_libdir_separator_GCJ=:
 
18308
      ;;
 
18309
 
 
18310
    solaris*)
 
18311
      no_undefined_flag_GCJ=' -z text'
 
18312
      if test "$GCC" = yes; then
 
18313
        wlarc='${wl}'
 
18314
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18315
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18316
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18317
      else
 
18318
        wlarc=''
 
18319
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18320
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18321
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18322
      fi
 
18323
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18324
      hardcode_shlibpath_var_GCJ=no
 
18325
      case $host_os in
 
18326
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18327
      *)
 
18328
        # The compiler driver will combine and reorder linker options,
 
18329
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18330
        # but is careful enough not to reorder.
 
18331
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18332
        if test "$GCC" = yes; then
 
18333
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18334
        else
 
18335
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18336
        fi
 
18337
        ;;
 
18338
      esac
 
18339
      link_all_deplibs_GCJ=yes
 
18340
      ;;
 
18341
 
 
18342
    sunos4*)
 
18343
      if test "x$host_vendor" = xsequent; then
 
18344
        # Use $CC to link under sequent, because it throws in some extra .o
 
18345
        # files that make .init and .fini sections work.
 
18346
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18347
      else
 
18348
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18349
      fi
 
18350
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18351
      hardcode_direct_GCJ=yes
 
18352
      hardcode_minus_L_GCJ=yes
 
18353
      hardcode_shlibpath_var_GCJ=no
 
18354
      ;;
 
18355
 
 
18356
    sysv4)
 
18357
      case $host_vendor in
 
18358
        sni)
 
18359
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18360
          hardcode_direct_GCJ=yes # is this really true???
 
18361
        ;;
 
18362
        siemens)
 
18363
          ## LD is ld it makes a PLAMLIB
 
18364
          ## CC just makes a GrossModule.
 
18365
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18366
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18367
          hardcode_direct_GCJ=no
 
18368
        ;;
 
18369
        motorola)
 
18370
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18371
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18372
        ;;
 
18373
      esac
 
18374
      runpath_var='LD_RUN_PATH'
 
18375
      hardcode_shlibpath_var_GCJ=no
 
18376
      ;;
 
18377
 
 
18378
    sysv4.3*)
 
18379
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18380
      hardcode_shlibpath_var_GCJ=no
 
18381
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18382
      ;;
 
18383
 
 
18384
    sysv4*MP*)
 
18385
      if test -d /usr/nec; then
 
18386
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18387
        hardcode_shlibpath_var_GCJ=no
 
18388
        runpath_var=LD_RUN_PATH
 
18389
        hardcode_runpath_var=yes
 
18390
        ld_shlibs_GCJ=yes
 
18391
      fi
 
18392
      ;;
 
18393
 
 
18394
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18395
      no_undefined_flag_GCJ='${wl}-z,text'
 
18396
      archive_cmds_need_lc_GCJ=no
 
18397
      hardcode_shlibpath_var_GCJ=no
 
18398
      runpath_var='LD_RUN_PATH'
 
18399
 
 
18400
      if test "$GCC" = yes; then
 
18401
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18402
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18403
      else
 
18404
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18405
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18406
      fi
 
18407
      ;;
 
18408
 
 
18409
    sysv5* | sco3.2v5* | sco5v6*)
 
18410
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18411
      # link with -lc, and that would cause any symbols used from libc to
 
18412
      # always be unresolved, which means just about no library would
 
18413
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18414
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18415
      # as -z defs.
 
18416
      no_undefined_flag_GCJ='${wl}-z,text'
 
18417
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18418
      archive_cmds_need_lc_GCJ=no
 
18419
      hardcode_shlibpath_var_GCJ=no
 
18420
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18421
      hardcode_libdir_separator_GCJ=':'
 
18422
      link_all_deplibs_GCJ=yes
 
18423
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18424
      runpath_var='LD_RUN_PATH'
 
18425
 
 
18426
      if test "$GCC" = yes; then
 
18427
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18428
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18429
      else
 
18430
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18431
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18432
      fi
 
18433
      ;;
 
18434
 
 
18435
    uts4*)
 
18436
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18437
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18438
      hardcode_shlibpath_var_GCJ=no
 
18439
      ;;
 
18440
 
 
18441
    *)
 
18442
      ld_shlibs_GCJ=no
 
18443
      ;;
 
18444
    esac
 
18445
  fi
 
18446
 
 
18447
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18448
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18449
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18450
 
 
18451
#
 
18452
# Do we need to explicitly link libc?
 
18453
#
 
18454
case "x$archive_cmds_need_lc_GCJ" in
 
18455
x|xyes)
 
18456
  # Assume -lc should be added
 
18457
  archive_cmds_need_lc_GCJ=yes
 
18458
 
 
18459
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18460
    case $archive_cmds_GCJ in
 
18461
    *'~'*)
 
18462
      # FIXME: we may have to deal with multi-command sequences.
 
18463
      ;;
 
18464
    '$CC '*)
 
18465
      # Test whether the compiler implicitly links with -lc since on some
 
18466
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18467
      # to ld, don't add -lc before -lgcc.
 
18468
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18469
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18470
      $rm conftest*
 
18471
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18472
 
 
18473
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18474
  (eval $ac_compile) 2>&5
 
18475
  ac_status=$?
 
18476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18477
  (exit $ac_status); } 2>conftest.err; then
 
18478
        soname=conftest
 
18479
        lib=conftest
 
18480
        libobjs=conftest.$ac_objext
 
18481
        deplibs=
 
18482
        wl=$lt_prog_compiler_wl_GCJ
 
18483
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18484
        compiler_flags=-v
 
18485
        linker_flags=-v
 
18486
        verstring=
 
18487
        output_objdir=.
 
18488
        libname=conftest
 
18489
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18490
        allow_undefined_flag_GCJ=
 
18491
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18492
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18493
  ac_status=$?
 
18494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18495
  (exit $ac_status); }
 
18496
        then
 
18497
          archive_cmds_need_lc_GCJ=no
 
18498
        else
 
18499
          archive_cmds_need_lc_GCJ=yes
 
18500
        fi
 
18501
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18502
      else
 
18503
        cat conftest.err 1>&5
 
18504
      fi
 
18505
      $rm conftest*
 
18506
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18507
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18508
      ;;
 
18509
    esac
 
18510
  fi
 
18511
  ;;
 
18512
esac
 
18513
 
 
18514
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18515
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18516
library_names_spec=
 
18517
libname_spec='lib$name'
 
18518
soname_spec=
 
18519
shrext_cmds=".so"
 
18520
postinstall_cmds=
 
18521
postuninstall_cmds=
 
18522
finish_cmds=
 
18523
finish_eval=
 
18524
shlibpath_var=
 
18525
shlibpath_overrides_runpath=unknown
 
18526
version_type=none
 
18527
dynamic_linker="$host_os ld.so"
 
18528
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18529
 
 
18530
need_lib_prefix=unknown
 
18531
hardcode_into_libs=no
 
18532
 
 
18533
# when you set need_version to no, make sure it does not cause -set_version
 
18534
# flags to be left without arguments
 
18535
need_version=unknown
 
18536
 
 
18537
case $host_os in
 
18538
aix3*)
 
18539
  version_type=linux
 
18540
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18541
  shlibpath_var=LIBPATH
 
18542
 
 
18543
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18544
  soname_spec='${libname}${release}${shared_ext}$major'
 
18545
  ;;
 
18546
 
 
18547
aix[4-9]*)
 
18548
  version_type=linux
 
18549
  need_lib_prefix=no
 
18550
  need_version=no
 
18551
  hardcode_into_libs=yes
 
18552
  if test "$host_cpu" = ia64; then
 
18553
    # AIX 5 supports IA64
 
18554
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18555
    shlibpath_var=LD_LIBRARY_PATH
 
18556
  else
 
18557
    # With GCC up to 2.95.x, collect2 would create an import file
 
18558
    # for dependence libraries.  The import file would start with
 
18559
    # the line `#! .'.  This would cause the generated library to
 
18560
    # depend on `.', always an invalid library.  This was fixed in
 
18561
    # development snapshots of GCC prior to 3.0.
 
18562
    case $host_os in
 
18563
      aix4 | aix4.[01] | aix4.[01].*)
 
18564
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18565
           echo ' yes '
 
18566
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18567
        :
 
18568
      else
 
18569
        can_build_shared=no
 
18570
      fi
 
18571
      ;;
 
18572
    esac
 
18573
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18574
    # soname into executable. Probably we can add versioning support to
 
18575
    # collect2, so additional links can be useful in future.
 
18576
    if test "$aix_use_runtimelinking" = yes; then
 
18577
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18578
      # instead of lib<name>.a to let people know that these are not
 
18579
      # typical AIX shared libraries.
 
18580
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18581
    else
 
18582
      # We preserve .a as extension for shared libraries through AIX4.2
 
18583
      # and later when we are not doing run time linking.
 
18584
      library_names_spec='${libname}${release}.a $libname.a'
 
18585
      soname_spec='${libname}${release}${shared_ext}$major'
 
18586
    fi
 
18587
    shlibpath_var=LIBPATH
 
18588
  fi
 
18589
  ;;
 
18590
 
 
18591
amigaos*)
 
18592
  library_names_spec='$libname.ixlibrary $libname.a'
 
18593
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18594
  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'
 
18595
  ;;
 
18596
 
 
18597
beos*)
 
18598
  library_names_spec='${libname}${shared_ext}'
 
18599
  dynamic_linker="$host_os ld.so"
 
18600
  shlibpath_var=LIBRARY_PATH
 
18601
  ;;
 
18602
 
 
18603
bsdi[45]*)
 
18604
  version_type=linux
 
18605
  need_version=no
 
18606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18607
  soname_spec='${libname}${release}${shared_ext}$major'
 
18608
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18609
  shlibpath_var=LD_LIBRARY_PATH
 
18610
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18611
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18612
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18613
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18614
  # libtool to hard-code these into programs
 
18615
  ;;
 
18616
 
 
18617
cygwin* | mingw* | pw32*)
 
18618
  version_type=windows
 
18619
  shrext_cmds=".dll"
 
18620
  need_version=no
 
18621
  need_lib_prefix=no
 
18622
 
 
18623
  case $GCC,$host_os in
 
18624
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18625
    library_names_spec='$libname.dll.a'
 
18626
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18627
    postinstall_cmds='base_file=`basename \${file}`~
 
18628
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18629
      dldir=$destdir/`dirname \$dlpath`~
 
18630
      test -d \$dldir || mkdir -p \$dldir~
 
18631
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18632
      chmod a+x \$dldir/$dlname'
 
18633
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18634
      dlpath=$dir/\$dldll~
 
18635
       $rm \$dlpath'
 
18636
    shlibpath_overrides_runpath=yes
 
18637
 
 
18638
    case $host_os in
 
18639
    cygwin*)
 
18640
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18641
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18642
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18643
      ;;
 
18644
    mingw*)
 
18645
      # MinGW DLLs use traditional 'lib' prefix
 
18646
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18647
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18648
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18649
        # It is most probably a Windows format PATH printed by
 
18650
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18651
        # path with ; separators, and with drive letters. We can handle the
 
18652
        # drive letters (cygwin fileutils understands them), so leave them,
 
18653
        # especially as we might pass files found there to a mingw objdump,
 
18654
        # which wouldn't understand a cygwinified path. Ahh.
 
18655
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18656
      else
 
18657
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18658
      fi
 
18659
      ;;
 
18660
    pw32*)
 
18661
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18662
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18663
      ;;
 
18664
    esac
 
18665
    ;;
 
18666
 
 
18667
  *)
 
18668
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18669
    ;;
 
18670
  esac
 
18671
  dynamic_linker='Win32 ld.exe'
 
18672
  # FIXME: first we should search . and the directory the executable is in
 
18673
  shlibpath_var=PATH
 
18674
  ;;
 
18675
 
 
18676
darwin* | rhapsody*)
 
18677
  dynamic_linker="$host_os dyld"
 
18678
  version_type=darwin
 
18679
  need_lib_prefix=no
 
18680
  need_version=no
 
18681
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18682
  soname_spec='${libname}${release}${major}$shared_ext'
 
18683
  shlibpath_overrides_runpath=yes
 
18684
  shlibpath_var=DYLD_LIBRARY_PATH
 
18685
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18686
   
 
18687
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18688
  ;;
 
18689
 
 
18690
dgux*)
 
18691
  version_type=linux
 
18692
  need_lib_prefix=no
 
18693
  need_version=no
 
18694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18695
  soname_spec='${libname}${release}${shared_ext}$major'
 
18696
  shlibpath_var=LD_LIBRARY_PATH
 
18697
  ;;
 
18698
 
 
18699
freebsd1*)
 
18700
  dynamic_linker=no
 
18701
  ;;
 
18702
 
 
18703
freebsd* | dragonfly*)
 
18704
  # DragonFly does not have aout.  When/if they implement a new
 
18705
  # versioning mechanism, adjust this.
 
18706
  if test -x /usr/bin/objformat; then
 
18707
    objformat=`/usr/bin/objformat`
 
18708
  else
 
18709
    case $host_os in
 
18710
    freebsd[123]*) objformat=aout ;;
 
18711
    *) objformat=elf ;;
 
18712
    esac
 
18713
  fi
 
18714
  version_type=freebsd-$objformat
 
18715
  case $version_type in
 
18716
    freebsd-elf*)
 
18717
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18718
      need_version=no
 
18719
      need_lib_prefix=no
 
18720
      ;;
 
18721
    freebsd-*)
 
18722
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18723
      need_version=yes
 
18724
      ;;
 
18725
  esac
 
18726
  shlibpath_var=LD_LIBRARY_PATH
 
18727
  case $host_os in
 
18728
  freebsd2*)
 
18729
    shlibpath_overrides_runpath=yes
 
18730
    ;;
 
18731
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18732
    shlibpath_overrides_runpath=yes
 
18733
    hardcode_into_libs=yes
 
18734
    ;;
 
18735
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18736
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18737
    shlibpath_overrides_runpath=no
 
18738
    hardcode_into_libs=yes
 
18739
    ;;
 
18740
  *) # from 4.6 on, and DragonFly
 
18741
    shlibpath_overrides_runpath=yes
 
18742
    hardcode_into_libs=yes
 
18743
    ;;
 
18744
  esac
 
18745
  ;;
 
18746
 
 
18747
gnu*)
 
18748
  version_type=linux
 
18749
  need_lib_prefix=no
 
18750
  need_version=no
 
18751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18752
  soname_spec='${libname}${release}${shared_ext}$major'
 
18753
  shlibpath_var=LD_LIBRARY_PATH
 
18754
  hardcode_into_libs=yes
 
18755
  ;;
 
18756
 
 
18757
hpux9* | hpux10* | hpux11*)
 
18758
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18759
  # link against other versions.
 
18760
  version_type=sunos
 
18761
  need_lib_prefix=no
 
18762
  need_version=no
 
18763
  case $host_cpu in
 
18764
  ia64*)
 
18765
    shrext_cmds='.so'
 
18766
    hardcode_into_libs=yes
 
18767
    dynamic_linker="$host_os dld.so"
 
18768
    shlibpath_var=LD_LIBRARY_PATH
 
18769
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18770
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18771
    soname_spec='${libname}${release}${shared_ext}$major'
 
18772
    if test "X$HPUX_IA64_MODE" = X32; then
 
18773
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18774
    else
 
18775
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18776
    fi
 
18777
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18778
    ;;
 
18779
   hppa*64*)
 
18780
     shrext_cmds='.sl'
 
18781
     hardcode_into_libs=yes
 
18782
     dynamic_linker="$host_os dld.sl"
 
18783
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18784
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18785
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18786
     soname_spec='${libname}${release}${shared_ext}$major'
 
18787
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18788
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18789
     ;;
 
18790
   *)
 
18791
    shrext_cmds='.sl'
 
18792
    dynamic_linker="$host_os dld.sl"
 
18793
    shlibpath_var=SHLIB_PATH
 
18794
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18795
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18796
    soname_spec='${libname}${release}${shared_ext}$major'
 
18797
    ;;
 
18798
  esac
 
18799
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18800
  postinstall_cmds='chmod 555 $lib'
 
18801
  ;;
 
18802
 
 
18803
interix[3-9]*)
 
18804
  version_type=linux
 
18805
  need_lib_prefix=no
 
18806
  need_version=no
 
18807
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18808
  soname_spec='${libname}${release}${shared_ext}$major'
 
18809
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18810
  shlibpath_var=LD_LIBRARY_PATH
 
18811
  shlibpath_overrides_runpath=no
 
18812
  hardcode_into_libs=yes
 
18813
  ;;
 
18814
 
 
18815
irix5* | irix6* | nonstopux*)
 
18816
  case $host_os in
 
18817
    nonstopux*) version_type=nonstopux ;;
 
18818
    *)
 
18819
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18820
                version_type=linux
 
18821
        else
 
18822
                version_type=irix
 
18823
        fi ;;
 
18824
  esac
 
18825
  need_lib_prefix=no
 
18826
  need_version=no
 
18827
  soname_spec='${libname}${release}${shared_ext}$major'
 
18828
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18829
  case $host_os in
 
18830
  irix5* | nonstopux*)
 
18831
    libsuff= shlibsuff=
 
18832
    ;;
 
18833
  *)
 
18834
    case $LD in # libtool.m4 will add one of these switches to LD
 
18835
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18836
      libsuff= shlibsuff= libmagic=32-bit;;
 
18837
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18838
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18839
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18840
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18841
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18842
    esac
 
18843
    ;;
 
18844
  esac
 
18845
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18846
  shlibpath_overrides_runpath=no
 
18847
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18848
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18849
  hardcode_into_libs=yes
 
18850
  ;;
 
18851
 
 
18852
# No shared lib support for Linux oldld, aout, or coff.
 
18853
linux*oldld* | linux*aout* | linux*coff*)
 
18854
  dynamic_linker=no
 
18855
  ;;
 
18856
 
 
18857
# This must be Linux ELF.
 
18858
linux* | k*bsd*-gnu)
 
18859
  version_type=linux
 
18860
  need_lib_prefix=no
 
18861
  need_version=no
 
18862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18863
  soname_spec='${libname}${release}${shared_ext}$major'
 
18864
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18865
  shlibpath_var=LD_LIBRARY_PATH
 
18866
  shlibpath_overrides_runpath=no
 
18867
  # This implies no fast_install, which is unacceptable.
 
18868
  # Some rework will be needed to allow for fast_install
 
18869
  # before this can be enabled.
 
18870
  hardcode_into_libs=yes
 
18871
 
 
18872
  # Append ld.so.conf contents to the search path
 
18873
  if test -f /etc/ld.so.conf; then
 
18874
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18875
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18876
  fi
 
18877
 
 
18878
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18879
  # powerpc, because MkLinux only supported shared libraries with the
 
18880
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18881
  # most powerpc-linux boxes support dynamic linking these days and
 
18882
  # people can always --disable-shared, the test was removed, and we
 
18883
  # assume the GNU/Linux dynamic linker is in use.
 
18884
  dynamic_linker='GNU/Linux ld.so'
 
18885
  ;;
 
18886
 
 
18887
netbsdelf*-gnu)
 
18888
  version_type=linux
 
18889
  need_lib_prefix=no
 
18890
  need_version=no
 
18891
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18892
  soname_spec='${libname}${release}${shared_ext}$major'
 
18893
  shlibpath_var=LD_LIBRARY_PATH
 
18894
  shlibpath_overrides_runpath=no
 
18895
  hardcode_into_libs=yes
 
18896
  dynamic_linker='NetBSD ld.elf_so'
 
18897
  ;;
 
18898
 
 
18899
netbsd*)
 
18900
  version_type=sunos
 
18901
  need_lib_prefix=no
 
18902
  need_version=no
 
18903
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18904
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18905
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18906
    dynamic_linker='NetBSD (a.out) ld.so'
 
18907
  else
 
18908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18909
    soname_spec='${libname}${release}${shared_ext}$major'
 
18910
    dynamic_linker='NetBSD ld.elf_so'
 
18911
  fi
 
18912
  shlibpath_var=LD_LIBRARY_PATH
 
18913
  shlibpath_overrides_runpath=yes
 
18914
  hardcode_into_libs=yes
 
18915
  ;;
 
18916
 
 
18917
newsos6)
 
18918
  version_type=linux
 
18919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18920
  shlibpath_var=LD_LIBRARY_PATH
 
18921
  shlibpath_overrides_runpath=yes
 
18922
  ;;
 
18923
 
 
18924
nto-qnx*)
 
18925
  version_type=linux
 
18926
  need_lib_prefix=no
 
18927
  need_version=no
 
18928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18929
  soname_spec='${libname}${release}${shared_ext}$major'
 
18930
  shlibpath_var=LD_LIBRARY_PATH
 
18931
  shlibpath_overrides_runpath=yes
 
18932
  ;;
 
18933
 
 
18934
openbsd*)
 
18935
  version_type=sunos
 
18936
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18937
  need_lib_prefix=no
 
18938
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18939
  case $host_os in
 
18940
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18941
    *)                         need_version=no  ;;
 
18942
  esac
 
18943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18944
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18945
  shlibpath_var=LD_LIBRARY_PATH
 
18946
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18947
    case $host_os in
 
18948
      openbsd2.[89] | openbsd2.[89].*)
 
18949
        shlibpath_overrides_runpath=no
 
18950
        ;;
 
18951
      *)
 
18952
        shlibpath_overrides_runpath=yes
 
18953
        ;;
 
18954
      esac
 
18955
  else
 
18956
    shlibpath_overrides_runpath=yes
 
18957
  fi
 
18958
  ;;
 
18959
 
 
18960
os2*)
 
18961
  libname_spec='$name'
 
18962
  shrext_cmds=".dll"
 
18963
  need_lib_prefix=no
 
18964
  library_names_spec='$libname${shared_ext} $libname.a'
 
18965
  dynamic_linker='OS/2 ld.exe'
 
18966
  shlibpath_var=LIBPATH
 
18967
  ;;
 
18968
 
 
18969
osf3* | osf4* | osf5*)
 
18970
  version_type=osf
 
18971
  need_lib_prefix=no
 
18972
  need_version=no
 
18973
  soname_spec='${libname}${release}${shared_ext}$major'
 
18974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18975
  shlibpath_var=LD_LIBRARY_PATH
 
18976
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18977
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18978
  ;;
 
18979
 
 
18980
rdos*)
 
18981
  dynamic_linker=no
 
18982
  ;;
 
18983
 
 
18984
solaris*)
 
18985
  version_type=linux
 
18986
  need_lib_prefix=no
 
18987
  need_version=no
 
18988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18989
  soname_spec='${libname}${release}${shared_ext}$major'
 
18990
  shlibpath_var=LD_LIBRARY_PATH
 
18991
  shlibpath_overrides_runpath=yes
 
18992
  hardcode_into_libs=yes
 
18993
  # ldd complains unless libraries are executable
 
18994
  postinstall_cmds='chmod +x $lib'
 
18995
  ;;
 
18996
 
 
18997
sunos4*)
 
18998
  version_type=sunos
 
18999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19000
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19001
  shlibpath_var=LD_LIBRARY_PATH
 
19002
  shlibpath_overrides_runpath=yes
 
19003
  if test "$with_gnu_ld" = yes; then
 
19004
    need_lib_prefix=no
 
19005
  fi
 
19006
  need_version=yes
 
19007
  ;;
 
19008
 
 
19009
sysv4 | sysv4.3*)
 
19010
  version_type=linux
 
19011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19012
  soname_spec='${libname}${release}${shared_ext}$major'
 
19013
  shlibpath_var=LD_LIBRARY_PATH
 
19014
  case $host_vendor in
 
19015
    sni)
 
19016
      shlibpath_overrides_runpath=no
 
19017
      need_lib_prefix=no
 
19018
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19019
      runpath_var=LD_RUN_PATH
 
19020
      ;;
 
19021
    siemens)
 
19022
      need_lib_prefix=no
 
19023
      ;;
 
19024
    motorola)
 
19025
      need_lib_prefix=no
 
19026
      need_version=no
 
19027
      shlibpath_overrides_runpath=no
 
19028
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19029
      ;;
 
19030
  esac
 
19031
  ;;
 
19032
 
 
19033
sysv4*MP*)
 
19034
  if test -d /usr/nec ;then
 
19035
    version_type=linux
 
19036
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19037
    soname_spec='$libname${shared_ext}.$major'
 
19038
    shlibpath_var=LD_LIBRARY_PATH
 
19039
  fi
 
19040
  ;;
 
19041
 
 
19042
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19043
  version_type=freebsd-elf
 
19044
  need_lib_prefix=no
 
19045
  need_version=no
 
19046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19047
  soname_spec='${libname}${release}${shared_ext}$major'
 
19048
  shlibpath_var=LD_LIBRARY_PATH
 
19049
  hardcode_into_libs=yes
 
19050
  if test "$with_gnu_ld" = yes; then
 
19051
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19052
    shlibpath_overrides_runpath=no
 
19053
  else
 
19054
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19055
    shlibpath_overrides_runpath=yes
 
19056
    case $host_os in
 
19057
      sco3.2v5*)
 
19058
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19059
        ;;
 
19060
    esac
 
19061
  fi
 
19062
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19063
  ;;
 
19064
 
 
19065
uts4*)
 
19066
  version_type=linux
 
19067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19068
  soname_spec='${libname}${release}${shared_ext}$major'
 
19069
  shlibpath_var=LD_LIBRARY_PATH
 
19070
  ;;
 
19071
 
 
19072
*)
 
19073
  dynamic_linker=no
 
19074
  ;;
 
19075
esac
 
19076
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19077
echo "${ECHO_T}$dynamic_linker" >&6; }
 
19078
test "$dynamic_linker" = no && can_build_shared=no
 
19079
 
 
19080
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19082
else
 
19083
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19084
fi
 
19085
 
 
19086
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19087
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19089
else
 
19090
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19091
fi
 
19092
 
 
19093
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19094
 
 
19095
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19096
if test "$GCC" = yes; then
 
19097
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19098
fi
 
19099
 
 
19100
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19101
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
19102
hardcode_action_GCJ=
 
19103
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19104
   test -n "$runpath_var_GCJ" || \
 
19105
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19106
 
 
19107
  # We can hardcode non-existant directories.
 
19108
  if test "$hardcode_direct_GCJ" != no &&
 
19109
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19110
     # have to relink, otherwise we might link with an installed library
 
19111
     # when we should be linking with a yet-to-be-installed one
 
19112
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19113
     test "$hardcode_minus_L_GCJ" != no; then
 
19114
    # Linking always hardcodes the temporary library directory.
 
19115
    hardcode_action_GCJ=relink
 
19116
  else
 
19117
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19118
    hardcode_action_GCJ=immediate
 
19119
  fi
 
19120
else
 
19121
  # We cannot hardcode anything, or else we can only hardcode existing
 
19122
  # directories.
 
19123
  hardcode_action_GCJ=unsupported
 
19124
fi
 
19125
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19126
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
19127
 
 
19128
if test "$hardcode_action_GCJ" = relink; then
 
19129
  # Fast installation is not supported
 
19130
  enable_fast_install=no
 
19131
elif test "$shlibpath_overrides_runpath" = yes ||
 
19132
     test "$enable_shared" = no; then
 
19133
  # Fast installation is not necessary
 
19134
  enable_fast_install=needless
 
19135
fi
 
19136
 
 
19137
 
 
19138
# The else clause should only fire when bootstrapping the
 
19139
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19140
# with your package, and you will get complaints that there are
 
19141
# no rules to generate ltmain.sh.
 
19142
if test -f "$ltmain"; then
 
19143
  # See if we are running on zsh, and set the options which allow our commands through
 
19144
  # without removal of \ escapes.
 
19145
  if test -n "${ZSH_VERSION+set}" ; then
 
19146
    setopt NO_GLOB_SUBST
 
19147
  fi
 
19148
  # Now quote all the things that may contain metacharacters while being
 
19149
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19150
  # variables and quote the copies for generation of the libtool script.
 
19151
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19152
    SED SHELL STRIP \
 
19153
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19154
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19155
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19156
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19157
    lt_cv_sys_global_symbol_to_c_name_address \
 
19158
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19159
    old_postinstall_cmds old_postuninstall_cmds \
 
19160
    compiler_GCJ \
 
19161
    CC_GCJ \
 
19162
    LD_GCJ \
 
19163
    lt_prog_compiler_wl_GCJ \
 
19164
    lt_prog_compiler_pic_GCJ \
 
19165
    lt_prog_compiler_static_GCJ \
 
19166
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19167
    export_dynamic_flag_spec_GCJ \
 
19168
    thread_safe_flag_spec_GCJ \
 
19169
    whole_archive_flag_spec_GCJ \
 
19170
    enable_shared_with_static_runtimes_GCJ \
 
19171
    old_archive_cmds_GCJ \
 
19172
    old_archive_from_new_cmds_GCJ \
 
19173
    predep_objects_GCJ \
 
19174
    postdep_objects_GCJ \
 
19175
    predeps_GCJ \
 
19176
    postdeps_GCJ \
 
19177
    compiler_lib_search_path_GCJ \
 
19178
    compiler_lib_search_dirs_GCJ \
 
19179
    archive_cmds_GCJ \
 
19180
    archive_expsym_cmds_GCJ \
 
19181
    postinstall_cmds_GCJ \
 
19182
    postuninstall_cmds_GCJ \
 
19183
    old_archive_from_expsyms_cmds_GCJ \
 
19184
    allow_undefined_flag_GCJ \
 
19185
    no_undefined_flag_GCJ \
 
19186
    export_symbols_cmds_GCJ \
 
19187
    hardcode_libdir_flag_spec_GCJ \
 
19188
    hardcode_libdir_flag_spec_ld_GCJ \
 
19189
    hardcode_libdir_separator_GCJ \
 
19190
    hardcode_automatic_GCJ \
 
19191
    module_cmds_GCJ \
 
19192
    module_expsym_cmds_GCJ \
 
19193
    lt_cv_prog_compiler_c_o_GCJ \
 
19194
    fix_srcfile_path_GCJ \
 
19195
    exclude_expsyms_GCJ \
 
19196
    include_expsyms_GCJ; do
 
19197
 
 
19198
    case $var in
 
19199
    old_archive_cmds_GCJ | \
 
19200
    old_archive_from_new_cmds_GCJ | \
 
19201
    archive_cmds_GCJ | \
 
19202
    archive_expsym_cmds_GCJ | \
 
19203
    module_cmds_GCJ | \
 
19204
    module_expsym_cmds_GCJ | \
 
19205
    old_archive_from_expsyms_cmds_GCJ | \
 
19206
    export_symbols_cmds_GCJ | \
 
19207
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19208
    postinstall_cmds | postuninstall_cmds | \
 
19209
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19210
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19211
      # Double-quote double-evaled strings.
 
19212
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19213
      ;;
 
19214
    *)
 
19215
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19216
      ;;
 
19217
    esac
 
19218
  done
 
19219
 
 
19220
  case $lt_echo in
 
19221
  *'\$0 --fallback-echo"')
 
19222
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19223
    ;;
 
19224
  esac
 
19225
 
 
19226
cfgfile="$ofile"
 
19227
 
 
19228
  cat <<__EOF__ >> "$cfgfile"
 
19229
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19230
 
 
19231
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19232
 
 
19233
# Shell to use when invoking shell scripts.
 
19234
SHELL=$lt_SHELL
 
19235
 
 
19236
# Whether or not to build shared libraries.
 
19237
build_libtool_libs=$enable_shared
 
19238
 
 
19239
# Whether or not to build static libraries.
 
19240
build_old_libs=$enable_static
 
19241
 
 
19242
# Whether or not to add -lc for building shared libraries.
 
19243
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19244
 
 
19245
# Whether or not to disallow shared libs when runtime libs are static
 
19246
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19247
 
 
19248
# Whether or not to optimize for fast installation.
 
19249
fast_install=$enable_fast_install
 
19250
 
 
19251
# The host system.
 
19252
host_alias=$host_alias
 
19253
host=$host
 
19254
host_os=$host_os
 
19255
 
 
19256
# The build system.
 
19257
build_alias=$build_alias
 
19258
build=$build
 
19259
build_os=$build_os
 
19260
 
 
19261
# An echo program that does not interpret backslashes.
 
19262
echo=$lt_echo
 
19263
 
 
19264
# The archiver.
 
19265
AR=$lt_AR
 
19266
AR_FLAGS=$lt_AR_FLAGS
 
19267
 
 
19268
# A C compiler.
 
19269
LTCC=$lt_LTCC
 
19270
 
 
19271
# LTCC compiler flags.
 
19272
LTCFLAGS=$lt_LTCFLAGS
 
19273
 
 
19274
# A language-specific compiler.
 
19275
CC=$lt_compiler_GCJ
 
19276
 
 
19277
# Is the compiler the GNU C compiler?
 
19278
with_gcc=$GCC_GCJ
 
19279
 
 
19280
# An ERE matcher.
 
19281
EGREP=$lt_EGREP
 
19282
 
 
19283
# The linker used to build libraries.
 
19284
LD=$lt_LD_GCJ
 
19285
 
 
19286
# Whether we need hard or soft links.
 
19287
LN_S=$lt_LN_S
 
19288
 
 
19289
# A BSD-compatible nm program.
 
19290
NM=$lt_NM
 
19291
 
 
19292
# A symbol stripping program
 
19293
STRIP=$lt_STRIP
 
19294
 
 
19295
# Used to examine libraries when file_magic_cmd begins "file"
 
19296
MAGIC_CMD=$MAGIC_CMD
 
19297
 
 
19298
# Used on cygwin: DLL creation program.
 
19299
DLLTOOL="$DLLTOOL"
 
19300
 
 
19301
# Used on cygwin: object dumper.
 
19302
OBJDUMP="$OBJDUMP"
 
19303
 
 
19304
# Used on cygwin: assembler.
 
19305
AS="$AS"
 
19306
 
 
19307
# The name of the directory that contains temporary libtool files.
 
19308
objdir=$objdir
 
19309
 
 
19310
# How to create reloadable object files.
 
19311
reload_flag=$lt_reload_flag
 
19312
reload_cmds=$lt_reload_cmds
 
19313
 
 
19314
# How to pass a linker flag through the compiler.
 
19315
wl=$lt_lt_prog_compiler_wl_GCJ
 
19316
 
 
19317
# Object file suffix (normally "o").
 
19318
objext="$ac_objext"
 
19319
 
 
19320
# Old archive suffix (normally "a").
 
19321
libext="$libext"
 
19322
 
 
19323
# Shared library suffix (normally ".so").
 
19324
shrext_cmds='$shrext_cmds'
 
19325
 
 
19326
# Executable file suffix (normally "").
 
19327
exeext="$exeext"
 
19328
 
 
19329
# Additional compiler flags for building library objects.
 
19330
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19331
pic_mode=$pic_mode
 
19332
 
 
19333
# What is the maximum length of a command?
 
19334
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19335
 
 
19336
# Does compiler simultaneously support -c and -o options?
 
19337
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19338
 
 
19339
# Must we lock files when doing compilation?
 
19340
need_locks=$lt_need_locks
 
19341
 
 
19342
# Do we need the lib prefix for modules?
 
19343
need_lib_prefix=$need_lib_prefix
 
19344
 
 
19345
# Do we need a version for libraries?
 
19346
need_version=$need_version
 
19347
 
 
19348
# Whether dlopen is supported.
 
19349
dlopen_support=$enable_dlopen
 
19350
 
 
19351
# Whether dlopen of programs is supported.
 
19352
dlopen_self=$enable_dlopen_self
 
19353
 
 
19354
# Whether dlopen of statically linked programs is supported.
 
19355
dlopen_self_static=$enable_dlopen_self_static
 
19356
 
 
19357
# Compiler flag to prevent dynamic linking.
 
19358
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19359
 
 
19360
# Compiler flag to turn off builtin functions.
 
19361
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19362
 
 
19363
# Compiler flag to allow reflexive dlopens.
 
19364
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19365
 
 
19366
# Compiler flag to generate shared objects directly from archives.
 
19367
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19368
 
 
19369
# Compiler flag to generate thread-safe objects.
 
19370
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19371
 
 
19372
# Library versioning type.
 
19373
version_type=$version_type
 
19374
 
 
19375
# Format of library name prefix.
 
19376
libname_spec=$lt_libname_spec
 
19377
 
 
19378
# List of archive names.  First name is the real one, the rest are links.
 
19379
# The last name is the one that the linker finds with -lNAME.
 
19380
library_names_spec=$lt_library_names_spec
 
19381
 
 
19382
# The coded name of the library, if different from the real name.
 
19383
soname_spec=$lt_soname_spec
 
19384
 
 
19385
# Commands used to build and install an old-style archive.
 
19386
RANLIB=$lt_RANLIB
 
19387
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19388
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19389
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19390
 
 
19391
# Create an old-style archive from a shared archive.
 
19392
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19393
 
 
19394
# Create a temporary old-style archive to link instead of a shared archive.
 
19395
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19396
 
 
19397
# Commands used to build and install a shared archive.
 
19398
archive_cmds=$lt_archive_cmds_GCJ
 
19399
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19400
postinstall_cmds=$lt_postinstall_cmds
 
19401
postuninstall_cmds=$lt_postuninstall_cmds
 
19402
 
 
19403
# Commands used to build a loadable module (assumed same as above if empty)
 
19404
module_cmds=$lt_module_cmds_GCJ
 
19405
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19406
 
 
19407
# Commands to strip libraries.
 
19408
old_striplib=$lt_old_striplib
 
19409
striplib=$lt_striplib
 
19410
 
 
19411
# Dependencies to place before the objects being linked to create a
 
19412
# shared library.
 
19413
predep_objects=$lt_predep_objects_GCJ
 
19414
 
 
19415
# Dependencies to place after the objects being linked to create a
 
19416
# shared library.
 
19417
postdep_objects=$lt_postdep_objects_GCJ
 
19418
 
 
19419
# Dependencies to place before the objects being linked to create a
 
19420
# shared library.
 
19421
predeps=$lt_predeps_GCJ
 
19422
 
 
19423
# Dependencies to place after the objects being linked to create a
 
19424
# shared library.
 
19425
postdeps=$lt_postdeps_GCJ
 
19426
 
 
19427
# The directories searched by this compiler when creating a shared
 
19428
# library
 
19429
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19430
 
 
19431
# The library search path used internally by the compiler when linking
 
19432
# a shared library.
 
19433
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19434
 
 
19435
# Method to check whether dependent libraries are shared objects.
 
19436
deplibs_check_method=$lt_deplibs_check_method
 
19437
 
 
19438
# Command to use when deplibs_check_method == file_magic.
 
19439
file_magic_cmd=$lt_file_magic_cmd
 
19440
 
 
19441
# Flag that allows shared libraries with undefined symbols to be built.
 
19442
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19443
 
 
19444
# Flag that forces no undefined symbols.
 
19445
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19446
 
 
19447
# Commands used to finish a libtool library installation in a directory.
 
19448
finish_cmds=$lt_finish_cmds
 
19449
 
 
19450
# Same as above, but a single script fragment to be evaled but not shown.
 
19451
finish_eval=$lt_finish_eval
 
19452
 
 
19453
# Take the output of nm and produce a listing of raw symbols and C names.
 
19454
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19455
 
 
19456
# Transform the output of nm in a proper C declaration
 
19457
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19458
 
 
19459
# Transform the output of nm in a C name address pair
 
19460
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19461
 
 
19462
# This is the shared library runtime path variable.
 
19463
runpath_var=$runpath_var
 
19464
 
 
19465
# This is the shared library path variable.
 
19466
shlibpath_var=$shlibpath_var
 
19467
 
 
19468
# Is shlibpath searched before the hard-coded library search path?
 
19469
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19470
 
 
19471
# How to hardcode a shared library path into an executable.
 
19472
hardcode_action=$hardcode_action_GCJ
 
19473
 
 
19474
# Whether we should hardcode library paths into libraries.
 
19475
hardcode_into_libs=$hardcode_into_libs
 
19476
 
 
19477
# Flag to hardcode \$libdir into a binary during linking.
 
19478
# This must work even if \$libdir does not exist.
 
19479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19480
 
 
19481
# If ld is used when linking, flag to hardcode \$libdir into
 
19482
# a binary during linking. This must work even if \$libdir does
 
19483
# not exist.
 
19484
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19485
 
 
19486
# Whether we need a single -rpath flag with a separated argument.
 
19487
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19488
 
 
19489
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19490
# resulting binary.
 
19491
hardcode_direct=$hardcode_direct_GCJ
 
19492
 
 
19493
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19494
# resulting binary.
 
19495
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19496
 
 
19497
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19498
# the resulting binary.
 
19499
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19500
 
 
19501
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19502
# and all subsequent libraries and executables linked against it.
 
19503
hardcode_automatic=$hardcode_automatic_GCJ
 
19504
 
 
19505
# Variables whose values should be saved in libtool wrapper scripts and
 
19506
# restored at relink time.
 
19507
variables_saved_for_relink="$variables_saved_for_relink"
 
19508
 
 
19509
# Whether libtool must link a program against all its dependency libraries.
 
19510
link_all_deplibs=$link_all_deplibs_GCJ
 
19511
 
 
19512
# Compile-time system search path for libraries
 
19513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19514
 
 
19515
# Run-time system search path for libraries
 
19516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19517
 
 
19518
# Fix the shell variable \$srcfile for the compiler.
 
19519
fix_srcfile_path=$lt_fix_srcfile_path
 
19520
 
 
19521
# Set to yes if exported symbols are required.
 
19522
always_export_symbols=$always_export_symbols_GCJ
 
19523
 
 
19524
# The commands to list exported symbols.
 
19525
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19526
 
 
19527
# The commands to extract the exported symbol list from a shared archive.
 
19528
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19529
 
 
19530
# Symbols that should not be listed in the preloaded symbols.
 
19531
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19532
 
 
19533
# Symbols that must always be exported.
 
19534
include_expsyms=$lt_include_expsyms_GCJ
 
19535
 
 
19536
# ### END LIBTOOL TAG CONFIG: $tagname
 
19537
 
 
19538
__EOF__
 
19539
 
 
19540
 
 
19541
else
 
19542
  # If there is no Makefile yet, we rely on a make rule to execute
 
19543
  # `config.status --recheck' to rerun these tests and create the
 
19544
  # libtool script then.
 
19545
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19546
  if test -f "$ltmain_in"; then
 
19547
    test -f Makefile && make "$ltmain"
 
19548
  fi
 
19549
fi
 
19550
 
 
19551
 
 
19552
ac_ext=c
 
19553
ac_cpp='$CPP $CPPFLAGS'
 
19554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19557
 
 
19558
CC="$lt_save_CC"
 
19559
 
 
19560
        else
 
19561
          tagname=""
 
19562
        fi
 
19563
        ;;
 
19564
 
 
19565
      RC)
 
19566
        
 
19567
 
 
19568
# Source file extension for RC test sources.
 
19569
ac_ext=rc
 
19570
 
 
19571
# Object file extension for compiled RC test sources.
 
19572
objext=o
 
19573
objext_RC=$objext
 
19574
 
 
19575
# Code to be used in simple compile tests
 
19576
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19577
 
 
19578
# Code to be used in simple link tests
 
19579
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19580
 
 
19581
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19582
 
 
19583
# If no C compiler was specified, use CC.
 
19584
LTCC=${LTCC-"$CC"}
 
19585
 
 
19586
# If no C compiler flags were specified, use CFLAGS.
 
19587
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19588
 
 
19589
# Allow CC to be a program name with arguments.
 
19590
compiler=$CC
 
19591
 
 
19592
 
 
19593
# save warnings/boilerplate of simple test code
 
19594
ac_outfile=conftest.$ac_objext
 
19595
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19596
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19597
_lt_compiler_boilerplate=`cat conftest.err`
 
19598
$rm conftest*
 
19599
 
 
19600
ac_outfile=conftest.$ac_objext
 
19601
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19602
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19603
_lt_linker_boilerplate=`cat conftest.err`
 
19604
$rm -r conftest*
 
19605
 
 
19606
 
 
19607
# Allow CC to be a program name with arguments.
 
19608
lt_save_CC="$CC"
 
19609
CC=${RC-"windres"}
 
19610
compiler=$CC
 
19611
compiler_RC=$CC
 
19612
for cc_temp in $compiler""; do
 
19613
  case $cc_temp in
 
19614
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19615
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19616
    \-*) ;;
 
19617
    *) break;;
 
19618
  esac
 
19619
done
 
19620
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19621
 
 
19622
lt_cv_prog_compiler_c_o_RC=yes
 
19623
 
 
19624
# The else clause should only fire when bootstrapping the
 
19625
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19626
# with your package, and you will get complaints that there are
 
19627
# no rules to generate ltmain.sh.
 
19628
if test -f "$ltmain"; then
 
19629
  # See if we are running on zsh, and set the options which allow our commands through
 
19630
  # without removal of \ escapes.
 
19631
  if test -n "${ZSH_VERSION+set}" ; then
 
19632
    setopt NO_GLOB_SUBST
 
19633
  fi
 
19634
  # Now quote all the things that may contain metacharacters while being
 
19635
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19636
  # variables and quote the copies for generation of the libtool script.
 
19637
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19638
    SED SHELL STRIP \
 
19639
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19640
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19641
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19642
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19643
    lt_cv_sys_global_symbol_to_c_name_address \
 
19644
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19645
    old_postinstall_cmds old_postuninstall_cmds \
 
19646
    compiler_RC \
 
19647
    CC_RC \
 
19648
    LD_RC \
 
19649
    lt_prog_compiler_wl_RC \
 
19650
    lt_prog_compiler_pic_RC \
 
19651
    lt_prog_compiler_static_RC \
 
19652
    lt_prog_compiler_no_builtin_flag_RC \
 
19653
    export_dynamic_flag_spec_RC \
 
19654
    thread_safe_flag_spec_RC \
 
19655
    whole_archive_flag_spec_RC \
 
19656
    enable_shared_with_static_runtimes_RC \
 
19657
    old_archive_cmds_RC \
 
19658
    old_archive_from_new_cmds_RC \
 
19659
    predep_objects_RC \
 
19660
    postdep_objects_RC \
 
19661
    predeps_RC \
 
19662
    postdeps_RC \
 
19663
    compiler_lib_search_path_RC \
 
19664
    compiler_lib_search_dirs_RC \
 
19665
    archive_cmds_RC \
 
19666
    archive_expsym_cmds_RC \
 
19667
    postinstall_cmds_RC \
 
19668
    postuninstall_cmds_RC \
 
19669
    old_archive_from_expsyms_cmds_RC \
 
19670
    allow_undefined_flag_RC \
 
19671
    no_undefined_flag_RC \
 
19672
    export_symbols_cmds_RC \
 
19673
    hardcode_libdir_flag_spec_RC \
 
19674
    hardcode_libdir_flag_spec_ld_RC \
 
19675
    hardcode_libdir_separator_RC \
 
19676
    hardcode_automatic_RC \
 
19677
    module_cmds_RC \
 
19678
    module_expsym_cmds_RC \
 
19679
    lt_cv_prog_compiler_c_o_RC \
 
19680
    fix_srcfile_path_RC \
 
19681
    exclude_expsyms_RC \
 
19682
    include_expsyms_RC; do
 
19683
 
 
19684
    case $var in
 
19685
    old_archive_cmds_RC | \
 
19686
    old_archive_from_new_cmds_RC | \
 
19687
    archive_cmds_RC | \
 
19688
    archive_expsym_cmds_RC | \
 
19689
    module_cmds_RC | \
 
19690
    module_expsym_cmds_RC | \
 
19691
    old_archive_from_expsyms_cmds_RC | \
 
19692
    export_symbols_cmds_RC | \
 
19693
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19694
    postinstall_cmds | postuninstall_cmds | \
 
19695
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19696
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19697
      # Double-quote double-evaled strings.
 
19698
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19699
      ;;
 
19700
    *)
 
19701
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19702
      ;;
 
19703
    esac
 
19704
  done
 
19705
 
 
19706
  case $lt_echo in
 
19707
  *'\$0 --fallback-echo"')
 
19708
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19709
    ;;
 
19710
  esac
 
19711
 
 
19712
cfgfile="$ofile"
 
19713
 
 
19714
  cat <<__EOF__ >> "$cfgfile"
 
19715
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19716
 
 
19717
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19718
 
 
19719
# Shell to use when invoking shell scripts.
 
19720
SHELL=$lt_SHELL
 
19721
 
 
19722
# Whether or not to build shared libraries.
 
19723
build_libtool_libs=$enable_shared
 
19724
 
 
19725
# Whether or not to build static libraries.
 
19726
build_old_libs=$enable_static
 
19727
 
 
19728
# Whether or not to add -lc for building shared libraries.
 
19729
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19730
 
 
19731
# Whether or not to disallow shared libs when runtime libs are static
 
19732
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19733
 
 
19734
# Whether or not to optimize for fast installation.
 
19735
fast_install=$enable_fast_install
 
19736
 
 
19737
# The host system.
 
19738
host_alias=$host_alias
 
19739
host=$host
 
19740
host_os=$host_os
 
19741
 
 
19742
# The build system.
 
19743
build_alias=$build_alias
 
19744
build=$build
 
19745
build_os=$build_os
 
19746
 
 
19747
# An echo program that does not interpret backslashes.
 
19748
echo=$lt_echo
 
19749
 
 
19750
# The archiver.
 
19751
AR=$lt_AR
 
19752
AR_FLAGS=$lt_AR_FLAGS
 
19753
 
 
19754
# A C compiler.
 
19755
LTCC=$lt_LTCC
 
19756
 
 
19757
# LTCC compiler flags.
 
19758
LTCFLAGS=$lt_LTCFLAGS
 
19759
 
 
19760
# A language-specific compiler.
 
19761
CC=$lt_compiler_RC
 
19762
 
 
19763
# Is the compiler the GNU C compiler?
 
19764
with_gcc=$GCC_RC
 
19765
 
 
19766
# An ERE matcher.
 
19767
EGREP=$lt_EGREP
 
19768
 
 
19769
# The linker used to build libraries.
 
19770
LD=$lt_LD_RC
 
19771
 
 
19772
# Whether we need hard or soft links.
 
19773
LN_S=$lt_LN_S
 
19774
 
 
19775
# A BSD-compatible nm program.
 
19776
NM=$lt_NM
 
19777
 
 
19778
# A symbol stripping program
 
19779
STRIP=$lt_STRIP
 
19780
 
 
19781
# Used to examine libraries when file_magic_cmd begins "file"
 
19782
MAGIC_CMD=$MAGIC_CMD
 
19783
 
 
19784
# Used on cygwin: DLL creation program.
 
19785
DLLTOOL="$DLLTOOL"
 
19786
 
 
19787
# Used on cygwin: object dumper.
 
19788
OBJDUMP="$OBJDUMP"
 
19789
 
 
19790
# Used on cygwin: assembler.
 
19791
AS="$AS"
 
19792
 
 
19793
# The name of the directory that contains temporary libtool files.
 
19794
objdir=$objdir
 
19795
 
 
19796
# How to create reloadable object files.
 
19797
reload_flag=$lt_reload_flag
 
19798
reload_cmds=$lt_reload_cmds
 
19799
 
 
19800
# How to pass a linker flag through the compiler.
 
19801
wl=$lt_lt_prog_compiler_wl_RC
 
19802
 
 
19803
# Object file suffix (normally "o").
 
19804
objext="$ac_objext"
 
19805
 
 
19806
# Old archive suffix (normally "a").
 
19807
libext="$libext"
 
19808
 
 
19809
# Shared library suffix (normally ".so").
 
19810
shrext_cmds='$shrext_cmds'
 
19811
 
 
19812
# Executable file suffix (normally "").
 
19813
exeext="$exeext"
 
19814
 
 
19815
# Additional compiler flags for building library objects.
 
19816
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19817
pic_mode=$pic_mode
 
19818
 
 
19819
# What is the maximum length of a command?
 
19820
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19821
 
 
19822
# Does compiler simultaneously support -c and -o options?
 
19823
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19824
 
 
19825
# Must we lock files when doing compilation?
 
19826
need_locks=$lt_need_locks
 
19827
 
 
19828
# Do we need the lib prefix for modules?
 
19829
need_lib_prefix=$need_lib_prefix
 
19830
 
 
19831
# Do we need a version for libraries?
 
19832
need_version=$need_version
 
19833
 
 
19834
# Whether dlopen is supported.
 
19835
dlopen_support=$enable_dlopen
 
19836
 
 
19837
# Whether dlopen of programs is supported.
 
19838
dlopen_self=$enable_dlopen_self
 
19839
 
 
19840
# Whether dlopen of statically linked programs is supported.
 
19841
dlopen_self_static=$enable_dlopen_self_static
 
19842
 
 
19843
# Compiler flag to prevent dynamic linking.
 
19844
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19845
 
 
19846
# Compiler flag to turn off builtin functions.
 
19847
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19848
 
 
19849
# Compiler flag to allow reflexive dlopens.
 
19850
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19851
 
 
19852
# Compiler flag to generate shared objects directly from archives.
 
19853
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19854
 
 
19855
# Compiler flag to generate thread-safe objects.
 
19856
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19857
 
 
19858
# Library versioning type.
 
19859
version_type=$version_type
 
19860
 
 
19861
# Format of library name prefix.
 
19862
libname_spec=$lt_libname_spec
 
19863
 
 
19864
# List of archive names.  First name is the real one, the rest are links.
 
19865
# The last name is the one that the linker finds with -lNAME.
 
19866
library_names_spec=$lt_library_names_spec
 
19867
 
 
19868
# The coded name of the library, if different from the real name.
 
19869
soname_spec=$lt_soname_spec
 
19870
 
 
19871
# Commands used to build and install an old-style archive.
 
19872
RANLIB=$lt_RANLIB
 
19873
old_archive_cmds=$lt_old_archive_cmds_RC
 
19874
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19875
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19876
 
 
19877
# Create an old-style archive from a shared archive.
 
19878
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19879
 
 
19880
# Create a temporary old-style archive to link instead of a shared archive.
 
19881
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19882
 
 
19883
# Commands used to build and install a shared archive.
 
19884
archive_cmds=$lt_archive_cmds_RC
 
19885
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19886
postinstall_cmds=$lt_postinstall_cmds
 
19887
postuninstall_cmds=$lt_postuninstall_cmds
 
19888
 
 
19889
# Commands used to build a loadable module (assumed same as above if empty)
 
19890
module_cmds=$lt_module_cmds_RC
 
19891
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19892
 
 
19893
# Commands to strip libraries.
 
19894
old_striplib=$lt_old_striplib
 
19895
striplib=$lt_striplib
 
19896
 
 
19897
# Dependencies to place before the objects being linked to create a
 
19898
# shared library.
 
19899
predep_objects=$lt_predep_objects_RC
 
19900
 
 
19901
# Dependencies to place after the objects being linked to create a
 
19902
# shared library.
 
19903
postdep_objects=$lt_postdep_objects_RC
 
19904
 
 
19905
# Dependencies to place before the objects being linked to create a
 
19906
# shared library.
 
19907
predeps=$lt_predeps_RC
 
19908
 
 
19909
# Dependencies to place after the objects being linked to create a
 
19910
# shared library.
 
19911
postdeps=$lt_postdeps_RC
 
19912
 
 
19913
# The directories searched by this compiler when creating a shared
 
19914
# library
 
19915
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19916
 
 
19917
# The library search path used internally by the compiler when linking
 
19918
# a shared library.
 
19919
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19920
 
 
19921
# Method to check whether dependent libraries are shared objects.
 
19922
deplibs_check_method=$lt_deplibs_check_method
 
19923
 
 
19924
# Command to use when deplibs_check_method == file_magic.
 
19925
file_magic_cmd=$lt_file_magic_cmd
 
19926
 
 
19927
# Flag that allows shared libraries with undefined symbols to be built.
 
19928
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19929
 
 
19930
# Flag that forces no undefined symbols.
 
19931
no_undefined_flag=$lt_no_undefined_flag_RC
 
19932
 
 
19933
# Commands used to finish a libtool library installation in a directory.
 
19934
finish_cmds=$lt_finish_cmds
 
19935
 
 
19936
# Same as above, but a single script fragment to be evaled but not shown.
 
19937
finish_eval=$lt_finish_eval
 
19938
 
 
19939
# Take the output of nm and produce a listing of raw symbols and C names.
 
19940
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19941
 
 
19942
# Transform the output of nm in a proper C declaration
 
19943
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19944
 
 
19945
# Transform the output of nm in a C name address pair
 
19946
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19947
 
 
19948
# This is the shared library runtime path variable.
 
19949
runpath_var=$runpath_var
 
19950
 
 
19951
# This is the shared library path variable.
 
19952
shlibpath_var=$shlibpath_var
 
19953
 
 
19954
# Is shlibpath searched before the hard-coded library search path?
 
19955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19956
 
 
19957
# How to hardcode a shared library path into an executable.
 
19958
hardcode_action=$hardcode_action_RC
 
19959
 
 
19960
# Whether we should hardcode library paths into libraries.
 
19961
hardcode_into_libs=$hardcode_into_libs
 
19962
 
 
19963
# Flag to hardcode \$libdir into a binary during linking.
 
19964
# This must work even if \$libdir does not exist.
 
19965
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19966
 
 
19967
# If ld is used when linking, flag to hardcode \$libdir into
 
19968
# a binary during linking. This must work even if \$libdir does
 
19969
# not exist.
 
19970
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19971
 
 
19972
# Whether we need a single -rpath flag with a separated argument.
 
19973
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19974
 
 
19975
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19976
# resulting binary.
 
19977
hardcode_direct=$hardcode_direct_RC
 
19978
 
 
19979
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19980
# resulting binary.
 
19981
hardcode_minus_L=$hardcode_minus_L_RC
 
19982
 
 
19983
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19984
# the resulting binary.
 
19985
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19986
 
 
19987
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19988
# and all subsequent libraries and executables linked against it.
 
19989
hardcode_automatic=$hardcode_automatic_RC
 
19990
 
 
19991
# Variables whose values should be saved in libtool wrapper scripts and
 
19992
# restored at relink time.
 
19993
variables_saved_for_relink="$variables_saved_for_relink"
 
19994
 
 
19995
# Whether libtool must link a program against all its dependency libraries.
 
19996
link_all_deplibs=$link_all_deplibs_RC
 
19997
 
 
19998
# Compile-time system search path for libraries
 
19999
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20000
 
 
20001
# Run-time system search path for libraries
 
20002
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20003
 
 
20004
# Fix the shell variable \$srcfile for the compiler.
 
20005
fix_srcfile_path=$lt_fix_srcfile_path
 
20006
 
 
20007
# Set to yes if exported symbols are required.
 
20008
always_export_symbols=$always_export_symbols_RC
 
20009
 
 
20010
# The commands to list exported symbols.
 
20011
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20012
 
 
20013
# The commands to extract the exported symbol list from a shared archive.
 
20014
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20015
 
 
20016
# Symbols that should not be listed in the preloaded symbols.
 
20017
exclude_expsyms=$lt_exclude_expsyms_RC
 
20018
 
 
20019
# Symbols that must always be exported.
 
20020
include_expsyms=$lt_include_expsyms_RC
 
20021
 
 
20022
# ### END LIBTOOL TAG CONFIG: $tagname
 
20023
 
 
20024
__EOF__
 
20025
 
 
20026
 
 
20027
else
 
20028
  # If there is no Makefile yet, we rely on a make rule to execute
 
20029
  # `config.status --recheck' to rerun these tests and create the
 
20030
  # libtool script then.
 
20031
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20032
  if test -f "$ltmain_in"; then
 
20033
    test -f Makefile && make "$ltmain"
 
20034
  fi
 
20035
fi
 
20036
 
 
20037
 
 
20038
ac_ext=c
 
20039
ac_cpp='$CPP $CPPFLAGS'
 
20040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20043
 
 
20044
CC="$lt_save_CC"
 
20045
 
 
20046
        ;;
 
20047
 
 
20048
      *)
 
20049
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20050
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20051
   { (exit 1); exit 1; }; }
 
20052
        ;;
 
20053
      esac
 
20054
 
 
20055
      # Append the new tag name to the list of available tags.
 
20056
      if test -n "$tagname" ; then
 
20057
      available_tags="$available_tags $tagname"
 
20058
    fi
 
20059
    fi
 
20060
  done
 
20061
  IFS="$lt_save_ifs"
 
20062
 
 
20063
  # Now substitute the updated list of available tags.
 
20064
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20065
    mv "${ofile}T" "$ofile"
 
20066
    chmod +x "$ofile"
 
20067
  else
 
20068
    rm -f "${ofile}T"
 
20069
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20070
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20071
   { (exit 1); exit 1; }; }
 
20072
  fi
 
20073
fi
 
20074
 
 
20075
 
 
20076
 
 
20077
# This can be used to rebuild libtool when needed
 
20078
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20079
 
 
20080
# Always use our own libtool.
 
20081
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20082
 
 
20083
# Prevent multiple expansion
 
20084
 
 
20085
 
 
20086
 
 
20087
 
 
20088
 
 
20089
 
 
20090
 
 
20091
 
 
20092
 
 
20093
 
 
20094
 
 
20095
  
 
20096
 
 
20097
  
 
20098
 
 
20099
 
 
20100
  
 
20101
       
 
20102
       
 
20103
 
 
20104
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
20105
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
20106
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
20107
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
20108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20109
else
 
20110
  cat >conftest.make <<\_ACEOF
 
20111
SHELL = /bin/sh
 
20112
all:
 
20113
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
20114
_ACEOF
 
20115
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
20116
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
20117
  *@@@%%%=?*=@@@%%%*)
 
20118
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
20119
  *)
 
20120
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
20121
esac
 
20122
rm -f conftest.make
 
20123
fi
 
20124
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
20125
  { echo "$as_me:$LINENO: result: yes" >&5
 
20126
echo "${ECHO_T}yes" >&6; }
 
20127
  SET_MAKE=
 
20128
else
 
20129
  { echo "$as_me:$LINENO: result: no" >&5
 
20130
echo "${ECHO_T}no" >&6; }
 
20131
  SET_MAKE="MAKE=${MAKE-make}"
 
20132
fi
 
20133
 
 
20134
ac_ext=c
 
20135
ac_cpp='$CPP $CPPFLAGS'
 
20136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20139
if test -n "$ac_tool_prefix"; then
 
20140
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
20141
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
20142
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20144
if test "${ac_cv_prog_CC+set}" = set; then
 
20145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20146
else
 
20147
  if test -n "$CC"; then
 
20148
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20149
else
 
20150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20151
for as_dir in $PATH
 
20152
do
 
20153
  IFS=$as_save_IFS
 
20154
  test -z "$as_dir" && as_dir=.
 
20155
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20156
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20157
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
20158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20159
    break 2
 
20160
  fi
 
20161
done
 
20162
done
 
20163
IFS=$as_save_IFS
 
20164
 
 
20165
fi
 
20166
fi
 
20167
CC=$ac_cv_prog_CC
 
20168
if test -n "$CC"; then
 
20169
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20170
echo "${ECHO_T}$CC" >&6; }
 
20171
else
 
20172
  { echo "$as_me:$LINENO: result: no" >&5
 
20173
echo "${ECHO_T}no" >&6; }
 
20174
fi
 
20175
 
 
20176
 
 
20177
fi
 
20178
if test -z "$ac_cv_prog_CC"; then
 
20179
  ac_ct_CC=$CC
 
20180
  # Extract the first word of "gcc", so it can be a program name with args.
 
20181
set dummy gcc; ac_word=$2
 
20182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20184
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20186
else
 
20187
  if test -n "$ac_ct_CC"; then
 
20188
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20189
else
 
20190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20191
for as_dir in $PATH
 
20192
do
 
20193
  IFS=$as_save_IFS
 
20194
  test -z "$as_dir" && as_dir=.
 
20195
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20197
    ac_cv_prog_ac_ct_CC="gcc"
 
20198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20199
    break 2
 
20200
  fi
 
20201
done
 
20202
done
 
20203
IFS=$as_save_IFS
 
20204
 
 
20205
fi
 
20206
fi
 
20207
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20208
if test -n "$ac_ct_CC"; then
 
20209
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20210
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
20211
else
 
20212
  { echo "$as_me:$LINENO: result: no" >&5
 
20213
echo "${ECHO_T}no" >&6; }
 
20214
fi
 
20215
 
 
20216
  if test "x$ac_ct_CC" = x; then
 
20217
    CC=""
 
20218
  else
 
20219
    case $cross_compiling:$ac_tool_warned in
 
20220
yes:)
 
20221
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20222
whose name does not start with the host triplet.  If you think this
 
20223
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20224
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20225
whose name does not start with the host triplet.  If you think this
 
20226
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20227
ac_tool_warned=yes ;;
 
20228
esac
 
20229
    CC=$ac_ct_CC
 
20230
  fi
 
20231
else
 
20232
  CC="$ac_cv_prog_CC"
 
20233
fi
 
20234
 
 
20235
if test -z "$CC"; then
 
20236
          if test -n "$ac_tool_prefix"; then
 
20237
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
20238
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
20239
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20240
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20241
if test "${ac_cv_prog_CC+set}" = set; then
 
20242
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20243
else
 
20244
  if test -n "$CC"; then
 
20245
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20246
else
 
20247
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20248
for as_dir in $PATH
 
20249
do
 
20250
  IFS=$as_save_IFS
 
20251
  test -z "$as_dir" && as_dir=.
 
20252
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20253
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20254
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
20255
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20256
    break 2
 
20257
  fi
 
20258
done
 
20259
done
 
20260
IFS=$as_save_IFS
 
20261
 
 
20262
fi
 
20263
fi
 
20264
CC=$ac_cv_prog_CC
 
20265
if test -n "$CC"; then
 
20266
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20267
echo "${ECHO_T}$CC" >&6; }
 
20268
else
 
20269
  { echo "$as_me:$LINENO: result: no" >&5
 
20270
echo "${ECHO_T}no" >&6; }
 
20271
fi
 
20272
 
 
20273
 
 
20274
  fi
 
20275
fi
 
20276
if test -z "$CC"; then
 
20277
  # Extract the first word of "cc", so it can be a program name with args.
 
20278
set dummy cc; ac_word=$2
 
20279
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20280
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20281
if test "${ac_cv_prog_CC+set}" = set; then
 
20282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20283
else
 
20284
  if test -n "$CC"; then
 
20285
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20286
else
 
20287
  ac_prog_rejected=no
 
20288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20289
for as_dir in $PATH
 
20290
do
 
20291
  IFS=$as_save_IFS
 
20292
  test -z "$as_dir" && as_dir=.
 
20293
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20294
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20295
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
20296
       ac_prog_rejected=yes
 
20297
       continue
 
20298
     fi
 
20299
    ac_cv_prog_CC="cc"
 
20300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20301
    break 2
 
20302
  fi
 
20303
done
 
20304
done
 
20305
IFS=$as_save_IFS
 
20306
 
 
20307
if test $ac_prog_rejected = yes; then
 
20308
  # We found a bogon in the path, so make sure we never use it.
 
20309
  set dummy $ac_cv_prog_CC
 
20310
  shift
 
20311
  if test $@%:@ != 0; then
 
20312
    # We chose a different compiler from the bogus one.
 
20313
    # However, it has the same basename, so the bogon will be chosen
 
20314
    # first if we set CC to just the basename; use the full file name.
 
20315
    shift
 
20316
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
20317
  fi
 
20318
fi
 
20319
fi
 
20320
fi
 
20321
CC=$ac_cv_prog_CC
 
20322
if test -n "$CC"; then
 
20323
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20324
echo "${ECHO_T}$CC" >&6; }
 
20325
else
 
20326
  { echo "$as_me:$LINENO: result: no" >&5
 
20327
echo "${ECHO_T}no" >&6; }
 
20328
fi
 
20329
 
 
20330
 
 
20331
fi
 
20332
if test -z "$CC"; then
 
20333
  if test -n "$ac_tool_prefix"; then
 
20334
  for ac_prog in cl.exe
 
20335
  do
 
20336
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
20337
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
20338
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20339
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20340
if test "${ac_cv_prog_CC+set}" = set; then
 
20341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20342
else
 
20343
  if test -n "$CC"; then
 
20344
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20345
else
 
20346
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20347
for as_dir in $PATH
 
20348
do
 
20349
  IFS=$as_save_IFS
 
20350
  test -z "$as_dir" && as_dir=.
 
20351
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20352
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20353
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
20354
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20355
    break 2
 
20356
  fi
 
20357
done
 
20358
done
 
20359
IFS=$as_save_IFS
 
20360
 
 
20361
fi
 
20362
fi
 
20363
CC=$ac_cv_prog_CC
 
20364
if test -n "$CC"; then
 
20365
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20366
echo "${ECHO_T}$CC" >&6; }
 
20367
else
 
20368
  { echo "$as_me:$LINENO: result: no" >&5
 
20369
echo "${ECHO_T}no" >&6; }
 
20370
fi
 
20371
 
 
20372
 
 
20373
    test -n "$CC" && break
 
20374
  done
 
20375
fi
 
20376
if test -z "$CC"; then
 
20377
  ac_ct_CC=$CC
 
20378
  for ac_prog in cl.exe
 
20379
do
 
20380
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20381
set dummy $ac_prog; ac_word=$2
 
20382
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20383
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20384
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20386
else
 
20387
  if test -n "$ac_ct_CC"; then
 
20388
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20389
else
 
20390
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20391
for as_dir in $PATH
 
20392
do
 
20393
  IFS=$as_save_IFS
 
20394
  test -z "$as_dir" && as_dir=.
 
20395
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20396
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20397
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
20398
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20399
    break 2
 
20400
  fi
 
20401
done
 
20402
done
 
20403
IFS=$as_save_IFS
 
20404
 
 
20405
fi
 
20406
fi
 
20407
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20408
if test -n "$ac_ct_CC"; then
 
20409
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20410
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
20411
else
 
20412
  { echo "$as_me:$LINENO: result: no" >&5
 
20413
echo "${ECHO_T}no" >&6; }
 
20414
fi
 
20415
 
 
20416
 
 
20417
  test -n "$ac_ct_CC" && break
 
20418
done
 
20419
 
 
20420
  if test "x$ac_ct_CC" = x; then
 
20421
    CC=""
 
20422
  else
 
20423
    case $cross_compiling:$ac_tool_warned in
 
20424
yes:)
 
20425
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20426
whose name does not start with the host triplet.  If you think this
 
20427
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20428
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20429
whose name does not start with the host triplet.  If you think this
 
20430
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20431
ac_tool_warned=yes ;;
 
20432
esac
 
20433
    CC=$ac_ct_CC
 
20434
  fi
 
20435
fi
 
20436
 
 
20437
fi
 
20438
 
 
20439
 
 
20440
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
20441
See \`config.log' for more details." >&5
 
20442
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
20443
See \`config.log' for more details." >&2;}
 
20444
   { (exit 1); exit 1; }; }
 
20445
 
 
20446
# Provide some information about the compiler.
 
20447
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
20448
ac_compiler=`set X $ac_compile; echo $2`
 
20449
{ (ac_try="$ac_compiler --version >&5"
 
20450
case "(($ac_try" in
 
20451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20452
  *) ac_try_echo=$ac_try;;
 
20453
esac
 
20454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20455
  (eval "$ac_compiler --version >&5") 2>&5
 
20456
  ac_status=$?
 
20457
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20458
  (exit $ac_status); }
 
20459
{ (ac_try="$ac_compiler -v >&5"
 
20460
case "(($ac_try" in
 
20461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20462
  *) ac_try_echo=$ac_try;;
 
20463
esac
 
20464
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20465
  (eval "$ac_compiler -v >&5") 2>&5
 
20466
  ac_status=$?
 
20467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20468
  (exit $ac_status); }
 
20469
{ (ac_try="$ac_compiler -V >&5"
 
20470
case "(($ac_try" in
 
20471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20472
  *) ac_try_echo=$ac_try;;
 
20473
esac
 
20474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20475
  (eval "$ac_compiler -V >&5") 2>&5
 
20476
  ac_status=$?
 
20477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20478
  (exit $ac_status); }
 
20479
 
 
20480
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
20481
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
20482
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
20483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20484
else
 
20485
  cat >conftest.$ac_ext <<_ACEOF
 
20486
/* confdefs.h.  */
 
20487
_ACEOF
 
20488
cat confdefs.h >>conftest.$ac_ext
 
20489
cat >>conftest.$ac_ext <<_ACEOF
 
20490
/* end confdefs.h.  */
 
20491
 
 
20492
int
 
20493
main ()
 
20494
{
 
20495
#ifndef __GNUC__
 
20496
       choke me
 
20497
#endif
 
20498
 
 
20499
  ;
 
20500
  return 0;
 
20501
}
 
20502
_ACEOF
 
20503
rm -f conftest.$ac_objext
 
20504
if { (ac_try="$ac_compile"
 
20505
case "(($ac_try" in
 
20506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20507
  *) ac_try_echo=$ac_try;;
 
20508
esac
 
20509
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20510
  (eval "$ac_compile") 2>conftest.er1
 
20511
  ac_status=$?
 
20512
  grep -v '^ *+' conftest.er1 >conftest.err
 
20513
  rm -f conftest.er1
 
20514
  cat conftest.err >&5
 
20515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20516
  (exit $ac_status); } && {
 
20517
         test -z "$ac_c_werror_flag" ||
 
20518
         test ! -s conftest.err
 
20519
       } && test -s conftest.$ac_objext; then
 
20520
  ac_compiler_gnu=yes
 
20521
else
 
20522
  echo "$as_me: failed program was:" >&5
 
20523
sed 's/^/| /' conftest.$ac_ext >&5
 
20524
 
 
20525
        ac_compiler_gnu=no
 
20526
fi
 
20527
 
 
20528
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20529
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
20530
 
 
20531
fi
 
20532
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
20533
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
20534
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
20535
ac_test_CFLAGS=${CFLAGS+set}
 
20536
ac_save_CFLAGS=$CFLAGS
 
20537
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
20538
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
20539
if test "${ac_cv_prog_cc_g+set}" = set; then
 
20540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20541
else
 
20542
  ac_save_c_werror_flag=$ac_c_werror_flag
 
20543
   ac_c_werror_flag=yes
 
20544
   ac_cv_prog_cc_g=no
 
20545
   CFLAGS="-g"
 
20546
   cat >conftest.$ac_ext <<_ACEOF
 
20547
/* confdefs.h.  */
 
20548
_ACEOF
 
20549
cat confdefs.h >>conftest.$ac_ext
 
20550
cat >>conftest.$ac_ext <<_ACEOF
 
20551
/* end confdefs.h.  */
 
20552
 
 
20553
int
 
20554
main ()
 
20555
{
 
20556
 
 
20557
  ;
 
20558
  return 0;
 
20559
}
 
20560
_ACEOF
 
20561
rm -f conftest.$ac_objext
 
20562
if { (ac_try="$ac_compile"
 
20563
case "(($ac_try" in
 
20564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20565
  *) ac_try_echo=$ac_try;;
 
20566
esac
 
20567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20568
  (eval "$ac_compile") 2>conftest.er1
 
20569
  ac_status=$?
 
20570
  grep -v '^ *+' conftest.er1 >conftest.err
 
20571
  rm -f conftest.er1
 
20572
  cat conftest.err >&5
 
20573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20574
  (exit $ac_status); } && {
 
20575
         test -z "$ac_c_werror_flag" ||
 
20576
         test ! -s conftest.err
 
20577
       } && test -s conftest.$ac_objext; then
 
20578
  ac_cv_prog_cc_g=yes
 
20579
else
 
20580
  echo "$as_me: failed program was:" >&5
 
20581
sed 's/^/| /' conftest.$ac_ext >&5
 
20582
 
 
20583
        CFLAGS=""
 
20584
      cat >conftest.$ac_ext <<_ACEOF
 
20585
/* confdefs.h.  */
 
20586
_ACEOF
 
20587
cat confdefs.h >>conftest.$ac_ext
 
20588
cat >>conftest.$ac_ext <<_ACEOF
 
20589
/* end confdefs.h.  */
 
20590
 
 
20591
int
 
20592
main ()
 
20593
{
 
20594
 
 
20595
  ;
 
20596
  return 0;
 
20597
}
 
20598
_ACEOF
 
20599
rm -f conftest.$ac_objext
 
20600
if { (ac_try="$ac_compile"
 
20601
case "(($ac_try" in
 
20602
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20603
  *) ac_try_echo=$ac_try;;
 
20604
esac
 
20605
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20606
  (eval "$ac_compile") 2>conftest.er1
 
20607
  ac_status=$?
 
20608
  grep -v '^ *+' conftest.er1 >conftest.err
 
20609
  rm -f conftest.er1
 
20610
  cat conftest.err >&5
 
20611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20612
  (exit $ac_status); } && {
 
20613
         test -z "$ac_c_werror_flag" ||
 
20614
         test ! -s conftest.err
 
20615
       } && test -s conftest.$ac_objext; then
 
20616
  :
 
20617
else
 
20618
  echo "$as_me: failed program was:" >&5
 
20619
sed 's/^/| /' conftest.$ac_ext >&5
 
20620
 
 
20621
        ac_c_werror_flag=$ac_save_c_werror_flag
 
20622
         CFLAGS="-g"
 
20623
         cat >conftest.$ac_ext <<_ACEOF
 
20624
/* confdefs.h.  */
 
20625
_ACEOF
 
20626
cat confdefs.h >>conftest.$ac_ext
 
20627
cat >>conftest.$ac_ext <<_ACEOF
 
20628
/* end confdefs.h.  */
 
20629
 
 
20630
int
 
20631
main ()
 
20632
{
 
20633
 
 
20634
  ;
 
20635
  return 0;
 
20636
}
 
20637
_ACEOF
 
20638
rm -f conftest.$ac_objext
 
20639
if { (ac_try="$ac_compile"
 
20640
case "(($ac_try" in
 
20641
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20642
  *) ac_try_echo=$ac_try;;
 
20643
esac
 
20644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20645
  (eval "$ac_compile") 2>conftest.er1
 
20646
  ac_status=$?
 
20647
  grep -v '^ *+' conftest.er1 >conftest.err
 
20648
  rm -f conftest.er1
 
20649
  cat conftest.err >&5
 
20650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20651
  (exit $ac_status); } && {
 
20652
         test -z "$ac_c_werror_flag" ||
 
20653
         test ! -s conftest.err
 
20654
       } && test -s conftest.$ac_objext; then
 
20655
  ac_cv_prog_cc_g=yes
 
20656
else
 
20657
  echo "$as_me: failed program was:" >&5
 
20658
sed 's/^/| /' conftest.$ac_ext >&5
 
20659
 
 
20660
        
 
20661
fi
 
20662
 
 
20663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20664
fi
 
20665
 
 
20666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20667
fi
 
20668
 
 
20669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20670
   ac_c_werror_flag=$ac_save_c_werror_flag
 
20671
fi
 
20672
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
20673
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
20674
if test "$ac_test_CFLAGS" = set; then
 
20675
  CFLAGS=$ac_save_CFLAGS
 
20676
elif test $ac_cv_prog_cc_g = yes; then
 
20677
  if test "$GCC" = yes; then
 
20678
    CFLAGS="-g -O2"
 
20679
  else
 
20680
    CFLAGS="-g"
 
20681
  fi
 
20682
else
 
20683
  if test "$GCC" = yes; then
 
20684
    CFLAGS="-O2"
 
20685
  else
 
20686
    CFLAGS=
 
20687
  fi
 
20688
fi
 
20689
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
20690
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
20691
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
20692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20693
else
 
20694
  ac_cv_prog_cc_c89=no
 
20695
ac_save_CC=$CC
 
20696
cat >conftest.$ac_ext <<_ACEOF
 
20697
/* confdefs.h.  */
 
20698
_ACEOF
 
20699
cat confdefs.h >>conftest.$ac_ext
 
20700
cat >>conftest.$ac_ext <<_ACEOF
 
20701
/* end confdefs.h.  */
 
20702
#include <stdarg.h>
 
20703
#include <stdio.h>
 
20704
#include <sys/types.h>
 
20705
#include <sys/stat.h>
 
20706
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
20707
struct buf { int x; };
 
20708
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
20709
static char *e (p, i)
 
20710
     char **p;
 
20711
     int i;
 
20712
{
 
20713
  return p[i];
 
20714
}
 
20715
static char *f (char * (*g) (char **, int), char **p, ...)
 
20716
{
 
20717
  char *s;
 
20718
  va_list v;
 
20719
  va_start (v,p);
 
20720
  s = g (p, va_arg (v,int));
 
20721
  va_end (v);
 
20722
  return s;
 
20723
}
 
20724
 
 
20725
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
20726
   function prototypes and stuff, but not '\xHH' hex character constants.
 
20727
   These don't provoke an error unfortunately, instead are silently treated
 
20728
   as 'x'.  The following induces an error, until -std is added to get
 
20729
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
20730
   array size at least.  It's necessary to write '\x00'==0 to get something
 
20731
   that's true only with -std.  */
 
20732
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
20733
 
 
20734
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
20735
   inside strings and character constants.  */
 
20736
#define FOO(x) 'x'
 
20737
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
20738
 
 
20739
int test (int i, double x);
 
20740
struct s1 {int (*f) (int a);};
 
20741
struct s2 {int (*f) (double a);};
 
20742
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
20743
int argc;
 
20744
char **argv;
 
20745
int
 
20746
main ()
 
20747
{
 
20748
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
20749
  ;
 
20750
  return 0;
 
20751
}
 
20752
_ACEOF
 
20753
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
20754
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
20755
do
 
20756
  CC="$ac_save_CC $ac_arg"
 
20757
  rm -f conftest.$ac_objext
 
20758
if { (ac_try="$ac_compile"
 
20759
case "(($ac_try" in
 
20760
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20761
  *) ac_try_echo=$ac_try;;
 
20762
esac
 
20763
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20764
  (eval "$ac_compile") 2>conftest.er1
 
20765
  ac_status=$?
 
20766
  grep -v '^ *+' conftest.er1 >conftest.err
 
20767
  rm -f conftest.er1
 
20768
  cat conftest.err >&5
 
20769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20770
  (exit $ac_status); } && {
 
20771
         test -z "$ac_c_werror_flag" ||
 
20772
         test ! -s conftest.err
 
20773
       } && test -s conftest.$ac_objext; then
 
20774
  ac_cv_prog_cc_c89=$ac_arg
 
20775
else
 
20776
  echo "$as_me: failed program was:" >&5
 
20777
sed 's/^/| /' conftest.$ac_ext >&5
 
20778
 
 
20779
        
 
20780
fi
 
20781
 
 
20782
rm -f core conftest.err conftest.$ac_objext 
 
20783
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
20784
done
 
20785
rm -f conftest.$ac_ext
 
20786
CC=$ac_save_CC
 
20787
 
 
20788
fi
 
20789
# AC_CACHE_VAL
 
20790
case "x$ac_cv_prog_cc_c89" in
 
20791
  x)
 
20792
    { echo "$as_me:$LINENO: result: none needed" >&5
 
20793
echo "${ECHO_T}none needed" >&6; } ;;
 
20794
  xno)
 
20795
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
20796
echo "${ECHO_T}unsupported" >&6; } ;;
 
20797
  *)
 
20798
    CC="$CC $ac_cv_prog_cc_c89"
 
20799
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
20800
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
20801
esac
 
20802
 
 
20803
 
 
20804
ac_ext=c
 
20805
ac_cpp='$CPP $CPPFLAGS'
 
20806
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20807
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20808
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20809
 
 
20810
depcc="$CC"   am_compiler_list=
 
20811
 
 
20812
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
20813
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
20814
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
20815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20816
else
 
20817
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
20818
  # We make a subdir and do the tests there.  Otherwise we can end up
 
20819
  # making bogus files that we don't know about and never remove.  For
 
20820
  # instance it was reported that on HP-UX the gcc test will end up
 
20821
  # making a dummy file named `D' -- because `-MD' means `put the output
 
20822
  # in D'.
 
20823
  mkdir conftest.dir
 
20824
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
20825
  # using a relative directory.
 
20826
  cp "$am_depcomp" conftest.dir
 
20827
  cd conftest.dir
 
20828
  # We will build objects and dependencies in a subdirectory because
 
20829
  # it helps to detect inapplicable dependency modes.  For instance
 
20830
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
20831
  # side effect of compilation, but ICC will put the dependencies in
 
20832
  # the current directory while Tru64 will put them in the object
 
20833
  # directory.
 
20834
  mkdir sub
 
20835
 
 
20836
  am_cv_CC_dependencies_compiler_type=none
 
20837
  if test "$am_compiler_list" = ""; then
 
20838
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
20839
  fi
 
20840
  for depmode in $am_compiler_list; do
 
20841
    # Setup a source with many dependencies, because some compilers
 
20842
    # like to wrap large dependency lists on column 80 (with \), and
 
20843
    # we should not choose a depcomp mode which is confused by this.
 
20844
    #
 
20845
    # We need to recreate these files for each test, as the compiler may
 
20846
    # overwrite some of them when testing with obscure command lines.
 
20847
    # This happens at least with the AIX C compiler.
 
20848
    : > sub/conftest.c
 
20849
    for i in 1 2 3 4 5 6; do
 
20850
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
20851
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
20852
      # Solaris 8's {/usr,}/bin/sh.
 
20853
      touch sub/conftst$i.h
 
20854
    done
 
20855
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
20856
 
 
20857
    case $depmode in
 
20858
    nosideeffect)
 
20859
      # after this tag, mechanisms are not by side-effect, so they'll
 
20860
      # only be used when explicitly requested
 
20861
      if test "x$enable_dependency_tracking" = xyes; then
 
20862
        continue
 
20863
      else
 
20864
        break
 
20865
      fi
 
20866
      ;;
 
20867
    none) break ;;
 
20868
    esac
 
20869
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
20870
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
20871
    # handle `-M -o', and we need to detect this.
 
20872
    if depmode=$depmode \
 
20873
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
20874
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
20875
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
20876
         >/dev/null 2>conftest.err &&
 
20877
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
20878
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
20879
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
20880
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
20881
      # icc doesn't choke on unknown options, it will just issue warnings
 
20882
      # or remarks (even with -Werror).  So we grep stderr for any message
 
20883
      # that says an option was ignored or not supported.
 
20884
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
20885
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
20886
      # The diagnosis changed in icc 8.0:
 
20887
      #   icc: Command line remark: option '-MP' not supported
 
20888
      if (grep 'ignoring option' conftest.err ||
 
20889
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
20890
        am_cv_CC_dependencies_compiler_type=$depmode
 
20891
        break
 
20892
      fi
 
20893
    fi
 
20894
  done
 
20895
 
 
20896
  cd ..
 
20897
  rm -rf conftest.dir
 
20898
else
 
20899
  am_cv_CC_dependencies_compiler_type=none
 
20900
fi
 
20901
 
 
20902
fi
 
20903
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
20904
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
20905
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
20906
 
 
20907
 if 
 
20908
  test "x$enable_dependency_tracking" != xno \
 
20909
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
20910
  am__fastdepCC_TRUE=
 
20911
  am__fastdepCC_FALSE='#'
 
20912
else
 
20913
  am__fastdepCC_TRUE='#'
 
20914
  am__fastdepCC_FALSE=
 
20915
fi
 
20916
 
 
20917
 
 
20918
ac_ext=cpp
 
20919
ac_cpp='$CXXCPP $CPPFLAGS'
 
20920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20923
if test -z "$CXX"; then
 
20924
  if test -n "$CCC"; then
 
20925
    CXX=$CCC
 
20926
  else
 
20927
    if test -n "$ac_tool_prefix"; then
 
20928
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
20929
  do
 
20930
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
20931
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
20932
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20933
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20934
if test "${ac_cv_prog_CXX+set}" = set; then
 
20935
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20936
else
 
20937
  if test -n "$CXX"; then
 
20938
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
20939
else
 
20940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20941
for as_dir in $PATH
 
20942
do
 
20943
  IFS=$as_save_IFS
 
20944
  test -z "$as_dir" && as_dir=.
 
20945
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20946
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20947
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
20948
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20949
    break 2
 
20950
  fi
 
20951
done
 
20952
done
 
20953
IFS=$as_save_IFS
 
20954
 
 
20955
fi
 
20956
fi
 
20957
CXX=$ac_cv_prog_CXX
 
20958
if test -n "$CXX"; then
 
20959
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
20960
echo "${ECHO_T}$CXX" >&6; }
 
20961
else
 
20962
  { echo "$as_me:$LINENO: result: no" >&5
 
20963
echo "${ECHO_T}no" >&6; }
 
20964
fi
 
20965
 
 
20966
 
 
20967
    test -n "$CXX" && break
 
20968
  done
 
20969
fi
 
20970
if test -z "$CXX"; then
 
20971
  ac_ct_CXX=$CXX
 
20972
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
20973
do
 
20974
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20975
set dummy $ac_prog; ac_word=$2
 
20976
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20978
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
20979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20980
else
 
20981
  if test -n "$ac_ct_CXX"; then
 
20982
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
20983
else
 
20984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20985
for as_dir in $PATH
 
20986
do
 
20987
  IFS=$as_save_IFS
 
20988
  test -z "$as_dir" && as_dir=.
 
20989
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20990
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20991
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
20992
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20993
    break 2
 
20994
  fi
 
20995
done
 
20996
done
 
20997
IFS=$as_save_IFS
 
20998
 
 
20999
fi
 
21000
fi
 
21001
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
21002
if test -n "$ac_ct_CXX"; then
 
21003
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
21004
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
21005
else
 
21006
  { echo "$as_me:$LINENO: result: no" >&5
 
21007
echo "${ECHO_T}no" >&6; }
 
21008
fi
 
21009
 
 
21010
 
 
21011
  test -n "$ac_ct_CXX" && break
 
21012
done
 
21013
 
 
21014
  if test "x$ac_ct_CXX" = x; then
 
21015
    CXX="g++"
 
21016
  else
 
21017
    case $cross_compiling:$ac_tool_warned in
 
21018
yes:)
 
21019
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
21020
whose name does not start with the host triplet.  If you think this
 
21021
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
21022
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
21023
whose name does not start with the host triplet.  If you think this
 
21024
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
21025
ac_tool_warned=yes ;;
 
21026
esac
 
21027
    CXX=$ac_ct_CXX
 
21028
  fi
 
21029
fi
 
21030
 
 
21031
  fi
 
21032
fi
 
21033
# Provide some information about the compiler.
 
21034
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
21035
ac_compiler=`set X $ac_compile; echo $2`
 
21036
{ (ac_try="$ac_compiler --version >&5"
 
21037
case "(($ac_try" in
 
21038
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21039
  *) ac_try_echo=$ac_try;;
 
21040
esac
 
21041
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21042
  (eval "$ac_compiler --version >&5") 2>&5
 
21043
  ac_status=$?
 
21044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21045
  (exit $ac_status); }
 
21046
{ (ac_try="$ac_compiler -v >&5"
 
21047
case "(($ac_try" in
 
21048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21049
  *) ac_try_echo=$ac_try;;
 
21050
esac
 
21051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21052
  (eval "$ac_compiler -v >&5") 2>&5
 
21053
  ac_status=$?
 
21054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21055
  (exit $ac_status); }
 
21056
{ (ac_try="$ac_compiler -V >&5"
 
21057
case "(($ac_try" in
 
21058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21059
  *) ac_try_echo=$ac_try;;
 
21060
esac
 
21061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21062
  (eval "$ac_compiler -V >&5") 2>&5
 
21063
  ac_status=$?
 
21064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21065
  (exit $ac_status); }
 
21066
 
 
21067
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
21068
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
21069
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
21070
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21071
else
 
21072
  cat >conftest.$ac_ext <<_ACEOF
 
21073
/* confdefs.h.  */
 
21074
_ACEOF
 
21075
cat confdefs.h >>conftest.$ac_ext
 
21076
cat >>conftest.$ac_ext <<_ACEOF
 
21077
/* end confdefs.h.  */
 
21078
 
 
21079
int
 
21080
main ()
 
21081
{
 
21082
#ifndef __GNUC__
 
21083
       choke me
 
21084
#endif
 
21085
 
 
21086
  ;
 
21087
  return 0;
 
21088
}
 
21089
_ACEOF
 
21090
rm -f conftest.$ac_objext
 
21091
if { (ac_try="$ac_compile"
 
21092
case "(($ac_try" in
 
21093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21094
  *) ac_try_echo=$ac_try;;
 
21095
esac
 
21096
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21097
  (eval "$ac_compile") 2>conftest.er1
 
21098
  ac_status=$?
 
21099
  grep -v '^ *+' conftest.er1 >conftest.err
 
21100
  rm -f conftest.er1
 
21101
  cat conftest.err >&5
 
21102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21103
  (exit $ac_status); } && {
 
21104
         test -z "$ac_cxx_werror_flag" ||
 
21105
         test ! -s conftest.err
 
21106
       } && test -s conftest.$ac_objext; then
 
21107
  ac_compiler_gnu=yes
 
21108
else
 
21109
  echo "$as_me: failed program was:" >&5
 
21110
sed 's/^/| /' conftest.$ac_ext >&5
 
21111
 
 
21112
        ac_compiler_gnu=no
 
21113
fi
 
21114
 
 
21115
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21116
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
21117
 
 
21118
fi
 
21119
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
21120
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
21121
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
21122
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
21123
ac_save_CXXFLAGS=$CXXFLAGS
 
21124
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
21125
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
21126
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
21127
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21128
else
 
21129
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
21130
   ac_cxx_werror_flag=yes
 
21131
   ac_cv_prog_cxx_g=no
 
21132
   CXXFLAGS="-g"
 
21133
   cat >conftest.$ac_ext <<_ACEOF
 
21134
/* confdefs.h.  */
 
21135
_ACEOF
 
21136
cat confdefs.h >>conftest.$ac_ext
 
21137
cat >>conftest.$ac_ext <<_ACEOF
 
21138
/* end confdefs.h.  */
 
21139
 
 
21140
int
 
21141
main ()
 
21142
{
 
21143
 
 
21144
  ;
 
21145
  return 0;
 
21146
}
 
21147
_ACEOF
 
21148
rm -f conftest.$ac_objext
 
21149
if { (ac_try="$ac_compile"
 
21150
case "(($ac_try" in
 
21151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21152
  *) ac_try_echo=$ac_try;;
 
21153
esac
 
21154
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21155
  (eval "$ac_compile") 2>conftest.er1
 
21156
  ac_status=$?
 
21157
  grep -v '^ *+' conftest.er1 >conftest.err
 
21158
  rm -f conftest.er1
 
21159
  cat conftest.err >&5
 
21160
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21161
  (exit $ac_status); } && {
 
21162
         test -z "$ac_cxx_werror_flag" ||
 
21163
         test ! -s conftest.err
 
21164
       } && test -s conftest.$ac_objext; then
 
21165
  ac_cv_prog_cxx_g=yes
 
21166
else
 
21167
  echo "$as_me: failed program was:" >&5
 
21168
sed 's/^/| /' conftest.$ac_ext >&5
 
21169
 
 
21170
        CXXFLAGS=""
 
21171
      cat >conftest.$ac_ext <<_ACEOF
 
21172
/* confdefs.h.  */
 
21173
_ACEOF
 
21174
cat confdefs.h >>conftest.$ac_ext
 
21175
cat >>conftest.$ac_ext <<_ACEOF
 
21176
/* end confdefs.h.  */
 
21177
 
 
21178
int
 
21179
main ()
 
21180
{
 
21181
 
 
21182
  ;
 
21183
  return 0;
 
21184
}
 
21185
_ACEOF
 
21186
rm -f conftest.$ac_objext
 
21187
if { (ac_try="$ac_compile"
 
21188
case "(($ac_try" in
 
21189
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21190
  *) ac_try_echo=$ac_try;;
 
21191
esac
 
21192
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21193
  (eval "$ac_compile") 2>conftest.er1
 
21194
  ac_status=$?
 
21195
  grep -v '^ *+' conftest.er1 >conftest.err
 
21196
  rm -f conftest.er1
 
21197
  cat conftest.err >&5
 
21198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21199
  (exit $ac_status); } && {
 
21200
         test -z "$ac_cxx_werror_flag" ||
 
21201
         test ! -s conftest.err
 
21202
       } && test -s conftest.$ac_objext; then
 
21203
  :
 
21204
else
 
21205
  echo "$as_me: failed program was:" >&5
 
21206
sed 's/^/| /' conftest.$ac_ext >&5
 
21207
 
 
21208
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
21209
         CXXFLAGS="-g"
 
21210
         cat >conftest.$ac_ext <<_ACEOF
 
21211
/* confdefs.h.  */
 
21212
_ACEOF
 
21213
cat confdefs.h >>conftest.$ac_ext
 
21214
cat >>conftest.$ac_ext <<_ACEOF
 
21215
/* end confdefs.h.  */
 
21216
 
 
21217
int
 
21218
main ()
 
21219
{
 
21220
 
 
21221
  ;
 
21222
  return 0;
 
21223
}
 
21224
_ACEOF
 
21225
rm -f conftest.$ac_objext
 
21226
if { (ac_try="$ac_compile"
 
21227
case "(($ac_try" in
 
21228
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21229
  *) ac_try_echo=$ac_try;;
 
21230
esac
 
21231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21232
  (eval "$ac_compile") 2>conftest.er1
 
21233
  ac_status=$?
 
21234
  grep -v '^ *+' conftest.er1 >conftest.err
 
21235
  rm -f conftest.er1
 
21236
  cat conftest.err >&5
 
21237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21238
  (exit $ac_status); } && {
 
21239
         test -z "$ac_cxx_werror_flag" ||
 
21240
         test ! -s conftest.err
 
21241
       } && test -s conftest.$ac_objext; then
 
21242
  ac_cv_prog_cxx_g=yes
 
21243
else
 
21244
  echo "$as_me: failed program was:" >&5
 
21245
sed 's/^/| /' conftest.$ac_ext >&5
 
21246
 
 
21247
        
 
21248
fi
 
21249
 
 
21250
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21251
fi
 
21252
 
 
21253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21254
fi
 
21255
 
 
21256
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21257
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
21258
fi
 
21259
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
21260
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
21261
if test "$ac_test_CXXFLAGS" = set; then
 
21262
  CXXFLAGS=$ac_save_CXXFLAGS
 
21263
elif test $ac_cv_prog_cxx_g = yes; then
 
21264
  if test "$GXX" = yes; then
 
21265
    CXXFLAGS="-g -O2"
 
21266
  else
 
21267
    CXXFLAGS="-g"
 
21268
  fi
 
21269
else
 
21270
  if test "$GXX" = yes; then
 
21271
    CXXFLAGS="-O2"
 
21272
  else
 
21273
    CXXFLAGS=
 
21274
  fi
 
21275
fi
 
21276
ac_ext=c
 
21277
ac_cpp='$CPP $CPPFLAGS'
 
21278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21281
 
 
21282
depcc="$CXX"  am_compiler_list=
 
21283
 
 
21284
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
21285
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
21286
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
21287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21288
else
 
21289
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
21290
  # We make a subdir and do the tests there.  Otherwise we can end up
 
21291
  # making bogus files that we don't know about and never remove.  For
 
21292
  # instance it was reported that on HP-UX the gcc test will end up
 
21293
  # making a dummy file named `D' -- because `-MD' means `put the output
 
21294
  # in D'.
 
21295
  mkdir conftest.dir
 
21296
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
21297
  # using a relative directory.
 
21298
  cp "$am_depcomp" conftest.dir
 
21299
  cd conftest.dir
 
21300
  # We will build objects and dependencies in a subdirectory because
 
21301
  # it helps to detect inapplicable dependency modes.  For instance
 
21302
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
21303
  # side effect of compilation, but ICC will put the dependencies in
 
21304
  # the current directory while Tru64 will put them in the object
 
21305
  # directory.
 
21306
  mkdir sub
 
21307
 
 
21308
  am_cv_CXX_dependencies_compiler_type=none
 
21309
  if test "$am_compiler_list" = ""; then
 
21310
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
21311
  fi
 
21312
  for depmode in $am_compiler_list; do
 
21313
    # Setup a source with many dependencies, because some compilers
 
21314
    # like to wrap large dependency lists on column 80 (with \), and
 
21315
    # we should not choose a depcomp mode which is confused by this.
 
21316
    #
 
21317
    # We need to recreate these files for each test, as the compiler may
 
21318
    # overwrite some of them when testing with obscure command lines.
 
21319
    # This happens at least with the AIX C compiler.
 
21320
    : > sub/conftest.c
 
21321
    for i in 1 2 3 4 5 6; do
 
21322
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
21323
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
21324
      # Solaris 8's {/usr,}/bin/sh.
 
21325
      touch sub/conftst$i.h
 
21326
    done
 
21327
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
21328
 
 
21329
    case $depmode in
 
21330
    nosideeffect)
 
21331
      # after this tag, mechanisms are not by side-effect, so they'll
 
21332
      # only be used when explicitly requested
 
21333
      if test "x$enable_dependency_tracking" = xyes; then
 
21334
        continue
 
21335
      else
 
21336
        break
 
21337
      fi
 
21338
      ;;
 
21339
    none) break ;;
 
21340
    esac
 
21341
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
21342
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
21343
    # handle `-M -o', and we need to detect this.
 
21344
    if depmode=$depmode \
 
21345
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
21346
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
21347
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
21348
         >/dev/null 2>conftest.err &&
 
21349
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
21350
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
21351
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
21352
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
21353
      # icc doesn't choke on unknown options, it will just issue warnings
 
21354
      # or remarks (even with -Werror).  So we grep stderr for any message
 
21355
      # that says an option was ignored or not supported.
 
21356
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
21357
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
21358
      # The diagnosis changed in icc 8.0:
 
21359
      #   icc: Command line remark: option '-MP' not supported
 
21360
      if (grep 'ignoring option' conftest.err ||
 
21361
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
21362
        am_cv_CXX_dependencies_compiler_type=$depmode
 
21363
        break
 
21364
      fi
 
21365
    fi
 
21366
  done
 
21367
 
 
21368
  cd ..
 
21369
  rm -rf conftest.dir
 
21370
else
 
21371
  am_cv_CXX_dependencies_compiler_type=none
 
21372
fi
 
21373
 
 
21374
fi
 
21375
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
21376
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
21377
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
21378
 
 
21379
 if 
 
21380
  test "x$enable_dependency_tracking" != xno \
 
21381
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
21382
  am__fastdepCXX_TRUE=
 
21383
  am__fastdepCXX_FALSE='#'
 
21384
else
 
21385
  am__fastdepCXX_TRUE='#'
 
21386
  am__fastdepCXX_FALSE=
 
21387
fi
 
21388
 
 
21389
 
 
21390
# Find a good install program.  We prefer a C program (faster),
 
21391
# so one script is as good as another.  But avoid the broken or
 
21392
# incompatible versions:
 
21393
# SysV /etc/install, /usr/sbin/install
 
21394
# SunOS /usr/etc/install
 
21395
# IRIX /sbin/install
 
21396
# AIX /bin/install
 
21397
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
21398
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
21399
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
21400
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
21401
# OS/2's system install, which has a completely different semantic
 
21402
# ./install, which can be erroneously created by make from ./install.sh.
 
21403
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
21404
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
21405
if test -z "$INSTALL"; then
 
21406
if test "${ac_cv_path_install+set}" = set; then
 
21407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21408
else
 
21409
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21410
for as_dir in $PATH
 
21411
do
 
21412
  IFS=$as_save_IFS
 
21413
  test -z "$as_dir" && as_dir=.
 
21414
  # Account for people who put trailing slashes in PATH elements.
 
21415
case $as_dir/ in
 
21416
  ./ | .// | /cC/* | \
 
21417
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
21418
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
21419
  /usr/ucb/* ) ;;
 
21420
  *)
 
21421
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
21422
    # Don't use installbsd from OSF since it installs stuff as root
 
21423
    # by default.
 
21424
    for ac_prog in ginstall scoinst install; do
 
21425
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21426
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
21427
          if test $ac_prog = install &&
 
21428
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
21429
            # AIX install.  It has an incompatible calling convention.
 
21430
            :
 
21431
          elif test $ac_prog = install &&
 
21432
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
21433
            # program-specific install script used by HP pwplus--don't use.
 
21434
            :
 
21435
          else
 
21436
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
21437
            break 3
 
21438
          fi
 
21439
        fi
 
21440
      done
 
21441
    done
 
21442
    ;;
 
21443
esac
 
21444
done
 
21445
IFS=$as_save_IFS
 
21446
 
 
21447
 
 
21448
fi
 
21449
  if test "${ac_cv_path_install+set}" = set; then
 
21450
    INSTALL=$ac_cv_path_install
 
21451
  else
 
21452
    # As a last resort, use the slow shell script.  Don't cache a
 
21453
    # value for INSTALL within a source directory, because that will
 
21454
    # break other packages using the cache if that directory is
 
21455
    # removed, or if the value is a relative name.
 
21456
    INSTALL=$ac_install_sh
 
21457
  fi
 
21458
fi
 
21459
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
21460
echo "${ECHO_T}$INSTALL" >&6; }
 
21461
 
 
21462
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
21463
# It thinks the first close brace ends the variable substitution.
 
21464
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
21465
 
 
21466
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
21467
 
 
21468
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
21469
 
 
21470
 
 
21471
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21472
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
21473
if test "${ac_cv_c_const+set}" = set; then
 
21474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21475
else
 
21476
  cat >conftest.$ac_ext <<_ACEOF
 
21477
/* confdefs.h.  */
 
21478
_ACEOF
 
21479
cat confdefs.h >>conftest.$ac_ext
 
21480
cat >>conftest.$ac_ext <<_ACEOF
 
21481
/* end confdefs.h.  */
 
21482
 
 
21483
int
 
21484
main ()
 
21485
{
 
21486
/* FIXME: Include the comments suggested by Paul. */
 
21487
#ifndef __cplusplus
 
21488
  /* Ultrix mips cc rejects this.  */
 
21489
  typedef int charset[2];
 
21490
  const charset cs;
 
21491
  /* SunOS 4.1.1 cc rejects this.  */
 
21492
  char const *const *pcpcc;
 
21493
  char **ppc;
 
21494
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
21495
  struct point {int x, y;};
 
21496
  static struct point const zero = {0,0};
 
21497
  /* AIX XL C 1.02.0.0 rejects this.
 
21498
     It does not let you subtract one const X* pointer from another in
 
21499
     an arm of an if-expression whose if-part is not a constant
 
21500
     expression */
 
21501
  const char *g = "string";
 
21502
  pcpcc = &g + (g ? g-g : 0);
 
21503
  /* HPUX 7.0 cc rejects these. */
 
21504
  ++pcpcc;
 
21505
  ppc = (char**) pcpcc;
 
21506
  pcpcc = (char const *const *) ppc;
 
21507
  { /* SCO 3.2v4 cc rejects this.  */
 
21508
    char *t;
 
21509
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
21510
 
 
21511
    *t++ = 0;
 
21512
    if (s) return 0;
 
21513
  }
 
21514
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
21515
    int x[] = {25, 17};
 
21516
    const int *foo = &x[0];
 
21517
    ++foo;
 
21518
  }
 
21519
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21520
    typedef const int *iptr;
 
21521
    iptr p = 0;
 
21522
    ++p;
 
21523
  }
 
21524
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21525
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21526
    struct s { int j; const int *ap[3]; };
 
21527
    struct s *b; b->j = 5;
 
21528
  }
 
21529
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21530
    const int foo = 10;
 
21531
    if (!foo) return 0;
 
21532
  }
 
21533
  return !cs[0] && !zero.x;
 
21534
#endif
 
21535
 
 
21536
  ;
 
21537
  return 0;
 
21538
}
 
21539
_ACEOF
 
21540
rm -f conftest.$ac_objext
 
21541
if { (ac_try="$ac_compile"
 
21542
case "(($ac_try" in
 
21543
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21544
  *) ac_try_echo=$ac_try;;
 
21545
esac
 
21546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21547
  (eval "$ac_compile") 2>conftest.er1
 
21548
  ac_status=$?
 
21549
  grep -v '^ *+' conftest.er1 >conftest.err
 
21550
  rm -f conftest.er1
 
21551
  cat conftest.err >&5
 
21552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21553
  (exit $ac_status); } && {
 
21554
         test -z "$ac_c_werror_flag" ||
 
21555
         test ! -s conftest.err
 
21556
       } && test -s conftest.$ac_objext; then
 
21557
  ac_cv_c_const=yes
 
21558
else
 
21559
  echo "$as_me: failed program was:" >&5
 
21560
sed 's/^/| /' conftest.$ac_ext >&5
 
21561
 
 
21562
        ac_cv_c_const=no
 
21563
fi
 
21564
 
 
21565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21566
fi
 
21567
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21568
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
21569
if test $ac_cv_c_const = no; then
 
21570
  
 
21571
cat >>confdefs.h <<\_ACEOF
 
21572
@%:@define const 
 
21573
_ACEOF
 
21574
 
 
21575
fi
 
21576
 
 
21577
 
 
21578
ac_ext=c
 
21579
ac_cpp='$CPP $CPPFLAGS'
 
21580
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21581
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21582
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21583
 
 
21584
 
 
21585
case "$target" in
 
21586
    *-*-cygwin* | *-*-mingw32*)
 
21587
        CFLAGS="$CFLAGS -DWIN32"
 
21588
        if test "$build" != "$target"; then # cross-compiling
 
21589
            ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc
 
21590
        fi
 
21591
        ;;
 
21592
    *)
 
21593
                ;;
 
21594
esac
 
21595
 
 
21596
case "$target" in
 
21597
    *-*-cygwin* | *-*-mingw32*)
 
21598
        MATHLIB=""
 
21599
        ;;
 
21600
    *-*-beos*)
 
21601
        MATHLIB=""
 
21602
        ;;
 
21603
    *-*-darwin*)
 
21604
        MATHLIB=""
 
21605
        ;;
 
21606
    *-*-aix*)
 
21607
        MATHLIB="-lm"
 
21608
        if test x$ac_cv_c_compiler_gnu = xyes; then
 
21609
            CFLAGS="-mthreads"
 
21610
        fi
 
21611
        ;;
 
21612
    *)
 
21613
        MATHLIB="-lm"
 
21614
        ;;
 
21615
esac
 
21616
 
 
21617
LIBS="$LIBS $MATHLIB"
 
21618
 
 
21619
 
 
21620
 
 
21621
# Check whether --with-sdl-prefix was given.
 
21622
if test "${with_sdl_prefix+set}" = set; then
 
21623
  withval=$with_sdl_prefix; sdl_prefix="$withval"
 
21624
else
 
21625
  sdl_prefix=""
 
21626
fi
 
21627
 
 
21628
 
 
21629
# Check whether --with-sdl-exec-prefix was given.
 
21630
if test "${with_sdl_exec_prefix+set}" = set; then
 
21631
  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
 
21632
else
 
21633
  sdl_exec_prefix=""
 
21634
fi
 
21635
 
 
21636
# Check whether --enable-sdltest was given.
 
21637
if test "${enable_sdltest+set}" = set; then
 
21638
  enableval=$enable_sdltest; 
 
21639
else
 
21640
  enable_sdltest=yes
 
21641
fi
 
21642
 
 
21643
 
 
21644
  if test x$sdl_exec_prefix != x ; then
 
21645
    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
 
21646
    if test x${SDL_CONFIG+set} != xset ; then
 
21647
      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
 
21648
    fi
 
21649
  fi
 
21650
  if test x$sdl_prefix != x ; then
 
21651
    sdl_args="$sdl_args --prefix=$sdl_prefix"
 
21652
    if test x${SDL_CONFIG+set} != xset ; then
 
21653
      SDL_CONFIG=$sdl_prefix/bin/sdl-config
 
21654
    fi
 
21655
  fi
 
21656
 
 
21657
  if test "x$prefix" != xNONE; then
 
21658
    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
 
21659
  fi
 
21660
  # Extract the first word of "sdl-config", so it can be a program name with args.
 
21661
set dummy sdl-config; ac_word=$2
 
21662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21664
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
 
21665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21666
else
 
21667
  case $SDL_CONFIG in
 
21668
  [\\/]* | ?:[\\/]*)
 
21669
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
 
21670
  ;;
 
21671
  *)
 
21672
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21673
for as_dir in $PATH
 
21674
do
 
21675
  IFS=$as_save_IFS
 
21676
  test -z "$as_dir" && as_dir=.
 
21677
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21678
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21679
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21680
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21681
    break 2
 
21682
  fi
 
21683
done
 
21684
done
 
21685
IFS=$as_save_IFS
 
21686
 
 
21687
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
 
21688
  ;;
 
21689
esac
 
21690
fi
 
21691
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
 
21692
if test -n "$SDL_CONFIG"; then
 
21693
  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
 
21694
echo "${ECHO_T}$SDL_CONFIG" >&6; }
 
21695
else
 
21696
  { echo "$as_me:$LINENO: result: no" >&5
 
21697
echo "${ECHO_T}no" >&6; }
 
21698
fi
 
21699
 
 
21700
 
 
21701
  min_sdl_version=$SDL_VERSION
 
21702
  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
 
21703
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
 
21704
  no_sdl=""
 
21705
  if test "$SDL_CONFIG" = "no" ; then
 
21706
    no_sdl=yes
 
21707
  else
 
21708
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
 
21709
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 
21710
 
 
21711
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
 
21712
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
21713
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
 
21714
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
21715
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
 
21716
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
21717
    if test "x$enable_sdltest" = "xyes" ; then
 
21718
      ac_save_CFLAGS="$CFLAGS"
 
21719
      ac_save_CXXFLAGS="$CXXFLAGS"
 
21720
      ac_save_LIBS="$LIBS"
 
21721
      CFLAGS="$CFLAGS $SDL_CFLAGS"
 
21722
      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
21723
      LIBS="$LIBS $SDL_LIBS"
 
21724
      rm -f conf.sdltest
 
21725
      if test "$cross_compiling" = yes; then
 
21726
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
21727
else
 
21728
  cat >conftest.$ac_ext <<_ACEOF
 
21729
/* confdefs.h.  */
 
21730
_ACEOF
 
21731
cat confdefs.h >>conftest.$ac_ext
 
21732
cat >>conftest.$ac_ext <<_ACEOF
 
21733
/* end confdefs.h.  */
 
21734
 
 
21735
#include <stdio.h>
 
21736
#include <stdlib.h>
 
21737
#include <string.h>
 
21738
#include "SDL.h"
 
21739
 
 
21740
char*
 
21741
my_strdup (char *str)
 
21742
{
 
21743
  char *new_str;
 
21744
  
 
21745
  if (str)
 
21746
    {
 
21747
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
 
21748
      strcpy (new_str, str);
 
21749
    }
 
21750
  else
 
21751
    new_str = NULL;
 
21752
  
 
21753
  return new_str;
 
21754
}
 
21755
 
 
21756
int main (int argc, char *argv[])
 
21757
{
 
21758
  int major, minor, micro;
 
21759
  char *tmp_version;
 
21760
 
 
21761
  /* This hangs on some systems (?)
 
21762
  system ("touch conf.sdltest");
 
21763
  */
 
21764
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
 
21765
 
 
21766
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
21767
  tmp_version = my_strdup("$min_sdl_version");
 
21768
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
21769
     printf("%s, bad version string\n", "$min_sdl_version");
 
21770
     exit(1);
 
21771
   }
 
21772
 
 
21773
   if (($sdl_major_version > major) ||
 
21774
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
 
21775
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
 
21776
    {
 
21777
      return 0;
 
21778
    }
 
21779
  else
 
21780
    {
 
21781
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
 
21782
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
 
21783
      printf("*** best to upgrade to the required version.\n");
 
21784
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
 
21785
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
 
21786
      printf("*** config.cache before re-running configure\n");
 
21787
      return 1;
 
21788
    }
 
21789
}
 
21790
 
 
21791
 
 
21792
_ACEOF
 
21793
rm -f conftest$ac_exeext
 
21794
if { (ac_try="$ac_link"
 
21795
case "(($ac_try" in
 
21796
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21797
  *) ac_try_echo=$ac_try;;
 
21798
esac
 
21799
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21800
  (eval "$ac_link") 2>&5
 
21801
  ac_status=$?
 
21802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21803
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21804
  { (case "(($ac_try" in
 
21805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21806
  *) ac_try_echo=$ac_try;;
 
21807
esac
 
21808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21809
  (eval "$ac_try") 2>&5
 
21810
  ac_status=$?
 
21811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21812
  (exit $ac_status); }; }; then
 
21813
  :
 
21814
else
 
21815
  echo "$as_me: program exited with status $ac_status" >&5
 
21816
echo "$as_me: failed program was:" >&5
 
21817
sed 's/^/| /' conftest.$ac_ext >&5
 
21818
 
 
21819
( exit $ac_status )
 
21820
no_sdl=yes
 
21821
fi
 
21822
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21823
fi
 
21824
 
 
21825
 
 
21826
       CFLAGS="$ac_save_CFLAGS"
 
21827
       CXXFLAGS="$ac_save_CXXFLAGS"
 
21828
       LIBS="$ac_save_LIBS"
 
21829
     fi
 
21830
  fi
 
21831
  if test "x$no_sdl" = x ; then
 
21832
     { echo "$as_me:$LINENO: result: yes" >&5
 
21833
echo "${ECHO_T}yes" >&6; }
 
21834
     :     
 
21835
  else
 
21836
     { echo "$as_me:$LINENO: result: no" >&5
 
21837
echo "${ECHO_T}no" >&6; }
 
21838
     if test "$SDL_CONFIG" = "no" ; then
 
21839
       echo "*** The sdl-config script installed by SDL could not be found"
 
21840
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
 
21841
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
 
21842
       echo "*** full path to sdl-config."
 
21843
     else
 
21844
       if test -f conf.sdltest ; then
 
21845
        :
 
21846
       else
 
21847
          echo "*** Could not run SDL test program, checking why..."
 
21848
          CFLAGS="$CFLAGS $SDL_CFLAGS"
 
21849
          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
21850
          LIBS="$LIBS $SDL_LIBS"
 
21851
          cat >conftest.$ac_ext <<_ACEOF
 
21852
/* confdefs.h.  */
 
21853
_ACEOF
 
21854
cat confdefs.h >>conftest.$ac_ext
 
21855
cat >>conftest.$ac_ext <<_ACEOF
 
21856
/* end confdefs.h.  */
 
21857
 
 
21858
#include <stdio.h>
 
21859
#include "SDL.h"
 
21860
 
 
21861
int main(int argc, char *argv[])
 
21862
{ return 0; }
 
21863
#undef  main
 
21864
#define main K_and_R_C_main
 
21865
 
 
21866
int
 
21867
main ()
 
21868
{
 
21869
 return 0; 
 
21870
  ;
 
21871
  return 0;
 
21872
}
 
21873
_ACEOF
 
21874
rm -f conftest.$ac_objext conftest$ac_exeext
 
21875
if { (ac_try="$ac_link"
 
21876
case "(($ac_try" in
 
21877
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21878
  *) ac_try_echo=$ac_try;;
 
21879
esac
 
21880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21881
  (eval "$ac_link") 2>conftest.er1
 
21882
  ac_status=$?
 
21883
  grep -v '^ *+' conftest.er1 >conftest.err
 
21884
  rm -f conftest.er1
 
21885
  cat conftest.err >&5
 
21886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21887
  (exit $ac_status); } && {
 
21888
         test -z "$ac_c_werror_flag" ||
 
21889
         test ! -s conftest.err
 
21890
       } && test -s conftest$ac_exeext &&
 
21891
       $as_test_x conftest$ac_exeext; then
 
21892
   echo "*** The test program compiled, but did not run. This usually means"
 
21893
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
 
21894
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
 
21895
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
21896
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
21897
          echo "*** is required on your system"
 
21898
          echo "***"
 
21899
          echo "*** If you have an old version installed, it is best to remove it, although"
 
21900
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
21901
else
 
21902
  echo "$as_me: failed program was:" >&5
 
21903
sed 's/^/| /' conftest.$ac_ext >&5
 
21904
 
 
21905
         echo "*** The test program failed to compile or link. See the file config.log for the"
 
21906
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
 
21907
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
 
21908
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
 
21909
fi
 
21910
 
 
21911
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21912
      conftest$ac_exeext conftest.$ac_ext
 
21913
          CFLAGS="$ac_save_CFLAGS"
 
21914
          CXXFLAGS="$ac_save_CXXFLAGS"
 
21915
          LIBS="$ac_save_LIBS"
 
21916
       fi
 
21917
     fi
 
21918
     SDL_CFLAGS=""
 
21919
     SDL_LIBS=""
 
21920
     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
 
21921
echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
 
21922
   { (exit 1); exit 1; }; }
 
21923
 
 
21924
  fi
 
21925
  
 
21926
  
 
21927
  rm -f conf.sdltest
 
21928
 
 
21929
CFLAGS="$CFLAGS $SDL_CFLAGS"
 
21930
LIBS="$LIBS $SDL_LIBS"
 
21931
 
 
21932
have_sdlgfx=no
 
21933
{ echo "$as_me:$LINENO: checking for pixelColor  in -lSDL_gfx" >&5
 
21934
echo $ECHO_N "checking for pixelColor  in -lSDL_gfx... $ECHO_C" >&6; }
 
21935
if test "${ac_cv_lib_SDL_gfx_pixelColor_+set}" = set; then
 
21936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21937
else
 
21938
  ac_check_lib_save_LIBS=$LIBS
 
21939
LIBS="-lSDL_gfx  $LIBS"
 
21940
cat >conftest.$ac_ext <<_ACEOF
 
21941
/* confdefs.h.  */
 
21942
_ACEOF
 
21943
cat confdefs.h >>conftest.$ac_ext
 
21944
cat >>conftest.$ac_ext <<_ACEOF
 
21945
/* end confdefs.h.  */
 
21946
 
 
21947
/* Override any GCC internal prototype to avoid an error.
 
21948
   Use char because int might match the return type of a GCC
 
21949
   builtin and then its argument prototype would still apply.  */
 
21950
#ifdef __cplusplus
 
21951
extern "C"
 
21952
#endif
 
21953
char pixelColor  ();
 
21954
int
 
21955
main ()
 
21956
{
 
21957
return pixelColor  ();
 
21958
  ;
 
21959
  return 0;
 
21960
}
 
21961
_ACEOF
 
21962
rm -f conftest.$ac_objext conftest$ac_exeext
 
21963
if { (ac_try="$ac_link"
 
21964
case "(($ac_try" in
 
21965
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21966
  *) ac_try_echo=$ac_try;;
 
21967
esac
 
21968
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21969
  (eval "$ac_link") 2>conftest.er1
 
21970
  ac_status=$?
 
21971
  grep -v '^ *+' conftest.er1 >conftest.err
 
21972
  rm -f conftest.er1
 
21973
  cat conftest.err >&5
 
21974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21975
  (exit $ac_status); } && {
 
21976
         test -z "$ac_c_werror_flag" ||
 
21977
         test ! -s conftest.err
 
21978
       } && test -s conftest$ac_exeext &&
 
21979
       $as_test_x conftest$ac_exeext; then
 
21980
  ac_cv_lib_SDL_gfx_pixelColor_=yes
 
21981
else
 
21982
  echo "$as_me: failed program was:" >&5
 
21983
sed 's/^/| /' conftest.$ac_ext >&5
 
21984
 
 
21985
        ac_cv_lib_SDL_gfx_pixelColor_=no
 
21986
fi
 
21987
 
 
21988
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21989
      conftest$ac_exeext conftest.$ac_ext
 
21990
LIBS=$ac_check_lib_save_LIBS
 
21991
fi
 
21992
{ echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_pixelColor_" >&5
 
21993
echo "${ECHO_T}$ac_cv_lib_SDL_gfx_pixelColor_" >&6; }
 
21994
if test $ac_cv_lib_SDL_gfx_pixelColor_ = yes; then
 
21995
  have_sdlgfx=yes
 
21996
fi
 
21997
 
 
21998
if test x$have_sdlgfx = xyes; then
 
21999
    LIBS="$LIBS -lSDL_gfx"
 
22000
else
 
22001
    { { echo "$as_me:$LINENO: error: 
 
22002
*** Unable to find SDL_gfx library
 
22003
" >&5
 
22004
echo "$as_me: error: 
 
22005
*** Unable to find SDL_gfx library
 
22006
" >&2;}
 
22007
   { (exit 1); exit 1; }; }
 
22008
fi
 
22009
 
 
22010
# Finally create all the generated files
 
22011
ac_config_files="$ac_config_files Makefile"
 
22012
 
 
22013
cat >confcache <<\_ACEOF
 
22014
# This file is a shell script that caches the results of configure
 
22015
# tests run on this system so they can be shared between configure
 
22016
# scripts and configure runs, see configure's option --config-cache.
 
22017
# It is not useful on other systems.  If it contains results you don't
 
22018
# want to keep, you may remove or edit it.
 
22019
#
 
22020
# config.status only pays attention to the cache file if you give it
 
22021
# the --recheck option to rerun configure.
 
22022
#
 
22023
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22024
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22025
# following values.
 
22026
 
 
22027
_ACEOF
 
22028
 
 
22029
# The following way of writing the cache mishandles newlines in values,
 
22030
# but we know of no workaround that is simple, portable, and efficient.
 
22031
# So, we kill variables containing newlines.
 
22032
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22033
# and sets the high bit in the cache file unless we assign to the vars.
 
22034
(
 
22035
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22036
    eval ac_val=\$$ac_var
 
22037
    case $ac_val in #(
 
22038
    *${as_nl}*)
 
22039
      case $ac_var in #(
 
22040
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
22041
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
22042
      esac
 
22043
      case $ac_var in #(
 
22044
      _ | IFS | as_nl) ;; #(
 
22045
      *) $as_unset $ac_var ;;
 
22046
      esac ;;
 
22047
    esac
 
22048
  done
 
22049
 
 
22050
  (set) 2>&1 |
 
22051
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22052
    *${as_nl}ac_space=\ *)
 
22053
      # `set' does not quote correctly, so add quotes (double-quote
 
22054
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22055
      sed -n \
 
22056
        "s/'/'\\\\''/g;
 
22057
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22058
      ;; #(
 
22059
    *)
 
22060
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22061
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22062
      ;;
 
22063
    esac |
 
22064
    sort
 
22065
) |
 
22066
  sed '
 
22067
     /^ac_cv_env_/b end
 
22068
     t clear
 
22069
     :clear
 
22070
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22071
     t end
 
22072
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22073
     :end' >>confcache
 
22074
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22075
  if test -w "$cache_file"; then
 
22076
    test "x$cache_file" != "x/dev/null" &&
 
22077
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22078
echo "$as_me: updating cache $cache_file" >&6;}
 
22079
    cat confcache >$cache_file
 
22080
  else
 
22081
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22082
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22083
  fi
 
22084
fi
 
22085
rm -f confcache
 
22086
 
 
22087
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22088
# Let make expand exec_prefix.
 
22089
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22090
 
 
22091
# Transform confdefs.h into DEFS.
 
22092
# Protect against shell expansion while executing Makefile rules.
 
22093
# Protect against Makefile macro expansion.
 
22094
#
 
22095
# If the first sed substitution is executed (which looks for macros that
 
22096
# take arguments), then branch to the quote section.  Otherwise,
 
22097
# look for a macro that doesn't take arguments.
 
22098
ac_script='
 
22099
t clear
 
22100
:clear
 
22101
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
22102
t quote
 
22103
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
22104
t quote
 
22105
b any
 
22106
:quote
 
22107
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
22108
s/\[/\\&/g
 
22109
s/\]/\\&/g
 
22110
s/\$/$$/g
 
22111
H
 
22112
:any
 
22113
${
 
22114
        g
 
22115
        s/^\n//
 
22116
        s/\n/ /g
 
22117
        p
 
22118
}
 
22119
'
 
22120
DEFS=`sed -n "$ac_script" confdefs.h`
 
22121
 
 
22122
 
 
22123
ac_libobjs=
 
22124
ac_ltlibobjs=
 
22125
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
22126
  # 1. Remove the extension, and $U if already installed.
 
22127
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22128
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
22129
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22130
  #    will be set to the directory where LIBOBJS objects are built.
 
22131
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22132
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22133
done
 
22134
LIB@&t@OBJS=$ac_libobjs
 
22135
 
 
22136
LTLIBOBJS=$ac_ltlibobjs
 
22137
 
 
22138
 
 
22139
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22140
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22141
Usually this means the macro was only invoked conditionally." >&5
 
22142
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22143
Usually this means the macro was only invoked conditionally." >&2;}
 
22144
   { (exit 1); exit 1; }; }
 
22145
fi
 
22146
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22147
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22148
Usually this means the macro was only invoked conditionally." >&5
 
22149
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22150
Usually this means the macro was only invoked conditionally." >&2;}
 
22151
   { (exit 1); exit 1; }; }
 
22152
fi
 
22153
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22154
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22155
Usually this means the macro was only invoked conditionally." >&5
 
22156
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22157
Usually this means the macro was only invoked conditionally." >&2;}
 
22158
   { (exit 1); exit 1; }; }
 
22159
fi
 
22160
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22161
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22162
Usually this means the macro was only invoked conditionally." >&5
 
22163
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22164
Usually this means the macro was only invoked conditionally." >&2;}
 
22165
   { (exit 1); exit 1; }; }
 
22166
fi
 
22167
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22168
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22169
Usually this means the macro was only invoked conditionally." >&5
 
22170
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22171
Usually this means the macro was only invoked conditionally." >&2;}
 
22172
   { (exit 1); exit 1; }; }
 
22173
fi
 
22174
 
 
22175
: ${CONFIG_STATUS=./config.status}
 
22176
ac_clean_files_save=$ac_clean_files
 
22177
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22178
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
22179
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
22180
cat >$CONFIG_STATUS <<_ACEOF
 
22181
#! $SHELL
 
22182
# Generated by $as_me.
 
22183
# Run this file to recreate the current configuration.
 
22184
# Compiler output produced by configure, useful for debugging
 
22185
# configure, is in config.log if it exists.
 
22186
 
 
22187
debug=false
 
22188
ac_cs_recheck=false
 
22189
ac_cs_silent=false
 
22190
SHELL=\${CONFIG_SHELL-$SHELL}
 
22191
_ACEOF
 
22192
 
 
22193
cat >>$CONFIG_STATUS <<\_ACEOF
 
22194
## --------------------- ##
 
22195
## M4sh Initialization.  ##
 
22196
## --------------------- ##
 
22197
 
 
22198
# Be more Bourne compatible
 
22199
DUALCASE=1; export DUALCASE # for MKS sh
 
22200
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
22201
  emulate sh
 
22202
  NULLCMD=:
 
22203
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
22204
  # is contrary to our usage.  Disable this feature.
 
22205
  alias -g '${1+"$@"}'='"$@"'
 
22206
  setopt NO_GLOB_SUBST
 
22207
else
 
22208
  case `(set -o) 2>/dev/null` in
 
22209
  *posix*) set -o posix ;;
 
22210
esac
 
22211
 
 
22212
fi
 
22213
 
 
22214
 
 
22215
 
 
22216
 
 
22217
# PATH needs CR
 
22218
# Avoid depending upon Character Ranges.
 
22219
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22220
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22221
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22222
as_cr_digits='0123456789'
 
22223
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22224
 
 
22225
# The user is always right.
 
22226
if test "${PATH_SEPARATOR+set}" != set; then
 
22227
  echo "#! /bin/sh" >conf$$.sh
 
22228
  echo  "exit 0"   >>conf$$.sh
 
22229
  chmod +x conf$$.sh
 
22230
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22231
    PATH_SEPARATOR=';'
 
22232
  else
 
22233
    PATH_SEPARATOR=:
 
22234
  fi
 
22235
  rm -f conf$$.sh
 
22236
fi
 
22237
 
 
22238
# Support unset when possible.
 
22239
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
22240
  as_unset=unset
 
22241
else
 
22242
  as_unset=false
 
22243
fi
 
22244
 
 
22245
 
 
22246
# IFS
 
22247
# We need space, tab and new line, in precisely that order.  Quoting is
 
22248
# there to prevent editors from complaining about space-tab.
 
22249
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
22250
# splitting by setting IFS to empty value.)
 
22251
as_nl='
 
22252
'
 
22253
IFS=" ""        $as_nl"
 
22254
 
 
22255
# Find who we are.  Look in the path if we contain no directory separator.
 
22256
case $0 in
 
22257
  *[\\/]* ) as_myself=$0 ;;
 
22258
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22259
for as_dir in $PATH
 
22260
do
 
22261
  IFS=$as_save_IFS
 
22262
  test -z "$as_dir" && as_dir=.
 
22263
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22264
done
 
22265
IFS=$as_save_IFS
 
22266
 
 
22267
     ;;
 
22268
esac
 
22269
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
22270
# in which case we are not to be found in the path.
 
22271
if test "x$as_myself" = x; then
 
22272
  as_myself=$0
 
22273
fi
 
22274
if test ! -f "$as_myself"; then
 
22275
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
22276
  { (exit 1); exit 1; }
 
22277
fi
 
22278
 
 
22279
# Work around bugs in pre-3.0 UWIN ksh.
 
22280
for as_var in ENV MAIL MAILPATH
 
22281
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22282
done
 
22283
PS1='$ '
 
22284
PS2='> '
 
22285
PS4='+ '
 
22286
 
 
22287
# NLS nuisances.
 
22288
for as_var in \
 
22289
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
22290
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
22291
  LC_TELEPHONE LC_TIME
 
22292
do
 
22293
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
22294
    eval $as_var=C; export $as_var
 
22295
  else
 
22296
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22297
  fi
 
22298
done
 
22299
 
 
22300
# Required to use basename.
 
22301
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22302
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22303
  as_expr=expr
 
22304
else
 
22305
  as_expr=false
 
22306
fi
 
22307
 
 
22308
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22309
  as_basename=basename
 
22310
else
 
22311
  as_basename=false
 
22312
fi
 
22313
 
 
22314
 
 
22315
# Name of the executable.
 
22316
as_me=`$as_basename -- "$0" ||
 
22317
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
22318
         X"$0" : 'X\(//\)$' \| \
 
22319
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22320
echo X/"$0" |
 
22321
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
22322
            s//\1/
 
22323
            q
 
22324
          }
 
22325
          /^X\/\(\/\/\)$/{
 
22326
            s//\1/
 
22327
            q
 
22328
          }
 
22329
          /^X\/\(\/\).*/{
 
22330
            s//\1/
 
22331
            q
 
22332
          }
 
22333
          s/.*/./; q'`
 
22334
 
 
22335
# CDPATH.
 
22336
$as_unset CDPATH
 
22337
 
 
22338
 
 
22339
 
 
22340
  as_lineno_1=$LINENO
 
22341
  as_lineno_2=$LINENO
 
22342
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22343
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22344
 
 
22345
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
22346
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
22347
  # line-number line after each line using $LINENO; the second 'sed'
 
22348
  # does the real work.  The second script uses 'N' to pair each
 
22349
  # line-number line with the line containing $LINENO, and appends
 
22350
  # trailing '-' during substitution so that $LINENO is not a special
 
22351
  # case at line end.
 
22352
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
22353
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
22354
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
22355
  sed -n '
 
22356
    p
 
22357
    /[$]LINENO/=
 
22358
  ' <$as_myself |
 
22359
    sed '
 
22360
      s/[$]LINENO.*/&-/
 
22361
      t lineno
 
22362
      b
 
22363
      :lineno
 
22364
      N
 
22365
      :loop
 
22366
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22367
      t loop
 
22368
      s/-\n.*//
 
22369
    ' >$as_me.lineno &&
 
22370
  chmod +x "$as_me.lineno" ||
 
22371
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22372
   { (exit 1); exit 1; }; }
 
22373
 
 
22374
  # Don't try to exec as it changes $[0], causing all sort of problems
 
22375
  # (the dirname of $[0] is not the place where we might find the
 
22376
  # original and so on.  Autoconf is especially sensitive to this).
 
22377
  . "./$as_me.lineno"
 
22378
  # Exit status is that of the last command.
 
22379
  exit
 
22380
}
 
22381
 
 
22382
 
 
22383
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
22384
  as_dirname=dirname
 
22385
else
 
22386
  as_dirname=false
 
22387
fi
 
22388
 
 
22389
ECHO_C= ECHO_N= ECHO_T=
 
22390
case `echo -n x` in
 
22391
-n*)
 
22392
  case `echo 'x\c'` in
 
22393
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
22394
  *)   ECHO_C='\c';;
 
22395
  esac;;
 
22396
*)
 
22397
  ECHO_N='-n';;
 
22398
esac
 
22399
 
 
22400
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
22401
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22402
  as_expr=expr
 
22403
else
 
22404
  as_expr=false
 
22405
fi
 
22406
 
 
22407
rm -f conf$$ conf$$.exe conf$$.file
 
22408
if test -d conf$$.dir; then
 
22409
  rm -f conf$$.dir/conf$$.file
 
22410
else
 
22411
  rm -f conf$$.dir
 
22412
  mkdir conf$$.dir
 
22413
fi
 
22414
echo >conf$$.file
 
22415
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22416
  as_ln_s='ln -s'
 
22417
  # ... but there are two gotchas:
 
22418
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22419
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22420
  # In both cases, we have to default to `cp -p'.
 
22421
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22422
    as_ln_s='cp -p'
 
22423
elif ln conf$$.file conf$$ 2>/dev/null; then
 
22424
  as_ln_s=ln
 
22425
else
 
22426
  as_ln_s='cp -p'
 
22427
fi
 
22428
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22429
rmdir conf$$.dir 2>/dev/null
 
22430
 
 
22431
if mkdir -p . 2>/dev/null; then
 
22432
  as_mkdir_p=:
 
22433
else
 
22434
  test -d ./-p && rmdir ./-p
 
22435
  as_mkdir_p=false
 
22436
fi
 
22437
 
 
22438
if test -x / >/dev/null 2>&1; then
 
22439
  as_test_x='test -x'
 
22440
else
 
22441
  if ls -dL / >/dev/null 2>&1; then
 
22442
    as_ls_L_option=L
 
22443
  else
 
22444
    as_ls_L_option=
 
22445
  fi
 
22446
  as_test_x='
 
22447
    eval sh -c '\''
 
22448
      if test -d "$1"; then
 
22449
        test -d "$1/.";
 
22450
      else
 
22451
        case $1 in
 
22452
        -*)set "./$1";;
 
22453
        esac;
 
22454
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
22455
        ???[sx]*):;;*)false;;esac;fi
 
22456
    '\'' sh
 
22457
  '
 
22458
fi
 
22459
as_executable_p=$as_test_x
 
22460
 
 
22461
# Sed expression to map a string onto a valid CPP name.
 
22462
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22463
 
 
22464
# Sed expression to map a string onto a valid variable name.
 
22465
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22466
 
 
22467
 
 
22468
exec 6>&1
 
22469
 
 
22470
# Save the log message, to keep $[0] and so on meaningful, and to
 
22471
# report actual input values of CONFIG_FILES etc. instead of their
 
22472
# values after options handling.
 
22473
ac_log="
 
22474
This file was extended by $as_me, which was
 
22475
generated by GNU Autoconf 2.61.  Invocation command line was
 
22476
 
 
22477
  CONFIG_FILES    = $CONFIG_FILES
 
22478
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22479
  CONFIG_LINKS    = $CONFIG_LINKS
 
22480
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22481
  $ $0 $@
 
22482
 
 
22483
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22484
"
 
22485
 
 
22486
_ACEOF
 
22487
 
 
22488
cat >>$CONFIG_STATUS <<_ACEOF
 
22489
# Files that config.status was made for.
 
22490
config_files="$ac_config_files"
 
22491
config_commands="$ac_config_commands"
 
22492
 
 
22493
_ACEOF
 
22494
 
 
22495
cat >>$CONFIG_STATUS <<\_ACEOF
 
22496
ac_cs_usage="\
 
22497
\`$as_me' instantiates files from templates according to the
 
22498
current configuration.
 
22499
 
 
22500
Usage: $0 [OPTIONS] [FILE]...
 
22501
 
 
22502
  -h, --help       print this help, then exit
 
22503
  -V, --version    print version number and configuration settings, then exit
 
22504
  -q, --quiet      do not print progress messages
 
22505
  -d, --debug      don't remove temporary files
 
22506
      --recheck    update $as_me by reconfiguring in the same conditions
 
22507
  --file=FILE[:TEMPLATE]
 
22508
                   instantiate the configuration file FILE
 
22509
 
 
22510
Configuration files:
 
22511
$config_files
 
22512
 
 
22513
Configuration commands:
 
22514
$config_commands
 
22515
 
 
22516
Report bugs to <bug-autoconf@gnu.org>."
 
22517
 
 
22518
_ACEOF
 
22519
cat >>$CONFIG_STATUS <<_ACEOF
 
22520
ac_cs_version="\\
 
22521
config.status
 
22522
configured by $0, generated by GNU Autoconf 2.61,
 
22523
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22524
 
 
22525
Copyright (C) 2006 Free Software Foundation, Inc.
 
22526
This config.status script is free software; the Free Software Foundation
 
22527
gives unlimited permission to copy, distribute and modify it."
 
22528
 
 
22529
ac_pwd='$ac_pwd'
 
22530
srcdir='$srcdir'
 
22531
INSTALL='$INSTALL'
 
22532
MKDIR_P='$MKDIR_P'
 
22533
_ACEOF
 
22534
 
 
22535
cat >>$CONFIG_STATUS <<\_ACEOF
 
22536
# If no file are specified by the user, then we need to provide default
 
22537
# value.  By we need to know if files were specified by the user.
 
22538
ac_need_defaults=:
 
22539
while test $# != 0
 
22540
do
 
22541
  case $1 in
 
22542
  --*=*)
 
22543
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22544
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22545
    ac_shift=:
 
22546
    ;;
 
22547
  *)
 
22548
    ac_option=$1
 
22549
    ac_optarg=$2
 
22550
    ac_shift=shift
 
22551
    ;;
 
22552
  esac
 
22553
 
 
22554
  case $ac_option in
 
22555
  # Handling of the options.
 
22556
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22557
    ac_cs_recheck=: ;;
 
22558
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22559
    echo "$ac_cs_version"; exit ;;
 
22560
  --debug | --debu | --deb | --de | --d | -d )
 
22561
    debug=: ;;
 
22562
  --file | --fil | --fi | --f )
 
22563
    $ac_shift
 
22564
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22565
    ac_need_defaults=false;;
 
22566
  --he | --h |  --help | --hel | -h )
 
22567
    echo "$ac_cs_usage"; exit ;;
 
22568
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22569
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22570
    ac_cs_silent=: ;;
 
22571
 
 
22572
  # This is an error.
 
22573
  -*) { echo "$as_me: error: unrecognized option: $1
 
22574
Try \`$0 --help' for more information." >&2
 
22575
   { (exit 1); exit 1; }; } ;;
 
22576
 
 
22577
  *) ac_config_targets="$ac_config_targets $1"
 
22578
     ac_need_defaults=false ;;
 
22579
 
 
22580
  esac
 
22581
  shift
 
22582
done
 
22583
 
 
22584
ac_configure_extra_args=
 
22585
 
 
22586
if $ac_cs_silent; then
 
22587
  exec 6>/dev/null
 
22588
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22589
fi
 
22590
 
 
22591
_ACEOF
 
22592
cat >>$CONFIG_STATUS <<_ACEOF
 
22593
if \$ac_cs_recheck; then
 
22594
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22595
  CONFIG_SHELL=$SHELL
 
22596
  export CONFIG_SHELL
 
22597
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22598
fi
 
22599
 
 
22600
_ACEOF
 
22601
cat >>$CONFIG_STATUS <<\_ACEOF
 
22602
exec 5>>config.log
 
22603
{
 
22604
  echo
 
22605
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
22606
@%:@@%:@ Running $as_me. @%:@@%:@
 
22607
_ASBOX
 
22608
  echo "$ac_log"
 
22609
} >&5
 
22610
 
 
22611
_ACEOF
 
22612
cat >>$CONFIG_STATUS <<_ACEOF
 
22613
#
 
22614
# INIT-COMMANDS
 
22615
#
 
22616
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22617
 
 
22618
_ACEOF
 
22619
 
 
22620
cat >>$CONFIG_STATUS <<\_ACEOF
 
22621
 
 
22622
# Handling of arguments.
 
22623
for ac_config_target in $ac_config_targets
 
22624
do
 
22625
  case $ac_config_target in
 
22626
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22627
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22628
 
 
22629
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22630
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22631
   { (exit 1); exit 1; }; };;
 
22632
  esac
 
22633
done
 
22634
 
 
22635
 
 
22636
# If the user did not use the arguments to specify the items to instantiate,
 
22637
# then the envvar interface is used.  Set only those that are not.
 
22638
# We use the long form for the default assignment because of an extremely
 
22639
# bizarre bug on SunOS 4.1.3.
 
22640
if $ac_need_defaults; then
 
22641
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22642
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22643
fi
 
22644
 
 
22645
# Have a temporary directory for convenience.  Make it in the build tree
 
22646
# simply because there is no reason against having it here, and in addition,
 
22647
# creating and moving files from /tmp can sometimes cause problems.
 
22648
# Hook for its removal unless debugging.
 
22649
# Note that there is a small window in which the directory will not be cleaned:
 
22650
# after its creation but before its name has been assigned to `$tmp'.
 
22651
$debug ||
 
22652
{
 
22653
  tmp=
 
22654
  trap 'exit_status=$?
 
22655
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
22656
' 0
 
22657
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22658
}
 
22659
# Create a (secure) tmp directory for tmp files.
 
22660
 
 
22661
{
 
22662
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22663
  test -n "$tmp" && test -d "$tmp"
 
22664
}  ||
 
22665
{
 
22666
  tmp=./conf$$-$RANDOM
 
22667
  (umask 077 && mkdir "$tmp")
 
22668
} ||
 
22669
{
 
22670
   echo "$me: cannot create a temporary directory in ." >&2
 
22671
   { (exit 1); exit 1; }
 
22672
}
 
22673
 
 
22674
#
 
22675
# Set up the sed scripts for CONFIG_FILES section.
 
22676
#
 
22677
 
 
22678
# No need to generate the scripts if there are no CONFIG_FILES.
 
22679
# This happens for instance when ./config.status config.h
 
22680
if test -n "$CONFIG_FILES"; then
 
22681
 
 
22682
_ACEOF
 
22683
 
 
22684
 
 
22685
 
 
22686
ac_delim='%!_!# '
 
22687
for ac_last_try in false false false false false :; do
 
22688
  cat >conf$$subs.sed <<_ACEOF
 
22689
SHELL!$SHELL$ac_delim
 
22690
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
22691
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
22692
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
22693
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
22694
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
22695
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
22696
exec_prefix!$exec_prefix$ac_delim
 
22697
prefix!$prefix$ac_delim
 
22698
program_transform_name!$program_transform_name$ac_delim
 
22699
bindir!$bindir$ac_delim
 
22700
sbindir!$sbindir$ac_delim
 
22701
libexecdir!$libexecdir$ac_delim
 
22702
datarootdir!$datarootdir$ac_delim
 
22703
datadir!$datadir$ac_delim
 
22704
sysconfdir!$sysconfdir$ac_delim
 
22705
sharedstatedir!$sharedstatedir$ac_delim
 
22706
localstatedir!$localstatedir$ac_delim
 
22707
includedir!$includedir$ac_delim
 
22708
oldincludedir!$oldincludedir$ac_delim
 
22709
docdir!$docdir$ac_delim
 
22710
infodir!$infodir$ac_delim
 
22711
htmldir!$htmldir$ac_delim
 
22712
dvidir!$dvidir$ac_delim
 
22713
pdfdir!$pdfdir$ac_delim
 
22714
psdir!$psdir$ac_delim
 
22715
libdir!$libdir$ac_delim
 
22716
localedir!$localedir$ac_delim
 
22717
mandir!$mandir$ac_delim
 
22718
DEFS!$DEFS$ac_delim
 
22719
ECHO_C!$ECHO_C$ac_delim
 
22720
ECHO_N!$ECHO_N$ac_delim
 
22721
ECHO_T!$ECHO_T$ac_delim
 
22722
LIBS!$LIBS$ac_delim
 
22723
build_alias!$build_alias$ac_delim
 
22724
host_alias!$host_alias$ac_delim
 
22725
target_alias!$target_alias$ac_delim
 
22726
build!$build$ac_delim
 
22727
build_cpu!$build_cpu$ac_delim
 
22728
build_vendor!$build_vendor$ac_delim
 
22729
build_os!$build_os$ac_delim
 
22730
host!$host$ac_delim
 
22731
host_cpu!$host_cpu$ac_delim
 
22732
host_vendor!$host_vendor$ac_delim
 
22733
host_os!$host_os$ac_delim
 
22734
target!$target$ac_delim
 
22735
target_cpu!$target_cpu$ac_delim
 
22736
target_vendor!$target_vendor$ac_delim
 
22737
target_os!$target_os$ac_delim
 
22738
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
22739
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
22740
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
22741
am__isrc!$am__isrc$ac_delim
 
22742
CYGPATH_W!$CYGPATH_W$ac_delim
 
22743
PACKAGE!$PACKAGE$ac_delim
 
22744
VERSION!$VERSION$ac_delim
 
22745
ACLOCAL!$ACLOCAL$ac_delim
 
22746
AUTOCONF!$AUTOCONF$ac_delim
 
22747
AUTOMAKE!$AUTOMAKE$ac_delim
 
22748
AUTOHEADER!$AUTOHEADER$ac_delim
 
22749
MAKEINFO!$MAKEINFO$ac_delim
 
22750
install_sh!$install_sh$ac_delim
 
22751
STRIP!$STRIP$ac_delim
 
22752
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
22753
mkdir_p!$mkdir_p$ac_delim
 
22754
AWK!$AWK$ac_delim
 
22755
SET_MAKE!$SET_MAKE$ac_delim
 
22756
am__leading_dot!$am__leading_dot$ac_delim
 
22757
AMTAR!$AMTAR$ac_delim
 
22758
am__tar!$am__tar$ac_delim
 
22759
am__untar!$am__untar$ac_delim
 
22760
CC!$CC$ac_delim
 
22761
CFLAGS!$CFLAGS$ac_delim
 
22762
LDFLAGS!$LDFLAGS$ac_delim
 
22763
CPPFLAGS!$CPPFLAGS$ac_delim
 
22764
ac_ct_CC!$ac_ct_CC$ac_delim
 
22765
EXEEXT!$EXEEXT$ac_delim
 
22766
OBJEXT!$OBJEXT$ac_delim
 
22767
DEPDIR!$DEPDIR$ac_delim
 
22768
am__include!$am__include$ac_delim
 
22769
am__quote!$am__quote$ac_delim
 
22770
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
22771
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
22772
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
22773
CCDEPMODE!$CCDEPMODE$ac_delim
 
22774
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
22775
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
22776
SED!$SED$ac_delim
 
22777
GREP!$GREP$ac_delim
 
22778
EGREP!$EGREP$ac_delim
 
22779
LN_S!$LN_S$ac_delim
 
22780
ECHO!$ECHO$ac_delim
 
22781
AR!$AR$ac_delim
 
22782
RANLIB!$RANLIB$ac_delim
 
22783
DSYMUTIL!$DSYMUTIL$ac_delim
 
22784
NMEDIT!$NMEDIT$ac_delim
 
22785
DLLTOOL!$DLLTOOL$ac_delim
 
22786
_ACEOF
 
22787
 
 
22788
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
22789
    break
 
22790
  elif $ac_last_try; then
 
22791
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22792
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22793
   { (exit 1); exit 1; }; }
 
22794
  else
 
22795
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22796
  fi
 
22797
done
 
22798
 
 
22799
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22800
if test -n "$ac_eof"; then
 
22801
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22802
  ac_eof=`expr $ac_eof + 1`
 
22803
fi
 
22804
 
 
22805
cat >>$CONFIG_STATUS <<_ACEOF
 
22806
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
22807
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22808
_ACEOF
 
22809
sed '
 
22810
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22811
s/^/s,@/; s/!/@,|#_!!_#|/
 
22812
:n
 
22813
t n
 
22814
s/'"$ac_delim"'$/,g/; t
 
22815
s/$/\\/; p
 
22816
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22817
' >>$CONFIG_STATUS <conf$$subs.sed
 
22818
rm -f conf$$subs.sed
 
22819
cat >>$CONFIG_STATUS <<_ACEOF
 
22820
CEOF$ac_eof
 
22821
_ACEOF
 
22822
 
 
22823
 
 
22824
ac_delim='%!_!# '
 
22825
for ac_last_try in false false false false false :; do
 
22826
  cat >conf$$subs.sed <<_ACEOF
 
22827
AS!$AS$ac_delim
 
22828
OBJDUMP!$OBJDUMP$ac_delim
 
22829
CPP!$CPP$ac_delim
 
22830
CXX!$CXX$ac_delim
 
22831
CXXFLAGS!$CXXFLAGS$ac_delim
 
22832
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
22833
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
22834
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
22835
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
22836
CXXCPP!$CXXCPP$ac_delim
 
22837
F77!$F77$ac_delim
 
22838
FFLAGS!$FFLAGS$ac_delim
 
22839
ac_ct_F77!$ac_ct_F77$ac_delim
 
22840
LIBTOOL!$LIBTOOL$ac_delim
 
22841
MATHLIB!$MATHLIB$ac_delim
 
22842
SDL_CONFIG!$SDL_CONFIG$ac_delim
 
22843
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 
22844
SDL_LIBS!$SDL_LIBS$ac_delim
 
22845
LIB@&t@OBJS!$LIB@&t@OBJS$ac_delim
 
22846
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
22847
_ACEOF
 
22848
 
 
22849
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
 
22850
    break
 
22851
  elif $ac_last_try; then
 
22852
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22853
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22854
   { (exit 1); exit 1; }; }
 
22855
  else
 
22856
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22857
  fi
 
22858
done
 
22859
 
 
22860
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
22861
if test -n "$ac_eof"; then
 
22862
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
22863
  ac_eof=`expr $ac_eof + 1`
 
22864
fi
 
22865
 
 
22866
cat >>$CONFIG_STATUS <<_ACEOF
 
22867
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
22868
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
22869
_ACEOF
 
22870
sed '
 
22871
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
22872
s/^/s,@/; s/!/@,|#_!!_#|/
 
22873
:n
 
22874
t n
 
22875
s/'"$ac_delim"'$/,g/; t
 
22876
s/$/\\/; p
 
22877
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
22878
' >>$CONFIG_STATUS <conf$$subs.sed
 
22879
rm -f conf$$subs.sed
 
22880
cat >>$CONFIG_STATUS <<_ACEOF
 
22881
:end
 
22882
s/|#_!!_#|//g
 
22883
CEOF$ac_eof
 
22884
_ACEOF
 
22885
 
 
22886
 
 
22887
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22888
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22889
# trailing colons and then remove the whole line if VPATH becomes empty
 
22890
# (actually we leave an empty line to preserve line numbers).
 
22891
if test "x$srcdir" = x.; then
 
22892
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22893
s/:*\$(srcdir):*/:/
 
22894
s/:*\${srcdir}:*/:/
 
22895
s/:*@srcdir@:*/:/
 
22896
s/^\([^=]*=[     ]*\):*/\1/
 
22897
s/:*$//
 
22898
s/^[^=]*=[       ]*$//
 
22899
}'
 
22900
fi
 
22901
 
 
22902
cat >>$CONFIG_STATUS <<\_ACEOF
 
22903
fi # test -n "$CONFIG_FILES"
 
22904
 
 
22905
 
 
22906
for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
 
22907
do
 
22908
  case $ac_tag in
 
22909
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
22910
  esac
 
22911
  case $ac_mode$ac_tag in
 
22912
  :[FHL]*:*);;
 
22913
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
22914
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
22915
   { (exit 1); exit 1; }; };;
 
22916
  :[FH]-) ac_tag=-:-;;
 
22917
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
22918
  esac
 
22919
  ac_save_IFS=$IFS
 
22920
  IFS=:
 
22921
  set x $ac_tag
 
22922
  IFS=$ac_save_IFS
 
22923
  shift
 
22924
  ac_file=$1
 
22925
  shift
 
22926
 
 
22927
  case $ac_mode in
 
22928
  :L) ac_source=$1;;
 
22929
  :[FH])
 
22930
    ac_file_inputs=
 
22931
    for ac_f
 
22932
    do
 
22933
      case $ac_f in
 
22934
      -) ac_f="$tmp/stdin";;
 
22935
      *) # Look for the file first in the build tree, then in the source tree
 
22936
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
22937
         # because $ac_f cannot contain `:'.
 
22938
         test -f "$ac_f" ||
 
22939
           case $ac_f in
 
22940
           [\\/$]*) false;;
 
22941
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
22942
           esac ||
 
22943
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
22944
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22945
   { (exit 1); exit 1; }; };;
 
22946
      esac
 
22947
      ac_file_inputs="$ac_file_inputs $ac_f"
 
22948
    done
 
22949
 
 
22950
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22951
    # use $as_me), people would be surprised to read:
 
22952
    #    /* config.h.  Generated by config.status.  */
 
22953
    configure_input="Generated from "`IFS=:
 
22954
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
22955
    if test x"$ac_file" != x-; then
 
22956
      configure_input="$ac_file.  $configure_input"
 
22957
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22958
echo "$as_me: creating $ac_file" >&6;}
 
22959
    fi
 
22960
 
 
22961
    case $ac_tag in
 
22962
    *:-:* | *:-) cat >"$tmp/stdin";;
 
22963
    esac
 
22964
    ;;
 
22965
  esac
 
22966
 
 
22967
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22968
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22969
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22970
         X"$ac_file" : 'X\(//\)$' \| \
 
22971
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
22972
echo X"$ac_file" |
 
22973
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22974
            s//\1/
 
22975
            q
 
22976
          }
 
22977
          /^X\(\/\/\)[^/].*/{
 
22978
            s//\1/
 
22979
            q
 
22980
          }
 
22981
          /^X\(\/\/\)$/{
 
22982
            s//\1/
 
22983
            q
 
22984
          }
 
22985
          /^X\(\/\).*/{
 
22986
            s//\1/
 
22987
            q
 
22988
          }
 
22989
          s/.*/./; q'`
 
22990
  { as_dir="$ac_dir"
 
22991
  case $as_dir in #(
 
22992
  -*) as_dir=./$as_dir;;
 
22993
  esac
 
22994
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22995
    as_dirs=
 
22996
    while :; do
 
22997
      case $as_dir in #(
 
22998
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
22999
      *) as_qdir=$as_dir;;
 
23000
      esac
 
23001
      as_dirs="'$as_qdir' $as_dirs"
 
23002
      as_dir=`$as_dirname -- "$as_dir" ||
 
23003
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23004
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23005
         X"$as_dir" : 'X\(//\)$' \| \
 
23006
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23007
echo X"$as_dir" |
 
23008
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23009
            s//\1/
 
23010
            q
 
23011
          }
 
23012
          /^X\(\/\/\)[^/].*/{
 
23013
            s//\1/
 
23014
            q
 
23015
          }
 
23016
          /^X\(\/\/\)$/{
 
23017
            s//\1/
 
23018
            q
 
23019
          }
 
23020
          /^X\(\/\).*/{
 
23021
            s//\1/
 
23022
            q
 
23023
          }
 
23024
          s/.*/./; q'`
 
23025
      test -d "$as_dir" && break
 
23026
    done
 
23027
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23028
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23029
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23030
   { (exit 1); exit 1; }; }; }
 
23031
  ac_builddir=.
 
23032
 
 
23033
case "$ac_dir" in
 
23034
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23035
*)
 
23036
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
23037
  # A ".." for each directory in $ac_dir_suffix.
 
23038
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
23039
  case $ac_top_builddir_sub in
 
23040
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23041
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23042
  esac ;;
 
23043
esac
 
23044
ac_abs_top_builddir=$ac_pwd
 
23045
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23046
# for backward compatibility:
 
23047
ac_top_builddir=$ac_top_build_prefix
 
23048
 
 
23049
case $srcdir in
 
23050
  .)  # We are building in place.
 
23051
    ac_srcdir=.
 
23052
    ac_top_srcdir=$ac_top_builddir_sub
 
23053
    ac_abs_top_srcdir=$ac_pwd ;;
 
23054
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23055
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23056
    ac_top_srcdir=$srcdir
 
23057
    ac_abs_top_srcdir=$srcdir ;;
 
23058
  *) # Relative name.
 
23059
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23060
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23061
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23062
esac
 
23063
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23064
 
 
23065
 
 
23066
  case $ac_mode in
 
23067
  :F)
 
23068
  #
 
23069
  # CONFIG_FILE
 
23070
  #
 
23071
 
 
23072
  case $INSTALL in
 
23073
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23074
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23075
  esac
 
23076
  ac_MKDIR_P=$MKDIR_P
 
23077
  case $MKDIR_P in
 
23078
  [\\/$]* | ?:[\\/]* ) ;;
 
23079
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
23080
  esac
 
23081
_ACEOF
 
23082
 
 
23083
cat >>$CONFIG_STATUS <<\_ACEOF
 
23084
# If the template does not know about datarootdir, expand it.
 
23085
# FIXME: This hack should be removed a few years after 2.60.
 
23086
ac_datarootdir_hack=; ac_datarootdir_seen=
 
23087
 
 
23088
case `sed -n '/datarootdir/ {
 
23089
  p
 
23090
  q
 
23091
}
 
23092
/@datadir@/p
 
23093
/@docdir@/p
 
23094
/@infodir@/p
 
23095
/@localedir@/p
 
23096
/@mandir@/p
 
23097
' $ac_file_inputs` in
 
23098
*datarootdir*) ac_datarootdir_seen=yes;;
 
23099
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
23100
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
23101
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
23102
_ACEOF
 
23103
cat >>$CONFIG_STATUS <<_ACEOF
 
23104
  ac_datarootdir_hack='
 
23105
  s&@datadir@&$datadir&g
 
23106
  s&@docdir@&$docdir&g
 
23107
  s&@infodir@&$infodir&g
 
23108
  s&@localedir@&$localedir&g
 
23109
  s&@mandir@&$mandir&g
 
23110
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
23111
esac
 
23112
_ACEOF
 
23113
 
 
23114
# Neutralize VPATH when `$srcdir' = `.'.
 
23115
# Shell code in configure.ac might set extrasub.
 
23116
# FIXME: do we really want to maintain this feature?
 
23117
cat >>$CONFIG_STATUS <<_ACEOF
 
23118
  sed "$ac_vpsub
 
23119
$extrasub
 
23120
_ACEOF
 
23121
cat >>$CONFIG_STATUS <<\_ACEOF
 
23122
:t
 
23123
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23124
s&@configure_input@&$configure_input&;t t
 
23125
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
23126
s&@srcdir@&$ac_srcdir&;t t
 
23127
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
23128
s&@top_srcdir@&$ac_top_srcdir&;t t
 
23129
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
23130
s&@builddir@&$ac_builddir&;t t
 
23131
s&@abs_builddir@&$ac_abs_builddir&;t t
 
23132
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
23133
s&@INSTALL@&$ac_INSTALL&;t t
 
23134
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
23135
$ac_datarootdir_hack
 
23136
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
23137
 
 
23138
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
23139
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
23140
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
23141
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23142
which seems to be undefined.  Please make sure it is defined." >&5
 
23143
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
23144
which seems to be undefined.  Please make sure it is defined." >&2;}
 
23145
 
 
23146
  rm -f "$tmp/stdin"
 
23147
  case $ac_file in
 
23148
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
23149
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
23150
  esac
 
23151
 ;;
 
23152
  
 
23153
  
 
23154
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
23155
echo "$as_me: executing $ac_file commands" >&6;}
 
23156
 ;;
 
23157
  esac
 
23158
 
 
23159
 
 
23160
  case $ac_file$ac_mode in
 
23161
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
23162
  # Strip MF so we end up with the name of the file.
 
23163
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
23164
  # Check whether this is an Automake generated Makefile or not.
 
23165
  # We used to match only the files named `Makefile.in', but
 
23166
  # some people rename them; so instead we look at the file content.
 
23167
  # Grep'ing the first line is not enough: some people post-process
 
23168
  # each Makefile.in and add a new line on top of each file to say so.
 
23169
  # Grep'ing the whole file is not good either: AIX grep has a line
 
23170
  # limit of 2048, but all sed's we know have understand at least 4000.
 
23171
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
23172
    dirpart=`$as_dirname -- "$mf" ||
 
23173
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23174
         X"$mf" : 'X\(//\)[^/]' \| \
 
23175
         X"$mf" : 'X\(//\)$' \| \
 
23176
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
23177
echo X"$mf" |
 
23178
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23179
            s//\1/
 
23180
            q
 
23181
          }
 
23182
          /^X\(\/\/\)[^/].*/{
 
23183
            s//\1/
 
23184
            q
 
23185
          }
 
23186
          /^X\(\/\/\)$/{
 
23187
            s//\1/
 
23188
            q
 
23189
          }
 
23190
          /^X\(\/\).*/{
 
23191
            s//\1/
 
23192
            q
 
23193
          }
 
23194
          s/.*/./; q'`
 
23195
  else
 
23196
    continue
 
23197
  fi
 
23198
  # Extract the definition of DEPDIR, am__include, and am__quote
 
23199
  # from the Makefile without running `make'.
 
23200
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
23201
  test -z "$DEPDIR" && continue
 
23202
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
23203
  test -z "am__include" && continue
 
23204
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
23205
  # When using ansi2knr, U may be empty or an underscore; expand it
 
23206
  U=`sed -n 's/^U = //p' < "$mf"`
 
23207
  # Find all dependency output files, they are included files with
 
23208
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
23209
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
23210
  # expansion.
 
23211
  for file in `sed -n "
 
23212
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
23213
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
23214
    # Make sure the directory exists.
 
23215
    test -f "$dirpart/$file" && continue
 
23216
    fdir=`$as_dirname -- "$file" ||
 
23217
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23218
         X"$file" : 'X\(//\)[^/]' \| \
 
23219
         X"$file" : 'X\(//\)$' \| \
 
23220
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
23221
echo X"$file" |
 
23222
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23223
            s//\1/
 
23224
            q
 
23225
          }
 
23226
          /^X\(\/\/\)[^/].*/{
 
23227
            s//\1/
 
23228
            q
 
23229
          }
 
23230
          /^X\(\/\/\)$/{
 
23231
            s//\1/
 
23232
            q
 
23233
          }
 
23234
          /^X\(\/\).*/{
 
23235
            s//\1/
 
23236
            q
 
23237
          }
 
23238
          s/.*/./; q'`
 
23239
    { as_dir=$dirpart/$fdir
 
23240
  case $as_dir in #(
 
23241
  -*) as_dir=./$as_dir;;
 
23242
  esac
 
23243
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23244
    as_dirs=
 
23245
    while :; do
 
23246
      case $as_dir in #(
 
23247
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23248
      *) as_qdir=$as_dir;;
 
23249
      esac
 
23250
      as_dirs="'$as_qdir' $as_dirs"
 
23251
      as_dir=`$as_dirname -- "$as_dir" ||
 
23252
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23253
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23254
         X"$as_dir" : 'X\(//\)$' \| \
 
23255
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23256
echo X"$as_dir" |
 
23257
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23258
            s//\1/
 
23259
            q
 
23260
          }
 
23261
          /^X\(\/\/\)[^/].*/{
 
23262
            s//\1/
 
23263
            q
 
23264
          }
 
23265
          /^X\(\/\/\)$/{
 
23266
            s//\1/
 
23267
            q
 
23268
          }
 
23269
          /^X\(\/\).*/{
 
23270
            s//\1/
 
23271
            q
 
23272
          }
 
23273
          s/.*/./; q'`
 
23274
      test -d "$as_dir" && break
 
23275
    done
 
23276
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23277
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23278
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23279
   { (exit 1); exit 1; }; }; }
 
23280
    # echo "creating $dirpart/$file"
 
23281
    echo '# dummy' > "$dirpart/$file"
 
23282
  done
 
23283
done
 
23284
 ;;
 
23285
 
 
23286
  esac
 
23287
done # for ac_tag
 
23288
 
 
23289
 
 
23290
{ (exit 0); exit 0; }
 
23291
_ACEOF
 
23292
chmod +x $CONFIG_STATUS
 
23293
ac_clean_files=$ac_clean_files_save
 
23294
 
 
23295
 
 
23296
# configure is writing to config.log, and then calls config.status.
 
23297
# config.status does its own redirection, appending to config.log.
 
23298
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23299
# by configure, so config.status won't be able to write to it; its
 
23300
# output is simply discarded.  So we exec the FD to /dev/null,
 
23301
# effectively closing config.log, so it can be properly (re)opened and
 
23302
# appended to by config.status.  When coming back to configure, we
 
23303
# need to make the FD available again.
 
23304
if test "$no_create" != yes; then
 
23305
  ac_cs_success=:
 
23306
  ac_config_status_args=
 
23307
  test "$silent" = yes &&
 
23308
    ac_config_status_args="$ac_config_status_args --quiet"
 
23309
  exec 5>/dev/null
 
23310
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23311
  exec 5>>config.log
 
23312
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23313
  # would make configure fail if this is the last instruction.
 
23314
  $ac_cs_success || { (exit 1); exit 1; }
 
23315
fi
 
23316