~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to configure

  • Committer: Johannes Ring
  • Date: 2008-03-05 22:43:06 UTC
  • Revision ID: johannr@simula.no-20080305224306-2npsdyhfdpl2esji
The BIG commit!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#! /bin/sh
2
 
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.61 for DOLFIN 0.7.2.
4
 
#
5
 
# Report bugs to <http://www.fenics.org/bugzilla/>.
6
 
#
7
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
 
# This configure script is free software; the Free Software Foundation
10
 
# gives unlimited permission to copy, distribute and modify it.
11
 
## --------------------- ##
12
 
## M4sh Initialization.  ##
13
 
## --------------------- ##
14
 
 
15
 
# Be more Bourne compatible
16
 
DUALCASE=1; export DUALCASE # for MKS sh
17
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
 
  emulate sh
19
 
  NULLCMD=:
20
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
 
  # is contrary to our usage.  Disable this feature.
22
 
  alias -g '${1+"$@"}'='"$@"'
23
 
  setopt NO_GLOB_SUBST
24
 
else
25
 
  case `(set -o) 2>/dev/null` in
26
 
  *posix*) set -o posix ;;
27
 
esac
28
 
 
29
 
fi
30
 
 
31
 
 
32
 
 
33
 
 
34
 
# PATH needs CR
35
 
# Avoid depending upon Character Ranges.
36
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
 
as_cr_digits='0123456789'
40
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
41
 
 
42
 
# The user is always right.
43
 
if test "${PATH_SEPARATOR+set}" != set; then
44
 
  echo "#! /bin/sh" >conf$$.sh
45
 
  echo  "exit 0"   >>conf$$.sh
46
 
  chmod +x conf$$.sh
47
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48
 
    PATH_SEPARATOR=';'
49
 
  else
50
 
    PATH_SEPARATOR=:
51
 
  fi
52
 
  rm -f conf$$.sh
53
 
fi
54
 
 
55
 
# Support unset when possible.
56
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
57
 
  as_unset=unset
58
 
else
59
 
  as_unset=false
60
 
fi
61
 
 
62
 
 
63
 
# IFS
64
 
# We need space, tab and new line, in precisely that order.  Quoting is
65
 
# there to prevent editors from complaining about space-tab.
66
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
 
# splitting by setting IFS to empty value.)
68
 
as_nl='
69
 
'
70
 
IFS=" ""        $as_nl"
71
 
 
72
 
# Find who we are.  Look in the path if we contain no directory separator.
73
 
case $0 in
74
 
  *[\\/]* ) as_myself=$0 ;;
75
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76
 
for as_dir in $PATH
77
 
do
78
 
  IFS=$as_save_IFS
79
 
  test -z "$as_dir" && as_dir=.
80
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
81
 
done
82
 
IFS=$as_save_IFS
83
 
 
84
 
     ;;
85
 
esac
86
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
 
# in which case we are not to be found in the path.
88
 
if test "x$as_myself" = x; then
89
 
  as_myself=$0
90
 
fi
91
 
if test ! -f "$as_myself"; then
92
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93
 
  { (exit 1); exit 1; }
94
 
fi
95
 
 
96
 
# Work around bugs in pre-3.0 UWIN ksh.
97
 
for as_var in ENV MAIL MAILPATH
98
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
99
 
done
100
 
PS1='$ '
101
 
PS2='> '
102
 
PS4='+ '
103
 
 
104
 
# NLS nuisances.
105
 
for as_var in \
106
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
 
  LC_TELEPHONE LC_TIME
109
 
do
110
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
 
    eval $as_var=C; export $as_var
112
 
  else
113
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114
 
  fi
115
 
done
116
 
 
117
 
# Required to use basename.
118
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
120
 
  as_expr=expr
121
 
else
122
 
  as_expr=false
123
 
fi
124
 
 
125
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
126
 
  as_basename=basename
127
 
else
128
 
  as_basename=false
129
 
fi
130
 
 
131
 
 
132
 
# Name of the executable.
133
 
as_me=`$as_basename -- "$0" ||
134
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
 
         X"$0" : 'X\(//\)$' \| \
136
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
137
 
echo X/"$0" |
138
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\/\)$/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          /^X\/\(\/\).*/{
147
 
            s//\1/
148
 
            q
149
 
          }
150
 
          s/.*/./; q'`
151
 
 
152
 
# CDPATH.
153
 
$as_unset CDPATH
154
 
 
155
 
 
156
 
if test "x$CONFIG_SHELL" = x; then
157
 
  if (eval ":") 2>/dev/null; then
158
 
  as_have_required=yes
159
 
else
160
 
  as_have_required=no
161
 
fi
162
 
 
163
 
  if test $as_have_required = yes &&     (eval ":
164
 
(as_func_return () {
165
 
  (exit \$1)
166
 
}
167
 
as_func_success () {
168
 
  as_func_return 0
169
 
}
170
 
as_func_failure () {
171
 
  as_func_return 1
172
 
}
173
 
as_func_ret_success () {
174
 
  return 0
175
 
}
176
 
as_func_ret_failure () {
177
 
  return 1
178
 
}
179
 
 
180
 
exitcode=0
181
 
if as_func_success; then
182
 
  :
183
 
else
184
 
  exitcode=1
185
 
  echo as_func_success failed.
186
 
fi
187
 
 
188
 
if as_func_failure; then
189
 
  exitcode=1
190
 
  echo as_func_failure succeeded.
191
 
fi
192
 
 
193
 
if as_func_ret_success; then
194
 
  :
195
 
else
196
 
  exitcode=1
197
 
  echo as_func_ret_success failed.
198
 
fi
199
 
 
200
 
if as_func_ret_failure; then
201
 
  exitcode=1
202
 
  echo as_func_ret_failure succeeded.
203
 
fi
204
 
 
205
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206
 
  :
207
 
else
208
 
  exitcode=1
209
 
  echo positional parameters were not saved.
210
 
fi
211
 
 
212
 
test \$exitcode = 0) || { (exit 1); exit 1; }
213
 
 
214
 
(
215
 
  as_lineno_1=\$LINENO
216
 
  as_lineno_2=\$LINENO
217
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
 
") 2> /dev/null; then
220
 
  :
221
 
else
222
 
  as_candidate_shells=
223
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
 
do
226
 
  IFS=$as_save_IFS
227
 
  test -z "$as_dir" && as_dir=.
228
 
  case $as_dir in
229
 
         /*)
230
 
           for as_base in sh bash ksh sh5; do
231
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
232
 
           done;;
233
 
       esac
234
 
done
235
 
IFS=$as_save_IFS
236
 
 
237
 
 
238
 
      for as_shell in $as_candidate_shells $SHELL; do
239
 
         # Try only shells that exist, to save several forks.
240
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
242
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
 
  emulate sh
244
 
  NULLCMD=:
245
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
 
  # is contrary to our usage.  Disable this feature.
247
 
  alias -g '${1+"$@"}'='"$@"'
248
 
  setopt NO_GLOB_SUBST
249
 
else
250
 
  case `(set -o) 2>/dev/null` in
251
 
  *posix*) set -o posix ;;
252
 
esac
253
 
 
254
 
fi
255
 
 
256
 
 
257
 
:
258
 
_ASEOF
259
 
}; then
260
 
  CONFIG_SHELL=$as_shell
261
 
               as_have_required=yes
262
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
263
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
 
  emulate sh
265
 
  NULLCMD=:
266
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
 
  # is contrary to our usage.  Disable this feature.
268
 
  alias -g '${1+"$@"}'='"$@"'
269
 
  setopt NO_GLOB_SUBST
270
 
else
271
 
  case `(set -o) 2>/dev/null` in
272
 
  *posix*) set -o posix ;;
273
 
esac
274
 
 
275
 
fi
276
 
 
277
 
 
278
 
:
279
 
(as_func_return () {
280
 
  (exit $1)
281
 
}
282
 
as_func_success () {
283
 
  as_func_return 0
284
 
}
285
 
as_func_failure () {
286
 
  as_func_return 1
287
 
}
288
 
as_func_ret_success () {
289
 
  return 0
290
 
}
291
 
as_func_ret_failure () {
292
 
  return 1
293
 
}
294
 
 
295
 
exitcode=0
296
 
if as_func_success; then
297
 
  :
298
 
else
299
 
  exitcode=1
300
 
  echo as_func_success failed.
301
 
fi
302
 
 
303
 
if as_func_failure; then
304
 
  exitcode=1
305
 
  echo as_func_failure succeeded.
306
 
fi
307
 
 
308
 
if as_func_ret_success; then
309
 
  :
310
 
else
311
 
  exitcode=1
312
 
  echo as_func_ret_success failed.
313
 
fi
314
 
 
315
 
if as_func_ret_failure; then
316
 
  exitcode=1
317
 
  echo as_func_ret_failure succeeded.
318
 
fi
319
 
 
320
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
321
 
  :
322
 
else
323
 
  exitcode=1
324
 
  echo positional parameters were not saved.
325
 
fi
326
 
 
327
 
test $exitcode = 0) || { (exit 1); exit 1; }
328
 
 
329
 
(
330
 
  as_lineno_1=$LINENO
331
 
  as_lineno_2=$LINENO
332
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
333
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
334
 
 
335
 
_ASEOF
336
 
}; then
337
 
  break
338
 
fi
339
 
 
340
 
fi
341
 
 
342
 
      done
343
 
 
344
 
      if test "x$CONFIG_SHELL" != x; then
345
 
  for as_var in BASH_ENV ENV
346
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
 
        done
348
 
        export CONFIG_SHELL
349
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
350
 
fi
351
 
 
352
 
 
353
 
    if test $as_have_required = no; then
354
 
  echo This script requires a shell more modern than all the
355
 
      echo shells that I found on your system.  Please install a
356
 
      echo modern shell, or manually run the script under such a
357
 
      echo shell if you do have one.
358
 
      { (exit 1); exit 1; }
359
 
fi
360
 
 
361
 
 
362
 
fi
363
 
 
364
 
fi
365
 
 
366
 
 
367
 
 
368
 
(eval "as_func_return () {
369
 
  (exit \$1)
370
 
}
371
 
as_func_success () {
372
 
  as_func_return 0
373
 
}
374
 
as_func_failure () {
375
 
  as_func_return 1
376
 
}
377
 
as_func_ret_success () {
378
 
  return 0
379
 
}
380
 
as_func_ret_failure () {
381
 
  return 1
382
 
}
383
 
 
384
 
exitcode=0
385
 
if as_func_success; then
386
 
  :
387
 
else
388
 
  exitcode=1
389
 
  echo as_func_success failed.
390
 
fi
391
 
 
392
 
if as_func_failure; then
393
 
  exitcode=1
394
 
  echo as_func_failure succeeded.
395
 
fi
396
 
 
397
 
if as_func_ret_success; then
398
 
  :
399
 
else
400
 
  exitcode=1
401
 
  echo as_func_ret_success failed.
402
 
fi
403
 
 
404
 
if as_func_ret_failure; then
405
 
  exitcode=1
406
 
  echo as_func_ret_failure succeeded.
407
 
fi
408
 
 
409
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
410
 
  :
411
 
else
412
 
  exitcode=1
413
 
  echo positional parameters were not saved.
414
 
fi
415
 
 
416
 
test \$exitcode = 0") || {
417
 
  echo No shell found that supports shell functions.
418
 
  echo Please tell autoconf@gnu.org about your system,
419
 
  echo including any error possibly output before this
420
 
  echo message
421
 
}
422
 
 
423
 
 
424
 
 
425
 
  as_lineno_1=$LINENO
426
 
  as_lineno_2=$LINENO
427
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
428
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
429
 
 
430
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
432
 
  # line-number line after each line using $LINENO; the second 'sed'
433
 
  # does the real work.  The second script uses 'N' to pair each
434
 
  # line-number line with the line containing $LINENO, and appends
435
 
  # trailing '-' during substitution so that $LINENO is not a special
436
 
  # case at line end.
437
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
439
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
440
 
  sed -n '
441
 
    p
442
 
    /[$]LINENO/=
443
 
  ' <$as_myself |
444
 
    sed '
445
 
      s/[$]LINENO.*/&-/
446
 
      t lineno
447
 
      b
448
 
      :lineno
449
 
      N
450
 
      :loop
451
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452
 
      t loop
453
 
      s/-\n.*//
454
 
    ' >$as_me.lineno &&
455
 
  chmod +x "$as_me.lineno" ||
456
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
 
   { (exit 1); exit 1; }; }
458
 
 
459
 
  # Don't try to exec as it changes $[0], causing all sort of problems
460
 
  # (the dirname of $[0] is not the place where we might find the
461
 
  # original and so on.  Autoconf is especially sensitive to this).
462
 
  . "./$as_me.lineno"
463
 
  # Exit status is that of the last command.
464
 
  exit
465
 
}
466
 
 
467
 
 
468
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469
 
  as_dirname=dirname
470
 
else
471
 
  as_dirname=false
472
 
fi
473
 
 
474
 
ECHO_C= ECHO_N= ECHO_T=
475
 
case `echo -n x` in
476
 
-n*)
477
 
  case `echo 'x\c'` in
478
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
479
 
  *)   ECHO_C='\c';;
480
 
  esac;;
481
 
*)
482
 
  ECHO_N='-n';;
483
 
esac
484
 
 
485
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
487
 
  as_expr=expr
488
 
else
489
 
  as_expr=false
490
 
fi
491
 
 
492
 
rm -f conf$$ conf$$.exe conf$$.file
493
 
if test -d conf$$.dir; then
494
 
  rm -f conf$$.dir/conf$$.file
495
 
else
496
 
  rm -f conf$$.dir
497
 
  mkdir conf$$.dir
498
 
fi
499
 
echo >conf$$.file
500
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
501
 
  as_ln_s='ln -s'
502
 
  # ... but there are two gotchas:
503
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
 
  # In both cases, we have to default to `cp -p'.
506
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
507
 
    as_ln_s='cp -p'
508
 
elif ln conf$$.file conf$$ 2>/dev/null; then
509
 
  as_ln_s=ln
510
 
else
511
 
  as_ln_s='cp -p'
512
 
fi
513
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
 
rmdir conf$$.dir 2>/dev/null
515
 
 
516
 
if mkdir -p . 2>/dev/null; then
517
 
  as_mkdir_p=:
518
 
else
519
 
  test -d ./-p && rmdir ./-p
520
 
  as_mkdir_p=false
521
 
fi
522
 
 
523
 
if test -x / >/dev/null 2>&1; then
524
 
  as_test_x='test -x'
525
 
else
526
 
  if ls -dL / >/dev/null 2>&1; then
527
 
    as_ls_L_option=L
528
 
  else
529
 
    as_ls_L_option=
530
 
  fi
531
 
  as_test_x='
532
 
    eval sh -c '\''
533
 
      if test -d "$1"; then
534
 
        test -d "$1/.";
535
 
      else
536
 
        case $1 in
537
 
        -*)set "./$1";;
538
 
        esac;
539
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
 
        ???[sx]*):;;*)false;;esac;fi
541
 
    '\'' sh
542
 
  '
543
 
fi
544
 
as_executable_p=$as_test_x
545
 
 
546
 
# Sed expression to map a string onto a valid CPP name.
547
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
548
 
 
549
 
# Sed expression to map a string onto a valid variable name.
550
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
551
 
 
552
 
 
553
 
 
554
 
 
555
 
# Check that we are running under the correct shell.
556
 
SHELL=${CONFIG_SHELL-/bin/sh}
557
 
 
558
 
case X$ECHO in
559
 
X*--fallback-echo)
560
 
  # Remove one level of quotation (which was required for Make).
561
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
562
 
  ;;
563
 
esac
564
 
 
565
 
echo=${ECHO-echo}
566
 
if test "X$1" = X--no-reexec; then
567
 
  # Discard the --no-reexec flag, and continue.
568
 
  shift
569
 
elif test "X$1" = X--fallback-echo; then
570
 
  # Avoid inline document here, it may be left over
571
 
  :
572
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573
 
  # Yippee, $echo works!
574
 
  :
575
 
else
576
 
  # Restart under the correct shell.
577
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
578
 
fi
579
 
 
580
 
if test "X$1" = X--fallback-echo; then
581
 
  # used as fallback echo
582
 
  shift
583
 
  cat <<EOF
584
 
$*
585
 
EOF
586
 
  exit 0
587
 
fi
588
 
 
589
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
590
 
# if CDPATH is set.
591
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
592
 
 
593
 
if test -z "$ECHO"; then
594
 
if test "X${echo_test_string+set}" != Xset; then
595
 
# find a string as large as possible, as long as the shell can cope with it
596
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
 
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599
 
       echo_test_string=`eval $cmd` &&
600
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
601
 
    then
602
 
      break
603
 
    fi
604
 
  done
605
 
fi
606
 
 
607
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
610
 
  :
611
 
else
612
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
613
 
  # backslashes.  This makes it impossible to quote backslashes using
614
 
  #   echo "$something" | sed 's/\\/\\\\/g'
615
 
  #
616
 
  # So, first we look for a working echo in the user's PATH.
617
 
 
618
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619
 
  for dir in $PATH /usr/ucb; do
620
 
    IFS="$lt_save_ifs"
621
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
625
 
      echo="$dir/echo"
626
 
      break
627
 
    fi
628
 
  done
629
 
  IFS="$lt_save_ifs"
630
 
 
631
 
  if test "X$echo" = Xecho; then
632
 
    # We didn't find a better echo, so look for alternatives.
633
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
636
 
      # This shell has a builtin print -r that does the trick.
637
 
      echo='print -r'
638
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
640
 
      # If we have ksh, try running configure again with it.
641
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642
 
      export ORIGINAL_CONFIG_SHELL
643
 
      CONFIG_SHELL=/bin/ksh
644
 
      export CONFIG_SHELL
645
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646
 
    else
647
 
      # Try using printf.
648
 
      echo='printf %s\n'
649
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
652
 
        # Cool, printf works
653
 
        :
654
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655
 
           test "X$echo_testing_string" = 'X\t' &&
656
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
658
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
 
        export CONFIG_SHELL
660
 
        SHELL="$CONFIG_SHELL"
661
 
        export SHELL
662
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
663
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664
 
           test "X$echo_testing_string" = 'X\t' &&
665
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
667
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
668
 
      else
669
 
        # maybe with a smaller string...
670
 
        prev=:
671
 
 
672
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
674
 
          then
675
 
            break
676
 
          fi
677
 
          prev="$cmd"
678
 
        done
679
 
 
680
 
        if test "$prev" != 'sed 50q "$0"'; then
681
 
          echo_test_string=`eval $prev`
682
 
          export echo_test_string
683
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
 
        else
685
 
          # Oops.  We lost completely, so just stick with echo.
686
 
          echo=echo
687
 
        fi
688
 
      fi
689
 
    fi
690
 
  fi
691
 
fi
692
 
fi
693
 
 
694
 
# Copy echo and quote the copy suitably for passing to libtool from
695
 
# the Makefile, instead of quoting the original, which is used later.
696
 
ECHO=$echo
697
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
699
 
fi
700
 
 
701
 
 
702
 
 
703
 
 
704
 
tagnames=${tagnames+${tagnames},}CXX
705
 
 
706
 
tagnames=${tagnames+${tagnames},}F77
707
 
 
708
 
exec 7<&0 </dev/null 6>&1
709
 
 
710
 
# Name of the host.
711
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712
 
# so uname gets run too.
713
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714
 
 
715
 
#
716
 
# Initializations.
717
 
#
718
 
ac_default_prefix=/usr/local
719
 
ac_clean_files=
720
 
ac_config_libobj_dir=.
721
 
LIBOBJS=
722
 
cross_compiling=no
723
 
subdirs=
724
 
MFLAGS=
725
 
MAKEFLAGS=
726
 
SHELL=${CONFIG_SHELL-/bin/sh}
727
 
 
728
 
# Identity of this package.
729
 
PACKAGE_NAME='DOLFIN'
730
 
PACKAGE_TARNAME='dolfin'
731
 
PACKAGE_VERSION='0.7.2'
732
 
PACKAGE_STRING='DOLFIN 0.7.2'
733
 
PACKAGE_BUGREPORT='http://www.fenics.org/bugzilla/'
734
 
 
735
 
# Factoring default headers for most tests.
736
 
ac_includes_default="\
737
 
#include <stdio.h>
738
 
#ifdef HAVE_SYS_TYPES_H
739
 
# include <sys/types.h>
740
 
#endif
741
 
#ifdef HAVE_SYS_STAT_H
742
 
# include <sys/stat.h>
743
 
#endif
744
 
#ifdef STDC_HEADERS
745
 
# include <stdlib.h>
746
 
# include <stddef.h>
747
 
#else
748
 
# ifdef HAVE_STDLIB_H
749
 
#  include <stdlib.h>
750
 
# endif
751
 
#endif
752
 
#ifdef HAVE_STRING_H
753
 
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754
 
#  include <memory.h>
755
 
# endif
756
 
# include <string.h>
757
 
#endif
758
 
#ifdef HAVE_STRINGS_H
759
 
# include <strings.h>
760
 
#endif
761
 
#ifdef HAVE_INTTYPES_H
762
 
# include <inttypes.h>
763
 
#endif
764
 
#ifdef HAVE_STDINT_H
765
 
# include <stdint.h>
766
 
#endif
767
 
#ifdef HAVE_UNISTD_H
768
 
# include <unistd.h>
769
 
#endif"
770
 
 
771
 
ac_subst_vars='SHELL
772
 
PATH_SEPARATOR
773
 
PACKAGE_NAME
774
 
PACKAGE_TARNAME
775
 
PACKAGE_VERSION
776
 
PACKAGE_STRING
777
 
PACKAGE_BUGREPORT
778
 
exec_prefix
779
 
prefix
780
 
program_transform_name
781
 
bindir
782
 
sbindir
783
 
libexecdir
784
 
datarootdir
785
 
datadir
786
 
sysconfdir
787
 
sharedstatedir
788
 
localstatedir
789
 
includedir
790
 
oldincludedir
791
 
docdir
792
 
infodir
793
 
htmldir
794
 
dvidir
795
 
pdfdir
796
 
psdir
797
 
libdir
798
 
localedir
799
 
mandir
800
 
DEFS
801
 
ECHO_C
802
 
ECHO_N
803
 
ECHO_T
804
 
LIBS
805
 
build_alias
806
 
host_alias
807
 
target_alias
808
 
INSTALL_PROGRAM
809
 
INSTALL_SCRIPT
810
 
INSTALL_DATA
811
 
am__isrc
812
 
CYGPATH_W
813
 
PACKAGE
814
 
VERSION
815
 
ACLOCAL
816
 
AUTOCONF
817
 
AUTOMAKE
818
 
AUTOHEADER
819
 
MAKEINFO
820
 
install_sh
821
 
STRIP
822
 
INSTALL_STRIP_PROGRAM
823
 
mkdir_p
824
 
AWK
825
 
SET_MAKE
826
 
am__leading_dot
827
 
AMTAR
828
 
am__tar
829
 
am__untar
830
 
MAINTAINER_MODE_TRUE
831
 
MAINTAINER_MODE_FALSE
832
 
MAINT
833
 
CXX
834
 
CXXFLAGS
835
 
LDFLAGS
836
 
CPPFLAGS
837
 
ac_ct_CXX
838
 
EXEEXT
839
 
OBJEXT
840
 
DEPDIR
841
 
am__include
842
 
am__quote
843
 
AMDEP_TRUE
844
 
AMDEP_FALSE
845
 
AMDEPBACKSLASH
846
 
CXXDEPMODE
847
 
am__fastdepCXX_TRUE
848
 
am__fastdepCXX_FALSE
849
 
CC
850
 
CFLAGS
851
 
ac_ct_CC
852
 
CCDEPMODE
853
 
am__fastdepCC_TRUE
854
 
am__fastdepCC_FALSE
855
 
LN_S
856
 
CXXCPP
857
 
GREP
858
 
EGREP
859
 
libtool_found
860
 
build
861
 
build_cpu
862
 
build_vendor
863
 
build_os
864
 
host
865
 
host_cpu
866
 
host_vendor
867
 
host_os
868
 
ECHO
869
 
AR
870
 
RANLIB
871
 
CPP
872
 
F77
873
 
FFLAGS
874
 
ac_ct_F77
875
 
LIBTOOL
876
 
XML2_CONFIG
877
 
XML_CPPFLAGS
878
 
XML_LIBS
879
 
BOOST_CPPFLAGS
880
 
BOOST_LDFLAGS
881
 
PKG_CONFIG
882
 
GLIB_CFLAGS
883
 
GLIB_LIBS
884
 
GTS_CFLAGS
885
 
GTS_LIBS
886
 
UFC_CFLAGS
887
 
UFC_LIBS
888
 
PYTHON
889
 
PYTHON_VERSION
890
 
PYTHON_PREFIX
891
 
PYTHON_EXEC_PREFIX
892
 
PYTHON_PLATFORM
893
 
pythondir
894
 
pkgpythondir
895
 
pyexecdir
896
 
pkgpyexecdir
897
 
PYTHON_CPPFLAGS
898
 
PYTHON_LDFLAGS
899
 
PYTHON_SITE_PKG
900
 
PYTHON_EXTRA_LIBS
901
 
swig_found
902
 
SWIG
903
 
SWIG_LIB
904
 
SWIG_PYTHON_OPT
905
 
SWIG_PYTHON_CPPFLAGS
906
 
COMPILE_PYDOLFIN_TRUE
907
 
COMPILE_PYDOLFIN_FALSE
908
 
mpi_found
909
 
EXTERNAL_CFLAGS
910
 
KERNEL_INCLUDE
911
 
KERNEL_CFLAGS
912
 
DOLFIN_CFLAGS
913
 
DOLFIN_DEFINITIONS
914
 
DOLFIN_EXT_LIBS
915
 
DOLFIN_LIBS
916
 
KERNEL_LIBOBJS
917
 
LIBOBJS
918
 
LTLIBOBJS'
919
 
ac_subst_files=''
920
 
      ac_precious_vars='build_alias
921
 
host_alias
922
 
target_alias
923
 
CXX
924
 
CXXFLAGS
925
 
LDFLAGS
926
 
LIBS
927
 
CPPFLAGS
928
 
CCC
929
 
CC
930
 
CFLAGS
931
 
CXXCPP
932
 
CPP
933
 
F77
934
 
FFLAGS
935
 
PKG_CONFIG
936
 
GLIB_CFLAGS
937
 
GLIB_LIBS
938
 
GTS_CFLAGS
939
 
GTS_LIBS
940
 
UFC_CFLAGS
941
 
UFC_LIBS'
942
 
 
943
 
 
944
 
# Initialize some variables set by options.
945
 
ac_init_help=
946
 
ac_init_version=false
947
 
# The variables have the same names as the options, with
948
 
# dashes changed to underlines.
949
 
cache_file=/dev/null
950
 
exec_prefix=NONE
951
 
no_create=
952
 
no_recursion=
953
 
prefix=NONE
954
 
program_prefix=NONE
955
 
program_suffix=NONE
956
 
program_transform_name=s,x,x,
957
 
silent=
958
 
site=
959
 
srcdir=
960
 
verbose=
961
 
x_includes=NONE
962
 
x_libraries=NONE
963
 
 
964
 
# Installation directory options.
965
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
966
 
# and all the variables that are supposed to be based on exec_prefix
967
 
# by default will actually change.
968
 
# Use braces instead of parens because sh, perl, etc. also accept them.
969
 
# (The list follows the same order as the GNU Coding Standards.)
970
 
bindir='${exec_prefix}/bin'
971
 
sbindir='${exec_prefix}/sbin'
972
 
libexecdir='${exec_prefix}/libexec'
973
 
datarootdir='${prefix}/share'
974
 
datadir='${datarootdir}'
975
 
sysconfdir='${prefix}/etc'
976
 
sharedstatedir='${prefix}/com'
977
 
localstatedir='${prefix}/var'
978
 
includedir='${prefix}/include'
979
 
oldincludedir='/usr/include'
980
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981
 
infodir='${datarootdir}/info'
982
 
htmldir='${docdir}'
983
 
dvidir='${docdir}'
984
 
pdfdir='${docdir}'
985
 
psdir='${docdir}'
986
 
libdir='${exec_prefix}/lib'
987
 
localedir='${datarootdir}/locale'
988
 
mandir='${datarootdir}/man'
989
 
 
990
 
ac_prev=
991
 
ac_dashdash=
992
 
for ac_option
993
 
do
994
 
  # If the previous option needs an argument, assign it.
995
 
  if test -n "$ac_prev"; then
996
 
    eval $ac_prev=\$ac_option
997
 
    ac_prev=
998
 
    continue
999
 
  fi
1000
 
 
1001
 
  case $ac_option in
1002
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003
 
  *)    ac_optarg=yes ;;
1004
 
  esac
1005
 
 
1006
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
1007
 
 
1008
 
  case $ac_dashdash$ac_option in
1009
 
  --)
1010
 
    ac_dashdash=yes ;;
1011
 
 
1012
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013
 
    ac_prev=bindir ;;
1014
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015
 
    bindir=$ac_optarg ;;
1016
 
 
1017
 
  -build | --build | --buil | --bui | --bu)
1018
 
    ac_prev=build_alias ;;
1019
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020
 
    build_alias=$ac_optarg ;;
1021
 
 
1022
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
1023
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024
 
    ac_prev=cache_file ;;
1025
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027
 
    cache_file=$ac_optarg ;;
1028
 
 
1029
 
  --config-cache | -C)
1030
 
    cache_file=config.cache ;;
1031
 
 
1032
 
  -datadir | --datadir | --datadi | --datad)
1033
 
    ac_prev=datadir ;;
1034
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035
 
    datadir=$ac_optarg ;;
1036
 
 
1037
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038
 
  | --dataroo | --dataro | --datar)
1039
 
    ac_prev=datarootdir ;;
1040
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042
 
    datarootdir=$ac_optarg ;;
1043
 
 
1044
 
  -disable-* | --disable-*)
1045
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046
 
    # Reject names that are not valid shell variable names.
1047
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1048
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1049
 
   { (exit 1); exit 1; }; }
1050
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1051
 
    eval enable_$ac_feature=no ;;
1052
 
 
1053
 
  -docdir | --docdir | --docdi | --doc | --do)
1054
 
    ac_prev=docdir ;;
1055
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056
 
    docdir=$ac_optarg ;;
1057
 
 
1058
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059
 
    ac_prev=dvidir ;;
1060
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061
 
    dvidir=$ac_optarg ;;
1062
 
 
1063
 
  -enable-* | --enable-*)
1064
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1065
 
    # Reject names that are not valid shell variable names.
1066
 
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1068
 
   { (exit 1); exit 1; }; }
1069
 
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1070
 
    eval enable_$ac_feature=\$ac_optarg ;;
1071
 
 
1072
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1073
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1074
 
  | --exec | --exe | --ex)
1075
 
    ac_prev=exec_prefix ;;
1076
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1077
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1078
 
  | --exec=* | --exe=* | --ex=*)
1079
 
    exec_prefix=$ac_optarg ;;
1080
 
 
1081
 
  -gas | --gas | --ga | --g)
1082
 
    # Obsolete; use --with-gas.
1083
 
    with_gas=yes ;;
1084
 
 
1085
 
  -help | --help | --hel | --he | -h)
1086
 
    ac_init_help=long ;;
1087
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1088
 
    ac_init_help=recursive ;;
1089
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1090
 
    ac_init_help=short ;;
1091
 
 
1092
 
  -host | --host | --hos | --ho)
1093
 
    ac_prev=host_alias ;;
1094
 
  -host=* | --host=* | --hos=* | --ho=*)
1095
 
    host_alias=$ac_optarg ;;
1096
 
 
1097
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1098
 
    ac_prev=htmldir ;;
1099
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1100
 
  | --ht=*)
1101
 
    htmldir=$ac_optarg ;;
1102
 
 
1103
 
  -includedir | --includedir | --includedi | --included | --include \
1104
 
  | --includ | --inclu | --incl | --inc)
1105
 
    ac_prev=includedir ;;
1106
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1107
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
1108
 
    includedir=$ac_optarg ;;
1109
 
 
1110
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
1111
 
    ac_prev=infodir ;;
1112
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1113
 
    infodir=$ac_optarg ;;
1114
 
 
1115
 
  -libdir | --libdir | --libdi | --libd)
1116
 
    ac_prev=libdir ;;
1117
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1118
 
    libdir=$ac_optarg ;;
1119
 
 
1120
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1121
 
  | --libexe | --libex | --libe)
1122
 
    ac_prev=libexecdir ;;
1123
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1124
 
  | --libexe=* | --libex=* | --libe=*)
1125
 
    libexecdir=$ac_optarg ;;
1126
 
 
1127
 
  -localedir | --localedir | --localedi | --localed | --locale)
1128
 
    ac_prev=localedir ;;
1129
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1130
 
    localedir=$ac_optarg ;;
1131
 
 
1132
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1133
 
  | --localstate | --localstat | --localsta | --localst | --locals)
1134
 
    ac_prev=localstatedir ;;
1135
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1136
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1137
 
    localstatedir=$ac_optarg ;;
1138
 
 
1139
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1140
 
    ac_prev=mandir ;;
1141
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1142
 
    mandir=$ac_optarg ;;
1143
 
 
1144
 
  -nfp | --nfp | --nf)
1145
 
    # Obsolete; use --without-fp.
1146
 
    with_fp=no ;;
1147
 
 
1148
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1149
 
  | --no-cr | --no-c | -n)
1150
 
    no_create=yes ;;
1151
 
 
1152
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1153
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1154
 
    no_recursion=yes ;;
1155
 
 
1156
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1157
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1158
 
  | --oldin | --oldi | --old | --ol | --o)
1159
 
    ac_prev=oldincludedir ;;
1160
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1161
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1162
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1163
 
    oldincludedir=$ac_optarg ;;
1164
 
 
1165
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1166
 
    ac_prev=prefix ;;
1167
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1168
 
    prefix=$ac_optarg ;;
1169
 
 
1170
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1171
 
  | --program-pre | --program-pr | --program-p)
1172
 
    ac_prev=program_prefix ;;
1173
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1174
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1175
 
    program_prefix=$ac_optarg ;;
1176
 
 
1177
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1178
 
  | --program-suf | --program-su | --program-s)
1179
 
    ac_prev=program_suffix ;;
1180
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1181
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1182
 
    program_suffix=$ac_optarg ;;
1183
 
 
1184
 
  -program-transform-name | --program-transform-name \
1185
 
  | --program-transform-nam | --program-transform-na \
1186
 
  | --program-transform-n | --program-transform- \
1187
 
  | --program-transform | --program-transfor \
1188
 
  | --program-transfo | --program-transf \
1189
 
  | --program-trans | --program-tran \
1190
 
  | --progr-tra | --program-tr | --program-t)
1191
 
    ac_prev=program_transform_name ;;
1192
 
  -program-transform-name=* | --program-transform-name=* \
1193
 
  | --program-transform-nam=* | --program-transform-na=* \
1194
 
  | --program-transform-n=* | --program-transform-=* \
1195
 
  | --program-transform=* | --program-transfor=* \
1196
 
  | --program-transfo=* | --program-transf=* \
1197
 
  | --program-trans=* | --program-tran=* \
1198
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
1199
 
    program_transform_name=$ac_optarg ;;
1200
 
 
1201
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1202
 
    ac_prev=pdfdir ;;
1203
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1204
 
    pdfdir=$ac_optarg ;;
1205
 
 
1206
 
  -psdir | --psdir | --psdi | --psd | --ps)
1207
 
    ac_prev=psdir ;;
1208
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1209
 
    psdir=$ac_optarg ;;
1210
 
 
1211
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1212
 
  | -silent | --silent | --silen | --sile | --sil)
1213
 
    silent=yes ;;
1214
 
 
1215
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1216
 
    ac_prev=sbindir ;;
1217
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1218
 
  | --sbi=* | --sb=*)
1219
 
    sbindir=$ac_optarg ;;
1220
 
 
1221
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1222
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1223
 
  | --sharedst | --shareds | --shared | --share | --shar \
1224
 
  | --sha | --sh)
1225
 
    ac_prev=sharedstatedir ;;
1226
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1227
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1228
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1229
 
  | --sha=* | --sh=*)
1230
 
    sharedstatedir=$ac_optarg ;;
1231
 
 
1232
 
  -site | --site | --sit)
1233
 
    ac_prev=site ;;
1234
 
  -site=* | --site=* | --sit=*)
1235
 
    site=$ac_optarg ;;
1236
 
 
1237
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1238
 
    ac_prev=srcdir ;;
1239
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1240
 
    srcdir=$ac_optarg ;;
1241
 
 
1242
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1243
 
  | --syscon | --sysco | --sysc | --sys | --sy)
1244
 
    ac_prev=sysconfdir ;;
1245
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1246
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1247
 
    sysconfdir=$ac_optarg ;;
1248
 
 
1249
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
1250
 
    ac_prev=target_alias ;;
1251
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1252
 
    target_alias=$ac_optarg ;;
1253
 
 
1254
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1255
 
    verbose=yes ;;
1256
 
 
1257
 
  -version | --version | --versio | --versi | --vers | -V)
1258
 
    ac_init_version=: ;;
1259
 
 
1260
 
  -with-* | --with-*)
1261
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1262
 
    # Reject names that are not valid shell variable names.
1263
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1264
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1265
 
   { (exit 1); exit 1; }; }
1266
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1267
 
    eval with_$ac_package=\$ac_optarg ;;
1268
 
 
1269
 
  -without-* | --without-*)
1270
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271
 
    # Reject names that are not valid shell variable names.
1272
 
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1274
 
   { (exit 1); exit 1; }; }
1275
 
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1276
 
    eval with_$ac_package=no ;;
1277
 
 
1278
 
  --x)
1279
 
    # Obsolete; use --with-x.
1280
 
    with_x=yes ;;
1281
 
 
1282
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1283
 
  | --x-incl | --x-inc | --x-in | --x-i)
1284
 
    ac_prev=x_includes ;;
1285
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1286
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1287
 
    x_includes=$ac_optarg ;;
1288
 
 
1289
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1290
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1291
 
    ac_prev=x_libraries ;;
1292
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1293
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1294
 
    x_libraries=$ac_optarg ;;
1295
 
 
1296
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
1297
 
Try \`$0 --help' for more information." >&2
1298
 
   { (exit 1); exit 1; }; }
1299
 
    ;;
1300
 
 
1301
 
  *=*)
1302
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1303
 
    # Reject names that are not valid shell variable names.
1304
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1305
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1306
 
   { (exit 1); exit 1; }; }
1307
 
    eval $ac_envvar=\$ac_optarg
1308
 
    export $ac_envvar ;;
1309
 
 
1310
 
  *)
1311
 
    # FIXME: should be removed in autoconf 3.0.
1312
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1313
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1314
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1315
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1316
 
    ;;
1317
 
 
1318
 
  esac
1319
 
done
1320
 
 
1321
 
if test -n "$ac_prev"; then
1322
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1323
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
1324
 
   { (exit 1); exit 1; }; }
1325
 
fi
1326
 
 
1327
 
# Be sure to have absolute directory names.
1328
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1330
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331
 
                libdir localedir mandir
1332
 
do
1333
 
  eval ac_val=\$$ac_var
1334
 
  case $ac_val in
1335
 
    [\\/$]* | ?:[\\/]* )  continue;;
1336
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337
 
  esac
1338
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1339
 
   { (exit 1); exit 1; }; }
1340
 
done
1341
 
 
1342
 
# There might be people who depend on the old broken behavior: `$host'
1343
 
# used to hold the argument of --host etc.
1344
 
# FIXME: To remove some day.
1345
 
build=$build_alias
1346
 
host=$host_alias
1347
 
target=$target_alias
1348
 
 
1349
 
# FIXME: To remove some day.
1350
 
if test "x$host_alias" != x; then
1351
 
  if test "x$build_alias" = x; then
1352
 
    cross_compiling=maybe
1353
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1354
 
    If a cross compiler is detected then cross compile mode will be used." >&2
1355
 
  elif test "x$build_alias" != "x$host_alias"; then
1356
 
    cross_compiling=yes
1357
 
  fi
1358
 
fi
1359
 
 
1360
 
ac_tool_prefix=
1361
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
 
 
1363
 
test "$silent" = yes && exec 6>/dev/null
1364
 
 
1365
 
 
1366
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367
 
ac_ls_di=`ls -di .` &&
1368
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1370
 
   { (exit 1); exit 1; }; }
1371
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1372
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1373
 
   { (exit 1); exit 1; }; }
1374
 
 
1375
 
 
1376
 
# Find the source files, if location was not specified.
1377
 
if test -z "$srcdir"; then
1378
 
  ac_srcdir_defaulted=yes
1379
 
  # Try the directory containing this script, then the parent directory.
1380
 
  ac_confdir=`$as_dirname -- "$0" ||
1381
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1382
 
         X"$0" : 'X\(//\)[^/]' \| \
1383
 
         X"$0" : 'X\(//\)$' \| \
1384
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1385
 
echo X"$0" |
1386
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1387
 
            s//\1/
1388
 
            q
1389
 
          }
1390
 
          /^X\(\/\/\)[^/].*/{
1391
 
            s//\1/
1392
 
            q
1393
 
          }
1394
 
          /^X\(\/\/\)$/{
1395
 
            s//\1/
1396
 
            q
1397
 
          }
1398
 
          /^X\(\/\).*/{
1399
 
            s//\1/
1400
 
            q
1401
 
          }
1402
 
          s/.*/./; q'`
1403
 
  srcdir=$ac_confdir
1404
 
  if test ! -r "$srcdir/$ac_unique_file"; then
1405
 
    srcdir=..
1406
 
  fi
1407
 
else
1408
 
  ac_srcdir_defaulted=no
1409
 
fi
1410
 
if test ! -r "$srcdir/$ac_unique_file"; then
1411
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1412
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1413
 
   { (exit 1); exit 1; }; }
1414
 
fi
1415
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1416
 
ac_abs_confdir=`(
1417
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1418
 
   { (exit 1); exit 1; }; }
1419
 
        pwd)`
1420
 
# When building in place, set srcdir=.
1421
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1422
 
  srcdir=.
1423
 
fi
1424
 
# Remove unnecessary trailing slashes from srcdir.
1425
 
# Double slashes in file names in object file debugging info
1426
 
# mess up M-x gdb in Emacs.
1427
 
case $srcdir in
1428
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1429
 
esac
1430
 
for ac_var in $ac_precious_vars; do
1431
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1432
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1433
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1434
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1435
 
done
1436
 
 
1437
 
#
1438
 
# Report the --help message.
1439
 
#
1440
 
if test "$ac_init_help" = "long"; then
1441
 
  # Omit some internal or obsolete options to make the list less imposing.
1442
 
  # This message is too long to be a string in the A/UX 3.1 sh.
1443
 
  cat <<_ACEOF
1444
 
\`configure' configures DOLFIN 0.7.2 to adapt to many kinds of systems.
1445
 
 
1446
 
Usage: $0 [OPTION]... [VAR=VALUE]...
1447
 
 
1448
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1449
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
1450
 
 
1451
 
Defaults for the options are specified in brackets.
1452
 
 
1453
 
Configuration:
1454
 
  -h, --help              display this help and exit
1455
 
      --help=short        display options specific to this package
1456
 
      --help=recursive    display the short help of all the included packages
1457
 
  -V, --version           display version information and exit
1458
 
  -q, --quiet, --silent   do not print \`checking...' messages
1459
 
      --cache-file=FILE   cache test results in FILE [disabled]
1460
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
1461
 
  -n, --no-create         do not create output files
1462
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1463
 
 
1464
 
Installation directories:
1465
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
1466
 
                          [$ac_default_prefix]
1467
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1468
 
                          [PREFIX]
1469
 
 
1470
 
By default, \`make install' will install all the files in
1471
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1472
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1473
 
for instance \`--prefix=\$HOME'.
1474
 
 
1475
 
For better control, use the options below.
1476
 
 
1477
 
Fine tuning of the installation directories:
1478
 
  --bindir=DIR           user executables [EPREFIX/bin]
1479
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1480
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
1481
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1482
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1483
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1484
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1485
 
  --includedir=DIR       C header files [PREFIX/include]
1486
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1487
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1488
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1489
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1490
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1491
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1492
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/dolfin]
1493
 
  --htmldir=DIR          html documentation [DOCDIR]
1494
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1495
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1496
 
  --psdir=DIR            ps documentation [DOCDIR]
1497
 
_ACEOF
1498
 
 
1499
 
  cat <<\_ACEOF
1500
 
 
1501
 
Program names:
1502
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1503
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1504
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1505
 
 
1506
 
System types:
1507
 
  --build=BUILD     configure for building on BUILD [guessed]
1508
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1509
 
_ACEOF
1510
 
fi
1511
 
 
1512
 
if test -n "$ac_init_help"; then
1513
 
  case $ac_init_help in
1514
 
     short | recursive ) echo "Configuration of DOLFIN 0.7.2:";;
1515
 
   esac
1516
 
  cat <<\_ACEOF
1517
 
 
1518
 
Optional Features:
1519
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1520
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1521
 
  --enable-maintainer-mode  enable make rules and dependencies not useful
1522
 
                          (and sometimes confusing) to the casual installer
1523
 
  --enable-debug          Turn on debugging and warnings
1524
 
  --enable-debug-ublas    Turn on extra debugging for uBlas, only works with
1525
 
                          --enable-debug
1526
 
  --enable-optimization   Turn on optimizations
1527
 
  --disable-pydolfin      Disable compilation of PyDOLFIN, the DOLFIN Python
1528
 
                          interface
1529
 
  --enable-petsc          Compile with support for PETSc linear algebra
1530
 
  --enable-mpi            Compile with support for MPI
1531
 
  --enable-scotch         Compile with support for SCOTCH graph partitioning
1532
 
  --disable-dependency-tracking  speeds up one-time build
1533
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1534
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1535
 
  --enable-static[=PKGS]  build static libraries [default=yes]
1536
 
  --enable-fast-install[=PKGS]
1537
 
                          optimize for fast installation [default=yes]
1538
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1539
 
  --disable-xmltest       Do not try to compile and run a test LIBXML program
1540
 
 
1541
 
Optional Packages:
1542
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1543
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1544
 
  --with-petsc-dir=<path> Specify path to PETSc
1545
 
  --with-umfpack-include=<path>
1546
 
                          Specify path to umfpack include files
1547
 
  --with-umfpack-lib=<path>
1548
 
                          Specify path to umfpack library
1549
 
  --with-amd-lib=<path>   Specify path to amd library (part of umfpack)
1550
 
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1551
 
  --with-pic              try to use only PIC/non-PIC objects [default=use
1552
 
                          both]
1553
 
  --with-tags[=TAGS]      include additional configurations [automatic]
1554
 
  --with-xml-prefix=PFX   Prefix where libxml is installed (optional)
1555
 
  --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
1556
 
  --with-boost[=DIR]      it is possible to specify the root directory for
1557
 
                          boost (optional)
1558
 
 
1559
 
Some influential environment variables:
1560
 
  CXX         C++ compiler command
1561
 
  CXXFLAGS    C++ compiler flags
1562
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1563
 
              nonstandard directory <lib dir>
1564
 
  LIBS        libraries to pass to the linker, e.g. -l<library>
1565
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1566
 
              you have headers in a nonstandard directory <include dir>
1567
 
  CC          C compiler command
1568
 
  CFLAGS      C compiler flags
1569
 
  CXXCPP      C++ preprocessor
1570
 
  CPP         C preprocessor
1571
 
  F77         Fortran 77 compiler command
1572
 
  FFLAGS      Fortran 77 compiler flags
1573
 
  PKG_CONFIG  path to pkg-config utility
1574
 
  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1575
 
  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1576
 
  GTS_CFLAGS  C compiler flags for GTS, overriding pkg-config
1577
 
  GTS_LIBS    linker flags for GTS, overriding pkg-config
1578
 
  UFC_CFLAGS  C compiler flags for UFC, overriding pkg-config
1579
 
  UFC_LIBS    linker flags for UFC, overriding pkg-config
1580
 
 
1581
 
Use these variables to override the choices made by `configure' or to help
1582
 
it to find libraries and programs with nonstandard names/locations.
1583
 
 
1584
 
Report bugs to <http://www.fenics.org/bugzilla/>.
1585
 
_ACEOF
1586
 
ac_status=$?
1587
 
fi
1588
 
 
1589
 
if test "$ac_init_help" = "recursive"; then
1590
 
  # If there are subdirs, report their specific --help.
1591
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1592
 
    test -d "$ac_dir" || continue
1593
 
    ac_builddir=.
1594
 
 
1595
 
case "$ac_dir" in
1596
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597
 
*)
1598
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1599
 
  # A ".." for each directory in $ac_dir_suffix.
1600
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1601
 
  case $ac_top_builddir_sub in
1602
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1604
 
  esac ;;
1605
 
esac
1606
 
ac_abs_top_builddir=$ac_pwd
1607
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1608
 
# for backward compatibility:
1609
 
ac_top_builddir=$ac_top_build_prefix
1610
 
 
1611
 
case $srcdir in
1612
 
  .)  # We are building in place.
1613
 
    ac_srcdir=.
1614
 
    ac_top_srcdir=$ac_top_builddir_sub
1615
 
    ac_abs_top_srcdir=$ac_pwd ;;
1616
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
1617
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1618
 
    ac_top_srcdir=$srcdir
1619
 
    ac_abs_top_srcdir=$srcdir ;;
1620
 
  *) # Relative name.
1621
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1622
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1623
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1624
 
esac
1625
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1626
 
 
1627
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1628
 
    # Check for guested configure.
1629
 
    if test -f "$ac_srcdir/configure.gnu"; then
1630
 
      echo &&
1631
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1632
 
    elif test -f "$ac_srcdir/configure"; then
1633
 
      echo &&
1634
 
      $SHELL "$ac_srcdir/configure" --help=recursive
1635
 
    else
1636
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1637
 
    fi || ac_status=$?
1638
 
    cd "$ac_pwd" || { ac_status=$?; break; }
1639
 
  done
1640
 
fi
1641
 
 
1642
 
test -n "$ac_init_help" && exit $ac_status
1643
 
if $ac_init_version; then
1644
 
  cat <<\_ACEOF
1645
 
DOLFIN configure 0.7.2
1646
 
generated by GNU Autoconf 2.61
1647
 
 
1648
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1649
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1650
 
This configure script is free software; the Free Software Foundation
1651
 
gives unlimited permission to copy, distribute and modify it.
1652
 
_ACEOF
1653
 
  exit
1654
 
fi
1655
 
cat >config.log <<_ACEOF
1656
 
This file contains any messages produced by compilers while
1657
 
running configure, to aid debugging if configure makes a mistake.
1658
 
 
1659
 
It was created by DOLFIN $as_me 0.7.2, which was
1660
 
generated by GNU Autoconf 2.61.  Invocation command line was
1661
 
 
1662
 
  $ $0 $@
1663
 
 
1664
 
_ACEOF
1665
 
exec 5>>config.log
1666
 
{
1667
 
cat <<_ASUNAME
1668
 
## --------- ##
1669
 
## Platform. ##
1670
 
## --------- ##
1671
 
 
1672
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1673
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1674
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1675
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1676
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1677
 
 
1678
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1679
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1680
 
 
1681
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1682
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1683
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1684
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1685
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1686
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1687
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1688
 
 
1689
 
_ASUNAME
1690
 
 
1691
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1692
 
for as_dir in $PATH
1693
 
do
1694
 
  IFS=$as_save_IFS
1695
 
  test -z "$as_dir" && as_dir=.
1696
 
  echo "PATH: $as_dir"
1697
 
done
1698
 
IFS=$as_save_IFS
1699
 
 
1700
 
} >&5
1701
 
 
1702
 
cat >&5 <<_ACEOF
1703
 
 
1704
 
 
1705
 
## ----------- ##
1706
 
## Core tests. ##
1707
 
## ----------- ##
1708
 
 
1709
 
_ACEOF
1710
 
 
1711
 
 
1712
 
# Keep a trace of the command line.
1713
 
# Strip out --no-create and --no-recursion so they do not pile up.
1714
 
# Strip out --silent because we don't want to record it for future runs.
1715
 
# Also quote any args containing shell meta-characters.
1716
 
# Make two passes to allow for proper duplicate-argument suppression.
1717
 
ac_configure_args=
1718
 
ac_configure_args0=
1719
 
ac_configure_args1=
1720
 
ac_must_keep_next=false
1721
 
for ac_pass in 1 2
1722
 
do
1723
 
  for ac_arg
1724
 
  do
1725
 
    case $ac_arg in
1726
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1727
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1728
 
    | -silent | --silent | --silen | --sile | --sil)
1729
 
      continue ;;
1730
 
    *\'*)
1731
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1732
 
    esac
1733
 
    case $ac_pass in
1734
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1735
 
    2)
1736
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1737
 
      if test $ac_must_keep_next = true; then
1738
 
        ac_must_keep_next=false # Got value, back to normal.
1739
 
      else
1740
 
        case $ac_arg in
1741
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1742
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1743
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1744
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1745
 
            case "$ac_configure_args0 " in
1746
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1747
 
            esac
1748
 
            ;;
1749
 
          -* ) ac_must_keep_next=true ;;
1750
 
        esac
1751
 
      fi
1752
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1753
 
      ;;
1754
 
    esac
1755
 
  done
1756
 
done
1757
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1758
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1759
 
 
1760
 
# When interrupted or exit'd, cleanup temporary files, and complete
1761
 
# config.log.  We remove comments because anyway the quotes in there
1762
 
# would cause problems or look ugly.
1763
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1764
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1765
 
trap 'exit_status=$?
1766
 
  # Save into config.log some information that might help in debugging.
1767
 
  {
1768
 
    echo
1769
 
 
1770
 
    cat <<\_ASBOX
1771
 
## ---------------- ##
1772
 
## Cache variables. ##
1773
 
## ---------------- ##
1774
 
_ASBOX
1775
 
    echo
1776
 
    # The following way of writing the cache mishandles newlines in values,
1777
 
(
1778
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1779
 
    eval ac_val=\$$ac_var
1780
 
    case $ac_val in #(
1781
 
    *${as_nl}*)
1782
 
      case $ac_var in #(
1783
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1784
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1785
 
      esac
1786
 
      case $ac_var in #(
1787
 
      _ | IFS | as_nl) ;; #(
1788
 
      *) $as_unset $ac_var ;;
1789
 
      esac ;;
1790
 
    esac
1791
 
  done
1792
 
  (set) 2>&1 |
1793
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1794
 
    *${as_nl}ac_space=\ *)
1795
 
      sed -n \
1796
 
        "s/'\''/'\''\\\\'\'''\''/g;
1797
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1798
 
      ;; #(
1799
 
    *)
1800
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1801
 
      ;;
1802
 
    esac |
1803
 
    sort
1804
 
)
1805
 
    echo
1806
 
 
1807
 
    cat <<\_ASBOX
1808
 
## ----------------- ##
1809
 
## Output variables. ##
1810
 
## ----------------- ##
1811
 
_ASBOX
1812
 
    echo
1813
 
    for ac_var in $ac_subst_vars
1814
 
    do
1815
 
      eval ac_val=\$$ac_var
1816
 
      case $ac_val in
1817
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818
 
      esac
1819
 
      echo "$ac_var='\''$ac_val'\''"
1820
 
    done | sort
1821
 
    echo
1822
 
 
1823
 
    if test -n "$ac_subst_files"; then
1824
 
      cat <<\_ASBOX
1825
 
## ------------------- ##
1826
 
## File substitutions. ##
1827
 
## ------------------- ##
1828
 
_ASBOX
1829
 
      echo
1830
 
      for ac_var in $ac_subst_files
1831
 
      do
1832
 
        eval ac_val=\$$ac_var
1833
 
        case $ac_val in
1834
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835
 
        esac
1836
 
        echo "$ac_var='\''$ac_val'\''"
1837
 
      done | sort
1838
 
      echo
1839
 
    fi
1840
 
 
1841
 
    if test -s confdefs.h; then
1842
 
      cat <<\_ASBOX
1843
 
## ----------- ##
1844
 
## confdefs.h. ##
1845
 
## ----------- ##
1846
 
_ASBOX
1847
 
      echo
1848
 
      cat confdefs.h
1849
 
      echo
1850
 
    fi
1851
 
    test "$ac_signal" != 0 &&
1852
 
      echo "$as_me: caught signal $ac_signal"
1853
 
    echo "$as_me: exit $exit_status"
1854
 
  } >&5
1855
 
  rm -f core *.core core.conftest.* &&
1856
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1857
 
    exit $exit_status
1858
 
' 0
1859
 
for ac_signal in 1 2 13 15; do
1860
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1861
 
done
1862
 
ac_signal=0
1863
 
 
1864
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1865
 
rm -f -r conftest* confdefs.h
1866
 
 
1867
 
# Predefined preprocessor variables.
1868
 
 
1869
 
cat >>confdefs.h <<_ACEOF
1870
 
#define PACKAGE_NAME "$PACKAGE_NAME"
1871
 
_ACEOF
1872
 
 
1873
 
 
1874
 
cat >>confdefs.h <<_ACEOF
1875
 
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876
 
_ACEOF
1877
 
 
1878
 
 
1879
 
cat >>confdefs.h <<_ACEOF
1880
 
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1881
 
_ACEOF
1882
 
 
1883
 
 
1884
 
cat >>confdefs.h <<_ACEOF
1885
 
#define PACKAGE_STRING "$PACKAGE_STRING"
1886
 
_ACEOF
1887
 
 
1888
 
 
1889
 
cat >>confdefs.h <<_ACEOF
1890
 
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1891
 
_ACEOF
1892
 
 
1893
 
 
1894
 
# Let the site file select an alternate cache file if it wants to.
1895
 
# Prefer explicitly selected file to automatically selected ones.
1896
 
if test -n "$CONFIG_SITE"; then
1897
 
  set x "$CONFIG_SITE"
1898
 
elif test "x$prefix" != xNONE; then
1899
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1900
 
else
1901
 
  set x "$ac_default_prefix/share/config.site" \
1902
 
        "$ac_default_prefix/etc/config.site"
1903
 
fi
1904
 
shift
1905
 
for ac_site_file
1906
 
do
1907
 
  if test -r "$ac_site_file"; then
1908
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1909
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1910
 
    sed 's/^/| /' "$ac_site_file" >&5
1911
 
    . "$ac_site_file"
1912
 
  fi
1913
 
done
1914
 
 
1915
 
if test -r "$cache_file"; then
1916
 
  # Some versions of bash will fail to source /dev/null (special
1917
 
  # files actually), so we avoid doing that.
1918
 
  if test -f "$cache_file"; then
1919
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1920
 
echo "$as_me: loading cache $cache_file" >&6;}
1921
 
    case $cache_file in
1922
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1923
 
      *)                      . "./$cache_file";;
1924
 
    esac
1925
 
  fi
1926
 
else
1927
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1928
 
echo "$as_me: creating cache $cache_file" >&6;}
1929
 
  >$cache_file
1930
 
fi
1931
 
 
1932
 
# Check that the precious variables saved in the cache have kept the same
1933
 
# value.
1934
 
ac_cache_corrupted=false
1935
 
for ac_var in $ac_precious_vars; do
1936
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1937
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1938
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1939
 
  eval ac_new_val=\$ac_env_${ac_var}_value
1940
 
  case $ac_old_set,$ac_new_set in
1941
 
    set,)
1942
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1943
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1944
 
      ac_cache_corrupted=: ;;
1945
 
    ,set)
1946
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1947
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1948
 
      ac_cache_corrupted=: ;;
1949
 
    ,);;
1950
 
    *)
1951
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1952
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1953
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1954
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1955
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1956
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1957
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1958
 
        ac_cache_corrupted=:
1959
 
      fi;;
1960
 
  esac
1961
 
  # Pass precious variables to config.status.
1962
 
  if test "$ac_new_set" = set; then
1963
 
    case $ac_new_val in
1964
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1965
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1966
 
    esac
1967
 
    case " $ac_configure_args " in
1968
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1969
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1970
 
    esac
1971
 
  fi
1972
 
done
1973
 
if $ac_cache_corrupted; then
1974
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1975
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1976
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1977
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1978
 
   { (exit 1); exit 1; }; }
1979
 
fi
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
 
 
2005
 
ac_ext=c
2006
 
ac_cpp='$CPP $CPPFLAGS'
2007
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010
 
 
2011
 
 
2012
 
 
2013
 
# Init automake
2014
 
am__api_version='1.10'
2015
 
 
2016
 
ac_aux_dir=
2017
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2018
 
  if test -f "$ac_dir/install-sh"; then
2019
 
    ac_aux_dir=$ac_dir
2020
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
2021
 
    break
2022
 
  elif test -f "$ac_dir/install.sh"; then
2023
 
    ac_aux_dir=$ac_dir
2024
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
2025
 
    break
2026
 
  elif test -f "$ac_dir/shtool"; then
2027
 
    ac_aux_dir=$ac_dir
2028
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
2029
 
    break
2030
 
  fi
2031
 
done
2032
 
if test -z "$ac_aux_dir"; then
2033
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2034
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2035
 
   { (exit 1); exit 1; }; }
2036
 
fi
2037
 
 
2038
 
# These three variables are undocumented and unsupported,
2039
 
# and are intended to be withdrawn in a future Autoconf release.
2040
 
# They can cause serious problems if a builder's source tree is in a directory
2041
 
# whose full name contains unusual characters.
2042
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2043
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2044
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2045
 
 
2046
 
 
2047
 
# Find a good install program.  We prefer a C program (faster),
2048
 
# so one script is as good as another.  But avoid the broken or
2049
 
# incompatible versions:
2050
 
# SysV /etc/install, /usr/sbin/install
2051
 
# SunOS /usr/etc/install
2052
 
# IRIX /sbin/install
2053
 
# AIX /bin/install
2054
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
2055
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2056
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2057
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2058
 
# OS/2's system install, which has a completely different semantic
2059
 
# ./install, which can be erroneously created by make from ./install.sh.
2060
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2061
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2062
 
if test -z "$INSTALL"; then
2063
 
if test "${ac_cv_path_install+set}" = set; then
2064
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2065
 
else
2066
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2067
 
for as_dir in $PATH
2068
 
do
2069
 
  IFS=$as_save_IFS
2070
 
  test -z "$as_dir" && as_dir=.
2071
 
  # Account for people who put trailing slashes in PATH elements.
2072
 
case $as_dir/ in
2073
 
  ./ | .// | /cC/* | \
2074
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2075
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2076
 
  /usr/ucb/* ) ;;
2077
 
  *)
2078
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
2079
 
    # Don't use installbsd from OSF since it installs stuff as root
2080
 
    # by default.
2081
 
    for ac_prog in ginstall scoinst install; do
2082
 
      for ac_exec_ext in '' $ac_executable_extensions; do
2083
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2084
 
          if test $ac_prog = install &&
2085
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2086
 
            # AIX install.  It has an incompatible calling convention.
2087
 
            :
2088
 
          elif test $ac_prog = install &&
2089
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2090
 
            # program-specific install script used by HP pwplus--don't use.
2091
 
            :
2092
 
          else
2093
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2094
 
            break 3
2095
 
          fi
2096
 
        fi
2097
 
      done
2098
 
    done
2099
 
    ;;
2100
 
esac
2101
 
done
2102
 
IFS=$as_save_IFS
2103
 
 
2104
 
 
2105
 
fi
2106
 
  if test "${ac_cv_path_install+set}" = set; then
2107
 
    INSTALL=$ac_cv_path_install
2108
 
  else
2109
 
    # As a last resort, use the slow shell script.  Don't cache a
2110
 
    # value for INSTALL within a source directory, because that will
2111
 
    # break other packages using the cache if that directory is
2112
 
    # removed, or if the value is a relative name.
2113
 
    INSTALL=$ac_install_sh
2114
 
  fi
2115
 
fi
2116
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2117
 
echo "${ECHO_T}$INSTALL" >&6; }
2118
 
 
2119
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2120
 
# It thinks the first close brace ends the variable substitution.
2121
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2122
 
 
2123
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2124
 
 
2125
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2126
 
 
2127
 
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2128
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2129
 
# Just in case
2130
 
sleep 1
2131
 
echo timestamp > conftest.file
2132
 
# Do `set' in a subshell so we don't clobber the current shell's
2133
 
# arguments.  Must try -L first in case configure is actually a
2134
 
# symlink; some systems play weird games with the mod time of symlinks
2135
 
# (eg FreeBSD returns the mod time of the symlink's containing
2136
 
# directory).
2137
 
if (
2138
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2139
 
   if test "$*" = "X"; then
2140
 
      # -L didn't work.
2141
 
      set X `ls -t $srcdir/configure conftest.file`
2142
 
   fi
2143
 
   rm -f conftest.file
2144
 
   if test "$*" != "X $srcdir/configure conftest.file" \
2145
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
2146
 
 
2147
 
      # If neither matched, then we have a broken ls.  This can happen
2148
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2149
 
      # broken ls alias from the environment.  This has actually
2150
 
      # happened.  Such a system could not be considered "sane".
2151
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2152
 
alias in your environment" >&5
2153
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2154
 
alias in your environment" >&2;}
2155
 
   { (exit 1); exit 1; }; }
2156
 
   fi
2157
 
 
2158
 
   test "$2" = conftest.file
2159
 
   )
2160
 
then
2161
 
   # Ok.
2162
 
   :
2163
 
else
2164
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2165
 
Check your system clock" >&5
2166
 
echo "$as_me: error: newly created file is older than distributed files!
2167
 
Check your system clock" >&2;}
2168
 
   { (exit 1); exit 1; }; }
2169
 
fi
2170
 
{ echo "$as_me:$LINENO: result: yes" >&5
2171
 
echo "${ECHO_T}yes" >&6; }
2172
 
test "$program_prefix" != NONE &&
2173
 
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2174
 
# Use a double $ so make ignores it.
2175
 
test "$program_suffix" != NONE &&
2176
 
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2177
 
# Double any \ or $.  echo might interpret backslashes.
2178
 
# By default was `s,x,x', remove it if useless.
2179
 
cat <<\_ACEOF >conftest.sed
2180
 
s/[\\$]/&&/g;s/;s,x,x,$//
2181
 
_ACEOF
2182
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2183
 
rm -f conftest.sed
2184
 
 
2185
 
# expand $ac_aux_dir to an absolute path
2186
 
am_aux_dir=`cd $ac_aux_dir && pwd`
2187
 
 
2188
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2189
 
# Use eval to expand $SHELL
2190
 
if eval "$MISSING --run true"; then
2191
 
  am_missing_run="$MISSING --run "
2192
 
else
2193
 
  am_missing_run=
2194
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2195
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2196
 
fi
2197
 
 
2198
 
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2199
 
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2200
 
if test -z "$MKDIR_P"; then
2201
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2202
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2203
 
else
2204
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205
 
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2206
 
do
2207
 
  IFS=$as_save_IFS
2208
 
  test -z "$as_dir" && as_dir=.
2209
 
  for ac_prog in mkdir gmkdir; do
2210
 
         for ac_exec_ext in '' $ac_executable_extensions; do
2211
 
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2212
 
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2213
 
             'mkdir (GNU coreutils) '* | \
2214
 
             'mkdir (coreutils) '* | \
2215
 
             'mkdir (fileutils) '4.1*)
2216
 
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2217
 
               break 3;;
2218
 
           esac
2219
 
         done
2220
 
       done
2221
 
done
2222
 
IFS=$as_save_IFS
2223
 
 
2224
 
fi
2225
 
 
2226
 
  if test "${ac_cv_path_mkdir+set}" = set; then
2227
 
    MKDIR_P="$ac_cv_path_mkdir -p"
2228
 
  else
2229
 
    # As a last resort, use the slow shell script.  Don't cache a
2230
 
    # value for MKDIR_P within a source directory, because that will
2231
 
    # break other packages using the cache if that directory is
2232
 
    # removed, or if the value is a relative name.
2233
 
    test -d ./--version && rmdir ./--version
2234
 
    MKDIR_P="$ac_install_sh -d"
2235
 
  fi
2236
 
fi
2237
 
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2238
 
echo "${ECHO_T}$MKDIR_P" >&6; }
2239
 
 
2240
 
mkdir_p="$MKDIR_P"
2241
 
case $mkdir_p in
2242
 
  [\\/$]* | ?:[\\/]*) ;;
2243
 
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2244
 
esac
2245
 
 
2246
 
for ac_prog in gawk mawk nawk awk
2247
 
do
2248
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2249
 
set dummy $ac_prog; ac_word=$2
2250
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2251
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2252
 
if test "${ac_cv_prog_AWK+set}" = set; then
2253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2254
 
else
2255
 
  if test -n "$AWK"; then
2256
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2257
 
else
2258
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2259
 
for as_dir in $PATH
2260
 
do
2261
 
  IFS=$as_save_IFS
2262
 
  test -z "$as_dir" && as_dir=.
2263
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2264
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2265
 
    ac_cv_prog_AWK="$ac_prog"
2266
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2267
 
    break 2
2268
 
  fi
2269
 
done
2270
 
done
2271
 
IFS=$as_save_IFS
2272
 
 
2273
 
fi
2274
 
fi
2275
 
AWK=$ac_cv_prog_AWK
2276
 
if test -n "$AWK"; then
2277
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
2278
 
echo "${ECHO_T}$AWK" >&6; }
2279
 
else
2280
 
  { echo "$as_me:$LINENO: result: no" >&5
2281
 
echo "${ECHO_T}no" >&6; }
2282
 
fi
2283
 
 
2284
 
 
2285
 
  test -n "$AWK" && break
2286
 
done
2287
 
 
2288
 
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2289
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2290
 
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2291
 
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2293
 
else
2294
 
  cat >conftest.make <<\_ACEOF
2295
 
SHELL = /bin/sh
2296
 
all:
2297
 
        @echo '@@@%%%=$(MAKE)=@@@%%%'
2298
 
_ACEOF
2299
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2300
 
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2301
 
  *@@@%%%=?*=@@@%%%*)
2302
 
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2303
 
  *)
2304
 
    eval ac_cv_prog_make_${ac_make}_set=no;;
2305
 
esac
2306
 
rm -f conftest.make
2307
 
fi
2308
 
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2309
 
  { echo "$as_me:$LINENO: result: yes" >&5
2310
 
echo "${ECHO_T}yes" >&6; }
2311
 
  SET_MAKE=
2312
 
else
2313
 
  { echo "$as_me:$LINENO: result: no" >&5
2314
 
echo "${ECHO_T}no" >&6; }
2315
 
  SET_MAKE="MAKE=${MAKE-make}"
2316
 
fi
2317
 
 
2318
 
rm -rf .tst 2>/dev/null
2319
 
mkdir .tst 2>/dev/null
2320
 
if test -d .tst; then
2321
 
  am__leading_dot=.
2322
 
else
2323
 
  am__leading_dot=_
2324
 
fi
2325
 
rmdir .tst 2>/dev/null
2326
 
 
2327
 
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2328
 
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2329
 
  # is not polluted with repeated "-I."
2330
 
  am__isrc=' -I$(srcdir)'
2331
 
  # test to see if srcdir already configured
2332
 
  if test -f $srcdir/config.status; then
2333
 
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2334
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2335
 
   { (exit 1); exit 1; }; }
2336
 
  fi
2337
 
fi
2338
 
 
2339
 
# test whether we have cygpath
2340
 
if test -z "$CYGPATH_W"; then
2341
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
2342
 
    CYGPATH_W='cygpath -w'
2343
 
  else
2344
 
    CYGPATH_W=echo
2345
 
  fi
2346
 
fi
2347
 
 
2348
 
 
2349
 
# Define the identity of the package.
2350
 
 PACKAGE=$PACKAGE_NAME
2351
 
 VERSION=$PACKAGE_VERSION
2352
 
 
2353
 
 
2354
 
# Some tools Automake needs.
2355
 
 
2356
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2357
 
 
2358
 
 
2359
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2360
 
 
2361
 
 
2362
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2363
 
 
2364
 
 
2365
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2366
 
 
2367
 
 
2368
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2369
 
 
2370
 
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2371
 
 
2372
 
# Installed binaries are usually stripped using `strip' when the user
2373
 
# run `make install-strip'.  However `strip' might not be the right
2374
 
# tool to use in cross-compilation environments, therefore Automake
2375
 
# will honor the `STRIP' environment variable to overrule this program.
2376
 
if test "$cross_compiling" != no; then
2377
 
  if test -n "$ac_tool_prefix"; then
2378
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2379
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
2380
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2381
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2382
 
if test "${ac_cv_prog_STRIP+set}" = set; then
2383
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2384
 
else
2385
 
  if test -n "$STRIP"; then
2386
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2387
 
else
2388
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389
 
for as_dir in $PATH
2390
 
do
2391
 
  IFS=$as_save_IFS
2392
 
  test -z "$as_dir" && as_dir=.
2393
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2394
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2395
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2396
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2397
 
    break 2
2398
 
  fi
2399
 
done
2400
 
done
2401
 
IFS=$as_save_IFS
2402
 
 
2403
 
fi
2404
 
fi
2405
 
STRIP=$ac_cv_prog_STRIP
2406
 
if test -n "$STRIP"; then
2407
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
2408
 
echo "${ECHO_T}$STRIP" >&6; }
2409
 
else
2410
 
  { echo "$as_me:$LINENO: result: no" >&5
2411
 
echo "${ECHO_T}no" >&6; }
2412
 
fi
2413
 
 
2414
 
 
2415
 
fi
2416
 
if test -z "$ac_cv_prog_STRIP"; then
2417
 
  ac_ct_STRIP=$STRIP
2418
 
  # Extract the first word of "strip", so it can be a program name with args.
2419
 
set dummy strip; ac_word=$2
2420
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2421
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2422
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2423
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2424
 
else
2425
 
  if test -n "$ac_ct_STRIP"; then
2426
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2427
 
else
2428
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429
 
for as_dir in $PATH
2430
 
do
2431
 
  IFS=$as_save_IFS
2432
 
  test -z "$as_dir" && as_dir=.
2433
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2434
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435
 
    ac_cv_prog_ac_ct_STRIP="strip"
2436
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2437
 
    break 2
2438
 
  fi
2439
 
done
2440
 
done
2441
 
IFS=$as_save_IFS
2442
 
 
2443
 
fi
2444
 
fi
2445
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2446
 
if test -n "$ac_ct_STRIP"; then
2447
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2448
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2449
 
else
2450
 
  { echo "$as_me:$LINENO: result: no" >&5
2451
 
echo "${ECHO_T}no" >&6; }
2452
 
fi
2453
 
 
2454
 
  if test "x$ac_ct_STRIP" = x; then
2455
 
    STRIP=":"
2456
 
  else
2457
 
    case $cross_compiling:$ac_tool_warned in
2458
 
yes:)
2459
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2460
 
whose name does not start with the host triplet.  If you think this
2461
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2462
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2463
 
whose name does not start with the host triplet.  If you think this
2464
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2465
 
ac_tool_warned=yes ;;
2466
 
esac
2467
 
    STRIP=$ac_ct_STRIP
2468
 
  fi
2469
 
else
2470
 
  STRIP="$ac_cv_prog_STRIP"
2471
 
fi
2472
 
 
2473
 
fi
2474
 
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2475
 
 
2476
 
# We need awk for the "check" target.  The system "awk" is bad on
2477
 
# some platforms.
2478
 
# Always define AMTAR for backward compatibility.
2479
 
 
2480
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2481
 
 
2482
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2483
 
 
2484
 
 
2485
 
 
2486
 
 
2487
 
 
2488
 
 
2489
 
# Tell automake not to generate Makefile.in unless asked to.
2490
 
# This way the code can be installed on systems without automake installed.
2491
 
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2492
 
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2493
 
    # Check whether --enable-maintainer-mode was given.
2494
 
if test "${enable_maintainer_mode+set}" = set; then
2495
 
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2496
 
else
2497
 
  USE_MAINTAINER_MODE=no
2498
 
fi
2499
 
 
2500
 
  { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2501
 
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2502
 
   if test $USE_MAINTAINER_MODE = yes; then
2503
 
  MAINTAINER_MODE_TRUE=
2504
 
  MAINTAINER_MODE_FALSE='#'
2505
 
else
2506
 
  MAINTAINER_MODE_TRUE='#'
2507
 
  MAINTAINER_MODE_FALSE=
2508
 
fi
2509
 
 
2510
 
  MAINT=$MAINTAINER_MODE_TRUE
2511
 
 
2512
 
 
2513
 
 
2514
 
# Option --enable/disable-debug
2515
 
# Check whether --enable-debug was given.
2516
 
if test "${enable_debug+set}" = set; then
2517
 
  enableval=$enable_debug; enable_debug=$enableval
2518
 
else
2519
 
  enable_debug=no
2520
 
fi
2521
 
 
2522
 
 
2523
 
# Option --enable/disable-debug-ublas
2524
 
# Check whether --enable-debug-ublas was given.
2525
 
if test "${enable_debug_ublas+set}" = set; then
2526
 
  enableval=$enable_debug_ublas; enable_debug_ublas=$enableval
2527
 
else
2528
 
  enable_debug_ublas=no
2529
 
fi
2530
 
 
2531
 
 
2532
 
# Option --enable/disable-optimization
2533
 
# Check whether --enable-optimization was given.
2534
 
if test "${enable_optimization+set}" = set; then
2535
 
  enableval=$enable_optimization; enable_optimization=$enableval
2536
 
else
2537
 
  enable_optimization=no
2538
 
fi
2539
 
 
2540
 
 
2541
 
# Option --enable/disable-pydolfin
2542
 
# Check whether --enable-pydolfin was given.
2543
 
if test "${enable_pydolfin+set}" = set; then
2544
 
  enableval=$enable_pydolfin; enable_pydolfin=$enableval
2545
 
else
2546
 
  enable_pydolfin=yes
2547
 
fi
2548
 
 
2549
 
 
2550
 
# Option --enable/disable-petsc
2551
 
# Check whether --enable-petsc was given.
2552
 
if test "${enable_petsc+set}" = set; then
2553
 
  enableval=$enable_petsc; disable_petsc=$enableval
2554
 
else
2555
 
  enable_petsc=no
2556
 
fi
2557
 
 
2558
 
 
2559
 
# Option --with-petsc-dir
2560
 
 
2561
 
# Check whether --with-petsc-dir was given.
2562
 
if test "${with_petsc_dir+set}" = set; then
2563
 
  withval=$with_petsc_dir; PETSC_DIR=$with_petsc_dir
2564
 
fi
2565
 
 
2566
 
 
2567
 
# Option --enable/disable-mpi
2568
 
# Check whether --enable-mpi was given.
2569
 
if test "${enable_mpi+set}" = set; then
2570
 
  enableval=$enable_mpi; enable_mpi=$enableval
2571
 
else
2572
 
  enable_mpi=yes
2573
 
fi
2574
 
 
2575
 
 
2576
 
# Option --with-umfpack-include
2577
 
 
2578
 
# Check whether --with-umfpack-include was given.
2579
 
if test "${with_umfpack_include+set}" = set; then
2580
 
  withval=$with_umfpack_include; UMFPACK_INCLUDE_DIR=$with_umfpack_include
2581
 
fi
2582
 
 
2583
 
 
2584
 
# Option --with-umfpack-lib
2585
 
 
2586
 
# Check whether --with-umfpack-lib was given.
2587
 
if test "${with_umfpack_lib+set}" = set; then
2588
 
  withval=$with_umfpack_lib; UMFPACK_LIB_DIR=$with_umfpack_lib
2589
 
fi
2590
 
 
2591
 
 
2592
 
# Option --with-amd-lib
2593
 
 
2594
 
# Check whether --with-amd-lib was given.
2595
 
if test "${with_amd_lib+set}" = set; then
2596
 
  withval=$with_amd_lib; AMD_LIB_DIR=$with_amd_lib
2597
 
fi
2598
 
 
2599
 
 
2600
 
# Option --enable/disable-scotch
2601
 
# Check whether --enable-scotch was given.
2602
 
if test "${enable_scotch+set}" = set; then
2603
 
  enableval=$enable_scotch; disable_scotch=$enableval
2604
 
else
2605
 
  enable_scotch=no
2606
 
fi
2607
 
 
2608
 
 
2609
 
# Use C++ compiler for performing configure tests
2610
 
ac_ext=cpp
2611
 
ac_cpp='$CXXCPP $CPPFLAGS'
2612
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2615
 
 
2616
 
 
2617
 
# Standard tests
2618
 
ac_ext=cpp
2619
 
ac_cpp='$CXXCPP $CPPFLAGS'
2620
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2621
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2622
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2623
 
if test -z "$CXX"; then
2624
 
  if test -n "$CCC"; then
2625
 
    CXX=$CCC
2626
 
  else
2627
 
    if test -n "$ac_tool_prefix"; then
2628
 
  for ac_prog in mpic++ mpicxx c++ g++
2629
 
  do
2630
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2631
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2632
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2633
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2634
 
if test "${ac_cv_prog_CXX+set}" = set; then
2635
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2636
 
else
2637
 
  if test -n "$CXX"; then
2638
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2639
 
else
2640
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641
 
for as_dir in $PATH
2642
 
do
2643
 
  IFS=$as_save_IFS
2644
 
  test -z "$as_dir" && as_dir=.
2645
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2646
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2648
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2649
 
    break 2
2650
 
  fi
2651
 
done
2652
 
done
2653
 
IFS=$as_save_IFS
2654
 
 
2655
 
fi
2656
 
fi
2657
 
CXX=$ac_cv_prog_CXX
2658
 
if test -n "$CXX"; then
2659
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
2660
 
echo "${ECHO_T}$CXX" >&6; }
2661
 
else
2662
 
  { echo "$as_me:$LINENO: result: no" >&5
2663
 
echo "${ECHO_T}no" >&6; }
2664
 
fi
2665
 
 
2666
 
 
2667
 
    test -n "$CXX" && break
2668
 
  done
2669
 
fi
2670
 
if test -z "$CXX"; then
2671
 
  ac_ct_CXX=$CXX
2672
 
  for ac_prog in mpic++ mpicxx c++ g++
2673
 
do
2674
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2675
 
set dummy $ac_prog; ac_word=$2
2676
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2677
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2678
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2679
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2680
 
else
2681
 
  if test -n "$ac_ct_CXX"; then
2682
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2683
 
else
2684
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685
 
for as_dir in $PATH
2686
 
do
2687
 
  IFS=$as_save_IFS
2688
 
  test -z "$as_dir" && as_dir=.
2689
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2690
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2691
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2692
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2693
 
    break 2
2694
 
  fi
2695
 
done
2696
 
done
2697
 
IFS=$as_save_IFS
2698
 
 
2699
 
fi
2700
 
fi
2701
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2702
 
if test -n "$ac_ct_CXX"; then
2703
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2704
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
2705
 
else
2706
 
  { echo "$as_me:$LINENO: result: no" >&5
2707
 
echo "${ECHO_T}no" >&6; }
2708
 
fi
2709
 
 
2710
 
 
2711
 
  test -n "$ac_ct_CXX" && break
2712
 
done
2713
 
 
2714
 
  if test "x$ac_ct_CXX" = x; then
2715
 
    CXX="g++"
2716
 
  else
2717
 
    case $cross_compiling:$ac_tool_warned in
2718
 
yes:)
2719
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720
 
whose name does not start with the host triplet.  If you think this
2721
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2722
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723
 
whose name does not start with the host triplet.  If you think this
2724
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725
 
ac_tool_warned=yes ;;
2726
 
esac
2727
 
    CXX=$ac_ct_CXX
2728
 
  fi
2729
 
fi
2730
 
 
2731
 
  fi
2732
 
fi
2733
 
# Provide some information about the compiler.
2734
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2735
 
ac_compiler=`set X $ac_compile; echo $2`
2736
 
{ (ac_try="$ac_compiler --version >&5"
2737
 
case "(($ac_try" in
2738
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739
 
  *) ac_try_echo=$ac_try;;
2740
 
esac
2741
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742
 
  (eval "$ac_compiler --version >&5") 2>&5
2743
 
  ac_status=$?
2744
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745
 
  (exit $ac_status); }
2746
 
{ (ac_try="$ac_compiler -v >&5"
2747
 
case "(($ac_try" in
2748
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749
 
  *) ac_try_echo=$ac_try;;
2750
 
esac
2751
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2752
 
  (eval "$ac_compiler -v >&5") 2>&5
2753
 
  ac_status=$?
2754
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755
 
  (exit $ac_status); }
2756
 
{ (ac_try="$ac_compiler -V >&5"
2757
 
case "(($ac_try" in
2758
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759
 
  *) ac_try_echo=$ac_try;;
2760
 
esac
2761
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762
 
  (eval "$ac_compiler -V >&5") 2>&5
2763
 
  ac_status=$?
2764
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765
 
  (exit $ac_status); }
2766
 
 
2767
 
cat >conftest.$ac_ext <<_ACEOF
2768
 
/* confdefs.h.  */
2769
 
_ACEOF
2770
 
cat confdefs.h >>conftest.$ac_ext
2771
 
cat >>conftest.$ac_ext <<_ACEOF
2772
 
/* end confdefs.h.  */
2773
 
 
2774
 
int
2775
 
main ()
2776
 
{
2777
 
 
2778
 
  ;
2779
 
  return 0;
2780
 
}
2781
 
_ACEOF
2782
 
ac_clean_files_save=$ac_clean_files
2783
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2784
 
# Try to create an executable without -o first, disregard a.out.
2785
 
# It will help us diagnose broken compilers, and finding out an intuition
2786
 
# of exeext.
2787
 
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2788
 
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2789
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2790
 
#
2791
 
# List of possible output files, starting from the most likely.
2792
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2793
 
# only as a last resort.  b.out is created by i960 compilers.
2794
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2795
 
#
2796
 
# The IRIX 6 linker writes into existing files which may not be
2797
 
# executable, retaining their permissions.  Remove them first so a
2798
 
# subsequent execution test works.
2799
 
ac_rmfiles=
2800
 
for ac_file in $ac_files
2801
 
do
2802
 
  case $ac_file in
2803
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2804
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2805
 
  esac
2806
 
done
2807
 
rm -f $ac_rmfiles
2808
 
 
2809
 
if { (ac_try="$ac_link_default"
2810
 
case "(($ac_try" in
2811
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812
 
  *) ac_try_echo=$ac_try;;
2813
 
esac
2814
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815
 
  (eval "$ac_link_default") 2>&5
2816
 
  ac_status=$?
2817
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818
 
  (exit $ac_status); }; then
2819
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2820
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2821
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2822
 
# so that the user can short-circuit this test for compilers unknown to
2823
 
# Autoconf.
2824
 
for ac_file in $ac_files ''
2825
 
do
2826
 
  test -f "$ac_file" || continue
2827
 
  case $ac_file in
2828
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2829
 
        ;;
2830
 
    [ab].out )
2831
 
        # We found the default executable, but exeext='' is most
2832
 
        # certainly right.
2833
 
        break;;
2834
 
    *.* )
2835
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2836
 
        then :; else
2837
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2838
 
        fi
2839
 
        # We set ac_cv_exeext here because the later test for it is not
2840
 
        # safe: cross compilers may not add the suffix if given an `-o'
2841
 
        # argument, so we may need to know it at that point already.
2842
 
        # Even if this section looks crufty: it has the advantage of
2843
 
        # actually working.
2844
 
        break;;
2845
 
    * )
2846
 
        break;;
2847
 
  esac
2848
 
done
2849
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2850
 
 
2851
 
else
2852
 
  ac_file=''
2853
 
fi
2854
 
 
2855
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2856
 
echo "${ECHO_T}$ac_file" >&6; }
2857
 
if test -z "$ac_file"; then
2858
 
  echo "$as_me: failed program was:" >&5
2859
 
sed 's/^/| /' conftest.$ac_ext >&5
2860
 
 
2861
 
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2862
 
See \`config.log' for more details." >&5
2863
 
echo "$as_me: error: C++ compiler cannot create executables
2864
 
See \`config.log' for more details." >&2;}
2865
 
   { (exit 77); exit 77; }; }
2866
 
fi
2867
 
 
2868
 
ac_exeext=$ac_cv_exeext
2869
 
 
2870
 
# Check that the compiler produces executables we can run.  If not, either
2871
 
# the compiler is broken, or we cross compile.
2872
 
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2873
 
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2874
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2875
 
# If not cross compiling, check that we can run a simple program.
2876
 
if test "$cross_compiling" != yes; then
2877
 
  if { ac_try='./$ac_file'
2878
 
  { (case "(($ac_try" in
2879
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880
 
  *) ac_try_echo=$ac_try;;
2881
 
esac
2882
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883
 
  (eval "$ac_try") 2>&5
2884
 
  ac_status=$?
2885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886
 
  (exit $ac_status); }; }; then
2887
 
    cross_compiling=no
2888
 
  else
2889
 
    if test "$cross_compiling" = maybe; then
2890
 
        cross_compiling=yes
2891
 
    else
2892
 
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2893
 
If you meant to cross compile, use \`--host'.
2894
 
See \`config.log' for more details." >&5
2895
 
echo "$as_me: error: cannot run C++ compiled programs.
2896
 
If you meant to cross compile, use \`--host'.
2897
 
See \`config.log' for more details." >&2;}
2898
 
   { (exit 1); exit 1; }; }
2899
 
    fi
2900
 
  fi
2901
 
fi
2902
 
{ echo "$as_me:$LINENO: result: yes" >&5
2903
 
echo "${ECHO_T}yes" >&6; }
2904
 
 
2905
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2906
 
ac_clean_files=$ac_clean_files_save
2907
 
# Check that the compiler produces executables we can run.  If not, either
2908
 
# the compiler is broken, or we cross compile.
2909
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2910
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2911
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2912
 
echo "${ECHO_T}$cross_compiling" >&6; }
2913
 
 
2914
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2915
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2916
 
if { (ac_try="$ac_link"
2917
 
case "(($ac_try" in
2918
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919
 
  *) ac_try_echo=$ac_try;;
2920
 
esac
2921
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922
 
  (eval "$ac_link") 2>&5
2923
 
  ac_status=$?
2924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925
 
  (exit $ac_status); }; then
2926
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2927
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2928
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2929
 
# `rm'.
2930
 
for ac_file in conftest.exe conftest conftest.*; do
2931
 
  test -f "$ac_file" || continue
2932
 
  case $ac_file in
2933
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2934
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2935
 
          break;;
2936
 
    * ) break;;
2937
 
  esac
2938
 
done
2939
 
else
2940
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2941
 
See \`config.log' for more details." >&5
2942
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2943
 
See \`config.log' for more details." >&2;}
2944
 
   { (exit 1); exit 1; }; }
2945
 
fi
2946
 
 
2947
 
rm -f conftest$ac_cv_exeext
2948
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2949
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2950
 
 
2951
 
rm -f conftest.$ac_ext
2952
 
EXEEXT=$ac_cv_exeext
2953
 
ac_exeext=$EXEEXT
2954
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2955
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2956
 
if test "${ac_cv_objext+set}" = set; then
2957
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2958
 
else
2959
 
  cat >conftest.$ac_ext <<_ACEOF
2960
 
/* confdefs.h.  */
2961
 
_ACEOF
2962
 
cat confdefs.h >>conftest.$ac_ext
2963
 
cat >>conftest.$ac_ext <<_ACEOF
2964
 
/* end confdefs.h.  */
2965
 
 
2966
 
int
2967
 
main ()
2968
 
{
2969
 
 
2970
 
  ;
2971
 
  return 0;
2972
 
}
2973
 
_ACEOF
2974
 
rm -f conftest.o conftest.obj
2975
 
if { (ac_try="$ac_compile"
2976
 
case "(($ac_try" in
2977
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
 
  *) ac_try_echo=$ac_try;;
2979
 
esac
2980
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
 
  (eval "$ac_compile") 2>&5
2982
 
  ac_status=$?
2983
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
 
  (exit $ac_status); }; then
2985
 
  for ac_file in conftest.o conftest.obj conftest.*; do
2986
 
  test -f "$ac_file" || continue;
2987
 
  case $ac_file in
2988
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2989
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2990
 
       break;;
2991
 
  esac
2992
 
done
2993
 
else
2994
 
  echo "$as_me: failed program was:" >&5
2995
 
sed 's/^/| /' conftest.$ac_ext >&5
2996
 
 
2997
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2998
 
See \`config.log' for more details." >&5
2999
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3000
 
See \`config.log' for more details." >&2;}
3001
 
   { (exit 1); exit 1; }; }
3002
 
fi
3003
 
 
3004
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3005
 
fi
3006
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3007
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
3008
 
OBJEXT=$ac_cv_objext
3009
 
ac_objext=$OBJEXT
3010
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3011
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3012
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3013
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3014
 
else
3015
 
  cat >conftest.$ac_ext <<_ACEOF
3016
 
/* confdefs.h.  */
3017
 
_ACEOF
3018
 
cat confdefs.h >>conftest.$ac_ext
3019
 
cat >>conftest.$ac_ext <<_ACEOF
3020
 
/* end confdefs.h.  */
3021
 
 
3022
 
int
3023
 
main ()
3024
 
{
3025
 
#ifndef __GNUC__
3026
 
       choke me
3027
 
#endif
3028
 
 
3029
 
  ;
3030
 
  return 0;
3031
 
}
3032
 
_ACEOF
3033
 
rm -f conftest.$ac_objext
3034
 
if { (ac_try="$ac_compile"
3035
 
case "(($ac_try" in
3036
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
 
  *) ac_try_echo=$ac_try;;
3038
 
esac
3039
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040
 
  (eval "$ac_compile") 2>conftest.er1
3041
 
  ac_status=$?
3042
 
  grep -v '^ *+' conftest.er1 >conftest.err
3043
 
  rm -f conftest.er1
3044
 
  cat conftest.err >&5
3045
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046
 
  (exit $ac_status); } && {
3047
 
         test -z "$ac_cxx_werror_flag" ||
3048
 
         test ! -s conftest.err
3049
 
       } && test -s conftest.$ac_objext; then
3050
 
  ac_compiler_gnu=yes
3051
 
else
3052
 
  echo "$as_me: failed program was:" >&5
3053
 
sed 's/^/| /' conftest.$ac_ext >&5
3054
 
 
3055
 
        ac_compiler_gnu=no
3056
 
fi
3057
 
 
3058
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3060
 
 
3061
 
fi
3062
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3063
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3064
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
3065
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
3066
 
ac_save_CXXFLAGS=$CXXFLAGS
3067
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3068
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3069
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
3070
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3071
 
else
3072
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3073
 
   ac_cxx_werror_flag=yes
3074
 
   ac_cv_prog_cxx_g=no
3075
 
   CXXFLAGS="-g"
3076
 
   cat >conftest.$ac_ext <<_ACEOF
3077
 
/* confdefs.h.  */
3078
 
_ACEOF
3079
 
cat confdefs.h >>conftest.$ac_ext
3080
 
cat >>conftest.$ac_ext <<_ACEOF
3081
 
/* end confdefs.h.  */
3082
 
 
3083
 
int
3084
 
main ()
3085
 
{
3086
 
 
3087
 
  ;
3088
 
  return 0;
3089
 
}
3090
 
_ACEOF
3091
 
rm -f conftest.$ac_objext
3092
 
if { (ac_try="$ac_compile"
3093
 
case "(($ac_try" in
3094
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095
 
  *) ac_try_echo=$ac_try;;
3096
 
esac
3097
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098
 
  (eval "$ac_compile") 2>conftest.er1
3099
 
  ac_status=$?
3100
 
  grep -v '^ *+' conftest.er1 >conftest.err
3101
 
  rm -f conftest.er1
3102
 
  cat conftest.err >&5
3103
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104
 
  (exit $ac_status); } && {
3105
 
         test -z "$ac_cxx_werror_flag" ||
3106
 
         test ! -s conftest.err
3107
 
       } && test -s conftest.$ac_objext; then
3108
 
  ac_cv_prog_cxx_g=yes
3109
 
else
3110
 
  echo "$as_me: failed program was:" >&5
3111
 
sed 's/^/| /' conftest.$ac_ext >&5
3112
 
 
3113
 
        CXXFLAGS=""
3114
 
      cat >conftest.$ac_ext <<_ACEOF
3115
 
/* confdefs.h.  */
3116
 
_ACEOF
3117
 
cat confdefs.h >>conftest.$ac_ext
3118
 
cat >>conftest.$ac_ext <<_ACEOF
3119
 
/* end confdefs.h.  */
3120
 
 
3121
 
int
3122
 
main ()
3123
 
{
3124
 
 
3125
 
  ;
3126
 
  return 0;
3127
 
}
3128
 
_ACEOF
3129
 
rm -f conftest.$ac_objext
3130
 
if { (ac_try="$ac_compile"
3131
 
case "(($ac_try" in
3132
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133
 
  *) ac_try_echo=$ac_try;;
3134
 
esac
3135
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136
 
  (eval "$ac_compile") 2>conftest.er1
3137
 
  ac_status=$?
3138
 
  grep -v '^ *+' conftest.er1 >conftest.err
3139
 
  rm -f conftest.er1
3140
 
  cat conftest.err >&5
3141
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142
 
  (exit $ac_status); } && {
3143
 
         test -z "$ac_cxx_werror_flag" ||
3144
 
         test ! -s conftest.err
3145
 
       } && test -s conftest.$ac_objext; then
3146
 
  :
3147
 
else
3148
 
  echo "$as_me: failed program was:" >&5
3149
 
sed 's/^/| /' conftest.$ac_ext >&5
3150
 
 
3151
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3152
 
         CXXFLAGS="-g"
3153
 
         cat >conftest.$ac_ext <<_ACEOF
3154
 
/* confdefs.h.  */
3155
 
_ACEOF
3156
 
cat confdefs.h >>conftest.$ac_ext
3157
 
cat >>conftest.$ac_ext <<_ACEOF
3158
 
/* end confdefs.h.  */
3159
 
 
3160
 
int
3161
 
main ()
3162
 
{
3163
 
 
3164
 
  ;
3165
 
  return 0;
3166
 
}
3167
 
_ACEOF
3168
 
rm -f conftest.$ac_objext
3169
 
if { (ac_try="$ac_compile"
3170
 
case "(($ac_try" in
3171
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172
 
  *) ac_try_echo=$ac_try;;
3173
 
esac
3174
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175
 
  (eval "$ac_compile") 2>conftest.er1
3176
 
  ac_status=$?
3177
 
  grep -v '^ *+' conftest.er1 >conftest.err
3178
 
  rm -f conftest.er1
3179
 
  cat conftest.err >&5
3180
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181
 
  (exit $ac_status); } && {
3182
 
         test -z "$ac_cxx_werror_flag" ||
3183
 
         test ! -s conftest.err
3184
 
       } && test -s conftest.$ac_objext; then
3185
 
  ac_cv_prog_cxx_g=yes
3186
 
else
3187
 
  echo "$as_me: failed program was:" >&5
3188
 
sed 's/^/| /' conftest.$ac_ext >&5
3189
 
 
3190
 
 
3191
 
fi
3192
 
 
3193
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194
 
fi
3195
 
 
3196
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197
 
fi
3198
 
 
3199
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3201
 
fi
3202
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3203
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3204
 
if test "$ac_test_CXXFLAGS" = set; then
3205
 
  CXXFLAGS=$ac_save_CXXFLAGS
3206
 
elif test $ac_cv_prog_cxx_g = yes; then
3207
 
  if test "$GXX" = yes; then
3208
 
    CXXFLAGS="-g -O2"
3209
 
  else
3210
 
    CXXFLAGS="-g"
3211
 
  fi
3212
 
else
3213
 
  if test "$GXX" = yes; then
3214
 
    CXXFLAGS="-O2"
3215
 
  else
3216
 
    CXXFLAGS=
3217
 
  fi
3218
 
fi
3219
 
ac_ext=cpp
3220
 
ac_cpp='$CXXCPP $CPPFLAGS'
3221
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3224
 
DEPDIR="${am__leading_dot}deps"
3225
 
 
3226
 
ac_config_commands="$ac_config_commands depfiles"
3227
 
 
3228
 
 
3229
 
am_make=${MAKE-make}
3230
 
cat > confinc << 'END'
3231
 
am__doit:
3232
 
        @echo done
3233
 
.PHONY: am__doit
3234
 
END
3235
 
# If we don't find an include directive, just comment out the code.
3236
 
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3237
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3238
 
am__include="#"
3239
 
am__quote=
3240
 
_am_result=none
3241
 
# First try GNU make style include.
3242
 
echo "include confinc" > confmf
3243
 
# We grep out `Entering directory' and `Leaving directory'
3244
 
# messages which can occur if `w' ends up in MAKEFLAGS.
3245
 
# In particular we don't look at `^make:' because GNU make might
3246
 
# be invoked under some other name (usually "gmake"), in which
3247
 
# case it prints its new name instead of `make'.
3248
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3249
 
   am__include=include
3250
 
   am__quote=
3251
 
   _am_result=GNU
3252
 
fi
3253
 
# Now try BSD make style include.
3254
 
if test "$am__include" = "#"; then
3255
 
   echo '.include "confinc"' > confmf
3256
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3257
 
      am__include=.include
3258
 
      am__quote="\""
3259
 
      _am_result=BSD
3260
 
   fi
3261
 
fi
3262
 
 
3263
 
 
3264
 
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3265
 
echo "${ECHO_T}$_am_result" >&6; }
3266
 
rm -f confinc confmf
3267
 
 
3268
 
# Check whether --enable-dependency-tracking was given.
3269
 
if test "${enable_dependency_tracking+set}" = set; then
3270
 
  enableval=$enable_dependency_tracking;
3271
 
fi
3272
 
 
3273
 
if test "x$enable_dependency_tracking" != xno; then
3274
 
  am_depcomp="$ac_aux_dir/depcomp"
3275
 
  AMDEPBACKSLASH='\'
3276
 
fi
3277
 
 if test "x$enable_dependency_tracking" != xno; then
3278
 
  AMDEP_TRUE=
3279
 
  AMDEP_FALSE='#'
3280
 
else
3281
 
  AMDEP_TRUE='#'
3282
 
  AMDEP_FALSE=
3283
 
fi
3284
 
 
3285
 
 
3286
 
 
3287
 
depcc="$CXX"  am_compiler_list=
3288
 
 
3289
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3290
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3291
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3292
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3293
 
else
3294
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3295
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3296
 
  # making bogus files that we don't know about and never remove.  For
3297
 
  # instance it was reported that on HP-UX the gcc test will end up
3298
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3299
 
  # in D'.
3300
 
  mkdir conftest.dir
3301
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3302
 
  # using a relative directory.
3303
 
  cp "$am_depcomp" conftest.dir
3304
 
  cd conftest.dir
3305
 
  # We will build objects and dependencies in a subdirectory because
3306
 
  # it helps to detect inapplicable dependency modes.  For instance
3307
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3308
 
  # side effect of compilation, but ICC will put the dependencies in
3309
 
  # the current directory while Tru64 will put them in the object
3310
 
  # directory.
3311
 
  mkdir sub
3312
 
 
3313
 
  am_cv_CXX_dependencies_compiler_type=none
3314
 
  if test "$am_compiler_list" = ""; then
3315
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3316
 
  fi
3317
 
  for depmode in $am_compiler_list; do
3318
 
    # Setup a source with many dependencies, because some compilers
3319
 
    # like to wrap large dependency lists on column 80 (with \), and
3320
 
    # we should not choose a depcomp mode which is confused by this.
3321
 
    #
3322
 
    # We need to recreate these files for each test, as the compiler may
3323
 
    # overwrite some of them when testing with obscure command lines.
3324
 
    # This happens at least with the AIX C compiler.
3325
 
    : > sub/conftest.c
3326
 
    for i in 1 2 3 4 5 6; do
3327
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3328
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3329
 
      # Solaris 8's {/usr,}/bin/sh.
3330
 
      touch sub/conftst$i.h
3331
 
    done
3332
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3333
 
 
3334
 
    case $depmode in
3335
 
    nosideeffect)
3336
 
      # after this tag, mechanisms are not by side-effect, so they'll
3337
 
      # only be used when explicitly requested
3338
 
      if test "x$enable_dependency_tracking" = xyes; then
3339
 
        continue
3340
 
      else
3341
 
        break
3342
 
      fi
3343
 
      ;;
3344
 
    none) break ;;
3345
 
    esac
3346
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3347
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3348
 
    # handle `-M -o', and we need to detect this.
3349
 
    if depmode=$depmode \
3350
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3351
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3352
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3353
 
         >/dev/null 2>conftest.err &&
3354
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3355
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3356
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3357
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3358
 
      # icc doesn't choke on unknown options, it will just issue warnings
3359
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3360
 
      # that says an option was ignored or not supported.
3361
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3362
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3363
 
      # The diagnosis changed in icc 8.0:
3364
 
      #   icc: Command line remark: option '-MP' not supported
3365
 
      if (grep 'ignoring option' conftest.err ||
3366
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3367
 
        am_cv_CXX_dependencies_compiler_type=$depmode
3368
 
        break
3369
 
      fi
3370
 
    fi
3371
 
  done
3372
 
 
3373
 
  cd ..
3374
 
  rm -rf conftest.dir
3375
 
else
3376
 
  am_cv_CXX_dependencies_compiler_type=none
3377
 
fi
3378
 
 
3379
 
fi
3380
 
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3381
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3382
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3383
 
 
3384
 
 if
3385
 
  test "x$enable_dependency_tracking" != xno \
3386
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3387
 
  am__fastdepCXX_TRUE=
3388
 
  am__fastdepCXX_FALSE='#'
3389
 
else
3390
 
  am__fastdepCXX_TRUE='#'
3391
 
  am__fastdepCXX_FALSE=
3392
 
fi
3393
 
 
3394
 
 
3395
 
ac_ext=c
3396
 
ac_cpp='$CPP $CPPFLAGS'
3397
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400
 
if test -n "$ac_tool_prefix"; then
3401
 
  for ac_prog in mpicc cc gcc
3402
 
  do
3403
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3405
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3406
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3407
 
if test "${ac_cv_prog_CC+set}" = set; then
3408
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3409
 
else
3410
 
  if test -n "$CC"; then
3411
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3412
 
else
3413
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3414
 
for as_dir in $PATH
3415
 
do
3416
 
  IFS=$as_save_IFS
3417
 
  test -z "$as_dir" && as_dir=.
3418
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3419
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3421
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422
 
    break 2
3423
 
  fi
3424
 
done
3425
 
done
3426
 
IFS=$as_save_IFS
3427
 
 
3428
 
fi
3429
 
fi
3430
 
CC=$ac_cv_prog_CC
3431
 
if test -n "$CC"; then
3432
 
  { echo "$as_me:$LINENO: result: $CC" >&5
3433
 
echo "${ECHO_T}$CC" >&6; }
3434
 
else
3435
 
  { echo "$as_me:$LINENO: result: no" >&5
3436
 
echo "${ECHO_T}no" >&6; }
3437
 
fi
3438
 
 
3439
 
 
3440
 
    test -n "$CC" && break
3441
 
  done
3442
 
fi
3443
 
if test -z "$CC"; then
3444
 
  ac_ct_CC=$CC
3445
 
  for ac_prog in mpicc cc gcc
3446
 
do
3447
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3448
 
set dummy $ac_prog; ac_word=$2
3449
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3450
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3451
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3452
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3453
 
else
3454
 
  if test -n "$ac_ct_CC"; then
3455
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456
 
else
3457
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458
 
for as_dir in $PATH
3459
 
do
3460
 
  IFS=$as_save_IFS
3461
 
  test -z "$as_dir" && as_dir=.
3462
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3463
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3465
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466
 
    break 2
3467
 
  fi
3468
 
done
3469
 
done
3470
 
IFS=$as_save_IFS
3471
 
 
3472
 
fi
3473
 
fi
3474
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3475
 
if test -n "$ac_ct_CC"; then
3476
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
3478
 
else
3479
 
  { echo "$as_me:$LINENO: result: no" >&5
3480
 
echo "${ECHO_T}no" >&6; }
3481
 
fi
3482
 
 
3483
 
 
3484
 
  test -n "$ac_ct_CC" && break
3485
 
done
3486
 
 
3487
 
  if test "x$ac_ct_CC" = x; then
3488
 
    CC=""
3489
 
  else
3490
 
    case $cross_compiling:$ac_tool_warned in
3491
 
yes:)
3492
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3493
 
whose name does not start with the host triplet.  If you think this
3494
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
3495
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3496
 
whose name does not start with the host triplet.  If you think this
3497
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3498
 
ac_tool_warned=yes ;;
3499
 
esac
3500
 
    CC=$ac_ct_CC
3501
 
  fi
3502
 
fi
3503
 
 
3504
 
 
3505
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3506
 
See \`config.log' for more details." >&5
3507
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3508
 
See \`config.log' for more details." >&2;}
3509
 
   { (exit 1); exit 1; }; }
3510
 
 
3511
 
# Provide some information about the compiler.
3512
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
3513
 
ac_compiler=`set X $ac_compile; echo $2`
3514
 
{ (ac_try="$ac_compiler --version >&5"
3515
 
case "(($ac_try" in
3516
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517
 
  *) ac_try_echo=$ac_try;;
3518
 
esac
3519
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3520
 
  (eval "$ac_compiler --version >&5") 2>&5
3521
 
  ac_status=$?
3522
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523
 
  (exit $ac_status); }
3524
 
{ (ac_try="$ac_compiler -v >&5"
3525
 
case "(($ac_try" in
3526
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527
 
  *) ac_try_echo=$ac_try;;
3528
 
esac
3529
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530
 
  (eval "$ac_compiler -v >&5") 2>&5
3531
 
  ac_status=$?
3532
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533
 
  (exit $ac_status); }
3534
 
{ (ac_try="$ac_compiler -V >&5"
3535
 
case "(($ac_try" in
3536
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537
 
  *) ac_try_echo=$ac_try;;
3538
 
esac
3539
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540
 
  (eval "$ac_compiler -V >&5") 2>&5
3541
 
  ac_status=$?
3542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543
 
  (exit $ac_status); }
3544
 
 
3545
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3546
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3547
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3548
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3549
 
else
3550
 
  cat >conftest.$ac_ext <<_ACEOF
3551
 
/* confdefs.h.  */
3552
 
_ACEOF
3553
 
cat confdefs.h >>conftest.$ac_ext
3554
 
cat >>conftest.$ac_ext <<_ACEOF
3555
 
/* end confdefs.h.  */
3556
 
 
3557
 
int
3558
 
main ()
3559
 
{
3560
 
#ifndef __GNUC__
3561
 
       choke me
3562
 
#endif
3563
 
 
3564
 
  ;
3565
 
  return 0;
3566
 
}
3567
 
_ACEOF
3568
 
rm -f conftest.$ac_objext
3569
 
if { (ac_try="$ac_compile"
3570
 
case "(($ac_try" in
3571
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572
 
  *) ac_try_echo=$ac_try;;
3573
 
esac
3574
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575
 
  (eval "$ac_compile") 2>conftest.er1
3576
 
  ac_status=$?
3577
 
  grep -v '^ *+' conftest.er1 >conftest.err
3578
 
  rm -f conftest.er1
3579
 
  cat conftest.err >&5
3580
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
 
  (exit $ac_status); } && {
3582
 
         test -z "$ac_c_werror_flag" ||
3583
 
         test ! -s conftest.err
3584
 
       } && test -s conftest.$ac_objext; then
3585
 
  ac_compiler_gnu=yes
3586
 
else
3587
 
  echo "$as_me: failed program was:" >&5
3588
 
sed 's/^/| /' conftest.$ac_ext >&5
3589
 
 
3590
 
        ac_compiler_gnu=no
3591
 
fi
3592
 
 
3593
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3594
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3595
 
 
3596
 
fi
3597
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3598
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3599
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3600
 
ac_test_CFLAGS=${CFLAGS+set}
3601
 
ac_save_CFLAGS=$CFLAGS
3602
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3603
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3604
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3605
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3606
 
else
3607
 
  ac_save_c_werror_flag=$ac_c_werror_flag
3608
 
   ac_c_werror_flag=yes
3609
 
   ac_cv_prog_cc_g=no
3610
 
   CFLAGS="-g"
3611
 
   cat >conftest.$ac_ext <<_ACEOF
3612
 
/* confdefs.h.  */
3613
 
_ACEOF
3614
 
cat confdefs.h >>conftest.$ac_ext
3615
 
cat >>conftest.$ac_ext <<_ACEOF
3616
 
/* end confdefs.h.  */
3617
 
 
3618
 
int
3619
 
main ()
3620
 
{
3621
 
 
3622
 
  ;
3623
 
  return 0;
3624
 
}
3625
 
_ACEOF
3626
 
rm -f conftest.$ac_objext
3627
 
if { (ac_try="$ac_compile"
3628
 
case "(($ac_try" in
3629
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630
 
  *) ac_try_echo=$ac_try;;
3631
 
esac
3632
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633
 
  (eval "$ac_compile") 2>conftest.er1
3634
 
  ac_status=$?
3635
 
  grep -v '^ *+' conftest.er1 >conftest.err
3636
 
  rm -f conftest.er1
3637
 
  cat conftest.err >&5
3638
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639
 
  (exit $ac_status); } && {
3640
 
         test -z "$ac_c_werror_flag" ||
3641
 
         test ! -s conftest.err
3642
 
       } && test -s conftest.$ac_objext; then
3643
 
  ac_cv_prog_cc_g=yes
3644
 
else
3645
 
  echo "$as_me: failed program was:" >&5
3646
 
sed 's/^/| /' conftest.$ac_ext >&5
3647
 
 
3648
 
        CFLAGS=""
3649
 
      cat >conftest.$ac_ext <<_ACEOF
3650
 
/* confdefs.h.  */
3651
 
_ACEOF
3652
 
cat confdefs.h >>conftest.$ac_ext
3653
 
cat >>conftest.$ac_ext <<_ACEOF
3654
 
/* end confdefs.h.  */
3655
 
 
3656
 
int
3657
 
main ()
3658
 
{
3659
 
 
3660
 
  ;
3661
 
  return 0;
3662
 
}
3663
 
_ACEOF
3664
 
rm -f conftest.$ac_objext
3665
 
if { (ac_try="$ac_compile"
3666
 
case "(($ac_try" in
3667
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668
 
  *) ac_try_echo=$ac_try;;
3669
 
esac
3670
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671
 
  (eval "$ac_compile") 2>conftest.er1
3672
 
  ac_status=$?
3673
 
  grep -v '^ *+' conftest.er1 >conftest.err
3674
 
  rm -f conftest.er1
3675
 
  cat conftest.err >&5
3676
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677
 
  (exit $ac_status); } && {
3678
 
         test -z "$ac_c_werror_flag" ||
3679
 
         test ! -s conftest.err
3680
 
       } && test -s conftest.$ac_objext; then
3681
 
  :
3682
 
else
3683
 
  echo "$as_me: failed program was:" >&5
3684
 
sed 's/^/| /' conftest.$ac_ext >&5
3685
 
 
3686
 
        ac_c_werror_flag=$ac_save_c_werror_flag
3687
 
         CFLAGS="-g"
3688
 
         cat >conftest.$ac_ext <<_ACEOF
3689
 
/* confdefs.h.  */
3690
 
_ACEOF
3691
 
cat confdefs.h >>conftest.$ac_ext
3692
 
cat >>conftest.$ac_ext <<_ACEOF
3693
 
/* end confdefs.h.  */
3694
 
 
3695
 
int
3696
 
main ()
3697
 
{
3698
 
 
3699
 
  ;
3700
 
  return 0;
3701
 
}
3702
 
_ACEOF
3703
 
rm -f conftest.$ac_objext
3704
 
if { (ac_try="$ac_compile"
3705
 
case "(($ac_try" in
3706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707
 
  *) ac_try_echo=$ac_try;;
3708
 
esac
3709
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710
 
  (eval "$ac_compile") 2>conftest.er1
3711
 
  ac_status=$?
3712
 
  grep -v '^ *+' conftest.er1 >conftest.err
3713
 
  rm -f conftest.er1
3714
 
  cat conftest.err >&5
3715
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716
 
  (exit $ac_status); } && {
3717
 
         test -z "$ac_c_werror_flag" ||
3718
 
         test ! -s conftest.err
3719
 
       } && test -s conftest.$ac_objext; then
3720
 
  ac_cv_prog_cc_g=yes
3721
 
else
3722
 
  echo "$as_me: failed program was:" >&5
3723
 
sed 's/^/| /' conftest.$ac_ext >&5
3724
 
 
3725
 
 
3726
 
fi
3727
 
 
3728
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3729
 
fi
3730
 
 
3731
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3732
 
fi
3733
 
 
3734
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735
 
   ac_c_werror_flag=$ac_save_c_werror_flag
3736
 
fi
3737
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3738
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3739
 
if test "$ac_test_CFLAGS" = set; then
3740
 
  CFLAGS=$ac_save_CFLAGS
3741
 
elif test $ac_cv_prog_cc_g = yes; then
3742
 
  if test "$GCC" = yes; then
3743
 
    CFLAGS="-g -O2"
3744
 
  else
3745
 
    CFLAGS="-g"
3746
 
  fi
3747
 
else
3748
 
  if test "$GCC" = yes; then
3749
 
    CFLAGS="-O2"
3750
 
  else
3751
 
    CFLAGS=
3752
 
  fi
3753
 
fi
3754
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3755
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3756
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
3757
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3758
 
else
3759
 
  ac_cv_prog_cc_c89=no
3760
 
ac_save_CC=$CC
3761
 
cat >conftest.$ac_ext <<_ACEOF
3762
 
/* confdefs.h.  */
3763
 
_ACEOF
3764
 
cat confdefs.h >>conftest.$ac_ext
3765
 
cat >>conftest.$ac_ext <<_ACEOF
3766
 
/* end confdefs.h.  */
3767
 
#include <stdarg.h>
3768
 
#include <stdio.h>
3769
 
#include <sys/types.h>
3770
 
#include <sys/stat.h>
3771
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3772
 
struct buf { int x; };
3773
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3774
 
static char *e (p, i)
3775
 
     char **p;
3776
 
     int i;
3777
 
{
3778
 
  return p[i];
3779
 
}
3780
 
static char *f (char * (*g) (char **, int), char **p, ...)
3781
 
{
3782
 
  char *s;
3783
 
  va_list v;
3784
 
  va_start (v,p);
3785
 
  s = g (p, va_arg (v,int));
3786
 
  va_end (v);
3787
 
  return s;
3788
 
}
3789
 
 
3790
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3791
 
   function prototypes and stuff, but not '\xHH' hex character constants.
3792
 
   These don't provoke an error unfortunately, instead are silently treated
3793
 
   as 'x'.  The following induces an error, until -std is added to get
3794
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3795
 
   array size at least.  It's necessary to write '\x00'==0 to get something
3796
 
   that's true only with -std.  */
3797
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3798
 
 
3799
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3800
 
   inside strings and character constants.  */
3801
 
#define FOO(x) 'x'
3802
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3803
 
 
3804
 
int test (int i, double x);
3805
 
struct s1 {int (*f) (int a);};
3806
 
struct s2 {int (*f) (double a);};
3807
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3808
 
int argc;
3809
 
char **argv;
3810
 
int
3811
 
main ()
3812
 
{
3813
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3814
 
  ;
3815
 
  return 0;
3816
 
}
3817
 
_ACEOF
3818
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3819
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3820
 
do
3821
 
  CC="$ac_save_CC $ac_arg"
3822
 
  rm -f conftest.$ac_objext
3823
 
if { (ac_try="$ac_compile"
3824
 
case "(($ac_try" in
3825
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826
 
  *) ac_try_echo=$ac_try;;
3827
 
esac
3828
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3829
 
  (eval "$ac_compile") 2>conftest.er1
3830
 
  ac_status=$?
3831
 
  grep -v '^ *+' conftest.er1 >conftest.err
3832
 
  rm -f conftest.er1
3833
 
  cat conftest.err >&5
3834
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835
 
  (exit $ac_status); } && {
3836
 
         test -z "$ac_c_werror_flag" ||
3837
 
         test ! -s conftest.err
3838
 
       } && test -s conftest.$ac_objext; then
3839
 
  ac_cv_prog_cc_c89=$ac_arg
3840
 
else
3841
 
  echo "$as_me: failed program was:" >&5
3842
 
sed 's/^/| /' conftest.$ac_ext >&5
3843
 
 
3844
 
 
3845
 
fi
3846
 
 
3847
 
rm -f core conftest.err conftest.$ac_objext
3848
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3849
 
done
3850
 
rm -f conftest.$ac_ext
3851
 
CC=$ac_save_CC
3852
 
 
3853
 
fi
3854
 
# AC_CACHE_VAL
3855
 
case "x$ac_cv_prog_cc_c89" in
3856
 
  x)
3857
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3858
 
echo "${ECHO_T}none needed" >&6; } ;;
3859
 
  xno)
3860
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3861
 
echo "${ECHO_T}unsupported" >&6; } ;;
3862
 
  *)
3863
 
    CC="$CC $ac_cv_prog_cc_c89"
3864
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3865
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3866
 
esac
3867
 
 
3868
 
 
3869
 
ac_ext=cpp
3870
 
ac_cpp='$CXXCPP $CPPFLAGS'
3871
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3874
 
 
3875
 
depcc="$CC"   am_compiler_list=
3876
 
 
3877
 
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3878
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3879
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3880
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3881
 
else
3882
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3883
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3884
 
  # making bogus files that we don't know about and never remove.  For
3885
 
  # instance it was reported that on HP-UX the gcc test will end up
3886
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3887
 
  # in D'.
3888
 
  mkdir conftest.dir
3889
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3890
 
  # using a relative directory.
3891
 
  cp "$am_depcomp" conftest.dir
3892
 
  cd conftest.dir
3893
 
  # We will build objects and dependencies in a subdirectory because
3894
 
  # it helps to detect inapplicable dependency modes.  For instance
3895
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3896
 
  # side effect of compilation, but ICC will put the dependencies in
3897
 
  # the current directory while Tru64 will put them in the object
3898
 
  # directory.
3899
 
  mkdir sub
3900
 
 
3901
 
  am_cv_CC_dependencies_compiler_type=none
3902
 
  if test "$am_compiler_list" = ""; then
3903
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3904
 
  fi
3905
 
  for depmode in $am_compiler_list; do
3906
 
    # Setup a source with many dependencies, because some compilers
3907
 
    # like to wrap large dependency lists on column 80 (with \), and
3908
 
    # we should not choose a depcomp mode which is confused by this.
3909
 
    #
3910
 
    # We need to recreate these files for each test, as the compiler may
3911
 
    # overwrite some of them when testing with obscure command lines.
3912
 
    # This happens at least with the AIX C compiler.
3913
 
    : > sub/conftest.c
3914
 
    for i in 1 2 3 4 5 6; do
3915
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3916
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3917
 
      # Solaris 8's {/usr,}/bin/sh.
3918
 
      touch sub/conftst$i.h
3919
 
    done
3920
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3921
 
 
3922
 
    case $depmode in
3923
 
    nosideeffect)
3924
 
      # after this tag, mechanisms are not by side-effect, so they'll
3925
 
      # only be used when explicitly requested
3926
 
      if test "x$enable_dependency_tracking" = xyes; then
3927
 
        continue
3928
 
      else
3929
 
        break
3930
 
      fi
3931
 
      ;;
3932
 
    none) break ;;
3933
 
    esac
3934
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3935
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3936
 
    # handle `-M -o', and we need to detect this.
3937
 
    if depmode=$depmode \
3938
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3939
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3940
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3941
 
         >/dev/null 2>conftest.err &&
3942
 
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3943
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3944
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3945
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3946
 
      # icc doesn't choke on unknown options, it will just issue warnings
3947
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3948
 
      # that says an option was ignored or not supported.
3949
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3950
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3951
 
      # The diagnosis changed in icc 8.0:
3952
 
      #   icc: Command line remark: option '-MP' not supported
3953
 
      if (grep 'ignoring option' conftest.err ||
3954
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3955
 
        am_cv_CC_dependencies_compiler_type=$depmode
3956
 
        break
3957
 
      fi
3958
 
    fi
3959
 
  done
3960
 
 
3961
 
  cd ..
3962
 
  rm -rf conftest.dir
3963
 
else
3964
 
  am_cv_CC_dependencies_compiler_type=none
3965
 
fi
3966
 
 
3967
 
fi
3968
 
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3969
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3970
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3971
 
 
3972
 
 if
3973
 
  test "x$enable_dependency_tracking" != xno \
3974
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3975
 
  am__fastdepCC_TRUE=
3976
 
  am__fastdepCC_FALSE='#'
3977
 
else
3978
 
  am__fastdepCC_TRUE='#'
3979
 
  am__fastdepCC_FALSE=
3980
 
fi
3981
 
 
3982
 
 
3983
 
 
3984
 
 
3985
 
{ echo "$as_me:$LINENO: checking for C++ compiler vendor" >&5
3986
 
echo $ECHO_N "checking for C++ compiler vendor... $ECHO_C" >&6; }
3987
 
if test "${ax_cv_cxx_compiler_vendor+set}" = set; then
3988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3989
 
else
3990
 
  ax_cv_cxx_compiler_vendor=unknown
3991
 
  # note: don't check for gcc first since some other compilers define __GNUC__
3992
 
  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
3993
 
    vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
3994
 
    cat >conftest.$ac_ext <<_ACEOF
3995
 
/* confdefs.h.  */
3996
 
_ACEOF
3997
 
cat confdefs.h >>conftest.$ac_ext
3998
 
cat >>conftest.$ac_ext <<_ACEOF
3999
 
/* end confdefs.h.  */
4000
 
 
4001
 
int
4002
 
main ()
4003
 
{
4004
 
 
4005
 
#if !($vencpp)
4006
 
      thisisanerror;
4007
 
#endif
4008
 
 
4009
 
  ;
4010
 
  return 0;
4011
 
}
4012
 
_ACEOF
4013
 
rm -f conftest.$ac_objext
4014
 
if { (ac_try="$ac_compile"
4015
 
case "(($ac_try" in
4016
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4017
 
  *) ac_try_echo=$ac_try;;
4018
 
esac
4019
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4020
 
  (eval "$ac_compile") 2>conftest.er1
4021
 
  ac_status=$?
4022
 
  grep -v '^ *+' conftest.er1 >conftest.err
4023
 
  rm -f conftest.er1
4024
 
  cat conftest.err >&5
4025
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026
 
  (exit $ac_status); } && {
4027
 
         test -z "$ac_cxx_werror_flag" ||
4028
 
         test ! -s conftest.err
4029
 
       } && test -s conftest.$ac_objext; then
4030
 
  ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
4031
 
else
4032
 
  echo "$as_me: failed program was:" >&5
4033
 
sed 's/^/| /' conftest.$ac_ext >&5
4034
 
 
4035
 
 
4036
 
fi
4037
 
 
4038
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4039
 
  done
4040
 
 
4041
 
fi
4042
 
{ echo "$as_me:$LINENO: result: $ax_cv_cxx_compiler_vendor" >&5
4043
 
echo "${ECHO_T}$ax_cv_cxx_compiler_vendor" >&6; }
4044
 
 
4045
 
for ac_prog in gawk mawk nawk awk
4046
 
do
4047
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4048
 
set dummy $ac_prog; ac_word=$2
4049
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4050
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4051
 
if test "${ac_cv_prog_AWK+set}" = set; then
4052
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4053
 
else
4054
 
  if test -n "$AWK"; then
4055
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4056
 
else
4057
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058
 
for as_dir in $PATH
4059
 
do
4060
 
  IFS=$as_save_IFS
4061
 
  test -z "$as_dir" && as_dir=.
4062
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4063
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064
 
    ac_cv_prog_AWK="$ac_prog"
4065
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4066
 
    break 2
4067
 
  fi
4068
 
done
4069
 
done
4070
 
IFS=$as_save_IFS
4071
 
 
4072
 
fi
4073
 
fi
4074
 
AWK=$ac_cv_prog_AWK
4075
 
if test -n "$AWK"; then
4076
 
  { echo "$as_me:$LINENO: result: $AWK" >&5
4077
 
echo "${ECHO_T}$AWK" >&6; }
4078
 
else
4079
 
  { echo "$as_me:$LINENO: result: no" >&5
4080
 
echo "${ECHO_T}no" >&6; }
4081
 
fi
4082
 
 
4083
 
 
4084
 
  test -n "$AWK" && break
4085
 
done
4086
 
 
4087
 
# Find a good install program.  We prefer a C program (faster),
4088
 
# so one script is as good as another.  But avoid the broken or
4089
 
# incompatible versions:
4090
 
# SysV /etc/install, /usr/sbin/install
4091
 
# SunOS /usr/etc/install
4092
 
# IRIX /sbin/install
4093
 
# AIX /bin/install
4094
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
4095
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4096
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4097
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4098
 
# OS/2's system install, which has a completely different semantic
4099
 
# ./install, which can be erroneously created by make from ./install.sh.
4100
 
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4101
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4102
 
if test -z "$INSTALL"; then
4103
 
if test "${ac_cv_path_install+set}" = set; then
4104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4105
 
else
4106
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107
 
for as_dir in $PATH
4108
 
do
4109
 
  IFS=$as_save_IFS
4110
 
  test -z "$as_dir" && as_dir=.
4111
 
  # Account for people who put trailing slashes in PATH elements.
4112
 
case $as_dir/ in
4113
 
  ./ | .// | /cC/* | \
4114
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4115
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4116
 
  /usr/ucb/* ) ;;
4117
 
  *)
4118
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
4119
 
    # Don't use installbsd from OSF since it installs stuff as root
4120
 
    # by default.
4121
 
    for ac_prog in ginstall scoinst install; do
4122
 
      for ac_exec_ext in '' $ac_executable_extensions; do
4123
 
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4124
 
          if test $ac_prog = install &&
4125
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4126
 
            # AIX install.  It has an incompatible calling convention.
4127
 
            :
4128
 
          elif test $ac_prog = install &&
4129
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4130
 
            # program-specific install script used by HP pwplus--don't use.
4131
 
            :
4132
 
          else
4133
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4134
 
            break 3
4135
 
          fi
4136
 
        fi
4137
 
      done
4138
 
    done
4139
 
    ;;
4140
 
esac
4141
 
done
4142
 
IFS=$as_save_IFS
4143
 
 
4144
 
 
4145
 
fi
4146
 
  if test "${ac_cv_path_install+set}" = set; then
4147
 
    INSTALL=$ac_cv_path_install
4148
 
  else
4149
 
    # As a last resort, use the slow shell script.  Don't cache a
4150
 
    # value for INSTALL within a source directory, because that will
4151
 
    # break other packages using the cache if that directory is
4152
 
    # removed, or if the value is a relative name.
4153
 
    INSTALL=$ac_install_sh
4154
 
  fi
4155
 
fi
4156
 
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4157
 
echo "${ECHO_T}$INSTALL" >&6; }
4158
 
 
4159
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4160
 
# It thinks the first close brace ends the variable substitution.
4161
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4162
 
 
4163
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4164
 
 
4165
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4166
 
 
4167
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4168
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4169
 
LN_S=$as_ln_s
4170
 
if test "$LN_S" = "ln -s"; then
4171
 
  { echo "$as_me:$LINENO: result: yes" >&5
4172
 
echo "${ECHO_T}yes" >&6; }
4173
 
else
4174
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4175
 
echo "${ECHO_T}no, using $LN_S" >&6; }
4176
 
fi
4177
 
 
4178
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4179
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4180
 
if test "${ac_cv_c_const+set}" = set; then
4181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4182
 
else
4183
 
  cat >conftest.$ac_ext <<_ACEOF
4184
 
/* confdefs.h.  */
4185
 
_ACEOF
4186
 
cat confdefs.h >>conftest.$ac_ext
4187
 
cat >>conftest.$ac_ext <<_ACEOF
4188
 
/* end confdefs.h.  */
4189
 
 
4190
 
int
4191
 
main ()
4192
 
{
4193
 
/* FIXME: Include the comments suggested by Paul. */
4194
 
#ifndef __cplusplus
4195
 
  /* Ultrix mips cc rejects this.  */
4196
 
  typedef int charset[2];
4197
 
  const charset cs;
4198
 
  /* SunOS 4.1.1 cc rejects this.  */
4199
 
  char const *const *pcpcc;
4200
 
  char **ppc;
4201
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
4202
 
  struct point {int x, y;};
4203
 
  static struct point const zero = {0,0};
4204
 
  /* AIX XL C 1.02.0.0 rejects this.
4205
 
     It does not let you subtract one const X* pointer from another in
4206
 
     an arm of an if-expression whose if-part is not a constant
4207
 
     expression */
4208
 
  const char *g = "string";
4209
 
  pcpcc = &g + (g ? g-g : 0);
4210
 
  /* HPUX 7.0 cc rejects these. */
4211
 
  ++pcpcc;
4212
 
  ppc = (char**) pcpcc;
4213
 
  pcpcc = (char const *const *) ppc;
4214
 
  { /* SCO 3.2v4 cc rejects this.  */
4215
 
    char *t;
4216
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
4217
 
 
4218
 
    *t++ = 0;
4219
 
    if (s) return 0;
4220
 
  }
4221
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4222
 
    int x[] = {25, 17};
4223
 
    const int *foo = &x[0];
4224
 
    ++foo;
4225
 
  }
4226
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4227
 
    typedef const int *iptr;
4228
 
    iptr p = 0;
4229
 
    ++p;
4230
 
  }
4231
 
  { /* AIX XL C 1.02.0.0 rejects this saying
4232
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4233
 
    struct s { int j; const int *ap[3]; };
4234
 
    struct s *b; b->j = 5;
4235
 
  }
4236
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4237
 
    const int foo = 10;
4238
 
    if (!foo) return 0;
4239
 
  }
4240
 
  return !cs[0] && !zero.x;
4241
 
#endif
4242
 
 
4243
 
  ;
4244
 
  return 0;
4245
 
}
4246
 
_ACEOF
4247
 
rm -f conftest.$ac_objext
4248
 
if { (ac_try="$ac_compile"
4249
 
case "(($ac_try" in
4250
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251
 
  *) ac_try_echo=$ac_try;;
4252
 
esac
4253
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4254
 
  (eval "$ac_compile") 2>conftest.er1
4255
 
  ac_status=$?
4256
 
  grep -v '^ *+' conftest.er1 >conftest.err
4257
 
  rm -f conftest.er1
4258
 
  cat conftest.err >&5
4259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
 
  (exit $ac_status); } && {
4261
 
         test -z "$ac_cxx_werror_flag" ||
4262
 
         test ! -s conftest.err
4263
 
       } && test -s conftest.$ac_objext; then
4264
 
  ac_cv_c_const=yes
4265
 
else
4266
 
  echo "$as_me: failed program was:" >&5
4267
 
sed 's/^/| /' conftest.$ac_ext >&5
4268
 
 
4269
 
        ac_cv_c_const=no
4270
 
fi
4271
 
 
4272
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273
 
fi
4274
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4275
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
4276
 
if test $ac_cv_c_const = no; then
4277
 
 
4278
 
cat >>confdefs.h <<\_ACEOF
4279
 
#define const
4280
 
_ACEOF
4281
 
 
4282
 
fi
4283
 
 
4284
 
{ echo "$as_me:$LINENO: checking for inline" >&5
4285
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4286
 
if test "${ac_cv_c_inline+set}" = set; then
4287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4288
 
else
4289
 
  ac_cv_c_inline=no
4290
 
for ac_kw in inline __inline__ __inline; do
4291
 
  cat >conftest.$ac_ext <<_ACEOF
4292
 
/* confdefs.h.  */
4293
 
_ACEOF
4294
 
cat confdefs.h >>conftest.$ac_ext
4295
 
cat >>conftest.$ac_ext <<_ACEOF
4296
 
/* end confdefs.h.  */
4297
 
#ifndef __cplusplus
4298
 
typedef int foo_t;
4299
 
static $ac_kw foo_t static_foo () {return 0; }
4300
 
$ac_kw foo_t foo () {return 0; }
4301
 
#endif
4302
 
 
4303
 
_ACEOF
4304
 
rm -f conftest.$ac_objext
4305
 
if { (ac_try="$ac_compile"
4306
 
case "(($ac_try" in
4307
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308
 
  *) ac_try_echo=$ac_try;;
4309
 
esac
4310
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311
 
  (eval "$ac_compile") 2>conftest.er1
4312
 
  ac_status=$?
4313
 
  grep -v '^ *+' conftest.er1 >conftest.err
4314
 
  rm -f conftest.er1
4315
 
  cat conftest.err >&5
4316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317
 
  (exit $ac_status); } && {
4318
 
         test -z "$ac_cxx_werror_flag" ||
4319
 
         test ! -s conftest.err
4320
 
       } && test -s conftest.$ac_objext; then
4321
 
  ac_cv_c_inline=$ac_kw
4322
 
else
4323
 
  echo "$as_me: failed program was:" >&5
4324
 
sed 's/^/| /' conftest.$ac_ext >&5
4325
 
 
4326
 
 
4327
 
fi
4328
 
 
4329
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330
 
  test "$ac_cv_c_inline" != no && break
4331
 
done
4332
 
 
4333
 
fi
4334
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4335
 
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4336
 
 
4337
 
 
4338
 
case $ac_cv_c_inline in
4339
 
  inline | yes) ;;
4340
 
  *)
4341
 
    case $ac_cv_c_inline in
4342
 
      no) ac_val=;;
4343
 
      *) ac_val=$ac_cv_c_inline;;
4344
 
    esac
4345
 
    cat >>confdefs.h <<_ACEOF
4346
 
#ifndef __cplusplus
4347
 
#define inline $ac_val
4348
 
#endif
4349
 
_ACEOF
4350
 
    ;;
4351
 
esac
4352
 
 
4353
 
ac_ext=cpp
4354
 
ac_cpp='$CXXCPP $CPPFLAGS'
4355
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4358
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4359
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4360
 
if test -z "$CXXCPP"; then
4361
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4362
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4363
 
else
4364
 
      # Double quotes because CXXCPP needs to be expanded
4365
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
4366
 
    do
4367
 
      ac_preproc_ok=false
4368
 
for ac_cxx_preproc_warn_flag in '' yes
4369
 
do
4370
 
  # Use a header file that comes with gcc, so configuring glibc
4371
 
  # with a fresh cross-compiler works.
4372
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4373
 
  # <limits.h> exists even on freestanding compilers.
4374
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4375
 
  # not just through cpp. "Syntax error" is here to catch this case.
4376
 
  cat >conftest.$ac_ext <<_ACEOF
4377
 
/* confdefs.h.  */
4378
 
_ACEOF
4379
 
cat confdefs.h >>conftest.$ac_ext
4380
 
cat >>conftest.$ac_ext <<_ACEOF
4381
 
/* end confdefs.h.  */
4382
 
#ifdef __STDC__
4383
 
# include <limits.h>
4384
 
#else
4385
 
# include <assert.h>
4386
 
#endif
4387
 
                     Syntax error
4388
 
_ACEOF
4389
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4390
 
case "(($ac_try" in
4391
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392
 
  *) ac_try_echo=$ac_try;;
4393
 
esac
4394
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4395
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4396
 
  ac_status=$?
4397
 
  grep -v '^ *+' conftest.er1 >conftest.err
4398
 
  rm -f conftest.er1
4399
 
  cat conftest.err >&5
4400
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401
 
  (exit $ac_status); } >/dev/null && {
4402
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4403
 
         test ! -s conftest.err
4404
 
       }; then
4405
 
  :
4406
 
else
4407
 
  echo "$as_me: failed program was:" >&5
4408
 
sed 's/^/| /' conftest.$ac_ext >&5
4409
 
 
4410
 
  # Broken: fails on valid input.
4411
 
continue
4412
 
fi
4413
 
 
4414
 
rm -f conftest.err conftest.$ac_ext
4415
 
 
4416
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4417
 
  # can be detected and how.
4418
 
  cat >conftest.$ac_ext <<_ACEOF
4419
 
/* confdefs.h.  */
4420
 
_ACEOF
4421
 
cat confdefs.h >>conftest.$ac_ext
4422
 
cat >>conftest.$ac_ext <<_ACEOF
4423
 
/* end confdefs.h.  */
4424
 
#include <ac_nonexistent.h>
4425
 
_ACEOF
4426
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4427
 
case "(($ac_try" in
4428
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429
 
  *) ac_try_echo=$ac_try;;
4430
 
esac
4431
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4432
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4433
 
  ac_status=$?
4434
 
  grep -v '^ *+' conftest.er1 >conftest.err
4435
 
  rm -f conftest.er1
4436
 
  cat conftest.err >&5
4437
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438
 
  (exit $ac_status); } >/dev/null && {
4439
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4440
 
         test ! -s conftest.err
4441
 
       }; then
4442
 
  # Broken: success on invalid input.
4443
 
continue
4444
 
else
4445
 
  echo "$as_me: failed program was:" >&5
4446
 
sed 's/^/| /' conftest.$ac_ext >&5
4447
 
 
4448
 
  # Passes both tests.
4449
 
ac_preproc_ok=:
4450
 
break
4451
 
fi
4452
 
 
4453
 
rm -f conftest.err conftest.$ac_ext
4454
 
 
4455
 
done
4456
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4457
 
rm -f conftest.err conftest.$ac_ext
4458
 
if $ac_preproc_ok; then
4459
 
  break
4460
 
fi
4461
 
 
4462
 
    done
4463
 
    ac_cv_prog_CXXCPP=$CXXCPP
4464
 
 
4465
 
fi
4466
 
  CXXCPP=$ac_cv_prog_CXXCPP
4467
 
else
4468
 
  ac_cv_prog_CXXCPP=$CXXCPP
4469
 
fi
4470
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
4471
 
echo "${ECHO_T}$CXXCPP" >&6; }
4472
 
ac_preproc_ok=false
4473
 
for ac_cxx_preproc_warn_flag in '' yes
4474
 
do
4475
 
  # Use a header file that comes with gcc, so configuring glibc
4476
 
  # with a fresh cross-compiler works.
4477
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4478
 
  # <limits.h> exists even on freestanding compilers.
4479
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
4480
 
  # not just through cpp. "Syntax error" is here to catch this case.
4481
 
  cat >conftest.$ac_ext <<_ACEOF
4482
 
/* confdefs.h.  */
4483
 
_ACEOF
4484
 
cat confdefs.h >>conftest.$ac_ext
4485
 
cat >>conftest.$ac_ext <<_ACEOF
4486
 
/* end confdefs.h.  */
4487
 
#ifdef __STDC__
4488
 
# include <limits.h>
4489
 
#else
4490
 
# include <assert.h>
4491
 
#endif
4492
 
                     Syntax error
4493
 
_ACEOF
4494
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4495
 
case "(($ac_try" in
4496
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497
 
  *) ac_try_echo=$ac_try;;
4498
 
esac
4499
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4500
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4501
 
  ac_status=$?
4502
 
  grep -v '^ *+' conftest.er1 >conftest.err
4503
 
  rm -f conftest.er1
4504
 
  cat conftest.err >&5
4505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
 
  (exit $ac_status); } >/dev/null && {
4507
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4508
 
         test ! -s conftest.err
4509
 
       }; then
4510
 
  :
4511
 
else
4512
 
  echo "$as_me: failed program was:" >&5
4513
 
sed 's/^/| /' conftest.$ac_ext >&5
4514
 
 
4515
 
  # Broken: fails on valid input.
4516
 
continue
4517
 
fi
4518
 
 
4519
 
rm -f conftest.err conftest.$ac_ext
4520
 
 
4521
 
  # OK, works on sane cases.  Now check whether nonexistent headers
4522
 
  # can be detected and how.
4523
 
  cat >conftest.$ac_ext <<_ACEOF
4524
 
/* confdefs.h.  */
4525
 
_ACEOF
4526
 
cat confdefs.h >>conftest.$ac_ext
4527
 
cat >>conftest.$ac_ext <<_ACEOF
4528
 
/* end confdefs.h.  */
4529
 
#include <ac_nonexistent.h>
4530
 
_ACEOF
4531
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4532
 
case "(($ac_try" in
4533
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534
 
  *) ac_try_echo=$ac_try;;
4535
 
esac
4536
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4537
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4538
 
  ac_status=$?
4539
 
  grep -v '^ *+' conftest.er1 >conftest.err
4540
 
  rm -f conftest.er1
4541
 
  cat conftest.err >&5
4542
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543
 
  (exit $ac_status); } >/dev/null && {
4544
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4545
 
         test ! -s conftest.err
4546
 
       }; then
4547
 
  # Broken: success on invalid input.
4548
 
continue
4549
 
else
4550
 
  echo "$as_me: failed program was:" >&5
4551
 
sed 's/^/| /' conftest.$ac_ext >&5
4552
 
 
4553
 
  # Passes both tests.
4554
 
ac_preproc_ok=:
4555
 
break
4556
 
fi
4557
 
 
4558
 
rm -f conftest.err conftest.$ac_ext
4559
 
 
4560
 
done
4561
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4562
 
rm -f conftest.err conftest.$ac_ext
4563
 
if $ac_preproc_ok; then
4564
 
  :
4565
 
else
4566
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4567
 
See \`config.log' for more details." >&5
4568
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4569
 
See \`config.log' for more details." >&2;}
4570
 
   { (exit 1); exit 1; }; }
4571
 
fi
4572
 
 
4573
 
ac_ext=cpp
4574
 
ac_cpp='$CXXCPP $CPPFLAGS'
4575
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4576
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4577
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4578
 
 
4579
 
 
4580
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4581
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4582
 
if test "${ac_cv_path_GREP+set}" = set; then
4583
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4584
 
else
4585
 
  # Extract the first word of "grep ggrep" to use in msg output
4586
 
if test -z "$GREP"; then
4587
 
set dummy grep ggrep; ac_prog_name=$2
4588
 
if test "${ac_cv_path_GREP+set}" = set; then
4589
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4590
 
else
4591
 
  ac_path_GREP_found=false
4592
 
# Loop through the user's path and test for each of PROGNAME-LIST
4593
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595
 
do
4596
 
  IFS=$as_save_IFS
4597
 
  test -z "$as_dir" && as_dir=.
4598
 
  for ac_prog in grep ggrep; do
4599
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4600
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601
 
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602
 
    # Check for GNU ac_path_GREP and select it if it is found.
4603
 
  # Check for GNU $ac_path_GREP
4604
 
case `"$ac_path_GREP" --version 2>&1` in
4605
 
*GNU*)
4606
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607
 
*)
4608
 
  ac_count=0
4609
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4610
 
  while :
4611
 
  do
4612
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4613
 
    mv "conftest.tmp" "conftest.in"
4614
 
    cp "conftest.in" "conftest.nl"
4615
 
    echo 'GREP' >> "conftest.nl"
4616
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618
 
    ac_count=`expr $ac_count + 1`
4619
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620
 
      # Best one so far, save it but keep looking for a better one
4621
 
      ac_cv_path_GREP="$ac_path_GREP"
4622
 
      ac_path_GREP_max=$ac_count
4623
 
    fi
4624
 
    # 10*(2^10) chars as input seems more than enough
4625
 
    test $ac_count -gt 10 && break
4626
 
  done
4627
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628
 
esac
4629
 
 
4630
 
 
4631
 
    $ac_path_GREP_found && break 3
4632
 
  done
4633
 
done
4634
 
 
4635
 
done
4636
 
IFS=$as_save_IFS
4637
 
 
4638
 
 
4639
 
fi
4640
 
 
4641
 
GREP="$ac_cv_path_GREP"
4642
 
if test -z "$GREP"; then
4643
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4644
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4645
 
   { (exit 1); exit 1; }; }
4646
 
fi
4647
 
 
4648
 
else
4649
 
  ac_cv_path_GREP=$GREP
4650
 
fi
4651
 
 
4652
 
 
4653
 
fi
4654
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4655
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4656
 
 GREP="$ac_cv_path_GREP"
4657
 
 
4658
 
 
4659
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
4660
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4661
 
if test "${ac_cv_path_EGREP+set}" = set; then
4662
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4663
 
else
4664
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665
 
   then ac_cv_path_EGREP="$GREP -E"
4666
 
   else
4667
 
     # Extract the first word of "egrep" to use in msg output
4668
 
if test -z "$EGREP"; then
4669
 
set dummy egrep; ac_prog_name=$2
4670
 
if test "${ac_cv_path_EGREP+set}" = set; then
4671
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4672
 
else
4673
 
  ac_path_EGREP_found=false
4674
 
# Loop through the user's path and test for each of PROGNAME-LIST
4675
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4676
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4677
 
do
4678
 
  IFS=$as_save_IFS
4679
 
  test -z "$as_dir" && as_dir=.
4680
 
  for ac_prog in egrep; do
4681
 
  for ac_exec_ext in '' $ac_executable_extensions; do
4682
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4683
 
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4684
 
    # Check for GNU ac_path_EGREP and select it if it is found.
4685
 
  # Check for GNU $ac_path_EGREP
4686
 
case `"$ac_path_EGREP" --version 2>&1` in
4687
 
*GNU*)
4688
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4689
 
*)
4690
 
  ac_count=0
4691
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4692
 
  while :
4693
 
  do
4694
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4695
 
    mv "conftest.tmp" "conftest.in"
4696
 
    cp "conftest.in" "conftest.nl"
4697
 
    echo 'EGREP' >> "conftest.nl"
4698
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4699
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4700
 
    ac_count=`expr $ac_count + 1`
4701
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4702
 
      # Best one so far, save it but keep looking for a better one
4703
 
      ac_cv_path_EGREP="$ac_path_EGREP"
4704
 
      ac_path_EGREP_max=$ac_count
4705
 
    fi
4706
 
    # 10*(2^10) chars as input seems more than enough
4707
 
    test $ac_count -gt 10 && break
4708
 
  done
4709
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4710
 
esac
4711
 
 
4712
 
 
4713
 
    $ac_path_EGREP_found && break 3
4714
 
  done
4715
 
done
4716
 
 
4717
 
done
4718
 
IFS=$as_save_IFS
4719
 
 
4720
 
 
4721
 
fi
4722
 
 
4723
 
EGREP="$ac_cv_path_EGREP"
4724
 
if test -z "$EGREP"; then
4725
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4726
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4727
 
   { (exit 1); exit 1; }; }
4728
 
fi
4729
 
 
4730
 
else
4731
 
  ac_cv_path_EGREP=$EGREP
4732
 
fi
4733
 
 
4734
 
 
4735
 
   fi
4736
 
fi
4737
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4738
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4739
 
 EGREP="$ac_cv_path_EGREP"
4740
 
 
4741
 
 
4742
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4743
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4744
 
if test "${ac_cv_header_stdc+set}" = set; then
4745
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4746
 
else
4747
 
  cat >conftest.$ac_ext <<_ACEOF
4748
 
/* confdefs.h.  */
4749
 
_ACEOF
4750
 
cat confdefs.h >>conftest.$ac_ext
4751
 
cat >>conftest.$ac_ext <<_ACEOF
4752
 
/* end confdefs.h.  */
4753
 
#include <stdlib.h>
4754
 
#include <stdarg.h>
4755
 
#include <string.h>
4756
 
#include <float.h>
4757
 
 
4758
 
int
4759
 
main ()
4760
 
{
4761
 
 
4762
 
  ;
4763
 
  return 0;
4764
 
}
4765
 
_ACEOF
4766
 
rm -f conftest.$ac_objext
4767
 
if { (ac_try="$ac_compile"
4768
 
case "(($ac_try" in
4769
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770
 
  *) ac_try_echo=$ac_try;;
4771
 
esac
4772
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773
 
  (eval "$ac_compile") 2>conftest.er1
4774
 
  ac_status=$?
4775
 
  grep -v '^ *+' conftest.er1 >conftest.err
4776
 
  rm -f conftest.er1
4777
 
  cat conftest.err >&5
4778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
 
  (exit $ac_status); } && {
4780
 
         test -z "$ac_cxx_werror_flag" ||
4781
 
         test ! -s conftest.err
4782
 
       } && test -s conftest.$ac_objext; then
4783
 
  ac_cv_header_stdc=yes
4784
 
else
4785
 
  echo "$as_me: failed program was:" >&5
4786
 
sed 's/^/| /' conftest.$ac_ext >&5
4787
 
 
4788
 
        ac_cv_header_stdc=no
4789
 
fi
4790
 
 
4791
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792
 
 
4793
 
if test $ac_cv_header_stdc = yes; then
4794
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4795
 
  cat >conftest.$ac_ext <<_ACEOF
4796
 
/* confdefs.h.  */
4797
 
_ACEOF
4798
 
cat confdefs.h >>conftest.$ac_ext
4799
 
cat >>conftest.$ac_ext <<_ACEOF
4800
 
/* end confdefs.h.  */
4801
 
#include <string.h>
4802
 
 
4803
 
_ACEOF
4804
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4805
 
  $EGREP "memchr" >/dev/null 2>&1; then
4806
 
  :
4807
 
else
4808
 
  ac_cv_header_stdc=no
4809
 
fi
4810
 
rm -f conftest*
4811
 
 
4812
 
fi
4813
 
 
4814
 
if test $ac_cv_header_stdc = yes; then
4815
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4816
 
  cat >conftest.$ac_ext <<_ACEOF
4817
 
/* confdefs.h.  */
4818
 
_ACEOF
4819
 
cat confdefs.h >>conftest.$ac_ext
4820
 
cat >>conftest.$ac_ext <<_ACEOF
4821
 
/* end confdefs.h.  */
4822
 
#include <stdlib.h>
4823
 
 
4824
 
_ACEOF
4825
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826
 
  $EGREP "free" >/dev/null 2>&1; then
4827
 
  :
4828
 
else
4829
 
  ac_cv_header_stdc=no
4830
 
fi
4831
 
rm -f conftest*
4832
 
 
4833
 
fi
4834
 
 
4835
 
if test $ac_cv_header_stdc = yes; then
4836
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4837
 
  if test "$cross_compiling" = yes; then
4838
 
  :
4839
 
else
4840
 
  cat >conftest.$ac_ext <<_ACEOF
4841
 
/* confdefs.h.  */
4842
 
_ACEOF
4843
 
cat confdefs.h >>conftest.$ac_ext
4844
 
cat >>conftest.$ac_ext <<_ACEOF
4845
 
/* end confdefs.h.  */
4846
 
#include <ctype.h>
4847
 
#include <stdlib.h>
4848
 
#if ((' ' & 0x0FF) == 0x020)
4849
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4850
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4851
 
#else
4852
 
# define ISLOWER(c) \
4853
 
                   (('a' <= (c) && (c) <= 'i') \
4854
 
                     || ('j' <= (c) && (c) <= 'r') \
4855
 
                     || ('s' <= (c) && (c) <= 'z'))
4856
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4857
 
#endif
4858
 
 
4859
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4860
 
int
4861
 
main ()
4862
 
{
4863
 
  int i;
4864
 
  for (i = 0; i < 256; i++)
4865
 
    if (XOR (islower (i), ISLOWER (i))
4866
 
        || toupper (i) != TOUPPER (i))
4867
 
      return 2;
4868
 
  return 0;
4869
 
}
4870
 
_ACEOF
4871
 
rm -f conftest$ac_exeext
4872
 
if { (ac_try="$ac_link"
4873
 
case "(($ac_try" in
4874
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875
 
  *) ac_try_echo=$ac_try;;
4876
 
esac
4877
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878
 
  (eval "$ac_link") 2>&5
4879
 
  ac_status=$?
4880
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882
 
  { (case "(($ac_try" in
4883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884
 
  *) ac_try_echo=$ac_try;;
4885
 
esac
4886
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4887
 
  (eval "$ac_try") 2>&5
4888
 
  ac_status=$?
4889
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890
 
  (exit $ac_status); }; }; then
4891
 
  :
4892
 
else
4893
 
  echo "$as_me: program exited with status $ac_status" >&5
4894
 
echo "$as_me: failed program was:" >&5
4895
 
sed 's/^/| /' conftest.$ac_ext >&5
4896
 
 
4897
 
( exit $ac_status )
4898
 
ac_cv_header_stdc=no
4899
 
fi
4900
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4901
 
fi
4902
 
 
4903
 
 
4904
 
fi
4905
 
fi
4906
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4907
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4908
 
if test $ac_cv_header_stdc = yes; then
4909
 
 
4910
 
cat >>confdefs.h <<\_ACEOF
4911
 
#define STDC_HEADERS 1
4912
 
_ACEOF
4913
 
 
4914
 
fi
4915
 
 
4916
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4917
 
 
4918
 
 
4919
 
 
4920
 
 
4921
 
 
4922
 
 
4923
 
 
4924
 
 
4925
 
 
4926
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4927
 
                  inttypes.h stdint.h unistd.h
4928
 
do
4929
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4930
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4931
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4932
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4933
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4934
 
else
4935
 
  cat >conftest.$ac_ext <<_ACEOF
4936
 
/* confdefs.h.  */
4937
 
_ACEOF
4938
 
cat confdefs.h >>conftest.$ac_ext
4939
 
cat >>conftest.$ac_ext <<_ACEOF
4940
 
/* end confdefs.h.  */
4941
 
$ac_includes_default
4942
 
 
4943
 
#include <$ac_header>
4944
 
_ACEOF
4945
 
rm -f conftest.$ac_objext
4946
 
if { (ac_try="$ac_compile"
4947
 
case "(($ac_try" in
4948
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949
 
  *) ac_try_echo=$ac_try;;
4950
 
esac
4951
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952
 
  (eval "$ac_compile") 2>conftest.er1
4953
 
  ac_status=$?
4954
 
  grep -v '^ *+' conftest.er1 >conftest.err
4955
 
  rm -f conftest.er1
4956
 
  cat conftest.err >&5
4957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958
 
  (exit $ac_status); } && {
4959
 
         test -z "$ac_cxx_werror_flag" ||
4960
 
         test ! -s conftest.err
4961
 
       } && test -s conftest.$ac_objext; then
4962
 
  eval "$as_ac_Header=yes"
4963
 
else
4964
 
  echo "$as_me: failed program was:" >&5
4965
 
sed 's/^/| /' conftest.$ac_ext >&5
4966
 
 
4967
 
        eval "$as_ac_Header=no"
4968
 
fi
4969
 
 
4970
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971
 
fi
4972
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4973
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4974
 
echo "${ECHO_T}$ac_res" >&6; }
4975
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4976
 
  cat >>confdefs.h <<_ACEOF
4977
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4978
 
_ACEOF
4979
 
 
4980
 
fi
4981
 
 
4982
 
done
4983
 
 
4984
 
 
4985
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
4986
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4987
 
if test "${ac_cv_type_size_t+set}" = set; then
4988
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4989
 
else
4990
 
  cat >conftest.$ac_ext <<_ACEOF
4991
 
/* confdefs.h.  */
4992
 
_ACEOF
4993
 
cat confdefs.h >>conftest.$ac_ext
4994
 
cat >>conftest.$ac_ext <<_ACEOF
4995
 
/* end confdefs.h.  */
4996
 
$ac_includes_default
4997
 
typedef size_t ac__type_new_;
4998
 
int
4999
 
main ()
5000
 
{
5001
 
if ((ac__type_new_ *) 0)
5002
 
  return 0;
5003
 
if (sizeof (ac__type_new_))
5004
 
  return 0;
5005
 
  ;
5006
 
  return 0;
5007
 
}
5008
 
_ACEOF
5009
 
rm -f conftest.$ac_objext
5010
 
if { (ac_try="$ac_compile"
5011
 
case "(($ac_try" in
5012
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013
 
  *) ac_try_echo=$ac_try;;
5014
 
esac
5015
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016
 
  (eval "$ac_compile") 2>conftest.er1
5017
 
  ac_status=$?
5018
 
  grep -v '^ *+' conftest.er1 >conftest.err
5019
 
  rm -f conftest.er1
5020
 
  cat conftest.err >&5
5021
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022
 
  (exit $ac_status); } && {
5023
 
         test -z "$ac_cxx_werror_flag" ||
5024
 
         test ! -s conftest.err
5025
 
       } && test -s conftest.$ac_objext; then
5026
 
  ac_cv_type_size_t=yes
5027
 
else
5028
 
  echo "$as_me: failed program was:" >&5
5029
 
sed 's/^/| /' conftest.$ac_ext >&5
5030
 
 
5031
 
        ac_cv_type_size_t=no
5032
 
fi
5033
 
 
5034
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5035
 
fi
5036
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5037
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5038
 
if test $ac_cv_type_size_t = yes; then
5039
 
  :
5040
 
else
5041
 
 
5042
 
cat >>confdefs.h <<_ACEOF
5043
 
#define size_t unsigned int
5044
 
_ACEOF
5045
 
 
5046
 
fi
5047
 
 
5048
 
 
5049
 
# Test that the libtool executable is installed
5050
 
# Extract the first word of "libtool", so it can be a program name with args.
5051
 
set dummy libtool; ac_word=$2
5052
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5053
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5054
 
if test "${ac_cv_prog_libtool_found+set}" = set; then
5055
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5056
 
else
5057
 
  if test -n "$libtool_found"; then
5058
 
  ac_cv_prog_libtool_found="$libtool_found" # Let the user override the test.
5059
 
else
5060
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061
 
for as_dir in $PATH
5062
 
do
5063
 
  IFS=$as_save_IFS
5064
 
  test -z "$as_dir" && as_dir=.
5065
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5066
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5067
 
    ac_cv_prog_libtool_found="yes"
5068
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069
 
    break 2
5070
 
  fi
5071
 
done
5072
 
done
5073
 
IFS=$as_save_IFS
5074
 
 
5075
 
  test -z "$ac_cv_prog_libtool_found" && ac_cv_prog_libtool_found="no"
5076
 
fi
5077
 
fi
5078
 
libtool_found=$ac_cv_prog_libtool_found
5079
 
if test -n "$libtool_found"; then
5080
 
  { echo "$as_me:$LINENO: result: $libtool_found" >&5
5081
 
echo "${ECHO_T}$libtool_found" >&6; }
5082
 
else
5083
 
  { echo "$as_me:$LINENO: result: no" >&5
5084
 
echo "${ECHO_T}no" >&6; }
5085
 
fi
5086
 
 
5087
 
 
5088
 
if test $libtool_found = no; then
5089
 
    echo "*** Unable to find libtool."
5090
 
    echo "*** Perhaps you need to install the package libtool?"
5091
 
    exit 1
5092
 
fi
5093
 
 
5094
 
# Configure libtool
5095
 
# Check whether --enable-shared was given.
5096
 
if test "${enable_shared+set}" = set; then
5097
 
  enableval=$enable_shared; p=${PACKAGE-default}
5098
 
    case $enableval in
5099
 
    yes) enable_shared=yes ;;
5100
 
    no) enable_shared=no ;;
5101
 
    *)
5102
 
      enable_shared=no
5103
 
      # Look at the argument we got.  We use all the common list separators.
5104
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5105
 
      for pkg in $enableval; do
5106
 
        IFS="$lt_save_ifs"
5107
 
        if test "X$pkg" = "X$p"; then
5108
 
          enable_shared=yes
5109
 
        fi
5110
 
      done
5111
 
      IFS="$lt_save_ifs"
5112
 
      ;;
5113
 
    esac
5114
 
else
5115
 
  enable_shared=yes
5116
 
fi
5117
 
 
5118
 
 
5119
 
# Check whether --enable-static was given.
5120
 
if test "${enable_static+set}" = set; then
5121
 
  enableval=$enable_static; p=${PACKAGE-default}
5122
 
    case $enableval in
5123
 
    yes) enable_static=yes ;;
5124
 
    no) enable_static=no ;;
5125
 
    *)
5126
 
     enable_static=no
5127
 
      # Look at the argument we got.  We use all the common list separators.
5128
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5129
 
      for pkg in $enableval; do
5130
 
        IFS="$lt_save_ifs"
5131
 
        if test "X$pkg" = "X$p"; then
5132
 
          enable_static=yes
5133
 
        fi
5134
 
      done
5135
 
      IFS="$lt_save_ifs"
5136
 
      ;;
5137
 
    esac
5138
 
else
5139
 
  enable_static=yes
5140
 
fi
5141
 
 
5142
 
 
5143
 
# Check whether --enable-fast-install was given.
5144
 
if test "${enable_fast_install+set}" = set; then
5145
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
5146
 
    case $enableval in
5147
 
    yes) enable_fast_install=yes ;;
5148
 
    no) enable_fast_install=no ;;
5149
 
    *)
5150
 
      enable_fast_install=no
5151
 
      # Look at the argument we got.  We use all the common list separators.
5152
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5153
 
      for pkg in $enableval; do
5154
 
        IFS="$lt_save_ifs"
5155
 
        if test "X$pkg" = "X$p"; then
5156
 
          enable_fast_install=yes
5157
 
        fi
5158
 
      done
5159
 
      IFS="$lt_save_ifs"
5160
 
      ;;
5161
 
    esac
5162
 
else
5163
 
  enable_fast_install=yes
5164
 
fi
5165
 
 
5166
 
 
5167
 
# Make sure we can run config.sub.
5168
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5169
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5170
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5171
 
   { (exit 1); exit 1; }; }
5172
 
 
5173
 
{ echo "$as_me:$LINENO: checking build system type" >&5
5174
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5175
 
if test "${ac_cv_build+set}" = set; then
5176
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5177
 
else
5178
 
  ac_build_alias=$build_alias
5179
 
test "x$ac_build_alias" = x &&
5180
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5181
 
test "x$ac_build_alias" = x &&
5182
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5183
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5184
 
   { (exit 1); exit 1; }; }
5185
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5186
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5187
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5188
 
   { (exit 1); exit 1; }; }
5189
 
 
5190
 
fi
5191
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5192
 
echo "${ECHO_T}$ac_cv_build" >&6; }
5193
 
case $ac_cv_build in
5194
 
*-*-*) ;;
5195
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5196
 
echo "$as_me: error: invalid value of canonical build" >&2;}
5197
 
   { (exit 1); exit 1; }; };;
5198
 
esac
5199
 
build=$ac_cv_build
5200
 
ac_save_IFS=$IFS; IFS='-'
5201
 
set x $ac_cv_build
5202
 
shift
5203
 
build_cpu=$1
5204
 
build_vendor=$2
5205
 
shift; shift
5206
 
# Remember, the first character of IFS is used to create $*,
5207
 
# except with old shells:
5208
 
build_os=$*
5209
 
IFS=$ac_save_IFS
5210
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5211
 
 
5212
 
 
5213
 
{ echo "$as_me:$LINENO: checking host system type" >&5
5214
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5215
 
if test "${ac_cv_host+set}" = set; then
5216
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5217
 
else
5218
 
  if test "x$host_alias" = x; then
5219
 
  ac_cv_host=$ac_cv_build
5220
 
else
5221
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5222
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5223
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5224
 
   { (exit 1); exit 1; }; }
5225
 
fi
5226
 
 
5227
 
fi
5228
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5229
 
echo "${ECHO_T}$ac_cv_host" >&6; }
5230
 
case $ac_cv_host in
5231
 
*-*-*) ;;
5232
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5233
 
echo "$as_me: error: invalid value of canonical host" >&2;}
5234
 
   { (exit 1); exit 1; }; };;
5235
 
esac
5236
 
host=$ac_cv_host
5237
 
ac_save_IFS=$IFS; IFS='-'
5238
 
set x $ac_cv_host
5239
 
shift
5240
 
host_cpu=$1
5241
 
host_vendor=$2
5242
 
shift; shift
5243
 
# Remember, the first character of IFS is used to create $*,
5244
 
# except with old shells:
5245
 
host_os=$*
5246
 
IFS=$ac_save_IFS
5247
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5248
 
 
5249
 
 
5250
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5251
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5252
 
if test "${lt_cv_path_SED+set}" = set; then
5253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5254
 
else
5255
 
  # Loop through the user's path and test for sed and gsed.
5256
 
# Then use that list of sed's as ones to test for truncation.
5257
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258
 
for as_dir in $PATH
5259
 
do
5260
 
  IFS=$as_save_IFS
5261
 
  test -z "$as_dir" && as_dir=.
5262
 
  for lt_ac_prog in sed gsed; do
5263
 
    for ac_exec_ext in '' $ac_executable_extensions; do
5264
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5265
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5266
 
      fi
5267
 
    done
5268
 
  done
5269
 
done
5270
 
lt_ac_max=0
5271
 
lt_ac_count=0
5272
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
5273
 
# along with /bin/sed that truncates output.
5274
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5275
 
  test ! -f $lt_ac_sed && continue
5276
 
  cat /dev/null > conftest.in
5277
 
  lt_ac_count=0
5278
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5279
 
  # Check for GNU sed and select it if it is found.
5280
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5281
 
    lt_cv_path_SED=$lt_ac_sed
5282
 
    break
5283
 
  fi
5284
 
  while true; do
5285
 
    cat conftest.in conftest.in >conftest.tmp
5286
 
    mv conftest.tmp conftest.in
5287
 
    cp conftest.in conftest.nl
5288
 
    echo >>conftest.nl
5289
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5290
 
    cmp -s conftest.out conftest.nl || break
5291
 
    # 10000 chars as input seems more than enough
5292
 
    test $lt_ac_count -gt 10 && break
5293
 
    lt_ac_count=`expr $lt_ac_count + 1`
5294
 
    if test $lt_ac_count -gt $lt_ac_max; then
5295
 
      lt_ac_max=$lt_ac_count
5296
 
      lt_cv_path_SED=$lt_ac_sed
5297
 
    fi
5298
 
  done
5299
 
done
5300
 
 
5301
 
fi
5302
 
 
5303
 
SED=$lt_cv_path_SED
5304
 
{ echo "$as_me:$LINENO: result: $SED" >&5
5305
 
echo "${ECHO_T}$SED" >&6; }
5306
 
 
5307
 
 
5308
 
# Check whether --with-gnu-ld was given.
5309
 
if test "${with_gnu_ld+set}" = set; then
5310
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5311
 
else
5312
 
  with_gnu_ld=no
5313
 
fi
5314
 
 
5315
 
ac_prog=ld
5316
 
if test "$GCC" = yes; then
5317
 
  # Check if gcc -print-prog-name=ld gives a path.
5318
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5319
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5320
 
  case $host in
5321
 
  *-*-mingw*)
5322
 
    # gcc leaves a trailing carriage return which upsets mingw
5323
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5324
 
  *)
5325
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5326
 
  esac
5327
 
  case $ac_prog in
5328
 
    # Accept absolute paths.
5329
 
    [\\/]* | ?:[\\/]*)
5330
 
      re_direlt='/[^/][^/]*/\.\./'
5331
 
      # Canonicalize the pathname of ld
5332
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5333
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5334
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5335
 
      done
5336
 
      test -z "$LD" && LD="$ac_prog"
5337
 
      ;;
5338
 
  "")
5339
 
    # If it fails, then pretend we aren't using GCC.
5340
 
    ac_prog=ld
5341
 
    ;;
5342
 
  *)
5343
 
    # If it is relative, then search for the first ld in PATH.
5344
 
    with_gnu_ld=unknown
5345
 
    ;;
5346
 
  esac
5347
 
elif test "$with_gnu_ld" = yes; then
5348
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
5349
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5350
 
else
5351
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5352
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5353
 
fi
5354
 
if test "${lt_cv_path_LD+set}" = set; then
5355
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5356
 
else
5357
 
  if test -z "$LD"; then
5358
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5359
 
  for ac_dir in $PATH; do
5360
 
    IFS="$lt_save_ifs"
5361
 
    test -z "$ac_dir" && ac_dir=.
5362
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5363
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
5364
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
5365
 
      # but apparently some variants of GNU ld only accept -v.
5366
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
5367
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5368
 
      *GNU* | *'with BFD'*)
5369
 
        test "$with_gnu_ld" != no && break
5370
 
        ;;
5371
 
      *)
5372
 
        test "$with_gnu_ld" != yes && break
5373
 
        ;;
5374
 
      esac
5375
 
    fi
5376
 
  done
5377
 
  IFS="$lt_save_ifs"
5378
 
else
5379
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5380
 
fi
5381
 
fi
5382
 
 
5383
 
LD="$lt_cv_path_LD"
5384
 
if test -n "$LD"; then
5385
 
  { echo "$as_me:$LINENO: result: $LD" >&5
5386
 
echo "${ECHO_T}$LD" >&6; }
5387
 
else
5388
 
  { echo "$as_me:$LINENO: result: no" >&5
5389
 
echo "${ECHO_T}no" >&6; }
5390
 
fi
5391
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5392
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5393
 
   { (exit 1); exit 1; }; }
5394
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5395
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5396
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
5397
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5398
 
else
5399
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5400
 
case `$LD -v 2>&1 </dev/null` in
5401
 
*GNU* | *'with BFD'*)
5402
 
  lt_cv_prog_gnu_ld=yes
5403
 
  ;;
5404
 
*)
5405
 
  lt_cv_prog_gnu_ld=no
5406
 
  ;;
5407
 
esac
5408
 
fi
5409
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5410
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5411
 
with_gnu_ld=$lt_cv_prog_gnu_ld
5412
 
 
5413
 
 
5414
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5415
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5416
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
5417
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5418
 
else
5419
 
  lt_cv_ld_reload_flag='-r'
5420
 
fi
5421
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5422
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5423
 
reload_flag=$lt_cv_ld_reload_flag
5424
 
case $reload_flag in
5425
 
"" | " "*) ;;
5426
 
*) reload_flag=" $reload_flag" ;;
5427
 
esac
5428
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5429
 
case $host_os in
5430
 
  darwin*)
5431
 
    if test "$GCC" = yes; then
5432
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5433
 
    else
5434
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5435
 
    fi
5436
 
    ;;
5437
 
esac
5438
 
 
5439
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5440
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5441
 
if test "${lt_cv_path_NM+set}" = set; then
5442
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5443
 
else
5444
 
  if test -n "$NM"; then
5445
 
  # Let the user override the test.
5446
 
  lt_cv_path_NM="$NM"
5447
 
else
5448
 
  lt_nm_to_check="${ac_tool_prefix}nm"
5449
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5450
 
    lt_nm_to_check="$lt_nm_to_check nm"
5451
 
  fi
5452
 
  for lt_tmp_nm in $lt_nm_to_check; do
5453
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5454
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5455
 
      IFS="$lt_save_ifs"
5456
 
      test -z "$ac_dir" && ac_dir=.
5457
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
5458
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5459
 
        # Check to see if the nm accepts a BSD-compat flag.
5460
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5461
 
        #   nm: unknown option "B" ignored
5462
 
        # Tru64's nm complains that /dev/null is an invalid object file
5463
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5464
 
        */dev/null* | *'Invalid file or object type'*)
5465
 
          lt_cv_path_NM="$tmp_nm -B"
5466
 
          break
5467
 
          ;;
5468
 
        *)
5469
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5470
 
          */dev/null*)
5471
 
            lt_cv_path_NM="$tmp_nm -p"
5472
 
            break
5473
 
            ;;
5474
 
          *)
5475
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5476
 
            continue # so that we can try to find one that supports BSD flags
5477
 
            ;;
5478
 
          esac
5479
 
          ;;
5480
 
        esac
5481
 
      fi
5482
 
    done
5483
 
    IFS="$lt_save_ifs"
5484
 
  done
5485
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5486
 
fi
5487
 
fi
5488
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5489
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5490
 
NM="$lt_cv_path_NM"
5491
 
 
5492
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5493
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5494
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
5495
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5496
 
else
5497
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
5498
 
lt_cv_file_magic_test_file=
5499
 
lt_cv_deplibs_check_method='unknown'
5500
 
# Need to set the preceding variable on all platforms that support
5501
 
# interlibrary dependencies.
5502
 
# 'none' -- dependencies not supported.
5503
 
# `unknown' -- same as none, but documents that we really don't know.
5504
 
# 'pass_all' -- all dependencies passed with no checks.
5505
 
# 'test_compile' -- check by making test program.
5506
 
# 'file_magic [[regex]]' -- check by looking for files in library path
5507
 
# which responds to the $file_magic_cmd with a given extended regex.
5508
 
# If you have `file' or equivalent on your system and you're not sure
5509
 
# whether `pass_all' will *always* work, you probably want this one.
5510
 
 
5511
 
case $host_os in
5512
 
aix4* | aix5*)
5513
 
  lt_cv_deplibs_check_method=pass_all
5514
 
  ;;
5515
 
 
5516
 
beos*)
5517
 
  lt_cv_deplibs_check_method=pass_all
5518
 
  ;;
5519
 
 
5520
 
bsdi[45]*)
5521
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5522
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
5523
 
  lt_cv_file_magic_test_file=/shlib/libc.so
5524
 
  ;;
5525
 
 
5526
 
cygwin*)
5527
 
  # func_win32_libid is a shell function defined in ltmain.sh
5528
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5529
 
  lt_cv_file_magic_cmd='func_win32_libid'
5530
 
  ;;
5531
 
 
5532
 
mingw* | pw32*)
5533
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
5534
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5535
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5536
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
5537
 
  ;;
5538
 
 
5539
 
darwin* | rhapsody*)
5540
 
  lt_cv_deplibs_check_method=pass_all
5541
 
  ;;
5542
 
 
5543
 
freebsd* | kfreebsd*-gnu | dragonfly*)
5544
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5545
 
    case $host_cpu in
5546
 
    i*86 )
5547
 
      # Not sure whether the presence of OpenBSD here was a mistake.
5548
 
      # Let's accept both of them until this is cleared up.
5549
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5550
 
      lt_cv_file_magic_cmd=/usr/bin/file
5551
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5552
 
      ;;
5553
 
    esac
5554
 
  else
5555
 
    lt_cv_deplibs_check_method=pass_all
5556
 
  fi
5557
 
  ;;
5558
 
 
5559
 
gnu*)
5560
 
  lt_cv_deplibs_check_method=pass_all
5561
 
  ;;
5562
 
 
5563
 
hpux10.20* | hpux11*)
5564
 
  lt_cv_file_magic_cmd=/usr/bin/file
5565
 
  case $host_cpu in
5566
 
  ia64*)
5567
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5569
 
    ;;
5570
 
  hppa*64*)
5571
 
    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]'
5572
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5573
 
    ;;
5574
 
  *)
5575
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5576
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577
 
    ;;
5578
 
  esac
5579
 
  ;;
5580
 
 
5581
 
interix3*)
5582
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5584
 
  ;;
5585
 
 
5586
 
irix5* | irix6* | nonstopux*)
5587
 
  case $LD in
5588
 
  *-32|*"-32 ") libmagic=32-bit;;
5589
 
  *-n32|*"-n32 ") libmagic=N32;;
5590
 
  *-64|*"-64 ") libmagic=64-bit;;
5591
 
  *) libmagic=never-match;;
5592
 
  esac
5593
 
  lt_cv_deplibs_check_method=pass_all
5594
 
  ;;
5595
 
 
5596
 
# This must be Linux ELF.
5597
 
linux*)
5598
 
  lt_cv_deplibs_check_method=pass_all
5599
 
  ;;
5600
 
 
5601
 
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5602
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5603
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604
 
  else
5605
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606
 
  fi
5607
 
  ;;
5608
 
 
5609
 
newos6*)
5610
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611
 
  lt_cv_file_magic_cmd=/usr/bin/file
5612
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613
 
  ;;
5614
 
 
5615
 
nto-qnx*)
5616
 
  lt_cv_deplibs_check_method=unknown
5617
 
  ;;
5618
 
 
5619
 
openbsd*)
5620
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622
 
  else
5623
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624
 
  fi
5625
 
  ;;
5626
 
 
5627
 
osf3* | osf4* | osf5*)
5628
 
  lt_cv_deplibs_check_method=pass_all
5629
 
  ;;
5630
 
 
5631
 
solaris*)
5632
 
  lt_cv_deplibs_check_method=pass_all
5633
 
  ;;
5634
 
 
5635
 
sysv4 | sysv4.3*)
5636
 
  case $host_vendor in
5637
 
  motorola)
5638
 
    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]'
5639
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5640
 
    ;;
5641
 
  ncr)
5642
 
    lt_cv_deplibs_check_method=pass_all
5643
 
    ;;
5644
 
  sequent)
5645
 
    lt_cv_file_magic_cmd='/bin/file'
5646
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5647
 
    ;;
5648
 
  sni)
5649
 
    lt_cv_file_magic_cmd='/bin/file'
5650
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5651
 
    lt_cv_file_magic_test_file=/lib/libc.so
5652
 
    ;;
5653
 
  siemens)
5654
 
    lt_cv_deplibs_check_method=pass_all
5655
 
    ;;
5656
 
  pc)
5657
 
    lt_cv_deplibs_check_method=pass_all
5658
 
    ;;
5659
 
  esac
5660
 
  ;;
5661
 
 
5662
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5663
 
  lt_cv_deplibs_check_method=pass_all
5664
 
  ;;
5665
 
esac
5666
 
 
5667
 
fi
5668
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5669
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5670
 
file_magic_cmd=$lt_cv_file_magic_cmd
5671
 
deplibs_check_method=$lt_cv_deplibs_check_method
5672
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5673
 
 
5674
 
 
5675
 
 
5676
 
 
5677
 
# If no C compiler was specified, use CC.
5678
 
LTCC=${LTCC-"$CC"}
5679
 
 
5680
 
# If no C compiler flags were specified, use CFLAGS.
5681
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5682
 
 
5683
 
# Allow CC to be a program name with arguments.
5684
 
compiler=$CC
5685
 
 
5686
 
 
5687
 
# Check whether --enable-libtool-lock was given.
5688
 
if test "${enable_libtool_lock+set}" = set; then
5689
 
  enableval=$enable_libtool_lock;
5690
 
fi
5691
 
 
5692
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5693
 
 
5694
 
# Some flags need to be propagated to the compiler or linker for good
5695
 
# libtool support.
5696
 
case $host in
5697
 
ia64-*-hpux*)
5698
 
  # Find out which ABI we are using.
5699
 
  echo 'int i;' > conftest.$ac_ext
5700
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5701
 
  (eval $ac_compile) 2>&5
5702
 
  ac_status=$?
5703
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704
 
  (exit $ac_status); }; then
5705
 
    case `/usr/bin/file conftest.$ac_objext` in
5706
 
    *ELF-32*)
5707
 
      HPUX_IA64_MODE="32"
5708
 
      ;;
5709
 
    *ELF-64*)
5710
 
      HPUX_IA64_MODE="64"
5711
 
      ;;
5712
 
    esac
5713
 
  fi
5714
 
  rm -rf conftest*
5715
 
  ;;
5716
 
*-*-irix6*)
5717
 
  # Find out which ABI we are using.
5718
 
  echo '#line 5718 "configure"' > conftest.$ac_ext
5719
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5720
 
  (eval $ac_compile) 2>&5
5721
 
  ac_status=$?
5722
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723
 
  (exit $ac_status); }; then
5724
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
5725
 
    case `/usr/bin/file conftest.$ac_objext` in
5726
 
    *32-bit*)
5727
 
      LD="${LD-ld} -melf32bsmip"
5728
 
      ;;
5729
 
    *N32*)
5730
 
      LD="${LD-ld} -melf32bmipn32"
5731
 
      ;;
5732
 
    *64-bit*)
5733
 
      LD="${LD-ld} -melf64bmip"
5734
 
      ;;
5735
 
    esac
5736
 
   else
5737
 
    case `/usr/bin/file conftest.$ac_objext` in
5738
 
    *32-bit*)
5739
 
      LD="${LD-ld} -32"
5740
 
      ;;
5741
 
    *N32*)
5742
 
      LD="${LD-ld} -n32"
5743
 
      ;;
5744
 
    *64-bit*)
5745
 
      LD="${LD-ld} -64"
5746
 
      ;;
5747
 
    esac
5748
 
   fi
5749
 
  fi
5750
 
  rm -rf conftest*
5751
 
  ;;
5752
 
 
5753
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5754
 
  # Find out which ABI we are using.
5755
 
  echo 'int i;' > conftest.$ac_ext
5756
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5757
 
  (eval $ac_compile) 2>&5
5758
 
  ac_status=$?
5759
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760
 
  (exit $ac_status); }; then
5761
 
    case `/usr/bin/file conftest.o` in
5762
 
    *32-bit*)
5763
 
      case $host in
5764
 
        x86_64-*linux*)
5765
 
          LD="${LD-ld} -m elf_i386"
5766
 
          ;;
5767
 
        ppc64-*linux*|powerpc64-*linux*)
5768
 
          LD="${LD-ld} -m elf32ppclinux"
5769
 
          ;;
5770
 
        s390x-*linux*)
5771
 
          LD="${LD-ld} -m elf_s390"
5772
 
          ;;
5773
 
        sparc64-*linux*)
5774
 
          LD="${LD-ld} -m elf32_sparc"
5775
 
          ;;
5776
 
      esac
5777
 
      ;;
5778
 
    *64-bit*)
5779
 
      case $host in
5780
 
        x86_64-*linux*)
5781
 
          LD="${LD-ld} -m elf_x86_64"
5782
 
          ;;
5783
 
        ppc*-*linux*|powerpc*-*linux*)
5784
 
          LD="${LD-ld} -m elf64ppc"
5785
 
          ;;
5786
 
        s390*-*linux*)
5787
 
          LD="${LD-ld} -m elf64_s390"
5788
 
          ;;
5789
 
        sparc*-*linux*)
5790
 
          LD="${LD-ld} -m elf64_sparc"
5791
 
          ;;
5792
 
      esac
5793
 
      ;;
5794
 
    esac
5795
 
  fi
5796
 
  rm -rf conftest*
5797
 
  ;;
5798
 
 
5799
 
*-*-sco3.2v5*)
5800
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5801
 
  SAVE_CFLAGS="$CFLAGS"
5802
 
  CFLAGS="$CFLAGS -belf"
5803
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5804
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5805
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
5806
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5807
 
else
5808
 
  ac_ext=c
5809
 
ac_cpp='$CPP $CPPFLAGS'
5810
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
 
 
5814
 
     cat >conftest.$ac_ext <<_ACEOF
5815
 
/* confdefs.h.  */
5816
 
_ACEOF
5817
 
cat confdefs.h >>conftest.$ac_ext
5818
 
cat >>conftest.$ac_ext <<_ACEOF
5819
 
/* end confdefs.h.  */
5820
 
 
5821
 
int
5822
 
main ()
5823
 
{
5824
 
 
5825
 
  ;
5826
 
  return 0;
5827
 
}
5828
 
_ACEOF
5829
 
rm -f conftest.$ac_objext conftest$ac_exeext
5830
 
if { (ac_try="$ac_link"
5831
 
case "(($ac_try" in
5832
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833
 
  *) ac_try_echo=$ac_try;;
5834
 
esac
5835
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836
 
  (eval "$ac_link") 2>conftest.er1
5837
 
  ac_status=$?
5838
 
  grep -v '^ *+' conftest.er1 >conftest.err
5839
 
  rm -f conftest.er1
5840
 
  cat conftest.err >&5
5841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842
 
  (exit $ac_status); } && {
5843
 
         test -z "$ac_c_werror_flag" ||
5844
 
         test ! -s conftest.err
5845
 
       } && test -s conftest$ac_exeext &&
5846
 
       $as_test_x conftest$ac_exeext; then
5847
 
  lt_cv_cc_needs_belf=yes
5848
 
else
5849
 
  echo "$as_me: failed program was:" >&5
5850
 
sed 's/^/| /' conftest.$ac_ext >&5
5851
 
 
5852
 
        lt_cv_cc_needs_belf=no
5853
 
fi
5854
 
 
5855
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5856
 
      conftest$ac_exeext conftest.$ac_ext
5857
 
     ac_ext=c
5858
 
ac_cpp='$CPP $CPPFLAGS'
5859
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5862
 
 
5863
 
fi
5864
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5865
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5866
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5867
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5868
 
    CFLAGS="$SAVE_CFLAGS"
5869
 
  fi
5870
 
  ;;
5871
 
sparc*-*solaris*)
5872
 
  # Find out which ABI we are using.
5873
 
  echo 'int i;' > conftest.$ac_ext
5874
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5875
 
  (eval $ac_compile) 2>&5
5876
 
  ac_status=$?
5877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
 
  (exit $ac_status); }; then
5879
 
    case `/usr/bin/file conftest.o` in
5880
 
    *64-bit*)
5881
 
      case $lt_cv_prog_gnu_ld in
5882
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5883
 
      *)    LD="${LD-ld} -64" ;;
5884
 
      esac
5885
 
      ;;
5886
 
    esac
5887
 
  fi
5888
 
  rm -rf conftest*
5889
 
  ;;
5890
 
 
5891
 
 
5892
 
esac
5893
 
 
5894
 
need_locks="$enable_libtool_lock"
5895
 
 
5896
 
 
5897
 
ac_ext=c
5898
 
ac_cpp='$CPP $CPPFLAGS'
5899
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5902
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5903
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5904
 
# On Suns, sometimes $CPP names a directory.
5905
 
if test -n "$CPP" && test -d "$CPP"; then
5906
 
  CPP=
5907
 
fi
5908
 
if test -z "$CPP"; then
5909
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5910
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5911
 
else
5912
 
      # Double quotes because CPP needs to be expanded
5913
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5914
 
    do
5915
 
      ac_preproc_ok=false
5916
 
for ac_c_preproc_warn_flag in '' yes
5917
 
do
5918
 
  # Use a header file that comes with gcc, so configuring glibc
5919
 
  # with a fresh cross-compiler works.
5920
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921
 
  # <limits.h> exists even on freestanding compilers.
5922
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5923
 
  # not just through cpp. "Syntax error" is here to catch this case.
5924
 
  cat >conftest.$ac_ext <<_ACEOF
5925
 
/* confdefs.h.  */
5926
 
_ACEOF
5927
 
cat confdefs.h >>conftest.$ac_ext
5928
 
cat >>conftest.$ac_ext <<_ACEOF
5929
 
/* end confdefs.h.  */
5930
 
#ifdef __STDC__
5931
 
# include <limits.h>
5932
 
#else
5933
 
# include <assert.h>
5934
 
#endif
5935
 
                     Syntax error
5936
 
_ACEOF
5937
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5938
 
case "(($ac_try" in
5939
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5940
 
  *) ac_try_echo=$ac_try;;
5941
 
esac
5942
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5944
 
  ac_status=$?
5945
 
  grep -v '^ *+' conftest.er1 >conftest.err
5946
 
  rm -f conftest.er1
5947
 
  cat conftest.err >&5
5948
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949
 
  (exit $ac_status); } >/dev/null && {
5950
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5951
 
         test ! -s conftest.err
5952
 
       }; then
5953
 
  :
5954
 
else
5955
 
  echo "$as_me: failed program was:" >&5
5956
 
sed 's/^/| /' conftest.$ac_ext >&5
5957
 
 
5958
 
  # Broken: fails on valid input.
5959
 
continue
5960
 
fi
5961
 
 
5962
 
rm -f conftest.err conftest.$ac_ext
5963
 
 
5964
 
  # OK, works on sane cases.  Now check whether nonexistent headers
5965
 
  # can be detected and how.
5966
 
  cat >conftest.$ac_ext <<_ACEOF
5967
 
/* confdefs.h.  */
5968
 
_ACEOF
5969
 
cat confdefs.h >>conftest.$ac_ext
5970
 
cat >>conftest.$ac_ext <<_ACEOF
5971
 
/* end confdefs.h.  */
5972
 
#include <ac_nonexistent.h>
5973
 
_ACEOF
5974
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5975
 
case "(($ac_try" in
5976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977
 
  *) ac_try_echo=$ac_try;;
5978
 
esac
5979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5981
 
  ac_status=$?
5982
 
  grep -v '^ *+' conftest.er1 >conftest.err
5983
 
  rm -f conftest.er1
5984
 
  cat conftest.err >&5
5985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986
 
  (exit $ac_status); } >/dev/null && {
5987
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988
 
         test ! -s conftest.err
5989
 
       }; then
5990
 
  # Broken: success on invalid input.
5991
 
continue
5992
 
else
5993
 
  echo "$as_me: failed program was:" >&5
5994
 
sed 's/^/| /' conftest.$ac_ext >&5
5995
 
 
5996
 
  # Passes both tests.
5997
 
ac_preproc_ok=:
5998
 
break
5999
 
fi
6000
 
 
6001
 
rm -f conftest.err conftest.$ac_ext
6002
 
 
6003
 
done
6004
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6005
 
rm -f conftest.err conftest.$ac_ext
6006
 
if $ac_preproc_ok; then
6007
 
  break
6008
 
fi
6009
 
 
6010
 
    done
6011
 
    ac_cv_prog_CPP=$CPP
6012
 
 
6013
 
fi
6014
 
  CPP=$ac_cv_prog_CPP
6015
 
else
6016
 
  ac_cv_prog_CPP=$CPP
6017
 
fi
6018
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
6019
 
echo "${ECHO_T}$CPP" >&6; }
6020
 
ac_preproc_ok=false
6021
 
for ac_c_preproc_warn_flag in '' yes
6022
 
do
6023
 
  # Use a header file that comes with gcc, so configuring glibc
6024
 
  # with a fresh cross-compiler works.
6025
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6026
 
  # <limits.h> exists even on freestanding compilers.
6027
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6028
 
  # not just through cpp. "Syntax error" is here to catch this case.
6029
 
  cat >conftest.$ac_ext <<_ACEOF
6030
 
/* confdefs.h.  */
6031
 
_ACEOF
6032
 
cat confdefs.h >>conftest.$ac_ext
6033
 
cat >>conftest.$ac_ext <<_ACEOF
6034
 
/* end confdefs.h.  */
6035
 
#ifdef __STDC__
6036
 
# include <limits.h>
6037
 
#else
6038
 
# include <assert.h>
6039
 
#endif
6040
 
                     Syntax error
6041
 
_ACEOF
6042
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6043
 
case "(($ac_try" in
6044
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6045
 
  *) ac_try_echo=$ac_try;;
6046
 
esac
6047
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6048
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6049
 
  ac_status=$?
6050
 
  grep -v '^ *+' conftest.er1 >conftest.err
6051
 
  rm -f conftest.er1
6052
 
  cat conftest.err >&5
6053
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054
 
  (exit $ac_status); } >/dev/null && {
6055
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6056
 
         test ! -s conftest.err
6057
 
       }; then
6058
 
  :
6059
 
else
6060
 
  echo "$as_me: failed program was:" >&5
6061
 
sed 's/^/| /' conftest.$ac_ext >&5
6062
 
 
6063
 
  # Broken: fails on valid input.
6064
 
continue
6065
 
fi
6066
 
 
6067
 
rm -f conftest.err conftest.$ac_ext
6068
 
 
6069
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6070
 
  # can be detected and how.
6071
 
  cat >conftest.$ac_ext <<_ACEOF
6072
 
/* confdefs.h.  */
6073
 
_ACEOF
6074
 
cat confdefs.h >>conftest.$ac_ext
6075
 
cat >>conftest.$ac_ext <<_ACEOF
6076
 
/* end confdefs.h.  */
6077
 
#include <ac_nonexistent.h>
6078
 
_ACEOF
6079
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6080
 
case "(($ac_try" in
6081
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082
 
  *) ac_try_echo=$ac_try;;
6083
 
esac
6084
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6086
 
  ac_status=$?
6087
 
  grep -v '^ *+' conftest.er1 >conftest.err
6088
 
  rm -f conftest.er1
6089
 
  cat conftest.err >&5
6090
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091
 
  (exit $ac_status); } >/dev/null && {
6092
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093
 
         test ! -s conftest.err
6094
 
       }; then
6095
 
  # Broken: success on invalid input.
6096
 
continue
6097
 
else
6098
 
  echo "$as_me: failed program was:" >&5
6099
 
sed 's/^/| /' conftest.$ac_ext >&5
6100
 
 
6101
 
  # Passes both tests.
6102
 
ac_preproc_ok=:
6103
 
break
6104
 
fi
6105
 
 
6106
 
rm -f conftest.err conftest.$ac_ext
6107
 
 
6108
 
done
6109
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6110
 
rm -f conftest.err conftest.$ac_ext
6111
 
if $ac_preproc_ok; then
6112
 
  :
6113
 
else
6114
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6115
 
See \`config.log' for more details." >&5
6116
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6117
 
See \`config.log' for more details." >&2;}
6118
 
   { (exit 1); exit 1; }; }
6119
 
fi
6120
 
 
6121
 
ac_ext=c
6122
 
ac_cpp='$CPP $CPPFLAGS'
6123
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6124
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6125
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6126
 
 
6127
 
 
6128
 
 
6129
 
for ac_header in dlfcn.h
6130
 
do
6131
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6132
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6133
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
6134
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6135
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6136
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6137
 
fi
6138
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6139
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6140
 
echo "${ECHO_T}$ac_res" >&6; }
6141
 
else
6142
 
  # Is the header compilable?
6143
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6144
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6145
 
cat >conftest.$ac_ext <<_ACEOF
6146
 
/* confdefs.h.  */
6147
 
_ACEOF
6148
 
cat confdefs.h >>conftest.$ac_ext
6149
 
cat >>conftest.$ac_ext <<_ACEOF
6150
 
/* end confdefs.h.  */
6151
 
$ac_includes_default
6152
 
#include <$ac_header>
6153
 
_ACEOF
6154
 
rm -f conftest.$ac_objext
6155
 
if { (ac_try="$ac_compile"
6156
 
case "(($ac_try" in
6157
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6158
 
  *) ac_try_echo=$ac_try;;
6159
 
esac
6160
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6161
 
  (eval "$ac_compile") 2>conftest.er1
6162
 
  ac_status=$?
6163
 
  grep -v '^ *+' conftest.er1 >conftest.err
6164
 
  rm -f conftest.er1
6165
 
  cat conftest.err >&5
6166
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167
 
  (exit $ac_status); } && {
6168
 
         test -z "$ac_c_werror_flag" ||
6169
 
         test ! -s conftest.err
6170
 
       } && test -s conftest.$ac_objext; then
6171
 
  ac_header_compiler=yes
6172
 
else
6173
 
  echo "$as_me: failed program was:" >&5
6174
 
sed 's/^/| /' conftest.$ac_ext >&5
6175
 
 
6176
 
        ac_header_compiler=no
6177
 
fi
6178
 
 
6179
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6181
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
6182
 
 
6183
 
# Is the header present?
6184
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6185
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6186
 
cat >conftest.$ac_ext <<_ACEOF
6187
 
/* confdefs.h.  */
6188
 
_ACEOF
6189
 
cat confdefs.h >>conftest.$ac_ext
6190
 
cat >>conftest.$ac_ext <<_ACEOF
6191
 
/* end confdefs.h.  */
6192
 
#include <$ac_header>
6193
 
_ACEOF
6194
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6195
 
case "(($ac_try" in
6196
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197
 
  *) ac_try_echo=$ac_try;;
6198
 
esac
6199
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6201
 
  ac_status=$?
6202
 
  grep -v '^ *+' conftest.er1 >conftest.err
6203
 
  rm -f conftest.er1
6204
 
  cat conftest.err >&5
6205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206
 
  (exit $ac_status); } >/dev/null && {
6207
 
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6208
 
         test ! -s conftest.err
6209
 
       }; then
6210
 
  ac_header_preproc=yes
6211
 
else
6212
 
  echo "$as_me: failed program was:" >&5
6213
 
sed 's/^/| /' conftest.$ac_ext >&5
6214
 
 
6215
 
  ac_header_preproc=no
6216
 
fi
6217
 
 
6218
 
rm -f conftest.err conftest.$ac_ext
6219
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6220
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
6221
 
 
6222
 
# So?  What about this header?
6223
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6224
 
  yes:no: )
6225
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6226
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6227
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6228
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6229
 
    ac_header_preproc=yes
6230
 
    ;;
6231
 
  no:yes:* )
6232
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6233
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6234
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6235
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6236
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6237
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6238
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6239
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6240
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6241
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6242
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6243
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6244
 
    ( cat <<\_ASBOX
6245
 
## ---------------------------------------------- ##
6246
 
## Report this to http://www.fenics.org/bugzilla/ ##
6247
 
## ---------------------------------------------- ##
6248
 
_ASBOX
6249
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
6250
 
    ;;
6251
 
esac
6252
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6253
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6254
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6256
 
else
6257
 
  eval "$as_ac_Header=\$ac_header_preproc"
6258
 
fi
6259
 
ac_res=`eval echo '${'$as_ac_Header'}'`
6260
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
6261
 
echo "${ECHO_T}$ac_res" >&6; }
6262
 
 
6263
 
fi
6264
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
6265
 
  cat >>confdefs.h <<_ACEOF
6266
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267
 
_ACEOF
6268
 
 
6269
 
fi
6270
 
 
6271
 
done
6272
 
 
6273
 
 
6274
 
 
6275
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6276
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6277
 
    (test "X$CXX" != "Xg++"))) ; then
6278
 
  ac_ext=cpp
6279
 
ac_cpp='$CXXCPP $CPPFLAGS'
6280
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6281
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6282
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6283
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6284
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6285
 
if test -z "$CXXCPP"; then
6286
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6287
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6288
 
else
6289
 
      # Double quotes because CXXCPP needs to be expanded
6290
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6291
 
    do
6292
 
      ac_preproc_ok=false
6293
 
for ac_cxx_preproc_warn_flag in '' yes
6294
 
do
6295
 
  # Use a header file that comes with gcc, so configuring glibc
6296
 
  # with a fresh cross-compiler works.
6297
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6298
 
  # <limits.h> exists even on freestanding compilers.
6299
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6300
 
  # not just through cpp. "Syntax error" is here to catch this case.
6301
 
  cat >conftest.$ac_ext <<_ACEOF
6302
 
/* confdefs.h.  */
6303
 
_ACEOF
6304
 
cat confdefs.h >>conftest.$ac_ext
6305
 
cat >>conftest.$ac_ext <<_ACEOF
6306
 
/* end confdefs.h.  */
6307
 
#ifdef __STDC__
6308
 
# include <limits.h>
6309
 
#else
6310
 
# include <assert.h>
6311
 
#endif
6312
 
                     Syntax error
6313
 
_ACEOF
6314
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6315
 
case "(($ac_try" in
6316
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317
 
  *) ac_try_echo=$ac_try;;
6318
 
esac
6319
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321
 
  ac_status=$?
6322
 
  grep -v '^ *+' conftest.er1 >conftest.err
6323
 
  rm -f conftest.er1
6324
 
  cat conftest.err >&5
6325
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326
 
  (exit $ac_status); } >/dev/null && {
6327
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6328
 
         test ! -s conftest.err
6329
 
       }; then
6330
 
  :
6331
 
else
6332
 
  echo "$as_me: failed program was:" >&5
6333
 
sed 's/^/| /' conftest.$ac_ext >&5
6334
 
 
6335
 
  # Broken: fails on valid input.
6336
 
continue
6337
 
fi
6338
 
 
6339
 
rm -f conftest.err conftest.$ac_ext
6340
 
 
6341
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6342
 
  # can be detected and how.
6343
 
  cat >conftest.$ac_ext <<_ACEOF
6344
 
/* confdefs.h.  */
6345
 
_ACEOF
6346
 
cat confdefs.h >>conftest.$ac_ext
6347
 
cat >>conftest.$ac_ext <<_ACEOF
6348
 
/* end confdefs.h.  */
6349
 
#include <ac_nonexistent.h>
6350
 
_ACEOF
6351
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6352
 
case "(($ac_try" in
6353
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354
 
  *) ac_try_echo=$ac_try;;
6355
 
esac
6356
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6358
 
  ac_status=$?
6359
 
  grep -v '^ *+' conftest.er1 >conftest.err
6360
 
  rm -f conftest.er1
6361
 
  cat conftest.err >&5
6362
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363
 
  (exit $ac_status); } >/dev/null && {
6364
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6365
 
         test ! -s conftest.err
6366
 
       }; then
6367
 
  # Broken: success on invalid input.
6368
 
continue
6369
 
else
6370
 
  echo "$as_me: failed program was:" >&5
6371
 
sed 's/^/| /' conftest.$ac_ext >&5
6372
 
 
6373
 
  # Passes both tests.
6374
 
ac_preproc_ok=:
6375
 
break
6376
 
fi
6377
 
 
6378
 
rm -f conftest.err conftest.$ac_ext
6379
 
 
6380
 
done
6381
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6382
 
rm -f conftest.err conftest.$ac_ext
6383
 
if $ac_preproc_ok; then
6384
 
  break
6385
 
fi
6386
 
 
6387
 
    done
6388
 
    ac_cv_prog_CXXCPP=$CXXCPP
6389
 
 
6390
 
fi
6391
 
  CXXCPP=$ac_cv_prog_CXXCPP
6392
 
else
6393
 
  ac_cv_prog_CXXCPP=$CXXCPP
6394
 
fi
6395
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6396
 
echo "${ECHO_T}$CXXCPP" >&6; }
6397
 
ac_preproc_ok=false
6398
 
for ac_cxx_preproc_warn_flag in '' yes
6399
 
do
6400
 
  # Use a header file that comes with gcc, so configuring glibc
6401
 
  # with a fresh cross-compiler works.
6402
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6403
 
  # <limits.h> exists even on freestanding compilers.
6404
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6405
 
  # not just through cpp. "Syntax error" is here to catch this case.
6406
 
  cat >conftest.$ac_ext <<_ACEOF
6407
 
/* confdefs.h.  */
6408
 
_ACEOF
6409
 
cat confdefs.h >>conftest.$ac_ext
6410
 
cat >>conftest.$ac_ext <<_ACEOF
6411
 
/* end confdefs.h.  */
6412
 
#ifdef __STDC__
6413
 
# include <limits.h>
6414
 
#else
6415
 
# include <assert.h>
6416
 
#endif
6417
 
                     Syntax error
6418
 
_ACEOF
6419
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6420
 
case "(($ac_try" in
6421
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
 
  *) ac_try_echo=$ac_try;;
6423
 
esac
6424
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6426
 
  ac_status=$?
6427
 
  grep -v '^ *+' conftest.er1 >conftest.err
6428
 
  rm -f conftest.er1
6429
 
  cat conftest.err >&5
6430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431
 
  (exit $ac_status); } >/dev/null && {
6432
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6433
 
         test ! -s conftest.err
6434
 
       }; then
6435
 
  :
6436
 
else
6437
 
  echo "$as_me: failed program was:" >&5
6438
 
sed 's/^/| /' conftest.$ac_ext >&5
6439
 
 
6440
 
  # Broken: fails on valid input.
6441
 
continue
6442
 
fi
6443
 
 
6444
 
rm -f conftest.err conftest.$ac_ext
6445
 
 
6446
 
  # OK, works on sane cases.  Now check whether nonexistent headers
6447
 
  # can be detected and how.
6448
 
  cat >conftest.$ac_ext <<_ACEOF
6449
 
/* confdefs.h.  */
6450
 
_ACEOF
6451
 
cat confdefs.h >>conftest.$ac_ext
6452
 
cat >>conftest.$ac_ext <<_ACEOF
6453
 
/* end confdefs.h.  */
6454
 
#include <ac_nonexistent.h>
6455
 
_ACEOF
6456
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
6457
 
case "(($ac_try" in
6458
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6459
 
  *) ac_try_echo=$ac_try;;
6460
 
esac
6461
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6462
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6463
 
  ac_status=$?
6464
 
  grep -v '^ *+' conftest.er1 >conftest.err
6465
 
  rm -f conftest.er1
6466
 
  cat conftest.err >&5
6467
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468
 
  (exit $ac_status); } >/dev/null && {
6469
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6470
 
         test ! -s conftest.err
6471
 
       }; then
6472
 
  # Broken: success on invalid input.
6473
 
continue
6474
 
else
6475
 
  echo "$as_me: failed program was:" >&5
6476
 
sed 's/^/| /' conftest.$ac_ext >&5
6477
 
 
6478
 
  # Passes both tests.
6479
 
ac_preproc_ok=:
6480
 
break
6481
 
fi
6482
 
 
6483
 
rm -f conftest.err conftest.$ac_ext
6484
 
 
6485
 
done
6486
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6487
 
rm -f conftest.err conftest.$ac_ext
6488
 
if $ac_preproc_ok; then
6489
 
  :
6490
 
else
6491
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6492
 
See \`config.log' for more details." >&5
6493
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6494
 
See \`config.log' for more details." >&2;}
6495
 
   { (exit 1); exit 1; }; }
6496
 
fi
6497
 
 
6498
 
ac_ext=cpp
6499
 
ac_cpp='$CXXCPP $CPPFLAGS'
6500
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6501
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6502
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6503
 
 
6504
 
fi
6505
 
 
6506
 
ac_ext=f
6507
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6508
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6509
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6510
 
if test -n "$ac_tool_prefix"; then
6511
 
  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
6512
 
  do
6513
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6514
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6515
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6516
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6517
 
if test "${ac_cv_prog_F77+set}" = set; then
6518
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6519
 
else
6520
 
  if test -n "$F77"; then
6521
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6522
 
else
6523
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6524
 
for as_dir in $PATH
6525
 
do
6526
 
  IFS=$as_save_IFS
6527
 
  test -z "$as_dir" && as_dir=.
6528
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6529
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6530
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6531
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6532
 
    break 2
6533
 
  fi
6534
 
done
6535
 
done
6536
 
IFS=$as_save_IFS
6537
 
 
6538
 
fi
6539
 
fi
6540
 
F77=$ac_cv_prog_F77
6541
 
if test -n "$F77"; then
6542
 
  { echo "$as_me:$LINENO: result: $F77" >&5
6543
 
echo "${ECHO_T}$F77" >&6; }
6544
 
else
6545
 
  { echo "$as_me:$LINENO: result: no" >&5
6546
 
echo "${ECHO_T}no" >&6; }
6547
 
fi
6548
 
 
6549
 
 
6550
 
    test -n "$F77" && break
6551
 
  done
6552
 
fi
6553
 
if test -z "$F77"; then
6554
 
  ac_ct_F77=$F77
6555
 
  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
6556
 
do
6557
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6558
 
set dummy $ac_prog; ac_word=$2
6559
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6563
 
else
6564
 
  if test -n "$ac_ct_F77"; then
6565
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6566
 
else
6567
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568
 
for as_dir in $PATH
6569
 
do
6570
 
  IFS=$as_save_IFS
6571
 
  test -z "$as_dir" && as_dir=.
6572
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6573
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6575
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576
 
    break 2
6577
 
  fi
6578
 
done
6579
 
done
6580
 
IFS=$as_save_IFS
6581
 
 
6582
 
fi
6583
 
fi
6584
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6585
 
if test -n "$ac_ct_F77"; then
6586
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6587
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
6588
 
else
6589
 
  { echo "$as_me:$LINENO: result: no" >&5
6590
 
echo "${ECHO_T}no" >&6; }
6591
 
fi
6592
 
 
6593
 
 
6594
 
  test -n "$ac_ct_F77" && break
6595
 
done
6596
 
 
6597
 
  if test "x$ac_ct_F77" = x; then
6598
 
    F77=""
6599
 
  else
6600
 
    case $cross_compiling:$ac_tool_warned in
6601
 
yes:)
6602
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6603
 
whose name does not start with the host triplet.  If you think this
6604
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6605
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6606
 
whose name does not start with the host triplet.  If you think this
6607
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6608
 
ac_tool_warned=yes ;;
6609
 
esac
6610
 
    F77=$ac_ct_F77
6611
 
  fi
6612
 
fi
6613
 
 
6614
 
 
6615
 
# Provide some information about the compiler.
6616
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6617
 
ac_compiler=`set X $ac_compile; echo $2`
6618
 
{ (ac_try="$ac_compiler --version >&5"
6619
 
case "(($ac_try" in
6620
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621
 
  *) ac_try_echo=$ac_try;;
6622
 
esac
6623
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6624
 
  (eval "$ac_compiler --version >&5") 2>&5
6625
 
  ac_status=$?
6626
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627
 
  (exit $ac_status); }
6628
 
{ (ac_try="$ac_compiler -v >&5"
6629
 
case "(($ac_try" in
6630
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631
 
  *) ac_try_echo=$ac_try;;
6632
 
esac
6633
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6634
 
  (eval "$ac_compiler -v >&5") 2>&5
6635
 
  ac_status=$?
6636
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637
 
  (exit $ac_status); }
6638
 
{ (ac_try="$ac_compiler -V >&5"
6639
 
case "(($ac_try" in
6640
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641
 
  *) ac_try_echo=$ac_try;;
6642
 
esac
6643
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644
 
  (eval "$ac_compiler -V >&5") 2>&5
6645
 
  ac_status=$?
6646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647
 
  (exit $ac_status); }
6648
 
rm -f a.out
6649
 
 
6650
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6651
 
# input file.  (Note that this only needs to work for GNU compilers.)
6652
 
ac_save_ext=$ac_ext
6653
 
ac_ext=F
6654
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6655
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6656
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6658
 
else
6659
 
  cat >conftest.$ac_ext <<_ACEOF
6660
 
      program main
6661
 
#ifndef __GNUC__
6662
 
       choke me
6663
 
#endif
6664
 
 
6665
 
      end
6666
 
_ACEOF
6667
 
rm -f conftest.$ac_objext
6668
 
if { (ac_try="$ac_compile"
6669
 
case "(($ac_try" in
6670
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671
 
  *) ac_try_echo=$ac_try;;
6672
 
esac
6673
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674
 
  (eval "$ac_compile") 2>conftest.er1
6675
 
  ac_status=$?
6676
 
  grep -v '^ *+' conftest.er1 >conftest.err
6677
 
  rm -f conftest.er1
6678
 
  cat conftest.err >&5
6679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680
 
  (exit $ac_status); } && {
6681
 
         test -z "$ac_f77_werror_flag" ||
6682
 
         test ! -s conftest.err
6683
 
       } && test -s conftest.$ac_objext; then
6684
 
  ac_compiler_gnu=yes
6685
 
else
6686
 
  echo "$as_me: failed program was:" >&5
6687
 
sed 's/^/| /' conftest.$ac_ext >&5
6688
 
 
6689
 
        ac_compiler_gnu=no
6690
 
fi
6691
 
 
6692
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6693
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6694
 
 
6695
 
fi
6696
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6697
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6698
 
ac_ext=$ac_save_ext
6699
 
ac_test_FFLAGS=${FFLAGS+set}
6700
 
ac_save_FFLAGS=$FFLAGS
6701
 
FFLAGS=
6702
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6703
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6704
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6705
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6706
 
else
6707
 
  FFLAGS=-g
6708
 
cat >conftest.$ac_ext <<_ACEOF
6709
 
      program main
6710
 
 
6711
 
      end
6712
 
_ACEOF
6713
 
rm -f conftest.$ac_objext
6714
 
if { (ac_try="$ac_compile"
6715
 
case "(($ac_try" in
6716
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717
 
  *) ac_try_echo=$ac_try;;
6718
 
esac
6719
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720
 
  (eval "$ac_compile") 2>conftest.er1
6721
 
  ac_status=$?
6722
 
  grep -v '^ *+' conftest.er1 >conftest.err
6723
 
  rm -f conftest.er1
6724
 
  cat conftest.err >&5
6725
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726
 
  (exit $ac_status); } && {
6727
 
         test -z "$ac_f77_werror_flag" ||
6728
 
         test ! -s conftest.err
6729
 
       } && test -s conftest.$ac_objext; then
6730
 
  ac_cv_prog_f77_g=yes
6731
 
else
6732
 
  echo "$as_me: failed program was:" >&5
6733
 
sed 's/^/| /' conftest.$ac_ext >&5
6734
 
 
6735
 
        ac_cv_prog_f77_g=no
6736
 
fi
6737
 
 
6738
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739
 
 
6740
 
fi
6741
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6742
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6743
 
if test "$ac_test_FFLAGS" = set; then
6744
 
  FFLAGS=$ac_save_FFLAGS
6745
 
elif test $ac_cv_prog_f77_g = yes; then
6746
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6747
 
    FFLAGS="-g -O2"
6748
 
  else
6749
 
    FFLAGS="-g"
6750
 
  fi
6751
 
else
6752
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6753
 
    FFLAGS="-O2"
6754
 
  else
6755
 
    FFLAGS=
6756
 
  fi
6757
 
fi
6758
 
 
6759
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6760
 
ac_ext=cpp
6761
 
ac_cpp='$CXXCPP $CPPFLAGS'
6762
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6763
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6764
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6765
 
 
6766
 
 
6767
 
 
6768
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6769
 
 
6770
 
# find the maximum length of command line arguments
6771
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6772
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6773
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6774
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6775
 
else
6776
 
    i=0
6777
 
  teststring="ABCD"
6778
 
 
6779
 
  case $build_os in
6780
 
  msdosdjgpp*)
6781
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6782
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6783
 
    # during glob expansion).  Even if it were fixed, the result of this
6784
 
    # check would be larger than it should be.
6785
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6786
 
    ;;
6787
 
 
6788
 
  gnu*)
6789
 
    # Under GNU Hurd, this test is not required because there is
6790
 
    # no limit to the length of command line arguments.
6791
 
    # Libtool will interpret -1 as no limit whatsoever
6792
 
    lt_cv_sys_max_cmd_len=-1;
6793
 
    ;;
6794
 
 
6795
 
  cygwin* | mingw*)
6796
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6797
 
    # about 5 minutes as the teststring grows exponentially.
6798
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6799
 
    # you end up with a "frozen" computer, even though with patience
6800
 
    # the test eventually succeeds (with a max line length of 256k).
6801
 
    # Instead, let's just punt: use the minimum linelength reported by
6802
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6803
 
    lt_cv_sys_max_cmd_len=8192;
6804
 
    ;;
6805
 
 
6806
 
  amigaos*)
6807
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6808
 
    # So we just punt and use a minimum line length of 8192.
6809
 
    lt_cv_sys_max_cmd_len=8192;
6810
 
    ;;
6811
 
 
6812
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6813
 
    # This has been around since 386BSD, at least.  Likely further.
6814
 
    if test -x /sbin/sysctl; then
6815
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6816
 
    elif test -x /usr/sbin/sysctl; then
6817
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6818
 
    else
6819
 
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6820
 
    fi
6821
 
    # And add a safety zone
6822
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6823
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6824
 
    ;;
6825
 
 
6826
 
  interix*)
6827
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6828
 
    lt_cv_sys_max_cmd_len=196608
6829
 
    ;;
6830
 
 
6831
 
  osf*)
6832
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6833
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6834
 
    # nice to cause kernel panics so lets avoid the loop below.
6835
 
    # First set a reasonable default.
6836
 
    lt_cv_sys_max_cmd_len=16384
6837
 
    #
6838
 
    if test -x /sbin/sysconfig; then
6839
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6840
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6841
 
      esac
6842
 
    fi
6843
 
    ;;
6844
 
  sco3.2v5*)
6845
 
    lt_cv_sys_max_cmd_len=102400
6846
 
    ;;
6847
 
  sysv5* | sco5v6* | sysv4.2uw2*)
6848
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6849
 
    if test -n "$kargmax"; then
6850
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6851
 
    else
6852
 
      lt_cv_sys_max_cmd_len=32768
6853
 
    fi
6854
 
    ;;
6855
 
  *)
6856
 
    # If test is not a shell built-in, we'll probably end up computing a
6857
 
    # maximum length that is only half of the actual maximum length, but
6858
 
    # we can't tell.
6859
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6860
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6861
 
               = "XX$teststring") >/dev/null 2>&1 &&
6862
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6863
 
            lt_cv_sys_max_cmd_len=$new_result &&
6864
 
            test $i != 17 # 1/2 MB should be enough
6865
 
    do
6866
 
      i=`expr $i + 1`
6867
 
      teststring=$teststring$teststring
6868
 
    done
6869
 
    teststring=
6870
 
    # Add a significant safety factor because C++ compilers can tack on massive
6871
 
    # amounts of additional arguments before passing them to the linker.
6872
 
    # It appears as though 1/2 is a usable value.
6873
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6874
 
    ;;
6875
 
  esac
6876
 
 
6877
 
fi
6878
 
 
6879
 
if test -n $lt_cv_sys_max_cmd_len ; then
6880
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6881
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6882
 
else
6883
 
  { echo "$as_me:$LINENO: result: none" >&5
6884
 
echo "${ECHO_T}none" >&6; }
6885
 
fi
6886
 
 
6887
 
 
6888
 
 
6889
 
 
6890
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6891
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6892
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6893
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6894
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6895
 
else
6896
 
 
6897
 
# These are sane defaults that work on at least a few old systems.
6898
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6899
 
 
6900
 
# Character class describing NM global symbol codes.
6901
 
symcode='[BCDEGRST]'
6902
 
 
6903
 
# Regexp to match symbols that can be accessed directly from C.
6904
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6905
 
 
6906
 
# Transform an extracted symbol line into a proper C declaration
6907
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6908
 
 
6909
 
# Transform an extracted symbol line into symbol name and symbol address
6910
 
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'"
6911
 
 
6912
 
# Define system-specific variables.
6913
 
case $host_os in
6914
 
aix*)
6915
 
  symcode='[BCDT]'
6916
 
  ;;
6917
 
cygwin* | mingw* | pw32*)
6918
 
  symcode='[ABCDGISTW]'
6919
 
  ;;
6920
 
hpux*) # Its linker distinguishes data from code symbols
6921
 
  if test "$host_cpu" = ia64; then
6922
 
    symcode='[ABCDEGRST]'
6923
 
  fi
6924
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6925
 
  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'"
6926
 
  ;;
6927
 
linux*)
6928
 
  if test "$host_cpu" = ia64; then
6929
 
    symcode='[ABCDGIRSTW]'
6930
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6931
 
    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'"
6932
 
  fi
6933
 
  ;;
6934
 
irix* | nonstopux*)
6935
 
  symcode='[BCDEGRST]'
6936
 
  ;;
6937
 
osf*)
6938
 
  symcode='[BCDEGQRST]'
6939
 
  ;;
6940
 
solaris*)
6941
 
  symcode='[BDRT]'
6942
 
  ;;
6943
 
sco3.2v5*)
6944
 
  symcode='[DT]'
6945
 
  ;;
6946
 
sysv4.2uw2*)
6947
 
  symcode='[DT]'
6948
 
  ;;
6949
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6950
 
  symcode='[ABDT]'
6951
 
  ;;
6952
 
sysv4)
6953
 
  symcode='[DFNSTU]'
6954
 
  ;;
6955
 
esac
6956
 
 
6957
 
# Handle CRLF in mingw tool chain
6958
 
opt_cr=
6959
 
case $build_os in
6960
 
mingw*)
6961
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6962
 
  ;;
6963
 
esac
6964
 
 
6965
 
# If we're using GNU nm, then use its standard symbol codes.
6966
 
case `$NM -V 2>&1` in
6967
 
*GNU* | *'with BFD'*)
6968
 
  symcode='[ABCDGIRSTW]' ;;
6969
 
esac
6970
 
 
6971
 
# Try without a prefix undercore, then with it.
6972
 
for ac_symprfx in "" "_"; do
6973
 
 
6974
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6975
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6976
 
 
6977
 
  # Write the raw and C identifiers.
6978
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6979
 
 
6980
 
  # Check to see that the pipe works correctly.
6981
 
  pipe_works=no
6982
 
 
6983
 
  rm -f conftest*
6984
 
  cat > conftest.$ac_ext <<EOF
6985
 
#ifdef __cplusplus
6986
 
extern "C" {
6987
 
#endif
6988
 
char nm_test_var;
6989
 
void nm_test_func(){}
6990
 
#ifdef __cplusplus
6991
 
}
6992
 
#endif
6993
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6994
 
EOF
6995
 
 
6996
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6997
 
  (eval $ac_compile) 2>&5
6998
 
  ac_status=$?
6999
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
 
  (exit $ac_status); }; then
7001
 
    # Now try to grab the symbols.
7002
 
    nlist=conftest.nm
7003
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7004
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7005
 
  ac_status=$?
7006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007
 
  (exit $ac_status); } && test -s "$nlist"; then
7008
 
      # Try sorting and uniquifying the output.
7009
 
      if sort "$nlist" | uniq > "$nlist"T; then
7010
 
        mv -f "$nlist"T "$nlist"
7011
 
      else
7012
 
        rm -f "$nlist"T
7013
 
      fi
7014
 
 
7015
 
      # Make sure that we snagged all the symbols we need.
7016
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
7017
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
7018
 
          cat <<EOF > conftest.$ac_ext
7019
 
#ifdef __cplusplus
7020
 
extern "C" {
7021
 
#endif
7022
 
 
7023
 
EOF
7024
 
          # Now generate the symbol file.
7025
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7026
 
 
7027
 
          cat <<EOF >> conftest.$ac_ext
7028
 
#if defined (__STDC__) && __STDC__
7029
 
# define lt_ptr_t void *
7030
 
#else
7031
 
# define lt_ptr_t char *
7032
 
# define const
7033
 
#endif
7034
 
 
7035
 
/* The mapping between symbol names and symbols. */
7036
 
const struct {
7037
 
  const char *name;
7038
 
  lt_ptr_t address;
7039
 
}
7040
 
lt_preloaded_symbols[] =
7041
 
{
7042
 
EOF
7043
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7044
 
          cat <<\EOF >> conftest.$ac_ext
7045
 
  {0, (lt_ptr_t) 0}
7046
 
};
7047
 
 
7048
 
#ifdef __cplusplus
7049
 
}
7050
 
#endif
7051
 
EOF
7052
 
          # Now try linking the two files.
7053
 
          mv conftest.$ac_objext conftstm.$ac_objext
7054
 
          lt_save_LIBS="$LIBS"
7055
 
          lt_save_CFLAGS="$CFLAGS"
7056
 
          LIBS="conftstm.$ac_objext"
7057
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7058
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059
 
  (eval $ac_link) 2>&5
7060
 
  ac_status=$?
7061
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
7063
 
            pipe_works=yes
7064
 
          fi
7065
 
          LIBS="$lt_save_LIBS"
7066
 
          CFLAGS="$lt_save_CFLAGS"
7067
 
        else
7068
 
          echo "cannot find nm_test_func in $nlist" >&5
7069
 
        fi
7070
 
      else
7071
 
        echo "cannot find nm_test_var in $nlist" >&5
7072
 
      fi
7073
 
    else
7074
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7075
 
    fi
7076
 
  else
7077
 
    echo "$progname: failed program was:" >&5
7078
 
    cat conftest.$ac_ext >&5
7079
 
  fi
7080
 
  rm -f conftest* conftst*
7081
 
 
7082
 
  # Do not use the global_symbol_pipe unless it works.
7083
 
  if test "$pipe_works" = yes; then
7084
 
    break
7085
 
  else
7086
 
    lt_cv_sys_global_symbol_pipe=
7087
 
  fi
7088
 
done
7089
 
 
7090
 
fi
7091
 
 
7092
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7093
 
  lt_cv_sys_global_symbol_to_cdecl=
7094
 
fi
7095
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7096
 
  { echo "$as_me:$LINENO: result: failed" >&5
7097
 
echo "${ECHO_T}failed" >&6; }
7098
 
else
7099
 
  { echo "$as_me:$LINENO: result: ok" >&5
7100
 
echo "${ECHO_T}ok" >&6; }
7101
 
fi
7102
 
 
7103
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
7104
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7105
 
if test "${lt_cv_objdir+set}" = set; then
7106
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7107
 
else
7108
 
  rm -f .libs 2>/dev/null
7109
 
mkdir .libs 2>/dev/null
7110
 
if test -d .libs; then
7111
 
  lt_cv_objdir=.libs
7112
 
else
7113
 
  # MS-DOS does not allow filenames that begin with a dot.
7114
 
  lt_cv_objdir=_libs
7115
 
fi
7116
 
rmdir .libs 2>/dev/null
7117
 
fi
7118
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7119
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7120
 
objdir=$lt_cv_objdir
7121
 
 
7122
 
 
7123
 
 
7124
 
 
7125
 
 
7126
 
case $host_os in
7127
 
aix3*)
7128
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
7129
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
7130
 
  # vanish in a puff of smoke.
7131
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
7132
 
    COLLECT_NAMES=
7133
 
    export COLLECT_NAMES
7134
 
  fi
7135
 
  ;;
7136
 
esac
7137
 
 
7138
 
# Sed substitution that helps us do robust quoting.  It backslashifies
7139
 
# metacharacters that are still active within double-quoted strings.
7140
 
Xsed='sed -e 1s/^X//'
7141
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7142
 
 
7143
 
# Same as above, but do not quote variable references.
7144
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7145
 
 
7146
 
# Sed substitution to delay expansion of an escaped shell variable in a
7147
 
# double_quote_subst'ed string.
7148
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7149
 
 
7150
 
# Sed substitution to avoid accidental globbing in evaled expressions
7151
 
no_glob_subst='s/\*/\\\*/g'
7152
 
 
7153
 
# Constants:
7154
 
rm="rm -f"
7155
 
 
7156
 
# Global variables:
7157
 
default_ofile=libtool
7158
 
can_build_shared=yes
7159
 
 
7160
 
# All known linkers require a `.a' archive for static linking (except MSVC,
7161
 
# which needs '.lib').
7162
 
libext=a
7163
 
ltmain="$ac_aux_dir/ltmain.sh"
7164
 
ofile="$default_ofile"
7165
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
7166
 
 
7167
 
if test -n "$ac_tool_prefix"; then
7168
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7169
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
7170
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7171
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7172
 
if test "${ac_cv_prog_AR+set}" = set; then
7173
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7174
 
else
7175
 
  if test -n "$AR"; then
7176
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
7177
 
else
7178
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179
 
for as_dir in $PATH
7180
 
do
7181
 
  IFS=$as_save_IFS
7182
 
  test -z "$as_dir" && as_dir=.
7183
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7184
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
7186
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7187
 
    break 2
7188
 
  fi
7189
 
done
7190
 
done
7191
 
IFS=$as_save_IFS
7192
 
 
7193
 
fi
7194
 
fi
7195
 
AR=$ac_cv_prog_AR
7196
 
if test -n "$AR"; then
7197
 
  { echo "$as_me:$LINENO: result: $AR" >&5
7198
 
echo "${ECHO_T}$AR" >&6; }
7199
 
else
7200
 
  { echo "$as_me:$LINENO: result: no" >&5
7201
 
echo "${ECHO_T}no" >&6; }
7202
 
fi
7203
 
 
7204
 
 
7205
 
fi
7206
 
if test -z "$ac_cv_prog_AR"; then
7207
 
  ac_ct_AR=$AR
7208
 
  # Extract the first word of "ar", so it can be a program name with args.
7209
 
set dummy ar; ac_word=$2
7210
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7211
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7212
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7214
 
else
7215
 
  if test -n "$ac_ct_AR"; then
7216
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7217
 
else
7218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219
 
for as_dir in $PATH
7220
 
do
7221
 
  IFS=$as_save_IFS
7222
 
  test -z "$as_dir" && as_dir=.
7223
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7224
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225
 
    ac_cv_prog_ac_ct_AR="ar"
7226
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7227
 
    break 2
7228
 
  fi
7229
 
done
7230
 
done
7231
 
IFS=$as_save_IFS
7232
 
 
7233
 
fi
7234
 
fi
7235
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7236
 
if test -n "$ac_ct_AR"; then
7237
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7238
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
7239
 
else
7240
 
  { echo "$as_me:$LINENO: result: no" >&5
7241
 
echo "${ECHO_T}no" >&6; }
7242
 
fi
7243
 
 
7244
 
  if test "x$ac_ct_AR" = x; then
7245
 
    AR="false"
7246
 
  else
7247
 
    case $cross_compiling:$ac_tool_warned in
7248
 
yes:)
7249
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7250
 
whose name does not start with the host triplet.  If you think this
7251
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7252
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7253
 
whose name does not start with the host triplet.  If you think this
7254
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7255
 
ac_tool_warned=yes ;;
7256
 
esac
7257
 
    AR=$ac_ct_AR
7258
 
  fi
7259
 
else
7260
 
  AR="$ac_cv_prog_AR"
7261
 
fi
7262
 
 
7263
 
if test -n "$ac_tool_prefix"; then
7264
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7265
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7266
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7267
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7268
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7269
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7270
 
else
7271
 
  if test -n "$RANLIB"; then
7272
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7273
 
else
7274
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7275
 
for as_dir in $PATH
7276
 
do
7277
 
  IFS=$as_save_IFS
7278
 
  test -z "$as_dir" && as_dir=.
7279
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7280
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7281
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7282
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7283
 
    break 2
7284
 
  fi
7285
 
done
7286
 
done
7287
 
IFS=$as_save_IFS
7288
 
 
7289
 
fi
7290
 
fi
7291
 
RANLIB=$ac_cv_prog_RANLIB
7292
 
if test -n "$RANLIB"; then
7293
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7294
 
echo "${ECHO_T}$RANLIB" >&6; }
7295
 
else
7296
 
  { echo "$as_me:$LINENO: result: no" >&5
7297
 
echo "${ECHO_T}no" >&6; }
7298
 
fi
7299
 
 
7300
 
 
7301
 
fi
7302
 
if test -z "$ac_cv_prog_RANLIB"; then
7303
 
  ac_ct_RANLIB=$RANLIB
7304
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7305
 
set dummy ranlib; ac_word=$2
7306
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7307
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7308
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7309
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7310
 
else
7311
 
  if test -n "$ac_ct_RANLIB"; then
7312
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7313
 
else
7314
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315
 
for as_dir in $PATH
7316
 
do
7317
 
  IFS=$as_save_IFS
7318
 
  test -z "$as_dir" && as_dir=.
7319
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7320
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7322
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323
 
    break 2
7324
 
  fi
7325
 
done
7326
 
done
7327
 
IFS=$as_save_IFS
7328
 
 
7329
 
fi
7330
 
fi
7331
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7332
 
if test -n "$ac_ct_RANLIB"; then
7333
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7334
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7335
 
else
7336
 
  { echo "$as_me:$LINENO: result: no" >&5
7337
 
echo "${ECHO_T}no" >&6; }
7338
 
fi
7339
 
 
7340
 
  if test "x$ac_ct_RANLIB" = x; then
7341
 
    RANLIB=":"
7342
 
  else
7343
 
    case $cross_compiling:$ac_tool_warned in
7344
 
yes:)
7345
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7346
 
whose name does not start with the host triplet.  If you think this
7347
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7348
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7349
 
whose name does not start with the host triplet.  If you think this
7350
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7351
 
ac_tool_warned=yes ;;
7352
 
esac
7353
 
    RANLIB=$ac_ct_RANLIB
7354
 
  fi
7355
 
else
7356
 
  RANLIB="$ac_cv_prog_RANLIB"
7357
 
fi
7358
 
 
7359
 
if test -n "$ac_tool_prefix"; then
7360
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7361
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7362
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7363
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7364
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7365
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7366
 
else
7367
 
  if test -n "$STRIP"; then
7368
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7369
 
else
7370
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371
 
for as_dir in $PATH
7372
 
do
7373
 
  IFS=$as_save_IFS
7374
 
  test -z "$as_dir" && as_dir=.
7375
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7376
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7377
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7378
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7379
 
    break 2
7380
 
  fi
7381
 
done
7382
 
done
7383
 
IFS=$as_save_IFS
7384
 
 
7385
 
fi
7386
 
fi
7387
 
STRIP=$ac_cv_prog_STRIP
7388
 
if test -n "$STRIP"; then
7389
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
7390
 
echo "${ECHO_T}$STRIP" >&6; }
7391
 
else
7392
 
  { echo "$as_me:$LINENO: result: no" >&5
7393
 
echo "${ECHO_T}no" >&6; }
7394
 
fi
7395
 
 
7396
 
 
7397
 
fi
7398
 
if test -z "$ac_cv_prog_STRIP"; then
7399
 
  ac_ct_STRIP=$STRIP
7400
 
  # Extract the first word of "strip", so it can be a program name with args.
7401
 
set dummy strip; ac_word=$2
7402
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7403
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7404
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7405
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7406
 
else
7407
 
  if test -n "$ac_ct_STRIP"; then
7408
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7409
 
else
7410
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411
 
for as_dir in $PATH
7412
 
do
7413
 
  IFS=$as_save_IFS
7414
 
  test -z "$as_dir" && as_dir=.
7415
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7416
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7417
 
    ac_cv_prog_ac_ct_STRIP="strip"
7418
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7419
 
    break 2
7420
 
  fi
7421
 
done
7422
 
done
7423
 
IFS=$as_save_IFS
7424
 
 
7425
 
fi
7426
 
fi
7427
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7428
 
if test -n "$ac_ct_STRIP"; then
7429
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7430
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7431
 
else
7432
 
  { echo "$as_me:$LINENO: result: no" >&5
7433
 
echo "${ECHO_T}no" >&6; }
7434
 
fi
7435
 
 
7436
 
  if test "x$ac_ct_STRIP" = x; then
7437
 
    STRIP=":"
7438
 
  else
7439
 
    case $cross_compiling:$ac_tool_warned in
7440
 
yes:)
7441
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7442
 
whose name does not start with the host triplet.  If you think this
7443
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
7444
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7445
 
whose name does not start with the host triplet.  If you think this
7446
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7447
 
ac_tool_warned=yes ;;
7448
 
esac
7449
 
    STRIP=$ac_ct_STRIP
7450
 
  fi
7451
 
else
7452
 
  STRIP="$ac_cv_prog_STRIP"
7453
 
fi
7454
 
 
7455
 
 
7456
 
old_CC="$CC"
7457
 
old_CFLAGS="$CFLAGS"
7458
 
 
7459
 
# Set sane defaults for various variables
7460
 
test -z "$AR" && AR=ar
7461
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7462
 
test -z "$AS" && AS=as
7463
 
test -z "$CC" && CC=cc
7464
 
test -z "$LTCC" && LTCC=$CC
7465
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7466
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7467
 
test -z "$LD" && LD=ld
7468
 
test -z "$LN_S" && LN_S="ln -s"
7469
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7470
 
test -z "$NM" && NM=nm
7471
 
test -z "$SED" && SED=sed
7472
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7473
 
test -z "$RANLIB" && RANLIB=:
7474
 
test -z "$STRIP" && STRIP=:
7475
 
test -z "$ac_objext" && ac_objext=o
7476
 
 
7477
 
# Determine commands to create old-style static archives.
7478
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7479
 
old_postinstall_cmds='chmod 644 $oldlib'
7480
 
old_postuninstall_cmds=
7481
 
 
7482
 
if test -n "$RANLIB"; then
7483
 
  case $host_os in
7484
 
  openbsd*)
7485
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7486
 
    ;;
7487
 
  *)
7488
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7489
 
    ;;
7490
 
  esac
7491
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7492
 
fi
7493
 
 
7494
 
for cc_temp in $compiler""; do
7495
 
  case $cc_temp in
7496
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7497
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7498
 
    \-*) ;;
7499
 
    *) break;;
7500
 
  esac
7501
 
done
7502
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7503
 
 
7504
 
 
7505
 
# Only perform the check for file, if the check method requires it
7506
 
case $deplibs_check_method in
7507
 
file_magic*)
7508
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7509
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7510
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7511
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7512
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7513
 
else
7514
 
  case $MAGIC_CMD in
7515
 
[\\/*] |  ?:[\\/]*)
7516
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7517
 
  ;;
7518
 
*)
7519
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7520
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7521
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7522
 
  for ac_dir in $ac_dummy; do
7523
 
    IFS="$lt_save_ifs"
7524
 
    test -z "$ac_dir" && ac_dir=.
7525
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7526
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7527
 
      if test -n "$file_magic_test_file"; then
7528
 
        case $deplibs_check_method in
7529
 
        "file_magic "*)
7530
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7531
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7532
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7533
 
            $EGREP "$file_magic_regex" > /dev/null; then
7534
 
            :
7535
 
          else
7536
 
            cat <<EOF 1>&2
7537
 
 
7538
 
*** Warning: the command libtool uses to detect shared libraries,
7539
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7540
 
*** The result is that libtool may fail to recognize shared libraries
7541
 
*** as such.  This will affect the creation of libtool libraries that
7542
 
*** depend on shared libraries, but programs linked with such libtool
7543
 
*** libraries will work regardless of this problem.  Nevertheless, you
7544
 
*** may want to report the problem to your system manager and/or to
7545
 
*** bug-libtool@gnu.org
7546
 
 
7547
 
EOF
7548
 
          fi ;;
7549
 
        esac
7550
 
      fi
7551
 
      break
7552
 
    fi
7553
 
  done
7554
 
  IFS="$lt_save_ifs"
7555
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7556
 
  ;;
7557
 
esac
7558
 
fi
7559
 
 
7560
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7561
 
if test -n "$MAGIC_CMD"; then
7562
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7563
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7564
 
else
7565
 
  { echo "$as_me:$LINENO: result: no" >&5
7566
 
echo "${ECHO_T}no" >&6; }
7567
 
fi
7568
 
 
7569
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7570
 
  if test -n "$ac_tool_prefix"; then
7571
 
    { echo "$as_me:$LINENO: checking for file" >&5
7572
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7573
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7574
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7575
 
else
7576
 
  case $MAGIC_CMD in
7577
 
[\\/*] |  ?:[\\/]*)
7578
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7579
 
  ;;
7580
 
*)
7581
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7582
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7583
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7584
 
  for ac_dir in $ac_dummy; do
7585
 
    IFS="$lt_save_ifs"
7586
 
    test -z "$ac_dir" && ac_dir=.
7587
 
    if test -f $ac_dir/file; then
7588
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7589
 
      if test -n "$file_magic_test_file"; then
7590
 
        case $deplibs_check_method in
7591
 
        "file_magic "*)
7592
 
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7593
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7594
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7595
 
            $EGREP "$file_magic_regex" > /dev/null; then
7596
 
            :
7597
 
          else
7598
 
            cat <<EOF 1>&2
7599
 
 
7600
 
*** Warning: the command libtool uses to detect shared libraries,
7601
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7602
 
*** The result is that libtool may fail to recognize shared libraries
7603
 
*** as such.  This will affect the creation of libtool libraries that
7604
 
*** depend on shared libraries, but programs linked with such libtool
7605
 
*** libraries will work regardless of this problem.  Nevertheless, you
7606
 
*** may want to report the problem to your system manager and/or to
7607
 
*** bug-libtool@gnu.org
7608
 
 
7609
 
EOF
7610
 
          fi ;;
7611
 
        esac
7612
 
      fi
7613
 
      break
7614
 
    fi
7615
 
  done
7616
 
  IFS="$lt_save_ifs"
7617
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7618
 
  ;;
7619
 
esac
7620
 
fi
7621
 
 
7622
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7623
 
if test -n "$MAGIC_CMD"; then
7624
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7625
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7626
 
else
7627
 
  { echo "$as_me:$LINENO: result: no" >&5
7628
 
echo "${ECHO_T}no" >&6; }
7629
 
fi
7630
 
 
7631
 
  else
7632
 
    MAGIC_CMD=:
7633
 
  fi
7634
 
fi
7635
 
 
7636
 
  fi
7637
 
  ;;
7638
 
esac
7639
 
 
7640
 
enable_dlopen=no
7641
 
enable_win32_dll=no
7642
 
 
7643
 
# Check whether --enable-libtool-lock was given.
7644
 
if test "${enable_libtool_lock+set}" = set; then
7645
 
  enableval=$enable_libtool_lock;
7646
 
fi
7647
 
 
7648
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7649
 
 
7650
 
 
7651
 
# Check whether --with-pic was given.
7652
 
if test "${with_pic+set}" = set; then
7653
 
  withval=$with_pic; pic_mode="$withval"
7654
 
else
7655
 
  pic_mode=default
7656
 
fi
7657
 
 
7658
 
test -z "$pic_mode" && pic_mode=default
7659
 
 
7660
 
# Use C for the default configuration in the libtool script
7661
 
tagname=
7662
 
lt_save_CC="$CC"
7663
 
ac_ext=c
7664
 
ac_cpp='$CPP $CPPFLAGS'
7665
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7668
 
 
7669
 
 
7670
 
# Source file extension for C test sources.
7671
 
ac_ext=c
7672
 
 
7673
 
# Object file extension for compiled C test sources.
7674
 
objext=o
7675
 
objext=$objext
7676
 
 
7677
 
# Code to be used in simple compile tests
7678
 
lt_simple_compile_test_code="int some_variable = 0;\n"
7679
 
 
7680
 
# Code to be used in simple link tests
7681
 
lt_simple_link_test_code='int main(){return(0);}\n'
7682
 
 
7683
 
 
7684
 
# If no C compiler was specified, use CC.
7685
 
LTCC=${LTCC-"$CC"}
7686
 
 
7687
 
# If no C compiler flags were specified, use CFLAGS.
7688
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7689
 
 
7690
 
# Allow CC to be a program name with arguments.
7691
 
compiler=$CC
7692
 
 
7693
 
 
7694
 
# save warnings/boilerplate of simple test code
7695
 
ac_outfile=conftest.$ac_objext
7696
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7697
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7698
 
_lt_compiler_boilerplate=`cat conftest.err`
7699
 
$rm conftest*
7700
 
 
7701
 
ac_outfile=conftest.$ac_objext
7702
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
7703
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7704
 
_lt_linker_boilerplate=`cat conftest.err`
7705
 
$rm conftest*
7706
 
 
7707
 
 
7708
 
## CAVEAT EMPTOR:
7709
 
## There is no encapsulation within the following macros, do not change
7710
 
## the running order or otherwise move them around unless you know exactly
7711
 
## what you are doing...
7712
 
 
7713
 
lt_prog_compiler_no_builtin_flag=
7714
 
 
7715
 
if test "$GCC" = yes; then
7716
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7717
 
 
7718
 
 
7719
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7720
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7721
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7722
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7723
 
else
7724
 
  lt_cv_prog_compiler_rtti_exceptions=no
7725
 
  ac_outfile=conftest.$ac_objext
7726
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7727
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7728
 
   # Insert the option either (1) after the last *FLAGS variable, or
7729
 
   # (2) before a word containing "conftest.", or (3) at the end.
7730
 
   # Note that $ac_compile itself does not contain backslashes and begins
7731
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7732
 
   # The option is referenced via a variable to avoid confusing sed.
7733
 
   lt_compile=`echo "$ac_compile" | $SED \
7734
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7735
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7736
 
   -e 's:$: $lt_compiler_flag:'`
7737
 
   (eval echo "\"\$as_me:7737: $lt_compile\"" >&5)
7738
 
   (eval "$lt_compile" 2>conftest.err)
7739
 
   ac_status=$?
7740
 
   cat conftest.err >&5
7741
 
   echo "$as_me:7741: \$? = $ac_status" >&5
7742
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7743
 
     # The compiler can only warn and ignore the option if not recognized
7744
 
     # So say no if there are warnings other than the usual output.
7745
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7746
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7747
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7748
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7749
 
     fi
7750
 
   fi
7751
 
   $rm conftest*
7752
 
 
7753
 
fi
7754
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7755
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7756
 
 
7757
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7758
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7759
 
else
7760
 
    :
7761
 
fi
7762
 
 
7763
 
fi
7764
 
 
7765
 
lt_prog_compiler_wl=
7766
 
lt_prog_compiler_pic=
7767
 
lt_prog_compiler_static=
7768
 
 
7769
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7770
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7771
 
 
7772
 
  if test "$GCC" = yes; then
7773
 
    lt_prog_compiler_wl='-Wl,'
7774
 
    lt_prog_compiler_static='-static'
7775
 
 
7776
 
    case $host_os in
7777
 
      aix*)
7778
 
      # All AIX code is PIC.
7779
 
      if test "$host_cpu" = ia64; then
7780
 
        # AIX 5 now supports IA64 processor
7781
 
        lt_prog_compiler_static='-Bstatic'
7782
 
      fi
7783
 
      ;;
7784
 
 
7785
 
    amigaos*)
7786
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7787
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7788
 
      # like `-m68040'.
7789
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7790
 
      ;;
7791
 
 
7792
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7793
 
      # PIC is the default for these OSes.
7794
 
      ;;
7795
 
 
7796
 
    mingw* | pw32* | os2*)
7797
 
      # This hack is so that the source file can tell whether it is being
7798
 
      # built for inclusion in a dll (and should export symbols for example).
7799
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7800
 
      ;;
7801
 
 
7802
 
    darwin* | rhapsody*)
7803
 
      # PIC is the default on this platform
7804
 
      # Common symbols not allowed in MH_DYLIB files
7805
 
      lt_prog_compiler_pic='-fno-common'
7806
 
      ;;
7807
 
 
7808
 
    interix3*)
7809
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7810
 
      # Instead, we relocate shared libraries at runtime.
7811
 
      ;;
7812
 
 
7813
 
    msdosdjgpp*)
7814
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7815
 
      # on systems that don't support them.
7816
 
      lt_prog_compiler_can_build_shared=no
7817
 
      enable_shared=no
7818
 
      ;;
7819
 
 
7820
 
    sysv4*MP*)
7821
 
      if test -d /usr/nec; then
7822
 
        lt_prog_compiler_pic=-Kconform_pic
7823
 
      fi
7824
 
      ;;
7825
 
 
7826
 
    hpux*)
7827
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7828
 
      # not for PA HP-UX.
7829
 
      case $host_cpu in
7830
 
      hppa*64*|ia64*)
7831
 
        # +Z the default
7832
 
        ;;
7833
 
      *)
7834
 
        lt_prog_compiler_pic='-fPIC'
7835
 
        ;;
7836
 
      esac
7837
 
      ;;
7838
 
 
7839
 
    *)
7840
 
      lt_prog_compiler_pic='-fPIC'
7841
 
      ;;
7842
 
    esac
7843
 
  else
7844
 
    # PORTME Check for flag to pass linker flags through the system compiler.
7845
 
    case $host_os in
7846
 
    aix*)
7847
 
      lt_prog_compiler_wl='-Wl,'
7848
 
      if test "$host_cpu" = ia64; then
7849
 
        # AIX 5 now supports IA64 processor
7850
 
        lt_prog_compiler_static='-Bstatic'
7851
 
      else
7852
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7853
 
      fi
7854
 
      ;;
7855
 
      darwin*)
7856
 
        # PIC is the default on this platform
7857
 
        # Common symbols not allowed in MH_DYLIB files
7858
 
       case $cc_basename in
7859
 
         xlc*)
7860
 
         lt_prog_compiler_pic='-qnocommon'
7861
 
         lt_prog_compiler_wl='-Wl,'
7862
 
         ;;
7863
 
       esac
7864
 
       ;;
7865
 
 
7866
 
    mingw* | pw32* | os2*)
7867
 
      # This hack is so that the source file can tell whether it is being
7868
 
      # built for inclusion in a dll (and should export symbols for example).
7869
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7870
 
      ;;
7871
 
 
7872
 
    hpux9* | hpux10* | hpux11*)
7873
 
      lt_prog_compiler_wl='-Wl,'
7874
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7875
 
      # not for PA HP-UX.
7876
 
      case $host_cpu in
7877
 
      hppa*64*|ia64*)
7878
 
        # +Z the default
7879
 
        ;;
7880
 
      *)
7881
 
        lt_prog_compiler_pic='+Z'
7882
 
        ;;
7883
 
      esac
7884
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7885
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7886
 
      ;;
7887
 
 
7888
 
    irix5* | irix6* | nonstopux*)
7889
 
      lt_prog_compiler_wl='-Wl,'
7890
 
      # PIC (with -KPIC) is the default.
7891
 
      lt_prog_compiler_static='-non_shared'
7892
 
      ;;
7893
 
 
7894
 
    newsos6)
7895
 
      lt_prog_compiler_pic='-KPIC'
7896
 
      lt_prog_compiler_static='-Bstatic'
7897
 
      ;;
7898
 
 
7899
 
    linux*)
7900
 
      case $cc_basename in
7901
 
      icc* | ecc*)
7902
 
        lt_prog_compiler_wl='-Wl,'
7903
 
        lt_prog_compiler_pic='-KPIC'
7904
 
        lt_prog_compiler_static='-static'
7905
 
        ;;
7906
 
      pgcc* | pgf77* | pgf90* | pgf95*)
7907
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
7908
 
        # which looks to be a dead project)
7909
 
        lt_prog_compiler_wl='-Wl,'
7910
 
        lt_prog_compiler_pic='-fpic'
7911
 
        lt_prog_compiler_static='-Bstatic'
7912
 
        ;;
7913
 
      ccc*)
7914
 
        lt_prog_compiler_wl='-Wl,'
7915
 
        # All Alpha code is PIC.
7916
 
        lt_prog_compiler_static='-non_shared'
7917
 
        ;;
7918
 
      esac
7919
 
      ;;
7920
 
 
7921
 
    osf3* | osf4* | osf5*)
7922
 
      lt_prog_compiler_wl='-Wl,'
7923
 
      # All OSF/1 code is PIC.
7924
 
      lt_prog_compiler_static='-non_shared'
7925
 
      ;;
7926
 
 
7927
 
    solaris*)
7928
 
      lt_prog_compiler_pic='-KPIC'
7929
 
      lt_prog_compiler_static='-Bstatic'
7930
 
      case $cc_basename in
7931
 
      f77* | f90* | f95*)
7932
 
        lt_prog_compiler_wl='-Qoption ld ';;
7933
 
      *)
7934
 
        lt_prog_compiler_wl='-Wl,';;
7935
 
      esac
7936
 
      ;;
7937
 
 
7938
 
    sunos4*)
7939
 
      lt_prog_compiler_wl='-Qoption ld '
7940
 
      lt_prog_compiler_pic='-PIC'
7941
 
      lt_prog_compiler_static='-Bstatic'
7942
 
      ;;
7943
 
 
7944
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
7945
 
      lt_prog_compiler_wl='-Wl,'
7946
 
      lt_prog_compiler_pic='-KPIC'
7947
 
      lt_prog_compiler_static='-Bstatic'
7948
 
      ;;
7949
 
 
7950
 
    sysv4*MP*)
7951
 
      if test -d /usr/nec ;then
7952
 
        lt_prog_compiler_pic='-Kconform_pic'
7953
 
        lt_prog_compiler_static='-Bstatic'
7954
 
      fi
7955
 
      ;;
7956
 
 
7957
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7958
 
      lt_prog_compiler_wl='-Wl,'
7959
 
      lt_prog_compiler_pic='-KPIC'
7960
 
      lt_prog_compiler_static='-Bstatic'
7961
 
      ;;
7962
 
 
7963
 
    unicos*)
7964
 
      lt_prog_compiler_wl='-Wl,'
7965
 
      lt_prog_compiler_can_build_shared=no
7966
 
      ;;
7967
 
 
7968
 
    uts4*)
7969
 
      lt_prog_compiler_pic='-pic'
7970
 
      lt_prog_compiler_static='-Bstatic'
7971
 
      ;;
7972
 
 
7973
 
    *)
7974
 
      lt_prog_compiler_can_build_shared=no
7975
 
      ;;
7976
 
    esac
7977
 
  fi
7978
 
 
7979
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7980
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7981
 
 
7982
 
#
7983
 
# Check to make sure the PIC flag actually works.
7984
 
#
7985
 
if test -n "$lt_prog_compiler_pic"; then
7986
 
 
7987
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7988
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7989
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7990
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7991
 
else
7992
 
  lt_prog_compiler_pic_works=no
7993
 
  ac_outfile=conftest.$ac_objext
7994
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7995
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7996
 
   # Insert the option either (1) after the last *FLAGS variable, or
7997
 
   # (2) before a word containing "conftest.", or (3) at the end.
7998
 
   # Note that $ac_compile itself does not contain backslashes and begins
7999
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8000
 
   # The option is referenced via a variable to avoid confusing sed.
8001
 
   lt_compile=`echo "$ac_compile" | $SED \
8002
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8003
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8004
 
   -e 's:$: $lt_compiler_flag:'`
8005
 
   (eval echo "\"\$as_me:8005: $lt_compile\"" >&5)
8006
 
   (eval "$lt_compile" 2>conftest.err)
8007
 
   ac_status=$?
8008
 
   cat conftest.err >&5
8009
 
   echo "$as_me:8009: \$? = $ac_status" >&5
8010
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
8011
 
     # The compiler can only warn and ignore the option if not recognized
8012
 
     # So say no if there are warnings other than the usual output.
8013
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8014
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8015
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8016
 
       lt_prog_compiler_pic_works=yes
8017
 
     fi
8018
 
   fi
8019
 
   $rm conftest*
8020
 
 
8021
 
fi
8022
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8023
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8024
 
 
8025
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
8026
 
    case $lt_prog_compiler_pic in
8027
 
     "" | " "*) ;;
8028
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8029
 
     esac
8030
 
else
8031
 
    lt_prog_compiler_pic=
8032
 
     lt_prog_compiler_can_build_shared=no
8033
 
fi
8034
 
 
8035
 
fi
8036
 
case $host_os in
8037
 
  # For platforms which do not support PIC, -DPIC is meaningless:
8038
 
  *djgpp*)
8039
 
    lt_prog_compiler_pic=
8040
 
    ;;
8041
 
  *)
8042
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8043
 
    ;;
8044
 
esac
8045
 
 
8046
 
#
8047
 
# Check to make sure the static flag actually works.
8048
 
#
8049
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8050
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8051
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8052
 
if test "${lt_prog_compiler_static_works+set}" = set; then
8053
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8054
 
else
8055
 
  lt_prog_compiler_static_works=no
8056
 
   save_LDFLAGS="$LDFLAGS"
8057
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8058
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
8059
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8060
 
     # The linker can only warn and ignore the option if not recognized
8061
 
     # So say no if there are warnings
8062
 
     if test -s conftest.err; then
8063
 
       # Append any errors to the config.log.
8064
 
       cat conftest.err 1>&5
8065
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8066
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8067
 
       if diff conftest.exp conftest.er2 >/dev/null; then
8068
 
         lt_prog_compiler_static_works=yes
8069
 
       fi
8070
 
     else
8071
 
       lt_prog_compiler_static_works=yes
8072
 
     fi
8073
 
   fi
8074
 
   $rm conftest*
8075
 
   LDFLAGS="$save_LDFLAGS"
8076
 
 
8077
 
fi
8078
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8079
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8080
 
 
8081
 
if test x"$lt_prog_compiler_static_works" = xyes; then
8082
 
    :
8083
 
else
8084
 
    lt_prog_compiler_static=
8085
 
fi
8086
 
 
8087
 
 
8088
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8089
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8090
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8091
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8092
 
else
8093
 
  lt_cv_prog_compiler_c_o=no
8094
 
   $rm -r conftest 2>/dev/null
8095
 
   mkdir conftest
8096
 
   cd conftest
8097
 
   mkdir out
8098
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8099
 
 
8100
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
8101
 
   # Insert the option either (1) after the last *FLAGS variable, or
8102
 
   # (2) before a word containing "conftest.", or (3) at the end.
8103
 
   # Note that $ac_compile itself does not contain backslashes and begins
8104
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
8105
 
   lt_compile=`echo "$ac_compile" | $SED \
8106
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8107
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8108
 
   -e 's:$: $lt_compiler_flag:'`
8109
 
   (eval echo "\"\$as_me:8109: $lt_compile\"" >&5)
8110
 
   (eval "$lt_compile" 2>out/conftest.err)
8111
 
   ac_status=$?
8112
 
   cat out/conftest.err >&5
8113
 
   echo "$as_me:8113: \$? = $ac_status" >&5
8114
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8115
 
   then
8116
 
     # The compiler can only warn and ignore the option if not recognized
8117
 
     # So say no if there are warnings
8118
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8119
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8120
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8121
 
       lt_cv_prog_compiler_c_o=yes
8122
 
     fi
8123
 
   fi
8124
 
   chmod u+w . 2>&5
8125
 
   $rm conftest*
8126
 
   # SGI C++ compiler will create directory out/ii_files/ for
8127
 
   # template instantiation
8128
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8129
 
   $rm out/* && rmdir out
8130
 
   cd ..
8131
 
   rmdir conftest
8132
 
   $rm conftest*
8133
 
 
8134
 
fi
8135
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8136
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8137
 
 
8138
 
 
8139
 
hard_links="nottested"
8140
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8141
 
  # do not overwrite the value of need_locks provided by the user
8142
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8143
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8144
 
  hard_links=yes
8145
 
  $rm conftest*
8146
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8147
 
  touch conftest.a
8148
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
8149
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8150
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
8151
 
echo "${ECHO_T}$hard_links" >&6; }
8152
 
  if test "$hard_links" = no; then
8153
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8154
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8155
 
    need_locks=warn
8156
 
  fi
8157
 
else
8158
 
  need_locks=no
8159
 
fi
8160
 
 
8161
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8162
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8163
 
 
8164
 
  runpath_var=
8165
 
  allow_undefined_flag=
8166
 
  enable_shared_with_static_runtimes=no
8167
 
  archive_cmds=
8168
 
  archive_expsym_cmds=
8169
 
  old_archive_From_new_cmds=
8170
 
  old_archive_from_expsyms_cmds=
8171
 
  export_dynamic_flag_spec=
8172
 
  whole_archive_flag_spec=
8173
 
  thread_safe_flag_spec=
8174
 
  hardcode_libdir_flag_spec=
8175
 
  hardcode_libdir_flag_spec_ld=
8176
 
  hardcode_libdir_separator=
8177
 
  hardcode_direct=no
8178
 
  hardcode_minus_L=no
8179
 
  hardcode_shlibpath_var=unsupported
8180
 
  link_all_deplibs=unknown
8181
 
  hardcode_automatic=no
8182
 
  module_cmds=
8183
 
  module_expsym_cmds=
8184
 
  always_export_symbols=no
8185
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8186
 
  # include_expsyms should be a list of space-separated symbols to be *always*
8187
 
  # included in the symbol list
8188
 
  include_expsyms=
8189
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
8190
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8191
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8192
 
  # as well as any symbol that contains `d'.
8193
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8194
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8195
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
8196
 
  # the symbol is explicitly referenced.  Since portable code cannot
8197
 
  # rely on this symbol name, it's probably fine to never include it in
8198
 
  # preloaded symbol tables.
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
 
    aix3* | aix4* | aix5*)
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/'\'' | $SED -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
 
    interix3*)
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
 
    linux*)
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
 
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8357
 
 
8358
 
        if test $supports_anon_versioning = yes; then
8359
 
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8360
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8361
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
8362
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8363
 
        fi
8364
 
        link_all_deplibs=no
8365
 
      else
8366
 
        ld_shlibs=no
8367
 
      fi
8368
 
      ;;
8369
 
 
8370
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8371
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8372
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8373
 
        wlarc=
8374
 
      else
8375
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8376
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8377
 
      fi
8378
 
      ;;
8379
 
 
8380
 
    solaris*)
8381
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8382
 
        ld_shlibs=no
8383
 
        cat <<EOF 1>&2
8384
 
 
8385
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8386
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8387
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8388
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8389
 
*** your PATH or compiler configuration so that the native linker is
8390
 
*** used, and then restart.
8391
 
 
8392
 
EOF
8393
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8394
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8396
 
      else
8397
 
        ld_shlibs=no
8398
 
      fi
8399
 
      ;;
8400
 
 
8401
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8402
 
      case `$LD -v 2>&1` in
8403
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8404
 
        ld_shlibs=no
8405
 
        cat <<_LT_EOF 1>&2
8406
 
 
8407
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8408
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
8409
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8410
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8411
 
*** your PATH or compiler configuration so that the native linker is
8412
 
*** used, and then restart.
8413
 
 
8414
 
_LT_EOF
8415
 
        ;;
8416
 
        *)
8417
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8418
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8419
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8420
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8421
 
          else
8422
 
            ld_shlibs=no
8423
 
          fi
8424
 
        ;;
8425
 
      esac
8426
 
      ;;
8427
 
 
8428
 
    sunos4*)
8429
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8430
 
      wlarc=
8431
 
      hardcode_direct=yes
8432
 
      hardcode_shlibpath_var=no
8433
 
      ;;
8434
 
 
8435
 
    *)
8436
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8437
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8439
 
      else
8440
 
        ld_shlibs=no
8441
 
      fi
8442
 
      ;;
8443
 
    esac
8444
 
 
8445
 
    if test "$ld_shlibs" = no; then
8446
 
      runpath_var=
8447
 
      hardcode_libdir_flag_spec=
8448
 
      export_dynamic_flag_spec=
8449
 
      whole_archive_flag_spec=
8450
 
    fi
8451
 
  else
8452
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8453
 
    case $host_os in
8454
 
    aix3*)
8455
 
      allow_undefined_flag=unsupported
8456
 
      always_export_symbols=yes
8457
 
      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'
8458
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8459
 
      # are no directories specified by -L.
8460
 
      hardcode_minus_L=yes
8461
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8462
 
        # Neither direct hardcoding nor static linking is supported with a
8463
 
        # broken collect2.
8464
 
        hardcode_direct=unsupported
8465
 
      fi
8466
 
      ;;
8467
 
 
8468
 
    aix4* | aix5*)
8469
 
      if test "$host_cpu" = ia64; then
8470
 
        # On IA64, the linker does run time linking by default, so we don't
8471
 
        # have to do anything special.
8472
 
        aix_use_runtimelinking=no
8473
 
        exp_sym_flag='-Bexport'
8474
 
        no_entry_flag=""
8475
 
      else
8476
 
        # If we're using GNU nm, then we don't want the "-C" option.
8477
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8478
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8479
 
          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'
8480
 
        else
8481
 
          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'
8482
 
        fi
8483
 
        aix_use_runtimelinking=no
8484
 
 
8485
 
        # Test if we are trying to use run time linking or normal
8486
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8487
 
        # need to do runtime linking.
8488
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8489
 
          for ld_flag in $LDFLAGS; do
8490
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8491
 
            aix_use_runtimelinking=yes
8492
 
            break
8493
 
          fi
8494
 
          done
8495
 
          ;;
8496
 
        esac
8497
 
 
8498
 
        exp_sym_flag='-bexport'
8499
 
        no_entry_flag='-bnoentry'
8500
 
      fi
8501
 
 
8502
 
      # When large executables or shared objects are built, AIX ld can
8503
 
      # have problems creating the table of contents.  If linking a library
8504
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8505
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8506
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8507
 
 
8508
 
      archive_cmds=''
8509
 
      hardcode_direct=yes
8510
 
      hardcode_libdir_separator=':'
8511
 
      link_all_deplibs=yes
8512
 
 
8513
 
      if test "$GCC" = yes; then
8514
 
        case $host_os in aix4.[012]|aix4.[012].*)
8515
 
        # We only want to do this on AIX 4.2 and lower, the check
8516
 
        # below for broken collect2 doesn't work under 4.3+
8517
 
          collect2name=`${CC} -print-prog-name=collect2`
8518
 
          if test -f "$collect2name" && \
8519
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8520
 
          then
8521
 
          # We have reworked collect2
8522
 
          hardcode_direct=yes
8523
 
          else
8524
 
          # We have old collect2
8525
 
          hardcode_direct=unsupported
8526
 
          # It fails to find uninstalled libraries when the uninstalled
8527
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8528
 
          # to unsupported forces relinking
8529
 
          hardcode_minus_L=yes
8530
 
          hardcode_libdir_flag_spec='-L$libdir'
8531
 
          hardcode_libdir_separator=
8532
 
          fi
8533
 
          ;;
8534
 
        esac
8535
 
        shared_flag='-shared'
8536
 
        if test "$aix_use_runtimelinking" = yes; then
8537
 
          shared_flag="$shared_flag "'${wl}-G'
8538
 
        fi
8539
 
      else
8540
 
        # not using gcc
8541
 
        if test "$host_cpu" = ia64; then
8542
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8543
 
        # chokes on -Wl,-G. The following line is correct:
8544
 
          shared_flag='-G'
8545
 
        else
8546
 
          if test "$aix_use_runtimelinking" = yes; then
8547
 
            shared_flag='${wl}-G'
8548
 
          else
8549
 
            shared_flag='${wl}-bM:SRE'
8550
 
          fi
8551
 
        fi
8552
 
      fi
8553
 
 
8554
 
      # It seems that -bexpall does not export symbols beginning with
8555
 
      # underscore (_), so it is better to generate a list of symbols to export.
8556
 
      always_export_symbols=yes
8557
 
      if test "$aix_use_runtimelinking" = yes; then
8558
 
        # Warning - without using the other runtime loading flags (-brtl),
8559
 
        # -berok will link without error, but may produce a broken library.
8560
 
        allow_undefined_flag='-berok'
8561
 
       # Determine the default libpath from the value encoded in an empty executable.
8562
 
       cat >conftest.$ac_ext <<_ACEOF
8563
 
/* confdefs.h.  */
8564
 
_ACEOF
8565
 
cat confdefs.h >>conftest.$ac_ext
8566
 
cat >>conftest.$ac_ext <<_ACEOF
8567
 
/* end confdefs.h.  */
8568
 
 
8569
 
int
8570
 
main ()
8571
 
{
8572
 
 
8573
 
  ;
8574
 
  return 0;
8575
 
}
8576
 
_ACEOF
8577
 
rm -f conftest.$ac_objext conftest$ac_exeext
8578
 
if { (ac_try="$ac_link"
8579
 
case "(($ac_try" in
8580
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581
 
  *) ac_try_echo=$ac_try;;
8582
 
esac
8583
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584
 
  (eval "$ac_link") 2>conftest.er1
8585
 
  ac_status=$?
8586
 
  grep -v '^ *+' conftest.er1 >conftest.err
8587
 
  rm -f conftest.er1
8588
 
  cat conftest.err >&5
8589
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590
 
  (exit $ac_status); } && {
8591
 
         test -z "$ac_c_werror_flag" ||
8592
 
         test ! -s conftest.err
8593
 
       } && test -s conftest$ac_exeext &&
8594
 
       $as_test_x conftest$ac_exeext; then
8595
 
 
8596
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8597
 
}'`
8598
 
# Check for a 64-bit object if we didn't find anything.
8599
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8600
 
}'`; fi
8601
 
else
8602
 
  echo "$as_me: failed program was:" >&5
8603
 
sed 's/^/| /' conftest.$ac_ext >&5
8604
 
 
8605
 
 
8606
 
fi
8607
 
 
8608
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8609
 
      conftest$ac_exeext conftest.$ac_ext
8610
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8611
 
 
8612
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8613
 
        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"
8614
 
       else
8615
 
        if test "$host_cpu" = ia64; then
8616
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8617
 
          allow_undefined_flag="-z nodefs"
8618
 
          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"
8619
 
        else
8620
 
         # Determine the default libpath from the value encoded in an empty executable.
8621
 
         cat >conftest.$ac_ext <<_ACEOF
8622
 
/* confdefs.h.  */
8623
 
_ACEOF
8624
 
cat confdefs.h >>conftest.$ac_ext
8625
 
cat >>conftest.$ac_ext <<_ACEOF
8626
 
/* end confdefs.h.  */
8627
 
 
8628
 
int
8629
 
main ()
8630
 
{
8631
 
 
8632
 
  ;
8633
 
  return 0;
8634
 
}
8635
 
_ACEOF
8636
 
rm -f conftest.$ac_objext conftest$ac_exeext
8637
 
if { (ac_try="$ac_link"
8638
 
case "(($ac_try" in
8639
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640
 
  *) ac_try_echo=$ac_try;;
8641
 
esac
8642
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643
 
  (eval "$ac_link") 2>conftest.er1
8644
 
  ac_status=$?
8645
 
  grep -v '^ *+' conftest.er1 >conftest.err
8646
 
  rm -f conftest.er1
8647
 
  cat conftest.err >&5
8648
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649
 
  (exit $ac_status); } && {
8650
 
         test -z "$ac_c_werror_flag" ||
8651
 
         test ! -s conftest.err
8652
 
       } && test -s conftest$ac_exeext &&
8653
 
       $as_test_x conftest$ac_exeext; then
8654
 
 
8655
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8656
 
}'`
8657
 
# Check for a 64-bit object if we didn't find anything.
8658
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8659
 
}'`; fi
8660
 
else
8661
 
  echo "$as_me: failed program was:" >&5
8662
 
sed 's/^/| /' conftest.$ac_ext >&5
8663
 
 
8664
 
 
8665
 
fi
8666
 
 
8667
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8668
 
      conftest$ac_exeext conftest.$ac_ext
8669
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8670
 
 
8671
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8672
 
          # Warning - without using the other run time loading flags,
8673
 
          # -berok will link without error, but may produce a broken library.
8674
 
          no_undefined_flag=' ${wl}-bernotok'
8675
 
          allow_undefined_flag=' ${wl}-berok'
8676
 
          # Exported symbols can be pulled into shared objects from archives
8677
 
          whole_archive_flag_spec='$convenience'
8678
 
          archive_cmds_need_lc=yes
8679
 
          # This is similar to how AIX traditionally builds its shared libraries.
8680
 
          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'
8681
 
        fi
8682
 
      fi
8683
 
      ;;
8684
 
 
8685
 
    amigaos*)
8686
 
      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)'
8687
 
      hardcode_libdir_flag_spec='-L$libdir'
8688
 
      hardcode_minus_L=yes
8689
 
      # see comment about different semantics on the GNU ld section
8690
 
      ld_shlibs=no
8691
 
      ;;
8692
 
 
8693
 
    bsdi[45]*)
8694
 
      export_dynamic_flag_spec=-rdynamic
8695
 
      ;;
8696
 
 
8697
 
    cygwin* | mingw* | pw32*)
8698
 
      # When not using gcc, we currently assume that we are using
8699
 
      # Microsoft Visual C++.
8700
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8701
 
      # no search path for DLLs.
8702
 
      hardcode_libdir_flag_spec=' '
8703
 
      allow_undefined_flag=unsupported
8704
 
      # Tell ltmain to make .lib files, not .a files.
8705
 
      libext=lib
8706
 
      # Tell ltmain to make .dll files, not .so files.
8707
 
      shrext_cmds=".dll"
8708
 
      # FIXME: Setting linknames here is a bad hack.
8709
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8710
 
      # The linker will automatically build a .lib file if we build a DLL.
8711
 
      old_archive_From_new_cmds='true'
8712
 
      # FIXME: Should let the user specify the lib program.
8713
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8714
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8715
 
      enable_shared_with_static_runtimes=yes
8716
 
      ;;
8717
 
 
8718
 
    darwin* | rhapsody*)
8719
 
      case $host_os in
8720
 
        rhapsody* | darwin1.[012])
8721
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8722
 
         ;;
8723
 
       *) # Darwin 1.3 on
8724
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8725
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8726
 
         else
8727
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8728
 
             10.[012])
8729
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8730
 
               ;;
8731
 
             10.*)
8732
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8733
 
               ;;
8734
 
           esac
8735
 
         fi
8736
 
         ;;
8737
 
      esac
8738
 
      archive_cmds_need_lc=no
8739
 
      hardcode_direct=no
8740
 
      hardcode_automatic=yes
8741
 
      hardcode_shlibpath_var=unsupported
8742
 
      whole_archive_flag_spec=''
8743
 
      link_all_deplibs=yes
8744
 
    if test "$GCC" = yes ; then
8745
 
        output_verbose_link_cmd='echo'
8746
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8747
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8748
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8749
 
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8750
 
      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}'
8751
 
    else
8752
 
      case $cc_basename in
8753
 
        xlc*)
8754
 
         output_verbose_link_cmd='echo'
8755
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8756
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8757
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8758
 
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8759
 
          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}'
8760
 
          ;;
8761
 
       *)
8762
 
         ld_shlibs=no
8763
 
          ;;
8764
 
      esac
8765
 
    fi
8766
 
      ;;
8767
 
 
8768
 
    dgux*)
8769
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8770
 
      hardcode_libdir_flag_spec='-L$libdir'
8771
 
      hardcode_shlibpath_var=no
8772
 
      ;;
8773
 
 
8774
 
    freebsd1*)
8775
 
      ld_shlibs=no
8776
 
      ;;
8777
 
 
8778
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8779
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8780
 
    # does not break anything, and helps significantly (at the cost of a little
8781
 
    # extra space).
8782
 
    freebsd2.2*)
8783
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8784
 
      hardcode_libdir_flag_spec='-R$libdir'
8785
 
      hardcode_direct=yes
8786
 
      hardcode_shlibpath_var=no
8787
 
      ;;
8788
 
 
8789
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8790
 
    freebsd2*)
8791
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8792
 
      hardcode_direct=yes
8793
 
      hardcode_minus_L=yes
8794
 
      hardcode_shlibpath_var=no
8795
 
      ;;
8796
 
 
8797
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8798
 
    freebsd* | dragonfly*)
8799
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8800
 
      hardcode_libdir_flag_spec='-R$libdir'
8801
 
      hardcode_direct=yes
8802
 
      hardcode_shlibpath_var=no
8803
 
      ;;
8804
 
 
8805
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
8806
 
    kfreebsd*-gnu)
8807
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8808
 
      hardcode_libdir_flag_spec='-R$libdir'
8809
 
      hardcode_direct=yes
8810
 
      hardcode_shlibpath_var=no
8811
 
      link_all_deplibs=no
8812
 
      ;;
8813
 
 
8814
 
    hpux9*)
8815
 
      if test "$GCC" = yes; then
8816
 
        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'
8817
 
      else
8818
 
        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'
8819
 
      fi
8820
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8821
 
      hardcode_libdir_separator=:
8822
 
      hardcode_direct=yes
8823
 
 
8824
 
      # hardcode_minus_L: Not really in the search PATH,
8825
 
      # but as the default location of the library.
8826
 
      hardcode_minus_L=yes
8827
 
      export_dynamic_flag_spec='${wl}-E'
8828
 
      ;;
8829
 
 
8830
 
    hpux10*)
8831
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8832
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8833
 
      else
8834
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8835
 
      fi
8836
 
      if test "$with_gnu_ld" = no; then
8837
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8838
 
        hardcode_libdir_separator=:
8839
 
 
8840
 
        hardcode_direct=yes
8841
 
        export_dynamic_flag_spec='${wl}-E'
8842
 
 
8843
 
        # hardcode_minus_L: Not really in the search PATH,
8844
 
        # but as the default location of the library.
8845
 
        hardcode_minus_L=yes
8846
 
      fi
8847
 
      ;;
8848
 
 
8849
 
    hpux11*)
8850
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8851
 
        case $host_cpu in
8852
 
        hppa*64*)
8853
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854
 
          ;;
8855
 
        ia64*)
8856
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8857
 
          ;;
8858
 
        *)
8859
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8860
 
          ;;
8861
 
        esac
8862
 
      else
8863
 
        case $host_cpu in
8864
 
        hppa*64*)
8865
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8866
 
          ;;
8867
 
        ia64*)
8868
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8869
 
          ;;
8870
 
        *)
8871
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872
 
          ;;
8873
 
        esac
8874
 
      fi
8875
 
      if test "$with_gnu_ld" = no; then
8876
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8877
 
        hardcode_libdir_separator=:
8878
 
 
8879
 
        case $host_cpu in
8880
 
        hppa*64*|ia64*)
8881
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8882
 
          hardcode_direct=no
8883
 
          hardcode_shlibpath_var=no
8884
 
          ;;
8885
 
        *)
8886
 
          hardcode_direct=yes
8887
 
          export_dynamic_flag_spec='${wl}-E'
8888
 
 
8889
 
          # hardcode_minus_L: Not really in the search PATH,
8890
 
          # but as the default location of the library.
8891
 
          hardcode_minus_L=yes
8892
 
          ;;
8893
 
        esac
8894
 
      fi
8895
 
      ;;
8896
 
 
8897
 
    irix5* | irix6* | nonstopux*)
8898
 
      if test "$GCC" = yes; then
8899
 
        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'
8900
 
      else
8901
 
        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'
8902
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8903
 
      fi
8904
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8905
 
      hardcode_libdir_separator=:
8906
 
      link_all_deplibs=yes
8907
 
      ;;
8908
 
 
8909
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8910
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8911
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8912
 
      else
8913
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8914
 
      fi
8915
 
      hardcode_libdir_flag_spec='-R$libdir'
8916
 
      hardcode_direct=yes
8917
 
      hardcode_shlibpath_var=no
8918
 
      ;;
8919
 
 
8920
 
    newsos6)
8921
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8922
 
      hardcode_direct=yes
8923
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8924
 
      hardcode_libdir_separator=:
8925
 
      hardcode_shlibpath_var=no
8926
 
      ;;
8927
 
 
8928
 
    openbsd*)
8929
 
      hardcode_direct=yes
8930
 
      hardcode_shlibpath_var=no
8931
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8932
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8933
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8934
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8935
 
        export_dynamic_flag_spec='${wl}-E'
8936
 
      else
8937
 
       case $host_os in
8938
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8939
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8940
 
           hardcode_libdir_flag_spec='-R$libdir'
8941
 
           ;;
8942
 
         *)
8943
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8944
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8945
 
           ;;
8946
 
       esac
8947
 
      fi
8948
 
      ;;
8949
 
 
8950
 
    os2*)
8951
 
      hardcode_libdir_flag_spec='-L$libdir'
8952
 
      hardcode_minus_L=yes
8953
 
      allow_undefined_flag=unsupported
8954
 
      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'
8955
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8956
 
      ;;
8957
 
 
8958
 
    osf3*)
8959
 
      if test "$GCC" = yes; then
8960
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8961
 
        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'
8962
 
      else
8963
 
        allow_undefined_flag=' -expect_unresolved \*'
8964
 
        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'
8965
 
      fi
8966
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8967
 
      hardcode_libdir_separator=:
8968
 
      ;;
8969
 
 
8970
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8971
 
      if test "$GCC" = yes; then
8972
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8973
 
        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'
8974
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8975
 
      else
8976
 
        allow_undefined_flag=' -expect_unresolved \*'
8977
 
        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'
8978
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8979
 
        $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'
8980
 
 
8981
 
        # Both c and cxx compiler support -rpath directly
8982
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8983
 
      fi
8984
 
      hardcode_libdir_separator=:
8985
 
      ;;
8986
 
 
8987
 
    solaris*)
8988
 
      no_undefined_flag=' -z text'
8989
 
      if test "$GCC" = yes; then
8990
 
        wlarc='${wl}'
8991
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8992
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8993
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8994
 
      else
8995
 
        wlarc=''
8996
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8997
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8998
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8999
 
      fi
9000
 
      hardcode_libdir_flag_spec='-R$libdir'
9001
 
      hardcode_shlibpath_var=no
9002
 
      case $host_os in
9003
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
9004
 
      *)
9005
 
        # The compiler driver will combine linker options so we
9006
 
        # cannot just pass the convience library names through
9007
 
        # without $wl, iff we do not link with $LD.
9008
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
9009
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
9010
 
        case $wlarc in
9011
 
        '')
9012
 
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9013
 
        *)
9014
 
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
9015
 
        esac ;;
9016
 
      esac
9017
 
      link_all_deplibs=yes
9018
 
      ;;
9019
 
 
9020
 
    sunos4*)
9021
 
      if test "x$host_vendor" = xsequent; then
9022
 
        # Use $CC to link under sequent, because it throws in some extra .o
9023
 
        # files that make .init and .fini sections work.
9024
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9025
 
      else
9026
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9027
 
      fi
9028
 
      hardcode_libdir_flag_spec='-L$libdir'
9029
 
      hardcode_direct=yes
9030
 
      hardcode_minus_L=yes
9031
 
      hardcode_shlibpath_var=no
9032
 
      ;;
9033
 
 
9034
 
    sysv4)
9035
 
      case $host_vendor in
9036
 
        sni)
9037
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038
 
          hardcode_direct=yes # is this really true???
9039
 
        ;;
9040
 
        siemens)
9041
 
          ## LD is ld it makes a PLAMLIB
9042
 
          ## CC just makes a GrossModule.
9043
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9044
 
          reload_cmds='$CC -r -o $output$reload_objs'
9045
 
          hardcode_direct=no
9046
 
        ;;
9047
 
        motorola)
9048
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9049
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9050
 
        ;;
9051
 
      esac
9052
 
      runpath_var='LD_RUN_PATH'
9053
 
      hardcode_shlibpath_var=no
9054
 
      ;;
9055
 
 
9056
 
    sysv4.3*)
9057
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9058
 
      hardcode_shlibpath_var=no
9059
 
      export_dynamic_flag_spec='-Bexport'
9060
 
      ;;
9061
 
 
9062
 
    sysv4*MP*)
9063
 
      if test -d /usr/nec; then
9064
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9065
 
        hardcode_shlibpath_var=no
9066
 
        runpath_var=LD_RUN_PATH
9067
 
        hardcode_runpath_var=yes
9068
 
        ld_shlibs=yes
9069
 
      fi
9070
 
      ;;
9071
 
 
9072
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9073
 
      no_undefined_flag='${wl}-z,text'
9074
 
      archive_cmds_need_lc=no
9075
 
      hardcode_shlibpath_var=no
9076
 
      runpath_var='LD_RUN_PATH'
9077
 
 
9078
 
      if test "$GCC" = yes; then
9079
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9080
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9081
 
      else
9082
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9083
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9084
 
      fi
9085
 
      ;;
9086
 
 
9087
 
    sysv5* | sco3.2v5* | sco5v6*)
9088
 
      # Note: We can NOT use -z defs as we might desire, because we do not
9089
 
      # link with -lc, and that would cause any symbols used from libc to
9090
 
      # always be unresolved, which means just about no library would
9091
 
      # ever link correctly.  If we're not using GNU ld we use -z text
9092
 
      # though, which does catch some bad symbols but isn't as heavy-handed
9093
 
      # as -z defs.
9094
 
      no_undefined_flag='${wl}-z,text'
9095
 
      allow_undefined_flag='${wl}-z,nodefs'
9096
 
      archive_cmds_need_lc=no
9097
 
      hardcode_shlibpath_var=no
9098
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9099
 
      hardcode_libdir_separator=':'
9100
 
      link_all_deplibs=yes
9101
 
      export_dynamic_flag_spec='${wl}-Bexport'
9102
 
      runpath_var='LD_RUN_PATH'
9103
 
 
9104
 
      if test "$GCC" = yes; then
9105
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9106
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9107
 
      else
9108
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9110
 
      fi
9111
 
      ;;
9112
 
 
9113
 
    uts4*)
9114
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9115
 
      hardcode_libdir_flag_spec='-L$libdir'
9116
 
      hardcode_shlibpath_var=no
9117
 
      ;;
9118
 
 
9119
 
    *)
9120
 
      ld_shlibs=no
9121
 
      ;;
9122
 
    esac
9123
 
  fi
9124
 
 
9125
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9126
 
echo "${ECHO_T}$ld_shlibs" >&6; }
9127
 
test "$ld_shlibs" = no && can_build_shared=no
9128
 
 
9129
 
#
9130
 
# Do we need to explicitly link libc?
9131
 
#
9132
 
case "x$archive_cmds_need_lc" in
9133
 
x|xyes)
9134
 
  # Assume -lc should be added
9135
 
  archive_cmds_need_lc=yes
9136
 
 
9137
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
9138
 
    case $archive_cmds in
9139
 
    *'~'*)
9140
 
      # FIXME: we may have to deal with multi-command sequences.
9141
 
      ;;
9142
 
    '$CC '*)
9143
 
      # Test whether the compiler implicitly links with -lc since on some
9144
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9145
 
      # to ld, don't add -lc before -lgcc.
9146
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9147
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9148
 
      $rm conftest*
9149
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
 
 
9151
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9152
 
  (eval $ac_compile) 2>&5
9153
 
  ac_status=$?
9154
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155
 
  (exit $ac_status); } 2>conftest.err; then
9156
 
        soname=conftest
9157
 
        lib=conftest
9158
 
        libobjs=conftest.$ac_objext
9159
 
        deplibs=
9160
 
        wl=$lt_prog_compiler_wl
9161
 
        pic_flag=$lt_prog_compiler_pic
9162
 
        compiler_flags=-v
9163
 
        linker_flags=-v
9164
 
        verstring=
9165
 
        output_objdir=.
9166
 
        libname=conftest
9167
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
9168
 
        allow_undefined_flag=
9169
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9170
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9171
 
  ac_status=$?
9172
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173
 
  (exit $ac_status); }
9174
 
        then
9175
 
          archive_cmds_need_lc=no
9176
 
        else
9177
 
          archive_cmds_need_lc=yes
9178
 
        fi
9179
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
9180
 
      else
9181
 
        cat conftest.err 1>&5
9182
 
      fi
9183
 
      $rm conftest*
9184
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9185
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9186
 
      ;;
9187
 
    esac
9188
 
  fi
9189
 
  ;;
9190
 
esac
9191
 
 
9192
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9193
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9194
 
library_names_spec=
9195
 
libname_spec='lib$name'
9196
 
soname_spec=
9197
 
shrext_cmds=".so"
9198
 
postinstall_cmds=
9199
 
postuninstall_cmds=
9200
 
finish_cmds=
9201
 
finish_eval=
9202
 
shlibpath_var=
9203
 
shlibpath_overrides_runpath=unknown
9204
 
version_type=none
9205
 
dynamic_linker="$host_os ld.so"
9206
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9207
 
if test "$GCC" = yes; then
9208
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9209
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9210
 
    # if the path contains ";" then we assume it to be the separator
9211
 
    # otherwise default to the standard path separator (i.e. ":") - it is
9212
 
    # assumed that no part of a normal pathname contains ";" but that should
9213
 
    # okay in the real world where ";" in dirpaths is itself problematic.
9214
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9215
 
  else
9216
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9217
 
  fi
9218
 
else
9219
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9220
 
fi
9221
 
need_lib_prefix=unknown
9222
 
hardcode_into_libs=no
9223
 
 
9224
 
# when you set need_version to no, make sure it does not cause -set_version
9225
 
# flags to be left without arguments
9226
 
need_version=unknown
9227
 
 
9228
 
case $host_os in
9229
 
aix3*)
9230
 
  version_type=linux
9231
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9232
 
  shlibpath_var=LIBPATH
9233
 
 
9234
 
  # AIX 3 has no versioning support, so we append a major version to the name.
9235
 
  soname_spec='${libname}${release}${shared_ext}$major'
9236
 
  ;;
9237
 
 
9238
 
aix4* | aix5*)
9239
 
  version_type=linux
9240
 
  need_lib_prefix=no
9241
 
  need_version=no
9242
 
  hardcode_into_libs=yes
9243
 
  if test "$host_cpu" = ia64; then
9244
 
    # AIX 5 supports IA64
9245
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9246
 
    shlibpath_var=LD_LIBRARY_PATH
9247
 
  else
9248
 
    # With GCC up to 2.95.x, collect2 would create an import file
9249
 
    # for dependence libraries.  The import file would start with
9250
 
    # the line `#! .'.  This would cause the generated library to
9251
 
    # depend on `.', always an invalid library.  This was fixed in
9252
 
    # development snapshots of GCC prior to 3.0.
9253
 
    case $host_os in
9254
 
      aix4 | aix4.[01] | aix4.[01].*)
9255
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9256
 
           echo ' yes '
9257
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9258
 
        :
9259
 
      else
9260
 
        can_build_shared=no
9261
 
      fi
9262
 
      ;;
9263
 
    esac
9264
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9265
 
    # soname into executable. Probably we can add versioning support to
9266
 
    # collect2, so additional links can be useful in future.
9267
 
    if test "$aix_use_runtimelinking" = yes; then
9268
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9269
 
      # instead of lib<name>.a to let people know that these are not
9270
 
      # typical AIX shared libraries.
9271
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9272
 
    else
9273
 
      # We preserve .a as extension for shared libraries through AIX4.2
9274
 
      # and later when we are not doing run time linking.
9275
 
      library_names_spec='${libname}${release}.a $libname.a'
9276
 
      soname_spec='${libname}${release}${shared_ext}$major'
9277
 
    fi
9278
 
    shlibpath_var=LIBPATH
9279
 
  fi
9280
 
  ;;
9281
 
 
9282
 
amigaos*)
9283
 
  library_names_spec='$libname.ixlibrary $libname.a'
9284
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9285
 
  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'
9286
 
  ;;
9287
 
 
9288
 
beos*)
9289
 
  library_names_spec='${libname}${shared_ext}'
9290
 
  dynamic_linker="$host_os ld.so"
9291
 
  shlibpath_var=LIBRARY_PATH
9292
 
  ;;
9293
 
 
9294
 
bsdi[45]*)
9295
 
  version_type=linux
9296
 
  need_version=no
9297
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9298
 
  soname_spec='${libname}${release}${shared_ext}$major'
9299
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9300
 
  shlibpath_var=LD_LIBRARY_PATH
9301
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9302
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9303
 
  # the default ld.so.conf also contains /usr/contrib/lib and
9304
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9305
 
  # libtool to hard-code these into programs
9306
 
  ;;
9307
 
 
9308
 
cygwin* | mingw* | pw32*)
9309
 
  version_type=windows
9310
 
  shrext_cmds=".dll"
9311
 
  need_version=no
9312
 
  need_lib_prefix=no
9313
 
 
9314
 
  case $GCC,$host_os in
9315
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
9316
 
    library_names_spec='$libname.dll.a'
9317
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9318
 
    postinstall_cmds='base_file=`basename \${file}`~
9319
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9320
 
      dldir=$destdir/`dirname \$dlpath`~
9321
 
      test -d \$dldir || mkdir -p \$dldir~
9322
 
      $install_prog $dir/$dlname \$dldir/$dlname~
9323
 
      chmod a+x \$dldir/$dlname'
9324
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9325
 
      dlpath=$dir/\$dldll~
9326
 
       $rm \$dlpath'
9327
 
    shlibpath_overrides_runpath=yes
9328
 
 
9329
 
    case $host_os in
9330
 
    cygwin*)
9331
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9332
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9333
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9334
 
      ;;
9335
 
    mingw*)
9336
 
      # MinGW DLLs use traditional 'lib' prefix
9337
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9338
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9339
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9340
 
        # It is most probably a Windows format PATH printed by
9341
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9342
 
        # path with ; separators, and with drive letters. We can handle the
9343
 
        # drive letters (cygwin fileutils understands them), so leave them,
9344
 
        # especially as we might pass files found there to a mingw objdump,
9345
 
        # which wouldn't understand a cygwinified path. Ahh.
9346
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9347
 
      else
9348
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9349
 
      fi
9350
 
      ;;
9351
 
    pw32*)
9352
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
9353
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9354
 
      ;;
9355
 
    esac
9356
 
    ;;
9357
 
 
9358
 
  *)
9359
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9360
 
    ;;
9361
 
  esac
9362
 
  dynamic_linker='Win32 ld.exe'
9363
 
  # FIXME: first we should search . and the directory the executable is in
9364
 
  shlibpath_var=PATH
9365
 
  ;;
9366
 
 
9367
 
darwin* | rhapsody*)
9368
 
  dynamic_linker="$host_os dyld"
9369
 
  version_type=darwin
9370
 
  need_lib_prefix=no
9371
 
  need_version=no
9372
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9373
 
  soname_spec='${libname}${release}${major}$shared_ext'
9374
 
  shlibpath_overrides_runpath=yes
9375
 
  shlibpath_var=DYLD_LIBRARY_PATH
9376
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9377
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9378
 
  if test "$GCC" = yes; then
9379
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9380
 
  else
9381
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9382
 
  fi
9383
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9384
 
  ;;
9385
 
 
9386
 
dgux*)
9387
 
  version_type=linux
9388
 
  need_lib_prefix=no
9389
 
  need_version=no
9390
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9391
 
  soname_spec='${libname}${release}${shared_ext}$major'
9392
 
  shlibpath_var=LD_LIBRARY_PATH
9393
 
  ;;
9394
 
 
9395
 
freebsd1*)
9396
 
  dynamic_linker=no
9397
 
  ;;
9398
 
 
9399
 
kfreebsd*-gnu)
9400
 
  version_type=linux
9401
 
  need_lib_prefix=no
9402
 
  need_version=no
9403
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9404
 
  soname_spec='${libname}${release}${shared_ext}$major'
9405
 
  shlibpath_var=LD_LIBRARY_PATH
9406
 
  shlibpath_overrides_runpath=no
9407
 
  hardcode_into_libs=yes
9408
 
  dynamic_linker='GNU ld.so'
9409
 
  ;;
9410
 
 
9411
 
freebsd* | dragonfly*)
9412
 
  # DragonFly does not have aout.  When/if they implement a new
9413
 
  # versioning mechanism, adjust this.
9414
 
  if test -x /usr/bin/objformat; then
9415
 
    objformat=`/usr/bin/objformat`
9416
 
  else
9417
 
    case $host_os in
9418
 
    freebsd[123]*) objformat=aout ;;
9419
 
    *) objformat=elf ;;
9420
 
    esac
9421
 
  fi
9422
 
  version_type=freebsd-$objformat
9423
 
  case $version_type in
9424
 
    freebsd-elf*)
9425
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9426
 
      need_version=no
9427
 
      need_lib_prefix=no
9428
 
      ;;
9429
 
    freebsd-*)
9430
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9431
 
      need_version=yes
9432
 
      ;;
9433
 
  esac
9434
 
  shlibpath_var=LD_LIBRARY_PATH
9435
 
  case $host_os in
9436
 
  freebsd2*)
9437
 
    shlibpath_overrides_runpath=yes
9438
 
    ;;
9439
 
  freebsd3.[01]* | freebsdelf3.[01]*)
9440
 
    shlibpath_overrides_runpath=yes
9441
 
    hardcode_into_libs=yes
9442
 
    ;;
9443
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9444
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9445
 
    shlibpath_overrides_runpath=no
9446
 
    hardcode_into_libs=yes
9447
 
    ;;
9448
 
  freebsd*) # from 4.6 on
9449
 
    shlibpath_overrides_runpath=yes
9450
 
    hardcode_into_libs=yes
9451
 
    ;;
9452
 
  esac
9453
 
  ;;
9454
 
 
9455
 
gnu*)
9456
 
  version_type=linux
9457
 
  need_lib_prefix=no
9458
 
  need_version=no
9459
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9460
 
  soname_spec='${libname}${release}${shared_ext}$major'
9461
 
  shlibpath_var=LD_LIBRARY_PATH
9462
 
  hardcode_into_libs=yes
9463
 
  ;;
9464
 
 
9465
 
hpux9* | hpux10* | hpux11*)
9466
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9467
 
  # link against other versions.
9468
 
  version_type=sunos
9469
 
  need_lib_prefix=no
9470
 
  need_version=no
9471
 
  case $host_cpu in
9472
 
  ia64*)
9473
 
    shrext_cmds='.so'
9474
 
    hardcode_into_libs=yes
9475
 
    dynamic_linker="$host_os dld.so"
9476
 
    shlibpath_var=LD_LIBRARY_PATH
9477
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9478
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9479
 
    soname_spec='${libname}${release}${shared_ext}$major'
9480
 
    if test "X$HPUX_IA64_MODE" = X32; then
9481
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9482
 
    else
9483
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9484
 
    fi
9485
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9486
 
    ;;
9487
 
   hppa*64*)
9488
 
     shrext_cmds='.sl'
9489
 
     hardcode_into_libs=yes
9490
 
     dynamic_linker="$host_os dld.sl"
9491
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9492
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9493
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494
 
     soname_spec='${libname}${release}${shared_ext}$major'
9495
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9496
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9497
 
     ;;
9498
 
   *)
9499
 
    shrext_cmds='.sl'
9500
 
    dynamic_linker="$host_os dld.sl"
9501
 
    shlibpath_var=SHLIB_PATH
9502
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9503
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9504
 
    soname_spec='${libname}${release}${shared_ext}$major'
9505
 
    ;;
9506
 
  esac
9507
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9508
 
  postinstall_cmds='chmod 555 $lib'
9509
 
  ;;
9510
 
 
9511
 
interix3*)
9512
 
  version_type=linux
9513
 
  need_lib_prefix=no
9514
 
  need_version=no
9515
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9516
 
  soname_spec='${libname}${release}${shared_ext}$major'
9517
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9518
 
  shlibpath_var=LD_LIBRARY_PATH
9519
 
  shlibpath_overrides_runpath=no
9520
 
  hardcode_into_libs=yes
9521
 
  ;;
9522
 
 
9523
 
irix5* | irix6* | nonstopux*)
9524
 
  case $host_os in
9525
 
    nonstopux*) version_type=nonstopux ;;
9526
 
    *)
9527
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
9528
 
                version_type=linux
9529
 
        else
9530
 
                version_type=irix
9531
 
        fi ;;
9532
 
  esac
9533
 
  need_lib_prefix=no
9534
 
  need_version=no
9535
 
  soname_spec='${libname}${release}${shared_ext}$major'
9536
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9537
 
  case $host_os in
9538
 
  irix5* | nonstopux*)
9539
 
    libsuff= shlibsuff=
9540
 
    ;;
9541
 
  *)
9542
 
    case $LD in # libtool.m4 will add one of these switches to LD
9543
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9544
 
      libsuff= shlibsuff= libmagic=32-bit;;
9545
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9546
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9547
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9548
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9549
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9550
 
    esac
9551
 
    ;;
9552
 
  esac
9553
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9554
 
  shlibpath_overrides_runpath=no
9555
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9556
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9557
 
  hardcode_into_libs=yes
9558
 
  ;;
9559
 
 
9560
 
# No shared lib support for Linux oldld, aout, or coff.
9561
 
linux*oldld* | linux*aout* | linux*coff*)
9562
 
  dynamic_linker=no
9563
 
  ;;
9564
 
 
9565
 
# This must be Linux ELF.
9566
 
linux*)
9567
 
  version_type=linux
9568
 
  need_lib_prefix=no
9569
 
  need_version=no
9570
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9571
 
  soname_spec='${libname}${release}${shared_ext}$major'
9572
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9573
 
  shlibpath_var=LD_LIBRARY_PATH
9574
 
  shlibpath_overrides_runpath=no
9575
 
  # This implies no fast_install, which is unacceptable.
9576
 
  # Some rework will be needed to allow for fast_install
9577
 
  # before this can be enabled.
9578
 
  hardcode_into_libs=yes
9579
 
 
9580
 
  # Append ld.so.conf contents to the search path
9581
 
  if test -f /etc/ld.so.conf; then
9582
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9583
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9584
 
  fi
9585
 
 
9586
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9587
 
  # powerpc, because MkLinux only supported shared libraries with the
9588
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9589
 
  # most powerpc-linux boxes support dynamic linking these days and
9590
 
  # people can always --disable-shared, the test was removed, and we
9591
 
  # assume the GNU/Linux dynamic linker is in use.
9592
 
  dynamic_linker='GNU/Linux ld.so'
9593
 
  ;;
9594
 
 
9595
 
netbsdelf*-gnu)
9596
 
  version_type=linux
9597
 
  need_lib_prefix=no
9598
 
  need_version=no
9599
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600
 
  soname_spec='${libname}${release}${shared_ext}$major'
9601
 
  shlibpath_var=LD_LIBRARY_PATH
9602
 
  shlibpath_overrides_runpath=no
9603
 
  hardcode_into_libs=yes
9604
 
  dynamic_linker='NetBSD ld.elf_so'
9605
 
  ;;
9606
 
 
9607
 
knetbsd*-gnu)
9608
 
  version_type=linux
9609
 
  need_lib_prefix=no
9610
 
  need_version=no
9611
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9612
 
  soname_spec='${libname}${release}${shared_ext}$major'
9613
 
  shlibpath_var=LD_LIBRARY_PATH
9614
 
  shlibpath_overrides_runpath=no
9615
 
  hardcode_into_libs=yes
9616
 
  dynamic_linker='GNU ld.so'
9617
 
  ;;
9618
 
 
9619
 
netbsd*)
9620
 
  version_type=sunos
9621
 
  need_lib_prefix=no
9622
 
  need_version=no
9623
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9624
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9625
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9626
 
    dynamic_linker='NetBSD (a.out) ld.so'
9627
 
  else
9628
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9629
 
    soname_spec='${libname}${release}${shared_ext}$major'
9630
 
    dynamic_linker='NetBSD ld.elf_so'
9631
 
  fi
9632
 
  shlibpath_var=LD_LIBRARY_PATH
9633
 
  shlibpath_overrides_runpath=yes
9634
 
  hardcode_into_libs=yes
9635
 
  ;;
9636
 
 
9637
 
newsos6)
9638
 
  version_type=linux
9639
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9640
 
  shlibpath_var=LD_LIBRARY_PATH
9641
 
  shlibpath_overrides_runpath=yes
9642
 
  ;;
9643
 
 
9644
 
nto-qnx*)
9645
 
  version_type=linux
9646
 
  need_lib_prefix=no
9647
 
  need_version=no
9648
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9649
 
  soname_spec='${libname}${release}${shared_ext}$major'
9650
 
  shlibpath_var=LD_LIBRARY_PATH
9651
 
  shlibpath_overrides_runpath=yes
9652
 
  ;;
9653
 
 
9654
 
openbsd*)
9655
 
  version_type=sunos
9656
 
  sys_lib_dlsearch_path_spec="/usr/lib"
9657
 
  need_lib_prefix=no
9658
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9659
 
  case $host_os in
9660
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9661
 
    *)                         need_version=no  ;;
9662
 
  esac
9663
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9664
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9665
 
  shlibpath_var=LD_LIBRARY_PATH
9666
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9667
 
    case $host_os in
9668
 
      openbsd2.[89] | openbsd2.[89].*)
9669
 
        shlibpath_overrides_runpath=no
9670
 
        ;;
9671
 
      *)
9672
 
        shlibpath_overrides_runpath=yes
9673
 
        ;;
9674
 
      esac
9675
 
  else
9676
 
    shlibpath_overrides_runpath=yes
9677
 
  fi
9678
 
  ;;
9679
 
 
9680
 
os2*)
9681
 
  libname_spec='$name'
9682
 
  shrext_cmds=".dll"
9683
 
  need_lib_prefix=no
9684
 
  library_names_spec='$libname${shared_ext} $libname.a'
9685
 
  dynamic_linker='OS/2 ld.exe'
9686
 
  shlibpath_var=LIBPATH
9687
 
  ;;
9688
 
 
9689
 
osf3* | osf4* | osf5*)
9690
 
  version_type=osf
9691
 
  need_lib_prefix=no
9692
 
  need_version=no
9693
 
  soname_spec='${libname}${release}${shared_ext}$major'
9694
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695
 
  shlibpath_var=LD_LIBRARY_PATH
9696
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9697
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9698
 
  ;;
9699
 
 
9700
 
solaris*)
9701
 
  version_type=linux
9702
 
  need_lib_prefix=no
9703
 
  need_version=no
9704
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9705
 
  soname_spec='${libname}${release}${shared_ext}$major'
9706
 
  shlibpath_var=LD_LIBRARY_PATH
9707
 
  shlibpath_overrides_runpath=yes
9708
 
  hardcode_into_libs=yes
9709
 
  # ldd complains unless libraries are executable
9710
 
  postinstall_cmds='chmod +x $lib'
9711
 
  ;;
9712
 
 
9713
 
sunos4*)
9714
 
  version_type=sunos
9715
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9716
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9717
 
  shlibpath_var=LD_LIBRARY_PATH
9718
 
  shlibpath_overrides_runpath=yes
9719
 
  if test "$with_gnu_ld" = yes; then
9720
 
    need_lib_prefix=no
9721
 
  fi
9722
 
  need_version=yes
9723
 
  ;;
9724
 
 
9725
 
sysv4 | sysv4.3*)
9726
 
  version_type=linux
9727
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9728
 
  soname_spec='${libname}${release}${shared_ext}$major'
9729
 
  shlibpath_var=LD_LIBRARY_PATH
9730
 
  case $host_vendor in
9731
 
    sni)
9732
 
      shlibpath_overrides_runpath=no
9733
 
      need_lib_prefix=no
9734
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9735
 
      runpath_var=LD_RUN_PATH
9736
 
      ;;
9737
 
    siemens)
9738
 
      need_lib_prefix=no
9739
 
      ;;
9740
 
    motorola)
9741
 
      need_lib_prefix=no
9742
 
      need_version=no
9743
 
      shlibpath_overrides_runpath=no
9744
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9745
 
      ;;
9746
 
  esac
9747
 
  ;;
9748
 
 
9749
 
sysv4*MP*)
9750
 
  if test -d /usr/nec ;then
9751
 
    version_type=linux
9752
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9753
 
    soname_spec='$libname${shared_ext}.$major'
9754
 
    shlibpath_var=LD_LIBRARY_PATH
9755
 
  fi
9756
 
  ;;
9757
 
 
9758
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9759
 
  version_type=freebsd-elf
9760
 
  need_lib_prefix=no
9761
 
  need_version=no
9762
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9763
 
  soname_spec='${libname}${release}${shared_ext}$major'
9764
 
  shlibpath_var=LD_LIBRARY_PATH
9765
 
  hardcode_into_libs=yes
9766
 
  if test "$with_gnu_ld" = yes; then
9767
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9768
 
    shlibpath_overrides_runpath=no
9769
 
  else
9770
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9771
 
    shlibpath_overrides_runpath=yes
9772
 
    case $host_os in
9773
 
      sco3.2v5*)
9774
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9775
 
        ;;
9776
 
    esac
9777
 
  fi
9778
 
  sys_lib_dlsearch_path_spec='/usr/lib'
9779
 
  ;;
9780
 
 
9781
 
uts4*)
9782
 
  version_type=linux
9783
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9784
 
  soname_spec='${libname}${release}${shared_ext}$major'
9785
 
  shlibpath_var=LD_LIBRARY_PATH
9786
 
  ;;
9787
 
 
9788
 
*)
9789
 
  dynamic_linker=no
9790
 
  ;;
9791
 
esac
9792
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9793
 
echo "${ECHO_T}$dynamic_linker" >&6; }
9794
 
test "$dynamic_linker" = no && can_build_shared=no
9795
 
 
9796
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9797
 
if test "$GCC" = yes; then
9798
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9799
 
fi
9800
 
 
9801
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9802
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9803
 
hardcode_action=
9804
 
if test -n "$hardcode_libdir_flag_spec" || \
9805
 
   test -n "$runpath_var" || \
9806
 
   test "X$hardcode_automatic" = "Xyes" ; then
9807
 
 
9808
 
  # We can hardcode non-existant directories.
9809
 
  if test "$hardcode_direct" != no &&
9810
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9811
 
     # have to relink, otherwise we might link with an installed library
9812
 
     # when we should be linking with a yet-to-be-installed one
9813
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9814
 
     test "$hardcode_minus_L" != no; then
9815
 
    # Linking always hardcodes the temporary library directory.
9816
 
    hardcode_action=relink
9817
 
  else
9818
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9819
 
    hardcode_action=immediate
9820
 
  fi
9821
 
else
9822
 
  # We cannot hardcode anything, or else we can only hardcode existing
9823
 
  # directories.
9824
 
  hardcode_action=unsupported
9825
 
fi
9826
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9827
 
echo "${ECHO_T}$hardcode_action" >&6; }
9828
 
 
9829
 
if test "$hardcode_action" = relink; then
9830
 
  # Fast installation is not supported
9831
 
  enable_fast_install=no
9832
 
elif test "$shlibpath_overrides_runpath" = yes ||
9833
 
     test "$enable_shared" = no; then
9834
 
  # Fast installation is not necessary
9835
 
  enable_fast_install=needless
9836
 
fi
9837
 
 
9838
 
striplib=
9839
 
old_striplib=
9840
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9841
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9842
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9843
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9844
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9845
 
  { echo "$as_me:$LINENO: result: yes" >&5
9846
 
echo "${ECHO_T}yes" >&6; }
9847
 
else
9848
 
# FIXME - insert some real tests, host_os isn't really good enough
9849
 
  case $host_os in
9850
 
   darwin*)
9851
 
       if test -n "$STRIP" ; then
9852
 
         striplib="$STRIP -x"
9853
 
         { echo "$as_me:$LINENO: result: yes" >&5
9854
 
echo "${ECHO_T}yes" >&6; }
9855
 
       else
9856
 
  { echo "$as_me:$LINENO: result: no" >&5
9857
 
echo "${ECHO_T}no" >&6; }
9858
 
fi
9859
 
       ;;
9860
 
   *)
9861
 
  { echo "$as_me:$LINENO: result: no" >&5
9862
 
echo "${ECHO_T}no" >&6; }
9863
 
    ;;
9864
 
  esac
9865
 
fi
9866
 
 
9867
 
if test "x$enable_dlopen" != xyes; then
9868
 
  enable_dlopen=unknown
9869
 
  enable_dlopen_self=unknown
9870
 
  enable_dlopen_self_static=unknown
9871
 
else
9872
 
  lt_cv_dlopen=no
9873
 
  lt_cv_dlopen_libs=
9874
 
 
9875
 
  case $host_os in
9876
 
  beos*)
9877
 
    lt_cv_dlopen="load_add_on"
9878
 
    lt_cv_dlopen_libs=
9879
 
    lt_cv_dlopen_self=yes
9880
 
    ;;
9881
 
 
9882
 
  mingw* | pw32*)
9883
 
    lt_cv_dlopen="LoadLibrary"
9884
 
    lt_cv_dlopen_libs=
9885
 
   ;;
9886
 
 
9887
 
  cygwin*)
9888
 
    lt_cv_dlopen="dlopen"
9889
 
    lt_cv_dlopen_libs=
9890
 
   ;;
9891
 
 
9892
 
  darwin*)
9893
 
  # if libdl is installed we need to link against it
9894
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9895
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9896
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9897
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9898
 
else
9899
 
  ac_check_lib_save_LIBS=$LIBS
9900
 
LIBS="-ldl  $LIBS"
9901
 
cat >conftest.$ac_ext <<_ACEOF
9902
 
/* confdefs.h.  */
9903
 
_ACEOF
9904
 
cat confdefs.h >>conftest.$ac_ext
9905
 
cat >>conftest.$ac_ext <<_ACEOF
9906
 
/* end confdefs.h.  */
9907
 
 
9908
 
/* Override any GCC internal prototype to avoid an error.
9909
 
   Use char because int might match the return type of a GCC
9910
 
   builtin and then its argument prototype would still apply.  */
9911
 
#ifdef __cplusplus
9912
 
extern "C"
9913
 
#endif
9914
 
char dlopen ();
9915
 
int
9916
 
main ()
9917
 
{
9918
 
return dlopen ();
9919
 
  ;
9920
 
  return 0;
9921
 
}
9922
 
_ACEOF
9923
 
rm -f conftest.$ac_objext conftest$ac_exeext
9924
 
if { (ac_try="$ac_link"
9925
 
case "(($ac_try" in
9926
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9927
 
  *) ac_try_echo=$ac_try;;
9928
 
esac
9929
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9930
 
  (eval "$ac_link") 2>conftest.er1
9931
 
  ac_status=$?
9932
 
  grep -v '^ *+' conftest.er1 >conftest.err
9933
 
  rm -f conftest.er1
9934
 
  cat conftest.err >&5
9935
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936
 
  (exit $ac_status); } && {
9937
 
         test -z "$ac_c_werror_flag" ||
9938
 
         test ! -s conftest.err
9939
 
       } && test -s conftest$ac_exeext &&
9940
 
       $as_test_x conftest$ac_exeext; then
9941
 
  ac_cv_lib_dl_dlopen=yes
9942
 
else
9943
 
  echo "$as_me: failed program was:" >&5
9944
 
sed 's/^/| /' conftest.$ac_ext >&5
9945
 
 
9946
 
        ac_cv_lib_dl_dlopen=no
9947
 
fi
9948
 
 
9949
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9950
 
      conftest$ac_exeext conftest.$ac_ext
9951
 
LIBS=$ac_check_lib_save_LIBS
9952
 
fi
9953
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9954
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9955
 
if test $ac_cv_lib_dl_dlopen = yes; then
9956
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9957
 
else
9958
 
 
9959
 
    lt_cv_dlopen="dyld"
9960
 
    lt_cv_dlopen_libs=
9961
 
    lt_cv_dlopen_self=yes
9962
 
 
9963
 
fi
9964
 
 
9965
 
   ;;
9966
 
 
9967
 
  *)
9968
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
9969
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9970
 
if test "${ac_cv_func_shl_load+set}" = set; then
9971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9972
 
else
9973
 
  cat >conftest.$ac_ext <<_ACEOF
9974
 
/* confdefs.h.  */
9975
 
_ACEOF
9976
 
cat confdefs.h >>conftest.$ac_ext
9977
 
cat >>conftest.$ac_ext <<_ACEOF
9978
 
/* end confdefs.h.  */
9979
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9980
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9981
 
#define shl_load innocuous_shl_load
9982
 
 
9983
 
/* System header to define __stub macros and hopefully few prototypes,
9984
 
    which can conflict with char shl_load (); below.
9985
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9986
 
    <limits.h> exists even on freestanding compilers.  */
9987
 
 
9988
 
#ifdef __STDC__
9989
 
# include <limits.h>
9990
 
#else
9991
 
# include <assert.h>
9992
 
#endif
9993
 
 
9994
 
#undef shl_load
9995
 
 
9996
 
/* Override any GCC internal prototype to avoid an error.
9997
 
   Use char because int might match the return type of a GCC
9998
 
   builtin and then its argument prototype would still apply.  */
9999
 
#ifdef __cplusplus
10000
 
extern "C"
10001
 
#endif
10002
 
char shl_load ();
10003
 
/* The GNU C library defines this for functions which it implements
10004
 
    to always fail with ENOSYS.  Some functions are actually named
10005
 
    something starting with __ and the normal name is an alias.  */
10006
 
#if defined __stub_shl_load || defined __stub___shl_load
10007
 
choke me
10008
 
#endif
10009
 
 
10010
 
int
10011
 
main ()
10012
 
{
10013
 
return shl_load ();
10014
 
  ;
10015
 
  return 0;
10016
 
}
10017
 
_ACEOF
10018
 
rm -f conftest.$ac_objext conftest$ac_exeext
10019
 
if { (ac_try="$ac_link"
10020
 
case "(($ac_try" in
10021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022
 
  *) ac_try_echo=$ac_try;;
10023
 
esac
10024
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025
 
  (eval "$ac_link") 2>conftest.er1
10026
 
  ac_status=$?
10027
 
  grep -v '^ *+' conftest.er1 >conftest.err
10028
 
  rm -f conftest.er1
10029
 
  cat conftest.err >&5
10030
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031
 
  (exit $ac_status); } && {
10032
 
         test -z "$ac_c_werror_flag" ||
10033
 
         test ! -s conftest.err
10034
 
       } && test -s conftest$ac_exeext &&
10035
 
       $as_test_x conftest$ac_exeext; then
10036
 
  ac_cv_func_shl_load=yes
10037
 
else
10038
 
  echo "$as_me: failed program was:" >&5
10039
 
sed 's/^/| /' conftest.$ac_ext >&5
10040
 
 
10041
 
        ac_cv_func_shl_load=no
10042
 
fi
10043
 
 
10044
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10045
 
      conftest$ac_exeext conftest.$ac_ext
10046
 
fi
10047
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10048
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10049
 
if test $ac_cv_func_shl_load = yes; then
10050
 
  lt_cv_dlopen="shl_load"
10051
 
else
10052
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10053
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10054
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10055
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10056
 
else
10057
 
  ac_check_lib_save_LIBS=$LIBS
10058
 
LIBS="-ldld  $LIBS"
10059
 
cat >conftest.$ac_ext <<_ACEOF
10060
 
/* confdefs.h.  */
10061
 
_ACEOF
10062
 
cat confdefs.h >>conftest.$ac_ext
10063
 
cat >>conftest.$ac_ext <<_ACEOF
10064
 
/* end confdefs.h.  */
10065
 
 
10066
 
/* Override any GCC internal prototype to avoid an error.
10067
 
   Use char because int might match the return type of a GCC
10068
 
   builtin and then its argument prototype would still apply.  */
10069
 
#ifdef __cplusplus
10070
 
extern "C"
10071
 
#endif
10072
 
char shl_load ();
10073
 
int
10074
 
main ()
10075
 
{
10076
 
return shl_load ();
10077
 
  ;
10078
 
  return 0;
10079
 
}
10080
 
_ACEOF
10081
 
rm -f conftest.$ac_objext conftest$ac_exeext
10082
 
if { (ac_try="$ac_link"
10083
 
case "(($ac_try" in
10084
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10085
 
  *) ac_try_echo=$ac_try;;
10086
 
esac
10087
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10088
 
  (eval "$ac_link") 2>conftest.er1
10089
 
  ac_status=$?
10090
 
  grep -v '^ *+' conftest.er1 >conftest.err
10091
 
  rm -f conftest.er1
10092
 
  cat conftest.err >&5
10093
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094
 
  (exit $ac_status); } && {
10095
 
         test -z "$ac_c_werror_flag" ||
10096
 
         test ! -s conftest.err
10097
 
       } && test -s conftest$ac_exeext &&
10098
 
       $as_test_x conftest$ac_exeext; then
10099
 
  ac_cv_lib_dld_shl_load=yes
10100
 
else
10101
 
  echo "$as_me: failed program was:" >&5
10102
 
sed 's/^/| /' conftest.$ac_ext >&5
10103
 
 
10104
 
        ac_cv_lib_dld_shl_load=no
10105
 
fi
10106
 
 
10107
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10108
 
      conftest$ac_exeext conftest.$ac_ext
10109
 
LIBS=$ac_check_lib_save_LIBS
10110
 
fi
10111
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10112
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10113
 
if test $ac_cv_lib_dld_shl_load = yes; then
10114
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10115
 
else
10116
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
10117
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10118
 
if test "${ac_cv_func_dlopen+set}" = set; then
10119
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10120
 
else
10121
 
  cat >conftest.$ac_ext <<_ACEOF
10122
 
/* confdefs.h.  */
10123
 
_ACEOF
10124
 
cat confdefs.h >>conftest.$ac_ext
10125
 
cat >>conftest.$ac_ext <<_ACEOF
10126
 
/* end confdefs.h.  */
10127
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10128
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10129
 
#define dlopen innocuous_dlopen
10130
 
 
10131
 
/* System header to define __stub macros and hopefully few prototypes,
10132
 
    which can conflict with char dlopen (); below.
10133
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10134
 
    <limits.h> exists even on freestanding compilers.  */
10135
 
 
10136
 
#ifdef __STDC__
10137
 
# include <limits.h>
10138
 
#else
10139
 
# include <assert.h>
10140
 
#endif
10141
 
 
10142
 
#undef dlopen
10143
 
 
10144
 
/* Override any GCC internal prototype to avoid an error.
10145
 
   Use char because int might match the return type of a GCC
10146
 
   builtin and then its argument prototype would still apply.  */
10147
 
#ifdef __cplusplus
10148
 
extern "C"
10149
 
#endif
10150
 
char dlopen ();
10151
 
/* The GNU C library defines this for functions which it implements
10152
 
    to always fail with ENOSYS.  Some functions are actually named
10153
 
    something starting with __ and the normal name is an alias.  */
10154
 
#if defined __stub_dlopen || defined __stub___dlopen
10155
 
choke me
10156
 
#endif
10157
 
 
10158
 
int
10159
 
main ()
10160
 
{
10161
 
return dlopen ();
10162
 
  ;
10163
 
  return 0;
10164
 
}
10165
 
_ACEOF
10166
 
rm -f conftest.$ac_objext conftest$ac_exeext
10167
 
if { (ac_try="$ac_link"
10168
 
case "(($ac_try" in
10169
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170
 
  *) ac_try_echo=$ac_try;;
10171
 
esac
10172
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173
 
  (eval "$ac_link") 2>conftest.er1
10174
 
  ac_status=$?
10175
 
  grep -v '^ *+' conftest.er1 >conftest.err
10176
 
  rm -f conftest.er1
10177
 
  cat conftest.err >&5
10178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179
 
  (exit $ac_status); } && {
10180
 
         test -z "$ac_c_werror_flag" ||
10181
 
         test ! -s conftest.err
10182
 
       } && test -s conftest$ac_exeext &&
10183
 
       $as_test_x conftest$ac_exeext; then
10184
 
  ac_cv_func_dlopen=yes
10185
 
else
10186
 
  echo "$as_me: failed program was:" >&5
10187
 
sed 's/^/| /' conftest.$ac_ext >&5
10188
 
 
10189
 
        ac_cv_func_dlopen=no
10190
 
fi
10191
 
 
10192
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193
 
      conftest$ac_exeext conftest.$ac_ext
10194
 
fi
10195
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10196
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10197
 
if test $ac_cv_func_dlopen = yes; then
10198
 
  lt_cv_dlopen="dlopen"
10199
 
else
10200
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10202
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10204
 
else
10205
 
  ac_check_lib_save_LIBS=$LIBS
10206
 
LIBS="-ldl  $LIBS"
10207
 
cat >conftest.$ac_ext <<_ACEOF
10208
 
/* confdefs.h.  */
10209
 
_ACEOF
10210
 
cat confdefs.h >>conftest.$ac_ext
10211
 
cat >>conftest.$ac_ext <<_ACEOF
10212
 
/* end confdefs.h.  */
10213
 
 
10214
 
/* Override any GCC internal prototype to avoid an error.
10215
 
   Use char because int might match the return type of a GCC
10216
 
   builtin and then its argument prototype would still apply.  */
10217
 
#ifdef __cplusplus
10218
 
extern "C"
10219
 
#endif
10220
 
char dlopen ();
10221
 
int
10222
 
main ()
10223
 
{
10224
 
return dlopen ();
10225
 
  ;
10226
 
  return 0;
10227
 
}
10228
 
_ACEOF
10229
 
rm -f conftest.$ac_objext conftest$ac_exeext
10230
 
if { (ac_try="$ac_link"
10231
 
case "(($ac_try" in
10232
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10233
 
  *) ac_try_echo=$ac_try;;
10234
 
esac
10235
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10236
 
  (eval "$ac_link") 2>conftest.er1
10237
 
  ac_status=$?
10238
 
  grep -v '^ *+' conftest.er1 >conftest.err
10239
 
  rm -f conftest.er1
10240
 
  cat conftest.err >&5
10241
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10242
 
  (exit $ac_status); } && {
10243
 
         test -z "$ac_c_werror_flag" ||
10244
 
         test ! -s conftest.err
10245
 
       } && test -s conftest$ac_exeext &&
10246
 
       $as_test_x conftest$ac_exeext; then
10247
 
  ac_cv_lib_dl_dlopen=yes
10248
 
else
10249
 
  echo "$as_me: failed program was:" >&5
10250
 
sed 's/^/| /' conftest.$ac_ext >&5
10251
 
 
10252
 
        ac_cv_lib_dl_dlopen=no
10253
 
fi
10254
 
 
10255
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10256
 
      conftest$ac_exeext conftest.$ac_ext
10257
 
LIBS=$ac_check_lib_save_LIBS
10258
 
fi
10259
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10260
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10261
 
if test $ac_cv_lib_dl_dlopen = yes; then
10262
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10263
 
else
10264
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10265
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10266
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10268
 
else
10269
 
  ac_check_lib_save_LIBS=$LIBS
10270
 
LIBS="-lsvld  $LIBS"
10271
 
cat >conftest.$ac_ext <<_ACEOF
10272
 
/* confdefs.h.  */
10273
 
_ACEOF
10274
 
cat confdefs.h >>conftest.$ac_ext
10275
 
cat >>conftest.$ac_ext <<_ACEOF
10276
 
/* end confdefs.h.  */
10277
 
 
10278
 
/* Override any GCC internal prototype to avoid an error.
10279
 
   Use char because int might match the return type of a GCC
10280
 
   builtin and then its argument prototype would still apply.  */
10281
 
#ifdef __cplusplus
10282
 
extern "C"
10283
 
#endif
10284
 
char dlopen ();
10285
 
int
10286
 
main ()
10287
 
{
10288
 
return dlopen ();
10289
 
  ;
10290
 
  return 0;
10291
 
}
10292
 
_ACEOF
10293
 
rm -f conftest.$ac_objext conftest$ac_exeext
10294
 
if { (ac_try="$ac_link"
10295
 
case "(($ac_try" in
10296
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10297
 
  *) ac_try_echo=$ac_try;;
10298
 
esac
10299
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10300
 
  (eval "$ac_link") 2>conftest.er1
10301
 
  ac_status=$?
10302
 
  grep -v '^ *+' conftest.er1 >conftest.err
10303
 
  rm -f conftest.er1
10304
 
  cat conftest.err >&5
10305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306
 
  (exit $ac_status); } && {
10307
 
         test -z "$ac_c_werror_flag" ||
10308
 
         test ! -s conftest.err
10309
 
       } && test -s conftest$ac_exeext &&
10310
 
       $as_test_x conftest$ac_exeext; then
10311
 
  ac_cv_lib_svld_dlopen=yes
10312
 
else
10313
 
  echo "$as_me: failed program was:" >&5
10314
 
sed 's/^/| /' conftest.$ac_ext >&5
10315
 
 
10316
 
        ac_cv_lib_svld_dlopen=no
10317
 
fi
10318
 
 
10319
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320
 
      conftest$ac_exeext conftest.$ac_ext
10321
 
LIBS=$ac_check_lib_save_LIBS
10322
 
fi
10323
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10324
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10325
 
if test $ac_cv_lib_svld_dlopen = yes; then
10326
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10327
 
else
10328
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10329
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10330
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10332
 
else
10333
 
  ac_check_lib_save_LIBS=$LIBS
10334
 
LIBS="-ldld  $LIBS"
10335
 
cat >conftest.$ac_ext <<_ACEOF
10336
 
/* confdefs.h.  */
10337
 
_ACEOF
10338
 
cat confdefs.h >>conftest.$ac_ext
10339
 
cat >>conftest.$ac_ext <<_ACEOF
10340
 
/* end confdefs.h.  */
10341
 
 
10342
 
/* Override any GCC internal prototype to avoid an error.
10343
 
   Use char because int might match the return type of a GCC
10344
 
   builtin and then its argument prototype would still apply.  */
10345
 
#ifdef __cplusplus
10346
 
extern "C"
10347
 
#endif
10348
 
char dld_link ();
10349
 
int
10350
 
main ()
10351
 
{
10352
 
return dld_link ();
10353
 
  ;
10354
 
  return 0;
10355
 
}
10356
 
_ACEOF
10357
 
rm -f conftest.$ac_objext conftest$ac_exeext
10358
 
if { (ac_try="$ac_link"
10359
 
case "(($ac_try" in
10360
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361
 
  *) ac_try_echo=$ac_try;;
10362
 
esac
10363
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364
 
  (eval "$ac_link") 2>conftest.er1
10365
 
  ac_status=$?
10366
 
  grep -v '^ *+' conftest.er1 >conftest.err
10367
 
  rm -f conftest.er1
10368
 
  cat conftest.err >&5
10369
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370
 
  (exit $ac_status); } && {
10371
 
         test -z "$ac_c_werror_flag" ||
10372
 
         test ! -s conftest.err
10373
 
       } && test -s conftest$ac_exeext &&
10374
 
       $as_test_x conftest$ac_exeext; then
10375
 
  ac_cv_lib_dld_dld_link=yes
10376
 
else
10377
 
  echo "$as_me: failed program was:" >&5
10378
 
sed 's/^/| /' conftest.$ac_ext >&5
10379
 
 
10380
 
        ac_cv_lib_dld_dld_link=no
10381
 
fi
10382
 
 
10383
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384
 
      conftest$ac_exeext conftest.$ac_ext
10385
 
LIBS=$ac_check_lib_save_LIBS
10386
 
fi
10387
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10388
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10389
 
if test $ac_cv_lib_dld_dld_link = yes; then
10390
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10391
 
fi
10392
 
 
10393
 
 
10394
 
fi
10395
 
 
10396
 
 
10397
 
fi
10398
 
 
10399
 
 
10400
 
fi
10401
 
 
10402
 
 
10403
 
fi
10404
 
 
10405
 
 
10406
 
fi
10407
 
 
10408
 
    ;;
10409
 
  esac
10410
 
 
10411
 
  if test "x$lt_cv_dlopen" != xno; then
10412
 
    enable_dlopen=yes
10413
 
  else
10414
 
    enable_dlopen=no
10415
 
  fi
10416
 
 
10417
 
  case $lt_cv_dlopen in
10418
 
  dlopen)
10419
 
    save_CPPFLAGS="$CPPFLAGS"
10420
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10421
 
 
10422
 
    save_LDFLAGS="$LDFLAGS"
10423
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10424
 
 
10425
 
    save_LIBS="$LIBS"
10426
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10427
 
 
10428
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10429
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10430
 
if test "${lt_cv_dlopen_self+set}" = set; then
10431
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10432
 
else
10433
 
          if test "$cross_compiling" = yes; then :
10434
 
  lt_cv_dlopen_self=cross
10435
 
else
10436
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10437
 
  lt_status=$lt_dlunknown
10438
 
  cat > conftest.$ac_ext <<EOF
10439
 
#line 10439 "configure"
10440
 
#include "confdefs.h"
10441
 
 
10442
 
#if HAVE_DLFCN_H
10443
 
#include <dlfcn.h>
10444
 
#endif
10445
 
 
10446
 
#include <stdio.h>
10447
 
 
10448
 
#ifdef RTLD_GLOBAL
10449
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10450
 
#else
10451
 
#  ifdef DL_GLOBAL
10452
 
#    define LT_DLGLOBAL         DL_GLOBAL
10453
 
#  else
10454
 
#    define LT_DLGLOBAL         0
10455
 
#  endif
10456
 
#endif
10457
 
 
10458
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10459
 
   find out it does not work in some platform. */
10460
 
#ifndef LT_DLLAZY_OR_NOW
10461
 
#  ifdef RTLD_LAZY
10462
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10463
 
#  else
10464
 
#    ifdef DL_LAZY
10465
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10466
 
#    else
10467
 
#      ifdef RTLD_NOW
10468
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10469
 
#      else
10470
 
#        ifdef DL_NOW
10471
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10472
 
#        else
10473
 
#          define LT_DLLAZY_OR_NOW      0
10474
 
#        endif
10475
 
#      endif
10476
 
#    endif
10477
 
#  endif
10478
 
#endif
10479
 
 
10480
 
#ifdef __cplusplus
10481
 
extern "C" void exit (int);
10482
 
#endif
10483
 
 
10484
 
void fnord() { int i=42;}
10485
 
int main ()
10486
 
{
10487
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10488
 
  int status = $lt_dlunknown;
10489
 
 
10490
 
  if (self)
10491
 
    {
10492
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10493
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10494
 
      /* dlclose (self); */
10495
 
    }
10496
 
  else
10497
 
    puts (dlerror ());
10498
 
 
10499
 
    exit (status);
10500
 
}
10501
 
EOF
10502
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10503
 
  (eval $ac_link) 2>&5
10504
 
  ac_status=$?
10505
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10507
 
    (./conftest; exit; ) >&5 2>/dev/null
10508
 
    lt_status=$?
10509
 
    case x$lt_status in
10510
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10511
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10512
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10513
 
    esac
10514
 
  else :
10515
 
    # compilation failed
10516
 
    lt_cv_dlopen_self=no
10517
 
  fi
10518
 
fi
10519
 
rm -fr conftest*
10520
 
 
10521
 
 
10522
 
fi
10523
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10524
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10525
 
 
10526
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10527
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10528
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10529
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10530
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10531
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10532
 
else
10533
 
          if test "$cross_compiling" = yes; then :
10534
 
  lt_cv_dlopen_self_static=cross
10535
 
else
10536
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10537
 
  lt_status=$lt_dlunknown
10538
 
  cat > conftest.$ac_ext <<EOF
10539
 
#line 10539 "configure"
10540
 
#include "confdefs.h"
10541
 
 
10542
 
#if HAVE_DLFCN_H
10543
 
#include <dlfcn.h>
10544
 
#endif
10545
 
 
10546
 
#include <stdio.h>
10547
 
 
10548
 
#ifdef RTLD_GLOBAL
10549
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10550
 
#else
10551
 
#  ifdef DL_GLOBAL
10552
 
#    define LT_DLGLOBAL         DL_GLOBAL
10553
 
#  else
10554
 
#    define LT_DLGLOBAL         0
10555
 
#  endif
10556
 
#endif
10557
 
 
10558
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10559
 
   find out it does not work in some platform. */
10560
 
#ifndef LT_DLLAZY_OR_NOW
10561
 
#  ifdef RTLD_LAZY
10562
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10563
 
#  else
10564
 
#    ifdef DL_LAZY
10565
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10566
 
#    else
10567
 
#      ifdef RTLD_NOW
10568
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10569
 
#      else
10570
 
#        ifdef DL_NOW
10571
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10572
 
#        else
10573
 
#          define LT_DLLAZY_OR_NOW      0
10574
 
#        endif
10575
 
#      endif
10576
 
#    endif
10577
 
#  endif
10578
 
#endif
10579
 
 
10580
 
#ifdef __cplusplus
10581
 
extern "C" void exit (int);
10582
 
#endif
10583
 
 
10584
 
void fnord() { int i=42;}
10585
 
int main ()
10586
 
{
10587
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10588
 
  int status = $lt_dlunknown;
10589
 
 
10590
 
  if (self)
10591
 
    {
10592
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10593
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10594
 
      /* dlclose (self); */
10595
 
    }
10596
 
  else
10597
 
    puts (dlerror ());
10598
 
 
10599
 
    exit (status);
10600
 
}
10601
 
EOF
10602
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10603
 
  (eval $ac_link) 2>&5
10604
 
  ac_status=$?
10605
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10607
 
    (./conftest; exit; ) >&5 2>/dev/null
10608
 
    lt_status=$?
10609
 
    case x$lt_status in
10610
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10611
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10612
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10613
 
    esac
10614
 
  else :
10615
 
    # compilation failed
10616
 
    lt_cv_dlopen_self_static=no
10617
 
  fi
10618
 
fi
10619
 
rm -fr conftest*
10620
 
 
10621
 
 
10622
 
fi
10623
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10624
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10625
 
    fi
10626
 
 
10627
 
    CPPFLAGS="$save_CPPFLAGS"
10628
 
    LDFLAGS="$save_LDFLAGS"
10629
 
    LIBS="$save_LIBS"
10630
 
    ;;
10631
 
  esac
10632
 
 
10633
 
  case $lt_cv_dlopen_self in
10634
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10635
 
  *) enable_dlopen_self=unknown ;;
10636
 
  esac
10637
 
 
10638
 
  case $lt_cv_dlopen_self_static in
10639
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10640
 
  *) enable_dlopen_self_static=unknown ;;
10641
 
  esac
10642
 
fi
10643
 
 
10644
 
 
10645
 
# Report which library types will actually be built
10646
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10647
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10648
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10649
 
echo "${ECHO_T}$can_build_shared" >&6; }
10650
 
 
10651
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10652
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10653
 
test "$can_build_shared" = "no" && enable_shared=no
10654
 
 
10655
 
# On AIX, shared libraries and static libraries use the same namespace, and
10656
 
# are all built from PIC.
10657
 
case $host_os in
10658
 
aix3*)
10659
 
  test "$enable_shared" = yes && enable_static=no
10660
 
  if test -n "$RANLIB"; then
10661
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10662
 
    postinstall_cmds='$RANLIB $lib'
10663
 
  fi
10664
 
  ;;
10665
 
 
10666
 
aix4* | aix5*)
10667
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10668
 
    test "$enable_shared" = yes && enable_static=no
10669
 
  fi
10670
 
    ;;
10671
 
esac
10672
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10673
 
echo "${ECHO_T}$enable_shared" >&6; }
10674
 
 
10675
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10676
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10677
 
# Make sure either enable_shared or enable_static is yes.
10678
 
test "$enable_shared" = yes || enable_static=yes
10679
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
10680
 
echo "${ECHO_T}$enable_static" >&6; }
10681
 
 
10682
 
# The else clause should only fire when bootstrapping the
10683
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10684
 
# with your package, and you will get complaints that there are
10685
 
# no rules to generate ltmain.sh.
10686
 
if test -f "$ltmain"; then
10687
 
  # See if we are running on zsh, and set the options which allow our commands through
10688
 
  # without removal of \ escapes.
10689
 
  if test -n "${ZSH_VERSION+set}" ; then
10690
 
    setopt NO_GLOB_SUBST
10691
 
  fi
10692
 
  # Now quote all the things that may contain metacharacters while being
10693
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10694
 
  # variables and quote the copies for generation of the libtool script.
10695
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10696
 
    SED SHELL STRIP \
10697
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10698
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10699
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10700
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10701
 
    lt_cv_sys_global_symbol_to_c_name_address \
10702
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10703
 
    old_postinstall_cmds old_postuninstall_cmds \
10704
 
    compiler \
10705
 
    CC \
10706
 
    LD \
10707
 
    lt_prog_compiler_wl \
10708
 
    lt_prog_compiler_pic \
10709
 
    lt_prog_compiler_static \
10710
 
    lt_prog_compiler_no_builtin_flag \
10711
 
    export_dynamic_flag_spec \
10712
 
    thread_safe_flag_spec \
10713
 
    whole_archive_flag_spec \
10714
 
    enable_shared_with_static_runtimes \
10715
 
    old_archive_cmds \
10716
 
    old_archive_from_new_cmds \
10717
 
    predep_objects \
10718
 
    postdep_objects \
10719
 
    predeps \
10720
 
    postdeps \
10721
 
    compiler_lib_search_path \
10722
 
    archive_cmds \
10723
 
    archive_expsym_cmds \
10724
 
    postinstall_cmds \
10725
 
    postuninstall_cmds \
10726
 
    old_archive_from_expsyms_cmds \
10727
 
    allow_undefined_flag \
10728
 
    no_undefined_flag \
10729
 
    export_symbols_cmds \
10730
 
    hardcode_libdir_flag_spec \
10731
 
    hardcode_libdir_flag_spec_ld \
10732
 
    hardcode_libdir_separator \
10733
 
    hardcode_automatic \
10734
 
    module_cmds \
10735
 
    module_expsym_cmds \
10736
 
    lt_cv_prog_compiler_c_o \
10737
 
    exclude_expsyms \
10738
 
    include_expsyms; do
10739
 
 
10740
 
    case $var in
10741
 
    old_archive_cmds | \
10742
 
    old_archive_from_new_cmds | \
10743
 
    archive_cmds | \
10744
 
    archive_expsym_cmds | \
10745
 
    module_cmds | \
10746
 
    module_expsym_cmds | \
10747
 
    old_archive_from_expsyms_cmds | \
10748
 
    export_symbols_cmds | \
10749
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10750
 
    postinstall_cmds | postuninstall_cmds | \
10751
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10752
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10753
 
      # Double-quote double-evaled strings.
10754
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10755
 
      ;;
10756
 
    *)
10757
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10758
 
      ;;
10759
 
    esac
10760
 
  done
10761
 
 
10762
 
  case $lt_echo in
10763
 
  *'\$0 --fallback-echo"')
10764
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10765
 
    ;;
10766
 
  esac
10767
 
 
10768
 
cfgfile="${ofile}T"
10769
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10770
 
  $rm -f "$cfgfile"
10771
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10772
 
echo "$as_me: creating $ofile" >&6;}
10773
 
 
10774
 
  cat <<__EOF__ >> "$cfgfile"
10775
 
#! $SHELL
10776
 
 
10777
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10778
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10779
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10780
 
#
10781
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10782
 
# Free Software Foundation, Inc.
10783
 
#
10784
 
# This file is part of GNU Libtool:
10785
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10786
 
#
10787
 
# This program is free software; you can redistribute it and/or modify
10788
 
# it under the terms of the GNU General Public License as published by
10789
 
# the Free Software Foundation; either version 2 of the License, or
10790
 
# (at your option) any later version.
10791
 
#
10792
 
# This program is distributed in the hope that it will be useful, but
10793
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10794
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10795
 
# General Public License for more details.
10796
 
#
10797
 
# You should have received a copy of the GNU General Public License
10798
 
# along with this program; if not, write to the Free Software
10799
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10800
 
#
10801
 
# As a special exception to the GNU General Public License, if you
10802
 
# distribute this file as part of a program that contains a
10803
 
# configuration script generated by Autoconf, you may include it under
10804
 
# the same distribution terms that you use for the rest of that program.
10805
 
 
10806
 
# A sed program that does not truncate output.
10807
 
SED=$lt_SED
10808
 
 
10809
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10810
 
Xsed="$SED -e 1s/^X//"
10811
 
 
10812
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10813
 
# if CDPATH is set.
10814
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10815
 
 
10816
 
# The names of the tagged configurations supported by this script.
10817
 
available_tags=
10818
 
 
10819
 
# ### BEGIN LIBTOOL CONFIG
10820
 
 
10821
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10822
 
 
10823
 
# Shell to use when invoking shell scripts.
10824
 
SHELL=$lt_SHELL
10825
 
 
10826
 
# Whether or not to build shared libraries.
10827
 
build_libtool_libs=$enable_shared
10828
 
 
10829
 
# Whether or not to build static libraries.
10830
 
build_old_libs=$enable_static
10831
 
 
10832
 
# Whether or not to add -lc for building shared libraries.
10833
 
build_libtool_need_lc=$archive_cmds_need_lc
10834
 
 
10835
 
# Whether or not to disallow shared libs when runtime libs are static
10836
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10837
 
 
10838
 
# Whether or not to optimize for fast installation.
10839
 
fast_install=$enable_fast_install
10840
 
 
10841
 
# The host system.
10842
 
host_alias=$host_alias
10843
 
host=$host
10844
 
host_os=$host_os
10845
 
 
10846
 
# The build system.
10847
 
build_alias=$build_alias
10848
 
build=$build
10849
 
build_os=$build_os
10850
 
 
10851
 
# An echo program that does not interpret backslashes.
10852
 
echo=$lt_echo
10853
 
 
10854
 
# The archiver.
10855
 
AR=$lt_AR
10856
 
AR_FLAGS=$lt_AR_FLAGS
10857
 
 
10858
 
# A C compiler.
10859
 
LTCC=$lt_LTCC
10860
 
 
10861
 
# LTCC compiler flags.
10862
 
LTCFLAGS=$lt_LTCFLAGS
10863
 
 
10864
 
# A language-specific compiler.
10865
 
CC=$lt_compiler
10866
 
 
10867
 
# Is the compiler the GNU C compiler?
10868
 
with_gcc=$GCC
10869
 
 
10870
 
# An ERE matcher.
10871
 
EGREP=$lt_EGREP
10872
 
 
10873
 
# The linker used to build libraries.
10874
 
LD=$lt_LD
10875
 
 
10876
 
# Whether we need hard or soft links.
10877
 
LN_S=$lt_LN_S
10878
 
 
10879
 
# A BSD-compatible nm program.
10880
 
NM=$lt_NM
10881
 
 
10882
 
# A symbol stripping program
10883
 
STRIP=$lt_STRIP
10884
 
 
10885
 
# Used to examine libraries when file_magic_cmd begins "file"
10886
 
MAGIC_CMD=$MAGIC_CMD
10887
 
 
10888
 
# Used on cygwin: DLL creation program.
10889
 
DLLTOOL="$DLLTOOL"
10890
 
 
10891
 
# Used on cygwin: object dumper.
10892
 
OBJDUMP="$OBJDUMP"
10893
 
 
10894
 
# Used on cygwin: assembler.
10895
 
AS="$AS"
10896
 
 
10897
 
# The name of the directory that contains temporary libtool files.
10898
 
objdir=$objdir
10899
 
 
10900
 
# How to create reloadable object files.
10901
 
reload_flag=$lt_reload_flag
10902
 
reload_cmds=$lt_reload_cmds
10903
 
 
10904
 
# How to pass a linker flag through the compiler.
10905
 
wl=$lt_lt_prog_compiler_wl
10906
 
 
10907
 
# Object file suffix (normally "o").
10908
 
objext="$ac_objext"
10909
 
 
10910
 
# Old archive suffix (normally "a").
10911
 
libext="$libext"
10912
 
 
10913
 
# Shared library suffix (normally ".so").
10914
 
shrext_cmds='$shrext_cmds'
10915
 
 
10916
 
# Executable file suffix (normally "").
10917
 
exeext="$exeext"
10918
 
 
10919
 
# Additional compiler flags for building library objects.
10920
 
pic_flag=$lt_lt_prog_compiler_pic
10921
 
pic_mode=$pic_mode
10922
 
 
10923
 
# What is the maximum length of a command?
10924
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10925
 
 
10926
 
# Does compiler simultaneously support -c and -o options?
10927
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10928
 
 
10929
 
# Must we lock files when doing compilation?
10930
 
need_locks=$lt_need_locks
10931
 
 
10932
 
# Do we need the lib prefix for modules?
10933
 
need_lib_prefix=$need_lib_prefix
10934
 
 
10935
 
# Do we need a version for libraries?
10936
 
need_version=$need_version
10937
 
 
10938
 
# Whether dlopen is supported.
10939
 
dlopen_support=$enable_dlopen
10940
 
 
10941
 
# Whether dlopen of programs is supported.
10942
 
dlopen_self=$enable_dlopen_self
10943
 
 
10944
 
# Whether dlopen of statically linked programs is supported.
10945
 
dlopen_self_static=$enable_dlopen_self_static
10946
 
 
10947
 
# Compiler flag to prevent dynamic linking.
10948
 
link_static_flag=$lt_lt_prog_compiler_static
10949
 
 
10950
 
# Compiler flag to turn off builtin functions.
10951
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10952
 
 
10953
 
# Compiler flag to allow reflexive dlopens.
10954
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10955
 
 
10956
 
# Compiler flag to generate shared objects directly from archives.
10957
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10958
 
 
10959
 
# Compiler flag to generate thread-safe objects.
10960
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10961
 
 
10962
 
# Library versioning type.
10963
 
version_type=$version_type
10964
 
 
10965
 
# Format of library name prefix.
10966
 
libname_spec=$lt_libname_spec
10967
 
 
10968
 
# List of archive names.  First name is the real one, the rest are links.
10969
 
# The last name is the one that the linker finds with -lNAME.
10970
 
library_names_spec=$lt_library_names_spec
10971
 
 
10972
 
# The coded name of the library, if different from the real name.
10973
 
soname_spec=$lt_soname_spec
10974
 
 
10975
 
# Commands used to build and install an old-style archive.
10976
 
RANLIB=$lt_RANLIB
10977
 
old_archive_cmds=$lt_old_archive_cmds
10978
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10979
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10980
 
 
10981
 
# Create an old-style archive from a shared archive.
10982
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10983
 
 
10984
 
# Create a temporary old-style archive to link instead of a shared archive.
10985
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10986
 
 
10987
 
# Commands used to build and install a shared archive.
10988
 
archive_cmds=$lt_archive_cmds
10989
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10990
 
postinstall_cmds=$lt_postinstall_cmds
10991
 
postuninstall_cmds=$lt_postuninstall_cmds
10992
 
 
10993
 
# Commands used to build a loadable module (assumed same as above if empty)
10994
 
module_cmds=$lt_module_cmds
10995
 
module_expsym_cmds=$lt_module_expsym_cmds
10996
 
 
10997
 
# Commands to strip libraries.
10998
 
old_striplib=$lt_old_striplib
10999
 
striplib=$lt_striplib
11000
 
 
11001
 
# Dependencies to place before the objects being linked to create a
11002
 
# shared library.
11003
 
predep_objects=$lt_predep_objects
11004
 
 
11005
 
# Dependencies to place after the objects being linked to create a
11006
 
# shared library.
11007
 
postdep_objects=$lt_postdep_objects
11008
 
 
11009
 
# Dependencies to place before the objects being linked to create a
11010
 
# shared library.
11011
 
predeps=$lt_predeps
11012
 
 
11013
 
# Dependencies to place after the objects being linked to create a
11014
 
# shared library.
11015
 
postdeps=$lt_postdeps
11016
 
 
11017
 
# The library search path used internally by the compiler when linking
11018
 
# a shared library.
11019
 
compiler_lib_search_path=$lt_compiler_lib_search_path
11020
 
 
11021
 
# Method to check whether dependent libraries are shared objects.
11022
 
deplibs_check_method=$lt_deplibs_check_method
11023
 
 
11024
 
# Command to use when deplibs_check_method == file_magic.
11025
 
file_magic_cmd=$lt_file_magic_cmd
11026
 
 
11027
 
# Flag that allows shared libraries with undefined symbols to be built.
11028
 
allow_undefined_flag=$lt_allow_undefined_flag
11029
 
 
11030
 
# Flag that forces no undefined symbols.
11031
 
no_undefined_flag=$lt_no_undefined_flag
11032
 
 
11033
 
# Commands used to finish a libtool library installation in a directory.
11034
 
finish_cmds=$lt_finish_cmds
11035
 
 
11036
 
# Same as above, but a single script fragment to be evaled but not shown.
11037
 
finish_eval=$lt_finish_eval
11038
 
 
11039
 
# Take the output of nm and produce a listing of raw symbols and C names.
11040
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11041
 
 
11042
 
# Transform the output of nm in a proper C declaration
11043
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11044
 
 
11045
 
# Transform the output of nm in a C name address pair
11046
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11047
 
 
11048
 
# This is the shared library runtime path variable.
11049
 
runpath_var=$runpath_var
11050
 
 
11051
 
# This is the shared library path variable.
11052
 
shlibpath_var=$shlibpath_var
11053
 
 
11054
 
# Is shlibpath searched before the hard-coded library search path?
11055
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11056
 
 
11057
 
# How to hardcode a shared library path into an executable.
11058
 
hardcode_action=$hardcode_action
11059
 
 
11060
 
# Whether we should hardcode library paths into libraries.
11061
 
hardcode_into_libs=$hardcode_into_libs
11062
 
 
11063
 
# Flag to hardcode \$libdir into a binary during linking.
11064
 
# This must work even if \$libdir does not exist.
11065
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11066
 
 
11067
 
# If ld is used when linking, flag to hardcode \$libdir into
11068
 
# a binary during linking. This must work even if \$libdir does
11069
 
# not exist.
11070
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11071
 
 
11072
 
# Whether we need a single -rpath flag with a separated argument.
11073
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
11074
 
 
11075
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11076
 
# resulting binary.
11077
 
hardcode_direct=$hardcode_direct
11078
 
 
11079
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11080
 
# resulting binary.
11081
 
hardcode_minus_L=$hardcode_minus_L
11082
 
 
11083
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11084
 
# the resulting binary.
11085
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
11086
 
 
11087
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
11088
 
# and all subsequent libraries and executables linked against it.
11089
 
hardcode_automatic=$hardcode_automatic
11090
 
 
11091
 
# Variables whose values should be saved in libtool wrapper scripts and
11092
 
# restored at relink time.
11093
 
variables_saved_for_relink="$variables_saved_for_relink"
11094
 
 
11095
 
# Whether libtool must link a program against all its dependency libraries.
11096
 
link_all_deplibs=$link_all_deplibs
11097
 
 
11098
 
# Compile-time system search path for libraries
11099
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11100
 
 
11101
 
# Run-time system search path for libraries
11102
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11103
 
 
11104
 
# Fix the shell variable \$srcfile for the compiler.
11105
 
fix_srcfile_path="$fix_srcfile_path"
11106
 
 
11107
 
# Set to yes if exported symbols are required.
11108
 
always_export_symbols=$always_export_symbols
11109
 
 
11110
 
# The commands to list exported symbols.
11111
 
export_symbols_cmds=$lt_export_symbols_cmds
11112
 
 
11113
 
# The commands to extract the exported symbol list from a shared archive.
11114
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
11115
 
 
11116
 
# Symbols that should not be listed in the preloaded symbols.
11117
 
exclude_expsyms=$lt_exclude_expsyms
11118
 
 
11119
 
# Symbols that must always be exported.
11120
 
include_expsyms=$lt_include_expsyms
11121
 
 
11122
 
# ### END LIBTOOL CONFIG
11123
 
 
11124
 
__EOF__
11125
 
 
11126
 
 
11127
 
  case $host_os in
11128
 
  aix3*)
11129
 
    cat <<\EOF >> "$cfgfile"
11130
 
 
11131
 
# AIX sometimes has problems with the GCC collect2 program.  For some
11132
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
11133
 
# vanish in a puff of smoke.
11134
 
if test "X${COLLECT_NAMES+set}" != Xset; then
11135
 
  COLLECT_NAMES=
11136
 
  export COLLECT_NAMES
11137
 
fi
11138
 
EOF
11139
 
    ;;
11140
 
  esac
11141
 
 
11142
 
  # We use sed instead of cat because bash on DJGPP gets confused if
11143
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11144
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
11145
 
  # is reportedly fixed, but why not run on old versions too?
11146
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11147
 
 
11148
 
  mv -f "$cfgfile" "$ofile" || \
11149
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11150
 
  chmod +x "$ofile"
11151
 
 
11152
 
else
11153
 
  # If there is no Makefile yet, we rely on a make rule to execute
11154
 
  # `config.status --recheck' to rerun these tests and create the
11155
 
  # libtool script then.
11156
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11157
 
  if test -f "$ltmain_in"; then
11158
 
    test -f Makefile && make "$ltmain"
11159
 
  fi
11160
 
fi
11161
 
 
11162
 
 
11163
 
ac_ext=cpp
11164
 
ac_cpp='$CXXCPP $CPPFLAGS'
11165
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11166
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11167
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11168
 
 
11169
 
CC="$lt_save_CC"
11170
 
 
11171
 
 
11172
 
# Check whether --with-tags was given.
11173
 
if test "${with_tags+set}" = set; then
11174
 
  withval=$with_tags; tagnames="$withval"
11175
 
fi
11176
 
 
11177
 
 
11178
 
if test -f "$ltmain" && test -n "$tagnames"; then
11179
 
  if test ! -f "${ofile}"; then
11180
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11181
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11182
 
  fi
11183
 
 
11184
 
  if test -z "$LTCC"; then
11185
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11186
 
    if test -z "$LTCC"; then
11187
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11188
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11189
 
    else
11190
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11191
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11192
 
    fi
11193
 
  fi
11194
 
  if test -z "$LTCFLAGS"; then
11195
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11196
 
  fi
11197
 
 
11198
 
  # Extract list of available tagged configurations in $ofile.
11199
 
  # Note that this assumes the entire list is on one line.
11200
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11201
 
 
11202
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11203
 
  for tagname in $tagnames; do
11204
 
    IFS="$lt_save_ifs"
11205
 
    # Check whether tagname contains only valid characters
11206
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11207
 
    "") ;;
11208
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11209
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
11210
 
   { (exit 1); exit 1; }; }
11211
 
        ;;
11212
 
    esac
11213
 
 
11214
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11215
 
    then
11216
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11217
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11218
 
   { (exit 1); exit 1; }; }
11219
 
    fi
11220
 
 
11221
 
    # Update the list of available tags.
11222
 
    if test -n "$tagname"; then
11223
 
      echo appending configuration tag \"$tagname\" to $ofile
11224
 
 
11225
 
      case $tagname in
11226
 
      CXX)
11227
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11228
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11229
 
            (test "X$CXX" != "Xg++"))) ; then
11230
 
          ac_ext=cpp
11231
 
ac_cpp='$CXXCPP $CPPFLAGS'
11232
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11233
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11234
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
archive_cmds_need_lc_CXX=no
11240
 
allow_undefined_flag_CXX=
11241
 
always_export_symbols_CXX=no
11242
 
archive_expsym_cmds_CXX=
11243
 
export_dynamic_flag_spec_CXX=
11244
 
hardcode_direct_CXX=no
11245
 
hardcode_libdir_flag_spec_CXX=
11246
 
hardcode_libdir_flag_spec_ld_CXX=
11247
 
hardcode_libdir_separator_CXX=
11248
 
hardcode_minus_L_CXX=no
11249
 
hardcode_shlibpath_var_CXX=unsupported
11250
 
hardcode_automatic_CXX=no
11251
 
module_cmds_CXX=
11252
 
module_expsym_cmds_CXX=
11253
 
link_all_deplibs_CXX=unknown
11254
 
old_archive_cmds_CXX=$old_archive_cmds
11255
 
no_undefined_flag_CXX=
11256
 
whole_archive_flag_spec_CXX=
11257
 
enable_shared_with_static_runtimes_CXX=no
11258
 
 
11259
 
# Dependencies to place before and after the object being linked:
11260
 
predep_objects_CXX=
11261
 
postdep_objects_CXX=
11262
 
predeps_CXX=
11263
 
postdeps_CXX=
11264
 
compiler_lib_search_path_CXX=
11265
 
 
11266
 
# Source file extension for C++ test sources.
11267
 
ac_ext=cpp
11268
 
 
11269
 
# Object file extension for compiled C++ test sources.
11270
 
objext=o
11271
 
objext_CXX=$objext
11272
 
 
11273
 
# Code to be used in simple compile tests
11274
 
lt_simple_compile_test_code="int some_variable = 0;\n"
11275
 
 
11276
 
# Code to be used in simple link tests
11277
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11278
 
 
11279
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
11280
 
 
11281
 
# If no C compiler was specified, use CC.
11282
 
LTCC=${LTCC-"$CC"}
11283
 
 
11284
 
# If no C compiler flags were specified, use CFLAGS.
11285
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11286
 
 
11287
 
# Allow CC to be a program name with arguments.
11288
 
compiler=$CC
11289
 
 
11290
 
 
11291
 
# save warnings/boilerplate of simple test code
11292
 
ac_outfile=conftest.$ac_objext
11293
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11294
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11295
 
_lt_compiler_boilerplate=`cat conftest.err`
11296
 
$rm conftest*
11297
 
 
11298
 
ac_outfile=conftest.$ac_objext
11299
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
11300
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11301
 
_lt_linker_boilerplate=`cat conftest.err`
11302
 
$rm conftest*
11303
 
 
11304
 
 
11305
 
# Allow CC to be a program name with arguments.
11306
 
lt_save_CC=$CC
11307
 
lt_save_LD=$LD
11308
 
lt_save_GCC=$GCC
11309
 
GCC=$GXX
11310
 
lt_save_with_gnu_ld=$with_gnu_ld
11311
 
lt_save_path_LD=$lt_cv_path_LD
11312
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11313
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11314
 
else
11315
 
  $as_unset lt_cv_prog_gnu_ld
11316
 
fi
11317
 
if test -n "${lt_cv_path_LDCXX+set}"; then
11318
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
11319
 
else
11320
 
  $as_unset lt_cv_path_LD
11321
 
fi
11322
 
test -z "${LDCXX+set}" || LD=$LDCXX
11323
 
CC=${CXX-"c++"}
11324
 
compiler=$CC
11325
 
compiler_CXX=$CC
11326
 
for cc_temp in $compiler""; do
11327
 
  case $cc_temp in
11328
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11329
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11330
 
    \-*) ;;
11331
 
    *) break;;
11332
 
  esac
11333
 
done
11334
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11335
 
 
11336
 
 
11337
 
# We don't want -fno-exception wen compiling C++ code, so set the
11338
 
# no_builtin_flag separately
11339
 
if test "$GXX" = yes; then
11340
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11341
 
else
11342
 
  lt_prog_compiler_no_builtin_flag_CXX=
11343
 
fi
11344
 
 
11345
 
if test "$GXX" = yes; then
11346
 
  # Set up default GNU C++ configuration
11347
 
 
11348
 
 
11349
 
# Check whether --with-gnu-ld was given.
11350
 
if test "${with_gnu_ld+set}" = set; then
11351
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11352
 
else
11353
 
  with_gnu_ld=no
11354
 
fi
11355
 
 
11356
 
ac_prog=ld
11357
 
if test "$GCC" = yes; then
11358
 
  # Check if gcc -print-prog-name=ld gives a path.
11359
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11360
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11361
 
  case $host in
11362
 
  *-*-mingw*)
11363
 
    # gcc leaves a trailing carriage return which upsets mingw
11364
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11365
 
  *)
11366
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11367
 
  esac
11368
 
  case $ac_prog in
11369
 
    # Accept absolute paths.
11370
 
    [\\/]* | ?:[\\/]*)
11371
 
      re_direlt='/[^/][^/]*/\.\./'
11372
 
      # Canonicalize the pathname of ld
11373
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11374
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11375
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11376
 
      done
11377
 
      test -z "$LD" && LD="$ac_prog"
11378
 
      ;;
11379
 
  "")
11380
 
    # If it fails, then pretend we aren't using GCC.
11381
 
    ac_prog=ld
11382
 
    ;;
11383
 
  *)
11384
 
    # If it is relative, then search for the first ld in PATH.
11385
 
    with_gnu_ld=unknown
11386
 
    ;;
11387
 
  esac
11388
 
elif test "$with_gnu_ld" = yes; then
11389
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
11390
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11391
 
else
11392
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11393
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11394
 
fi
11395
 
if test "${lt_cv_path_LD+set}" = set; then
11396
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11397
 
else
11398
 
  if test -z "$LD"; then
11399
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11400
 
  for ac_dir in $PATH; do
11401
 
    IFS="$lt_save_ifs"
11402
 
    test -z "$ac_dir" && ac_dir=.
11403
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11404
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
11405
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
11406
 
      # but apparently some variants of GNU ld only accept -v.
11407
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
11408
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11409
 
      *GNU* | *'with BFD'*)
11410
 
        test "$with_gnu_ld" != no && break
11411
 
        ;;
11412
 
      *)
11413
 
        test "$with_gnu_ld" != yes && break
11414
 
        ;;
11415
 
      esac
11416
 
    fi
11417
 
  done
11418
 
  IFS="$lt_save_ifs"
11419
 
else
11420
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
11421
 
fi
11422
 
fi
11423
 
 
11424
 
LD="$lt_cv_path_LD"
11425
 
if test -n "$LD"; then
11426
 
  { echo "$as_me:$LINENO: result: $LD" >&5
11427
 
echo "${ECHO_T}$LD" >&6; }
11428
 
else
11429
 
  { echo "$as_me:$LINENO: result: no" >&5
11430
 
echo "${ECHO_T}no" >&6; }
11431
 
fi
11432
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11433
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11434
 
   { (exit 1); exit 1; }; }
11435
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11436
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11437
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11438
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11439
 
else
11440
 
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
11441
 
case `$LD -v 2>&1 </dev/null` in
11442
 
*GNU* | *'with BFD'*)
11443
 
  lt_cv_prog_gnu_ld=yes
11444
 
  ;;
11445
 
*)
11446
 
  lt_cv_prog_gnu_ld=no
11447
 
  ;;
11448
 
esac
11449
 
fi
11450
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11451
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11452
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11453
 
 
11454
 
 
11455
 
 
11456
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11457
 
  # archiving commands below assume that GNU ld is being used.
11458
 
  if test "$with_gnu_ld" = yes; then
11459
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11460
 
    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'
11461
 
 
11462
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11463
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11464
 
 
11465
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11466
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11467
 
    #     investigate it a little bit more. (MM)
11468
 
    wlarc='${wl}'
11469
 
 
11470
 
    # ancient GNU ld didn't support --whole-archive et. al.
11471
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11472
 
        grep 'no-whole-archive' > /dev/null; then
11473
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11474
 
    else
11475
 
      whole_archive_flag_spec_CXX=
11476
 
    fi
11477
 
  else
11478
 
    with_gnu_ld=no
11479
 
    wlarc=
11480
 
 
11481
 
    # A generic and very simple default shared library creation
11482
 
    # command for GNU C++ for the case where it uses the native
11483
 
    # linker, instead of GNU ld.  If possible, this setting should
11484
 
    # overridden to take advantage of the native linker features on
11485
 
    # the platform it is being used on.
11486
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11487
 
  fi
11488
 
 
11489
 
  # Commands to make compiler produce verbose output that lists
11490
 
  # what "hidden" libraries, object files and flags are used when
11491
 
  # linking a shared library.
11492
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11493
 
 
11494
 
else
11495
 
  GXX=no
11496
 
  with_gnu_ld=no
11497
 
  wlarc=
11498
 
fi
11499
 
 
11500
 
# PORTME: fill in a description of your system's C++ link characteristics
11501
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11502
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11503
 
ld_shlibs_CXX=yes
11504
 
case $host_os in
11505
 
  aix3*)
11506
 
    # FIXME: insert proper C++ library support
11507
 
    ld_shlibs_CXX=no
11508
 
    ;;
11509
 
  aix4* | aix5*)
11510
 
    if test "$host_cpu" = ia64; then
11511
 
      # On IA64, the linker does run time linking by default, so we don't
11512
 
      # have to do anything special.
11513
 
      aix_use_runtimelinking=no
11514
 
      exp_sym_flag='-Bexport'
11515
 
      no_entry_flag=""
11516
 
    else
11517
 
      aix_use_runtimelinking=no
11518
 
 
11519
 
      # Test if we are trying to use run time linking or normal
11520
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11521
 
      # need to do runtime linking.
11522
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11523
 
        for ld_flag in $LDFLAGS; do
11524
 
          case $ld_flag in
11525
 
          *-brtl*)
11526
 
            aix_use_runtimelinking=yes
11527
 
            break
11528
 
            ;;
11529
 
          esac
11530
 
        done
11531
 
        ;;
11532
 
      esac
11533
 
 
11534
 
      exp_sym_flag='-bexport'
11535
 
      no_entry_flag='-bnoentry'
11536
 
    fi
11537
 
 
11538
 
    # When large executables or shared objects are built, AIX ld can
11539
 
    # have problems creating the table of contents.  If linking a library
11540
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11541
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11542
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11543
 
 
11544
 
    archive_cmds_CXX=''
11545
 
    hardcode_direct_CXX=yes
11546
 
    hardcode_libdir_separator_CXX=':'
11547
 
    link_all_deplibs_CXX=yes
11548
 
 
11549
 
    if test "$GXX" = yes; then
11550
 
      case $host_os in aix4.[012]|aix4.[012].*)
11551
 
      # We only want to do this on AIX 4.2 and lower, the check
11552
 
      # below for broken collect2 doesn't work under 4.3+
11553
 
        collect2name=`${CC} -print-prog-name=collect2`
11554
 
        if test -f "$collect2name" && \
11555
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11556
 
        then
11557
 
          # We have reworked collect2
11558
 
          hardcode_direct_CXX=yes
11559
 
        else
11560
 
          # We have old collect2
11561
 
          hardcode_direct_CXX=unsupported
11562
 
          # It fails to find uninstalled libraries when the uninstalled
11563
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11564
 
          # to unsupported forces relinking
11565
 
          hardcode_minus_L_CXX=yes
11566
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11567
 
          hardcode_libdir_separator_CXX=
11568
 
        fi
11569
 
        ;;
11570
 
      esac
11571
 
      shared_flag='-shared'
11572
 
      if test "$aix_use_runtimelinking" = yes; then
11573
 
        shared_flag="$shared_flag "'${wl}-G'
11574
 
      fi
11575
 
    else
11576
 
      # not using gcc
11577
 
      if test "$host_cpu" = ia64; then
11578
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11579
 
        # chokes on -Wl,-G. The following line is correct:
11580
 
        shared_flag='-G'
11581
 
      else
11582
 
        if test "$aix_use_runtimelinking" = yes; then
11583
 
          shared_flag='${wl}-G'
11584
 
        else
11585
 
          shared_flag='${wl}-bM:SRE'
11586
 
        fi
11587
 
      fi
11588
 
    fi
11589
 
 
11590
 
    # It seems that -bexpall does not export symbols beginning with
11591
 
    # underscore (_), so it is better to generate a list of symbols to export.
11592
 
    always_export_symbols_CXX=yes
11593
 
    if test "$aix_use_runtimelinking" = yes; then
11594
 
      # Warning - without using the other runtime loading flags (-brtl),
11595
 
      # -berok will link without error, but may produce a broken library.
11596
 
      allow_undefined_flag_CXX='-berok'
11597
 
      # Determine the default libpath from the value encoded in an empty executable.
11598
 
      cat >conftest.$ac_ext <<_ACEOF
11599
 
/* confdefs.h.  */
11600
 
_ACEOF
11601
 
cat confdefs.h >>conftest.$ac_ext
11602
 
cat >>conftest.$ac_ext <<_ACEOF
11603
 
/* end confdefs.h.  */
11604
 
 
11605
 
int
11606
 
main ()
11607
 
{
11608
 
 
11609
 
  ;
11610
 
  return 0;
11611
 
}
11612
 
_ACEOF
11613
 
rm -f conftest.$ac_objext conftest$ac_exeext
11614
 
if { (ac_try="$ac_link"
11615
 
case "(($ac_try" in
11616
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617
 
  *) ac_try_echo=$ac_try;;
11618
 
esac
11619
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620
 
  (eval "$ac_link") 2>conftest.er1
11621
 
  ac_status=$?
11622
 
  grep -v '^ *+' conftest.er1 >conftest.err
11623
 
  rm -f conftest.er1
11624
 
  cat conftest.err >&5
11625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626
 
  (exit $ac_status); } && {
11627
 
         test -z "$ac_cxx_werror_flag" ||
11628
 
         test ! -s conftest.err
11629
 
       } && test -s conftest$ac_exeext &&
11630
 
       $as_test_x conftest$ac_exeext; then
11631
 
 
11632
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11633
 
}'`
11634
 
# Check for a 64-bit object if we didn't find anything.
11635
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11636
 
}'`; fi
11637
 
else
11638
 
  echo "$as_me: failed program was:" >&5
11639
 
sed 's/^/| /' conftest.$ac_ext >&5
11640
 
 
11641
 
 
11642
 
fi
11643
 
 
11644
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11645
 
      conftest$ac_exeext conftest.$ac_ext
11646
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11647
 
 
11648
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11649
 
 
11650
 
      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"
11651
 
     else
11652
 
      if test "$host_cpu" = ia64; then
11653
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11654
 
        allow_undefined_flag_CXX="-z nodefs"
11655
 
        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"
11656
 
      else
11657
 
        # Determine the default libpath from the value encoded in an empty executable.
11658
 
        cat >conftest.$ac_ext <<_ACEOF
11659
 
/* confdefs.h.  */
11660
 
_ACEOF
11661
 
cat confdefs.h >>conftest.$ac_ext
11662
 
cat >>conftest.$ac_ext <<_ACEOF
11663
 
/* end confdefs.h.  */
11664
 
 
11665
 
int
11666
 
main ()
11667
 
{
11668
 
 
11669
 
  ;
11670
 
  return 0;
11671
 
}
11672
 
_ACEOF
11673
 
rm -f conftest.$ac_objext conftest$ac_exeext
11674
 
if { (ac_try="$ac_link"
11675
 
case "(($ac_try" in
11676
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677
 
  *) ac_try_echo=$ac_try;;
11678
 
esac
11679
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680
 
  (eval "$ac_link") 2>conftest.er1
11681
 
  ac_status=$?
11682
 
  grep -v '^ *+' conftest.er1 >conftest.err
11683
 
  rm -f conftest.er1
11684
 
  cat conftest.err >&5
11685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686
 
  (exit $ac_status); } && {
11687
 
         test -z "$ac_cxx_werror_flag" ||
11688
 
         test ! -s conftest.err
11689
 
       } && test -s conftest$ac_exeext &&
11690
 
       $as_test_x conftest$ac_exeext; then
11691
 
 
11692
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11693
 
}'`
11694
 
# Check for a 64-bit object if we didn't find anything.
11695
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
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
 
        # Warning - without using the other run time loading flags,
11710
 
        # -berok will link without error, but may produce a broken library.
11711
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11712
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11713
 
        # Exported symbols can be pulled into shared objects from archives
11714
 
        whole_archive_flag_spec_CXX='$convenience'
11715
 
        archive_cmds_need_lc_CXX=yes
11716
 
        # This is similar to how AIX traditionally builds its shared libraries.
11717
 
        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'
11718
 
      fi
11719
 
    fi
11720
 
    ;;
11721
 
 
11722
 
  beos*)
11723
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11724
 
      allow_undefined_flag_CXX=unsupported
11725
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11726
 
      # support --undefined.  This deserves some investigation.  FIXME
11727
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11728
 
    else
11729
 
      ld_shlibs_CXX=no
11730
 
    fi
11731
 
    ;;
11732
 
 
11733
 
  chorus*)
11734
 
    case $cc_basename in
11735
 
      *)
11736
 
        # FIXME: insert proper C++ library support
11737
 
        ld_shlibs_CXX=no
11738
 
        ;;
11739
 
    esac
11740
 
    ;;
11741
 
 
11742
 
  cygwin* | mingw* | pw32*)
11743
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11744
 
    # as there is no search path for DLLs.
11745
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11746
 
    allow_undefined_flag_CXX=unsupported
11747
 
    always_export_symbols_CXX=no
11748
 
    enable_shared_with_static_runtimes_CXX=yes
11749
 
 
11750
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11751
 
      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'
11752
 
      # If the export-symbols file already is a .def file (1st line
11753
 
      # is EXPORTS), use it as is; otherwise, prepend...
11754
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11755
 
        cp $export_symbols $output_objdir/$soname.def;
11756
 
      else
11757
 
        echo EXPORTS > $output_objdir/$soname.def;
11758
 
        cat $export_symbols >> $output_objdir/$soname.def;
11759
 
      fi~
11760
 
      $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'
11761
 
    else
11762
 
      ld_shlibs_CXX=no
11763
 
    fi
11764
 
  ;;
11765
 
      darwin* | rhapsody*)
11766
 
        case $host_os in
11767
 
        rhapsody* | darwin1.[012])
11768
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11769
 
         ;;
11770
 
       *) # Darwin 1.3 on
11771
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11772
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11773
 
         else
11774
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11775
 
             10.[012])
11776
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11777
 
               ;;
11778
 
             10.*)
11779
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11780
 
               ;;
11781
 
           esac
11782
 
         fi
11783
 
         ;;
11784
 
        esac
11785
 
      archive_cmds_need_lc_CXX=no
11786
 
      hardcode_direct_CXX=no
11787
 
      hardcode_automatic_CXX=yes
11788
 
      hardcode_shlibpath_var_CXX=unsupported
11789
 
      whole_archive_flag_spec_CXX=''
11790
 
      link_all_deplibs_CXX=yes
11791
 
 
11792
 
    if test "$GXX" = yes ; then
11793
 
      lt_int_apple_cc_single_mod=no
11794
 
      output_verbose_link_cmd='echo'
11795
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11796
 
       lt_int_apple_cc_single_mod=yes
11797
 
      fi
11798
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11799
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11800
 
      else
11801
 
          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'
11802
 
        fi
11803
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11804
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11805
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11806
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11807
 
          else
11808
 
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11809
 
          fi
11810
 
            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}'
11811
 
      else
11812
 
      case $cc_basename in
11813
 
        xlc*)
11814
 
         output_verbose_link_cmd='echo'
11815
 
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11816
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11817
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11818
 
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11819
 
          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}'
11820
 
          ;;
11821
 
       *)
11822
 
         ld_shlibs_CXX=no
11823
 
          ;;
11824
 
      esac
11825
 
      fi
11826
 
        ;;
11827
 
 
11828
 
  dgux*)
11829
 
    case $cc_basename in
11830
 
      ec++*)
11831
 
        # FIXME: insert proper C++ library support
11832
 
        ld_shlibs_CXX=no
11833
 
        ;;
11834
 
      ghcx*)
11835
 
        # Green Hills C++ Compiler
11836
 
        # FIXME: insert proper C++ library support
11837
 
        ld_shlibs_CXX=no
11838
 
        ;;
11839
 
      *)
11840
 
        # FIXME: insert proper C++ library support
11841
 
        ld_shlibs_CXX=no
11842
 
        ;;
11843
 
    esac
11844
 
    ;;
11845
 
  freebsd[12]*)
11846
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11847
 
    ld_shlibs_CXX=no
11848
 
    ;;
11849
 
  freebsd-elf*)
11850
 
    archive_cmds_need_lc_CXX=no
11851
 
    ;;
11852
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
11853
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11854
 
    # conventions
11855
 
    ld_shlibs_CXX=yes
11856
 
    ;;
11857
 
  gnu*)
11858
 
    ;;
11859
 
  hpux9*)
11860
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11861
 
    hardcode_libdir_separator_CXX=:
11862
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11863
 
    hardcode_direct_CXX=yes
11864
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11865
 
                                # but as the default
11866
 
                                # location of the library.
11867
 
 
11868
 
    case $cc_basename in
11869
 
    CC*)
11870
 
      # FIXME: insert proper C++ library support
11871
 
      ld_shlibs_CXX=no
11872
 
      ;;
11873
 
    aCC*)
11874
 
      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'
11875
 
      # Commands to make compiler produce verbose output that lists
11876
 
      # what "hidden" libraries, object files and flags are used when
11877
 
      # linking a shared library.
11878
 
      #
11879
 
      # There doesn't appear to be a way to prevent this compiler from
11880
 
      # explicitly linking system object files so we need to strip them
11881
 
      # from the output so that they don't get included in the library
11882
 
      # dependencies.
11883
 
      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'
11884
 
      ;;
11885
 
    *)
11886
 
      if test "$GXX" = yes; then
11887
 
        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'
11888
 
      else
11889
 
        # FIXME: insert proper C++ library support
11890
 
        ld_shlibs_CXX=no
11891
 
      fi
11892
 
      ;;
11893
 
    esac
11894
 
    ;;
11895
 
  hpux10*|hpux11*)
11896
 
    if test $with_gnu_ld = no; then
11897
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11898
 
      hardcode_libdir_separator_CXX=:
11899
 
 
11900
 
      case $host_cpu in
11901
 
      hppa*64*|ia64*)
11902
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11903
 
        ;;
11904
 
      *)
11905
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11906
 
        ;;
11907
 
      esac
11908
 
    fi
11909
 
    case $host_cpu in
11910
 
    hppa*64*|ia64*)
11911
 
      hardcode_direct_CXX=no
11912
 
      hardcode_shlibpath_var_CXX=no
11913
 
      ;;
11914
 
    *)
11915
 
      hardcode_direct_CXX=yes
11916
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11917
 
                                              # but as the default
11918
 
                                              # location of the library.
11919
 
      ;;
11920
 
    esac
11921
 
 
11922
 
    case $cc_basename in
11923
 
      CC*)
11924
 
        # FIXME: insert proper C++ library support
11925
 
        ld_shlibs_CXX=no
11926
 
        ;;
11927
 
      aCC*)
11928
 
        case $host_cpu in
11929
 
        hppa*64*)
11930
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11931
 
          ;;
11932
 
        ia64*)
11933
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11934
 
          ;;
11935
 
        *)
11936
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11937
 
          ;;
11938
 
        esac
11939
 
        # Commands to make compiler produce verbose output that lists
11940
 
        # what "hidden" libraries, object files and flags are used when
11941
 
        # linking a shared library.
11942
 
        #
11943
 
        # There doesn't appear to be a way to prevent this compiler from
11944
 
        # explicitly linking system object files so we need to strip them
11945
 
        # from the output so that they don't get included in the library
11946
 
        # dependencies.
11947
 
        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'
11948
 
        ;;
11949
 
      *)
11950
 
        if test "$GXX" = yes; then
11951
 
          if test $with_gnu_ld = no; then
11952
 
            case $host_cpu in
11953
 
            hppa*64*)
11954
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11955
 
              ;;
11956
 
            ia64*)
11957
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11958
 
              ;;
11959
 
            *)
11960
 
              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'
11961
 
              ;;
11962
 
            esac
11963
 
          fi
11964
 
        else
11965
 
          # FIXME: insert proper C++ library support
11966
 
          ld_shlibs_CXX=no
11967
 
        fi
11968
 
        ;;
11969
 
    esac
11970
 
    ;;
11971
 
  interix3*)
11972
 
    hardcode_direct_CXX=no
11973
 
    hardcode_shlibpath_var_CXX=no
11974
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11975
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11976
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11977
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
11978
 
    # default) and relocated if they conflict, which is a slow very memory
11979
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
11980
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11981
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11982
 
    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'
11983
 
    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'
11984
 
    ;;
11985
 
  irix5* | irix6*)
11986
 
    case $cc_basename in
11987
 
      CC*)
11988
 
        # SGI C++
11989
 
        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'
11990
 
 
11991
 
        # Archives containing C++ object files must be created using
11992
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11993
 
        # necessary to make sure instantiated templates are included
11994
 
        # in the archive.
11995
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11996
 
        ;;
11997
 
      *)
11998
 
        if test "$GXX" = yes; then
11999
 
          if test "$with_gnu_ld" = no; then
12000
 
            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'
12001
 
          else
12002
 
            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'
12003
 
          fi
12004
 
        fi
12005
 
        link_all_deplibs_CXX=yes
12006
 
        ;;
12007
 
    esac
12008
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12009
 
    hardcode_libdir_separator_CXX=:
12010
 
    ;;
12011
 
  linux*)
12012
 
    case $cc_basename in
12013
 
      KCC*)
12014
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12015
 
 
12016
 
        # KCC will only create a shared library if the output file
12017
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12018
 
        # to its proper name (with version) after linking.
12019
 
        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'
12020
 
        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'
12021
 
        # Commands to make compiler produce verbose output that lists
12022
 
        # what "hidden" libraries, object files and flags are used when
12023
 
        # linking a shared library.
12024
 
        #
12025
 
        # There doesn't appear to be a way to prevent this compiler from
12026
 
        # explicitly linking system object files so we need to strip them
12027
 
        # from the output so that they don't get included in the library
12028
 
        # dependencies.
12029
 
        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'
12030
 
 
12031
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12032
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12033
 
 
12034
 
        # Archives containing C++ object files must be created using
12035
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12036
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12037
 
        ;;
12038
 
      icpc*)
12039
 
        # Intel C++
12040
 
        with_gnu_ld=yes
12041
 
        # version 8.0 and above of icpc choke on multiply defined symbols
12042
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
12043
 
        # earlier do not add the objects themselves.
12044
 
        case `$CC -V 2>&1` in
12045
 
        *"Version 7."*)
12046
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12047
 
          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'
12048
 
          ;;
12049
 
        *)  # Version 8.0 or newer
12050
 
          tmp_idyn=
12051
 
          case $host_cpu in
12052
 
            ia64*) tmp_idyn=' -i_dynamic';;
12053
 
          esac
12054
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12055
 
          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'
12056
 
          ;;
12057
 
        esac
12058
 
        archive_cmds_need_lc_CXX=no
12059
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12060
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12062
 
        ;;
12063
 
      pgCC*)
12064
 
        # Portland Group C++ compiler
12065
 
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12066
 
        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'
12067
 
 
12068
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12069
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12070
 
        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'
12071
 
        ;;
12072
 
      cxx*)
12073
 
        # Compaq C++
12074
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12075
 
        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'
12076
 
 
12077
 
        runpath_var=LD_RUN_PATH
12078
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12079
 
        hardcode_libdir_separator_CXX=:
12080
 
 
12081
 
        # Commands to make compiler produce verbose output that lists
12082
 
        # what "hidden" libraries, object files and flags are used when
12083
 
        # linking a shared library.
12084
 
        #
12085
 
        # There doesn't appear to be a way to prevent this compiler from
12086
 
        # explicitly linking system object files so we need to strip them
12087
 
        # from the output so that they don't get included in the library
12088
 
        # dependencies.
12089
 
        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'
12090
 
        ;;
12091
 
    esac
12092
 
    ;;
12093
 
  lynxos*)
12094
 
    # FIXME: insert proper C++ library support
12095
 
    ld_shlibs_CXX=no
12096
 
    ;;
12097
 
  m88k*)
12098
 
    # FIXME: insert proper C++ library support
12099
 
    ld_shlibs_CXX=no
12100
 
    ;;
12101
 
  mvs*)
12102
 
    case $cc_basename in
12103
 
      cxx*)
12104
 
        # FIXME: insert proper C++ library support
12105
 
        ld_shlibs_CXX=no
12106
 
        ;;
12107
 
      *)
12108
 
        # FIXME: insert proper C++ library support
12109
 
        ld_shlibs_CXX=no
12110
 
        ;;
12111
 
    esac
12112
 
    ;;
12113
 
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12114
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12115
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12116
 
      wlarc=
12117
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
12118
 
      hardcode_direct_CXX=yes
12119
 
      hardcode_shlibpath_var_CXX=no
12120
 
    fi
12121
 
    # Workaround some broken pre-1.5 toolchains
12122
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12123
 
    ;;
12124
 
  openbsd2*)
12125
 
    # C++ shared libraries are fairly broken
12126
 
    ld_shlibs_CXX=no
12127
 
    ;;
12128
 
  openbsd*)
12129
 
    hardcode_direct_CXX=yes
12130
 
    hardcode_shlibpath_var_CXX=no
12131
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12132
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12133
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12134
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12135
 
      export_dynamic_flag_spec_CXX='${wl}-E'
12136
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12137
 
    fi
12138
 
    output_verbose_link_cmd='echo'
12139
 
    ;;
12140
 
  osf3*)
12141
 
    case $cc_basename in
12142
 
      KCC*)
12143
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12144
 
 
12145
 
        # KCC will only create a shared library if the output file
12146
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12147
 
        # to its proper name (with version) after linking.
12148
 
        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'
12149
 
 
12150
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12151
 
        hardcode_libdir_separator_CXX=:
12152
 
 
12153
 
        # Archives containing C++ object files must be created using
12154
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12155
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12156
 
 
12157
 
        ;;
12158
 
      RCC*)
12159
 
        # Rational C++ 2.4.1
12160
 
        # FIXME: insert proper C++ library support
12161
 
        ld_shlibs_CXX=no
12162
 
        ;;
12163
 
      cxx*)
12164
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12165
 
        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'
12166
 
 
12167
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12168
 
        hardcode_libdir_separator_CXX=:
12169
 
 
12170
 
        # Commands to make compiler produce verbose output that lists
12171
 
        # what "hidden" libraries, object files and flags are used when
12172
 
        # linking a shared library.
12173
 
        #
12174
 
        # There doesn't appear to be a way to prevent this compiler from
12175
 
        # explicitly linking system object files so we need to strip them
12176
 
        # from the output so that they don't get included in the library
12177
 
        # dependencies.
12178
 
        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'
12179
 
        ;;
12180
 
      *)
12181
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12182
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12183
 
          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'
12184
 
 
12185
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12186
 
          hardcode_libdir_separator_CXX=:
12187
 
 
12188
 
          # Commands to make compiler produce verbose output that lists
12189
 
          # what "hidden" libraries, object files and flags are used when
12190
 
          # linking a shared library.
12191
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12192
 
 
12193
 
        else
12194
 
          # FIXME: insert proper C++ library support
12195
 
          ld_shlibs_CXX=no
12196
 
        fi
12197
 
        ;;
12198
 
    esac
12199
 
    ;;
12200
 
  osf4* | osf5*)
12201
 
    case $cc_basename in
12202
 
      KCC*)
12203
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
12204
 
 
12205
 
        # KCC will only create a shared library if the output file
12206
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
12207
 
        # to its proper name (with version) after linking.
12208
 
        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'
12209
 
 
12210
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12211
 
        hardcode_libdir_separator_CXX=:
12212
 
 
12213
 
        # Archives containing C++ object files must be created using
12214
 
        # the KAI C++ compiler.
12215
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12216
 
        ;;
12217
 
      RCC*)
12218
 
        # Rational C++ 2.4.1
12219
 
        # FIXME: insert proper C++ library support
12220
 
        ld_shlibs_CXX=no
12221
 
        ;;
12222
 
      cxx*)
12223
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
12224
 
        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'
12225
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12226
 
          echo "-hidden">> $lib.exp~
12227
 
          $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~
12228
 
          $rm $lib.exp'
12229
 
 
12230
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12231
 
        hardcode_libdir_separator_CXX=:
12232
 
 
12233
 
        # Commands to make compiler produce verbose output that lists
12234
 
        # what "hidden" libraries, object files and flags are used when
12235
 
        # linking a shared library.
12236
 
        #
12237
 
        # There doesn't appear to be a way to prevent this compiler from
12238
 
        # explicitly linking system object files so we need to strip them
12239
 
        # from the output so that they don't get included in the library
12240
 
        # dependencies.
12241
 
        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'
12242
 
        ;;
12243
 
      *)
12244
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12245
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12246
 
         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'
12247
 
 
12248
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12249
 
          hardcode_libdir_separator_CXX=:
12250
 
 
12251
 
          # Commands to make compiler produce verbose output that lists
12252
 
          # what "hidden" libraries, object files and flags are used when
12253
 
          # linking a shared library.
12254
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12255
 
 
12256
 
        else
12257
 
          # FIXME: insert proper C++ library support
12258
 
          ld_shlibs_CXX=no
12259
 
        fi
12260
 
        ;;
12261
 
    esac
12262
 
    ;;
12263
 
  psos*)
12264
 
    # FIXME: insert proper C++ library support
12265
 
    ld_shlibs_CXX=no
12266
 
    ;;
12267
 
  sunos4*)
12268
 
    case $cc_basename in
12269
 
      CC*)
12270
 
        # Sun C++ 4.x
12271
 
        # FIXME: insert proper C++ library support
12272
 
        ld_shlibs_CXX=no
12273
 
        ;;
12274
 
      lcc*)
12275
 
        # Lucid
12276
 
        # FIXME: insert proper C++ library support
12277
 
        ld_shlibs_CXX=no
12278
 
        ;;
12279
 
      *)
12280
 
        # FIXME: insert proper C++ library support
12281
 
        ld_shlibs_CXX=no
12282
 
        ;;
12283
 
    esac
12284
 
    ;;
12285
 
  solaris*)
12286
 
    case $cc_basename in
12287
 
      CC*)
12288
 
        # Sun C++ 4.2, 5.x and Centerline C++
12289
 
        archive_cmds_need_lc_CXX=yes
12290
 
        no_undefined_flag_CXX=' -zdefs'
12291
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12292
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12293
 
        $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'
12294
 
 
12295
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
12296
 
        hardcode_shlibpath_var_CXX=no
12297
 
        case $host_os in
12298
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
12299
 
          *)
12300
 
            # The C++ compiler is used as linker so we must use $wl
12301
 
            # flag to pass the commands to the underlying system
12302
 
            # linker. We must also pass each convience library through
12303
 
            # to the system linker between allextract/defaultextract.
12304
 
            # The C++ compiler will combine linker options so we
12305
 
            # cannot just pass the convience library names through
12306
 
            # without $wl.
12307
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
12308
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
12309
 
            ;;
12310
 
        esac
12311
 
        link_all_deplibs_CXX=yes
12312
 
 
12313
 
        output_verbose_link_cmd='echo'
12314
 
 
12315
 
        # Archives containing C++ object files must be created using
12316
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12317
 
        # necessary to make sure instantiated templates are included
12318
 
        # in the archive.
12319
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12320
 
        ;;
12321
 
      gcx*)
12322
 
        # Green Hills C++ Compiler
12323
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12324
 
 
12325
 
        # The C++ compiler must be used to create the archive.
12326
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12327
 
        ;;
12328
 
      *)
12329
 
        # GNU C++ compiler with Solaris linker
12330
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12331
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12332
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
12333
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12334
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12335
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12336
 
 
12337
 
            # Commands to make compiler produce verbose output that lists
12338
 
            # what "hidden" libraries, object files and flags are used when
12339
 
            # linking a shared library.
12340
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12341
 
          else
12342
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
12343
 
            # platform.
12344
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12345
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12346
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12347
 
 
12348
 
            # Commands to make compiler produce verbose output that lists
12349
 
            # what "hidden" libraries, object files and flags are used when
12350
 
            # linking a shared library.
12351
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12352
 
          fi
12353
 
 
12354
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12355
 
        fi
12356
 
        ;;
12357
 
    esac
12358
 
    ;;
12359
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12360
 
    no_undefined_flag_CXX='${wl}-z,text'
12361
 
    archive_cmds_need_lc_CXX=no
12362
 
    hardcode_shlibpath_var_CXX=no
12363
 
    runpath_var='LD_RUN_PATH'
12364
 
 
12365
 
    case $cc_basename in
12366
 
      CC*)
12367
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12368
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12369
 
        ;;
12370
 
      *)
12371
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12372
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12373
 
        ;;
12374
 
    esac
12375
 
    ;;
12376
 
  sysv5* | sco3.2v5* | sco5v6*)
12377
 
    # Note: We can NOT use -z defs as we might desire, because we do not
12378
 
    # link with -lc, and that would cause any symbols used from libc to
12379
 
    # always be unresolved, which means just about no library would
12380
 
    # ever link correctly.  If we're not using GNU ld we use -z text
12381
 
    # though, which does catch some bad symbols but isn't as heavy-handed
12382
 
    # as -z defs.
12383
 
    # For security reasons, it is highly recommended that you always
12384
 
    # use absolute paths for naming shared libraries, and exclude the
12385
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
12386
 
    # requires that you compile everything twice, which is a pain.
12387
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
12388
 
    # non-empty value in the environment.  Most likely only useful for
12389
 
    # creating official distributions of packages.
12390
 
    # This is a hack until libtool officially supports absolute path
12391
 
    # names for shared libraries.
12392
 
    no_undefined_flag_CXX='${wl}-z,text'
12393
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
12394
 
    archive_cmds_need_lc_CXX=no
12395
 
    hardcode_shlibpath_var_CXX=no
12396
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12397
 
    hardcode_libdir_separator_CXX=':'
12398
 
    link_all_deplibs_CXX=yes
12399
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
12400
 
    runpath_var='LD_RUN_PATH'
12401
 
 
12402
 
    case $cc_basename in
12403
 
      CC*)
12404
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12405
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12406
 
        ;;
12407
 
      *)
12408
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12409
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12410
 
        ;;
12411
 
    esac
12412
 
    ;;
12413
 
  tandem*)
12414
 
    case $cc_basename in
12415
 
      NCC*)
12416
 
        # NonStop-UX NCC 3.20
12417
 
        # FIXME: insert proper C++ library support
12418
 
        ld_shlibs_CXX=no
12419
 
        ;;
12420
 
      *)
12421
 
        # FIXME: insert proper C++ library support
12422
 
        ld_shlibs_CXX=no
12423
 
        ;;
12424
 
    esac
12425
 
    ;;
12426
 
  vxworks*)
12427
 
    # FIXME: insert proper C++ library support
12428
 
    ld_shlibs_CXX=no
12429
 
    ;;
12430
 
  *)
12431
 
    # FIXME: insert proper C++ library support
12432
 
    ld_shlibs_CXX=no
12433
 
    ;;
12434
 
esac
12435
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12436
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12437
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12438
 
 
12439
 
GCC_CXX="$GXX"
12440
 
LD_CXX="$LD"
12441
 
 
12442
 
## CAVEAT EMPTOR:
12443
 
## There is no encapsulation within the following macros, do not change
12444
 
## the running order or otherwise move them around unless you know exactly
12445
 
## what you are doing...
12446
 
 
12447
 
cat > conftest.$ac_ext <<EOF
12448
 
class Foo
12449
 
{
12450
 
public:
12451
 
  Foo (void) { a = 0; }
12452
 
private:
12453
 
  int a;
12454
 
};
12455
 
EOF
12456
 
 
12457
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12458
 
  (eval $ac_compile) 2>&5
12459
 
  ac_status=$?
12460
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461
 
  (exit $ac_status); }; then
12462
 
  # Parse the compiler output and extract the necessary
12463
 
  # objects, libraries and library flags.
12464
 
 
12465
 
  # Sentinel used to keep track of whether or not we are before
12466
 
  # the conftest object file.
12467
 
  pre_test_object_deps_done=no
12468
 
 
12469
 
  # The `*' in the case matches for architectures that use `case' in
12470
 
  # $output_verbose_cmd can trigger glob expansion during the loop
12471
 
  # eval without this substitution.
12472
 
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12473
 
 
12474
 
  for p in `eval $output_verbose_link_cmd`; do
12475
 
    case $p in
12476
 
 
12477
 
    -L* | -R* | -l*)
12478
 
       # Some compilers place space between "-{L,R}" and the path.
12479
 
       # Remove the space.
12480
 
       if test $p = "-L" \
12481
 
          || test $p = "-R"; then
12482
 
         prev=$p
12483
 
         continue
12484
 
       else
12485
 
         prev=
12486
 
       fi
12487
 
 
12488
 
       if test "$pre_test_object_deps_done" = no; then
12489
 
         case $p in
12490
 
         -L* | -R*)
12491
 
           # Internal compiler library paths should come after those
12492
 
           # provided the user.  The postdeps already come after the
12493
 
           # user supplied libs so there is no need to process them.
12494
 
           if test -z "$compiler_lib_search_path_CXX"; then
12495
 
             compiler_lib_search_path_CXX="${prev}${p}"
12496
 
           else
12497
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12498
 
           fi
12499
 
           ;;
12500
 
         # The "-l" case would never come before the object being
12501
 
         # linked, so don't bother handling this case.
12502
 
         esac
12503
 
       else
12504
 
         if test -z "$postdeps_CXX"; then
12505
 
           postdeps_CXX="${prev}${p}"
12506
 
         else
12507
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12508
 
         fi
12509
 
       fi
12510
 
       ;;
12511
 
 
12512
 
    *.$objext)
12513
 
       # This assumes that the test object file only shows up
12514
 
       # once in the compiler output.
12515
 
       if test "$p" = "conftest.$objext"; then
12516
 
         pre_test_object_deps_done=yes
12517
 
         continue
12518
 
       fi
12519
 
 
12520
 
       if test "$pre_test_object_deps_done" = no; then
12521
 
         if test -z "$predep_objects_CXX"; then
12522
 
           predep_objects_CXX="$p"
12523
 
         else
12524
 
           predep_objects_CXX="$predep_objects_CXX $p"
12525
 
         fi
12526
 
       else
12527
 
         if test -z "$postdep_objects_CXX"; then
12528
 
           postdep_objects_CXX="$p"
12529
 
         else
12530
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12531
 
         fi
12532
 
       fi
12533
 
       ;;
12534
 
 
12535
 
    *) ;; # Ignore the rest.
12536
 
 
12537
 
    esac
12538
 
  done
12539
 
 
12540
 
  # Clean up.
12541
 
  rm -f a.out a.exe
12542
 
else
12543
 
  echo "libtool.m4: error: problem compiling CXX test program"
12544
 
fi
12545
 
 
12546
 
$rm -f confest.$objext
12547
 
 
12548
 
# PORTME: override above test on systems where it is broken
12549
 
case $host_os in
12550
 
interix3*)
12551
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12552
 
  # hack all around it, let's just trust "g++" to DTRT.
12553
 
  predep_objects_CXX=
12554
 
  postdep_objects_CXX=
12555
 
  postdeps_CXX=
12556
 
  ;;
12557
 
 
12558
 
solaris*)
12559
 
  case $cc_basename in
12560
 
  CC*)
12561
 
    # Adding this requires a known-good setup of shared libraries for
12562
 
    # Sun compiler versions before 5.6, else PIC objects from an old
12563
 
    # archive will be linked into the output, leading to subtle bugs.
12564
 
    postdeps_CXX='-lCstd -lCrun'
12565
 
    ;;
12566
 
  esac
12567
 
  ;;
12568
 
esac
12569
 
 
12570
 
 
12571
 
case " $postdeps_CXX " in
12572
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12573
 
esac
12574
 
 
12575
 
lt_prog_compiler_wl_CXX=
12576
 
lt_prog_compiler_pic_CXX=
12577
 
lt_prog_compiler_static_CXX=
12578
 
 
12579
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12580
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12581
 
 
12582
 
  # C++ specific cases for pic, static, wl, etc.
12583
 
  if test "$GXX" = yes; then
12584
 
    lt_prog_compiler_wl_CXX='-Wl,'
12585
 
    lt_prog_compiler_static_CXX='-static'
12586
 
 
12587
 
    case $host_os in
12588
 
    aix*)
12589
 
      # All AIX code is PIC.
12590
 
      if test "$host_cpu" = ia64; then
12591
 
        # AIX 5 now supports IA64 processor
12592
 
        lt_prog_compiler_static_CXX='-Bstatic'
12593
 
      fi
12594
 
      ;;
12595
 
    amigaos*)
12596
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12597
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12598
 
      # like `-m68040'.
12599
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12600
 
      ;;
12601
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12602
 
      # PIC is the default for these OSes.
12603
 
      ;;
12604
 
    mingw* | os2* | pw32*)
12605
 
      # This hack is so that the source file can tell whether it is being
12606
 
      # built for inclusion in a dll (and should export symbols for example).
12607
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12608
 
      ;;
12609
 
    darwin* | rhapsody*)
12610
 
      # PIC is the default on this platform
12611
 
      # Common symbols not allowed in MH_DYLIB files
12612
 
      lt_prog_compiler_pic_CXX='-fno-common'
12613
 
      ;;
12614
 
    *djgpp*)
12615
 
      # DJGPP does not support shared libraries at all
12616
 
      lt_prog_compiler_pic_CXX=
12617
 
      ;;
12618
 
    interix3*)
12619
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12620
 
      # Instead, we relocate shared libraries at runtime.
12621
 
      ;;
12622
 
    sysv4*MP*)
12623
 
      if test -d /usr/nec; then
12624
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12625
 
      fi
12626
 
      ;;
12627
 
    hpux*)
12628
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12629
 
      # not for PA HP-UX.
12630
 
      case $host_cpu in
12631
 
      hppa*64*|ia64*)
12632
 
        ;;
12633
 
      *)
12634
 
        lt_prog_compiler_pic_CXX='-fPIC'
12635
 
        ;;
12636
 
      esac
12637
 
      ;;
12638
 
    *)
12639
 
      lt_prog_compiler_pic_CXX='-fPIC'
12640
 
      ;;
12641
 
    esac
12642
 
  else
12643
 
    case $host_os in
12644
 
      aix4* | aix5*)
12645
 
        # All AIX code is PIC.
12646
 
        if test "$host_cpu" = ia64; then
12647
 
          # AIX 5 now supports IA64 processor
12648
 
          lt_prog_compiler_static_CXX='-Bstatic'
12649
 
        else
12650
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12651
 
        fi
12652
 
        ;;
12653
 
      chorus*)
12654
 
        case $cc_basename in
12655
 
        cxch68*)
12656
 
          # Green Hills C++ Compiler
12657
 
          # _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"
12658
 
          ;;
12659
 
        esac
12660
 
        ;;
12661
 
       darwin*)
12662
 
         # PIC is the default on this platform
12663
 
         # Common symbols not allowed in MH_DYLIB files
12664
 
         case $cc_basename in
12665
 
           xlc*)
12666
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12667
 
           lt_prog_compiler_wl_CXX='-Wl,'
12668
 
           ;;
12669
 
         esac
12670
 
       ;;
12671
 
      dgux*)
12672
 
        case $cc_basename in
12673
 
          ec++*)
12674
 
            lt_prog_compiler_pic_CXX='-KPIC'
12675
 
            ;;
12676
 
          ghcx*)
12677
 
            # Green Hills C++ Compiler
12678
 
            lt_prog_compiler_pic_CXX='-pic'
12679
 
            ;;
12680
 
          *)
12681
 
            ;;
12682
 
        esac
12683
 
        ;;
12684
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
12685
 
        # FreeBSD uses GNU C++
12686
 
        ;;
12687
 
      hpux9* | hpux10* | hpux11*)
12688
 
        case $cc_basename in
12689
 
          CC*)
12690
 
            lt_prog_compiler_wl_CXX='-Wl,'
12691
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12692
 
            if test "$host_cpu" != ia64; then
12693
 
              lt_prog_compiler_pic_CXX='+Z'
12694
 
            fi
12695
 
            ;;
12696
 
          aCC*)
12697
 
            lt_prog_compiler_wl_CXX='-Wl,'
12698
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12699
 
            case $host_cpu in
12700
 
            hppa*64*|ia64*)
12701
 
              # +Z the default
12702
 
              ;;
12703
 
            *)
12704
 
              lt_prog_compiler_pic_CXX='+Z'
12705
 
              ;;
12706
 
            esac
12707
 
            ;;
12708
 
          *)
12709
 
            ;;
12710
 
        esac
12711
 
        ;;
12712
 
      interix*)
12713
 
        # This is c89, which is MS Visual C++ (no shared libs)
12714
 
        # Anyone wants to do a port?
12715
 
        ;;
12716
 
      irix5* | irix6* | nonstopux*)
12717
 
        case $cc_basename in
12718
 
          CC*)
12719
 
            lt_prog_compiler_wl_CXX='-Wl,'
12720
 
            lt_prog_compiler_static_CXX='-non_shared'
12721
 
            # CC pic flag -KPIC is the default.
12722
 
            ;;
12723
 
          *)
12724
 
            ;;
12725
 
        esac
12726
 
        ;;
12727
 
      linux*)
12728
 
        case $cc_basename in
12729
 
          KCC*)
12730
 
            # KAI C++ Compiler
12731
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12732
 
            lt_prog_compiler_pic_CXX='-fPIC'
12733
 
            ;;
12734
 
          icpc* | ecpc*)
12735
 
            # Intel C++
12736
 
            lt_prog_compiler_wl_CXX='-Wl,'
12737
 
            lt_prog_compiler_pic_CXX='-KPIC'
12738
 
            lt_prog_compiler_static_CXX='-static'
12739
 
            ;;
12740
 
          pgCC*)
12741
 
            # Portland Group C++ compiler.
12742
 
            lt_prog_compiler_wl_CXX='-Wl,'
12743
 
            lt_prog_compiler_pic_CXX='-fpic'
12744
 
            lt_prog_compiler_static_CXX='-Bstatic'
12745
 
            ;;
12746
 
          cxx*)
12747
 
            # Compaq C++
12748
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12749
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12750
 
            lt_prog_compiler_pic_CXX=
12751
 
            lt_prog_compiler_static_CXX='-non_shared'
12752
 
            ;;
12753
 
          *)
12754
 
            ;;
12755
 
        esac
12756
 
        ;;
12757
 
      lynxos*)
12758
 
        ;;
12759
 
      m88k*)
12760
 
        ;;
12761
 
      mvs*)
12762
 
        case $cc_basename in
12763
 
          cxx*)
12764
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12765
 
            ;;
12766
 
          *)
12767
 
            ;;
12768
 
        esac
12769
 
        ;;
12770
 
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12771
 
        ;;
12772
 
      osf3* | osf4* | osf5*)
12773
 
        case $cc_basename in
12774
 
          KCC*)
12775
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12776
 
            ;;
12777
 
          RCC*)
12778
 
            # Rational C++ 2.4.1
12779
 
            lt_prog_compiler_pic_CXX='-pic'
12780
 
            ;;
12781
 
          cxx*)
12782
 
            # Digital/Compaq C++
12783
 
            lt_prog_compiler_wl_CXX='-Wl,'
12784
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12785
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12786
 
            lt_prog_compiler_pic_CXX=
12787
 
            lt_prog_compiler_static_CXX='-non_shared'
12788
 
            ;;
12789
 
          *)
12790
 
            ;;
12791
 
        esac
12792
 
        ;;
12793
 
      psos*)
12794
 
        ;;
12795
 
      solaris*)
12796
 
        case $cc_basename in
12797
 
          CC*)
12798
 
            # Sun C++ 4.2, 5.x and Centerline C++
12799
 
            lt_prog_compiler_pic_CXX='-KPIC'
12800
 
            lt_prog_compiler_static_CXX='-Bstatic'
12801
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12802
 
            ;;
12803
 
          gcx*)
12804
 
            # Green Hills C++ Compiler
12805
 
            lt_prog_compiler_pic_CXX='-PIC'
12806
 
            ;;
12807
 
          *)
12808
 
            ;;
12809
 
        esac
12810
 
        ;;
12811
 
      sunos4*)
12812
 
        case $cc_basename in
12813
 
          CC*)
12814
 
            # Sun C++ 4.x
12815
 
            lt_prog_compiler_pic_CXX='-pic'
12816
 
            lt_prog_compiler_static_CXX='-Bstatic'
12817
 
            ;;
12818
 
          lcc*)
12819
 
            # Lucid
12820
 
            lt_prog_compiler_pic_CXX='-pic'
12821
 
            ;;
12822
 
          *)
12823
 
            ;;
12824
 
        esac
12825
 
        ;;
12826
 
      tandem*)
12827
 
        case $cc_basename in
12828
 
          NCC*)
12829
 
            # NonStop-UX NCC 3.20
12830
 
            lt_prog_compiler_pic_CXX='-KPIC'
12831
 
            ;;
12832
 
          *)
12833
 
            ;;
12834
 
        esac
12835
 
        ;;
12836
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12837
 
        case $cc_basename in
12838
 
          CC*)
12839
 
            lt_prog_compiler_wl_CXX='-Wl,'
12840
 
            lt_prog_compiler_pic_CXX='-KPIC'
12841
 
            lt_prog_compiler_static_CXX='-Bstatic'
12842
 
            ;;
12843
 
        esac
12844
 
        ;;
12845
 
      vxworks*)
12846
 
        ;;
12847
 
      *)
12848
 
        lt_prog_compiler_can_build_shared_CXX=no
12849
 
        ;;
12850
 
    esac
12851
 
  fi
12852
 
 
12853
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12854
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12855
 
 
12856
 
#
12857
 
# Check to make sure the PIC flag actually works.
12858
 
#
12859
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12860
 
 
12861
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12862
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12863
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12864
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12865
 
else
12866
 
  lt_prog_compiler_pic_works_CXX=no
12867
 
  ac_outfile=conftest.$ac_objext
12868
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12869
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12870
 
   # Insert the option either (1) after the last *FLAGS variable, or
12871
 
   # (2) before a word containing "conftest.", or (3) at the end.
12872
 
   # Note that $ac_compile itself does not contain backslashes and begins
12873
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12874
 
   # The option is referenced via a variable to avoid confusing sed.
12875
 
   lt_compile=`echo "$ac_compile" | $SED \
12876
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12877
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878
 
   -e 's:$: $lt_compiler_flag:'`
12879
 
   (eval echo "\"\$as_me:12879: $lt_compile\"" >&5)
12880
 
   (eval "$lt_compile" 2>conftest.err)
12881
 
   ac_status=$?
12882
 
   cat conftest.err >&5
12883
 
   echo "$as_me:12883: \$? = $ac_status" >&5
12884
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12885
 
     # The compiler can only warn and ignore the option if not recognized
12886
 
     # So say no if there are warnings other than the usual output.
12887
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12888
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12890
 
       lt_prog_compiler_pic_works_CXX=yes
12891
 
     fi
12892
 
   fi
12893
 
   $rm conftest*
12894
 
 
12895
 
fi
12896
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12897
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12898
 
 
12899
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12900
 
    case $lt_prog_compiler_pic_CXX in
12901
 
     "" | " "*) ;;
12902
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12903
 
     esac
12904
 
else
12905
 
    lt_prog_compiler_pic_CXX=
12906
 
     lt_prog_compiler_can_build_shared_CXX=no
12907
 
fi
12908
 
 
12909
 
fi
12910
 
case $host_os in
12911
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12912
 
  *djgpp*)
12913
 
    lt_prog_compiler_pic_CXX=
12914
 
    ;;
12915
 
  *)
12916
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12917
 
    ;;
12918
 
esac
12919
 
 
12920
 
#
12921
 
# Check to make sure the static flag actually works.
12922
 
#
12923
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12924
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12925
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12926
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12927
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12928
 
else
12929
 
  lt_prog_compiler_static_works_CXX=no
12930
 
   save_LDFLAGS="$LDFLAGS"
12931
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12932
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12933
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12934
 
     # The linker can only warn and ignore the option if not recognized
12935
 
     # So say no if there are warnings
12936
 
     if test -s conftest.err; then
12937
 
       # Append any errors to the config.log.
12938
 
       cat conftest.err 1>&5
12939
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12940
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12941
 
       if diff conftest.exp conftest.er2 >/dev/null; then
12942
 
         lt_prog_compiler_static_works_CXX=yes
12943
 
       fi
12944
 
     else
12945
 
       lt_prog_compiler_static_works_CXX=yes
12946
 
     fi
12947
 
   fi
12948
 
   $rm conftest*
12949
 
   LDFLAGS="$save_LDFLAGS"
12950
 
 
12951
 
fi
12952
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12953
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12954
 
 
12955
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12956
 
    :
12957
 
else
12958
 
    lt_prog_compiler_static_CXX=
12959
 
fi
12960
 
 
12961
 
 
12962
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12963
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12964
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12965
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12966
 
else
12967
 
  lt_cv_prog_compiler_c_o_CXX=no
12968
 
   $rm -r conftest 2>/dev/null
12969
 
   mkdir conftest
12970
 
   cd conftest
12971
 
   mkdir out
12972
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12973
 
 
12974
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12975
 
   # Insert the option either (1) after the last *FLAGS variable, or
12976
 
   # (2) before a word containing "conftest.", or (3) at the end.
12977
 
   # Note that $ac_compile itself does not contain backslashes and begins
12978
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12979
 
   lt_compile=`echo "$ac_compile" | $SED \
12980
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12981
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12982
 
   -e 's:$: $lt_compiler_flag:'`
12983
 
   (eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
12984
 
   (eval "$lt_compile" 2>out/conftest.err)
12985
 
   ac_status=$?
12986
 
   cat out/conftest.err >&5
12987
 
   echo "$as_me:12987: \$? = $ac_status" >&5
12988
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12989
 
   then
12990
 
     # The compiler can only warn and ignore the option if not recognized
12991
 
     # So say no if there are warnings
12992
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12993
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12994
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12995
 
       lt_cv_prog_compiler_c_o_CXX=yes
12996
 
     fi
12997
 
   fi
12998
 
   chmod u+w . 2>&5
12999
 
   $rm conftest*
13000
 
   # SGI C++ compiler will create directory out/ii_files/ for
13001
 
   # template instantiation
13002
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13003
 
   $rm out/* && rmdir out
13004
 
   cd ..
13005
 
   rmdir conftest
13006
 
   $rm conftest*
13007
 
 
13008
 
fi
13009
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13010
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13011
 
 
13012
 
 
13013
 
hard_links="nottested"
13014
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13015
 
  # do not overwrite the value of need_locks provided by the user
13016
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13017
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13018
 
  hard_links=yes
13019
 
  $rm conftest*
13020
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13021
 
  touch conftest.a
13022
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
13023
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13024
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13025
 
echo "${ECHO_T}$hard_links" >&6; }
13026
 
  if test "$hard_links" = no; then
13027
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13028
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13029
 
    need_locks=warn
13030
 
  fi
13031
 
else
13032
 
  need_locks=no
13033
 
fi
13034
 
 
13035
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13037
 
 
13038
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13039
 
  case $host_os in
13040
 
  aix4* | aix5*)
13041
 
    # If we're using GNU nm, then we don't want the "-C" option.
13042
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13043
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13044
 
      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'
13045
 
    else
13046
 
      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'
13047
 
    fi
13048
 
    ;;
13049
 
  pw32*)
13050
 
    export_symbols_cmds_CXX="$ltdll_cmds"
13051
 
  ;;
13052
 
  cygwin* | mingw*)
13053
 
    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'
13054
 
  ;;
13055
 
  kfreebsd*-gnu)
13056
 
    link_all_deplibs_CXX=no
13057
 
  ;;
13058
 
  linux*)
13059
 
    link_all_deplibs_CXX=no
13060
 
  ;;
13061
 
  *)
13062
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13063
 
  ;;
13064
 
  esac
13065
 
 
13066
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13067
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13068
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
13069
 
 
13070
 
#
13071
 
# Do we need to explicitly link libc?
13072
 
#
13073
 
case "x$archive_cmds_need_lc_CXX" in
13074
 
x|xyes)
13075
 
  # Assume -lc should be added
13076
 
  archive_cmds_need_lc_CXX=yes
13077
 
 
13078
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
13079
 
    case $archive_cmds_CXX in
13080
 
    *'~'*)
13081
 
      # FIXME: we may have to deal with multi-command sequences.
13082
 
      ;;
13083
 
    '$CC '*)
13084
 
      # Test whether the compiler implicitly links with -lc since on some
13085
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13086
 
      # to ld, don't add -lc before -lgcc.
13087
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13088
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13089
 
      $rm conftest*
13090
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13091
 
 
13092
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093
 
  (eval $ac_compile) 2>&5
13094
 
  ac_status=$?
13095
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096
 
  (exit $ac_status); } 2>conftest.err; then
13097
 
        soname=conftest
13098
 
        lib=conftest
13099
 
        libobjs=conftest.$ac_objext
13100
 
        deplibs=
13101
 
        wl=$lt_prog_compiler_wl_CXX
13102
 
        pic_flag=$lt_prog_compiler_pic_CXX
13103
 
        compiler_flags=-v
13104
 
        linker_flags=-v
13105
 
        verstring=
13106
 
        output_objdir=.
13107
 
        libname=conftest
13108
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13109
 
        allow_undefined_flag_CXX=
13110
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13111
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13112
 
  ac_status=$?
13113
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114
 
  (exit $ac_status); }
13115
 
        then
13116
 
          archive_cmds_need_lc_CXX=no
13117
 
        else
13118
 
          archive_cmds_need_lc_CXX=yes
13119
 
        fi
13120
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13121
 
      else
13122
 
        cat conftest.err 1>&5
13123
 
      fi
13124
 
      $rm conftest*
13125
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13126
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13127
 
      ;;
13128
 
    esac
13129
 
  fi
13130
 
  ;;
13131
 
esac
13132
 
 
13133
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13134
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13135
 
library_names_spec=
13136
 
libname_spec='lib$name'
13137
 
soname_spec=
13138
 
shrext_cmds=".so"
13139
 
postinstall_cmds=
13140
 
postuninstall_cmds=
13141
 
finish_cmds=
13142
 
finish_eval=
13143
 
shlibpath_var=
13144
 
shlibpath_overrides_runpath=unknown
13145
 
version_type=none
13146
 
dynamic_linker="$host_os ld.so"
13147
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
13148
 
if test "$GCC" = yes; then
13149
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13150
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13151
 
    # if the path contains ";" then we assume it to be the separator
13152
 
    # otherwise default to the standard path separator (i.e. ":") - it is
13153
 
    # assumed that no part of a normal pathname contains ";" but that should
13154
 
    # okay in the real world where ";" in dirpaths is itself problematic.
13155
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13156
 
  else
13157
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13158
 
  fi
13159
 
else
13160
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13161
 
fi
13162
 
need_lib_prefix=unknown
13163
 
hardcode_into_libs=no
13164
 
 
13165
 
# when you set need_version to no, make sure it does not cause -set_version
13166
 
# flags to be left without arguments
13167
 
need_version=unknown
13168
 
 
13169
 
case $host_os in
13170
 
aix3*)
13171
 
  version_type=linux
13172
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13173
 
  shlibpath_var=LIBPATH
13174
 
 
13175
 
  # AIX 3 has no versioning support, so we append a major version to the name.
13176
 
  soname_spec='${libname}${release}${shared_ext}$major'
13177
 
  ;;
13178
 
 
13179
 
aix4* | aix5*)
13180
 
  version_type=linux
13181
 
  need_lib_prefix=no
13182
 
  need_version=no
13183
 
  hardcode_into_libs=yes
13184
 
  if test "$host_cpu" = ia64; then
13185
 
    # AIX 5 supports IA64
13186
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13187
 
    shlibpath_var=LD_LIBRARY_PATH
13188
 
  else
13189
 
    # With GCC up to 2.95.x, collect2 would create an import file
13190
 
    # for dependence libraries.  The import file would start with
13191
 
    # the line `#! .'.  This would cause the generated library to
13192
 
    # depend on `.', always an invalid library.  This was fixed in
13193
 
    # development snapshots of GCC prior to 3.0.
13194
 
    case $host_os in
13195
 
      aix4 | aix4.[01] | aix4.[01].*)
13196
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13197
 
           echo ' yes '
13198
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13199
 
        :
13200
 
      else
13201
 
        can_build_shared=no
13202
 
      fi
13203
 
      ;;
13204
 
    esac
13205
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13206
 
    # soname into executable. Probably we can add versioning support to
13207
 
    # collect2, so additional links can be useful in future.
13208
 
    if test "$aix_use_runtimelinking" = yes; then
13209
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13210
 
      # instead of lib<name>.a to let people know that these are not
13211
 
      # typical AIX shared libraries.
13212
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13213
 
    else
13214
 
      # We preserve .a as extension for shared libraries through AIX4.2
13215
 
      # and later when we are not doing run time linking.
13216
 
      library_names_spec='${libname}${release}.a $libname.a'
13217
 
      soname_spec='${libname}${release}${shared_ext}$major'
13218
 
    fi
13219
 
    shlibpath_var=LIBPATH
13220
 
  fi
13221
 
  ;;
13222
 
 
13223
 
amigaos*)
13224
 
  library_names_spec='$libname.ixlibrary $libname.a'
13225
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
13226
 
  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'
13227
 
  ;;
13228
 
 
13229
 
beos*)
13230
 
  library_names_spec='${libname}${shared_ext}'
13231
 
  dynamic_linker="$host_os ld.so"
13232
 
  shlibpath_var=LIBRARY_PATH
13233
 
  ;;
13234
 
 
13235
 
bsdi[45]*)
13236
 
  version_type=linux
13237
 
  need_version=no
13238
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239
 
  soname_spec='${libname}${release}${shared_ext}$major'
13240
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13241
 
  shlibpath_var=LD_LIBRARY_PATH
13242
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13243
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13244
 
  # the default ld.so.conf also contains /usr/contrib/lib and
13245
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13246
 
  # libtool to hard-code these into programs
13247
 
  ;;
13248
 
 
13249
 
cygwin* | mingw* | pw32*)
13250
 
  version_type=windows
13251
 
  shrext_cmds=".dll"
13252
 
  need_version=no
13253
 
  need_lib_prefix=no
13254
 
 
13255
 
  case $GCC,$host_os in
13256
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
13257
 
    library_names_spec='$libname.dll.a'
13258
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13259
 
    postinstall_cmds='base_file=`basename \${file}`~
13260
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13261
 
      dldir=$destdir/`dirname \$dlpath`~
13262
 
      test -d \$dldir || mkdir -p \$dldir~
13263
 
      $install_prog $dir/$dlname \$dldir/$dlname~
13264
 
      chmod a+x \$dldir/$dlname'
13265
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13266
 
      dlpath=$dir/\$dldll~
13267
 
       $rm \$dlpath'
13268
 
    shlibpath_overrides_runpath=yes
13269
 
 
13270
 
    case $host_os in
13271
 
    cygwin*)
13272
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13273
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13274
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13275
 
      ;;
13276
 
    mingw*)
13277
 
      # MinGW DLLs use traditional 'lib' prefix
13278
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13279
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13280
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13281
 
        # It is most probably a Windows format PATH printed by
13282
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
13283
 
        # path with ; separators, and with drive letters. We can handle the
13284
 
        # drive letters (cygwin fileutils understands them), so leave them,
13285
 
        # especially as we might pass files found there to a mingw objdump,
13286
 
        # which wouldn't understand a cygwinified path. Ahh.
13287
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13288
 
      else
13289
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13290
 
      fi
13291
 
      ;;
13292
 
    pw32*)
13293
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
13294
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13295
 
      ;;
13296
 
    esac
13297
 
    ;;
13298
 
 
13299
 
  *)
13300
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13301
 
    ;;
13302
 
  esac
13303
 
  dynamic_linker='Win32 ld.exe'
13304
 
  # FIXME: first we should search . and the directory the executable is in
13305
 
  shlibpath_var=PATH
13306
 
  ;;
13307
 
 
13308
 
darwin* | rhapsody*)
13309
 
  dynamic_linker="$host_os dyld"
13310
 
  version_type=darwin
13311
 
  need_lib_prefix=no
13312
 
  need_version=no
13313
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13314
 
  soname_spec='${libname}${release}${major}$shared_ext'
13315
 
  shlibpath_overrides_runpath=yes
13316
 
  shlibpath_var=DYLD_LIBRARY_PATH
13317
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13318
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13319
 
  if test "$GCC" = yes; then
13320
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13321
 
  else
13322
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13323
 
  fi
13324
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13325
 
  ;;
13326
 
 
13327
 
dgux*)
13328
 
  version_type=linux
13329
 
  need_lib_prefix=no
13330
 
  need_version=no
13331
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13332
 
  soname_spec='${libname}${release}${shared_ext}$major'
13333
 
  shlibpath_var=LD_LIBRARY_PATH
13334
 
  ;;
13335
 
 
13336
 
freebsd1*)
13337
 
  dynamic_linker=no
13338
 
  ;;
13339
 
 
13340
 
kfreebsd*-gnu)
13341
 
  version_type=linux
13342
 
  need_lib_prefix=no
13343
 
  need_version=no
13344
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13345
 
  soname_spec='${libname}${release}${shared_ext}$major'
13346
 
  shlibpath_var=LD_LIBRARY_PATH
13347
 
  shlibpath_overrides_runpath=no
13348
 
  hardcode_into_libs=yes
13349
 
  dynamic_linker='GNU ld.so'
13350
 
  ;;
13351
 
 
13352
 
freebsd* | dragonfly*)
13353
 
  # DragonFly does not have aout.  When/if they implement a new
13354
 
  # versioning mechanism, adjust this.
13355
 
  if test -x /usr/bin/objformat; then
13356
 
    objformat=`/usr/bin/objformat`
13357
 
  else
13358
 
    case $host_os in
13359
 
    freebsd[123]*) objformat=aout ;;
13360
 
    *) objformat=elf ;;
13361
 
    esac
13362
 
  fi
13363
 
  version_type=freebsd-$objformat
13364
 
  case $version_type in
13365
 
    freebsd-elf*)
13366
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13367
 
      need_version=no
13368
 
      need_lib_prefix=no
13369
 
      ;;
13370
 
    freebsd-*)
13371
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13372
 
      need_version=yes
13373
 
      ;;
13374
 
  esac
13375
 
  shlibpath_var=LD_LIBRARY_PATH
13376
 
  case $host_os in
13377
 
  freebsd2*)
13378
 
    shlibpath_overrides_runpath=yes
13379
 
    ;;
13380
 
  freebsd3.[01]* | freebsdelf3.[01]*)
13381
 
    shlibpath_overrides_runpath=yes
13382
 
    hardcode_into_libs=yes
13383
 
    ;;
13384
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13385
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13386
 
    shlibpath_overrides_runpath=no
13387
 
    hardcode_into_libs=yes
13388
 
    ;;
13389
 
  freebsd*) # from 4.6 on
13390
 
    shlibpath_overrides_runpath=yes
13391
 
    hardcode_into_libs=yes
13392
 
    ;;
13393
 
  esac
13394
 
  ;;
13395
 
 
13396
 
gnu*)
13397
 
  version_type=linux
13398
 
  need_lib_prefix=no
13399
 
  need_version=no
13400
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13401
 
  soname_spec='${libname}${release}${shared_ext}$major'
13402
 
  shlibpath_var=LD_LIBRARY_PATH
13403
 
  hardcode_into_libs=yes
13404
 
  ;;
13405
 
 
13406
 
hpux9* | hpux10* | hpux11*)
13407
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
13408
 
  # link against other versions.
13409
 
  version_type=sunos
13410
 
  need_lib_prefix=no
13411
 
  need_version=no
13412
 
  case $host_cpu in
13413
 
  ia64*)
13414
 
    shrext_cmds='.so'
13415
 
    hardcode_into_libs=yes
13416
 
    dynamic_linker="$host_os dld.so"
13417
 
    shlibpath_var=LD_LIBRARY_PATH
13418
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13419
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13420
 
    soname_spec='${libname}${release}${shared_ext}$major'
13421
 
    if test "X$HPUX_IA64_MODE" = X32; then
13422
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13423
 
    else
13424
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13425
 
    fi
13426
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13427
 
    ;;
13428
 
   hppa*64*)
13429
 
     shrext_cmds='.sl'
13430
 
     hardcode_into_libs=yes
13431
 
     dynamic_linker="$host_os dld.sl"
13432
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13433
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13434
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13435
 
     soname_spec='${libname}${release}${shared_ext}$major'
13436
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13437
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13438
 
     ;;
13439
 
   *)
13440
 
    shrext_cmds='.sl'
13441
 
    dynamic_linker="$host_os dld.sl"
13442
 
    shlibpath_var=SHLIB_PATH
13443
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13444
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445
 
    soname_spec='${libname}${release}${shared_ext}$major'
13446
 
    ;;
13447
 
  esac
13448
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
13449
 
  postinstall_cmds='chmod 555 $lib'
13450
 
  ;;
13451
 
 
13452
 
interix3*)
13453
 
  version_type=linux
13454
 
  need_lib_prefix=no
13455
 
  need_version=no
13456
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13457
 
  soname_spec='${libname}${release}${shared_ext}$major'
13458
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13459
 
  shlibpath_var=LD_LIBRARY_PATH
13460
 
  shlibpath_overrides_runpath=no
13461
 
  hardcode_into_libs=yes
13462
 
  ;;
13463
 
 
13464
 
irix5* | irix6* | nonstopux*)
13465
 
  case $host_os in
13466
 
    nonstopux*) version_type=nonstopux ;;
13467
 
    *)
13468
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
13469
 
                version_type=linux
13470
 
        else
13471
 
                version_type=irix
13472
 
        fi ;;
13473
 
  esac
13474
 
  need_lib_prefix=no
13475
 
  need_version=no
13476
 
  soname_spec='${libname}${release}${shared_ext}$major'
13477
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13478
 
  case $host_os in
13479
 
  irix5* | nonstopux*)
13480
 
    libsuff= shlibsuff=
13481
 
    ;;
13482
 
  *)
13483
 
    case $LD in # libtool.m4 will add one of these switches to LD
13484
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13485
 
      libsuff= shlibsuff= libmagic=32-bit;;
13486
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13487
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
13488
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13489
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
13490
 
    *) libsuff= shlibsuff= libmagic=never-match;;
13491
 
    esac
13492
 
    ;;
13493
 
  esac
13494
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13495
 
  shlibpath_overrides_runpath=no
13496
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13497
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13498
 
  hardcode_into_libs=yes
13499
 
  ;;
13500
 
 
13501
 
# No shared lib support for Linux oldld, aout, or coff.
13502
 
linux*oldld* | linux*aout* | linux*coff*)
13503
 
  dynamic_linker=no
13504
 
  ;;
13505
 
 
13506
 
# This must be Linux ELF.
13507
 
linux*)
13508
 
  version_type=linux
13509
 
  need_lib_prefix=no
13510
 
  need_version=no
13511
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512
 
  soname_spec='${libname}${release}${shared_ext}$major'
13513
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13514
 
  shlibpath_var=LD_LIBRARY_PATH
13515
 
  shlibpath_overrides_runpath=no
13516
 
  # This implies no fast_install, which is unacceptable.
13517
 
  # Some rework will be needed to allow for fast_install
13518
 
  # before this can be enabled.
13519
 
  hardcode_into_libs=yes
13520
 
 
13521
 
  # Append ld.so.conf contents to the search path
13522
 
  if test -f /etc/ld.so.conf; then
13523
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13524
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13525
 
  fi
13526
 
 
13527
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
13528
 
  # powerpc, because MkLinux only supported shared libraries with the
13529
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
13530
 
  # most powerpc-linux boxes support dynamic linking these days and
13531
 
  # people can always --disable-shared, the test was removed, and we
13532
 
  # assume the GNU/Linux dynamic linker is in use.
13533
 
  dynamic_linker='GNU/Linux ld.so'
13534
 
  ;;
13535
 
 
13536
 
netbsdelf*-gnu)
13537
 
  version_type=linux
13538
 
  need_lib_prefix=no
13539
 
  need_version=no
13540
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13541
 
  soname_spec='${libname}${release}${shared_ext}$major'
13542
 
  shlibpath_var=LD_LIBRARY_PATH
13543
 
  shlibpath_overrides_runpath=no
13544
 
  hardcode_into_libs=yes
13545
 
  dynamic_linker='NetBSD ld.elf_so'
13546
 
  ;;
13547
 
 
13548
 
knetbsd*-gnu)
13549
 
  version_type=linux
13550
 
  need_lib_prefix=no
13551
 
  need_version=no
13552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13553
 
  soname_spec='${libname}${release}${shared_ext}$major'
13554
 
  shlibpath_var=LD_LIBRARY_PATH
13555
 
  shlibpath_overrides_runpath=no
13556
 
  hardcode_into_libs=yes
13557
 
  dynamic_linker='GNU ld.so'
13558
 
  ;;
13559
 
 
13560
 
netbsd*)
13561
 
  version_type=sunos
13562
 
  need_lib_prefix=no
13563
 
  need_version=no
13564
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13565
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13566
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13567
 
    dynamic_linker='NetBSD (a.out) ld.so'
13568
 
  else
13569
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13570
 
    soname_spec='${libname}${release}${shared_ext}$major'
13571
 
    dynamic_linker='NetBSD ld.elf_so'
13572
 
  fi
13573
 
  shlibpath_var=LD_LIBRARY_PATH
13574
 
  shlibpath_overrides_runpath=yes
13575
 
  hardcode_into_libs=yes
13576
 
  ;;
13577
 
 
13578
 
newsos6)
13579
 
  version_type=linux
13580
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13581
 
  shlibpath_var=LD_LIBRARY_PATH
13582
 
  shlibpath_overrides_runpath=yes
13583
 
  ;;
13584
 
 
13585
 
nto-qnx*)
13586
 
  version_type=linux
13587
 
  need_lib_prefix=no
13588
 
  need_version=no
13589
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13590
 
  soname_spec='${libname}${release}${shared_ext}$major'
13591
 
  shlibpath_var=LD_LIBRARY_PATH
13592
 
  shlibpath_overrides_runpath=yes
13593
 
  ;;
13594
 
 
13595
 
openbsd*)
13596
 
  version_type=sunos
13597
 
  sys_lib_dlsearch_path_spec="/usr/lib"
13598
 
  need_lib_prefix=no
13599
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13600
 
  case $host_os in
13601
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13602
 
    *)                         need_version=no  ;;
13603
 
  esac
13604
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13605
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13606
 
  shlibpath_var=LD_LIBRARY_PATH
13607
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13608
 
    case $host_os in
13609
 
      openbsd2.[89] | openbsd2.[89].*)
13610
 
        shlibpath_overrides_runpath=no
13611
 
        ;;
13612
 
      *)
13613
 
        shlibpath_overrides_runpath=yes
13614
 
        ;;
13615
 
      esac
13616
 
  else
13617
 
    shlibpath_overrides_runpath=yes
13618
 
  fi
13619
 
  ;;
13620
 
 
13621
 
os2*)
13622
 
  libname_spec='$name'
13623
 
  shrext_cmds=".dll"
13624
 
  need_lib_prefix=no
13625
 
  library_names_spec='$libname${shared_ext} $libname.a'
13626
 
  dynamic_linker='OS/2 ld.exe'
13627
 
  shlibpath_var=LIBPATH
13628
 
  ;;
13629
 
 
13630
 
osf3* | osf4* | osf5*)
13631
 
  version_type=osf
13632
 
  need_lib_prefix=no
13633
 
  need_version=no
13634
 
  soname_spec='${libname}${release}${shared_ext}$major'
13635
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13636
 
  shlibpath_var=LD_LIBRARY_PATH
13637
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13638
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13639
 
  ;;
13640
 
 
13641
 
solaris*)
13642
 
  version_type=linux
13643
 
  need_lib_prefix=no
13644
 
  need_version=no
13645
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13646
 
  soname_spec='${libname}${release}${shared_ext}$major'
13647
 
  shlibpath_var=LD_LIBRARY_PATH
13648
 
  shlibpath_overrides_runpath=yes
13649
 
  hardcode_into_libs=yes
13650
 
  # ldd complains unless libraries are executable
13651
 
  postinstall_cmds='chmod +x $lib'
13652
 
  ;;
13653
 
 
13654
 
sunos4*)
13655
 
  version_type=sunos
13656
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13657
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13658
 
  shlibpath_var=LD_LIBRARY_PATH
13659
 
  shlibpath_overrides_runpath=yes
13660
 
  if test "$with_gnu_ld" = yes; then
13661
 
    need_lib_prefix=no
13662
 
  fi
13663
 
  need_version=yes
13664
 
  ;;
13665
 
 
13666
 
sysv4 | sysv4.3*)
13667
 
  version_type=linux
13668
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13669
 
  soname_spec='${libname}${release}${shared_ext}$major'
13670
 
  shlibpath_var=LD_LIBRARY_PATH
13671
 
  case $host_vendor in
13672
 
    sni)
13673
 
      shlibpath_overrides_runpath=no
13674
 
      need_lib_prefix=no
13675
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13676
 
      runpath_var=LD_RUN_PATH
13677
 
      ;;
13678
 
    siemens)
13679
 
      need_lib_prefix=no
13680
 
      ;;
13681
 
    motorola)
13682
 
      need_lib_prefix=no
13683
 
      need_version=no
13684
 
      shlibpath_overrides_runpath=no
13685
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13686
 
      ;;
13687
 
  esac
13688
 
  ;;
13689
 
 
13690
 
sysv4*MP*)
13691
 
  if test -d /usr/nec ;then
13692
 
    version_type=linux
13693
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13694
 
    soname_spec='$libname${shared_ext}.$major'
13695
 
    shlibpath_var=LD_LIBRARY_PATH
13696
 
  fi
13697
 
  ;;
13698
 
 
13699
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13700
 
  version_type=freebsd-elf
13701
 
  need_lib_prefix=no
13702
 
  need_version=no
13703
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13704
 
  soname_spec='${libname}${release}${shared_ext}$major'
13705
 
  shlibpath_var=LD_LIBRARY_PATH
13706
 
  hardcode_into_libs=yes
13707
 
  if test "$with_gnu_ld" = yes; then
13708
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13709
 
    shlibpath_overrides_runpath=no
13710
 
  else
13711
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13712
 
    shlibpath_overrides_runpath=yes
13713
 
    case $host_os in
13714
 
      sco3.2v5*)
13715
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13716
 
        ;;
13717
 
    esac
13718
 
  fi
13719
 
  sys_lib_dlsearch_path_spec='/usr/lib'
13720
 
  ;;
13721
 
 
13722
 
uts4*)
13723
 
  version_type=linux
13724
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725
 
  soname_spec='${libname}${release}${shared_ext}$major'
13726
 
  shlibpath_var=LD_LIBRARY_PATH
13727
 
  ;;
13728
 
 
13729
 
*)
13730
 
  dynamic_linker=no
13731
 
  ;;
13732
 
esac
13733
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13734
 
echo "${ECHO_T}$dynamic_linker" >&6; }
13735
 
test "$dynamic_linker" = no && can_build_shared=no
13736
 
 
13737
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13738
 
if test "$GCC" = yes; then
13739
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13740
 
fi
13741
 
 
13742
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13743
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13744
 
hardcode_action_CXX=
13745
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13746
 
   test -n "$runpath_var_CXX" || \
13747
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13748
 
 
13749
 
  # We can hardcode non-existant directories.
13750
 
  if test "$hardcode_direct_CXX" != no &&
13751
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13752
 
     # have to relink, otherwise we might link with an installed library
13753
 
     # when we should be linking with a yet-to-be-installed one
13754
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13755
 
     test "$hardcode_minus_L_CXX" != no; then
13756
 
    # Linking always hardcodes the temporary library directory.
13757
 
    hardcode_action_CXX=relink
13758
 
  else
13759
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13760
 
    hardcode_action_CXX=immediate
13761
 
  fi
13762
 
else
13763
 
  # We cannot hardcode anything, or else we can only hardcode existing
13764
 
  # directories.
13765
 
  hardcode_action_CXX=unsupported
13766
 
fi
13767
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13768
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13769
 
 
13770
 
if test "$hardcode_action_CXX" = relink; then
13771
 
  # Fast installation is not supported
13772
 
  enable_fast_install=no
13773
 
elif test "$shlibpath_overrides_runpath" = yes ||
13774
 
     test "$enable_shared" = no; then
13775
 
  # Fast installation is not necessary
13776
 
  enable_fast_install=needless
13777
 
fi
13778
 
 
13779
 
 
13780
 
# The else clause should only fire when bootstrapping the
13781
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13782
 
# with your package, and you will get complaints that there are
13783
 
# no rules to generate ltmain.sh.
13784
 
if test -f "$ltmain"; then
13785
 
  # See if we are running on zsh, and set the options which allow our commands through
13786
 
  # without removal of \ escapes.
13787
 
  if test -n "${ZSH_VERSION+set}" ; then
13788
 
    setopt NO_GLOB_SUBST
13789
 
  fi
13790
 
  # Now quote all the things that may contain metacharacters while being
13791
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13792
 
  # variables and quote the copies for generation of the libtool script.
13793
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13794
 
    SED SHELL STRIP \
13795
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13796
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13797
 
    deplibs_check_method reload_flag reload_cmds need_locks \
13798
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13799
 
    lt_cv_sys_global_symbol_to_c_name_address \
13800
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13801
 
    old_postinstall_cmds old_postuninstall_cmds \
13802
 
    compiler_CXX \
13803
 
    CC_CXX \
13804
 
    LD_CXX \
13805
 
    lt_prog_compiler_wl_CXX \
13806
 
    lt_prog_compiler_pic_CXX \
13807
 
    lt_prog_compiler_static_CXX \
13808
 
    lt_prog_compiler_no_builtin_flag_CXX \
13809
 
    export_dynamic_flag_spec_CXX \
13810
 
    thread_safe_flag_spec_CXX \
13811
 
    whole_archive_flag_spec_CXX \
13812
 
    enable_shared_with_static_runtimes_CXX \
13813
 
    old_archive_cmds_CXX \
13814
 
    old_archive_from_new_cmds_CXX \
13815
 
    predep_objects_CXX \
13816
 
    postdep_objects_CXX \
13817
 
    predeps_CXX \
13818
 
    postdeps_CXX \
13819
 
    compiler_lib_search_path_CXX \
13820
 
    archive_cmds_CXX \
13821
 
    archive_expsym_cmds_CXX \
13822
 
    postinstall_cmds_CXX \
13823
 
    postuninstall_cmds_CXX \
13824
 
    old_archive_from_expsyms_cmds_CXX \
13825
 
    allow_undefined_flag_CXX \
13826
 
    no_undefined_flag_CXX \
13827
 
    export_symbols_cmds_CXX \
13828
 
    hardcode_libdir_flag_spec_CXX \
13829
 
    hardcode_libdir_flag_spec_ld_CXX \
13830
 
    hardcode_libdir_separator_CXX \
13831
 
    hardcode_automatic_CXX \
13832
 
    module_cmds_CXX \
13833
 
    module_expsym_cmds_CXX \
13834
 
    lt_cv_prog_compiler_c_o_CXX \
13835
 
    exclude_expsyms_CXX \
13836
 
    include_expsyms_CXX; do
13837
 
 
13838
 
    case $var in
13839
 
    old_archive_cmds_CXX | \
13840
 
    old_archive_from_new_cmds_CXX | \
13841
 
    archive_cmds_CXX | \
13842
 
    archive_expsym_cmds_CXX | \
13843
 
    module_cmds_CXX | \
13844
 
    module_expsym_cmds_CXX | \
13845
 
    old_archive_from_expsyms_cmds_CXX | \
13846
 
    export_symbols_cmds_CXX | \
13847
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13848
 
    postinstall_cmds | postuninstall_cmds | \
13849
 
    old_postinstall_cmds | old_postuninstall_cmds | \
13850
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13851
 
      # Double-quote double-evaled strings.
13852
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13853
 
      ;;
13854
 
    *)
13855
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13856
 
      ;;
13857
 
    esac
13858
 
  done
13859
 
 
13860
 
  case $lt_echo in
13861
 
  *'\$0 --fallback-echo"')
13862
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13863
 
    ;;
13864
 
  esac
13865
 
 
13866
 
cfgfile="$ofile"
13867
 
 
13868
 
  cat <<__EOF__ >> "$cfgfile"
13869
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13870
 
 
13871
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13872
 
 
13873
 
# Shell to use when invoking shell scripts.
13874
 
SHELL=$lt_SHELL
13875
 
 
13876
 
# Whether or not to build shared libraries.
13877
 
build_libtool_libs=$enable_shared
13878
 
 
13879
 
# Whether or not to build static libraries.
13880
 
build_old_libs=$enable_static
13881
 
 
13882
 
# Whether or not to add -lc for building shared libraries.
13883
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
13884
 
 
13885
 
# Whether or not to disallow shared libs when runtime libs are static
13886
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13887
 
 
13888
 
# Whether or not to optimize for fast installation.
13889
 
fast_install=$enable_fast_install
13890
 
 
13891
 
# The host system.
13892
 
host_alias=$host_alias
13893
 
host=$host
13894
 
host_os=$host_os
13895
 
 
13896
 
# The build system.
13897
 
build_alias=$build_alias
13898
 
build=$build
13899
 
build_os=$build_os
13900
 
 
13901
 
# An echo program that does not interpret backslashes.
13902
 
echo=$lt_echo
13903
 
 
13904
 
# The archiver.
13905
 
AR=$lt_AR
13906
 
AR_FLAGS=$lt_AR_FLAGS
13907
 
 
13908
 
# A C compiler.
13909
 
LTCC=$lt_LTCC
13910
 
 
13911
 
# LTCC compiler flags.
13912
 
LTCFLAGS=$lt_LTCFLAGS
13913
 
 
13914
 
# A language-specific compiler.
13915
 
CC=$lt_compiler_CXX
13916
 
 
13917
 
# Is the compiler the GNU C compiler?
13918
 
with_gcc=$GCC_CXX
13919
 
 
13920
 
# An ERE matcher.
13921
 
EGREP=$lt_EGREP
13922
 
 
13923
 
# The linker used to build libraries.
13924
 
LD=$lt_LD_CXX
13925
 
 
13926
 
# Whether we need hard or soft links.
13927
 
LN_S=$lt_LN_S
13928
 
 
13929
 
# A BSD-compatible nm program.
13930
 
NM=$lt_NM
13931
 
 
13932
 
# A symbol stripping program
13933
 
STRIP=$lt_STRIP
13934
 
 
13935
 
# Used to examine libraries when file_magic_cmd begins "file"
13936
 
MAGIC_CMD=$MAGIC_CMD
13937
 
 
13938
 
# Used on cygwin: DLL creation program.
13939
 
DLLTOOL="$DLLTOOL"
13940
 
 
13941
 
# Used on cygwin: object dumper.
13942
 
OBJDUMP="$OBJDUMP"
13943
 
 
13944
 
# Used on cygwin: assembler.
13945
 
AS="$AS"
13946
 
 
13947
 
# The name of the directory that contains temporary libtool files.
13948
 
objdir=$objdir
13949
 
 
13950
 
# How to create reloadable object files.
13951
 
reload_flag=$lt_reload_flag
13952
 
reload_cmds=$lt_reload_cmds
13953
 
 
13954
 
# How to pass a linker flag through the compiler.
13955
 
wl=$lt_lt_prog_compiler_wl_CXX
13956
 
 
13957
 
# Object file suffix (normally "o").
13958
 
objext="$ac_objext"
13959
 
 
13960
 
# Old archive suffix (normally "a").
13961
 
libext="$libext"
13962
 
 
13963
 
# Shared library suffix (normally ".so").
13964
 
shrext_cmds='$shrext_cmds'
13965
 
 
13966
 
# Executable file suffix (normally "").
13967
 
exeext="$exeext"
13968
 
 
13969
 
# Additional compiler flags for building library objects.
13970
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
13971
 
pic_mode=$pic_mode
13972
 
 
13973
 
# What is the maximum length of a command?
13974
 
max_cmd_len=$lt_cv_sys_max_cmd_len
13975
 
 
13976
 
# Does compiler simultaneously support -c and -o options?
13977
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13978
 
 
13979
 
# Must we lock files when doing compilation?
13980
 
need_locks=$lt_need_locks
13981
 
 
13982
 
# Do we need the lib prefix for modules?
13983
 
need_lib_prefix=$need_lib_prefix
13984
 
 
13985
 
# Do we need a version for libraries?
13986
 
need_version=$need_version
13987
 
 
13988
 
# Whether dlopen is supported.
13989
 
dlopen_support=$enable_dlopen
13990
 
 
13991
 
# Whether dlopen of programs is supported.
13992
 
dlopen_self=$enable_dlopen_self
13993
 
 
13994
 
# Whether dlopen of statically linked programs is supported.
13995
 
dlopen_self_static=$enable_dlopen_self_static
13996
 
 
13997
 
# Compiler flag to prevent dynamic linking.
13998
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
13999
 
 
14000
 
# Compiler flag to turn off builtin functions.
14001
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14002
 
 
14003
 
# Compiler flag to allow reflexive dlopens.
14004
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14005
 
 
14006
 
# Compiler flag to generate shared objects directly from archives.
14007
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14008
 
 
14009
 
# Compiler flag to generate thread-safe objects.
14010
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14011
 
 
14012
 
# Library versioning type.
14013
 
version_type=$version_type
14014
 
 
14015
 
# Format of library name prefix.
14016
 
libname_spec=$lt_libname_spec
14017
 
 
14018
 
# List of archive names.  First name is the real one, the rest are links.
14019
 
# The last name is the one that the linker finds with -lNAME.
14020
 
library_names_spec=$lt_library_names_spec
14021
 
 
14022
 
# The coded name of the library, if different from the real name.
14023
 
soname_spec=$lt_soname_spec
14024
 
 
14025
 
# Commands used to build and install an old-style archive.
14026
 
RANLIB=$lt_RANLIB
14027
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14028
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14029
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14030
 
 
14031
 
# Create an old-style archive from a shared archive.
14032
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14033
 
 
14034
 
# Create a temporary old-style archive to link instead of a shared archive.
14035
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14036
 
 
14037
 
# Commands used to build and install a shared archive.
14038
 
archive_cmds=$lt_archive_cmds_CXX
14039
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14040
 
postinstall_cmds=$lt_postinstall_cmds
14041
 
postuninstall_cmds=$lt_postuninstall_cmds
14042
 
 
14043
 
# Commands used to build a loadable module (assumed same as above if empty)
14044
 
module_cmds=$lt_module_cmds_CXX
14045
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14046
 
 
14047
 
# Commands to strip libraries.
14048
 
old_striplib=$lt_old_striplib
14049
 
striplib=$lt_striplib
14050
 
 
14051
 
# Dependencies to place before the objects being linked to create a
14052
 
# shared library.
14053
 
predep_objects=$lt_predep_objects_CXX
14054
 
 
14055
 
# Dependencies to place after the objects being linked to create a
14056
 
# shared library.
14057
 
postdep_objects=$lt_postdep_objects_CXX
14058
 
 
14059
 
# Dependencies to place before the objects being linked to create a
14060
 
# shared library.
14061
 
predeps=$lt_predeps_CXX
14062
 
 
14063
 
# Dependencies to place after the objects being linked to create a
14064
 
# shared library.
14065
 
postdeps=$lt_postdeps_CXX
14066
 
 
14067
 
# The library search path used internally by the compiler when linking
14068
 
# a shared library.
14069
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14070
 
 
14071
 
# Method to check whether dependent libraries are shared objects.
14072
 
deplibs_check_method=$lt_deplibs_check_method
14073
 
 
14074
 
# Command to use when deplibs_check_method == file_magic.
14075
 
file_magic_cmd=$lt_file_magic_cmd
14076
 
 
14077
 
# Flag that allows shared libraries with undefined symbols to be built.
14078
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14079
 
 
14080
 
# Flag that forces no undefined symbols.
14081
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14082
 
 
14083
 
# Commands used to finish a libtool library installation in a directory.
14084
 
finish_cmds=$lt_finish_cmds
14085
 
 
14086
 
# Same as above, but a single script fragment to be evaled but not shown.
14087
 
finish_eval=$lt_finish_eval
14088
 
 
14089
 
# Take the output of nm and produce a listing of raw symbols and C names.
14090
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14091
 
 
14092
 
# Transform the output of nm in a proper C declaration
14093
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14094
 
 
14095
 
# Transform the output of nm in a C name address pair
14096
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14097
 
 
14098
 
# This is the shared library runtime path variable.
14099
 
runpath_var=$runpath_var
14100
 
 
14101
 
# This is the shared library path variable.
14102
 
shlibpath_var=$shlibpath_var
14103
 
 
14104
 
# Is shlibpath searched before the hard-coded library search path?
14105
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14106
 
 
14107
 
# How to hardcode a shared library path into an executable.
14108
 
hardcode_action=$hardcode_action_CXX
14109
 
 
14110
 
# Whether we should hardcode library paths into libraries.
14111
 
hardcode_into_libs=$hardcode_into_libs
14112
 
 
14113
 
# Flag to hardcode \$libdir into a binary during linking.
14114
 
# This must work even if \$libdir does not exist.
14115
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14116
 
 
14117
 
# If ld is used when linking, flag to hardcode \$libdir into
14118
 
# a binary during linking. This must work even if \$libdir does
14119
 
# not exist.
14120
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14121
 
 
14122
 
# Whether we need a single -rpath flag with a separated argument.
14123
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14124
 
 
14125
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14126
 
# resulting binary.
14127
 
hardcode_direct=$hardcode_direct_CXX
14128
 
 
14129
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14130
 
# resulting binary.
14131
 
hardcode_minus_L=$hardcode_minus_L_CXX
14132
 
 
14133
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14134
 
# the resulting binary.
14135
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14136
 
 
14137
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14138
 
# and all subsequent libraries and executables linked against it.
14139
 
hardcode_automatic=$hardcode_automatic_CXX
14140
 
 
14141
 
# Variables whose values should be saved in libtool wrapper scripts and
14142
 
# restored at relink time.
14143
 
variables_saved_for_relink="$variables_saved_for_relink"
14144
 
 
14145
 
# Whether libtool must link a program against all its dependency libraries.
14146
 
link_all_deplibs=$link_all_deplibs_CXX
14147
 
 
14148
 
# Compile-time system search path for libraries
14149
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14150
 
 
14151
 
# Run-time system search path for libraries
14152
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14153
 
 
14154
 
# Fix the shell variable \$srcfile for the compiler.
14155
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14156
 
 
14157
 
# Set to yes if exported symbols are required.
14158
 
always_export_symbols=$always_export_symbols_CXX
14159
 
 
14160
 
# The commands to list exported symbols.
14161
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14162
 
 
14163
 
# The commands to extract the exported symbol list from a shared archive.
14164
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14165
 
 
14166
 
# Symbols that should not be listed in the preloaded symbols.
14167
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14168
 
 
14169
 
# Symbols that must always be exported.
14170
 
include_expsyms=$lt_include_expsyms_CXX
14171
 
 
14172
 
# ### END LIBTOOL TAG CONFIG: $tagname
14173
 
 
14174
 
__EOF__
14175
 
 
14176
 
 
14177
 
else
14178
 
  # If there is no Makefile yet, we rely on a make rule to execute
14179
 
  # `config.status --recheck' to rerun these tests and create the
14180
 
  # libtool script then.
14181
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14182
 
  if test -f "$ltmain_in"; then
14183
 
    test -f Makefile && make "$ltmain"
14184
 
  fi
14185
 
fi
14186
 
 
14187
 
 
14188
 
ac_ext=cpp
14189
 
ac_cpp='$CXXCPP $CPPFLAGS'
14190
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14191
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14192
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14193
 
 
14194
 
CC=$lt_save_CC
14195
 
LDCXX=$LD
14196
 
LD=$lt_save_LD
14197
 
GCC=$lt_save_GCC
14198
 
with_gnu_ldcxx=$with_gnu_ld
14199
 
with_gnu_ld=$lt_save_with_gnu_ld
14200
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14201
 
lt_cv_path_LD=$lt_save_path_LD
14202
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14203
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14204
 
 
14205
 
        else
14206
 
          tagname=""
14207
 
        fi
14208
 
        ;;
14209
 
 
14210
 
      F77)
14211
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14212
 
 
14213
 
ac_ext=f
14214
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14215
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14216
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14217
 
 
14218
 
 
14219
 
archive_cmds_need_lc_F77=no
14220
 
allow_undefined_flag_F77=
14221
 
always_export_symbols_F77=no
14222
 
archive_expsym_cmds_F77=
14223
 
export_dynamic_flag_spec_F77=
14224
 
hardcode_direct_F77=no
14225
 
hardcode_libdir_flag_spec_F77=
14226
 
hardcode_libdir_flag_spec_ld_F77=
14227
 
hardcode_libdir_separator_F77=
14228
 
hardcode_minus_L_F77=no
14229
 
hardcode_automatic_F77=no
14230
 
module_cmds_F77=
14231
 
module_expsym_cmds_F77=
14232
 
link_all_deplibs_F77=unknown
14233
 
old_archive_cmds_F77=$old_archive_cmds
14234
 
no_undefined_flag_F77=
14235
 
whole_archive_flag_spec_F77=
14236
 
enable_shared_with_static_runtimes_F77=no
14237
 
 
14238
 
# Source file extension for f77 test sources.
14239
 
ac_ext=f
14240
 
 
14241
 
# Object file extension for compiled f77 test sources.
14242
 
objext=o
14243
 
objext_F77=$objext
14244
 
 
14245
 
# Code to be used in simple compile tests
14246
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14247
 
 
14248
 
# Code to be used in simple link tests
14249
 
lt_simple_link_test_code="      program t\n      end\n"
14250
 
 
14251
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14252
 
 
14253
 
# If no C compiler was specified, use CC.
14254
 
LTCC=${LTCC-"$CC"}
14255
 
 
14256
 
# If no C compiler flags were specified, use CFLAGS.
14257
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14258
 
 
14259
 
# Allow CC to be a program name with arguments.
14260
 
compiler=$CC
14261
 
 
14262
 
 
14263
 
# save warnings/boilerplate of simple test code
14264
 
ac_outfile=conftest.$ac_objext
14265
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14266
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14267
 
_lt_compiler_boilerplate=`cat conftest.err`
14268
 
$rm conftest*
14269
 
 
14270
 
ac_outfile=conftest.$ac_objext
14271
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
14272
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14273
 
_lt_linker_boilerplate=`cat conftest.err`
14274
 
$rm conftest*
14275
 
 
14276
 
 
14277
 
# Allow CC to be a program name with arguments.
14278
 
lt_save_CC="$CC"
14279
 
CC=${F77-"f77"}
14280
 
compiler=$CC
14281
 
compiler_F77=$CC
14282
 
for cc_temp in $compiler""; do
14283
 
  case $cc_temp in
14284
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14285
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14286
 
    \-*) ;;
14287
 
    *) break;;
14288
 
  esac
14289
 
done
14290
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14291
 
 
14292
 
 
14293
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14294
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14295
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
14296
 
echo "${ECHO_T}$can_build_shared" >&6; }
14297
 
 
14298
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14299
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14300
 
test "$can_build_shared" = "no" && enable_shared=no
14301
 
 
14302
 
# On AIX, shared libraries and static libraries use the same namespace, and
14303
 
# are all built from PIC.
14304
 
case $host_os in
14305
 
aix3*)
14306
 
  test "$enable_shared" = yes && enable_static=no
14307
 
  if test -n "$RANLIB"; then
14308
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14309
 
    postinstall_cmds='$RANLIB $lib'
14310
 
  fi
14311
 
  ;;
14312
 
aix4* | aix5*)
14313
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14314
 
    test "$enable_shared" = yes && enable_static=no
14315
 
  fi
14316
 
  ;;
14317
 
esac
14318
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
14319
 
echo "${ECHO_T}$enable_shared" >&6; }
14320
 
 
14321
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14322
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14323
 
# Make sure either enable_shared or enable_static is yes.
14324
 
test "$enable_shared" = yes || enable_static=yes
14325
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
14326
 
echo "${ECHO_T}$enable_static" >&6; }
14327
 
 
14328
 
GCC_F77="$G77"
14329
 
LD_F77="$LD"
14330
 
 
14331
 
lt_prog_compiler_wl_F77=
14332
 
lt_prog_compiler_pic_F77=
14333
 
lt_prog_compiler_static_F77=
14334
 
 
14335
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14336
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14337
 
 
14338
 
  if test "$GCC" = yes; then
14339
 
    lt_prog_compiler_wl_F77='-Wl,'
14340
 
    lt_prog_compiler_static_F77='-static'
14341
 
 
14342
 
    case $host_os in
14343
 
      aix*)
14344
 
      # All AIX code is PIC.
14345
 
      if test "$host_cpu" = ia64; then
14346
 
        # AIX 5 now supports IA64 processor
14347
 
        lt_prog_compiler_static_F77='-Bstatic'
14348
 
      fi
14349
 
      ;;
14350
 
 
14351
 
    amigaos*)
14352
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14353
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14354
 
      # like `-m68040'.
14355
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14356
 
      ;;
14357
 
 
14358
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14359
 
      # PIC is the default for these OSes.
14360
 
      ;;
14361
 
 
14362
 
    mingw* | pw32* | os2*)
14363
 
      # This hack is so that the source file can tell whether it is being
14364
 
      # built for inclusion in a dll (and should export symbols for example).
14365
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14366
 
      ;;
14367
 
 
14368
 
    darwin* | rhapsody*)
14369
 
      # PIC is the default on this platform
14370
 
      # Common symbols not allowed in MH_DYLIB files
14371
 
      lt_prog_compiler_pic_F77='-fno-common'
14372
 
      ;;
14373
 
 
14374
 
    interix3*)
14375
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14376
 
      # Instead, we relocate shared libraries at runtime.
14377
 
      ;;
14378
 
 
14379
 
    msdosdjgpp*)
14380
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14381
 
      # on systems that don't support them.
14382
 
      lt_prog_compiler_can_build_shared_F77=no
14383
 
      enable_shared=no
14384
 
      ;;
14385
 
 
14386
 
    sysv4*MP*)
14387
 
      if test -d /usr/nec; then
14388
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14389
 
      fi
14390
 
      ;;
14391
 
 
14392
 
    hpux*)
14393
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14394
 
      # not for PA HP-UX.
14395
 
      case $host_cpu in
14396
 
      hppa*64*|ia64*)
14397
 
        # +Z the default
14398
 
        ;;
14399
 
      *)
14400
 
        lt_prog_compiler_pic_F77='-fPIC'
14401
 
        ;;
14402
 
      esac
14403
 
      ;;
14404
 
 
14405
 
    *)
14406
 
      lt_prog_compiler_pic_F77='-fPIC'
14407
 
      ;;
14408
 
    esac
14409
 
  else
14410
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14411
 
    case $host_os in
14412
 
    aix*)
14413
 
      lt_prog_compiler_wl_F77='-Wl,'
14414
 
      if test "$host_cpu" = ia64; then
14415
 
        # AIX 5 now supports IA64 processor
14416
 
        lt_prog_compiler_static_F77='-Bstatic'
14417
 
      else
14418
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14419
 
      fi
14420
 
      ;;
14421
 
      darwin*)
14422
 
        # PIC is the default on this platform
14423
 
        # Common symbols not allowed in MH_DYLIB files
14424
 
       case $cc_basename in
14425
 
         xlc*)
14426
 
         lt_prog_compiler_pic_F77='-qnocommon'
14427
 
         lt_prog_compiler_wl_F77='-Wl,'
14428
 
         ;;
14429
 
       esac
14430
 
       ;;
14431
 
 
14432
 
    mingw* | pw32* | os2*)
14433
 
      # This hack is so that the source file can tell whether it is being
14434
 
      # built for inclusion in a dll (and should export symbols for example).
14435
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14436
 
      ;;
14437
 
 
14438
 
    hpux9* | hpux10* | hpux11*)
14439
 
      lt_prog_compiler_wl_F77='-Wl,'
14440
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14441
 
      # not for PA HP-UX.
14442
 
      case $host_cpu in
14443
 
      hppa*64*|ia64*)
14444
 
        # +Z the default
14445
 
        ;;
14446
 
      *)
14447
 
        lt_prog_compiler_pic_F77='+Z'
14448
 
        ;;
14449
 
      esac
14450
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14451
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14452
 
      ;;
14453
 
 
14454
 
    irix5* | irix6* | nonstopux*)
14455
 
      lt_prog_compiler_wl_F77='-Wl,'
14456
 
      # PIC (with -KPIC) is the default.
14457
 
      lt_prog_compiler_static_F77='-non_shared'
14458
 
      ;;
14459
 
 
14460
 
    newsos6)
14461
 
      lt_prog_compiler_pic_F77='-KPIC'
14462
 
      lt_prog_compiler_static_F77='-Bstatic'
14463
 
      ;;
14464
 
 
14465
 
    linux*)
14466
 
      case $cc_basename in
14467
 
      icc* | ecc*)
14468
 
        lt_prog_compiler_wl_F77='-Wl,'
14469
 
        lt_prog_compiler_pic_F77='-KPIC'
14470
 
        lt_prog_compiler_static_F77='-static'
14471
 
        ;;
14472
 
      pgcc* | pgf77* | pgf90* | pgf95*)
14473
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14474
 
        # which looks to be a dead project)
14475
 
        lt_prog_compiler_wl_F77='-Wl,'
14476
 
        lt_prog_compiler_pic_F77='-fpic'
14477
 
        lt_prog_compiler_static_F77='-Bstatic'
14478
 
        ;;
14479
 
      ccc*)
14480
 
        lt_prog_compiler_wl_F77='-Wl,'
14481
 
        # All Alpha code is PIC.
14482
 
        lt_prog_compiler_static_F77='-non_shared'
14483
 
        ;;
14484
 
      esac
14485
 
      ;;
14486
 
 
14487
 
    osf3* | osf4* | osf5*)
14488
 
      lt_prog_compiler_wl_F77='-Wl,'
14489
 
      # All OSF/1 code is PIC.
14490
 
      lt_prog_compiler_static_F77='-non_shared'
14491
 
      ;;
14492
 
 
14493
 
    solaris*)
14494
 
      lt_prog_compiler_pic_F77='-KPIC'
14495
 
      lt_prog_compiler_static_F77='-Bstatic'
14496
 
      case $cc_basename in
14497
 
      f77* | f90* | f95*)
14498
 
        lt_prog_compiler_wl_F77='-Qoption ld ';;
14499
 
      *)
14500
 
        lt_prog_compiler_wl_F77='-Wl,';;
14501
 
      esac
14502
 
      ;;
14503
 
 
14504
 
    sunos4*)
14505
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14506
 
      lt_prog_compiler_pic_F77='-PIC'
14507
 
      lt_prog_compiler_static_F77='-Bstatic'
14508
 
      ;;
14509
 
 
14510
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
14511
 
      lt_prog_compiler_wl_F77='-Wl,'
14512
 
      lt_prog_compiler_pic_F77='-KPIC'
14513
 
      lt_prog_compiler_static_F77='-Bstatic'
14514
 
      ;;
14515
 
 
14516
 
    sysv4*MP*)
14517
 
      if test -d /usr/nec ;then
14518
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14519
 
        lt_prog_compiler_static_F77='-Bstatic'
14520
 
      fi
14521
 
      ;;
14522
 
 
14523
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14524
 
      lt_prog_compiler_wl_F77='-Wl,'
14525
 
      lt_prog_compiler_pic_F77='-KPIC'
14526
 
      lt_prog_compiler_static_F77='-Bstatic'
14527
 
      ;;
14528
 
 
14529
 
    unicos*)
14530
 
      lt_prog_compiler_wl_F77='-Wl,'
14531
 
      lt_prog_compiler_can_build_shared_F77=no
14532
 
      ;;
14533
 
 
14534
 
    uts4*)
14535
 
      lt_prog_compiler_pic_F77='-pic'
14536
 
      lt_prog_compiler_static_F77='-Bstatic'
14537
 
      ;;
14538
 
 
14539
 
    *)
14540
 
      lt_prog_compiler_can_build_shared_F77=no
14541
 
      ;;
14542
 
    esac
14543
 
  fi
14544
 
 
14545
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14546
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14547
 
 
14548
 
#
14549
 
# Check to make sure the PIC flag actually works.
14550
 
#
14551
 
if test -n "$lt_prog_compiler_pic_F77"; then
14552
 
 
14553
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14554
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14555
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14556
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14557
 
else
14558
 
  lt_prog_compiler_pic_works_F77=no
14559
 
  ac_outfile=conftest.$ac_objext
14560
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14561
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14562
 
   # Insert the option either (1) after the last *FLAGS variable, or
14563
 
   # (2) before a word containing "conftest.", or (3) at the end.
14564
 
   # Note that $ac_compile itself does not contain backslashes and begins
14565
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14566
 
   # The option is referenced via a variable to avoid confusing sed.
14567
 
   lt_compile=`echo "$ac_compile" | $SED \
14568
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14569
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14570
 
   -e 's:$: $lt_compiler_flag:'`
14571
 
   (eval echo "\"\$as_me:14571: $lt_compile\"" >&5)
14572
 
   (eval "$lt_compile" 2>conftest.err)
14573
 
   ac_status=$?
14574
 
   cat conftest.err >&5
14575
 
   echo "$as_me:14575: \$? = $ac_status" >&5
14576
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14577
 
     # The compiler can only warn and ignore the option if not recognized
14578
 
     # So say no if there are warnings other than the usual output.
14579
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14580
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14581
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14582
 
       lt_prog_compiler_pic_works_F77=yes
14583
 
     fi
14584
 
   fi
14585
 
   $rm conftest*
14586
 
 
14587
 
fi
14588
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14589
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14590
 
 
14591
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14592
 
    case $lt_prog_compiler_pic_F77 in
14593
 
     "" | " "*) ;;
14594
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14595
 
     esac
14596
 
else
14597
 
    lt_prog_compiler_pic_F77=
14598
 
     lt_prog_compiler_can_build_shared_F77=no
14599
 
fi
14600
 
 
14601
 
fi
14602
 
case $host_os in
14603
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14604
 
  *djgpp*)
14605
 
    lt_prog_compiler_pic_F77=
14606
 
    ;;
14607
 
  *)
14608
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14609
 
    ;;
14610
 
esac
14611
 
 
14612
 
#
14613
 
# Check to make sure the static flag actually works.
14614
 
#
14615
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14616
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14617
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14618
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14619
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14620
 
else
14621
 
  lt_prog_compiler_static_works_F77=no
14622
 
   save_LDFLAGS="$LDFLAGS"
14623
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14624
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
14625
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14626
 
     # The linker can only warn and ignore the option if not recognized
14627
 
     # So say no if there are warnings
14628
 
     if test -s conftest.err; then
14629
 
       # Append any errors to the config.log.
14630
 
       cat conftest.err 1>&5
14631
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14632
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14633
 
       if diff conftest.exp conftest.er2 >/dev/null; then
14634
 
         lt_prog_compiler_static_works_F77=yes
14635
 
       fi
14636
 
     else
14637
 
       lt_prog_compiler_static_works_F77=yes
14638
 
     fi
14639
 
   fi
14640
 
   $rm conftest*
14641
 
   LDFLAGS="$save_LDFLAGS"
14642
 
 
14643
 
fi
14644
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14645
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14646
 
 
14647
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14648
 
    :
14649
 
else
14650
 
    lt_prog_compiler_static_F77=
14651
 
fi
14652
 
 
14653
 
 
14654
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14655
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14656
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14657
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14658
 
else
14659
 
  lt_cv_prog_compiler_c_o_F77=no
14660
 
   $rm -r conftest 2>/dev/null
14661
 
   mkdir conftest
14662
 
   cd conftest
14663
 
   mkdir out
14664
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665
 
 
14666
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14667
 
   # Insert the option either (1) after the last *FLAGS variable, or
14668
 
   # (2) before a word containing "conftest.", or (3) at the end.
14669
 
   # Note that $ac_compile itself does not contain backslashes and begins
14670
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14671
 
   lt_compile=`echo "$ac_compile" | $SED \
14672
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14673
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14674
 
   -e 's:$: $lt_compiler_flag:'`
14675
 
   (eval echo "\"\$as_me:14675: $lt_compile\"" >&5)
14676
 
   (eval "$lt_compile" 2>out/conftest.err)
14677
 
   ac_status=$?
14678
 
   cat out/conftest.err >&5
14679
 
   echo "$as_me:14679: \$? = $ac_status" >&5
14680
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14681
 
   then
14682
 
     # The compiler can only warn and ignore the option if not recognized
14683
 
     # So say no if there are warnings
14684
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14685
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14686
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14687
 
       lt_cv_prog_compiler_c_o_F77=yes
14688
 
     fi
14689
 
   fi
14690
 
   chmod u+w . 2>&5
14691
 
   $rm conftest*
14692
 
   # SGI C++ compiler will create directory out/ii_files/ for
14693
 
   # template instantiation
14694
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14695
 
   $rm out/* && rmdir out
14696
 
   cd ..
14697
 
   rmdir conftest
14698
 
   $rm conftest*
14699
 
 
14700
 
fi
14701
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14702
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14703
 
 
14704
 
 
14705
 
hard_links="nottested"
14706
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14707
 
  # do not overwrite the value of need_locks provided by the user
14708
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14709
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14710
 
  hard_links=yes
14711
 
  $rm conftest*
14712
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14713
 
  touch conftest.a
14714
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14715
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14716
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
14717
 
echo "${ECHO_T}$hard_links" >&6; }
14718
 
  if test "$hard_links" = no; then
14719
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14720
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14721
 
    need_locks=warn
14722
 
  fi
14723
 
else
14724
 
  need_locks=no
14725
 
fi
14726
 
 
14727
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14728
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14729
 
 
14730
 
  runpath_var=
14731
 
  allow_undefined_flag_F77=
14732
 
  enable_shared_with_static_runtimes_F77=no
14733
 
  archive_cmds_F77=
14734
 
  archive_expsym_cmds_F77=
14735
 
  old_archive_From_new_cmds_F77=
14736
 
  old_archive_from_expsyms_cmds_F77=
14737
 
  export_dynamic_flag_spec_F77=
14738
 
  whole_archive_flag_spec_F77=
14739
 
  thread_safe_flag_spec_F77=
14740
 
  hardcode_libdir_flag_spec_F77=
14741
 
  hardcode_libdir_flag_spec_ld_F77=
14742
 
  hardcode_libdir_separator_F77=
14743
 
  hardcode_direct_F77=no
14744
 
  hardcode_minus_L_F77=no
14745
 
  hardcode_shlibpath_var_F77=unsupported
14746
 
  link_all_deplibs_F77=unknown
14747
 
  hardcode_automatic_F77=no
14748
 
  module_cmds_F77=
14749
 
  module_expsym_cmds_F77=
14750
 
  always_export_symbols_F77=no
14751
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14752
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14753
 
  # included in the symbol list
14754
 
  include_expsyms_F77=
14755
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14756
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14757
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14758
 
  # as well as any symbol that contains `d'.
14759
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14760
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14761
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14762
 
  # the symbol is explicitly referenced.  Since portable code cannot
14763
 
  # rely on this symbol name, it's probably fine to never include it in
14764
 
  # preloaded symbol tables.
14765
 
  extract_expsyms_cmds=
14766
 
  # Just being paranoid about ensuring that cc_basename is set.
14767
 
  for cc_temp in $compiler""; do
14768
 
  case $cc_temp in
14769
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14770
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14771
 
    \-*) ;;
14772
 
    *) break;;
14773
 
  esac
14774
 
done
14775
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14776
 
 
14777
 
  case $host_os in
14778
 
  cygwin* | mingw* | pw32*)
14779
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14780
 
    # When not using gcc, we currently assume that we are using
14781
 
    # Microsoft Visual C++.
14782
 
    if test "$GCC" != yes; then
14783
 
      with_gnu_ld=no
14784
 
    fi
14785
 
    ;;
14786
 
  interix*)
14787
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
14788
 
    with_gnu_ld=yes
14789
 
    ;;
14790
 
  openbsd*)
14791
 
    with_gnu_ld=no
14792
 
    ;;
14793
 
  esac
14794
 
 
14795
 
  ld_shlibs_F77=yes
14796
 
  if test "$with_gnu_ld" = yes; then
14797
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14798
 
    wlarc='${wl}'
14799
 
 
14800
 
    # Set some defaults for GNU ld with shared library support. These
14801
 
    # are reset later if shared libraries are not supported. Putting them
14802
 
    # here allows them to be overridden if necessary.
14803
 
    runpath_var=LD_RUN_PATH
14804
 
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14805
 
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14806
 
    # ancient GNU ld didn't support --whole-archive et. al.
14807
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14808
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14809
 
      else
14810
 
        whole_archive_flag_spec_F77=
14811
 
    fi
14812
 
    supports_anon_versioning=no
14813
 
    case `$LD -v 2>/dev/null` in
14814
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14815
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14816
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14817
 
      *\ 2.11.*) ;; # other 2.11 versions
14818
 
      *) supports_anon_versioning=yes ;;
14819
 
    esac
14820
 
 
14821
 
    # See if GNU ld supports shared libraries.
14822
 
    case $host_os in
14823
 
    aix3* | aix4* | aix5*)
14824
 
      # On AIX/PPC, the GNU linker is very broken
14825
 
      if test "$host_cpu" != ia64; then
14826
 
        ld_shlibs_F77=no
14827
 
        cat <<EOF 1>&2
14828
 
 
14829
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14830
 
*** to be unable to reliably create shared libraries on AIX.
14831
 
*** Therefore, libtool is disabling shared libraries support.  If you
14832
 
*** really care for shared libraries, you may want to modify your PATH
14833
 
*** so that a non-GNU linker is found, and then restart.
14834
 
 
14835
 
EOF
14836
 
      fi
14837
 
      ;;
14838
 
 
14839
 
    amigaos*)
14840
 
      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)'
14841
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14842
 
      hardcode_minus_L_F77=yes
14843
 
 
14844
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14845
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14846
 
      # to version 4, is to share data among multiple programs linked
14847
 
      # with the same dynamic library.  Since this doesn't match the
14848
 
      # behavior of shared libraries on other platforms, we can't use
14849
 
      # them.
14850
 
      ld_shlibs_F77=no
14851
 
      ;;
14852
 
 
14853
 
    beos*)
14854
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14855
 
        allow_undefined_flag_F77=unsupported
14856
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14857
 
        # support --undefined.  This deserves some investigation.  FIXME
14858
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14859
 
      else
14860
 
        ld_shlibs_F77=no
14861
 
      fi
14862
 
      ;;
14863
 
 
14864
 
    cygwin* | mingw* | pw32*)
14865
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14866
 
      # as there is no search path for DLLs.
14867
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14868
 
      allow_undefined_flag_F77=unsupported
14869
 
      always_export_symbols_F77=no
14870
 
      enable_shared_with_static_runtimes_F77=yes
14871
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14872
 
 
14873
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14874
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14875
 
        # If the export-symbols file already is a .def file (1st line
14876
 
        # is EXPORTS), use it as is; otherwise, prepend...
14877
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14878
 
          cp $export_symbols $output_objdir/$soname.def;
14879
 
        else
14880
 
          echo EXPORTS > $output_objdir/$soname.def;
14881
 
          cat $export_symbols >> $output_objdir/$soname.def;
14882
 
        fi~
14883
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14884
 
      else
14885
 
        ld_shlibs_F77=no
14886
 
      fi
14887
 
      ;;
14888
 
 
14889
 
    interix3*)
14890
 
      hardcode_direct_F77=no
14891
 
      hardcode_shlibpath_var_F77=no
14892
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14893
 
      export_dynamic_flag_spec_F77='${wl}-E'
14894
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14895
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
14896
 
      # default) and relocated if they conflict, which is a slow very memory
14897
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
14898
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14899
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14900
 
      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'
14901
 
      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'
14902
 
      ;;
14903
 
 
14904
 
    linux*)
14905
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14906
 
        tmp_addflag=
14907
 
        case $cc_basename,$host_cpu in
14908
 
        pgcc*)                          # Portland Group C compiler
14909
 
          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'
14910
 
          tmp_addflag=' $pic_flag'
14911
 
          ;;
14912
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
14913
 
          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'
14914
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
14915
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
14916
 
          tmp_addflag=' -i_dynamic' ;;
14917
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14918
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
14919
 
        ifc* | ifort*)                  # Intel Fortran compiler
14920
 
          tmp_addflag=' -nofor_main' ;;
14921
 
        esac
14922
 
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14923
 
 
14924
 
        if test $supports_anon_versioning = yes; then
14925
 
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14926
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14927
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
14928
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14929
 
        fi
14930
 
        link_all_deplibs_F77=no
14931
 
      else
14932
 
        ld_shlibs_F77=no
14933
 
      fi
14934
 
      ;;
14935
 
 
14936
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14937
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14938
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14939
 
        wlarc=
14940
 
      else
14941
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14942
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14943
 
      fi
14944
 
      ;;
14945
 
 
14946
 
    solaris*)
14947
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14948
 
        ld_shlibs_F77=no
14949
 
        cat <<EOF 1>&2
14950
 
 
14951
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14952
 
*** create shared libraries on Solaris systems.  Therefore, libtool
14953
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14954
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
14955
 
*** your PATH or compiler configuration so that the native linker is
14956
 
*** used, and then restart.
14957
 
 
14958
 
EOF
14959
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14960
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14961
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14962
 
      else
14963
 
        ld_shlibs_F77=no
14964
 
      fi
14965
 
      ;;
14966
 
 
14967
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14968
 
      case `$LD -v 2>&1` in
14969
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14970
 
        ld_shlibs_F77=no
14971
 
        cat <<_LT_EOF 1>&2
14972
 
 
14973
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14974
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
14975
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
14976
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14977
 
*** your PATH or compiler configuration so that the native linker is
14978
 
*** used, and then restart.
14979
 
 
14980
 
_LT_EOF
14981
 
        ;;
14982
 
        *)
14983
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14984
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14985
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14986
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14987
 
          else
14988
 
            ld_shlibs_F77=no
14989
 
          fi
14990
 
        ;;
14991
 
      esac
14992
 
      ;;
14993
 
 
14994
 
    sunos4*)
14995
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14996
 
      wlarc=
14997
 
      hardcode_direct_F77=yes
14998
 
      hardcode_shlibpath_var_F77=no
14999
 
      ;;
15000
 
 
15001
 
    *)
15002
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15003
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15004
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15005
 
      else
15006
 
        ld_shlibs_F77=no
15007
 
      fi
15008
 
      ;;
15009
 
    esac
15010
 
 
15011
 
    if test "$ld_shlibs_F77" = no; then
15012
 
      runpath_var=
15013
 
      hardcode_libdir_flag_spec_F77=
15014
 
      export_dynamic_flag_spec_F77=
15015
 
      whole_archive_flag_spec_F77=
15016
 
    fi
15017
 
  else
15018
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15019
 
    case $host_os in
15020
 
    aix3*)
15021
 
      allow_undefined_flag_F77=unsupported
15022
 
      always_export_symbols_F77=yes
15023
 
      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'
15024
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15025
 
      # are no directories specified by -L.
15026
 
      hardcode_minus_L_F77=yes
15027
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15028
 
        # Neither direct hardcoding nor static linking is supported with a
15029
 
        # broken collect2.
15030
 
        hardcode_direct_F77=unsupported
15031
 
      fi
15032
 
      ;;
15033
 
 
15034
 
    aix4* | aix5*)
15035
 
      if test "$host_cpu" = ia64; then
15036
 
        # On IA64, the linker does run time linking by default, so we don't
15037
 
        # have to do anything special.
15038
 
        aix_use_runtimelinking=no
15039
 
        exp_sym_flag='-Bexport'
15040
 
        no_entry_flag=""
15041
 
      else
15042
 
        # If we're using GNU nm, then we don't want the "-C" option.
15043
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15044
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15045
 
          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'
15046
 
        else
15047
 
          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'
15048
 
        fi
15049
 
        aix_use_runtimelinking=no
15050
 
 
15051
 
        # Test if we are trying to use run time linking or normal
15052
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15053
 
        # need to do runtime linking.
15054
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15055
 
          for ld_flag in $LDFLAGS; do
15056
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15057
 
            aix_use_runtimelinking=yes
15058
 
            break
15059
 
          fi
15060
 
          done
15061
 
          ;;
15062
 
        esac
15063
 
 
15064
 
        exp_sym_flag='-bexport'
15065
 
        no_entry_flag='-bnoentry'
15066
 
      fi
15067
 
 
15068
 
      # When large executables or shared objects are built, AIX ld can
15069
 
      # have problems creating the table of contents.  If linking a library
15070
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15071
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15072
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15073
 
 
15074
 
      archive_cmds_F77=''
15075
 
      hardcode_direct_F77=yes
15076
 
      hardcode_libdir_separator_F77=':'
15077
 
      link_all_deplibs_F77=yes
15078
 
 
15079
 
      if test "$GCC" = yes; then
15080
 
        case $host_os in aix4.[012]|aix4.[012].*)
15081
 
        # We only want to do this on AIX 4.2 and lower, the check
15082
 
        # below for broken collect2 doesn't work under 4.3+
15083
 
          collect2name=`${CC} -print-prog-name=collect2`
15084
 
          if test -f "$collect2name" && \
15085
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15086
 
          then
15087
 
          # We have reworked collect2
15088
 
          hardcode_direct_F77=yes
15089
 
          else
15090
 
          # We have old collect2
15091
 
          hardcode_direct_F77=unsupported
15092
 
          # It fails to find uninstalled libraries when the uninstalled
15093
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15094
 
          # to unsupported forces relinking
15095
 
          hardcode_minus_L_F77=yes
15096
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15097
 
          hardcode_libdir_separator_F77=
15098
 
          fi
15099
 
          ;;
15100
 
        esac
15101
 
        shared_flag='-shared'
15102
 
        if test "$aix_use_runtimelinking" = yes; then
15103
 
          shared_flag="$shared_flag "'${wl}-G'
15104
 
        fi
15105
 
      else
15106
 
        # not using gcc
15107
 
        if test "$host_cpu" = ia64; then
15108
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15109
 
        # chokes on -Wl,-G. The following line is correct:
15110
 
          shared_flag='-G'
15111
 
        else
15112
 
          if test "$aix_use_runtimelinking" = yes; then
15113
 
            shared_flag='${wl}-G'
15114
 
          else
15115
 
            shared_flag='${wl}-bM:SRE'
15116
 
          fi
15117
 
        fi
15118
 
      fi
15119
 
 
15120
 
      # It seems that -bexpall does not export symbols beginning with
15121
 
      # underscore (_), so it is better to generate a list of symbols to export.
15122
 
      always_export_symbols_F77=yes
15123
 
      if test "$aix_use_runtimelinking" = yes; then
15124
 
        # Warning - without using the other runtime loading flags (-brtl),
15125
 
        # -berok will link without error, but may produce a broken library.
15126
 
        allow_undefined_flag_F77='-berok'
15127
 
       # Determine the default libpath from the value encoded in an empty executable.
15128
 
       cat >conftest.$ac_ext <<_ACEOF
15129
 
      program main
15130
 
 
15131
 
      end
15132
 
_ACEOF
15133
 
rm -f conftest.$ac_objext conftest$ac_exeext
15134
 
if { (ac_try="$ac_link"
15135
 
case "(($ac_try" in
15136
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15137
 
  *) ac_try_echo=$ac_try;;
15138
 
esac
15139
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15140
 
  (eval "$ac_link") 2>conftest.er1
15141
 
  ac_status=$?
15142
 
  grep -v '^ *+' conftest.er1 >conftest.err
15143
 
  rm -f conftest.er1
15144
 
  cat conftest.err >&5
15145
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146
 
  (exit $ac_status); } && {
15147
 
         test -z "$ac_f77_werror_flag" ||
15148
 
         test ! -s conftest.err
15149
 
       } && test -s conftest$ac_exeext &&
15150
 
       $as_test_x conftest$ac_exeext; then
15151
 
 
15152
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15153
 
}'`
15154
 
# Check for a 64-bit object if we didn't find anything.
15155
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15156
 
}'`; fi
15157
 
else
15158
 
  echo "$as_me: failed program was:" >&5
15159
 
sed 's/^/| /' conftest.$ac_ext >&5
15160
 
 
15161
 
 
15162
 
fi
15163
 
 
15164
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165
 
      conftest$ac_exeext conftest.$ac_ext
15166
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15167
 
 
15168
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15169
 
        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"
15170
 
       else
15171
 
        if test "$host_cpu" = ia64; then
15172
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15173
 
          allow_undefined_flag_F77="-z nodefs"
15174
 
          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"
15175
 
        else
15176
 
         # Determine the default libpath from the value encoded in an empty executable.
15177
 
         cat >conftest.$ac_ext <<_ACEOF
15178
 
      program main
15179
 
 
15180
 
      end
15181
 
_ACEOF
15182
 
rm -f conftest.$ac_objext conftest$ac_exeext
15183
 
if { (ac_try="$ac_link"
15184
 
case "(($ac_try" in
15185
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186
 
  *) ac_try_echo=$ac_try;;
15187
 
esac
15188
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189
 
  (eval "$ac_link") 2>conftest.er1
15190
 
  ac_status=$?
15191
 
  grep -v '^ *+' conftest.er1 >conftest.err
15192
 
  rm -f conftest.er1
15193
 
  cat conftest.err >&5
15194
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15195
 
  (exit $ac_status); } && {
15196
 
         test -z "$ac_f77_werror_flag" ||
15197
 
         test ! -s conftest.err
15198
 
       } && test -s conftest$ac_exeext &&
15199
 
       $as_test_x conftest$ac_exeext; then
15200
 
 
15201
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15202
 
}'`
15203
 
# Check for a 64-bit object if we didn't find anything.
15204
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15205
 
}'`; fi
15206
 
else
15207
 
  echo "$as_me: failed program was:" >&5
15208
 
sed 's/^/| /' conftest.$ac_ext >&5
15209
 
 
15210
 
 
15211
 
fi
15212
 
 
15213
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15214
 
      conftest$ac_exeext conftest.$ac_ext
15215
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15216
 
 
15217
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15218
 
          # Warning - without using the other run time loading flags,
15219
 
          # -berok will link without error, but may produce a broken library.
15220
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15221
 
          allow_undefined_flag_F77=' ${wl}-berok'
15222
 
          # Exported symbols can be pulled into shared objects from archives
15223
 
          whole_archive_flag_spec_F77='$convenience'
15224
 
          archive_cmds_need_lc_F77=yes
15225
 
          # This is similar to how AIX traditionally builds its shared libraries.
15226
 
          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'
15227
 
        fi
15228
 
      fi
15229
 
      ;;
15230
 
 
15231
 
    amigaos*)
15232
 
      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)'
15233
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15234
 
      hardcode_minus_L_F77=yes
15235
 
      # see comment about different semantics on the GNU ld section
15236
 
      ld_shlibs_F77=no
15237
 
      ;;
15238
 
 
15239
 
    bsdi[45]*)
15240
 
      export_dynamic_flag_spec_F77=-rdynamic
15241
 
      ;;
15242
 
 
15243
 
    cygwin* | mingw* | pw32*)
15244
 
      # When not using gcc, we currently assume that we are using
15245
 
      # Microsoft Visual C++.
15246
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15247
 
      # no search path for DLLs.
15248
 
      hardcode_libdir_flag_spec_F77=' '
15249
 
      allow_undefined_flag_F77=unsupported
15250
 
      # Tell ltmain to make .lib files, not .a files.
15251
 
      libext=lib
15252
 
      # Tell ltmain to make .dll files, not .so files.
15253
 
      shrext_cmds=".dll"
15254
 
      # FIXME: Setting linknames here is a bad hack.
15255
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15256
 
      # The linker will automatically build a .lib file if we build a DLL.
15257
 
      old_archive_From_new_cmds_F77='true'
15258
 
      # FIXME: Should let the user specify the lib program.
15259
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15260
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15261
 
      enable_shared_with_static_runtimes_F77=yes
15262
 
      ;;
15263
 
 
15264
 
    darwin* | rhapsody*)
15265
 
      case $host_os in
15266
 
        rhapsody* | darwin1.[012])
15267
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15268
 
         ;;
15269
 
       *) # Darwin 1.3 on
15270
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15271
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15272
 
         else
15273
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15274
 
             10.[012])
15275
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15276
 
               ;;
15277
 
             10.*)
15278
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15279
 
               ;;
15280
 
           esac
15281
 
         fi
15282
 
         ;;
15283
 
      esac
15284
 
      archive_cmds_need_lc_F77=no
15285
 
      hardcode_direct_F77=no
15286
 
      hardcode_automatic_F77=yes
15287
 
      hardcode_shlibpath_var_F77=unsupported
15288
 
      whole_archive_flag_spec_F77=''
15289
 
      link_all_deplibs_F77=yes
15290
 
    if test "$GCC" = yes ; then
15291
 
        output_verbose_link_cmd='echo'
15292
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15293
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15294
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15295
 
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15296
 
      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}'
15297
 
    else
15298
 
      case $cc_basename in
15299
 
        xlc*)
15300
 
         output_verbose_link_cmd='echo'
15301
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15302
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15303
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15304
 
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15305
 
          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}'
15306
 
          ;;
15307
 
       *)
15308
 
         ld_shlibs_F77=no
15309
 
          ;;
15310
 
      esac
15311
 
    fi
15312
 
      ;;
15313
 
 
15314
 
    dgux*)
15315
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15316
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15317
 
      hardcode_shlibpath_var_F77=no
15318
 
      ;;
15319
 
 
15320
 
    freebsd1*)
15321
 
      ld_shlibs_F77=no
15322
 
      ;;
15323
 
 
15324
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15325
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15326
 
    # does not break anything, and helps significantly (at the cost of a little
15327
 
    # extra space).
15328
 
    freebsd2.2*)
15329
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15330
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15331
 
      hardcode_direct_F77=yes
15332
 
      hardcode_shlibpath_var_F77=no
15333
 
      ;;
15334
 
 
15335
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15336
 
    freebsd2*)
15337
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15338
 
      hardcode_direct_F77=yes
15339
 
      hardcode_minus_L_F77=yes
15340
 
      hardcode_shlibpath_var_F77=no
15341
 
      ;;
15342
 
 
15343
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15344
 
    freebsd* | dragonfly*)
15345
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15346
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15347
 
      hardcode_direct_F77=yes
15348
 
      hardcode_shlibpath_var_F77=no
15349
 
      ;;
15350
 
 
15351
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
15352
 
    kfreebsd*-gnu)
15353
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15354
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15355
 
      hardcode_direct_F77=yes
15356
 
      hardcode_shlibpath_var_F77=no
15357
 
      link_all_deplibs_F77=no
15358
 
      ;;
15359
 
 
15360
 
    hpux9*)
15361
 
      if test "$GCC" = yes; then
15362
 
        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'
15363
 
      else
15364
 
        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'
15365
 
      fi
15366
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15367
 
      hardcode_libdir_separator_F77=:
15368
 
      hardcode_direct_F77=yes
15369
 
 
15370
 
      # hardcode_minus_L: Not really in the search PATH,
15371
 
      # but as the default location of the library.
15372
 
      hardcode_minus_L_F77=yes
15373
 
      export_dynamic_flag_spec_F77='${wl}-E'
15374
 
      ;;
15375
 
 
15376
 
    hpux10*)
15377
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15378
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15379
 
      else
15380
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15381
 
      fi
15382
 
      if test "$with_gnu_ld" = no; then
15383
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15384
 
        hardcode_libdir_separator_F77=:
15385
 
 
15386
 
        hardcode_direct_F77=yes
15387
 
        export_dynamic_flag_spec_F77='${wl}-E'
15388
 
 
15389
 
        # hardcode_minus_L: Not really in the search PATH,
15390
 
        # but as the default location of the library.
15391
 
        hardcode_minus_L_F77=yes
15392
 
      fi
15393
 
      ;;
15394
 
 
15395
 
    hpux11*)
15396
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15397
 
        case $host_cpu in
15398
 
        hppa*64*)
15399
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15400
 
          ;;
15401
 
        ia64*)
15402
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15403
 
          ;;
15404
 
        *)
15405
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15406
 
          ;;
15407
 
        esac
15408
 
      else
15409
 
        case $host_cpu in
15410
 
        hppa*64*)
15411
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15412
 
          ;;
15413
 
        ia64*)
15414
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15415
 
          ;;
15416
 
        *)
15417
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15418
 
          ;;
15419
 
        esac
15420
 
      fi
15421
 
      if test "$with_gnu_ld" = no; then
15422
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15423
 
        hardcode_libdir_separator_F77=:
15424
 
 
15425
 
        case $host_cpu in
15426
 
        hppa*64*|ia64*)
15427
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15428
 
          hardcode_direct_F77=no
15429
 
          hardcode_shlibpath_var_F77=no
15430
 
          ;;
15431
 
        *)
15432
 
          hardcode_direct_F77=yes
15433
 
          export_dynamic_flag_spec_F77='${wl}-E'
15434
 
 
15435
 
          # hardcode_minus_L: Not really in the search PATH,
15436
 
          # but as the default location of the library.
15437
 
          hardcode_minus_L_F77=yes
15438
 
          ;;
15439
 
        esac
15440
 
      fi
15441
 
      ;;
15442
 
 
15443
 
    irix5* | irix6* | nonstopux*)
15444
 
      if test "$GCC" = yes; then
15445
 
        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'
15446
 
      else
15447
 
        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'
15448
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15449
 
      fi
15450
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15451
 
      hardcode_libdir_separator_F77=:
15452
 
      link_all_deplibs_F77=yes
15453
 
      ;;
15454
 
 
15455
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15456
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15457
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15458
 
      else
15459
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15460
 
      fi
15461
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15462
 
      hardcode_direct_F77=yes
15463
 
      hardcode_shlibpath_var_F77=no
15464
 
      ;;
15465
 
 
15466
 
    newsos6)
15467
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15468
 
      hardcode_direct_F77=yes
15469
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15470
 
      hardcode_libdir_separator_F77=:
15471
 
      hardcode_shlibpath_var_F77=no
15472
 
      ;;
15473
 
 
15474
 
    openbsd*)
15475
 
      hardcode_direct_F77=yes
15476
 
      hardcode_shlibpath_var_F77=no
15477
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15478
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15479
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15480
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15481
 
        export_dynamic_flag_spec_F77='${wl}-E'
15482
 
      else
15483
 
       case $host_os in
15484
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15485
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15486
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15487
 
           ;;
15488
 
         *)
15489
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15490
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15491
 
           ;;
15492
 
       esac
15493
 
      fi
15494
 
      ;;
15495
 
 
15496
 
    os2*)
15497
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15498
 
      hardcode_minus_L_F77=yes
15499
 
      allow_undefined_flag_F77=unsupported
15500
 
      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'
15501
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15502
 
      ;;
15503
 
 
15504
 
    osf3*)
15505
 
      if test "$GCC" = yes; then
15506
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15507
 
        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'
15508
 
      else
15509
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15510
 
        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'
15511
 
      fi
15512
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15513
 
      hardcode_libdir_separator_F77=:
15514
 
      ;;
15515
 
 
15516
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15517
 
      if test "$GCC" = yes; then
15518
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15519
 
        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'
15520
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15521
 
      else
15522
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15523
 
        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'
15524
 
        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~
15525
 
        $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'
15526
 
 
15527
 
        # Both c and cxx compiler support -rpath directly
15528
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15529
 
      fi
15530
 
      hardcode_libdir_separator_F77=:
15531
 
      ;;
15532
 
 
15533
 
    solaris*)
15534
 
      no_undefined_flag_F77=' -z text'
15535
 
      if test "$GCC" = yes; then
15536
 
        wlarc='${wl}'
15537
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15538
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15539
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15540
 
      else
15541
 
        wlarc=''
15542
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15543
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15544
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15545
 
      fi
15546
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15547
 
      hardcode_shlibpath_var_F77=no
15548
 
      case $host_os in
15549
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15550
 
      *)
15551
 
        # The compiler driver will combine linker options so we
15552
 
        # cannot just pass the convience library names through
15553
 
        # without $wl, iff we do not link with $LD.
15554
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
15555
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
15556
 
        case $wlarc in
15557
 
        '')
15558
 
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15559
 
        *)
15560
 
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15561
 
        esac ;;
15562
 
      esac
15563
 
      link_all_deplibs_F77=yes
15564
 
      ;;
15565
 
 
15566
 
    sunos4*)
15567
 
      if test "x$host_vendor" = xsequent; then
15568
 
        # Use $CC to link under sequent, because it throws in some extra .o
15569
 
        # files that make .init and .fini sections work.
15570
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15571
 
      else
15572
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15573
 
      fi
15574
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15575
 
      hardcode_direct_F77=yes
15576
 
      hardcode_minus_L_F77=yes
15577
 
      hardcode_shlibpath_var_F77=no
15578
 
      ;;
15579
 
 
15580
 
    sysv4)
15581
 
      case $host_vendor in
15582
 
        sni)
15583
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584
 
          hardcode_direct_F77=yes # is this really true???
15585
 
        ;;
15586
 
        siemens)
15587
 
          ## LD is ld it makes a PLAMLIB
15588
 
          ## CC just makes a GrossModule.
15589
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15590
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15591
 
          hardcode_direct_F77=no
15592
 
        ;;
15593
 
        motorola)
15594
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15596
 
        ;;
15597
 
      esac
15598
 
      runpath_var='LD_RUN_PATH'
15599
 
      hardcode_shlibpath_var_F77=no
15600
 
      ;;
15601
 
 
15602
 
    sysv4.3*)
15603
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15604
 
      hardcode_shlibpath_var_F77=no
15605
 
      export_dynamic_flag_spec_F77='-Bexport'
15606
 
      ;;
15607
 
 
15608
 
    sysv4*MP*)
15609
 
      if test -d /usr/nec; then
15610
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15611
 
        hardcode_shlibpath_var_F77=no
15612
 
        runpath_var=LD_RUN_PATH
15613
 
        hardcode_runpath_var=yes
15614
 
        ld_shlibs_F77=yes
15615
 
      fi
15616
 
      ;;
15617
 
 
15618
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15619
 
      no_undefined_flag_F77='${wl}-z,text'
15620
 
      archive_cmds_need_lc_F77=no
15621
 
      hardcode_shlibpath_var_F77=no
15622
 
      runpath_var='LD_RUN_PATH'
15623
 
 
15624
 
      if test "$GCC" = yes; then
15625
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15626
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15627
 
      else
15628
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15629
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15630
 
      fi
15631
 
      ;;
15632
 
 
15633
 
    sysv5* | sco3.2v5* | sco5v6*)
15634
 
      # Note: We can NOT use -z defs as we might desire, because we do not
15635
 
      # link with -lc, and that would cause any symbols used from libc to
15636
 
      # always be unresolved, which means just about no library would
15637
 
      # ever link correctly.  If we're not using GNU ld we use -z text
15638
 
      # though, which does catch some bad symbols but isn't as heavy-handed
15639
 
      # as -z defs.
15640
 
      no_undefined_flag_F77='${wl}-z,text'
15641
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
15642
 
      archive_cmds_need_lc_F77=no
15643
 
      hardcode_shlibpath_var_F77=no
15644
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15645
 
      hardcode_libdir_separator_F77=':'
15646
 
      link_all_deplibs_F77=yes
15647
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15648
 
      runpath_var='LD_RUN_PATH'
15649
 
 
15650
 
      if test "$GCC" = yes; then
15651
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15652
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15653
 
      else
15654
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15655
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15656
 
      fi
15657
 
      ;;
15658
 
 
15659
 
    uts4*)
15660
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15661
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15662
 
      hardcode_shlibpath_var_F77=no
15663
 
      ;;
15664
 
 
15665
 
    *)
15666
 
      ld_shlibs_F77=no
15667
 
      ;;
15668
 
    esac
15669
 
  fi
15670
 
 
15671
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15672
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15673
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15674
 
 
15675
 
#
15676
 
# Do we need to explicitly link libc?
15677
 
#
15678
 
case "x$archive_cmds_need_lc_F77" in
15679
 
x|xyes)
15680
 
  # Assume -lc should be added
15681
 
  archive_cmds_need_lc_F77=yes
15682
 
 
15683
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15684
 
    case $archive_cmds_F77 in
15685
 
    *'~'*)
15686
 
      # FIXME: we may have to deal with multi-command sequences.
15687
 
      ;;
15688
 
    '$CC '*)
15689
 
      # Test whether the compiler implicitly links with -lc since on some
15690
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15691
 
      # to ld, don't add -lc before -lgcc.
15692
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15693
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15694
 
      $rm conftest*
15695
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15696
 
 
15697
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15698
 
  (eval $ac_compile) 2>&5
15699
 
  ac_status=$?
15700
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701
 
  (exit $ac_status); } 2>conftest.err; then
15702
 
        soname=conftest
15703
 
        lib=conftest
15704
 
        libobjs=conftest.$ac_objext
15705
 
        deplibs=
15706
 
        wl=$lt_prog_compiler_wl_F77
15707
 
        pic_flag=$lt_prog_compiler_pic_F77
15708
 
        compiler_flags=-v
15709
 
        linker_flags=-v
15710
 
        verstring=
15711
 
        output_objdir=.
15712
 
        libname=conftest
15713
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15714
 
        allow_undefined_flag_F77=
15715
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15716
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15717
 
  ac_status=$?
15718
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719
 
  (exit $ac_status); }
15720
 
        then
15721
 
          archive_cmds_need_lc_F77=no
15722
 
        else
15723
 
          archive_cmds_need_lc_F77=yes
15724
 
        fi
15725
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15726
 
      else
15727
 
        cat conftest.err 1>&5
15728
 
      fi
15729
 
      $rm conftest*
15730
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15731
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15732
 
      ;;
15733
 
    esac
15734
 
  fi
15735
 
  ;;
15736
 
esac
15737
 
 
15738
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15739
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15740
 
library_names_spec=
15741
 
libname_spec='lib$name'
15742
 
soname_spec=
15743
 
shrext_cmds=".so"
15744
 
postinstall_cmds=
15745
 
postuninstall_cmds=
15746
 
finish_cmds=
15747
 
finish_eval=
15748
 
shlibpath_var=
15749
 
shlibpath_overrides_runpath=unknown
15750
 
version_type=none
15751
 
dynamic_linker="$host_os ld.so"
15752
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15753
 
if test "$GCC" = yes; then
15754
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15755
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15756
 
    # if the path contains ";" then we assume it to be the separator
15757
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15758
 
    # assumed that no part of a normal pathname contains ";" but that should
15759
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15760
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15761
 
  else
15762
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15763
 
  fi
15764
 
else
15765
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15766
 
fi
15767
 
need_lib_prefix=unknown
15768
 
hardcode_into_libs=no
15769
 
 
15770
 
# when you set need_version to no, make sure it does not cause -set_version
15771
 
# flags to be left without arguments
15772
 
need_version=unknown
15773
 
 
15774
 
case $host_os in
15775
 
aix3*)
15776
 
  version_type=linux
15777
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15778
 
  shlibpath_var=LIBPATH
15779
 
 
15780
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15781
 
  soname_spec='${libname}${release}${shared_ext}$major'
15782
 
  ;;
15783
 
 
15784
 
aix4* | aix5*)
15785
 
  version_type=linux
15786
 
  need_lib_prefix=no
15787
 
  need_version=no
15788
 
  hardcode_into_libs=yes
15789
 
  if test "$host_cpu" = ia64; then
15790
 
    # AIX 5 supports IA64
15791
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15792
 
    shlibpath_var=LD_LIBRARY_PATH
15793
 
  else
15794
 
    # With GCC up to 2.95.x, collect2 would create an import file
15795
 
    # for dependence libraries.  The import file would start with
15796
 
    # the line `#! .'.  This would cause the generated library to
15797
 
    # depend on `.', always an invalid library.  This was fixed in
15798
 
    # development snapshots of GCC prior to 3.0.
15799
 
    case $host_os in
15800
 
      aix4 | aix4.[01] | aix4.[01].*)
15801
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15802
 
           echo ' yes '
15803
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15804
 
        :
15805
 
      else
15806
 
        can_build_shared=no
15807
 
      fi
15808
 
      ;;
15809
 
    esac
15810
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15811
 
    # soname into executable. Probably we can add versioning support to
15812
 
    # collect2, so additional links can be useful in future.
15813
 
    if test "$aix_use_runtimelinking" = yes; then
15814
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15815
 
      # instead of lib<name>.a to let people know that these are not
15816
 
      # typical AIX shared libraries.
15817
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15818
 
    else
15819
 
      # We preserve .a as extension for shared libraries through AIX4.2
15820
 
      # and later when we are not doing run time linking.
15821
 
      library_names_spec='${libname}${release}.a $libname.a'
15822
 
      soname_spec='${libname}${release}${shared_ext}$major'
15823
 
    fi
15824
 
    shlibpath_var=LIBPATH
15825
 
  fi
15826
 
  ;;
15827
 
 
15828
 
amigaos*)
15829
 
  library_names_spec='$libname.ixlibrary $libname.a'
15830
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15831
 
  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'
15832
 
  ;;
15833
 
 
15834
 
beos*)
15835
 
  library_names_spec='${libname}${shared_ext}'
15836
 
  dynamic_linker="$host_os ld.so"
15837
 
  shlibpath_var=LIBRARY_PATH
15838
 
  ;;
15839
 
 
15840
 
bsdi[45]*)
15841
 
  version_type=linux
15842
 
  need_version=no
15843
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15844
 
  soname_spec='${libname}${release}${shared_ext}$major'
15845
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15846
 
  shlibpath_var=LD_LIBRARY_PATH
15847
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15848
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15849
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15850
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15851
 
  # libtool to hard-code these into programs
15852
 
  ;;
15853
 
 
15854
 
cygwin* | mingw* | pw32*)
15855
 
  version_type=windows
15856
 
  shrext_cmds=".dll"
15857
 
  need_version=no
15858
 
  need_lib_prefix=no
15859
 
 
15860
 
  case $GCC,$host_os in
15861
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15862
 
    library_names_spec='$libname.dll.a'
15863
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15864
 
    postinstall_cmds='base_file=`basename \${file}`~
15865
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15866
 
      dldir=$destdir/`dirname \$dlpath`~
15867
 
      test -d \$dldir || mkdir -p \$dldir~
15868
 
      $install_prog $dir/$dlname \$dldir/$dlname~
15869
 
      chmod a+x \$dldir/$dlname'
15870
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15871
 
      dlpath=$dir/\$dldll~
15872
 
       $rm \$dlpath'
15873
 
    shlibpath_overrides_runpath=yes
15874
 
 
15875
 
    case $host_os in
15876
 
    cygwin*)
15877
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15878
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15879
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15880
 
      ;;
15881
 
    mingw*)
15882
 
      # MinGW DLLs use traditional 'lib' prefix
15883
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15884
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15885
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15886
 
        # It is most probably a Windows format PATH printed by
15887
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15888
 
        # path with ; separators, and with drive letters. We can handle the
15889
 
        # drive letters (cygwin fileutils understands them), so leave them,
15890
 
        # especially as we might pass files found there to a mingw objdump,
15891
 
        # which wouldn't understand a cygwinified path. Ahh.
15892
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15893
 
      else
15894
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15895
 
      fi
15896
 
      ;;
15897
 
    pw32*)
15898
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15899
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15900
 
      ;;
15901
 
    esac
15902
 
    ;;
15903
 
 
15904
 
  *)
15905
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15906
 
    ;;
15907
 
  esac
15908
 
  dynamic_linker='Win32 ld.exe'
15909
 
  # FIXME: first we should search . and the directory the executable is in
15910
 
  shlibpath_var=PATH
15911
 
  ;;
15912
 
 
15913
 
darwin* | rhapsody*)
15914
 
  dynamic_linker="$host_os dyld"
15915
 
  version_type=darwin
15916
 
  need_lib_prefix=no
15917
 
  need_version=no
15918
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15919
 
  soname_spec='${libname}${release}${major}$shared_ext'
15920
 
  shlibpath_overrides_runpath=yes
15921
 
  shlibpath_var=DYLD_LIBRARY_PATH
15922
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15923
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15924
 
  if test "$GCC" = yes; then
15925
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15926
 
  else
15927
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15928
 
  fi
15929
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15930
 
  ;;
15931
 
 
15932
 
dgux*)
15933
 
  version_type=linux
15934
 
  need_lib_prefix=no
15935
 
  need_version=no
15936
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15937
 
  soname_spec='${libname}${release}${shared_ext}$major'
15938
 
  shlibpath_var=LD_LIBRARY_PATH
15939
 
  ;;
15940
 
 
15941
 
freebsd1*)
15942
 
  dynamic_linker=no
15943
 
  ;;
15944
 
 
15945
 
kfreebsd*-gnu)
15946
 
  version_type=linux
15947
 
  need_lib_prefix=no
15948
 
  need_version=no
15949
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15950
 
  soname_spec='${libname}${release}${shared_ext}$major'
15951
 
  shlibpath_var=LD_LIBRARY_PATH
15952
 
  shlibpath_overrides_runpath=no
15953
 
  hardcode_into_libs=yes
15954
 
  dynamic_linker='GNU ld.so'
15955
 
  ;;
15956
 
 
15957
 
freebsd* | dragonfly*)
15958
 
  # DragonFly does not have aout.  When/if they implement a new
15959
 
  # versioning mechanism, adjust this.
15960
 
  if test -x /usr/bin/objformat; then
15961
 
    objformat=`/usr/bin/objformat`
15962
 
  else
15963
 
    case $host_os in
15964
 
    freebsd[123]*) objformat=aout ;;
15965
 
    *) objformat=elf ;;
15966
 
    esac
15967
 
  fi
15968
 
  version_type=freebsd-$objformat
15969
 
  case $version_type in
15970
 
    freebsd-elf*)
15971
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15972
 
      need_version=no
15973
 
      need_lib_prefix=no
15974
 
      ;;
15975
 
    freebsd-*)
15976
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15977
 
      need_version=yes
15978
 
      ;;
15979
 
  esac
15980
 
  shlibpath_var=LD_LIBRARY_PATH
15981
 
  case $host_os in
15982
 
  freebsd2*)
15983
 
    shlibpath_overrides_runpath=yes
15984
 
    ;;
15985
 
  freebsd3.[01]* | freebsdelf3.[01]*)
15986
 
    shlibpath_overrides_runpath=yes
15987
 
    hardcode_into_libs=yes
15988
 
    ;;
15989
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15990
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15991
 
    shlibpath_overrides_runpath=no
15992
 
    hardcode_into_libs=yes
15993
 
    ;;
15994
 
  freebsd*) # from 4.6 on
15995
 
    shlibpath_overrides_runpath=yes
15996
 
    hardcode_into_libs=yes
15997
 
    ;;
15998
 
  esac
15999
 
  ;;
16000
 
 
16001
 
gnu*)
16002
 
  version_type=linux
16003
 
  need_lib_prefix=no
16004
 
  need_version=no
16005
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16006
 
  soname_spec='${libname}${release}${shared_ext}$major'
16007
 
  shlibpath_var=LD_LIBRARY_PATH
16008
 
  hardcode_into_libs=yes
16009
 
  ;;
16010
 
 
16011
 
hpux9* | hpux10* | hpux11*)
16012
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16013
 
  # link against other versions.
16014
 
  version_type=sunos
16015
 
  need_lib_prefix=no
16016
 
  need_version=no
16017
 
  case $host_cpu in
16018
 
  ia64*)
16019
 
    shrext_cmds='.so'
16020
 
    hardcode_into_libs=yes
16021
 
    dynamic_linker="$host_os dld.so"
16022
 
    shlibpath_var=LD_LIBRARY_PATH
16023
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16024
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025
 
    soname_spec='${libname}${release}${shared_ext}$major'
16026
 
    if test "X$HPUX_IA64_MODE" = X32; then
16027
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16028
 
    else
16029
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16030
 
    fi
16031
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16032
 
    ;;
16033
 
   hppa*64*)
16034
 
     shrext_cmds='.sl'
16035
 
     hardcode_into_libs=yes
16036
 
     dynamic_linker="$host_os dld.sl"
16037
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16038
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16039
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040
 
     soname_spec='${libname}${release}${shared_ext}$major'
16041
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16042
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16043
 
     ;;
16044
 
   *)
16045
 
    shrext_cmds='.sl'
16046
 
    dynamic_linker="$host_os dld.sl"
16047
 
    shlibpath_var=SHLIB_PATH
16048
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16049
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16050
 
    soname_spec='${libname}${release}${shared_ext}$major'
16051
 
    ;;
16052
 
  esac
16053
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16054
 
  postinstall_cmds='chmod 555 $lib'
16055
 
  ;;
16056
 
 
16057
 
interix3*)
16058
 
  version_type=linux
16059
 
  need_lib_prefix=no
16060
 
  need_version=no
16061
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16062
 
  soname_spec='${libname}${release}${shared_ext}$major'
16063
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16064
 
  shlibpath_var=LD_LIBRARY_PATH
16065
 
  shlibpath_overrides_runpath=no
16066
 
  hardcode_into_libs=yes
16067
 
  ;;
16068
 
 
16069
 
irix5* | irix6* | nonstopux*)
16070
 
  case $host_os in
16071
 
    nonstopux*) version_type=nonstopux ;;
16072
 
    *)
16073
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16074
 
                version_type=linux
16075
 
        else
16076
 
                version_type=irix
16077
 
        fi ;;
16078
 
  esac
16079
 
  need_lib_prefix=no
16080
 
  need_version=no
16081
 
  soname_spec='${libname}${release}${shared_ext}$major'
16082
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16083
 
  case $host_os in
16084
 
  irix5* | nonstopux*)
16085
 
    libsuff= shlibsuff=
16086
 
    ;;
16087
 
  *)
16088
 
    case $LD in # libtool.m4 will add one of these switches to LD
16089
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16090
 
      libsuff= shlibsuff= libmagic=32-bit;;
16091
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16092
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16093
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16094
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16095
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16096
 
    esac
16097
 
    ;;
16098
 
  esac
16099
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16100
 
  shlibpath_overrides_runpath=no
16101
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16102
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16103
 
  hardcode_into_libs=yes
16104
 
  ;;
16105
 
 
16106
 
# No shared lib support for Linux oldld, aout, or coff.
16107
 
linux*oldld* | linux*aout* | linux*coff*)
16108
 
  dynamic_linker=no
16109
 
  ;;
16110
 
 
16111
 
# This must be Linux ELF.
16112
 
linux*)
16113
 
  version_type=linux
16114
 
  need_lib_prefix=no
16115
 
  need_version=no
16116
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16117
 
  soname_spec='${libname}${release}${shared_ext}$major'
16118
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16119
 
  shlibpath_var=LD_LIBRARY_PATH
16120
 
  shlibpath_overrides_runpath=no
16121
 
  # This implies no fast_install, which is unacceptable.
16122
 
  # Some rework will be needed to allow for fast_install
16123
 
  # before this can be enabled.
16124
 
  hardcode_into_libs=yes
16125
 
 
16126
 
  # Append ld.so.conf contents to the search path
16127
 
  if test -f /etc/ld.so.conf; then
16128
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16129
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16130
 
  fi
16131
 
 
16132
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16133
 
  # powerpc, because MkLinux only supported shared libraries with the
16134
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16135
 
  # most powerpc-linux boxes support dynamic linking these days and
16136
 
  # people can always --disable-shared, the test was removed, and we
16137
 
  # assume the GNU/Linux dynamic linker is in use.
16138
 
  dynamic_linker='GNU/Linux ld.so'
16139
 
  ;;
16140
 
 
16141
 
netbsdelf*-gnu)
16142
 
  version_type=linux
16143
 
  need_lib_prefix=no
16144
 
  need_version=no
16145
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16146
 
  soname_spec='${libname}${release}${shared_ext}$major'
16147
 
  shlibpath_var=LD_LIBRARY_PATH
16148
 
  shlibpath_overrides_runpath=no
16149
 
  hardcode_into_libs=yes
16150
 
  dynamic_linker='NetBSD ld.elf_so'
16151
 
  ;;
16152
 
 
16153
 
knetbsd*-gnu)
16154
 
  version_type=linux
16155
 
  need_lib_prefix=no
16156
 
  need_version=no
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
 
  shlibpath_var=LD_LIBRARY_PATH
16160
 
  shlibpath_overrides_runpath=no
16161
 
  hardcode_into_libs=yes
16162
 
  dynamic_linker='GNU ld.so'
16163
 
  ;;
16164
 
 
16165
 
netbsd*)
16166
 
  version_type=sunos
16167
 
  need_lib_prefix=no
16168
 
  need_version=no
16169
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16170
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16171
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16172
 
    dynamic_linker='NetBSD (a.out) ld.so'
16173
 
  else
16174
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16175
 
    soname_spec='${libname}${release}${shared_ext}$major'
16176
 
    dynamic_linker='NetBSD ld.elf_so'
16177
 
  fi
16178
 
  shlibpath_var=LD_LIBRARY_PATH
16179
 
  shlibpath_overrides_runpath=yes
16180
 
  hardcode_into_libs=yes
16181
 
  ;;
16182
 
 
16183
 
newsos6)
16184
 
  version_type=linux
16185
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16186
 
  shlibpath_var=LD_LIBRARY_PATH
16187
 
  shlibpath_overrides_runpath=yes
16188
 
  ;;
16189
 
 
16190
 
nto-qnx*)
16191
 
  version_type=linux
16192
 
  need_lib_prefix=no
16193
 
  need_version=no
16194
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195
 
  soname_spec='${libname}${release}${shared_ext}$major'
16196
 
  shlibpath_var=LD_LIBRARY_PATH
16197
 
  shlibpath_overrides_runpath=yes
16198
 
  ;;
16199
 
 
16200
 
openbsd*)
16201
 
  version_type=sunos
16202
 
  sys_lib_dlsearch_path_spec="/usr/lib"
16203
 
  need_lib_prefix=no
16204
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16205
 
  case $host_os in
16206
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16207
 
    *)                         need_version=no  ;;
16208
 
  esac
16209
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16210
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16211
 
  shlibpath_var=LD_LIBRARY_PATH
16212
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16213
 
    case $host_os in
16214
 
      openbsd2.[89] | openbsd2.[89].*)
16215
 
        shlibpath_overrides_runpath=no
16216
 
        ;;
16217
 
      *)
16218
 
        shlibpath_overrides_runpath=yes
16219
 
        ;;
16220
 
      esac
16221
 
  else
16222
 
    shlibpath_overrides_runpath=yes
16223
 
  fi
16224
 
  ;;
16225
 
 
16226
 
os2*)
16227
 
  libname_spec='$name'
16228
 
  shrext_cmds=".dll"
16229
 
  need_lib_prefix=no
16230
 
  library_names_spec='$libname${shared_ext} $libname.a'
16231
 
  dynamic_linker='OS/2 ld.exe'
16232
 
  shlibpath_var=LIBPATH
16233
 
  ;;
16234
 
 
16235
 
osf3* | osf4* | osf5*)
16236
 
  version_type=osf
16237
 
  need_lib_prefix=no
16238
 
  need_version=no
16239
 
  soname_spec='${libname}${release}${shared_ext}$major'
16240
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
 
  shlibpath_var=LD_LIBRARY_PATH
16242
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16243
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16244
 
  ;;
16245
 
 
16246
 
solaris*)
16247
 
  version_type=linux
16248
 
  need_lib_prefix=no
16249
 
  need_version=no
16250
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251
 
  soname_spec='${libname}${release}${shared_ext}$major'
16252
 
  shlibpath_var=LD_LIBRARY_PATH
16253
 
  shlibpath_overrides_runpath=yes
16254
 
  hardcode_into_libs=yes
16255
 
  # ldd complains unless libraries are executable
16256
 
  postinstall_cmds='chmod +x $lib'
16257
 
  ;;
16258
 
 
16259
 
sunos4*)
16260
 
  version_type=sunos
16261
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16262
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16263
 
  shlibpath_var=LD_LIBRARY_PATH
16264
 
  shlibpath_overrides_runpath=yes
16265
 
  if test "$with_gnu_ld" = yes; then
16266
 
    need_lib_prefix=no
16267
 
  fi
16268
 
  need_version=yes
16269
 
  ;;
16270
 
 
16271
 
sysv4 | sysv4.3*)
16272
 
  version_type=linux
16273
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16274
 
  soname_spec='${libname}${release}${shared_ext}$major'
16275
 
  shlibpath_var=LD_LIBRARY_PATH
16276
 
  case $host_vendor in
16277
 
    sni)
16278
 
      shlibpath_overrides_runpath=no
16279
 
      need_lib_prefix=no
16280
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16281
 
      runpath_var=LD_RUN_PATH
16282
 
      ;;
16283
 
    siemens)
16284
 
      need_lib_prefix=no
16285
 
      ;;
16286
 
    motorola)
16287
 
      need_lib_prefix=no
16288
 
      need_version=no
16289
 
      shlibpath_overrides_runpath=no
16290
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16291
 
      ;;
16292
 
  esac
16293
 
  ;;
16294
 
 
16295
 
sysv4*MP*)
16296
 
  if test -d /usr/nec ;then
16297
 
    version_type=linux
16298
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16299
 
    soname_spec='$libname${shared_ext}.$major'
16300
 
    shlibpath_var=LD_LIBRARY_PATH
16301
 
  fi
16302
 
  ;;
16303
 
 
16304
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16305
 
  version_type=freebsd-elf
16306
 
  need_lib_prefix=no
16307
 
  need_version=no
16308
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16309
 
  soname_spec='${libname}${release}${shared_ext}$major'
16310
 
  shlibpath_var=LD_LIBRARY_PATH
16311
 
  hardcode_into_libs=yes
16312
 
  if test "$with_gnu_ld" = yes; then
16313
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16314
 
    shlibpath_overrides_runpath=no
16315
 
  else
16316
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16317
 
    shlibpath_overrides_runpath=yes
16318
 
    case $host_os in
16319
 
      sco3.2v5*)
16320
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16321
 
        ;;
16322
 
    esac
16323
 
  fi
16324
 
  sys_lib_dlsearch_path_spec='/usr/lib'
16325
 
  ;;
16326
 
 
16327
 
uts4*)
16328
 
  version_type=linux
16329
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16330
 
  soname_spec='${libname}${release}${shared_ext}$major'
16331
 
  shlibpath_var=LD_LIBRARY_PATH
16332
 
  ;;
16333
 
 
16334
 
*)
16335
 
  dynamic_linker=no
16336
 
  ;;
16337
 
esac
16338
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16339
 
echo "${ECHO_T}$dynamic_linker" >&6; }
16340
 
test "$dynamic_linker" = no && can_build_shared=no
16341
 
 
16342
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16343
 
if test "$GCC" = yes; then
16344
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16345
 
fi
16346
 
 
16347
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16348
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16349
 
hardcode_action_F77=
16350
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16351
 
   test -n "$runpath_var_F77" || \
16352
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16353
 
 
16354
 
  # We can hardcode non-existant directories.
16355
 
  if test "$hardcode_direct_F77" != no &&
16356
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16357
 
     # have to relink, otherwise we might link with an installed library
16358
 
     # when we should be linking with a yet-to-be-installed one
16359
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16360
 
     test "$hardcode_minus_L_F77" != no; then
16361
 
    # Linking always hardcodes the temporary library directory.
16362
 
    hardcode_action_F77=relink
16363
 
  else
16364
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16365
 
    hardcode_action_F77=immediate
16366
 
  fi
16367
 
else
16368
 
  # We cannot hardcode anything, or else we can only hardcode existing
16369
 
  # directories.
16370
 
  hardcode_action_F77=unsupported
16371
 
fi
16372
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16373
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
16374
 
 
16375
 
if test "$hardcode_action_F77" = relink; then
16376
 
  # Fast installation is not supported
16377
 
  enable_fast_install=no
16378
 
elif test "$shlibpath_overrides_runpath" = yes ||
16379
 
     test "$enable_shared" = no; then
16380
 
  # Fast installation is not necessary
16381
 
  enable_fast_install=needless
16382
 
fi
16383
 
 
16384
 
 
16385
 
# The else clause should only fire when bootstrapping the
16386
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16387
 
# with your package, and you will get complaints that there are
16388
 
# no rules to generate ltmain.sh.
16389
 
if test -f "$ltmain"; then
16390
 
  # See if we are running on zsh, and set the options which allow our commands through
16391
 
  # without removal of \ escapes.
16392
 
  if test -n "${ZSH_VERSION+set}" ; then
16393
 
    setopt NO_GLOB_SUBST
16394
 
  fi
16395
 
  # Now quote all the things that may contain metacharacters while being
16396
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16397
 
  # variables and quote the copies for generation of the libtool script.
16398
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16399
 
    SED SHELL STRIP \
16400
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16403
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404
 
    lt_cv_sys_global_symbol_to_c_name_address \
16405
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406
 
    old_postinstall_cmds old_postuninstall_cmds \
16407
 
    compiler_F77 \
16408
 
    CC_F77 \
16409
 
    LD_F77 \
16410
 
    lt_prog_compiler_wl_F77 \
16411
 
    lt_prog_compiler_pic_F77 \
16412
 
    lt_prog_compiler_static_F77 \
16413
 
    lt_prog_compiler_no_builtin_flag_F77 \
16414
 
    export_dynamic_flag_spec_F77 \
16415
 
    thread_safe_flag_spec_F77 \
16416
 
    whole_archive_flag_spec_F77 \
16417
 
    enable_shared_with_static_runtimes_F77 \
16418
 
    old_archive_cmds_F77 \
16419
 
    old_archive_from_new_cmds_F77 \
16420
 
    predep_objects_F77 \
16421
 
    postdep_objects_F77 \
16422
 
    predeps_F77 \
16423
 
    postdeps_F77 \
16424
 
    compiler_lib_search_path_F77 \
16425
 
    archive_cmds_F77 \
16426
 
    archive_expsym_cmds_F77 \
16427
 
    postinstall_cmds_F77 \
16428
 
    postuninstall_cmds_F77 \
16429
 
    old_archive_from_expsyms_cmds_F77 \
16430
 
    allow_undefined_flag_F77 \
16431
 
    no_undefined_flag_F77 \
16432
 
    export_symbols_cmds_F77 \
16433
 
    hardcode_libdir_flag_spec_F77 \
16434
 
    hardcode_libdir_flag_spec_ld_F77 \
16435
 
    hardcode_libdir_separator_F77 \
16436
 
    hardcode_automatic_F77 \
16437
 
    module_cmds_F77 \
16438
 
    module_expsym_cmds_F77 \
16439
 
    lt_cv_prog_compiler_c_o_F77 \
16440
 
    exclude_expsyms_F77 \
16441
 
    include_expsyms_F77; do
16442
 
 
16443
 
    case $var in
16444
 
    old_archive_cmds_F77 | \
16445
 
    old_archive_from_new_cmds_F77 | \
16446
 
    archive_cmds_F77 | \
16447
 
    archive_expsym_cmds_F77 | \
16448
 
    module_cmds_F77 | \
16449
 
    module_expsym_cmds_F77 | \
16450
 
    old_archive_from_expsyms_cmds_F77 | \
16451
 
    export_symbols_cmds_F77 | \
16452
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16453
 
    postinstall_cmds | postuninstall_cmds | \
16454
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16455
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16456
 
      # Double-quote double-evaled strings.
16457
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16458
 
      ;;
16459
 
    *)
16460
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16461
 
      ;;
16462
 
    esac
16463
 
  done
16464
 
 
16465
 
  case $lt_echo in
16466
 
  *'\$0 --fallback-echo"')
16467
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16468
 
    ;;
16469
 
  esac
16470
 
 
16471
 
cfgfile="$ofile"
16472
 
 
16473
 
  cat <<__EOF__ >> "$cfgfile"
16474
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16475
 
 
16476
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16477
 
 
16478
 
# Shell to use when invoking shell scripts.
16479
 
SHELL=$lt_SHELL
16480
 
 
16481
 
# Whether or not to build shared libraries.
16482
 
build_libtool_libs=$enable_shared
16483
 
 
16484
 
# Whether or not to build static libraries.
16485
 
build_old_libs=$enable_static
16486
 
 
16487
 
# Whether or not to add -lc for building shared libraries.
16488
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16489
 
 
16490
 
# Whether or not to disallow shared libs when runtime libs are static
16491
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16492
 
 
16493
 
# Whether or not to optimize for fast installation.
16494
 
fast_install=$enable_fast_install
16495
 
 
16496
 
# The host system.
16497
 
host_alias=$host_alias
16498
 
host=$host
16499
 
host_os=$host_os
16500
 
 
16501
 
# The build system.
16502
 
build_alias=$build_alias
16503
 
build=$build
16504
 
build_os=$build_os
16505
 
 
16506
 
# An echo program that does not interpret backslashes.
16507
 
echo=$lt_echo
16508
 
 
16509
 
# The archiver.
16510
 
AR=$lt_AR
16511
 
AR_FLAGS=$lt_AR_FLAGS
16512
 
 
16513
 
# A C compiler.
16514
 
LTCC=$lt_LTCC
16515
 
 
16516
 
# LTCC compiler flags.
16517
 
LTCFLAGS=$lt_LTCFLAGS
16518
 
 
16519
 
# A language-specific compiler.
16520
 
CC=$lt_compiler_F77
16521
 
 
16522
 
# Is the compiler the GNU C compiler?
16523
 
with_gcc=$GCC_F77
16524
 
 
16525
 
# An ERE matcher.
16526
 
EGREP=$lt_EGREP
16527
 
 
16528
 
# The linker used to build libraries.
16529
 
LD=$lt_LD_F77
16530
 
 
16531
 
# Whether we need hard or soft links.
16532
 
LN_S=$lt_LN_S
16533
 
 
16534
 
# A BSD-compatible nm program.
16535
 
NM=$lt_NM
16536
 
 
16537
 
# A symbol stripping program
16538
 
STRIP=$lt_STRIP
16539
 
 
16540
 
# Used to examine libraries when file_magic_cmd begins "file"
16541
 
MAGIC_CMD=$MAGIC_CMD
16542
 
 
16543
 
# Used on cygwin: DLL creation program.
16544
 
DLLTOOL="$DLLTOOL"
16545
 
 
16546
 
# Used on cygwin: object dumper.
16547
 
OBJDUMP="$OBJDUMP"
16548
 
 
16549
 
# Used on cygwin: assembler.
16550
 
AS="$AS"
16551
 
 
16552
 
# The name of the directory that contains temporary libtool files.
16553
 
objdir=$objdir
16554
 
 
16555
 
# How to create reloadable object files.
16556
 
reload_flag=$lt_reload_flag
16557
 
reload_cmds=$lt_reload_cmds
16558
 
 
16559
 
# How to pass a linker flag through the compiler.
16560
 
wl=$lt_lt_prog_compiler_wl_F77
16561
 
 
16562
 
# Object file suffix (normally "o").
16563
 
objext="$ac_objext"
16564
 
 
16565
 
# Old archive suffix (normally "a").
16566
 
libext="$libext"
16567
 
 
16568
 
# Shared library suffix (normally ".so").
16569
 
shrext_cmds='$shrext_cmds'
16570
 
 
16571
 
# Executable file suffix (normally "").
16572
 
exeext="$exeext"
16573
 
 
16574
 
# Additional compiler flags for building library objects.
16575
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16576
 
pic_mode=$pic_mode
16577
 
 
16578
 
# What is the maximum length of a command?
16579
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16580
 
 
16581
 
# Does compiler simultaneously support -c and -o options?
16582
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16583
 
 
16584
 
# Must we lock files when doing compilation?
16585
 
need_locks=$lt_need_locks
16586
 
 
16587
 
# Do we need the lib prefix for modules?
16588
 
need_lib_prefix=$need_lib_prefix
16589
 
 
16590
 
# Do we need a version for libraries?
16591
 
need_version=$need_version
16592
 
 
16593
 
# Whether dlopen is supported.
16594
 
dlopen_support=$enable_dlopen
16595
 
 
16596
 
# Whether dlopen of programs is supported.
16597
 
dlopen_self=$enable_dlopen_self
16598
 
 
16599
 
# Whether dlopen of statically linked programs is supported.
16600
 
dlopen_self_static=$enable_dlopen_self_static
16601
 
 
16602
 
# Compiler flag to prevent dynamic linking.
16603
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16604
 
 
16605
 
# Compiler flag to turn off builtin functions.
16606
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16607
 
 
16608
 
# Compiler flag to allow reflexive dlopens.
16609
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16610
 
 
16611
 
# Compiler flag to generate shared objects directly from archives.
16612
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16613
 
 
16614
 
# Compiler flag to generate thread-safe objects.
16615
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16616
 
 
16617
 
# Library versioning type.
16618
 
version_type=$version_type
16619
 
 
16620
 
# Format of library name prefix.
16621
 
libname_spec=$lt_libname_spec
16622
 
 
16623
 
# List of archive names.  First name is the real one, the rest are links.
16624
 
# The last name is the one that the linker finds with -lNAME.
16625
 
library_names_spec=$lt_library_names_spec
16626
 
 
16627
 
# The coded name of the library, if different from the real name.
16628
 
soname_spec=$lt_soname_spec
16629
 
 
16630
 
# Commands used to build and install an old-style archive.
16631
 
RANLIB=$lt_RANLIB
16632
 
old_archive_cmds=$lt_old_archive_cmds_F77
16633
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16634
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16635
 
 
16636
 
# Create an old-style archive from a shared archive.
16637
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16638
 
 
16639
 
# Create a temporary old-style archive to link instead of a shared archive.
16640
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16641
 
 
16642
 
# Commands used to build and install a shared archive.
16643
 
archive_cmds=$lt_archive_cmds_F77
16644
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16645
 
postinstall_cmds=$lt_postinstall_cmds
16646
 
postuninstall_cmds=$lt_postuninstall_cmds
16647
 
 
16648
 
# Commands used to build a loadable module (assumed same as above if empty)
16649
 
module_cmds=$lt_module_cmds_F77
16650
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16651
 
 
16652
 
# Commands to strip libraries.
16653
 
old_striplib=$lt_old_striplib
16654
 
striplib=$lt_striplib
16655
 
 
16656
 
# Dependencies to place before the objects being linked to create a
16657
 
# shared library.
16658
 
predep_objects=$lt_predep_objects_F77
16659
 
 
16660
 
# Dependencies to place after the objects being linked to create a
16661
 
# shared library.
16662
 
postdep_objects=$lt_postdep_objects_F77
16663
 
 
16664
 
# Dependencies to place before the objects being linked to create a
16665
 
# shared library.
16666
 
predeps=$lt_predeps_F77
16667
 
 
16668
 
# Dependencies to place after the objects being linked to create a
16669
 
# shared library.
16670
 
postdeps=$lt_postdeps_F77
16671
 
 
16672
 
# The library search path used internally by the compiler when linking
16673
 
# a shared library.
16674
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16675
 
 
16676
 
# Method to check whether dependent libraries are shared objects.
16677
 
deplibs_check_method=$lt_deplibs_check_method
16678
 
 
16679
 
# Command to use when deplibs_check_method == file_magic.
16680
 
file_magic_cmd=$lt_file_magic_cmd
16681
 
 
16682
 
# Flag that allows shared libraries with undefined symbols to be built.
16683
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16684
 
 
16685
 
# Flag that forces no undefined symbols.
16686
 
no_undefined_flag=$lt_no_undefined_flag_F77
16687
 
 
16688
 
# Commands used to finish a libtool library installation in a directory.
16689
 
finish_cmds=$lt_finish_cmds
16690
 
 
16691
 
# Same as above, but a single script fragment to be evaled but not shown.
16692
 
finish_eval=$lt_finish_eval
16693
 
 
16694
 
# Take the output of nm and produce a listing of raw symbols and C names.
16695
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16696
 
 
16697
 
# Transform the output of nm in a proper C declaration
16698
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16699
 
 
16700
 
# Transform the output of nm in a C name address pair
16701
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16702
 
 
16703
 
# This is the shared library runtime path variable.
16704
 
runpath_var=$runpath_var
16705
 
 
16706
 
# This is the shared library path variable.
16707
 
shlibpath_var=$shlibpath_var
16708
 
 
16709
 
# Is shlibpath searched before the hard-coded library search path?
16710
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16711
 
 
16712
 
# How to hardcode a shared library path into an executable.
16713
 
hardcode_action=$hardcode_action_F77
16714
 
 
16715
 
# Whether we should hardcode library paths into libraries.
16716
 
hardcode_into_libs=$hardcode_into_libs
16717
 
 
16718
 
# Flag to hardcode \$libdir into a binary during linking.
16719
 
# This must work even if \$libdir does not exist.
16720
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16721
 
 
16722
 
# If ld is used when linking, flag to hardcode \$libdir into
16723
 
# a binary during linking. This must work even if \$libdir does
16724
 
# not exist.
16725
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16726
 
 
16727
 
# Whether we need a single -rpath flag with a separated argument.
16728
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16729
 
 
16730
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16731
 
# resulting binary.
16732
 
hardcode_direct=$hardcode_direct_F77
16733
 
 
16734
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16735
 
# resulting binary.
16736
 
hardcode_minus_L=$hardcode_minus_L_F77
16737
 
 
16738
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16739
 
# the resulting binary.
16740
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16741
 
 
16742
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16743
 
# and all subsequent libraries and executables linked against it.
16744
 
hardcode_automatic=$hardcode_automatic_F77
16745
 
 
16746
 
# Variables whose values should be saved in libtool wrapper scripts and
16747
 
# restored at relink time.
16748
 
variables_saved_for_relink="$variables_saved_for_relink"
16749
 
 
16750
 
# Whether libtool must link a program against all its dependency libraries.
16751
 
link_all_deplibs=$link_all_deplibs_F77
16752
 
 
16753
 
# Compile-time system search path for libraries
16754
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16755
 
 
16756
 
# Run-time system search path for libraries
16757
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16758
 
 
16759
 
# Fix the shell variable \$srcfile for the compiler.
16760
 
fix_srcfile_path="$fix_srcfile_path_F77"
16761
 
 
16762
 
# Set to yes if exported symbols are required.
16763
 
always_export_symbols=$always_export_symbols_F77
16764
 
 
16765
 
# The commands to list exported symbols.
16766
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16767
 
 
16768
 
# The commands to extract the exported symbol list from a shared archive.
16769
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16770
 
 
16771
 
# Symbols that should not be listed in the preloaded symbols.
16772
 
exclude_expsyms=$lt_exclude_expsyms_F77
16773
 
 
16774
 
# Symbols that must always be exported.
16775
 
include_expsyms=$lt_include_expsyms_F77
16776
 
 
16777
 
# ### END LIBTOOL TAG CONFIG: $tagname
16778
 
 
16779
 
__EOF__
16780
 
 
16781
 
 
16782
 
else
16783
 
  # If there is no Makefile yet, we rely on a make rule to execute
16784
 
  # `config.status --recheck' to rerun these tests and create the
16785
 
  # libtool script then.
16786
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16787
 
  if test -f "$ltmain_in"; then
16788
 
    test -f Makefile && make "$ltmain"
16789
 
  fi
16790
 
fi
16791
 
 
16792
 
 
16793
 
ac_ext=cpp
16794
 
ac_cpp='$CXXCPP $CPPFLAGS'
16795
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16796
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16797
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16798
 
 
16799
 
CC="$lt_save_CC"
16800
 
 
16801
 
        else
16802
 
          tagname=""
16803
 
        fi
16804
 
        ;;
16805
 
 
16806
 
      GCJ)
16807
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16808
 
 
16809
 
 
16810
 
# Source file extension for Java test sources.
16811
 
ac_ext=java
16812
 
 
16813
 
# Object file extension for compiled Java test sources.
16814
 
objext=o
16815
 
objext_GCJ=$objext
16816
 
 
16817
 
# Code to be used in simple compile tests
16818
 
lt_simple_compile_test_code="class foo {}\n"
16819
 
 
16820
 
# Code to be used in simple link tests
16821
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16822
 
 
16823
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16824
 
 
16825
 
# If no C compiler was specified, use CC.
16826
 
LTCC=${LTCC-"$CC"}
16827
 
 
16828
 
# If no C compiler flags were specified, use CFLAGS.
16829
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16830
 
 
16831
 
# Allow CC to be a program name with arguments.
16832
 
compiler=$CC
16833
 
 
16834
 
 
16835
 
# save warnings/boilerplate of simple test code
16836
 
ac_outfile=conftest.$ac_objext
16837
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16838
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839
 
_lt_compiler_boilerplate=`cat conftest.err`
16840
 
$rm conftest*
16841
 
 
16842
 
ac_outfile=conftest.$ac_objext
16843
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
16844
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16845
 
_lt_linker_boilerplate=`cat conftest.err`
16846
 
$rm conftest*
16847
 
 
16848
 
 
16849
 
# Allow CC to be a program name with arguments.
16850
 
lt_save_CC="$CC"
16851
 
CC=${GCJ-"gcj"}
16852
 
compiler=$CC
16853
 
compiler_GCJ=$CC
16854
 
for cc_temp in $compiler""; do
16855
 
  case $cc_temp in
16856
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16857
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16858
 
    \-*) ;;
16859
 
    *) break;;
16860
 
  esac
16861
 
done
16862
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16863
 
 
16864
 
 
16865
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16866
 
archive_cmds_need_lc_GCJ=no
16867
 
 
16868
 
old_archive_cmds_GCJ=$old_archive_cmds
16869
 
 
16870
 
## CAVEAT EMPTOR:
16871
 
## There is no encapsulation within the following macros, do not change
16872
 
## the running order or otherwise move them around unless you know exactly
16873
 
## what you are doing...
16874
 
 
16875
 
lt_prog_compiler_no_builtin_flag_GCJ=
16876
 
 
16877
 
if test "$GCC" = yes; then
16878
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16879
 
 
16880
 
 
16881
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16882
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16883
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16884
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16885
 
else
16886
 
  lt_cv_prog_compiler_rtti_exceptions=no
16887
 
  ac_outfile=conftest.$ac_objext
16888
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16889
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16890
 
   # Insert the option either (1) after the last *FLAGS variable, or
16891
 
   # (2) before a word containing "conftest.", or (3) at the end.
16892
 
   # Note that $ac_compile itself does not contain backslashes and begins
16893
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16894
 
   # The option is referenced via a variable to avoid confusing sed.
16895
 
   lt_compile=`echo "$ac_compile" | $SED \
16896
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16897
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16898
 
   -e 's:$: $lt_compiler_flag:'`
16899
 
   (eval echo "\"\$as_me:16899: $lt_compile\"" >&5)
16900
 
   (eval "$lt_compile" 2>conftest.err)
16901
 
   ac_status=$?
16902
 
   cat conftest.err >&5
16903
 
   echo "$as_me:16903: \$? = $ac_status" >&5
16904
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16905
 
     # The compiler can only warn and ignore the option if not recognized
16906
 
     # So say no if there are warnings other than the usual output.
16907
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16908
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16909
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16910
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16911
 
     fi
16912
 
   fi
16913
 
   $rm conftest*
16914
 
 
16915
 
fi
16916
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16917
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16918
 
 
16919
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16920
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16921
 
else
16922
 
    :
16923
 
fi
16924
 
 
16925
 
fi
16926
 
 
16927
 
lt_prog_compiler_wl_GCJ=
16928
 
lt_prog_compiler_pic_GCJ=
16929
 
lt_prog_compiler_static_GCJ=
16930
 
 
16931
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16932
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16933
 
 
16934
 
  if test "$GCC" = yes; then
16935
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16936
 
    lt_prog_compiler_static_GCJ='-static'
16937
 
 
16938
 
    case $host_os in
16939
 
      aix*)
16940
 
      # All AIX code is PIC.
16941
 
      if test "$host_cpu" = ia64; then
16942
 
        # AIX 5 now supports IA64 processor
16943
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16944
 
      fi
16945
 
      ;;
16946
 
 
16947
 
    amigaos*)
16948
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16949
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16950
 
      # like `-m68040'.
16951
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16952
 
      ;;
16953
 
 
16954
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16955
 
      # PIC is the default for these OSes.
16956
 
      ;;
16957
 
 
16958
 
    mingw* | pw32* | os2*)
16959
 
      # This hack is so that the source file can tell whether it is being
16960
 
      # built for inclusion in a dll (and should export symbols for example).
16961
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16962
 
      ;;
16963
 
 
16964
 
    darwin* | rhapsody*)
16965
 
      # PIC is the default on this platform
16966
 
      # Common symbols not allowed in MH_DYLIB files
16967
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16968
 
      ;;
16969
 
 
16970
 
    interix3*)
16971
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16972
 
      # Instead, we relocate shared libraries at runtime.
16973
 
      ;;
16974
 
 
16975
 
    msdosdjgpp*)
16976
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16977
 
      # on systems that don't support them.
16978
 
      lt_prog_compiler_can_build_shared_GCJ=no
16979
 
      enable_shared=no
16980
 
      ;;
16981
 
 
16982
 
    sysv4*MP*)
16983
 
      if test -d /usr/nec; then
16984
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16985
 
      fi
16986
 
      ;;
16987
 
 
16988
 
    hpux*)
16989
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16990
 
      # not for PA HP-UX.
16991
 
      case $host_cpu in
16992
 
      hppa*64*|ia64*)
16993
 
        # +Z the default
16994
 
        ;;
16995
 
      *)
16996
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16997
 
        ;;
16998
 
      esac
16999
 
      ;;
17000
 
 
17001
 
    *)
17002
 
      lt_prog_compiler_pic_GCJ='-fPIC'
17003
 
      ;;
17004
 
    esac
17005
 
  else
17006
 
    # PORTME Check for flag to pass linker flags through the system compiler.
17007
 
    case $host_os in
17008
 
    aix*)
17009
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17010
 
      if test "$host_cpu" = ia64; then
17011
 
        # AIX 5 now supports IA64 processor
17012
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17013
 
      else
17014
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17015
 
      fi
17016
 
      ;;
17017
 
      darwin*)
17018
 
        # PIC is the default on this platform
17019
 
        # Common symbols not allowed in MH_DYLIB files
17020
 
       case $cc_basename in
17021
 
         xlc*)
17022
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
17023
 
         lt_prog_compiler_wl_GCJ='-Wl,'
17024
 
         ;;
17025
 
       esac
17026
 
       ;;
17027
 
 
17028
 
    mingw* | pw32* | os2*)
17029
 
      # This hack is so that the source file can tell whether it is being
17030
 
      # built for inclusion in a dll (and should export symbols for example).
17031
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17032
 
      ;;
17033
 
 
17034
 
    hpux9* | hpux10* | hpux11*)
17035
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17036
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17037
 
      # not for PA HP-UX.
17038
 
      case $host_cpu in
17039
 
      hppa*64*|ia64*)
17040
 
        # +Z the default
17041
 
        ;;
17042
 
      *)
17043
 
        lt_prog_compiler_pic_GCJ='+Z'
17044
 
        ;;
17045
 
      esac
17046
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17047
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17048
 
      ;;
17049
 
 
17050
 
    irix5* | irix6* | nonstopux*)
17051
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17052
 
      # PIC (with -KPIC) is the default.
17053
 
      lt_prog_compiler_static_GCJ='-non_shared'
17054
 
      ;;
17055
 
 
17056
 
    newsos6)
17057
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17058
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17059
 
      ;;
17060
 
 
17061
 
    linux*)
17062
 
      case $cc_basename in
17063
 
      icc* | ecc*)
17064
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17065
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17066
 
        lt_prog_compiler_static_GCJ='-static'
17067
 
        ;;
17068
 
      pgcc* | pgf77* | pgf90* | pgf95*)
17069
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17070
 
        # which looks to be a dead project)
17071
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17072
 
        lt_prog_compiler_pic_GCJ='-fpic'
17073
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17074
 
        ;;
17075
 
      ccc*)
17076
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17077
 
        # All Alpha code is PIC.
17078
 
        lt_prog_compiler_static_GCJ='-non_shared'
17079
 
        ;;
17080
 
      esac
17081
 
      ;;
17082
 
 
17083
 
    osf3* | osf4* | osf5*)
17084
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17085
 
      # All OSF/1 code is PIC.
17086
 
      lt_prog_compiler_static_GCJ='-non_shared'
17087
 
      ;;
17088
 
 
17089
 
    solaris*)
17090
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17091
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17092
 
      case $cc_basename in
17093
 
      f77* | f90* | f95*)
17094
 
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17095
 
      *)
17096
 
        lt_prog_compiler_wl_GCJ='-Wl,';;
17097
 
      esac
17098
 
      ;;
17099
 
 
17100
 
    sunos4*)
17101
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17102
 
      lt_prog_compiler_pic_GCJ='-PIC'
17103
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17104
 
      ;;
17105
 
 
17106
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
17107
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17108
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17109
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17110
 
      ;;
17111
 
 
17112
 
    sysv4*MP*)
17113
 
      if test -d /usr/nec ;then
17114
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17115
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17116
 
      fi
17117
 
      ;;
17118
 
 
17119
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17120
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17121
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17122
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17123
 
      ;;
17124
 
 
17125
 
    unicos*)
17126
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17127
 
      lt_prog_compiler_can_build_shared_GCJ=no
17128
 
      ;;
17129
 
 
17130
 
    uts4*)
17131
 
      lt_prog_compiler_pic_GCJ='-pic'
17132
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17133
 
      ;;
17134
 
 
17135
 
    *)
17136
 
      lt_prog_compiler_can_build_shared_GCJ=no
17137
 
      ;;
17138
 
    esac
17139
 
  fi
17140
 
 
17141
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17142
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17143
 
 
17144
 
#
17145
 
# Check to make sure the PIC flag actually works.
17146
 
#
17147
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17148
 
 
17149
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17150
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17151
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17153
 
else
17154
 
  lt_prog_compiler_pic_works_GCJ=no
17155
 
  ac_outfile=conftest.$ac_objext
17156
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17157
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17158
 
   # Insert the option either (1) after the last *FLAGS variable, or
17159
 
   # (2) before a word containing "conftest.", or (3) at the end.
17160
 
   # Note that $ac_compile itself does not contain backslashes and begins
17161
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17162
 
   # The option is referenced via a variable to avoid confusing sed.
17163
 
   lt_compile=`echo "$ac_compile" | $SED \
17164
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17165
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17166
 
   -e 's:$: $lt_compiler_flag:'`
17167
 
   (eval echo "\"\$as_me:17167: $lt_compile\"" >&5)
17168
 
   (eval "$lt_compile" 2>conftest.err)
17169
 
   ac_status=$?
17170
 
   cat conftest.err >&5
17171
 
   echo "$as_me:17171: \$? = $ac_status" >&5
17172
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17173
 
     # The compiler can only warn and ignore the option if not recognized
17174
 
     # So say no if there are warnings other than the usual output.
17175
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17176
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17177
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17178
 
       lt_prog_compiler_pic_works_GCJ=yes
17179
 
     fi
17180
 
   fi
17181
 
   $rm conftest*
17182
 
 
17183
 
fi
17184
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17185
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17186
 
 
17187
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17188
 
    case $lt_prog_compiler_pic_GCJ in
17189
 
     "" | " "*) ;;
17190
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17191
 
     esac
17192
 
else
17193
 
    lt_prog_compiler_pic_GCJ=
17194
 
     lt_prog_compiler_can_build_shared_GCJ=no
17195
 
fi
17196
 
 
17197
 
fi
17198
 
case $host_os in
17199
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17200
 
  *djgpp*)
17201
 
    lt_prog_compiler_pic_GCJ=
17202
 
    ;;
17203
 
  *)
17204
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17205
 
    ;;
17206
 
esac
17207
 
 
17208
 
#
17209
 
# Check to make sure the static flag actually works.
17210
 
#
17211
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17212
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17213
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17214
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17215
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17216
 
else
17217
 
  lt_prog_compiler_static_works_GCJ=no
17218
 
   save_LDFLAGS="$LDFLAGS"
17219
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17220
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
17221
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17222
 
     # The linker can only warn and ignore the option if not recognized
17223
 
     # So say no if there are warnings
17224
 
     if test -s conftest.err; then
17225
 
       # Append any errors to the config.log.
17226
 
       cat conftest.err 1>&5
17227
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17228
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17229
 
       if diff conftest.exp conftest.er2 >/dev/null; then
17230
 
         lt_prog_compiler_static_works_GCJ=yes
17231
 
       fi
17232
 
     else
17233
 
       lt_prog_compiler_static_works_GCJ=yes
17234
 
     fi
17235
 
   fi
17236
 
   $rm conftest*
17237
 
   LDFLAGS="$save_LDFLAGS"
17238
 
 
17239
 
fi
17240
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17241
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17242
 
 
17243
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17244
 
    :
17245
 
else
17246
 
    lt_prog_compiler_static_GCJ=
17247
 
fi
17248
 
 
17249
 
 
17250
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17251
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17252
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17253
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17254
 
else
17255
 
  lt_cv_prog_compiler_c_o_GCJ=no
17256
 
   $rm -r conftest 2>/dev/null
17257
 
   mkdir conftest
17258
 
   cd conftest
17259
 
   mkdir out
17260
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17261
 
 
17262
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17263
 
   # Insert the option either (1) after the last *FLAGS variable, or
17264
 
   # (2) before a word containing "conftest.", or (3) at the end.
17265
 
   # Note that $ac_compile itself does not contain backslashes and begins
17266
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17267
 
   lt_compile=`echo "$ac_compile" | $SED \
17268
 
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17269
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17270
 
   -e 's:$: $lt_compiler_flag:'`
17271
 
   (eval echo "\"\$as_me:17271: $lt_compile\"" >&5)
17272
 
   (eval "$lt_compile" 2>out/conftest.err)
17273
 
   ac_status=$?
17274
 
   cat out/conftest.err >&5
17275
 
   echo "$as_me:17275: \$? = $ac_status" >&5
17276
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17277
 
   then
17278
 
     # The compiler can only warn and ignore the option if not recognized
17279
 
     # So say no if there are warnings
17280
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17281
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17282
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17283
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17284
 
     fi
17285
 
   fi
17286
 
   chmod u+w . 2>&5
17287
 
   $rm conftest*
17288
 
   # SGI C++ compiler will create directory out/ii_files/ for
17289
 
   # template instantiation
17290
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17291
 
   $rm out/* && rmdir out
17292
 
   cd ..
17293
 
   rmdir conftest
17294
 
   $rm conftest*
17295
 
 
17296
 
fi
17297
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17298
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17299
 
 
17300
 
 
17301
 
hard_links="nottested"
17302
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17303
 
  # do not overwrite the value of need_locks provided by the user
17304
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17305
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17306
 
  hard_links=yes
17307
 
  $rm conftest*
17308
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17309
 
  touch conftest.a
17310
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17311
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17312
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
17313
 
echo "${ECHO_T}$hard_links" >&6; }
17314
 
  if test "$hard_links" = no; then
17315
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17316
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17317
 
    need_locks=warn
17318
 
  fi
17319
 
else
17320
 
  need_locks=no
17321
 
fi
17322
 
 
17323
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17324
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17325
 
 
17326
 
  runpath_var=
17327
 
  allow_undefined_flag_GCJ=
17328
 
  enable_shared_with_static_runtimes_GCJ=no
17329
 
  archive_cmds_GCJ=
17330
 
  archive_expsym_cmds_GCJ=
17331
 
  old_archive_From_new_cmds_GCJ=
17332
 
  old_archive_from_expsyms_cmds_GCJ=
17333
 
  export_dynamic_flag_spec_GCJ=
17334
 
  whole_archive_flag_spec_GCJ=
17335
 
  thread_safe_flag_spec_GCJ=
17336
 
  hardcode_libdir_flag_spec_GCJ=
17337
 
  hardcode_libdir_flag_spec_ld_GCJ=
17338
 
  hardcode_libdir_separator_GCJ=
17339
 
  hardcode_direct_GCJ=no
17340
 
  hardcode_minus_L_GCJ=no
17341
 
  hardcode_shlibpath_var_GCJ=unsupported
17342
 
  link_all_deplibs_GCJ=unknown
17343
 
  hardcode_automatic_GCJ=no
17344
 
  module_cmds_GCJ=
17345
 
  module_expsym_cmds_GCJ=
17346
 
  always_export_symbols_GCJ=no
17347
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17348
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17349
 
  # included in the symbol list
17350
 
  include_expsyms_GCJ=
17351
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17352
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17353
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17354
 
  # as well as any symbol that contains `d'.
17355
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17356
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17357
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17358
 
  # the symbol is explicitly referenced.  Since portable code cannot
17359
 
  # rely on this symbol name, it's probably fine to never include it in
17360
 
  # preloaded symbol tables.
17361
 
  extract_expsyms_cmds=
17362
 
  # Just being paranoid about ensuring that cc_basename is set.
17363
 
  for cc_temp in $compiler""; do
17364
 
  case $cc_temp in
17365
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17366
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17367
 
    \-*) ;;
17368
 
    *) break;;
17369
 
  esac
17370
 
done
17371
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17372
 
 
17373
 
  case $host_os in
17374
 
  cygwin* | mingw* | pw32*)
17375
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17376
 
    # When not using gcc, we currently assume that we are using
17377
 
    # Microsoft Visual C++.
17378
 
    if test "$GCC" != yes; then
17379
 
      with_gnu_ld=no
17380
 
    fi
17381
 
    ;;
17382
 
  interix*)
17383
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
17384
 
    with_gnu_ld=yes
17385
 
    ;;
17386
 
  openbsd*)
17387
 
    with_gnu_ld=no
17388
 
    ;;
17389
 
  esac
17390
 
 
17391
 
  ld_shlibs_GCJ=yes
17392
 
  if test "$with_gnu_ld" = yes; then
17393
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17394
 
    wlarc='${wl}'
17395
 
 
17396
 
    # Set some defaults for GNU ld with shared library support. These
17397
 
    # are reset later if shared libraries are not supported. Putting them
17398
 
    # here allows them to be overridden if necessary.
17399
 
    runpath_var=LD_RUN_PATH
17400
 
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17401
 
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17402
 
    # ancient GNU ld didn't support --whole-archive et. al.
17403
 
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17404
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17405
 
      else
17406
 
        whole_archive_flag_spec_GCJ=
17407
 
    fi
17408
 
    supports_anon_versioning=no
17409
 
    case `$LD -v 2>/dev/null` in
17410
 
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17411
 
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17412
 
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17413
 
      *\ 2.11.*) ;; # other 2.11 versions
17414
 
      *) supports_anon_versioning=yes ;;
17415
 
    esac
17416
 
 
17417
 
    # See if GNU ld supports shared libraries.
17418
 
    case $host_os in
17419
 
    aix3* | aix4* | aix5*)
17420
 
      # On AIX/PPC, the GNU linker is very broken
17421
 
      if test "$host_cpu" != ia64; then
17422
 
        ld_shlibs_GCJ=no
17423
 
        cat <<EOF 1>&2
17424
 
 
17425
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17426
 
*** to be unable to reliably create shared libraries on AIX.
17427
 
*** Therefore, libtool is disabling shared libraries support.  If you
17428
 
*** really care for shared libraries, you may want to modify your PATH
17429
 
*** so that a non-GNU linker is found, and then restart.
17430
 
 
17431
 
EOF
17432
 
      fi
17433
 
      ;;
17434
 
 
17435
 
    amigaos*)
17436
 
      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)'
17437
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17438
 
      hardcode_minus_L_GCJ=yes
17439
 
 
17440
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17441
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17442
 
      # to version 4, is to share data among multiple programs linked
17443
 
      # with the same dynamic library.  Since this doesn't match the
17444
 
      # behavior of shared libraries on other platforms, we can't use
17445
 
      # them.
17446
 
      ld_shlibs_GCJ=no
17447
 
      ;;
17448
 
 
17449
 
    beos*)
17450
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17451
 
        allow_undefined_flag_GCJ=unsupported
17452
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17453
 
        # support --undefined.  This deserves some investigation.  FIXME
17454
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17455
 
      else
17456
 
        ld_shlibs_GCJ=no
17457
 
      fi
17458
 
      ;;
17459
 
 
17460
 
    cygwin* | mingw* | pw32*)
17461
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17462
 
      # as there is no search path for DLLs.
17463
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17464
 
      allow_undefined_flag_GCJ=unsupported
17465
 
      always_export_symbols_GCJ=no
17466
 
      enable_shared_with_static_runtimes_GCJ=yes
17467
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17468
 
 
17469
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17470
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17471
 
        # If the export-symbols file already is a .def file (1st line
17472
 
        # is EXPORTS), use it as is; otherwise, prepend...
17473
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17474
 
          cp $export_symbols $output_objdir/$soname.def;
17475
 
        else
17476
 
          echo EXPORTS > $output_objdir/$soname.def;
17477
 
          cat $export_symbols >> $output_objdir/$soname.def;
17478
 
        fi~
17479
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17480
 
      else
17481
 
        ld_shlibs_GCJ=no
17482
 
      fi
17483
 
      ;;
17484
 
 
17485
 
    interix3*)
17486
 
      hardcode_direct_GCJ=no
17487
 
      hardcode_shlibpath_var_GCJ=no
17488
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17489
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17490
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17491
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
17492
 
      # default) and relocated if they conflict, which is a slow very memory
17493
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
17494
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17495
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17496
 
      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'
17497
 
      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'
17498
 
      ;;
17499
 
 
17500
 
    linux*)
17501
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17502
 
        tmp_addflag=
17503
 
        case $cc_basename,$host_cpu in
17504
 
        pgcc*)                          # Portland Group C compiler
17505
 
          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'
17506
 
          tmp_addflag=' $pic_flag'
17507
 
          ;;
17508
 
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17509
 
          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'
17510
 
          tmp_addflag=' $pic_flag -Mnomain' ;;
17511
 
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17512
 
          tmp_addflag=' -i_dynamic' ;;
17513
 
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17514
 
          tmp_addflag=' -i_dynamic -nofor_main' ;;
17515
 
        ifc* | ifort*)                  # Intel Fortran compiler
17516
 
          tmp_addflag=' -nofor_main' ;;
17517
 
        esac
17518
 
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17519
 
 
17520
 
        if test $supports_anon_versioning = yes; then
17521
 
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17522
 
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17523
 
  $echo "local: *; };" >> $output_objdir/$libname.ver~
17524
 
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17525
 
        fi
17526
 
        link_all_deplibs_GCJ=no
17527
 
      else
17528
 
        ld_shlibs_GCJ=no
17529
 
      fi
17530
 
      ;;
17531
 
 
17532
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17533
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17534
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17535
 
        wlarc=
17536
 
      else
17537
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17538
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17539
 
      fi
17540
 
      ;;
17541
 
 
17542
 
    solaris*)
17543
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17544
 
        ld_shlibs_GCJ=no
17545
 
        cat <<EOF 1>&2
17546
 
 
17547
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17548
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17549
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17550
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17551
 
*** your PATH or compiler configuration so that the native linker is
17552
 
*** used, and then restart.
17553
 
 
17554
 
EOF
17555
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17556
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17557
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17558
 
      else
17559
 
        ld_shlibs_GCJ=no
17560
 
      fi
17561
 
      ;;
17562
 
 
17563
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17564
 
      case `$LD -v 2>&1` in
17565
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17566
 
        ld_shlibs_GCJ=no
17567
 
        cat <<_LT_EOF 1>&2
17568
 
 
17569
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17570
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
17571
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17572
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17573
 
*** your PATH or compiler configuration so that the native linker is
17574
 
*** used, and then restart.
17575
 
 
17576
 
_LT_EOF
17577
 
        ;;
17578
 
        *)
17579
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17581
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17582
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17583
 
          else
17584
 
            ld_shlibs_GCJ=no
17585
 
          fi
17586
 
        ;;
17587
 
      esac
17588
 
      ;;
17589
 
 
17590
 
    sunos4*)
17591
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17592
 
      wlarc=
17593
 
      hardcode_direct_GCJ=yes
17594
 
      hardcode_shlibpath_var_GCJ=no
17595
 
      ;;
17596
 
 
17597
 
    *)
17598
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17599
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17600
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17601
 
      else
17602
 
        ld_shlibs_GCJ=no
17603
 
      fi
17604
 
      ;;
17605
 
    esac
17606
 
 
17607
 
    if test "$ld_shlibs_GCJ" = no; then
17608
 
      runpath_var=
17609
 
      hardcode_libdir_flag_spec_GCJ=
17610
 
      export_dynamic_flag_spec_GCJ=
17611
 
      whole_archive_flag_spec_GCJ=
17612
 
    fi
17613
 
  else
17614
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17615
 
    case $host_os in
17616
 
    aix3*)
17617
 
      allow_undefined_flag_GCJ=unsupported
17618
 
      always_export_symbols_GCJ=yes
17619
 
      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'
17620
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17621
 
      # are no directories specified by -L.
17622
 
      hardcode_minus_L_GCJ=yes
17623
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17624
 
        # Neither direct hardcoding nor static linking is supported with a
17625
 
        # broken collect2.
17626
 
        hardcode_direct_GCJ=unsupported
17627
 
      fi
17628
 
      ;;
17629
 
 
17630
 
    aix4* | aix5*)
17631
 
      if test "$host_cpu" = ia64; then
17632
 
        # On IA64, the linker does run time linking by default, so we don't
17633
 
        # have to do anything special.
17634
 
        aix_use_runtimelinking=no
17635
 
        exp_sym_flag='-Bexport'
17636
 
        no_entry_flag=""
17637
 
      else
17638
 
        # If we're using GNU nm, then we don't want the "-C" option.
17639
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17640
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17641
 
          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'
17642
 
        else
17643
 
          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'
17644
 
        fi
17645
 
        aix_use_runtimelinking=no
17646
 
 
17647
 
        # Test if we are trying to use run time linking or normal
17648
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17649
 
        # need to do runtime linking.
17650
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17651
 
          for ld_flag in $LDFLAGS; do
17652
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17653
 
            aix_use_runtimelinking=yes
17654
 
            break
17655
 
          fi
17656
 
          done
17657
 
          ;;
17658
 
        esac
17659
 
 
17660
 
        exp_sym_flag='-bexport'
17661
 
        no_entry_flag='-bnoentry'
17662
 
      fi
17663
 
 
17664
 
      # When large executables or shared objects are built, AIX ld can
17665
 
      # have problems creating the table of contents.  If linking a library
17666
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17667
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17668
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17669
 
 
17670
 
      archive_cmds_GCJ=''
17671
 
      hardcode_direct_GCJ=yes
17672
 
      hardcode_libdir_separator_GCJ=':'
17673
 
      link_all_deplibs_GCJ=yes
17674
 
 
17675
 
      if test "$GCC" = yes; then
17676
 
        case $host_os in aix4.[012]|aix4.[012].*)
17677
 
        # We only want to do this on AIX 4.2 and lower, the check
17678
 
        # below for broken collect2 doesn't work under 4.3+
17679
 
          collect2name=`${CC} -print-prog-name=collect2`
17680
 
          if test -f "$collect2name" && \
17681
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17682
 
          then
17683
 
          # We have reworked collect2
17684
 
          hardcode_direct_GCJ=yes
17685
 
          else
17686
 
          # We have old collect2
17687
 
          hardcode_direct_GCJ=unsupported
17688
 
          # It fails to find uninstalled libraries when the uninstalled
17689
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17690
 
          # to unsupported forces relinking
17691
 
          hardcode_minus_L_GCJ=yes
17692
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17693
 
          hardcode_libdir_separator_GCJ=
17694
 
          fi
17695
 
          ;;
17696
 
        esac
17697
 
        shared_flag='-shared'
17698
 
        if test "$aix_use_runtimelinking" = yes; then
17699
 
          shared_flag="$shared_flag "'${wl}-G'
17700
 
        fi
17701
 
      else
17702
 
        # not using gcc
17703
 
        if test "$host_cpu" = ia64; then
17704
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17705
 
        # chokes on -Wl,-G. The following line is correct:
17706
 
          shared_flag='-G'
17707
 
        else
17708
 
          if test "$aix_use_runtimelinking" = yes; then
17709
 
            shared_flag='${wl}-G'
17710
 
          else
17711
 
            shared_flag='${wl}-bM:SRE'
17712
 
          fi
17713
 
        fi
17714
 
      fi
17715
 
 
17716
 
      # It seems that -bexpall does not export symbols beginning with
17717
 
      # underscore (_), so it is better to generate a list of symbols to export.
17718
 
      always_export_symbols_GCJ=yes
17719
 
      if test "$aix_use_runtimelinking" = yes; then
17720
 
        # Warning - without using the other runtime loading flags (-brtl),
17721
 
        # -berok will link without error, but may produce a broken library.
17722
 
        allow_undefined_flag_GCJ='-berok'
17723
 
       # Determine the default libpath from the value encoded in an empty executable.
17724
 
       cat >conftest.$ac_ext <<_ACEOF
17725
 
/* confdefs.h.  */
17726
 
_ACEOF
17727
 
cat confdefs.h >>conftest.$ac_ext
17728
 
cat >>conftest.$ac_ext <<_ACEOF
17729
 
/* end confdefs.h.  */
17730
 
 
17731
 
int
17732
 
main ()
17733
 
{
17734
 
 
17735
 
  ;
17736
 
  return 0;
17737
 
}
17738
 
_ACEOF
17739
 
rm -f conftest.$ac_objext conftest$ac_exeext
17740
 
if { (ac_try="$ac_link"
17741
 
case "(($ac_try" in
17742
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743
 
  *) ac_try_echo=$ac_try;;
17744
 
esac
17745
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17746
 
  (eval "$ac_link") 2>conftest.er1
17747
 
  ac_status=$?
17748
 
  grep -v '^ *+' conftest.er1 >conftest.err
17749
 
  rm -f conftest.er1
17750
 
  cat conftest.err >&5
17751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752
 
  (exit $ac_status); } && {
17753
 
         test -z "$ac_cxx_werror_flag" ||
17754
 
         test ! -s conftest.err
17755
 
       } && test -s conftest$ac_exeext &&
17756
 
       $as_test_x conftest$ac_exeext; then
17757
 
 
17758
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17759
 
}'`
17760
 
# Check for a 64-bit object if we didn't find anything.
17761
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17762
 
}'`; fi
17763
 
else
17764
 
  echo "$as_me: failed program was:" >&5
17765
 
sed 's/^/| /' conftest.$ac_ext >&5
17766
 
 
17767
 
 
17768
 
fi
17769
 
 
17770
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17771
 
      conftest$ac_exeext conftest.$ac_ext
17772
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17773
 
 
17774
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17775
 
        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"
17776
 
       else
17777
 
        if test "$host_cpu" = ia64; then
17778
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17779
 
          allow_undefined_flag_GCJ="-z nodefs"
17780
 
          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"
17781
 
        else
17782
 
         # Determine the default libpath from the value encoded in an empty executable.
17783
 
         cat >conftest.$ac_ext <<_ACEOF
17784
 
/* confdefs.h.  */
17785
 
_ACEOF
17786
 
cat confdefs.h >>conftest.$ac_ext
17787
 
cat >>conftest.$ac_ext <<_ACEOF
17788
 
/* end confdefs.h.  */
17789
 
 
17790
 
int
17791
 
main ()
17792
 
{
17793
 
 
17794
 
  ;
17795
 
  return 0;
17796
 
}
17797
 
_ACEOF
17798
 
rm -f conftest.$ac_objext conftest$ac_exeext
17799
 
if { (ac_try="$ac_link"
17800
 
case "(($ac_try" in
17801
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17802
 
  *) ac_try_echo=$ac_try;;
17803
 
esac
17804
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17805
 
  (eval "$ac_link") 2>conftest.er1
17806
 
  ac_status=$?
17807
 
  grep -v '^ *+' conftest.er1 >conftest.err
17808
 
  rm -f conftest.er1
17809
 
  cat conftest.err >&5
17810
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811
 
  (exit $ac_status); } && {
17812
 
         test -z "$ac_cxx_werror_flag" ||
17813
 
         test ! -s conftest.err
17814
 
       } && test -s conftest$ac_exeext &&
17815
 
       $as_test_x conftest$ac_exeext; then
17816
 
 
17817
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17818
 
}'`
17819
 
# Check for a 64-bit object if we didn't find anything.
17820
 
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17821
 
}'`; fi
17822
 
else
17823
 
  echo "$as_me: failed program was:" >&5
17824
 
sed 's/^/| /' conftest.$ac_ext >&5
17825
 
 
17826
 
 
17827
 
fi
17828
 
 
17829
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17830
 
      conftest$ac_exeext conftest.$ac_ext
17831
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17832
 
 
17833
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17834
 
          # Warning - without using the other run time loading flags,
17835
 
          # -berok will link without error, but may produce a broken library.
17836
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17837
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17838
 
          # Exported symbols can be pulled into shared objects from archives
17839
 
          whole_archive_flag_spec_GCJ='$convenience'
17840
 
          archive_cmds_need_lc_GCJ=yes
17841
 
          # This is similar to how AIX traditionally builds its shared libraries.
17842
 
          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'
17843
 
        fi
17844
 
      fi
17845
 
      ;;
17846
 
 
17847
 
    amigaos*)
17848
 
      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)'
17849
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17850
 
      hardcode_minus_L_GCJ=yes
17851
 
      # see comment about different semantics on the GNU ld section
17852
 
      ld_shlibs_GCJ=no
17853
 
      ;;
17854
 
 
17855
 
    bsdi[45]*)
17856
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17857
 
      ;;
17858
 
 
17859
 
    cygwin* | mingw* | pw32*)
17860
 
      # When not using gcc, we currently assume that we are using
17861
 
      # Microsoft Visual C++.
17862
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17863
 
      # no search path for DLLs.
17864
 
      hardcode_libdir_flag_spec_GCJ=' '
17865
 
      allow_undefined_flag_GCJ=unsupported
17866
 
      # Tell ltmain to make .lib files, not .a files.
17867
 
      libext=lib
17868
 
      # Tell ltmain to make .dll files, not .so files.
17869
 
      shrext_cmds=".dll"
17870
 
      # FIXME: Setting linknames here is a bad hack.
17871
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17872
 
      # The linker will automatically build a .lib file if we build a DLL.
17873
 
      old_archive_From_new_cmds_GCJ='true'
17874
 
      # FIXME: Should let the user specify the lib program.
17875
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17876
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17877
 
      enable_shared_with_static_runtimes_GCJ=yes
17878
 
      ;;
17879
 
 
17880
 
    darwin* | rhapsody*)
17881
 
      case $host_os in
17882
 
        rhapsody* | darwin1.[012])
17883
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17884
 
         ;;
17885
 
       *) # Darwin 1.3 on
17886
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17887
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17888
 
         else
17889
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17890
 
             10.[012])
17891
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17892
 
               ;;
17893
 
             10.*)
17894
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17895
 
               ;;
17896
 
           esac
17897
 
         fi
17898
 
         ;;
17899
 
      esac
17900
 
      archive_cmds_need_lc_GCJ=no
17901
 
      hardcode_direct_GCJ=no
17902
 
      hardcode_automatic_GCJ=yes
17903
 
      hardcode_shlibpath_var_GCJ=unsupported
17904
 
      whole_archive_flag_spec_GCJ=''
17905
 
      link_all_deplibs_GCJ=yes
17906
 
    if test "$GCC" = yes ; then
17907
 
        output_verbose_link_cmd='echo'
17908
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17909
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17910
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17911
 
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17912
 
      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}'
17913
 
    else
17914
 
      case $cc_basename in
17915
 
        xlc*)
17916
 
         output_verbose_link_cmd='echo'
17917
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17918
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17919
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17920
 
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17921
 
          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}'
17922
 
          ;;
17923
 
       *)
17924
 
         ld_shlibs_GCJ=no
17925
 
          ;;
17926
 
      esac
17927
 
    fi
17928
 
      ;;
17929
 
 
17930
 
    dgux*)
17931
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17932
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17933
 
      hardcode_shlibpath_var_GCJ=no
17934
 
      ;;
17935
 
 
17936
 
    freebsd1*)
17937
 
      ld_shlibs_GCJ=no
17938
 
      ;;
17939
 
 
17940
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17941
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17942
 
    # does not break anything, and helps significantly (at the cost of a little
17943
 
    # extra space).
17944
 
    freebsd2.2*)
17945
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17946
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17947
 
      hardcode_direct_GCJ=yes
17948
 
      hardcode_shlibpath_var_GCJ=no
17949
 
      ;;
17950
 
 
17951
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17952
 
    freebsd2*)
17953
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17954
 
      hardcode_direct_GCJ=yes
17955
 
      hardcode_minus_L_GCJ=yes
17956
 
      hardcode_shlibpath_var_GCJ=no
17957
 
      ;;
17958
 
 
17959
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17960
 
    freebsd* | dragonfly*)
17961
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17962
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17963
 
      hardcode_direct_GCJ=yes
17964
 
      hardcode_shlibpath_var_GCJ=no
17965
 
      ;;
17966
 
 
17967
 
    # GNU/kFreeBSD uses gcc -shared to do shared libraries.
17968
 
    kfreebsd*-gnu)
17969
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17970
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17971
 
      hardcode_direct_GCJ=yes
17972
 
      hardcode_shlibpath_var_GCJ=no
17973
 
      link_all_deplibs_GCJ=no
17974
 
      ;;
17975
 
 
17976
 
    hpux9*)
17977
 
      if test "$GCC" = yes; then
17978
 
        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'
17979
 
      else
17980
 
        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'
17981
 
      fi
17982
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17983
 
      hardcode_libdir_separator_GCJ=:
17984
 
      hardcode_direct_GCJ=yes
17985
 
 
17986
 
      # hardcode_minus_L: Not really in the search PATH,
17987
 
      # but as the default location of the library.
17988
 
      hardcode_minus_L_GCJ=yes
17989
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17990
 
      ;;
17991
 
 
17992
 
    hpux10*)
17993
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17994
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17995
 
      else
17996
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17997
 
      fi
17998
 
      if test "$with_gnu_ld" = no; then
17999
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18000
 
        hardcode_libdir_separator_GCJ=:
18001
 
 
18002
 
        hardcode_direct_GCJ=yes
18003
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18004
 
 
18005
 
        # hardcode_minus_L: Not really in the search PATH,
18006
 
        # but as the default location of the library.
18007
 
        hardcode_minus_L_GCJ=yes
18008
 
      fi
18009
 
      ;;
18010
 
 
18011
 
    hpux11*)
18012
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18013
 
        case $host_cpu in
18014
 
        hppa*64*)
18015
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18016
 
          ;;
18017
 
        ia64*)
18018
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18019
 
          ;;
18020
 
        *)
18021
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18022
 
          ;;
18023
 
        esac
18024
 
      else
18025
 
        case $host_cpu in
18026
 
        hppa*64*)
18027
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18028
 
          ;;
18029
 
        ia64*)
18030
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18031
 
          ;;
18032
 
        *)
18033
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18034
 
          ;;
18035
 
        esac
18036
 
      fi
18037
 
      if test "$with_gnu_ld" = no; then
18038
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18039
 
        hardcode_libdir_separator_GCJ=:
18040
 
 
18041
 
        case $host_cpu in
18042
 
        hppa*64*|ia64*)
18043
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18044
 
          hardcode_direct_GCJ=no
18045
 
          hardcode_shlibpath_var_GCJ=no
18046
 
          ;;
18047
 
        *)
18048
 
          hardcode_direct_GCJ=yes
18049
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
18050
 
 
18051
 
          # hardcode_minus_L: Not really in the search PATH,
18052
 
          # but as the default location of the library.
18053
 
          hardcode_minus_L_GCJ=yes
18054
 
          ;;
18055
 
        esac
18056
 
      fi
18057
 
      ;;
18058
 
 
18059
 
    irix5* | irix6* | nonstopux*)
18060
 
      if test "$GCC" = yes; then
18061
 
        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'
18062
 
      else
18063
 
        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'
18064
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18065
 
      fi
18066
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18067
 
      hardcode_libdir_separator_GCJ=:
18068
 
      link_all_deplibs_GCJ=yes
18069
 
      ;;
18070
 
 
18071
 
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18072
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18073
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18074
 
      else
18075
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18076
 
      fi
18077
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18078
 
      hardcode_direct_GCJ=yes
18079
 
      hardcode_shlibpath_var_GCJ=no
18080
 
      ;;
18081
 
 
18082
 
    newsos6)
18083
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18084
 
      hardcode_direct_GCJ=yes
18085
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18086
 
      hardcode_libdir_separator_GCJ=:
18087
 
      hardcode_shlibpath_var_GCJ=no
18088
 
      ;;
18089
 
 
18090
 
    openbsd*)
18091
 
      hardcode_direct_GCJ=yes
18092
 
      hardcode_shlibpath_var_GCJ=no
18093
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18094
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18095
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18096
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18097
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
18098
 
      else
18099
 
       case $host_os in
18100
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18101
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18102
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
18103
 
           ;;
18104
 
         *)
18105
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18106
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18107
 
           ;;
18108
 
       esac
18109
 
      fi
18110
 
      ;;
18111
 
 
18112
 
    os2*)
18113
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18114
 
      hardcode_minus_L_GCJ=yes
18115
 
      allow_undefined_flag_GCJ=unsupported
18116
 
      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'
18117
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18118
 
      ;;
18119
 
 
18120
 
    osf3*)
18121
 
      if test "$GCC" = yes; then
18122
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18123
 
        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'
18124
 
      else
18125
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18126
 
        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'
18127
 
      fi
18128
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18129
 
      hardcode_libdir_separator_GCJ=:
18130
 
      ;;
18131
 
 
18132
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
18133
 
      if test "$GCC" = yes; then
18134
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18135
 
        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'
18136
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18137
 
      else
18138
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
18139
 
        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'
18140
 
        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~
18141
 
        $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'
18142
 
 
18143
 
        # Both c and cxx compiler support -rpath directly
18144
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18145
 
      fi
18146
 
      hardcode_libdir_separator_GCJ=:
18147
 
      ;;
18148
 
 
18149
 
    solaris*)
18150
 
      no_undefined_flag_GCJ=' -z text'
18151
 
      if test "$GCC" = yes; then
18152
 
        wlarc='${wl}'
18153
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18154
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18155
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18156
 
      else
18157
 
        wlarc=''
18158
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18159
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18160
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18161
 
      fi
18162
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
18163
 
      hardcode_shlibpath_var_GCJ=no
18164
 
      case $host_os in
18165
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
18166
 
      *)
18167
 
        # The compiler driver will combine linker options so we
18168
 
        # cannot just pass the convience library names through
18169
 
        # without $wl, iff we do not link with $LD.
18170
 
        # Luckily, gcc supports the same syntax we need for Sun Studio.
18171
 
        # Supported since Solaris 2.6 (maybe 2.5.1?)
18172
 
        case $wlarc in
18173
 
        '')
18174
 
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18175
 
        *)
18176
 
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
18177
 
        esac ;;
18178
 
      esac
18179
 
      link_all_deplibs_GCJ=yes
18180
 
      ;;
18181
 
 
18182
 
    sunos4*)
18183
 
      if test "x$host_vendor" = xsequent; then
18184
 
        # Use $CC to link under sequent, because it throws in some extra .o
18185
 
        # files that make .init and .fini sections work.
18186
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18187
 
      else
18188
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18189
 
      fi
18190
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18191
 
      hardcode_direct_GCJ=yes
18192
 
      hardcode_minus_L_GCJ=yes
18193
 
      hardcode_shlibpath_var_GCJ=no
18194
 
      ;;
18195
 
 
18196
 
    sysv4)
18197
 
      case $host_vendor in
18198
 
        sni)
18199
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18200
 
          hardcode_direct_GCJ=yes # is this really true???
18201
 
        ;;
18202
 
        siemens)
18203
 
          ## LD is ld it makes a PLAMLIB
18204
 
          ## CC just makes a GrossModule.
18205
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18206
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18207
 
          hardcode_direct_GCJ=no
18208
 
        ;;
18209
 
        motorola)
18210
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18211
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18212
 
        ;;
18213
 
      esac
18214
 
      runpath_var='LD_RUN_PATH'
18215
 
      hardcode_shlibpath_var_GCJ=no
18216
 
      ;;
18217
 
 
18218
 
    sysv4.3*)
18219
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18220
 
      hardcode_shlibpath_var_GCJ=no
18221
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18222
 
      ;;
18223
 
 
18224
 
    sysv4*MP*)
18225
 
      if test -d /usr/nec; then
18226
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18227
 
        hardcode_shlibpath_var_GCJ=no
18228
 
        runpath_var=LD_RUN_PATH
18229
 
        hardcode_runpath_var=yes
18230
 
        ld_shlibs_GCJ=yes
18231
 
      fi
18232
 
      ;;
18233
 
 
18234
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18235
 
      no_undefined_flag_GCJ='${wl}-z,text'
18236
 
      archive_cmds_need_lc_GCJ=no
18237
 
      hardcode_shlibpath_var_GCJ=no
18238
 
      runpath_var='LD_RUN_PATH'
18239
 
 
18240
 
      if test "$GCC" = yes; then
18241
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18242
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18243
 
      else
18244
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18245
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18246
 
      fi
18247
 
      ;;
18248
 
 
18249
 
    sysv5* | sco3.2v5* | sco5v6*)
18250
 
      # Note: We can NOT use -z defs as we might desire, because we do not
18251
 
      # link with -lc, and that would cause any symbols used from libc to
18252
 
      # always be unresolved, which means just about no library would
18253
 
      # ever link correctly.  If we're not using GNU ld we use -z text
18254
 
      # though, which does catch some bad symbols but isn't as heavy-handed
18255
 
      # as -z defs.
18256
 
      no_undefined_flag_GCJ='${wl}-z,text'
18257
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
18258
 
      archive_cmds_need_lc_GCJ=no
18259
 
      hardcode_shlibpath_var_GCJ=no
18260
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18261
 
      hardcode_libdir_separator_GCJ=':'
18262
 
      link_all_deplibs_GCJ=yes
18263
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18264
 
      runpath_var='LD_RUN_PATH'
18265
 
 
18266
 
      if test "$GCC" = yes; then
18267
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18268
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18269
 
      else
18270
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18271
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18272
 
      fi
18273
 
      ;;
18274
 
 
18275
 
    uts4*)
18276
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18278
 
      hardcode_shlibpath_var_GCJ=no
18279
 
      ;;
18280
 
 
18281
 
    *)
18282
 
      ld_shlibs_GCJ=no
18283
 
      ;;
18284
 
    esac
18285
 
  fi
18286
 
 
18287
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18288
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18289
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18290
 
 
18291
 
#
18292
 
# Do we need to explicitly link libc?
18293
 
#
18294
 
case "x$archive_cmds_need_lc_GCJ" in
18295
 
x|xyes)
18296
 
  # Assume -lc should be added
18297
 
  archive_cmds_need_lc_GCJ=yes
18298
 
 
18299
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18300
 
    case $archive_cmds_GCJ in
18301
 
    *'~'*)
18302
 
      # FIXME: we may have to deal with multi-command sequences.
18303
 
      ;;
18304
 
    '$CC '*)
18305
 
      # Test whether the compiler implicitly links with -lc since on some
18306
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18307
 
      # to ld, don't add -lc before -lgcc.
18308
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18309
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18310
 
      $rm conftest*
18311
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18312
 
 
18313
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18314
 
  (eval $ac_compile) 2>&5
18315
 
  ac_status=$?
18316
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18317
 
  (exit $ac_status); } 2>conftest.err; then
18318
 
        soname=conftest
18319
 
        lib=conftest
18320
 
        libobjs=conftest.$ac_objext
18321
 
        deplibs=
18322
 
        wl=$lt_prog_compiler_wl_GCJ
18323
 
        pic_flag=$lt_prog_compiler_pic_GCJ
18324
 
        compiler_flags=-v
18325
 
        linker_flags=-v
18326
 
        verstring=
18327
 
        output_objdir=.
18328
 
        libname=conftest
18329
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18330
 
        allow_undefined_flag_GCJ=
18331
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18332
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18333
 
  ac_status=$?
18334
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335
 
  (exit $ac_status); }
18336
 
        then
18337
 
          archive_cmds_need_lc_GCJ=no
18338
 
        else
18339
 
          archive_cmds_need_lc_GCJ=yes
18340
 
        fi
18341
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18342
 
      else
18343
 
        cat conftest.err 1>&5
18344
 
      fi
18345
 
      $rm conftest*
18346
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18347
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18348
 
      ;;
18349
 
    esac
18350
 
  fi
18351
 
  ;;
18352
 
esac
18353
 
 
18354
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18355
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18356
 
library_names_spec=
18357
 
libname_spec='lib$name'
18358
 
soname_spec=
18359
 
shrext_cmds=".so"
18360
 
postinstall_cmds=
18361
 
postuninstall_cmds=
18362
 
finish_cmds=
18363
 
finish_eval=
18364
 
shlibpath_var=
18365
 
shlibpath_overrides_runpath=unknown
18366
 
version_type=none
18367
 
dynamic_linker="$host_os ld.so"
18368
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18369
 
if test "$GCC" = yes; then
18370
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18371
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18372
 
    # if the path contains ";" then we assume it to be the separator
18373
 
    # otherwise default to the standard path separator (i.e. ":") - it is
18374
 
    # assumed that no part of a normal pathname contains ";" but that should
18375
 
    # okay in the real world where ";" in dirpaths is itself problematic.
18376
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18377
 
  else
18378
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18379
 
  fi
18380
 
else
18381
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18382
 
fi
18383
 
need_lib_prefix=unknown
18384
 
hardcode_into_libs=no
18385
 
 
18386
 
# when you set need_version to no, make sure it does not cause -set_version
18387
 
# flags to be left without arguments
18388
 
need_version=unknown
18389
 
 
18390
 
case $host_os in
18391
 
aix3*)
18392
 
  version_type=linux
18393
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18394
 
  shlibpath_var=LIBPATH
18395
 
 
18396
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18397
 
  soname_spec='${libname}${release}${shared_ext}$major'
18398
 
  ;;
18399
 
 
18400
 
aix4* | aix5*)
18401
 
  version_type=linux
18402
 
  need_lib_prefix=no
18403
 
  need_version=no
18404
 
  hardcode_into_libs=yes
18405
 
  if test "$host_cpu" = ia64; then
18406
 
    # AIX 5 supports IA64
18407
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18408
 
    shlibpath_var=LD_LIBRARY_PATH
18409
 
  else
18410
 
    # With GCC up to 2.95.x, collect2 would create an import file
18411
 
    # for dependence libraries.  The import file would start with
18412
 
    # the line `#! .'.  This would cause the generated library to
18413
 
    # depend on `.', always an invalid library.  This was fixed in
18414
 
    # development snapshots of GCC prior to 3.0.
18415
 
    case $host_os in
18416
 
      aix4 | aix4.[01] | aix4.[01].*)
18417
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18418
 
           echo ' yes '
18419
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18420
 
        :
18421
 
      else
18422
 
        can_build_shared=no
18423
 
      fi
18424
 
      ;;
18425
 
    esac
18426
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18427
 
    # soname into executable. Probably we can add versioning support to
18428
 
    # collect2, so additional links can be useful in future.
18429
 
    if test "$aix_use_runtimelinking" = yes; then
18430
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18431
 
      # instead of lib<name>.a to let people know that these are not
18432
 
      # typical AIX shared libraries.
18433
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18434
 
    else
18435
 
      # We preserve .a as extension for shared libraries through AIX4.2
18436
 
      # and later when we are not doing run time linking.
18437
 
      library_names_spec='${libname}${release}.a $libname.a'
18438
 
      soname_spec='${libname}${release}${shared_ext}$major'
18439
 
    fi
18440
 
    shlibpath_var=LIBPATH
18441
 
  fi
18442
 
  ;;
18443
 
 
18444
 
amigaos*)
18445
 
  library_names_spec='$libname.ixlibrary $libname.a'
18446
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18447
 
  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'
18448
 
  ;;
18449
 
 
18450
 
beos*)
18451
 
  library_names_spec='${libname}${shared_ext}'
18452
 
  dynamic_linker="$host_os ld.so"
18453
 
  shlibpath_var=LIBRARY_PATH
18454
 
  ;;
18455
 
 
18456
 
bsdi[45]*)
18457
 
  version_type=linux
18458
 
  need_version=no
18459
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18460
 
  soname_spec='${libname}${release}${shared_ext}$major'
18461
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18462
 
  shlibpath_var=LD_LIBRARY_PATH
18463
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18464
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18465
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18466
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18467
 
  # libtool to hard-code these into programs
18468
 
  ;;
18469
 
 
18470
 
cygwin* | mingw* | pw32*)
18471
 
  version_type=windows
18472
 
  shrext_cmds=".dll"
18473
 
  need_version=no
18474
 
  need_lib_prefix=no
18475
 
 
18476
 
  case $GCC,$host_os in
18477
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18478
 
    library_names_spec='$libname.dll.a'
18479
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18480
 
    postinstall_cmds='base_file=`basename \${file}`~
18481
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18482
 
      dldir=$destdir/`dirname \$dlpath`~
18483
 
      test -d \$dldir || mkdir -p \$dldir~
18484
 
      $install_prog $dir/$dlname \$dldir/$dlname~
18485
 
      chmod a+x \$dldir/$dlname'
18486
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18487
 
      dlpath=$dir/\$dldll~
18488
 
       $rm \$dlpath'
18489
 
    shlibpath_overrides_runpath=yes
18490
 
 
18491
 
    case $host_os in
18492
 
    cygwin*)
18493
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18494
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18495
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18496
 
      ;;
18497
 
    mingw*)
18498
 
      # MinGW DLLs use traditional 'lib' prefix
18499
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18500
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18501
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18502
 
        # It is most probably a Windows format PATH printed by
18503
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18504
 
        # path with ; separators, and with drive letters. We can handle the
18505
 
        # drive letters (cygwin fileutils understands them), so leave them,
18506
 
        # especially as we might pass files found there to a mingw objdump,
18507
 
        # which wouldn't understand a cygwinified path. Ahh.
18508
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18509
 
      else
18510
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18511
 
      fi
18512
 
      ;;
18513
 
    pw32*)
18514
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18515
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18516
 
      ;;
18517
 
    esac
18518
 
    ;;
18519
 
 
18520
 
  *)
18521
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18522
 
    ;;
18523
 
  esac
18524
 
  dynamic_linker='Win32 ld.exe'
18525
 
  # FIXME: first we should search . and the directory the executable is in
18526
 
  shlibpath_var=PATH
18527
 
  ;;
18528
 
 
18529
 
darwin* | rhapsody*)
18530
 
  dynamic_linker="$host_os dyld"
18531
 
  version_type=darwin
18532
 
  need_lib_prefix=no
18533
 
  need_version=no
18534
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18535
 
  soname_spec='${libname}${release}${major}$shared_ext'
18536
 
  shlibpath_overrides_runpath=yes
18537
 
  shlibpath_var=DYLD_LIBRARY_PATH
18538
 
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18539
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18540
 
  if test "$GCC" = yes; then
18541
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18542
 
  else
18543
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18544
 
  fi
18545
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18546
 
  ;;
18547
 
 
18548
 
dgux*)
18549
 
  version_type=linux
18550
 
  need_lib_prefix=no
18551
 
  need_version=no
18552
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18553
 
  soname_spec='${libname}${release}${shared_ext}$major'
18554
 
  shlibpath_var=LD_LIBRARY_PATH
18555
 
  ;;
18556
 
 
18557
 
freebsd1*)
18558
 
  dynamic_linker=no
18559
 
  ;;
18560
 
 
18561
 
kfreebsd*-gnu)
18562
 
  version_type=linux
18563
 
  need_lib_prefix=no
18564
 
  need_version=no
18565
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566
 
  soname_spec='${libname}${release}${shared_ext}$major'
18567
 
  shlibpath_var=LD_LIBRARY_PATH
18568
 
  shlibpath_overrides_runpath=no
18569
 
  hardcode_into_libs=yes
18570
 
  dynamic_linker='GNU ld.so'
18571
 
  ;;
18572
 
 
18573
 
freebsd* | dragonfly*)
18574
 
  # DragonFly does not have aout.  When/if they implement a new
18575
 
  # versioning mechanism, adjust this.
18576
 
  if test -x /usr/bin/objformat; then
18577
 
    objformat=`/usr/bin/objformat`
18578
 
  else
18579
 
    case $host_os in
18580
 
    freebsd[123]*) objformat=aout ;;
18581
 
    *) objformat=elf ;;
18582
 
    esac
18583
 
  fi
18584
 
  version_type=freebsd-$objformat
18585
 
  case $version_type in
18586
 
    freebsd-elf*)
18587
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18588
 
      need_version=no
18589
 
      need_lib_prefix=no
18590
 
      ;;
18591
 
    freebsd-*)
18592
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18593
 
      need_version=yes
18594
 
      ;;
18595
 
  esac
18596
 
  shlibpath_var=LD_LIBRARY_PATH
18597
 
  case $host_os in
18598
 
  freebsd2*)
18599
 
    shlibpath_overrides_runpath=yes
18600
 
    ;;
18601
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18602
 
    shlibpath_overrides_runpath=yes
18603
 
    hardcode_into_libs=yes
18604
 
    ;;
18605
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18606
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18607
 
    shlibpath_overrides_runpath=no
18608
 
    hardcode_into_libs=yes
18609
 
    ;;
18610
 
  freebsd*) # from 4.6 on
18611
 
    shlibpath_overrides_runpath=yes
18612
 
    hardcode_into_libs=yes
18613
 
    ;;
18614
 
  esac
18615
 
  ;;
18616
 
 
18617
 
gnu*)
18618
 
  version_type=linux
18619
 
  need_lib_prefix=no
18620
 
  need_version=no
18621
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18622
 
  soname_spec='${libname}${release}${shared_ext}$major'
18623
 
  shlibpath_var=LD_LIBRARY_PATH
18624
 
  hardcode_into_libs=yes
18625
 
  ;;
18626
 
 
18627
 
hpux9* | hpux10* | hpux11*)
18628
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18629
 
  # link against other versions.
18630
 
  version_type=sunos
18631
 
  need_lib_prefix=no
18632
 
  need_version=no
18633
 
  case $host_cpu in
18634
 
  ia64*)
18635
 
    shrext_cmds='.so'
18636
 
    hardcode_into_libs=yes
18637
 
    dynamic_linker="$host_os dld.so"
18638
 
    shlibpath_var=LD_LIBRARY_PATH
18639
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18640
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18641
 
    soname_spec='${libname}${release}${shared_ext}$major'
18642
 
    if test "X$HPUX_IA64_MODE" = X32; then
18643
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18644
 
    else
18645
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18646
 
    fi
18647
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18648
 
    ;;
18649
 
   hppa*64*)
18650
 
     shrext_cmds='.sl'
18651
 
     hardcode_into_libs=yes
18652
 
     dynamic_linker="$host_os dld.sl"
18653
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18654
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18655
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18656
 
     soname_spec='${libname}${release}${shared_ext}$major'
18657
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18658
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18659
 
     ;;
18660
 
   *)
18661
 
    shrext_cmds='.sl'
18662
 
    dynamic_linker="$host_os dld.sl"
18663
 
    shlibpath_var=SHLIB_PATH
18664
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18665
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18666
 
    soname_spec='${libname}${release}${shared_ext}$major'
18667
 
    ;;
18668
 
  esac
18669
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18670
 
  postinstall_cmds='chmod 555 $lib'
18671
 
  ;;
18672
 
 
18673
 
interix3*)
18674
 
  version_type=linux
18675
 
  need_lib_prefix=no
18676
 
  need_version=no
18677
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18678
 
  soname_spec='${libname}${release}${shared_ext}$major'
18679
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18680
 
  shlibpath_var=LD_LIBRARY_PATH
18681
 
  shlibpath_overrides_runpath=no
18682
 
  hardcode_into_libs=yes
18683
 
  ;;
18684
 
 
18685
 
irix5* | irix6* | nonstopux*)
18686
 
  case $host_os in
18687
 
    nonstopux*) version_type=nonstopux ;;
18688
 
    *)
18689
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18690
 
                version_type=linux
18691
 
        else
18692
 
                version_type=irix
18693
 
        fi ;;
18694
 
  esac
18695
 
  need_lib_prefix=no
18696
 
  need_version=no
18697
 
  soname_spec='${libname}${release}${shared_ext}$major'
18698
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18699
 
  case $host_os in
18700
 
  irix5* | nonstopux*)
18701
 
    libsuff= shlibsuff=
18702
 
    ;;
18703
 
  *)
18704
 
    case $LD in # libtool.m4 will add one of these switches to LD
18705
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18706
 
      libsuff= shlibsuff= libmagic=32-bit;;
18707
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18708
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18709
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18710
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18711
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18712
 
    esac
18713
 
    ;;
18714
 
  esac
18715
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18716
 
  shlibpath_overrides_runpath=no
18717
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18718
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18719
 
  hardcode_into_libs=yes
18720
 
  ;;
18721
 
 
18722
 
# No shared lib support for Linux oldld, aout, or coff.
18723
 
linux*oldld* | linux*aout* | linux*coff*)
18724
 
  dynamic_linker=no
18725
 
  ;;
18726
 
 
18727
 
# This must be Linux ELF.
18728
 
linux*)
18729
 
  version_type=linux
18730
 
  need_lib_prefix=no
18731
 
  need_version=no
18732
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18733
 
  soname_spec='${libname}${release}${shared_ext}$major'
18734
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18735
 
  shlibpath_var=LD_LIBRARY_PATH
18736
 
  shlibpath_overrides_runpath=no
18737
 
  # This implies no fast_install, which is unacceptable.
18738
 
  # Some rework will be needed to allow for fast_install
18739
 
  # before this can be enabled.
18740
 
  hardcode_into_libs=yes
18741
 
 
18742
 
  # Append ld.so.conf contents to the search path
18743
 
  if test -f /etc/ld.so.conf; then
18744
 
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18745
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18746
 
  fi
18747
 
 
18748
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18749
 
  # powerpc, because MkLinux only supported shared libraries with the
18750
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18751
 
  # most powerpc-linux boxes support dynamic linking these days and
18752
 
  # people can always --disable-shared, the test was removed, and we
18753
 
  # assume the GNU/Linux dynamic linker is in use.
18754
 
  dynamic_linker='GNU/Linux ld.so'
18755
 
  ;;
18756
 
 
18757
 
netbsdelf*-gnu)
18758
 
  version_type=linux
18759
 
  need_lib_prefix=no
18760
 
  need_version=no
18761
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18762
 
  soname_spec='${libname}${release}${shared_ext}$major'
18763
 
  shlibpath_var=LD_LIBRARY_PATH
18764
 
  shlibpath_overrides_runpath=no
18765
 
  hardcode_into_libs=yes
18766
 
  dynamic_linker='NetBSD ld.elf_so'
18767
 
  ;;
18768
 
 
18769
 
knetbsd*-gnu)
18770
 
  version_type=linux
18771
 
  need_lib_prefix=no
18772
 
  need_version=no
18773
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18774
 
  soname_spec='${libname}${release}${shared_ext}$major'
18775
 
  shlibpath_var=LD_LIBRARY_PATH
18776
 
  shlibpath_overrides_runpath=no
18777
 
  hardcode_into_libs=yes
18778
 
  dynamic_linker='GNU ld.so'
18779
 
  ;;
18780
 
 
18781
 
netbsd*)
18782
 
  version_type=sunos
18783
 
  need_lib_prefix=no
18784
 
  need_version=no
18785
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18786
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18787
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18788
 
    dynamic_linker='NetBSD (a.out) ld.so'
18789
 
  else
18790
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18791
 
    soname_spec='${libname}${release}${shared_ext}$major'
18792
 
    dynamic_linker='NetBSD ld.elf_so'
18793
 
  fi
18794
 
  shlibpath_var=LD_LIBRARY_PATH
18795
 
  shlibpath_overrides_runpath=yes
18796
 
  hardcode_into_libs=yes
18797
 
  ;;
18798
 
 
18799
 
newsos6)
18800
 
  version_type=linux
18801
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18802
 
  shlibpath_var=LD_LIBRARY_PATH
18803
 
  shlibpath_overrides_runpath=yes
18804
 
  ;;
18805
 
 
18806
 
nto-qnx*)
18807
 
  version_type=linux
18808
 
  need_lib_prefix=no
18809
 
  need_version=no
18810
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18811
 
  soname_spec='${libname}${release}${shared_ext}$major'
18812
 
  shlibpath_var=LD_LIBRARY_PATH
18813
 
  shlibpath_overrides_runpath=yes
18814
 
  ;;
18815
 
 
18816
 
openbsd*)
18817
 
  version_type=sunos
18818
 
  sys_lib_dlsearch_path_spec="/usr/lib"
18819
 
  need_lib_prefix=no
18820
 
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18821
 
  case $host_os in
18822
 
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18823
 
    *)                         need_version=no  ;;
18824
 
  esac
18825
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18826
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18827
 
  shlibpath_var=LD_LIBRARY_PATH
18828
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18829
 
    case $host_os in
18830
 
      openbsd2.[89] | openbsd2.[89].*)
18831
 
        shlibpath_overrides_runpath=no
18832
 
        ;;
18833
 
      *)
18834
 
        shlibpath_overrides_runpath=yes
18835
 
        ;;
18836
 
      esac
18837
 
  else
18838
 
    shlibpath_overrides_runpath=yes
18839
 
  fi
18840
 
  ;;
18841
 
 
18842
 
os2*)
18843
 
  libname_spec='$name'
18844
 
  shrext_cmds=".dll"
18845
 
  need_lib_prefix=no
18846
 
  library_names_spec='$libname${shared_ext} $libname.a'
18847
 
  dynamic_linker='OS/2 ld.exe'
18848
 
  shlibpath_var=LIBPATH
18849
 
  ;;
18850
 
 
18851
 
osf3* | osf4* | osf5*)
18852
 
  version_type=osf
18853
 
  need_lib_prefix=no
18854
 
  need_version=no
18855
 
  soname_spec='${libname}${release}${shared_ext}$major'
18856
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857
 
  shlibpath_var=LD_LIBRARY_PATH
18858
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18859
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18860
 
  ;;
18861
 
 
18862
 
solaris*)
18863
 
  version_type=linux
18864
 
  need_lib_prefix=no
18865
 
  need_version=no
18866
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18867
 
  soname_spec='${libname}${release}${shared_ext}$major'
18868
 
  shlibpath_var=LD_LIBRARY_PATH
18869
 
  shlibpath_overrides_runpath=yes
18870
 
  hardcode_into_libs=yes
18871
 
  # ldd complains unless libraries are executable
18872
 
  postinstall_cmds='chmod +x $lib'
18873
 
  ;;
18874
 
 
18875
 
sunos4*)
18876
 
  version_type=sunos
18877
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18878
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18879
 
  shlibpath_var=LD_LIBRARY_PATH
18880
 
  shlibpath_overrides_runpath=yes
18881
 
  if test "$with_gnu_ld" = yes; then
18882
 
    need_lib_prefix=no
18883
 
  fi
18884
 
  need_version=yes
18885
 
  ;;
18886
 
 
18887
 
sysv4 | sysv4.3*)
18888
 
  version_type=linux
18889
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18890
 
  soname_spec='${libname}${release}${shared_ext}$major'
18891
 
  shlibpath_var=LD_LIBRARY_PATH
18892
 
  case $host_vendor in
18893
 
    sni)
18894
 
      shlibpath_overrides_runpath=no
18895
 
      need_lib_prefix=no
18896
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18897
 
      runpath_var=LD_RUN_PATH
18898
 
      ;;
18899
 
    siemens)
18900
 
      need_lib_prefix=no
18901
 
      ;;
18902
 
    motorola)
18903
 
      need_lib_prefix=no
18904
 
      need_version=no
18905
 
      shlibpath_overrides_runpath=no
18906
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18907
 
      ;;
18908
 
  esac
18909
 
  ;;
18910
 
 
18911
 
sysv4*MP*)
18912
 
  if test -d /usr/nec ;then
18913
 
    version_type=linux
18914
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18915
 
    soname_spec='$libname${shared_ext}.$major'
18916
 
    shlibpath_var=LD_LIBRARY_PATH
18917
 
  fi
18918
 
  ;;
18919
 
 
18920
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18921
 
  version_type=freebsd-elf
18922
 
  need_lib_prefix=no
18923
 
  need_version=no
18924
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18925
 
  soname_spec='${libname}${release}${shared_ext}$major'
18926
 
  shlibpath_var=LD_LIBRARY_PATH
18927
 
  hardcode_into_libs=yes
18928
 
  if test "$with_gnu_ld" = yes; then
18929
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18930
 
    shlibpath_overrides_runpath=no
18931
 
  else
18932
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18933
 
    shlibpath_overrides_runpath=yes
18934
 
    case $host_os in
18935
 
      sco3.2v5*)
18936
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18937
 
        ;;
18938
 
    esac
18939
 
  fi
18940
 
  sys_lib_dlsearch_path_spec='/usr/lib'
18941
 
  ;;
18942
 
 
18943
 
uts4*)
18944
 
  version_type=linux
18945
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18946
 
  soname_spec='${libname}${release}${shared_ext}$major'
18947
 
  shlibpath_var=LD_LIBRARY_PATH
18948
 
  ;;
18949
 
 
18950
 
*)
18951
 
  dynamic_linker=no
18952
 
  ;;
18953
 
esac
18954
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18955
 
echo "${ECHO_T}$dynamic_linker" >&6; }
18956
 
test "$dynamic_linker" = no && can_build_shared=no
18957
 
 
18958
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18959
 
if test "$GCC" = yes; then
18960
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18961
 
fi
18962
 
 
18963
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18964
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18965
 
hardcode_action_GCJ=
18966
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18967
 
   test -n "$runpath_var_GCJ" || \
18968
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18969
 
 
18970
 
  # We can hardcode non-existant directories.
18971
 
  if test "$hardcode_direct_GCJ" != no &&
18972
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18973
 
     # have to relink, otherwise we might link with an installed library
18974
 
     # when we should be linking with a yet-to-be-installed one
18975
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18976
 
     test "$hardcode_minus_L_GCJ" != no; then
18977
 
    # Linking always hardcodes the temporary library directory.
18978
 
    hardcode_action_GCJ=relink
18979
 
  else
18980
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18981
 
    hardcode_action_GCJ=immediate
18982
 
  fi
18983
 
else
18984
 
  # We cannot hardcode anything, or else we can only hardcode existing
18985
 
  # directories.
18986
 
  hardcode_action_GCJ=unsupported
18987
 
fi
18988
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18989
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18990
 
 
18991
 
if test "$hardcode_action_GCJ" = relink; then
18992
 
  # Fast installation is not supported
18993
 
  enable_fast_install=no
18994
 
elif test "$shlibpath_overrides_runpath" = yes ||
18995
 
     test "$enable_shared" = no; then
18996
 
  # Fast installation is not necessary
18997
 
  enable_fast_install=needless
18998
 
fi
18999
 
 
19000
 
 
19001
 
# The else clause should only fire when bootstrapping the
19002
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19003
 
# with your package, and you will get complaints that there are
19004
 
# no rules to generate ltmain.sh.
19005
 
if test -f "$ltmain"; then
19006
 
  # See if we are running on zsh, and set the options which allow our commands through
19007
 
  # without removal of \ escapes.
19008
 
  if test -n "${ZSH_VERSION+set}" ; then
19009
 
    setopt NO_GLOB_SUBST
19010
 
  fi
19011
 
  # Now quote all the things that may contain metacharacters while being
19012
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19013
 
  # variables and quote the copies for generation of the libtool script.
19014
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19015
 
    SED SHELL STRIP \
19016
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19017
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19018
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19019
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19020
 
    lt_cv_sys_global_symbol_to_c_name_address \
19021
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19022
 
    old_postinstall_cmds old_postuninstall_cmds \
19023
 
    compiler_GCJ \
19024
 
    CC_GCJ \
19025
 
    LD_GCJ \
19026
 
    lt_prog_compiler_wl_GCJ \
19027
 
    lt_prog_compiler_pic_GCJ \
19028
 
    lt_prog_compiler_static_GCJ \
19029
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19030
 
    export_dynamic_flag_spec_GCJ \
19031
 
    thread_safe_flag_spec_GCJ \
19032
 
    whole_archive_flag_spec_GCJ \
19033
 
    enable_shared_with_static_runtimes_GCJ \
19034
 
    old_archive_cmds_GCJ \
19035
 
    old_archive_from_new_cmds_GCJ \
19036
 
    predep_objects_GCJ \
19037
 
    postdep_objects_GCJ \
19038
 
    predeps_GCJ \
19039
 
    postdeps_GCJ \
19040
 
    compiler_lib_search_path_GCJ \
19041
 
    archive_cmds_GCJ \
19042
 
    archive_expsym_cmds_GCJ \
19043
 
    postinstall_cmds_GCJ \
19044
 
    postuninstall_cmds_GCJ \
19045
 
    old_archive_from_expsyms_cmds_GCJ \
19046
 
    allow_undefined_flag_GCJ \
19047
 
    no_undefined_flag_GCJ \
19048
 
    export_symbols_cmds_GCJ \
19049
 
    hardcode_libdir_flag_spec_GCJ \
19050
 
    hardcode_libdir_flag_spec_ld_GCJ \
19051
 
    hardcode_libdir_separator_GCJ \
19052
 
    hardcode_automatic_GCJ \
19053
 
    module_cmds_GCJ \
19054
 
    module_expsym_cmds_GCJ \
19055
 
    lt_cv_prog_compiler_c_o_GCJ \
19056
 
    exclude_expsyms_GCJ \
19057
 
    include_expsyms_GCJ; do
19058
 
 
19059
 
    case $var in
19060
 
    old_archive_cmds_GCJ | \
19061
 
    old_archive_from_new_cmds_GCJ | \
19062
 
    archive_cmds_GCJ | \
19063
 
    archive_expsym_cmds_GCJ | \
19064
 
    module_cmds_GCJ | \
19065
 
    module_expsym_cmds_GCJ | \
19066
 
    old_archive_from_expsyms_cmds_GCJ | \
19067
 
    export_symbols_cmds_GCJ | \
19068
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19069
 
    postinstall_cmds | postuninstall_cmds | \
19070
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19071
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19072
 
      # Double-quote double-evaled strings.
19073
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19074
 
      ;;
19075
 
    *)
19076
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19077
 
      ;;
19078
 
    esac
19079
 
  done
19080
 
 
19081
 
  case $lt_echo in
19082
 
  *'\$0 --fallback-echo"')
19083
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19084
 
    ;;
19085
 
  esac
19086
 
 
19087
 
cfgfile="$ofile"
19088
 
 
19089
 
  cat <<__EOF__ >> "$cfgfile"
19090
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19091
 
 
19092
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19093
 
 
19094
 
# Shell to use when invoking shell scripts.
19095
 
SHELL=$lt_SHELL
19096
 
 
19097
 
# Whether or not to build shared libraries.
19098
 
build_libtool_libs=$enable_shared
19099
 
 
19100
 
# Whether or not to build static libraries.
19101
 
build_old_libs=$enable_static
19102
 
 
19103
 
# Whether or not to add -lc for building shared libraries.
19104
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19105
 
 
19106
 
# Whether or not to disallow shared libs when runtime libs are static
19107
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19108
 
 
19109
 
# Whether or not to optimize for fast installation.
19110
 
fast_install=$enable_fast_install
19111
 
 
19112
 
# The host system.
19113
 
host_alias=$host_alias
19114
 
host=$host
19115
 
host_os=$host_os
19116
 
 
19117
 
# The build system.
19118
 
build_alias=$build_alias
19119
 
build=$build
19120
 
build_os=$build_os
19121
 
 
19122
 
# An echo program that does not interpret backslashes.
19123
 
echo=$lt_echo
19124
 
 
19125
 
# The archiver.
19126
 
AR=$lt_AR
19127
 
AR_FLAGS=$lt_AR_FLAGS
19128
 
 
19129
 
# A C compiler.
19130
 
LTCC=$lt_LTCC
19131
 
 
19132
 
# LTCC compiler flags.
19133
 
LTCFLAGS=$lt_LTCFLAGS
19134
 
 
19135
 
# A language-specific compiler.
19136
 
CC=$lt_compiler_GCJ
19137
 
 
19138
 
# Is the compiler the GNU C compiler?
19139
 
with_gcc=$GCC_GCJ
19140
 
 
19141
 
# An ERE matcher.
19142
 
EGREP=$lt_EGREP
19143
 
 
19144
 
# The linker used to build libraries.
19145
 
LD=$lt_LD_GCJ
19146
 
 
19147
 
# Whether we need hard or soft links.
19148
 
LN_S=$lt_LN_S
19149
 
 
19150
 
# A BSD-compatible nm program.
19151
 
NM=$lt_NM
19152
 
 
19153
 
# A symbol stripping program
19154
 
STRIP=$lt_STRIP
19155
 
 
19156
 
# Used to examine libraries when file_magic_cmd begins "file"
19157
 
MAGIC_CMD=$MAGIC_CMD
19158
 
 
19159
 
# Used on cygwin: DLL creation program.
19160
 
DLLTOOL="$DLLTOOL"
19161
 
 
19162
 
# Used on cygwin: object dumper.
19163
 
OBJDUMP="$OBJDUMP"
19164
 
 
19165
 
# Used on cygwin: assembler.
19166
 
AS="$AS"
19167
 
 
19168
 
# The name of the directory that contains temporary libtool files.
19169
 
objdir=$objdir
19170
 
 
19171
 
# How to create reloadable object files.
19172
 
reload_flag=$lt_reload_flag
19173
 
reload_cmds=$lt_reload_cmds
19174
 
 
19175
 
# How to pass a linker flag through the compiler.
19176
 
wl=$lt_lt_prog_compiler_wl_GCJ
19177
 
 
19178
 
# Object file suffix (normally "o").
19179
 
objext="$ac_objext"
19180
 
 
19181
 
# Old archive suffix (normally "a").
19182
 
libext="$libext"
19183
 
 
19184
 
# Shared library suffix (normally ".so").
19185
 
shrext_cmds='$shrext_cmds'
19186
 
 
19187
 
# Executable file suffix (normally "").
19188
 
exeext="$exeext"
19189
 
 
19190
 
# Additional compiler flags for building library objects.
19191
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19192
 
pic_mode=$pic_mode
19193
 
 
19194
 
# What is the maximum length of a command?
19195
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19196
 
 
19197
 
# Does compiler simultaneously support -c and -o options?
19198
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19199
 
 
19200
 
# Must we lock files when doing compilation?
19201
 
need_locks=$lt_need_locks
19202
 
 
19203
 
# Do we need the lib prefix for modules?
19204
 
need_lib_prefix=$need_lib_prefix
19205
 
 
19206
 
# Do we need a version for libraries?
19207
 
need_version=$need_version
19208
 
 
19209
 
# Whether dlopen is supported.
19210
 
dlopen_support=$enable_dlopen
19211
 
 
19212
 
# Whether dlopen of programs is supported.
19213
 
dlopen_self=$enable_dlopen_self
19214
 
 
19215
 
# Whether dlopen of statically linked programs is supported.
19216
 
dlopen_self_static=$enable_dlopen_self_static
19217
 
 
19218
 
# Compiler flag to prevent dynamic linking.
19219
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19220
 
 
19221
 
# Compiler flag to turn off builtin functions.
19222
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19223
 
 
19224
 
# Compiler flag to allow reflexive dlopens.
19225
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19226
 
 
19227
 
# Compiler flag to generate shared objects directly from archives.
19228
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19229
 
 
19230
 
# Compiler flag to generate thread-safe objects.
19231
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19232
 
 
19233
 
# Library versioning type.
19234
 
version_type=$version_type
19235
 
 
19236
 
# Format of library name prefix.
19237
 
libname_spec=$lt_libname_spec
19238
 
 
19239
 
# List of archive names.  First name is the real one, the rest are links.
19240
 
# The last name is the one that the linker finds with -lNAME.
19241
 
library_names_spec=$lt_library_names_spec
19242
 
 
19243
 
# The coded name of the library, if different from the real name.
19244
 
soname_spec=$lt_soname_spec
19245
 
 
19246
 
# Commands used to build and install an old-style archive.
19247
 
RANLIB=$lt_RANLIB
19248
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19249
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19250
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19251
 
 
19252
 
# Create an old-style archive from a shared archive.
19253
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19254
 
 
19255
 
# Create a temporary old-style archive to link instead of a shared archive.
19256
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19257
 
 
19258
 
# Commands used to build and install a shared archive.
19259
 
archive_cmds=$lt_archive_cmds_GCJ
19260
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19261
 
postinstall_cmds=$lt_postinstall_cmds
19262
 
postuninstall_cmds=$lt_postuninstall_cmds
19263
 
 
19264
 
# Commands used to build a loadable module (assumed same as above if empty)
19265
 
module_cmds=$lt_module_cmds_GCJ
19266
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19267
 
 
19268
 
# Commands to strip libraries.
19269
 
old_striplib=$lt_old_striplib
19270
 
striplib=$lt_striplib
19271
 
 
19272
 
# Dependencies to place before the objects being linked to create a
19273
 
# shared library.
19274
 
predep_objects=$lt_predep_objects_GCJ
19275
 
 
19276
 
# Dependencies to place after the objects being linked to create a
19277
 
# shared library.
19278
 
postdep_objects=$lt_postdep_objects_GCJ
19279
 
 
19280
 
# Dependencies to place before the objects being linked to create a
19281
 
# shared library.
19282
 
predeps=$lt_predeps_GCJ
19283
 
 
19284
 
# Dependencies to place after the objects being linked to create a
19285
 
# shared library.
19286
 
postdeps=$lt_postdeps_GCJ
19287
 
 
19288
 
# The library search path used internally by the compiler when linking
19289
 
# a shared library.
19290
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19291
 
 
19292
 
# Method to check whether dependent libraries are shared objects.
19293
 
deplibs_check_method=$lt_deplibs_check_method
19294
 
 
19295
 
# Command to use when deplibs_check_method == file_magic.
19296
 
file_magic_cmd=$lt_file_magic_cmd
19297
 
 
19298
 
# Flag that allows shared libraries with undefined symbols to be built.
19299
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19300
 
 
19301
 
# Flag that forces no undefined symbols.
19302
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19303
 
 
19304
 
# Commands used to finish a libtool library installation in a directory.
19305
 
finish_cmds=$lt_finish_cmds
19306
 
 
19307
 
# Same as above, but a single script fragment to be evaled but not shown.
19308
 
finish_eval=$lt_finish_eval
19309
 
 
19310
 
# Take the output of nm and produce a listing of raw symbols and C names.
19311
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19312
 
 
19313
 
# Transform the output of nm in a proper C declaration
19314
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19315
 
 
19316
 
# Transform the output of nm in a C name address pair
19317
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19318
 
 
19319
 
# This is the shared library runtime path variable.
19320
 
runpath_var=$runpath_var
19321
 
 
19322
 
# This is the shared library path variable.
19323
 
shlibpath_var=$shlibpath_var
19324
 
 
19325
 
# Is shlibpath searched before the hard-coded library search path?
19326
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19327
 
 
19328
 
# How to hardcode a shared library path into an executable.
19329
 
hardcode_action=$hardcode_action_GCJ
19330
 
 
19331
 
# Whether we should hardcode library paths into libraries.
19332
 
hardcode_into_libs=$hardcode_into_libs
19333
 
 
19334
 
# Flag to hardcode \$libdir into a binary during linking.
19335
 
# This must work even if \$libdir does not exist.
19336
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19337
 
 
19338
 
# If ld is used when linking, flag to hardcode \$libdir into
19339
 
# a binary during linking. This must work even if \$libdir does
19340
 
# not exist.
19341
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19342
 
 
19343
 
# Whether we need a single -rpath flag with a separated argument.
19344
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19345
 
 
19346
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19347
 
# resulting binary.
19348
 
hardcode_direct=$hardcode_direct_GCJ
19349
 
 
19350
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19351
 
# resulting binary.
19352
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19353
 
 
19354
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19355
 
# the resulting binary.
19356
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19357
 
 
19358
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19359
 
# and all subsequent libraries and executables linked against it.
19360
 
hardcode_automatic=$hardcode_automatic_GCJ
19361
 
 
19362
 
# Variables whose values should be saved in libtool wrapper scripts and
19363
 
# restored at relink time.
19364
 
variables_saved_for_relink="$variables_saved_for_relink"
19365
 
 
19366
 
# Whether libtool must link a program against all its dependency libraries.
19367
 
link_all_deplibs=$link_all_deplibs_GCJ
19368
 
 
19369
 
# Compile-time system search path for libraries
19370
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19371
 
 
19372
 
# Run-time system search path for libraries
19373
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19374
 
 
19375
 
# Fix the shell variable \$srcfile for the compiler.
19376
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
19377
 
 
19378
 
# Set to yes if exported symbols are required.
19379
 
always_export_symbols=$always_export_symbols_GCJ
19380
 
 
19381
 
# The commands to list exported symbols.
19382
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19383
 
 
19384
 
# The commands to extract the exported symbol list from a shared archive.
19385
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19386
 
 
19387
 
# Symbols that should not be listed in the preloaded symbols.
19388
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19389
 
 
19390
 
# Symbols that must always be exported.
19391
 
include_expsyms=$lt_include_expsyms_GCJ
19392
 
 
19393
 
# ### END LIBTOOL TAG CONFIG: $tagname
19394
 
 
19395
 
__EOF__
19396
 
 
19397
 
 
19398
 
else
19399
 
  # If there is no Makefile yet, we rely on a make rule to execute
19400
 
  # `config.status --recheck' to rerun these tests and create the
19401
 
  # libtool script then.
19402
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19403
 
  if test -f "$ltmain_in"; then
19404
 
    test -f Makefile && make "$ltmain"
19405
 
  fi
19406
 
fi
19407
 
 
19408
 
 
19409
 
ac_ext=cpp
19410
 
ac_cpp='$CXXCPP $CPPFLAGS'
19411
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19412
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19413
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19414
 
 
19415
 
CC="$lt_save_CC"
19416
 
 
19417
 
        else
19418
 
          tagname=""
19419
 
        fi
19420
 
        ;;
19421
 
 
19422
 
      RC)
19423
 
 
19424
 
 
19425
 
# Source file extension for RC test sources.
19426
 
ac_ext=rc
19427
 
 
19428
 
# Object file extension for compiled RC test sources.
19429
 
objext=o
19430
 
objext_RC=$objext
19431
 
 
19432
 
# Code to be used in simple compile tests
19433
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19434
 
 
19435
 
# Code to be used in simple link tests
19436
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
19437
 
 
19438
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19439
 
 
19440
 
# If no C compiler was specified, use CC.
19441
 
LTCC=${LTCC-"$CC"}
19442
 
 
19443
 
# If no C compiler flags were specified, use CFLAGS.
19444
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19445
 
 
19446
 
# Allow CC to be a program name with arguments.
19447
 
compiler=$CC
19448
 
 
19449
 
 
19450
 
# save warnings/boilerplate of simple test code
19451
 
ac_outfile=conftest.$ac_objext
19452
 
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19453
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19454
 
_lt_compiler_boilerplate=`cat conftest.err`
19455
 
$rm conftest*
19456
 
 
19457
 
ac_outfile=conftest.$ac_objext
19458
 
printf "$lt_simple_link_test_code" >conftest.$ac_ext
19459
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19460
 
_lt_linker_boilerplate=`cat conftest.err`
19461
 
$rm conftest*
19462
 
 
19463
 
 
19464
 
# Allow CC to be a program name with arguments.
19465
 
lt_save_CC="$CC"
19466
 
CC=${RC-"windres"}
19467
 
compiler=$CC
19468
 
compiler_RC=$CC
19469
 
for cc_temp in $compiler""; do
19470
 
  case $cc_temp in
19471
 
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19472
 
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19473
 
    \-*) ;;
19474
 
    *) break;;
19475
 
  esac
19476
 
done
19477
 
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19478
 
 
19479
 
lt_cv_prog_compiler_c_o_RC=yes
19480
 
 
19481
 
# The else clause should only fire when bootstrapping the
19482
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19483
 
# with your package, and you will get complaints that there are
19484
 
# no rules to generate ltmain.sh.
19485
 
if test -f "$ltmain"; then
19486
 
  # See if we are running on zsh, and set the options which allow our commands through
19487
 
  # without removal of \ escapes.
19488
 
  if test -n "${ZSH_VERSION+set}" ; then
19489
 
    setopt NO_GLOB_SUBST
19490
 
  fi
19491
 
  # Now quote all the things that may contain metacharacters while being
19492
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19493
 
  # variables and quote the copies for generation of the libtool script.
19494
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19495
 
    SED SHELL STRIP \
19496
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19497
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19498
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19499
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19500
 
    lt_cv_sys_global_symbol_to_c_name_address \
19501
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19502
 
    old_postinstall_cmds old_postuninstall_cmds \
19503
 
    compiler_RC \
19504
 
    CC_RC \
19505
 
    LD_RC \
19506
 
    lt_prog_compiler_wl_RC \
19507
 
    lt_prog_compiler_pic_RC \
19508
 
    lt_prog_compiler_static_RC \
19509
 
    lt_prog_compiler_no_builtin_flag_RC \
19510
 
    export_dynamic_flag_spec_RC \
19511
 
    thread_safe_flag_spec_RC \
19512
 
    whole_archive_flag_spec_RC \
19513
 
    enable_shared_with_static_runtimes_RC \
19514
 
    old_archive_cmds_RC \
19515
 
    old_archive_from_new_cmds_RC \
19516
 
    predep_objects_RC \
19517
 
    postdep_objects_RC \
19518
 
    predeps_RC \
19519
 
    postdeps_RC \
19520
 
    compiler_lib_search_path_RC \
19521
 
    archive_cmds_RC \
19522
 
    archive_expsym_cmds_RC \
19523
 
    postinstall_cmds_RC \
19524
 
    postuninstall_cmds_RC \
19525
 
    old_archive_from_expsyms_cmds_RC \
19526
 
    allow_undefined_flag_RC \
19527
 
    no_undefined_flag_RC \
19528
 
    export_symbols_cmds_RC \
19529
 
    hardcode_libdir_flag_spec_RC \
19530
 
    hardcode_libdir_flag_spec_ld_RC \
19531
 
    hardcode_libdir_separator_RC \
19532
 
    hardcode_automatic_RC \
19533
 
    module_cmds_RC \
19534
 
    module_expsym_cmds_RC \
19535
 
    lt_cv_prog_compiler_c_o_RC \
19536
 
    exclude_expsyms_RC \
19537
 
    include_expsyms_RC; do
19538
 
 
19539
 
    case $var in
19540
 
    old_archive_cmds_RC | \
19541
 
    old_archive_from_new_cmds_RC | \
19542
 
    archive_cmds_RC | \
19543
 
    archive_expsym_cmds_RC | \
19544
 
    module_cmds_RC | \
19545
 
    module_expsym_cmds_RC | \
19546
 
    old_archive_from_expsyms_cmds_RC | \
19547
 
    export_symbols_cmds_RC | \
19548
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19549
 
    postinstall_cmds | postuninstall_cmds | \
19550
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19551
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19552
 
      # Double-quote double-evaled strings.
19553
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19554
 
      ;;
19555
 
    *)
19556
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19557
 
      ;;
19558
 
    esac
19559
 
  done
19560
 
 
19561
 
  case $lt_echo in
19562
 
  *'\$0 --fallback-echo"')
19563
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19564
 
    ;;
19565
 
  esac
19566
 
 
19567
 
cfgfile="$ofile"
19568
 
 
19569
 
  cat <<__EOF__ >> "$cfgfile"
19570
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19571
 
 
19572
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19573
 
 
19574
 
# Shell to use when invoking shell scripts.
19575
 
SHELL=$lt_SHELL
19576
 
 
19577
 
# Whether or not to build shared libraries.
19578
 
build_libtool_libs=$enable_shared
19579
 
 
19580
 
# Whether or not to build static libraries.
19581
 
build_old_libs=$enable_static
19582
 
 
19583
 
# Whether or not to add -lc for building shared libraries.
19584
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
19585
 
 
19586
 
# Whether or not to disallow shared libs when runtime libs are static
19587
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19588
 
 
19589
 
# Whether or not to optimize for fast installation.
19590
 
fast_install=$enable_fast_install
19591
 
 
19592
 
# The host system.
19593
 
host_alias=$host_alias
19594
 
host=$host
19595
 
host_os=$host_os
19596
 
 
19597
 
# The build system.
19598
 
build_alias=$build_alias
19599
 
build=$build
19600
 
build_os=$build_os
19601
 
 
19602
 
# An echo program that does not interpret backslashes.
19603
 
echo=$lt_echo
19604
 
 
19605
 
# The archiver.
19606
 
AR=$lt_AR
19607
 
AR_FLAGS=$lt_AR_FLAGS
19608
 
 
19609
 
# A C compiler.
19610
 
LTCC=$lt_LTCC
19611
 
 
19612
 
# LTCC compiler flags.
19613
 
LTCFLAGS=$lt_LTCFLAGS
19614
 
 
19615
 
# A language-specific compiler.
19616
 
CC=$lt_compiler_RC
19617
 
 
19618
 
# Is the compiler the GNU C compiler?
19619
 
with_gcc=$GCC_RC
19620
 
 
19621
 
# An ERE matcher.
19622
 
EGREP=$lt_EGREP
19623
 
 
19624
 
# The linker used to build libraries.
19625
 
LD=$lt_LD_RC
19626
 
 
19627
 
# Whether we need hard or soft links.
19628
 
LN_S=$lt_LN_S
19629
 
 
19630
 
# A BSD-compatible nm program.
19631
 
NM=$lt_NM
19632
 
 
19633
 
# A symbol stripping program
19634
 
STRIP=$lt_STRIP
19635
 
 
19636
 
# Used to examine libraries when file_magic_cmd begins "file"
19637
 
MAGIC_CMD=$MAGIC_CMD
19638
 
 
19639
 
# Used on cygwin: DLL creation program.
19640
 
DLLTOOL="$DLLTOOL"
19641
 
 
19642
 
# Used on cygwin: object dumper.
19643
 
OBJDUMP="$OBJDUMP"
19644
 
 
19645
 
# Used on cygwin: assembler.
19646
 
AS="$AS"
19647
 
 
19648
 
# The name of the directory that contains temporary libtool files.
19649
 
objdir=$objdir
19650
 
 
19651
 
# How to create reloadable object files.
19652
 
reload_flag=$lt_reload_flag
19653
 
reload_cmds=$lt_reload_cmds
19654
 
 
19655
 
# How to pass a linker flag through the compiler.
19656
 
wl=$lt_lt_prog_compiler_wl_RC
19657
 
 
19658
 
# Object file suffix (normally "o").
19659
 
objext="$ac_objext"
19660
 
 
19661
 
# Old archive suffix (normally "a").
19662
 
libext="$libext"
19663
 
 
19664
 
# Shared library suffix (normally ".so").
19665
 
shrext_cmds='$shrext_cmds'
19666
 
 
19667
 
# Executable file suffix (normally "").
19668
 
exeext="$exeext"
19669
 
 
19670
 
# Additional compiler flags for building library objects.
19671
 
pic_flag=$lt_lt_prog_compiler_pic_RC
19672
 
pic_mode=$pic_mode
19673
 
 
19674
 
# What is the maximum length of a command?
19675
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19676
 
 
19677
 
# Does compiler simultaneously support -c and -o options?
19678
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19679
 
 
19680
 
# Must we lock files when doing compilation?
19681
 
need_locks=$lt_need_locks
19682
 
 
19683
 
# Do we need the lib prefix for modules?
19684
 
need_lib_prefix=$need_lib_prefix
19685
 
 
19686
 
# Do we need a version for libraries?
19687
 
need_version=$need_version
19688
 
 
19689
 
# Whether dlopen is supported.
19690
 
dlopen_support=$enable_dlopen
19691
 
 
19692
 
# Whether dlopen of programs is supported.
19693
 
dlopen_self=$enable_dlopen_self
19694
 
 
19695
 
# Whether dlopen of statically linked programs is supported.
19696
 
dlopen_self_static=$enable_dlopen_self_static
19697
 
 
19698
 
# Compiler flag to prevent dynamic linking.
19699
 
link_static_flag=$lt_lt_prog_compiler_static_RC
19700
 
 
19701
 
# Compiler flag to turn off builtin functions.
19702
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19703
 
 
19704
 
# Compiler flag to allow reflexive dlopens.
19705
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19706
 
 
19707
 
# Compiler flag to generate shared objects directly from archives.
19708
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19709
 
 
19710
 
# Compiler flag to generate thread-safe objects.
19711
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19712
 
 
19713
 
# Library versioning type.
19714
 
version_type=$version_type
19715
 
 
19716
 
# Format of library name prefix.
19717
 
libname_spec=$lt_libname_spec
19718
 
 
19719
 
# List of archive names.  First name is the real one, the rest are links.
19720
 
# The last name is the one that the linker finds with -lNAME.
19721
 
library_names_spec=$lt_library_names_spec
19722
 
 
19723
 
# The coded name of the library, if different from the real name.
19724
 
soname_spec=$lt_soname_spec
19725
 
 
19726
 
# Commands used to build and install an old-style archive.
19727
 
RANLIB=$lt_RANLIB
19728
 
old_archive_cmds=$lt_old_archive_cmds_RC
19729
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19730
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19731
 
 
19732
 
# Create an old-style archive from a shared archive.
19733
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19734
 
 
19735
 
# Create a temporary old-style archive to link instead of a shared archive.
19736
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19737
 
 
19738
 
# Commands used to build and install a shared archive.
19739
 
archive_cmds=$lt_archive_cmds_RC
19740
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19741
 
postinstall_cmds=$lt_postinstall_cmds
19742
 
postuninstall_cmds=$lt_postuninstall_cmds
19743
 
 
19744
 
# Commands used to build a loadable module (assumed same as above if empty)
19745
 
module_cmds=$lt_module_cmds_RC
19746
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
19747
 
 
19748
 
# Commands to strip libraries.
19749
 
old_striplib=$lt_old_striplib
19750
 
striplib=$lt_striplib
19751
 
 
19752
 
# Dependencies to place before the objects being linked to create a
19753
 
# shared library.
19754
 
predep_objects=$lt_predep_objects_RC
19755
 
 
19756
 
# Dependencies to place after the objects being linked to create a
19757
 
# shared library.
19758
 
postdep_objects=$lt_postdep_objects_RC
19759
 
 
19760
 
# Dependencies to place before the objects being linked to create a
19761
 
# shared library.
19762
 
predeps=$lt_predeps_RC
19763
 
 
19764
 
# Dependencies to place after the objects being linked to create a
19765
 
# shared library.
19766
 
postdeps=$lt_postdeps_RC
19767
 
 
19768
 
# The library search path used internally by the compiler when linking
19769
 
# a shared library.
19770
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19771
 
 
19772
 
# Method to check whether dependent libraries are shared objects.
19773
 
deplibs_check_method=$lt_deplibs_check_method
19774
 
 
19775
 
# Command to use when deplibs_check_method == file_magic.
19776
 
file_magic_cmd=$lt_file_magic_cmd
19777
 
 
19778
 
# Flag that allows shared libraries with undefined symbols to be built.
19779
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
19780
 
 
19781
 
# Flag that forces no undefined symbols.
19782
 
no_undefined_flag=$lt_no_undefined_flag_RC
19783
 
 
19784
 
# Commands used to finish a libtool library installation in a directory.
19785
 
finish_cmds=$lt_finish_cmds
19786
 
 
19787
 
# Same as above, but a single script fragment to be evaled but not shown.
19788
 
finish_eval=$lt_finish_eval
19789
 
 
19790
 
# Take the output of nm and produce a listing of raw symbols and C names.
19791
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19792
 
 
19793
 
# Transform the output of nm in a proper C declaration
19794
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19795
 
 
19796
 
# Transform the output of nm in a C name address pair
19797
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19798
 
 
19799
 
# This is the shared library runtime path variable.
19800
 
runpath_var=$runpath_var
19801
 
 
19802
 
# This is the shared library path variable.
19803
 
shlibpath_var=$shlibpath_var
19804
 
 
19805
 
# Is shlibpath searched before the hard-coded library search path?
19806
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19807
 
 
19808
 
# How to hardcode a shared library path into an executable.
19809
 
hardcode_action=$hardcode_action_RC
19810
 
 
19811
 
# Whether we should hardcode library paths into libraries.
19812
 
hardcode_into_libs=$hardcode_into_libs
19813
 
 
19814
 
# Flag to hardcode \$libdir into a binary during linking.
19815
 
# This must work even if \$libdir does not exist.
19816
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19817
 
 
19818
 
# If ld is used when linking, flag to hardcode \$libdir into
19819
 
# a binary during linking. This must work even if \$libdir does
19820
 
# not exist.
19821
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19822
 
 
19823
 
# Whether we need a single -rpath flag with a separated argument.
19824
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19825
 
 
19826
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19827
 
# resulting binary.
19828
 
hardcode_direct=$hardcode_direct_RC
19829
 
 
19830
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19831
 
# resulting binary.
19832
 
hardcode_minus_L=$hardcode_minus_L_RC
19833
 
 
19834
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19835
 
# the resulting binary.
19836
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19837
 
 
19838
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19839
 
# and all subsequent libraries and executables linked against it.
19840
 
hardcode_automatic=$hardcode_automatic_RC
19841
 
 
19842
 
# Variables whose values should be saved in libtool wrapper scripts and
19843
 
# restored at relink time.
19844
 
variables_saved_for_relink="$variables_saved_for_relink"
19845
 
 
19846
 
# Whether libtool must link a program against all its dependency libraries.
19847
 
link_all_deplibs=$link_all_deplibs_RC
19848
 
 
19849
 
# Compile-time system search path for libraries
19850
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19851
 
 
19852
 
# Run-time system search path for libraries
19853
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19854
 
 
19855
 
# Fix the shell variable \$srcfile for the compiler.
19856
 
fix_srcfile_path="$fix_srcfile_path_RC"
19857
 
 
19858
 
# Set to yes if exported symbols are required.
19859
 
always_export_symbols=$always_export_symbols_RC
19860
 
 
19861
 
# The commands to list exported symbols.
19862
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
19863
 
 
19864
 
# The commands to extract the exported symbol list from a shared archive.
19865
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19866
 
 
19867
 
# Symbols that should not be listed in the preloaded symbols.
19868
 
exclude_expsyms=$lt_exclude_expsyms_RC
19869
 
 
19870
 
# Symbols that must always be exported.
19871
 
include_expsyms=$lt_include_expsyms_RC
19872
 
 
19873
 
# ### END LIBTOOL TAG CONFIG: $tagname
19874
 
 
19875
 
__EOF__
19876
 
 
19877
 
 
19878
 
else
19879
 
  # If there is no Makefile yet, we rely on a make rule to execute
19880
 
  # `config.status --recheck' to rerun these tests and create the
19881
 
  # libtool script then.
19882
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19883
 
  if test -f "$ltmain_in"; then
19884
 
    test -f Makefile && make "$ltmain"
19885
 
  fi
19886
 
fi
19887
 
 
19888
 
 
19889
 
ac_ext=cpp
19890
 
ac_cpp='$CXXCPP $CPPFLAGS'
19891
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19892
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19893
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19894
 
 
19895
 
CC="$lt_save_CC"
19896
 
 
19897
 
        ;;
19898
 
 
19899
 
      *)
19900
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19901
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19902
 
   { (exit 1); exit 1; }; }
19903
 
        ;;
19904
 
      esac
19905
 
 
19906
 
      # Append the new tag name to the list of available tags.
19907
 
      if test -n "$tagname" ; then
19908
 
      available_tags="$available_tags $tagname"
19909
 
    fi
19910
 
    fi
19911
 
  done
19912
 
  IFS="$lt_save_ifs"
19913
 
 
19914
 
  # Now substitute the updated list of available tags.
19915
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19916
 
    mv "${ofile}T" "$ofile"
19917
 
    chmod +x "$ofile"
19918
 
  else
19919
 
    rm -f "${ofile}T"
19920
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19921
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19922
 
   { (exit 1); exit 1; }; }
19923
 
  fi
19924
 
fi
19925
 
 
19926
 
 
19927
 
 
19928
 
# This can be used to rebuild libtool when needed
19929
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19930
 
 
19931
 
# Always use our own libtool.
19932
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19933
 
 
19934
 
# Prevent multiple expansion
19935
 
 
19936
 
 
19937
 
 
19938
 
 
19939
 
 
19940
 
 
19941
 
 
19942
 
 
19943
 
 
19944
 
 
19945
 
 
19946
 
 
19947
 
 
19948
 
 
19949
 
 
19950
 
 
19951
 
 
19952
 
 
19953
 
 
19954
 
 
19955
 
 
19956
 
# Check for libxml2
19957
 
 
19958
 
 
19959
 
# Check whether --with-xml-prefix was given.
19960
 
if test "${with_xml_prefix+set}" = set; then
19961
 
  withval=$with_xml_prefix; xml_config_prefix="$withval"
19962
 
else
19963
 
  xml_config_prefix=""
19964
 
fi
19965
 
 
19966
 
 
19967
 
# Check whether --with-xml-exec-prefix was given.
19968
 
if test "${with_xml_exec_prefix+set}" = set; then
19969
 
  withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
19970
 
else
19971
 
  xml_config_exec_prefix=""
19972
 
fi
19973
 
 
19974
 
# Check whether --enable-xmltest was given.
19975
 
if test "${enable_xmltest+set}" = set; then
19976
 
  enableval=$enable_xmltest;
19977
 
else
19978
 
  enable_xmltest=yes
19979
 
fi
19980
 
 
19981
 
 
19982
 
  if test x$xml_config_exec_prefix != x ; then
19983
 
     xml_config_args="$xml_config_args"
19984
 
     if test x${XML2_CONFIG+set} != xset ; then
19985
 
        XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
19986
 
     fi
19987
 
  fi
19988
 
  if test x$xml_config_prefix != x ; then
19989
 
     xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
19990
 
     if test x${XML2_CONFIG+set} != xset ; then
19991
 
        XML2_CONFIG=$xml_config_prefix/bin/xml2-config
19992
 
     fi
19993
 
  fi
19994
 
 
19995
 
  # Extract the first word of "xml2-config", so it can be a program name with args.
19996
 
set dummy xml2-config; ac_word=$2
19997
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19998
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19999
 
if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
20000
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20001
 
else
20002
 
  case $XML2_CONFIG in
20003
 
  [\\/]* | ?:[\\/]*)
20004
 
  ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
20005
 
  ;;
20006
 
  *)
20007
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20008
 
for as_dir in $PATH
20009
 
do
20010
 
  IFS=$as_save_IFS
20011
 
  test -z "$as_dir" && as_dir=.
20012
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20013
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20014
 
    ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20015
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20016
 
    break 2
20017
 
  fi
20018
 
done
20019
 
done
20020
 
IFS=$as_save_IFS
20021
 
 
20022
 
  test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
20023
 
  ;;
20024
 
esac
20025
 
fi
20026
 
XML2_CONFIG=$ac_cv_path_XML2_CONFIG
20027
 
if test -n "$XML2_CONFIG"; then
20028
 
  { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
20029
 
echo "${ECHO_T}$XML2_CONFIG" >&6; }
20030
 
else
20031
 
  { echo "$as_me:$LINENO: result: no" >&5
20032
 
echo "${ECHO_T}no" >&6; }
20033
 
fi
20034
 
 
20035
 
 
20036
 
  min_xml_version=2.0.0
20037
 
  { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
20038
 
echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
20039
 
  no_xml=""
20040
 
  if test "$XML2_CONFIG" = "no" ; then
20041
 
    no_xml=yes
20042
 
  else
20043
 
    XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
20044
 
    XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
20045
 
    xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
20046
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20047
 
    xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
20048
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20049
 
    xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
20050
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20051
 
    if test "x$enable_xmltest" = "xyes" ; then
20052
 
      ac_save_CPPFLAGS="$CPPFLAGS"
20053
 
      ac_save_LIBS="$LIBS"
20054
 
      CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
20055
 
      LIBS="$XML_LIBS $LIBS"
20056
 
      rm -f conf.xmltest
20057
 
      if test "$cross_compiling" = yes; then
20058
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
20059
 
else
20060
 
  cat >conftest.$ac_ext <<_ACEOF
20061
 
/* confdefs.h.  */
20062
 
_ACEOF
20063
 
cat confdefs.h >>conftest.$ac_ext
20064
 
cat >>conftest.$ac_ext <<_ACEOF
20065
 
/* end confdefs.h.  */
20066
 
 
20067
 
#include <stdlib.h>
20068
 
#include <stdio.h>
20069
 
#include <string.h>
20070
 
#include <libxml/xmlversion.h>
20071
 
 
20072
 
int
20073
 
main()
20074
 
{
20075
 
  int xml_major_version, xml_minor_version, xml_micro_version;
20076
 
  int major, minor, micro;
20077
 
  char *tmp_version;
20078
 
 
20079
 
  system("touch conf.xmltest");
20080
 
 
20081
 
  /* Capture xml2-config output via autoconf/configure variables */
20082
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
20083
 
  tmp_version = (char *)strdup("$min_xml_version");
20084
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20085
 
     printf("%s, bad version string from xml2-config\n", "$min_xml_version");
20086
 
     exit(1);
20087
 
   }
20088
 
   free(tmp_version);
20089
 
 
20090
 
   /* Capture the version information from the header files */
20091
 
   tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
20092
 
   if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
20093
 
     printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
20094
 
     exit(1);
20095
 
   }
20096
 
   free(tmp_version);
20097
 
 
20098
 
 /* Compare xml2-config output to the libxml headers */
20099
 
  if ((xml_major_version != $xml_config_major_version) ||
20100
 
      (xml_minor_version != $xml_config_minor_version) ||
20101
 
      (xml_micro_version != $xml_config_micro_version))
20102
 
    {
20103
 
      printf("*** libxml header files (version %d.%d.%d) do not match\n",
20104
 
         xml_major_version, xml_minor_version, xml_micro_version);
20105
 
      printf("*** xml2-config (version %d.%d.%d)\n",
20106
 
         $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
20107
 
      return 1;
20108
 
    }
20109
 
/* Compare the headers to the library to make sure we match */
20110
 
  /* Less than ideal -- doesn't provide us with return value feedback,
20111
 
   * only exits if there's a serious mismatch between header and library.
20112
 
   */
20113
 
    LIBXML_TEST_VERSION;
20114
 
 
20115
 
    /* Test that the library is greater than our minimum version */
20116
 
    if ((xml_major_version > major) ||
20117
 
        ((xml_major_version == major) && (xml_minor_version > minor)) ||
20118
 
        ((xml_major_version == major) && (xml_minor_version == minor) &&
20119
 
        (xml_micro_version >= micro)))
20120
 
      {
20121
 
        return 0;
20122
 
       }
20123
 
     else
20124
 
      {
20125
 
        printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
20126
 
               xml_major_version, xml_minor_version, xml_micro_version);
20127
 
        printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
20128
 
           major, minor, micro);
20129
 
        printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
20130
 
        printf("***\n");
20131
 
        printf("*** If you have already installed a sufficiently new version, this error\n");
20132
 
        printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
20133
 
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
20134
 
        printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
20135
 
        printf("*** correct copy of xml2-config. (In this case, you will have to\n");
20136
 
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20137
 
        printf("*** so that the correct libraries are found at run-time))\n");
20138
 
    }
20139
 
  return 1;
20140
 
}
20141
 
 
20142
 
_ACEOF
20143
 
rm -f conftest$ac_exeext
20144
 
if { (ac_try="$ac_link"
20145
 
case "(($ac_try" in
20146
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147
 
  *) ac_try_echo=$ac_try;;
20148
 
esac
20149
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150
 
  (eval "$ac_link") 2>&5
20151
 
  ac_status=$?
20152
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20154
 
  { (case "(($ac_try" in
20155
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156
 
  *) ac_try_echo=$ac_try;;
20157
 
esac
20158
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159
 
  (eval "$ac_try") 2>&5
20160
 
  ac_status=$?
20161
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
 
  (exit $ac_status); }; }; then
20163
 
  :
20164
 
else
20165
 
  echo "$as_me: program exited with status $ac_status" >&5
20166
 
echo "$as_me: failed program was:" >&5
20167
 
sed 's/^/| /' conftest.$ac_ext >&5
20168
 
 
20169
 
( exit $ac_status )
20170
 
no_xml=yes
20171
 
fi
20172
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20173
 
fi
20174
 
 
20175
 
 
20176
 
       CPPFLAGS="$ac_save_CPPFLAGS"
20177
 
       LIBS="$ac_save_LIBS"
20178
 
     fi
20179
 
  fi
20180
 
 
20181
 
  if test "x$no_xml" = x ; then
20182
 
     { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
20183
 
echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
20184
 
     libxml2_found=yes
20185
 
  else
20186
 
     { echo "$as_me:$LINENO: result: no" >&5
20187
 
echo "${ECHO_T}no" >&6; }
20188
 
     if test "$XML2_CONFIG" = "no" ; then
20189
 
       echo "*** The xml2-config script installed by LIBXML could not be found"
20190
 
       echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
20191
 
       echo "*** your path, or set the XML2_CONFIG environment variable to the"
20192
 
       echo "*** full path to xml2-config."
20193
 
     else
20194
 
       if test -f conf.xmltest ; then
20195
 
        :
20196
 
       else
20197
 
          echo "*** Could not run libxml test program, checking why..."
20198
 
          CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
20199
 
          LIBS="$LIBS $XML_LIBS"
20200
 
          cat >conftest.$ac_ext <<_ACEOF
20201
 
/* confdefs.h.  */
20202
 
_ACEOF
20203
 
cat confdefs.h >>conftest.$ac_ext
20204
 
cat >>conftest.$ac_ext <<_ACEOF
20205
 
/* end confdefs.h.  */
20206
 
 
20207
 
#include <libxml/xmlversion.h>
20208
 
#include <stdio.h>
20209
 
 
20210
 
int
20211
 
main ()
20212
 
{
20213
 
 LIBXML_TEST_VERSION; return 0;
20214
 
  ;
20215
 
  return 0;
20216
 
}
20217
 
_ACEOF
20218
 
rm -f conftest.$ac_objext conftest$ac_exeext
20219
 
if { (ac_try="$ac_link"
20220
 
case "(($ac_try" in
20221
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222
 
  *) ac_try_echo=$ac_try;;
20223
 
esac
20224
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20225
 
  (eval "$ac_link") 2>conftest.er1
20226
 
  ac_status=$?
20227
 
  grep -v '^ *+' conftest.er1 >conftest.err
20228
 
  rm -f conftest.er1
20229
 
  cat conftest.err >&5
20230
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20231
 
  (exit $ac_status); } && {
20232
 
         test -z "$ac_cxx_werror_flag" ||
20233
 
         test ! -s conftest.err
20234
 
       } && test -s conftest$ac_exeext &&
20235
 
       $as_test_x conftest$ac_exeext; then
20236
 
   echo "*** The test program compiled, but did not run. This usually means"
20237
 
          echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
20238
 
          echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
20239
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20240
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
20241
 
          echo "*** is required on your system"
20242
 
          echo "***"
20243
 
          echo "*** If you have an old version installed, it is best to remove it, although"
20244
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
20245
 
else
20246
 
  echo "$as_me: failed program was:" >&5
20247
 
sed 's/^/| /' conftest.$ac_ext >&5
20248
 
 
20249
 
         echo "*** The test program failed to compile or link. See the file config.log for the"
20250
 
          echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
20251
 
          echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
20252
 
          echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
20253
 
fi
20254
 
 
20255
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20256
 
      conftest$ac_exeext conftest.$ac_ext
20257
 
          CPPFLAGS="$ac_save_CPPFLAGS"
20258
 
          LIBS="$ac_save_LIBS"
20259
 
       fi
20260
 
     fi
20261
 
 
20262
 
     XML_CPPFLAGS=""
20263
 
     XML_LIBS=""
20264
 
     libxml2_found=no
20265
 
  fi
20266
 
 
20267
 
 
20268
 
  rm -f conf.xmltest
20269
 
 
20270
 
if test $libxml2_found = no; then
20271
 
    echo "*** Unable to find libxml2 development files on your system."
20272
 
    echo "*** Perhaps you need to install the packages libxml2 and libxml2-dev?"
20273
 
    exit 1
20274
 
fi
20275
 
 
20276
 
# Check for Boost
20277
 
 
20278
 
 
20279
 
# Check whether --with-boost was given.
20280
 
if test "${with_boost+set}" = set; then
20281
 
  withval=$with_boost;
20282
 
    if test "$withval" = "no"; then
20283
 
                want_boost="no"
20284
 
    elif test "$withval" = "yes"; then
20285
 
        want_boost="yes"
20286
 
        ac_boost_path=""
20287
 
    else
20288
 
            want_boost="yes"
20289
 
        ac_boost_path="$withval"
20290
 
        fi
20291
 
 
20292
 
else
20293
 
  want_boost="yes"
20294
 
fi
20295
 
 
20296
 
 
20297
 
if test "x$want_boost" = "xyes"; then
20298
 
        boost_lib_version_req=1.33
20299
 
        boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
20300
 
        boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
20301
 
        boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
20302
 
        boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
20303
 
        if test "x$boost_lib_version_req_sub_minor" = "x" ; then
20304
 
                boost_lib_version_req_sub_minor="0"
20305
 
        fi
20306
 
        WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+  $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
20307
 
        { echo "$as_me:$LINENO: checking for boostlib >= $boost_lib_version_req" >&5
20308
 
echo $ECHO_N "checking for boostlib >= $boost_lib_version_req... $ECHO_C" >&6; }
20309
 
        succeeded=no
20310
 
 
20311
 
                                if test "$ac_boost_path" != ""; then
20312
 
                BOOST_LDFLAGS="-L$ac_boost_path/lib"
20313
 
                BOOST_CPPFLAGS="-I$ac_boost_path/include"
20314
 
        else
20315
 
                for ac_boost_path_tmp in /usr /usr/local /opt ; do
20316
 
                        if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
20317
 
                                BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
20318
 
                                BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
20319
 
                                break;
20320
 
                        fi
20321
 
                done
20322
 
        fi
20323
 
 
20324
 
        CPPFLAGS_SAVED="$CPPFLAGS"
20325
 
        CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20326
 
        export CPPFLAGS
20327
 
 
20328
 
        LDFLAGS_SAVED="$LDFLAGS"
20329
 
        LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20330
 
        export LDFLAGS
20331
 
 
20332
 
        ac_ext=cpp
20333
 
ac_cpp='$CXXCPP $CPPFLAGS'
20334
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20335
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20336
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20337
 
 
20338
 
        cat >conftest.$ac_ext <<_ACEOF
20339
 
/* confdefs.h.  */
20340
 
_ACEOF
20341
 
cat confdefs.h >>conftest.$ac_ext
20342
 
cat >>conftest.$ac_ext <<_ACEOF
20343
 
/* end confdefs.h.  */
20344
 
 
20345
 
        #include <boost/version.hpp>
20346
 
 
20347
 
int
20348
 
main ()
20349
 
{
20350
 
 
20351
 
        #if BOOST_VERSION >= $WANT_BOOST_VERSION
20352
 
        // Everything is okay
20353
 
        #else
20354
 
        #  error Boost version is too old
20355
 
        #endif
20356
 
 
20357
 
  ;
20358
 
  return 0;
20359
 
}
20360
 
_ACEOF
20361
 
rm -f conftest.$ac_objext
20362
 
if { (ac_try="$ac_compile"
20363
 
case "(($ac_try" in
20364
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365
 
  *) ac_try_echo=$ac_try;;
20366
 
esac
20367
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368
 
  (eval "$ac_compile") 2>conftest.er1
20369
 
  ac_status=$?
20370
 
  grep -v '^ *+' conftest.er1 >conftest.err
20371
 
  rm -f conftest.er1
20372
 
  cat conftest.err >&5
20373
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374
 
  (exit $ac_status); } && {
20375
 
         test -z "$ac_cxx_werror_flag" ||
20376
 
         test ! -s conftest.err
20377
 
       } && test -s conftest.$ac_objext; then
20378
 
 
20379
 
        { echo "$as_me:$LINENO: result: yes" >&5
20380
 
echo "${ECHO_T}yes" >&6; }
20381
 
        succeeded=yes
20382
 
        found_system=yes
20383
 
 
20384
 
else
20385
 
  echo "$as_me: failed program was:" >&5
20386
 
sed 's/^/| /' conftest.$ac_ext >&5
20387
 
 
20388
 
 
20389
 
 
20390
 
fi
20391
 
 
20392
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20393
 
        ac_ext=cpp
20394
 
ac_cpp='$CXXCPP $CPPFLAGS'
20395
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20398
 
 
20399
 
 
20400
 
 
20401
 
 
20402
 
                        if test "x$succeeded" != "xyes"; then
20403
 
                _version=0
20404
 
                if test "$ac_boost_path" != ""; then
20405
 
                        BOOST_LDFLAGS="-L$ac_boost_path/lib"
20406
 
                        if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20407
 
                                for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20408
 
                                        _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20409
 
                                        V_CHECK=`expr $_version_tmp \> $_version`
20410
 
                                        if test "$V_CHECK" = "1" ; then
20411
 
                                                _version=$_version_tmp
20412
 
                                        fi
20413
 
                                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20414
 
                                        BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
20415
 
                                done
20416
 
                        fi
20417
 
                else
20418
 
                        for ac_boost_path in /usr /usr/local /opt ; do
20419
 
                                if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
20420
 
                                        for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
20421
 
                                                _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
20422
 
                                                V_CHECK=`expr $_version_tmp \> $_version`
20423
 
                                                if test "$V_CHECK" = "1" ; then
20424
 
                                                        _version=$_version_tmp
20425
 
                                                        best_path=$ac_boost_path
20426
 
                                                fi
20427
 
                                        done
20428
 
                                fi
20429
 
                        done
20430
 
 
20431
 
                        VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
20432
 
                        BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
20433
 
                        BOOST_LDFLAGS="-L$best_path/lib"
20434
 
 
20435
 
                        if test "x$BOOST_ROOT" != "x"; then
20436
 
                                if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
20437
 
                                        version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
20438
 
                                        stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
20439
 
                                        stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
20440
 
                                        V_CHECK=`expr $stage_version_shorten \>\= $_version`
20441
 
                                        if test "$V_CHECK" = "1" ; then
20442
 
                                                { echo "$as_me:$LINENO: We will use a staged boost library from $BOOST_ROOT" >&5
20443
 
echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
20444
 
                                                BOOST_CPPFLAGS="-I$BOOST_ROOT"
20445
 
                                                BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
20446
 
                                        fi
20447
 
                                fi
20448
 
                        fi
20449
 
                fi
20450
 
 
20451
 
                CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
20452
 
                export CPPFLAGS
20453
 
                LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
20454
 
                export LDFLAGS
20455
 
 
20456
 
                ac_ext=cpp
20457
 
ac_cpp='$CXXCPP $CPPFLAGS'
20458
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20459
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20460
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20461
 
 
20462
 
                cat >conftest.$ac_ext <<_ACEOF
20463
 
/* confdefs.h.  */
20464
 
_ACEOF
20465
 
cat confdefs.h >>conftest.$ac_ext
20466
 
cat >>conftest.$ac_ext <<_ACEOF
20467
 
/* end confdefs.h.  */
20468
 
 
20469
 
                #include <boost/version.hpp>
20470
 
 
20471
 
int
20472
 
main ()
20473
 
{
20474
 
 
20475
 
                #if BOOST_VERSION >= $WANT_BOOST_VERSION
20476
 
                // Everything is okay
20477
 
                #else
20478
 
                #  error Boost version is too old
20479
 
                #endif
20480
 
 
20481
 
  ;
20482
 
  return 0;
20483
 
}
20484
 
_ACEOF
20485
 
rm -f conftest.$ac_objext
20486
 
if { (ac_try="$ac_compile"
20487
 
case "(($ac_try" in
20488
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20489
 
  *) ac_try_echo=$ac_try;;
20490
 
esac
20491
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20492
 
  (eval "$ac_compile") 2>conftest.er1
20493
 
  ac_status=$?
20494
 
  grep -v '^ *+' conftest.er1 >conftest.err
20495
 
  rm -f conftest.er1
20496
 
  cat conftest.err >&5
20497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498
 
  (exit $ac_status); } && {
20499
 
         test -z "$ac_cxx_werror_flag" ||
20500
 
         test ! -s conftest.err
20501
 
       } && test -s conftest.$ac_objext; then
20502
 
 
20503
 
                { echo "$as_me:$LINENO: result: yes" >&5
20504
 
echo "${ECHO_T}yes" >&6; }
20505
 
                succeeded=yes
20506
 
                found_system=yes
20507
 
 
20508
 
else
20509
 
  echo "$as_me: failed program was:" >&5
20510
 
sed 's/^/| /' conftest.$ac_ext >&5
20511
 
 
20512
 
 
20513
 
 
20514
 
fi
20515
 
 
20516
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517
 
                ac_ext=cpp
20518
 
ac_cpp='$CXXCPP $CPPFLAGS'
20519
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522
 
 
20523
 
        fi
20524
 
 
20525
 
        if test "$succeeded" != "yes" ; then
20526
 
                if test "$_version" = "0" ; then
20527
 
                        { { echo "$as_me:$LINENO: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&5
20528
 
echo "$as_me: error: We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option.  If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." >&2;}
20529
 
   { (exit 1); exit 1; }; }
20530
 
                else
20531
 
                        { echo "$as_me:$LINENO: Your boost libraries seems to old (version $_version)." >&5
20532
 
echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
20533
 
                fi
20534
 
        else
20535
 
 
20536
 
 
20537
 
 
20538
 
cat >>confdefs.h <<\_ACEOF
20539
 
#define HAVE_BOOST
20540
 
_ACEOF
20541
 
 
20542
 
        fi
20543
 
 
20544
 
        CPPFLAGS="$CPPFLAGS_SAVED"
20545
 
        LDFLAGS="$LDFLAGS_SAVED"
20546
 
fi
20547
 
 
20548
 
 
20549
 
 
20550
 
# Check for Glib
20551
 
 
20552
 
 
20553
 
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20554
 
        if test -n "$ac_tool_prefix"; then
20555
 
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20556
 
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20557
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20558
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20559
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20560
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20561
 
else
20562
 
  case $PKG_CONFIG in
20563
 
  [\\/]* | ?:[\\/]*)
20564
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20565
 
  ;;
20566
 
  *)
20567
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20568
 
for as_dir in $PATH
20569
 
do
20570
 
  IFS=$as_save_IFS
20571
 
  test -z "$as_dir" && as_dir=.
20572
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20573
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20574
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20575
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20576
 
    break 2
20577
 
  fi
20578
 
done
20579
 
done
20580
 
IFS=$as_save_IFS
20581
 
 
20582
 
  ;;
20583
 
esac
20584
 
fi
20585
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20586
 
if test -n "$PKG_CONFIG"; then
20587
 
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20588
 
echo "${ECHO_T}$PKG_CONFIG" >&6; }
20589
 
else
20590
 
  { echo "$as_me:$LINENO: result: no" >&5
20591
 
echo "${ECHO_T}no" >&6; }
20592
 
fi
20593
 
 
20594
 
 
20595
 
fi
20596
 
if test -z "$ac_cv_path_PKG_CONFIG"; then
20597
 
  ac_pt_PKG_CONFIG=$PKG_CONFIG
20598
 
  # Extract the first word of "pkg-config", so it can be a program name with args.
20599
 
set dummy pkg-config; ac_word=$2
20600
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
20601
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20602
 
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20603
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20604
 
else
20605
 
  case $ac_pt_PKG_CONFIG in
20606
 
  [\\/]* | ?:[\\/]*)
20607
 
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20608
 
  ;;
20609
 
  *)
20610
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20611
 
for as_dir in $PATH
20612
 
do
20613
 
  IFS=$as_save_IFS
20614
 
  test -z "$as_dir" && as_dir=.
20615
 
  for ac_exec_ext in '' $ac_executable_extensions; do
20616
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20617
 
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20618
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20619
 
    break 2
20620
 
  fi
20621
 
done
20622
 
done
20623
 
IFS=$as_save_IFS
20624
 
 
20625
 
  ;;
20626
 
esac
20627
 
fi
20628
 
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20629
 
if test -n "$ac_pt_PKG_CONFIG"; then
20630
 
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20631
 
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
20632
 
else
20633
 
  { echo "$as_me:$LINENO: result: no" >&5
20634
 
echo "${ECHO_T}no" >&6; }
20635
 
fi
20636
 
 
20637
 
  if test "x$ac_pt_PKG_CONFIG" = x; then
20638
 
    PKG_CONFIG=""
20639
 
  else
20640
 
    case $cross_compiling:$ac_tool_warned in
20641
 
yes:)
20642
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20643
 
whose name does not start with the host triplet.  If you think this
20644
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
20645
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20646
 
whose name does not start with the host triplet.  If you think this
20647
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20648
 
ac_tool_warned=yes ;;
20649
 
esac
20650
 
    PKG_CONFIG=$ac_pt_PKG_CONFIG
20651
 
  fi
20652
 
else
20653
 
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20654
 
fi
20655
 
 
20656
 
fi
20657
 
if test -n "$PKG_CONFIG"; then
20658
 
        _pkg_min_version=0.9.0
20659
 
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20660
 
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
20661
 
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20662
 
                { echo "$as_me:$LINENO: result: yes" >&5
20663
 
echo "${ECHO_T}yes" >&6; }
20664
 
        else
20665
 
                { echo "$as_me:$LINENO: result: no" >&5
20666
 
echo "${ECHO_T}no" >&6; }
20667
 
                PKG_CONFIG=""
20668
 
        fi
20669
 
 
20670
 
fi
20671
 
 
20672
 
pkg_failed=no
20673
 
{ echo "$as_me:$LINENO: checking for GLIB" >&5
20674
 
echo $ECHO_N "checking for GLIB... $ECHO_C" >&6; }
20675
 
 
20676
 
if test -n "$PKG_CONFIG"; then
20677
 
    if test -n "$GLIB_CFLAGS"; then
20678
 
        pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
20679
 
    else
20680
 
        if test -n "$PKG_CONFIG" && \
20681
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
20682
 
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
20683
 
  ac_status=$?
20684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685
 
  (exit $ac_status); }; then
20686
 
  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
20687
 
else
20688
 
  pkg_failed=yes
20689
 
fi
20690
 
    fi
20691
 
else
20692
 
        pkg_failed=untried
20693
 
fi
20694
 
if test -n "$PKG_CONFIG"; then
20695
 
    if test -n "$GLIB_LIBS"; then
20696
 
        pkg_cv_GLIB_LIBS="$GLIB_LIBS"
20697
 
    else
20698
 
        if test -n "$PKG_CONFIG" && \
20699
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
20700
 
  ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
20701
 
  ac_status=$?
20702
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703
 
  (exit $ac_status); }; then
20704
 
  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
20705
 
else
20706
 
  pkg_failed=yes
20707
 
fi
20708
 
    fi
20709
 
else
20710
 
        pkg_failed=untried
20711
 
fi
20712
 
 
20713
 
 
20714
 
 
20715
 
if test $pkg_failed = yes; then
20716
 
 
20717
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20718
 
        _pkg_short_errors_supported=yes
20719
 
else
20720
 
        _pkg_short_errors_supported=no
20721
 
fi
20722
 
        if test $_pkg_short_errors_supported = yes; then
20723
 
                GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "glib-2.0"`
20724
 
        else
20725
 
                GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
20726
 
        fi
20727
 
        # Put the nasty error message in config.log where it belongs
20728
 
        echo "$GLIB_PKG_ERRORS" >&5
20729
 
 
20730
 
        { echo "$as_me:$LINENO: result: no" >&5
20731
 
echo "${ECHO_T}no" >&6; }
20732
 
                have_glib=no
20733
 
elif test $pkg_failed = untried; then
20734
 
        have_glib=no
20735
 
else
20736
 
        GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
20737
 
        GLIB_LIBS=$pkg_cv_GLIB_LIBS
20738
 
        { echo "$as_me:$LINENO: result: yes" >&5
20739
 
echo "${ECHO_T}yes" >&6; }
20740
 
        have_glib=yes
20741
 
fi
20742
 
 
20743
 
# Check for GTS
20744
 
 
20745
 
pkg_failed=no
20746
 
{ echo "$as_me:$LINENO: checking for GTS" >&5
20747
 
echo $ECHO_N "checking for GTS... $ECHO_C" >&6; }
20748
 
 
20749
 
if test -n "$PKG_CONFIG"; then
20750
 
    if test -n "$GTS_CFLAGS"; then
20751
 
        pkg_cv_GTS_CFLAGS="$GTS_CFLAGS"
20752
 
    else
20753
 
        if test -n "$PKG_CONFIG" && \
20754
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
20755
 
  ($PKG_CONFIG --exists --print-errors "gts") 2>&5
20756
 
  ac_status=$?
20757
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758
 
  (exit $ac_status); }; then
20759
 
  pkg_cv_GTS_CFLAGS=`$PKG_CONFIG --cflags "gts" 2>/dev/null`
20760
 
else
20761
 
  pkg_failed=yes
20762
 
fi
20763
 
    fi
20764
 
else
20765
 
        pkg_failed=untried
20766
 
fi
20767
 
if test -n "$PKG_CONFIG"; then
20768
 
    if test -n "$GTS_LIBS"; then
20769
 
        pkg_cv_GTS_LIBS="$GTS_LIBS"
20770
 
    else
20771
 
        if test -n "$PKG_CONFIG" && \
20772
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gts\"") >&5
20773
 
  ($PKG_CONFIG --exists --print-errors "gts") 2>&5
20774
 
  ac_status=$?
20775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776
 
  (exit $ac_status); }; then
20777
 
  pkg_cv_GTS_LIBS=`$PKG_CONFIG --libs "gts" 2>/dev/null`
20778
 
else
20779
 
  pkg_failed=yes
20780
 
fi
20781
 
    fi
20782
 
else
20783
 
        pkg_failed=untried
20784
 
fi
20785
 
 
20786
 
 
20787
 
 
20788
 
if test $pkg_failed = yes; then
20789
 
 
20790
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20791
 
        _pkg_short_errors_supported=yes
20792
 
else
20793
 
        _pkg_short_errors_supported=no
20794
 
fi
20795
 
        if test $_pkg_short_errors_supported = yes; then
20796
 
                GTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gts"`
20797
 
        else
20798
 
                GTS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gts"`
20799
 
        fi
20800
 
        # Put the nasty error message in config.log where it belongs
20801
 
        echo "$GTS_PKG_ERRORS" >&5
20802
 
 
20803
 
        { echo "$as_me:$LINENO: result: no" >&5
20804
 
echo "${ECHO_T}no" >&6; }
20805
 
                have_gts=no
20806
 
elif test $pkg_failed = untried; then
20807
 
        have_gts=no
20808
 
else
20809
 
        GTS_CFLAGS=$pkg_cv_GTS_CFLAGS
20810
 
        GTS_LIBS=$pkg_cv_GTS_LIBS
20811
 
        { echo "$as_me:$LINENO: result: yes" >&5
20812
 
echo "${ECHO_T}yes" >&6; }
20813
 
        have_gts=yes
20814
 
fi
20815
 
if test $have_gts = yes && test $have_glib = yes; then
20816
 
    GTS_CFLAGS="$GTS_CFLAGS -DHAVE_GTS_H=1"
20817
 
else
20818
 
    echo "Missing GTS"
20819
 
fi
20820
 
 
20821
 
# Check for UFC
20822
 
 
20823
 
pkg_failed=no
20824
 
{ echo "$as_me:$LINENO: checking for UFC" >&5
20825
 
echo $ECHO_N "checking for UFC... $ECHO_C" >&6; }
20826
 
 
20827
 
if test -n "$PKG_CONFIG"; then
20828
 
    if test -n "$UFC_CFLAGS"; then
20829
 
        pkg_cv_UFC_CFLAGS="$UFC_CFLAGS"
20830
 
    else
20831
 
        if test -n "$PKG_CONFIG" && \
20832
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ufc-1\"") >&5
20833
 
  ($PKG_CONFIG --exists --print-errors "ufc-1") 2>&5
20834
 
  ac_status=$?
20835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836
 
  (exit $ac_status); }; then
20837
 
  pkg_cv_UFC_CFLAGS=`$PKG_CONFIG --cflags "ufc-1" 2>/dev/null`
20838
 
else
20839
 
  pkg_failed=yes
20840
 
fi
20841
 
    fi
20842
 
else
20843
 
        pkg_failed=untried
20844
 
fi
20845
 
if test -n "$PKG_CONFIG"; then
20846
 
    if test -n "$UFC_LIBS"; then
20847
 
        pkg_cv_UFC_LIBS="$UFC_LIBS"
20848
 
    else
20849
 
        if test -n "$PKG_CONFIG" && \
20850
 
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ufc-1\"") >&5
20851
 
  ($PKG_CONFIG --exists --print-errors "ufc-1") 2>&5
20852
 
  ac_status=$?
20853
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854
 
  (exit $ac_status); }; then
20855
 
  pkg_cv_UFC_LIBS=`$PKG_CONFIG --libs "ufc-1" 2>/dev/null`
20856
 
else
20857
 
  pkg_failed=yes
20858
 
fi
20859
 
    fi
20860
 
else
20861
 
        pkg_failed=untried
20862
 
fi
20863
 
 
20864
 
 
20865
 
 
20866
 
if test $pkg_failed = yes; then
20867
 
 
20868
 
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20869
 
        _pkg_short_errors_supported=yes
20870
 
else
20871
 
        _pkg_short_errors_supported=no
20872
 
fi
20873
 
        if test $_pkg_short_errors_supported = yes; then
20874
 
                UFC_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ufc-1"`
20875
 
        else
20876
 
                UFC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ufc-1"`
20877
 
        fi
20878
 
        # Put the nasty error message in config.log where it belongs
20879
 
        echo "$UFC_PKG_ERRORS" >&5
20880
 
 
20881
 
        { { echo "$as_me:$LINENO: error: Package requirements (ufc-1) were not met:
20882
 
 
20883
 
$UFC_PKG_ERRORS
20884
 
 
20885
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20886
 
installed software in a non-standard prefix.
20887
 
 
20888
 
Alternatively, you may set the environment variables UFC_CFLAGS
20889
 
and UFC_LIBS to avoid the need to call pkg-config.
20890
 
See the pkg-config man page for more details.
20891
 
" >&5
20892
 
echo "$as_me: error: Package requirements (ufc-1) were not met:
20893
 
 
20894
 
$UFC_PKG_ERRORS
20895
 
 
20896
 
Consider adjusting the PKG_CONFIG_PATH environment variable if you
20897
 
installed software in a non-standard prefix.
20898
 
 
20899
 
Alternatively, you may set the environment variables UFC_CFLAGS
20900
 
and UFC_LIBS to avoid the need to call pkg-config.
20901
 
See the pkg-config man page for more details.
20902
 
" >&2;}
20903
 
   { (exit 1); exit 1; }; }
20904
 
elif test $pkg_failed = untried; then
20905
 
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20906
 
is in your PATH or set the PKG_CONFIG environment variable to the full
20907
 
path to pkg-config.
20908
 
 
20909
 
Alternatively, you may set the environment variables UFC_CFLAGS
20910
 
and UFC_LIBS to avoid the need to call pkg-config.
20911
 
See the pkg-config man page for more details.
20912
 
 
20913
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20914
 
See \`config.log' for more details." >&5
20915
 
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20916
 
is in your PATH or set the PKG_CONFIG environment variable to the full
20917
 
path to pkg-config.
20918
 
 
20919
 
Alternatively, you may set the environment variables UFC_CFLAGS
20920
 
and UFC_LIBS to avoid the need to call pkg-config.
20921
 
See the pkg-config man page for more details.
20922
 
 
20923
 
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20924
 
See \`config.log' for more details." >&2;}
20925
 
   { (exit 1); exit 1; }; }
20926
 
else
20927
 
        UFC_CFLAGS=$pkg_cv_UFC_CFLAGS
20928
 
        UFC_LIBS=$pkg_cv_UFC_LIBS
20929
 
        { echo "$as_me:$LINENO: result: yes" >&5
20930
 
echo "${ECHO_T}yes" >&6; }
20931
 
        :
20932
 
fi
20933
 
 
20934
 
# Prepare for AMD and UMFPACK tests
20935
 
have_umfpack_header=no
20936
 
have_amd_lib=no
20937
 
have_umfpack_and_amd_lib=no
20938
 
 
20939
 
# Check for amd library
20940
 
if test x$AMD_LIB_DIR != x; then
20941
 
    UMFPACK_LIBS="-L$AMD_LIB_DIR -lamd"
20942
 
    have_amd_lib=yes
20943
 
else
20944
 
   { echo "$as_me:$LINENO: checking for amd_info in -lamd" >&5
20945
 
echo $ECHO_N "checking for amd_info in -lamd... $ECHO_C" >&6; }
20946
 
if test "${ac_cv_lib_amd_amd_info+set}" = set; then
20947
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
20948
 
else
20949
 
  ac_check_lib_save_LIBS=$LIBS
20950
 
LIBS="-lamd  $LIBS"
20951
 
cat >conftest.$ac_ext <<_ACEOF
20952
 
/* confdefs.h.  */
20953
 
_ACEOF
20954
 
cat confdefs.h >>conftest.$ac_ext
20955
 
cat >>conftest.$ac_ext <<_ACEOF
20956
 
/* end confdefs.h.  */
20957
 
 
20958
 
/* Override any GCC internal prototype to avoid an error.
20959
 
   Use char because int might match the return type of a GCC
20960
 
   builtin and then its argument prototype would still apply.  */
20961
 
#ifdef __cplusplus
20962
 
extern "C"
20963
 
#endif
20964
 
char amd_info ();
20965
 
int
20966
 
main ()
20967
 
{
20968
 
return amd_info ();
20969
 
  ;
20970
 
  return 0;
20971
 
}
20972
 
_ACEOF
20973
 
rm -f conftest.$ac_objext conftest$ac_exeext
20974
 
if { (ac_try="$ac_link"
20975
 
case "(($ac_try" in
20976
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977
 
  *) ac_try_echo=$ac_try;;
20978
 
esac
20979
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980
 
  (eval "$ac_link") 2>conftest.er1
20981
 
  ac_status=$?
20982
 
  grep -v '^ *+' conftest.er1 >conftest.err
20983
 
  rm -f conftest.er1
20984
 
  cat conftest.err >&5
20985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986
 
  (exit $ac_status); } && {
20987
 
         test -z "$ac_cxx_werror_flag" ||
20988
 
         test ! -s conftest.err
20989
 
       } && test -s conftest$ac_exeext &&
20990
 
       $as_test_x conftest$ac_exeext; then
20991
 
  ac_cv_lib_amd_amd_info=yes
20992
 
else
20993
 
  echo "$as_me: failed program was:" >&5
20994
 
sed 's/^/| /' conftest.$ac_ext >&5
20995
 
 
20996
 
        ac_cv_lib_amd_amd_info=no
20997
 
fi
20998
 
 
20999
 
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21000
 
      conftest$ac_exeext conftest.$ac_ext
21001
 
LIBS=$ac_check_lib_save_LIBS
21002
 
fi
21003
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_amd_amd_info" >&5
21004
 
echo "${ECHO_T}$ac_cv_lib_amd_amd_info" >&6; }
21005
 
if test $ac_cv_lib_amd_amd_info = yes; then
21006
 
  UMFPACK_LIBS="-lamd" have_amd_lib=yes
21007
 
fi
21008
 
 
21009
 
    if test $have_amd_lib != yes; then
21010
 
        echo "Cannot find amd library (part of umfpack). Umfpack will be disabled"
21011
 
    fi
21012
 
fi
21013
 
 
21014
 
# Check for umfpack library if amd library has been found
21015
 
#if test $have_amd_lib = yes; then
21016
 
#    if test x$UMFPACK_LIB_DIR != x; then
21017
 
#        UMFPACK_LIBS="$UMFPACK_LIBS -L$UMFPACK_LIB_DIR -lumfpack"
21018
 
#        have_umfpack_and_amd_lib=yes
21019
 
#    else
21020
 
#        AC_CHECK_LIB(umfpack, umfpack_dl_solve, UMFPACK_LIBS="$UMFPACK_LIBS -lumfpack" have_umfpack_and_amd_lib=yes,,$UMFPACK_LIBS)
21021
 
#        if test $have_umfpack_and_amd_lib != yes; then
21022
 
#            echo "Cannot find umfpack library. Umfpack will be disabled"
21023
 
#        fi
21024
 
#    fi
21025
 
#fi
21026
 
 
21027
 
# Check for umfpack header files if umfpack and amd libraries have been found
21028
 
#if test $have_umfpack_and_amd_lib = yes; then
21029
 
if test $have_amd_lib = yes; then
21030
 
    if test x$UMFPACK_INCLUDE_DIR != x; then
21031
 
        UMFPACK_CFLAGS="-I$UMFPACK_INCLUDE_DIR"
21032
 
        cat >>confdefs.h <<\_ACEOF
21033
 
#define HAVE_UMFPACK_H 1
21034
 
_ACEOF
21035
 
 
21036
 
        have_umfpack_header=yes
21037
 
    else
21038
 
        # Check various default locations
21039
 
        if test "${ac_cv_header_umfpack_h+set}" = set; then
21040
 
  { echo "$as_me:$LINENO: checking for umfpack.h" >&5
21041
 
echo $ECHO_N "checking for umfpack.h... $ECHO_C" >&6; }
21042
 
if test "${ac_cv_header_umfpack_h+set}" = set; then
21043
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21044
 
fi
21045
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_h" >&5
21046
 
echo "${ECHO_T}$ac_cv_header_umfpack_h" >&6; }
21047
 
else
21048
 
  # Is the header compilable?
21049
 
{ echo "$as_me:$LINENO: checking umfpack.h usability" >&5
21050
 
echo $ECHO_N "checking umfpack.h usability... $ECHO_C" >&6; }
21051
 
cat >conftest.$ac_ext <<_ACEOF
21052
 
/* confdefs.h.  */
21053
 
_ACEOF
21054
 
cat confdefs.h >>conftest.$ac_ext
21055
 
cat >>conftest.$ac_ext <<_ACEOF
21056
 
/* end confdefs.h.  */
21057
 
$ac_includes_default
21058
 
#include <umfpack.h>
21059
 
_ACEOF
21060
 
rm -f conftest.$ac_objext
21061
 
if { (ac_try="$ac_compile"
21062
 
case "(($ac_try" in
21063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21064
 
  *) ac_try_echo=$ac_try;;
21065
 
esac
21066
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21067
 
  (eval "$ac_compile") 2>conftest.er1
21068
 
  ac_status=$?
21069
 
  grep -v '^ *+' conftest.er1 >conftest.err
21070
 
  rm -f conftest.er1
21071
 
  cat conftest.err >&5
21072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073
 
  (exit $ac_status); } && {
21074
 
         test -z "$ac_cxx_werror_flag" ||
21075
 
         test ! -s conftest.err
21076
 
       } && test -s conftest.$ac_objext; then
21077
 
  ac_header_compiler=yes
21078
 
else
21079
 
  echo "$as_me: failed program was:" >&5
21080
 
sed 's/^/| /' conftest.$ac_ext >&5
21081
 
 
21082
 
        ac_header_compiler=no
21083
 
fi
21084
 
 
21085
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21087
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21088
 
 
21089
 
# Is the header present?
21090
 
{ echo "$as_me:$LINENO: checking umfpack.h presence" >&5
21091
 
echo $ECHO_N "checking umfpack.h presence... $ECHO_C" >&6; }
21092
 
cat >conftest.$ac_ext <<_ACEOF
21093
 
/* confdefs.h.  */
21094
 
_ACEOF
21095
 
cat confdefs.h >>conftest.$ac_ext
21096
 
cat >>conftest.$ac_ext <<_ACEOF
21097
 
/* end confdefs.h.  */
21098
 
#include <umfpack.h>
21099
 
_ACEOF
21100
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21101
 
case "(($ac_try" in
21102
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103
 
  *) ac_try_echo=$ac_try;;
21104
 
esac
21105
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21106
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21107
 
  ac_status=$?
21108
 
  grep -v '^ *+' conftest.er1 >conftest.err
21109
 
  rm -f conftest.er1
21110
 
  cat conftest.err >&5
21111
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112
 
  (exit $ac_status); } >/dev/null && {
21113
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21114
 
         test ! -s conftest.err
21115
 
       }; then
21116
 
  ac_header_preproc=yes
21117
 
else
21118
 
  echo "$as_me: failed program was:" >&5
21119
 
sed 's/^/| /' conftest.$ac_ext >&5
21120
 
 
21121
 
  ac_header_preproc=no
21122
 
fi
21123
 
 
21124
 
rm -f conftest.err conftest.$ac_ext
21125
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21126
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21127
 
 
21128
 
# So?  What about this header?
21129
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21130
 
  yes:no: )
21131
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21132
 
echo "$as_me: WARNING: umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21133
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: proceeding with the compiler's result" >&5
21134
 
echo "$as_me: WARNING: umfpack.h: proceeding with the compiler's result" >&2;}
21135
 
    ac_header_preproc=yes
21136
 
    ;;
21137
 
  no:yes:* )
21138
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: present but cannot be compiled" >&5
21139
 
echo "$as_me: WARNING: umfpack.h: present but cannot be compiled" >&2;}
21140
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h:     check for missing prerequisite headers?" >&5
21141
 
echo "$as_me: WARNING: umfpack.h:     check for missing prerequisite headers?" >&2;}
21142
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: see the Autoconf documentation" >&5
21143
 
echo "$as_me: WARNING: umfpack.h: see the Autoconf documentation" >&2;}
21144
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h:     section \"Present But Cannot Be Compiled\"" >&5
21145
 
echo "$as_me: WARNING: umfpack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21146
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: proceeding with the preprocessor's result" >&5
21147
 
echo "$as_me: WARNING: umfpack.h: proceeding with the preprocessor's result" >&2;}
21148
 
    { echo "$as_me:$LINENO: WARNING: umfpack.h: in the future, the compiler will take precedence" >&5
21149
 
echo "$as_me: WARNING: umfpack.h: in the future, the compiler will take precedence" >&2;}
21150
 
    ( cat <<\_ASBOX
21151
 
## ---------------------------------------------- ##
21152
 
## Report this to http://www.fenics.org/bugzilla/ ##
21153
 
## ---------------------------------------------- ##
21154
 
_ASBOX
21155
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21156
 
    ;;
21157
 
esac
21158
 
{ echo "$as_me:$LINENO: checking for umfpack.h" >&5
21159
 
echo $ECHO_N "checking for umfpack.h... $ECHO_C" >&6; }
21160
 
if test "${ac_cv_header_umfpack_h+set}" = set; then
21161
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21162
 
else
21163
 
  ac_cv_header_umfpack_h=$ac_header_preproc
21164
 
fi
21165
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_h" >&5
21166
 
echo "${ECHO_T}$ac_cv_header_umfpack_h" >&6; }
21167
 
 
21168
 
fi
21169
 
if test $ac_cv_header_umfpack_h = yes; then
21170
 
  have_umfpack_header=yes
21171
 
else
21172
 
  have_umfpack_header=no
21173
 
fi
21174
 
 
21175
 
 
21176
 
        if test $have_umfpack_header = yes; then
21177
 
            cat >>confdefs.h <<\_ACEOF
21178
 
#define HAVE_UMFPACK_H 1
21179
 
_ACEOF
21180
 
 
21181
 
        else
21182
 
            if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21183
 
  { echo "$as_me:$LINENO: checking for umfpack/umfpack.h" >&5
21184
 
echo $ECHO_N "checking for umfpack/umfpack.h... $ECHO_C" >&6; }
21185
 
if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21186
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21187
 
fi
21188
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_umfpack_h" >&5
21189
 
echo "${ECHO_T}$ac_cv_header_umfpack_umfpack_h" >&6; }
21190
 
else
21191
 
  # Is the header compilable?
21192
 
{ echo "$as_me:$LINENO: checking umfpack/umfpack.h usability" >&5
21193
 
echo $ECHO_N "checking umfpack/umfpack.h usability... $ECHO_C" >&6; }
21194
 
cat >conftest.$ac_ext <<_ACEOF
21195
 
/* confdefs.h.  */
21196
 
_ACEOF
21197
 
cat confdefs.h >>conftest.$ac_ext
21198
 
cat >>conftest.$ac_ext <<_ACEOF
21199
 
/* end confdefs.h.  */
21200
 
$ac_includes_default
21201
 
#include <umfpack/umfpack.h>
21202
 
_ACEOF
21203
 
rm -f conftest.$ac_objext
21204
 
if { (ac_try="$ac_compile"
21205
 
case "(($ac_try" in
21206
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21207
 
  *) ac_try_echo=$ac_try;;
21208
 
esac
21209
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21210
 
  (eval "$ac_compile") 2>conftest.er1
21211
 
  ac_status=$?
21212
 
  grep -v '^ *+' conftest.er1 >conftest.err
21213
 
  rm -f conftest.er1
21214
 
  cat conftest.err >&5
21215
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216
 
  (exit $ac_status); } && {
21217
 
         test -z "$ac_cxx_werror_flag" ||
21218
 
         test ! -s conftest.err
21219
 
       } && test -s conftest.$ac_objext; then
21220
 
  ac_header_compiler=yes
21221
 
else
21222
 
  echo "$as_me: failed program was:" >&5
21223
 
sed 's/^/| /' conftest.$ac_ext >&5
21224
 
 
21225
 
        ac_header_compiler=no
21226
 
fi
21227
 
 
21228
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21230
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21231
 
 
21232
 
# Is the header present?
21233
 
{ echo "$as_me:$LINENO: checking umfpack/umfpack.h presence" >&5
21234
 
echo $ECHO_N "checking umfpack/umfpack.h presence... $ECHO_C" >&6; }
21235
 
cat >conftest.$ac_ext <<_ACEOF
21236
 
/* confdefs.h.  */
21237
 
_ACEOF
21238
 
cat confdefs.h >>conftest.$ac_ext
21239
 
cat >>conftest.$ac_ext <<_ACEOF
21240
 
/* end confdefs.h.  */
21241
 
#include <umfpack/umfpack.h>
21242
 
_ACEOF
21243
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21244
 
case "(($ac_try" in
21245
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21246
 
  *) ac_try_echo=$ac_try;;
21247
 
esac
21248
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21249
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21250
 
  ac_status=$?
21251
 
  grep -v '^ *+' conftest.er1 >conftest.err
21252
 
  rm -f conftest.er1
21253
 
  cat conftest.err >&5
21254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255
 
  (exit $ac_status); } >/dev/null && {
21256
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21257
 
         test ! -s conftest.err
21258
 
       }; then
21259
 
  ac_header_preproc=yes
21260
 
else
21261
 
  echo "$as_me: failed program was:" >&5
21262
 
sed 's/^/| /' conftest.$ac_ext >&5
21263
 
 
21264
 
  ac_header_preproc=no
21265
 
fi
21266
 
 
21267
 
rm -f conftest.err conftest.$ac_ext
21268
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21269
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21270
 
 
21271
 
# So?  What about this header?
21272
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21273
 
  yes:no: )
21274
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21275
 
echo "$as_me: WARNING: umfpack/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21276
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: proceeding with the compiler's result" >&5
21277
 
echo "$as_me: WARNING: umfpack/umfpack.h: proceeding with the compiler's result" >&2;}
21278
 
    ac_header_preproc=yes
21279
 
    ;;
21280
 
  no:yes:* )
21281
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: present but cannot be compiled" >&5
21282
 
echo "$as_me: WARNING: umfpack/umfpack.h: present but cannot be compiled" >&2;}
21283
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h:     check for missing prerequisite headers?" >&5
21284
 
echo "$as_me: WARNING: umfpack/umfpack.h:     check for missing prerequisite headers?" >&2;}
21285
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: see the Autoconf documentation" >&5
21286
 
echo "$as_me: WARNING: umfpack/umfpack.h: see the Autoconf documentation" >&2;}
21287
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&5
21288
 
echo "$as_me: WARNING: umfpack/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21289
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: proceeding with the preprocessor's result" >&5
21290
 
echo "$as_me: WARNING: umfpack/umfpack.h: proceeding with the preprocessor's result" >&2;}
21291
 
    { echo "$as_me:$LINENO: WARNING: umfpack/umfpack.h: in the future, the compiler will take precedence" >&5
21292
 
echo "$as_me: WARNING: umfpack/umfpack.h: in the future, the compiler will take precedence" >&2;}
21293
 
    ( cat <<\_ASBOX
21294
 
## ---------------------------------------------- ##
21295
 
## Report this to http://www.fenics.org/bugzilla/ ##
21296
 
## ---------------------------------------------- ##
21297
 
_ASBOX
21298
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21299
 
    ;;
21300
 
esac
21301
 
{ echo "$as_me:$LINENO: checking for umfpack/umfpack.h" >&5
21302
 
echo $ECHO_N "checking for umfpack/umfpack.h... $ECHO_C" >&6; }
21303
 
if test "${ac_cv_header_umfpack_umfpack_h+set}" = set; then
21304
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21305
 
else
21306
 
  ac_cv_header_umfpack_umfpack_h=$ac_header_preproc
21307
 
fi
21308
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_umfpack_umfpack_h" >&5
21309
 
echo "${ECHO_T}$ac_cv_header_umfpack_umfpack_h" >&6; }
21310
 
 
21311
 
fi
21312
 
if test $ac_cv_header_umfpack_umfpack_h = yes; then
21313
 
  have_umfpack_header=yes
21314
 
else
21315
 
  have_umfpack_header=no
21316
 
fi
21317
 
 
21318
 
 
21319
 
            if test $have_umfpack_header = yes; then
21320
 
                cat >>confdefs.h <<\_ACEOF
21321
 
#define HAVE_UMFPACK_UMFPACK_H 1
21322
 
_ACEOF
21323
 
 
21324
 
            else
21325
 
                if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21326
 
  { echo "$as_me:$LINENO: checking for ufsparse/umfpack.h" >&5
21327
 
echo $ECHO_N "checking for ufsparse/umfpack.h... $ECHO_C" >&6; }
21328
 
if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21330
 
fi
21331
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_ufsparse_umfpack_h" >&5
21332
 
echo "${ECHO_T}$ac_cv_header_ufsparse_umfpack_h" >&6; }
21333
 
else
21334
 
  # Is the header compilable?
21335
 
{ echo "$as_me:$LINENO: checking ufsparse/umfpack.h usability" >&5
21336
 
echo $ECHO_N "checking ufsparse/umfpack.h usability... $ECHO_C" >&6; }
21337
 
cat >conftest.$ac_ext <<_ACEOF
21338
 
/* confdefs.h.  */
21339
 
_ACEOF
21340
 
cat confdefs.h >>conftest.$ac_ext
21341
 
cat >>conftest.$ac_ext <<_ACEOF
21342
 
/* end confdefs.h.  */
21343
 
$ac_includes_default
21344
 
#include <ufsparse/umfpack.h>
21345
 
_ACEOF
21346
 
rm -f conftest.$ac_objext
21347
 
if { (ac_try="$ac_compile"
21348
 
case "(($ac_try" in
21349
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350
 
  *) ac_try_echo=$ac_try;;
21351
 
esac
21352
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21353
 
  (eval "$ac_compile") 2>conftest.er1
21354
 
  ac_status=$?
21355
 
  grep -v '^ *+' conftest.er1 >conftest.err
21356
 
  rm -f conftest.er1
21357
 
  cat conftest.err >&5
21358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359
 
  (exit $ac_status); } && {
21360
 
         test -z "$ac_cxx_werror_flag" ||
21361
 
         test ! -s conftest.err
21362
 
       } && test -s conftest.$ac_objext; then
21363
 
  ac_header_compiler=yes
21364
 
else
21365
 
  echo "$as_me: failed program was:" >&5
21366
 
sed 's/^/| /' conftest.$ac_ext >&5
21367
 
 
21368
 
        ac_header_compiler=no
21369
 
fi
21370
 
 
21371
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21372
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21373
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21374
 
 
21375
 
# Is the header present?
21376
 
{ echo "$as_me:$LINENO: checking ufsparse/umfpack.h presence" >&5
21377
 
echo $ECHO_N "checking ufsparse/umfpack.h presence... $ECHO_C" >&6; }
21378
 
cat >conftest.$ac_ext <<_ACEOF
21379
 
/* confdefs.h.  */
21380
 
_ACEOF
21381
 
cat confdefs.h >>conftest.$ac_ext
21382
 
cat >>conftest.$ac_ext <<_ACEOF
21383
 
/* end confdefs.h.  */
21384
 
#include <ufsparse/umfpack.h>
21385
 
_ACEOF
21386
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21387
 
case "(($ac_try" in
21388
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389
 
  *) ac_try_echo=$ac_try;;
21390
 
esac
21391
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21393
 
  ac_status=$?
21394
 
  grep -v '^ *+' conftest.er1 >conftest.err
21395
 
  rm -f conftest.er1
21396
 
  cat conftest.err >&5
21397
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398
 
  (exit $ac_status); } >/dev/null && {
21399
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21400
 
         test ! -s conftest.err
21401
 
       }; then
21402
 
  ac_header_preproc=yes
21403
 
else
21404
 
  echo "$as_me: failed program was:" >&5
21405
 
sed 's/^/| /' conftest.$ac_ext >&5
21406
 
 
21407
 
  ac_header_preproc=no
21408
 
fi
21409
 
 
21410
 
rm -f conftest.err conftest.$ac_ext
21411
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21412
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21413
 
 
21414
 
# So?  What about this header?
21415
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21416
 
  yes:no: )
21417
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21418
 
echo "$as_me: WARNING: ufsparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21419
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: proceeding with the compiler's result" >&5
21420
 
echo "$as_me: WARNING: ufsparse/umfpack.h: proceeding with the compiler's result" >&2;}
21421
 
    ac_header_preproc=yes
21422
 
    ;;
21423
 
  no:yes:* )
21424
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: present but cannot be compiled" >&5
21425
 
echo "$as_me: WARNING: ufsparse/umfpack.h: present but cannot be compiled" >&2;}
21426
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h:     check for missing prerequisite headers?" >&5
21427
 
echo "$as_me: WARNING: ufsparse/umfpack.h:     check for missing prerequisite headers?" >&2;}
21428
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: see the Autoconf documentation" >&5
21429
 
echo "$as_me: WARNING: ufsparse/umfpack.h: see the Autoconf documentation" >&2;}
21430
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&5
21431
 
echo "$as_me: WARNING: ufsparse/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21432
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: proceeding with the preprocessor's result" >&5
21433
 
echo "$as_me: WARNING: ufsparse/umfpack.h: proceeding with the preprocessor's result" >&2;}
21434
 
    { echo "$as_me:$LINENO: WARNING: ufsparse/umfpack.h: in the future, the compiler will take precedence" >&5
21435
 
echo "$as_me: WARNING: ufsparse/umfpack.h: in the future, the compiler will take precedence" >&2;}
21436
 
    ( cat <<\_ASBOX
21437
 
## ---------------------------------------------- ##
21438
 
## Report this to http://www.fenics.org/bugzilla/ ##
21439
 
## ---------------------------------------------- ##
21440
 
_ASBOX
21441
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21442
 
    ;;
21443
 
esac
21444
 
{ echo "$as_me:$LINENO: checking for ufsparse/umfpack.h" >&5
21445
 
echo $ECHO_N "checking for ufsparse/umfpack.h... $ECHO_C" >&6; }
21446
 
if test "${ac_cv_header_ufsparse_umfpack_h+set}" = set; then
21447
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21448
 
else
21449
 
  ac_cv_header_ufsparse_umfpack_h=$ac_header_preproc
21450
 
fi
21451
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_ufsparse_umfpack_h" >&5
21452
 
echo "${ECHO_T}$ac_cv_header_ufsparse_umfpack_h" >&6; }
21453
 
 
21454
 
fi
21455
 
if test $ac_cv_header_ufsparse_umfpack_h = yes; then
21456
 
  have_umfpack_header=yes
21457
 
else
21458
 
  have_umfpack_header=no
21459
 
fi
21460
 
 
21461
 
 
21462
 
                if test $have_umfpack_header = yes; then
21463
 
                    cat >>confdefs.h <<\_ACEOF
21464
 
#define HAVE_UFSPARSE_UMFPACK_H 1
21465
 
_ACEOF
21466
 
 
21467
 
                else
21468
 
                    if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21469
 
  { echo "$as_me:$LINENO: checking for suitesparse/umfpack.h" >&5
21470
 
echo $ECHO_N "checking for suitesparse/umfpack.h... $ECHO_C" >&6; }
21471
 
if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21472
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21473
 
fi
21474
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_suitesparse_umfpack_h" >&5
21475
 
echo "${ECHO_T}$ac_cv_header_suitesparse_umfpack_h" >&6; }
21476
 
else
21477
 
  # Is the header compilable?
21478
 
{ echo "$as_me:$LINENO: checking suitesparse/umfpack.h usability" >&5
21479
 
echo $ECHO_N "checking suitesparse/umfpack.h usability... $ECHO_C" >&6; }
21480
 
cat >conftest.$ac_ext <<_ACEOF
21481
 
/* confdefs.h.  */
21482
 
_ACEOF
21483
 
cat confdefs.h >>conftest.$ac_ext
21484
 
cat >>conftest.$ac_ext <<_ACEOF
21485
 
/* end confdefs.h.  */
21486
 
$ac_includes_default
21487
 
#include <suitesparse/umfpack.h>
21488
 
_ACEOF
21489
 
rm -f conftest.$ac_objext
21490
 
if { (ac_try="$ac_compile"
21491
 
case "(($ac_try" in
21492
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21493
 
  *) ac_try_echo=$ac_try;;
21494
 
esac
21495
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21496
 
  (eval "$ac_compile") 2>conftest.er1
21497
 
  ac_status=$?
21498
 
  grep -v '^ *+' conftest.er1 >conftest.err
21499
 
  rm -f conftest.er1
21500
 
  cat conftest.err >&5
21501
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502
 
  (exit $ac_status); } && {
21503
 
         test -z "$ac_cxx_werror_flag" ||
21504
 
         test ! -s conftest.err
21505
 
       } && test -s conftest.$ac_objext; then
21506
 
  ac_header_compiler=yes
21507
 
else
21508
 
  echo "$as_me: failed program was:" >&5
21509
 
sed 's/^/| /' conftest.$ac_ext >&5
21510
 
 
21511
 
        ac_header_compiler=no
21512
 
fi
21513
 
 
21514
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21515
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21516
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21517
 
 
21518
 
# Is the header present?
21519
 
{ echo "$as_me:$LINENO: checking suitesparse/umfpack.h presence" >&5
21520
 
echo $ECHO_N "checking suitesparse/umfpack.h presence... $ECHO_C" >&6; }
21521
 
cat >conftest.$ac_ext <<_ACEOF
21522
 
/* confdefs.h.  */
21523
 
_ACEOF
21524
 
cat confdefs.h >>conftest.$ac_ext
21525
 
cat >>conftest.$ac_ext <<_ACEOF
21526
 
/* end confdefs.h.  */
21527
 
#include <suitesparse/umfpack.h>
21528
 
_ACEOF
21529
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21530
 
case "(($ac_try" in
21531
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21532
 
  *) ac_try_echo=$ac_try;;
21533
 
esac
21534
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21535
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21536
 
  ac_status=$?
21537
 
  grep -v '^ *+' conftest.er1 >conftest.err
21538
 
  rm -f conftest.er1
21539
 
  cat conftest.err >&5
21540
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541
 
  (exit $ac_status); } >/dev/null && {
21542
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21543
 
         test ! -s conftest.err
21544
 
       }; then
21545
 
  ac_header_preproc=yes
21546
 
else
21547
 
  echo "$as_me: failed program was:" >&5
21548
 
sed 's/^/| /' conftest.$ac_ext >&5
21549
 
 
21550
 
  ac_header_preproc=no
21551
 
fi
21552
 
 
21553
 
rm -f conftest.err conftest.$ac_ext
21554
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21555
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21556
 
 
21557
 
# So?  What about this header?
21558
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21559
 
  yes:no: )
21560
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&5
21561
 
echo "$as_me: WARNING: suitesparse/umfpack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21562
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: proceeding with the compiler's result" >&5
21563
 
echo "$as_me: WARNING: suitesparse/umfpack.h: proceeding with the compiler's result" >&2;}
21564
 
    ac_header_preproc=yes
21565
 
    ;;
21566
 
  no:yes:* )
21567
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: present but cannot be compiled" >&5
21568
 
echo "$as_me: WARNING: suitesparse/umfpack.h: present but cannot be compiled" >&2;}
21569
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h:     check for missing prerequisite headers?" >&5
21570
 
echo "$as_me: WARNING: suitesparse/umfpack.h:     check for missing prerequisite headers?" >&2;}
21571
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: see the Autoconf documentation" >&5
21572
 
echo "$as_me: WARNING: suitesparse/umfpack.h: see the Autoconf documentation" >&2;}
21573
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&5
21574
 
echo "$as_me: WARNING: suitesparse/umfpack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21575
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: proceeding with the preprocessor's result" >&5
21576
 
echo "$as_me: WARNING: suitesparse/umfpack.h: proceeding with the preprocessor's result" >&2;}
21577
 
    { echo "$as_me:$LINENO: WARNING: suitesparse/umfpack.h: in the future, the compiler will take precedence" >&5
21578
 
echo "$as_me: WARNING: suitesparse/umfpack.h: in the future, the compiler will take precedence" >&2;}
21579
 
    ( cat <<\_ASBOX
21580
 
## ---------------------------------------------- ##
21581
 
## Report this to http://www.fenics.org/bugzilla/ ##
21582
 
## ---------------------------------------------- ##
21583
 
_ASBOX
21584
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21585
 
    ;;
21586
 
esac
21587
 
{ echo "$as_me:$LINENO: checking for suitesparse/umfpack.h" >&5
21588
 
echo $ECHO_N "checking for suitesparse/umfpack.h... $ECHO_C" >&6; }
21589
 
if test "${ac_cv_header_suitesparse_umfpack_h+set}" = set; then
21590
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21591
 
else
21592
 
  ac_cv_header_suitesparse_umfpack_h=$ac_header_preproc
21593
 
fi
21594
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_suitesparse_umfpack_h" >&5
21595
 
echo "${ECHO_T}$ac_cv_header_suitesparse_umfpack_h" >&6; }
21596
 
 
21597
 
fi
21598
 
if test $ac_cv_header_suitesparse_umfpack_h = yes; then
21599
 
  have_umfpack_header=yes
21600
 
else
21601
 
  have_umfpack_header=no
21602
 
fi
21603
 
 
21604
 
 
21605
 
                    if test $have_umfpack_header = yes; then
21606
 
                        cat >>confdefs.h <<\_ACEOF
21607
 
#define HAVE_SUITESPARSE_UMFPACK_H 1
21608
 
_ACEOF
21609
 
 
21610
 
                    else
21611
 
                        echo "Cannot find umfpack header files. Umfpack will be disabled"
21612
 
                    fi
21613
 
                fi
21614
 
            fi
21615
 
       fi
21616
 
    fi
21617
 
fi
21618
 
 
21619
 
# This is a temporary fix to support both libumfpack4 and libufsparse.
21620
 
# In libufsparse, -lblas is missing, so we skip the test for the library
21621
 
# above, only check for the header, and add the flag here.
21622
 
if test $have_umfpack_header = yes; then
21623
 
   if test x$UMFPACK_LIB_DIR != x; then
21624
 
      UMFPACK_LIBS="$UMFPACK_LIBS -L$UMFPACK_LIB_DIR -lumfpack -lblas"
21625
 
   else
21626
 
      UMFPACK_LIBS="$UMFPACK_LIBS -lumfpack -lblas"
21627
 
   fi
21628
 
fi
21629
 
 
21630
 
# Test for PyDOLFIN
21631
 
if test x$enable_pydolfin = xyes; then
21632
 
 
21633
 
 
21634
 
 
21635
 
 
21636
 
        if test -n "$PYTHON"; then
21637
 
      # If the user set $PYTHON, use it and don't search something else.
21638
 
      { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.3" >&5
21639
 
echo $ECHO_N "checking whether $PYTHON version >= 2.3... $ECHO_C" >&6; }
21640
 
      prog="import sys, string
21641
 
# split strings by '.' and convert to numeric.  Append some zeros
21642
 
# because we need at least 4 digits for the hex conversion.
21643
 
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
21644
 
minverhex = 0
21645
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
21646
 
sys.exit(sys.hexversion < minverhex)"
21647
 
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
21648
 
   ($PYTHON -c "$prog") >&5 2>&5
21649
 
   ac_status=$?
21650
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651
 
   (exit $ac_status); }; then
21652
 
  { echo "$as_me:$LINENO: result: yes" >&5
21653
 
echo "${ECHO_T}yes" >&6; }
21654
 
else
21655
 
  { { echo "$as_me:$LINENO: error: too old" >&5
21656
 
echo "$as_me: error: too old" >&2;}
21657
 
   { (exit 1); exit 1; }; }
21658
 
fi
21659
 
 
21660
 
      am_display_PYTHON=$PYTHON
21661
 
    else
21662
 
      # Otherwise, try each interpreter until we find one that satisfies
21663
 
      # VERSION.
21664
 
      { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.3" >&5
21665
 
echo $ECHO_N "checking for a Python interpreter with version >= 2.3... $ECHO_C" >&6; }
21666
 
if test "${am_cv_pathless_PYTHON+set}" = set; then
21667
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21668
 
else
21669
 
 
21670
 
        for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
21671
 
          test "$am_cv_pathless_PYTHON" = none && break
21672
 
          prog="import sys, string
21673
 
# split strings by '.' and convert to numeric.  Append some zeros
21674
 
# because we need at least 4 digits for the hex conversion.
21675
 
minver = map(int, string.split('2.3', '.')) + [0, 0, 0]
21676
 
minverhex = 0
21677
 
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
21678
 
sys.exit(sys.hexversion < minverhex)"
21679
 
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
21680
 
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
21681
 
   ac_status=$?
21682
 
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683
 
   (exit $ac_status); }; then
21684
 
  break
21685
 
fi
21686
 
 
21687
 
        done
21688
 
fi
21689
 
{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
21690
 
echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
21691
 
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
21692
 
      if test "$am_cv_pathless_PYTHON" = none; then
21693
 
        PYTHON=:
21694
 
      else
21695
 
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
21696
 
set dummy $am_cv_pathless_PYTHON; ac_word=$2
21697
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21698
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21699
 
if test "${ac_cv_path_PYTHON+set}" = set; then
21700
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21701
 
else
21702
 
  case $PYTHON in
21703
 
  [\\/]* | ?:[\\/]*)
21704
 
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
21705
 
  ;;
21706
 
  *)
21707
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21708
 
for as_dir in $PATH
21709
 
do
21710
 
  IFS=$as_save_IFS
21711
 
  test -z "$as_dir" && as_dir=.
21712
 
  for ac_exec_ext in '' $ac_executable_extensions; do
21713
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21714
 
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
21715
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21716
 
    break 2
21717
 
  fi
21718
 
done
21719
 
done
21720
 
IFS=$as_save_IFS
21721
 
 
21722
 
  ;;
21723
 
esac
21724
 
fi
21725
 
PYTHON=$ac_cv_path_PYTHON
21726
 
if test -n "$PYTHON"; then
21727
 
  { echo "$as_me:$LINENO: result: $PYTHON" >&5
21728
 
echo "${ECHO_T}$PYTHON" >&6; }
21729
 
else
21730
 
  { echo "$as_me:$LINENO: result: no" >&5
21731
 
echo "${ECHO_T}no" >&6; }
21732
 
fi
21733
 
 
21734
 
 
21735
 
      fi
21736
 
      am_display_PYTHON=$am_cv_pathless_PYTHON
21737
 
    fi
21738
 
 
21739
 
 
21740
 
  if test "$PYTHON" = :; then
21741
 
      { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
21742
 
echo "$as_me: error: no suitable Python interpreter found" >&2;}
21743
 
   { (exit 1); exit 1; }; }
21744
 
  else
21745
 
 
21746
 
 
21747
 
  { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
21748
 
echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
21749
 
if test "${am_cv_python_version+set}" = set; then
21750
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21751
 
else
21752
 
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
21753
 
fi
21754
 
{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
21755
 
echo "${ECHO_T}$am_cv_python_version" >&6; }
21756
 
  PYTHON_VERSION=$am_cv_python_version
21757
 
 
21758
 
 
21759
 
 
21760
 
  PYTHON_PREFIX='${prefix}'
21761
 
 
21762
 
  PYTHON_EXEC_PREFIX='${exec_prefix}'
21763
 
 
21764
 
 
21765
 
 
21766
 
  { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
21767
 
echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
21768
 
if test "${am_cv_python_platform+set}" = set; then
21769
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21770
 
else
21771
 
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
21772
 
fi
21773
 
{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
21774
 
echo "${ECHO_T}$am_cv_python_platform" >&6; }
21775
 
  PYTHON_PLATFORM=$am_cv_python_platform
21776
 
 
21777
 
 
21778
 
 
21779
 
 
21780
 
                { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
21781
 
echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
21782
 
if test "${am_cv_python_pythondir+set}" = set; then
21783
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21784
 
else
21785
 
  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
21786
 
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
21787
 
fi
21788
 
{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
21789
 
echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
21790
 
  pythondir=$am_cv_python_pythondir
21791
 
 
21792
 
 
21793
 
 
21794
 
  pkgpythondir=\${pythondir}/$PACKAGE
21795
 
 
21796
 
 
21797
 
            { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
21798
 
echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
21799
 
if test "${am_cv_python_pyexecdir+set}" = set; then
21800
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21801
 
else
21802
 
  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
21803
 
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
21804
 
fi
21805
 
{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
21806
 
echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
21807
 
  pyexecdir=$am_cv_python_pyexecdir
21808
 
 
21809
 
 
21810
 
 
21811
 
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
21812
 
 
21813
 
 
21814
 
 
21815
 
  fi
21816
 
 
21817
 
 
21818
 
 
21819
 
        #
21820
 
        # should allow for checking of python version here...
21821
 
        #
21822
 
 
21823
 
 
21824
 
        # Check for Python include path
21825
 
        { echo "$as_me:$LINENO: checking for Python include path" >&5
21826
 
echo $ECHO_N "checking for Python include path... $ECHO_C" >&6; }
21827
 
   python_path=`$PYTHON -c 'from distutils import sysconfig; print sysconfig.get_python_inc();'`
21828
 
   f_python_path=`find $python_path -type f -name Python.h -print | sed "1q"`
21829
 
   if test -n "$f_python_path" ; then
21830
 
      python_path=`dirname $f_python_path`
21831
 
   fi
21832
 
        { echo "$as_me:$LINENO: result: $python_path" >&5
21833
 
echo "${ECHO_T}$python_path" >&6; }
21834
 
        if test -z "$python_path" ; then
21835
 
                { { echo "$as_me:$LINENO: error: cannot find Python include path" >&5
21836
 
echo "$as_me: error: cannot find Python include path" >&2;}
21837
 
   { (exit 1); exit 1; }; }
21838
 
        fi
21839
 
        PYTHON_CPPFLAGS=-I$python_path
21840
 
 
21841
 
 
21842
 
        # Check for Python library path - python exec_prefix changed above, need to
21843
 
        # reset
21844
 
        { echo "$as_me:$LINENO: checking for Python library path" >&5
21845
 
echo $ECHO_N "checking for Python library path... $ECHO_C" >&6; }
21846
 
   python_path=`$PYTHON -c 'import sys; print sys.exec_prefix;'`
21847
 
        for i in "$python_path/lib/python$PYTHON_VERSION/config/" "$python_path/lib/python$PYTHON_VERSION/" "$python_path/lib/python/config/" "$python_path/lib/python/" "$python_path/" ; do
21848
 
                python_path=`find $i -type f -name libpython$PYTHON_VERSION.* -print | sed "1q"`
21849
 
                if test -n "$python_path" ; then
21850
 
                        break
21851
 
                fi
21852
 
        done
21853
 
        python_path=`echo $python_path | sed "s,/libpython.*$,,"`
21854
 
        { echo "$as_me:$LINENO: result: $python_path" >&5
21855
 
echo "${ECHO_T}$python_path" >&6; }
21856
 
        if test -z "$python_path" ; then
21857
 
                { { echo "$as_me:$LINENO: error: cannot find Python library path" >&5
21858
 
echo "$as_me: error: cannot find Python library path" >&2;}
21859
 
   { (exit 1); exit 1; }; }
21860
 
        fi
21861
 
        PYTHON_LDFLAGS="-L$python_path"
21862
 
 
21863
 
        #
21864
 
        python_site=`echo $python_path | sed "s/config/site-packages/"`
21865
 
        PYTHON_SITE_PKG=$python_site
21866
 
 
21867
 
        #
21868
 
        # libraries which must be linked in when embedding
21869
 
        #
21870
 
        { echo "$as_me:$LINENO: checking python extra libraries" >&5
21871
 
echo $ECHO_N "checking python extra libraries... $ECHO_C" >&6; }
21872
 
        PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
21873
 
                conf = distutils.sysconfig.get_config_var; \
21874
 
                print conf('LOCALMODLIBS')+' '+conf('LIBS')"
21875
 
        { echo "$as_me:$LINENO: result: $PYTHON_EXTRA_LIBS" >&5
21876
 
echo "${ECHO_T}$PYTHON_EXTRA_LIBS" >&6; }`
21877
 
 
21878
 
 
21879
 
    CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
21880
 
    LDFLAGS="$LDFLAGS $PYTHON_LDFLAGS $PYTHON_EXTRA_LIBS"
21881
 
    if test "${ac_cv_header_Python_h+set}" = set; then
21882
 
  { echo "$as_me:$LINENO: checking for Python.h" >&5
21883
 
echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
21884
 
if test "${ac_cv_header_Python_h+set}" = set; then
21885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
21886
 
fi
21887
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
21888
 
echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
21889
 
else
21890
 
  # Is the header compilable?
21891
 
{ echo "$as_me:$LINENO: checking Python.h usability" >&5
21892
 
echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6; }
21893
 
cat >conftest.$ac_ext <<_ACEOF
21894
 
/* confdefs.h.  */
21895
 
_ACEOF
21896
 
cat confdefs.h >>conftest.$ac_ext
21897
 
cat >>conftest.$ac_ext <<_ACEOF
21898
 
/* end confdefs.h.  */
21899
 
$ac_includes_default
21900
 
#include <Python.h>
21901
 
_ACEOF
21902
 
rm -f conftest.$ac_objext
21903
 
if { (ac_try="$ac_compile"
21904
 
case "(($ac_try" in
21905
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906
 
  *) ac_try_echo=$ac_try;;
21907
 
esac
21908
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909
 
  (eval "$ac_compile") 2>conftest.er1
21910
 
  ac_status=$?
21911
 
  grep -v '^ *+' conftest.er1 >conftest.err
21912
 
  rm -f conftest.er1
21913
 
  cat conftest.err >&5
21914
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915
 
  (exit $ac_status); } && {
21916
 
         test -z "$ac_cxx_werror_flag" ||
21917
 
         test ! -s conftest.err
21918
 
       } && test -s conftest.$ac_objext; then
21919
 
  ac_header_compiler=yes
21920
 
else
21921
 
  echo "$as_me: failed program was:" >&5
21922
 
sed 's/^/| /' conftest.$ac_ext >&5
21923
 
 
21924
 
        ac_header_compiler=no
21925
 
fi
21926
 
 
21927
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21928
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21929
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
21930
 
 
21931
 
# Is the header present?
21932
 
{ echo "$as_me:$LINENO: checking Python.h presence" >&5
21933
 
echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6; }
21934
 
cat >conftest.$ac_ext <<_ACEOF
21935
 
/* confdefs.h.  */
21936
 
_ACEOF
21937
 
cat confdefs.h >>conftest.$ac_ext
21938
 
cat >>conftest.$ac_ext <<_ACEOF
21939
 
/* end confdefs.h.  */
21940
 
#include <Python.h>
21941
 
_ACEOF
21942
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21943
 
case "(($ac_try" in
21944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21945
 
  *) ac_try_echo=$ac_try;;
21946
 
esac
21947
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21948
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21949
 
  ac_status=$?
21950
 
  grep -v '^ *+' conftest.er1 >conftest.err
21951
 
  rm -f conftest.er1
21952
 
  cat conftest.err >&5
21953
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954
 
  (exit $ac_status); } >/dev/null && {
21955
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
21956
 
         test ! -s conftest.err
21957
 
       }; then
21958
 
  ac_header_preproc=yes
21959
 
else
21960
 
  echo "$as_me: failed program was:" >&5
21961
 
sed 's/^/| /' conftest.$ac_ext >&5
21962
 
 
21963
 
  ac_header_preproc=no
21964
 
fi
21965
 
 
21966
 
rm -f conftest.err conftest.$ac_ext
21967
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21968
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
21969
 
 
21970
 
# So?  What about this header?
21971
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
21972
 
  yes:no: )
21973
 
    { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
21974
 
echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21975
 
    { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
21976
 
echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
21977
 
    ac_header_preproc=yes
21978
 
    ;;
21979
 
  no:yes:* )
21980
 
    { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
21981
 
echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
21982
 
    { echo "$as_me:$LINENO: WARNING: Python.h:     check for missing prerequisite headers?" >&5
21983
 
echo "$as_me: WARNING: Python.h:     check for missing prerequisite headers?" >&2;}
21984
 
    { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
21985
 
echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
21986
 
    { echo "$as_me:$LINENO: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&5
21987
 
echo "$as_me: WARNING: Python.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21988
 
    { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
21989
 
echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
21990
 
    { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
21991
 
echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
21992
 
    ( cat <<\_ASBOX
21993
 
## ---------------------------------------------- ##
21994
 
## Report this to http://www.fenics.org/bugzilla/ ##
21995
 
## ---------------------------------------------- ##
21996
 
_ASBOX
21997
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
21998
 
    ;;
21999
 
esac
22000
 
{ echo "$as_me:$LINENO: checking for Python.h" >&5
22001
 
echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
22002
 
if test "${ac_cv_header_Python_h+set}" = set; then
22003
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22004
 
else
22005
 
  ac_cv_header_Python_h=$ac_header_preproc
22006
 
fi
22007
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
22008
 
echo "${ECHO_T}$ac_cv_header_Python_h" >&6; }
22009
 
 
22010
 
fi
22011
 
if test $ac_cv_header_Python_h = yes; then
22012
 
  have_python_dev=yes
22013
 
else
22014
 
  have_python_dev=no
22015
 
fi
22016
 
 
22017
 
 
22018
 
    if test $have_python_dev = no; then
22019
 
       echo "*** Cannot find Python development files on your system."
22020
 
       echo "*** Perhaps you need to install the package python$PYTHON_VERSION-dev?"
22021
 
       exit 1
22022
 
    fi
22023
 
 
22024
 
    # Extract the first word of "swig", so it can be a program name with args.
22025
 
set dummy swig; ac_word=$2
22026
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22027
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22028
 
if test "${ac_cv_prog_swig_found+set}" = set; then
22029
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22030
 
else
22031
 
  if test -n "$swig_found"; then
22032
 
  ac_cv_prog_swig_found="$swig_found" # Let the user override the test.
22033
 
else
22034
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22035
 
for as_dir in $PATH
22036
 
do
22037
 
  IFS=$as_save_IFS
22038
 
  test -z "$as_dir" && as_dir=.
22039
 
  for ac_exec_ext in '' $ac_executable_extensions; do
22040
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22041
 
    ac_cv_prog_swig_found="yes"
22042
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22043
 
    break 2
22044
 
  fi
22045
 
done
22046
 
done
22047
 
IFS=$as_save_IFS
22048
 
 
22049
 
  test -z "$ac_cv_prog_swig_found" && ac_cv_prog_swig_found="no"
22050
 
fi
22051
 
fi
22052
 
swig_found=$ac_cv_prog_swig_found
22053
 
if test -n "$swig_found"; then
22054
 
  { echo "$as_me:$LINENO: result: $swig_found" >&5
22055
 
echo "${ECHO_T}$swig_found" >&6; }
22056
 
else
22057
 
  { echo "$as_me:$LINENO: result: no" >&5
22058
 
echo "${ECHO_T}no" >&6; }
22059
 
fi
22060
 
 
22061
 
 
22062
 
    if test $swig_found = no; then
22063
 
      echo "*** Unable to find SWIG."
22064
 
      echo "*** Install SWIG or disable PyDOLFIN with --disable-pydolfin"
22065
 
      exit 1
22066
 
    fi
22067
 
 
22068
 
 
22069
 
        # Extract the first word of "swig", so it can be a program name with args.
22070
 
set dummy swig; ac_word=$2
22071
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22072
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22073
 
if test "${ac_cv_path_SWIG+set}" = set; then
22074
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22075
 
else
22076
 
  case $SWIG in
22077
 
  [\\/]* | ?:[\\/]*)
22078
 
  ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
22079
 
  ;;
22080
 
  *)
22081
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22082
 
for as_dir in $PATH
22083
 
do
22084
 
  IFS=$as_save_IFS
22085
 
  test -z "$as_dir" && as_dir=.
22086
 
  for ac_exec_ext in '' $ac_executable_extensions; do
22087
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22088
 
    ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
22089
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22090
 
    break 2
22091
 
  fi
22092
 
done
22093
 
done
22094
 
IFS=$as_save_IFS
22095
 
 
22096
 
  ;;
22097
 
esac
22098
 
fi
22099
 
SWIG=$ac_cv_path_SWIG
22100
 
if test -n "$SWIG"; then
22101
 
  { echo "$as_me:$LINENO: result: $SWIG" >&5
22102
 
echo "${ECHO_T}$SWIG" >&6; }
22103
 
else
22104
 
  { echo "$as_me:$LINENO: result: no" >&5
22105
 
echo "${ECHO_T}no" >&6; }
22106
 
fi
22107
 
 
22108
 
 
22109
 
        if test -z "$SWIG" ; then
22110
 
                { echo "$as_me:$LINENO: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&5
22111
 
echo "$as_me: WARNING: cannot find 'swig' program. You should look at http://www.swig.org" >&2;}
22112
 
                SWIG='echo "Error: SWIG is not installed. You should look at http://www.swig.org" ; false'
22113
 
        elif test -n "1.3.25" ; then
22114
 
                { echo "$as_me:$LINENO: checking for SWIG version" >&5
22115
 
echo $ECHO_N "checking for SWIG version... $ECHO_C" >&6; }
22116
 
                swig_version=`$SWIG -version 2>&1 | grep 'SWIG Version' | sed 's/.*\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\).*/\1/g'`
22117
 
                { echo "$as_me:$LINENO: result: $swig_version" >&5
22118
 
echo "${ECHO_T}$swig_version" >&6; }
22119
 
                if test -n "$swig_version" ; then
22120
 
                        # Calculate the required version number components
22121
 
                        required=1.3.25
22122
 
                        required_major=`echo $required | sed 's/[^0-9].*//'`
22123
 
                        if test -z "$required_major" ; then
22124
 
                                required_major=0
22125
 
                        fi
22126
 
                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22127
 
                        required_minor=`echo $required | sed 's/[^0-9].*//'`
22128
 
                        if test -z "$required_minor" ; then
22129
 
                                required_minor=0
22130
 
                        fi
22131
 
                        required=`echo $required | sed 's/[0-9]*[^0-9]//'`
22132
 
                        required_patch=`echo $required | sed 's/[^0-9].*//'`
22133
 
                        if test -z "$required_patch" ; then
22134
 
                                required_patch=0
22135
 
                        fi
22136
 
                        # Calculate the available version number components
22137
 
                        available=$swig_version
22138
 
                        available_major=`echo $available | sed 's/[^0-9].*//'`
22139
 
                        if test -z "$available_major" ; then
22140
 
                                available_major=0
22141
 
                        fi
22142
 
                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22143
 
                        available_minor=`echo $available | sed 's/[^0-9].*//'`
22144
 
                        if test -z "$available_minor" ; then
22145
 
                                available_minor=0
22146
 
                        fi
22147
 
                        available=`echo $available | sed 's/[0-9]*[^0-9]//'`
22148
 
                        available_patch=`echo $available | sed 's/[^0-9].*//'`
22149
 
                        if test -z "$available_patch" ; then
22150
 
                                available_patch=0
22151
 
                        fi
22152
 
                        if test $available_major -ne $required_major \
22153
 
                                -o $available_minor -ne $required_minor \
22154
 
                                -o $available_patch -lt $required_patch ; then
22155
 
                                { echo "$as_me:$LINENO: WARNING: SWIG version >= 1.3.25 is required.  You have $swig_version.  You should look at http://www.swig.org" >&5
22156
 
echo "$as_me: WARNING: SWIG version >= 1.3.25 is required.  You have $swig_version.  You should look at http://www.swig.org" >&2;}
22157
 
                                SWIG='echo "Error: SWIG version >= 1.3.25 is required.  You have '"$swig_version"'.  You should look at http://www.swig.org" ; false'
22158
 
                        else
22159
 
                                { echo "$as_me:$LINENO: SWIG executable is '$SWIG'" >&5
22160
 
echo "$as_me: SWIG executable is '$SWIG'" >&6;}
22161
 
                                SWIG_LIB=`$SWIG -swiglib`
22162
 
                                { echo "$as_me:$LINENO: SWIG library directory is '$SWIG_LIB'" >&5
22163
 
echo "$as_me: SWIG library directory is '$SWIG_LIB'" >&6;}
22164
 
                        fi
22165
 
                else
22166
 
                        { echo "$as_me:$LINENO: WARNING: cannot determine SWIG version" >&5
22167
 
echo "$as_me: WARNING: cannot determine SWIG version" >&2;}
22168
 
                        SWIG='echo "Error: Cannot determine SWIG version.  You should look at http://www.swig.org" ; false'
22169
 
                fi
22170
 
        fi
22171
 
 
22172
 
 
22173
 
 
22174
 
 
22175
 
 
22176
 
 
22177
 
        SWIG="$SWIG -c++"
22178
 
 
22179
 
 
22180
 
 
22181
 
 
22182
 
        test "x" != "xno" || swig_shadow=" -noproxy"
22183
 
        SWIG_PYTHON_OPT=-python$swig_shadow
22184
 
 
22185
 
        SWIG_PYTHON_CPPFLAGS=$PYTHON_CPPFLAGS
22186
 
 
22187
 
 
22188
 
 
22189
 
fi
22190
 
 
22191
 
# Check for NumPy
22192
 
if test x$enable_pydolfin = xyes; then
22193
 
    echo "checking for NumPy..."
22194
 
    NUMPY_CFLAGS=`$PYTHON numpy.conf`
22195
 
    if test $NUMPY_CFLAGS == none; then
22196
 
       echo "*** Cannot find NumPy on your system."
22197
 
       echo "*** Perhaps you need to install the package python-numpy?"
22198
 
       exit 1
22199
 
    fi
22200
 
    CPPFLAGS="$CPPFLAGS -I$NUMPY_CFLAGS"
22201
 
fi
22202
 
 
22203
 
# Make debug option default so developers don't forget it
22204
 
#echo "turning on debugging and warnings (use --enable-optimization to avoid this)."
22205
 
#enable_debug="yes"
22206
 
 
22207
 
# Disable Boost debug mode for configure without debug/optimize options
22208
 
CXXFLAGS="$CXXFLAGS -DNDEBUG"
22209
 
 
22210
 
# Handle option --enable-debug
22211
 
if test x$enable_debug = xyes; then
22212
 
    echo "enabling debugging compiler flags"
22213
 
    if test x$enable_debug_ublas = xyes; then
22214
 
       echo "enabling extra uBlas debugging compiler flags"
22215
 
       CXXFLAGS="-DDEBUG -g -O2 -Wall -Werror"
22216
 
    else
22217
 
       CXXFLAGS="-DDEBUG -g -O2 -Wall -Werror -DNDEBUG"
22218
 
    fi
22219
 
fi
22220
 
 
22221
 
# Handle option --enable-optimization
22222
 
if test x$enable_optimization = xyes; then
22223
 
    echo "enabling optimizing compiler flags"
22224
 
    CXXFLAGS="-O3  -Wall -ansi -DNDEBUG"
22225
 
fi
22226
 
 
22227
 
# Handle option --enable-debug-ublas
22228
 
# FIXME: Not handled
22229
 
 
22230
 
# Add compiler/platform specific flags
22231
 
case "${ax_cv_cxx_compiler_vendor}" in
22232
 
   gnu)
22233
 
        # Add '-Wno-uninitialized' due to a Cygwin gcc 3.4 bug and don't use -ansi.
22234
 
        # At least on Darwin, -o is not an allowed option!
22235
 
        if ! test `uname -s` = Darwin && test `uname -o` = Cygwin; then
22236
 
            echo "adding compiler flags for cygwin"
22237
 
            CXXFLAGS="$CXXFLAGS -Wno-uninitialized"
22238
 
        else
22239
 
            CXXFLAGS="$CXXFLAGS -pedantic -ansi -Wno-long-long -std=c++98"
22240
 
         fi
22241
 
        ;;
22242
 
   intel)
22243
 
        echo 'WARNING: Intel C++ compiler versions <= 9.0 are incompatible with'
22244
 
        echo 'header files gcc version <= 4.0. You can specify the version of'
22245
 
        echo 'gcc header files to be used by setting the compiler option'
22246
 
        echo '-gcc-name=<name> through the environment variables'
22247
 
        echo 'e.g. export INTEL_CXXFLAGS="-gcc-name=gcc-3.4"'
22248
 
        CXXFLAGS="$CXXFLAGS -ansi -wd111 -wd383 -wd654 -wd810 -wd869 -wd981 -wd1125 -wd1418 -wd1419 -wd1572 -wd1599 $INTEL_CXXFLAGS"
22249
 
        ;;
22250
 
esac
22251
 
 
22252
 
# Add '-fPIC' for AMD 64 bit system
22253
 
if test `uname -m` = x86_64; then
22254
 
    echo "adding -fPIC to compiler flags"
22255
 
    CXXFLAGS="$CXXFLAGS -fPIC"
22256
 
fi
22257
 
 
22258
 
# Handle option --enable-pydolfin
22259
 
 if test x$enable_pydolfin = xyes; then
22260
 
  COMPILE_PYDOLFIN_TRUE=
22261
 
  COMPILE_PYDOLFIN_FALSE='#'
22262
 
else
22263
 
  COMPILE_PYDOLFIN_TRUE='#'
22264
 
  COMPILE_PYDOLFIN_FALSE=
22265
 
fi
22266
 
 
22267
 
if test x$enable_pydolfin = xyes; then
22268
 
    echo "enabling compilation of PyDOLFIN"
22269
 
else
22270
 
    echo "disabling compilation of PyDOLFIN"
22271
 
fi
22272
 
 
22273
 
 
22274
 
# Handle option --disable-petsc
22275
 
if test x$enable_petsc = xyes; then
22276
 
 
22277
 
    # Handle option --with-petsc-dir=<path>
22278
 
    if test x$PETSC_DIR = x; then
22279
 
        PETSC_DIR="/usr/local/lib/petsc/"
22280
 
        echo "assuming path to PETSc is $PETSC_DIR"
22281
 
    else
22282
 
        echo "using PETSC_DIR=$PETSC_DIR"
22283
 
    fi
22284
 
 
22285
 
    # Check for PETSc
22286
 
    MKFILE=$PETSC_DIR/bmake/common/base
22287
 
    if test -f $MKFILE; then
22288
 
        # Extract PETSc variables
22289
 
        PETSC_CFLAGS=`make -sf petsc.conf get_petsc_include PETSC_DIR=$PETSC_DIR`
22290
 
        PETSC_LIBS=`make -sf petsc.conf get_petsc_libs PETSC_DIR=$PETSC_DIR`
22291
 
    else
22292
 
        echo "*** Unable to find PETSc on your system."
22293
 
        echo "*** Use --with-petsc-dir=<path> to specify the correct path for PETSc,"
22294
 
        echo "*** or set the environment variable PETSC_DIR to the correct path."
22295
 
        echo "*** PETSc is available at http://www-unix.mcs.anl.gov/petsc/petsc-2/"
22296
 
        exit 1
22297
 
    fi
22298
 
 
22299
 
    # Found PETSc, so set HAVE_PETSC_H
22300
 
    CXXFLAGS="-DHAVE_PETSC_H=1 $CXXFLAGS"
22301
 
 
22302
 
    # Check for eigenvalue solver extension SLEPc. Variable SLEPC_DIR must be set.
22303
 
    as_ac_Header=`echo "ac_cv_header_$SLEPC_DIR/include/slepcversion.h" | $as_tr_sh`
22304
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22305
 
  { echo "$as_me:$LINENO: checking for $SLEPC_DIR/include/slepcversion.h" >&5
22306
 
echo $ECHO_N "checking for $SLEPC_DIR/include/slepcversion.h... $ECHO_C" >&6; }
22307
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22308
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22309
 
fi
22310
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22311
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22312
 
echo "${ECHO_T}$ac_res" >&6; }
22313
 
else
22314
 
  # Is the header compilable?
22315
 
{ echo "$as_me:$LINENO: checking $SLEPC_DIR/include/slepcversion.h usability" >&5
22316
 
echo $ECHO_N "checking $SLEPC_DIR/include/slepcversion.h usability... $ECHO_C" >&6; }
22317
 
cat >conftest.$ac_ext <<_ACEOF
22318
 
/* confdefs.h.  */
22319
 
_ACEOF
22320
 
cat confdefs.h >>conftest.$ac_ext
22321
 
cat >>conftest.$ac_ext <<_ACEOF
22322
 
/* end confdefs.h.  */
22323
 
$ac_includes_default
22324
 
#include <$SLEPC_DIR/include/slepcversion.h>
22325
 
_ACEOF
22326
 
rm -f conftest.$ac_objext
22327
 
if { (ac_try="$ac_compile"
22328
 
case "(($ac_try" in
22329
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330
 
  *) ac_try_echo=$ac_try;;
22331
 
esac
22332
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333
 
  (eval "$ac_compile") 2>conftest.er1
22334
 
  ac_status=$?
22335
 
  grep -v '^ *+' conftest.er1 >conftest.err
22336
 
  rm -f conftest.er1
22337
 
  cat conftest.err >&5
22338
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339
 
  (exit $ac_status); } && {
22340
 
         test -z "$ac_cxx_werror_flag" ||
22341
 
         test ! -s conftest.err
22342
 
       } && test -s conftest.$ac_objext; then
22343
 
  ac_header_compiler=yes
22344
 
else
22345
 
  echo "$as_me: failed program was:" >&5
22346
 
sed 's/^/| /' conftest.$ac_ext >&5
22347
 
 
22348
 
        ac_header_compiler=no
22349
 
fi
22350
 
 
22351
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22352
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22353
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22354
 
 
22355
 
# Is the header present?
22356
 
{ echo "$as_me:$LINENO: checking $SLEPC_DIR/include/slepcversion.h presence" >&5
22357
 
echo $ECHO_N "checking $SLEPC_DIR/include/slepcversion.h presence... $ECHO_C" >&6; }
22358
 
cat >conftest.$ac_ext <<_ACEOF
22359
 
/* confdefs.h.  */
22360
 
_ACEOF
22361
 
cat confdefs.h >>conftest.$ac_ext
22362
 
cat >>conftest.$ac_ext <<_ACEOF
22363
 
/* end confdefs.h.  */
22364
 
#include <$SLEPC_DIR/include/slepcversion.h>
22365
 
_ACEOF
22366
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22367
 
case "(($ac_try" in
22368
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22369
 
  *) ac_try_echo=$ac_try;;
22370
 
esac
22371
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22372
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22373
 
  ac_status=$?
22374
 
  grep -v '^ *+' conftest.er1 >conftest.err
22375
 
  rm -f conftest.er1
22376
 
  cat conftest.err >&5
22377
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378
 
  (exit $ac_status); } >/dev/null && {
22379
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22380
 
         test ! -s conftest.err
22381
 
       }; then
22382
 
  ac_header_preproc=yes
22383
 
else
22384
 
  echo "$as_me: failed program was:" >&5
22385
 
sed 's/^/| /' conftest.$ac_ext >&5
22386
 
 
22387
 
  ac_header_preproc=no
22388
 
fi
22389
 
 
22390
 
rm -f conftest.err conftest.$ac_ext
22391
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22392
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22393
 
 
22394
 
# So?  What about this header?
22395
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22396
 
  yes:no: )
22397
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: accepted by the compiler, rejected by the preprocessor!" >&5
22398
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22399
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the compiler's result" >&5
22400
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the compiler's result" >&2;}
22401
 
    ac_header_preproc=yes
22402
 
    ;;
22403
 
  no:yes:* )
22404
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: present but cannot be compiled" >&5
22405
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: present but cannot be compiled" >&2;}
22406
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h:     check for missing prerequisite headers?" >&5
22407
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h:     check for missing prerequisite headers?" >&2;}
22408
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: see the Autoconf documentation" >&5
22409
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: see the Autoconf documentation" >&2;}
22410
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h:     section \"Present But Cannot Be Compiled\"" >&5
22411
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22412
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the preprocessor's result" >&5
22413
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: proceeding with the preprocessor's result" >&2;}
22414
 
    { echo "$as_me:$LINENO: WARNING: $SLEPC_DIR/include/slepcversion.h: in the future, the compiler will take precedence" >&5
22415
 
echo "$as_me: WARNING: $SLEPC_DIR/include/slepcversion.h: in the future, the compiler will take precedence" >&2;}
22416
 
    ( cat <<\_ASBOX
22417
 
## ---------------------------------------------- ##
22418
 
## Report this to http://www.fenics.org/bugzilla/ ##
22419
 
## ---------------------------------------------- ##
22420
 
_ASBOX
22421
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22422
 
    ;;
22423
 
esac
22424
 
{ echo "$as_me:$LINENO: checking for $SLEPC_DIR/include/slepcversion.h" >&5
22425
 
echo $ECHO_N "checking for $SLEPC_DIR/include/slepcversion.h... $ECHO_C" >&6; }
22426
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22427
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22428
 
else
22429
 
  eval "$as_ac_Header=\$ac_header_preproc"
22430
 
fi
22431
 
ac_res=`eval echo '${'$as_ac_Header'}'`
22432
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22433
 
echo "${ECHO_T}$ac_res" >&6; }
22434
 
 
22435
 
fi
22436
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22437
 
  have_slepc=yes
22438
 
else
22439
 
  have_slepc=no
22440
 
fi
22441
 
 
22442
 
 
22443
 
 
22444
 
    if test $have_slepc = yes; then
22445
 
        # Extract SLEPc variables
22446
 
        SLEPC_CFLAGS=`make -f slepc.conf get_slepc_include SLEPC_DIR=$SLEPC_DIR`
22447
 
        SLEPC_LIBS=`make -f slepc.conf get_slepc_libs SLEPC_DIR=$SLEPC_DIR`
22448
 
        CXXFLAGS="-DHAVE_SLEPC_H=1 $CXXFLAGS"
22449
 
    else
22450
 
        echo "SLEPc not found on your system."
22451
 
        echo "  SLEPc is a PETSc extension that provides eigenvalue solvers."
22452
 
        echo "  It is available at http://www.grycap.upv.es/slepc."
22453
 
    fi
22454
 
else
22455
 
    # Compile without PETSc
22456
 
    echo "disabling PETSc (some demos may not compile)"
22457
 
    PETSC_CFLAGS=""
22458
 
fi
22459
 
 
22460
 
# Handle option --disable-mpi
22461
 
if test x$enable_mpi = xyes; then
22462
 
 
22463
 
   # Check for MPI and print message if not found
22464
 
   # Extract the first word of "mpirun", so it can be a program name with args.
22465
 
set dummy mpirun; ac_word=$2
22466
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22467
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22468
 
if test "${ac_cv_prog_mpi_found+set}" = set; then
22469
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22470
 
else
22471
 
  if test -n "$mpi_found"; then
22472
 
  ac_cv_prog_mpi_found="$mpi_found" # Let the user override the test.
22473
 
else
22474
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22475
 
for as_dir in $PATH
22476
 
do
22477
 
  IFS=$as_save_IFS
22478
 
  test -z "$as_dir" && as_dir=.
22479
 
  for ac_exec_ext in '' $ac_executable_extensions; do
22480
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22481
 
    ac_cv_prog_mpi_found="yes"
22482
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22483
 
    break 2
22484
 
  fi
22485
 
done
22486
 
done
22487
 
IFS=$as_save_IFS
22488
 
 
22489
 
  test -z "$ac_cv_prog_mpi_found" && ac_cv_prog_mpi_found="no"
22490
 
fi
22491
 
fi
22492
 
mpi_found=$ac_cv_prog_mpi_found
22493
 
if test -n "$mpi_found"; then
22494
 
  { echo "$as_me:$LINENO: result: $mpi_found" >&5
22495
 
echo "${ECHO_T}$mpi_found" >&6; }
22496
 
else
22497
 
  { echo "$as_me:$LINENO: result: no" >&5
22498
 
echo "${ECHO_T}no" >&6; }
22499
 
fi
22500
 
 
22501
 
 
22502
 
   if test $mpi_found = no; then
22503
 
       echo "MPI not found (might not work if PETSc uses MPI)."
22504
 
   else
22505
 
       # Found MPI, so set HAVE_MPI_H and IGNORE_CXX_SEEK (mpich2 bug)
22506
 
       CXXFLAGS="-DHAVE_MPI_H=1 -DMPICH_IGNORE_CXX_SEEK $CXXFLAGS"
22507
 
   fi
22508
 
 
22509
 
fi
22510
 
 
22511
 
# Handle option --disable-scotch
22512
 
if test x$enable_scotch = xyes; then
22513
 
    # Check for SCOTCH
22514
 
    if test "${ac_cv_header_scotch_h+set}" = set; then
22515
 
  { echo "$as_me:$LINENO: checking for scotch.h" >&5
22516
 
echo $ECHO_N "checking for scotch.h... $ECHO_C" >&6; }
22517
 
if test "${ac_cv_header_scotch_h+set}" = set; then
22518
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22519
 
fi
22520
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_scotch_h" >&5
22521
 
echo "${ECHO_T}$ac_cv_header_scotch_h" >&6; }
22522
 
else
22523
 
  # Is the header compilable?
22524
 
{ echo "$as_me:$LINENO: checking scotch.h usability" >&5
22525
 
echo $ECHO_N "checking scotch.h usability... $ECHO_C" >&6; }
22526
 
cat >conftest.$ac_ext <<_ACEOF
22527
 
/* confdefs.h.  */
22528
 
_ACEOF
22529
 
cat confdefs.h >>conftest.$ac_ext
22530
 
cat >>conftest.$ac_ext <<_ACEOF
22531
 
/* end confdefs.h.  */
22532
 
$ac_includes_default
22533
 
#include <scotch.h>
22534
 
_ACEOF
22535
 
rm -f conftest.$ac_objext
22536
 
if { (ac_try="$ac_compile"
22537
 
case "(($ac_try" in
22538
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22539
 
  *) ac_try_echo=$ac_try;;
22540
 
esac
22541
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22542
 
  (eval "$ac_compile") 2>conftest.er1
22543
 
  ac_status=$?
22544
 
  grep -v '^ *+' conftest.er1 >conftest.err
22545
 
  rm -f conftest.er1
22546
 
  cat conftest.err >&5
22547
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548
 
  (exit $ac_status); } && {
22549
 
         test -z "$ac_cxx_werror_flag" ||
22550
 
         test ! -s conftest.err
22551
 
       } && test -s conftest.$ac_objext; then
22552
 
  ac_header_compiler=yes
22553
 
else
22554
 
  echo "$as_me: failed program was:" >&5
22555
 
sed 's/^/| /' conftest.$ac_ext >&5
22556
 
 
22557
 
        ac_header_compiler=no
22558
 
fi
22559
 
 
22560
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22561
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22562
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
22563
 
 
22564
 
# Is the header present?
22565
 
{ echo "$as_me:$LINENO: checking scotch.h presence" >&5
22566
 
echo $ECHO_N "checking scotch.h presence... $ECHO_C" >&6; }
22567
 
cat >conftest.$ac_ext <<_ACEOF
22568
 
/* confdefs.h.  */
22569
 
_ACEOF
22570
 
cat confdefs.h >>conftest.$ac_ext
22571
 
cat >>conftest.$ac_ext <<_ACEOF
22572
 
/* end confdefs.h.  */
22573
 
#include <scotch.h>
22574
 
_ACEOF
22575
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
22576
 
case "(($ac_try" in
22577
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578
 
  *) ac_try_echo=$ac_try;;
22579
 
esac
22580
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22582
 
  ac_status=$?
22583
 
  grep -v '^ *+' conftest.er1 >conftest.err
22584
 
  rm -f conftest.er1
22585
 
  cat conftest.err >&5
22586
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587
 
  (exit $ac_status); } >/dev/null && {
22588
 
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
22589
 
         test ! -s conftest.err
22590
 
       }; then
22591
 
  ac_header_preproc=yes
22592
 
else
22593
 
  echo "$as_me: failed program was:" >&5
22594
 
sed 's/^/| /' conftest.$ac_ext >&5
22595
 
 
22596
 
  ac_header_preproc=no
22597
 
fi
22598
 
 
22599
 
rm -f conftest.err conftest.$ac_ext
22600
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22601
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
22602
 
 
22603
 
# So?  What about this header?
22604
 
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
22605
 
  yes:no: )
22606
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: accepted by the compiler, rejected by the preprocessor!" >&5
22607
 
echo "$as_me: WARNING: scotch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22608
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: proceeding with the compiler's result" >&5
22609
 
echo "$as_me: WARNING: scotch.h: proceeding with the compiler's result" >&2;}
22610
 
    ac_header_preproc=yes
22611
 
    ;;
22612
 
  no:yes:* )
22613
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: present but cannot be compiled" >&5
22614
 
echo "$as_me: WARNING: scotch.h: present but cannot be compiled" >&2;}
22615
 
    { echo "$as_me:$LINENO: WARNING: scotch.h:     check for missing prerequisite headers?" >&5
22616
 
echo "$as_me: WARNING: scotch.h:     check for missing prerequisite headers?" >&2;}
22617
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: see the Autoconf documentation" >&5
22618
 
echo "$as_me: WARNING: scotch.h: see the Autoconf documentation" >&2;}
22619
 
    { echo "$as_me:$LINENO: WARNING: scotch.h:     section \"Present But Cannot Be Compiled\"" >&5
22620
 
echo "$as_me: WARNING: scotch.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22621
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: proceeding with the preprocessor's result" >&5
22622
 
echo "$as_me: WARNING: scotch.h: proceeding with the preprocessor's result" >&2;}
22623
 
    { echo "$as_me:$LINENO: WARNING: scotch.h: in the future, the compiler will take precedence" >&5
22624
 
echo "$as_me: WARNING: scotch.h: in the future, the compiler will take precedence" >&2;}
22625
 
    ( cat <<\_ASBOX
22626
 
## ---------------------------------------------- ##
22627
 
## Report this to http://www.fenics.org/bugzilla/ ##
22628
 
## ---------------------------------------------- ##
22629
 
_ASBOX
22630
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
22631
 
    ;;
22632
 
esac
22633
 
{ echo "$as_me:$LINENO: checking for scotch.h" >&5
22634
 
echo $ECHO_N "checking for scotch.h... $ECHO_C" >&6; }
22635
 
if test "${ac_cv_header_scotch_h+set}" = set; then
22636
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
22637
 
else
22638
 
  ac_cv_header_scotch_h=$ac_header_preproc
22639
 
fi
22640
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_scotch_h" >&5
22641
 
echo "${ECHO_T}$ac_cv_header_scotch_h" >&6; }
22642
 
 
22643
 
fi
22644
 
if test $ac_cv_header_scotch_h = yes; then
22645
 
  have_scotch_header=yes
22646
 
else
22647
 
  have_scotch_header=no
22648
 
fi
22649
 
 
22650
 
 
22651
 
    if test $have_scotch_header = yes; then
22652
 
      cat >>confdefs.h <<\_ACEOF
22653
 
#define HAVE_SCOTCH_H 1
22654
 
_ACEOF
22655
 
 
22656
 
      SCOTCH_CFLAGS="-DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME"
22657
 
      SCOTCH_LIBS="-lscotch -lscotcherr -lm"
22658
 
    else
22659
 
        echo "*** Unable to find SCOTCH on your system."
22660
 
        echo "*** This is experimental. You need put place SCOTCH include and"
22661
 
        echo "*** library files in the system path."
22662
 
        echo "*** SCOTCH is available at http://www.labri.fr/perso/pelegrin/scotch/"
22663
 
        exit 1
22664
 
    fi
22665
 
 
22666
 
    # Found SCOTCH, so set HAVE_SCOTCH_H
22667
 
    CXXFLAGS="-DHAVE_SCOTCH_H=1 $CXXFLAGS"
22668
 
 
22669
 
else
22670
 
    # Compile without SCOTCH
22671
 
    echo "disabling SCOTCH (mesh/graph partitioning will not work)"
22672
 
    SCOTCH_CFLAGS=""
22673
 
fi
22674
 
 
22675
 
# List of DOLFIN kernel libraries
22676
 
DOLFIN_KERNEL="common elements fem function graph io la main math mesh mf nls ode pde quadrature parameter log plot"
22677
 
 
22678
 
# Generate include path for external libraries
22679
 
EXTERNAL_CFLAGS="$PETSC_CFLAGS $SLEPC_CFLAGS $BOOST_CPPFLAGS $MPI_CFLAGS $XML_CPPFLAGS $UMFPACK_CFLAGS $GLIB_CFLAGS $GTS_CFLAGS $UFC_CFLAGS $SCOTCH_CFLAGS"
22680
 
 
22681
 
 
22682
 
KERNEL_CFLAGS=""
22683
 
for f in $DOLFIN_KERNEL; do
22684
 
    KERNEL_INCLUDE="$KERNEL_INCLUDE -I\$(top_builddir)/src/kernel/$f"
22685
 
done
22686
 
 
22687
 
 
22688
 
# Generate flags for kernel
22689
 
KERNEL_CFLAGS="$KERNEL_INCLUDE $EXTERNAL_CFLAGS"
22690
 
 
22691
 
 
22692
 
# Generate include path for main
22693
 
DOLFIN_CFLAGS="$KERNEL_INCLUDE $EXTERNAL_CFLAGS"
22694
 
 
22695
 
 
22696
 
# Extract compiler definitions
22697
 
DOLFIN_DEFINITIONS=""
22698
 
for i in $CXXFLAGS; do
22699
 
    if test $(echo $i | sed 's/^\(..\).*/\1/') == "-D"; then
22700
 
       DOLFIN_DEFINITIONS="$DOLFIN_DEFINITIONS $i"
22701
 
    fi
22702
 
done
22703
 
 
22704
 
 
22705
 
# External libraries which DOLFIN depends on
22706
 
DOLFIN_EXT_LIBS="$PETSC_LIBS $SLEPC_LIBS $XML_LIBS $UMFPACK_LIBS $GLIB_LIBS $GTS_LIBS $SCOTCH_LIBS"
22707
 
 
22708
 
echo "external libraries: $DOLFIN_EXT_LIBS"
22709
 
 
22710
 
# Library list which DOLFIN applications need to link against
22711
 
DOLFIN_LIBS="-ldolfin $PETSC_LIBS"
22712
 
DOLFIN_LIBS="$DOLFIN_LIBS $DOLFIN_EXT_LIBS"
22713
 
 
22714
 
 
22715
 
# Generate libtool library list
22716
 
KERNEL_LIBOBJS=""
22717
 
for f in $DOLFIN_KERNEL; do
22718
 
    KERNEL_LIBOBJS="$KERNEL_LIBOBJS \$(top_builddir)/src/kernel/$f/*.lo "
22719
 
done
22720
 
 
22721
 
 
22722
 
# Generate standard environment variables for installation
22723
 
echo "creating dolfin.conf"
22724
 
if test $prefix = NONE; then
22725
 
   prefix="/usr/local"
22726
 
fi
22727
 
CONFIG='dolfin.conf'
22728
 
rm -f $CONFIG
22729
 
echo 'export PATH="'$prefix'/bin:$PATH"' >> $CONFIG
22730
 
echo 'export LD_LIBRARY_PATH="'$prefix'/lib:$LD_LIBRARY_PATH"' >> $CONFIG
22731
 
echo 'export PKG_CONFIG_PATH="'$prefix'/lib/pkgconfig:$PKG_CONFIG_PATH"' >> $CONFIG
22732
 
echo 'export PYTHONPATH="'$prefix'/lib/python'$PYTHON_VERSION'/site-packages:$PYTHONPATH"' >> $CONFIG
22733
 
 
22734
 
# Export variables to makefiles
22735
 
 
22736
 
 
22737
 
 
22738
 
# List output to be generated: Makefiles and pkgconfig configuration
22739
 
ac_config_files="$ac_config_files Makefile src/Makefile src/kernel/Makefile src/kernel/common/Makefile src/kernel/common/dolfin/Makefile src/kernel/elements/Makefile src/kernel/elements/dolfin/Makefile src/kernel/fem/Makefile src/kernel/fem/dolfin/Makefile src/kernel/function/Makefile src/kernel/function/dolfin/Makefile src/kernel/graph/Makefile src/kernel/graph/dolfin/Makefile src/kernel/io/Makefile src/kernel/io/dolfin/Makefile src/kernel/la/Makefile src/kernel/la/dolfin/Makefile src/kernel/main/Makefile src/kernel/main/dolfin/Makefile src/kernel/math/Makefile src/kernel/math/dolfin/Makefile src/kernel/mesh/Makefile src/kernel/mesh/dolfin/Makefile src/kernel/mf/Makefile src/kernel/mf/dolfin/Makefile src/kernel/nls/Makefile src/kernel/nls/dolfin/Makefile src/kernel/ode/Makefile src/kernel/ode/dolfin/Makefile src/kernel/pde/Makefile src/kernel/pde/dolfin/Makefile src/kernel/plot/Makefile src/kernel/plot/dolfin/Makefile src/kernel/parameter/Makefile src/kernel/parameter/dolfin/Makefile src/kernel/quadrature/Makefile src/kernel/quadrature/dolfin/Makefile src/kernel/log/Makefile src/kernel/log/dolfin/Makefile src/lib/Makefile src/pydolfin/Makefile src/demo/Makefile src/test/Makefile src/bench/Makefile src/bench/fem/Makefile src/bench/la/Makefile src/bench/ode/Makefile src/utils/Makefile src/utils/inp2dx/Makefile src/utils/convert/Makefile src/utils/swig/Makefile src/greeting/Makefile dolfin.pc"
22740
 
 
22741
 
cat >confcache <<\_ACEOF
22742
 
# This file is a shell script that caches the results of configure
22743
 
# tests run on this system so they can be shared between configure
22744
 
# scripts and configure runs, see configure's option --config-cache.
22745
 
# It is not useful on other systems.  If it contains results you don't
22746
 
# want to keep, you may remove or edit it.
22747
 
#
22748
 
# config.status only pays attention to the cache file if you give it
22749
 
# the --recheck option to rerun configure.
22750
 
#
22751
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22752
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22753
 
# following values.
22754
 
 
22755
 
_ACEOF
22756
 
 
22757
 
# The following way of writing the cache mishandles newlines in values,
22758
 
# but we know of no workaround that is simple, portable, and efficient.
22759
 
# So, we kill variables containing newlines.
22760
 
# Ultrix sh set writes to stderr and can't be redirected directly,
22761
 
# and sets the high bit in the cache file unless we assign to the vars.
22762
 
(
22763
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22764
 
    eval ac_val=\$$ac_var
22765
 
    case $ac_val in #(
22766
 
    *${as_nl}*)
22767
 
      case $ac_var in #(
22768
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22769
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22770
 
      esac
22771
 
      case $ac_var in #(
22772
 
      _ | IFS | as_nl) ;; #(
22773
 
      *) $as_unset $ac_var ;;
22774
 
      esac ;;
22775
 
    esac
22776
 
  done
22777
 
 
22778
 
  (set) 2>&1 |
22779
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22780
 
    *${as_nl}ac_space=\ *)
22781
 
      # `set' does not quote correctly, so add quotes (double-quote
22782
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
22783
 
      sed -n \
22784
 
        "s/'/'\\\\''/g;
22785
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22786
 
      ;; #(
22787
 
    *)
22788
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22789
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22790
 
      ;;
22791
 
    esac |
22792
 
    sort
22793
 
) |
22794
 
  sed '
22795
 
     /^ac_cv_env_/b end
22796
 
     t clear
22797
 
     :clear
22798
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22799
 
     t end
22800
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22801
 
     :end' >>confcache
22802
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22803
 
  if test -w "$cache_file"; then
22804
 
    test "x$cache_file" != "x/dev/null" &&
22805
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22806
 
echo "$as_me: updating cache $cache_file" >&6;}
22807
 
    cat confcache >$cache_file
22808
 
  else
22809
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22810
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22811
 
  fi
22812
 
fi
22813
 
rm -f confcache
22814
 
 
22815
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22816
 
# Let make expand exec_prefix.
22817
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22818
 
 
22819
 
# Transform confdefs.h into DEFS.
22820
 
# Protect against shell expansion while executing Makefile rules.
22821
 
# Protect against Makefile macro expansion.
22822
 
#
22823
 
# If the first sed substitution is executed (which looks for macros that
22824
 
# take arguments), then branch to the quote section.  Otherwise,
22825
 
# look for a macro that doesn't take arguments.
22826
 
ac_script='
22827
 
t clear
22828
 
:clear
22829
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
22830
 
t quote
22831
 
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
22832
 
t quote
22833
 
b any
22834
 
:quote
22835
 
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22836
 
s/\[/\\&/g
22837
 
s/\]/\\&/g
22838
 
s/\$/$$/g
22839
 
H
22840
 
:any
22841
 
${
22842
 
        g
22843
 
        s/^\n//
22844
 
        s/\n/ /g
22845
 
        p
22846
 
}
22847
 
'
22848
 
DEFS=`sed -n "$ac_script" confdefs.h`
22849
 
 
22850
 
 
22851
 
ac_libobjs=
22852
 
ac_ltlibobjs=
22853
 
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22854
 
  # 1. Remove the extension, and $U if already installed.
22855
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22856
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
22857
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22858
 
  #    will be set to the directory where LIBOBJS objects are built.
22859
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22860
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22861
 
done
22862
 
LIBOBJS=$ac_libobjs
22863
 
 
22864
 
LTLIBOBJS=$ac_ltlibobjs
22865
 
 
22866
 
 
22867
 
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22868
 
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22869
 
Usually this means the macro was only invoked conditionally." >&5
22870
 
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22871
 
Usually this means the macro was only invoked conditionally." >&2;}
22872
 
   { (exit 1); exit 1; }; }
22873
 
fi
22874
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22875
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22876
 
Usually this means the macro was only invoked conditionally." >&5
22877
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
22878
 
Usually this means the macro was only invoked conditionally." >&2;}
22879
 
   { (exit 1); exit 1; }; }
22880
 
fi
22881
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22882
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22883
 
Usually this means the macro was only invoked conditionally." >&5
22884
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22885
 
Usually this means the macro was only invoked conditionally." >&2;}
22886
 
   { (exit 1); exit 1; }; }
22887
 
fi
22888
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22889
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22890
 
Usually this means the macro was only invoked conditionally." >&5
22891
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22892
 
Usually this means the macro was only invoked conditionally." >&2;}
22893
 
   { (exit 1); exit 1; }; }
22894
 
fi
22895
 
if test -z "${COMPILE_PYDOLFIN_TRUE}" && test -z "${COMPILE_PYDOLFIN_FALSE}"; then
22896
 
  { { echo "$as_me:$LINENO: error: conditional \"COMPILE_PYDOLFIN\" was never defined.
22897
 
Usually this means the macro was only invoked conditionally." >&5
22898
 
echo "$as_me: error: conditional \"COMPILE_PYDOLFIN\" was never defined.
22899
 
Usually this means the macro was only invoked conditionally." >&2;}
22900
 
   { (exit 1); exit 1; }; }
22901
 
fi
22902
 
 
22903
 
: ${CONFIG_STATUS=./config.status}
22904
 
ac_clean_files_save=$ac_clean_files
22905
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22906
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22907
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
22908
 
cat >$CONFIG_STATUS <<_ACEOF
22909
 
#! $SHELL
22910
 
# Generated by $as_me.
22911
 
# Run this file to recreate the current configuration.
22912
 
# Compiler output produced by configure, useful for debugging
22913
 
# configure, is in config.log if it exists.
22914
 
 
22915
 
debug=false
22916
 
ac_cs_recheck=false
22917
 
ac_cs_silent=false
22918
 
SHELL=\${CONFIG_SHELL-$SHELL}
22919
 
_ACEOF
22920
 
 
22921
 
cat >>$CONFIG_STATUS <<\_ACEOF
22922
 
## --------------------- ##
22923
 
## M4sh Initialization.  ##
22924
 
## --------------------- ##
22925
 
 
22926
 
# Be more Bourne compatible
22927
 
DUALCASE=1; export DUALCASE # for MKS sh
22928
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22929
 
  emulate sh
22930
 
  NULLCMD=:
22931
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22932
 
  # is contrary to our usage.  Disable this feature.
22933
 
  alias -g '${1+"$@"}'='"$@"'
22934
 
  setopt NO_GLOB_SUBST
22935
 
else
22936
 
  case `(set -o) 2>/dev/null` in
22937
 
  *posix*) set -o posix ;;
22938
 
esac
22939
 
 
22940
 
fi
22941
 
 
22942
 
 
22943
 
 
22944
 
 
22945
 
# PATH needs CR
22946
 
# Avoid depending upon Character Ranges.
22947
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22948
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22949
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22950
 
as_cr_digits='0123456789'
22951
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
22952
 
 
22953
 
# The user is always right.
22954
 
if test "${PATH_SEPARATOR+set}" != set; then
22955
 
  echo "#! /bin/sh" >conf$$.sh
22956
 
  echo  "exit 0"   >>conf$$.sh
22957
 
  chmod +x conf$$.sh
22958
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22959
 
    PATH_SEPARATOR=';'
22960
 
  else
22961
 
    PATH_SEPARATOR=:
22962
 
  fi
22963
 
  rm -f conf$$.sh
22964
 
fi
22965
 
 
22966
 
# Support unset when possible.
22967
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22968
 
  as_unset=unset
22969
 
else
22970
 
  as_unset=false
22971
 
fi
22972
 
 
22973
 
 
22974
 
# IFS
22975
 
# We need space, tab and new line, in precisely that order.  Quoting is
22976
 
# there to prevent editors from complaining about space-tab.
22977
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22978
 
# splitting by setting IFS to empty value.)
22979
 
as_nl='
22980
 
'
22981
 
IFS=" ""        $as_nl"
22982
 
 
22983
 
# Find who we are.  Look in the path if we contain no directory separator.
22984
 
case $0 in
22985
 
  *[\\/]* ) as_myself=$0 ;;
22986
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22987
 
for as_dir in $PATH
22988
 
do
22989
 
  IFS=$as_save_IFS
22990
 
  test -z "$as_dir" && as_dir=.
22991
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22992
 
done
22993
 
IFS=$as_save_IFS
22994
 
 
22995
 
     ;;
22996
 
esac
22997
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
22998
 
# in which case we are not to be found in the path.
22999
 
if test "x$as_myself" = x; then
23000
 
  as_myself=$0
23001
 
fi
23002
 
if test ! -f "$as_myself"; then
23003
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23004
 
  { (exit 1); exit 1; }
23005
 
fi
23006
 
 
23007
 
# Work around bugs in pre-3.0 UWIN ksh.
23008
 
for as_var in ENV MAIL MAILPATH
23009
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23010
 
done
23011
 
PS1='$ '
23012
 
PS2='> '
23013
 
PS4='+ '
23014
 
 
23015
 
# NLS nuisances.
23016
 
for as_var in \
23017
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23018
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23019
 
  LC_TELEPHONE LC_TIME
23020
 
do
23021
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23022
 
    eval $as_var=C; export $as_var
23023
 
  else
23024
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23025
 
  fi
23026
 
done
23027
 
 
23028
 
# Required to use basename.
23029
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
23030
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23031
 
  as_expr=expr
23032
 
else
23033
 
  as_expr=false
23034
 
fi
23035
 
 
23036
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23037
 
  as_basename=basename
23038
 
else
23039
 
  as_basename=false
23040
 
fi
23041
 
 
23042
 
 
23043
 
# Name of the executable.
23044
 
as_me=`$as_basename -- "$0" ||
23045
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23046
 
         X"$0" : 'X\(//\)$' \| \
23047
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23048
 
echo X/"$0" |
23049
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
23050
 
            s//\1/
23051
 
            q
23052
 
          }
23053
 
          /^X\/\(\/\/\)$/{
23054
 
            s//\1/
23055
 
            q
23056
 
          }
23057
 
          /^X\/\(\/\).*/{
23058
 
            s//\1/
23059
 
            q
23060
 
          }
23061
 
          s/.*/./; q'`
23062
 
 
23063
 
# CDPATH.
23064
 
$as_unset CDPATH
23065
 
 
23066
 
 
23067
 
 
23068
 
  as_lineno_1=$LINENO
23069
 
  as_lineno_2=$LINENO
23070
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
23071
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23072
 
 
23073
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23074
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
23075
 
  # line-number line after each line using $LINENO; the second 'sed'
23076
 
  # does the real work.  The second script uses 'N' to pair each
23077
 
  # line-number line with the line containing $LINENO, and appends
23078
 
  # trailing '-' during substitution so that $LINENO is not a special
23079
 
  # case at line end.
23080
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23081
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
23082
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
23083
 
  sed -n '
23084
 
    p
23085
 
    /[$]LINENO/=
23086
 
  ' <$as_myself |
23087
 
    sed '
23088
 
      s/[$]LINENO.*/&-/
23089
 
      t lineno
23090
 
      b
23091
 
      :lineno
23092
 
      N
23093
 
      :loop
23094
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23095
 
      t loop
23096
 
      s/-\n.*//
23097
 
    ' >$as_me.lineno &&
23098
 
  chmod +x "$as_me.lineno" ||
23099
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23100
 
   { (exit 1); exit 1; }; }
23101
 
 
23102
 
  # Don't try to exec as it changes $[0], causing all sort of problems
23103
 
  # (the dirname of $[0] is not the place where we might find the
23104
 
  # original and so on.  Autoconf is especially sensitive to this).
23105
 
  . "./$as_me.lineno"
23106
 
  # Exit status is that of the last command.
23107
 
  exit
23108
 
}
23109
 
 
23110
 
 
23111
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23112
 
  as_dirname=dirname
23113
 
else
23114
 
  as_dirname=false
23115
 
fi
23116
 
 
23117
 
ECHO_C= ECHO_N= ECHO_T=
23118
 
case `echo -n x` in
23119
 
-n*)
23120
 
  case `echo 'x\c'` in
23121
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23122
 
  *)   ECHO_C='\c';;
23123
 
  esac;;
23124
 
*)
23125
 
  ECHO_N='-n';;
23126
 
esac
23127
 
 
23128
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
23129
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23130
 
  as_expr=expr
23131
 
else
23132
 
  as_expr=false
23133
 
fi
23134
 
 
23135
 
rm -f conf$$ conf$$.exe conf$$.file
23136
 
if test -d conf$$.dir; then
23137
 
  rm -f conf$$.dir/conf$$.file
23138
 
else
23139
 
  rm -f conf$$.dir
23140
 
  mkdir conf$$.dir
23141
 
fi
23142
 
echo >conf$$.file
23143
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
23144
 
  as_ln_s='ln -s'
23145
 
  # ... but there are two gotchas:
23146
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23147
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23148
 
  # In both cases, we have to default to `cp -p'.
23149
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23150
 
    as_ln_s='cp -p'
23151
 
elif ln conf$$.file conf$$ 2>/dev/null; then
23152
 
  as_ln_s=ln
23153
 
else
23154
 
  as_ln_s='cp -p'
23155
 
fi
23156
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23157
 
rmdir conf$$.dir 2>/dev/null
23158
 
 
23159
 
if mkdir -p . 2>/dev/null; then
23160
 
  as_mkdir_p=:
23161
 
else
23162
 
  test -d ./-p && rmdir ./-p
23163
 
  as_mkdir_p=false
23164
 
fi
23165
 
 
23166
 
if test -x / >/dev/null 2>&1; then
23167
 
  as_test_x='test -x'
23168
 
else
23169
 
  if ls -dL / >/dev/null 2>&1; then
23170
 
    as_ls_L_option=L
23171
 
  else
23172
 
    as_ls_L_option=
23173
 
  fi
23174
 
  as_test_x='
23175
 
    eval sh -c '\''
23176
 
      if test -d "$1"; then
23177
 
        test -d "$1/.";
23178
 
      else
23179
 
        case $1 in
23180
 
        -*)set "./$1";;
23181
 
        esac;
23182
 
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23183
 
        ???[sx]*):;;*)false;;esac;fi
23184
 
    '\'' sh
23185
 
  '
23186
 
fi
23187
 
as_executable_p=$as_test_x
23188
 
 
23189
 
# Sed expression to map a string onto a valid CPP name.
23190
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23191
 
 
23192
 
# Sed expression to map a string onto a valid variable name.
23193
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23194
 
 
23195
 
 
23196
 
exec 6>&1
23197
 
 
23198
 
# Save the log message, to keep $[0] and so on meaningful, and to
23199
 
# report actual input values of CONFIG_FILES etc. instead of their
23200
 
# values after options handling.
23201
 
ac_log="
23202
 
This file was extended by DOLFIN $as_me 0.7.2, which was
23203
 
generated by GNU Autoconf 2.61.  Invocation command line was
23204
 
 
23205
 
  CONFIG_FILES    = $CONFIG_FILES
23206
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
23207
 
  CONFIG_LINKS    = $CONFIG_LINKS
23208
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
23209
 
  $ $0 $@
23210
 
 
23211
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23212
 
"
23213
 
 
23214
 
_ACEOF
23215
 
 
23216
 
cat >>$CONFIG_STATUS <<_ACEOF
23217
 
# Files that config.status was made for.
23218
 
config_files="$ac_config_files"
23219
 
config_commands="$ac_config_commands"
23220
 
 
23221
 
_ACEOF
23222
 
 
23223
 
cat >>$CONFIG_STATUS <<\_ACEOF
23224
 
ac_cs_usage="\
23225
 
\`$as_me' instantiates files from templates according to the
23226
 
current configuration.
23227
 
 
23228
 
Usage: $0 [OPTIONS] [FILE]...
23229
 
 
23230
 
  -h, --help       print this help, then exit
23231
 
  -V, --version    print version number and configuration settings, then exit
23232
 
  -q, --quiet      do not print progress messages
23233
 
  -d, --debug      don't remove temporary files
23234
 
      --recheck    update $as_me by reconfiguring in the same conditions
23235
 
  --file=FILE[:TEMPLATE]
23236
 
                   instantiate the configuration file FILE
23237
 
 
23238
 
Configuration files:
23239
 
$config_files
23240
 
 
23241
 
Configuration commands:
23242
 
$config_commands
23243
 
 
23244
 
Report bugs to <bug-autoconf@gnu.org>."
23245
 
 
23246
 
_ACEOF
23247
 
cat >>$CONFIG_STATUS <<_ACEOF
23248
 
ac_cs_version="\\
23249
 
DOLFIN config.status 0.7.2
23250
 
configured by $0, generated by GNU Autoconf 2.61,
23251
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23252
 
 
23253
 
Copyright (C) 2006 Free Software Foundation, Inc.
23254
 
This config.status script is free software; the Free Software Foundation
23255
 
gives unlimited permission to copy, distribute and modify it."
23256
 
 
23257
 
ac_pwd='$ac_pwd'
23258
 
srcdir='$srcdir'
23259
 
INSTALL='$INSTALL'
23260
 
MKDIR_P='$MKDIR_P'
23261
 
_ACEOF
23262
 
 
23263
 
cat >>$CONFIG_STATUS <<\_ACEOF
23264
 
# If no file are specified by the user, then we need to provide default
23265
 
# value.  By we need to know if files were specified by the user.
23266
 
ac_need_defaults=:
23267
 
while test $# != 0
23268
 
do
23269
 
  case $1 in
23270
 
  --*=*)
23271
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23272
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23273
 
    ac_shift=:
23274
 
    ;;
23275
 
  *)
23276
 
    ac_option=$1
23277
 
    ac_optarg=$2
23278
 
    ac_shift=shift
23279
 
    ;;
23280
 
  esac
23281
 
 
23282
 
  case $ac_option in
23283
 
  # Handling of the options.
23284
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23285
 
    ac_cs_recheck=: ;;
23286
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23287
 
    echo "$ac_cs_version"; exit ;;
23288
 
  --debug | --debu | --deb | --de | --d | -d )
23289
 
    debug=: ;;
23290
 
  --file | --fil | --fi | --f )
23291
 
    $ac_shift
23292
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23293
 
    ac_need_defaults=false;;
23294
 
  --he | --h |  --help | --hel | -h )
23295
 
    echo "$ac_cs_usage"; exit ;;
23296
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23297
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23298
 
    ac_cs_silent=: ;;
23299
 
 
23300
 
  # This is an error.
23301
 
  -*) { echo "$as_me: error: unrecognized option: $1
23302
 
Try \`$0 --help' for more information." >&2
23303
 
   { (exit 1); exit 1; }; } ;;
23304
 
 
23305
 
  *) ac_config_targets="$ac_config_targets $1"
23306
 
     ac_need_defaults=false ;;
23307
 
 
23308
 
  esac
23309
 
  shift
23310
 
done
23311
 
 
23312
 
ac_configure_extra_args=
23313
 
 
23314
 
if $ac_cs_silent; then
23315
 
  exec 6>/dev/null
23316
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
23317
 
fi
23318
 
 
23319
 
_ACEOF
23320
 
cat >>$CONFIG_STATUS <<_ACEOF
23321
 
if \$ac_cs_recheck; then
23322
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23323
 
  CONFIG_SHELL=$SHELL
23324
 
  export CONFIG_SHELL
23325
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23326
 
fi
23327
 
 
23328
 
_ACEOF
23329
 
cat >>$CONFIG_STATUS <<\_ACEOF
23330
 
exec 5>>config.log
23331
 
{
23332
 
  echo
23333
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23334
 
## Running $as_me. ##
23335
 
_ASBOX
23336
 
  echo "$ac_log"
23337
 
} >&5
23338
 
 
23339
 
_ACEOF
23340
 
cat >>$CONFIG_STATUS <<_ACEOF
23341
 
#
23342
 
# INIT-COMMANDS
23343
 
#
23344
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23345
 
 
23346
 
_ACEOF
23347
 
 
23348
 
cat >>$CONFIG_STATUS <<\_ACEOF
23349
 
 
23350
 
# Handling of arguments.
23351
 
for ac_config_target in $ac_config_targets
23352
 
do
23353
 
  case $ac_config_target in
23354
 
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23355
 
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23356
 
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23357
 
    "src/kernel/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/Makefile" ;;
23358
 
    "src/kernel/common/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/common/Makefile" ;;
23359
 
    "src/kernel/common/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/common/dolfin/Makefile" ;;
23360
 
    "src/kernel/elements/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/elements/Makefile" ;;
23361
 
    "src/kernel/elements/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/elements/dolfin/Makefile" ;;
23362
 
    "src/kernel/fem/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/fem/Makefile" ;;
23363
 
    "src/kernel/fem/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/fem/dolfin/Makefile" ;;
23364
 
    "src/kernel/function/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/function/Makefile" ;;
23365
 
    "src/kernel/function/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/function/dolfin/Makefile" ;;
23366
 
    "src/kernel/graph/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/graph/Makefile" ;;
23367
 
    "src/kernel/graph/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/graph/dolfin/Makefile" ;;
23368
 
    "src/kernel/io/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/io/Makefile" ;;
23369
 
    "src/kernel/io/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/io/dolfin/Makefile" ;;
23370
 
    "src/kernel/la/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/la/Makefile" ;;
23371
 
    "src/kernel/la/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/la/dolfin/Makefile" ;;
23372
 
    "src/kernel/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/main/Makefile" ;;
23373
 
    "src/kernel/main/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/main/dolfin/Makefile" ;;
23374
 
    "src/kernel/math/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/math/Makefile" ;;
23375
 
    "src/kernel/math/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/math/dolfin/Makefile" ;;
23376
 
    "src/kernel/mesh/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mesh/Makefile" ;;
23377
 
    "src/kernel/mesh/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mesh/dolfin/Makefile" ;;
23378
 
    "src/kernel/mf/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mf/Makefile" ;;
23379
 
    "src/kernel/mf/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/mf/dolfin/Makefile" ;;
23380
 
    "src/kernel/nls/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/nls/Makefile" ;;
23381
 
    "src/kernel/nls/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/nls/dolfin/Makefile" ;;
23382
 
    "src/kernel/ode/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/ode/Makefile" ;;
23383
 
    "src/kernel/ode/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/ode/dolfin/Makefile" ;;
23384
 
    "src/kernel/pde/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/pde/Makefile" ;;
23385
 
    "src/kernel/pde/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/pde/dolfin/Makefile" ;;
23386
 
    "src/kernel/plot/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/plot/Makefile" ;;
23387
 
    "src/kernel/plot/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/plot/dolfin/Makefile" ;;
23388
 
    "src/kernel/parameter/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/parameter/Makefile" ;;
23389
 
    "src/kernel/parameter/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/parameter/dolfin/Makefile" ;;
23390
 
    "src/kernel/quadrature/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/quadrature/Makefile" ;;
23391
 
    "src/kernel/quadrature/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/quadrature/dolfin/Makefile" ;;
23392
 
    "src/kernel/log/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/log/Makefile" ;;
23393
 
    "src/kernel/log/dolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/kernel/log/dolfin/Makefile" ;;
23394
 
    "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
23395
 
    "src/pydolfin/Makefile") CONFIG_FILES="$CONFIG_FILES src/pydolfin/Makefile" ;;
23396
 
    "src/demo/Makefile") CONFIG_FILES="$CONFIG_FILES src/demo/Makefile" ;;
23397
 
    "src/test/Makefile") CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
23398
 
    "src/bench/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/Makefile" ;;
23399
 
    "src/bench/fem/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/fem/Makefile" ;;
23400
 
    "src/bench/la/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/la/Makefile" ;;
23401
 
    "src/bench/ode/Makefile") CONFIG_FILES="$CONFIG_FILES src/bench/ode/Makefile" ;;
23402
 
    "src/utils/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/Makefile" ;;
23403
 
    "src/utils/inp2dx/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/inp2dx/Makefile" ;;
23404
 
    "src/utils/convert/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/convert/Makefile" ;;
23405
 
    "src/utils/swig/Makefile") CONFIG_FILES="$CONFIG_FILES src/utils/swig/Makefile" ;;
23406
 
    "src/greeting/Makefile") CONFIG_FILES="$CONFIG_FILES src/greeting/Makefile" ;;
23407
 
    "dolfin.pc") CONFIG_FILES="$CONFIG_FILES dolfin.pc" ;;
23408
 
 
23409
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23410
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23411
 
   { (exit 1); exit 1; }; };;
23412
 
  esac
23413
 
done
23414
 
 
23415
 
 
23416
 
# If the user did not use the arguments to specify the items to instantiate,
23417
 
# then the envvar interface is used.  Set only those that are not.
23418
 
# We use the long form for the default assignment because of an extremely
23419
 
# bizarre bug on SunOS 4.1.3.
23420
 
if $ac_need_defaults; then
23421
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23422
 
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23423
 
fi
23424
 
 
23425
 
# Have a temporary directory for convenience.  Make it in the build tree
23426
 
# simply because there is no reason against having it here, and in addition,
23427
 
# creating and moving files from /tmp can sometimes cause problems.
23428
 
# Hook for its removal unless debugging.
23429
 
# Note that there is a small window in which the directory will not be cleaned:
23430
 
# after its creation but before its name has been assigned to `$tmp'.
23431
 
$debug ||
23432
 
{
23433
 
  tmp=
23434
 
  trap 'exit_status=$?
23435
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23436
 
' 0
23437
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
23438
 
}
23439
 
# Create a (secure) tmp directory for tmp files.
23440
 
 
23441
 
{
23442
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23443
 
  test -n "$tmp" && test -d "$tmp"
23444
 
}  ||
23445
 
{
23446
 
  tmp=./conf$$-$RANDOM
23447
 
  (umask 077 && mkdir "$tmp")
23448
 
} ||
23449
 
{
23450
 
   echo "$me: cannot create a temporary directory in ." >&2
23451
 
   { (exit 1); exit 1; }
23452
 
}
23453
 
 
23454
 
#
23455
 
# Set up the sed scripts for CONFIG_FILES section.
23456
 
#
23457
 
 
23458
 
# No need to generate the scripts if there are no CONFIG_FILES.
23459
 
# This happens for instance when ./config.status config.h
23460
 
if test -n "$CONFIG_FILES"; then
23461
 
 
23462
 
_ACEOF
23463
 
 
23464
 
 
23465
 
 
23466
 
ac_delim='%!_!# '
23467
 
for ac_last_try in false false false false false :; do
23468
 
  cat >conf$$subs.sed <<_ACEOF
23469
 
SHELL!$SHELL$ac_delim
23470
 
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23471
 
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23472
 
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23473
 
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23474
 
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23475
 
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23476
 
exec_prefix!$exec_prefix$ac_delim
23477
 
prefix!$prefix$ac_delim
23478
 
program_transform_name!$program_transform_name$ac_delim
23479
 
bindir!$bindir$ac_delim
23480
 
sbindir!$sbindir$ac_delim
23481
 
libexecdir!$libexecdir$ac_delim
23482
 
datarootdir!$datarootdir$ac_delim
23483
 
datadir!$datadir$ac_delim
23484
 
sysconfdir!$sysconfdir$ac_delim
23485
 
sharedstatedir!$sharedstatedir$ac_delim
23486
 
localstatedir!$localstatedir$ac_delim
23487
 
includedir!$includedir$ac_delim
23488
 
oldincludedir!$oldincludedir$ac_delim
23489
 
docdir!$docdir$ac_delim
23490
 
infodir!$infodir$ac_delim
23491
 
htmldir!$htmldir$ac_delim
23492
 
dvidir!$dvidir$ac_delim
23493
 
pdfdir!$pdfdir$ac_delim
23494
 
psdir!$psdir$ac_delim
23495
 
libdir!$libdir$ac_delim
23496
 
localedir!$localedir$ac_delim
23497
 
mandir!$mandir$ac_delim
23498
 
DEFS!$DEFS$ac_delim
23499
 
ECHO_C!$ECHO_C$ac_delim
23500
 
ECHO_N!$ECHO_N$ac_delim
23501
 
ECHO_T!$ECHO_T$ac_delim
23502
 
LIBS!$LIBS$ac_delim
23503
 
build_alias!$build_alias$ac_delim
23504
 
host_alias!$host_alias$ac_delim
23505
 
target_alias!$target_alias$ac_delim
23506
 
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23507
 
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23508
 
INSTALL_DATA!$INSTALL_DATA$ac_delim
23509
 
am__isrc!$am__isrc$ac_delim
23510
 
CYGPATH_W!$CYGPATH_W$ac_delim
23511
 
PACKAGE!$PACKAGE$ac_delim
23512
 
VERSION!$VERSION$ac_delim
23513
 
ACLOCAL!$ACLOCAL$ac_delim
23514
 
AUTOCONF!$AUTOCONF$ac_delim
23515
 
AUTOMAKE!$AUTOMAKE$ac_delim
23516
 
AUTOHEADER!$AUTOHEADER$ac_delim
23517
 
MAKEINFO!$MAKEINFO$ac_delim
23518
 
install_sh!$install_sh$ac_delim
23519
 
STRIP!$STRIP$ac_delim
23520
 
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
23521
 
mkdir_p!$mkdir_p$ac_delim
23522
 
AWK!$AWK$ac_delim
23523
 
SET_MAKE!$SET_MAKE$ac_delim
23524
 
am__leading_dot!$am__leading_dot$ac_delim
23525
 
AMTAR!$AMTAR$ac_delim
23526
 
am__tar!$am__tar$ac_delim
23527
 
am__untar!$am__untar$ac_delim
23528
 
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
23529
 
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
23530
 
MAINT!$MAINT$ac_delim
23531
 
CXX!$CXX$ac_delim
23532
 
CXXFLAGS!$CXXFLAGS$ac_delim
23533
 
LDFLAGS!$LDFLAGS$ac_delim
23534
 
CPPFLAGS!$CPPFLAGS$ac_delim
23535
 
ac_ct_CXX!$ac_ct_CXX$ac_delim
23536
 
EXEEXT!$EXEEXT$ac_delim
23537
 
OBJEXT!$OBJEXT$ac_delim
23538
 
DEPDIR!$DEPDIR$ac_delim
23539
 
am__include!$am__include$ac_delim
23540
 
am__quote!$am__quote$ac_delim
23541
 
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
23542
 
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
23543
 
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
23544
 
CXXDEPMODE!$CXXDEPMODE$ac_delim
23545
 
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
23546
 
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
23547
 
CC!$CC$ac_delim
23548
 
CFLAGS!$CFLAGS$ac_delim
23549
 
ac_ct_CC!$ac_ct_CC$ac_delim
23550
 
CCDEPMODE!$CCDEPMODE$ac_delim
23551
 
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
23552
 
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
23553
 
LN_S!$LN_S$ac_delim
23554
 
CXXCPP!$CXXCPP$ac_delim
23555
 
GREP!$GREP$ac_delim
23556
 
EGREP!$EGREP$ac_delim
23557
 
libtool_found!$libtool_found$ac_delim
23558
 
build!$build$ac_delim
23559
 
build_cpu!$build_cpu$ac_delim
23560
 
build_vendor!$build_vendor$ac_delim
23561
 
build_os!$build_os$ac_delim
23562
 
host!$host$ac_delim
23563
 
host_cpu!$host_cpu$ac_delim
23564
 
host_vendor!$host_vendor$ac_delim
23565
 
host_os!$host_os$ac_delim
23566
 
_ACEOF
23567
 
 
23568
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23569
 
    break
23570
 
  elif $ac_last_try; then
23571
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23572
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23573
 
   { (exit 1); exit 1; }; }
23574
 
  else
23575
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23576
 
  fi
23577
 
done
23578
 
 
23579
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23580
 
if test -n "$ac_eof"; then
23581
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23582
 
  ac_eof=`expr $ac_eof + 1`
23583
 
fi
23584
 
 
23585
 
cat >>$CONFIG_STATUS <<_ACEOF
23586
 
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23587
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23588
 
_ACEOF
23589
 
sed '
23590
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23591
 
s/^/s,@/; s/!/@,|#_!!_#|/
23592
 
:n
23593
 
t n
23594
 
s/'"$ac_delim"'$/,g/; t
23595
 
s/$/\\/; p
23596
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23597
 
' >>$CONFIG_STATUS <conf$$subs.sed
23598
 
rm -f conf$$subs.sed
23599
 
cat >>$CONFIG_STATUS <<_ACEOF
23600
 
CEOF$ac_eof
23601
 
_ACEOF
23602
 
 
23603
 
 
23604
 
ac_delim='%!_!# '
23605
 
for ac_last_try in false false false false false :; do
23606
 
  cat >conf$$subs.sed <<_ACEOF
23607
 
ECHO!$ECHO$ac_delim
23608
 
AR!$AR$ac_delim
23609
 
RANLIB!$RANLIB$ac_delim
23610
 
CPP!$CPP$ac_delim
23611
 
F77!$F77$ac_delim
23612
 
FFLAGS!$FFLAGS$ac_delim
23613
 
ac_ct_F77!$ac_ct_F77$ac_delim
23614
 
LIBTOOL!$LIBTOOL$ac_delim
23615
 
XML2_CONFIG!$XML2_CONFIG$ac_delim
23616
 
XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
23617
 
XML_LIBS!$XML_LIBS$ac_delim
23618
 
BOOST_CPPFLAGS!$BOOST_CPPFLAGS$ac_delim
23619
 
BOOST_LDFLAGS!$BOOST_LDFLAGS$ac_delim
23620
 
PKG_CONFIG!$PKG_CONFIG$ac_delim
23621
 
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
23622
 
GLIB_LIBS!$GLIB_LIBS$ac_delim
23623
 
GTS_CFLAGS!$GTS_CFLAGS$ac_delim
23624
 
GTS_LIBS!$GTS_LIBS$ac_delim
23625
 
UFC_CFLAGS!$UFC_CFLAGS$ac_delim
23626
 
UFC_LIBS!$UFC_LIBS$ac_delim
23627
 
PYTHON!$PYTHON$ac_delim
23628
 
PYTHON_VERSION!$PYTHON_VERSION$ac_delim
23629
 
PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
23630
 
PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
23631
 
PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
23632
 
pythondir!$pythondir$ac_delim
23633
 
pkgpythondir!$pkgpythondir$ac_delim
23634
 
pyexecdir!$pyexecdir$ac_delim
23635
 
pkgpyexecdir!$pkgpyexecdir$ac_delim
23636
 
PYTHON_CPPFLAGS!$PYTHON_CPPFLAGS$ac_delim
23637
 
PYTHON_LDFLAGS!$PYTHON_LDFLAGS$ac_delim
23638
 
PYTHON_SITE_PKG!$PYTHON_SITE_PKG$ac_delim
23639
 
PYTHON_EXTRA_LIBS!$PYTHON_EXTRA_LIBS$ac_delim
23640
 
swig_found!$swig_found$ac_delim
23641
 
SWIG!$SWIG$ac_delim
23642
 
SWIG_LIB!$SWIG_LIB$ac_delim
23643
 
SWIG_PYTHON_OPT!$SWIG_PYTHON_OPT$ac_delim
23644
 
SWIG_PYTHON_CPPFLAGS!$SWIG_PYTHON_CPPFLAGS$ac_delim
23645
 
COMPILE_PYDOLFIN_TRUE!$COMPILE_PYDOLFIN_TRUE$ac_delim
23646
 
COMPILE_PYDOLFIN_FALSE!$COMPILE_PYDOLFIN_FALSE$ac_delim
23647
 
mpi_found!$mpi_found$ac_delim
23648
 
EXTERNAL_CFLAGS!$EXTERNAL_CFLAGS$ac_delim
23649
 
KERNEL_INCLUDE!$KERNEL_INCLUDE$ac_delim
23650
 
KERNEL_CFLAGS!$KERNEL_CFLAGS$ac_delim
23651
 
DOLFIN_CFLAGS!$DOLFIN_CFLAGS$ac_delim
23652
 
DOLFIN_DEFINITIONS!$DOLFIN_DEFINITIONS$ac_delim
23653
 
DOLFIN_EXT_LIBS!$DOLFIN_EXT_LIBS$ac_delim
23654
 
DOLFIN_LIBS!$DOLFIN_LIBS$ac_delim
23655
 
KERNEL_LIBOBJS!$KERNEL_LIBOBJS$ac_delim
23656
 
LIBOBJS!$LIBOBJS$ac_delim
23657
 
LTLIBOBJS!$LTLIBOBJS$ac_delim
23658
 
_ACEOF
23659
 
 
23660
 
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
23661
 
    break
23662
 
  elif $ac_last_try; then
23663
 
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23664
 
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23665
 
   { (exit 1); exit 1; }; }
23666
 
  else
23667
 
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23668
 
  fi
23669
 
done
23670
 
 
23671
 
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23672
 
if test -n "$ac_eof"; then
23673
 
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23674
 
  ac_eof=`expr $ac_eof + 1`
23675
 
fi
23676
 
 
23677
 
cat >>$CONFIG_STATUS <<_ACEOF
23678
 
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23679
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23680
 
_ACEOF
23681
 
sed '
23682
 
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23683
 
s/^/s,@/; s/!/@,|#_!!_#|/
23684
 
:n
23685
 
t n
23686
 
s/'"$ac_delim"'$/,g/; t
23687
 
s/$/\\/; p
23688
 
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23689
 
' >>$CONFIG_STATUS <conf$$subs.sed
23690
 
rm -f conf$$subs.sed
23691
 
cat >>$CONFIG_STATUS <<_ACEOF
23692
 
:end
23693
 
s/|#_!!_#|//g
23694
 
CEOF$ac_eof
23695
 
_ACEOF
23696
 
 
23697
 
 
23698
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
23699
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23700
 
# trailing colons and then remove the whole line if VPATH becomes empty
23701
 
# (actually we leave an empty line to preserve line numbers).
23702
 
if test "x$srcdir" = x.; then
23703
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
23704
 
s/:*\$(srcdir):*/:/
23705
 
s/:*\${srcdir}:*/:/
23706
 
s/:*@srcdir@:*/:/
23707
 
s/^\([^=]*=[     ]*\):*/\1/
23708
 
s/:*$//
23709
 
s/^[^=]*=[       ]*$//
23710
 
}'
23711
 
fi
23712
 
 
23713
 
cat >>$CONFIG_STATUS <<\_ACEOF
23714
 
fi # test -n "$CONFIG_FILES"
23715
 
 
23716
 
 
23717
 
for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
23718
 
do
23719
 
  case $ac_tag in
23720
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
23721
 
  esac
23722
 
  case $ac_mode$ac_tag in
23723
 
  :[FHL]*:*);;
23724
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23725
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23726
 
   { (exit 1); exit 1; }; };;
23727
 
  :[FH]-) ac_tag=-:-;;
23728
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23729
 
  esac
23730
 
  ac_save_IFS=$IFS
23731
 
  IFS=:
23732
 
  set x $ac_tag
23733
 
  IFS=$ac_save_IFS
23734
 
  shift
23735
 
  ac_file=$1
23736
 
  shift
23737
 
 
23738
 
  case $ac_mode in
23739
 
  :L) ac_source=$1;;
23740
 
  :[FH])
23741
 
    ac_file_inputs=
23742
 
    for ac_f
23743
 
    do
23744
 
      case $ac_f in
23745
 
      -) ac_f="$tmp/stdin";;
23746
 
      *) # Look for the file first in the build tree, then in the source tree
23747
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
23748
 
         # because $ac_f cannot contain `:'.
23749
 
         test -f "$ac_f" ||
23750
 
           case $ac_f in
23751
 
           [\\/$]*) false;;
23752
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23753
 
           esac ||
23754
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23755
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23756
 
   { (exit 1); exit 1; }; };;
23757
 
      esac
23758
 
      ac_file_inputs="$ac_file_inputs $ac_f"
23759
 
    done
23760
 
 
23761
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
23762
 
    # use $as_me), people would be surprised to read:
23763
 
    #    /* config.h.  Generated by config.status.  */
23764
 
    configure_input="Generated from "`IFS=:
23765
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23766
 
    if test x"$ac_file" != x-; then
23767
 
      configure_input="$ac_file.  $configure_input"
23768
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
23769
 
echo "$as_me: creating $ac_file" >&6;}
23770
 
    fi
23771
 
 
23772
 
    case $ac_tag in
23773
 
    *:-:* | *:-) cat >"$tmp/stdin";;
23774
 
    esac
23775
 
    ;;
23776
 
  esac
23777
 
 
23778
 
  ac_dir=`$as_dirname -- "$ac_file" ||
23779
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23780
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
23781
 
         X"$ac_file" : 'X\(//\)$' \| \
23782
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23783
 
echo X"$ac_file" |
23784
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23785
 
            s//\1/
23786
 
            q
23787
 
          }
23788
 
          /^X\(\/\/\)[^/].*/{
23789
 
            s//\1/
23790
 
            q
23791
 
          }
23792
 
          /^X\(\/\/\)$/{
23793
 
            s//\1/
23794
 
            q
23795
 
          }
23796
 
          /^X\(\/\).*/{
23797
 
            s//\1/
23798
 
            q
23799
 
          }
23800
 
          s/.*/./; q'`
23801
 
  { as_dir="$ac_dir"
23802
 
  case $as_dir in #(
23803
 
  -*) as_dir=./$as_dir;;
23804
 
  esac
23805
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23806
 
    as_dirs=
23807
 
    while :; do
23808
 
      case $as_dir in #(
23809
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23810
 
      *) as_qdir=$as_dir;;
23811
 
      esac
23812
 
      as_dirs="'$as_qdir' $as_dirs"
23813
 
      as_dir=`$as_dirname -- "$as_dir" ||
23814
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23815
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
23816
 
         X"$as_dir" : 'X\(//\)$' \| \
23817
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23818
 
echo X"$as_dir" |
23819
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23820
 
            s//\1/
23821
 
            q
23822
 
          }
23823
 
          /^X\(\/\/\)[^/].*/{
23824
 
            s//\1/
23825
 
            q
23826
 
          }
23827
 
          /^X\(\/\/\)$/{
23828
 
            s//\1/
23829
 
            q
23830
 
          }
23831
 
          /^X\(\/\).*/{
23832
 
            s//\1/
23833
 
            q
23834
 
          }
23835
 
          s/.*/./; q'`
23836
 
      test -d "$as_dir" && break
23837
 
    done
23838
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23839
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23840
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
23841
 
   { (exit 1); exit 1; }; }; }
23842
 
  ac_builddir=.
23843
 
 
23844
 
case "$ac_dir" in
23845
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23846
 
*)
23847
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23848
 
  # A ".." for each directory in $ac_dir_suffix.
23849
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23850
 
  case $ac_top_builddir_sub in
23851
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23852
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23853
 
  esac ;;
23854
 
esac
23855
 
ac_abs_top_builddir=$ac_pwd
23856
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23857
 
# for backward compatibility:
23858
 
ac_top_builddir=$ac_top_build_prefix
23859
 
 
23860
 
case $srcdir in
23861
 
  .)  # We are building in place.
23862
 
    ac_srcdir=.
23863
 
    ac_top_srcdir=$ac_top_builddir_sub
23864
 
    ac_abs_top_srcdir=$ac_pwd ;;
23865
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
23866
 
    ac_srcdir=$srcdir$ac_dir_suffix;
23867
 
    ac_top_srcdir=$srcdir
23868
 
    ac_abs_top_srcdir=$srcdir ;;
23869
 
  *) # Relative name.
23870
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23871
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
23872
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23873
 
esac
23874
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23875
 
 
23876
 
 
23877
 
  case $ac_mode in
23878
 
  :F)
23879
 
  #
23880
 
  # CONFIG_FILE
23881
 
  #
23882
 
 
23883
 
  case $INSTALL in
23884
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23885
 
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23886
 
  esac
23887
 
  ac_MKDIR_P=$MKDIR_P
23888
 
  case $MKDIR_P in
23889
 
  [\\/$]* | ?:[\\/]* ) ;;
23890
 
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23891
 
  esac
23892
 
_ACEOF
23893
 
 
23894
 
cat >>$CONFIG_STATUS <<\_ACEOF
23895
 
# If the template does not know about datarootdir, expand it.
23896
 
# FIXME: This hack should be removed a few years after 2.60.
23897
 
ac_datarootdir_hack=; ac_datarootdir_seen=
23898
 
 
23899
 
case `sed -n '/datarootdir/ {
23900
 
  p
23901
 
  q
23902
 
}
23903
 
/@datadir@/p
23904
 
/@docdir@/p
23905
 
/@infodir@/p
23906
 
/@localedir@/p
23907
 
/@mandir@/p
23908
 
' $ac_file_inputs` in
23909
 
*datarootdir*) ac_datarootdir_seen=yes;;
23910
 
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23911
 
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23912
 
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23913
 
_ACEOF
23914
 
cat >>$CONFIG_STATUS <<_ACEOF
23915
 
  ac_datarootdir_hack='
23916
 
  s&@datadir@&$datadir&g
23917
 
  s&@docdir@&$docdir&g
23918
 
  s&@infodir@&$infodir&g
23919
 
  s&@localedir@&$localedir&g
23920
 
  s&@mandir@&$mandir&g
23921
 
    s&\\\${datarootdir}&$datarootdir&g' ;;
23922
 
esac
23923
 
_ACEOF
23924
 
 
23925
 
# Neutralize VPATH when `$srcdir' = `.'.
23926
 
# Shell code in configure.ac might set extrasub.
23927
 
# FIXME: do we really want to maintain this feature?
23928
 
cat >>$CONFIG_STATUS <<_ACEOF
23929
 
  sed "$ac_vpsub
23930
 
$extrasub
23931
 
_ACEOF
23932
 
cat >>$CONFIG_STATUS <<\_ACEOF
23933
 
:t
23934
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23935
 
s&@configure_input@&$configure_input&;t t
23936
 
s&@top_builddir@&$ac_top_builddir_sub&;t t
23937
 
s&@srcdir@&$ac_srcdir&;t t
23938
 
s&@abs_srcdir@&$ac_abs_srcdir&;t t
23939
 
s&@top_srcdir@&$ac_top_srcdir&;t t
23940
 
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23941
 
s&@builddir@&$ac_builddir&;t t
23942
 
s&@abs_builddir@&$ac_abs_builddir&;t t
23943
 
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23944
 
s&@INSTALL@&$ac_INSTALL&;t t
23945
 
s&@MKDIR_P@&$ac_MKDIR_P&;t t
23946
 
$ac_datarootdir_hack
23947
 
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23948
 
 
23949
 
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23950
 
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23951
 
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23952
 
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23953
 
which seems to be undefined.  Please make sure it is defined." >&5
23954
 
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23955
 
which seems to be undefined.  Please make sure it is defined." >&2;}
23956
 
 
23957
 
  rm -f "$tmp/stdin"
23958
 
  case $ac_file in
23959
 
  -) cat "$tmp/out"; rm -f "$tmp/out";;
23960
 
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23961
 
  esac
23962
 
 ;;
23963
 
 
23964
 
 
23965
 
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23966
 
echo "$as_me: executing $ac_file commands" >&6;}
23967
 
 ;;
23968
 
  esac
23969
 
 
23970
 
 
23971
 
  case $ac_file$ac_mode in
23972
 
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23973
 
  # Strip MF so we end up with the name of the file.
23974
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
23975
 
  # Check whether this is an Automake generated Makefile or not.
23976
 
  # We used to match only the files named `Makefile.in', but
23977
 
  # some people rename them; so instead we look at the file content.
23978
 
  # Grep'ing the first line is not enough: some people post-process
23979
 
  # each Makefile.in and add a new line on top of each file to say so.
23980
 
  # Grep'ing the whole file is not good either: AIX grep has a line
23981
 
  # limit of 2048, but all sed's we know have understand at least 4000.
23982
 
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23983
 
    dirpart=`$as_dirname -- "$mf" ||
23984
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23985
 
         X"$mf" : 'X\(//\)[^/]' \| \
23986
 
         X"$mf" : 'X\(//\)$' \| \
23987
 
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23988
 
echo X"$mf" |
23989
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23990
 
            s//\1/
23991
 
            q
23992
 
          }
23993
 
          /^X\(\/\/\)[^/].*/{
23994
 
            s//\1/
23995
 
            q
23996
 
          }
23997
 
          /^X\(\/\/\)$/{
23998
 
            s//\1/
23999
 
            q
24000
 
          }
24001
 
          /^X\(\/\).*/{
24002
 
            s//\1/
24003
 
            q
24004
 
          }
24005
 
          s/.*/./; q'`
24006
 
  else
24007
 
    continue
24008
 
  fi
24009
 
  # Extract the definition of DEPDIR, am__include, and am__quote
24010
 
  # from the Makefile without running `make'.
24011
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24012
 
  test -z "$DEPDIR" && continue
24013
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
24014
 
  test -z "am__include" && continue
24015
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24016
 
  # When using ansi2knr, U may be empty or an underscore; expand it
24017
 
  U=`sed -n 's/^U = //p' < "$mf"`
24018
 
  # Find all dependency output files, they are included files with
24019
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
24020
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
24021
 
  # expansion.
24022
 
  for file in `sed -n "
24023
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24024
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24025
 
    # Make sure the directory exists.
24026
 
    test -f "$dirpart/$file" && continue
24027
 
    fdir=`$as_dirname -- "$file" ||
24028
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24029
 
         X"$file" : 'X\(//\)[^/]' \| \
24030
 
         X"$file" : 'X\(//\)$' \| \
24031
 
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24032
 
echo X"$file" |
24033
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24034
 
            s//\1/
24035
 
            q
24036
 
          }
24037
 
          /^X\(\/\/\)[^/].*/{
24038
 
            s//\1/
24039
 
            q
24040
 
          }
24041
 
          /^X\(\/\/\)$/{
24042
 
            s//\1/
24043
 
            q
24044
 
          }
24045
 
          /^X\(\/\).*/{
24046
 
            s//\1/
24047
 
            q
24048
 
          }
24049
 
          s/.*/./; q'`
24050
 
    { as_dir=$dirpart/$fdir
24051
 
  case $as_dir in #(
24052
 
  -*) as_dir=./$as_dir;;
24053
 
  esac
24054
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24055
 
    as_dirs=
24056
 
    while :; do
24057
 
      case $as_dir in #(
24058
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24059
 
      *) as_qdir=$as_dir;;
24060
 
      esac
24061
 
      as_dirs="'$as_qdir' $as_dirs"
24062
 
      as_dir=`$as_dirname -- "$as_dir" ||
24063
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24064
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
24065
 
         X"$as_dir" : 'X\(//\)$' \| \
24066
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24067
 
echo X"$as_dir" |
24068
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24069
 
            s//\1/
24070
 
            q
24071
 
          }
24072
 
          /^X\(\/\/\)[^/].*/{
24073
 
            s//\1/
24074
 
            q
24075
 
          }
24076
 
          /^X\(\/\/\)$/{
24077
 
            s//\1/
24078
 
            q
24079
 
          }
24080
 
          /^X\(\/\).*/{
24081
 
            s//\1/
24082
 
            q
24083
 
          }
24084
 
          s/.*/./; q'`
24085
 
      test -d "$as_dir" && break
24086
 
    done
24087
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
24088
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24089
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
24090
 
   { (exit 1); exit 1; }; }; }
24091
 
    # echo "creating $dirpart/$file"
24092
 
    echo '# dummy' > "$dirpart/$file"
24093
 
  done
24094
 
done
24095
 
 ;;
24096
 
 
24097
 
  esac
24098
 
done # for ac_tag
24099
 
 
24100
 
 
24101
 
{ (exit 0); exit 0; }
24102
 
_ACEOF
24103
 
chmod +x $CONFIG_STATUS
24104
 
ac_clean_files=$ac_clean_files_save
24105
 
 
24106
 
 
24107
 
# configure is writing to config.log, and then calls config.status.
24108
 
# config.status does its own redirection, appending to config.log.
24109
 
# Unfortunately, on DOS this fails, as config.log is still kept open
24110
 
# by configure, so config.status won't be able to write to it; its
24111
 
# output is simply discarded.  So we exec the FD to /dev/null,
24112
 
# effectively closing config.log, so it can be properly (re)opened and
24113
 
# appended to by config.status.  When coming back to configure, we
24114
 
# need to make the FD available again.
24115
 
if test "$no_create" != yes; then
24116
 
  ac_cs_success=:
24117
 
  ac_config_status_args=
24118
 
  test "$silent" = yes &&
24119
 
    ac_config_status_args="$ac_config_status_args --quiet"
24120
 
  exec 5>/dev/null
24121
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24122
 
  exec 5>>config.log
24123
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24124
 
  # would make configure fail if this is the last instruction.
24125
 
  $ac_cs_success || { (exit 1); exit 1; }
24126
 
fi
24127
 
 
24128
 
 
24129
 
# Display help text
24130
 
echo "---------------------------------------------------------"
24131
 
echo "Configuration of DOLFIN finished. Now type"
24132
 
echo ""
24133
 
echo "   make"
24134
 
echo "   make install"
24135
 
echo ""
24136
 
echo "to install DOLFIN on your system. After DOLFIN has been"
24137
 
echo "installed, you can compile all the demo programs in the"
24138
 
echo "subdirectory src/demo by running"
24139
 
echo ""
24140
 
echo "   make demo"
24141
 
echo ""
24142
 
echo "Note that you may need to be root in order to install."
24143
 
echo "To specify an alternative installation directory, rerun"
24144
 
echo "configure with option --prefix=<path>. You may also run"
24145
 
echo "./configure.local to configure for a local installation"
24146
 
echo "in the DOLFIN source tree."
24147
 
echo "---------------------------------------------------------"
24148
 
 
24149
 
# Check that the installation directory is set up correctly
24150
 
__BINDIR=`echo $prefix/bin | sed -e 's/\//-/g'`
24151
 
__PATH=`echo $PATH | sed -e 's/\//-/g'`
24152
 
if test "$__PATH" = "`echo $__PATH | sed s/$__BINDIR//`"; then
24153
 
    echo 'Warning: Installation directory is not in PATH.'
24154
 
    echo ''
24155
 
    echo 'To compile a program against DOLFIN (including the demos)'
24156
 
    echo 'you need to update your environment variables to reflect'
24157
 
    echo 'the installation directory you have chosen for DOLFIN.'
24158
 
    echo 'A simple way to do this if you are using Bash-like shell'
24159
 
    echo 'is to source the file dolfin.conf:'
24160
 
    echo ''
24161
 
    echo '  source dolfin.conf'
24162
 
    echo ''
24163
 
    echo 'This will update the values for the environment variables'
24164
 
    echo 'PATH, LD_LIBRARY_PATH, PKG_CONFIG_PATH and PYTHONPATH.'
24165
 
fi