~ubuntu-branches/ubuntu/lucid/igraph/lucid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Mathieu Malaterre
  • Date: 2009-11-16 18:12:42 UTC
  • Revision ID: james.westby@ubuntu.com-20091116181242-mzv9p5fz9uj57xd1
Tags: upstream-0.5.3
ImportĀ upstreamĀ versionĀ 0.5.3

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 igraph 0.5.3.
 
4
#
 
5
# Report bugs to <csardi@rmki.kfki.hu>.
 
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$lt_ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
ECHO=${lt_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 <<_LT_EOF
 
584
$*
 
585
_LT_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 "$lt_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
         { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
 
600
      then
 
601
        break
 
602
      fi
 
603
    done
 
604
  fi
 
605
 
 
606
  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
607
     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
608
     test "X$echo_testing_string" = "X$echo_test_string"; then
 
609
    :
 
610
  else
 
611
    # The Solaris, AIX, and Digital Unix default echo programs unquote
 
612
    # backslashes.  This makes it impossible to quote backslashes using
 
613
    #   echo "$something" | sed 's/\\/\\\\/g'
 
614
    #
 
615
    # So, first we look for a working echo in the user's PATH.
 
616
 
 
617
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
618
    for dir in $PATH /usr/ucb; do
 
619
      IFS="$lt_save_ifs"
 
620
      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
621
         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
622
         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
623
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
624
        ECHO="$dir/echo"
 
625
        break
 
626
      fi
 
627
    done
 
628
    IFS="$lt_save_ifs"
 
629
 
 
630
    if test "X$ECHO" = Xecho; then
 
631
      # We didn't find a better echo, so look for alternatives.
 
632
      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
 
633
         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
 
634
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
        # This shell has a builtin print -r that does the trick.
 
636
        ECHO='print -r'
 
637
      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
 
638
           test "X$CONFIG_SHELL" != X/bin/ksh; then
 
639
        # If we have ksh, try running configure again with it.
 
640
        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
641
        export ORIGINAL_CONFIG_SHELL
 
642
        CONFIG_SHELL=/bin/ksh
 
643
        export CONFIG_SHELL
 
644
        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
645
      else
 
646
        # Try using printf.
 
647
        ECHO='printf %s\n'
 
648
        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
 
649
           echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
 
650
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
651
          # Cool, printf works
 
652
          :
 
653
        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
654
             test "X$echo_testing_string" = 'X\t' &&
 
655
             echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
656
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
657
          CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
658
          export CONFIG_SHELL
 
659
          SHELL="$CONFIG_SHELL"
 
660
          export SHELL
 
661
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
662
        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
663
             test "X$echo_testing_string" = 'X\t' &&
 
664
             echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
665
             test "X$echo_testing_string" = "X$echo_test_string"; then
 
666
          ECHO="$CONFIG_SHELL $0 --fallback-echo"
 
667
        else
 
668
          # maybe with a smaller string...
 
669
          prev=:
 
670
 
 
671
          for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
672
            if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
 
673
            then
 
674
              break
 
675
            fi
 
676
            prev="$cmd"
 
677
          done
 
678
 
 
679
          if test "$prev" != 'sed 50q "$0"'; then
 
680
            echo_test_string=`eval $prev`
 
681
            export echo_test_string
 
682
            exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
683
          else
 
684
            # Oops.  We lost completely, so just stick with echo.
 
685
            ECHO=echo
 
686
          fi
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
 
 
693
# Copy echo and quote the copy suitably for passing to libtool from
 
694
# the Makefile, instead of quoting the original, which is used later.
 
695
lt_ECHO=$ECHO
 
696
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
697
   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
698
fi
 
699
 
 
700
 
 
701
 
 
702
 
 
703
exec 7<&0 </dev/null 6>&1
 
704
 
 
705
# Name of the host.
 
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
707
# so uname gets run too.
 
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
709
 
 
710
#
 
711
# Initializations.
 
712
#
 
713
ac_default_prefix=/usr/local
 
714
ac_clean_files=
 
715
ac_config_libobj_dir=.
 
716
LIBOBJS=
 
717
cross_compiling=no
 
718
subdirs=
 
719
MFLAGS=
 
720
MAKEFLAGS=
 
721
SHELL=${CONFIG_SHELL-/bin/sh}
 
722
 
 
723
# Identity of this package.
 
724
PACKAGE_NAME='igraph'
 
725
PACKAGE_TARNAME='igraph'
 
726
PACKAGE_VERSION='0.5.3'
 
727
PACKAGE_STRING='igraph 0.5.3'
 
728
PACKAGE_BUGREPORT='csardi@rmki.kfki.hu'
 
729
 
 
730
ac_unique_file="src/games.c"
 
731
# Factoring default headers for most tests.
 
732
ac_includes_default="\
 
733
#include <stdio.h>
 
734
#ifdef HAVE_SYS_TYPES_H
 
735
# include <sys/types.h>
 
736
#endif
 
737
#ifdef HAVE_SYS_STAT_H
 
738
# include <sys/stat.h>
 
739
#endif
 
740
#ifdef STDC_HEADERS
 
741
# include <stdlib.h>
 
742
# include <stddef.h>
 
743
#else
 
744
# ifdef HAVE_STDLIB_H
 
745
#  include <stdlib.h>
 
746
# endif
 
747
#endif
 
748
#ifdef HAVE_STRING_H
 
749
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
750
#  include <memory.h>
 
751
# endif
 
752
# include <string.h>
 
753
#endif
 
754
#ifdef HAVE_STRINGS_H
 
755
# include <strings.h>
 
756
#endif
 
757
#ifdef HAVE_INTTYPES_H
 
758
# include <inttypes.h>
 
759
#endif
 
760
#ifdef HAVE_STDINT_H
 
761
# include <stdint.h>
 
762
#endif
 
763
#ifdef HAVE_UNISTD_H
 
764
# include <unistd.h>
 
765
#endif"
 
766
 
 
767
ac_subst_vars='SHELL
 
768
PATH_SEPARATOR
 
769
PACKAGE_NAME
 
770
PACKAGE_TARNAME
 
771
PACKAGE_VERSION
 
772
PACKAGE_STRING
 
773
PACKAGE_BUGREPORT
 
774
exec_prefix
 
775
prefix
 
776
program_transform_name
 
777
bindir
 
778
sbindir
 
779
libexecdir
 
780
datarootdir
 
781
datadir
 
782
sysconfdir
 
783
sharedstatedir
 
784
localstatedir
 
785
includedir
 
786
oldincludedir
 
787
docdir
 
788
infodir
 
789
htmldir
 
790
dvidir
 
791
pdfdir
 
792
psdir
 
793
libdir
 
794
localedir
 
795
mandir
 
796
DEFS
 
797
ECHO_C
 
798
ECHO_N
 
799
ECHO_T
 
800
LIBS
 
801
build_alias
 
802
host_alias
 
803
target_alias
 
804
INSTALL_PROGRAM
 
805
INSTALL_SCRIPT
 
806
INSTALL_DATA
 
807
am__isrc
 
808
CYGPATH_W
 
809
PACKAGE
 
810
VERSION
 
811
ACLOCAL
 
812
AUTOCONF
 
813
AUTOMAKE
 
814
AUTOHEADER
 
815
MAKEINFO
 
816
install_sh
 
817
STRIP
 
818
INSTALL_STRIP_PROGRAM
 
819
mkdir_p
 
820
AWK
 
821
SET_MAKE
 
822
am__leading_dot
 
823
AMTAR
 
824
am__tar
 
825
am__untar
 
826
CC
 
827
CFLAGS
 
828
LDFLAGS
 
829
CPPFLAGS
 
830
ac_ct_CC
 
831
EXEEXT
 
832
OBJEXT
 
833
DEPDIR
 
834
am__include
 
835
am__quote
 
836
AMDEP_TRUE
 
837
AMDEP_FALSE
 
838
AMDEPBACKSLASH
 
839
CCDEPMODE
 
840
am__fastdepCC_TRUE
 
841
am__fastdepCC_FALSE
 
842
CXX
 
843
CXXFLAGS
 
844
ac_ct_CXX
 
845
CXXDEPMODE
 
846
am__fastdepCXX_TRUE
 
847
am__fastdepCXX_FALSE
 
848
CXXCPP
 
849
LEX
 
850
LEX_OUTPUT_ROOT
 
851
LEXLIB
 
852
YACC
 
853
YFLAGS
 
854
CPP
 
855
GREP
 
856
EGREP
 
857
build
 
858
build_cpu
 
859
build_vendor
 
860
build_os
 
861
host
 
862
host_cpu
 
863
host_vendor
 
864
host_os
 
865
AS
 
866
DLLTOOL
 
867
OBJDUMP
 
868
LIBTOOL
 
869
SED
 
870
FGREP
 
871
LD
 
872
DUMPBIN
 
873
ac_ct_DUMPBIN
 
874
NM
 
875
LN_S
 
876
AR
 
877
RANLIB
 
878
lt_ECHO
 
879
DSYMUTIL
 
880
NMEDIT
 
881
LIPO
 
882
OTOOL
 
883
OTOOL64
 
884
AUTOM4TE
 
885
FLOATSTORE
 
886
WARNING_CFLAGS
 
887
WERROR_CFLAGS
 
888
USE_SHELL_TRUE
 
889
USE_SHELL_FALSE
 
890
XML2CONFIG
 
891
XML2_LIBS
 
892
XML2_CFLAGS
 
893
INTERNAL_ARPACK_TRUE
 
894
INTERNAL_ARPACK_FALSE
 
895
INTERNAL_LAPACK_TRUE
 
896
INTERNAL_LAPACK_FALSE
 
897
INTERNAL_BLAS_TRUE
 
898
INTERNAL_BLAS_FALSE
 
899
LIBOBJS
 
900
LTLIBOBJS'
 
901
ac_subst_files=''
 
902
      ac_precious_vars='build_alias
 
903
host_alias
 
904
target_alias
 
905
CC
 
906
CFLAGS
 
907
LDFLAGS
 
908
LIBS
 
909
CPPFLAGS
 
910
CXX
 
911
CXXFLAGS
 
912
CCC
 
913
CXXCPP
 
914
YACC
 
915
YFLAGS
 
916
CPP'
 
917
 
 
918
 
 
919
# Initialize some variables set by options.
 
920
ac_init_help=
 
921
ac_init_version=false
 
922
# The variables have the same names as the options, with
 
923
# dashes changed to underlines.
 
924
cache_file=/dev/null
 
925
exec_prefix=NONE
 
926
no_create=
 
927
no_recursion=
 
928
prefix=NONE
 
929
program_prefix=NONE
 
930
program_suffix=NONE
 
931
program_transform_name=s,x,x,
 
932
silent=
 
933
site=
 
934
srcdir=
 
935
verbose=
 
936
x_includes=NONE
 
937
x_libraries=NONE
 
938
 
 
939
# Installation directory options.
 
940
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
941
# and all the variables that are supposed to be based on exec_prefix
 
942
# by default will actually change.
 
943
# Use braces instead of parens because sh, perl, etc. also accept them.
 
944
# (The list follows the same order as the GNU Coding Standards.)
 
945
bindir='${exec_prefix}/bin'
 
946
sbindir='${exec_prefix}/sbin'
 
947
libexecdir='${exec_prefix}/libexec'
 
948
datarootdir='${prefix}/share'
 
949
datadir='${datarootdir}'
 
950
sysconfdir='${prefix}/etc'
 
951
sharedstatedir='${prefix}/com'
 
952
localstatedir='${prefix}/var'
 
953
includedir='${prefix}/include'
 
954
oldincludedir='/usr/include'
 
955
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
956
infodir='${datarootdir}/info'
 
957
htmldir='${docdir}'
 
958
dvidir='${docdir}'
 
959
pdfdir='${docdir}'
 
960
psdir='${docdir}'
 
961
libdir='${exec_prefix}/lib'
 
962
localedir='${datarootdir}/locale'
 
963
mandir='${datarootdir}/man'
 
964
 
 
965
ac_prev=
 
966
ac_dashdash=
 
967
for ac_option
 
968
do
 
969
  # If the previous option needs an argument, assign it.
 
970
  if test -n "$ac_prev"; then
 
971
    eval $ac_prev=\$ac_option
 
972
    ac_prev=
 
973
    continue
 
974
  fi
 
975
 
 
976
  case $ac_option in
 
977
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
978
  *)    ac_optarg=yes ;;
 
979
  esac
 
980
 
 
981
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
982
 
 
983
  case $ac_dashdash$ac_option in
 
984
  --)
 
985
    ac_dashdash=yes ;;
 
986
 
 
987
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
988
    ac_prev=bindir ;;
 
989
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
990
    bindir=$ac_optarg ;;
 
991
 
 
992
  -build | --build | --buil | --bui | --bu)
 
993
    ac_prev=build_alias ;;
 
994
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
995
    build_alias=$ac_optarg ;;
 
996
 
 
997
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
998
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
999
    ac_prev=cache_file ;;
 
1000
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1001
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1002
    cache_file=$ac_optarg ;;
 
1003
 
 
1004
  --config-cache | -C)
 
1005
    cache_file=config.cache ;;
 
1006
 
 
1007
  -datadir | --datadir | --datadi | --datad)
 
1008
    ac_prev=datadir ;;
 
1009
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1010
    datadir=$ac_optarg ;;
 
1011
 
 
1012
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1013
  | --dataroo | --dataro | --datar)
 
1014
    ac_prev=datarootdir ;;
 
1015
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1016
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1017
    datarootdir=$ac_optarg ;;
 
1018
 
 
1019
  -disable-* | --disable-*)
 
1020
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1021
    # Reject names that are not valid shell variable names.
 
1022
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1023
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1024
   { (exit 1); exit 1; }; }
 
1025
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1026
    eval enable_$ac_feature=no ;;
 
1027
 
 
1028
  -docdir | --docdir | --docdi | --doc | --do)
 
1029
    ac_prev=docdir ;;
 
1030
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1031
    docdir=$ac_optarg ;;
 
1032
 
 
1033
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1034
    ac_prev=dvidir ;;
 
1035
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1036
    dvidir=$ac_optarg ;;
 
1037
 
 
1038
  -enable-* | --enable-*)
 
1039
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1040
    # Reject names that are not valid shell variable names.
 
1041
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1042
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1043
   { (exit 1); exit 1; }; }
 
1044
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1045
    eval enable_$ac_feature=\$ac_optarg ;;
 
1046
 
 
1047
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1048
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1049
  | --exec | --exe | --ex)
 
1050
    ac_prev=exec_prefix ;;
 
1051
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1052
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1053
  | --exec=* | --exe=* | --ex=*)
 
1054
    exec_prefix=$ac_optarg ;;
 
1055
 
 
1056
  -gas | --gas | --ga | --g)
 
1057
    # Obsolete; use --with-gas.
 
1058
    with_gas=yes ;;
 
1059
 
 
1060
  -help | --help | --hel | --he | -h)
 
1061
    ac_init_help=long ;;
 
1062
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1063
    ac_init_help=recursive ;;
 
1064
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1065
    ac_init_help=short ;;
 
1066
 
 
1067
  -host | --host | --hos | --ho)
 
1068
    ac_prev=host_alias ;;
 
1069
  -host=* | --host=* | --hos=* | --ho=*)
 
1070
    host_alias=$ac_optarg ;;
 
1071
 
 
1072
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1073
    ac_prev=htmldir ;;
 
1074
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1075
  | --ht=*)
 
1076
    htmldir=$ac_optarg ;;
 
1077
 
 
1078
  -includedir | --includedir | --includedi | --included | --include \
 
1079
  | --includ | --inclu | --incl | --inc)
 
1080
    ac_prev=includedir ;;
 
1081
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1082
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1083
    includedir=$ac_optarg ;;
 
1084
 
 
1085
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1086
    ac_prev=infodir ;;
 
1087
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1088
    infodir=$ac_optarg ;;
 
1089
 
 
1090
  -libdir | --libdir | --libdi | --libd)
 
1091
    ac_prev=libdir ;;
 
1092
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1093
    libdir=$ac_optarg ;;
 
1094
 
 
1095
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1096
  | --libexe | --libex | --libe)
 
1097
    ac_prev=libexecdir ;;
 
1098
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1099
  | --libexe=* | --libex=* | --libe=*)
 
1100
    libexecdir=$ac_optarg ;;
 
1101
 
 
1102
  -localedir | --localedir | --localedi | --localed | --locale)
 
1103
    ac_prev=localedir ;;
 
1104
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1105
    localedir=$ac_optarg ;;
 
1106
 
 
1107
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1108
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1109
    ac_prev=localstatedir ;;
 
1110
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1111
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1112
    localstatedir=$ac_optarg ;;
 
1113
 
 
1114
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1115
    ac_prev=mandir ;;
 
1116
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1117
    mandir=$ac_optarg ;;
 
1118
 
 
1119
  -nfp | --nfp | --nf)
 
1120
    # Obsolete; use --without-fp.
 
1121
    with_fp=no ;;
 
1122
 
 
1123
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1124
  | --no-cr | --no-c | -n)
 
1125
    no_create=yes ;;
 
1126
 
 
1127
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1128
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1129
    no_recursion=yes ;;
 
1130
 
 
1131
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1132
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1133
  | --oldin | --oldi | --old | --ol | --o)
 
1134
    ac_prev=oldincludedir ;;
 
1135
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1136
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1137
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1138
    oldincludedir=$ac_optarg ;;
 
1139
 
 
1140
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1141
    ac_prev=prefix ;;
 
1142
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1143
    prefix=$ac_optarg ;;
 
1144
 
 
1145
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1146
  | --program-pre | --program-pr | --program-p)
 
1147
    ac_prev=program_prefix ;;
 
1148
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1149
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1150
    program_prefix=$ac_optarg ;;
 
1151
 
 
1152
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1153
  | --program-suf | --program-su | --program-s)
 
1154
    ac_prev=program_suffix ;;
 
1155
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1156
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1157
    program_suffix=$ac_optarg ;;
 
1158
 
 
1159
  -program-transform-name | --program-transform-name \
 
1160
  | --program-transform-nam | --program-transform-na \
 
1161
  | --program-transform-n | --program-transform- \
 
1162
  | --program-transform | --program-transfor \
 
1163
  | --program-transfo | --program-transf \
 
1164
  | --program-trans | --program-tran \
 
1165
  | --progr-tra | --program-tr | --program-t)
 
1166
    ac_prev=program_transform_name ;;
 
1167
  -program-transform-name=* | --program-transform-name=* \
 
1168
  | --program-transform-nam=* | --program-transform-na=* \
 
1169
  | --program-transform-n=* | --program-transform-=* \
 
1170
  | --program-transform=* | --program-transfor=* \
 
1171
  | --program-transfo=* | --program-transf=* \
 
1172
  | --program-trans=* | --program-tran=* \
 
1173
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1174
    program_transform_name=$ac_optarg ;;
 
1175
 
 
1176
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1177
    ac_prev=pdfdir ;;
 
1178
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1179
    pdfdir=$ac_optarg ;;
 
1180
 
 
1181
  -psdir | --psdir | --psdi | --psd | --ps)
 
1182
    ac_prev=psdir ;;
 
1183
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1184
    psdir=$ac_optarg ;;
 
1185
 
 
1186
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1187
  | -silent | --silent | --silen | --sile | --sil)
 
1188
    silent=yes ;;
 
1189
 
 
1190
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1191
    ac_prev=sbindir ;;
 
1192
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1193
  | --sbi=* | --sb=*)
 
1194
    sbindir=$ac_optarg ;;
 
1195
 
 
1196
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1197
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1198
  | --sharedst | --shareds | --shared | --share | --shar \
 
1199
  | --sha | --sh)
 
1200
    ac_prev=sharedstatedir ;;
 
1201
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1202
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1203
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1204
  | --sha=* | --sh=*)
 
1205
    sharedstatedir=$ac_optarg ;;
 
1206
 
 
1207
  -site | --site | --sit)
 
1208
    ac_prev=site ;;
 
1209
  -site=* | --site=* | --sit=*)
 
1210
    site=$ac_optarg ;;
 
1211
 
 
1212
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1213
    ac_prev=srcdir ;;
 
1214
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1215
    srcdir=$ac_optarg ;;
 
1216
 
 
1217
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1218
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1219
    ac_prev=sysconfdir ;;
 
1220
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1221
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1222
    sysconfdir=$ac_optarg ;;
 
1223
 
 
1224
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1225
    ac_prev=target_alias ;;
 
1226
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1227
    target_alias=$ac_optarg ;;
 
1228
 
 
1229
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1230
    verbose=yes ;;
 
1231
 
 
1232
  -version | --version | --versio | --versi | --vers | -V)
 
1233
    ac_init_version=: ;;
 
1234
 
 
1235
  -with-* | --with-*)
 
1236
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1237
    # Reject names that are not valid shell variable names.
 
1238
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1239
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1240
   { (exit 1); exit 1; }; }
 
1241
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1242
    eval with_$ac_package=\$ac_optarg ;;
 
1243
 
 
1244
  -without-* | --without-*)
 
1245
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1246
    # Reject names that are not valid shell variable names.
 
1247
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1248
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1249
   { (exit 1); exit 1; }; }
 
1250
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1251
    eval with_$ac_package=no ;;
 
1252
 
 
1253
  --x)
 
1254
    # Obsolete; use --with-x.
 
1255
    with_x=yes ;;
 
1256
 
 
1257
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1258
  | --x-incl | --x-inc | --x-in | --x-i)
 
1259
    ac_prev=x_includes ;;
 
1260
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1261
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1262
    x_includes=$ac_optarg ;;
 
1263
 
 
1264
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1265
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1266
    ac_prev=x_libraries ;;
 
1267
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1268
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1269
    x_libraries=$ac_optarg ;;
 
1270
 
 
1271
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1272
Try \`$0 --help' for more information." >&2
 
1273
   { (exit 1); exit 1; }; }
 
1274
    ;;
 
1275
 
 
1276
  *=*)
 
1277
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1278
    # Reject names that are not valid shell variable names.
 
1279
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1280
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1281
   { (exit 1); exit 1; }; }
 
1282
    eval $ac_envvar=\$ac_optarg
 
1283
    export $ac_envvar ;;
 
1284
 
 
1285
  *)
 
1286
    # FIXME: should be removed in autoconf 3.0.
 
1287
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1288
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1289
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1290
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1291
    ;;
 
1292
 
 
1293
  esac
 
1294
done
 
1295
 
 
1296
if test -n "$ac_prev"; then
 
1297
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1298
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1299
   { (exit 1); exit 1; }; }
 
1300
fi
 
1301
 
 
1302
# Be sure to have absolute directory names.
 
1303
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1304
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1305
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1306
                libdir localedir mandir
 
1307
do
 
1308
  eval ac_val=\$$ac_var
 
1309
  case $ac_val in
 
1310
    [\\/$]* | ?:[\\/]* )  continue;;
 
1311
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1312
  esac
 
1313
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1314
   { (exit 1); exit 1; }; }
 
1315
done
 
1316
 
 
1317
# There might be people who depend on the old broken behavior: `$host'
 
1318
# used to hold the argument of --host etc.
 
1319
# FIXME: To remove some day.
 
1320
build=$build_alias
 
1321
host=$host_alias
 
1322
target=$target_alias
 
1323
 
 
1324
# FIXME: To remove some day.
 
1325
if test "x$host_alias" != x; then
 
1326
  if test "x$build_alias" = x; then
 
1327
    cross_compiling=maybe
 
1328
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1329
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1330
  elif test "x$build_alias" != "x$host_alias"; then
 
1331
    cross_compiling=yes
 
1332
  fi
 
1333
fi
 
1334
 
 
1335
ac_tool_prefix=
 
1336
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1337
 
 
1338
test "$silent" = yes && exec 6>/dev/null
 
1339
 
 
1340
 
 
1341
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1342
ac_ls_di=`ls -di .` &&
 
1343
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1344
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1345
   { (exit 1); exit 1; }; }
 
1346
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1347
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1348
   { (exit 1); exit 1; }; }
 
1349
 
 
1350
 
 
1351
# Find the source files, if location was not specified.
 
1352
if test -z "$srcdir"; then
 
1353
  ac_srcdir_defaulted=yes
 
1354
  # Try the directory containing this script, then the parent directory.
 
1355
  ac_confdir=`$as_dirname -- "$0" ||
 
1356
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1357
         X"$0" : 'X\(//\)[^/]' \| \
 
1358
         X"$0" : 'X\(//\)$' \| \
 
1359
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1360
echo X"$0" |
 
1361
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1362
            s//\1/
 
1363
            q
 
1364
          }
 
1365
          /^X\(\/\/\)[^/].*/{
 
1366
            s//\1/
 
1367
            q
 
1368
          }
 
1369
          /^X\(\/\/\)$/{
 
1370
            s//\1/
 
1371
            q
 
1372
          }
 
1373
          /^X\(\/\).*/{
 
1374
            s//\1/
 
1375
            q
 
1376
          }
 
1377
          s/.*/./; q'`
 
1378
  srcdir=$ac_confdir
 
1379
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1380
    srcdir=..
 
1381
  fi
 
1382
else
 
1383
  ac_srcdir_defaulted=no
 
1384
fi
 
1385
if test ! -r "$srcdir/$ac_unique_file"; then
 
1386
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1387
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1388
   { (exit 1); exit 1; }; }
 
1389
fi
 
1390
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1391
ac_abs_confdir=`(
 
1392
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1393
   { (exit 1); exit 1; }; }
 
1394
        pwd)`
 
1395
# When building in place, set srcdir=.
 
1396
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1397
  srcdir=.
 
1398
fi
 
1399
# Remove unnecessary trailing slashes from srcdir.
 
1400
# Double slashes in file names in object file debugging info
 
1401
# mess up M-x gdb in Emacs.
 
1402
case $srcdir in
 
1403
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1404
esac
 
1405
for ac_var in $ac_precious_vars; do
 
1406
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1407
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1408
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1409
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1410
done
 
1411
 
 
1412
#
 
1413
# Report the --help message.
 
1414
#
 
1415
if test "$ac_init_help" = "long"; then
 
1416
  # Omit some internal or obsolete options to make the list less imposing.
 
1417
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1418
  cat <<_ACEOF
 
1419
\`configure' configures igraph 0.5.3 to adapt to many kinds of systems.
 
1420
 
 
1421
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1422
 
 
1423
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1424
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1425
 
 
1426
Defaults for the options are specified in brackets.
 
1427
 
 
1428
Configuration:
 
1429
  -h, --help              display this help and exit
 
1430
      --help=short        display options specific to this package
 
1431
      --help=recursive    display the short help of all the included packages
 
1432
  -V, --version           display version information and exit
 
1433
  -q, --quiet, --silent   do not print \`checking...' messages
 
1434
      --cache-file=FILE   cache test results in FILE [disabled]
 
1435
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1436
  -n, --no-create         do not create output files
 
1437
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1438
 
 
1439
Installation directories:
 
1440
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1441
                          [$ac_default_prefix]
 
1442
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1443
                          [PREFIX]
 
1444
 
 
1445
By default, \`make install' will install all the files in
 
1446
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1447
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1448
for instance \`--prefix=\$HOME'.
 
1449
 
 
1450
For better control, use the options below.
 
1451
 
 
1452
Fine tuning of the installation directories:
 
1453
  --bindir=DIR           user executables [EPREFIX/bin]
 
1454
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1455
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1456
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1457
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1458
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1459
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1460
  --includedir=DIR       C header files [PREFIX/include]
 
1461
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1462
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1463
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1464
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1465
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1466
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1467
  --docdir=DIR           documentation root [DATAROOTDIR/doc/igraph]
 
1468
  --htmldir=DIR          html documentation [DOCDIR]
 
1469
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1470
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1471
  --psdir=DIR            ps documentation [DOCDIR]
 
1472
_ACEOF
 
1473
 
 
1474
  cat <<\_ACEOF
 
1475
 
 
1476
Program names:
 
1477
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1478
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1479
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1480
 
 
1481
System types:
 
1482
  --build=BUILD     configure for building on BUILD [guessed]
 
1483
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1484
_ACEOF
 
1485
fi
 
1486
 
 
1487
if test -n "$ac_init_help"; then
 
1488
  case $ac_init_help in
 
1489
     short | recursive ) echo "Configuration of igraph 0.5.3:";;
 
1490
   esac
 
1491
  cat <<\_ACEOF
 
1492
 
 
1493
Optional Features:
 
1494
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1495
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1496
  --disable-dependency-tracking  speeds up one-time build
 
1497
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1498
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1499
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1500
  --enable-fast-install[=PKGS]
 
1501
                          optimize for fast installation [default=yes]
 
1502
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1503
  --enable-gcc-warnings   turn on lots of GCC warnings (not recommended)
 
1504
  --enable-profiling      Enable gprof profiling
 
1505
  --enable-debug          Enable debug build
 
1506
  --disable-graphml       Disable support for GraphML format
 
1507
  --enable-shell          Enable shell interface
 
1508
  --disable-gmp           Compile without the GMP library
 
1509
 
 
1510
Optional Packages:
 
1511
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1512
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1513
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1514
                          both]
 
1515
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1516
  --with-external-blas    Use external BLAS library [default=no]
 
1517
  --with-external-lapack  Use external LAPACK library [default=no]
 
1518
  --with-external-arpack  Use external ARPACK library [default=no]
 
1519
 
 
1520
Some influential environment variables:
 
1521
  CC          C compiler command
 
1522
  CFLAGS      C compiler flags
 
1523
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1524
              nonstandard directory <lib dir>
 
1525
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1526
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1527
              you have headers in a nonstandard directory <include dir>
 
1528
  CXX         C++ compiler command
 
1529
  CXXFLAGS    C++ compiler flags
 
1530
  CXXCPP      C++ preprocessor
 
1531
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
 
1532
              the first program found out of: `bison -y', `byacc', `yacc'.
 
1533
  YFLAGS      The list of arguments that will be passed by default to $YACC.
 
1534
              This script will default YFLAGS to the empty string to avoid a
 
1535
              default value of `-d' given by some make applications.
 
1536
  CPP         C preprocessor
 
1537
 
 
1538
Use these variables to override the choices made by `configure' or to help
 
1539
it to find libraries and programs with nonstandard names/locations.
 
1540
 
 
1541
Report bugs to <csardi@rmki.kfki.hu>.
 
1542
_ACEOF
 
1543
ac_status=$?
 
1544
fi
 
1545
 
 
1546
if test "$ac_init_help" = "recursive"; then
 
1547
  # If there are subdirs, report their specific --help.
 
1548
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1549
    test -d "$ac_dir" || continue
 
1550
    ac_builddir=.
 
1551
 
 
1552
case "$ac_dir" in
 
1553
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1554
*)
 
1555
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1556
  # A ".." for each directory in $ac_dir_suffix.
 
1557
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1558
  case $ac_top_builddir_sub in
 
1559
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1560
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1561
  esac ;;
 
1562
esac
 
1563
ac_abs_top_builddir=$ac_pwd
 
1564
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1565
# for backward compatibility:
 
1566
ac_top_builddir=$ac_top_build_prefix
 
1567
 
 
1568
case $srcdir in
 
1569
  .)  # We are building in place.
 
1570
    ac_srcdir=.
 
1571
    ac_top_srcdir=$ac_top_builddir_sub
 
1572
    ac_abs_top_srcdir=$ac_pwd ;;
 
1573
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1574
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1575
    ac_top_srcdir=$srcdir
 
1576
    ac_abs_top_srcdir=$srcdir ;;
 
1577
  *) # Relative name.
 
1578
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1579
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1580
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1581
esac
 
1582
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1583
 
 
1584
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1585
    # Check for guested configure.
 
1586
    if test -f "$ac_srcdir/configure.gnu"; then
 
1587
      echo &&
 
1588
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1589
    elif test -f "$ac_srcdir/configure"; then
 
1590
      echo &&
 
1591
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1592
    else
 
1593
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1594
    fi || ac_status=$?
 
1595
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1596
  done
 
1597
fi
 
1598
 
 
1599
test -n "$ac_init_help" && exit $ac_status
 
1600
if $ac_init_version; then
 
1601
  cat <<\_ACEOF
 
1602
igraph configure 0.5.3
 
1603
generated by GNU Autoconf 2.61
 
1604
 
 
1605
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1606
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1607
This configure script is free software; the Free Software Foundation
 
1608
gives unlimited permission to copy, distribute and modify it.
 
1609
_ACEOF
 
1610
  exit
 
1611
fi
 
1612
cat >config.log <<_ACEOF
 
1613
This file contains any messages produced by compilers while
 
1614
running configure, to aid debugging if configure makes a mistake.
 
1615
 
 
1616
It was created by igraph $as_me 0.5.3, which was
 
1617
generated by GNU Autoconf 2.61.  Invocation command line was
 
1618
 
 
1619
  $ $0 $@
 
1620
 
 
1621
_ACEOF
 
1622
exec 5>>config.log
 
1623
{
 
1624
cat <<_ASUNAME
 
1625
## --------- ##
 
1626
## Platform. ##
 
1627
## --------- ##
 
1628
 
 
1629
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1630
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1631
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1632
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1633
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1634
 
 
1635
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1636
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1637
 
 
1638
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1639
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1640
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1641
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1642
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1643
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1644
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1645
 
 
1646
_ASUNAME
 
1647
 
 
1648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1649
for as_dir in $PATH
 
1650
do
 
1651
  IFS=$as_save_IFS
 
1652
  test -z "$as_dir" && as_dir=.
 
1653
  echo "PATH: $as_dir"
 
1654
done
 
1655
IFS=$as_save_IFS
 
1656
 
 
1657
} >&5
 
1658
 
 
1659
cat >&5 <<_ACEOF
 
1660
 
 
1661
 
 
1662
## ----------- ##
 
1663
## Core tests. ##
 
1664
## ----------- ##
 
1665
 
 
1666
_ACEOF
 
1667
 
 
1668
 
 
1669
# Keep a trace of the command line.
 
1670
# Strip out --no-create and --no-recursion so they do not pile up.
 
1671
# Strip out --silent because we don't want to record it for future runs.
 
1672
# Also quote any args containing shell meta-characters.
 
1673
# Make two passes to allow for proper duplicate-argument suppression.
 
1674
ac_configure_args=
 
1675
ac_configure_args0=
 
1676
ac_configure_args1=
 
1677
ac_must_keep_next=false
 
1678
for ac_pass in 1 2
 
1679
do
 
1680
  for ac_arg
 
1681
  do
 
1682
    case $ac_arg in
 
1683
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1684
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1685
    | -silent | --silent | --silen | --sile | --sil)
 
1686
      continue ;;
 
1687
    *\'*)
 
1688
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1689
    esac
 
1690
    case $ac_pass in
 
1691
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1692
    2)
 
1693
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1694
      if test $ac_must_keep_next = true; then
 
1695
        ac_must_keep_next=false # Got value, back to normal.
 
1696
      else
 
1697
        case $ac_arg in
 
1698
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1699
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1700
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1701
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1702
            case "$ac_configure_args0 " in
 
1703
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1704
            esac
 
1705
            ;;
 
1706
          -* ) ac_must_keep_next=true ;;
 
1707
        esac
 
1708
      fi
 
1709
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1710
      ;;
 
1711
    esac
 
1712
  done
 
1713
done
 
1714
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1715
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1716
 
 
1717
# When interrupted or exit'd, cleanup temporary files, and complete
 
1718
# config.log.  We remove comments because anyway the quotes in there
 
1719
# would cause problems or look ugly.
 
1720
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1721
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1722
trap 'exit_status=$?
 
1723
  # Save into config.log some information that might help in debugging.
 
1724
  {
 
1725
    echo
 
1726
 
 
1727
    cat <<\_ASBOX
 
1728
## ---------------- ##
 
1729
## Cache variables. ##
 
1730
## ---------------- ##
 
1731
_ASBOX
 
1732
    echo
 
1733
    # The following way of writing the cache mishandles newlines in values,
 
1734
(
 
1735
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1736
    eval ac_val=\$$ac_var
 
1737
    case $ac_val in #(
 
1738
    *${as_nl}*)
 
1739
      case $ac_var in #(
 
1740
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1741
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1742
      esac
 
1743
      case $ac_var in #(
 
1744
      _ | IFS | as_nl) ;; #(
 
1745
      *) $as_unset $ac_var ;;
 
1746
      esac ;;
 
1747
    esac
 
1748
  done
 
1749
  (set) 2>&1 |
 
1750
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1751
    *${as_nl}ac_space=\ *)
 
1752
      sed -n \
 
1753
        "s/'\''/'\''\\\\'\'''\''/g;
 
1754
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1755
      ;; #(
 
1756
    *)
 
1757
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1758
      ;;
 
1759
    esac |
 
1760
    sort
 
1761
)
 
1762
    echo
 
1763
 
 
1764
    cat <<\_ASBOX
 
1765
## ----------------- ##
 
1766
## Output variables. ##
 
1767
## ----------------- ##
 
1768
_ASBOX
 
1769
    echo
 
1770
    for ac_var in $ac_subst_vars
 
1771
    do
 
1772
      eval ac_val=\$$ac_var
 
1773
      case $ac_val in
 
1774
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1775
      esac
 
1776
      echo "$ac_var='\''$ac_val'\''"
 
1777
    done | sort
 
1778
    echo
 
1779
 
 
1780
    if test -n "$ac_subst_files"; then
 
1781
      cat <<\_ASBOX
 
1782
## ------------------- ##
 
1783
## File substitutions. ##
 
1784
## ------------------- ##
 
1785
_ASBOX
 
1786
      echo
 
1787
      for ac_var in $ac_subst_files
 
1788
      do
 
1789
        eval ac_val=\$$ac_var
 
1790
        case $ac_val in
 
1791
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1792
        esac
 
1793
        echo "$ac_var='\''$ac_val'\''"
 
1794
      done | sort
 
1795
      echo
 
1796
    fi
 
1797
 
 
1798
    if test -s confdefs.h; then
 
1799
      cat <<\_ASBOX
 
1800
## ----------- ##
 
1801
## confdefs.h. ##
 
1802
## ----------- ##
 
1803
_ASBOX
 
1804
      echo
 
1805
      cat confdefs.h
 
1806
      echo
 
1807
    fi
 
1808
    test "$ac_signal" != 0 &&
 
1809
      echo "$as_me: caught signal $ac_signal"
 
1810
    echo "$as_me: exit $exit_status"
 
1811
  } >&5
 
1812
  rm -f core *.core core.conftest.* &&
 
1813
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1814
    exit $exit_status
 
1815
' 0
 
1816
for ac_signal in 1 2 13 15; do
 
1817
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1818
done
 
1819
ac_signal=0
 
1820
 
 
1821
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1822
rm -f -r conftest* confdefs.h
 
1823
 
 
1824
# Predefined preprocessor variables.
 
1825
 
 
1826
cat >>confdefs.h <<_ACEOF
 
1827
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1828
_ACEOF
 
1829
 
 
1830
 
 
1831
cat >>confdefs.h <<_ACEOF
 
1832
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1833
_ACEOF
 
1834
 
 
1835
 
 
1836
cat >>confdefs.h <<_ACEOF
 
1837
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1838
_ACEOF
 
1839
 
 
1840
 
 
1841
cat >>confdefs.h <<_ACEOF
 
1842
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1843
_ACEOF
 
1844
 
 
1845
 
 
1846
cat >>confdefs.h <<_ACEOF
 
1847
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1848
_ACEOF
 
1849
 
 
1850
 
 
1851
# Let the site file select an alternate cache file if it wants to.
 
1852
# Prefer explicitly selected file to automatically selected ones.
 
1853
if test -n "$CONFIG_SITE"; then
 
1854
  set x "$CONFIG_SITE"
 
1855
elif test "x$prefix" != xNONE; then
 
1856
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1857
else
 
1858
  set x "$ac_default_prefix/share/config.site" \
 
1859
        "$ac_default_prefix/etc/config.site"
 
1860
fi
 
1861
shift
 
1862
for ac_site_file
 
1863
do
 
1864
  if test -r "$ac_site_file"; then
 
1865
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1866
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1867
    sed 's/^/| /' "$ac_site_file" >&5
 
1868
    . "$ac_site_file"
 
1869
  fi
 
1870
done
 
1871
 
 
1872
if test -r "$cache_file"; then
 
1873
  # Some versions of bash will fail to source /dev/null (special
 
1874
  # files actually), so we avoid doing that.
 
1875
  if test -f "$cache_file"; then
 
1876
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1877
echo "$as_me: loading cache $cache_file" >&6;}
 
1878
    case $cache_file in
 
1879
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1880
      *)                      . "./$cache_file";;
 
1881
    esac
 
1882
  fi
 
1883
else
 
1884
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1885
echo "$as_me: creating cache $cache_file" >&6;}
 
1886
  >$cache_file
 
1887
fi
 
1888
 
 
1889
# Check that the precious variables saved in the cache have kept the same
 
1890
# value.
 
1891
ac_cache_corrupted=false
 
1892
for ac_var in $ac_precious_vars; do
 
1893
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1894
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1895
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1896
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1897
  case $ac_old_set,$ac_new_set in
 
1898
    set,)
 
1899
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1900
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1901
      ac_cache_corrupted=: ;;
 
1902
    ,set)
 
1903
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1904
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1905
      ac_cache_corrupted=: ;;
 
1906
    ,);;
 
1907
    *)
 
1908
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1909
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1910
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1911
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1912
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1913
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1914
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1915
        ac_cache_corrupted=:
 
1916
      fi;;
 
1917
  esac
 
1918
  # Pass precious variables to config.status.
 
1919
  if test "$ac_new_set" = set; then
 
1920
    case $ac_new_val in
 
1921
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1922
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1923
    esac
 
1924
    case " $ac_configure_args " in
 
1925
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1926
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1927
    esac
 
1928
  fi
 
1929
done
 
1930
if $ac_cache_corrupted; then
 
1931
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1932
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1933
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1934
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1935
   { (exit 1); exit 1; }; }
 
1936
fi
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
 
 
1954
 
 
1955
 
 
1956
 
 
1957
 
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
ac_ext=c
 
1963
ac_cpp='$CPP $CPPFLAGS'
 
1964
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1965
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1966
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1967
 
 
1968
 
 
1969
 
 
1970
am__api_version='1.10'
 
1971
 
 
1972
ac_aux_dir=
 
1973
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1974
  if test -f "$ac_dir/install-sh"; then
 
1975
    ac_aux_dir=$ac_dir
 
1976
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1977
    break
 
1978
  elif test -f "$ac_dir/install.sh"; then
 
1979
    ac_aux_dir=$ac_dir
 
1980
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1981
    break
 
1982
  elif test -f "$ac_dir/shtool"; then
 
1983
    ac_aux_dir=$ac_dir
 
1984
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1985
    break
 
1986
  fi
 
1987
done
 
1988
if test -z "$ac_aux_dir"; then
 
1989
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1990
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1991
   { (exit 1); exit 1; }; }
 
1992
fi
 
1993
 
 
1994
# These three variables are undocumented and unsupported,
 
1995
# and are intended to be withdrawn in a future Autoconf release.
 
1996
# They can cause serious problems if a builder's source tree is in a directory
 
1997
# whose full name contains unusual characters.
 
1998
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1999
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2000
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2001
 
 
2002
 
 
2003
# Find a good install program.  We prefer a C program (faster),
 
2004
# so one script is as good as another.  But avoid the broken or
 
2005
# incompatible versions:
 
2006
# SysV /etc/install, /usr/sbin/install
 
2007
# SunOS /usr/etc/install
 
2008
# IRIX /sbin/install
 
2009
# AIX /bin/install
 
2010
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2011
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2012
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2013
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2014
# OS/2's system install, which has a completely different semantic
 
2015
# ./install, which can be erroneously created by make from ./install.sh.
 
2016
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2017
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2018
if test -z "$INSTALL"; then
 
2019
if test "${ac_cv_path_install+set}" = set; then
 
2020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2021
else
 
2022
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2023
for as_dir in $PATH
 
2024
do
 
2025
  IFS=$as_save_IFS
 
2026
  test -z "$as_dir" && as_dir=.
 
2027
  # Account for people who put trailing slashes in PATH elements.
 
2028
case $as_dir/ in
 
2029
  ./ | .// | /cC/* | \
 
2030
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2031
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2032
  /usr/ucb/* ) ;;
 
2033
  *)
 
2034
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2035
    # Don't use installbsd from OSF since it installs stuff as root
 
2036
    # by default.
 
2037
    for ac_prog in ginstall scoinst install; do
 
2038
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2039
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2040
          if test $ac_prog = install &&
 
2041
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2042
            # AIX install.  It has an incompatible calling convention.
 
2043
            :
 
2044
          elif test $ac_prog = install &&
 
2045
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2046
            # program-specific install script used by HP pwplus--don't use.
 
2047
            :
 
2048
          else
 
2049
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2050
            break 3
 
2051
          fi
 
2052
        fi
 
2053
      done
 
2054
    done
 
2055
    ;;
 
2056
esac
 
2057
done
 
2058
IFS=$as_save_IFS
 
2059
 
 
2060
 
 
2061
fi
 
2062
  if test "${ac_cv_path_install+set}" = set; then
 
2063
    INSTALL=$ac_cv_path_install
 
2064
  else
 
2065
    # As a last resort, use the slow shell script.  Don't cache a
 
2066
    # value for INSTALL within a source directory, because that will
 
2067
    # break other packages using the cache if that directory is
 
2068
    # removed, or if the value is a relative name.
 
2069
    INSTALL=$ac_install_sh
 
2070
  fi
 
2071
fi
 
2072
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2073
echo "${ECHO_T}$INSTALL" >&6; }
 
2074
 
 
2075
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2076
# It thinks the first close brace ends the variable substitution.
 
2077
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2078
 
 
2079
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2080
 
 
2081
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2082
 
 
2083
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2084
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2085
# Just in case
 
2086
sleep 1
 
2087
echo timestamp > conftest.file
 
2088
# Do `set' in a subshell so we don't clobber the current shell's
 
2089
# arguments.  Must try -L first in case configure is actually a
 
2090
# symlink; some systems play weird games with the mod time of symlinks
 
2091
# (eg FreeBSD returns the mod time of the symlink's containing
 
2092
# directory).
 
2093
if (
 
2094
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2095
   if test "$*" = "X"; then
 
2096
      # -L didn't work.
 
2097
      set X `ls -t $srcdir/configure conftest.file`
 
2098
   fi
 
2099
   rm -f conftest.file
 
2100
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2101
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2102
 
 
2103
      # If neither matched, then we have a broken ls.  This can happen
 
2104
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2105
      # broken ls alias from the environment.  This has actually
 
2106
      # happened.  Such a system could not be considered "sane".
 
2107
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2108
alias in your environment" >&5
 
2109
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2110
alias in your environment" >&2;}
 
2111
   { (exit 1); exit 1; }; }
 
2112
   fi
 
2113
 
 
2114
   test "$2" = conftest.file
 
2115
   )
 
2116
then
 
2117
   # Ok.
 
2118
   :
 
2119
else
 
2120
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2121
Check your system clock" >&5
 
2122
echo "$as_me: error: newly created file is older than distributed files!
 
2123
Check your system clock" >&2;}
 
2124
   { (exit 1); exit 1; }; }
 
2125
fi
 
2126
{ echo "$as_me:$LINENO: result: yes" >&5
 
2127
echo "${ECHO_T}yes" >&6; }
 
2128
test "$program_prefix" != NONE &&
 
2129
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2130
# Use a double $ so make ignores it.
 
2131
test "$program_suffix" != NONE &&
 
2132
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2133
# Double any \ or $.  echo might interpret backslashes.
 
2134
# By default was `s,x,x', remove it if useless.
 
2135
cat <<\_ACEOF >conftest.sed
 
2136
s/[\\$]/&&/g;s/;s,x,x,$//
 
2137
_ACEOF
 
2138
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2139
rm -f conftest.sed
 
2140
 
 
2141
# expand $ac_aux_dir to an absolute path
 
2142
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2143
 
 
2144
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2145
# Use eval to expand $SHELL
 
2146
if eval "$MISSING --run true"; then
 
2147
  am_missing_run="$MISSING --run "
 
2148
else
 
2149
  am_missing_run=
 
2150
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2151
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2152
fi
 
2153
 
 
2154
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2155
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2156
if test -z "$MKDIR_P"; then
 
2157
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2158
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2159
else
 
2160
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2161
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2162
do
 
2163
  IFS=$as_save_IFS
 
2164
  test -z "$as_dir" && as_dir=.
 
2165
  for ac_prog in mkdir gmkdir; do
 
2166
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2167
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2168
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2169
             'mkdir (GNU coreutils) '* | \
 
2170
             'mkdir (coreutils) '* | \
 
2171
             'mkdir (fileutils) '4.1*)
 
2172
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2173
               break 3;;
 
2174
           esac
 
2175
         done
 
2176
       done
 
2177
done
 
2178
IFS=$as_save_IFS
 
2179
 
 
2180
fi
 
2181
 
 
2182
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2183
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2184
  else
 
2185
    # As a last resort, use the slow shell script.  Don't cache a
 
2186
    # value for MKDIR_P within a source directory, because that will
 
2187
    # break other packages using the cache if that directory is
 
2188
    # removed, or if the value is a relative name.
 
2189
    test -d ./--version && rmdir ./--version
 
2190
    MKDIR_P="$ac_install_sh -d"
 
2191
  fi
 
2192
fi
 
2193
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2194
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2195
 
 
2196
mkdir_p="$MKDIR_P"
 
2197
case $mkdir_p in
 
2198
  [\\/$]* | ?:[\\/]*) ;;
 
2199
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2200
esac
 
2201
 
 
2202
for ac_prog in gawk mawk nawk awk
 
2203
do
 
2204
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2205
set dummy $ac_prog; ac_word=$2
 
2206
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2207
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2208
if test "${ac_cv_prog_AWK+set}" = set; then
 
2209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2210
else
 
2211
  if test -n "$AWK"; then
 
2212
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2213
else
 
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2215
for as_dir in $PATH
 
2216
do
 
2217
  IFS=$as_save_IFS
 
2218
  test -z "$as_dir" && as_dir=.
 
2219
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2220
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2221
    ac_cv_prog_AWK="$ac_prog"
 
2222
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2223
    break 2
 
2224
  fi
 
2225
done
 
2226
done
 
2227
IFS=$as_save_IFS
 
2228
 
 
2229
fi
 
2230
fi
 
2231
AWK=$ac_cv_prog_AWK
 
2232
if test -n "$AWK"; then
 
2233
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2234
echo "${ECHO_T}$AWK" >&6; }
 
2235
else
 
2236
  { echo "$as_me:$LINENO: result: no" >&5
 
2237
echo "${ECHO_T}no" >&6; }
 
2238
fi
 
2239
 
 
2240
 
 
2241
  test -n "$AWK" && break
 
2242
done
 
2243
 
 
2244
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2245
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2246
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2247
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2249
else
 
2250
  cat >conftest.make <<\_ACEOF
 
2251
SHELL = /bin/sh
 
2252
all:
 
2253
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2254
_ACEOF
 
2255
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2256
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2257
  *@@@%%%=?*=@@@%%%*)
 
2258
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2259
  *)
 
2260
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2261
esac
 
2262
rm -f conftest.make
 
2263
fi
 
2264
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2265
  { echo "$as_me:$LINENO: result: yes" >&5
 
2266
echo "${ECHO_T}yes" >&6; }
 
2267
  SET_MAKE=
 
2268
else
 
2269
  { echo "$as_me:$LINENO: result: no" >&5
 
2270
echo "${ECHO_T}no" >&6; }
 
2271
  SET_MAKE="MAKE=${MAKE-make}"
 
2272
fi
 
2273
 
 
2274
rm -rf .tst 2>/dev/null
 
2275
mkdir .tst 2>/dev/null
 
2276
if test -d .tst; then
 
2277
  am__leading_dot=.
 
2278
else
 
2279
  am__leading_dot=_
 
2280
fi
 
2281
rmdir .tst 2>/dev/null
 
2282
 
 
2283
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2284
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2285
  # is not polluted with repeated "-I."
 
2286
  am__isrc=' -I$(srcdir)'
 
2287
  # test to see if srcdir already configured
 
2288
  if test -f $srcdir/config.status; then
 
2289
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2290
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2291
   { (exit 1); exit 1; }; }
 
2292
  fi
 
2293
fi
 
2294
 
 
2295
# test whether we have cygpath
 
2296
if test -z "$CYGPATH_W"; then
 
2297
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2298
    CYGPATH_W='cygpath -w'
 
2299
  else
 
2300
    CYGPATH_W=echo
 
2301
  fi
 
2302
fi
 
2303
 
 
2304
 
 
2305
# Define the identity of the package.
 
2306
 PACKAGE=igraph
 
2307
 VERSION=0.5.3
 
2308
 
 
2309
 
 
2310
cat >>confdefs.h <<_ACEOF
 
2311
#define PACKAGE "$PACKAGE"
 
2312
_ACEOF
 
2313
 
 
2314
 
 
2315
cat >>confdefs.h <<_ACEOF
 
2316
#define VERSION "$VERSION"
 
2317
_ACEOF
 
2318
 
 
2319
# Some tools Automake needs.
 
2320
 
 
2321
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2322
 
 
2323
 
 
2324
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2325
 
 
2326
 
 
2327
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2328
 
 
2329
 
 
2330
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2331
 
 
2332
 
 
2333
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2334
 
 
2335
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2336
 
 
2337
# Installed binaries are usually stripped using `strip' when the user
 
2338
# run `make install-strip'.  However `strip' might not be the right
 
2339
# tool to use in cross-compilation environments, therefore Automake
 
2340
# will honor the `STRIP' environment variable to overrule this program.
 
2341
if test "$cross_compiling" != no; then
 
2342
  if test -n "$ac_tool_prefix"; then
 
2343
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2344
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2345
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2346
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2347
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2348
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2349
else
 
2350
  if test -n "$STRIP"; then
 
2351
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2352
else
 
2353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2354
for as_dir in $PATH
 
2355
do
 
2356
  IFS=$as_save_IFS
 
2357
  test -z "$as_dir" && as_dir=.
 
2358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2360
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2361
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2362
    break 2
 
2363
  fi
 
2364
done
 
2365
done
 
2366
IFS=$as_save_IFS
 
2367
 
 
2368
fi
 
2369
fi
 
2370
STRIP=$ac_cv_prog_STRIP
 
2371
if test -n "$STRIP"; then
 
2372
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2373
echo "${ECHO_T}$STRIP" >&6; }
 
2374
else
 
2375
  { echo "$as_me:$LINENO: result: no" >&5
 
2376
echo "${ECHO_T}no" >&6; }
 
2377
fi
 
2378
 
 
2379
 
 
2380
fi
 
2381
if test -z "$ac_cv_prog_STRIP"; then
 
2382
  ac_ct_STRIP=$STRIP
 
2383
  # Extract the first word of "strip", so it can be a program name with args.
 
2384
set dummy strip; ac_word=$2
 
2385
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2387
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2389
else
 
2390
  if test -n "$ac_ct_STRIP"; then
 
2391
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2392
else
 
2393
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2394
for as_dir in $PATH
 
2395
do
 
2396
  IFS=$as_save_IFS
 
2397
  test -z "$as_dir" && as_dir=.
 
2398
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2399
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2400
    ac_cv_prog_ac_ct_STRIP="strip"
 
2401
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2402
    break 2
 
2403
  fi
 
2404
done
 
2405
done
 
2406
IFS=$as_save_IFS
 
2407
 
 
2408
fi
 
2409
fi
 
2410
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2411
if test -n "$ac_ct_STRIP"; then
 
2412
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2413
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2414
else
 
2415
  { echo "$as_me:$LINENO: result: no" >&5
 
2416
echo "${ECHO_T}no" >&6; }
 
2417
fi
 
2418
 
 
2419
  if test "x$ac_ct_STRIP" = x; then
 
2420
    STRIP=":"
 
2421
  else
 
2422
    case $cross_compiling:$ac_tool_warned in
 
2423
yes:)
 
2424
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2425
whose name does not start with the host triplet.  If you think this
 
2426
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2427
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2428
whose name does not start with the host triplet.  If you think this
 
2429
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2430
ac_tool_warned=yes ;;
 
2431
esac
 
2432
    STRIP=$ac_ct_STRIP
 
2433
  fi
 
2434
else
 
2435
  STRIP="$ac_cv_prog_STRIP"
 
2436
fi
 
2437
 
 
2438
fi
 
2439
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2440
 
 
2441
# We need awk for the "check" target.  The system "awk" is bad on
 
2442
# some platforms.
 
2443
# Always define AMTAR for backward compatibility.
 
2444
 
 
2445
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2446
 
 
2447
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2448
 
 
2449
 
 
2450
 
 
2451
 
 
2452
 
 
2453
ac_config_headers="$ac_config_headers config.h"
 
2454
 
 
2455
 
 
2456
# Test suite
 
2457
ac_config_commands="$ac_config_commands tests/atconfig"
 
2458
 
 
2459
 
 
2460
ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
 
2461
 
 
2462
 
 
2463
ac_ext=c
 
2464
ac_cpp='$CPP $CPPFLAGS'
 
2465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2468
if test -n "$ac_tool_prefix"; then
 
2469
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2470
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2471
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2473
if test "${ac_cv_prog_CC+set}" = set; then
 
2474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2475
else
 
2476
  if test -n "$CC"; then
 
2477
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2478
else
 
2479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2480
for as_dir in $PATH
 
2481
do
 
2482
  IFS=$as_save_IFS
 
2483
  test -z "$as_dir" && as_dir=.
 
2484
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2485
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2486
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2487
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2488
    break 2
 
2489
  fi
 
2490
done
 
2491
done
 
2492
IFS=$as_save_IFS
 
2493
 
 
2494
fi
 
2495
fi
 
2496
CC=$ac_cv_prog_CC
 
2497
if test -n "$CC"; then
 
2498
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2499
echo "${ECHO_T}$CC" >&6; }
 
2500
else
 
2501
  { echo "$as_me:$LINENO: result: no" >&5
 
2502
echo "${ECHO_T}no" >&6; }
 
2503
fi
 
2504
 
 
2505
 
 
2506
fi
 
2507
if test -z "$ac_cv_prog_CC"; then
 
2508
  ac_ct_CC=$CC
 
2509
  # Extract the first word of "gcc", so it can be a program name with args.
 
2510
set dummy gcc; ac_word=$2
 
2511
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2512
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2513
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2514
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2515
else
 
2516
  if test -n "$ac_ct_CC"; then
 
2517
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2518
else
 
2519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2520
for as_dir in $PATH
 
2521
do
 
2522
  IFS=$as_save_IFS
 
2523
  test -z "$as_dir" && as_dir=.
 
2524
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2525
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2526
    ac_cv_prog_ac_ct_CC="gcc"
 
2527
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2528
    break 2
 
2529
  fi
 
2530
done
 
2531
done
 
2532
IFS=$as_save_IFS
 
2533
 
 
2534
fi
 
2535
fi
 
2536
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2537
if test -n "$ac_ct_CC"; then
 
2538
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2539
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2540
else
 
2541
  { echo "$as_me:$LINENO: result: no" >&5
 
2542
echo "${ECHO_T}no" >&6; }
 
2543
fi
 
2544
 
 
2545
  if test "x$ac_ct_CC" = x; then
 
2546
    CC=""
 
2547
  else
 
2548
    case $cross_compiling:$ac_tool_warned in
 
2549
yes:)
 
2550
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2551
whose name does not start with the host triplet.  If you think this
 
2552
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2553
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2554
whose name does not start with the host triplet.  If you think this
 
2555
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2556
ac_tool_warned=yes ;;
 
2557
esac
 
2558
    CC=$ac_ct_CC
 
2559
  fi
 
2560
else
 
2561
  CC="$ac_cv_prog_CC"
 
2562
fi
 
2563
 
 
2564
if test -z "$CC"; then
 
2565
          if test -n "$ac_tool_prefix"; then
 
2566
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2567
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2568
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2570
if test "${ac_cv_prog_CC+set}" = set; then
 
2571
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2572
else
 
2573
  if test -n "$CC"; then
 
2574
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2575
else
 
2576
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2577
for as_dir in $PATH
 
2578
do
 
2579
  IFS=$as_save_IFS
 
2580
  test -z "$as_dir" && as_dir=.
 
2581
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2582
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2583
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2584
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2585
    break 2
 
2586
  fi
 
2587
done
 
2588
done
 
2589
IFS=$as_save_IFS
 
2590
 
 
2591
fi
 
2592
fi
 
2593
CC=$ac_cv_prog_CC
 
2594
if test -n "$CC"; then
 
2595
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2596
echo "${ECHO_T}$CC" >&6; }
 
2597
else
 
2598
  { echo "$as_me:$LINENO: result: no" >&5
 
2599
echo "${ECHO_T}no" >&6; }
 
2600
fi
 
2601
 
 
2602
 
 
2603
  fi
 
2604
fi
 
2605
if test -z "$CC"; then
 
2606
  # Extract the first word of "cc", so it can be a program name with args.
 
2607
set dummy cc; ac_word=$2
 
2608
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2609
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2610
if test "${ac_cv_prog_CC+set}" = set; then
 
2611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2612
else
 
2613
  if test -n "$CC"; then
 
2614
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2615
else
 
2616
  ac_prog_rejected=no
 
2617
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2618
for as_dir in $PATH
 
2619
do
 
2620
  IFS=$as_save_IFS
 
2621
  test -z "$as_dir" && as_dir=.
 
2622
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2623
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2624
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2625
       ac_prog_rejected=yes
 
2626
       continue
 
2627
     fi
 
2628
    ac_cv_prog_CC="cc"
 
2629
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2630
    break 2
 
2631
  fi
 
2632
done
 
2633
done
 
2634
IFS=$as_save_IFS
 
2635
 
 
2636
if test $ac_prog_rejected = yes; then
 
2637
  # We found a bogon in the path, so make sure we never use it.
 
2638
  set dummy $ac_cv_prog_CC
 
2639
  shift
 
2640
  if test $# != 0; then
 
2641
    # We chose a different compiler from the bogus one.
 
2642
    # However, it has the same basename, so the bogon will be chosen
 
2643
    # first if we set CC to just the basename; use the full file name.
 
2644
    shift
 
2645
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2646
  fi
 
2647
fi
 
2648
fi
 
2649
fi
 
2650
CC=$ac_cv_prog_CC
 
2651
if test -n "$CC"; then
 
2652
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2653
echo "${ECHO_T}$CC" >&6; }
 
2654
else
 
2655
  { echo "$as_me:$LINENO: result: no" >&5
 
2656
echo "${ECHO_T}no" >&6; }
 
2657
fi
 
2658
 
 
2659
 
 
2660
fi
 
2661
if test -z "$CC"; then
 
2662
  if test -n "$ac_tool_prefix"; then
 
2663
  for ac_prog in cl.exe
 
2664
  do
 
2665
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2666
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2667
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2668
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2669
if test "${ac_cv_prog_CC+set}" = set; then
 
2670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2671
else
 
2672
  if test -n "$CC"; then
 
2673
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2674
else
 
2675
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2676
for as_dir in $PATH
 
2677
do
 
2678
  IFS=$as_save_IFS
 
2679
  test -z "$as_dir" && as_dir=.
 
2680
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2681
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2682
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2683
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2684
    break 2
 
2685
  fi
 
2686
done
 
2687
done
 
2688
IFS=$as_save_IFS
 
2689
 
 
2690
fi
 
2691
fi
 
2692
CC=$ac_cv_prog_CC
 
2693
if test -n "$CC"; then
 
2694
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2695
echo "${ECHO_T}$CC" >&6; }
 
2696
else
 
2697
  { echo "$as_me:$LINENO: result: no" >&5
 
2698
echo "${ECHO_T}no" >&6; }
 
2699
fi
 
2700
 
 
2701
 
 
2702
    test -n "$CC" && break
 
2703
  done
 
2704
fi
 
2705
if test -z "$CC"; then
 
2706
  ac_ct_CC=$CC
 
2707
  for ac_prog in cl.exe
 
2708
do
 
2709
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2710
set dummy $ac_prog; ac_word=$2
 
2711
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2712
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2713
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2715
else
 
2716
  if test -n "$ac_ct_CC"; then
 
2717
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2718
else
 
2719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2720
for as_dir in $PATH
 
2721
do
 
2722
  IFS=$as_save_IFS
 
2723
  test -z "$as_dir" && as_dir=.
 
2724
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2725
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2726
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2727
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2728
    break 2
 
2729
  fi
 
2730
done
 
2731
done
 
2732
IFS=$as_save_IFS
 
2733
 
 
2734
fi
 
2735
fi
 
2736
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2737
if test -n "$ac_ct_CC"; then
 
2738
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2739
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2740
else
 
2741
  { echo "$as_me:$LINENO: result: no" >&5
 
2742
echo "${ECHO_T}no" >&6; }
 
2743
fi
 
2744
 
 
2745
 
 
2746
  test -n "$ac_ct_CC" && break
 
2747
done
 
2748
 
 
2749
  if test "x$ac_ct_CC" = x; then
 
2750
    CC=""
 
2751
  else
 
2752
    case $cross_compiling:$ac_tool_warned in
 
2753
yes:)
 
2754
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2755
whose name does not start with the host triplet.  If you think this
 
2756
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2757
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2758
whose name does not start with the host triplet.  If you think this
 
2759
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2760
ac_tool_warned=yes ;;
 
2761
esac
 
2762
    CC=$ac_ct_CC
 
2763
  fi
 
2764
fi
 
2765
 
 
2766
fi
 
2767
 
 
2768
 
 
2769
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2770
See \`config.log' for more details." >&5
 
2771
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2772
See \`config.log' for more details." >&2;}
 
2773
   { (exit 1); exit 1; }; }
 
2774
 
 
2775
# Provide some information about the compiler.
 
2776
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2777
ac_compiler=`set X $ac_compile; echo $2`
 
2778
{ (ac_try="$ac_compiler --version >&5"
 
2779
case "(($ac_try" in
 
2780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2781
  *) ac_try_echo=$ac_try;;
 
2782
esac
 
2783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2784
  (eval "$ac_compiler --version >&5") 2>&5
 
2785
  ac_status=$?
 
2786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2787
  (exit $ac_status); }
 
2788
{ (ac_try="$ac_compiler -v >&5"
 
2789
case "(($ac_try" in
 
2790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2791
  *) ac_try_echo=$ac_try;;
 
2792
esac
 
2793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2794
  (eval "$ac_compiler -v >&5") 2>&5
 
2795
  ac_status=$?
 
2796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2797
  (exit $ac_status); }
 
2798
{ (ac_try="$ac_compiler -V >&5"
 
2799
case "(($ac_try" in
 
2800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2801
  *) ac_try_echo=$ac_try;;
 
2802
esac
 
2803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2804
  (eval "$ac_compiler -V >&5") 2>&5
 
2805
  ac_status=$?
 
2806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2807
  (exit $ac_status); }
 
2808
 
 
2809
cat >conftest.$ac_ext <<_ACEOF
 
2810
/* confdefs.h.  */
 
2811
_ACEOF
 
2812
cat confdefs.h >>conftest.$ac_ext
 
2813
cat >>conftest.$ac_ext <<_ACEOF
 
2814
/* end confdefs.h.  */
 
2815
 
 
2816
int
 
2817
main ()
 
2818
{
 
2819
 
 
2820
  ;
 
2821
  return 0;
 
2822
}
 
2823
_ACEOF
 
2824
ac_clean_files_save=$ac_clean_files
 
2825
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2826
# Try to create an executable without -o first, disregard a.out.
 
2827
# It will help us diagnose broken compilers, and finding out an intuition
 
2828
# of exeext.
 
2829
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2830
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2831
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2832
#
 
2833
# List of possible output files, starting from the most likely.
 
2834
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2835
# only as a last resort.  b.out is created by i960 compilers.
 
2836
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2837
#
 
2838
# The IRIX 6 linker writes into existing files which may not be
 
2839
# executable, retaining their permissions.  Remove them first so a
 
2840
# subsequent execution test works.
 
2841
ac_rmfiles=
 
2842
for ac_file in $ac_files
 
2843
do
 
2844
  case $ac_file in
 
2845
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2846
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2847
  esac
 
2848
done
 
2849
rm -f $ac_rmfiles
 
2850
 
 
2851
if { (ac_try="$ac_link_default"
 
2852
case "(($ac_try" in
 
2853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2854
  *) ac_try_echo=$ac_try;;
 
2855
esac
 
2856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2857
  (eval "$ac_link_default") 2>&5
 
2858
  ac_status=$?
 
2859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2860
  (exit $ac_status); }; then
 
2861
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2862
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2863
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2864
# so that the user can short-circuit this test for compilers unknown to
 
2865
# Autoconf.
 
2866
for ac_file in $ac_files ''
 
2867
do
 
2868
  test -f "$ac_file" || continue
 
2869
  case $ac_file in
 
2870
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2871
        ;;
 
2872
    [ab].out )
 
2873
        # We found the default executable, but exeext='' is most
 
2874
        # certainly right.
 
2875
        break;;
 
2876
    *.* )
 
2877
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2878
        then :; else
 
2879
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2880
        fi
 
2881
        # We set ac_cv_exeext here because the later test for it is not
 
2882
        # safe: cross compilers may not add the suffix if given an `-o'
 
2883
        # argument, so we may need to know it at that point already.
 
2884
        # Even if this section looks crufty: it has the advantage of
 
2885
        # actually working.
 
2886
        break;;
 
2887
    * )
 
2888
        break;;
 
2889
  esac
 
2890
done
 
2891
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2892
 
 
2893
else
 
2894
  ac_file=''
 
2895
fi
 
2896
 
 
2897
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2898
echo "${ECHO_T}$ac_file" >&6; }
 
2899
if test -z "$ac_file"; then
 
2900
  echo "$as_me: failed program was:" >&5
 
2901
sed 's/^/| /' conftest.$ac_ext >&5
 
2902
 
 
2903
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2904
See \`config.log' for more details." >&5
 
2905
echo "$as_me: error: C compiler cannot create executables
 
2906
See \`config.log' for more details." >&2;}
 
2907
   { (exit 77); exit 77; }; }
 
2908
fi
 
2909
 
 
2910
ac_exeext=$ac_cv_exeext
 
2911
 
 
2912
# Check that the compiler produces executables we can run.  If not, either
 
2913
# the compiler is broken, or we cross compile.
 
2914
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2915
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2916
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2917
# If not cross compiling, check that we can run a simple program.
 
2918
if test "$cross_compiling" != yes; then
 
2919
  if { ac_try='./$ac_file'
 
2920
  { (case "(($ac_try" in
 
2921
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2922
  *) ac_try_echo=$ac_try;;
 
2923
esac
 
2924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2925
  (eval "$ac_try") 2>&5
 
2926
  ac_status=$?
 
2927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2928
  (exit $ac_status); }; }; then
 
2929
    cross_compiling=no
 
2930
  else
 
2931
    if test "$cross_compiling" = maybe; then
 
2932
        cross_compiling=yes
 
2933
    else
 
2934
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2935
If you meant to cross compile, use \`--host'.
 
2936
See \`config.log' for more details." >&5
 
2937
echo "$as_me: error: cannot run C compiled programs.
 
2938
If you meant to cross compile, use \`--host'.
 
2939
See \`config.log' for more details." >&2;}
 
2940
   { (exit 1); exit 1; }; }
 
2941
    fi
 
2942
  fi
 
2943
fi
 
2944
{ echo "$as_me:$LINENO: result: yes" >&5
 
2945
echo "${ECHO_T}yes" >&6; }
 
2946
 
 
2947
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2948
ac_clean_files=$ac_clean_files_save
 
2949
# Check that the compiler produces executables we can run.  If not, either
 
2950
# the compiler is broken, or we cross compile.
 
2951
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2952
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2953
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2954
echo "${ECHO_T}$cross_compiling" >&6; }
 
2955
 
 
2956
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2957
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2958
if { (ac_try="$ac_link"
 
2959
case "(($ac_try" in
 
2960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2961
  *) ac_try_echo=$ac_try;;
 
2962
esac
 
2963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2964
  (eval "$ac_link") 2>&5
 
2965
  ac_status=$?
 
2966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2967
  (exit $ac_status); }; then
 
2968
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2969
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2970
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2971
# `rm'.
 
2972
for ac_file in conftest.exe conftest conftest.*; do
 
2973
  test -f "$ac_file" || continue
 
2974
  case $ac_file in
 
2975
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2976
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2977
          break;;
 
2978
    * ) break;;
 
2979
  esac
 
2980
done
 
2981
else
 
2982
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2983
See \`config.log' for more details." >&5
 
2984
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2985
See \`config.log' for more details." >&2;}
 
2986
   { (exit 1); exit 1; }; }
 
2987
fi
 
2988
 
 
2989
rm -f conftest$ac_cv_exeext
 
2990
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2991
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2992
 
 
2993
rm -f conftest.$ac_ext
 
2994
EXEEXT=$ac_cv_exeext
 
2995
ac_exeext=$EXEEXT
 
2996
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2997
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2998
if test "${ac_cv_objext+set}" = set; then
 
2999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3000
else
 
3001
  cat >conftest.$ac_ext <<_ACEOF
 
3002
/* confdefs.h.  */
 
3003
_ACEOF
 
3004
cat confdefs.h >>conftest.$ac_ext
 
3005
cat >>conftest.$ac_ext <<_ACEOF
 
3006
/* end confdefs.h.  */
 
3007
 
 
3008
int
 
3009
main ()
 
3010
{
 
3011
 
 
3012
  ;
 
3013
  return 0;
 
3014
}
 
3015
_ACEOF
 
3016
rm -f conftest.o conftest.obj
 
3017
if { (ac_try="$ac_compile"
 
3018
case "(($ac_try" in
 
3019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3020
  *) ac_try_echo=$ac_try;;
 
3021
esac
 
3022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3023
  (eval "$ac_compile") 2>&5
 
3024
  ac_status=$?
 
3025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3026
  (exit $ac_status); }; then
 
3027
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3028
  test -f "$ac_file" || continue;
 
3029
  case $ac_file in
 
3030
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3031
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3032
       break;;
 
3033
  esac
 
3034
done
 
3035
else
 
3036
  echo "$as_me: failed program was:" >&5
 
3037
sed 's/^/| /' conftest.$ac_ext >&5
 
3038
 
 
3039
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3040
See \`config.log' for more details." >&5
 
3041
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3042
See \`config.log' for more details." >&2;}
 
3043
   { (exit 1); exit 1; }; }
 
3044
fi
 
3045
 
 
3046
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3047
fi
 
3048
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3049
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3050
OBJEXT=$ac_cv_objext
 
3051
ac_objext=$OBJEXT
 
3052
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3053
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3054
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3056
else
 
3057
  cat >conftest.$ac_ext <<_ACEOF
 
3058
/* confdefs.h.  */
 
3059
_ACEOF
 
3060
cat confdefs.h >>conftest.$ac_ext
 
3061
cat >>conftest.$ac_ext <<_ACEOF
 
3062
/* end confdefs.h.  */
 
3063
 
 
3064
int
 
3065
main ()
 
3066
{
 
3067
#ifndef __GNUC__
 
3068
       choke me
 
3069
#endif
 
3070
 
 
3071
  ;
 
3072
  return 0;
 
3073
}
 
3074
_ACEOF
 
3075
rm -f conftest.$ac_objext
 
3076
if { (ac_try="$ac_compile"
 
3077
case "(($ac_try" in
 
3078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3079
  *) ac_try_echo=$ac_try;;
 
3080
esac
 
3081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3082
  (eval "$ac_compile") 2>conftest.er1
 
3083
  ac_status=$?
 
3084
  grep -v '^ *+' conftest.er1 >conftest.err
 
3085
  rm -f conftest.er1
 
3086
  cat conftest.err >&5
 
3087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3088
  (exit $ac_status); } && {
 
3089
         test -z "$ac_c_werror_flag" ||
 
3090
         test ! -s conftest.err
 
3091
       } && test -s conftest.$ac_objext; then
 
3092
  ac_compiler_gnu=yes
 
3093
else
 
3094
  echo "$as_me: failed program was:" >&5
 
3095
sed 's/^/| /' conftest.$ac_ext >&5
 
3096
 
 
3097
        ac_compiler_gnu=no
 
3098
fi
 
3099
 
 
3100
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3101
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3102
 
 
3103
fi
 
3104
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3105
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3106
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3107
ac_test_CFLAGS=${CFLAGS+set}
 
3108
ac_save_CFLAGS=$CFLAGS
 
3109
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3110
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3111
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3113
else
 
3114
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3115
   ac_c_werror_flag=yes
 
3116
   ac_cv_prog_cc_g=no
 
3117
   CFLAGS="-g"
 
3118
   cat >conftest.$ac_ext <<_ACEOF
 
3119
/* confdefs.h.  */
 
3120
_ACEOF
 
3121
cat confdefs.h >>conftest.$ac_ext
 
3122
cat >>conftest.$ac_ext <<_ACEOF
 
3123
/* end confdefs.h.  */
 
3124
 
 
3125
int
 
3126
main ()
 
3127
{
 
3128
 
 
3129
  ;
 
3130
  return 0;
 
3131
}
 
3132
_ACEOF
 
3133
rm -f conftest.$ac_objext
 
3134
if { (ac_try="$ac_compile"
 
3135
case "(($ac_try" in
 
3136
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3137
  *) ac_try_echo=$ac_try;;
 
3138
esac
 
3139
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3140
  (eval "$ac_compile") 2>conftest.er1
 
3141
  ac_status=$?
 
3142
  grep -v '^ *+' conftest.er1 >conftest.err
 
3143
  rm -f conftest.er1
 
3144
  cat conftest.err >&5
 
3145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
  (exit $ac_status); } && {
 
3147
         test -z "$ac_c_werror_flag" ||
 
3148
         test ! -s conftest.err
 
3149
       } && test -s conftest.$ac_objext; then
 
3150
  ac_cv_prog_cc_g=yes
 
3151
else
 
3152
  echo "$as_me: failed program was:" >&5
 
3153
sed 's/^/| /' conftest.$ac_ext >&5
 
3154
 
 
3155
        CFLAGS=""
 
3156
      cat >conftest.$ac_ext <<_ACEOF
 
3157
/* confdefs.h.  */
 
3158
_ACEOF
 
3159
cat confdefs.h >>conftest.$ac_ext
 
3160
cat >>conftest.$ac_ext <<_ACEOF
 
3161
/* end confdefs.h.  */
 
3162
 
 
3163
int
 
3164
main ()
 
3165
{
 
3166
 
 
3167
  ;
 
3168
  return 0;
 
3169
}
 
3170
_ACEOF
 
3171
rm -f conftest.$ac_objext
 
3172
if { (ac_try="$ac_compile"
 
3173
case "(($ac_try" in
 
3174
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3175
  *) ac_try_echo=$ac_try;;
 
3176
esac
 
3177
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3178
  (eval "$ac_compile") 2>conftest.er1
 
3179
  ac_status=$?
 
3180
  grep -v '^ *+' conftest.er1 >conftest.err
 
3181
  rm -f conftest.er1
 
3182
  cat conftest.err >&5
 
3183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3184
  (exit $ac_status); } && {
 
3185
         test -z "$ac_c_werror_flag" ||
 
3186
         test ! -s conftest.err
 
3187
       } && test -s conftest.$ac_objext; then
 
3188
  :
 
3189
else
 
3190
  echo "$as_me: failed program was:" >&5
 
3191
sed 's/^/| /' conftest.$ac_ext >&5
 
3192
 
 
3193
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3194
         CFLAGS="-g"
 
3195
         cat >conftest.$ac_ext <<_ACEOF
 
3196
/* confdefs.h.  */
 
3197
_ACEOF
 
3198
cat confdefs.h >>conftest.$ac_ext
 
3199
cat >>conftest.$ac_ext <<_ACEOF
 
3200
/* end confdefs.h.  */
 
3201
 
 
3202
int
 
3203
main ()
 
3204
{
 
3205
 
 
3206
  ;
 
3207
  return 0;
 
3208
}
 
3209
_ACEOF
 
3210
rm -f conftest.$ac_objext
 
3211
if { (ac_try="$ac_compile"
 
3212
case "(($ac_try" in
 
3213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3214
  *) ac_try_echo=$ac_try;;
 
3215
esac
 
3216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3217
  (eval "$ac_compile") 2>conftest.er1
 
3218
  ac_status=$?
 
3219
  grep -v '^ *+' conftest.er1 >conftest.err
 
3220
  rm -f conftest.er1
 
3221
  cat conftest.err >&5
 
3222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3223
  (exit $ac_status); } && {
 
3224
         test -z "$ac_c_werror_flag" ||
 
3225
         test ! -s conftest.err
 
3226
       } && test -s conftest.$ac_objext; then
 
3227
  ac_cv_prog_cc_g=yes
 
3228
else
 
3229
  echo "$as_me: failed program was:" >&5
 
3230
sed 's/^/| /' conftest.$ac_ext >&5
 
3231
 
 
3232
 
 
3233
fi
 
3234
 
 
3235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3236
fi
 
3237
 
 
3238
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3239
fi
 
3240
 
 
3241
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3242
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3243
fi
 
3244
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3245
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3246
if test "$ac_test_CFLAGS" = set; then
 
3247
  CFLAGS=$ac_save_CFLAGS
 
3248
elif test $ac_cv_prog_cc_g = yes; then
 
3249
  if test "$GCC" = yes; then
 
3250
    CFLAGS="-g -O2"
 
3251
  else
 
3252
    CFLAGS="-g"
 
3253
  fi
 
3254
else
 
3255
  if test "$GCC" = yes; then
 
3256
    CFLAGS="-O2"
 
3257
  else
 
3258
    CFLAGS=
 
3259
  fi
 
3260
fi
 
3261
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3262
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3263
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3265
else
 
3266
  ac_cv_prog_cc_c89=no
 
3267
ac_save_CC=$CC
 
3268
cat >conftest.$ac_ext <<_ACEOF
 
3269
/* confdefs.h.  */
 
3270
_ACEOF
 
3271
cat confdefs.h >>conftest.$ac_ext
 
3272
cat >>conftest.$ac_ext <<_ACEOF
 
3273
/* end confdefs.h.  */
 
3274
#include <stdarg.h>
 
3275
#include <stdio.h>
 
3276
#include <sys/types.h>
 
3277
#include <sys/stat.h>
 
3278
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3279
struct buf { int x; };
 
3280
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3281
static char *e (p, i)
 
3282
     char **p;
 
3283
     int i;
 
3284
{
 
3285
  return p[i];
 
3286
}
 
3287
static char *f (char * (*g) (char **, int), char **p, ...)
 
3288
{
 
3289
  char *s;
 
3290
  va_list v;
 
3291
  va_start (v,p);
 
3292
  s = g (p, va_arg (v,int));
 
3293
  va_end (v);
 
3294
  return s;
 
3295
}
 
3296
 
 
3297
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3298
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3299
   These don't provoke an error unfortunately, instead are silently treated
 
3300
   as 'x'.  The following induces an error, until -std is added to get
 
3301
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3302
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3303
   that's true only with -std.  */
 
3304
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3305
 
 
3306
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3307
   inside strings and character constants.  */
 
3308
#define FOO(x) 'x'
 
3309
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3310
 
 
3311
int test (int i, double x);
 
3312
struct s1 {int (*f) (int a);};
 
3313
struct s2 {int (*f) (double a);};
 
3314
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3315
int argc;
 
3316
char **argv;
 
3317
int
 
3318
main ()
 
3319
{
 
3320
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3321
  ;
 
3322
  return 0;
 
3323
}
 
3324
_ACEOF
 
3325
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3326
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3327
do
 
3328
  CC="$ac_save_CC $ac_arg"
 
3329
  rm -f conftest.$ac_objext
 
3330
if { (ac_try="$ac_compile"
 
3331
case "(($ac_try" in
 
3332
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3333
  *) ac_try_echo=$ac_try;;
 
3334
esac
 
3335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3336
  (eval "$ac_compile") 2>conftest.er1
 
3337
  ac_status=$?
 
3338
  grep -v '^ *+' conftest.er1 >conftest.err
 
3339
  rm -f conftest.er1
 
3340
  cat conftest.err >&5
 
3341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3342
  (exit $ac_status); } && {
 
3343
         test -z "$ac_c_werror_flag" ||
 
3344
         test ! -s conftest.err
 
3345
       } && test -s conftest.$ac_objext; then
 
3346
  ac_cv_prog_cc_c89=$ac_arg
 
3347
else
 
3348
  echo "$as_me: failed program was:" >&5
 
3349
sed 's/^/| /' conftest.$ac_ext >&5
 
3350
 
 
3351
 
 
3352
fi
 
3353
 
 
3354
rm -f core conftest.err conftest.$ac_objext
 
3355
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3356
done
 
3357
rm -f conftest.$ac_ext
 
3358
CC=$ac_save_CC
 
3359
 
 
3360
fi
 
3361
# AC_CACHE_VAL
 
3362
case "x$ac_cv_prog_cc_c89" in
 
3363
  x)
 
3364
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3365
echo "${ECHO_T}none needed" >&6; } ;;
 
3366
  xno)
 
3367
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3368
echo "${ECHO_T}unsupported" >&6; } ;;
 
3369
  *)
 
3370
    CC="$CC $ac_cv_prog_cc_c89"
 
3371
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3372
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3373
esac
 
3374
 
 
3375
 
 
3376
ac_ext=c
 
3377
ac_cpp='$CPP $CPPFLAGS'
 
3378
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3379
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3380
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3381
DEPDIR="${am__leading_dot}deps"
 
3382
 
 
3383
ac_config_commands="$ac_config_commands depfiles"
 
3384
 
 
3385
 
 
3386
am_make=${MAKE-make}
 
3387
cat > confinc << 'END'
 
3388
am__doit:
 
3389
        @echo done
 
3390
.PHONY: am__doit
 
3391
END
 
3392
# If we don't find an include directive, just comment out the code.
 
3393
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3394
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3395
am__include="#"
 
3396
am__quote=
 
3397
_am_result=none
 
3398
# First try GNU make style include.
 
3399
echo "include confinc" > confmf
 
3400
# We grep out `Entering directory' and `Leaving directory'
 
3401
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3402
# In particular we don't look at `^make:' because GNU make might
 
3403
# be invoked under some other name (usually "gmake"), in which
 
3404
# case it prints its new name instead of `make'.
 
3405
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3406
   am__include=include
 
3407
   am__quote=
 
3408
   _am_result=GNU
 
3409
fi
 
3410
# Now try BSD make style include.
 
3411
if test "$am__include" = "#"; then
 
3412
   echo '.include "confinc"' > confmf
 
3413
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3414
      am__include=.include
 
3415
      am__quote="\""
 
3416
      _am_result=BSD
 
3417
   fi
 
3418
fi
 
3419
 
 
3420
 
 
3421
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3422
echo "${ECHO_T}$_am_result" >&6; }
 
3423
rm -f confinc confmf
 
3424
 
 
3425
# Check whether --enable-dependency-tracking was given.
 
3426
if test "${enable_dependency_tracking+set}" = set; then
 
3427
  enableval=$enable_dependency_tracking;
 
3428
fi
 
3429
 
 
3430
if test "x$enable_dependency_tracking" != xno; then
 
3431
  am_depcomp="$ac_aux_dir/depcomp"
 
3432
  AMDEPBACKSLASH='\'
 
3433
fi
 
3434
 if test "x$enable_dependency_tracking" != xno; then
 
3435
  AMDEP_TRUE=
 
3436
  AMDEP_FALSE='#'
 
3437
else
 
3438
  AMDEP_TRUE='#'
 
3439
  AMDEP_FALSE=
 
3440
fi
 
3441
 
 
3442
 
 
3443
 
 
3444
depcc="$CC"   am_compiler_list=
 
3445
 
 
3446
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3447
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3448
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3450
else
 
3451
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3452
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3453
  # making bogus files that we don't know about and never remove.  For
 
3454
  # instance it was reported that on HP-UX the gcc test will end up
 
3455
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3456
  # in D'.
 
3457
  mkdir conftest.dir
 
3458
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3459
  # using a relative directory.
 
3460
  cp "$am_depcomp" conftest.dir
 
3461
  cd conftest.dir
 
3462
  # We will build objects and dependencies in a subdirectory because
 
3463
  # it helps to detect inapplicable dependency modes.  For instance
 
3464
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3465
  # side effect of compilation, but ICC will put the dependencies in
 
3466
  # the current directory while Tru64 will put them in the object
 
3467
  # directory.
 
3468
  mkdir sub
 
3469
 
 
3470
  am_cv_CC_dependencies_compiler_type=none
 
3471
  if test "$am_compiler_list" = ""; then
 
3472
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3473
  fi
 
3474
  for depmode in $am_compiler_list; do
 
3475
    # Setup a source with many dependencies, because some compilers
 
3476
    # like to wrap large dependency lists on column 80 (with \), and
 
3477
    # we should not choose a depcomp mode which is confused by this.
 
3478
    #
 
3479
    # We need to recreate these files for each test, as the compiler may
 
3480
    # overwrite some of them when testing with obscure command lines.
 
3481
    # This happens at least with the AIX C compiler.
 
3482
    : > sub/conftest.c
 
3483
    for i in 1 2 3 4 5 6; do
 
3484
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3485
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3486
      # Solaris 8's {/usr,}/bin/sh.
 
3487
      touch sub/conftst$i.h
 
3488
    done
 
3489
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3490
 
 
3491
    case $depmode in
 
3492
    nosideeffect)
 
3493
      # after this tag, mechanisms are not by side-effect, so they'll
 
3494
      # only be used when explicitly requested
 
3495
      if test "x$enable_dependency_tracking" = xyes; then
 
3496
        continue
 
3497
      else
 
3498
        break
 
3499
      fi
 
3500
      ;;
 
3501
    none) break ;;
 
3502
    esac
 
3503
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3504
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3505
    # handle `-M -o', and we need to detect this.
 
3506
    if depmode=$depmode \
 
3507
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3508
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3509
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3510
         >/dev/null 2>conftest.err &&
 
3511
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3512
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3513
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3514
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3515
      # icc doesn't choke on unknown options, it will just issue warnings
 
3516
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3517
      # that says an option was ignored or not supported.
 
3518
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3519
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3520
      # The diagnosis changed in icc 8.0:
 
3521
      #   icc: Command line remark: option '-MP' not supported
 
3522
      if (grep 'ignoring option' conftest.err ||
 
3523
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3524
        am_cv_CC_dependencies_compiler_type=$depmode
 
3525
        break
 
3526
      fi
 
3527
    fi
 
3528
  done
 
3529
 
 
3530
  cd ..
 
3531
  rm -rf conftest.dir
 
3532
else
 
3533
  am_cv_CC_dependencies_compiler_type=none
 
3534
fi
 
3535
 
 
3536
fi
 
3537
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3538
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3539
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3540
 
 
3541
 if
 
3542
  test "x$enable_dependency_tracking" != xno \
 
3543
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3544
  am__fastdepCC_TRUE=
 
3545
  am__fastdepCC_FALSE='#'
 
3546
else
 
3547
  am__fastdepCC_TRUE='#'
 
3548
  am__fastdepCC_FALSE=
 
3549
fi
 
3550
 
 
3551
 
 
3552
 
 
3553
# Tricky check for C++ compiler, because Autoconf has a weird bug:
 
3554
# http://lists.gnu.org/archive/html/autoconf/2006-03/msg00067.html
 
3555
ac_ext=cpp
 
3556
ac_cpp='$CXXCPP $CPPFLAGS'
 
3557
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3558
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3559
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3560
if test -z "$CXX"; then
 
3561
  if test -n "$CCC"; then
 
3562
    CXX=$CCC
 
3563
  else
 
3564
    if test -n "$ac_tool_prefix"; then
 
3565
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3566
  do
 
3567
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3568
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3569
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3570
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3571
if test "${ac_cv_prog_CXX+set}" = set; then
 
3572
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3573
else
 
3574
  if test -n "$CXX"; then
 
3575
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
3576
else
 
3577
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3578
for as_dir in $PATH
 
3579
do
 
3580
  IFS=$as_save_IFS
 
3581
  test -z "$as_dir" && as_dir=.
 
3582
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3583
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3584
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
3585
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3586
    break 2
 
3587
  fi
 
3588
done
 
3589
done
 
3590
IFS=$as_save_IFS
 
3591
 
 
3592
fi
 
3593
fi
 
3594
CXX=$ac_cv_prog_CXX
 
3595
if test -n "$CXX"; then
 
3596
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
3597
echo "${ECHO_T}$CXX" >&6; }
 
3598
else
 
3599
  { echo "$as_me:$LINENO: result: no" >&5
 
3600
echo "${ECHO_T}no" >&6; }
 
3601
fi
 
3602
 
 
3603
 
 
3604
    test -n "$CXX" && break
 
3605
  done
 
3606
fi
 
3607
if test -z "$CXX"; then
 
3608
  ac_ct_CXX=$CXX
 
3609
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3610
do
 
3611
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3612
set dummy $ac_prog; ac_word=$2
 
3613
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3614
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3615
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
3616
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3617
else
 
3618
  if test -n "$ac_ct_CXX"; then
 
3619
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
3620
else
 
3621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3622
for as_dir in $PATH
 
3623
do
 
3624
  IFS=$as_save_IFS
 
3625
  test -z "$as_dir" && as_dir=.
 
3626
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3627
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3628
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
3629
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3630
    break 2
 
3631
  fi
 
3632
done
 
3633
done
 
3634
IFS=$as_save_IFS
 
3635
 
 
3636
fi
 
3637
fi
 
3638
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
3639
if test -n "$ac_ct_CXX"; then
 
3640
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3641
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
3642
else
 
3643
  { echo "$as_me:$LINENO: result: no" >&5
 
3644
echo "${ECHO_T}no" >&6; }
 
3645
fi
 
3646
 
 
3647
 
 
3648
  test -n "$ac_ct_CXX" && break
 
3649
done
 
3650
 
 
3651
  if test "x$ac_ct_CXX" = x; then
 
3652
    CXX="g++"
 
3653
  else
 
3654
    case $cross_compiling:$ac_tool_warned in
 
3655
yes:)
 
3656
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3657
whose name does not start with the host triplet.  If you think this
 
3658
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3659
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3660
whose name does not start with the host triplet.  If you think this
 
3661
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3662
ac_tool_warned=yes ;;
 
3663
esac
 
3664
    CXX=$ac_ct_CXX
 
3665
  fi
 
3666
fi
 
3667
 
 
3668
  fi
 
3669
fi
 
3670
# Provide some information about the compiler.
 
3671
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
3672
ac_compiler=`set X $ac_compile; echo $2`
 
3673
{ (ac_try="$ac_compiler --version >&5"
 
3674
case "(($ac_try" in
 
3675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3676
  *) ac_try_echo=$ac_try;;
 
3677
esac
 
3678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3679
  (eval "$ac_compiler --version >&5") 2>&5
 
3680
  ac_status=$?
 
3681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3682
  (exit $ac_status); }
 
3683
{ (ac_try="$ac_compiler -v >&5"
 
3684
case "(($ac_try" in
 
3685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3686
  *) ac_try_echo=$ac_try;;
 
3687
esac
 
3688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3689
  (eval "$ac_compiler -v >&5") 2>&5
 
3690
  ac_status=$?
 
3691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3692
  (exit $ac_status); }
 
3693
{ (ac_try="$ac_compiler -V >&5"
 
3694
case "(($ac_try" in
 
3695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3696
  *) ac_try_echo=$ac_try;;
 
3697
esac
 
3698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3699
  (eval "$ac_compiler -V >&5") 2>&5
 
3700
  ac_status=$?
 
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3702
  (exit $ac_status); }
 
3703
 
 
3704
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3705
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
3706
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3708
else
 
3709
  cat >conftest.$ac_ext <<_ACEOF
 
3710
/* confdefs.h.  */
 
3711
_ACEOF
 
3712
cat confdefs.h >>conftest.$ac_ext
 
3713
cat >>conftest.$ac_ext <<_ACEOF
 
3714
/* end confdefs.h.  */
 
3715
 
 
3716
int
 
3717
main ()
 
3718
{
 
3719
#ifndef __GNUC__
 
3720
       choke me
 
3721
#endif
 
3722
 
 
3723
  ;
 
3724
  return 0;
 
3725
}
 
3726
_ACEOF
 
3727
rm -f conftest.$ac_objext
 
3728
if { (ac_try="$ac_compile"
 
3729
case "(($ac_try" in
 
3730
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3731
  *) ac_try_echo=$ac_try;;
 
3732
esac
 
3733
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3734
  (eval "$ac_compile") 2>conftest.er1
 
3735
  ac_status=$?
 
3736
  grep -v '^ *+' conftest.er1 >conftest.err
 
3737
  rm -f conftest.er1
 
3738
  cat conftest.err >&5
 
3739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3740
  (exit $ac_status); } && {
 
3741
         test -z "$ac_cxx_werror_flag" ||
 
3742
         test ! -s conftest.err
 
3743
       } && test -s conftest.$ac_objext; then
 
3744
  ac_compiler_gnu=yes
 
3745
else
 
3746
  echo "$as_me: failed program was:" >&5
 
3747
sed 's/^/| /' conftest.$ac_ext >&5
 
3748
 
 
3749
        ac_compiler_gnu=no
 
3750
fi
 
3751
 
 
3752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3753
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3754
 
 
3755
fi
 
3756
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3757
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
3758
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3759
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3760
ac_save_CXXFLAGS=$CXXFLAGS
 
3761
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3762
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
3763
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3764
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3765
else
 
3766
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3767
   ac_cxx_werror_flag=yes
 
3768
   ac_cv_prog_cxx_g=no
 
3769
   CXXFLAGS="-g"
 
3770
   cat >conftest.$ac_ext <<_ACEOF
 
3771
/* confdefs.h.  */
 
3772
_ACEOF
 
3773
cat confdefs.h >>conftest.$ac_ext
 
3774
cat >>conftest.$ac_ext <<_ACEOF
 
3775
/* end confdefs.h.  */
 
3776
 
 
3777
int
 
3778
main ()
 
3779
{
 
3780
 
 
3781
  ;
 
3782
  return 0;
 
3783
}
 
3784
_ACEOF
 
3785
rm -f conftest.$ac_objext
 
3786
if { (ac_try="$ac_compile"
 
3787
case "(($ac_try" in
 
3788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3789
  *) ac_try_echo=$ac_try;;
 
3790
esac
 
3791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3792
  (eval "$ac_compile") 2>conftest.er1
 
3793
  ac_status=$?
 
3794
  grep -v '^ *+' conftest.er1 >conftest.err
 
3795
  rm -f conftest.er1
 
3796
  cat conftest.err >&5
 
3797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3798
  (exit $ac_status); } && {
 
3799
         test -z "$ac_cxx_werror_flag" ||
 
3800
         test ! -s conftest.err
 
3801
       } && test -s conftest.$ac_objext; then
 
3802
  ac_cv_prog_cxx_g=yes
 
3803
else
 
3804
  echo "$as_me: failed program was:" >&5
 
3805
sed 's/^/| /' conftest.$ac_ext >&5
 
3806
 
 
3807
        CXXFLAGS=""
 
3808
      cat >conftest.$ac_ext <<_ACEOF
 
3809
/* confdefs.h.  */
 
3810
_ACEOF
 
3811
cat confdefs.h >>conftest.$ac_ext
 
3812
cat >>conftest.$ac_ext <<_ACEOF
 
3813
/* end confdefs.h.  */
 
3814
 
 
3815
int
 
3816
main ()
 
3817
{
 
3818
 
 
3819
  ;
 
3820
  return 0;
 
3821
}
 
3822
_ACEOF
 
3823
rm -f conftest.$ac_objext
 
3824
if { (ac_try="$ac_compile"
 
3825
case "(($ac_try" in
 
3826
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3827
  *) ac_try_echo=$ac_try;;
 
3828
esac
 
3829
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3830
  (eval "$ac_compile") 2>conftest.er1
 
3831
  ac_status=$?
 
3832
  grep -v '^ *+' conftest.er1 >conftest.err
 
3833
  rm -f conftest.er1
 
3834
  cat conftest.err >&5
 
3835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3836
  (exit $ac_status); } && {
 
3837
         test -z "$ac_cxx_werror_flag" ||
 
3838
         test ! -s conftest.err
 
3839
       } && test -s conftest.$ac_objext; then
 
3840
  :
 
3841
else
 
3842
  echo "$as_me: failed program was:" >&5
 
3843
sed 's/^/| /' conftest.$ac_ext >&5
 
3844
 
 
3845
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3846
         CXXFLAGS="-g"
 
3847
         cat >conftest.$ac_ext <<_ACEOF
 
3848
/* confdefs.h.  */
 
3849
_ACEOF
 
3850
cat confdefs.h >>conftest.$ac_ext
 
3851
cat >>conftest.$ac_ext <<_ACEOF
 
3852
/* end confdefs.h.  */
 
3853
 
 
3854
int
 
3855
main ()
 
3856
{
 
3857
 
 
3858
  ;
 
3859
  return 0;
 
3860
}
 
3861
_ACEOF
 
3862
rm -f conftest.$ac_objext
 
3863
if { (ac_try="$ac_compile"
 
3864
case "(($ac_try" in
 
3865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3866
  *) ac_try_echo=$ac_try;;
 
3867
esac
 
3868
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3869
  (eval "$ac_compile") 2>conftest.er1
 
3870
  ac_status=$?
 
3871
  grep -v '^ *+' conftest.er1 >conftest.err
 
3872
  rm -f conftest.er1
 
3873
  cat conftest.err >&5
 
3874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3875
  (exit $ac_status); } && {
 
3876
         test -z "$ac_cxx_werror_flag" ||
 
3877
         test ! -s conftest.err
 
3878
       } && test -s conftest.$ac_objext; then
 
3879
  ac_cv_prog_cxx_g=yes
 
3880
else
 
3881
  echo "$as_me: failed program was:" >&5
 
3882
sed 's/^/| /' conftest.$ac_ext >&5
 
3883
 
 
3884
 
 
3885
fi
 
3886
 
 
3887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3888
fi
 
3889
 
 
3890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3891
fi
 
3892
 
 
3893
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3894
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3895
fi
 
3896
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3897
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
3898
if test "$ac_test_CXXFLAGS" = set; then
 
3899
  CXXFLAGS=$ac_save_CXXFLAGS
 
3900
elif test $ac_cv_prog_cxx_g = yes; then
 
3901
  if test "$GXX" = yes; then
 
3902
    CXXFLAGS="-g -O2"
 
3903
  else
 
3904
    CXXFLAGS="-g"
 
3905
  fi
 
3906
else
 
3907
  if test "$GXX" = yes; then
 
3908
    CXXFLAGS="-O2"
 
3909
  else
 
3910
    CXXFLAGS=
 
3911
  fi
 
3912
fi
 
3913
ac_ext=c
 
3914
ac_cpp='$CPP $CPPFLAGS'
 
3915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3918
 
 
3919
depcc="$CXX"  am_compiler_list=
 
3920
 
 
3921
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3922
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3923
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3925
else
 
3926
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3927
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3928
  # making bogus files that we don't know about and never remove.  For
 
3929
  # instance it was reported that on HP-UX the gcc test will end up
 
3930
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3931
  # in D'.
 
3932
  mkdir conftest.dir
 
3933
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3934
  # using a relative directory.
 
3935
  cp "$am_depcomp" conftest.dir
 
3936
  cd conftest.dir
 
3937
  # We will build objects and dependencies in a subdirectory because
 
3938
  # it helps to detect inapplicable dependency modes.  For instance
 
3939
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3940
  # side effect of compilation, but ICC will put the dependencies in
 
3941
  # the current directory while Tru64 will put them in the object
 
3942
  # directory.
 
3943
  mkdir sub
 
3944
 
 
3945
  am_cv_CXX_dependencies_compiler_type=none
 
3946
  if test "$am_compiler_list" = ""; then
 
3947
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3948
  fi
 
3949
  for depmode in $am_compiler_list; do
 
3950
    # Setup a source with many dependencies, because some compilers
 
3951
    # like to wrap large dependency lists on column 80 (with \), and
 
3952
    # we should not choose a depcomp mode which is confused by this.
 
3953
    #
 
3954
    # We need to recreate these files for each test, as the compiler may
 
3955
    # overwrite some of them when testing with obscure command lines.
 
3956
    # This happens at least with the AIX C compiler.
 
3957
    : > sub/conftest.c
 
3958
    for i in 1 2 3 4 5 6; do
 
3959
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3960
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3961
      # Solaris 8's {/usr,}/bin/sh.
 
3962
      touch sub/conftst$i.h
 
3963
    done
 
3964
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3965
 
 
3966
    case $depmode in
 
3967
    nosideeffect)
 
3968
      # after this tag, mechanisms are not by side-effect, so they'll
 
3969
      # only be used when explicitly requested
 
3970
      if test "x$enable_dependency_tracking" = xyes; then
 
3971
        continue
 
3972
      else
 
3973
        break
 
3974
      fi
 
3975
      ;;
 
3976
    none) break ;;
 
3977
    esac
 
3978
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3979
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3980
    # handle `-M -o', and we need to detect this.
 
3981
    if depmode=$depmode \
 
3982
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3983
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3984
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3985
         >/dev/null 2>conftest.err &&
 
3986
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3987
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3988
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3989
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3990
      # icc doesn't choke on unknown options, it will just issue warnings
 
3991
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3992
      # that says an option was ignored or not supported.
 
3993
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3994
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3995
      # The diagnosis changed in icc 8.0:
 
3996
      #   icc: Command line remark: option '-MP' not supported
 
3997
      if (grep 'ignoring option' conftest.err ||
 
3998
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3999
        am_cv_CXX_dependencies_compiler_type=$depmode
 
4000
        break
 
4001
      fi
 
4002
    fi
 
4003
  done
 
4004
 
 
4005
  cd ..
 
4006
  rm -rf conftest.dir
 
4007
else
 
4008
  am_cv_CXX_dependencies_compiler_type=none
 
4009
fi
 
4010
 
 
4011
fi
 
4012
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
4013
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
4014
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
4015
 
 
4016
 if
 
4017
  test "x$enable_dependency_tracking" != xno \
 
4018
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
4019
  am__fastdepCXX_TRUE=
 
4020
  am__fastdepCXX_FALSE='#'
 
4021
else
 
4022
  am__fastdepCXX_TRUE='#'
 
4023
  am__fastdepCXX_FALSE=
 
4024
fi
 
4025
 
 
4026
 
 
4027
ac_ext=cpp
 
4028
ac_cpp='$CXXCPP $CPPFLAGS'
 
4029
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4030
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4031
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4032
 
 
4033
 
 
4034
cat >conftest.$ac_ext <<_ACEOF
 
4035
/* confdefs.h.  */
 
4036
_ACEOF
 
4037
cat confdefs.h >>conftest.$ac_ext
 
4038
cat >>conftest.$ac_ext <<_ACEOF
 
4039
/* end confdefs.h.  */
 
4040
 
 
4041
#include <iostream>
 
4042
const char hw[] = "Hello, World\n";
 
4043
int
 
4044
main ()
 
4045
{
 
4046
std::cout << hw;
 
4047
  ;
 
4048
  return 0;
 
4049
}
 
4050
_ACEOF
 
4051
rm -f conftest.$ac_objext
 
4052
if { (ac_try="$ac_compile"
 
4053
case "(($ac_try" in
 
4054
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4055
  *) ac_try_echo=$ac_try;;
 
4056
esac
 
4057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4058
  (eval "$ac_compile") 2>conftest.er1
 
4059
  ac_status=$?
 
4060
  grep -v '^ *+' conftest.er1 >conftest.err
 
4061
  rm -f conftest.er1
 
4062
  cat conftest.err >&5
 
4063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4064
  (exit $ac_status); } && {
 
4065
         test -z "$ac_cxx_werror_flag" ||
 
4066
         test ! -s conftest.err
 
4067
       } && test -s conftest.$ac_objext; then
 
4068
  ac_ext=cpp
 
4069
ac_cpp='$CXXCPP $CPPFLAGS'
 
4070
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4071
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4072
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4073
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4074
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
4075
if test -z "$CXXCPP"; then
 
4076
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
4077
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4078
else
 
4079
      # Double quotes because CXXCPP needs to be expanded
 
4080
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
4081
    do
 
4082
      ac_preproc_ok=false
 
4083
for ac_cxx_preproc_warn_flag in '' yes
 
4084
do
 
4085
  # Use a header file that comes with gcc, so configuring glibc
 
4086
  # with a fresh cross-compiler works.
 
4087
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4088
  # <limits.h> exists even on freestanding compilers.
 
4089
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4090
  # not just through cpp. "Syntax error" is here to catch this case.
 
4091
  cat >conftest.$ac_ext <<_ACEOF
 
4092
/* confdefs.h.  */
 
4093
_ACEOF
 
4094
cat confdefs.h >>conftest.$ac_ext
 
4095
cat >>conftest.$ac_ext <<_ACEOF
 
4096
/* end confdefs.h.  */
 
4097
#ifdef __STDC__
 
4098
# include <limits.h>
 
4099
#else
 
4100
# include <assert.h>
 
4101
#endif
 
4102
                     Syntax error
 
4103
_ACEOF
 
4104
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4105
case "(($ac_try" in
 
4106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4107
  *) ac_try_echo=$ac_try;;
 
4108
esac
 
4109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4110
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4111
  ac_status=$?
 
4112
  grep -v '^ *+' conftest.er1 >conftest.err
 
4113
  rm -f conftest.er1
 
4114
  cat conftest.err >&5
 
4115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4116
  (exit $ac_status); } >/dev/null && {
 
4117
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
4118
         test ! -s conftest.err
 
4119
       }; then
 
4120
  :
 
4121
else
 
4122
  echo "$as_me: failed program was:" >&5
 
4123
sed 's/^/| /' conftest.$ac_ext >&5
 
4124
 
 
4125
  # Broken: fails on valid input.
 
4126
continue
 
4127
fi
 
4128
 
 
4129
rm -f conftest.err conftest.$ac_ext
 
4130
 
 
4131
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4132
  # can be detected and how.
 
4133
  cat >conftest.$ac_ext <<_ACEOF
 
4134
/* confdefs.h.  */
 
4135
_ACEOF
 
4136
cat confdefs.h >>conftest.$ac_ext
 
4137
cat >>conftest.$ac_ext <<_ACEOF
 
4138
/* end confdefs.h.  */
 
4139
#include <ac_nonexistent.h>
 
4140
_ACEOF
 
4141
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4142
case "(($ac_try" in
 
4143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4144
  *) ac_try_echo=$ac_try;;
 
4145
esac
 
4146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4147
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4148
  ac_status=$?
 
4149
  grep -v '^ *+' conftest.er1 >conftest.err
 
4150
  rm -f conftest.er1
 
4151
  cat conftest.err >&5
 
4152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4153
  (exit $ac_status); } >/dev/null && {
 
4154
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
4155
         test ! -s conftest.err
 
4156
       }; then
 
4157
  # Broken: success on invalid input.
 
4158
continue
 
4159
else
 
4160
  echo "$as_me: failed program was:" >&5
 
4161
sed 's/^/| /' conftest.$ac_ext >&5
 
4162
 
 
4163
  # Passes both tests.
 
4164
ac_preproc_ok=:
 
4165
break
 
4166
fi
 
4167
 
 
4168
rm -f conftest.err conftest.$ac_ext
 
4169
 
 
4170
done
 
4171
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4172
rm -f conftest.err conftest.$ac_ext
 
4173
if $ac_preproc_ok; then
 
4174
  break
 
4175
fi
 
4176
 
 
4177
    done
 
4178
    ac_cv_prog_CXXCPP=$CXXCPP
 
4179
 
 
4180
fi
 
4181
  CXXCPP=$ac_cv_prog_CXXCPP
 
4182
else
 
4183
  ac_cv_prog_CXXCPP=$CXXCPP
 
4184
fi
 
4185
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4186
echo "${ECHO_T}$CXXCPP" >&6; }
 
4187
ac_preproc_ok=false
 
4188
for ac_cxx_preproc_warn_flag in '' yes
 
4189
do
 
4190
  # Use a header file that comes with gcc, so configuring glibc
 
4191
  # with a fresh cross-compiler works.
 
4192
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4193
  # <limits.h> exists even on freestanding compilers.
 
4194
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4195
  # not just through cpp. "Syntax error" is here to catch this case.
 
4196
  cat >conftest.$ac_ext <<_ACEOF
 
4197
/* confdefs.h.  */
 
4198
_ACEOF
 
4199
cat confdefs.h >>conftest.$ac_ext
 
4200
cat >>conftest.$ac_ext <<_ACEOF
 
4201
/* end confdefs.h.  */
 
4202
#ifdef __STDC__
 
4203
# include <limits.h>
 
4204
#else
 
4205
# include <assert.h>
 
4206
#endif
 
4207
                     Syntax error
 
4208
_ACEOF
 
4209
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4210
case "(($ac_try" in
 
4211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4212
  *) ac_try_echo=$ac_try;;
 
4213
esac
 
4214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4215
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4216
  ac_status=$?
 
4217
  grep -v '^ *+' conftest.er1 >conftest.err
 
4218
  rm -f conftest.er1
 
4219
  cat conftest.err >&5
 
4220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4221
  (exit $ac_status); } >/dev/null && {
 
4222
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
4223
         test ! -s conftest.err
 
4224
       }; then
 
4225
  :
 
4226
else
 
4227
  echo "$as_me: failed program was:" >&5
 
4228
sed 's/^/| /' conftest.$ac_ext >&5
 
4229
 
 
4230
  # Broken: fails on valid input.
 
4231
continue
 
4232
fi
 
4233
 
 
4234
rm -f conftest.err conftest.$ac_ext
 
4235
 
 
4236
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4237
  # can be detected and how.
 
4238
  cat >conftest.$ac_ext <<_ACEOF
 
4239
/* confdefs.h.  */
 
4240
_ACEOF
 
4241
cat confdefs.h >>conftest.$ac_ext
 
4242
cat >>conftest.$ac_ext <<_ACEOF
 
4243
/* end confdefs.h.  */
 
4244
#include <ac_nonexistent.h>
 
4245
_ACEOF
 
4246
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4247
case "(($ac_try" in
 
4248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4249
  *) ac_try_echo=$ac_try;;
 
4250
esac
 
4251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4252
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4253
  ac_status=$?
 
4254
  grep -v '^ *+' conftest.er1 >conftest.err
 
4255
  rm -f conftest.er1
 
4256
  cat conftest.err >&5
 
4257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4258
  (exit $ac_status); } >/dev/null && {
 
4259
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
4260
         test ! -s conftest.err
 
4261
       }; then
 
4262
  # Broken: success on invalid input.
 
4263
continue
 
4264
else
 
4265
  echo "$as_me: failed program was:" >&5
 
4266
sed 's/^/| /' conftest.$ac_ext >&5
 
4267
 
 
4268
  # Passes both tests.
 
4269
ac_preproc_ok=:
 
4270
break
 
4271
fi
 
4272
 
 
4273
rm -f conftest.err conftest.$ac_ext
 
4274
 
 
4275
done
 
4276
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4277
rm -f conftest.err conftest.$ac_ext
 
4278
if $ac_preproc_ok; then
 
4279
  :
 
4280
else
 
4281
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4282
See \`config.log' for more details." >&5
 
4283
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
4284
See \`config.log' for more details." >&2;}
 
4285
   { (exit 1); exit 1; }; }
 
4286
fi
 
4287
 
 
4288
ac_ext=cpp
 
4289
ac_cpp='$CXXCPP $CPPFLAGS'
 
4290
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4291
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4292
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4293
 
 
4294
        cxx_error=no
 
4295
else
 
4296
  echo "$as_me: failed program was:" >&5
 
4297
sed 's/^/| /' conftest.$ac_ext >&5
 
4298
 
 
4299
        { { echo "$as_me:$LINENO: error: no C++ compiler found or it cannot create executables" >&5
 
4300
echo "$as_me: error: no C++ compiler found or it cannot create executables" >&2;}
 
4301
   { (exit 1); exit 1; }; }
 
4302
fi
 
4303
 
 
4304
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4305
ac_ext=c
 
4306
ac_cpp='$CPP $CPPFLAGS'
 
4307
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4308
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4309
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4310
 
 
4311
 
 
4312
 
 
4313
for ac_prog in flex lex
 
4314
do
 
4315
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4316
set dummy $ac_prog; ac_word=$2
 
4317
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4319
if test "${ac_cv_prog_LEX+set}" = set; then
 
4320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4321
else
 
4322
  if test -n "$LEX"; then
 
4323
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
4324
else
 
4325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4326
for as_dir in $PATH
 
4327
do
 
4328
  IFS=$as_save_IFS
 
4329
  test -z "$as_dir" && as_dir=.
 
4330
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4332
    ac_cv_prog_LEX="$ac_prog"
 
4333
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4334
    break 2
 
4335
  fi
 
4336
done
 
4337
done
 
4338
IFS=$as_save_IFS
 
4339
 
 
4340
fi
 
4341
fi
 
4342
LEX=$ac_cv_prog_LEX
 
4343
if test -n "$LEX"; then
 
4344
  { echo "$as_me:$LINENO: result: $LEX" >&5
 
4345
echo "${ECHO_T}$LEX" >&6; }
 
4346
else
 
4347
  { echo "$as_me:$LINENO: result: no" >&5
 
4348
echo "${ECHO_T}no" >&6; }
 
4349
fi
 
4350
 
 
4351
 
 
4352
  test -n "$LEX" && break
 
4353
done
 
4354
test -n "$LEX" || LEX=":"
 
4355
 
 
4356
if test "x$LEX" != "x:"; then
 
4357
  cat >conftest.l <<_ACEOF
 
4358
%%
 
4359
a { ECHO; }
 
4360
b { REJECT; }
 
4361
c { yymore (); }
 
4362
d { yyless (1); }
 
4363
e { yyless (input () != 0); }
 
4364
f { unput (yytext[0]); }
 
4365
. { BEGIN INITIAL; }
 
4366
%%
 
4367
#ifdef YYTEXT_POINTER
 
4368
extern char *yytext;
 
4369
#endif
 
4370
int
 
4371
main (void)
 
4372
{
 
4373
  return ! yylex () + ! yywrap ();
 
4374
}
 
4375
_ACEOF
 
4376
{ (ac_try="$LEX conftest.l"
 
4377
case "(($ac_try" in
 
4378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4379
  *) ac_try_echo=$ac_try;;
 
4380
esac
 
4381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4382
  (eval "$LEX conftest.l") 2>&5
 
4383
  ac_status=$?
 
4384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4385
  (exit $ac_status); }
 
4386
{ echo "$as_me:$LINENO: checking lex output file root" >&5
 
4387
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
 
4388
if test "${ac_cv_prog_lex_root+set}" = set; then
 
4389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4390
else
 
4391
 
 
4392
if test -f lex.yy.c; then
 
4393
  ac_cv_prog_lex_root=lex.yy
 
4394
elif test -f lexyy.c; then
 
4395
  ac_cv_prog_lex_root=lexyy
 
4396
else
 
4397
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
4398
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
4399
   { (exit 1); exit 1; }; }
 
4400
fi
 
4401
fi
 
4402
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
4403
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
 
4404
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
4405
 
 
4406
if test -z "${LEXLIB+set}"; then
 
4407
  { echo "$as_me:$LINENO: checking lex library" >&5
 
4408
echo $ECHO_N "checking lex library... $ECHO_C" >&6; }
 
4409
if test "${ac_cv_lib_lex+set}" = set; then
 
4410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4411
else
 
4412
 
 
4413
    ac_save_LIBS=$LIBS
 
4414
    ac_cv_lib_lex='none needed'
 
4415
    for ac_lib in '' -lfl -ll; do
 
4416
      LIBS="$ac_lib $ac_save_LIBS"
 
4417
      cat >conftest.$ac_ext <<_ACEOF
 
4418
`cat $LEX_OUTPUT_ROOT.c`
 
4419
_ACEOF
 
4420
rm -f conftest.$ac_objext conftest$ac_exeext
 
4421
if { (ac_try="$ac_link"
 
4422
case "(($ac_try" in
 
4423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4424
  *) ac_try_echo=$ac_try;;
 
4425
esac
 
4426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4427
  (eval "$ac_link") 2>conftest.er1
 
4428
  ac_status=$?
 
4429
  grep -v '^ *+' conftest.er1 >conftest.err
 
4430
  rm -f conftest.er1
 
4431
  cat conftest.err >&5
 
4432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4433
  (exit $ac_status); } && {
 
4434
         test -z "$ac_c_werror_flag" ||
 
4435
         test ! -s conftest.err
 
4436
       } && test -s conftest$ac_exeext &&
 
4437
       $as_test_x conftest$ac_exeext; then
 
4438
  ac_cv_lib_lex=$ac_lib
 
4439
else
 
4440
  echo "$as_me: failed program was:" >&5
 
4441
sed 's/^/| /' conftest.$ac_ext >&5
 
4442
 
 
4443
 
 
4444
fi
 
4445
 
 
4446
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4447
      conftest$ac_exeext conftest.$ac_ext
 
4448
      test "$ac_cv_lib_lex" != 'none needed' && break
 
4449
    done
 
4450
    LIBS=$ac_save_LIBS
 
4451
 
 
4452
fi
 
4453
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
 
4454
echo "${ECHO_T}$ac_cv_lib_lex" >&6; }
 
4455
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
 
4456
fi
 
4457
 
 
4458
 
 
4459
{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
4460
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
 
4461
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
4462
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4463
else
 
4464
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
4465
# default is implementation-dependent.  Figure out which it is, since
 
4466
# not all implementations provide the %pointer and %array declarations.
 
4467
ac_cv_prog_lex_yytext_pointer=no
 
4468
ac_save_LIBS=$LIBS
 
4469
LIBS="$LEXLIB $ac_save_LIBS"
 
4470
cat >conftest.$ac_ext <<_ACEOF
 
4471
#define YYTEXT_POINTER 1
 
4472
`cat $LEX_OUTPUT_ROOT.c`
 
4473
_ACEOF
 
4474
rm -f conftest.$ac_objext conftest$ac_exeext
 
4475
if { (ac_try="$ac_link"
 
4476
case "(($ac_try" in
 
4477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4478
  *) ac_try_echo=$ac_try;;
 
4479
esac
 
4480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4481
  (eval "$ac_link") 2>conftest.er1
 
4482
  ac_status=$?
 
4483
  grep -v '^ *+' conftest.er1 >conftest.err
 
4484
  rm -f conftest.er1
 
4485
  cat conftest.err >&5
 
4486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4487
  (exit $ac_status); } && {
 
4488
         test -z "$ac_c_werror_flag" ||
 
4489
         test ! -s conftest.err
 
4490
       } && test -s conftest$ac_exeext &&
 
4491
       $as_test_x conftest$ac_exeext; then
 
4492
  ac_cv_prog_lex_yytext_pointer=yes
 
4493
else
 
4494
  echo "$as_me: failed program was:" >&5
 
4495
sed 's/^/| /' conftest.$ac_ext >&5
 
4496
 
 
4497
 
 
4498
fi
 
4499
 
 
4500
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4501
      conftest$ac_exeext conftest.$ac_ext
 
4502
LIBS=$ac_save_LIBS
 
4503
 
 
4504
fi
 
4505
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
4506
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
 
4507
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
4508
 
 
4509
cat >>confdefs.h <<\_ACEOF
 
4510
#define YYTEXT_POINTER 1
 
4511
_ACEOF
 
4512
 
 
4513
fi
 
4514
rm -f conftest.l $LEX_OUTPUT_ROOT.c
 
4515
 
 
4516
fi
 
4517
if test "$LEX" = :; then
 
4518
  LEX=${am_missing_run}flex
 
4519
fi
 
4520
for ac_prog in 'bison -y' byacc
 
4521
do
 
4522
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4523
set dummy $ac_prog; ac_word=$2
 
4524
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4525
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4526
if test "${ac_cv_prog_YACC+set}" = set; then
 
4527
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4528
else
 
4529
  if test -n "$YACC"; then
 
4530
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
 
4531
else
 
4532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4533
for as_dir in $PATH
 
4534
do
 
4535
  IFS=$as_save_IFS
 
4536
  test -z "$as_dir" && as_dir=.
 
4537
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4538
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4539
    ac_cv_prog_YACC="$ac_prog"
 
4540
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4541
    break 2
 
4542
  fi
 
4543
done
 
4544
done
 
4545
IFS=$as_save_IFS
 
4546
 
 
4547
fi
 
4548
fi
 
4549
YACC=$ac_cv_prog_YACC
 
4550
if test -n "$YACC"; then
 
4551
  { echo "$as_me:$LINENO: result: $YACC" >&5
 
4552
echo "${ECHO_T}$YACC" >&6; }
 
4553
else
 
4554
  { echo "$as_me:$LINENO: result: no" >&5
 
4555
echo "${ECHO_T}no" >&6; }
 
4556
fi
 
4557
 
 
4558
 
 
4559
  test -n "$YACC" && break
 
4560
done
 
4561
test -n "$YACC" || YACC="yacc"
 
4562
 
 
4563
 
 
4564
ac_ext=c
 
4565
ac_cpp='$CPP $CPPFLAGS'
 
4566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4569
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4570
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4571
# On Suns, sometimes $CPP names a directory.
 
4572
if test -n "$CPP" && test -d "$CPP"; then
 
4573
  CPP=
 
4574
fi
 
4575
if test -z "$CPP"; then
 
4576
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4578
else
 
4579
      # Double quotes because CPP needs to be expanded
 
4580
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4581
    do
 
4582
      ac_preproc_ok=false
 
4583
for ac_c_preproc_warn_flag in '' yes
 
4584
do
 
4585
  # Use a header file that comes with gcc, so configuring glibc
 
4586
  # with a fresh cross-compiler works.
 
4587
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4588
  # <limits.h> exists even on freestanding compilers.
 
4589
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4590
  # not just through cpp. "Syntax error" is here to catch this case.
 
4591
  cat >conftest.$ac_ext <<_ACEOF
 
4592
/* confdefs.h.  */
 
4593
_ACEOF
 
4594
cat confdefs.h >>conftest.$ac_ext
 
4595
cat >>conftest.$ac_ext <<_ACEOF
 
4596
/* end confdefs.h.  */
 
4597
#ifdef __STDC__
 
4598
# include <limits.h>
 
4599
#else
 
4600
# include <assert.h>
 
4601
#endif
 
4602
                     Syntax error
 
4603
_ACEOF
 
4604
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4605
case "(($ac_try" in
 
4606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4607
  *) ac_try_echo=$ac_try;;
 
4608
esac
 
4609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4610
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4611
  ac_status=$?
 
4612
  grep -v '^ *+' conftest.er1 >conftest.err
 
4613
  rm -f conftest.er1
 
4614
  cat conftest.err >&5
 
4615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4616
  (exit $ac_status); } >/dev/null && {
 
4617
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4618
         test ! -s conftest.err
 
4619
       }; then
 
4620
  :
 
4621
else
 
4622
  echo "$as_me: failed program was:" >&5
 
4623
sed 's/^/| /' conftest.$ac_ext >&5
 
4624
 
 
4625
  # Broken: fails on valid input.
 
4626
continue
 
4627
fi
 
4628
 
 
4629
rm -f conftest.err conftest.$ac_ext
 
4630
 
 
4631
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4632
  # can be detected and how.
 
4633
  cat >conftest.$ac_ext <<_ACEOF
 
4634
/* confdefs.h.  */
 
4635
_ACEOF
 
4636
cat confdefs.h >>conftest.$ac_ext
 
4637
cat >>conftest.$ac_ext <<_ACEOF
 
4638
/* end confdefs.h.  */
 
4639
#include <ac_nonexistent.h>
 
4640
_ACEOF
 
4641
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4642
case "(($ac_try" in
 
4643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4644
  *) ac_try_echo=$ac_try;;
 
4645
esac
 
4646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4647
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4648
  ac_status=$?
 
4649
  grep -v '^ *+' conftest.er1 >conftest.err
 
4650
  rm -f conftest.er1
 
4651
  cat conftest.err >&5
 
4652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4653
  (exit $ac_status); } >/dev/null && {
 
4654
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4655
         test ! -s conftest.err
 
4656
       }; then
 
4657
  # Broken: success on invalid input.
 
4658
continue
 
4659
else
 
4660
  echo "$as_me: failed program was:" >&5
 
4661
sed 's/^/| /' conftest.$ac_ext >&5
 
4662
 
 
4663
  # Passes both tests.
 
4664
ac_preproc_ok=:
 
4665
break
 
4666
fi
 
4667
 
 
4668
rm -f conftest.err conftest.$ac_ext
 
4669
 
 
4670
done
 
4671
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4672
rm -f conftest.err conftest.$ac_ext
 
4673
if $ac_preproc_ok; then
 
4674
  break
 
4675
fi
 
4676
 
 
4677
    done
 
4678
    ac_cv_prog_CPP=$CPP
 
4679
 
 
4680
fi
 
4681
  CPP=$ac_cv_prog_CPP
 
4682
else
 
4683
  ac_cv_prog_CPP=$CPP
 
4684
fi
 
4685
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4686
echo "${ECHO_T}$CPP" >&6; }
 
4687
ac_preproc_ok=false
 
4688
for ac_c_preproc_warn_flag in '' yes
 
4689
do
 
4690
  # Use a header file that comes with gcc, so configuring glibc
 
4691
  # with a fresh cross-compiler works.
 
4692
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4693
  # <limits.h> exists even on freestanding compilers.
 
4694
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4695
  # not just through cpp. "Syntax error" is here to catch this case.
 
4696
  cat >conftest.$ac_ext <<_ACEOF
 
4697
/* confdefs.h.  */
 
4698
_ACEOF
 
4699
cat confdefs.h >>conftest.$ac_ext
 
4700
cat >>conftest.$ac_ext <<_ACEOF
 
4701
/* end confdefs.h.  */
 
4702
#ifdef __STDC__
 
4703
# include <limits.h>
 
4704
#else
 
4705
# include <assert.h>
 
4706
#endif
 
4707
                     Syntax error
 
4708
_ACEOF
 
4709
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4710
case "(($ac_try" in
 
4711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4712
  *) ac_try_echo=$ac_try;;
 
4713
esac
 
4714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4715
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4716
  ac_status=$?
 
4717
  grep -v '^ *+' conftest.er1 >conftest.err
 
4718
  rm -f conftest.er1
 
4719
  cat conftest.err >&5
 
4720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4721
  (exit $ac_status); } >/dev/null && {
 
4722
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4723
         test ! -s conftest.err
 
4724
       }; then
 
4725
  :
 
4726
else
 
4727
  echo "$as_me: failed program was:" >&5
 
4728
sed 's/^/| /' conftest.$ac_ext >&5
 
4729
 
 
4730
  # Broken: fails on valid input.
 
4731
continue
 
4732
fi
 
4733
 
 
4734
rm -f conftest.err conftest.$ac_ext
 
4735
 
 
4736
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4737
  # can be detected and how.
 
4738
  cat >conftest.$ac_ext <<_ACEOF
 
4739
/* confdefs.h.  */
 
4740
_ACEOF
 
4741
cat confdefs.h >>conftest.$ac_ext
 
4742
cat >>conftest.$ac_ext <<_ACEOF
 
4743
/* end confdefs.h.  */
 
4744
#include <ac_nonexistent.h>
 
4745
_ACEOF
 
4746
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4747
case "(($ac_try" in
 
4748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4749
  *) ac_try_echo=$ac_try;;
 
4750
esac
 
4751
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4752
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4753
  ac_status=$?
 
4754
  grep -v '^ *+' conftest.er1 >conftest.err
 
4755
  rm -f conftest.er1
 
4756
  cat conftest.err >&5
 
4757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4758
  (exit $ac_status); } >/dev/null && {
 
4759
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4760
         test ! -s conftest.err
 
4761
       }; then
 
4762
  # Broken: success on invalid input.
 
4763
continue
 
4764
else
 
4765
  echo "$as_me: failed program was:" >&5
 
4766
sed 's/^/| /' conftest.$ac_ext >&5
 
4767
 
 
4768
  # Passes both tests.
 
4769
ac_preproc_ok=:
 
4770
break
 
4771
fi
 
4772
 
 
4773
rm -f conftest.err conftest.$ac_ext
 
4774
 
 
4775
done
 
4776
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4777
rm -f conftest.err conftest.$ac_ext
 
4778
if $ac_preproc_ok; then
 
4779
  :
 
4780
else
 
4781
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4782
See \`config.log' for more details." >&5
 
4783
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4784
See \`config.log' for more details." >&2;}
 
4785
   { (exit 1); exit 1; }; }
 
4786
fi
 
4787
 
 
4788
ac_ext=c
 
4789
ac_cpp='$CPP $CPPFLAGS'
 
4790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4793
 
 
4794
 
 
4795
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4796
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4797
if test "${ac_cv_path_GREP+set}" = set; then
 
4798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4799
else
 
4800
  # Extract the first word of "grep ggrep" to use in msg output
 
4801
if test -z "$GREP"; then
 
4802
set dummy grep ggrep; ac_prog_name=$2
 
4803
if test "${ac_cv_path_GREP+set}" = set; then
 
4804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4805
else
 
4806
  ac_path_GREP_found=false
 
4807
# Loop through the user's path and test for each of PROGNAME-LIST
 
4808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4809
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4810
do
 
4811
  IFS=$as_save_IFS
 
4812
  test -z "$as_dir" && as_dir=.
 
4813
  for ac_prog in grep ggrep; do
 
4814
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4815
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4816
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4817
    # Check for GNU ac_path_GREP and select it if it is found.
 
4818
  # Check for GNU $ac_path_GREP
 
4819
case `"$ac_path_GREP" --version 2>&1` in
 
4820
*GNU*)
 
4821
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4822
*)
 
4823
  ac_count=0
 
4824
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4825
  while :
 
4826
  do
 
4827
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4828
    mv "conftest.tmp" "conftest.in"
 
4829
    cp "conftest.in" "conftest.nl"
 
4830
    echo 'GREP' >> "conftest.nl"
 
4831
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4832
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4833
    ac_count=`expr $ac_count + 1`
 
4834
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4835
      # Best one so far, save it but keep looking for a better one
 
4836
      ac_cv_path_GREP="$ac_path_GREP"
 
4837
      ac_path_GREP_max=$ac_count
 
4838
    fi
 
4839
    # 10*(2^10) chars as input seems more than enough
 
4840
    test $ac_count -gt 10 && break
 
4841
  done
 
4842
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4843
esac
 
4844
 
 
4845
 
 
4846
    $ac_path_GREP_found && break 3
 
4847
  done
 
4848
done
 
4849
 
 
4850
done
 
4851
IFS=$as_save_IFS
 
4852
 
 
4853
 
 
4854
fi
 
4855
 
 
4856
GREP="$ac_cv_path_GREP"
 
4857
if test -z "$GREP"; then
 
4858
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4859
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4860
   { (exit 1); exit 1; }; }
 
4861
fi
 
4862
 
 
4863
else
 
4864
  ac_cv_path_GREP=$GREP
 
4865
fi
 
4866
 
 
4867
 
 
4868
fi
 
4869
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4870
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4871
 GREP="$ac_cv_path_GREP"
 
4872
 
 
4873
 
 
4874
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4875
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4876
if test "${ac_cv_path_EGREP+set}" = set; then
 
4877
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4878
else
 
4879
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4880
   then ac_cv_path_EGREP="$GREP -E"
 
4881
   else
 
4882
     # Extract the first word of "egrep" to use in msg output
 
4883
if test -z "$EGREP"; then
 
4884
set dummy egrep; ac_prog_name=$2
 
4885
if test "${ac_cv_path_EGREP+set}" = set; then
 
4886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4887
else
 
4888
  ac_path_EGREP_found=false
 
4889
# Loop through the user's path and test for each of PROGNAME-LIST
 
4890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4891
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4892
do
 
4893
  IFS=$as_save_IFS
 
4894
  test -z "$as_dir" && as_dir=.
 
4895
  for ac_prog in egrep; do
 
4896
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4897
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4898
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4899
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4900
  # Check for GNU $ac_path_EGREP
 
4901
case `"$ac_path_EGREP" --version 2>&1` in
 
4902
*GNU*)
 
4903
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4904
*)
 
4905
  ac_count=0
 
4906
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4907
  while :
 
4908
  do
 
4909
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4910
    mv "conftest.tmp" "conftest.in"
 
4911
    cp "conftest.in" "conftest.nl"
 
4912
    echo 'EGREP' >> "conftest.nl"
 
4913
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4914
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4915
    ac_count=`expr $ac_count + 1`
 
4916
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4917
      # Best one so far, save it but keep looking for a better one
 
4918
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4919
      ac_path_EGREP_max=$ac_count
 
4920
    fi
 
4921
    # 10*(2^10) chars as input seems more than enough
 
4922
    test $ac_count -gt 10 && break
 
4923
  done
 
4924
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4925
esac
 
4926
 
 
4927
 
 
4928
    $ac_path_EGREP_found && break 3
 
4929
  done
 
4930
done
 
4931
 
 
4932
done
 
4933
IFS=$as_save_IFS
 
4934
 
 
4935
 
 
4936
fi
 
4937
 
 
4938
EGREP="$ac_cv_path_EGREP"
 
4939
if test -z "$EGREP"; then
 
4940
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4941
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4942
   { (exit 1); exit 1; }; }
 
4943
fi
 
4944
 
 
4945
else
 
4946
  ac_cv_path_EGREP=$EGREP
 
4947
fi
 
4948
 
 
4949
 
 
4950
   fi
 
4951
fi
 
4952
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4953
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4954
 EGREP="$ac_cv_path_EGREP"
 
4955
 
 
4956
 
 
4957
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4958
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4959
if test "${ac_cv_header_stdc+set}" = set; then
 
4960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4961
else
 
4962
  cat >conftest.$ac_ext <<_ACEOF
 
4963
/* confdefs.h.  */
 
4964
_ACEOF
 
4965
cat confdefs.h >>conftest.$ac_ext
 
4966
cat >>conftest.$ac_ext <<_ACEOF
 
4967
/* end confdefs.h.  */
 
4968
#include <stdlib.h>
 
4969
#include <stdarg.h>
 
4970
#include <string.h>
 
4971
#include <float.h>
 
4972
 
 
4973
int
 
4974
main ()
 
4975
{
 
4976
 
 
4977
  ;
 
4978
  return 0;
 
4979
}
 
4980
_ACEOF
 
4981
rm -f conftest.$ac_objext
 
4982
if { (ac_try="$ac_compile"
 
4983
case "(($ac_try" in
 
4984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4985
  *) ac_try_echo=$ac_try;;
 
4986
esac
 
4987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4988
  (eval "$ac_compile") 2>conftest.er1
 
4989
  ac_status=$?
 
4990
  grep -v '^ *+' conftest.er1 >conftest.err
 
4991
  rm -f conftest.er1
 
4992
  cat conftest.err >&5
 
4993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4994
  (exit $ac_status); } && {
 
4995
         test -z "$ac_c_werror_flag" ||
 
4996
         test ! -s conftest.err
 
4997
       } && test -s conftest.$ac_objext; then
 
4998
  ac_cv_header_stdc=yes
 
4999
else
 
5000
  echo "$as_me: failed program was:" >&5
 
5001
sed 's/^/| /' conftest.$ac_ext >&5
 
5002
 
 
5003
        ac_cv_header_stdc=no
 
5004
fi
 
5005
 
 
5006
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5007
 
 
5008
if test $ac_cv_header_stdc = yes; then
 
5009
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5010
  cat >conftest.$ac_ext <<_ACEOF
 
5011
/* confdefs.h.  */
 
5012
_ACEOF
 
5013
cat confdefs.h >>conftest.$ac_ext
 
5014
cat >>conftest.$ac_ext <<_ACEOF
 
5015
/* end confdefs.h.  */
 
5016
#include <string.h>
 
5017
 
 
5018
_ACEOF
 
5019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5020
  $EGREP "memchr" >/dev/null 2>&1; then
 
5021
  :
 
5022
else
 
5023
  ac_cv_header_stdc=no
 
5024
fi
 
5025
rm -f conftest*
 
5026
 
 
5027
fi
 
5028
 
 
5029
if test $ac_cv_header_stdc = yes; then
 
5030
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5031
  cat >conftest.$ac_ext <<_ACEOF
 
5032
/* confdefs.h.  */
 
5033
_ACEOF
 
5034
cat confdefs.h >>conftest.$ac_ext
 
5035
cat >>conftest.$ac_ext <<_ACEOF
 
5036
/* end confdefs.h.  */
 
5037
#include <stdlib.h>
 
5038
 
 
5039
_ACEOF
 
5040
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5041
  $EGREP "free" >/dev/null 2>&1; then
 
5042
  :
 
5043
else
 
5044
  ac_cv_header_stdc=no
 
5045
fi
 
5046
rm -f conftest*
 
5047
 
 
5048
fi
 
5049
 
 
5050
if test $ac_cv_header_stdc = yes; then
 
5051
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5052
  if test "$cross_compiling" = yes; then
 
5053
  :
 
5054
else
 
5055
  cat >conftest.$ac_ext <<_ACEOF
 
5056
/* confdefs.h.  */
 
5057
_ACEOF
 
5058
cat confdefs.h >>conftest.$ac_ext
 
5059
cat >>conftest.$ac_ext <<_ACEOF
 
5060
/* end confdefs.h.  */
 
5061
#include <ctype.h>
 
5062
#include <stdlib.h>
 
5063
#if ((' ' & 0x0FF) == 0x020)
 
5064
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5065
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5066
#else
 
5067
# define ISLOWER(c) \
 
5068
                   (('a' <= (c) && (c) <= 'i') \
 
5069
                     || ('j' <= (c) && (c) <= 'r') \
 
5070
                     || ('s' <= (c) && (c) <= 'z'))
 
5071
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5072
#endif
 
5073
 
 
5074
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5075
int
 
5076
main ()
 
5077
{
 
5078
  int i;
 
5079
  for (i = 0; i < 256; i++)
 
5080
    if (XOR (islower (i), ISLOWER (i))
 
5081
        || toupper (i) != TOUPPER (i))
 
5082
      return 2;
 
5083
  return 0;
 
5084
}
 
5085
_ACEOF
 
5086
rm -f conftest$ac_exeext
 
5087
if { (ac_try="$ac_link"
 
5088
case "(($ac_try" in
 
5089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5090
  *) ac_try_echo=$ac_try;;
 
5091
esac
 
5092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5093
  (eval "$ac_link") 2>&5
 
5094
  ac_status=$?
 
5095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5096
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5097
  { (case "(($ac_try" in
 
5098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5099
  *) ac_try_echo=$ac_try;;
 
5100
esac
 
5101
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5102
  (eval "$ac_try") 2>&5
 
5103
  ac_status=$?
 
5104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5105
  (exit $ac_status); }; }; then
 
5106
  :
 
5107
else
 
5108
  echo "$as_me: program exited with status $ac_status" >&5
 
5109
echo "$as_me: failed program was:" >&5
 
5110
sed 's/^/| /' conftest.$ac_ext >&5
 
5111
 
 
5112
( exit $ac_status )
 
5113
ac_cv_header_stdc=no
 
5114
fi
 
5115
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5116
fi
 
5117
 
 
5118
 
 
5119
fi
 
5120
fi
 
5121
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5122
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5123
if test $ac_cv_header_stdc = yes; then
 
5124
 
 
5125
cat >>confdefs.h <<\_ACEOF
 
5126
#define STDC_HEADERS 1
 
5127
_ACEOF
 
5128
 
 
5129
fi
 
5130
 
 
5131
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5132
 
 
5133
 
 
5134
 
 
5135
 
 
5136
 
 
5137
 
 
5138
 
 
5139
 
 
5140
 
 
5141
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5142
                  inttypes.h stdint.h unistd.h
 
5143
do
 
5144
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5145
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5146
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5147
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5149
else
 
5150
  cat >conftest.$ac_ext <<_ACEOF
 
5151
/* confdefs.h.  */
 
5152
_ACEOF
 
5153
cat confdefs.h >>conftest.$ac_ext
 
5154
cat >>conftest.$ac_ext <<_ACEOF
 
5155
/* end confdefs.h.  */
 
5156
$ac_includes_default
 
5157
 
 
5158
#include <$ac_header>
 
5159
_ACEOF
 
5160
rm -f conftest.$ac_objext
 
5161
if { (ac_try="$ac_compile"
 
5162
case "(($ac_try" in
 
5163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5164
  *) ac_try_echo=$ac_try;;
 
5165
esac
 
5166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5167
  (eval "$ac_compile") 2>conftest.er1
 
5168
  ac_status=$?
 
5169
  grep -v '^ *+' conftest.er1 >conftest.err
 
5170
  rm -f conftest.er1
 
5171
  cat conftest.err >&5
 
5172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5173
  (exit $ac_status); } && {
 
5174
         test -z "$ac_c_werror_flag" ||
 
5175
         test ! -s conftest.err
 
5176
       } && test -s conftest.$ac_objext; then
 
5177
  eval "$as_ac_Header=yes"
 
5178
else
 
5179
  echo "$as_me: failed program was:" >&5
 
5180
sed 's/^/| /' conftest.$ac_ext >&5
 
5181
 
 
5182
        eval "$as_ac_Header=no"
 
5183
fi
 
5184
 
 
5185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5186
fi
 
5187
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5188
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5189
echo "${ECHO_T}$ac_res" >&6; }
 
5190
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5191
  cat >>confdefs.h <<_ACEOF
 
5192
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5193
_ACEOF
 
5194
 
 
5195
fi
 
5196
 
 
5197
done
 
5198
 
 
5199
 
 
5200
if test "${ac_cv_header_sys_times_h+set}" = set; then
 
5201
  { echo "$as_me:$LINENO: checking for sys/times.h" >&5
 
5202
echo $ECHO_N "checking for sys/times.h... $ECHO_C" >&6; }
 
5203
if test "${ac_cv_header_sys_times_h+set}" = set; then
 
5204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5205
fi
 
5206
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_times_h" >&5
 
5207
echo "${ECHO_T}$ac_cv_header_sys_times_h" >&6; }
 
5208
else
 
5209
  # Is the header compilable?
 
5210
{ echo "$as_me:$LINENO: checking sys/times.h usability" >&5
 
5211
echo $ECHO_N "checking sys/times.h usability... $ECHO_C" >&6; }
 
5212
cat >conftest.$ac_ext <<_ACEOF
 
5213
/* confdefs.h.  */
 
5214
_ACEOF
 
5215
cat confdefs.h >>conftest.$ac_ext
 
5216
cat >>conftest.$ac_ext <<_ACEOF
 
5217
/* end confdefs.h.  */
 
5218
$ac_includes_default
 
5219
#include <sys/times.h>
 
5220
_ACEOF
 
5221
rm -f conftest.$ac_objext
 
5222
if { (ac_try="$ac_compile"
 
5223
case "(($ac_try" in
 
5224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5225
  *) ac_try_echo=$ac_try;;
 
5226
esac
 
5227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5228
  (eval "$ac_compile") 2>conftest.er1
 
5229
  ac_status=$?
 
5230
  grep -v '^ *+' conftest.er1 >conftest.err
 
5231
  rm -f conftest.er1
 
5232
  cat conftest.err >&5
 
5233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5234
  (exit $ac_status); } && {
 
5235
         test -z "$ac_c_werror_flag" ||
 
5236
         test ! -s conftest.err
 
5237
       } && test -s conftest.$ac_objext; then
 
5238
  ac_header_compiler=yes
 
5239
else
 
5240
  echo "$as_me: failed program was:" >&5
 
5241
sed 's/^/| /' conftest.$ac_ext >&5
 
5242
 
 
5243
        ac_header_compiler=no
 
5244
fi
 
5245
 
 
5246
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5247
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5248
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5249
 
 
5250
# Is the header present?
 
5251
{ echo "$as_me:$LINENO: checking sys/times.h presence" >&5
 
5252
echo $ECHO_N "checking sys/times.h presence... $ECHO_C" >&6; }
 
5253
cat >conftest.$ac_ext <<_ACEOF
 
5254
/* confdefs.h.  */
 
5255
_ACEOF
 
5256
cat confdefs.h >>conftest.$ac_ext
 
5257
cat >>conftest.$ac_ext <<_ACEOF
 
5258
/* end confdefs.h.  */
 
5259
#include <sys/times.h>
 
5260
_ACEOF
 
5261
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5262
case "(($ac_try" in
 
5263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5264
  *) ac_try_echo=$ac_try;;
 
5265
esac
 
5266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5267
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5268
  ac_status=$?
 
5269
  grep -v '^ *+' conftest.er1 >conftest.err
 
5270
  rm -f conftest.er1
 
5271
  cat conftest.err >&5
 
5272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5273
  (exit $ac_status); } >/dev/null && {
 
5274
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5275
         test ! -s conftest.err
 
5276
       }; then
 
5277
  ac_header_preproc=yes
 
5278
else
 
5279
  echo "$as_me: failed program was:" >&5
 
5280
sed 's/^/| /' conftest.$ac_ext >&5
 
5281
 
 
5282
  ac_header_preproc=no
 
5283
fi
 
5284
 
 
5285
rm -f conftest.err conftest.$ac_ext
 
5286
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5287
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5288
 
 
5289
# So?  What about this header?
 
5290
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5291
  yes:no: )
 
5292
    { echo "$as_me:$LINENO: WARNING: sys/times.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
5293
echo "$as_me: WARNING: sys/times.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5294
    { echo "$as_me:$LINENO: WARNING: sys/times.h: proceeding with the compiler's result" >&5
 
5295
echo "$as_me: WARNING: sys/times.h: proceeding with the compiler's result" >&2;}
 
5296
    ac_header_preproc=yes
 
5297
    ;;
 
5298
  no:yes:* )
 
5299
    { echo "$as_me:$LINENO: WARNING: sys/times.h: present but cannot be compiled" >&5
 
5300
echo "$as_me: WARNING: sys/times.h: present but cannot be compiled" >&2;}
 
5301
    { echo "$as_me:$LINENO: WARNING: sys/times.h:     check for missing prerequisite headers?" >&5
 
5302
echo "$as_me: WARNING: sys/times.h:     check for missing prerequisite headers?" >&2;}
 
5303
    { echo "$as_me:$LINENO: WARNING: sys/times.h: see the Autoconf documentation" >&5
 
5304
echo "$as_me: WARNING: sys/times.h: see the Autoconf documentation" >&2;}
 
5305
    { echo "$as_me:$LINENO: WARNING: sys/times.h:     section \"Present But Cannot Be Compiled\"" >&5
 
5306
echo "$as_me: WARNING: sys/times.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5307
    { echo "$as_me:$LINENO: WARNING: sys/times.h: proceeding with the preprocessor's result" >&5
 
5308
echo "$as_me: WARNING: sys/times.h: proceeding with the preprocessor's result" >&2;}
 
5309
    { echo "$as_me:$LINENO: WARNING: sys/times.h: in the future, the compiler will take precedence" >&5
 
5310
echo "$as_me: WARNING: sys/times.h: in the future, the compiler will take precedence" >&2;}
 
5311
    ( cat <<\_ASBOX
 
5312
## ---------------------------------- ##
 
5313
## Report this to csardi@rmki.kfki.hu ##
 
5314
## ---------------------------------- ##
 
5315
_ASBOX
 
5316
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5317
    ;;
 
5318
esac
 
5319
{ echo "$as_me:$LINENO: checking for sys/times.h" >&5
 
5320
echo $ECHO_N "checking for sys/times.h... $ECHO_C" >&6; }
 
5321
if test "${ac_cv_header_sys_times_h+set}" = set; then
 
5322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5323
else
 
5324
  ac_cv_header_sys_times_h=$ac_header_preproc
 
5325
fi
 
5326
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_times_h" >&5
 
5327
echo "${ECHO_T}$ac_cv_header_sys_times_h" >&6; }
 
5328
 
 
5329
fi
 
5330
if test $ac_cv_header_sys_times_h = yes; then
 
5331
 
 
5332
cat >>confdefs.h <<\_ACEOF
 
5333
#define HAVE_TIMES_H 1
 
5334
_ACEOF
 
5335
 
 
5336
fi
 
5337
 
 
5338
 
 
5339
 
 
5340
# Make sure we can run config.sub.
 
5341
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
5342
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
5343
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
5344
   { (exit 1); exit 1; }; }
 
5345
 
 
5346
{ echo "$as_me:$LINENO: checking build system type" >&5
 
5347
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
5348
if test "${ac_cv_build+set}" = set; then
 
5349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5350
else
 
5351
  ac_build_alias=$build_alias
 
5352
test "x$ac_build_alias" = x &&
 
5353
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
5354
test "x$ac_build_alias" = x &&
 
5355
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
5356
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
5357
   { (exit 1); exit 1; }; }
 
5358
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
5359
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
5360
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
5361
   { (exit 1); exit 1; }; }
 
5362
 
 
5363
fi
 
5364
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
5365
echo "${ECHO_T}$ac_cv_build" >&6; }
 
5366
case $ac_cv_build in
 
5367
*-*-*) ;;
 
5368
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
5369
echo "$as_me: error: invalid value of canonical build" >&2;}
 
5370
   { (exit 1); exit 1; }; };;
 
5371
esac
 
5372
build=$ac_cv_build
 
5373
ac_save_IFS=$IFS; IFS='-'
 
5374
set x $ac_cv_build
 
5375
shift
 
5376
build_cpu=$1
 
5377
build_vendor=$2
 
5378
shift; shift
 
5379
# Remember, the first character of IFS is used to create $*,
 
5380
# except with old shells:
 
5381
build_os=$*
 
5382
IFS=$ac_save_IFS
 
5383
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
5384
 
 
5385
 
 
5386
{ echo "$as_me:$LINENO: checking host system type" >&5
 
5387
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
5388
if test "${ac_cv_host+set}" = set; then
 
5389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5390
else
 
5391
  if test "x$host_alias" = x; then
 
5392
  ac_cv_host=$ac_cv_build
 
5393
else
 
5394
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
5395
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
5396
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
5397
   { (exit 1); exit 1; }; }
 
5398
fi
 
5399
 
 
5400
fi
 
5401
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
5402
echo "${ECHO_T}$ac_cv_host" >&6; }
 
5403
case $ac_cv_host in
 
5404
*-*-*) ;;
 
5405
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
5406
echo "$as_me: error: invalid value of canonical host" >&2;}
 
5407
   { (exit 1); exit 1; }; };;
 
5408
esac
 
5409
host=$ac_cv_host
 
5410
ac_save_IFS=$IFS; IFS='-'
 
5411
set x $ac_cv_host
 
5412
shift
 
5413
host_cpu=$1
 
5414
host_vendor=$2
 
5415
shift; shift
 
5416
# Remember, the first character of IFS is used to create $*,
 
5417
# except with old shells:
 
5418
host_os=$*
 
5419
IFS=$ac_save_IFS
 
5420
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
5421
 
 
5422
 
 
5423
enable_win32_dll=yes
 
5424
 
 
5425
case $host in
 
5426
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
5427
  if test -n "$ac_tool_prefix"; then
 
5428
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
5429
set dummy ${ac_tool_prefix}as; ac_word=$2
 
5430
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5431
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5432
if test "${ac_cv_prog_AS+set}" = set; then
 
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
else
 
5435
  if test -n "$AS"; then
 
5436
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
5437
else
 
5438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5439
for as_dir in $PATH
 
5440
do
 
5441
  IFS=$as_save_IFS
 
5442
  test -z "$as_dir" && as_dir=.
 
5443
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5444
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5445
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
5446
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5447
    break 2
 
5448
  fi
 
5449
done
 
5450
done
 
5451
IFS=$as_save_IFS
 
5452
 
 
5453
fi
 
5454
fi
 
5455
AS=$ac_cv_prog_AS
 
5456
if test -n "$AS"; then
 
5457
  { echo "$as_me:$LINENO: result: $AS" >&5
 
5458
echo "${ECHO_T}$AS" >&6; }
 
5459
else
 
5460
  { echo "$as_me:$LINENO: result: no" >&5
 
5461
echo "${ECHO_T}no" >&6; }
 
5462
fi
 
5463
 
 
5464
 
 
5465
fi
 
5466
if test -z "$ac_cv_prog_AS"; then
 
5467
  ac_ct_AS=$AS
 
5468
  # Extract the first word of "as", so it can be a program name with args.
 
5469
set dummy as; ac_word=$2
 
5470
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5471
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5472
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
5473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5474
else
 
5475
  if test -n "$ac_ct_AS"; then
 
5476
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
5477
else
 
5478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5479
for as_dir in $PATH
 
5480
do
 
5481
  IFS=$as_save_IFS
 
5482
  test -z "$as_dir" && as_dir=.
 
5483
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5484
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5485
    ac_cv_prog_ac_ct_AS="as"
 
5486
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5487
    break 2
 
5488
  fi
 
5489
done
 
5490
done
 
5491
IFS=$as_save_IFS
 
5492
 
 
5493
fi
 
5494
fi
 
5495
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
5496
if test -n "$ac_ct_AS"; then
 
5497
  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
5498
echo "${ECHO_T}$ac_ct_AS" >&6; }
 
5499
else
 
5500
  { echo "$as_me:$LINENO: result: no" >&5
 
5501
echo "${ECHO_T}no" >&6; }
 
5502
fi
 
5503
 
 
5504
  if test "x$ac_ct_AS" = x; then
 
5505
    AS="false"
 
5506
  else
 
5507
    case $cross_compiling:$ac_tool_warned in
 
5508
yes:)
 
5509
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5510
whose name does not start with the host triplet.  If you think this
 
5511
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5512
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5513
whose name does not start with the host triplet.  If you think this
 
5514
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5515
ac_tool_warned=yes ;;
 
5516
esac
 
5517
    AS=$ac_ct_AS
 
5518
  fi
 
5519
else
 
5520
  AS="$ac_cv_prog_AS"
 
5521
fi
 
5522
 
 
5523
  if test -n "$ac_tool_prefix"; then
 
5524
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5525
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5526
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5528
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
5529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5530
else
 
5531
  if test -n "$DLLTOOL"; then
 
5532
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5533
else
 
5534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5535
for as_dir in $PATH
 
5536
do
 
5537
  IFS=$as_save_IFS
 
5538
  test -z "$as_dir" && as_dir=.
 
5539
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5541
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5542
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5543
    break 2
 
5544
  fi
 
5545
done
 
5546
done
 
5547
IFS=$as_save_IFS
 
5548
 
 
5549
fi
 
5550
fi
 
5551
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5552
if test -n "$DLLTOOL"; then
 
5553
  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
5554
echo "${ECHO_T}$DLLTOOL" >&6; }
 
5555
else
 
5556
  { echo "$as_me:$LINENO: result: no" >&5
 
5557
echo "${ECHO_T}no" >&6; }
 
5558
fi
 
5559
 
 
5560
 
 
5561
fi
 
5562
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5563
  ac_ct_DLLTOOL=$DLLTOOL
 
5564
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5565
set dummy dlltool; ac_word=$2
 
5566
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5568
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
5569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5570
else
 
5571
  if test -n "$ac_ct_DLLTOOL"; then
 
5572
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5573
else
 
5574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5575
for as_dir in $PATH
 
5576
do
 
5577
  IFS=$as_save_IFS
 
5578
  test -z "$as_dir" && as_dir=.
 
5579
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5580
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5581
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5582
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5583
    break 2
 
5584
  fi
 
5585
done
 
5586
done
 
5587
IFS=$as_save_IFS
 
5588
 
 
5589
fi
 
5590
fi
 
5591
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5592
if test -n "$ac_ct_DLLTOOL"; then
 
5593
  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
5594
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
 
5595
else
 
5596
  { echo "$as_me:$LINENO: result: no" >&5
 
5597
echo "${ECHO_T}no" >&6; }
 
5598
fi
 
5599
 
 
5600
  if test "x$ac_ct_DLLTOOL" = x; then
 
5601
    DLLTOOL="false"
 
5602
  else
 
5603
    case $cross_compiling:$ac_tool_warned in
 
5604
yes:)
 
5605
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5606
whose name does not start with the host triplet.  If you think this
 
5607
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5608
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5609
whose name does not start with the host triplet.  If you think this
 
5610
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5611
ac_tool_warned=yes ;;
 
5612
esac
 
5613
    DLLTOOL=$ac_ct_DLLTOOL
 
5614
  fi
 
5615
else
 
5616
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5617
fi
 
5618
 
 
5619
  if test -n "$ac_tool_prefix"; then
 
5620
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
5621
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
5622
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5623
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5624
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
5625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5626
else
 
5627
  if test -n "$OBJDUMP"; then
 
5628
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
5629
else
 
5630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5631
for as_dir in $PATH
 
5632
do
 
5633
  IFS=$as_save_IFS
 
5634
  test -z "$as_dir" && as_dir=.
 
5635
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5636
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5637
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
5638
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5639
    break 2
 
5640
  fi
 
5641
done
 
5642
done
 
5643
IFS=$as_save_IFS
 
5644
 
 
5645
fi
 
5646
fi
 
5647
OBJDUMP=$ac_cv_prog_OBJDUMP
 
5648
if test -n "$OBJDUMP"; then
 
5649
  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
5650
echo "${ECHO_T}$OBJDUMP" >&6; }
 
5651
else
 
5652
  { echo "$as_me:$LINENO: result: no" >&5
 
5653
echo "${ECHO_T}no" >&6; }
 
5654
fi
 
5655
 
 
5656
 
 
5657
fi
 
5658
if test -z "$ac_cv_prog_OBJDUMP"; then
 
5659
  ac_ct_OBJDUMP=$OBJDUMP
 
5660
  # Extract the first word of "objdump", so it can be a program name with args.
 
5661
set dummy objdump; ac_word=$2
 
5662
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5663
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5664
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
5665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5666
else
 
5667
  if test -n "$ac_ct_OBJDUMP"; then
 
5668
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
5669
else
 
5670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5671
for as_dir in $PATH
 
5672
do
 
5673
  IFS=$as_save_IFS
 
5674
  test -z "$as_dir" && as_dir=.
 
5675
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5676
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5677
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
5678
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5679
    break 2
 
5680
  fi
 
5681
done
 
5682
done
 
5683
IFS=$as_save_IFS
 
5684
 
 
5685
fi
 
5686
fi
 
5687
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
5688
if test -n "$ac_ct_OBJDUMP"; then
 
5689
  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
5690
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
 
5691
else
 
5692
  { echo "$as_me:$LINENO: result: no" >&5
 
5693
echo "${ECHO_T}no" >&6; }
 
5694
fi
 
5695
 
 
5696
  if test "x$ac_ct_OBJDUMP" = x; then
 
5697
    OBJDUMP="false"
 
5698
  else
 
5699
    case $cross_compiling:$ac_tool_warned in
 
5700
yes:)
 
5701
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5702
whose name does not start with the host triplet.  If you think this
 
5703
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5704
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5705
whose name does not start with the host triplet.  If you think this
 
5706
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5707
ac_tool_warned=yes ;;
 
5708
esac
 
5709
    OBJDUMP=$ac_ct_OBJDUMP
 
5710
  fi
 
5711
else
 
5712
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
5713
fi
 
5714
 
 
5715
  ;;
 
5716
esac
 
5717
 
 
5718
test -z "$AS" && AS=as
 
5719
 
 
5720
 
 
5721
 
 
5722
 
 
5723
 
 
5724
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
5725
 
 
5726
 
 
5727
 
 
5728
 
 
5729
 
 
5730
test -z "$OBJDUMP" && OBJDUMP=objdump
 
5731
 
 
5732
 
 
5733
 
 
5734
 
 
5735
 
 
5736
 
 
5737
 
 
5738
enable_dlopen=yes
 
5739
 
 
5740
 
 
5741
 
 
5742
case `pwd` in
 
5743
  *\ * | *\     *)
 
5744
    { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
 
5745
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
 
5746
esac
 
5747
 
 
5748
 
 
5749
 
 
5750
macro_version='2.2.4'
 
5751
macro_revision='1.2976'
 
5752
 
 
5753
 
 
5754
 
 
5755
 
 
5756
 
 
5757
 
 
5758
 
 
5759
 
 
5760
 
 
5761
 
 
5762
 
 
5763
 
 
5764
 
 
5765
ltmain="$ac_aux_dir/ltmain.sh"
 
5766
 
 
5767
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5768
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
5769
if test "${ac_cv_path_SED+set}" = set; then
 
5770
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5771
else
 
5772
            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
 
5773
     for ac_i in 1 2 3 4 5 6 7; do
 
5774
       ac_script="$ac_script$as_nl$ac_script"
 
5775
     done
 
5776
     echo "$ac_script" | sed 99q >conftest.sed
 
5777
     $as_unset ac_script || ac_script=
 
5778
     # Extract the first word of "sed gsed" to use in msg output
 
5779
if test -z "$SED"; then
 
5780
set dummy sed gsed; ac_prog_name=$2
 
5781
if test "${ac_cv_path_SED+set}" = set; then
 
5782
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5783
else
 
5784
  ac_path_SED_found=false
 
5785
# Loop through the user's path and test for each of PROGNAME-LIST
 
5786
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5787
for as_dir in $PATH
 
5788
do
 
5789
  IFS=$as_save_IFS
 
5790
  test -z "$as_dir" && as_dir=.
 
5791
  for ac_prog in sed gsed; do
 
5792
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5793
    ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
 
5794
    { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
 
5795
    # Check for GNU ac_path_SED and select it if it is found.
 
5796
  # Check for GNU $ac_path_SED
 
5797
case `"$ac_path_SED" --version 2>&1` in
 
5798
*GNU*)
 
5799
  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
 
5800
*)
 
5801
  ac_count=0
 
5802
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5803
  while :
 
5804
  do
 
5805
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5806
    mv "conftest.tmp" "conftest.in"
 
5807
    cp "conftest.in" "conftest.nl"
 
5808
    echo '' >> "conftest.nl"
 
5809
    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5810
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5811
    ac_count=`expr $ac_count + 1`
 
5812
    if test $ac_count -gt ${ac_path_SED_max-0}; then
 
5813
      # Best one so far, save it but keep looking for a better one
 
5814
      ac_cv_path_SED="$ac_path_SED"
 
5815
      ac_path_SED_max=$ac_count
 
5816
    fi
 
5817
    # 10*(2^10) chars as input seems more than enough
 
5818
    test $ac_count -gt 10 && break
 
5819
  done
 
5820
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5821
esac
 
5822
 
 
5823
 
 
5824
    $ac_path_SED_found && break 3
 
5825
  done
 
5826
done
 
5827
 
 
5828
done
 
5829
IFS=$as_save_IFS
 
5830
 
 
5831
 
 
5832
fi
 
5833
 
 
5834
SED="$ac_cv_path_SED"
 
5835
if test -z "$SED"; then
 
5836
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
 
5837
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
 
5838
   { (exit 1); exit 1; }; }
 
5839
fi
 
5840
 
 
5841
else
 
5842
  ac_cv_path_SED=$SED
 
5843
fi
 
5844
 
 
5845
fi
 
5846
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
 
5847
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
 
5848
 SED="$ac_cv_path_SED"
 
5849
  rm -f conftest.sed
 
5850
 
 
5851
test -z "$SED" && SED=sed
 
5852
Xsed="$SED -e 1s/^X//"
 
5853
 
 
5854
 
 
5855
 
 
5856
 
 
5857
 
 
5858
 
 
5859
 
 
5860
 
 
5861
 
 
5862
 
 
5863
 
 
5864
{ echo "$as_me:$LINENO: checking for fgrep" >&5
 
5865
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
 
5866
if test "${ac_cv_path_FGREP+set}" = set; then
 
5867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5868
else
 
5869
  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
 
5870
   then ac_cv_path_FGREP="$GREP -F"
 
5871
   else
 
5872
     # Extract the first word of "fgrep" to use in msg output
 
5873
if test -z "$FGREP"; then
 
5874
set dummy fgrep; ac_prog_name=$2
 
5875
if test "${ac_cv_path_FGREP+set}" = set; then
 
5876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5877
else
 
5878
  ac_path_FGREP_found=false
 
5879
# Loop through the user's path and test for each of PROGNAME-LIST
 
5880
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5881
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5882
do
 
5883
  IFS=$as_save_IFS
 
5884
  test -z "$as_dir" && as_dir=.
 
5885
  for ac_prog in fgrep; do
 
5886
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5887
    ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5888
    { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
 
5889
    # Check for GNU ac_path_FGREP and select it if it is found.
 
5890
  # Check for GNU $ac_path_FGREP
 
5891
case `"$ac_path_FGREP" --version 2>&1` in
 
5892
*GNU*)
 
5893
  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
 
5894
*)
 
5895
  ac_count=0
 
5896
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
5897
  while :
 
5898
  do
 
5899
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5900
    mv "conftest.tmp" "conftest.in"
 
5901
    cp "conftest.in" "conftest.nl"
 
5902
    echo 'FGREP' >> "conftest.nl"
 
5903
    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5904
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5905
    ac_count=`expr $ac_count + 1`
 
5906
    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
 
5907
      # Best one so far, save it but keep looking for a better one
 
5908
      ac_cv_path_FGREP="$ac_path_FGREP"
 
5909
      ac_path_FGREP_max=$ac_count
 
5910
    fi
 
5911
    # 10*(2^10) chars as input seems more than enough
 
5912
    test $ac_count -gt 10 && break
 
5913
  done
 
5914
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5915
esac
 
5916
 
 
5917
 
 
5918
    $ac_path_FGREP_found && break 3
 
5919
  done
 
5920
done
 
5921
 
 
5922
done
 
5923
IFS=$as_save_IFS
 
5924
 
 
5925
 
 
5926
fi
 
5927
 
 
5928
FGREP="$ac_cv_path_FGREP"
 
5929
if test -z "$FGREP"; then
 
5930
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5931
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5932
   { (exit 1); exit 1; }; }
 
5933
fi
 
5934
 
 
5935
else
 
5936
  ac_cv_path_FGREP=$FGREP
 
5937
fi
 
5938
 
 
5939
 
 
5940
   fi
 
5941
fi
 
5942
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
 
5943
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
 
5944
 FGREP="$ac_cv_path_FGREP"
 
5945
 
 
5946
 
 
5947
test -z "$GREP" && GREP=grep
 
5948
 
 
5949
 
 
5950
 
 
5951
 
 
5952
 
 
5953
 
 
5954
 
 
5955
 
 
5956
 
 
5957
 
 
5958
 
 
5959
 
 
5960
 
 
5961
 
 
5962
 
 
5963
 
 
5964
 
 
5965
 
 
5966
 
 
5967
# Check whether --with-gnu-ld was given.
 
5968
if test "${with_gnu_ld+set}" = set; then
 
5969
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5970
else
 
5971
  with_gnu_ld=no
 
5972
fi
 
5973
 
 
5974
ac_prog=ld
 
5975
if test "$GCC" = yes; then
 
5976
  # Check if gcc -print-prog-name=ld gives a path.
 
5977
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5978
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
5979
  case $host in
 
5980
  *-*-mingw*)
 
5981
    # gcc leaves a trailing carriage return which upsets mingw
 
5982
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5983
  *)
 
5984
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5985
  esac
 
5986
  case $ac_prog in
 
5987
    # Accept absolute paths.
 
5988
    [\\/]* | ?:[\\/]*)
 
5989
      re_direlt='/[^/][^/]*/\.\./'
 
5990
      # Canonicalize the pathname of ld
 
5991
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
5992
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
5993
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
5994
      done
 
5995
      test -z "$LD" && LD="$ac_prog"
 
5996
      ;;
 
5997
  "")
 
5998
    # If it fails, then pretend we aren't using GCC.
 
5999
    ac_prog=ld
 
6000
    ;;
 
6001
  *)
 
6002
    # If it is relative, then search for the first ld in PATH.
 
6003
    with_gnu_ld=unknown
 
6004
    ;;
 
6005
  esac
 
6006
elif test "$with_gnu_ld" = yes; then
 
6007
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
6008
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
6009
else
 
6010
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
6011
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
6012
fi
 
6013
if test "${lt_cv_path_LD+set}" = set; then
 
6014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6015
else
 
6016
  if test -z "$LD"; then
 
6017
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6018
  for ac_dir in $PATH; do
 
6019
    IFS="$lt_save_ifs"
 
6020
    test -z "$ac_dir" && ac_dir=.
 
6021
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
6022
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
6023
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
6024
      # but apparently some variants of GNU ld only accept -v.
 
6025
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
6026
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
6027
      *GNU* | *'with BFD'*)
 
6028
        test "$with_gnu_ld" != no && break
 
6029
        ;;
 
6030
      *)
 
6031
        test "$with_gnu_ld" != yes && break
 
6032
        ;;
 
6033
      esac
 
6034
    fi
 
6035
  done
 
6036
  IFS="$lt_save_ifs"
 
6037
else
 
6038
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
6039
fi
 
6040
fi
 
6041
 
 
6042
LD="$lt_cv_path_LD"
 
6043
if test -n "$LD"; then
 
6044
  { echo "$as_me:$LINENO: result: $LD" >&5
 
6045
echo "${ECHO_T}$LD" >&6; }
 
6046
else
 
6047
  { echo "$as_me:$LINENO: result: no" >&5
 
6048
echo "${ECHO_T}no" >&6; }
 
6049
fi
 
6050
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
6051
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
6052
   { (exit 1); exit 1; }; }
 
6053
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
6054
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
6055
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
6056
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6057
else
 
6058
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
6059
case `$LD -v 2>&1 </dev/null` in
 
6060
*GNU* | *'with BFD'*)
 
6061
  lt_cv_prog_gnu_ld=yes
 
6062
  ;;
 
6063
*)
 
6064
  lt_cv_prog_gnu_ld=no
 
6065
  ;;
 
6066
esac
 
6067
fi
 
6068
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
6069
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
6070
with_gnu_ld=$lt_cv_prog_gnu_ld
 
6071
 
 
6072
 
 
6073
 
 
6074
 
 
6075
 
 
6076
 
 
6077
 
 
6078
 
 
6079
 
 
6080
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
 
6081
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
 
6082
if test "${lt_cv_path_NM+set}" = set; then
 
6083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6084
else
 
6085
  if test -n "$NM"; then
 
6086
  # Let the user override the test.
 
6087
  lt_cv_path_NM="$NM"
 
6088
else
 
6089
  lt_nm_to_check="${ac_tool_prefix}nm"
 
6090
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
6091
    lt_nm_to_check="$lt_nm_to_check nm"
 
6092
  fi
 
6093
  for lt_tmp_nm in $lt_nm_to_check; do
 
6094
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6095
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
6096
      IFS="$lt_save_ifs"
 
6097
      test -z "$ac_dir" && ac_dir=.
 
6098
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
6099
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
6100
        # Check to see if the nm accepts a BSD-compat flag.
 
6101
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
6102
        #   nm: unknown option "B" ignored
 
6103
        # Tru64's nm complains that /dev/null is an invalid object file
 
6104
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
6105
        */dev/null* | *'Invalid file or object type'*)
 
6106
          lt_cv_path_NM="$tmp_nm -B"
 
6107
          break
 
6108
          ;;
 
6109
        *)
 
6110
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
6111
          */dev/null*)
 
6112
            lt_cv_path_NM="$tmp_nm -p"
 
6113
            break
 
6114
            ;;
 
6115
          *)
 
6116
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
6117
            continue # so that we can try to find one that supports BSD flags
 
6118
            ;;
 
6119
          esac
 
6120
          ;;
 
6121
        esac
 
6122
      fi
 
6123
    done
 
6124
    IFS="$lt_save_ifs"
 
6125
  done
 
6126
  : ${lt_cv_path_NM=no}
 
6127
fi
 
6128
fi
 
6129
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
6130
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
6131
if test "$lt_cv_path_NM" != "no"; then
 
6132
  NM="$lt_cv_path_NM"
 
6133
else
 
6134
  # Didn't find any BSD compatible name lister, look for dumpbin.
 
6135
  if test -n "$ac_tool_prefix"; then
 
6136
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6137
  do
 
6138
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6139
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6140
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6142
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
 
6143
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6144
else
 
6145
  if test -n "$DUMPBIN"; then
 
6146
  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
 
6147
else
 
6148
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6149
for as_dir in $PATH
 
6150
do
 
6151
  IFS=$as_save_IFS
 
6152
  test -z "$as_dir" && as_dir=.
 
6153
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6154
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6155
    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
 
6156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6157
    break 2
 
6158
  fi
 
6159
done
 
6160
done
 
6161
IFS=$as_save_IFS
 
6162
 
 
6163
fi
 
6164
fi
 
6165
DUMPBIN=$ac_cv_prog_DUMPBIN
 
6166
if test -n "$DUMPBIN"; then
 
6167
  { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
 
6168
echo "${ECHO_T}$DUMPBIN" >&6; }
 
6169
else
 
6170
  { echo "$as_me:$LINENO: result: no" >&5
 
6171
echo "${ECHO_T}no" >&6; }
 
6172
fi
 
6173
 
 
6174
 
 
6175
    test -n "$DUMPBIN" && break
 
6176
  done
 
6177
fi
 
6178
if test -z "$DUMPBIN"; then
 
6179
  ac_ct_DUMPBIN=$DUMPBIN
 
6180
  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
 
6181
do
 
6182
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6183
set dummy $ac_prog; ac_word=$2
 
6184
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6185
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6186
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
 
6187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6188
else
 
6189
  if test -n "$ac_ct_DUMPBIN"; then
 
6190
  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
 
6191
else
 
6192
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6193
for as_dir in $PATH
 
6194
do
 
6195
  IFS=$as_save_IFS
 
6196
  test -z "$as_dir" && as_dir=.
 
6197
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6198
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6199
    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
 
6200
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6201
    break 2
 
6202
  fi
 
6203
done
 
6204
done
 
6205
IFS=$as_save_IFS
 
6206
 
 
6207
fi
 
6208
fi
 
6209
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
 
6210
if test -n "$ac_ct_DUMPBIN"; then
 
6211
  { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
 
6212
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
 
6213
else
 
6214
  { echo "$as_me:$LINENO: result: no" >&5
 
6215
echo "${ECHO_T}no" >&6; }
 
6216
fi
 
6217
 
 
6218
 
 
6219
  test -n "$ac_ct_DUMPBIN" && break
 
6220
done
 
6221
 
 
6222
  if test "x$ac_ct_DUMPBIN" = x; then
 
6223
    DUMPBIN=":"
 
6224
  else
 
6225
    case $cross_compiling:$ac_tool_warned in
 
6226
yes:)
 
6227
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6228
whose name does not start with the host triplet.  If you think this
 
6229
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6230
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6231
whose name does not start with the host triplet.  If you think this
 
6232
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6233
ac_tool_warned=yes ;;
 
6234
esac
 
6235
    DUMPBIN=$ac_ct_DUMPBIN
 
6236
  fi
 
6237
fi
 
6238
 
 
6239
 
 
6240
  if test "$DUMPBIN" != ":"; then
 
6241
    NM="$DUMPBIN"
 
6242
  fi
 
6243
fi
 
6244
test -z "$NM" && NM=nm
 
6245
 
 
6246
 
 
6247
 
 
6248
 
 
6249
 
 
6250
 
 
6251
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
 
6252
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
 
6253
if test "${lt_cv_nm_interface+set}" = set; then
 
6254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6255
else
 
6256
  lt_cv_nm_interface="BSD nm"
 
6257
  echo "int some_variable = 0;" > conftest.$ac_ext
 
6258
  (eval echo "\"\$as_me:6258: $ac_compile\"" >&5)
 
6259
  (eval "$ac_compile" 2>conftest.err)
 
6260
  cat conftest.err >&5
 
6261
  (eval echo "\"\$as_me:6261: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
 
6262
  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
 
6263
  cat conftest.err >&5
 
6264
  (eval echo "\"\$as_me:6264: output\"" >&5)
 
6265
  cat conftest.out >&5
 
6266
  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
 
6267
    lt_cv_nm_interface="MS dumpbin"
 
6268
  fi
 
6269
  rm -f conftest*
 
6270
fi
 
6271
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
 
6272
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
 
6273
 
 
6274
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
6275
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
6276
LN_S=$as_ln_s
 
6277
if test "$LN_S" = "ln -s"; then
 
6278
  { echo "$as_me:$LINENO: result: yes" >&5
 
6279
echo "${ECHO_T}yes" >&6; }
 
6280
else
 
6281
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
6282
echo "${ECHO_T}no, using $LN_S" >&6; }
 
6283
fi
 
6284
 
 
6285
# find the maximum length of command line arguments
 
6286
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6287
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6288
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6290
else
 
6291
    i=0
 
6292
  teststring="ABCD"
 
6293
 
 
6294
  case $build_os in
 
6295
  msdosdjgpp*)
 
6296
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6297
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6298
    # during glob expansion).  Even if it were fixed, the result of this
 
6299
    # check would be larger than it should be.
 
6300
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6301
    ;;
 
6302
 
 
6303
  gnu*)
 
6304
    # Under GNU Hurd, this test is not required because there is
 
6305
    # no limit to the length of command line arguments.
 
6306
    # Libtool will interpret -1 as no limit whatsoever
 
6307
    lt_cv_sys_max_cmd_len=-1;
 
6308
    ;;
 
6309
 
 
6310
  cygwin* | mingw*)
 
6311
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6312
    # about 5 minutes as the teststring grows exponentially.
 
6313
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6314
    # you end up with a "frozen" computer, even though with patience
 
6315
    # the test eventually succeeds (with a max line length of 256k).
 
6316
    # Instead, let's just punt: use the minimum linelength reported by
 
6317
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6318
    lt_cv_sys_max_cmd_len=8192;
 
6319
    ;;
 
6320
 
 
6321
  amigaos*)
 
6322
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6323
    # So we just punt and use a minimum line length of 8192.
 
6324
    lt_cv_sys_max_cmd_len=8192;
 
6325
    ;;
 
6326
 
 
6327
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6328
    # This has been around since 386BSD, at least.  Likely further.
 
6329
    if test -x /sbin/sysctl; then
 
6330
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6331
    elif test -x /usr/sbin/sysctl; then
 
6332
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6333
    else
 
6334
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6335
    fi
 
6336
    # And add a safety zone
 
6337
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6338
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6339
    ;;
 
6340
 
 
6341
  interix*)
 
6342
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6343
    lt_cv_sys_max_cmd_len=196608
 
6344
    ;;
 
6345
 
 
6346
  osf*)
 
6347
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6348
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6349
    # nice to cause kernel panics so lets avoid the loop below.
 
6350
    # First set a reasonable default.
 
6351
    lt_cv_sys_max_cmd_len=16384
 
6352
    #
 
6353
    if test -x /sbin/sysconfig; then
 
6354
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6355
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6356
      esac
 
6357
    fi
 
6358
    ;;
 
6359
  sco3.2v5*)
 
6360
    lt_cv_sys_max_cmd_len=102400
 
6361
    ;;
 
6362
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6363
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6364
    if test -n "$kargmax"; then
 
6365
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
 
6366
    else
 
6367
      lt_cv_sys_max_cmd_len=32768
 
6368
    fi
 
6369
    ;;
 
6370
  *)
 
6371
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6372
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6373
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6374
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6375
    else
 
6376
      # Make teststring a little bigger before we do anything with it.
 
6377
      # a 1K string should be a reasonable start.
 
6378
      for i in 1 2 3 4 5 6 7 8 ; do
 
6379
        teststring=$teststring$teststring
 
6380
      done
 
6381
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6382
      # If test is not a shell built-in, we'll probably end up computing a
 
6383
      # maximum length that is only half of the actual maximum length, but
 
6384
      # we can't tell.
 
6385
      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
 
6386
                 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
 
6387
              test $i != 17 # 1/2 MB should be enough
 
6388
      do
 
6389
        i=`expr $i + 1`
 
6390
        teststring=$teststring$teststring
 
6391
      done
 
6392
      # Only check the string length outside the loop.
 
6393
      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
 
6394
      teststring=
 
6395
      # Add a significant safety factor because C++ compilers can tack on
 
6396
      # massive amounts of additional arguments before passing them to the
 
6397
      # linker.  It appears as though 1/2 is a usable value.
 
6398
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6399
    fi
 
6400
    ;;
 
6401
  esac
 
6402
 
 
6403
fi
 
6404
 
 
6405
if test -n $lt_cv_sys_max_cmd_len ; then
 
6406
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6407
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6408
else
 
6409
  { echo "$as_me:$LINENO: result: none" >&5
 
6410
echo "${ECHO_T}none" >&6; }
 
6411
fi
 
6412
max_cmd_len=$lt_cv_sys_max_cmd_len
 
6413
 
 
6414
 
 
6415
 
 
6416
 
 
6417
 
 
6418
 
 
6419
: ${CP="cp -f"}
 
6420
: ${MV="mv -f"}
 
6421
: ${RM="rm -f"}
 
6422
 
 
6423
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
 
6424
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
 
6425
# Try some XSI features
 
6426
xsi_shell=no
 
6427
( _lt_dummy="a/b/c"
 
6428
  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
 
6429
      = c,a/b,, \
 
6430
    && eval 'test $(( 1 + 1 )) -eq 2 \
 
6431
    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
 
6432
  && xsi_shell=yes
 
6433
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
 
6434
echo "${ECHO_T}$xsi_shell" >&6; }
 
6435
 
 
6436
 
 
6437
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
 
6438
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
 
6439
lt_shell_append=no
 
6440
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
 
6441
    >/dev/null 2>&1 \
 
6442
  && lt_shell_append=yes
 
6443
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
 
6444
echo "${ECHO_T}$lt_shell_append" >&6; }
 
6445
 
 
6446
 
 
6447
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
6448
  lt_unset=unset
 
6449
else
 
6450
  lt_unset=false
 
6451
fi
 
6452
 
 
6453
 
 
6454
 
 
6455
 
 
6456
 
 
6457
# test EBCDIC or ASCII
 
6458
case `echo X|tr X '\101'` in
 
6459
 A) # ASCII based system
 
6460
    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
 
6461
  lt_SP2NL='tr \040 \012'
 
6462
  lt_NL2SP='tr \015\012 \040\040'
 
6463
  ;;
 
6464
 *) # EBCDIC based system
 
6465
  lt_SP2NL='tr \100 \n'
 
6466
  lt_NL2SP='tr \r\n \100\100'
 
6467
  ;;
 
6468
esac
 
6469
 
 
6470
 
 
6471
 
 
6472
 
 
6473
 
 
6474
 
 
6475
 
 
6476
 
 
6477
 
 
6478
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
6479
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
6480
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
6481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6482
else
 
6483
  lt_cv_ld_reload_flag='-r'
 
6484
fi
 
6485
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
6486
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
6487
reload_flag=$lt_cv_ld_reload_flag
 
6488
case $reload_flag in
 
6489
"" | " "*) ;;
 
6490
*) reload_flag=" $reload_flag" ;;
 
6491
esac
 
6492
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6493
case $host_os in
 
6494
  darwin*)
 
6495
    if test "$GCC" = yes; then
 
6496
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
6497
    else
 
6498
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
6499
    fi
 
6500
    ;;
 
6501
esac
 
6502
 
 
6503
 
 
6504
 
 
6505
 
 
6506
 
 
6507
 
 
6508
 
 
6509
 
 
6510
 
 
6511
 
 
6512
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
6513
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
6514
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
6515
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6516
else
 
6517
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
6518
lt_cv_file_magic_test_file=
 
6519
lt_cv_deplibs_check_method='unknown'
 
6520
# Need to set the preceding variable on all platforms that support
 
6521
# interlibrary dependencies.
 
6522
# 'none' -- dependencies not supported.
 
6523
# `unknown' -- same as none, but documents that we really don't know.
 
6524
# 'pass_all' -- all dependencies passed with no checks.
 
6525
# 'test_compile' -- check by making test program.
 
6526
# 'file_magic [[regex]]' -- check by looking for files in library path
 
6527
# which responds to the $file_magic_cmd with a given extended regex.
 
6528
# If you have `file' or equivalent on your system and you're not sure
 
6529
# whether `pass_all' will *always* work, you probably want this one.
 
6530
 
 
6531
case $host_os in
 
6532
aix[4-9]*)
 
6533
  lt_cv_deplibs_check_method=pass_all
 
6534
  ;;
 
6535
 
 
6536
beos*)
 
6537
  lt_cv_deplibs_check_method=pass_all
 
6538
  ;;
 
6539
 
 
6540
bsdi[45]*)
 
6541
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
6542
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
6543
  lt_cv_file_magic_test_file=/shlib/libc.so
 
6544
  ;;
 
6545
 
 
6546
cygwin*)
 
6547
  # func_win32_libid is a shell function defined in ltmain.sh
 
6548
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6549
  lt_cv_file_magic_cmd='func_win32_libid'
 
6550
  ;;
 
6551
 
 
6552
mingw* | pw32*)
 
6553
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
6554
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
6555
  # unless we find 'file', for example because we are cross-compiling.
 
6556
  if ( file / ) >/dev/null 2>&1; then
 
6557
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
6558
    lt_cv_file_magic_cmd='func_win32_libid'
 
6559
  else
 
6560
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
6561
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
6562
  fi
 
6563
  ;;
 
6564
 
 
6565
darwin* | rhapsody*)
 
6566
  lt_cv_deplibs_check_method=pass_all
 
6567
  ;;
 
6568
 
 
6569
freebsd* | dragonfly*)
 
6570
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6571
    case $host_cpu in
 
6572
    i*86 )
 
6573
      # Not sure whether the presence of OpenBSD here was a mistake.
 
6574
      # Let's accept both of them until this is cleared up.
 
6575
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
6576
      lt_cv_file_magic_cmd=/usr/bin/file
 
6577
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
6578
      ;;
 
6579
    esac
 
6580
  else
 
6581
    lt_cv_deplibs_check_method=pass_all
 
6582
  fi
 
6583
  ;;
 
6584
 
 
6585
gnu*)
 
6586
  lt_cv_deplibs_check_method=pass_all
 
6587
  ;;
 
6588
 
 
6589
hpux10.20* | hpux11*)
 
6590
  lt_cv_file_magic_cmd=/usr/bin/file
 
6591
  case $host_cpu in
 
6592
  ia64*)
 
6593
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
6594
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
6595
    ;;
 
6596
  hppa*64*)
 
6597
    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]'
 
6598
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
6599
    ;;
 
6600
  *)
 
6601
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
6602
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
6603
    ;;
 
6604
  esac
 
6605
  ;;
 
6606
 
 
6607
interix[3-9]*)
 
6608
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
6609
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
6610
  ;;
 
6611
 
 
6612
irix5* | irix6* | nonstopux*)
 
6613
  case $LD in
 
6614
  *-32|*"-32 ") libmagic=32-bit;;
 
6615
  *-n32|*"-n32 ") libmagic=N32;;
 
6616
  *-64|*"-64 ") libmagic=64-bit;;
 
6617
  *) libmagic=never-match;;
 
6618
  esac
 
6619
  lt_cv_deplibs_check_method=pass_all
 
6620
  ;;
 
6621
 
 
6622
# This must be Linux ELF.
 
6623
linux* | k*bsd*-gnu)
 
6624
  lt_cv_deplibs_check_method=pass_all
 
6625
  ;;
 
6626
 
 
6627
netbsd* | netbsdelf*-gnu)
 
6628
  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
 
6629
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6630
  else
 
6631
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
6632
  fi
 
6633
  ;;
 
6634
 
 
6635
newos6*)
 
6636
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
6637
  lt_cv_file_magic_cmd=/usr/bin/file
 
6638
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
6639
  ;;
 
6640
 
 
6641
*nto* | *qnx*)
 
6642
  lt_cv_deplibs_check_method=pass_all
 
6643
  ;;
 
6644
 
 
6645
openbsd*)
 
6646
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
6647
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
6648
  else
 
6649
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
6650
  fi
 
6651
  ;;
 
6652
 
 
6653
osf3* | osf4* | osf5*)
 
6654
  lt_cv_deplibs_check_method=pass_all
 
6655
  ;;
 
6656
 
 
6657
rdos*)
 
6658
  lt_cv_deplibs_check_method=pass_all
 
6659
  ;;
 
6660
 
 
6661
solaris*)
 
6662
  lt_cv_deplibs_check_method=pass_all
 
6663
  ;;
 
6664
 
 
6665
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
6666
  lt_cv_deplibs_check_method=pass_all
 
6667
  ;;
 
6668
 
 
6669
sysv4 | sysv4.3*)
 
6670
  case $host_vendor in
 
6671
  motorola)
 
6672
    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]'
 
6673
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
6674
    ;;
 
6675
  ncr)
 
6676
    lt_cv_deplibs_check_method=pass_all
 
6677
    ;;
 
6678
  sequent)
 
6679
    lt_cv_file_magic_cmd='/bin/file'
 
6680
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
6681
    ;;
 
6682
  sni)
 
6683
    lt_cv_file_magic_cmd='/bin/file'
 
6684
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
6685
    lt_cv_file_magic_test_file=/lib/libc.so
 
6686
    ;;
 
6687
  siemens)
 
6688
    lt_cv_deplibs_check_method=pass_all
 
6689
    ;;
 
6690
  pc)
 
6691
    lt_cv_deplibs_check_method=pass_all
 
6692
    ;;
 
6693
  esac
 
6694
  ;;
 
6695
 
 
6696
tpf*)
 
6697
  lt_cv_deplibs_check_method=pass_all
 
6698
  ;;
 
6699
esac
 
6700
 
 
6701
fi
 
6702
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
6703
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
6704
file_magic_cmd=$lt_cv_file_magic_cmd
 
6705
deplibs_check_method=$lt_cv_deplibs_check_method
 
6706
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
6707
 
 
6708
 
 
6709
 
 
6710
 
 
6711
 
 
6712
 
 
6713
 
 
6714
 
 
6715
 
 
6716
 
 
6717
 
 
6718
 
 
6719
if test -n "$ac_tool_prefix"; then
 
6720
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6721
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6722
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6723
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6724
if test "${ac_cv_prog_AR+set}" = set; then
 
6725
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6726
else
 
6727
  if test -n "$AR"; then
 
6728
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6729
else
 
6730
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6731
for as_dir in $PATH
 
6732
do
 
6733
  IFS=$as_save_IFS
 
6734
  test -z "$as_dir" && as_dir=.
 
6735
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6736
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6737
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6738
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6739
    break 2
 
6740
  fi
 
6741
done
 
6742
done
 
6743
IFS=$as_save_IFS
 
6744
 
 
6745
fi
 
6746
fi
 
6747
AR=$ac_cv_prog_AR
 
6748
if test -n "$AR"; then
 
6749
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6750
echo "${ECHO_T}$AR" >&6; }
 
6751
else
 
6752
  { echo "$as_me:$LINENO: result: no" >&5
 
6753
echo "${ECHO_T}no" >&6; }
 
6754
fi
 
6755
 
 
6756
 
 
6757
fi
 
6758
if test -z "$ac_cv_prog_AR"; then
 
6759
  ac_ct_AR=$AR
 
6760
  # Extract the first word of "ar", so it can be a program name with args.
 
6761
set dummy ar; ac_word=$2
 
6762
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6764
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6766
else
 
6767
  if test -n "$ac_ct_AR"; then
 
6768
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6769
else
 
6770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6771
for as_dir in $PATH
 
6772
do
 
6773
  IFS=$as_save_IFS
 
6774
  test -z "$as_dir" && as_dir=.
 
6775
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6776
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6777
    ac_cv_prog_ac_ct_AR="ar"
 
6778
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6779
    break 2
 
6780
  fi
 
6781
done
 
6782
done
 
6783
IFS=$as_save_IFS
 
6784
 
 
6785
fi
 
6786
fi
 
6787
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6788
if test -n "$ac_ct_AR"; then
 
6789
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6790
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6791
else
 
6792
  { echo "$as_me:$LINENO: result: no" >&5
 
6793
echo "${ECHO_T}no" >&6; }
 
6794
fi
 
6795
 
 
6796
  if test "x$ac_ct_AR" = x; then
 
6797
    AR="false"
 
6798
  else
 
6799
    case $cross_compiling:$ac_tool_warned in
 
6800
yes:)
 
6801
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6802
whose name does not start with the host triplet.  If you think this
 
6803
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6804
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6805
whose name does not start with the host triplet.  If you think this
 
6806
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6807
ac_tool_warned=yes ;;
 
6808
esac
 
6809
    AR=$ac_ct_AR
 
6810
  fi
 
6811
else
 
6812
  AR="$ac_cv_prog_AR"
 
6813
fi
 
6814
 
 
6815
test -z "$AR" && AR=ar
 
6816
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6817
 
 
6818
 
 
6819
 
 
6820
 
 
6821
 
 
6822
 
 
6823
 
 
6824
 
 
6825
 
 
6826
 
 
6827
 
 
6828
if test -n "$ac_tool_prefix"; then
 
6829
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6830
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6831
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6833
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6835
else
 
6836
  if test -n "$STRIP"; then
 
6837
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6838
else
 
6839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6840
for as_dir in $PATH
 
6841
do
 
6842
  IFS=$as_save_IFS
 
6843
  test -z "$as_dir" && as_dir=.
 
6844
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6845
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6846
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6847
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6848
    break 2
 
6849
  fi
 
6850
done
 
6851
done
 
6852
IFS=$as_save_IFS
 
6853
 
 
6854
fi
 
6855
fi
 
6856
STRIP=$ac_cv_prog_STRIP
 
6857
if test -n "$STRIP"; then
 
6858
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6859
echo "${ECHO_T}$STRIP" >&6; }
 
6860
else
 
6861
  { echo "$as_me:$LINENO: result: no" >&5
 
6862
echo "${ECHO_T}no" >&6; }
 
6863
fi
 
6864
 
 
6865
 
 
6866
fi
 
6867
if test -z "$ac_cv_prog_STRIP"; then
 
6868
  ac_ct_STRIP=$STRIP
 
6869
  # Extract the first word of "strip", so it can be a program name with args.
 
6870
set dummy strip; ac_word=$2
 
6871
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6873
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6875
else
 
6876
  if test -n "$ac_ct_STRIP"; then
 
6877
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6878
else
 
6879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6880
for as_dir in $PATH
 
6881
do
 
6882
  IFS=$as_save_IFS
 
6883
  test -z "$as_dir" && as_dir=.
 
6884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6885
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6886
    ac_cv_prog_ac_ct_STRIP="strip"
 
6887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6888
    break 2
 
6889
  fi
 
6890
done
 
6891
done
 
6892
IFS=$as_save_IFS
 
6893
 
 
6894
fi
 
6895
fi
 
6896
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6897
if test -n "$ac_ct_STRIP"; then
 
6898
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6899
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6900
else
 
6901
  { echo "$as_me:$LINENO: result: no" >&5
 
6902
echo "${ECHO_T}no" >&6; }
 
6903
fi
 
6904
 
 
6905
  if test "x$ac_ct_STRIP" = x; then
 
6906
    STRIP=":"
 
6907
  else
 
6908
    case $cross_compiling:$ac_tool_warned in
 
6909
yes:)
 
6910
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6911
whose name does not start with the host triplet.  If you think this
 
6912
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6913
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6914
whose name does not start with the host triplet.  If you think this
 
6915
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6916
ac_tool_warned=yes ;;
 
6917
esac
 
6918
    STRIP=$ac_ct_STRIP
 
6919
  fi
 
6920
else
 
6921
  STRIP="$ac_cv_prog_STRIP"
 
6922
fi
 
6923
 
 
6924
test -z "$STRIP" && STRIP=:
 
6925
 
 
6926
 
 
6927
 
 
6928
 
 
6929
 
 
6930
 
 
6931
if test -n "$ac_tool_prefix"; then
 
6932
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6933
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6934
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6936
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6937
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6938
else
 
6939
  if test -n "$RANLIB"; then
 
6940
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6941
else
 
6942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6943
for as_dir in $PATH
 
6944
do
 
6945
  IFS=$as_save_IFS
 
6946
  test -z "$as_dir" && as_dir=.
 
6947
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6948
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6949
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6950
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6951
    break 2
 
6952
  fi
 
6953
done
 
6954
done
 
6955
IFS=$as_save_IFS
 
6956
 
 
6957
fi
 
6958
fi
 
6959
RANLIB=$ac_cv_prog_RANLIB
 
6960
if test -n "$RANLIB"; then
 
6961
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6962
echo "${ECHO_T}$RANLIB" >&6; }
 
6963
else
 
6964
  { echo "$as_me:$LINENO: result: no" >&5
 
6965
echo "${ECHO_T}no" >&6; }
 
6966
fi
 
6967
 
 
6968
 
 
6969
fi
 
6970
if test -z "$ac_cv_prog_RANLIB"; then
 
6971
  ac_ct_RANLIB=$RANLIB
 
6972
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6973
set dummy ranlib; ac_word=$2
 
6974
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6975
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6976
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6977
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6978
else
 
6979
  if test -n "$ac_ct_RANLIB"; then
 
6980
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6981
else
 
6982
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6983
for as_dir in $PATH
 
6984
do
 
6985
  IFS=$as_save_IFS
 
6986
  test -z "$as_dir" && as_dir=.
 
6987
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6988
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6989
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6990
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6991
    break 2
 
6992
  fi
 
6993
done
 
6994
done
 
6995
IFS=$as_save_IFS
 
6996
 
 
6997
fi
 
6998
fi
 
6999
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7000
if test -n "$ac_ct_RANLIB"; then
 
7001
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7002
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7003
else
 
7004
  { echo "$as_me:$LINENO: result: no" >&5
 
7005
echo "${ECHO_T}no" >&6; }
 
7006
fi
 
7007
 
 
7008
  if test "x$ac_ct_RANLIB" = x; then
 
7009
    RANLIB=":"
 
7010
  else
 
7011
    case $cross_compiling:$ac_tool_warned in
 
7012
yes:)
 
7013
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7014
whose name does not start with the host triplet.  If you think this
 
7015
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7016
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7017
whose name does not start with the host triplet.  If you think this
 
7018
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7019
ac_tool_warned=yes ;;
 
7020
esac
 
7021
    RANLIB=$ac_ct_RANLIB
 
7022
  fi
 
7023
else
 
7024
  RANLIB="$ac_cv_prog_RANLIB"
 
7025
fi
 
7026
 
 
7027
test -z "$RANLIB" && RANLIB=:
 
7028
 
 
7029
 
 
7030
 
 
7031
 
 
7032
 
 
7033
 
 
7034
# Determine commands to create old-style static archives.
 
7035
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7036
old_postinstall_cmds='chmod 644 $oldlib'
 
7037
old_postuninstall_cmds=
 
7038
 
 
7039
if test -n "$RANLIB"; then
 
7040
  case $host_os in
 
7041
  openbsd*)
 
7042
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7043
    ;;
 
7044
  *)
 
7045
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7046
    ;;
 
7047
  esac
 
7048
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7049
fi
 
7050
 
 
7051
 
 
7052
 
 
7053
 
 
7054
 
 
7055
 
 
7056
 
 
7057
 
 
7058
 
 
7059
 
 
7060
 
 
7061
 
 
7062
 
 
7063
 
 
7064
 
 
7065
 
 
7066
 
 
7067
 
 
7068
 
 
7069
 
 
7070
 
 
7071
 
 
7072
 
 
7073
 
 
7074
 
 
7075
 
 
7076
 
 
7077
 
 
7078
 
 
7079
 
 
7080
 
 
7081
 
 
7082
 
 
7083
 
 
7084
# If no C compiler was specified, use CC.
 
7085
LTCC=${LTCC-"$CC"}
 
7086
 
 
7087
# If no C compiler flags were specified, use CFLAGS.
 
7088
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7089
 
 
7090
# Allow CC to be a program name with arguments.
 
7091
compiler=$CC
 
7092
 
 
7093
 
 
7094
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
7095
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7096
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
7097
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
7098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7099
else
 
7100
 
 
7101
# These are sane defaults that work on at least a few old systems.
 
7102
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
7103
 
 
7104
# Character class describing NM global symbol codes.
 
7105
symcode='[BCDEGRST]'
 
7106
 
 
7107
# Regexp to match symbols that can be accessed directly from C.
 
7108
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
7109
 
 
7110
# Define system-specific variables.
 
7111
case $host_os in
 
7112
aix*)
 
7113
  symcode='[BCDT]'
 
7114
  ;;
 
7115
cygwin* | mingw* | pw32*)
 
7116
  symcode='[ABCDGISTW]'
 
7117
  ;;
 
7118
hpux*)
 
7119
  if test "$host_cpu" = ia64; then
 
7120
    symcode='[ABCDEGRST]'
 
7121
  fi
 
7122
  ;;
 
7123
irix* | nonstopux*)
 
7124
  symcode='[BCDEGRST]'
 
7125
  ;;
 
7126
osf*)
 
7127
  symcode='[BCDEGQRST]'
 
7128
  ;;
 
7129
solaris*)
 
7130
  symcode='[BDRT]'
 
7131
  ;;
 
7132
sco3.2v5*)
 
7133
  symcode='[DT]'
 
7134
  ;;
 
7135
sysv4.2uw2*)
 
7136
  symcode='[DT]'
 
7137
  ;;
 
7138
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
7139
  symcode='[ABDT]'
 
7140
  ;;
 
7141
sysv4)
 
7142
  symcode='[DFNSTU]'
 
7143
  ;;
 
7144
esac
 
7145
 
 
7146
# If we're using GNU nm, then use its standard symbol codes.
 
7147
case `$NM -V 2>&1` in
 
7148
*GNU* | *'with BFD'*)
 
7149
  symcode='[ABCDGIRSTW]' ;;
 
7150
esac
 
7151
 
 
7152
# Transform an extracted symbol line into a proper C declaration.
 
7153
# Some systems (esp. on ia64) link data and code symbols differently,
 
7154
# so use this general approach.
 
7155
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7156
 
 
7157
# Transform an extracted symbol line into symbol name and symbol address
 
7158
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
 
7159
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
 
7160
 
 
7161
# Handle CRLF in mingw tool chain
 
7162
opt_cr=
 
7163
case $build_os in
 
7164
mingw*)
 
7165
  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
7166
  ;;
 
7167
esac
 
7168
 
 
7169
# Try without a prefix underscore, then with it.
 
7170
for ac_symprfx in "" "_"; do
 
7171
 
 
7172
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
7173
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
7174
 
 
7175
  # Write the raw and C identifiers.
 
7176
  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
 
7177
    # Fake it for dumpbin and say T for any non-static function
 
7178
    # and D for any global variable.
 
7179
    # Also find C++ and __fastcall symbols from MSVC++,
 
7180
    # which start with @ or ?.
 
7181
    lt_cv_sys_global_symbol_pipe="$AWK '"\
 
7182
"     {last_section=section; section=\$ 3};"\
 
7183
"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
 
7184
"     \$ 0!~/External *\|/{next};"\
 
7185
"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
 
7186
"     {if(hide[section]) next};"\
 
7187
"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
 
7188
"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
 
7189
"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
 
7190
"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
 
7191
"     ' prfx=^$ac_symprfx"
 
7192
  else
 
7193
    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
7194
  fi
 
7195
 
 
7196
  # Check to see that the pipe works correctly.
 
7197
  pipe_works=no
 
7198
 
 
7199
  rm -f conftest*
 
7200
  cat > conftest.$ac_ext <<_LT_EOF
 
7201
#ifdef __cplusplus
 
7202
extern "C" {
 
7203
#endif
 
7204
char nm_test_var;
 
7205
void nm_test_func(void);
 
7206
void nm_test_func(void){}
 
7207
#ifdef __cplusplus
 
7208
}
 
7209
#endif
 
7210
int main(){nm_test_var='a';nm_test_func();return(0);}
 
7211
_LT_EOF
 
7212
 
 
7213
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7214
  (eval $ac_compile) 2>&5
 
7215
  ac_status=$?
 
7216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7217
  (exit $ac_status); }; then
 
7218
    # Now try to grab the symbols.
 
7219
    nlist=conftest.nm
 
7220
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7221
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
7222
  ac_status=$?
 
7223
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7224
  (exit $ac_status); } && test -s "$nlist"; then
 
7225
      # Try sorting and uniquifying the output.
 
7226
      if sort "$nlist" | uniq > "$nlist"T; then
 
7227
        mv -f "$nlist"T "$nlist"
 
7228
      else
 
7229
        rm -f "$nlist"T
 
7230
      fi
 
7231
 
 
7232
      # Make sure that we snagged all the symbols we need.
 
7233
      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
 
7234
        if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
 
7235
          cat <<_LT_EOF > conftest.$ac_ext
 
7236
#ifdef __cplusplus
 
7237
extern "C" {
 
7238
#endif
 
7239
 
 
7240
_LT_EOF
 
7241
          # Now generate the symbol file.
 
7242
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
 
7243
 
 
7244
          cat <<_LT_EOF >> conftest.$ac_ext
 
7245
 
 
7246
/* The mapping between symbol names and symbols.  */
 
7247
const struct {
 
7248
  const char *name;
 
7249
  void       *address;
 
7250
}
 
7251
lt__PROGRAM__LTX_preloaded_symbols[] =
 
7252
{
 
7253
  { "@PROGRAM@", (void *) 0 },
 
7254
_LT_EOF
 
7255
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
 
7256
          cat <<\_LT_EOF >> conftest.$ac_ext
 
7257
  {0, (void *) 0}
 
7258
};
 
7259
 
 
7260
/* This works around a problem in FreeBSD linker */
 
7261
#ifdef FREEBSD_WORKAROUND
 
7262
static const void *lt_preloaded_setup() {
 
7263
  return lt__PROGRAM__LTX_preloaded_symbols;
 
7264
}
 
7265
#endif
 
7266
 
 
7267
#ifdef __cplusplus
 
7268
}
 
7269
#endif
 
7270
_LT_EOF
 
7271
          # Now try linking the two files.
 
7272
          mv conftest.$ac_objext conftstm.$ac_objext
 
7273
          lt_save_LIBS="$LIBS"
 
7274
          lt_save_CFLAGS="$CFLAGS"
 
7275
          LIBS="conftstm.$ac_objext"
 
7276
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7277
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7278
  (eval $ac_link) 2>&5
 
7279
  ac_status=$?
 
7280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7281
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
7282
            pipe_works=yes
 
7283
          fi
 
7284
          LIBS="$lt_save_LIBS"
 
7285
          CFLAGS="$lt_save_CFLAGS"
 
7286
        else
 
7287
          echo "cannot find nm_test_func in $nlist" >&5
 
7288
        fi
 
7289
      else
 
7290
        echo "cannot find nm_test_var in $nlist" >&5
 
7291
      fi
 
7292
    else
 
7293
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
7294
    fi
 
7295
  else
 
7296
    echo "$progname: failed program was:" >&5
 
7297
    cat conftest.$ac_ext >&5
 
7298
  fi
 
7299
  rm -rf conftest* conftst*
 
7300
 
 
7301
  # Do not use the global_symbol_pipe unless it works.
 
7302
  if test "$pipe_works" = yes; then
 
7303
    break
 
7304
  else
 
7305
    lt_cv_sys_global_symbol_pipe=
 
7306
  fi
 
7307
done
 
7308
 
 
7309
fi
 
7310
 
 
7311
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
7312
  lt_cv_sys_global_symbol_to_cdecl=
 
7313
fi
 
7314
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7315
  { echo "$as_me:$LINENO: result: failed" >&5
 
7316
echo "${ECHO_T}failed" >&6; }
 
7317
else
 
7318
  { echo "$as_me:$LINENO: result: ok" >&5
 
7319
echo "${ECHO_T}ok" >&6; }
 
7320
fi
 
7321
 
 
7322
 
 
7323
 
 
7324
 
 
7325
 
 
7326
 
 
7327
 
 
7328
 
 
7329
 
 
7330
 
 
7331
 
 
7332
 
 
7333
 
 
7334
 
 
7335
 
 
7336
 
 
7337
 
 
7338
 
 
7339
 
 
7340
 
 
7341
 
 
7342
 
 
7343
# Check whether --enable-libtool-lock was given.
 
7344
if test "${enable_libtool_lock+set}" = set; then
 
7345
  enableval=$enable_libtool_lock;
 
7346
fi
 
7347
 
 
7348
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7349
 
 
7350
# Some flags need to be propagated to the compiler or linker for good
 
7351
# libtool support.
 
7352
case $host in
 
7353
ia64-*-hpux*)
 
7354
  # Find out which ABI we are using.
 
7355
  echo 'int i;' > conftest.$ac_ext
 
7356
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7357
  (eval $ac_compile) 2>&5
 
7358
  ac_status=$?
 
7359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7360
  (exit $ac_status); }; then
 
7361
    case `/usr/bin/file conftest.$ac_objext` in
 
7362
      *ELF-32*)
 
7363
        HPUX_IA64_MODE="32"
 
7364
        ;;
 
7365
      *ELF-64*)
 
7366
        HPUX_IA64_MODE="64"
 
7367
        ;;
 
7368
    esac
 
7369
  fi
 
7370
  rm -rf conftest*
 
7371
  ;;
 
7372
*-*-irix6*)
 
7373
  # Find out which ABI we are using.
 
7374
  echo '#line 7374 "configure"' > conftest.$ac_ext
 
7375
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7376
  (eval $ac_compile) 2>&5
 
7377
  ac_status=$?
 
7378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7379
  (exit $ac_status); }; then
 
7380
    if test "$lt_cv_prog_gnu_ld" = yes; then
 
7381
      case `/usr/bin/file conftest.$ac_objext` in
 
7382
        *32-bit*)
 
7383
          LD="${LD-ld} -melf32bsmip"
 
7384
          ;;
 
7385
        *N32*)
 
7386
          LD="${LD-ld} -melf32bmipn32"
 
7387
          ;;
 
7388
        *64-bit*)
 
7389
          LD="${LD-ld} -melf64bmip"
 
7390
        ;;
 
7391
      esac
 
7392
    else
 
7393
      case `/usr/bin/file conftest.$ac_objext` in
 
7394
        *32-bit*)
 
7395
          LD="${LD-ld} -32"
 
7396
          ;;
 
7397
        *N32*)
 
7398
          LD="${LD-ld} -n32"
 
7399
          ;;
 
7400
        *64-bit*)
 
7401
          LD="${LD-ld} -64"
 
7402
          ;;
 
7403
      esac
 
7404
    fi
 
7405
  fi
 
7406
  rm -rf conftest*
 
7407
  ;;
 
7408
 
 
7409
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
7410
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
 
7411
  # Find out which ABI we are using.
 
7412
  echo 'int i;' > conftest.$ac_ext
 
7413
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7414
  (eval $ac_compile) 2>&5
 
7415
  ac_status=$?
 
7416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7417
  (exit $ac_status); }; then
 
7418
    case `/usr/bin/file conftest.o` in
 
7419
      *32-bit*)
 
7420
        case $host in
 
7421
          x86_64-*kfreebsd*-gnu)
 
7422
            LD="${LD-ld} -m elf_i386_fbsd"
 
7423
            ;;
 
7424
          x86_64-*linux*)
 
7425
            LD="${LD-ld} -m elf_i386"
 
7426
            ;;
 
7427
          ppc64-*linux*|powerpc64-*linux*)
 
7428
            LD="${LD-ld} -m elf32ppclinux"
 
7429
            ;;
 
7430
          s390x-*linux*)
 
7431
            LD="${LD-ld} -m elf_s390"
 
7432
            ;;
 
7433
          sparc64-*linux*)
 
7434
            LD="${LD-ld} -m elf32_sparc"
 
7435
            ;;
 
7436
        esac
 
7437
        ;;
 
7438
      *64-bit*)
 
7439
        case $host in
 
7440
          x86_64-*kfreebsd*-gnu)
 
7441
            LD="${LD-ld} -m elf_x86_64_fbsd"
 
7442
            ;;
 
7443
          x86_64-*linux*)
 
7444
            LD="${LD-ld} -m elf_x86_64"
 
7445
            ;;
 
7446
          ppc*-*linux*|powerpc*-*linux*)
 
7447
            LD="${LD-ld} -m elf64ppc"
 
7448
            ;;
 
7449
          s390*-*linux*|s390*-*tpf*)
 
7450
            LD="${LD-ld} -m elf64_s390"
 
7451
            ;;
 
7452
          sparc*-*linux*)
 
7453
            LD="${LD-ld} -m elf64_sparc"
 
7454
            ;;
 
7455
        esac
 
7456
        ;;
 
7457
    esac
 
7458
  fi
 
7459
  rm -rf conftest*
 
7460
  ;;
 
7461
 
 
7462
*-*-sco3.2v5*)
 
7463
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
7464
  SAVE_CFLAGS="$CFLAGS"
 
7465
  CFLAGS="$CFLAGS -belf"
 
7466
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
7467
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
7468
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
7469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7470
else
 
7471
  ac_ext=c
 
7472
ac_cpp='$CPP $CPPFLAGS'
 
7473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7476
 
 
7477
     cat >conftest.$ac_ext <<_ACEOF
 
7478
/* confdefs.h.  */
 
7479
_ACEOF
 
7480
cat confdefs.h >>conftest.$ac_ext
 
7481
cat >>conftest.$ac_ext <<_ACEOF
 
7482
/* end confdefs.h.  */
 
7483
 
 
7484
int
 
7485
main ()
 
7486
{
 
7487
 
 
7488
  ;
 
7489
  return 0;
 
7490
}
 
7491
_ACEOF
 
7492
rm -f conftest.$ac_objext conftest$ac_exeext
 
7493
if { (ac_try="$ac_link"
 
7494
case "(($ac_try" in
 
7495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7496
  *) ac_try_echo=$ac_try;;
 
7497
esac
 
7498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7499
  (eval "$ac_link") 2>conftest.er1
 
7500
  ac_status=$?
 
7501
  grep -v '^ *+' conftest.er1 >conftest.err
 
7502
  rm -f conftest.er1
 
7503
  cat conftest.err >&5
 
7504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7505
  (exit $ac_status); } && {
 
7506
         test -z "$ac_c_werror_flag" ||
 
7507
         test ! -s conftest.err
 
7508
       } && test -s conftest$ac_exeext &&
 
7509
       $as_test_x conftest$ac_exeext; then
 
7510
  lt_cv_cc_needs_belf=yes
 
7511
else
 
7512
  echo "$as_me: failed program was:" >&5
 
7513
sed 's/^/| /' conftest.$ac_ext >&5
 
7514
 
 
7515
        lt_cv_cc_needs_belf=no
 
7516
fi
 
7517
 
 
7518
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7519
      conftest$ac_exeext conftest.$ac_ext
 
7520
     ac_ext=c
 
7521
ac_cpp='$CPP $CPPFLAGS'
 
7522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7525
 
 
7526
fi
 
7527
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
7528
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
7529
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
7530
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
7531
    CFLAGS="$SAVE_CFLAGS"
 
7532
  fi
 
7533
  ;;
 
7534
sparc*-*solaris*)
 
7535
  # Find out which ABI we are using.
 
7536
  echo 'int i;' > conftest.$ac_ext
 
7537
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7538
  (eval $ac_compile) 2>&5
 
7539
  ac_status=$?
 
7540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7541
  (exit $ac_status); }; then
 
7542
    case `/usr/bin/file conftest.o` in
 
7543
    *64-bit*)
 
7544
      case $lt_cv_prog_gnu_ld in
 
7545
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
7546
      *)
 
7547
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
7548
          LD="${LD-ld} -64"
 
7549
        fi
 
7550
        ;;
 
7551
      esac
 
7552
      ;;
 
7553
    esac
 
7554
  fi
 
7555
  rm -rf conftest*
 
7556
  ;;
 
7557
esac
 
7558
 
 
7559
need_locks="$enable_libtool_lock"
 
7560
 
 
7561
 
 
7562
  case $host_os in
 
7563
    rhapsody* | darwin*)
 
7564
    if test -n "$ac_tool_prefix"; then
 
7565
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7566
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7567
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7568
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7569
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7571
else
 
7572
  if test -n "$DSYMUTIL"; then
 
7573
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7574
else
 
7575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7576
for as_dir in $PATH
 
7577
do
 
7578
  IFS=$as_save_IFS
 
7579
  test -z "$as_dir" && as_dir=.
 
7580
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7581
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7582
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7583
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7584
    break 2
 
7585
  fi
 
7586
done
 
7587
done
 
7588
IFS=$as_save_IFS
 
7589
 
 
7590
fi
 
7591
fi
 
7592
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7593
if test -n "$DSYMUTIL"; then
 
7594
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7595
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7596
else
 
7597
  { echo "$as_me:$LINENO: result: no" >&5
 
7598
echo "${ECHO_T}no" >&6; }
 
7599
fi
 
7600
 
 
7601
 
 
7602
fi
 
7603
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7604
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7605
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7606
set dummy dsymutil; ac_word=$2
 
7607
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7608
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7609
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7610
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7611
else
 
7612
  if test -n "$ac_ct_DSYMUTIL"; then
 
7613
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7614
else
 
7615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7616
for as_dir in $PATH
 
7617
do
 
7618
  IFS=$as_save_IFS
 
7619
  test -z "$as_dir" && as_dir=.
 
7620
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7621
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7622
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7623
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7624
    break 2
 
7625
  fi
 
7626
done
 
7627
done
 
7628
IFS=$as_save_IFS
 
7629
 
 
7630
fi
 
7631
fi
 
7632
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7633
if test -n "$ac_ct_DSYMUTIL"; then
 
7634
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7635
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7636
else
 
7637
  { echo "$as_me:$LINENO: result: no" >&5
 
7638
echo "${ECHO_T}no" >&6; }
 
7639
fi
 
7640
 
 
7641
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7642
    DSYMUTIL=":"
 
7643
  else
 
7644
    case $cross_compiling:$ac_tool_warned in
 
7645
yes:)
 
7646
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7647
whose name does not start with the host triplet.  If you think this
 
7648
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7649
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7650
whose name does not start with the host triplet.  If you think this
 
7651
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7652
ac_tool_warned=yes ;;
 
7653
esac
 
7654
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7655
  fi
 
7656
else
 
7657
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7658
fi
 
7659
 
 
7660
    if test -n "$ac_tool_prefix"; then
 
7661
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7662
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7663
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7665
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7667
else
 
7668
  if test -n "$NMEDIT"; then
 
7669
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7670
else
 
7671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7672
for as_dir in $PATH
 
7673
do
 
7674
  IFS=$as_save_IFS
 
7675
  test -z "$as_dir" && as_dir=.
 
7676
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7677
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7678
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7680
    break 2
 
7681
  fi
 
7682
done
 
7683
done
 
7684
IFS=$as_save_IFS
 
7685
 
 
7686
fi
 
7687
fi
 
7688
NMEDIT=$ac_cv_prog_NMEDIT
 
7689
if test -n "$NMEDIT"; then
 
7690
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7691
echo "${ECHO_T}$NMEDIT" >&6; }
 
7692
else
 
7693
  { echo "$as_me:$LINENO: result: no" >&5
 
7694
echo "${ECHO_T}no" >&6; }
 
7695
fi
 
7696
 
 
7697
 
 
7698
fi
 
7699
if test -z "$ac_cv_prog_NMEDIT"; then
 
7700
  ac_ct_NMEDIT=$NMEDIT
 
7701
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7702
set dummy nmedit; ac_word=$2
 
7703
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7705
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7707
else
 
7708
  if test -n "$ac_ct_NMEDIT"; then
 
7709
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7710
else
 
7711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7712
for as_dir in $PATH
 
7713
do
 
7714
  IFS=$as_save_IFS
 
7715
  test -z "$as_dir" && as_dir=.
 
7716
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7717
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7718
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7719
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7720
    break 2
 
7721
  fi
 
7722
done
 
7723
done
 
7724
IFS=$as_save_IFS
 
7725
 
 
7726
fi
 
7727
fi
 
7728
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7729
if test -n "$ac_ct_NMEDIT"; then
 
7730
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7731
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7732
else
 
7733
  { echo "$as_me:$LINENO: result: no" >&5
 
7734
echo "${ECHO_T}no" >&6; }
 
7735
fi
 
7736
 
 
7737
  if test "x$ac_ct_NMEDIT" = x; then
 
7738
    NMEDIT=":"
 
7739
  else
 
7740
    case $cross_compiling:$ac_tool_warned in
 
7741
yes:)
 
7742
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7743
whose name does not start with the host triplet.  If you think this
 
7744
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7745
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7746
whose name does not start with the host triplet.  If you think this
 
7747
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7748
ac_tool_warned=yes ;;
 
7749
esac
 
7750
    NMEDIT=$ac_ct_NMEDIT
 
7751
  fi
 
7752
else
 
7753
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7754
fi
 
7755
 
 
7756
    if test -n "$ac_tool_prefix"; then
 
7757
  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
 
7758
set dummy ${ac_tool_prefix}lipo; ac_word=$2
 
7759
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7761
if test "${ac_cv_prog_LIPO+set}" = set; then
 
7762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7763
else
 
7764
  if test -n "$LIPO"; then
 
7765
  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
 
7766
else
 
7767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7768
for as_dir in $PATH
 
7769
do
 
7770
  IFS=$as_save_IFS
 
7771
  test -z "$as_dir" && as_dir=.
 
7772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7774
    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
 
7775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7776
    break 2
 
7777
  fi
 
7778
done
 
7779
done
 
7780
IFS=$as_save_IFS
 
7781
 
 
7782
fi
 
7783
fi
 
7784
LIPO=$ac_cv_prog_LIPO
 
7785
if test -n "$LIPO"; then
 
7786
  { echo "$as_me:$LINENO: result: $LIPO" >&5
 
7787
echo "${ECHO_T}$LIPO" >&6; }
 
7788
else
 
7789
  { echo "$as_me:$LINENO: result: no" >&5
 
7790
echo "${ECHO_T}no" >&6; }
 
7791
fi
 
7792
 
 
7793
 
 
7794
fi
 
7795
if test -z "$ac_cv_prog_LIPO"; then
 
7796
  ac_ct_LIPO=$LIPO
 
7797
  # Extract the first word of "lipo", so it can be a program name with args.
 
7798
set dummy lipo; ac_word=$2
 
7799
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7800
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7801
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
 
7802
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7803
else
 
7804
  if test -n "$ac_ct_LIPO"; then
 
7805
  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
 
7806
else
 
7807
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7808
for as_dir in $PATH
 
7809
do
 
7810
  IFS=$as_save_IFS
 
7811
  test -z "$as_dir" && as_dir=.
 
7812
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7813
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7814
    ac_cv_prog_ac_ct_LIPO="lipo"
 
7815
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7816
    break 2
 
7817
  fi
 
7818
done
 
7819
done
 
7820
IFS=$as_save_IFS
 
7821
 
 
7822
fi
 
7823
fi
 
7824
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
 
7825
if test -n "$ac_ct_LIPO"; then
 
7826
  { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
 
7827
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
 
7828
else
 
7829
  { echo "$as_me:$LINENO: result: no" >&5
 
7830
echo "${ECHO_T}no" >&6; }
 
7831
fi
 
7832
 
 
7833
  if test "x$ac_ct_LIPO" = x; then
 
7834
    LIPO=":"
 
7835
  else
 
7836
    case $cross_compiling:$ac_tool_warned in
 
7837
yes:)
 
7838
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7839
whose name does not start with the host triplet.  If you think this
 
7840
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7841
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7842
whose name does not start with the host triplet.  If you think this
 
7843
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7844
ac_tool_warned=yes ;;
 
7845
esac
 
7846
    LIPO=$ac_ct_LIPO
 
7847
  fi
 
7848
else
 
7849
  LIPO="$ac_cv_prog_LIPO"
 
7850
fi
 
7851
 
 
7852
    if test -n "$ac_tool_prefix"; then
 
7853
  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
 
7854
set dummy ${ac_tool_prefix}otool; ac_word=$2
 
7855
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7856
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7857
if test "${ac_cv_prog_OTOOL+set}" = set; then
 
7858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7859
else
 
7860
  if test -n "$OTOOL"; then
 
7861
  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
 
7862
else
 
7863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7864
for as_dir in $PATH
 
7865
do
 
7866
  IFS=$as_save_IFS
 
7867
  test -z "$as_dir" && as_dir=.
 
7868
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7869
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7870
    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
 
7871
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7872
    break 2
 
7873
  fi
 
7874
done
 
7875
done
 
7876
IFS=$as_save_IFS
 
7877
 
 
7878
fi
 
7879
fi
 
7880
OTOOL=$ac_cv_prog_OTOOL
 
7881
if test -n "$OTOOL"; then
 
7882
  { echo "$as_me:$LINENO: result: $OTOOL" >&5
 
7883
echo "${ECHO_T}$OTOOL" >&6; }
 
7884
else
 
7885
  { echo "$as_me:$LINENO: result: no" >&5
 
7886
echo "${ECHO_T}no" >&6; }
 
7887
fi
 
7888
 
 
7889
 
 
7890
fi
 
7891
if test -z "$ac_cv_prog_OTOOL"; then
 
7892
  ac_ct_OTOOL=$OTOOL
 
7893
  # Extract the first word of "otool", so it can be a program name with args.
 
7894
set dummy otool; ac_word=$2
 
7895
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7896
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7897
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
 
7898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7899
else
 
7900
  if test -n "$ac_ct_OTOOL"; then
 
7901
  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
 
7902
else
 
7903
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7904
for as_dir in $PATH
 
7905
do
 
7906
  IFS=$as_save_IFS
 
7907
  test -z "$as_dir" && as_dir=.
 
7908
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7909
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7910
    ac_cv_prog_ac_ct_OTOOL="otool"
 
7911
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7912
    break 2
 
7913
  fi
 
7914
done
 
7915
done
 
7916
IFS=$as_save_IFS
 
7917
 
 
7918
fi
 
7919
fi
 
7920
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
 
7921
if test -n "$ac_ct_OTOOL"; then
 
7922
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
 
7923
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
 
7924
else
 
7925
  { echo "$as_me:$LINENO: result: no" >&5
 
7926
echo "${ECHO_T}no" >&6; }
 
7927
fi
 
7928
 
 
7929
  if test "x$ac_ct_OTOOL" = x; then
 
7930
    OTOOL=":"
 
7931
  else
 
7932
    case $cross_compiling:$ac_tool_warned in
 
7933
yes:)
 
7934
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7935
whose name does not start with the host triplet.  If you think this
 
7936
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7937
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7938
whose name does not start with the host triplet.  If you think this
 
7939
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7940
ac_tool_warned=yes ;;
 
7941
esac
 
7942
    OTOOL=$ac_ct_OTOOL
 
7943
  fi
 
7944
else
 
7945
  OTOOL="$ac_cv_prog_OTOOL"
 
7946
fi
 
7947
 
 
7948
    if test -n "$ac_tool_prefix"; then
 
7949
  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
 
7950
set dummy ${ac_tool_prefix}otool64; ac_word=$2
 
7951
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7953
if test "${ac_cv_prog_OTOOL64+set}" = set; then
 
7954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7955
else
 
7956
  if test -n "$OTOOL64"; then
 
7957
  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
 
7958
else
 
7959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7960
for as_dir in $PATH
 
7961
do
 
7962
  IFS=$as_save_IFS
 
7963
  test -z "$as_dir" && as_dir=.
 
7964
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7965
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7966
    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
 
7967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7968
    break 2
 
7969
  fi
 
7970
done
 
7971
done
 
7972
IFS=$as_save_IFS
 
7973
 
 
7974
fi
 
7975
fi
 
7976
OTOOL64=$ac_cv_prog_OTOOL64
 
7977
if test -n "$OTOOL64"; then
 
7978
  { echo "$as_me:$LINENO: result: $OTOOL64" >&5
 
7979
echo "${ECHO_T}$OTOOL64" >&6; }
 
7980
else
 
7981
  { echo "$as_me:$LINENO: result: no" >&5
 
7982
echo "${ECHO_T}no" >&6; }
 
7983
fi
 
7984
 
 
7985
 
 
7986
fi
 
7987
if test -z "$ac_cv_prog_OTOOL64"; then
 
7988
  ac_ct_OTOOL64=$OTOOL64
 
7989
  # Extract the first word of "otool64", so it can be a program name with args.
 
7990
set dummy otool64; ac_word=$2
 
7991
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7993
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
 
7994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7995
else
 
7996
  if test -n "$ac_ct_OTOOL64"; then
 
7997
  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
 
7998
else
 
7999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8000
for as_dir in $PATH
 
8001
do
 
8002
  IFS=$as_save_IFS
 
8003
  test -z "$as_dir" && as_dir=.
 
8004
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8005
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8006
    ac_cv_prog_ac_ct_OTOOL64="otool64"
 
8007
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8008
    break 2
 
8009
  fi
 
8010
done
 
8011
done
 
8012
IFS=$as_save_IFS
 
8013
 
 
8014
fi
 
8015
fi
 
8016
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
 
8017
if test -n "$ac_ct_OTOOL64"; then
 
8018
  { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
 
8019
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
 
8020
else
 
8021
  { echo "$as_me:$LINENO: result: no" >&5
 
8022
echo "${ECHO_T}no" >&6; }
 
8023
fi
 
8024
 
 
8025
  if test "x$ac_ct_OTOOL64" = x; then
 
8026
    OTOOL64=":"
 
8027
  else
 
8028
    case $cross_compiling:$ac_tool_warned in
 
8029
yes:)
 
8030
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8031
whose name does not start with the host triplet.  If you think this
 
8032
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8033
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8034
whose name does not start with the host triplet.  If you think this
 
8035
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8036
ac_tool_warned=yes ;;
 
8037
esac
 
8038
    OTOOL64=$ac_ct_OTOOL64
 
8039
  fi
 
8040
else
 
8041
  OTOOL64="$ac_cv_prog_OTOOL64"
 
8042
fi
 
8043
 
 
8044
 
 
8045
 
 
8046
 
 
8047
 
 
8048
 
 
8049
 
 
8050
 
 
8051
 
 
8052
 
 
8053
 
 
8054
 
 
8055
 
 
8056
 
 
8057
 
 
8058
 
 
8059
 
 
8060
 
 
8061
 
 
8062
 
 
8063
 
 
8064
 
 
8065
 
 
8066
 
 
8067
 
 
8068
 
 
8069
 
 
8070
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
8071
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
8072
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
8073
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8074
else
 
8075
  lt_cv_apple_cc_single_mod=no
 
8076
      if test -z "${LT_MULTI_MODULE}"; then
 
8077
        # By default we will add the -single_module flag. You can override
 
8078
        # by either setting the environment variable LT_MULTI_MODULE
 
8079
        # non-empty at configure time, or by adding -multi_module to the
 
8080
        # link flags.
 
8081
        rm -rf libconftest.dylib*
 
8082
        echo "int foo(void){return 1;}" > conftest.c
 
8083
        echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8084
-dynamiclib -Wl,-single_module conftest.c" >&5
 
8085
        $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
8086
          -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
 
8087
        _lt_result=$?
 
8088
        if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
 
8089
          lt_cv_apple_cc_single_mod=yes
 
8090
        else
 
8091
          cat conftest.err >&5
 
8092
        fi
 
8093
        rm -rf libconftest.dylib*
 
8094
        rm -f conftest.*
 
8095
      fi
 
8096
fi
 
8097
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
8098
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
8099
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
8100
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
8101
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
8102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8103
else
 
8104
  lt_cv_ld_exported_symbols_list=no
 
8105
      save_LDFLAGS=$LDFLAGS
 
8106
      echo "_main" > conftest.sym
 
8107
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
8108
      cat >conftest.$ac_ext <<_ACEOF
 
8109
/* confdefs.h.  */
 
8110
_ACEOF
 
8111
cat confdefs.h >>conftest.$ac_ext
 
8112
cat >>conftest.$ac_ext <<_ACEOF
 
8113
/* end confdefs.h.  */
 
8114
 
 
8115
int
 
8116
main ()
 
8117
{
 
8118
 
 
8119
  ;
 
8120
  return 0;
 
8121
}
 
8122
_ACEOF
 
8123
rm -f conftest.$ac_objext conftest$ac_exeext
 
8124
if { (ac_try="$ac_link"
 
8125
case "(($ac_try" in
 
8126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8127
  *) ac_try_echo=$ac_try;;
 
8128
esac
 
8129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8130
  (eval "$ac_link") 2>conftest.er1
 
8131
  ac_status=$?
 
8132
  grep -v '^ *+' conftest.er1 >conftest.err
 
8133
  rm -f conftest.er1
 
8134
  cat conftest.err >&5
 
8135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8136
  (exit $ac_status); } && {
 
8137
         test -z "$ac_c_werror_flag" ||
 
8138
         test ! -s conftest.err
 
8139
       } && test -s conftest$ac_exeext &&
 
8140
       $as_test_x conftest$ac_exeext; then
 
8141
  lt_cv_ld_exported_symbols_list=yes
 
8142
else
 
8143
  echo "$as_me: failed program was:" >&5
 
8144
sed 's/^/| /' conftest.$ac_ext >&5
 
8145
 
 
8146
        lt_cv_ld_exported_symbols_list=no
 
8147
fi
 
8148
 
 
8149
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8150
      conftest$ac_exeext conftest.$ac_ext
 
8151
        LDFLAGS="$save_LDFLAGS"
 
8152
 
 
8153
fi
 
8154
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
8155
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
8156
    case $host_os in
 
8157
    rhapsody* | darwin1.[012])
 
8158
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
8159
    darwin1.*)
 
8160
      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8161
    darwin*) # darwin 5.x on
 
8162
      # if running on 10.5 or later, the deployment target defaults
 
8163
      # to the OS version, if on x86, and 10.4, the deployment
 
8164
      # target defaults to 10.4. Don't you love it?
 
8165
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
8166
        10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
8167
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8168
        10.[012]*)
 
8169
          _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
8170
        10.*)
 
8171
          _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
8172
      esac
 
8173
    ;;
 
8174
  esac
 
8175
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
8176
      _lt_dar_single_mod='$single_module'
 
8177
    fi
 
8178
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
8179
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
8180
    else
 
8181
      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8182
    fi
 
8183
    if test "$DSYMUTIL" != ":"; then
 
8184
      _lt_dsymutil='~$DSYMUTIL $lib || :'
 
8185
    else
 
8186
      _lt_dsymutil=
 
8187
    fi
 
8188
    ;;
 
8189
  esac
 
8190
 
 
8191
 
 
8192
for ac_header in dlfcn.h
 
8193
do
 
8194
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
8195
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
8196
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
8197
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
8198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8199
else
 
8200
  cat >conftest.$ac_ext <<_ACEOF
 
8201
/* confdefs.h.  */
 
8202
_ACEOF
 
8203
cat confdefs.h >>conftest.$ac_ext
 
8204
cat >>conftest.$ac_ext <<_ACEOF
 
8205
/* end confdefs.h.  */
 
8206
$ac_includes_default
 
8207
 
 
8208
#include <$ac_header>
 
8209
_ACEOF
 
8210
rm -f conftest.$ac_objext
 
8211
if { (ac_try="$ac_compile"
 
8212
case "(($ac_try" in
 
8213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8214
  *) ac_try_echo=$ac_try;;
 
8215
esac
 
8216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8217
  (eval "$ac_compile") 2>conftest.er1
 
8218
  ac_status=$?
 
8219
  grep -v '^ *+' conftest.er1 >conftest.err
 
8220
  rm -f conftest.er1
 
8221
  cat conftest.err >&5
 
8222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8223
  (exit $ac_status); } && {
 
8224
         test -z "$ac_c_werror_flag" ||
 
8225
         test ! -s conftest.err
 
8226
       } && test -s conftest.$ac_objext; then
 
8227
  eval "$as_ac_Header=yes"
 
8228
else
 
8229
  echo "$as_me: failed program was:" >&5
 
8230
sed 's/^/| /' conftest.$ac_ext >&5
 
8231
 
 
8232
        eval "$as_ac_Header=no"
 
8233
fi
 
8234
 
 
8235
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8236
fi
 
8237
ac_res=`eval echo '${'$as_ac_Header'}'`
 
8238
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8239
echo "${ECHO_T}$ac_res" >&6; }
 
8240
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
8241
  cat >>confdefs.h <<_ACEOF
 
8242
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
8243
_ACEOF
 
8244
 
 
8245
fi
 
8246
 
 
8247
done
 
8248
 
 
8249
 
 
8250
 
 
8251
ac_ext=cpp
 
8252
ac_cpp='$CXXCPP $CPPFLAGS'
 
8253
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8254
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8255
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8256
if test -z "$CXX"; then
 
8257
  if test -n "$CCC"; then
 
8258
    CXX=$CCC
 
8259
  else
 
8260
    if test -n "$ac_tool_prefix"; then
 
8261
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
8262
  do
 
8263
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
8264
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
8265
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8266
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8267
if test "${ac_cv_prog_CXX+set}" = set; then
 
8268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8269
else
 
8270
  if test -n "$CXX"; then
 
8271
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
8272
else
 
8273
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8274
for as_dir in $PATH
 
8275
do
 
8276
  IFS=$as_save_IFS
 
8277
  test -z "$as_dir" && as_dir=.
 
8278
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8279
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8280
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
8281
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8282
    break 2
 
8283
  fi
 
8284
done
 
8285
done
 
8286
IFS=$as_save_IFS
 
8287
 
 
8288
fi
 
8289
fi
 
8290
CXX=$ac_cv_prog_CXX
 
8291
if test -n "$CXX"; then
 
8292
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
8293
echo "${ECHO_T}$CXX" >&6; }
 
8294
else
 
8295
  { echo "$as_me:$LINENO: result: no" >&5
 
8296
echo "${ECHO_T}no" >&6; }
 
8297
fi
 
8298
 
 
8299
 
 
8300
    test -n "$CXX" && break
 
8301
  done
 
8302
fi
 
8303
if test -z "$CXX"; then
 
8304
  ac_ct_CXX=$CXX
 
8305
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
8306
do
 
8307
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
8308
set dummy $ac_prog; ac_word=$2
 
8309
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
8310
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
8311
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
8312
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8313
else
 
8314
  if test -n "$ac_ct_CXX"; then
 
8315
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
8316
else
 
8317
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
8318
for as_dir in $PATH
 
8319
do
 
8320
  IFS=$as_save_IFS
 
8321
  test -z "$as_dir" && as_dir=.
 
8322
  for ac_exec_ext in '' $ac_executable_extensions; do
 
8323
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
8324
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
8325
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
8326
    break 2
 
8327
  fi
 
8328
done
 
8329
done
 
8330
IFS=$as_save_IFS
 
8331
 
 
8332
fi
 
8333
fi
 
8334
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
8335
if test -n "$ac_ct_CXX"; then
 
8336
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
8337
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
8338
else
 
8339
  { echo "$as_me:$LINENO: result: no" >&5
 
8340
echo "${ECHO_T}no" >&6; }
 
8341
fi
 
8342
 
 
8343
 
 
8344
  test -n "$ac_ct_CXX" && break
 
8345
done
 
8346
 
 
8347
  if test "x$ac_ct_CXX" = x; then
 
8348
    CXX="g++"
 
8349
  else
 
8350
    case $cross_compiling:$ac_tool_warned in
 
8351
yes:)
 
8352
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
8353
whose name does not start with the host triplet.  If you think this
 
8354
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
8355
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
8356
whose name does not start with the host triplet.  If you think this
 
8357
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
8358
ac_tool_warned=yes ;;
 
8359
esac
 
8360
    CXX=$ac_ct_CXX
 
8361
  fi
 
8362
fi
 
8363
 
 
8364
  fi
 
8365
fi
 
8366
# Provide some information about the compiler.
 
8367
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
8368
ac_compiler=`set X $ac_compile; echo $2`
 
8369
{ (ac_try="$ac_compiler --version >&5"
 
8370
case "(($ac_try" in
 
8371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8372
  *) ac_try_echo=$ac_try;;
 
8373
esac
 
8374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8375
  (eval "$ac_compiler --version >&5") 2>&5
 
8376
  ac_status=$?
 
8377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8378
  (exit $ac_status); }
 
8379
{ (ac_try="$ac_compiler -v >&5"
 
8380
case "(($ac_try" in
 
8381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8382
  *) ac_try_echo=$ac_try;;
 
8383
esac
 
8384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8385
  (eval "$ac_compiler -v >&5") 2>&5
 
8386
  ac_status=$?
 
8387
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8388
  (exit $ac_status); }
 
8389
{ (ac_try="$ac_compiler -V >&5"
 
8390
case "(($ac_try" in
 
8391
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8392
  *) ac_try_echo=$ac_try;;
 
8393
esac
 
8394
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8395
  (eval "$ac_compiler -V >&5") 2>&5
 
8396
  ac_status=$?
 
8397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8398
  (exit $ac_status); }
 
8399
 
 
8400
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
8401
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
8402
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
8403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8404
else
 
8405
  cat >conftest.$ac_ext <<_ACEOF
 
8406
/* confdefs.h.  */
 
8407
_ACEOF
 
8408
cat confdefs.h >>conftest.$ac_ext
 
8409
cat >>conftest.$ac_ext <<_ACEOF
 
8410
/* end confdefs.h.  */
 
8411
 
 
8412
int
 
8413
main ()
 
8414
{
 
8415
#ifndef __GNUC__
 
8416
       choke me
 
8417
#endif
 
8418
 
 
8419
  ;
 
8420
  return 0;
 
8421
}
 
8422
_ACEOF
 
8423
rm -f conftest.$ac_objext
 
8424
if { (ac_try="$ac_compile"
 
8425
case "(($ac_try" in
 
8426
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8427
  *) ac_try_echo=$ac_try;;
 
8428
esac
 
8429
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8430
  (eval "$ac_compile") 2>conftest.er1
 
8431
  ac_status=$?
 
8432
  grep -v '^ *+' conftest.er1 >conftest.err
 
8433
  rm -f conftest.er1
 
8434
  cat conftest.err >&5
 
8435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8436
  (exit $ac_status); } && {
 
8437
         test -z "$ac_cxx_werror_flag" ||
 
8438
         test ! -s conftest.err
 
8439
       } && test -s conftest.$ac_objext; then
 
8440
  ac_compiler_gnu=yes
 
8441
else
 
8442
  echo "$as_me: failed program was:" >&5
 
8443
sed 's/^/| /' conftest.$ac_ext >&5
 
8444
 
 
8445
        ac_compiler_gnu=no
 
8446
fi
 
8447
 
 
8448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8449
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
8450
 
 
8451
fi
 
8452
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
8453
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
8454
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
8455
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
8456
ac_save_CXXFLAGS=$CXXFLAGS
 
8457
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
8458
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
8459
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
8460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8461
else
 
8462
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
8463
   ac_cxx_werror_flag=yes
 
8464
   ac_cv_prog_cxx_g=no
 
8465
   CXXFLAGS="-g"
 
8466
   cat >conftest.$ac_ext <<_ACEOF
 
8467
/* confdefs.h.  */
 
8468
_ACEOF
 
8469
cat confdefs.h >>conftest.$ac_ext
 
8470
cat >>conftest.$ac_ext <<_ACEOF
 
8471
/* end confdefs.h.  */
 
8472
 
 
8473
int
 
8474
main ()
 
8475
{
 
8476
 
 
8477
  ;
 
8478
  return 0;
 
8479
}
 
8480
_ACEOF
 
8481
rm -f conftest.$ac_objext
 
8482
if { (ac_try="$ac_compile"
 
8483
case "(($ac_try" in
 
8484
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8485
  *) ac_try_echo=$ac_try;;
 
8486
esac
 
8487
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8488
  (eval "$ac_compile") 2>conftest.er1
 
8489
  ac_status=$?
 
8490
  grep -v '^ *+' conftest.er1 >conftest.err
 
8491
  rm -f conftest.er1
 
8492
  cat conftest.err >&5
 
8493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8494
  (exit $ac_status); } && {
 
8495
         test -z "$ac_cxx_werror_flag" ||
 
8496
         test ! -s conftest.err
 
8497
       } && test -s conftest.$ac_objext; then
 
8498
  ac_cv_prog_cxx_g=yes
 
8499
else
 
8500
  echo "$as_me: failed program was:" >&5
 
8501
sed 's/^/| /' conftest.$ac_ext >&5
 
8502
 
 
8503
        CXXFLAGS=""
 
8504
      cat >conftest.$ac_ext <<_ACEOF
 
8505
/* confdefs.h.  */
 
8506
_ACEOF
 
8507
cat confdefs.h >>conftest.$ac_ext
 
8508
cat >>conftest.$ac_ext <<_ACEOF
 
8509
/* end confdefs.h.  */
 
8510
 
 
8511
int
 
8512
main ()
 
8513
{
 
8514
 
 
8515
  ;
 
8516
  return 0;
 
8517
}
 
8518
_ACEOF
 
8519
rm -f conftest.$ac_objext
 
8520
if { (ac_try="$ac_compile"
 
8521
case "(($ac_try" in
 
8522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8523
  *) ac_try_echo=$ac_try;;
 
8524
esac
 
8525
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8526
  (eval "$ac_compile") 2>conftest.er1
 
8527
  ac_status=$?
 
8528
  grep -v '^ *+' conftest.er1 >conftest.err
 
8529
  rm -f conftest.er1
 
8530
  cat conftest.err >&5
 
8531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8532
  (exit $ac_status); } && {
 
8533
         test -z "$ac_cxx_werror_flag" ||
 
8534
         test ! -s conftest.err
 
8535
       } && test -s conftest.$ac_objext; then
 
8536
  :
 
8537
else
 
8538
  echo "$as_me: failed program was:" >&5
 
8539
sed 's/^/| /' conftest.$ac_ext >&5
 
8540
 
 
8541
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
8542
         CXXFLAGS="-g"
 
8543
         cat >conftest.$ac_ext <<_ACEOF
 
8544
/* confdefs.h.  */
 
8545
_ACEOF
 
8546
cat confdefs.h >>conftest.$ac_ext
 
8547
cat >>conftest.$ac_ext <<_ACEOF
 
8548
/* end confdefs.h.  */
 
8549
 
 
8550
int
 
8551
main ()
 
8552
{
 
8553
 
 
8554
  ;
 
8555
  return 0;
 
8556
}
 
8557
_ACEOF
 
8558
rm -f conftest.$ac_objext
 
8559
if { (ac_try="$ac_compile"
 
8560
case "(($ac_try" in
 
8561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8562
  *) ac_try_echo=$ac_try;;
 
8563
esac
 
8564
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8565
  (eval "$ac_compile") 2>conftest.er1
 
8566
  ac_status=$?
 
8567
  grep -v '^ *+' conftest.er1 >conftest.err
 
8568
  rm -f conftest.er1
 
8569
  cat conftest.err >&5
 
8570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8571
  (exit $ac_status); } && {
 
8572
         test -z "$ac_cxx_werror_flag" ||
 
8573
         test ! -s conftest.err
 
8574
       } && test -s conftest.$ac_objext; then
 
8575
  ac_cv_prog_cxx_g=yes
 
8576
else
 
8577
  echo "$as_me: failed program was:" >&5
 
8578
sed 's/^/| /' conftest.$ac_ext >&5
 
8579
 
 
8580
 
 
8581
fi
 
8582
 
 
8583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8584
fi
 
8585
 
 
8586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8587
fi
 
8588
 
 
8589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
8590
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
8591
fi
 
8592
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
8593
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
8594
if test "$ac_test_CXXFLAGS" = set; then
 
8595
  CXXFLAGS=$ac_save_CXXFLAGS
 
8596
elif test $ac_cv_prog_cxx_g = yes; then
 
8597
  if test "$GXX" = yes; then
 
8598
    CXXFLAGS="-g -O2"
 
8599
  else
 
8600
    CXXFLAGS="-g"
 
8601
  fi
 
8602
else
 
8603
  if test "$GXX" = yes; then
 
8604
    CXXFLAGS="-O2"
 
8605
  else
 
8606
    CXXFLAGS=
 
8607
  fi
 
8608
fi
 
8609
ac_ext=c
 
8610
ac_cpp='$CPP $CPPFLAGS'
 
8611
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8612
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8613
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8614
 
 
8615
depcc="$CXX"  am_compiler_list=
 
8616
 
 
8617
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
8618
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
8619
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
8620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8621
else
 
8622
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
8623
  # We make a subdir and do the tests there.  Otherwise we can end up
 
8624
  # making bogus files that we don't know about and never remove.  For
 
8625
  # instance it was reported that on HP-UX the gcc test will end up
 
8626
  # making a dummy file named `D' -- because `-MD' means `put the output
 
8627
  # in D'.
 
8628
  mkdir conftest.dir
 
8629
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
8630
  # using a relative directory.
 
8631
  cp "$am_depcomp" conftest.dir
 
8632
  cd conftest.dir
 
8633
  # We will build objects and dependencies in a subdirectory because
 
8634
  # it helps to detect inapplicable dependency modes.  For instance
 
8635
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
8636
  # side effect of compilation, but ICC will put the dependencies in
 
8637
  # the current directory while Tru64 will put them in the object
 
8638
  # directory.
 
8639
  mkdir sub
 
8640
 
 
8641
  am_cv_CXX_dependencies_compiler_type=none
 
8642
  if test "$am_compiler_list" = ""; then
 
8643
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
8644
  fi
 
8645
  for depmode in $am_compiler_list; do
 
8646
    # Setup a source with many dependencies, because some compilers
 
8647
    # like to wrap large dependency lists on column 80 (with \), and
 
8648
    # we should not choose a depcomp mode which is confused by this.
 
8649
    #
 
8650
    # We need to recreate these files for each test, as the compiler may
 
8651
    # overwrite some of them when testing with obscure command lines.
 
8652
    # This happens at least with the AIX C compiler.
 
8653
    : > sub/conftest.c
 
8654
    for i in 1 2 3 4 5 6; do
 
8655
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
8656
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
8657
      # Solaris 8's {/usr,}/bin/sh.
 
8658
      touch sub/conftst$i.h
 
8659
    done
 
8660
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
8661
 
 
8662
    case $depmode in
 
8663
    nosideeffect)
 
8664
      # after this tag, mechanisms are not by side-effect, so they'll
 
8665
      # only be used when explicitly requested
 
8666
      if test "x$enable_dependency_tracking" = xyes; then
 
8667
        continue
 
8668
      else
 
8669
        break
 
8670
      fi
 
8671
      ;;
 
8672
    none) break ;;
 
8673
    esac
 
8674
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
8675
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
8676
    # handle `-M -o', and we need to detect this.
 
8677
    if depmode=$depmode \
 
8678
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
8679
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
8680
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
8681
         >/dev/null 2>conftest.err &&
 
8682
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
8683
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
8684
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
8685
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
8686
      # icc doesn't choke on unknown options, it will just issue warnings
 
8687
      # or remarks (even with -Werror).  So we grep stderr for any message
 
8688
      # that says an option was ignored or not supported.
 
8689
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
8690
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
8691
      # The diagnosis changed in icc 8.0:
 
8692
      #   icc: Command line remark: option '-MP' not supported
 
8693
      if (grep 'ignoring option' conftest.err ||
 
8694
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
8695
        am_cv_CXX_dependencies_compiler_type=$depmode
 
8696
        break
 
8697
      fi
 
8698
    fi
 
8699
  done
 
8700
 
 
8701
  cd ..
 
8702
  rm -rf conftest.dir
 
8703
else
 
8704
  am_cv_CXX_dependencies_compiler_type=none
 
8705
fi
 
8706
 
 
8707
fi
 
8708
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
8709
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
8710
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
8711
 
 
8712
 if
 
8713
  test "x$enable_dependency_tracking" != xno \
 
8714
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
8715
  am__fastdepCXX_TRUE=
 
8716
  am__fastdepCXX_FALSE='#'
 
8717
else
 
8718
  am__fastdepCXX_TRUE='#'
 
8719
  am__fastdepCXX_FALSE=
 
8720
fi
 
8721
 
 
8722
 
 
8723
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
8724
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
8725
    (test "X$CXX" != "Xg++"))) ; then
 
8726
  ac_ext=cpp
 
8727
ac_cpp='$CXXCPP $CPPFLAGS'
 
8728
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8729
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8730
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
8731
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
8732
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
8733
if test -z "$CXXCPP"; then
 
8734
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
8735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8736
else
 
8737
      # Double quotes because CXXCPP needs to be expanded
 
8738
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
8739
    do
 
8740
      ac_preproc_ok=false
 
8741
for ac_cxx_preproc_warn_flag in '' yes
 
8742
do
 
8743
  # Use a header file that comes with gcc, so configuring glibc
 
8744
  # with a fresh cross-compiler works.
 
8745
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8746
  # <limits.h> exists even on freestanding compilers.
 
8747
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8748
  # not just through cpp. "Syntax error" is here to catch this case.
 
8749
  cat >conftest.$ac_ext <<_ACEOF
 
8750
/* confdefs.h.  */
 
8751
_ACEOF
 
8752
cat confdefs.h >>conftest.$ac_ext
 
8753
cat >>conftest.$ac_ext <<_ACEOF
 
8754
/* end confdefs.h.  */
 
8755
#ifdef __STDC__
 
8756
# include <limits.h>
 
8757
#else
 
8758
# include <assert.h>
 
8759
#endif
 
8760
                     Syntax error
 
8761
_ACEOF
 
8762
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8763
case "(($ac_try" in
 
8764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8765
  *) ac_try_echo=$ac_try;;
 
8766
esac
 
8767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8768
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8769
  ac_status=$?
 
8770
  grep -v '^ *+' conftest.er1 >conftest.err
 
8771
  rm -f conftest.er1
 
8772
  cat conftest.err >&5
 
8773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8774
  (exit $ac_status); } >/dev/null && {
 
8775
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
8776
         test ! -s conftest.err
 
8777
       }; then
 
8778
  :
 
8779
else
 
8780
  echo "$as_me: failed program was:" >&5
 
8781
sed 's/^/| /' conftest.$ac_ext >&5
 
8782
 
 
8783
  # Broken: fails on valid input.
 
8784
continue
 
8785
fi
 
8786
 
 
8787
rm -f conftest.err conftest.$ac_ext
 
8788
 
 
8789
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8790
  # can be detected and how.
 
8791
  cat >conftest.$ac_ext <<_ACEOF
 
8792
/* confdefs.h.  */
 
8793
_ACEOF
 
8794
cat confdefs.h >>conftest.$ac_ext
 
8795
cat >>conftest.$ac_ext <<_ACEOF
 
8796
/* end confdefs.h.  */
 
8797
#include <ac_nonexistent.h>
 
8798
_ACEOF
 
8799
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8800
case "(($ac_try" in
 
8801
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8802
  *) ac_try_echo=$ac_try;;
 
8803
esac
 
8804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8805
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8806
  ac_status=$?
 
8807
  grep -v '^ *+' conftest.er1 >conftest.err
 
8808
  rm -f conftest.er1
 
8809
  cat conftest.err >&5
 
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8811
  (exit $ac_status); } >/dev/null && {
 
8812
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
8813
         test ! -s conftest.err
 
8814
       }; then
 
8815
  # Broken: success on invalid input.
 
8816
continue
 
8817
else
 
8818
  echo "$as_me: failed program was:" >&5
 
8819
sed 's/^/| /' conftest.$ac_ext >&5
 
8820
 
 
8821
  # Passes both tests.
 
8822
ac_preproc_ok=:
 
8823
break
 
8824
fi
 
8825
 
 
8826
rm -f conftest.err conftest.$ac_ext
 
8827
 
 
8828
done
 
8829
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8830
rm -f conftest.err conftest.$ac_ext
 
8831
if $ac_preproc_ok; then
 
8832
  break
 
8833
fi
 
8834
 
 
8835
    done
 
8836
    ac_cv_prog_CXXCPP=$CXXCPP
 
8837
 
 
8838
fi
 
8839
  CXXCPP=$ac_cv_prog_CXXCPP
 
8840
else
 
8841
  ac_cv_prog_CXXCPP=$CXXCPP
 
8842
fi
 
8843
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
8844
echo "${ECHO_T}$CXXCPP" >&6; }
 
8845
ac_preproc_ok=false
 
8846
for ac_cxx_preproc_warn_flag in '' yes
 
8847
do
 
8848
  # Use a header file that comes with gcc, so configuring glibc
 
8849
  # with a fresh cross-compiler works.
 
8850
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8851
  # <limits.h> exists even on freestanding compilers.
 
8852
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
8853
  # not just through cpp. "Syntax error" is here to catch this case.
 
8854
  cat >conftest.$ac_ext <<_ACEOF
 
8855
/* confdefs.h.  */
 
8856
_ACEOF
 
8857
cat confdefs.h >>conftest.$ac_ext
 
8858
cat >>conftest.$ac_ext <<_ACEOF
 
8859
/* end confdefs.h.  */
 
8860
#ifdef __STDC__
 
8861
# include <limits.h>
 
8862
#else
 
8863
# include <assert.h>
 
8864
#endif
 
8865
                     Syntax error
 
8866
_ACEOF
 
8867
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8868
case "(($ac_try" in
 
8869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8870
  *) ac_try_echo=$ac_try;;
 
8871
esac
 
8872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8873
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8874
  ac_status=$?
 
8875
  grep -v '^ *+' conftest.er1 >conftest.err
 
8876
  rm -f conftest.er1
 
8877
  cat conftest.err >&5
 
8878
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8879
  (exit $ac_status); } >/dev/null && {
 
8880
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
8881
         test ! -s conftest.err
 
8882
       }; then
 
8883
  :
 
8884
else
 
8885
  echo "$as_me: failed program was:" >&5
 
8886
sed 's/^/| /' conftest.$ac_ext >&5
 
8887
 
 
8888
  # Broken: fails on valid input.
 
8889
continue
 
8890
fi
 
8891
 
 
8892
rm -f conftest.err conftest.$ac_ext
 
8893
 
 
8894
  # OK, works on sane cases.  Now check whether nonexistent headers
 
8895
  # can be detected and how.
 
8896
  cat >conftest.$ac_ext <<_ACEOF
 
8897
/* confdefs.h.  */
 
8898
_ACEOF
 
8899
cat confdefs.h >>conftest.$ac_ext
 
8900
cat >>conftest.$ac_ext <<_ACEOF
 
8901
/* end confdefs.h.  */
 
8902
#include <ac_nonexistent.h>
 
8903
_ACEOF
 
8904
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8905
case "(($ac_try" in
 
8906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8907
  *) ac_try_echo=$ac_try;;
 
8908
esac
 
8909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8910
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8911
  ac_status=$?
 
8912
  grep -v '^ *+' conftest.er1 >conftest.err
 
8913
  rm -f conftest.er1
 
8914
  cat conftest.err >&5
 
8915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8916
  (exit $ac_status); } >/dev/null && {
 
8917
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
8918
         test ! -s conftest.err
 
8919
       }; then
 
8920
  # Broken: success on invalid input.
 
8921
continue
 
8922
else
 
8923
  echo "$as_me: failed program was:" >&5
 
8924
sed 's/^/| /' conftest.$ac_ext >&5
 
8925
 
 
8926
  # Passes both tests.
 
8927
ac_preproc_ok=:
 
8928
break
 
8929
fi
 
8930
 
 
8931
rm -f conftest.err conftest.$ac_ext
 
8932
 
 
8933
done
 
8934
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
8935
rm -f conftest.err conftest.$ac_ext
 
8936
if $ac_preproc_ok; then
 
8937
  :
 
8938
else
 
8939
  _lt_caught_CXX_error=yes
 
8940
fi
 
8941
 
 
8942
ac_ext=c
 
8943
ac_cpp='$CPP $CPPFLAGS'
 
8944
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8945
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8946
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8947
 
 
8948
else
 
8949
  _lt_caught_CXX_error=yes
 
8950
fi
 
8951
 
 
8952
 
 
8953
 
 
8954
 
 
8955
# Set options
 
8956
 
 
8957
 
 
8958
 
 
8959
 
 
8960
 
 
8961
            # Check whether --enable-shared was given.
 
8962
if test "${enable_shared+set}" = set; then
 
8963
  enableval=$enable_shared; p=${PACKAGE-default}
 
8964
    case $enableval in
 
8965
    yes) enable_shared=yes ;;
 
8966
    no) enable_shared=no ;;
 
8967
    *)
 
8968
      enable_shared=no
 
8969
      # Look at the argument we got.  We use all the common list separators.
 
8970
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
8971
      for pkg in $enableval; do
 
8972
        IFS="$lt_save_ifs"
 
8973
        if test "X$pkg" = "X$p"; then
 
8974
          enable_shared=yes
 
8975
        fi
 
8976
      done
 
8977
      IFS="$lt_save_ifs"
 
8978
      ;;
 
8979
    esac
 
8980
else
 
8981
  enable_shared=yes
 
8982
fi
 
8983
 
 
8984
 
 
8985
 
 
8986
 
 
8987
 
 
8988
 
 
8989
 
 
8990
 
 
8991
 
 
8992
  # Check whether --enable-static was given.
 
8993
if test "${enable_static+set}" = set; then
 
8994
  enableval=$enable_static; p=${PACKAGE-default}
 
8995
    case $enableval in
 
8996
    yes) enable_static=yes ;;
 
8997
    no) enable_static=no ;;
 
8998
    *)
 
8999
     enable_static=no
 
9000
      # Look at the argument we got.  We use all the common list separators.
 
9001
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9002
      for pkg in $enableval; do
 
9003
        IFS="$lt_save_ifs"
 
9004
        if test "X$pkg" = "X$p"; then
 
9005
          enable_static=yes
 
9006
        fi
 
9007
      done
 
9008
      IFS="$lt_save_ifs"
 
9009
      ;;
 
9010
    esac
 
9011
else
 
9012
  enable_static=yes
 
9013
fi
 
9014
 
 
9015
 
 
9016
 
 
9017
 
 
9018
 
 
9019
 
 
9020
 
 
9021
 
 
9022
 
 
9023
 
 
9024
# Check whether --with-pic was given.
 
9025
if test "${with_pic+set}" = set; then
 
9026
  withval=$with_pic; pic_mode="$withval"
 
9027
else
 
9028
  pic_mode=default
 
9029
fi
 
9030
 
 
9031
 
 
9032
test -z "$pic_mode" && pic_mode=default
 
9033
 
 
9034
 
 
9035
 
 
9036
 
 
9037
 
 
9038
 
 
9039
 
 
9040
  # Check whether --enable-fast-install was given.
 
9041
if test "${enable_fast_install+set}" = set; then
 
9042
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
9043
    case $enableval in
 
9044
    yes) enable_fast_install=yes ;;
 
9045
    no) enable_fast_install=no ;;
 
9046
    *)
 
9047
      enable_fast_install=no
 
9048
      # Look at the argument we got.  We use all the common list separators.
 
9049
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9050
      for pkg in $enableval; do
 
9051
        IFS="$lt_save_ifs"
 
9052
        if test "X$pkg" = "X$p"; then
 
9053
          enable_fast_install=yes
 
9054
        fi
 
9055
      done
 
9056
      IFS="$lt_save_ifs"
 
9057
      ;;
 
9058
    esac
 
9059
else
 
9060
  enable_fast_install=yes
 
9061
fi
 
9062
 
 
9063
 
 
9064
 
 
9065
 
 
9066
 
 
9067
 
 
9068
 
 
9069
 
 
9070
 
 
9071
 
 
9072
 
 
9073
# This can be used to rebuild libtool when needed
 
9074
LIBTOOL_DEPS="$ltmain"
 
9075
 
 
9076
# Always use our own libtool.
 
9077
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
9078
 
 
9079
 
 
9080
 
 
9081
 
 
9082
 
 
9083
 
 
9084
 
 
9085
 
 
9086
 
 
9087
 
 
9088
 
 
9089
 
 
9090
 
 
9091
 
 
9092
 
 
9093
 
 
9094
 
 
9095
 
 
9096
 
 
9097
 
 
9098
 
 
9099
 
 
9100
 
 
9101
 
 
9102
 
 
9103
test -z "$LN_S" && LN_S="ln -s"
 
9104
 
 
9105
 
 
9106
 
 
9107
 
 
9108
 
 
9109
 
 
9110
 
 
9111
 
 
9112
 
 
9113
 
 
9114
 
 
9115
 
 
9116
 
 
9117
 
 
9118
if test -n "${ZSH_VERSION+set}" ; then
 
9119
   setopt NO_GLOB_SUBST
 
9120
fi
 
9121
 
 
9122
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
9123
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
9124
if test "${lt_cv_objdir+set}" = set; then
 
9125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9126
else
 
9127
  rm -f .libs 2>/dev/null
 
9128
mkdir .libs 2>/dev/null
 
9129
if test -d .libs; then
 
9130
  lt_cv_objdir=.libs
 
9131
else
 
9132
  # MS-DOS does not allow filenames that begin with a dot.
 
9133
  lt_cv_objdir=_libs
 
9134
fi
 
9135
rmdir .libs 2>/dev/null
 
9136
fi
 
9137
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
9138
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
9139
objdir=$lt_cv_objdir
 
9140
 
 
9141
 
 
9142
 
 
9143
 
 
9144
 
 
9145
cat >>confdefs.h <<_ACEOF
 
9146
#define LT_OBJDIR "$lt_cv_objdir/"
 
9147
_ACEOF
 
9148
 
 
9149
 
 
9150
 
 
9151
 
 
9152
 
 
9153
 
 
9154
 
 
9155
 
 
9156
 
 
9157
 
 
9158
 
 
9159
 
 
9160
 
 
9161
 
 
9162
 
 
9163
 
 
9164
 
 
9165
case $host_os in
 
9166
aix3*)
 
9167
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
9168
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
9169
  # vanish in a puff of smoke.
 
9170
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
9171
    COLLECT_NAMES=
 
9172
    export COLLECT_NAMES
 
9173
  fi
 
9174
  ;;
 
9175
esac
 
9176
 
 
9177
# Sed substitution that helps us do robust quoting.  It backslashifies
 
9178
# metacharacters that are still active within double-quoted strings.
 
9179
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
 
9180
 
 
9181
# Same as above, but do not quote variable references.
 
9182
double_quote_subst='s/\(["`\\]\)/\\\1/g'
 
9183
 
 
9184
# Sed substitution to delay expansion of an escaped shell variable in a
 
9185
# double_quote_subst'ed string.
 
9186
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
9187
 
 
9188
# Sed substitution to delay expansion of an escaped single quote.
 
9189
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
 
9190
 
 
9191
# Sed substitution to avoid accidental globbing in evaled expressions
 
9192
no_glob_subst='s/\*/\\\*/g'
 
9193
 
 
9194
# Global variables:
 
9195
ofile=libtool
 
9196
can_build_shared=yes
 
9197
 
 
9198
# All known linkers require a `.a' archive for static linking (except MSVC,
 
9199
# which needs '.lib').
 
9200
libext=a
 
9201
 
 
9202
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
9203
 
 
9204
old_CC="$CC"
 
9205
old_CFLAGS="$CFLAGS"
 
9206
 
 
9207
# Set sane defaults for various variables
 
9208
test -z "$CC" && CC=cc
 
9209
test -z "$LTCC" && LTCC=$CC
 
9210
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
9211
test -z "$LD" && LD=ld
 
9212
test -z "$ac_objext" && ac_objext=o
 
9213
 
 
9214
for cc_temp in $compiler""; do
 
9215
  case $cc_temp in
 
9216
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9217
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9218
    \-*) ;;
 
9219
    *) break;;
 
9220
  esac
 
9221
done
 
9222
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9223
 
 
9224
 
 
9225
# Only perform the check for file, if the check method requires it
 
9226
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
9227
case $deplibs_check_method in
 
9228
file_magic*)
 
9229
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
9230
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
9231
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
9232
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
9233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9234
else
 
9235
  case $MAGIC_CMD in
 
9236
[\\/*] |  ?:[\\/]*)
 
9237
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9238
  ;;
 
9239
*)
 
9240
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9241
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9242
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9243
  for ac_dir in $ac_dummy; do
 
9244
    IFS="$lt_save_ifs"
 
9245
    test -z "$ac_dir" && ac_dir=.
 
9246
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
9247
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
9248
      if test -n "$file_magic_test_file"; then
 
9249
        case $deplibs_check_method in
 
9250
        "file_magic "*)
 
9251
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9252
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9253
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9254
            $EGREP "$file_magic_regex" > /dev/null; then
 
9255
            :
 
9256
          else
 
9257
            cat <<_LT_EOF 1>&2
 
9258
 
 
9259
*** Warning: the command libtool uses to detect shared libraries,
 
9260
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9261
*** The result is that libtool may fail to recognize shared libraries
 
9262
*** as such.  This will affect the creation of libtool libraries that
 
9263
*** depend on shared libraries, but programs linked with such libtool
 
9264
*** libraries will work regardless of this problem.  Nevertheless, you
 
9265
*** may want to report the problem to your system manager and/or to
 
9266
*** bug-libtool@gnu.org
 
9267
 
 
9268
_LT_EOF
 
9269
          fi ;;
 
9270
        esac
 
9271
      fi
 
9272
      break
 
9273
    fi
 
9274
  done
 
9275
  IFS="$lt_save_ifs"
 
9276
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9277
  ;;
 
9278
esac
 
9279
fi
 
9280
 
 
9281
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9282
if test -n "$MAGIC_CMD"; then
 
9283
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
9284
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
9285
else
 
9286
  { echo "$as_me:$LINENO: result: no" >&5
 
9287
echo "${ECHO_T}no" >&6; }
 
9288
fi
 
9289
 
 
9290
 
 
9291
 
 
9292
 
 
9293
 
 
9294
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
9295
  if test -n "$ac_tool_prefix"; then
 
9296
    { echo "$as_me:$LINENO: checking for file" >&5
 
9297
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
9298
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
9299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9300
else
 
9301
  case $MAGIC_CMD in
 
9302
[\\/*] |  ?:[\\/]*)
 
9303
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
9304
  ;;
 
9305
*)
 
9306
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
9307
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9308
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
9309
  for ac_dir in $ac_dummy; do
 
9310
    IFS="$lt_save_ifs"
 
9311
    test -z "$ac_dir" && ac_dir=.
 
9312
    if test -f $ac_dir/file; then
 
9313
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
9314
      if test -n "$file_magic_test_file"; then
 
9315
        case $deplibs_check_method in
 
9316
        "file_magic "*)
 
9317
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
9318
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9319
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
9320
            $EGREP "$file_magic_regex" > /dev/null; then
 
9321
            :
 
9322
          else
 
9323
            cat <<_LT_EOF 1>&2
 
9324
 
 
9325
*** Warning: the command libtool uses to detect shared libraries,
 
9326
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
9327
*** The result is that libtool may fail to recognize shared libraries
 
9328
*** as such.  This will affect the creation of libtool libraries that
 
9329
*** depend on shared libraries, but programs linked with such libtool
 
9330
*** libraries will work regardless of this problem.  Nevertheless, you
 
9331
*** may want to report the problem to your system manager and/or to
 
9332
*** bug-libtool@gnu.org
 
9333
 
 
9334
_LT_EOF
 
9335
          fi ;;
 
9336
        esac
 
9337
      fi
 
9338
      break
 
9339
    fi
 
9340
  done
 
9341
  IFS="$lt_save_ifs"
 
9342
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
9343
  ;;
 
9344
esac
 
9345
fi
 
9346
 
 
9347
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
9348
if test -n "$MAGIC_CMD"; then
 
9349
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
9350
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
9351
else
 
9352
  { echo "$as_me:$LINENO: result: no" >&5
 
9353
echo "${ECHO_T}no" >&6; }
 
9354
fi
 
9355
 
 
9356
 
 
9357
  else
 
9358
    MAGIC_CMD=:
 
9359
  fi
 
9360
fi
 
9361
 
 
9362
  fi
 
9363
  ;;
 
9364
esac
 
9365
 
 
9366
# Use C for the default configuration in the libtool script
 
9367
 
 
9368
lt_save_CC="$CC"
 
9369
ac_ext=c
 
9370
ac_cpp='$CPP $CPPFLAGS'
 
9371
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9372
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9373
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9374
 
 
9375
 
 
9376
# Source file extension for C test sources.
 
9377
ac_ext=c
 
9378
 
 
9379
# Object file extension for compiled C test sources.
 
9380
objext=o
 
9381
objext=$objext
 
9382
 
 
9383
# Code to be used in simple compile tests
 
9384
lt_simple_compile_test_code="int some_variable = 0;"
 
9385
 
 
9386
# Code to be used in simple link tests
 
9387
lt_simple_link_test_code='int main(){return(0);}'
 
9388
 
 
9389
 
 
9390
 
 
9391
 
 
9392
 
 
9393
 
 
9394
 
 
9395
# If no C compiler was specified, use CC.
 
9396
LTCC=${LTCC-"$CC"}
 
9397
 
 
9398
# If no C compiler flags were specified, use CFLAGS.
 
9399
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
9400
 
 
9401
# Allow CC to be a program name with arguments.
 
9402
compiler=$CC
 
9403
 
 
9404
# Save the default compiler, since it gets overwritten when the other
 
9405
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
 
9406
compiler_DEFAULT=$CC
 
9407
 
 
9408
# save warnings/boilerplate of simple test code
 
9409
ac_outfile=conftest.$ac_objext
 
9410
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9411
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9412
_lt_compiler_boilerplate=`cat conftest.err`
 
9413
$RM conftest*
 
9414
 
 
9415
ac_outfile=conftest.$ac_objext
 
9416
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
9417
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9418
_lt_linker_boilerplate=`cat conftest.err`
 
9419
$RM -r conftest*
 
9420
 
 
9421
 
 
9422
if test -n "$compiler"; then
 
9423
 
 
9424
lt_prog_compiler_no_builtin_flag=
 
9425
 
 
9426
if test "$GCC" = yes; then
 
9427
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
9428
 
 
9429
  { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
9430
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
9431
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
9432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9433
else
 
9434
  lt_cv_prog_compiler_rtti_exceptions=no
 
9435
   ac_outfile=conftest.$ac_objext
 
9436
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9437
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
9438
   # Insert the option either (1) after the last *FLAGS variable, or
 
9439
   # (2) before a word containing "conftest.", or (3) at the end.
 
9440
   # Note that $ac_compile itself does not contain backslashes and begins
 
9441
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9442
   # The option is referenced via a variable to avoid confusing sed.
 
9443
   lt_compile=`echo "$ac_compile" | $SED \
 
9444
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9445
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9446
   -e 's:$: $lt_compiler_flag:'`
 
9447
   (eval echo "\"\$as_me:9447: $lt_compile\"" >&5)
 
9448
   (eval "$lt_compile" 2>conftest.err)
 
9449
   ac_status=$?
 
9450
   cat conftest.err >&5
 
9451
   echo "$as_me:9451: \$? = $ac_status" >&5
 
9452
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9453
     # The compiler can only warn and ignore the option if not recognized
 
9454
     # So say no if there are warnings other than the usual output.
 
9455
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9456
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9457
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9458
       lt_cv_prog_compiler_rtti_exceptions=yes
 
9459
     fi
 
9460
   fi
 
9461
   $RM conftest*
 
9462
 
 
9463
fi
 
9464
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
9465
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
9466
 
 
9467
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
9468
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
9469
else
 
9470
    :
 
9471
fi
 
9472
 
 
9473
fi
 
9474
 
 
9475
 
 
9476
 
 
9477
 
 
9478
 
 
9479
 
 
9480
  lt_prog_compiler_wl=
 
9481
lt_prog_compiler_pic=
 
9482
lt_prog_compiler_static=
 
9483
 
 
9484
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
9485
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
9486
 
 
9487
  if test "$GCC" = yes; then
 
9488
    lt_prog_compiler_wl='-Wl,'
 
9489
    lt_prog_compiler_static='-static'
 
9490
 
 
9491
    case $host_os in
 
9492
      aix*)
 
9493
      # All AIX code is PIC.
 
9494
      if test "$host_cpu" = ia64; then
 
9495
        # AIX 5 now supports IA64 processor
 
9496
        lt_prog_compiler_static='-Bstatic'
 
9497
      fi
 
9498
      ;;
 
9499
 
 
9500
    amigaos*)
 
9501
      case $host_cpu in
 
9502
      powerpc)
 
9503
            # see comment about AmigaOS4 .so support
 
9504
            lt_prog_compiler_pic='-fPIC'
 
9505
        ;;
 
9506
      m68k)
 
9507
            # FIXME: we need at least 68020 code to build shared libraries, but
 
9508
            # adding the `-m68020' flag to GCC prevents building anything better,
 
9509
            # like `-m68040'.
 
9510
            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
9511
        ;;
 
9512
      esac
 
9513
      ;;
 
9514
 
 
9515
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
9516
      # PIC is the default for these OSes.
 
9517
      ;;
 
9518
 
 
9519
    mingw* | cygwin* | pw32* | os2*)
 
9520
      # This hack is so that the source file can tell whether it is being
 
9521
      # built for inclusion in a dll (and should export symbols for example).
 
9522
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
9523
      # (--disable-auto-import) libraries
 
9524
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9525
      ;;
 
9526
 
 
9527
    darwin* | rhapsody*)
 
9528
      # PIC is the default on this platform
 
9529
      # Common symbols not allowed in MH_DYLIB files
 
9530
      lt_prog_compiler_pic='-fno-common'
 
9531
      ;;
 
9532
 
 
9533
    hpux*)
 
9534
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9535
      # not for PA HP-UX.
 
9536
      case $host_cpu in
 
9537
      hppa*64*|ia64*)
 
9538
        # +Z the default
 
9539
        ;;
 
9540
      *)
 
9541
        lt_prog_compiler_pic='-fPIC'
 
9542
        ;;
 
9543
      esac
 
9544
      ;;
 
9545
 
 
9546
    interix[3-9]*)
 
9547
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
9548
      # Instead, we relocate shared libraries at runtime.
 
9549
      ;;
 
9550
 
 
9551
    msdosdjgpp*)
 
9552
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
9553
      # on systems that don't support them.
 
9554
      lt_prog_compiler_can_build_shared=no
 
9555
      enable_shared=no
 
9556
      ;;
 
9557
 
 
9558
    *nto* | *qnx*)
 
9559
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9560
      # it will coredump.
 
9561
      lt_prog_compiler_pic='-fPIC -shared'
 
9562
      ;;
 
9563
 
 
9564
    sysv4*MP*)
 
9565
      if test -d /usr/nec; then
 
9566
        lt_prog_compiler_pic=-Kconform_pic
 
9567
      fi
 
9568
      ;;
 
9569
 
 
9570
    *)
 
9571
      lt_prog_compiler_pic='-fPIC'
 
9572
      ;;
 
9573
    esac
 
9574
  else
 
9575
    # PORTME Check for flag to pass linker flags through the system compiler.
 
9576
    case $host_os in
 
9577
    aix*)
 
9578
      lt_prog_compiler_wl='-Wl,'
 
9579
      if test "$host_cpu" = ia64; then
 
9580
        # AIX 5 now supports IA64 processor
 
9581
        lt_prog_compiler_static='-Bstatic'
 
9582
      else
 
9583
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
9584
      fi
 
9585
      ;;
 
9586
 
 
9587
    mingw* | cygwin* | pw32* | os2*)
 
9588
      # This hack is so that the source file can tell whether it is being
 
9589
      # built for inclusion in a dll (and should export symbols for example).
 
9590
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
9591
      ;;
 
9592
 
 
9593
    hpux9* | hpux10* | hpux11*)
 
9594
      lt_prog_compiler_wl='-Wl,'
 
9595
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
9596
      # not for PA HP-UX.
 
9597
      case $host_cpu in
 
9598
      hppa*64*|ia64*)
 
9599
        # +Z the default
 
9600
        ;;
 
9601
      *)
 
9602
        lt_prog_compiler_pic='+Z'
 
9603
        ;;
 
9604
      esac
 
9605
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
9606
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
9607
      ;;
 
9608
 
 
9609
    irix5* | irix6* | nonstopux*)
 
9610
      lt_prog_compiler_wl='-Wl,'
 
9611
      # PIC (with -KPIC) is the default.
 
9612
      lt_prog_compiler_static='-non_shared'
 
9613
      ;;
 
9614
 
 
9615
    linux* | k*bsd*-gnu)
 
9616
      case $cc_basename in
 
9617
      icc* | ecc* | ifort*)
 
9618
        lt_prog_compiler_wl='-Wl,'
 
9619
        lt_prog_compiler_pic='-KPIC'
 
9620
        lt_prog_compiler_static='-static'
 
9621
        ;;
 
9622
      pgcc* | pgf77* | pgf90* | pgf95*)
 
9623
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
9624
        # which looks to be a dead project)
 
9625
        lt_prog_compiler_wl='-Wl,'
 
9626
        lt_prog_compiler_pic='-fpic'
 
9627
        lt_prog_compiler_static='-Bstatic'
 
9628
        ;;
 
9629
      ccc*)
 
9630
        lt_prog_compiler_wl='-Wl,'
 
9631
        # All Alpha code is PIC.
 
9632
        lt_prog_compiler_static='-non_shared'
 
9633
        ;;
 
9634
      xl*)
 
9635
        # IBM XL C 8.0/Fortran 10.1 on PPC
 
9636
        lt_prog_compiler_wl='-Wl,'
 
9637
        lt_prog_compiler_pic='-qpic'
 
9638
        lt_prog_compiler_static='-qstaticlink'
 
9639
        ;;
 
9640
      *)
 
9641
        case `$CC -V 2>&1 | sed 5q` in
 
9642
        *Sun\ C*)
 
9643
          # Sun C 5.9
 
9644
          lt_prog_compiler_pic='-KPIC'
 
9645
          lt_prog_compiler_static='-Bstatic'
 
9646
          lt_prog_compiler_wl='-Wl,'
 
9647
          ;;
 
9648
        *Sun\ F*)
 
9649
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
9650
          lt_prog_compiler_pic='-KPIC'
 
9651
          lt_prog_compiler_static='-Bstatic'
 
9652
          lt_prog_compiler_wl=''
 
9653
          ;;
 
9654
        esac
 
9655
        ;;
 
9656
      esac
 
9657
      ;;
 
9658
 
 
9659
    newsos6)
 
9660
      lt_prog_compiler_pic='-KPIC'
 
9661
      lt_prog_compiler_static='-Bstatic'
 
9662
      ;;
 
9663
 
 
9664
    *nto* | *qnx*)
 
9665
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
9666
      # it will coredump.
 
9667
      lt_prog_compiler_pic='-fPIC -shared'
 
9668
      ;;
 
9669
 
 
9670
    osf3* | osf4* | osf5*)
 
9671
      lt_prog_compiler_wl='-Wl,'
 
9672
      # All OSF/1 code is PIC.
 
9673
      lt_prog_compiler_static='-non_shared'
 
9674
      ;;
 
9675
 
 
9676
    rdos*)
 
9677
      lt_prog_compiler_static='-non_shared'
 
9678
      ;;
 
9679
 
 
9680
    solaris*)
 
9681
      lt_prog_compiler_pic='-KPIC'
 
9682
      lt_prog_compiler_static='-Bstatic'
 
9683
      case $cc_basename in
 
9684
      f77* | f90* | f95*)
 
9685
        lt_prog_compiler_wl='-Qoption ld ';;
 
9686
      *)
 
9687
        lt_prog_compiler_wl='-Wl,';;
 
9688
      esac
 
9689
      ;;
 
9690
 
 
9691
    sunos4*)
 
9692
      lt_prog_compiler_wl='-Qoption ld '
 
9693
      lt_prog_compiler_pic='-PIC'
 
9694
      lt_prog_compiler_static='-Bstatic'
 
9695
      ;;
 
9696
 
 
9697
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
9698
      lt_prog_compiler_wl='-Wl,'
 
9699
      lt_prog_compiler_pic='-KPIC'
 
9700
      lt_prog_compiler_static='-Bstatic'
 
9701
      ;;
 
9702
 
 
9703
    sysv4*MP*)
 
9704
      if test -d /usr/nec ;then
 
9705
        lt_prog_compiler_pic='-Kconform_pic'
 
9706
        lt_prog_compiler_static='-Bstatic'
 
9707
      fi
 
9708
      ;;
 
9709
 
 
9710
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
9711
      lt_prog_compiler_wl='-Wl,'
 
9712
      lt_prog_compiler_pic='-KPIC'
 
9713
      lt_prog_compiler_static='-Bstatic'
 
9714
      ;;
 
9715
 
 
9716
    unicos*)
 
9717
      lt_prog_compiler_wl='-Wl,'
 
9718
      lt_prog_compiler_can_build_shared=no
 
9719
      ;;
 
9720
 
 
9721
    uts4*)
 
9722
      lt_prog_compiler_pic='-pic'
 
9723
      lt_prog_compiler_static='-Bstatic'
 
9724
      ;;
 
9725
 
 
9726
    *)
 
9727
      lt_prog_compiler_can_build_shared=no
 
9728
      ;;
 
9729
    esac
 
9730
  fi
 
9731
 
 
9732
case $host_os in
 
9733
  # For platforms which do not support PIC, -DPIC is meaningless:
 
9734
  *djgpp*)
 
9735
    lt_prog_compiler_pic=
 
9736
    ;;
 
9737
  *)
 
9738
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
9739
    ;;
 
9740
esac
 
9741
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
9742
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
9743
 
 
9744
 
 
9745
 
 
9746
 
 
9747
 
 
9748
 
 
9749
#
 
9750
# Check to make sure the PIC flag actually works.
 
9751
#
 
9752
if test -n "$lt_prog_compiler_pic"; then
 
9753
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
9754
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
9755
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
9756
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9757
else
 
9758
  lt_cv_prog_compiler_pic_works=no
 
9759
   ac_outfile=conftest.$ac_objext
 
9760
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9761
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
9762
   # Insert the option either (1) after the last *FLAGS variable, or
 
9763
   # (2) before a word containing "conftest.", or (3) at the end.
 
9764
   # Note that $ac_compile itself does not contain backslashes and begins
 
9765
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9766
   # The option is referenced via a variable to avoid confusing sed.
 
9767
   lt_compile=`echo "$ac_compile" | $SED \
 
9768
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9770
   -e 's:$: $lt_compiler_flag:'`
 
9771
   (eval echo "\"\$as_me:9771: $lt_compile\"" >&5)
 
9772
   (eval "$lt_compile" 2>conftest.err)
 
9773
   ac_status=$?
 
9774
   cat conftest.err >&5
 
9775
   echo "$as_me:9775: \$? = $ac_status" >&5
 
9776
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
9777
     # The compiler can only warn and ignore the option if not recognized
 
9778
     # So say no if there are warnings other than the usual output.
 
9779
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
9780
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9781
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
9782
       lt_cv_prog_compiler_pic_works=yes
 
9783
     fi
 
9784
   fi
 
9785
   $RM conftest*
 
9786
 
 
9787
fi
 
9788
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
9789
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
9790
 
 
9791
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
9792
    case $lt_prog_compiler_pic in
 
9793
     "" | " "*) ;;
 
9794
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
9795
     esac
 
9796
else
 
9797
    lt_prog_compiler_pic=
 
9798
     lt_prog_compiler_can_build_shared=no
 
9799
fi
 
9800
 
 
9801
fi
 
9802
 
 
9803
 
 
9804
 
 
9805
 
 
9806
 
 
9807
 
 
9808
#
 
9809
# Check to make sure the static flag actually works.
 
9810
#
 
9811
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
9812
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
9813
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
9814
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
9815
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9816
else
 
9817
  lt_cv_prog_compiler_static_works=no
 
9818
   save_LDFLAGS="$LDFLAGS"
 
9819
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
9820
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
9821
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
9822
     # The linker can only warn and ignore the option if not recognized
 
9823
     # So say no if there are warnings
 
9824
     if test -s conftest.err; then
 
9825
       # Append any errors to the config.log.
 
9826
       cat conftest.err 1>&5
 
9827
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
9828
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
9829
       if diff conftest.exp conftest.er2 >/dev/null; then
 
9830
         lt_cv_prog_compiler_static_works=yes
 
9831
       fi
 
9832
     else
 
9833
       lt_cv_prog_compiler_static_works=yes
 
9834
     fi
 
9835
   fi
 
9836
   $RM -r conftest*
 
9837
   LDFLAGS="$save_LDFLAGS"
 
9838
 
 
9839
fi
 
9840
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
9841
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
9842
 
 
9843
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
9844
    :
 
9845
else
 
9846
    lt_prog_compiler_static=
 
9847
fi
 
9848
 
 
9849
 
 
9850
 
 
9851
 
 
9852
 
 
9853
 
 
9854
 
 
9855
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9856
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9857
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9859
else
 
9860
  lt_cv_prog_compiler_c_o=no
 
9861
   $RM -r conftest 2>/dev/null
 
9862
   mkdir conftest
 
9863
   cd conftest
 
9864
   mkdir out
 
9865
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9866
 
 
9867
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9868
   # Insert the option either (1) after the last *FLAGS variable, or
 
9869
   # (2) before a word containing "conftest.", or (3) at the end.
 
9870
   # Note that $ac_compile itself does not contain backslashes and begins
 
9871
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9872
   lt_compile=`echo "$ac_compile" | $SED \
 
9873
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9874
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9875
   -e 's:$: $lt_compiler_flag:'`
 
9876
   (eval echo "\"\$as_me:9876: $lt_compile\"" >&5)
 
9877
   (eval "$lt_compile" 2>out/conftest.err)
 
9878
   ac_status=$?
 
9879
   cat out/conftest.err >&5
 
9880
   echo "$as_me:9880: \$? = $ac_status" >&5
 
9881
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9882
   then
 
9883
     # The compiler can only warn and ignore the option if not recognized
 
9884
     # So say no if there are warnings
 
9885
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9886
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9887
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9888
       lt_cv_prog_compiler_c_o=yes
 
9889
     fi
 
9890
   fi
 
9891
   chmod u+w . 2>&5
 
9892
   $RM conftest*
 
9893
   # SGI C++ compiler will create directory out/ii_files/ for
 
9894
   # template instantiation
 
9895
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9896
   $RM out/* && rmdir out
 
9897
   cd ..
 
9898
   $RM -r conftest
 
9899
   $RM conftest*
 
9900
 
 
9901
fi
 
9902
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9903
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9904
 
 
9905
 
 
9906
 
 
9907
 
 
9908
 
 
9909
 
 
9910
  { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
9911
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
9912
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
9913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9914
else
 
9915
  lt_cv_prog_compiler_c_o=no
 
9916
   $RM -r conftest 2>/dev/null
 
9917
   mkdir conftest
 
9918
   cd conftest
 
9919
   mkdir out
 
9920
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9921
 
 
9922
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
9923
   # Insert the option either (1) after the last *FLAGS variable, or
 
9924
   # (2) before a word containing "conftest.", or (3) at the end.
 
9925
   # Note that $ac_compile itself does not contain backslashes and begins
 
9926
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
9927
   lt_compile=`echo "$ac_compile" | $SED \
 
9928
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
9929
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
9930
   -e 's:$: $lt_compiler_flag:'`
 
9931
   (eval echo "\"\$as_me:9931: $lt_compile\"" >&5)
 
9932
   (eval "$lt_compile" 2>out/conftest.err)
 
9933
   ac_status=$?
 
9934
   cat out/conftest.err >&5
 
9935
   echo "$as_me:9935: \$? = $ac_status" >&5
 
9936
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
9937
   then
 
9938
     # The compiler can only warn and ignore the option if not recognized
 
9939
     # So say no if there are warnings
 
9940
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
9941
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
9942
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
9943
       lt_cv_prog_compiler_c_o=yes
 
9944
     fi
 
9945
   fi
 
9946
   chmod u+w . 2>&5
 
9947
   $RM conftest*
 
9948
   # SGI C++ compiler will create directory out/ii_files/ for
 
9949
   # template instantiation
 
9950
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
9951
   $RM out/* && rmdir out
 
9952
   cd ..
 
9953
   $RM -r conftest
 
9954
   $RM conftest*
 
9955
 
 
9956
fi
 
9957
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
9958
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
9959
 
 
9960
 
 
9961
 
 
9962
 
 
9963
hard_links="nottested"
 
9964
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
9965
  # do not overwrite the value of need_locks provided by the user
 
9966
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
9967
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
9968
  hard_links=yes
 
9969
  $RM conftest*
 
9970
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9971
  touch conftest.a
 
9972
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
9973
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
9974
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
9975
echo "${ECHO_T}$hard_links" >&6; }
 
9976
  if test "$hard_links" = no; then
 
9977
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
9978
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
9979
    need_locks=warn
 
9980
  fi
 
9981
else
 
9982
  need_locks=no
 
9983
fi
 
9984
 
 
9985
 
 
9986
 
 
9987
 
 
9988
 
 
9989
 
 
9990
  { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9991
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
9992
 
 
9993
  runpath_var=
 
9994
  allow_undefined_flag=
 
9995
  always_export_symbols=no
 
9996
  archive_cmds=
 
9997
  archive_expsym_cmds=
 
9998
  compiler_needs_object=no
 
9999
  enable_shared_with_static_runtimes=no
 
10000
  export_dynamic_flag_spec=
 
10001
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
10002
  hardcode_automatic=no
 
10003
  hardcode_direct=no
 
10004
  hardcode_direct_absolute=no
 
10005
  hardcode_libdir_flag_spec=
 
10006
  hardcode_libdir_flag_spec_ld=
 
10007
  hardcode_libdir_separator=
 
10008
  hardcode_minus_L=no
 
10009
  hardcode_shlibpath_var=unsupported
 
10010
  inherit_rpath=no
 
10011
  link_all_deplibs=unknown
 
10012
  module_cmds=
 
10013
  module_expsym_cmds=
 
10014
  old_archive_from_new_cmds=
 
10015
  old_archive_from_expsyms_cmds=
 
10016
  thread_safe_flag_spec=
 
10017
  whole_archive_flag_spec=
 
10018
  # include_expsyms should be a list of space-separated symbols to be *always*
 
10019
  # included in the symbol list
 
10020
  include_expsyms=
 
10021
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
10022
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
10023
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
10024
  # as well as any symbol that contains `d'.
 
10025
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
10026
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
10027
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
10028
  # the symbol is explicitly referenced.  Since portable code cannot
 
10029
  # rely on this symbol name, it's probably fine to never include it in
 
10030
  # preloaded symbol tables.
 
10031
  # Exclude shared library initialization/finalization symbols.
 
10032
  extract_expsyms_cmds=
 
10033
 
 
10034
  case $host_os in
 
10035
  cygwin* | mingw* | pw32*)
 
10036
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
10037
    # When not using gcc, we currently assume that we are using
 
10038
    # Microsoft Visual C++.
 
10039
    if test "$GCC" != yes; then
 
10040
      with_gnu_ld=no
 
10041
    fi
 
10042
    ;;
 
10043
  interix*)
 
10044
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
10045
    with_gnu_ld=yes
 
10046
    ;;
 
10047
  openbsd*)
 
10048
    with_gnu_ld=no
 
10049
    ;;
 
10050
  esac
 
10051
 
 
10052
  ld_shlibs=yes
 
10053
  if test "$with_gnu_ld" = yes; then
 
10054
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10055
    wlarc='${wl}'
 
10056
 
 
10057
    # Set some defaults for GNU ld with shared library support. These
 
10058
    # are reset later if shared libraries are not supported. Putting them
 
10059
    # here allows them to be overridden if necessary.
 
10060
    runpath_var=LD_RUN_PATH
 
10061
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10062
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
10063
    # ancient GNU ld didn't support --whole-archive et. al.
 
10064
    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
 
10065
      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10066
    else
 
10067
      whole_archive_flag_spec=
 
10068
    fi
 
10069
    supports_anon_versioning=no
 
10070
    case `$LD -v 2>&1` in
 
10071
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
10072
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
10073
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
10074
      *\ 2.11.*) ;; # other 2.11 versions
 
10075
      *) supports_anon_versioning=yes ;;
 
10076
    esac
 
10077
 
 
10078
    # See if GNU ld supports shared libraries.
 
10079
    case $host_os in
 
10080
    aix[3-9]*)
 
10081
      # On AIX/PPC, the GNU linker is very broken
 
10082
      if test "$host_cpu" != ia64; then
 
10083
        ld_shlibs=no
 
10084
        cat <<_LT_EOF 1>&2
 
10085
 
 
10086
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
10087
*** to be unable to reliably create shared libraries on AIX.
 
10088
*** Therefore, libtool is disabling shared libraries support.  If you
 
10089
*** really care for shared libraries, you may want to modify your PATH
 
10090
*** so that a non-GNU linker is found, and then restart.
 
10091
 
 
10092
_LT_EOF
 
10093
      fi
 
10094
      ;;
 
10095
 
 
10096
    amigaos*)
 
10097
      case $host_cpu in
 
10098
      powerpc)
 
10099
            # see comment about AmigaOS4 .so support
 
10100
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10101
            archive_expsym_cmds=''
 
10102
        ;;
 
10103
      m68k)
 
10104
            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)'
 
10105
            hardcode_libdir_flag_spec='-L$libdir'
 
10106
            hardcode_minus_L=yes
 
10107
        ;;
 
10108
      esac
 
10109
      ;;
 
10110
 
 
10111
    beos*)
 
10112
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10113
        allow_undefined_flag=unsupported
 
10114
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
10115
        # support --undefined.  This deserves some investigation.  FIXME
 
10116
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10117
      else
 
10118
        ld_shlibs=no
 
10119
      fi
 
10120
      ;;
 
10121
 
 
10122
    cygwin* | mingw* | pw32*)
 
10123
      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
10124
      # as there is no search path for DLLs.
 
10125
      hardcode_libdir_flag_spec='-L$libdir'
 
10126
      allow_undefined_flag=unsupported
 
10127
      always_export_symbols=no
 
10128
      enable_shared_with_static_runtimes=yes
 
10129
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
10130
 
 
10131
      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
10132
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10133
        # If the export-symbols file already is a .def file (1st line
 
10134
        # is EXPORTS), use it as is; otherwise, prepend...
 
10135
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10136
          cp $export_symbols $output_objdir/$soname.def;
 
10137
        else
 
10138
          echo EXPORTS > $output_objdir/$soname.def;
 
10139
          cat $export_symbols >> $output_objdir/$soname.def;
 
10140
        fi~
 
10141
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
10142
      else
 
10143
        ld_shlibs=no
 
10144
      fi
 
10145
      ;;
 
10146
 
 
10147
    interix[3-9]*)
 
10148
      hardcode_direct=no
 
10149
      hardcode_shlibpath_var=no
 
10150
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10151
      export_dynamic_flag_spec='${wl}-E'
 
10152
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
10153
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
10154
      # default) and relocated if they conflict, which is a slow very memory
 
10155
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
10156
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
10157
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
10158
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
10159
      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'
 
10160
      ;;
 
10161
 
 
10162
    gnu* | linux* | tpf* | k*bsd*-gnu)
 
10163
      tmp_diet=no
 
10164
      if test "$host_os" = linux-dietlibc; then
 
10165
        case $cc_basename in
 
10166
          diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
 
10167
        esac
 
10168
      fi
 
10169
      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
 
10170
         && test "$tmp_diet" = no
 
10171
      then
 
10172
        tmp_addflag=
 
10173
        tmp_sharedflag='-shared'
 
10174
        case $cc_basename,$host_cpu in
 
10175
        pgcc*)                          # Portland Group C compiler
 
10176
          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'
 
10177
          tmp_addflag=' $pic_flag'
 
10178
          ;;
 
10179
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
10180
          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'
 
10181
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
10182
        ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
 
10183
          tmp_addflag=' -i_dynamic' ;;
 
10184
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
10185
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
10186
        ifc* | ifort*)                  # Intel Fortran compiler
 
10187
          tmp_addflag=' -nofor_main' ;;
 
10188
        xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
 
10189
          tmp_sharedflag='-qmkshrobj'
 
10190
          tmp_addflag= ;;
 
10191
        esac
 
10192
        case `$CC -V 2>&1 | sed 5q` in
 
10193
        *Sun\ C*)                       # Sun C 5.9
 
10194
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
10195
          compiler_needs_object=yes
 
10196
          tmp_sharedflag='-G' ;;
 
10197
        *Sun\ F*)                       # Sun Fortran 8.3
 
10198
          tmp_sharedflag='-G' ;;
 
10199
        esac
 
10200
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10201
 
 
10202
        if test "x$supports_anon_versioning" = xyes; then
 
10203
          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10204
            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10205
            echo "local: *; };" >> $output_objdir/$libname.ver~
 
10206
            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
10207
        fi
 
10208
 
 
10209
        case $cc_basename in
 
10210
        xlf*)
 
10211
          # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
 
10212
          whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
 
10213
          hardcode_libdir_flag_spec=
 
10214
          hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
10215
          archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
 
10216
          if test "x$supports_anon_versioning" = xyes; then
 
10217
            archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
 
10218
              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
10219
              echo "local: *; };" >> $output_objdir/$libname.ver~
 
10220
              $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
 
10221
          fi
 
10222
          ;;
 
10223
        esac
 
10224
      else
 
10225
        ld_shlibs=no
 
10226
      fi
 
10227
      ;;
 
10228
 
 
10229
    netbsd* | netbsdelf*-gnu)
 
10230
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10231
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
10232
        wlarc=
 
10233
      else
 
10234
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10235
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10236
      fi
 
10237
      ;;
 
10238
 
 
10239
    solaris*)
 
10240
      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
 
10241
        ld_shlibs=no
 
10242
        cat <<_LT_EOF 1>&2
 
10243
 
 
10244
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
10245
*** create shared libraries on Solaris systems.  Therefore, libtool
 
10246
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10247
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
10248
*** your PATH or compiler configuration so that the native linker is
 
10249
*** used, and then restart.
 
10250
 
 
10251
_LT_EOF
 
10252
      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10253
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10254
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10255
      else
 
10256
        ld_shlibs=no
 
10257
      fi
 
10258
      ;;
 
10259
 
 
10260
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
10261
      case `$LD -v 2>&1` in
 
10262
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
10263
        ld_shlibs=no
 
10264
        cat <<_LT_EOF 1>&2
 
10265
 
 
10266
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
10267
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
10268
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
10269
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
10270
*** your PATH or compiler configuration so that the native linker is
 
10271
*** used, and then restart.
 
10272
 
 
10273
_LT_EOF
 
10274
        ;;
 
10275
        *)
 
10276
          # For security reasons, it is highly recommended that you always
 
10277
          # use absolute paths for naming shared libraries, and exclude the
 
10278
          # DT_RUNPATH tag from executables and libraries.  But doing so
 
10279
          # requires that you compile everything twice, which is a pain.
 
10280
          if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10281
            hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10282
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10283
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10284
          else
 
10285
            ld_shlibs=no
 
10286
          fi
 
10287
        ;;
 
10288
      esac
 
10289
      ;;
 
10290
 
 
10291
    sunos4*)
 
10292
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10293
      wlarc=
 
10294
      hardcode_direct=yes
 
10295
      hardcode_shlibpath_var=no
 
10296
      ;;
 
10297
 
 
10298
    *)
 
10299
      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
10300
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10301
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
10302
      else
 
10303
        ld_shlibs=no
 
10304
      fi
 
10305
      ;;
 
10306
    esac
 
10307
 
 
10308
    if test "$ld_shlibs" = no; then
 
10309
      runpath_var=
 
10310
      hardcode_libdir_flag_spec=
 
10311
      export_dynamic_flag_spec=
 
10312
      whole_archive_flag_spec=
 
10313
    fi
 
10314
  else
 
10315
    # PORTME fill in a description of your system's linker (not GNU ld)
 
10316
    case $host_os in
 
10317
    aix3*)
 
10318
      allow_undefined_flag=unsupported
 
10319
      always_export_symbols=yes
 
10320
      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'
 
10321
      # Note: this linker hardcodes the directories in LIBPATH if there
 
10322
      # are no directories specified by -L.
 
10323
      hardcode_minus_L=yes
 
10324
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
10325
        # Neither direct hardcoding nor static linking is supported with a
 
10326
        # broken collect2.
 
10327
        hardcode_direct=unsupported
 
10328
      fi
 
10329
      ;;
 
10330
 
 
10331
    aix[4-9]*)
 
10332
      if test "$host_cpu" = ia64; then
 
10333
        # On IA64, the linker does run time linking by default, so we don't
 
10334
        # have to do anything special.
 
10335
        aix_use_runtimelinking=no
 
10336
        exp_sym_flag='-Bexport'
 
10337
        no_entry_flag=""
 
10338
      else
 
10339
        # If we're using GNU nm, then we don't want the "-C" option.
 
10340
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
10341
        if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
10342
          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'
 
10343
        else
 
10344
          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'
 
10345
        fi
 
10346
        aix_use_runtimelinking=no
 
10347
 
 
10348
        # Test if we are trying to use run time linking or normal
 
10349
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10350
        # need to do runtime linking.
 
10351
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
10352
          for ld_flag in $LDFLAGS; do
 
10353
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
10354
            aix_use_runtimelinking=yes
 
10355
            break
 
10356
          fi
 
10357
          done
 
10358
          ;;
 
10359
        esac
 
10360
 
 
10361
        exp_sym_flag='-bexport'
 
10362
        no_entry_flag='-bnoentry'
 
10363
      fi
 
10364
 
 
10365
      # When large executables or shared objects are built, AIX ld can
 
10366
      # have problems creating the table of contents.  If linking a library
 
10367
      # or program results in "error TOC overflow" add -mminimal-toc to
 
10368
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10369
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10370
 
 
10371
      archive_cmds=''
 
10372
      hardcode_direct=yes
 
10373
      hardcode_direct_absolute=yes
 
10374
      hardcode_libdir_separator=':'
 
10375
      link_all_deplibs=yes
 
10376
      file_list_spec='${wl}-f,'
 
10377
 
 
10378
      if test "$GCC" = yes; then
 
10379
        case $host_os in aix4.[012]|aix4.[012].*)
 
10380
        # We only want to do this on AIX 4.2 and lower, the check
 
10381
        # below for broken collect2 doesn't work under 4.3+
 
10382
          collect2name=`${CC} -print-prog-name=collect2`
 
10383
          if test -f "$collect2name" &&
 
10384
           strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
10385
          then
 
10386
          # We have reworked collect2
 
10387
          :
 
10388
          else
 
10389
          # We have old collect2
 
10390
          hardcode_direct=unsupported
 
10391
          # It fails to find uninstalled libraries when the uninstalled
 
10392
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10393
          # to unsupported forces relinking
 
10394
          hardcode_minus_L=yes
 
10395
          hardcode_libdir_flag_spec='-L$libdir'
 
10396
          hardcode_libdir_separator=
 
10397
          fi
 
10398
          ;;
 
10399
        esac
 
10400
        shared_flag='-shared'
 
10401
        if test "$aix_use_runtimelinking" = yes; then
 
10402
          shared_flag="$shared_flag "'${wl}-G'
 
10403
        fi
 
10404
        link_all_deplibs=no
 
10405
      else
 
10406
        # not using gcc
 
10407
        if test "$host_cpu" = ia64; then
 
10408
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10409
        # chokes on -Wl,-G. The following line is correct:
 
10410
          shared_flag='-G'
 
10411
        else
 
10412
          if test "$aix_use_runtimelinking" = yes; then
 
10413
            shared_flag='${wl}-G'
 
10414
          else
 
10415
            shared_flag='${wl}-bM:SRE'
 
10416
          fi
 
10417
        fi
 
10418
      fi
 
10419
 
 
10420
      # It seems that -bexpall does not export symbols beginning with
 
10421
      # underscore (_), so it is better to generate a list of symbols to export.
 
10422
      always_export_symbols=yes
 
10423
      if test "$aix_use_runtimelinking" = yes; then
 
10424
        # Warning - without using the other runtime loading flags (-brtl),
 
10425
        # -berok will link without error, but may produce a broken library.
 
10426
        allow_undefined_flag='-berok'
 
10427
        # Determine the default libpath from the value encoded in an
 
10428
        # empty executable.
 
10429
        cat >conftest.$ac_ext <<_ACEOF
 
10430
/* confdefs.h.  */
 
10431
_ACEOF
 
10432
cat confdefs.h >>conftest.$ac_ext
 
10433
cat >>conftest.$ac_ext <<_ACEOF
 
10434
/* end confdefs.h.  */
 
10435
 
 
10436
int
 
10437
main ()
 
10438
{
 
10439
 
 
10440
  ;
 
10441
  return 0;
 
10442
}
 
10443
_ACEOF
 
10444
rm -f conftest.$ac_objext conftest$ac_exeext
 
10445
if { (ac_try="$ac_link"
 
10446
case "(($ac_try" in
 
10447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10448
  *) ac_try_echo=$ac_try;;
 
10449
esac
 
10450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10451
  (eval "$ac_link") 2>conftest.er1
 
10452
  ac_status=$?
 
10453
  grep -v '^ *+' conftest.er1 >conftest.err
 
10454
  rm -f conftest.er1
 
10455
  cat conftest.err >&5
 
10456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10457
  (exit $ac_status); } && {
 
10458
         test -z "$ac_c_werror_flag" ||
 
10459
         test ! -s conftest.err
 
10460
       } && test -s conftest$ac_exeext &&
 
10461
       $as_test_x conftest$ac_exeext; then
 
10462
 
 
10463
lt_aix_libpath_sed='
 
10464
    /Import File Strings/,/^$/ {
 
10465
        /^0/ {
 
10466
            s/^0  *\(.*\)$/\1/
 
10467
            p
 
10468
        }
 
10469
    }'
 
10470
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10471
# Check for a 64-bit object if we didn't find anything.
 
10472
if test -z "$aix_libpath"; then
 
10473
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10474
fi
 
10475
else
 
10476
  echo "$as_me: failed program was:" >&5
 
10477
sed 's/^/| /' conftest.$ac_ext >&5
 
10478
 
 
10479
 
 
10480
fi
 
10481
 
 
10482
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10483
      conftest$ac_exeext conftest.$ac_ext
 
10484
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10485
 
 
10486
        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10487
        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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10488
      else
 
10489
        if test "$host_cpu" = ia64; then
 
10490
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
10491
          allow_undefined_flag="-z nodefs"
 
10492
          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"
 
10493
        else
 
10494
         # Determine the default libpath from the value encoded in an
 
10495
         # empty executable.
 
10496
         cat >conftest.$ac_ext <<_ACEOF
 
10497
/* confdefs.h.  */
 
10498
_ACEOF
 
10499
cat confdefs.h >>conftest.$ac_ext
 
10500
cat >>conftest.$ac_ext <<_ACEOF
 
10501
/* end confdefs.h.  */
 
10502
 
 
10503
int
 
10504
main ()
 
10505
{
 
10506
 
 
10507
  ;
 
10508
  return 0;
 
10509
}
 
10510
_ACEOF
 
10511
rm -f conftest.$ac_objext conftest$ac_exeext
 
10512
if { (ac_try="$ac_link"
 
10513
case "(($ac_try" in
 
10514
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10515
  *) ac_try_echo=$ac_try;;
 
10516
esac
 
10517
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10518
  (eval "$ac_link") 2>conftest.er1
 
10519
  ac_status=$?
 
10520
  grep -v '^ *+' conftest.er1 >conftest.err
 
10521
  rm -f conftest.er1
 
10522
  cat conftest.err >&5
 
10523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10524
  (exit $ac_status); } && {
 
10525
         test -z "$ac_c_werror_flag" ||
 
10526
         test ! -s conftest.err
 
10527
       } && test -s conftest$ac_exeext &&
 
10528
       $as_test_x conftest$ac_exeext; then
 
10529
 
 
10530
lt_aix_libpath_sed='
 
10531
    /Import File Strings/,/^$/ {
 
10532
        /^0/ {
 
10533
            s/^0  *\(.*\)$/\1/
 
10534
            p
 
10535
        }
 
10536
    }'
 
10537
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10538
# Check for a 64-bit object if we didn't find anything.
 
10539
if test -z "$aix_libpath"; then
 
10540
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
10541
fi
 
10542
else
 
10543
  echo "$as_me: failed program was:" >&5
 
10544
sed 's/^/| /' conftest.$ac_ext >&5
 
10545
 
 
10546
 
 
10547
fi
 
10548
 
 
10549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10550
      conftest$ac_exeext conftest.$ac_ext
 
10551
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10552
 
 
10553
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10554
          # Warning - without using the other run time loading flags,
 
10555
          # -berok will link without error, but may produce a broken library.
 
10556
          no_undefined_flag=' ${wl}-bernotok'
 
10557
          allow_undefined_flag=' ${wl}-berok'
 
10558
          # Exported symbols can be pulled into shared objects from archives
 
10559
          whole_archive_flag_spec='$convenience'
 
10560
          archive_cmds_need_lc=yes
 
10561
          # This is similar to how AIX traditionally builds its shared libraries.
 
10562
          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'
 
10563
        fi
 
10564
      fi
 
10565
      ;;
 
10566
 
 
10567
    amigaos*)
 
10568
      case $host_cpu in
 
10569
      powerpc)
 
10570
            # see comment about AmigaOS4 .so support
 
10571
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10572
            archive_expsym_cmds=''
 
10573
        ;;
 
10574
      m68k)
 
10575
            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)'
 
10576
            hardcode_libdir_flag_spec='-L$libdir'
 
10577
            hardcode_minus_L=yes
 
10578
        ;;
 
10579
      esac
 
10580
      ;;
 
10581
 
 
10582
    bsdi[45]*)
 
10583
      export_dynamic_flag_spec=-rdynamic
 
10584
      ;;
 
10585
 
 
10586
    cygwin* | mingw* | pw32*)
 
10587
      # When not using gcc, we currently assume that we are using
 
10588
      # Microsoft Visual C++.
 
10589
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
10590
      # no search path for DLLs.
 
10591
      hardcode_libdir_flag_spec=' '
 
10592
      allow_undefined_flag=unsupported
 
10593
      # Tell ltmain to make .lib files, not .a files.
 
10594
      libext=lib
 
10595
      # Tell ltmain to make .dll files, not .so files.
 
10596
      shrext_cmds=".dll"
 
10597
      # FIXME: Setting linknames here is a bad hack.
 
10598
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
10599
      # The linker will automatically build a .lib file if we build a DLL.
 
10600
      old_archive_from_new_cmds='true'
 
10601
      # FIXME: Should let the user specify the lib program.
 
10602
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
10603
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
10604
      enable_shared_with_static_runtimes=yes
 
10605
      ;;
 
10606
 
 
10607
    darwin* | rhapsody*)
 
10608
 
 
10609
 
 
10610
  archive_cmds_need_lc=no
 
10611
  hardcode_direct=no
 
10612
  hardcode_automatic=yes
 
10613
  hardcode_shlibpath_var=unsupported
 
10614
  whole_archive_flag_spec=''
 
10615
  link_all_deplibs=yes
 
10616
  allow_undefined_flag="$_lt_dar_allow_undefined"
 
10617
  if test "$GCC" = "yes"; then
 
10618
    output_verbose_link_cmd=echo
 
10619
    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
10620
    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
10621
    archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
10622
    module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
10623
 
 
10624
  else
 
10625
  ld_shlibs=no
 
10626
  fi
 
10627
 
 
10628
      ;;
 
10629
 
 
10630
    dgux*)
 
10631
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10632
      hardcode_libdir_flag_spec='-L$libdir'
 
10633
      hardcode_shlibpath_var=no
 
10634
      ;;
 
10635
 
 
10636
    freebsd1*)
 
10637
      ld_shlibs=no
 
10638
      ;;
 
10639
 
 
10640
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
10641
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
10642
    # does not break anything, and helps significantly (at the cost of a little
 
10643
    # extra space).
 
10644
    freebsd2.2*)
 
10645
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
10646
      hardcode_libdir_flag_spec='-R$libdir'
 
10647
      hardcode_direct=yes
 
10648
      hardcode_shlibpath_var=no
 
10649
      ;;
 
10650
 
 
10651
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
10652
    freebsd2*)
 
10653
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10654
      hardcode_direct=yes
 
10655
      hardcode_minus_L=yes
 
10656
      hardcode_shlibpath_var=no
 
10657
      ;;
 
10658
 
 
10659
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
10660
    freebsd* | dragonfly*)
 
10661
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
10662
      hardcode_libdir_flag_spec='-R$libdir'
 
10663
      hardcode_direct=yes
 
10664
      hardcode_shlibpath_var=no
 
10665
      ;;
 
10666
 
 
10667
    hpux9*)
 
10668
      if test "$GCC" = yes; then
 
10669
        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'
 
10670
      else
 
10671
        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'
 
10672
      fi
 
10673
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10674
      hardcode_libdir_separator=:
 
10675
      hardcode_direct=yes
 
10676
 
 
10677
      # hardcode_minus_L: Not really in the search PATH,
 
10678
      # but as the default location of the library.
 
10679
      hardcode_minus_L=yes
 
10680
      export_dynamic_flag_spec='${wl}-E'
 
10681
      ;;
 
10682
 
 
10683
    hpux10*)
 
10684
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10685
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10686
      else
 
10687
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
10688
      fi
 
10689
      if test "$with_gnu_ld" = no; then
 
10690
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10691
        hardcode_libdir_flag_spec_ld='+b $libdir'
 
10692
        hardcode_libdir_separator=:
 
10693
        hardcode_direct=yes
 
10694
        hardcode_direct_absolute=yes
 
10695
        export_dynamic_flag_spec='${wl}-E'
 
10696
        # hardcode_minus_L: Not really in the search PATH,
 
10697
        # but as the default location of the library.
 
10698
        hardcode_minus_L=yes
 
10699
      fi
 
10700
      ;;
 
10701
 
 
10702
    hpux11*)
 
10703
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
10704
        case $host_cpu in
 
10705
        hppa*64*)
 
10706
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10707
          ;;
 
10708
        ia64*)
 
10709
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10710
          ;;
 
10711
        *)
 
10712
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10713
          ;;
 
10714
        esac
 
10715
      else
 
10716
        case $host_cpu in
 
10717
        hppa*64*)
 
10718
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10719
          ;;
 
10720
        ia64*)
 
10721
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
10722
          ;;
 
10723
        *)
 
10724
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
10725
          ;;
 
10726
        esac
 
10727
      fi
 
10728
      if test "$with_gnu_ld" = no; then
 
10729
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
10730
        hardcode_libdir_separator=:
 
10731
 
 
10732
        case $host_cpu in
 
10733
        hppa*64*|ia64*)
 
10734
          hardcode_direct=no
 
10735
          hardcode_shlibpath_var=no
 
10736
          ;;
 
10737
        *)
 
10738
          hardcode_direct=yes
 
10739
          hardcode_direct_absolute=yes
 
10740
          export_dynamic_flag_spec='${wl}-E'
 
10741
 
 
10742
          # hardcode_minus_L: Not really in the search PATH,
 
10743
          # but as the default location of the library.
 
10744
          hardcode_minus_L=yes
 
10745
          ;;
 
10746
        esac
 
10747
      fi
 
10748
      ;;
 
10749
 
 
10750
    irix5* | irix6* | nonstopux*)
 
10751
      if test "$GCC" = yes; then
 
10752
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10753
        # Try to use the -exported_symbol ld option, if it does not
 
10754
        # work, assume that -exports_file does not work either and
 
10755
        # implicitly export all symbols.
 
10756
        save_LDFLAGS="$LDFLAGS"
 
10757
        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
 
10758
        cat >conftest.$ac_ext <<_ACEOF
 
10759
int foo(void) {}
 
10760
_ACEOF
 
10761
rm -f conftest.$ac_objext conftest$ac_exeext
 
10762
if { (ac_try="$ac_link"
 
10763
case "(($ac_try" in
 
10764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10765
  *) ac_try_echo=$ac_try;;
 
10766
esac
 
10767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10768
  (eval "$ac_link") 2>conftest.er1
 
10769
  ac_status=$?
 
10770
  grep -v '^ *+' conftest.er1 >conftest.err
 
10771
  rm -f conftest.er1
 
10772
  cat conftest.err >&5
 
10773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10774
  (exit $ac_status); } && {
 
10775
         test -z "$ac_c_werror_flag" ||
 
10776
         test ! -s conftest.err
 
10777
       } && test -s conftest$ac_exeext &&
 
10778
       $as_test_x conftest$ac_exeext; then
 
10779
  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
 
10780
 
 
10781
else
 
10782
  echo "$as_me: failed program was:" >&5
 
10783
sed 's/^/| /' conftest.$ac_ext >&5
 
10784
 
 
10785
 
 
10786
fi
 
10787
 
 
10788
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10789
      conftest$ac_exeext conftest.$ac_ext
 
10790
        LDFLAGS="$save_LDFLAGS"
 
10791
      else
 
10792
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10793
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
 
10794
      fi
 
10795
      archive_cmds_need_lc='no'
 
10796
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10797
      hardcode_libdir_separator=:
 
10798
      inherit_rpath=yes
 
10799
      link_all_deplibs=yes
 
10800
      ;;
 
10801
 
 
10802
    netbsd* | netbsdelf*-gnu)
 
10803
      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
10804
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
10805
      else
 
10806
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
10807
      fi
 
10808
      hardcode_libdir_flag_spec='-R$libdir'
 
10809
      hardcode_direct=yes
 
10810
      hardcode_shlibpath_var=no
 
10811
      ;;
 
10812
 
 
10813
    newsos6)
 
10814
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10815
      hardcode_direct=yes
 
10816
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10817
      hardcode_libdir_separator=:
 
10818
      hardcode_shlibpath_var=no
 
10819
      ;;
 
10820
 
 
10821
    *nto* | *qnx*)
 
10822
      ;;
 
10823
 
 
10824
    openbsd*)
 
10825
      if test -f /usr/libexec/ld.so; then
 
10826
        hardcode_direct=yes
 
10827
        hardcode_shlibpath_var=no
 
10828
        hardcode_direct_absolute=yes
 
10829
        if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10830
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10831
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
10832
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10833
          export_dynamic_flag_spec='${wl}-E'
 
10834
        else
 
10835
          case $host_os in
 
10836
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
10837
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
10838
             hardcode_libdir_flag_spec='-R$libdir'
 
10839
             ;;
 
10840
           *)
 
10841
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
10842
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
10843
             ;;
 
10844
          esac
 
10845
        fi
 
10846
      else
 
10847
        ld_shlibs=no
 
10848
      fi
 
10849
      ;;
 
10850
 
 
10851
    os2*)
 
10852
      hardcode_libdir_flag_spec='-L$libdir'
 
10853
      hardcode_minus_L=yes
 
10854
      allow_undefined_flag=unsupported
 
10855
      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'
 
10856
      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
10857
      ;;
 
10858
 
 
10859
    osf3*)
 
10860
      if test "$GCC" = yes; then
 
10861
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10862
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10863
      else
 
10864
        allow_undefined_flag=' -expect_unresolved \*'
 
10865
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10866
      fi
 
10867
      archive_cmds_need_lc='no'
 
10868
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10869
      hardcode_libdir_separator=:
 
10870
      ;;
 
10871
 
 
10872
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
10873
      if test "$GCC" = yes; then
 
10874
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
10875
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10876
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
10877
      else
 
10878
        allow_undefined_flag=' -expect_unresolved \*'
 
10879
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
10880
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
 
10881
        $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
 
10882
 
 
10883
        # Both c and cxx compiler support -rpath directly
 
10884
        hardcode_libdir_flag_spec='-rpath $libdir'
 
10885
      fi
 
10886
      archive_cmds_need_lc='no'
 
10887
      hardcode_libdir_separator=:
 
10888
      ;;
 
10889
 
 
10890
    solaris*)
 
10891
      no_undefined_flag=' -z defs'
 
10892
      if test "$GCC" = yes; then
 
10893
        wlarc='${wl}'
 
10894
        archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10895
        archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10896
          $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10897
      else
 
10898
        case `$CC -V 2>&1` in
 
10899
        *"Compilers 5.0"*)
 
10900
          wlarc=''
 
10901
          archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10902
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10903
          $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
 
10904
          ;;
 
10905
        *)
 
10906
          wlarc='${wl}'
 
10907
          archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10908
          archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
10909
          $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
 
10910
          ;;
 
10911
        esac
 
10912
      fi
 
10913
      hardcode_libdir_flag_spec='-R$libdir'
 
10914
      hardcode_shlibpath_var=no
 
10915
      case $host_os in
 
10916
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10917
      *)
 
10918
        # The compiler driver will combine and reorder linker options,
 
10919
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
10920
        # but is careful enough not to reorder.
 
10921
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10922
        if test "$GCC" = yes; then
 
10923
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
10924
        else
 
10925
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
10926
        fi
 
10927
        ;;
 
10928
      esac
 
10929
      link_all_deplibs=yes
 
10930
      ;;
 
10931
 
 
10932
    sunos4*)
 
10933
      if test "x$host_vendor" = xsequent; then
 
10934
        # Use $CC to link under sequent, because it throws in some extra .o
 
10935
        # files that make .init and .fini sections work.
 
10936
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
10937
      else
 
10938
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
10939
      fi
 
10940
      hardcode_libdir_flag_spec='-L$libdir'
 
10941
      hardcode_direct=yes
 
10942
      hardcode_minus_L=yes
 
10943
      hardcode_shlibpath_var=no
 
10944
      ;;
 
10945
 
 
10946
    sysv4)
 
10947
      case $host_vendor in
 
10948
        sni)
 
10949
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10950
          hardcode_direct=yes # is this really true???
 
10951
        ;;
 
10952
        siemens)
 
10953
          ## LD is ld it makes a PLAMLIB
 
10954
          ## CC just makes a GrossModule.
 
10955
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
10956
          reload_cmds='$CC -r -o $output$reload_objs'
 
10957
          hardcode_direct=no
 
10958
        ;;
 
10959
        motorola)
 
10960
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10961
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
10962
        ;;
 
10963
      esac
 
10964
      runpath_var='LD_RUN_PATH'
 
10965
      hardcode_shlibpath_var=no
 
10966
      ;;
 
10967
 
 
10968
    sysv4.3*)
 
10969
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10970
      hardcode_shlibpath_var=no
 
10971
      export_dynamic_flag_spec='-Bexport'
 
10972
      ;;
 
10973
 
 
10974
    sysv4*MP*)
 
10975
      if test -d /usr/nec; then
 
10976
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
10977
        hardcode_shlibpath_var=no
 
10978
        runpath_var=LD_RUN_PATH
 
10979
        hardcode_runpath_var=yes
 
10980
        ld_shlibs=yes
 
10981
      fi
 
10982
      ;;
 
10983
 
 
10984
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
10985
      no_undefined_flag='${wl}-z,text'
 
10986
      archive_cmds_need_lc=no
 
10987
      hardcode_shlibpath_var=no
 
10988
      runpath_var='LD_RUN_PATH'
 
10989
 
 
10990
      if test "$GCC" = yes; then
 
10991
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10992
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10993
      else
 
10994
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10995
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
10996
      fi
 
10997
      ;;
 
10998
 
 
10999
    sysv5* | sco3.2v5* | sco5v6*)
 
11000
      # Note: We can NOT use -z defs as we might desire, because we do not
 
11001
      # link with -lc, and that would cause any symbols used from libc to
 
11002
      # always be unresolved, which means just about no library would
 
11003
      # ever link correctly.  If we're not using GNU ld we use -z text
 
11004
      # though, which does catch some bad symbols but isn't as heavy-handed
 
11005
      # as -z defs.
 
11006
      no_undefined_flag='${wl}-z,text'
 
11007
      allow_undefined_flag='${wl}-z,nodefs'
 
11008
      archive_cmds_need_lc=no
 
11009
      hardcode_shlibpath_var=no
 
11010
      hardcode_libdir_flag_spec='${wl}-R,$libdir'
 
11011
      hardcode_libdir_separator=':'
 
11012
      link_all_deplibs=yes
 
11013
      export_dynamic_flag_spec='${wl}-Bexport'
 
11014
      runpath_var='LD_RUN_PATH'
 
11015
 
 
11016
      if test "$GCC" = yes; then
 
11017
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11018
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11019
      else
 
11020
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11021
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11022
      fi
 
11023
      ;;
 
11024
 
 
11025
    uts4*)
 
11026
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
11027
      hardcode_libdir_flag_spec='-L$libdir'
 
11028
      hardcode_shlibpath_var=no
 
11029
      ;;
 
11030
 
 
11031
    *)
 
11032
      ld_shlibs=no
 
11033
      ;;
 
11034
    esac
 
11035
 
 
11036
    if test x$host_vendor = xsni; then
 
11037
      case $host in
 
11038
      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
11039
        export_dynamic_flag_spec='${wl}-Blargedynsym'
 
11040
        ;;
 
11041
      esac
 
11042
    fi
 
11043
  fi
 
11044
 
 
11045
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
11046
echo "${ECHO_T}$ld_shlibs" >&6; }
 
11047
test "$ld_shlibs" = no && can_build_shared=no
 
11048
 
 
11049
with_gnu_ld=$with_gnu_ld
 
11050
 
 
11051
 
 
11052
 
 
11053
 
 
11054
 
 
11055
 
 
11056
 
 
11057
 
 
11058
 
 
11059
 
 
11060
 
 
11061
 
 
11062
 
 
11063
 
 
11064
 
 
11065
#
 
11066
# Do we need to explicitly link libc?
 
11067
#
 
11068
case "x$archive_cmds_need_lc" in
 
11069
x|xyes)
 
11070
  # Assume -lc should be added
 
11071
  archive_cmds_need_lc=yes
 
11072
 
 
11073
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11074
    case $archive_cmds in
 
11075
    *'~'*)
 
11076
      # FIXME: we may have to deal with multi-command sequences.
 
11077
      ;;
 
11078
    '$CC '*)
 
11079
      # Test whether the compiler implicitly links with -lc since on some
 
11080
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11081
      # to ld, don't add -lc before -lgcc.
 
11082
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11083
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
11084
      $RM conftest*
 
11085
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11086
 
 
11087
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11088
  (eval $ac_compile) 2>&5
 
11089
  ac_status=$?
 
11090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11091
  (exit $ac_status); } 2>conftest.err; then
 
11092
        soname=conftest
 
11093
        lib=conftest
 
11094
        libobjs=conftest.$ac_objext
 
11095
        deplibs=
 
11096
        wl=$lt_prog_compiler_wl
 
11097
        pic_flag=$lt_prog_compiler_pic
 
11098
        compiler_flags=-v
 
11099
        linker_flags=-v
 
11100
        verstring=
 
11101
        output_objdir=.
 
11102
        libname=conftest
 
11103
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
11104
        allow_undefined_flag=
 
11105
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11106
  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11107
  ac_status=$?
 
11108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11109
  (exit $ac_status); }
 
11110
        then
 
11111
          archive_cmds_need_lc=no
 
11112
        else
 
11113
          archive_cmds_need_lc=yes
 
11114
        fi
 
11115
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
11116
      else
 
11117
        cat conftest.err 1>&5
 
11118
      fi
 
11119
      $RM conftest*
 
11120
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
11121
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
11122
      ;;
 
11123
    esac
 
11124
  fi
 
11125
  ;;
 
11126
esac
 
11127
 
 
11128
 
 
11129
 
 
11130
 
 
11131
 
 
11132
 
 
11133
 
 
11134
 
 
11135
 
 
11136
 
 
11137
 
 
11138
 
 
11139
 
 
11140
 
 
11141
 
 
11142
 
 
11143
 
 
11144
 
 
11145
 
 
11146
 
 
11147
 
 
11148
 
 
11149
 
 
11150
 
 
11151
 
 
11152
 
 
11153
 
 
11154
 
 
11155
 
 
11156
 
 
11157
 
 
11158
 
 
11159
 
 
11160
 
 
11161
 
 
11162
 
 
11163
 
 
11164
 
 
11165
 
 
11166
 
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
 
 
11172
 
 
11173
 
 
11174
 
 
11175
 
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
 
 
11181
 
 
11182
 
 
11183
 
 
11184
 
 
11185
 
 
11186
 
 
11187
 
 
11188
 
 
11189
 
 
11190
 
 
11191
 
 
11192
 
 
11193
 
 
11194
 
 
11195
 
 
11196
 
 
11197
 
 
11198
 
 
11199
 
 
11200
 
 
11201
 
 
11202
 
 
11203
 
 
11204
 
 
11205
 
 
11206
 
 
11207
 
 
11208
 
 
11209
 
 
11210
 
 
11211
 
 
11212
 
 
11213
 
 
11214
 
 
11215
 
 
11216
 
 
11217
 
 
11218
 
 
11219
 
 
11220
 
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
 
 
11229
 
 
11230
 
 
11231
 
 
11232
 
 
11233
 
 
11234
 
 
11235
 
 
11236
 
 
11237
 
 
11238
 
 
11239
 
 
11240
 
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
 
 
11246
 
 
11247
 
 
11248
 
 
11249
 
 
11250
 
 
11251
 
 
11252
 
 
11253
 
 
11254
 
 
11255
 
 
11256
 
 
11257
 
 
11258
 
 
11259
 
 
11260
 
 
11261
 
 
11262
 
 
11263
 
 
11264
 
 
11265
 
 
11266
 
 
11267
 
 
11268
 
 
11269
 
 
11270
 
 
11271
 
 
11272
 
 
11273
 
 
11274
 
 
11275
 
 
11276
 
 
11277
 
 
11278
 
 
11279
 
 
11280
 
 
11281
 
 
11282
 
 
11283
 
 
11284
  { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11285
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
11286
 
 
11287
if test "$GCC" = yes; then
 
11288
  case $host_os in
 
11289
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
11290
    *) lt_awk_arg="/^libraries:/" ;;
 
11291
  esac
 
11292
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11293
  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
 
11294
    # if the path contains ";" then we assume it to be the separator
 
11295
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11296
    # assumed that no part of a normal pathname contains ";" but that should
 
11297
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11298
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
11299
  else
 
11300
    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11301
  fi
 
11302
  # Ok, now we have the path, separated by spaces, we can step through it
 
11303
  # and add multilib dir if necessary.
 
11304
  lt_tmp_lt_search_path_spec=
 
11305
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
11306
  for lt_sys_path in $lt_search_path_spec; do
 
11307
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
11308
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
11309
    else
 
11310
      test -d "$lt_sys_path" && \
 
11311
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
11312
    fi
 
11313
  done
 
11314
  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
 
11315
BEGIN {RS=" "; FS="/|\n";} {
 
11316
  lt_foo="";
 
11317
  lt_count=0;
 
11318
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
11319
    if ($lt_i != "" && $lt_i != ".") {
 
11320
      if ($lt_i == "..") {
 
11321
        lt_count++;
 
11322
      } else {
 
11323
        if (lt_count == 0) {
 
11324
          lt_foo="/" $lt_i lt_foo;
 
11325
        } else {
 
11326
          lt_count--;
 
11327
        }
 
11328
      }
 
11329
    }
 
11330
  }
 
11331
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
11332
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
11333
}'`
 
11334
  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
 
11335
else
 
11336
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11337
fi
 
11338
library_names_spec=
 
11339
libname_spec='lib$name'
 
11340
soname_spec=
 
11341
shrext_cmds=".so"
 
11342
postinstall_cmds=
 
11343
postuninstall_cmds=
 
11344
finish_cmds=
 
11345
finish_eval=
 
11346
shlibpath_var=
 
11347
shlibpath_overrides_runpath=unknown
 
11348
version_type=none
 
11349
dynamic_linker="$host_os ld.so"
 
11350
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11351
need_lib_prefix=unknown
 
11352
hardcode_into_libs=no
 
11353
 
 
11354
# when you set need_version to no, make sure it does not cause -set_version
 
11355
# flags to be left without arguments
 
11356
need_version=unknown
 
11357
 
 
11358
case $host_os in
 
11359
aix3*)
 
11360
  version_type=linux
 
11361
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11362
  shlibpath_var=LIBPATH
 
11363
 
 
11364
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11365
  soname_spec='${libname}${release}${shared_ext}$major'
 
11366
  ;;
 
11367
 
 
11368
aix[4-9]*)
 
11369
  version_type=linux
 
11370
  need_lib_prefix=no
 
11371
  need_version=no
 
11372
  hardcode_into_libs=yes
 
11373
  if test "$host_cpu" = ia64; then
 
11374
    # AIX 5 supports IA64
 
11375
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11376
    shlibpath_var=LD_LIBRARY_PATH
 
11377
  else
 
11378
    # With GCC up to 2.95.x, collect2 would create an import file
 
11379
    # for dependence libraries.  The import file would start with
 
11380
    # the line `#! .'.  This would cause the generated library to
 
11381
    # depend on `.', always an invalid library.  This was fixed in
 
11382
    # development snapshots of GCC prior to 3.0.
 
11383
    case $host_os in
 
11384
      aix4 | aix4.[01] | aix4.[01].*)
 
11385
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11386
           echo ' yes '
 
11387
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
11388
        :
 
11389
      else
 
11390
        can_build_shared=no
 
11391
      fi
 
11392
      ;;
 
11393
    esac
 
11394
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11395
    # soname into executable. Probably we can add versioning support to
 
11396
    # collect2, so additional links can be useful in future.
 
11397
    if test "$aix_use_runtimelinking" = yes; then
 
11398
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11399
      # instead of lib<name>.a to let people know that these are not
 
11400
      # typical AIX shared libraries.
 
11401
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11402
    else
 
11403
      # We preserve .a as extension for shared libraries through AIX4.2
 
11404
      # and later when we are not doing run time linking.
 
11405
      library_names_spec='${libname}${release}.a $libname.a'
 
11406
      soname_spec='${libname}${release}${shared_ext}$major'
 
11407
    fi
 
11408
    shlibpath_var=LIBPATH
 
11409
  fi
 
11410
  ;;
 
11411
 
 
11412
amigaos*)
 
11413
  case $host_cpu in
 
11414
  powerpc)
 
11415
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
11416
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
11417
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11418
    ;;
 
11419
  m68k)
 
11420
    library_names_spec='$libname.ixlibrary $libname.a'
 
11421
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11422
    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'
 
11423
    ;;
 
11424
  esac
 
11425
  ;;
 
11426
 
 
11427
beos*)
 
11428
  library_names_spec='${libname}${shared_ext}'
 
11429
  dynamic_linker="$host_os ld.so"
 
11430
  shlibpath_var=LIBRARY_PATH
 
11431
  ;;
 
11432
 
 
11433
bsdi[45]*)
 
11434
  version_type=linux
 
11435
  need_version=no
 
11436
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11437
  soname_spec='${libname}${release}${shared_ext}$major'
 
11438
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11439
  shlibpath_var=LD_LIBRARY_PATH
 
11440
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11441
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11442
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11443
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11444
  # libtool to hard-code these into programs
 
11445
  ;;
 
11446
 
 
11447
cygwin* | mingw* | pw32*)
 
11448
  version_type=windows
 
11449
  shrext_cmds=".dll"
 
11450
  need_version=no
 
11451
  need_lib_prefix=no
 
11452
 
 
11453
  case $GCC,$host_os in
 
11454
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11455
    library_names_spec='$libname.dll.a'
 
11456
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11457
    postinstall_cmds='base_file=`basename \${file}`~
 
11458
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
11459
      dldir=$destdir/`dirname \$dlpath`~
 
11460
      test -d \$dldir || mkdir -p \$dldir~
 
11461
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11462
      chmod a+x \$dldir/$dlname~
 
11463
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
11464
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
11465
      fi'
 
11466
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11467
      dlpath=$dir/\$dldll~
 
11468
       $RM \$dlpath'
 
11469
    shlibpath_overrides_runpath=yes
 
11470
 
 
11471
    case $host_os in
 
11472
    cygwin*)
 
11473
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11474
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11475
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11476
      ;;
 
11477
    mingw*)
 
11478
      # MinGW DLLs use traditional 'lib' prefix
 
11479
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11480
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11481
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
11482
        # It is most probably a Windows format PATH printed by
 
11483
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11484
        # path with ; separators, and with drive letters. We can handle the
 
11485
        # drive letters (cygwin fileutils understands them), so leave them,
 
11486
        # especially as we might pass files found there to a mingw objdump,
 
11487
        # which wouldn't understand a cygwinified path. Ahh.
 
11488
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11489
      else
 
11490
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11491
      fi
 
11492
      ;;
 
11493
    pw32*)
 
11494
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11495
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11496
      ;;
 
11497
    esac
 
11498
    ;;
 
11499
 
 
11500
  *)
 
11501
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11502
    ;;
 
11503
  esac
 
11504
  dynamic_linker='Win32 ld.exe'
 
11505
  # FIXME: first we should search . and the directory the executable is in
 
11506
  shlibpath_var=PATH
 
11507
  ;;
 
11508
 
 
11509
darwin* | rhapsody*)
 
11510
  dynamic_linker="$host_os dyld"
 
11511
  version_type=darwin
 
11512
  need_lib_prefix=no
 
11513
  need_version=no
 
11514
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11515
  soname_spec='${libname}${release}${major}$shared_ext'
 
11516
  shlibpath_overrides_runpath=yes
 
11517
  shlibpath_var=DYLD_LIBRARY_PATH
 
11518
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11519
 
 
11520
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
11521
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11522
  ;;
 
11523
 
 
11524
dgux*)
 
11525
  version_type=linux
 
11526
  need_lib_prefix=no
 
11527
  need_version=no
 
11528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11529
  soname_spec='${libname}${release}${shared_ext}$major'
 
11530
  shlibpath_var=LD_LIBRARY_PATH
 
11531
  ;;
 
11532
 
 
11533
freebsd1*)
 
11534
  dynamic_linker=no
 
11535
  ;;
 
11536
 
 
11537
freebsd* | dragonfly*)
 
11538
  # DragonFly does not have aout.  When/if they implement a new
 
11539
  # versioning mechanism, adjust this.
 
11540
  if test -x /usr/bin/objformat; then
 
11541
    objformat=`/usr/bin/objformat`
 
11542
  else
 
11543
    case $host_os in
 
11544
    freebsd[123]*) objformat=aout ;;
 
11545
    *) objformat=elf ;;
 
11546
    esac
 
11547
  fi
 
11548
  version_type=freebsd-$objformat
 
11549
  case $version_type in
 
11550
    freebsd-elf*)
 
11551
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11552
      need_version=no
 
11553
      need_lib_prefix=no
 
11554
      ;;
 
11555
    freebsd-*)
 
11556
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11557
      need_version=yes
 
11558
      ;;
 
11559
  esac
 
11560
  shlibpath_var=LD_LIBRARY_PATH
 
11561
  case $host_os in
 
11562
  freebsd2*)
 
11563
    shlibpath_overrides_runpath=yes
 
11564
    ;;
 
11565
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11566
    shlibpath_overrides_runpath=yes
 
11567
    hardcode_into_libs=yes
 
11568
    ;;
 
11569
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
11570
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11571
    shlibpath_overrides_runpath=no
 
11572
    hardcode_into_libs=yes
 
11573
    ;;
 
11574
  *) # from 4.6 on, and DragonFly
 
11575
    shlibpath_overrides_runpath=yes
 
11576
    hardcode_into_libs=yes
 
11577
    ;;
 
11578
  esac
 
11579
  ;;
 
11580
 
 
11581
gnu*)
 
11582
  version_type=linux
 
11583
  need_lib_prefix=no
 
11584
  need_version=no
 
11585
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11586
  soname_spec='${libname}${release}${shared_ext}$major'
 
11587
  shlibpath_var=LD_LIBRARY_PATH
 
11588
  hardcode_into_libs=yes
 
11589
  ;;
 
11590
 
 
11591
hpux9* | hpux10* | hpux11*)
 
11592
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11593
  # link against other versions.
 
11594
  version_type=sunos
 
11595
  need_lib_prefix=no
 
11596
  need_version=no
 
11597
  case $host_cpu in
 
11598
  ia64*)
 
11599
    shrext_cmds='.so'
 
11600
    hardcode_into_libs=yes
 
11601
    dynamic_linker="$host_os dld.so"
 
11602
    shlibpath_var=LD_LIBRARY_PATH
 
11603
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11604
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11605
    soname_spec='${libname}${release}${shared_ext}$major'
 
11606
    if test "X$HPUX_IA64_MODE" = X32; then
 
11607
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11608
    else
 
11609
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11610
    fi
 
11611
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11612
    ;;
 
11613
  hppa*64*)
 
11614
    shrext_cmds='.sl'
 
11615
    hardcode_into_libs=yes
 
11616
    dynamic_linker="$host_os dld.sl"
 
11617
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11618
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11619
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11620
    soname_spec='${libname}${release}${shared_ext}$major'
 
11621
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11622
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11623
    ;;
 
11624
  *)
 
11625
    shrext_cmds='.sl'
 
11626
    dynamic_linker="$host_os dld.sl"
 
11627
    shlibpath_var=SHLIB_PATH
 
11628
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11629
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11630
    soname_spec='${libname}${release}${shared_ext}$major'
 
11631
    ;;
 
11632
  esac
 
11633
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11634
  postinstall_cmds='chmod 555 $lib'
 
11635
  ;;
 
11636
 
 
11637
interix[3-9]*)
 
11638
  version_type=linux
 
11639
  need_lib_prefix=no
 
11640
  need_version=no
 
11641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11642
  soname_spec='${libname}${release}${shared_ext}$major'
 
11643
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
11644
  shlibpath_var=LD_LIBRARY_PATH
 
11645
  shlibpath_overrides_runpath=no
 
11646
  hardcode_into_libs=yes
 
11647
  ;;
 
11648
 
 
11649
irix5* | irix6* | nonstopux*)
 
11650
  case $host_os in
 
11651
    nonstopux*) version_type=nonstopux ;;
 
11652
    *)
 
11653
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11654
                version_type=linux
 
11655
        else
 
11656
                version_type=irix
 
11657
        fi ;;
 
11658
  esac
 
11659
  need_lib_prefix=no
 
11660
  need_version=no
 
11661
  soname_spec='${libname}${release}${shared_ext}$major'
 
11662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11663
  case $host_os in
 
11664
  irix5* | nonstopux*)
 
11665
    libsuff= shlibsuff=
 
11666
    ;;
 
11667
  *)
 
11668
    case $LD in # libtool.m4 will add one of these switches to LD
 
11669
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11670
      libsuff= shlibsuff= libmagic=32-bit;;
 
11671
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11672
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11673
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11674
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11675
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11676
    esac
 
11677
    ;;
 
11678
  esac
 
11679
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11680
  shlibpath_overrides_runpath=no
 
11681
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11682
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11683
  hardcode_into_libs=yes
 
11684
  ;;
 
11685
 
 
11686
# No shared lib support for Linux oldld, aout, or coff.
 
11687
linux*oldld* | linux*aout* | linux*coff*)
 
11688
  dynamic_linker=no
 
11689
  ;;
 
11690
 
 
11691
# This must be Linux ELF.
 
11692
linux* | k*bsd*-gnu)
 
11693
  version_type=linux
 
11694
  need_lib_prefix=no
 
11695
  need_version=no
 
11696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11697
  soname_spec='${libname}${release}${shared_ext}$major'
 
11698
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11699
  shlibpath_var=LD_LIBRARY_PATH
 
11700
  shlibpath_overrides_runpath=no
 
11701
  # Some binutils ld are patched to set DT_RUNPATH
 
11702
  save_LDFLAGS=$LDFLAGS
 
11703
  save_libdir=$libdir
 
11704
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
 
11705
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
 
11706
  cat >conftest.$ac_ext <<_ACEOF
 
11707
/* confdefs.h.  */
 
11708
_ACEOF
 
11709
cat confdefs.h >>conftest.$ac_ext
 
11710
cat >>conftest.$ac_ext <<_ACEOF
 
11711
/* end confdefs.h.  */
 
11712
 
 
11713
int
 
11714
main ()
 
11715
{
 
11716
 
 
11717
  ;
 
11718
  return 0;
 
11719
}
 
11720
_ACEOF
 
11721
rm -f conftest.$ac_objext conftest$ac_exeext
 
11722
if { (ac_try="$ac_link"
 
11723
case "(($ac_try" in
 
11724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11725
  *) ac_try_echo=$ac_try;;
 
11726
esac
 
11727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11728
  (eval "$ac_link") 2>conftest.er1
 
11729
  ac_status=$?
 
11730
  grep -v '^ *+' conftest.er1 >conftest.err
 
11731
  rm -f conftest.er1
 
11732
  cat conftest.err >&5
 
11733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11734
  (exit $ac_status); } && {
 
11735
         test -z "$ac_c_werror_flag" ||
 
11736
         test ! -s conftest.err
 
11737
       } && test -s conftest$ac_exeext &&
 
11738
       $as_test_x conftest$ac_exeext; then
 
11739
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
11740
  shlibpath_overrides_runpath=yes
 
11741
fi
 
11742
 
 
11743
else
 
11744
  echo "$as_me: failed program was:" >&5
 
11745
sed 's/^/| /' conftest.$ac_ext >&5
 
11746
 
 
11747
 
 
11748
fi
 
11749
 
 
11750
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11751
      conftest$ac_exeext conftest.$ac_ext
 
11752
  LDFLAGS=$save_LDFLAGS
 
11753
  libdir=$save_libdir
 
11754
 
 
11755
  # This implies no fast_install, which is unacceptable.
 
11756
  # Some rework will be needed to allow for fast_install
 
11757
  # before this can be enabled.
 
11758
  hardcode_into_libs=yes
 
11759
 
 
11760
  # Append ld.so.conf contents to the search path
 
11761
  if test -f /etc/ld.so.conf; then
 
11762
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11763
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11764
  fi
 
11765
 
 
11766
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11767
  # powerpc, because MkLinux only supported shared libraries with the
 
11768
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11769
  # most powerpc-linux boxes support dynamic linking these days and
 
11770
  # people can always --disable-shared, the test was removed, and we
 
11771
  # assume the GNU/Linux dynamic linker is in use.
 
11772
  dynamic_linker='GNU/Linux ld.so'
 
11773
  ;;
 
11774
 
 
11775
netbsdelf*-gnu)
 
11776
  version_type=linux
 
11777
  need_lib_prefix=no
 
11778
  need_version=no
 
11779
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11780
  soname_spec='${libname}${release}${shared_ext}$major'
 
11781
  shlibpath_var=LD_LIBRARY_PATH
 
11782
  shlibpath_overrides_runpath=no
 
11783
  hardcode_into_libs=yes
 
11784
  dynamic_linker='NetBSD ld.elf_so'
 
11785
  ;;
 
11786
 
 
11787
netbsd*)
 
11788
  version_type=sunos
 
11789
  need_lib_prefix=no
 
11790
  need_version=no
 
11791
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
11792
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11793
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11794
    dynamic_linker='NetBSD (a.out) ld.so'
 
11795
  else
 
11796
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11797
    soname_spec='${libname}${release}${shared_ext}$major'
 
11798
    dynamic_linker='NetBSD ld.elf_so'
 
11799
  fi
 
11800
  shlibpath_var=LD_LIBRARY_PATH
 
11801
  shlibpath_overrides_runpath=yes
 
11802
  hardcode_into_libs=yes
 
11803
  ;;
 
11804
 
 
11805
newsos6)
 
11806
  version_type=linux
 
11807
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11808
  shlibpath_var=LD_LIBRARY_PATH
 
11809
  shlibpath_overrides_runpath=yes
 
11810
  ;;
 
11811
 
 
11812
*nto* | *qnx*)
 
11813
  version_type=qnx
 
11814
  need_lib_prefix=no
 
11815
  need_version=no
 
11816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11817
  soname_spec='${libname}${release}${shared_ext}$major'
 
11818
  shlibpath_var=LD_LIBRARY_PATH
 
11819
  shlibpath_overrides_runpath=no
 
11820
  hardcode_into_libs=yes
 
11821
  dynamic_linker='ldqnx.so'
 
11822
  ;;
 
11823
 
 
11824
openbsd*)
 
11825
  version_type=sunos
 
11826
  sys_lib_dlsearch_path_spec="/usr/lib"
 
11827
  need_lib_prefix=no
 
11828
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
11829
  case $host_os in
 
11830
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
11831
    *)                          need_version=no  ;;
 
11832
  esac
 
11833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11834
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
11835
  shlibpath_var=LD_LIBRARY_PATH
 
11836
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11837
    case $host_os in
 
11838
      openbsd2.[89] | openbsd2.[89].*)
 
11839
        shlibpath_overrides_runpath=no
 
11840
        ;;
 
11841
      *)
 
11842
        shlibpath_overrides_runpath=yes
 
11843
        ;;
 
11844
      esac
 
11845
  else
 
11846
    shlibpath_overrides_runpath=yes
 
11847
  fi
 
11848
  ;;
 
11849
 
 
11850
os2*)
 
11851
  libname_spec='$name'
 
11852
  shrext_cmds=".dll"
 
11853
  need_lib_prefix=no
 
11854
  library_names_spec='$libname${shared_ext} $libname.a'
 
11855
  dynamic_linker='OS/2 ld.exe'
 
11856
  shlibpath_var=LIBPATH
 
11857
  ;;
 
11858
 
 
11859
osf3* | osf4* | osf5*)
 
11860
  version_type=osf
 
11861
  need_lib_prefix=no
 
11862
  need_version=no
 
11863
  soname_spec='${libname}${release}${shared_ext}$major'
 
11864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11865
  shlibpath_var=LD_LIBRARY_PATH
 
11866
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
11867
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
11868
  ;;
 
11869
 
 
11870
rdos*)
 
11871
  dynamic_linker=no
 
11872
  ;;
 
11873
 
 
11874
solaris*)
 
11875
  version_type=linux
 
11876
  need_lib_prefix=no
 
11877
  need_version=no
 
11878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11879
  soname_spec='${libname}${release}${shared_ext}$major'
 
11880
  shlibpath_var=LD_LIBRARY_PATH
 
11881
  shlibpath_overrides_runpath=yes
 
11882
  hardcode_into_libs=yes
 
11883
  # ldd complains unless libraries are executable
 
11884
  postinstall_cmds='chmod +x $lib'
 
11885
  ;;
 
11886
 
 
11887
sunos4*)
 
11888
  version_type=sunos
 
11889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
11890
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
11891
  shlibpath_var=LD_LIBRARY_PATH
 
11892
  shlibpath_overrides_runpath=yes
 
11893
  if test "$with_gnu_ld" = yes; then
 
11894
    need_lib_prefix=no
 
11895
  fi
 
11896
  need_version=yes
 
11897
  ;;
 
11898
 
 
11899
sysv4 | sysv4.3*)
 
11900
  version_type=linux
 
11901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11902
  soname_spec='${libname}${release}${shared_ext}$major'
 
11903
  shlibpath_var=LD_LIBRARY_PATH
 
11904
  case $host_vendor in
 
11905
    sni)
 
11906
      shlibpath_overrides_runpath=no
 
11907
      need_lib_prefix=no
 
11908
      runpath_var=LD_RUN_PATH
 
11909
      ;;
 
11910
    siemens)
 
11911
      need_lib_prefix=no
 
11912
      ;;
 
11913
    motorola)
 
11914
      need_lib_prefix=no
 
11915
      need_version=no
 
11916
      shlibpath_overrides_runpath=no
 
11917
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
11918
      ;;
 
11919
  esac
 
11920
  ;;
 
11921
 
 
11922
sysv4*MP*)
 
11923
  if test -d /usr/nec ;then
 
11924
    version_type=linux
 
11925
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
11926
    soname_spec='$libname${shared_ext}.$major'
 
11927
    shlibpath_var=LD_LIBRARY_PATH
 
11928
  fi
 
11929
  ;;
 
11930
 
 
11931
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
11932
  version_type=freebsd-elf
 
11933
  need_lib_prefix=no
 
11934
  need_version=no
 
11935
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11936
  soname_spec='${libname}${release}${shared_ext}$major'
 
11937
  shlibpath_var=LD_LIBRARY_PATH
 
11938
  shlibpath_overrides_runpath=yes
 
11939
  hardcode_into_libs=yes
 
11940
  if test "$with_gnu_ld" = yes; then
 
11941
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
11942
  else
 
11943
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
11944
    case $host_os in
 
11945
      sco3.2v5*)
 
11946
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
11947
        ;;
 
11948
    esac
 
11949
  fi
 
11950
  sys_lib_dlsearch_path_spec='/usr/lib'
 
11951
  ;;
 
11952
 
 
11953
tpf*)
 
11954
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
11955
  version_type=linux
 
11956
  need_lib_prefix=no
 
11957
  need_version=no
 
11958
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11959
  shlibpath_var=LD_LIBRARY_PATH
 
11960
  shlibpath_overrides_runpath=no
 
11961
  hardcode_into_libs=yes
 
11962
  ;;
 
11963
 
 
11964
uts4*)
 
11965
  version_type=linux
 
11966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11967
  soname_spec='${libname}${release}${shared_ext}$major'
 
11968
  shlibpath_var=LD_LIBRARY_PATH
 
11969
  ;;
 
11970
 
 
11971
*)
 
11972
  dynamic_linker=no
 
11973
  ;;
 
11974
esac
 
11975
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11976
echo "${ECHO_T}$dynamic_linker" >&6; }
 
11977
test "$dynamic_linker" = no && can_build_shared=no
 
11978
 
 
11979
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11980
if test "$GCC" = yes; then
 
11981
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11982
fi
 
11983
 
 
11984
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
11985
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
11986
fi
 
11987
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
11988
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
11989
fi
 
11990
 
 
11991
 
 
11992
 
 
11993
 
 
11994
 
 
11995
 
 
11996
 
 
11997
 
 
11998
 
 
11999
 
 
12000
 
 
12001
 
 
12002
 
 
12003
 
 
12004
 
 
12005
 
 
12006
 
 
12007
 
 
12008
 
 
12009
 
 
12010
 
 
12011
 
 
12012
 
 
12013
 
 
12014
 
 
12015
 
 
12016
 
 
12017
 
 
12018
 
 
12019
 
 
12020
 
 
12021
 
 
12022
 
 
12023
 
 
12024
 
 
12025
 
 
12026
 
 
12027
 
 
12028
 
 
12029
 
 
12030
 
 
12031
 
 
12032
 
 
12033
 
 
12034
 
 
12035
 
 
12036
 
 
12037
 
 
12038
 
 
12039
 
 
12040
 
 
12041
 
 
12042
 
 
12043
 
 
12044
 
 
12045
 
 
12046
 
 
12047
 
 
12048
 
 
12049
 
 
12050
 
 
12051
 
 
12052
 
 
12053
 
 
12054
 
 
12055
 
 
12056
 
 
12057
 
 
12058
 
 
12059
 
 
12060
 
 
12061
 
 
12062
 
 
12063
 
 
12064
 
 
12065
 
 
12066
 
 
12067
 
 
12068
 
 
12069
 
 
12070
 
 
12071
 
 
12072
 
 
12073
 
 
12074
 
 
12075
 
 
12076
 
 
12077
  { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12078
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
12079
hardcode_action=
 
12080
if test -n "$hardcode_libdir_flag_spec" ||
 
12081
   test -n "$runpath_var" ||
 
12082
   test "X$hardcode_automatic" = "Xyes" ; then
 
12083
 
 
12084
  # We can hardcode non-existent directories.
 
12085
  if test "$hardcode_direct" != no &&
 
12086
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12087
     # have to relink, otherwise we might link with an installed library
 
12088
     # when we should be linking with a yet-to-be-installed one
 
12089
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
12090
     test "$hardcode_minus_L" != no; then
 
12091
    # Linking always hardcodes the temporary library directory.
 
12092
    hardcode_action=relink
 
12093
  else
 
12094
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12095
    hardcode_action=immediate
 
12096
  fi
 
12097
else
 
12098
  # We cannot hardcode anything, or else we can only hardcode existing
 
12099
  # directories.
 
12100
  hardcode_action=unsupported
 
12101
fi
 
12102
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
12103
echo "${ECHO_T}$hardcode_action" >&6; }
 
12104
 
 
12105
if test "$hardcode_action" = relink ||
 
12106
   test "$inherit_rpath" = yes; then
 
12107
  # Fast installation is not supported
 
12108
  enable_fast_install=no
 
12109
elif test "$shlibpath_overrides_runpath" = yes ||
 
12110
     test "$enable_shared" = no; then
 
12111
  # Fast installation is not necessary
 
12112
  enable_fast_install=needless
 
12113
fi
 
12114
 
 
12115
 
 
12116
 
 
12117
 
 
12118
 
 
12119
 
 
12120
  if test "x$enable_dlopen" != xyes; then
 
12121
  enable_dlopen=unknown
 
12122
  enable_dlopen_self=unknown
 
12123
  enable_dlopen_self_static=unknown
 
12124
else
 
12125
  lt_cv_dlopen=no
 
12126
  lt_cv_dlopen_libs=
 
12127
 
 
12128
  case $host_os in
 
12129
  beos*)
 
12130
    lt_cv_dlopen="load_add_on"
 
12131
    lt_cv_dlopen_libs=
 
12132
    lt_cv_dlopen_self=yes
 
12133
    ;;
 
12134
 
 
12135
  mingw* | pw32*)
 
12136
    lt_cv_dlopen="LoadLibrary"
 
12137
    lt_cv_dlopen_libs=
 
12138
    ;;
 
12139
 
 
12140
  cygwin*)
 
12141
    lt_cv_dlopen="dlopen"
 
12142
    lt_cv_dlopen_libs=
 
12143
    ;;
 
12144
 
 
12145
  darwin*)
 
12146
  # if libdl is installed we need to link against it
 
12147
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12148
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
12149
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12151
else
 
12152
  ac_check_lib_save_LIBS=$LIBS
 
12153
LIBS="-ldl  $LIBS"
 
12154
cat >conftest.$ac_ext <<_ACEOF
 
12155
/* confdefs.h.  */
 
12156
_ACEOF
 
12157
cat confdefs.h >>conftest.$ac_ext
 
12158
cat >>conftest.$ac_ext <<_ACEOF
 
12159
/* end confdefs.h.  */
 
12160
 
 
12161
/* Override any GCC internal prototype to avoid an error.
 
12162
   Use char because int might match the return type of a GCC
 
12163
   builtin and then its argument prototype would still apply.  */
 
12164
#ifdef __cplusplus
 
12165
extern "C"
 
12166
#endif
 
12167
char dlopen ();
 
12168
int
 
12169
main ()
 
12170
{
 
12171
return dlopen ();
 
12172
  ;
 
12173
  return 0;
 
12174
}
 
12175
_ACEOF
 
12176
rm -f conftest.$ac_objext conftest$ac_exeext
 
12177
if { (ac_try="$ac_link"
 
12178
case "(($ac_try" in
 
12179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12180
  *) ac_try_echo=$ac_try;;
 
12181
esac
 
12182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12183
  (eval "$ac_link") 2>conftest.er1
 
12184
  ac_status=$?
 
12185
  grep -v '^ *+' conftest.er1 >conftest.err
 
12186
  rm -f conftest.er1
 
12187
  cat conftest.err >&5
 
12188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12189
  (exit $ac_status); } && {
 
12190
         test -z "$ac_c_werror_flag" ||
 
12191
         test ! -s conftest.err
 
12192
       } && test -s conftest$ac_exeext &&
 
12193
       $as_test_x conftest$ac_exeext; then
 
12194
  ac_cv_lib_dl_dlopen=yes
 
12195
else
 
12196
  echo "$as_me: failed program was:" >&5
 
12197
sed 's/^/| /' conftest.$ac_ext >&5
 
12198
 
 
12199
        ac_cv_lib_dl_dlopen=no
 
12200
fi
 
12201
 
 
12202
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12203
      conftest$ac_exeext conftest.$ac_ext
 
12204
LIBS=$ac_check_lib_save_LIBS
 
12205
fi
 
12206
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12207
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
12208
if test $ac_cv_lib_dl_dlopen = yes; then
 
12209
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12210
else
 
12211
 
 
12212
    lt_cv_dlopen="dyld"
 
12213
    lt_cv_dlopen_libs=
 
12214
    lt_cv_dlopen_self=yes
 
12215
 
 
12216
fi
 
12217
 
 
12218
    ;;
 
12219
 
 
12220
  *)
 
12221
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
12222
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
12223
if test "${ac_cv_func_shl_load+set}" = set; then
 
12224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12225
else
 
12226
  cat >conftest.$ac_ext <<_ACEOF
 
12227
/* confdefs.h.  */
 
12228
_ACEOF
 
12229
cat confdefs.h >>conftest.$ac_ext
 
12230
cat >>conftest.$ac_ext <<_ACEOF
 
12231
/* end confdefs.h.  */
 
12232
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12233
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12234
#define shl_load innocuous_shl_load
 
12235
 
 
12236
/* System header to define __stub macros and hopefully few prototypes,
 
12237
    which can conflict with char shl_load (); below.
 
12238
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12239
    <limits.h> exists even on freestanding compilers.  */
 
12240
 
 
12241
#ifdef __STDC__
 
12242
# include <limits.h>
 
12243
#else
 
12244
# include <assert.h>
 
12245
#endif
 
12246
 
 
12247
#undef shl_load
 
12248
 
 
12249
/* Override any GCC internal prototype to avoid an error.
 
12250
   Use char because int might match the return type of a GCC
 
12251
   builtin and then its argument prototype would still apply.  */
 
12252
#ifdef __cplusplus
 
12253
extern "C"
 
12254
#endif
 
12255
char shl_load ();
 
12256
/* The GNU C library defines this for functions which it implements
 
12257
    to always fail with ENOSYS.  Some functions are actually named
 
12258
    something starting with __ and the normal name is an alias.  */
 
12259
#if defined __stub_shl_load || defined __stub___shl_load
 
12260
choke me
 
12261
#endif
 
12262
 
 
12263
int
 
12264
main ()
 
12265
{
 
12266
return shl_load ();
 
12267
  ;
 
12268
  return 0;
 
12269
}
 
12270
_ACEOF
 
12271
rm -f conftest.$ac_objext conftest$ac_exeext
 
12272
if { (ac_try="$ac_link"
 
12273
case "(($ac_try" in
 
12274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12275
  *) ac_try_echo=$ac_try;;
 
12276
esac
 
12277
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12278
  (eval "$ac_link") 2>conftest.er1
 
12279
  ac_status=$?
 
12280
  grep -v '^ *+' conftest.er1 >conftest.err
 
12281
  rm -f conftest.er1
 
12282
  cat conftest.err >&5
 
12283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12284
  (exit $ac_status); } && {
 
12285
         test -z "$ac_c_werror_flag" ||
 
12286
         test ! -s conftest.err
 
12287
       } && test -s conftest$ac_exeext &&
 
12288
       $as_test_x conftest$ac_exeext; then
 
12289
  ac_cv_func_shl_load=yes
 
12290
else
 
12291
  echo "$as_me: failed program was:" >&5
 
12292
sed 's/^/| /' conftest.$ac_ext >&5
 
12293
 
 
12294
        ac_cv_func_shl_load=no
 
12295
fi
 
12296
 
 
12297
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12298
      conftest$ac_exeext conftest.$ac_ext
 
12299
fi
 
12300
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12301
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
12302
if test $ac_cv_func_shl_load = yes; then
 
12303
  lt_cv_dlopen="shl_load"
 
12304
else
 
12305
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12306
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
12307
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12309
else
 
12310
  ac_check_lib_save_LIBS=$LIBS
 
12311
LIBS="-ldld  $LIBS"
 
12312
cat >conftest.$ac_ext <<_ACEOF
 
12313
/* confdefs.h.  */
 
12314
_ACEOF
 
12315
cat confdefs.h >>conftest.$ac_ext
 
12316
cat >>conftest.$ac_ext <<_ACEOF
 
12317
/* end confdefs.h.  */
 
12318
 
 
12319
/* Override any GCC internal prototype to avoid an error.
 
12320
   Use char because int might match the return type of a GCC
 
12321
   builtin and then its argument prototype would still apply.  */
 
12322
#ifdef __cplusplus
 
12323
extern "C"
 
12324
#endif
 
12325
char shl_load ();
 
12326
int
 
12327
main ()
 
12328
{
 
12329
return shl_load ();
 
12330
  ;
 
12331
  return 0;
 
12332
}
 
12333
_ACEOF
 
12334
rm -f conftest.$ac_objext conftest$ac_exeext
 
12335
if { (ac_try="$ac_link"
 
12336
case "(($ac_try" in
 
12337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12338
  *) ac_try_echo=$ac_try;;
 
12339
esac
 
12340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12341
  (eval "$ac_link") 2>conftest.er1
 
12342
  ac_status=$?
 
12343
  grep -v '^ *+' conftest.er1 >conftest.err
 
12344
  rm -f conftest.er1
 
12345
  cat conftest.err >&5
 
12346
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12347
  (exit $ac_status); } && {
 
12348
         test -z "$ac_c_werror_flag" ||
 
12349
         test ! -s conftest.err
 
12350
       } && test -s conftest$ac_exeext &&
 
12351
       $as_test_x conftest$ac_exeext; then
 
12352
  ac_cv_lib_dld_shl_load=yes
 
12353
else
 
12354
  echo "$as_me: failed program was:" >&5
 
12355
sed 's/^/| /' conftest.$ac_ext >&5
 
12356
 
 
12357
        ac_cv_lib_dld_shl_load=no
 
12358
fi
 
12359
 
 
12360
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12361
      conftest$ac_exeext conftest.$ac_ext
 
12362
LIBS=$ac_check_lib_save_LIBS
 
12363
fi
 
12364
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12365
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
12366
if test $ac_cv_lib_dld_shl_load = yes; then
 
12367
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
12368
else
 
12369
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
12370
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
12371
if test "${ac_cv_func_dlopen+set}" = set; then
 
12372
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12373
else
 
12374
  cat >conftest.$ac_ext <<_ACEOF
 
12375
/* confdefs.h.  */
 
12376
_ACEOF
 
12377
cat confdefs.h >>conftest.$ac_ext
 
12378
cat >>conftest.$ac_ext <<_ACEOF
 
12379
/* end confdefs.h.  */
 
12380
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12381
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12382
#define dlopen innocuous_dlopen
 
12383
 
 
12384
/* System header to define __stub macros and hopefully few prototypes,
 
12385
    which can conflict with char dlopen (); below.
 
12386
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12387
    <limits.h> exists even on freestanding compilers.  */
 
12388
 
 
12389
#ifdef __STDC__
 
12390
# include <limits.h>
 
12391
#else
 
12392
# include <assert.h>
 
12393
#endif
 
12394
 
 
12395
#undef dlopen
 
12396
 
 
12397
/* Override any GCC internal prototype to avoid an error.
 
12398
   Use char because int might match the return type of a GCC
 
12399
   builtin and then its argument prototype would still apply.  */
 
12400
#ifdef __cplusplus
 
12401
extern "C"
 
12402
#endif
 
12403
char dlopen ();
 
12404
/* The GNU C library defines this for functions which it implements
 
12405
    to always fail with ENOSYS.  Some functions are actually named
 
12406
    something starting with __ and the normal name is an alias.  */
 
12407
#if defined __stub_dlopen || defined __stub___dlopen
 
12408
choke me
 
12409
#endif
 
12410
 
 
12411
int
 
12412
main ()
 
12413
{
 
12414
return dlopen ();
 
12415
  ;
 
12416
  return 0;
 
12417
}
 
12418
_ACEOF
 
12419
rm -f conftest.$ac_objext conftest$ac_exeext
 
12420
if { (ac_try="$ac_link"
 
12421
case "(($ac_try" in
 
12422
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12423
  *) ac_try_echo=$ac_try;;
 
12424
esac
 
12425
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12426
  (eval "$ac_link") 2>conftest.er1
 
12427
  ac_status=$?
 
12428
  grep -v '^ *+' conftest.er1 >conftest.err
 
12429
  rm -f conftest.er1
 
12430
  cat conftest.err >&5
 
12431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12432
  (exit $ac_status); } && {
 
12433
         test -z "$ac_c_werror_flag" ||
 
12434
         test ! -s conftest.err
 
12435
       } && test -s conftest$ac_exeext &&
 
12436
       $as_test_x conftest$ac_exeext; then
 
12437
  ac_cv_func_dlopen=yes
 
12438
else
 
12439
  echo "$as_me: failed program was:" >&5
 
12440
sed 's/^/| /' conftest.$ac_ext >&5
 
12441
 
 
12442
        ac_cv_func_dlopen=no
 
12443
fi
 
12444
 
 
12445
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12446
      conftest$ac_exeext conftest.$ac_ext
 
12447
fi
 
12448
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12449
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
12450
if test $ac_cv_func_dlopen = yes; then
 
12451
  lt_cv_dlopen="dlopen"
 
12452
else
 
12453
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12454
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
12455
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12456
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12457
else
 
12458
  ac_check_lib_save_LIBS=$LIBS
 
12459
LIBS="-ldl  $LIBS"
 
12460
cat >conftest.$ac_ext <<_ACEOF
 
12461
/* confdefs.h.  */
 
12462
_ACEOF
 
12463
cat confdefs.h >>conftest.$ac_ext
 
12464
cat >>conftest.$ac_ext <<_ACEOF
 
12465
/* end confdefs.h.  */
 
12466
 
 
12467
/* Override any GCC internal prototype to avoid an error.
 
12468
   Use char because int might match the return type of a GCC
 
12469
   builtin and then its argument prototype would still apply.  */
 
12470
#ifdef __cplusplus
 
12471
extern "C"
 
12472
#endif
 
12473
char dlopen ();
 
12474
int
 
12475
main ()
 
12476
{
 
12477
return dlopen ();
 
12478
  ;
 
12479
  return 0;
 
12480
}
 
12481
_ACEOF
 
12482
rm -f conftest.$ac_objext conftest$ac_exeext
 
12483
if { (ac_try="$ac_link"
 
12484
case "(($ac_try" in
 
12485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12486
  *) ac_try_echo=$ac_try;;
 
12487
esac
 
12488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12489
  (eval "$ac_link") 2>conftest.er1
 
12490
  ac_status=$?
 
12491
  grep -v '^ *+' conftest.er1 >conftest.err
 
12492
  rm -f conftest.er1
 
12493
  cat conftest.err >&5
 
12494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12495
  (exit $ac_status); } && {
 
12496
         test -z "$ac_c_werror_flag" ||
 
12497
         test ! -s conftest.err
 
12498
       } && test -s conftest$ac_exeext &&
 
12499
       $as_test_x conftest$ac_exeext; then
 
12500
  ac_cv_lib_dl_dlopen=yes
 
12501
else
 
12502
  echo "$as_me: failed program was:" >&5
 
12503
sed 's/^/| /' conftest.$ac_ext >&5
 
12504
 
 
12505
        ac_cv_lib_dl_dlopen=no
 
12506
fi
 
12507
 
 
12508
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12509
      conftest$ac_exeext conftest.$ac_ext
 
12510
LIBS=$ac_check_lib_save_LIBS
 
12511
fi
 
12512
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12513
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
12514
if test $ac_cv_lib_dl_dlopen = yes; then
 
12515
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12516
else
 
12517
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12518
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
12519
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12521
else
 
12522
  ac_check_lib_save_LIBS=$LIBS
 
12523
LIBS="-lsvld  $LIBS"
 
12524
cat >conftest.$ac_ext <<_ACEOF
 
12525
/* confdefs.h.  */
 
12526
_ACEOF
 
12527
cat confdefs.h >>conftest.$ac_ext
 
12528
cat >>conftest.$ac_ext <<_ACEOF
 
12529
/* end confdefs.h.  */
 
12530
 
 
12531
/* Override any GCC internal prototype to avoid an error.
 
12532
   Use char because int might match the return type of a GCC
 
12533
   builtin and then its argument prototype would still apply.  */
 
12534
#ifdef __cplusplus
 
12535
extern "C"
 
12536
#endif
 
12537
char dlopen ();
 
12538
int
 
12539
main ()
 
12540
{
 
12541
return dlopen ();
 
12542
  ;
 
12543
  return 0;
 
12544
}
 
12545
_ACEOF
 
12546
rm -f conftest.$ac_objext conftest$ac_exeext
 
12547
if { (ac_try="$ac_link"
 
12548
case "(($ac_try" in
 
12549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12550
  *) ac_try_echo=$ac_try;;
 
12551
esac
 
12552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12553
  (eval "$ac_link") 2>conftest.er1
 
12554
  ac_status=$?
 
12555
  grep -v '^ *+' conftest.er1 >conftest.err
 
12556
  rm -f conftest.er1
 
12557
  cat conftest.err >&5
 
12558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12559
  (exit $ac_status); } && {
 
12560
         test -z "$ac_c_werror_flag" ||
 
12561
         test ! -s conftest.err
 
12562
       } && test -s conftest$ac_exeext &&
 
12563
       $as_test_x conftest$ac_exeext; then
 
12564
  ac_cv_lib_svld_dlopen=yes
 
12565
else
 
12566
  echo "$as_me: failed program was:" >&5
 
12567
sed 's/^/| /' conftest.$ac_ext >&5
 
12568
 
 
12569
        ac_cv_lib_svld_dlopen=no
 
12570
fi
 
12571
 
 
12572
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12573
      conftest$ac_exeext conftest.$ac_ext
 
12574
LIBS=$ac_check_lib_save_LIBS
 
12575
fi
 
12576
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12577
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
12578
if test $ac_cv_lib_svld_dlopen = yes; then
 
12579
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12580
else
 
12581
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12582
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
12583
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12585
else
 
12586
  ac_check_lib_save_LIBS=$LIBS
 
12587
LIBS="-ldld  $LIBS"
 
12588
cat >conftest.$ac_ext <<_ACEOF
 
12589
/* confdefs.h.  */
 
12590
_ACEOF
 
12591
cat confdefs.h >>conftest.$ac_ext
 
12592
cat >>conftest.$ac_ext <<_ACEOF
 
12593
/* end confdefs.h.  */
 
12594
 
 
12595
/* Override any GCC internal prototype to avoid an error.
 
12596
   Use char because int might match the return type of a GCC
 
12597
   builtin and then its argument prototype would still apply.  */
 
12598
#ifdef __cplusplus
 
12599
extern "C"
 
12600
#endif
 
12601
char dld_link ();
 
12602
int
 
12603
main ()
 
12604
{
 
12605
return dld_link ();
 
12606
  ;
 
12607
  return 0;
 
12608
}
 
12609
_ACEOF
 
12610
rm -f conftest.$ac_objext conftest$ac_exeext
 
12611
if { (ac_try="$ac_link"
 
12612
case "(($ac_try" in
 
12613
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
12614
  *) ac_try_echo=$ac_try;;
 
12615
esac
 
12616
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
12617
  (eval "$ac_link") 2>conftest.er1
 
12618
  ac_status=$?
 
12619
  grep -v '^ *+' conftest.er1 >conftest.err
 
12620
  rm -f conftest.er1
 
12621
  cat conftest.err >&5
 
12622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12623
  (exit $ac_status); } && {
 
12624
         test -z "$ac_c_werror_flag" ||
 
12625
         test ! -s conftest.err
 
12626
       } && test -s conftest$ac_exeext &&
 
12627
       $as_test_x conftest$ac_exeext; then
 
12628
  ac_cv_lib_dld_dld_link=yes
 
12629
else
 
12630
  echo "$as_me: failed program was:" >&5
 
12631
sed 's/^/| /' conftest.$ac_ext >&5
 
12632
 
 
12633
        ac_cv_lib_dld_dld_link=no
 
12634
fi
 
12635
 
 
12636
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12637
      conftest$ac_exeext conftest.$ac_ext
 
12638
LIBS=$ac_check_lib_save_LIBS
 
12639
fi
 
12640
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12641
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
12642
if test $ac_cv_lib_dld_dld_link = yes; then
 
12643
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
12644
fi
 
12645
 
 
12646
 
 
12647
fi
 
12648
 
 
12649
 
 
12650
fi
 
12651
 
 
12652
 
 
12653
fi
 
12654
 
 
12655
 
 
12656
fi
 
12657
 
 
12658
 
 
12659
fi
 
12660
 
 
12661
    ;;
 
12662
  esac
 
12663
 
 
12664
  if test "x$lt_cv_dlopen" != xno; then
 
12665
    enable_dlopen=yes
 
12666
  else
 
12667
    enable_dlopen=no
 
12668
  fi
 
12669
 
 
12670
  case $lt_cv_dlopen in
 
12671
  dlopen)
 
12672
    save_CPPFLAGS="$CPPFLAGS"
 
12673
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12674
 
 
12675
    save_LDFLAGS="$LDFLAGS"
 
12676
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12677
 
 
12678
    save_LIBS="$LIBS"
 
12679
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12680
 
 
12681
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12682
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
12683
if test "${lt_cv_dlopen_self+set}" = set; then
 
12684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12685
else
 
12686
          if test "$cross_compiling" = yes; then :
 
12687
  lt_cv_dlopen_self=cross
 
12688
else
 
12689
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12690
  lt_status=$lt_dlunknown
 
12691
  cat > conftest.$ac_ext <<_LT_EOF
 
12692
#line 12692 "configure"
 
12693
#include "confdefs.h"
 
12694
 
 
12695
#if HAVE_DLFCN_H
 
12696
#include <dlfcn.h>
 
12697
#endif
 
12698
 
 
12699
#include <stdio.h>
 
12700
 
 
12701
#ifdef RTLD_GLOBAL
 
12702
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12703
#else
 
12704
#  ifdef DL_GLOBAL
 
12705
#    define LT_DLGLOBAL         DL_GLOBAL
 
12706
#  else
 
12707
#    define LT_DLGLOBAL         0
 
12708
#  endif
 
12709
#endif
 
12710
 
 
12711
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12712
   find out it does not work in some platform. */
 
12713
#ifndef LT_DLLAZY_OR_NOW
 
12714
#  ifdef RTLD_LAZY
 
12715
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12716
#  else
 
12717
#    ifdef DL_LAZY
 
12718
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12719
#    else
 
12720
#      ifdef RTLD_NOW
 
12721
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12722
#      else
 
12723
#        ifdef DL_NOW
 
12724
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12725
#        else
 
12726
#          define LT_DLLAZY_OR_NOW      0
 
12727
#        endif
 
12728
#      endif
 
12729
#    endif
 
12730
#  endif
 
12731
#endif
 
12732
 
 
12733
#ifdef __cplusplus
 
12734
extern "C" void exit (int);
 
12735
#endif
 
12736
 
 
12737
void fnord() { int i=42;}
 
12738
int main ()
 
12739
{
 
12740
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12741
  int status = $lt_dlunknown;
 
12742
 
 
12743
  if (self)
 
12744
    {
 
12745
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12746
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12747
      /* dlclose (self); */
 
12748
    }
 
12749
  else
 
12750
    puts (dlerror ());
 
12751
 
 
12752
    exit (status);
 
12753
}
 
12754
_LT_EOF
 
12755
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12756
  (eval $ac_link) 2>&5
 
12757
  ac_status=$?
 
12758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12759
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12760
    (./conftest; exit; ) >&5 2>/dev/null
 
12761
    lt_status=$?
 
12762
    case x$lt_status in
 
12763
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12764
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12765
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
12766
    esac
 
12767
  else :
 
12768
    # compilation failed
 
12769
    lt_cv_dlopen_self=no
 
12770
  fi
 
12771
fi
 
12772
rm -fr conftest*
 
12773
 
 
12774
 
 
12775
fi
 
12776
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12777
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
12778
 
 
12779
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12780
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
12781
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12782
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
12783
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12785
else
 
12786
          if test "$cross_compiling" = yes; then :
 
12787
  lt_cv_dlopen_self_static=cross
 
12788
else
 
12789
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12790
  lt_status=$lt_dlunknown
 
12791
  cat > conftest.$ac_ext <<_LT_EOF
 
12792
#line 12792 "configure"
 
12793
#include "confdefs.h"
 
12794
 
 
12795
#if HAVE_DLFCN_H
 
12796
#include <dlfcn.h>
 
12797
#endif
 
12798
 
 
12799
#include <stdio.h>
 
12800
 
 
12801
#ifdef RTLD_GLOBAL
 
12802
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12803
#else
 
12804
#  ifdef DL_GLOBAL
 
12805
#    define LT_DLGLOBAL         DL_GLOBAL
 
12806
#  else
 
12807
#    define LT_DLGLOBAL         0
 
12808
#  endif
 
12809
#endif
 
12810
 
 
12811
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12812
   find out it does not work in some platform. */
 
12813
#ifndef LT_DLLAZY_OR_NOW
 
12814
#  ifdef RTLD_LAZY
 
12815
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12816
#  else
 
12817
#    ifdef DL_LAZY
 
12818
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12819
#    else
 
12820
#      ifdef RTLD_NOW
 
12821
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12822
#      else
 
12823
#        ifdef DL_NOW
 
12824
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12825
#        else
 
12826
#          define LT_DLLAZY_OR_NOW      0
 
12827
#        endif
 
12828
#      endif
 
12829
#    endif
 
12830
#  endif
 
12831
#endif
 
12832
 
 
12833
#ifdef __cplusplus
 
12834
extern "C" void exit (int);
 
12835
#endif
 
12836
 
 
12837
void fnord() { int i=42;}
 
12838
int main ()
 
12839
{
 
12840
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12841
  int status = $lt_dlunknown;
 
12842
 
 
12843
  if (self)
 
12844
    {
 
12845
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12846
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12847
      /* dlclose (self); */
 
12848
    }
 
12849
  else
 
12850
    puts (dlerror ());
 
12851
 
 
12852
    exit (status);
 
12853
}
 
12854
_LT_EOF
 
12855
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12856
  (eval $ac_link) 2>&5
 
12857
  ac_status=$?
 
12858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12859
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12860
    (./conftest; exit; ) >&5 2>/dev/null
 
12861
    lt_status=$?
 
12862
    case x$lt_status in
 
12863
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12864
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12865
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
12866
    esac
 
12867
  else :
 
12868
    # compilation failed
 
12869
    lt_cv_dlopen_self_static=no
 
12870
  fi
 
12871
fi
 
12872
rm -fr conftest*
 
12873
 
 
12874
 
 
12875
fi
 
12876
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12877
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
12878
    fi
 
12879
 
 
12880
    CPPFLAGS="$save_CPPFLAGS"
 
12881
    LDFLAGS="$save_LDFLAGS"
 
12882
    LIBS="$save_LIBS"
 
12883
    ;;
 
12884
  esac
 
12885
 
 
12886
  case $lt_cv_dlopen_self in
 
12887
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12888
  *) enable_dlopen_self=unknown ;;
 
12889
  esac
 
12890
 
 
12891
  case $lt_cv_dlopen_self_static in
 
12892
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12893
  *) enable_dlopen_self_static=unknown ;;
 
12894
  esac
 
12895
fi
 
12896
 
 
12897
 
 
12898
 
 
12899
 
 
12900
 
 
12901
 
 
12902
 
 
12903
 
 
12904
 
 
12905
 
 
12906
 
 
12907
 
 
12908
 
 
12909
 
 
12910
 
 
12911
 
 
12912
 
 
12913
striplib=
 
12914
old_striplib=
 
12915
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12916
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
12917
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
 
12918
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12919
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12920
  { echo "$as_me:$LINENO: result: yes" >&5
 
12921
echo "${ECHO_T}yes" >&6; }
 
12922
else
 
12923
# FIXME - insert some real tests, host_os isn't really good enough
 
12924
  case $host_os in
 
12925
  darwin*)
 
12926
    if test -n "$STRIP" ; then
 
12927
      striplib="$STRIP -x"
 
12928
      old_striplib="$STRIP -S"
 
12929
      { echo "$as_me:$LINENO: result: yes" >&5
 
12930
echo "${ECHO_T}yes" >&6; }
 
12931
    else
 
12932
      { echo "$as_me:$LINENO: result: no" >&5
 
12933
echo "${ECHO_T}no" >&6; }
 
12934
    fi
 
12935
    ;;
 
12936
  *)
 
12937
    { echo "$as_me:$LINENO: result: no" >&5
 
12938
echo "${ECHO_T}no" >&6; }
 
12939
    ;;
 
12940
  esac
 
12941
fi
 
12942
 
 
12943
 
 
12944
 
 
12945
 
 
12946
 
 
12947
 
 
12948
 
 
12949
 
 
12950
 
 
12951
 
 
12952
 
 
12953
 
 
12954
  # Report which library types will actually be built
 
12955
  { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12956
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
12957
  { echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12958
echo "${ECHO_T}$can_build_shared" >&6; }
 
12959
 
 
12960
  { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12961
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
12962
  test "$can_build_shared" = "no" && enable_shared=no
 
12963
 
 
12964
  # On AIX, shared libraries and static libraries use the same namespace, and
 
12965
  # are all built from PIC.
 
12966
  case $host_os in
 
12967
  aix3*)
 
12968
    test "$enable_shared" = yes && enable_static=no
 
12969
    if test -n "$RANLIB"; then
 
12970
      archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
12971
      postinstall_cmds='$RANLIB $lib'
 
12972
    fi
 
12973
    ;;
 
12974
 
 
12975
  aix[4-9]*)
 
12976
    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
12977
      test "$enable_shared" = yes && enable_static=no
 
12978
    fi
 
12979
    ;;
 
12980
  esac
 
12981
  { echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12982
echo "${ECHO_T}$enable_shared" >&6; }
 
12983
 
 
12984
  { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12985
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
12986
  # Make sure either enable_shared or enable_static is yes.
 
12987
  test "$enable_shared" = yes || enable_static=yes
 
12988
  { echo "$as_me:$LINENO: result: $enable_static" >&5
 
12989
echo "${ECHO_T}$enable_static" >&6; }
 
12990
 
 
12991
 
 
12992
 
 
12993
 
 
12994
fi
 
12995
ac_ext=c
 
12996
ac_cpp='$CPP $CPPFLAGS'
 
12997
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
12998
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
12999
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13000
 
 
13001
CC="$lt_save_CC"
 
13002
 
 
13003
 
 
13004
ac_ext=cpp
 
13005
ac_cpp='$CXXCPP $CPPFLAGS'
 
13006
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13007
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13008
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13009
 
 
13010
archive_cmds_need_lc_CXX=no
 
13011
allow_undefined_flag_CXX=
 
13012
always_export_symbols_CXX=no
 
13013
archive_expsym_cmds_CXX=
 
13014
compiler_needs_object_CXX=no
 
13015
export_dynamic_flag_spec_CXX=
 
13016
hardcode_direct_CXX=no
 
13017
hardcode_direct_absolute_CXX=no
 
13018
hardcode_libdir_flag_spec_CXX=
 
13019
hardcode_libdir_flag_spec_ld_CXX=
 
13020
hardcode_libdir_separator_CXX=
 
13021
hardcode_minus_L_CXX=no
 
13022
hardcode_shlibpath_var_CXX=unsupported
 
13023
hardcode_automatic_CXX=no
 
13024
inherit_rpath_CXX=no
 
13025
module_cmds_CXX=
 
13026
module_expsym_cmds_CXX=
 
13027
link_all_deplibs_CXX=unknown
 
13028
old_archive_cmds_CXX=$old_archive_cmds
 
13029
no_undefined_flag_CXX=
 
13030
whole_archive_flag_spec_CXX=
 
13031
enable_shared_with_static_runtimes_CXX=no
 
13032
 
 
13033
# Source file extension for C++ test sources.
 
13034
ac_ext=cpp
 
13035
 
 
13036
# Object file extension for compiled C++ test sources.
 
13037
objext=o
 
13038
objext_CXX=$objext
 
13039
 
 
13040
# No sense in running all these tests if we already determined that
 
13041
# the CXX compiler isn't working.  Some variables (like enable_shared)
 
13042
# are currently assumed to apply to all compilers on this platform,
 
13043
# and will be corrupted by setting them based on a non-working compiler.
 
13044
if test "$_lt_caught_CXX_error" != yes; then
 
13045
  # Code to be used in simple compile tests
 
13046
  lt_simple_compile_test_code="int some_variable = 0;"
 
13047
 
 
13048
  # Code to be used in simple link tests
 
13049
  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
13050
 
 
13051
  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13052
 
 
13053
 
 
13054
 
 
13055
 
 
13056
 
 
13057
 
 
13058
# If no C compiler was specified, use CC.
 
13059
LTCC=${LTCC-"$CC"}
 
13060
 
 
13061
# If no C compiler flags were specified, use CFLAGS.
 
13062
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13063
 
 
13064
# Allow CC to be a program name with arguments.
 
13065
compiler=$CC
 
13066
 
 
13067
 
 
13068
  # save warnings/boilerplate of simple test code
 
13069
  ac_outfile=conftest.$ac_objext
 
13070
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13071
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13072
_lt_compiler_boilerplate=`cat conftest.err`
 
13073
$RM conftest*
 
13074
 
 
13075
  ac_outfile=conftest.$ac_objext
 
13076
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
13077
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13078
_lt_linker_boilerplate=`cat conftest.err`
 
13079
$RM -r conftest*
 
13080
 
 
13081
 
 
13082
  # Allow CC to be a program name with arguments.
 
13083
  lt_save_CC=$CC
 
13084
  lt_save_LD=$LD
 
13085
  lt_save_GCC=$GCC
 
13086
  GCC=$GXX
 
13087
  lt_save_with_gnu_ld=$with_gnu_ld
 
13088
  lt_save_path_LD=$lt_cv_path_LD
 
13089
  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
13090
    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
13091
  else
 
13092
    $as_unset lt_cv_prog_gnu_ld
 
13093
  fi
 
13094
  if test -n "${lt_cv_path_LDCXX+set}"; then
 
13095
    lt_cv_path_LD=$lt_cv_path_LDCXX
 
13096
  else
 
13097
    $as_unset lt_cv_path_LD
 
13098
  fi
 
13099
  test -z "${LDCXX+set}" || LD=$LDCXX
 
13100
  CC=${CXX-"c++"}
 
13101
  compiler=$CC
 
13102
  compiler_CXX=$CC
 
13103
  for cc_temp in $compiler""; do
 
13104
  case $cc_temp in
 
13105
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13106
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13107
    \-*) ;;
 
13108
    *) break;;
 
13109
  esac
 
13110
done
 
13111
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13112
 
 
13113
 
 
13114
  if test -n "$compiler"; then
 
13115
    # We don't want -fno-exception when compiling C++ code, so set the
 
13116
    # no_builtin_flag separately
 
13117
    if test "$GXX" = yes; then
 
13118
      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
13119
    else
 
13120
      lt_prog_compiler_no_builtin_flag_CXX=
 
13121
    fi
 
13122
 
 
13123
    if test "$GXX" = yes; then
 
13124
      # Set up default GNU C++ configuration
 
13125
 
 
13126
 
 
13127
 
 
13128
# Check whether --with-gnu-ld was given.
 
13129
if test "${with_gnu_ld+set}" = set; then
 
13130
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
13131
else
 
13132
  with_gnu_ld=no
 
13133
fi
 
13134
 
 
13135
ac_prog=ld
 
13136
if test "$GCC" = yes; then
 
13137
  # Check if gcc -print-prog-name=ld gives a path.
 
13138
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
13139
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
13140
  case $host in
 
13141
  *-*-mingw*)
 
13142
    # gcc leaves a trailing carriage return which upsets mingw
 
13143
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
13144
  *)
 
13145
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
13146
  esac
 
13147
  case $ac_prog in
 
13148
    # Accept absolute paths.
 
13149
    [\\/]* | ?:[\\/]*)
 
13150
      re_direlt='/[^/][^/]*/\.\./'
 
13151
      # Canonicalize the pathname of ld
 
13152
      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
 
13153
      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
 
13154
        ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
 
13155
      done
 
13156
      test -z "$LD" && LD="$ac_prog"
 
13157
      ;;
 
13158
  "")
 
13159
    # If it fails, then pretend we aren't using GCC.
 
13160
    ac_prog=ld
 
13161
    ;;
 
13162
  *)
 
13163
    # If it is relative, then search for the first ld in PATH.
 
13164
    with_gnu_ld=unknown
 
13165
    ;;
 
13166
  esac
 
13167
elif test "$with_gnu_ld" = yes; then
 
13168
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
13169
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
13170
else
 
13171
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
13172
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
13173
fi
 
13174
if test "${lt_cv_path_LD+set}" = set; then
 
13175
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13176
else
 
13177
  if test -z "$LD"; then
 
13178
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
13179
  for ac_dir in $PATH; do
 
13180
    IFS="$lt_save_ifs"
 
13181
    test -z "$ac_dir" && ac_dir=.
 
13182
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
13183
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
13184
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
13185
      # but apparently some variants of GNU ld only accept -v.
 
13186
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
13187
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
13188
      *GNU* | *'with BFD'*)
 
13189
        test "$with_gnu_ld" != no && break
 
13190
        ;;
 
13191
      *)
 
13192
        test "$with_gnu_ld" != yes && break
 
13193
        ;;
 
13194
      esac
 
13195
    fi
 
13196
  done
 
13197
  IFS="$lt_save_ifs"
 
13198
else
 
13199
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
13200
fi
 
13201
fi
 
13202
 
 
13203
LD="$lt_cv_path_LD"
 
13204
if test -n "$LD"; then
 
13205
  { echo "$as_me:$LINENO: result: $LD" >&5
 
13206
echo "${ECHO_T}$LD" >&6; }
 
13207
else
 
13208
  { echo "$as_me:$LINENO: result: no" >&5
 
13209
echo "${ECHO_T}no" >&6; }
 
13210
fi
 
13211
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
13212
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
13213
   { (exit 1); exit 1; }; }
 
13214
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
13215
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
13216
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
13217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13218
else
 
13219
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
13220
case `$LD -v 2>&1 </dev/null` in
 
13221
*GNU* | *'with BFD'*)
 
13222
  lt_cv_prog_gnu_ld=yes
 
13223
  ;;
 
13224
*)
 
13225
  lt_cv_prog_gnu_ld=no
 
13226
  ;;
 
13227
esac
 
13228
fi
 
13229
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
13230
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
13231
with_gnu_ld=$lt_cv_prog_gnu_ld
 
13232
 
 
13233
 
 
13234
 
 
13235
 
 
13236
 
 
13237
 
 
13238
 
 
13239
      # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
13240
      # archiving commands below assume that GNU ld is being used.
 
13241
      if test "$with_gnu_ld" = yes; then
 
13242
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13243
        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'
 
13244
 
 
13245
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13246
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13247
 
 
13248
        # If archive_cmds runs LD, not CC, wlarc should be empty
 
13249
        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
13250
        #     investigate it a little bit more. (MM)
 
13251
        wlarc='${wl}'
 
13252
 
 
13253
        # ancient GNU ld didn't support --whole-archive et. al.
 
13254
        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
 
13255
          $GREP 'no-whole-archive' > /dev/null; then
 
13256
          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13257
        else
 
13258
          whole_archive_flag_spec_CXX=
 
13259
        fi
 
13260
      else
 
13261
        with_gnu_ld=no
 
13262
        wlarc=
 
13263
 
 
13264
        # A generic and very simple default shared library creation
 
13265
        # command for GNU C++ for the case where it uses the native
 
13266
        # linker, instead of GNU ld.  If possible, this setting should
 
13267
        # overridden to take advantage of the native linker features on
 
13268
        # the platform it is being used on.
 
13269
        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13270
      fi
 
13271
 
 
13272
      # Commands to make compiler produce verbose output that lists
 
13273
      # what "hidden" libraries, object files and flags are used when
 
13274
      # linking a shared library.
 
13275
      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
13276
 
 
13277
    else
 
13278
      GXX=no
 
13279
      with_gnu_ld=no
 
13280
      wlarc=
 
13281
    fi
 
13282
 
 
13283
    # PORTME: fill in a description of your system's C++ link characteristics
 
13284
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13285
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13286
    ld_shlibs_CXX=yes
 
13287
    case $host_os in
 
13288
      aix3*)
 
13289
        # FIXME: insert proper C++ library support
 
13290
        ld_shlibs_CXX=no
 
13291
        ;;
 
13292
      aix[4-9]*)
 
13293
        if test "$host_cpu" = ia64; then
 
13294
          # On IA64, the linker does run time linking by default, so we don't
 
13295
          # have to do anything special.
 
13296
          aix_use_runtimelinking=no
 
13297
          exp_sym_flag='-Bexport'
 
13298
          no_entry_flag=""
 
13299
        else
 
13300
          aix_use_runtimelinking=no
 
13301
 
 
13302
          # Test if we are trying to use run time linking or normal
 
13303
          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
13304
          # need to do runtime linking.
 
13305
          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
13306
            for ld_flag in $LDFLAGS; do
 
13307
              case $ld_flag in
 
13308
              *-brtl*)
 
13309
                aix_use_runtimelinking=yes
 
13310
                break
 
13311
                ;;
 
13312
              esac
 
13313
            done
 
13314
            ;;
 
13315
          esac
 
13316
 
 
13317
          exp_sym_flag='-bexport'
 
13318
          no_entry_flag='-bnoentry'
 
13319
        fi
 
13320
 
 
13321
        # When large executables or shared objects are built, AIX ld can
 
13322
        # have problems creating the table of contents.  If linking a library
 
13323
        # or program results in "error TOC overflow" add -mminimal-toc to
 
13324
        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
13325
        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
13326
 
 
13327
        archive_cmds_CXX=''
 
13328
        hardcode_direct_CXX=yes
 
13329
        hardcode_direct_absolute_CXX=yes
 
13330
        hardcode_libdir_separator_CXX=':'
 
13331
        link_all_deplibs_CXX=yes
 
13332
        file_list_spec_CXX='${wl}-f,'
 
13333
 
 
13334
        if test "$GXX" = yes; then
 
13335
          case $host_os in aix4.[012]|aix4.[012].*)
 
13336
          # We only want to do this on AIX 4.2 and lower, the check
 
13337
          # below for broken collect2 doesn't work under 4.3+
 
13338
          collect2name=`${CC} -print-prog-name=collect2`
 
13339
          if test -f "$collect2name" &&
 
13340
             strings "$collect2name" | $GREP resolve_lib_name >/dev/null
 
13341
          then
 
13342
            # We have reworked collect2
 
13343
            :
 
13344
          else
 
13345
            # We have old collect2
 
13346
            hardcode_direct_CXX=unsupported
 
13347
            # It fails to find uninstalled libraries when the uninstalled
 
13348
            # path is not listed in the libpath.  Setting hardcode_minus_L
 
13349
            # to unsupported forces relinking
 
13350
            hardcode_minus_L_CXX=yes
 
13351
            hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13352
            hardcode_libdir_separator_CXX=
 
13353
          fi
 
13354
          esac
 
13355
          shared_flag='-shared'
 
13356
          if test "$aix_use_runtimelinking" = yes; then
 
13357
            shared_flag="$shared_flag "'${wl}-G'
 
13358
          fi
 
13359
        else
 
13360
          # not using gcc
 
13361
          if test "$host_cpu" = ia64; then
 
13362
          # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
13363
          # chokes on -Wl,-G. The following line is correct:
 
13364
          shared_flag='-G'
 
13365
          else
 
13366
            if test "$aix_use_runtimelinking" = yes; then
 
13367
              shared_flag='${wl}-G'
 
13368
            else
 
13369
              shared_flag='${wl}-bM:SRE'
 
13370
            fi
 
13371
          fi
 
13372
        fi
 
13373
 
 
13374
        # It seems that -bexpall does not export symbols beginning with
 
13375
        # underscore (_), so it is better to generate a list of symbols to
 
13376
        # export.
 
13377
        always_export_symbols_CXX=yes
 
13378
        if test "$aix_use_runtimelinking" = yes; then
 
13379
          # Warning - without using the other runtime loading flags (-brtl),
 
13380
          # -berok will link without error, but may produce a broken library.
 
13381
          allow_undefined_flag_CXX='-berok'
 
13382
          # Determine the default libpath from the value encoded in an empty
 
13383
          # executable.
 
13384
          cat >conftest.$ac_ext <<_ACEOF
 
13385
/* confdefs.h.  */
 
13386
_ACEOF
 
13387
cat confdefs.h >>conftest.$ac_ext
 
13388
cat >>conftest.$ac_ext <<_ACEOF
 
13389
/* end confdefs.h.  */
 
13390
 
 
13391
int
 
13392
main ()
 
13393
{
 
13394
 
 
13395
  ;
 
13396
  return 0;
 
13397
}
 
13398
_ACEOF
 
13399
rm -f conftest.$ac_objext conftest$ac_exeext
 
13400
if { (ac_try="$ac_link"
 
13401
case "(($ac_try" in
 
13402
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13403
  *) ac_try_echo=$ac_try;;
 
13404
esac
 
13405
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13406
  (eval "$ac_link") 2>conftest.er1
 
13407
  ac_status=$?
 
13408
  grep -v '^ *+' conftest.er1 >conftest.err
 
13409
  rm -f conftest.er1
 
13410
  cat conftest.err >&5
 
13411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13412
  (exit $ac_status); } && {
 
13413
         test -z "$ac_cxx_werror_flag" ||
 
13414
         test ! -s conftest.err
 
13415
       } && test -s conftest$ac_exeext &&
 
13416
       $as_test_x conftest$ac_exeext; then
 
13417
 
 
13418
lt_aix_libpath_sed='
 
13419
    /Import File Strings/,/^$/ {
 
13420
        /^0/ {
 
13421
            s/^0  *\(.*\)$/\1/
 
13422
            p
 
13423
        }
 
13424
    }'
 
13425
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13426
# Check for a 64-bit object if we didn't find anything.
 
13427
if test -z "$aix_libpath"; then
 
13428
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13429
fi
 
13430
else
 
13431
  echo "$as_me: failed program was:" >&5
 
13432
sed 's/^/| /' conftest.$ac_ext >&5
 
13433
 
 
13434
 
 
13435
fi
 
13436
 
 
13437
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13438
      conftest$ac_exeext conftest.$ac_ext
 
13439
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13440
 
 
13441
          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13442
 
 
13443
          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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13444
        else
 
13445
          if test "$host_cpu" = ia64; then
 
13446
            hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
13447
            allow_undefined_flag_CXX="-z nodefs"
 
13448
            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"
 
13449
          else
 
13450
            # Determine the default libpath from the value encoded in an
 
13451
            # empty executable.
 
13452
            cat >conftest.$ac_ext <<_ACEOF
 
13453
/* confdefs.h.  */
 
13454
_ACEOF
 
13455
cat confdefs.h >>conftest.$ac_ext
 
13456
cat >>conftest.$ac_ext <<_ACEOF
 
13457
/* end confdefs.h.  */
 
13458
 
 
13459
int
 
13460
main ()
 
13461
{
 
13462
 
 
13463
  ;
 
13464
  return 0;
 
13465
}
 
13466
_ACEOF
 
13467
rm -f conftest.$ac_objext conftest$ac_exeext
 
13468
if { (ac_try="$ac_link"
 
13469
case "(($ac_try" in
 
13470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
13471
  *) ac_try_echo=$ac_try;;
 
13472
esac
 
13473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
13474
  (eval "$ac_link") 2>conftest.er1
 
13475
  ac_status=$?
 
13476
  grep -v '^ *+' conftest.er1 >conftest.err
 
13477
  rm -f conftest.er1
 
13478
  cat conftest.err >&5
 
13479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13480
  (exit $ac_status); } && {
 
13481
         test -z "$ac_cxx_werror_flag" ||
 
13482
         test ! -s conftest.err
 
13483
       } && test -s conftest$ac_exeext &&
 
13484
       $as_test_x conftest$ac_exeext; then
 
13485
 
 
13486
lt_aix_libpath_sed='
 
13487
    /Import File Strings/,/^$/ {
 
13488
        /^0/ {
 
13489
            s/^0  *\(.*\)$/\1/
 
13490
            p
 
13491
        }
 
13492
    }'
 
13493
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13494
# Check for a 64-bit object if we didn't find anything.
 
13495
if test -z "$aix_libpath"; then
 
13496
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
13497
fi
 
13498
else
 
13499
  echo "$as_me: failed program was:" >&5
 
13500
sed 's/^/| /' conftest.$ac_ext >&5
 
13501
 
 
13502
 
 
13503
fi
 
13504
 
 
13505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
13506
      conftest$ac_exeext conftest.$ac_ext
 
13507
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
13508
 
 
13509
            hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
13510
            # Warning - without using the other run time loading flags,
 
13511
            # -berok will link without error, but may produce a broken library.
 
13512
            no_undefined_flag_CXX=' ${wl}-bernotok'
 
13513
            allow_undefined_flag_CXX=' ${wl}-berok'
 
13514
            # Exported symbols can be pulled into shared objects from archives
 
13515
            whole_archive_flag_spec_CXX='$convenience'
 
13516
            archive_cmds_need_lc_CXX=yes
 
13517
            # This is similar to how AIX traditionally builds its shared
 
13518
            # libraries.
 
13519
            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'
 
13520
          fi
 
13521
        fi
 
13522
        ;;
 
13523
 
 
13524
      beos*)
 
13525
        if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
 
13526
          allow_undefined_flag_CXX=unsupported
 
13527
          # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
13528
          # support --undefined.  This deserves some investigation.  FIXME
 
13529
          archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13530
        else
 
13531
          ld_shlibs_CXX=no
 
13532
        fi
 
13533
        ;;
 
13534
 
 
13535
      chorus*)
 
13536
        case $cc_basename in
 
13537
          *)
 
13538
          # FIXME: insert proper C++ library support
 
13539
          ld_shlibs_CXX=no
 
13540
          ;;
 
13541
        esac
 
13542
        ;;
 
13543
 
 
13544
      cygwin* | mingw* | pw32*)
 
13545
        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
13546
        # as there is no search path for DLLs.
 
13547
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
13548
        allow_undefined_flag_CXX=unsupported
 
13549
        always_export_symbols_CXX=no
 
13550
        enable_shared_with_static_runtimes_CXX=yes
 
13551
 
 
13552
        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
 
13553
          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'
 
13554
          # If the export-symbols file already is a .def file (1st line
 
13555
          # is EXPORTS), use it as is; otherwise, prepend...
 
13556
          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
13557
            cp $export_symbols $output_objdir/$soname.def;
 
13558
          else
 
13559
            echo EXPORTS > $output_objdir/$soname.def;
 
13560
            cat $export_symbols >> $output_objdir/$soname.def;
 
13561
          fi~
 
13562
          $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'
 
13563
        else
 
13564
          ld_shlibs_CXX=no
 
13565
        fi
 
13566
        ;;
 
13567
      darwin* | rhapsody*)
 
13568
 
 
13569
 
 
13570
  archive_cmds_need_lc_CXX=no
 
13571
  hardcode_direct_CXX=no
 
13572
  hardcode_automatic_CXX=yes
 
13573
  hardcode_shlibpath_var_CXX=unsupported
 
13574
  whole_archive_flag_spec_CXX=''
 
13575
  link_all_deplibs_CXX=yes
 
13576
  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
13577
  if test "$GCC" = "yes"; then
 
13578
    output_verbose_link_cmd=echo
 
13579
    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
13580
    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
13581
    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
13582
    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
13583
       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
13584
      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
13585
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
13586
    fi
 
13587
 
 
13588
  else
 
13589
  ld_shlibs_CXX=no
 
13590
  fi
 
13591
 
 
13592
        ;;
 
13593
 
 
13594
      dgux*)
 
13595
        case $cc_basename in
 
13596
          ec++*)
 
13597
            # FIXME: insert proper C++ library support
 
13598
            ld_shlibs_CXX=no
 
13599
            ;;
 
13600
          ghcx*)
 
13601
            # Green Hills C++ Compiler
 
13602
            # FIXME: insert proper C++ library support
 
13603
            ld_shlibs_CXX=no
 
13604
            ;;
 
13605
          *)
 
13606
            # FIXME: insert proper C++ library support
 
13607
            ld_shlibs_CXX=no
 
13608
            ;;
 
13609
        esac
 
13610
        ;;
 
13611
 
 
13612
      freebsd[12]*)
 
13613
        # C++ shared libraries reported to be fairly broken before
 
13614
        # switch to ELF
 
13615
        ld_shlibs_CXX=no
 
13616
        ;;
 
13617
 
 
13618
      freebsd-elf*)
 
13619
        archive_cmds_need_lc_CXX=no
 
13620
        ;;
 
13621
 
 
13622
      freebsd* | dragonfly*)
 
13623
        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
13624
        # conventions
 
13625
        ld_shlibs_CXX=yes
 
13626
        ;;
 
13627
 
 
13628
      gnu*)
 
13629
        ;;
 
13630
 
 
13631
      hpux9*)
 
13632
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13633
        hardcode_libdir_separator_CXX=:
 
13634
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13635
        hardcode_direct_CXX=yes
 
13636
        hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13637
                                             # but as the default
 
13638
                                             # location of the library.
 
13639
 
 
13640
        case $cc_basename in
 
13641
          CC*)
 
13642
            # FIXME: insert proper C++ library support
 
13643
            ld_shlibs_CXX=no
 
13644
            ;;
 
13645
          aCC*)
 
13646
            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'
 
13647
            # Commands to make compiler produce verbose output that lists
 
13648
            # what "hidden" libraries, object files and flags are used when
 
13649
            # linking a shared library.
 
13650
            #
 
13651
            # There doesn't appear to be a way to prevent this compiler from
 
13652
            # explicitly linking system object files so we need to strip them
 
13653
            # from the output so that they don't get included in the library
 
13654
            # dependencies.
 
13655
            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
 
13656
            ;;
 
13657
          *)
 
13658
            if test "$GXX" = yes; then
 
13659
              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'
 
13660
            else
 
13661
              # FIXME: insert proper C++ library support
 
13662
              ld_shlibs_CXX=no
 
13663
            fi
 
13664
            ;;
 
13665
        esac
 
13666
        ;;
 
13667
 
 
13668
      hpux10*|hpux11*)
 
13669
        if test $with_gnu_ld = no; then
 
13670
          hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
13671
          hardcode_libdir_separator_CXX=:
 
13672
 
 
13673
          case $host_cpu in
 
13674
            hppa*64*|ia64*)
 
13675
              ;;
 
13676
            *)
 
13677
              export_dynamic_flag_spec_CXX='${wl}-E'
 
13678
              ;;
 
13679
          esac
 
13680
        fi
 
13681
        case $host_cpu in
 
13682
          hppa*64*|ia64*)
 
13683
            hardcode_direct_CXX=no
 
13684
            hardcode_shlibpath_var_CXX=no
 
13685
            ;;
 
13686
          *)
 
13687
            hardcode_direct_CXX=yes
 
13688
            hardcode_direct_absolute_CXX=yes
 
13689
            hardcode_minus_L_CXX=yes # Not in the search PATH,
 
13690
                                                 # but as the default
 
13691
                                                 # location of the library.
 
13692
            ;;
 
13693
        esac
 
13694
 
 
13695
        case $cc_basename in
 
13696
          CC*)
 
13697
            # FIXME: insert proper C++ library support
 
13698
            ld_shlibs_CXX=no
 
13699
            ;;
 
13700
          aCC*)
 
13701
            case $host_cpu in
 
13702
              hppa*64*)
 
13703
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13704
                ;;
 
13705
              ia64*)
 
13706
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13707
                ;;
 
13708
              *)
 
13709
                archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13710
                ;;
 
13711
            esac
 
13712
            # Commands to make compiler produce verbose output that lists
 
13713
            # what "hidden" libraries, object files and flags are used when
 
13714
            # linking a shared library.
 
13715
            #
 
13716
            # There doesn't appear to be a way to prevent this compiler from
 
13717
            # explicitly linking system object files so we need to strip them
 
13718
            # from the output so that they don't get included in the library
 
13719
            # dependencies.
 
13720
            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 "X$list" | $Xsed'
 
13721
            ;;
 
13722
          *)
 
13723
            if test "$GXX" = yes; then
 
13724
              if test $with_gnu_ld = no; then
 
13725
                case $host_cpu in
 
13726
                  hppa*64*)
 
13727
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13728
                    ;;
 
13729
                  ia64*)
 
13730
                    archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13731
                    ;;
 
13732
                  *)
 
13733
                    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'
 
13734
                    ;;
 
13735
                esac
 
13736
              fi
 
13737
            else
 
13738
              # FIXME: insert proper C++ library support
 
13739
              ld_shlibs_CXX=no
 
13740
            fi
 
13741
            ;;
 
13742
        esac
 
13743
        ;;
 
13744
 
 
13745
      interix[3-9]*)
 
13746
        hardcode_direct_CXX=no
 
13747
        hardcode_shlibpath_var_CXX=no
 
13748
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13749
        export_dynamic_flag_spec_CXX='${wl}-E'
 
13750
        # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
13751
        # Instead, shared libraries are loaded at an image base (0x10000000 by
 
13752
        # default) and relocated if they conflict, which is a slow very memory
 
13753
        # consuming and fragmenting process.  To avoid this, we pick a random,
 
13754
        # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
13755
        # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
13756
        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'
 
13757
        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'
 
13758
        ;;
 
13759
      irix5* | irix6*)
 
13760
        case $cc_basename in
 
13761
          CC*)
 
13762
            # SGI C++
 
13763
            archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
13764
 
 
13765
            # Archives containing C++ object files must be created using
 
13766
            # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
13767
            # necessary to make sure instantiated templates are included
 
13768
            # in the archive.
 
13769
            old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
13770
            ;;
 
13771
          *)
 
13772
            if test "$GXX" = yes; then
 
13773
              if test "$with_gnu_ld" = no; then
 
13774
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
13775
              else
 
13776
                archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
 
13777
              fi
 
13778
            fi
 
13779
            link_all_deplibs_CXX=yes
 
13780
            ;;
 
13781
        esac
 
13782
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13783
        hardcode_libdir_separator_CXX=:
 
13784
        inherit_rpath_CXX=yes
 
13785
        ;;
 
13786
 
 
13787
      linux* | k*bsd*-gnu)
 
13788
        case $cc_basename in
 
13789
          KCC*)
 
13790
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13791
 
 
13792
            # KCC will only create a shared library if the output file
 
13793
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13794
            # to its proper name (with version) after linking.
 
13795
            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'
 
13796
            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'
 
13797
            # Commands to make compiler produce verbose output that lists
 
13798
            # what "hidden" libraries, object files and flags are used when
 
13799
            # linking a shared library.
 
13800
            #
 
13801
            # There doesn't appear to be a way to prevent this compiler from
 
13802
            # explicitly linking system object files so we need to strip them
 
13803
            # from the output so that they don't get included in the library
 
13804
            # dependencies.
 
13805
            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 "X$list" | $Xsed'
 
13806
 
 
13807
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13808
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13809
 
 
13810
            # Archives containing C++ object files must be created using
 
13811
            # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
13812
            old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
13813
            ;;
 
13814
          icpc* | ecpc* )
 
13815
            # Intel C++
 
13816
            with_gnu_ld=yes
 
13817
            # version 8.0 and above of icpc choke on multiply defined symbols
 
13818
            # if we add $predep_objects and $postdep_objects, however 7.1 and
 
13819
            # earlier do not add the objects themselves.
 
13820
            case `$CC -V 2>&1` in
 
13821
              *"Version 7."*)
 
13822
                archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13823
                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'
 
13824
                ;;
 
13825
              *)  # Version 8.0 or newer
 
13826
                tmp_idyn=
 
13827
                case $host_cpu in
 
13828
                  ia64*) tmp_idyn=' -i_dynamic';;
 
13829
                esac
 
13830
                archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13831
                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'
 
13832
                ;;
 
13833
            esac
 
13834
            archive_cmds_need_lc_CXX=no
 
13835
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13836
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13837
            whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
13838
            ;;
 
13839
          pgCC* | pgcpp*)
 
13840
            # Portland Group C++ compiler
 
13841
            case `$CC -V` in
 
13842
            *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
 
13843
              prelink_cmds_CXX='tpldir=Template.dir~
 
13844
                rm -rf $tpldir~
 
13845
                $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
 
13846
                compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
 
13847
              old_archive_cmds_CXX='tpldir=Template.dir~
 
13848
                rm -rf $tpldir~
 
13849
                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
 
13850
                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
 
13851
                $RANLIB $oldlib'
 
13852
              archive_cmds_CXX='tpldir=Template.dir~
 
13853
                rm -rf $tpldir~
 
13854
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13855
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13856
              archive_expsym_cmds_CXX='tpldir=Template.dir~
 
13857
                rm -rf $tpldir~
 
13858
                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
 
13859
                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
13860
              ;;
 
13861
            *) # Version 6 will use weak symbols
 
13862
              archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
13863
              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'
 
13864
              ;;
 
13865
            esac
 
13866
 
 
13867
            hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
13868
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13869
            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'
 
13870
            ;;
 
13871
          cxx*)
 
13872
            # Compaq C++
 
13873
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13874
            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'
 
13875
 
 
13876
            runpath_var=LD_RUN_PATH
 
13877
            hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
13878
            hardcode_libdir_separator_CXX=:
 
13879
 
 
13880
            # Commands to make compiler produce verbose output that lists
 
13881
            # what "hidden" libraries, object files and flags are used when
 
13882
            # linking a shared library.
 
13883
            #
 
13884
            # There doesn't appear to be a way to prevent this compiler from
 
13885
            # explicitly linking system object files so we need to strip them
 
13886
            # from the output so that they don't get included in the library
 
13887
            # dependencies.
 
13888
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
13889
            ;;
 
13890
          xl*)
 
13891
            # IBM XL 8.0 on PPC, with GNU ld
 
13892
            hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
13893
            export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
13894
            archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
13895
            if test "x$supports_anon_versioning" = xyes; then
 
13896
              archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
 
13897
                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
13898
                echo "local: *; };" >> $output_objdir/$libname.ver~
 
13899
                $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
13900
            fi
 
13901
            ;;
 
13902
          *)
 
13903
            case `$CC -V 2>&1 | sed 5q` in
 
13904
            *Sun\ C*)
 
13905
              # Sun C++ 5.9
 
13906
              no_undefined_flag_CXX=' -zdefs'
 
13907
              archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
13908
              archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
13909
              hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13910
              whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
 
13911
              compiler_needs_object_CXX=yes
 
13912
 
 
13913
              # Not sure whether something based on
 
13914
              # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
13915
              # would be better.
 
13916
              output_verbose_link_cmd='echo'
 
13917
 
 
13918
              # Archives containing C++ object files must be created using
 
13919
              # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
13920
              # necessary to make sure instantiated templates are included
 
13921
              # in the archive.
 
13922
              old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
13923
              ;;
 
13924
            esac
 
13925
            ;;
 
13926
        esac
 
13927
        ;;
 
13928
 
 
13929
      lynxos*)
 
13930
        # FIXME: insert proper C++ library support
 
13931
        ld_shlibs_CXX=no
 
13932
        ;;
 
13933
 
 
13934
      m88k*)
 
13935
        # FIXME: insert proper C++ library support
 
13936
        ld_shlibs_CXX=no
 
13937
        ;;
 
13938
 
 
13939
      mvs*)
 
13940
        case $cc_basename in
 
13941
          cxx*)
 
13942
            # FIXME: insert proper C++ library support
 
13943
            ld_shlibs_CXX=no
 
13944
            ;;
 
13945
          *)
 
13946
            # FIXME: insert proper C++ library support
 
13947
            ld_shlibs_CXX=no
 
13948
            ;;
 
13949
        esac
 
13950
        ;;
 
13951
 
 
13952
      netbsd*)
 
13953
        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
13954
          archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
13955
          wlarc=
 
13956
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
13957
          hardcode_direct_CXX=yes
 
13958
          hardcode_shlibpath_var_CXX=no
 
13959
        fi
 
13960
        # Workaround some broken pre-1.5 toolchains
 
13961
        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
13962
        ;;
 
13963
 
 
13964
      *nto* | *qnx*)
 
13965
        ld_shlibs_CXX=yes
 
13966
        ;;
 
13967
 
 
13968
      openbsd2*)
 
13969
        # C++ shared libraries are fairly broken
 
13970
        ld_shlibs_CXX=no
 
13971
        ;;
 
13972
 
 
13973
      openbsd*)
 
13974
        if test -f /usr/libexec/ld.so; then
 
13975
          hardcode_direct_CXX=yes
 
13976
          hardcode_shlibpath_var_CXX=no
 
13977
          hardcode_direct_absolute_CXX=yes
 
13978
          archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
13979
          hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
13980
          if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13981
            archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
13982
            export_dynamic_flag_spec_CXX='${wl}-E'
 
13983
            whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13984
          fi
 
13985
          output_verbose_link_cmd=echo
 
13986
        else
 
13987
          ld_shlibs_CXX=no
 
13988
        fi
 
13989
        ;;
 
13990
 
 
13991
      osf3* | osf4* | osf5*)
 
13992
        case $cc_basename in
 
13993
          KCC*)
 
13994
            # Kuck and Associates, Inc. (KAI) C++ Compiler
 
13995
 
 
13996
            # KCC will only create a shared library if the output file
 
13997
            # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
13998
            # to its proper name (with version) after linking.
 
13999
            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'
 
14000
 
 
14001
            hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
14002
            hardcode_libdir_separator_CXX=:
 
14003
 
 
14004
            # Archives containing C++ object files must be created using
 
14005
            # the KAI C++ compiler.
 
14006
            case $host in
 
14007
              osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
 
14008
              *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
 
14009
            esac
 
14010
            ;;
 
14011
          RCC*)
 
14012
            # Rational C++ 2.4.1
 
14013
            # FIXME: insert proper C++ library support
 
14014
            ld_shlibs_CXX=no
 
14015
            ;;
 
14016
          cxx*)
 
14017
            case $host in
 
14018
              osf3*)
 
14019
                allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14020
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
14021
                hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14022
                ;;
 
14023
              *)
 
14024
                allow_undefined_flag_CXX=' -expect_unresolved \*'
 
14025
                archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
 
14026
                archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
14027
                  echo "-hidden">> $lib.exp~
 
14028
                  $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
 
14029
                  $RM $lib.exp'
 
14030
                hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
14031
                ;;
 
14032
            esac
 
14033
 
 
14034
            hardcode_libdir_separator_CXX=:
 
14035
 
 
14036
            # Commands to make compiler produce verbose output that lists
 
14037
            # what "hidden" libraries, object files and flags are used when
 
14038
            # linking a shared library.
 
14039
            #
 
14040
            # There doesn't appear to be a way to prevent this compiler from
 
14041
            # explicitly linking system object files so we need to strip them
 
14042
            # from the output so that they don't get included in the library
 
14043
            # dependencies.
 
14044
            output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
 
14045
            ;;
 
14046
          *)
 
14047
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14048
              allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
14049
              case $host in
 
14050
                osf3*)
 
14051
                  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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14052
                  ;;
 
14053
                *)
 
14054
                  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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
14055
                  ;;
 
14056
              esac
 
14057
 
 
14058
              hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
14059
              hardcode_libdir_separator_CXX=:
 
14060
 
 
14061
              # Commands to make compiler produce verbose output that lists
 
14062
              # what "hidden" libraries, object files and flags are used when
 
14063
              # linking a shared library.
 
14064
              output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14065
 
 
14066
            else
 
14067
              # FIXME: insert proper C++ library support
 
14068
              ld_shlibs_CXX=no
 
14069
            fi
 
14070
            ;;
 
14071
        esac
 
14072
        ;;
 
14073
 
 
14074
      psos*)
 
14075
        # FIXME: insert proper C++ library support
 
14076
        ld_shlibs_CXX=no
 
14077
        ;;
 
14078
 
 
14079
      sunos4*)
 
14080
        case $cc_basename in
 
14081
          CC*)
 
14082
            # Sun C++ 4.x
 
14083
            # FIXME: insert proper C++ library support
 
14084
            ld_shlibs_CXX=no
 
14085
            ;;
 
14086
          lcc*)
 
14087
            # Lucid
 
14088
            # FIXME: insert proper C++ library support
 
14089
            ld_shlibs_CXX=no
 
14090
            ;;
 
14091
          *)
 
14092
            # FIXME: insert proper C++ library support
 
14093
            ld_shlibs_CXX=no
 
14094
            ;;
 
14095
        esac
 
14096
        ;;
 
14097
 
 
14098
      solaris*)
 
14099
        case $cc_basename in
 
14100
          CC*)
 
14101
            # Sun C++ 4.2, 5.x and Centerline C++
 
14102
            archive_cmds_need_lc_CXX=yes
 
14103
            no_undefined_flag_CXX=' -zdefs'
 
14104
            archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
14105
            archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14106
              $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'
 
14107
 
 
14108
            hardcode_libdir_flag_spec_CXX='-R$libdir'
 
14109
            hardcode_shlibpath_var_CXX=no
 
14110
            case $host_os in
 
14111
              solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14112
              *)
 
14113
                # The compiler driver will combine and reorder linker options,
 
14114
                # but understands `-z linker_flag'.
 
14115
                # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14116
                whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
14117
                ;;
 
14118
            esac
 
14119
            link_all_deplibs_CXX=yes
 
14120
 
 
14121
            output_verbose_link_cmd='echo'
 
14122
 
 
14123
            # Archives containing C++ object files must be created using
 
14124
            # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
14125
            # necessary to make sure instantiated templates are included
 
14126
            # in the archive.
 
14127
            old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
14128
            ;;
 
14129
          gcx*)
 
14130
            # Green Hills C++ Compiler
 
14131
            archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14132
 
 
14133
            # The C++ compiler must be used to create the archive.
 
14134
            old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
14135
            ;;
 
14136
          *)
 
14137
            # GNU C++ compiler with Solaris linker
 
14138
            if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
14139
              no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
14140
              if $CC --version | $GREP -v '^2\.7' > /dev/null; then
 
14141
                archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14142
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14143
                  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14144
 
 
14145
                # Commands to make compiler produce verbose output that lists
 
14146
                # what "hidden" libraries, object files and flags are used when
 
14147
                # linking a shared library.
 
14148
                output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14149
              else
 
14150
                # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
14151
                # platform.
 
14152
                archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
14153
                archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
 
14154
                  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
 
14155
 
 
14156
                # Commands to make compiler produce verbose output that lists
 
14157
                # what "hidden" libraries, object files and flags are used when
 
14158
                # linking a shared library.
 
14159
                output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
 
14160
              fi
 
14161
 
 
14162
              hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
14163
              case $host_os in
 
14164
                solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14165
                *)
 
14166
                  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
14167
                  ;;
 
14168
              esac
 
14169
            fi
 
14170
            ;;
 
14171
        esac
 
14172
        ;;
 
14173
 
 
14174
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
14175
      no_undefined_flag_CXX='${wl}-z,text'
 
14176
      archive_cmds_need_lc_CXX=no
 
14177
      hardcode_shlibpath_var_CXX=no
 
14178
      runpath_var='LD_RUN_PATH'
 
14179
 
 
14180
      case $cc_basename in
 
14181
        CC*)
 
14182
          archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14183
          archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14184
          ;;
 
14185
        *)
 
14186
          archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14187
          archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14188
          ;;
 
14189
      esac
 
14190
      ;;
 
14191
 
 
14192
      sysv5* | sco3.2v5* | sco5v6*)
 
14193
        # Note: We can NOT use -z defs as we might desire, because we do not
 
14194
        # link with -lc, and that would cause any symbols used from libc to
 
14195
        # always be unresolved, which means just about no library would
 
14196
        # ever link correctly.  If we're not using GNU ld we use -z text
 
14197
        # though, which does catch some bad symbols but isn't as heavy-handed
 
14198
        # as -z defs.
 
14199
        no_undefined_flag_CXX='${wl}-z,text'
 
14200
        allow_undefined_flag_CXX='${wl}-z,nodefs'
 
14201
        archive_cmds_need_lc_CXX=no
 
14202
        hardcode_shlibpath_var_CXX=no
 
14203
        hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
 
14204
        hardcode_libdir_separator_CXX=':'
 
14205
        link_all_deplibs_CXX=yes
 
14206
        export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
14207
        runpath_var='LD_RUN_PATH'
 
14208
 
 
14209
        case $cc_basename in
 
14210
          CC*)
 
14211
            archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14212
            archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14213
            ;;
 
14214
          *)
 
14215
            archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14216
            archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14217
            ;;
 
14218
        esac
 
14219
      ;;
 
14220
 
 
14221
      tandem*)
 
14222
        case $cc_basename in
 
14223
          NCC*)
 
14224
            # NonStop-UX NCC 3.20
 
14225
            # FIXME: insert proper C++ library support
 
14226
            ld_shlibs_CXX=no
 
14227
            ;;
 
14228
          *)
 
14229
            # FIXME: insert proper C++ library support
 
14230
            ld_shlibs_CXX=no
 
14231
            ;;
 
14232
        esac
 
14233
        ;;
 
14234
 
 
14235
      vxworks*)
 
14236
        # FIXME: insert proper C++ library support
 
14237
        ld_shlibs_CXX=no
 
14238
        ;;
 
14239
 
 
14240
      *)
 
14241
        # FIXME: insert proper C++ library support
 
14242
        ld_shlibs_CXX=no
 
14243
        ;;
 
14244
    esac
 
14245
 
 
14246
    { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
14247
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
14248
    test "$ld_shlibs_CXX" = no && can_build_shared=no
 
14249
 
 
14250
    GCC_CXX="$GXX"
 
14251
    LD_CXX="$LD"
 
14252
 
 
14253
    ## CAVEAT EMPTOR:
 
14254
    ## There is no encapsulation within the following macros, do not change
 
14255
    ## the running order or otherwise move them around unless you know exactly
 
14256
    ## what you are doing...
 
14257
    # Dependencies to place before and after the object being linked:
 
14258
predep_objects_CXX=
 
14259
postdep_objects_CXX=
 
14260
predeps_CXX=
 
14261
postdeps_CXX=
 
14262
compiler_lib_search_path_CXX=
 
14263
 
 
14264
cat > conftest.$ac_ext <<_LT_EOF
 
14265
class Foo
 
14266
{
 
14267
public:
 
14268
  Foo (void) { a = 0; }
 
14269
private:
 
14270
  int a;
 
14271
};
 
14272
_LT_EOF
 
14273
 
 
14274
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14275
  (eval $ac_compile) 2>&5
 
14276
  ac_status=$?
 
14277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14278
  (exit $ac_status); }; then
 
14279
  # Parse the compiler output and extract the necessary
 
14280
  # objects, libraries and library flags.
 
14281
 
 
14282
  # Sentinel used to keep track of whether or not we are before
 
14283
  # the conftest object file.
 
14284
  pre_test_object_deps_done=no
 
14285
 
 
14286
  for p in `eval "$output_verbose_link_cmd"`; do
 
14287
    case $p in
 
14288
 
 
14289
    -L* | -R* | -l*)
 
14290
       # Some compilers place space between "-{L,R}" and the path.
 
14291
       # Remove the space.
 
14292
       if test $p = "-L" ||
 
14293
          test $p = "-R"; then
 
14294
         prev=$p
 
14295
         continue
 
14296
       else
 
14297
         prev=
 
14298
       fi
 
14299
 
 
14300
       if test "$pre_test_object_deps_done" = no; then
 
14301
         case $p in
 
14302
         -L* | -R*)
 
14303
           # Internal compiler library paths should come after those
 
14304
           # provided the user.  The postdeps already come after the
 
14305
           # user supplied libs so there is no need to process them.
 
14306
           if test -z "$compiler_lib_search_path_CXX"; then
 
14307
             compiler_lib_search_path_CXX="${prev}${p}"
 
14308
           else
 
14309
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
14310
           fi
 
14311
           ;;
 
14312
         # The "-l" case would never come before the object being
 
14313
         # linked, so don't bother handling this case.
 
14314
         esac
 
14315
       else
 
14316
         if test -z "$postdeps_CXX"; then
 
14317
           postdeps_CXX="${prev}${p}"
 
14318
         else
 
14319
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
14320
         fi
 
14321
       fi
 
14322
       ;;
 
14323
 
 
14324
    *.$objext)
 
14325
       # This assumes that the test object file only shows up
 
14326
       # once in the compiler output.
 
14327
       if test "$p" = "conftest.$objext"; then
 
14328
         pre_test_object_deps_done=yes
 
14329
         continue
 
14330
       fi
 
14331
 
 
14332
       if test "$pre_test_object_deps_done" = no; then
 
14333
         if test -z "$predep_objects_CXX"; then
 
14334
           predep_objects_CXX="$p"
 
14335
         else
 
14336
           predep_objects_CXX="$predep_objects_CXX $p"
 
14337
         fi
 
14338
       else
 
14339
         if test -z "$postdep_objects_CXX"; then
 
14340
           postdep_objects_CXX="$p"
 
14341
         else
 
14342
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
14343
         fi
 
14344
       fi
 
14345
       ;;
 
14346
 
 
14347
    *) ;; # Ignore the rest.
 
14348
 
 
14349
    esac
 
14350
  done
 
14351
 
 
14352
  # Clean up.
 
14353
  rm -f a.out a.exe
 
14354
else
 
14355
  echo "libtool.m4: error: problem compiling CXX test program"
 
14356
fi
 
14357
 
 
14358
$RM -f confest.$objext
 
14359
 
 
14360
# PORTME: override above test on systems where it is broken
 
14361
case $host_os in
 
14362
interix[3-9]*)
 
14363
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
14364
  # hack all around it, let's just trust "g++" to DTRT.
 
14365
  predep_objects_CXX=
 
14366
  postdep_objects_CXX=
 
14367
  postdeps_CXX=
 
14368
  ;;
 
14369
 
 
14370
linux*)
 
14371
  case `$CC -V 2>&1 | sed 5q` in
 
14372
  *Sun\ C*)
 
14373
    # Sun C++ 5.9
 
14374
 
 
14375
    # The more standards-conforming stlport4 library is
 
14376
    # incompatible with the Cstd library. Avoid specifying
 
14377
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14378
    # -library=stlport4 depends on it.
 
14379
    case " $CXX $CXXFLAGS " in
 
14380
    *" -library=stlport4 "*)
 
14381
      solaris_use_stlport4=yes
 
14382
      ;;
 
14383
    esac
 
14384
 
 
14385
    if test "$solaris_use_stlport4" != yes; then
 
14386
      postdeps_CXX='-library=Cstd -library=Crun'
 
14387
    fi
 
14388
    ;;
 
14389
  esac
 
14390
  ;;
 
14391
 
 
14392
solaris*)
 
14393
  case $cc_basename in
 
14394
  CC*)
 
14395
    # The more standards-conforming stlport4 library is
 
14396
    # incompatible with the Cstd library. Avoid specifying
 
14397
    # it if it's in CXXFLAGS. Ignore libCrun as
 
14398
    # -library=stlport4 depends on it.
 
14399
    case " $CXX $CXXFLAGS " in
 
14400
    *" -library=stlport4 "*)
 
14401
      solaris_use_stlport4=yes
 
14402
      ;;
 
14403
    esac
 
14404
 
 
14405
    # Adding this requires a known-good setup of shared libraries for
 
14406
    # Sun compiler versions before 5.6, else PIC objects from an old
 
14407
    # archive will be linked into the output, leading to subtle bugs.
 
14408
    if test "$solaris_use_stlport4" != yes; then
 
14409
      postdeps_CXX='-library=Cstd -library=Crun'
 
14410
    fi
 
14411
    ;;
 
14412
  esac
 
14413
  ;;
 
14414
esac
 
14415
 
 
14416
 
 
14417
case " $postdeps_CXX " in
 
14418
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
14419
esac
 
14420
 compiler_lib_search_dirs_CXX=
 
14421
if test -n "${compiler_lib_search_path_CXX}"; then
 
14422
 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
14423
fi
 
14424
 
 
14425
 
 
14426
 
 
14427
 
 
14428
 
 
14429
 
 
14430
 
 
14431
 
 
14432
 
 
14433
 
 
14434
 
 
14435
 
 
14436
 
 
14437
 
 
14438
 
 
14439
 
 
14440
 
 
14441
 
 
14442
 
 
14443
 
 
14444
 
 
14445
 
 
14446
 
 
14447
 
 
14448
 
 
14449
 
 
14450
 
 
14451
 
 
14452
 
 
14453
 
 
14454
 
 
14455
    lt_prog_compiler_wl_CXX=
 
14456
lt_prog_compiler_pic_CXX=
 
14457
lt_prog_compiler_static_CXX=
 
14458
 
 
14459
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14460
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14461
 
 
14462
  # C++ specific cases for pic, static, wl, etc.
 
14463
  if test "$GXX" = yes; then
 
14464
    lt_prog_compiler_wl_CXX='-Wl,'
 
14465
    lt_prog_compiler_static_CXX='-static'
 
14466
 
 
14467
    case $host_os in
 
14468
    aix*)
 
14469
      # All AIX code is PIC.
 
14470
      if test "$host_cpu" = ia64; then
 
14471
        # AIX 5 now supports IA64 processor
 
14472
        lt_prog_compiler_static_CXX='-Bstatic'
 
14473
      fi
 
14474
      ;;
 
14475
 
 
14476
    amigaos*)
 
14477
      case $host_cpu in
 
14478
      powerpc)
 
14479
            # see comment about AmigaOS4 .so support
 
14480
            lt_prog_compiler_pic_CXX='-fPIC'
 
14481
        ;;
 
14482
      m68k)
 
14483
            # FIXME: we need at least 68020 code to build shared libraries, but
 
14484
            # adding the `-m68020' flag to GCC prevents building anything better,
 
14485
            # like `-m68040'.
 
14486
            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
14487
        ;;
 
14488
      esac
 
14489
      ;;
 
14490
 
 
14491
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14492
      # PIC is the default for these OSes.
 
14493
      ;;
 
14494
    mingw* | cygwin* | os2* | pw32*)
 
14495
      # This hack is so that the source file can tell whether it is being
 
14496
      # built for inclusion in a dll (and should export symbols for example).
 
14497
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14498
      # (--disable-auto-import) libraries
 
14499
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
14500
      ;;
 
14501
    darwin* | rhapsody*)
 
14502
      # PIC is the default on this platform
 
14503
      # Common symbols not allowed in MH_DYLIB files
 
14504
      lt_prog_compiler_pic_CXX='-fno-common'
 
14505
      ;;
 
14506
    *djgpp*)
 
14507
      # DJGPP does not support shared libraries at all
 
14508
      lt_prog_compiler_pic_CXX=
 
14509
      ;;
 
14510
    interix[3-9]*)
 
14511
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14512
      # Instead, we relocate shared libraries at runtime.
 
14513
      ;;
 
14514
    sysv4*MP*)
 
14515
      if test -d /usr/nec; then
 
14516
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
14517
      fi
 
14518
      ;;
 
14519
    hpux*)
 
14520
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14521
      # not for PA HP-UX.
 
14522
      case $host_cpu in
 
14523
      hppa*64*|ia64*)
 
14524
        ;;
 
14525
      *)
 
14526
        lt_prog_compiler_pic_CXX='-fPIC'
 
14527
        ;;
 
14528
      esac
 
14529
      ;;
 
14530
    *qnx* | *nto*)
 
14531
      # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14532
      # it will coredump.
 
14533
      lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14534
      ;;
 
14535
    *)
 
14536
      lt_prog_compiler_pic_CXX='-fPIC'
 
14537
      ;;
 
14538
    esac
 
14539
  else
 
14540
    case $host_os in
 
14541
      aix[4-9]*)
 
14542
        # All AIX code is PIC.
 
14543
        if test "$host_cpu" = ia64; then
 
14544
          # AIX 5 now supports IA64 processor
 
14545
          lt_prog_compiler_static_CXX='-Bstatic'
 
14546
        else
 
14547
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
14548
        fi
 
14549
        ;;
 
14550
      chorus*)
 
14551
        case $cc_basename in
 
14552
        cxch68*)
 
14553
          # Green Hills C++ Compiler
 
14554
          # _LT_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"
 
14555
          ;;
 
14556
        esac
 
14557
        ;;
 
14558
      dgux*)
 
14559
        case $cc_basename in
 
14560
          ec++*)
 
14561
            lt_prog_compiler_pic_CXX='-KPIC'
 
14562
            ;;
 
14563
          ghcx*)
 
14564
            # Green Hills C++ Compiler
 
14565
            lt_prog_compiler_pic_CXX='-pic'
 
14566
            ;;
 
14567
          *)
 
14568
            ;;
 
14569
        esac
 
14570
        ;;
 
14571
      freebsd* | dragonfly*)
 
14572
        # FreeBSD uses GNU C++
 
14573
        ;;
 
14574
      hpux9* | hpux10* | hpux11*)
 
14575
        case $cc_basename in
 
14576
          CC*)
 
14577
            lt_prog_compiler_wl_CXX='-Wl,'
 
14578
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14579
            if test "$host_cpu" != ia64; then
 
14580
              lt_prog_compiler_pic_CXX='+Z'
 
14581
            fi
 
14582
            ;;
 
14583
          aCC*)
 
14584
            lt_prog_compiler_wl_CXX='-Wl,'
 
14585
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
14586
            case $host_cpu in
 
14587
            hppa*64*|ia64*)
 
14588
              # +Z the default
 
14589
              ;;
 
14590
            *)
 
14591
              lt_prog_compiler_pic_CXX='+Z'
 
14592
              ;;
 
14593
            esac
 
14594
            ;;
 
14595
          *)
 
14596
            ;;
 
14597
        esac
 
14598
        ;;
 
14599
      interix*)
 
14600
        # This is c89, which is MS Visual C++ (no shared libs)
 
14601
        # Anyone wants to do a port?
 
14602
        ;;
 
14603
      irix5* | irix6* | nonstopux*)
 
14604
        case $cc_basename in
 
14605
          CC*)
 
14606
            lt_prog_compiler_wl_CXX='-Wl,'
 
14607
            lt_prog_compiler_static_CXX='-non_shared'
 
14608
            # CC pic flag -KPIC is the default.
 
14609
            ;;
 
14610
          *)
 
14611
            ;;
 
14612
        esac
 
14613
        ;;
 
14614
      linux* | k*bsd*-gnu)
 
14615
        case $cc_basename in
 
14616
          KCC*)
 
14617
            # KAI C++ Compiler
 
14618
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14619
            lt_prog_compiler_pic_CXX='-fPIC'
 
14620
            ;;
 
14621
          icpc* | ecpc* )
 
14622
            # Intel C++
 
14623
            lt_prog_compiler_wl_CXX='-Wl,'
 
14624
            lt_prog_compiler_pic_CXX='-KPIC'
 
14625
            lt_prog_compiler_static_CXX='-static'
 
14626
            ;;
 
14627
          pgCC* | pgcpp*)
 
14628
            # Portland Group C++ compiler
 
14629
            lt_prog_compiler_wl_CXX='-Wl,'
 
14630
            lt_prog_compiler_pic_CXX='-fpic'
 
14631
            lt_prog_compiler_static_CXX='-Bstatic'
 
14632
            ;;
 
14633
          cxx*)
 
14634
            # Compaq C++
 
14635
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14636
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14637
            lt_prog_compiler_pic_CXX=
 
14638
            lt_prog_compiler_static_CXX='-non_shared'
 
14639
            ;;
 
14640
          xlc* | xlC*)
 
14641
            # IBM XL 8.0 on PPC
 
14642
            lt_prog_compiler_wl_CXX='-Wl,'
 
14643
            lt_prog_compiler_pic_CXX='-qpic'
 
14644
            lt_prog_compiler_static_CXX='-qstaticlink'
 
14645
            ;;
 
14646
          *)
 
14647
            case `$CC -V 2>&1 | sed 5q` in
 
14648
            *Sun\ C*)
 
14649
              # Sun C++ 5.9
 
14650
              lt_prog_compiler_pic_CXX='-KPIC'
 
14651
              lt_prog_compiler_static_CXX='-Bstatic'
 
14652
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
14653
              ;;
 
14654
            esac
 
14655
            ;;
 
14656
        esac
 
14657
        ;;
 
14658
      lynxos*)
 
14659
        ;;
 
14660
      m88k*)
 
14661
        ;;
 
14662
      mvs*)
 
14663
        case $cc_basename in
 
14664
          cxx*)
 
14665
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
14666
            ;;
 
14667
          *)
 
14668
            ;;
 
14669
        esac
 
14670
        ;;
 
14671
      netbsd* | netbsdelf*-gnu)
 
14672
        ;;
 
14673
      *qnx* | *nto*)
 
14674
        # QNX uses GNU C++, but need to define -shared option too, otherwise
 
14675
        # it will coredump.
 
14676
        lt_prog_compiler_pic_CXX='-fPIC -shared'
 
14677
        ;;
 
14678
      osf3* | osf4* | osf5*)
 
14679
        case $cc_basename in
 
14680
          KCC*)
 
14681
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
14682
            ;;
 
14683
          RCC*)
 
14684
            # Rational C++ 2.4.1
 
14685
            lt_prog_compiler_pic_CXX='-pic'
 
14686
            ;;
 
14687
          cxx*)
 
14688
            # Digital/Compaq C++
 
14689
            lt_prog_compiler_wl_CXX='-Wl,'
 
14690
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
14691
            # Linux and Compaq Tru64 Unix objects are PIC.
 
14692
            lt_prog_compiler_pic_CXX=
 
14693
            lt_prog_compiler_static_CXX='-non_shared'
 
14694
            ;;
 
14695
          *)
 
14696
            ;;
 
14697
        esac
 
14698
        ;;
 
14699
      psos*)
 
14700
        ;;
 
14701
      solaris*)
 
14702
        case $cc_basename in
 
14703
          CC*)
 
14704
            # Sun C++ 4.2, 5.x and Centerline C++
 
14705
            lt_prog_compiler_pic_CXX='-KPIC'
 
14706
            lt_prog_compiler_static_CXX='-Bstatic'
 
14707
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
14708
            ;;
 
14709
          gcx*)
 
14710
            # Green Hills C++ Compiler
 
14711
            lt_prog_compiler_pic_CXX='-PIC'
 
14712
            ;;
 
14713
          *)
 
14714
            ;;
 
14715
        esac
 
14716
        ;;
 
14717
      sunos4*)
 
14718
        case $cc_basename in
 
14719
          CC*)
 
14720
            # Sun C++ 4.x
 
14721
            lt_prog_compiler_pic_CXX='-pic'
 
14722
            lt_prog_compiler_static_CXX='-Bstatic'
 
14723
            ;;
 
14724
          lcc*)
 
14725
            # Lucid
 
14726
            lt_prog_compiler_pic_CXX='-pic'
 
14727
            ;;
 
14728
          *)
 
14729
            ;;
 
14730
        esac
 
14731
        ;;
 
14732
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14733
        case $cc_basename in
 
14734
          CC*)
 
14735
            lt_prog_compiler_wl_CXX='-Wl,'
 
14736
            lt_prog_compiler_pic_CXX='-KPIC'
 
14737
            lt_prog_compiler_static_CXX='-Bstatic'
 
14738
            ;;
 
14739
        esac
 
14740
        ;;
 
14741
      tandem*)
 
14742
        case $cc_basename in
 
14743
          NCC*)
 
14744
            # NonStop-UX NCC 3.20
 
14745
            lt_prog_compiler_pic_CXX='-KPIC'
 
14746
            ;;
 
14747
          *)
 
14748
            ;;
 
14749
        esac
 
14750
        ;;
 
14751
      vxworks*)
 
14752
        ;;
 
14753
      *)
 
14754
        lt_prog_compiler_can_build_shared_CXX=no
 
14755
        ;;
 
14756
    esac
 
14757
  fi
 
14758
 
 
14759
case $host_os in
 
14760
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14761
  *djgpp*)
 
14762
    lt_prog_compiler_pic_CXX=
 
14763
    ;;
 
14764
  *)
 
14765
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
14766
    ;;
 
14767
esac
 
14768
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
14769
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
14770
 
 
14771
 
 
14772
 
 
14773
#
 
14774
# Check to make sure the PIC flag actually works.
 
14775
#
 
14776
if test -n "$lt_prog_compiler_pic_CXX"; then
 
14777
  { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
14778
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
14779
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
14780
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14781
else
 
14782
  lt_cv_prog_compiler_pic_works_CXX=no
 
14783
   ac_outfile=conftest.$ac_objext
 
14784
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14785
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
14786
   # Insert the option either (1) after the last *FLAGS variable, or
 
14787
   # (2) before a word containing "conftest.", or (3) at the end.
 
14788
   # Note that $ac_compile itself does not contain backslashes and begins
 
14789
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14790
   # The option is referenced via a variable to avoid confusing sed.
 
14791
   lt_compile=`echo "$ac_compile" | $SED \
 
14792
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14793
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14794
   -e 's:$: $lt_compiler_flag:'`
 
14795
   (eval echo "\"\$as_me:14795: $lt_compile\"" >&5)
 
14796
   (eval "$lt_compile" 2>conftest.err)
 
14797
   ac_status=$?
 
14798
   cat conftest.err >&5
 
14799
   echo "$as_me:14799: \$? = $ac_status" >&5
 
14800
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14801
     # The compiler can only warn and ignore the option if not recognized
 
14802
     # So say no if there are warnings other than the usual output.
 
14803
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14804
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14805
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14806
       lt_cv_prog_compiler_pic_works_CXX=yes
 
14807
     fi
 
14808
   fi
 
14809
   $RM conftest*
 
14810
 
 
14811
fi
 
14812
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
14813
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
14814
 
 
14815
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
14816
    case $lt_prog_compiler_pic_CXX in
 
14817
     "" | " "*) ;;
 
14818
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
14819
     esac
 
14820
else
 
14821
    lt_prog_compiler_pic_CXX=
 
14822
     lt_prog_compiler_can_build_shared_CXX=no
 
14823
fi
 
14824
 
 
14825
fi
 
14826
 
 
14827
 
 
14828
 
 
14829
#
 
14830
# Check to make sure the static flag actually works.
 
14831
#
 
14832
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
14833
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14834
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14835
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
14836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14837
else
 
14838
  lt_cv_prog_compiler_static_works_CXX=no
 
14839
   save_LDFLAGS="$LDFLAGS"
 
14840
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14841
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14842
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14843
     # The linker can only warn and ignore the option if not recognized
 
14844
     # So say no if there are warnings
 
14845
     if test -s conftest.err; then
 
14846
       # Append any errors to the config.log.
 
14847
       cat conftest.err 1>&5
 
14848
       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14849
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14850
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14851
         lt_cv_prog_compiler_static_works_CXX=yes
 
14852
       fi
 
14853
     else
 
14854
       lt_cv_prog_compiler_static_works_CXX=yes
 
14855
     fi
 
14856
   fi
 
14857
   $RM -r conftest*
 
14858
   LDFLAGS="$save_LDFLAGS"
 
14859
 
 
14860
fi
 
14861
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
14862
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
14863
 
 
14864
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
14865
    :
 
14866
else
 
14867
    lt_prog_compiler_static_CXX=
 
14868
fi
 
14869
 
 
14870
 
 
14871
 
 
14872
 
 
14873
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14874
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14875
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
14876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14877
else
 
14878
  lt_cv_prog_compiler_c_o_CXX=no
 
14879
   $RM -r conftest 2>/dev/null
 
14880
   mkdir conftest
 
14881
   cd conftest
 
14882
   mkdir out
 
14883
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14884
 
 
14885
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14886
   # Insert the option either (1) after the last *FLAGS variable, or
 
14887
   # (2) before a word containing "conftest.", or (3) at the end.
 
14888
   # Note that $ac_compile itself does not contain backslashes and begins
 
14889
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14890
   lt_compile=`echo "$ac_compile" | $SED \
 
14891
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14892
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14893
   -e 's:$: $lt_compiler_flag:'`
 
14894
   (eval echo "\"\$as_me:14894: $lt_compile\"" >&5)
 
14895
   (eval "$lt_compile" 2>out/conftest.err)
 
14896
   ac_status=$?
 
14897
   cat out/conftest.err >&5
 
14898
   echo "$as_me:14898: \$? = $ac_status" >&5
 
14899
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14900
   then
 
14901
     # The compiler can only warn and ignore the option if not recognized
 
14902
     # So say no if there are warnings
 
14903
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14904
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14905
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14906
       lt_cv_prog_compiler_c_o_CXX=yes
 
14907
     fi
 
14908
   fi
 
14909
   chmod u+w . 2>&5
 
14910
   $RM conftest*
 
14911
   # SGI C++ compiler will create directory out/ii_files/ for
 
14912
   # template instantiation
 
14913
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14914
   $RM out/* && rmdir out
 
14915
   cd ..
 
14916
   $RM -r conftest
 
14917
   $RM conftest*
 
14918
 
 
14919
fi
 
14920
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14921
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14922
 
 
14923
 
 
14924
 
 
14925
    { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14926
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14927
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
14928
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14929
else
 
14930
  lt_cv_prog_compiler_c_o_CXX=no
 
14931
   $RM -r conftest 2>/dev/null
 
14932
   mkdir conftest
 
14933
   cd conftest
 
14934
   mkdir out
 
14935
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14936
 
 
14937
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14938
   # Insert the option either (1) after the last *FLAGS variable, or
 
14939
   # (2) before a word containing "conftest.", or (3) at the end.
 
14940
   # Note that $ac_compile itself does not contain backslashes and begins
 
14941
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14942
   lt_compile=`echo "$ac_compile" | $SED \
 
14943
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14944
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14945
   -e 's:$: $lt_compiler_flag:'`
 
14946
   (eval echo "\"\$as_me:14946: $lt_compile\"" >&5)
 
14947
   (eval "$lt_compile" 2>out/conftest.err)
 
14948
   ac_status=$?
 
14949
   cat out/conftest.err >&5
 
14950
   echo "$as_me:14950: \$? = $ac_status" >&5
 
14951
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14952
   then
 
14953
     # The compiler can only warn and ignore the option if not recognized
 
14954
     # So say no if there are warnings
 
14955
     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14956
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14957
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14958
       lt_cv_prog_compiler_c_o_CXX=yes
 
14959
     fi
 
14960
   fi
 
14961
   chmod u+w . 2>&5
 
14962
   $RM conftest*
 
14963
   # SGI C++ compiler will create directory out/ii_files/ for
 
14964
   # template instantiation
 
14965
   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
 
14966
   $RM out/* && rmdir out
 
14967
   cd ..
 
14968
   $RM -r conftest
 
14969
   $RM conftest*
 
14970
 
 
14971
fi
 
14972
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
14973
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
14974
 
 
14975
 
 
14976
 
 
14977
 
 
14978
hard_links="nottested"
 
14979
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
14980
  # do not overwrite the value of need_locks provided by the user
 
14981
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14982
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14983
  hard_links=yes
 
14984
  $RM conftest*
 
14985
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14986
  touch conftest.a
 
14987
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14988
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14989
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14990
echo "${ECHO_T}$hard_links" >&6; }
 
14991
  if test "$hard_links" = no; then
 
14992
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14993
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14994
    need_locks=warn
 
14995
  fi
 
14996
else
 
14997
  need_locks=no
 
14998
fi
 
14999
 
 
15000
 
 
15001
 
 
15002
    { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15003
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
15004
 
 
15005
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15006
  case $host_os in
 
15007
  aix[4-9]*)
 
15008
    # If we're using GNU nm, then we don't want the "-C" option.
 
15009
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15010
    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
 
15011
      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'
 
15012
    else
 
15013
      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'
 
15014
    fi
 
15015
    ;;
 
15016
  pw32*)
 
15017
    export_symbols_cmds_CXX="$ltdll_cmds"
 
15018
  ;;
 
15019
  cygwin* | mingw*)
 
15020
    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'
 
15021
  ;;
 
15022
  linux* | k*bsd*-gnu)
 
15023
    link_all_deplibs_CXX=no
 
15024
  ;;
 
15025
  *)
 
15026
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15027
  ;;
 
15028
  esac
 
15029
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15030
 
 
15031
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
15032
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
15033
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
15034
 
 
15035
with_gnu_ld_CXX=$with_gnu_ld
 
15036
 
 
15037
 
 
15038
 
 
15039
 
 
15040
 
 
15041
 
 
15042
#
 
15043
# Do we need to explicitly link libc?
 
15044
#
 
15045
case "x$archive_cmds_need_lc_CXX" in
 
15046
x|xyes)
 
15047
  # Assume -lc should be added
 
15048
  archive_cmds_need_lc_CXX=yes
 
15049
 
 
15050
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15051
    case $archive_cmds_CXX in
 
15052
    *'~'*)
 
15053
      # FIXME: we may have to deal with multi-command sequences.
 
15054
      ;;
 
15055
    '$CC '*)
 
15056
      # Test whether the compiler implicitly links with -lc since on some
 
15057
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15058
      # to ld, don't add -lc before -lgcc.
 
15059
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15060
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15061
      $RM conftest*
 
15062
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15063
 
 
15064
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15065
  (eval $ac_compile) 2>&5
 
15066
  ac_status=$?
 
15067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15068
  (exit $ac_status); } 2>conftest.err; then
 
15069
        soname=conftest
 
15070
        lib=conftest
 
15071
        libobjs=conftest.$ac_objext
 
15072
        deplibs=
 
15073
        wl=$lt_prog_compiler_wl_CXX
 
15074
        pic_flag=$lt_prog_compiler_pic_CXX
 
15075
        compiler_flags=-v
 
15076
        linker_flags=-v
 
15077
        verstring=
 
15078
        output_objdir=.
 
15079
        libname=conftest
 
15080
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
15081
        allow_undefined_flag_CXX=
 
15082
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15083
  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15084
  ac_status=$?
 
15085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15086
  (exit $ac_status); }
 
15087
        then
 
15088
          archive_cmds_need_lc_CXX=no
 
15089
        else
 
15090
          archive_cmds_need_lc_CXX=yes
 
15091
        fi
 
15092
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
15093
      else
 
15094
        cat conftest.err 1>&5
 
15095
      fi
 
15096
      $RM conftest*
 
15097
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
15098
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
15099
      ;;
 
15100
    esac
 
15101
  fi
 
15102
  ;;
 
15103
esac
 
15104
 
 
15105
 
 
15106
 
 
15107
 
 
15108
 
 
15109
 
 
15110
 
 
15111
 
 
15112
 
 
15113
 
 
15114
 
 
15115
 
 
15116
 
 
15117
 
 
15118
 
 
15119
 
 
15120
 
 
15121
 
 
15122
 
 
15123
 
 
15124
 
 
15125
 
 
15126
 
 
15127
 
 
15128
 
 
15129
 
 
15130
 
 
15131
 
 
15132
 
 
15133
 
 
15134
 
 
15135
 
 
15136
 
 
15137
 
 
15138
 
 
15139
 
 
15140
 
 
15141
 
 
15142
 
 
15143
 
 
15144
 
 
15145
 
 
15146
 
 
15147
 
 
15148
 
 
15149
 
 
15150
 
 
15151
 
 
15152
 
 
15153
 
 
15154
 
 
15155
 
 
15156
 
 
15157
 
 
15158
 
 
15159
 
 
15160
 
 
15161
 
 
15162
 
 
15163
 
 
15164
 
 
15165
 
 
15166
 
 
15167
 
 
15168
    { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15169
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15170
 
 
15171
library_names_spec=
 
15172
libname_spec='lib$name'
 
15173
soname_spec=
 
15174
shrext_cmds=".so"
 
15175
postinstall_cmds=
 
15176
postuninstall_cmds=
 
15177
finish_cmds=
 
15178
finish_eval=
 
15179
shlibpath_var=
 
15180
shlibpath_overrides_runpath=unknown
 
15181
version_type=none
 
15182
dynamic_linker="$host_os ld.so"
 
15183
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15184
need_lib_prefix=unknown
 
15185
hardcode_into_libs=no
 
15186
 
 
15187
# when you set need_version to no, make sure it does not cause -set_version
 
15188
# flags to be left without arguments
 
15189
need_version=unknown
 
15190
 
 
15191
case $host_os in
 
15192
aix3*)
 
15193
  version_type=linux
 
15194
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15195
  shlibpath_var=LIBPATH
 
15196
 
 
15197
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15198
  soname_spec='${libname}${release}${shared_ext}$major'
 
15199
  ;;
 
15200
 
 
15201
aix[4-9]*)
 
15202
  version_type=linux
 
15203
  need_lib_prefix=no
 
15204
  need_version=no
 
15205
  hardcode_into_libs=yes
 
15206
  if test "$host_cpu" = ia64; then
 
15207
    # AIX 5 supports IA64
 
15208
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15209
    shlibpath_var=LD_LIBRARY_PATH
 
15210
  else
 
15211
    # With GCC up to 2.95.x, collect2 would create an import file
 
15212
    # for dependence libraries.  The import file would start with
 
15213
    # the line `#! .'.  This would cause the generated library to
 
15214
    # depend on `.', always an invalid library.  This was fixed in
 
15215
    # development snapshots of GCC prior to 3.0.
 
15216
    case $host_os in
 
15217
      aix4 | aix4.[01] | aix4.[01].*)
 
15218
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15219
           echo ' yes '
 
15220
           echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
 
15221
        :
 
15222
      else
 
15223
        can_build_shared=no
 
15224
      fi
 
15225
      ;;
 
15226
    esac
 
15227
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15228
    # soname into executable. Probably we can add versioning support to
 
15229
    # collect2, so additional links can be useful in future.
 
15230
    if test "$aix_use_runtimelinking" = yes; then
 
15231
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15232
      # instead of lib<name>.a to let people know that these are not
 
15233
      # typical AIX shared libraries.
 
15234
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15235
    else
 
15236
      # We preserve .a as extension for shared libraries through AIX4.2
 
15237
      # and later when we are not doing run time linking.
 
15238
      library_names_spec='${libname}${release}.a $libname.a'
 
15239
      soname_spec='${libname}${release}${shared_ext}$major'
 
15240
    fi
 
15241
    shlibpath_var=LIBPATH
 
15242
  fi
 
15243
  ;;
 
15244
 
 
15245
amigaos*)
 
15246
  case $host_cpu in
 
15247
  powerpc)
 
15248
    # Since July 2007 AmigaOS4 officially supports .so libraries.
 
15249
    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
 
15250
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15251
    ;;
 
15252
  m68k)
 
15253
    library_names_spec='$libname.ixlibrary $libname.a'
 
15254
    # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15255
    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'
 
15256
    ;;
 
15257
  esac
 
15258
  ;;
 
15259
 
 
15260
beos*)
 
15261
  library_names_spec='${libname}${shared_ext}'
 
15262
  dynamic_linker="$host_os ld.so"
 
15263
  shlibpath_var=LIBRARY_PATH
 
15264
  ;;
 
15265
 
 
15266
bsdi[45]*)
 
15267
  version_type=linux
 
15268
  need_version=no
 
15269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15270
  soname_spec='${libname}${release}${shared_ext}$major'
 
15271
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15272
  shlibpath_var=LD_LIBRARY_PATH
 
15273
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15274
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15275
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15276
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15277
  # libtool to hard-code these into programs
 
15278
  ;;
 
15279
 
 
15280
cygwin* | mingw* | pw32*)
 
15281
  version_type=windows
 
15282
  shrext_cmds=".dll"
 
15283
  need_version=no
 
15284
  need_lib_prefix=no
 
15285
 
 
15286
  case $GCC,$host_os in
 
15287
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15288
    library_names_spec='$libname.dll.a'
 
15289
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15290
    postinstall_cmds='base_file=`basename \${file}`~
 
15291
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
 
15292
      dldir=$destdir/`dirname \$dlpath`~
 
15293
      test -d \$dldir || mkdir -p \$dldir~
 
15294
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15295
      chmod a+x \$dldir/$dlname~
 
15296
      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
 
15297
        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
 
15298
      fi'
 
15299
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15300
      dlpath=$dir/\$dldll~
 
15301
       $RM \$dlpath'
 
15302
    shlibpath_overrides_runpath=yes
 
15303
 
 
15304
    case $host_os in
 
15305
    cygwin*)
 
15306
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15307
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15308
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15309
      ;;
 
15310
    mingw*)
 
15311
      # MinGW DLLs use traditional 'lib' prefix
 
15312
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15313
      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15314
      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
 
15315
        # It is most probably a Windows format PATH printed by
 
15316
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15317
        # path with ; separators, and with drive letters. We can handle the
 
15318
        # drive letters (cygwin fileutils understands them), so leave them,
 
15319
        # especially as we might pass files found there to a mingw objdump,
 
15320
        # which wouldn't understand a cygwinified path. Ahh.
 
15321
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15322
      else
 
15323
        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15324
      fi
 
15325
      ;;
 
15326
    pw32*)
 
15327
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15328
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15329
      ;;
 
15330
    esac
 
15331
    ;;
 
15332
 
 
15333
  *)
 
15334
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15335
    ;;
 
15336
  esac
 
15337
  dynamic_linker='Win32 ld.exe'
 
15338
  # FIXME: first we should search . and the directory the executable is in
 
15339
  shlibpath_var=PATH
 
15340
  ;;
 
15341
 
 
15342
darwin* | rhapsody*)
 
15343
  dynamic_linker="$host_os dyld"
 
15344
  version_type=darwin
 
15345
  need_lib_prefix=no
 
15346
  need_version=no
 
15347
  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15348
  soname_spec='${libname}${release}${major}$shared_ext'
 
15349
  shlibpath_overrides_runpath=yes
 
15350
  shlibpath_var=DYLD_LIBRARY_PATH
 
15351
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15352
 
 
15353
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15354
  ;;
 
15355
 
 
15356
dgux*)
 
15357
  version_type=linux
 
15358
  need_lib_prefix=no
 
15359
  need_version=no
 
15360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15361
  soname_spec='${libname}${release}${shared_ext}$major'
 
15362
  shlibpath_var=LD_LIBRARY_PATH
 
15363
  ;;
 
15364
 
 
15365
freebsd1*)
 
15366
  dynamic_linker=no
 
15367
  ;;
 
15368
 
 
15369
freebsd* | dragonfly*)
 
15370
  # DragonFly does not have aout.  When/if they implement a new
 
15371
  # versioning mechanism, adjust this.
 
15372
  if test -x /usr/bin/objformat; then
 
15373
    objformat=`/usr/bin/objformat`
 
15374
  else
 
15375
    case $host_os in
 
15376
    freebsd[123]*) objformat=aout ;;
 
15377
    *) objformat=elf ;;
 
15378
    esac
 
15379
  fi
 
15380
  version_type=freebsd-$objformat
 
15381
  case $version_type in
 
15382
    freebsd-elf*)
 
15383
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15384
      need_version=no
 
15385
      need_lib_prefix=no
 
15386
      ;;
 
15387
    freebsd-*)
 
15388
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15389
      need_version=yes
 
15390
      ;;
 
15391
  esac
 
15392
  shlibpath_var=LD_LIBRARY_PATH
 
15393
  case $host_os in
 
15394
  freebsd2*)
 
15395
    shlibpath_overrides_runpath=yes
 
15396
    ;;
 
15397
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15398
    shlibpath_overrides_runpath=yes
 
15399
    hardcode_into_libs=yes
 
15400
    ;;
 
15401
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15402
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15403
    shlibpath_overrides_runpath=no
 
15404
    hardcode_into_libs=yes
 
15405
    ;;
 
15406
  *) # from 4.6 on, and DragonFly
 
15407
    shlibpath_overrides_runpath=yes
 
15408
    hardcode_into_libs=yes
 
15409
    ;;
 
15410
  esac
 
15411
  ;;
 
15412
 
 
15413
gnu*)
 
15414
  version_type=linux
 
15415
  need_lib_prefix=no
 
15416
  need_version=no
 
15417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15418
  soname_spec='${libname}${release}${shared_ext}$major'
 
15419
  shlibpath_var=LD_LIBRARY_PATH
 
15420
  hardcode_into_libs=yes
 
15421
  ;;
 
15422
 
 
15423
hpux9* | hpux10* | hpux11*)
 
15424
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15425
  # link against other versions.
 
15426
  version_type=sunos
 
15427
  need_lib_prefix=no
 
15428
  need_version=no
 
15429
  case $host_cpu in
 
15430
  ia64*)
 
15431
    shrext_cmds='.so'
 
15432
    hardcode_into_libs=yes
 
15433
    dynamic_linker="$host_os dld.so"
 
15434
    shlibpath_var=LD_LIBRARY_PATH
 
15435
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15436
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15437
    soname_spec='${libname}${release}${shared_ext}$major'
 
15438
    if test "X$HPUX_IA64_MODE" = X32; then
 
15439
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15440
    else
 
15441
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15442
    fi
 
15443
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15444
    ;;
 
15445
  hppa*64*)
 
15446
    shrext_cmds='.sl'
 
15447
    hardcode_into_libs=yes
 
15448
    dynamic_linker="$host_os dld.sl"
 
15449
    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15450
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15451
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15452
    soname_spec='${libname}${release}${shared_ext}$major'
 
15453
    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15454
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15455
    ;;
 
15456
  *)
 
15457
    shrext_cmds='.sl'
 
15458
    dynamic_linker="$host_os dld.sl"
 
15459
    shlibpath_var=SHLIB_PATH
 
15460
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15461
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15462
    soname_spec='${libname}${release}${shared_ext}$major'
 
15463
    ;;
 
15464
  esac
 
15465
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15466
  postinstall_cmds='chmod 555 $lib'
 
15467
  ;;
 
15468
 
 
15469
interix[3-9]*)
 
15470
  version_type=linux
 
15471
  need_lib_prefix=no
 
15472
  need_version=no
 
15473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15474
  soname_spec='${libname}${release}${shared_ext}$major'
 
15475
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15476
  shlibpath_var=LD_LIBRARY_PATH
 
15477
  shlibpath_overrides_runpath=no
 
15478
  hardcode_into_libs=yes
 
15479
  ;;
 
15480
 
 
15481
irix5* | irix6* | nonstopux*)
 
15482
  case $host_os in
 
15483
    nonstopux*) version_type=nonstopux ;;
 
15484
    *)
 
15485
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15486
                version_type=linux
 
15487
        else
 
15488
                version_type=irix
 
15489
        fi ;;
 
15490
  esac
 
15491
  need_lib_prefix=no
 
15492
  need_version=no
 
15493
  soname_spec='${libname}${release}${shared_ext}$major'
 
15494
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15495
  case $host_os in
 
15496
  irix5* | nonstopux*)
 
15497
    libsuff= shlibsuff=
 
15498
    ;;
 
15499
  *)
 
15500
    case $LD in # libtool.m4 will add one of these switches to LD
 
15501
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15502
      libsuff= shlibsuff= libmagic=32-bit;;
 
15503
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15504
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15505
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15506
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15507
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15508
    esac
 
15509
    ;;
 
15510
  esac
 
15511
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15512
  shlibpath_overrides_runpath=no
 
15513
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15514
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15515
  hardcode_into_libs=yes
 
15516
  ;;
 
15517
 
 
15518
# No shared lib support for Linux oldld, aout, or coff.
 
15519
linux*oldld* | linux*aout* | linux*coff*)
 
15520
  dynamic_linker=no
 
15521
  ;;
 
15522
 
 
15523
# This must be Linux ELF.
 
15524
linux* | k*bsd*-gnu)
 
15525
  version_type=linux
 
15526
  need_lib_prefix=no
 
15527
  need_version=no
 
15528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15529
  soname_spec='${libname}${release}${shared_ext}$major'
 
15530
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15531
  shlibpath_var=LD_LIBRARY_PATH
 
15532
  shlibpath_overrides_runpath=no
 
15533
  # Some binutils ld are patched to set DT_RUNPATH
 
15534
  save_LDFLAGS=$LDFLAGS
 
15535
  save_libdir=$libdir
 
15536
  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
 
15537
       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
 
15538
  cat >conftest.$ac_ext <<_ACEOF
 
15539
/* confdefs.h.  */
 
15540
_ACEOF
 
15541
cat confdefs.h >>conftest.$ac_ext
 
15542
cat >>conftest.$ac_ext <<_ACEOF
 
15543
/* end confdefs.h.  */
 
15544
 
 
15545
int
 
15546
main ()
 
15547
{
 
15548
 
 
15549
  ;
 
15550
  return 0;
 
15551
}
 
15552
_ACEOF
 
15553
rm -f conftest.$ac_objext conftest$ac_exeext
 
15554
if { (ac_try="$ac_link"
 
15555
case "(($ac_try" in
 
15556
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15557
  *) ac_try_echo=$ac_try;;
 
15558
esac
 
15559
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15560
  (eval "$ac_link") 2>conftest.er1
 
15561
  ac_status=$?
 
15562
  grep -v '^ *+' conftest.er1 >conftest.err
 
15563
  rm -f conftest.er1
 
15564
  cat conftest.err >&5
 
15565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15566
  (exit $ac_status); } && {
 
15567
         test -z "$ac_cxx_werror_flag" ||
 
15568
         test ! -s conftest.err
 
15569
       } && test -s conftest$ac_exeext &&
 
15570
       $as_test_x conftest$ac_exeext; then
 
15571
  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
 
15572
  shlibpath_overrides_runpath=yes
 
15573
fi
 
15574
 
 
15575
else
 
15576
  echo "$as_me: failed program was:" >&5
 
15577
sed 's/^/| /' conftest.$ac_ext >&5
 
15578
 
 
15579
 
 
15580
fi
 
15581
 
 
15582
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15583
      conftest$ac_exeext conftest.$ac_ext
 
15584
  LDFLAGS=$save_LDFLAGS
 
15585
  libdir=$save_libdir
 
15586
 
 
15587
  # This implies no fast_install, which is unacceptable.
 
15588
  # Some rework will be needed to allow for fast_install
 
15589
  # before this can be enabled.
 
15590
  hardcode_into_libs=yes
 
15591
 
 
15592
  # Append ld.so.conf contents to the search path
 
15593
  if test -f /etc/ld.so.conf; then
 
15594
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15595
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15596
  fi
 
15597
 
 
15598
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15599
  # powerpc, because MkLinux only supported shared libraries with the
 
15600
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15601
  # most powerpc-linux boxes support dynamic linking these days and
 
15602
  # people can always --disable-shared, the test was removed, and we
 
15603
  # assume the GNU/Linux dynamic linker is in use.
 
15604
  dynamic_linker='GNU/Linux ld.so'
 
15605
  ;;
 
15606
 
 
15607
netbsdelf*-gnu)
 
15608
  version_type=linux
 
15609
  need_lib_prefix=no
 
15610
  need_version=no
 
15611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15612
  soname_spec='${libname}${release}${shared_ext}$major'
 
15613
  shlibpath_var=LD_LIBRARY_PATH
 
15614
  shlibpath_overrides_runpath=no
 
15615
  hardcode_into_libs=yes
 
15616
  dynamic_linker='NetBSD ld.elf_so'
 
15617
  ;;
 
15618
 
 
15619
netbsd*)
 
15620
  version_type=sunos
 
15621
  need_lib_prefix=no
 
15622
  need_version=no
 
15623
  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
 
15624
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15625
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15626
    dynamic_linker='NetBSD (a.out) ld.so'
 
15627
  else
 
15628
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15629
    soname_spec='${libname}${release}${shared_ext}$major'
 
15630
    dynamic_linker='NetBSD ld.elf_so'
 
15631
  fi
 
15632
  shlibpath_var=LD_LIBRARY_PATH
 
15633
  shlibpath_overrides_runpath=yes
 
15634
  hardcode_into_libs=yes
 
15635
  ;;
 
15636
 
 
15637
newsos6)
 
15638
  version_type=linux
 
15639
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15640
  shlibpath_var=LD_LIBRARY_PATH
 
15641
  shlibpath_overrides_runpath=yes
 
15642
  ;;
 
15643
 
 
15644
*nto* | *qnx*)
 
15645
  version_type=qnx
 
15646
  need_lib_prefix=no
 
15647
  need_version=no
 
15648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15649
  soname_spec='${libname}${release}${shared_ext}$major'
 
15650
  shlibpath_var=LD_LIBRARY_PATH
 
15651
  shlibpath_overrides_runpath=no
 
15652
  hardcode_into_libs=yes
 
15653
  dynamic_linker='ldqnx.so'
 
15654
  ;;
 
15655
 
 
15656
openbsd*)
 
15657
  version_type=sunos
 
15658
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15659
  need_lib_prefix=no
 
15660
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15661
  case $host_os in
 
15662
    openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
 
15663
    *)                          need_version=no  ;;
 
15664
  esac
 
15665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15666
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15667
  shlibpath_var=LD_LIBRARY_PATH
 
15668
  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15669
    case $host_os in
 
15670
      openbsd2.[89] | openbsd2.[89].*)
 
15671
        shlibpath_overrides_runpath=no
 
15672
        ;;
 
15673
      *)
 
15674
        shlibpath_overrides_runpath=yes
 
15675
        ;;
 
15676
      esac
 
15677
  else
 
15678
    shlibpath_overrides_runpath=yes
 
15679
  fi
 
15680
  ;;
 
15681
 
 
15682
os2*)
 
15683
  libname_spec='$name'
 
15684
  shrext_cmds=".dll"
 
15685
  need_lib_prefix=no
 
15686
  library_names_spec='$libname${shared_ext} $libname.a'
 
15687
  dynamic_linker='OS/2 ld.exe'
 
15688
  shlibpath_var=LIBPATH
 
15689
  ;;
 
15690
 
 
15691
osf3* | osf4* | osf5*)
 
15692
  version_type=osf
 
15693
  need_lib_prefix=no
 
15694
  need_version=no
 
15695
  soname_spec='${libname}${release}${shared_ext}$major'
 
15696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15697
  shlibpath_var=LD_LIBRARY_PATH
 
15698
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15699
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15700
  ;;
 
15701
 
 
15702
rdos*)
 
15703
  dynamic_linker=no
 
15704
  ;;
 
15705
 
 
15706
solaris*)
 
15707
  version_type=linux
 
15708
  need_lib_prefix=no
 
15709
  need_version=no
 
15710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15711
  soname_spec='${libname}${release}${shared_ext}$major'
 
15712
  shlibpath_var=LD_LIBRARY_PATH
 
15713
  shlibpath_overrides_runpath=yes
 
15714
  hardcode_into_libs=yes
 
15715
  # ldd complains unless libraries are executable
 
15716
  postinstall_cmds='chmod +x $lib'
 
15717
  ;;
 
15718
 
 
15719
sunos4*)
 
15720
  version_type=sunos
 
15721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15722
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15723
  shlibpath_var=LD_LIBRARY_PATH
 
15724
  shlibpath_overrides_runpath=yes
 
15725
  if test "$with_gnu_ld" = yes; then
 
15726
    need_lib_prefix=no
 
15727
  fi
 
15728
  need_version=yes
 
15729
  ;;
 
15730
 
 
15731
sysv4 | sysv4.3*)
 
15732
  version_type=linux
 
15733
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15734
  soname_spec='${libname}${release}${shared_ext}$major'
 
15735
  shlibpath_var=LD_LIBRARY_PATH
 
15736
  case $host_vendor in
 
15737
    sni)
 
15738
      shlibpath_overrides_runpath=no
 
15739
      need_lib_prefix=no
 
15740
      runpath_var=LD_RUN_PATH
 
15741
      ;;
 
15742
    siemens)
 
15743
      need_lib_prefix=no
 
15744
      ;;
 
15745
    motorola)
 
15746
      need_lib_prefix=no
 
15747
      need_version=no
 
15748
      shlibpath_overrides_runpath=no
 
15749
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15750
      ;;
 
15751
  esac
 
15752
  ;;
 
15753
 
 
15754
sysv4*MP*)
 
15755
  if test -d /usr/nec ;then
 
15756
    version_type=linux
 
15757
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15758
    soname_spec='$libname${shared_ext}.$major'
 
15759
    shlibpath_var=LD_LIBRARY_PATH
 
15760
  fi
 
15761
  ;;
 
15762
 
 
15763
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15764
  version_type=freebsd-elf
 
15765
  need_lib_prefix=no
 
15766
  need_version=no
 
15767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15768
  soname_spec='${libname}${release}${shared_ext}$major'
 
15769
  shlibpath_var=LD_LIBRARY_PATH
 
15770
  shlibpath_overrides_runpath=yes
 
15771
  hardcode_into_libs=yes
 
15772
  if test "$with_gnu_ld" = yes; then
 
15773
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15774
  else
 
15775
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15776
    case $host_os in
 
15777
      sco3.2v5*)
 
15778
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15779
        ;;
 
15780
    esac
 
15781
  fi
 
15782
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15783
  ;;
 
15784
 
 
15785
tpf*)
 
15786
  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
 
15787
  version_type=linux
 
15788
  need_lib_prefix=no
 
15789
  need_version=no
 
15790
  library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15791
  shlibpath_var=LD_LIBRARY_PATH
 
15792
  shlibpath_overrides_runpath=no
 
15793
  hardcode_into_libs=yes
 
15794
  ;;
 
15795
 
 
15796
uts4*)
 
15797
  version_type=linux
 
15798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15799
  soname_spec='${libname}${release}${shared_ext}$major'
 
15800
  shlibpath_var=LD_LIBRARY_PATH
 
15801
  ;;
 
15802
 
 
15803
*)
 
15804
  dynamic_linker=no
 
15805
  ;;
 
15806
esac
 
15807
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15808
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15809
test "$dynamic_linker" = no && can_build_shared=no
 
15810
 
 
15811
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15812
if test "$GCC" = yes; then
 
15813
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15814
fi
 
15815
 
 
15816
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
15817
  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
15818
fi
 
15819
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
15820
  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
15821
fi
 
15822
 
 
15823
 
 
15824
 
 
15825
 
 
15826
 
 
15827
 
 
15828
 
 
15829
 
 
15830
 
 
15831
 
 
15832
 
 
15833
 
 
15834
 
 
15835
 
 
15836
 
 
15837
 
 
15838
 
 
15839
 
 
15840
 
 
15841
 
 
15842
 
 
15843
 
 
15844
 
 
15845
 
 
15846
 
 
15847
 
 
15848
 
 
15849
 
 
15850
 
 
15851
 
 
15852
 
 
15853
 
 
15854
 
 
15855
 
 
15856
 
 
15857
 
 
15858
    { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15859
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15860
hardcode_action_CXX=
 
15861
if test -n "$hardcode_libdir_flag_spec_CXX" ||
 
15862
   test -n "$runpath_var_CXX" ||
 
15863
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
15864
 
 
15865
  # We can hardcode non-existent directories.
 
15866
  if test "$hardcode_direct_CXX" != no &&
 
15867
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15868
     # have to relink, otherwise we might link with an installed library
 
15869
     # when we should be linking with a yet-to-be-installed one
 
15870
     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
15871
     test "$hardcode_minus_L_CXX" != no; then
 
15872
    # Linking always hardcodes the temporary library directory.
 
15873
    hardcode_action_CXX=relink
 
15874
  else
 
15875
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15876
    hardcode_action_CXX=immediate
 
15877
  fi
 
15878
else
 
15879
  # We cannot hardcode anything, or else we can only hardcode existing
 
15880
  # directories.
 
15881
  hardcode_action_CXX=unsupported
 
15882
fi
 
15883
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
15884
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
15885
 
 
15886
if test "$hardcode_action_CXX" = relink ||
 
15887
   test "$inherit_rpath_CXX" = yes; then
 
15888
  # Fast installation is not supported
 
15889
  enable_fast_install=no
 
15890
elif test "$shlibpath_overrides_runpath" = yes ||
 
15891
     test "$enable_shared" = no; then
 
15892
  # Fast installation is not necessary
 
15893
  enable_fast_install=needless
 
15894
fi
 
15895
 
 
15896
 
 
15897
 
 
15898
 
 
15899
 
 
15900
 
 
15901
 
 
15902
  fi # test -n "$compiler"
 
15903
 
 
15904
  CC=$lt_save_CC
 
15905
  LDCXX=$LD
 
15906
  LD=$lt_save_LD
 
15907
  GCC=$lt_save_GCC
 
15908
  with_gnu_ld=$lt_save_with_gnu_ld
 
15909
  lt_cv_path_LDCXX=$lt_cv_path_LD
 
15910
  lt_cv_path_LD=$lt_save_path_LD
 
15911
  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15912
  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15913
fi # test "$_lt_caught_CXX_error" != yes
 
15914
 
 
15915
ac_ext=c
 
15916
ac_cpp='$CPP $CPPFLAGS'
 
15917
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15918
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15919
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15920
 
 
15921
 
 
15922
 
 
15923
 
 
15924
 
 
15925
 
 
15926
 
 
15927
 
 
15928
 
 
15929
 
 
15930
 
 
15931
 
 
15932
 
 
15933
        ac_config_commands="$ac_config_commands libtool"
 
15934
 
 
15935
 
 
15936
 
 
15937
 
 
15938
# Only expand once:
 
15939
 
 
15940
 
 
15941
 
 
15942
AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
 
15943
 
 
15944
 
 
15945
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
15946
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
15947
if test "${ac_cv_header_stdc+set}" = set; then
 
15948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15949
else
 
15950
  cat >conftest.$ac_ext <<_ACEOF
 
15951
/* confdefs.h.  */
 
15952
_ACEOF
 
15953
cat confdefs.h >>conftest.$ac_ext
 
15954
cat >>conftest.$ac_ext <<_ACEOF
 
15955
/* end confdefs.h.  */
 
15956
#include <stdlib.h>
 
15957
#include <stdarg.h>
 
15958
#include <string.h>
 
15959
#include <float.h>
 
15960
 
 
15961
int
 
15962
main ()
 
15963
{
 
15964
 
 
15965
  ;
 
15966
  return 0;
 
15967
}
 
15968
_ACEOF
 
15969
rm -f conftest.$ac_objext
 
15970
if { (ac_try="$ac_compile"
 
15971
case "(($ac_try" in
 
15972
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15973
  *) ac_try_echo=$ac_try;;
 
15974
esac
 
15975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15976
  (eval "$ac_compile") 2>conftest.er1
 
15977
  ac_status=$?
 
15978
  grep -v '^ *+' conftest.er1 >conftest.err
 
15979
  rm -f conftest.er1
 
15980
  cat conftest.err >&5
 
15981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15982
  (exit $ac_status); } && {
 
15983
         test -z "$ac_c_werror_flag" ||
 
15984
         test ! -s conftest.err
 
15985
       } && test -s conftest.$ac_objext; then
 
15986
  ac_cv_header_stdc=yes
 
15987
else
 
15988
  echo "$as_me: failed program was:" >&5
 
15989
sed 's/^/| /' conftest.$ac_ext >&5
 
15990
 
 
15991
        ac_cv_header_stdc=no
 
15992
fi
 
15993
 
 
15994
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
15995
 
 
15996
if test $ac_cv_header_stdc = yes; then
 
15997
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
15998
  cat >conftest.$ac_ext <<_ACEOF
 
15999
/* confdefs.h.  */
 
16000
_ACEOF
 
16001
cat confdefs.h >>conftest.$ac_ext
 
16002
cat >>conftest.$ac_ext <<_ACEOF
 
16003
/* end confdefs.h.  */
 
16004
#include <string.h>
 
16005
 
 
16006
_ACEOF
 
16007
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16008
  $EGREP "memchr" >/dev/null 2>&1; then
 
16009
  :
 
16010
else
 
16011
  ac_cv_header_stdc=no
 
16012
fi
 
16013
rm -f conftest*
 
16014
 
 
16015
fi
 
16016
 
 
16017
if test $ac_cv_header_stdc = yes; then
 
16018
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
16019
  cat >conftest.$ac_ext <<_ACEOF
 
16020
/* confdefs.h.  */
 
16021
_ACEOF
 
16022
cat confdefs.h >>conftest.$ac_ext
 
16023
cat >>conftest.$ac_ext <<_ACEOF
 
16024
/* end confdefs.h.  */
 
16025
#include <stdlib.h>
 
16026
 
 
16027
_ACEOF
 
16028
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
16029
  $EGREP "free" >/dev/null 2>&1; then
 
16030
  :
 
16031
else
 
16032
  ac_cv_header_stdc=no
 
16033
fi
 
16034
rm -f conftest*
 
16035
 
 
16036
fi
 
16037
 
 
16038
if test $ac_cv_header_stdc = yes; then
 
16039
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
16040
  if test "$cross_compiling" = yes; then
 
16041
  :
 
16042
else
 
16043
  cat >conftest.$ac_ext <<_ACEOF
 
16044
/* confdefs.h.  */
 
16045
_ACEOF
 
16046
cat confdefs.h >>conftest.$ac_ext
 
16047
cat >>conftest.$ac_ext <<_ACEOF
 
16048
/* end confdefs.h.  */
 
16049
#include <ctype.h>
 
16050
#include <stdlib.h>
 
16051
#if ((' ' & 0x0FF) == 0x020)
 
16052
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
16053
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
16054
#else
 
16055
# define ISLOWER(c) \
 
16056
                   (('a' <= (c) && (c) <= 'i') \
 
16057
                     || ('j' <= (c) && (c) <= 'r') \
 
16058
                     || ('s' <= (c) && (c) <= 'z'))
 
16059
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
16060
#endif
 
16061
 
 
16062
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
16063
int
 
16064
main ()
 
16065
{
 
16066
  int i;
 
16067
  for (i = 0; i < 256; i++)
 
16068
    if (XOR (islower (i), ISLOWER (i))
 
16069
        || toupper (i) != TOUPPER (i))
 
16070
      return 2;
 
16071
  return 0;
 
16072
}
 
16073
_ACEOF
 
16074
rm -f conftest$ac_exeext
 
16075
if { (ac_try="$ac_link"
 
16076
case "(($ac_try" in
 
16077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16078
  *) ac_try_echo=$ac_try;;
 
16079
esac
 
16080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16081
  (eval "$ac_link") 2>&5
 
16082
  ac_status=$?
 
16083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16084
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
16085
  { (case "(($ac_try" in
 
16086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16087
  *) ac_try_echo=$ac_try;;
 
16088
esac
 
16089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16090
  (eval "$ac_try") 2>&5
 
16091
  ac_status=$?
 
16092
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16093
  (exit $ac_status); }; }; then
 
16094
  :
 
16095
else
 
16096
  echo "$as_me: program exited with status $ac_status" >&5
 
16097
echo "$as_me: failed program was:" >&5
 
16098
sed 's/^/| /' conftest.$ac_ext >&5
 
16099
 
 
16100
( exit $ac_status )
 
16101
ac_cv_header_stdc=no
 
16102
fi
 
16103
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
16104
fi
 
16105
 
 
16106
 
 
16107
fi
 
16108
fi
 
16109
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
16110
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
16111
if test $ac_cv_header_stdc = yes; then
 
16112
 
 
16113
cat >>confdefs.h <<\_ACEOF
 
16114
#define STDC_HEADERS 1
 
16115
_ACEOF
 
16116
 
 
16117
fi
 
16118
 
 
16119
 
 
16120
 
 
16121
 
 
16122
 
 
16123
 
 
16124
for ac_header in stdarg.h stdlib.h string.h time.h unistd.h
 
16125
do
 
16126
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
16127
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16128
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16129
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16130
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16132
fi
 
16133
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16134
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16135
echo "${ECHO_T}$ac_res" >&6; }
 
16136
else
 
16137
  # Is the header compilable?
 
16138
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
16139
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
16140
cat >conftest.$ac_ext <<_ACEOF
 
16141
/* confdefs.h.  */
 
16142
_ACEOF
 
16143
cat confdefs.h >>conftest.$ac_ext
 
16144
cat >>conftest.$ac_ext <<_ACEOF
 
16145
/* end confdefs.h.  */
 
16146
$ac_includes_default
 
16147
#include <$ac_header>
 
16148
_ACEOF
 
16149
rm -f conftest.$ac_objext
 
16150
if { (ac_try="$ac_compile"
 
16151
case "(($ac_try" in
 
16152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16153
  *) ac_try_echo=$ac_try;;
 
16154
esac
 
16155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16156
  (eval "$ac_compile") 2>conftest.er1
 
16157
  ac_status=$?
 
16158
  grep -v '^ *+' conftest.er1 >conftest.err
 
16159
  rm -f conftest.er1
 
16160
  cat conftest.err >&5
 
16161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16162
  (exit $ac_status); } && {
 
16163
         test -z "$ac_c_werror_flag" ||
 
16164
         test ! -s conftest.err
 
16165
       } && test -s conftest.$ac_objext; then
 
16166
  ac_header_compiler=yes
 
16167
else
 
16168
  echo "$as_me: failed program was:" >&5
 
16169
sed 's/^/| /' conftest.$ac_ext >&5
 
16170
 
 
16171
        ac_header_compiler=no
 
16172
fi
 
16173
 
 
16174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16175
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
16176
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
16177
 
 
16178
# Is the header present?
 
16179
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
16180
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
16181
cat >conftest.$ac_ext <<_ACEOF
 
16182
/* confdefs.h.  */
 
16183
_ACEOF
 
16184
cat confdefs.h >>conftest.$ac_ext
 
16185
cat >>conftest.$ac_ext <<_ACEOF
 
16186
/* end confdefs.h.  */
 
16187
#include <$ac_header>
 
16188
_ACEOF
 
16189
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
16190
case "(($ac_try" in
 
16191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16192
  *) ac_try_echo=$ac_try;;
 
16193
esac
 
16194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16195
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
16196
  ac_status=$?
 
16197
  grep -v '^ *+' conftest.er1 >conftest.err
 
16198
  rm -f conftest.er1
 
16199
  cat conftest.err >&5
 
16200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16201
  (exit $ac_status); } >/dev/null && {
 
16202
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
16203
         test ! -s conftest.err
 
16204
       }; then
 
16205
  ac_header_preproc=yes
 
16206
else
 
16207
  echo "$as_me: failed program was:" >&5
 
16208
sed 's/^/| /' conftest.$ac_ext >&5
 
16209
 
 
16210
  ac_header_preproc=no
 
16211
fi
 
16212
 
 
16213
rm -f conftest.err conftest.$ac_ext
 
16214
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
16215
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
16216
 
 
16217
# So?  What about this header?
 
16218
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
16219
  yes:no: )
 
16220
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
16221
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
16222
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
16223
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
16224
    ac_header_preproc=yes
 
16225
    ;;
 
16226
  no:yes:* )
 
16227
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
16228
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
16229
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
16230
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
16231
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
16232
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
16233
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
16234
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
16235
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
16236
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
16237
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
16238
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
16239
    ( cat <<\_ASBOX
 
16240
## ---------------------------------- ##
 
16241
## Report this to csardi@rmki.kfki.hu ##
 
16242
## ---------------------------------- ##
 
16243
_ASBOX
 
16244
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
16245
    ;;
 
16246
esac
 
16247
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
16248
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
16249
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
16250
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16251
else
 
16252
  eval "$as_ac_Header=\$ac_header_preproc"
 
16253
fi
 
16254
ac_res=`eval echo '${'$as_ac_Header'}'`
 
16255
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16256
echo "${ECHO_T}$ac_res" >&6; }
 
16257
 
 
16258
fi
 
16259
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
16260
  cat >>confdefs.h <<_ACEOF
 
16261
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
16262
_ACEOF
 
16263
 
 
16264
fi
 
16265
 
 
16266
done
 
16267
 
 
16268
LIBS_SAVE=$LIBS
 
16269
LIBS="$LIBS -lm"
 
16270
 
 
16271
 
 
16272
 
 
16273
 
 
16274
 
 
16275
 
 
16276
 
 
16277
 
 
16278
 
 
16279
 
 
16280
 
 
16281
 
 
16282
for ac_func in expm1 rint rintf finite log2 logbl snprintf log1p round fmin strcasecmp isnan
 
16283
do
 
16284
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
16285
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
16286
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
16287
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
16288
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16289
else
 
16290
  cat >conftest.$ac_ext <<_ACEOF
 
16291
/* confdefs.h.  */
 
16292
_ACEOF
 
16293
cat confdefs.h >>conftest.$ac_ext
 
16294
cat >>conftest.$ac_ext <<_ACEOF
 
16295
/* end confdefs.h.  */
 
16296
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
16297
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
16298
#define $ac_func innocuous_$ac_func
 
16299
 
 
16300
/* System header to define __stub macros and hopefully few prototypes,
 
16301
    which can conflict with char $ac_func (); below.
 
16302
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
16303
    <limits.h> exists even on freestanding compilers.  */
 
16304
 
 
16305
#ifdef __STDC__
 
16306
# include <limits.h>
 
16307
#else
 
16308
# include <assert.h>
 
16309
#endif
 
16310
 
 
16311
#undef $ac_func
 
16312
 
 
16313
/* Override any GCC internal prototype to avoid an error.
 
16314
   Use char because int might match the return type of a GCC
 
16315
   builtin and then its argument prototype would still apply.  */
 
16316
#ifdef __cplusplus
 
16317
extern "C"
 
16318
#endif
 
16319
char $ac_func ();
 
16320
/* The GNU C library defines this for functions which it implements
 
16321
    to always fail with ENOSYS.  Some functions are actually named
 
16322
    something starting with __ and the normal name is an alias.  */
 
16323
#if defined __stub_$ac_func || defined __stub___$ac_func
 
16324
choke me
 
16325
#endif
 
16326
 
 
16327
int
 
16328
main ()
 
16329
{
 
16330
return $ac_func ();
 
16331
  ;
 
16332
  return 0;
 
16333
}
 
16334
_ACEOF
 
16335
rm -f conftest.$ac_objext conftest$ac_exeext
 
16336
if { (ac_try="$ac_link"
 
16337
case "(($ac_try" in
 
16338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16339
  *) ac_try_echo=$ac_try;;
 
16340
esac
 
16341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16342
  (eval "$ac_link") 2>conftest.er1
 
16343
  ac_status=$?
 
16344
  grep -v '^ *+' conftest.er1 >conftest.err
 
16345
  rm -f conftest.er1
 
16346
  cat conftest.err >&5
 
16347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16348
  (exit $ac_status); } && {
 
16349
         test -z "$ac_c_werror_flag" ||
 
16350
         test ! -s conftest.err
 
16351
       } && test -s conftest$ac_exeext &&
 
16352
       $as_test_x conftest$ac_exeext; then
 
16353
  eval "$as_ac_var=yes"
 
16354
else
 
16355
  echo "$as_me: failed program was:" >&5
 
16356
sed 's/^/| /' conftest.$ac_ext >&5
 
16357
 
 
16358
        eval "$as_ac_var=no"
 
16359
fi
 
16360
 
 
16361
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
16362
      conftest$ac_exeext conftest.$ac_ext
 
16363
fi
 
16364
ac_res=`eval echo '${'$as_ac_var'}'`
 
16365
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
16366
echo "${ECHO_T}$ac_res" >&6; }
 
16367
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
16368
  cat >>confdefs.h <<_ACEOF
 
16369
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
16370
_ACEOF
 
16371
 
 
16372
fi
 
16373
done
 
16374
 
 
16375
LIBS=$LIBS_SAVE
 
16376
 
 
16377
 
 
16378
 
 
16379
 
 
16380
 
 
16381
## Solaris cc does not support -ffloat-store.
 
16382
FLOATSTORE=
 
16383
{ echo "$as_me:$LINENO: checking whether compiler supports -ffloat-store" >&5
 
16384
echo $ECHO_N "checking whether compiler supports -ffloat-store... $ECHO_C" >&6; }
 
16385
ac_save_CFLAGS="$CFLAGS"
 
16386
CFLAGS="$CFLAGS -ffloat-store"
 
16387
cat >conftest.$ac_ext <<_ACEOF
 
16388
/* confdefs.h.  */
 
16389
_ACEOF
 
16390
cat confdefs.h >>conftest.$ac_ext
 
16391
cat >>conftest.$ac_ext <<_ACEOF
 
16392
/* end confdefs.h.  */
 
16393
 
 
16394
int
 
16395
main ()
 
16396
{
 
16397
int x;
 
16398
  ;
 
16399
  return 0;
 
16400
}
 
16401
_ACEOF
 
16402
rm -f conftest.$ac_objext
 
16403
if { (ac_try="$ac_compile"
 
16404
case "(($ac_try" in
 
16405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16406
  *) ac_try_echo=$ac_try;;
 
16407
esac
 
16408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16409
  (eval "$ac_compile") 2>conftest.er1
 
16410
  ac_status=$?
 
16411
  grep -v '^ *+' conftest.er1 >conftest.err
 
16412
  rm -f conftest.er1
 
16413
  cat conftest.err >&5
 
16414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16415
  (exit $ac_status); } && {
 
16416
         test -z "$ac_c_werror_flag" ||
 
16417
         test ! -s conftest.err
 
16418
       } && test -s conftest.$ac_objext; then
 
16419
  { echo "$as_me:$LINENO: result: yes" >&5
 
16420
echo "${ECHO_T}yes" >&6; }
 
16421
FLOATSTORE="-ffloat-store"
 
16422
else
 
16423
  echo "$as_me: failed program was:" >&5
 
16424
sed 's/^/| /' conftest.$ac_ext >&5
 
16425
 
 
16426
        { echo "$as_me:$LINENO: result: no" >&5
 
16427
echo "${ECHO_T}no" >&6; }
 
16428
 
 
16429
fi
 
16430
 
 
16431
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16432
CFLAGS="$ac_save_CFLAGS"
 
16433
{ echo "$as_me:$LINENO: checking whether compiler supports -fstore" >&5
 
16434
echo $ECHO_N "checking whether compiler supports -fstore... $ECHO_C" >&6; }
 
16435
ac_save_CFLAGS="$CFLAGS"
 
16436
CFLAGS="$CFLAGS -fstore"
 
16437
cat >conftest.$ac_ext <<_ACEOF
 
16438
/* confdefs.h.  */
 
16439
_ACEOF
 
16440
cat confdefs.h >>conftest.$ac_ext
 
16441
cat >>conftest.$ac_ext <<_ACEOF
 
16442
/* end confdefs.h.  */
 
16443
 
 
16444
int
 
16445
main ()
 
16446
{
 
16447
int x;
 
16448
  ;
 
16449
  return 0;
 
16450
}
 
16451
_ACEOF
 
16452
rm -f conftest.$ac_objext
 
16453
if { (ac_try="$ac_compile"
 
16454
case "(($ac_try" in
 
16455
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16456
  *) ac_try_echo=$ac_try;;
 
16457
esac
 
16458
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16459
  (eval "$ac_compile") 2>conftest.er1
 
16460
  ac_status=$?
 
16461
  grep -v '^ *+' conftest.er1 >conftest.err
 
16462
  rm -f conftest.er1
 
16463
  cat conftest.err >&5
 
16464
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16465
  (exit $ac_status); } && {
 
16466
         test -z "$ac_c_werror_flag" ||
 
16467
         test ! -s conftest.err
 
16468
       } && test -s conftest.$ac_objext; then
 
16469
  { echo "$as_me:$LINENO: result: yes" >&5
 
16470
echo "${ECHO_T}yes" >&6; }
 
16471
FLOATSTORE="$FLOATSTORE -fstore"
 
16472
else
 
16473
  echo "$as_me: failed program was:" >&5
 
16474
sed 's/^/| /' conftest.$ac_ext >&5
 
16475
 
 
16476
        { echo "$as_me:$LINENO: result: no" >&5
 
16477
echo "${ECHO_T}no" >&6; }
 
16478
 
 
16479
fi
 
16480
 
 
16481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16482
CFLAGS="$ac_save_CFLAGS"
 
16483
 
 
16484
 
 
16485
# Check whether --enable-gcc-warnings was given.
 
16486
if test "${enable_gcc_warnings+set}" = set; then
 
16487
  enableval=$enable_gcc_warnings; case "${enableval}" in
 
16488
   yes|no) ;;
 
16489
   *)      { { echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-warnings option" >&5
 
16490
echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
 
16491
   { (exit 1); exit 1; }; } ;;
 
16492
 esac
 
16493
else
 
16494
  enableval=no
 
16495
fi
 
16496
 
 
16497
if test "${enableval}" = yes; then
 
16498
  { echo "$as_me:$LINENO: checking whether compiler accepts -Werror" >&5
 
16499
echo $ECHO_N "checking whether compiler accepts -Werror... $ECHO_C" >&6; }
 
16500
 
 
16501
ac_save_CFLAGS="$CFLAGS"
 
16502
CFLAGS="$CFLAGS -Werror"
 
16503
cat >conftest.$ac_ext <<_ACEOF
 
16504
/* confdefs.h.  */
 
16505
_ACEOF
 
16506
cat confdefs.h >>conftest.$ac_ext
 
16507
cat >>conftest.$ac_ext <<_ACEOF
 
16508
/* end confdefs.h.  */
 
16509
 
 
16510
int
 
16511
main ()
 
16512
{
 
16513
int x;
 
16514
  ;
 
16515
  return 0;
 
16516
}
 
16517
_ACEOF
 
16518
rm -f conftest.$ac_objext
 
16519
if { (ac_try="$ac_compile"
 
16520
case "(($ac_try" in
 
16521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16522
  *) ac_try_echo=$ac_try;;
 
16523
esac
 
16524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16525
  (eval "$ac_compile") 2>conftest.er1
 
16526
  ac_status=$?
 
16527
  grep -v '^ *+' conftest.er1 >conftest.err
 
16528
  rm -f conftest.er1
 
16529
  cat conftest.err >&5
 
16530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16531
  (exit $ac_status); } && {
 
16532
         test -z "$ac_c_werror_flag" ||
 
16533
         test ! -s conftest.err
 
16534
       } && test -s conftest.$ac_objext; then
 
16535
  WARNING_CFLAGS="$WARNING_CFLAGS -Werror"
 
16536
{ echo "$as_me:$LINENO: result: yes" >&5
 
16537
echo "${ECHO_T}yes" >&6; }
 
16538
else
 
16539
  echo "$as_me: failed program was:" >&5
 
16540
sed 's/^/| /' conftest.$ac_ext >&5
 
16541
 
 
16542
        { echo "$as_me:$LINENO: result: no" >&5
 
16543
echo "${ECHO_T}no" >&6; }
 
16544
fi
 
16545
 
 
16546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16547
CFLAGS="$ac_save_CFLAGS"
 
16548
  WERROR_CFLAGS=$WARNING_CFLAGS
 
16549
 
 
16550
  WARNING_CFLAGS=
 
16551
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wall" >&5
 
16552
echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6; }
 
16553
 
 
16554
ac_save_CFLAGS="$CFLAGS"
 
16555
CFLAGS="$CFLAGS -Wall"
 
16556
cat >conftest.$ac_ext <<_ACEOF
 
16557
/* confdefs.h.  */
 
16558
_ACEOF
 
16559
cat confdefs.h >>conftest.$ac_ext
 
16560
cat >>conftest.$ac_ext <<_ACEOF
 
16561
/* end confdefs.h.  */
 
16562
 
 
16563
int
 
16564
main ()
 
16565
{
 
16566
int x;
 
16567
  ;
 
16568
  return 0;
 
16569
}
 
16570
_ACEOF
 
16571
rm -f conftest.$ac_objext
 
16572
if { (ac_try="$ac_compile"
 
16573
case "(($ac_try" in
 
16574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16575
  *) ac_try_echo=$ac_try;;
 
16576
esac
 
16577
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16578
  (eval "$ac_compile") 2>conftest.er1
 
16579
  ac_status=$?
 
16580
  grep -v '^ *+' conftest.er1 >conftest.err
 
16581
  rm -f conftest.er1
 
16582
  cat conftest.err >&5
 
16583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16584
  (exit $ac_status); } && {
 
16585
         test -z "$ac_c_werror_flag" ||
 
16586
         test ! -s conftest.err
 
16587
       } && test -s conftest.$ac_objext; then
 
16588
  WARNING_CFLAGS="$WARNING_CFLAGS -Wall"
 
16589
{ echo "$as_me:$LINENO: result: yes" >&5
 
16590
echo "${ECHO_T}yes" >&6; }
 
16591
else
 
16592
  echo "$as_me: failed program was:" >&5
 
16593
sed 's/^/| /' conftest.$ac_ext >&5
 
16594
 
 
16595
        { echo "$as_me:$LINENO: result: no" >&5
 
16596
echo "${ECHO_T}no" >&6; }
 
16597
fi
 
16598
 
 
16599
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16600
CFLAGS="$ac_save_CFLAGS"
 
16601
  { echo "$as_me:$LINENO: checking whether compiler accepts -W" >&5
 
16602
echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6; }
 
16603
 
 
16604
ac_save_CFLAGS="$CFLAGS"
 
16605
CFLAGS="$CFLAGS -W"
 
16606
cat >conftest.$ac_ext <<_ACEOF
 
16607
/* confdefs.h.  */
 
16608
_ACEOF
 
16609
cat confdefs.h >>conftest.$ac_ext
 
16610
cat >>conftest.$ac_ext <<_ACEOF
 
16611
/* end confdefs.h.  */
 
16612
 
 
16613
int
 
16614
main ()
 
16615
{
 
16616
int x;
 
16617
  ;
 
16618
  return 0;
 
16619
}
 
16620
_ACEOF
 
16621
rm -f conftest.$ac_objext
 
16622
if { (ac_try="$ac_compile"
 
16623
case "(($ac_try" in
 
16624
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16625
  *) ac_try_echo=$ac_try;;
 
16626
esac
 
16627
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16628
  (eval "$ac_compile") 2>conftest.er1
 
16629
  ac_status=$?
 
16630
  grep -v '^ *+' conftest.er1 >conftest.err
 
16631
  rm -f conftest.er1
 
16632
  cat conftest.err >&5
 
16633
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16634
  (exit $ac_status); } && {
 
16635
         test -z "$ac_c_werror_flag" ||
 
16636
         test ! -s conftest.err
 
16637
       } && test -s conftest.$ac_objext; then
 
16638
  WARNING_CFLAGS="$WARNING_CFLAGS -W"
 
16639
{ echo "$as_me:$LINENO: result: yes" >&5
 
16640
echo "${ECHO_T}yes" >&6; }
 
16641
else
 
16642
  echo "$as_me: failed program was:" >&5
 
16643
sed 's/^/| /' conftest.$ac_ext >&5
 
16644
 
 
16645
        { echo "$as_me:$LINENO: result: no" >&5
 
16646
echo "${ECHO_T}no" >&6; }
 
16647
fi
 
16648
 
 
16649
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16650
CFLAGS="$ac_save_CFLAGS"
 
16651
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wbad-function-cast" >&5
 
16652
echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6; }
 
16653
 
 
16654
ac_save_CFLAGS="$CFLAGS"
 
16655
CFLAGS="$CFLAGS -Wbad-function-cast"
 
16656
cat >conftest.$ac_ext <<_ACEOF
 
16657
/* confdefs.h.  */
 
16658
_ACEOF
 
16659
cat confdefs.h >>conftest.$ac_ext
 
16660
cat >>conftest.$ac_ext <<_ACEOF
 
16661
/* end confdefs.h.  */
 
16662
 
 
16663
int
 
16664
main ()
 
16665
{
 
16666
int x;
 
16667
  ;
 
16668
  return 0;
 
16669
}
 
16670
_ACEOF
 
16671
rm -f conftest.$ac_objext
 
16672
if { (ac_try="$ac_compile"
 
16673
case "(($ac_try" in
 
16674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16675
  *) ac_try_echo=$ac_try;;
 
16676
esac
 
16677
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16678
  (eval "$ac_compile") 2>conftest.er1
 
16679
  ac_status=$?
 
16680
  grep -v '^ *+' conftest.er1 >conftest.err
 
16681
  rm -f conftest.er1
 
16682
  cat conftest.err >&5
 
16683
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16684
  (exit $ac_status); } && {
 
16685
         test -z "$ac_c_werror_flag" ||
 
16686
         test ! -s conftest.err
 
16687
       } && test -s conftest.$ac_objext; then
 
16688
  WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast"
 
16689
{ echo "$as_me:$LINENO: result: yes" >&5
 
16690
echo "${ECHO_T}yes" >&6; }
 
16691
else
 
16692
  echo "$as_me: failed program was:" >&5
 
16693
sed 's/^/| /' conftest.$ac_ext >&5
 
16694
 
 
16695
        { echo "$as_me:$LINENO: result: no" >&5
 
16696
echo "${ECHO_T}no" >&6; }
 
16697
fi
 
16698
 
 
16699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16700
CFLAGS="$ac_save_CFLAGS"
 
16701
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-align" >&5
 
16702
echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6; }
 
16703
 
 
16704
ac_save_CFLAGS="$CFLAGS"
 
16705
CFLAGS="$CFLAGS -Wcast-align"
 
16706
cat >conftest.$ac_ext <<_ACEOF
 
16707
/* confdefs.h.  */
 
16708
_ACEOF
 
16709
cat confdefs.h >>conftest.$ac_ext
 
16710
cat >>conftest.$ac_ext <<_ACEOF
 
16711
/* end confdefs.h.  */
 
16712
 
 
16713
int
 
16714
main ()
 
16715
{
 
16716
int x;
 
16717
  ;
 
16718
  return 0;
 
16719
}
 
16720
_ACEOF
 
16721
rm -f conftest.$ac_objext
 
16722
if { (ac_try="$ac_compile"
 
16723
case "(($ac_try" in
 
16724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16725
  *) ac_try_echo=$ac_try;;
 
16726
esac
 
16727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16728
  (eval "$ac_compile") 2>conftest.er1
 
16729
  ac_status=$?
 
16730
  grep -v '^ *+' conftest.er1 >conftest.err
 
16731
  rm -f conftest.er1
 
16732
  cat conftest.err >&5
 
16733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16734
  (exit $ac_status); } && {
 
16735
         test -z "$ac_c_werror_flag" ||
 
16736
         test ! -s conftest.err
 
16737
       } && test -s conftest.$ac_objext; then
 
16738
  WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align"
 
16739
{ echo "$as_me:$LINENO: result: yes" >&5
 
16740
echo "${ECHO_T}yes" >&6; }
 
16741
else
 
16742
  echo "$as_me: failed program was:" >&5
 
16743
sed 's/^/| /' conftest.$ac_ext >&5
 
16744
 
 
16745
        { echo "$as_me:$LINENO: result: no" >&5
 
16746
echo "${ECHO_T}no" >&6; }
 
16747
fi
 
16748
 
 
16749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16750
CFLAGS="$ac_save_CFLAGS"
 
16751
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wcast-qual" >&5
 
16752
echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6; }
 
16753
 
 
16754
ac_save_CFLAGS="$CFLAGS"
 
16755
CFLAGS="$CFLAGS -Wcast-qual"
 
16756
cat >conftest.$ac_ext <<_ACEOF
 
16757
/* confdefs.h.  */
 
16758
_ACEOF
 
16759
cat confdefs.h >>conftest.$ac_ext
 
16760
cat >>conftest.$ac_ext <<_ACEOF
 
16761
/* end confdefs.h.  */
 
16762
 
 
16763
int
 
16764
main ()
 
16765
{
 
16766
int x;
 
16767
  ;
 
16768
  return 0;
 
16769
}
 
16770
_ACEOF
 
16771
rm -f conftest.$ac_objext
 
16772
if { (ac_try="$ac_compile"
 
16773
case "(($ac_try" in
 
16774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16775
  *) ac_try_echo=$ac_try;;
 
16776
esac
 
16777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16778
  (eval "$ac_compile") 2>conftest.er1
 
16779
  ac_status=$?
 
16780
  grep -v '^ *+' conftest.er1 >conftest.err
 
16781
  rm -f conftest.er1
 
16782
  cat conftest.err >&5
 
16783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16784
  (exit $ac_status); } && {
 
16785
         test -z "$ac_c_werror_flag" ||
 
16786
         test ! -s conftest.err
 
16787
       } && test -s conftest.$ac_objext; then
 
16788
  WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual"
 
16789
{ echo "$as_me:$LINENO: result: yes" >&5
 
16790
echo "${ECHO_T}yes" >&6; }
 
16791
else
 
16792
  echo "$as_me: failed program was:" >&5
 
16793
sed 's/^/| /' conftest.$ac_ext >&5
 
16794
 
 
16795
        { echo "$as_me:$LINENO: result: no" >&5
 
16796
echo "${ECHO_T}no" >&6; }
 
16797
fi
 
16798
 
 
16799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16800
CFLAGS="$ac_save_CFLAGS"
 
16801
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wformat" >&5
 
16802
echo $ECHO_N "checking whether compiler accepts -Wformat... $ECHO_C" >&6; }
 
16803
 
 
16804
ac_save_CFLAGS="$CFLAGS"
 
16805
CFLAGS="$CFLAGS -Wformat"
 
16806
cat >conftest.$ac_ext <<_ACEOF
 
16807
/* confdefs.h.  */
 
16808
_ACEOF
 
16809
cat confdefs.h >>conftest.$ac_ext
 
16810
cat >>conftest.$ac_ext <<_ACEOF
 
16811
/* end confdefs.h.  */
 
16812
 
 
16813
int
 
16814
main ()
 
16815
{
 
16816
int x;
 
16817
  ;
 
16818
  return 0;
 
16819
}
 
16820
_ACEOF
 
16821
rm -f conftest.$ac_objext
 
16822
if { (ac_try="$ac_compile"
 
16823
case "(($ac_try" in
 
16824
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16825
  *) ac_try_echo=$ac_try;;
 
16826
esac
 
16827
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16828
  (eval "$ac_compile") 2>conftest.er1
 
16829
  ac_status=$?
 
16830
  grep -v '^ *+' conftest.er1 >conftest.err
 
16831
  rm -f conftest.er1
 
16832
  cat conftest.err >&5
 
16833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16834
  (exit $ac_status); } && {
 
16835
         test -z "$ac_c_werror_flag" ||
 
16836
         test ! -s conftest.err
 
16837
       } && test -s conftest.$ac_objext; then
 
16838
  WARNING_CFLAGS="$WARNING_CFLAGS -Wformat"
 
16839
{ echo "$as_me:$LINENO: result: yes" >&5
 
16840
echo "${ECHO_T}yes" >&6; }
 
16841
else
 
16842
  echo "$as_me: failed program was:" >&5
 
16843
sed 's/^/| /' conftest.$ac_ext >&5
 
16844
 
 
16845
        { echo "$as_me:$LINENO: result: no" >&5
 
16846
echo "${ECHO_T}no" >&6; }
 
16847
fi
 
16848
 
 
16849
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16850
CFLAGS="$ac_save_CFLAGS"
 
16851
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-declarations" >&5
 
16852
echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6; }
 
16853
 
 
16854
ac_save_CFLAGS="$CFLAGS"
 
16855
CFLAGS="$CFLAGS -Wmissing-declarations"
 
16856
cat >conftest.$ac_ext <<_ACEOF
 
16857
/* confdefs.h.  */
 
16858
_ACEOF
 
16859
cat confdefs.h >>conftest.$ac_ext
 
16860
cat >>conftest.$ac_ext <<_ACEOF
 
16861
/* end confdefs.h.  */
 
16862
 
 
16863
int
 
16864
main ()
 
16865
{
 
16866
int x;
 
16867
  ;
 
16868
  return 0;
 
16869
}
 
16870
_ACEOF
 
16871
rm -f conftest.$ac_objext
 
16872
if { (ac_try="$ac_compile"
 
16873
case "(($ac_try" in
 
16874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16875
  *) ac_try_echo=$ac_try;;
 
16876
esac
 
16877
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16878
  (eval "$ac_compile") 2>conftest.er1
 
16879
  ac_status=$?
 
16880
  grep -v '^ *+' conftest.er1 >conftest.err
 
16881
  rm -f conftest.er1
 
16882
  cat conftest.err >&5
 
16883
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16884
  (exit $ac_status); } && {
 
16885
         test -z "$ac_c_werror_flag" ||
 
16886
         test ! -s conftest.err
 
16887
       } && test -s conftest.$ac_objext; then
 
16888
  WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations"
 
16889
{ echo "$as_me:$LINENO: result: yes" >&5
 
16890
echo "${ECHO_T}yes" >&6; }
 
16891
else
 
16892
  echo "$as_me: failed program was:" >&5
 
16893
sed 's/^/| /' conftest.$ac_ext >&5
 
16894
 
 
16895
        { echo "$as_me:$LINENO: result: no" >&5
 
16896
echo "${ECHO_T}no" >&6; }
 
16897
fi
 
16898
 
 
16899
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16900
CFLAGS="$ac_save_CFLAGS"
 
16901
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wmissing-prototypes" >&5
 
16902
echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6; }
 
16903
 
 
16904
ac_save_CFLAGS="$CFLAGS"
 
16905
CFLAGS="$CFLAGS -Wmissing-prototypes"
 
16906
cat >conftest.$ac_ext <<_ACEOF
 
16907
/* confdefs.h.  */
 
16908
_ACEOF
 
16909
cat confdefs.h >>conftest.$ac_ext
 
16910
cat >>conftest.$ac_ext <<_ACEOF
 
16911
/* end confdefs.h.  */
 
16912
 
 
16913
int
 
16914
main ()
 
16915
{
 
16916
int x;
 
16917
  ;
 
16918
  return 0;
 
16919
}
 
16920
_ACEOF
 
16921
rm -f conftest.$ac_objext
 
16922
if { (ac_try="$ac_compile"
 
16923
case "(($ac_try" in
 
16924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16925
  *) ac_try_echo=$ac_try;;
 
16926
esac
 
16927
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16928
  (eval "$ac_compile") 2>conftest.er1
 
16929
  ac_status=$?
 
16930
  grep -v '^ *+' conftest.er1 >conftest.err
 
16931
  rm -f conftest.er1
 
16932
  cat conftest.err >&5
 
16933
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16934
  (exit $ac_status); } && {
 
16935
         test -z "$ac_c_werror_flag" ||
 
16936
         test ! -s conftest.err
 
16937
       } && test -s conftest.$ac_objext; then
 
16938
  WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes"
 
16939
{ echo "$as_me:$LINENO: result: yes" >&5
 
16940
echo "${ECHO_T}yes" >&6; }
 
16941
else
 
16942
  echo "$as_me: failed program was:" >&5
 
16943
sed 's/^/| /' conftest.$ac_ext >&5
 
16944
 
 
16945
        { echo "$as_me:$LINENO: result: no" >&5
 
16946
echo "${ECHO_T}no" >&6; }
 
16947
fi
 
16948
 
 
16949
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
16950
CFLAGS="$ac_save_CFLAGS"
 
16951
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wnested-externs" >&5
 
16952
echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6; }
 
16953
 
 
16954
ac_save_CFLAGS="$CFLAGS"
 
16955
CFLAGS="$CFLAGS -Wnested-externs"
 
16956
cat >conftest.$ac_ext <<_ACEOF
 
16957
/* confdefs.h.  */
 
16958
_ACEOF
 
16959
cat confdefs.h >>conftest.$ac_ext
 
16960
cat >>conftest.$ac_ext <<_ACEOF
 
16961
/* end confdefs.h.  */
 
16962
 
 
16963
int
 
16964
main ()
 
16965
{
 
16966
int x;
 
16967
  ;
 
16968
  return 0;
 
16969
}
 
16970
_ACEOF
 
16971
rm -f conftest.$ac_objext
 
16972
if { (ac_try="$ac_compile"
 
16973
case "(($ac_try" in
 
16974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
16975
  *) ac_try_echo=$ac_try;;
 
16976
esac
 
16977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
16978
  (eval "$ac_compile") 2>conftest.er1
 
16979
  ac_status=$?
 
16980
  grep -v '^ *+' conftest.er1 >conftest.err
 
16981
  rm -f conftest.er1
 
16982
  cat conftest.err >&5
 
16983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16984
  (exit $ac_status); } && {
 
16985
         test -z "$ac_c_werror_flag" ||
 
16986
         test ! -s conftest.err
 
16987
       } && test -s conftest.$ac_objext; then
 
16988
  WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs"
 
16989
{ echo "$as_me:$LINENO: result: yes" >&5
 
16990
echo "${ECHO_T}yes" >&6; }
 
16991
else
 
16992
  echo "$as_me: failed program was:" >&5
 
16993
sed 's/^/| /' conftest.$ac_ext >&5
 
16994
 
 
16995
        { echo "$as_me:$LINENO: result: no" >&5
 
16996
echo "${ECHO_T}no" >&6; }
 
16997
fi
 
16998
 
 
16999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17000
CFLAGS="$ac_save_CFLAGS"
 
17001
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wshadow" >&5
 
17002
echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6; }
 
17003
 
 
17004
ac_save_CFLAGS="$CFLAGS"
 
17005
CFLAGS="$CFLAGS -Wshadow"
 
17006
cat >conftest.$ac_ext <<_ACEOF
 
17007
/* confdefs.h.  */
 
17008
_ACEOF
 
17009
cat confdefs.h >>conftest.$ac_ext
 
17010
cat >>conftest.$ac_ext <<_ACEOF
 
17011
/* end confdefs.h.  */
 
17012
 
 
17013
int
 
17014
main ()
 
17015
{
 
17016
int x;
 
17017
  ;
 
17018
  return 0;
 
17019
}
 
17020
_ACEOF
 
17021
rm -f conftest.$ac_objext
 
17022
if { (ac_try="$ac_compile"
 
17023
case "(($ac_try" in
 
17024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17025
  *) ac_try_echo=$ac_try;;
 
17026
esac
 
17027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17028
  (eval "$ac_compile") 2>conftest.er1
 
17029
  ac_status=$?
 
17030
  grep -v '^ *+' conftest.er1 >conftest.err
 
17031
  rm -f conftest.er1
 
17032
  cat conftest.err >&5
 
17033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17034
  (exit $ac_status); } && {
 
17035
         test -z "$ac_c_werror_flag" ||
 
17036
         test ! -s conftest.err
 
17037
       } && test -s conftest.$ac_objext; then
 
17038
  WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow"
 
17039
{ echo "$as_me:$LINENO: result: yes" >&5
 
17040
echo "${ECHO_T}yes" >&6; }
 
17041
else
 
17042
  echo "$as_me: failed program was:" >&5
 
17043
sed 's/^/| /' conftest.$ac_ext >&5
 
17044
 
 
17045
        { echo "$as_me:$LINENO: result: no" >&5
 
17046
echo "${ECHO_T}no" >&6; }
 
17047
fi
 
17048
 
 
17049
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17050
CFLAGS="$ac_save_CFLAGS"
 
17051
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wstrict-prototypes" >&5
 
17052
echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6; }
 
17053
 
 
17054
ac_save_CFLAGS="$CFLAGS"
 
17055
CFLAGS="$CFLAGS -Wstrict-prototypes"
 
17056
cat >conftest.$ac_ext <<_ACEOF
 
17057
/* confdefs.h.  */
 
17058
_ACEOF
 
17059
cat confdefs.h >>conftest.$ac_ext
 
17060
cat >>conftest.$ac_ext <<_ACEOF
 
17061
/* end confdefs.h.  */
 
17062
 
 
17063
int
 
17064
main ()
 
17065
{
 
17066
int x;
 
17067
  ;
 
17068
  return 0;
 
17069
}
 
17070
_ACEOF
 
17071
rm -f conftest.$ac_objext
 
17072
if { (ac_try="$ac_compile"
 
17073
case "(($ac_try" in
 
17074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17075
  *) ac_try_echo=$ac_try;;
 
17076
esac
 
17077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17078
  (eval "$ac_compile") 2>conftest.er1
 
17079
  ac_status=$?
 
17080
  grep -v '^ *+' conftest.er1 >conftest.err
 
17081
  rm -f conftest.er1
 
17082
  cat conftest.err >&5
 
17083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17084
  (exit $ac_status); } && {
 
17085
         test -z "$ac_c_werror_flag" ||
 
17086
         test ! -s conftest.err
 
17087
       } && test -s conftest.$ac_objext; then
 
17088
  WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes"
 
17089
{ echo "$as_me:$LINENO: result: yes" >&5
 
17090
echo "${ECHO_T}yes" >&6; }
 
17091
else
 
17092
  echo "$as_me: failed program was:" >&5
 
17093
sed 's/^/| /' conftest.$ac_ext >&5
 
17094
 
 
17095
        { echo "$as_me:$LINENO: result: no" >&5
 
17096
echo "${ECHO_T}no" >&6; }
 
17097
fi
 
17098
 
 
17099
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17100
CFLAGS="$ac_save_CFLAGS"
 
17101
  { echo "$as_me:$LINENO: checking whether compiler accepts -Wwrite-strings" >&5
 
17102
echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6; }
 
17103
 
 
17104
ac_save_CFLAGS="$CFLAGS"
 
17105
CFLAGS="$CFLAGS -Wwrite-strings"
 
17106
cat >conftest.$ac_ext <<_ACEOF
 
17107
/* confdefs.h.  */
 
17108
_ACEOF
 
17109
cat confdefs.h >>conftest.$ac_ext
 
17110
cat >>conftest.$ac_ext <<_ACEOF
 
17111
/* end confdefs.h.  */
 
17112
 
 
17113
int
 
17114
main ()
 
17115
{
 
17116
int x;
 
17117
  ;
 
17118
  return 0;
 
17119
}
 
17120
_ACEOF
 
17121
rm -f conftest.$ac_objext
 
17122
if { (ac_try="$ac_compile"
 
17123
case "(($ac_try" in
 
17124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17125
  *) ac_try_echo=$ac_try;;
 
17126
esac
 
17127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17128
  (eval "$ac_compile") 2>conftest.er1
 
17129
  ac_status=$?
 
17130
  grep -v '^ *+' conftest.er1 >conftest.err
 
17131
  rm -f conftest.er1
 
17132
  cat conftest.err >&5
 
17133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17134
  (exit $ac_status); } && {
 
17135
         test -z "$ac_c_werror_flag" ||
 
17136
         test ! -s conftest.err
 
17137
       } && test -s conftest.$ac_objext; then
 
17138
  WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings"
 
17139
{ echo "$as_me:$LINENO: result: yes" >&5
 
17140
echo "${ECHO_T}yes" >&6; }
 
17141
else
 
17142
  echo "$as_me: failed program was:" >&5
 
17143
sed 's/^/| /' conftest.$ac_ext >&5
 
17144
 
 
17145
        { echo "$as_me:$LINENO: result: no" >&5
 
17146
echo "${ECHO_T}no" >&6; }
 
17147
fi
 
17148
 
 
17149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17150
CFLAGS="$ac_save_CFLAGS"
 
17151
fi
 
17152
 
 
17153
use_gprof=no
 
17154
# Check whether --enable-profiling was given.
 
17155
if test "${enable_profiling+set}" = set; then
 
17156
  enableval=$enable_profiling; use_gprof=$enableval
 
17157
else
 
17158
  use_gprof=no
 
17159
fi
 
17160
 
 
17161
 
 
17162
debug=no
 
17163
# Check whether --enable-debug was given.
 
17164
if test "${enable_debug+set}" = set; then
 
17165
  enableval=$enable_debug; debug=$enableval
 
17166
fi
 
17167
 
 
17168
 
 
17169
graphml_support=yes
 
17170
# Check whether --enable-graphml was given.
 
17171
if test "${enable_graphml+set}" = set; then
 
17172
  enableval=$enable_graphml; graphml_support=$enableval
 
17173
else
 
17174
  graphml_support=yes
 
17175
fi
 
17176
 
 
17177
 
 
17178
use_shell=no
 
17179
# Check whether --enable-shell was given.
 
17180
if test "${enable_shell+set}" = set; then
 
17181
  enableval=$enable_shell; use_shell=$enableval
 
17182
fi
 
17183
 
 
17184
 if test x$use_shell = xyes; then
 
17185
  USE_SHELL_TRUE=
 
17186
  USE_SHELL_FALSE='#'
 
17187
else
 
17188
  USE_SHELL_TRUE='#'
 
17189
  USE_SHELL_FALSE=
 
17190
fi
 
17191
 
 
17192
 
 
17193
HAVE_LIBXML=0
 
17194
if test $graphml_support = yes; then
 
17195
  # Extract the first word of "xml2-config", so it can be a program name with args.
 
17196
set dummy xml2-config; ac_word=$2
 
17197
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
17198
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
17199
if test "${ac_cv_path_XML2CONFIG+set}" = set; then
 
17200
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17201
else
 
17202
  case $XML2CONFIG in
 
17203
  [\\/]* | ?:[\\/]*)
 
17204
  ac_cv_path_XML2CONFIG="$XML2CONFIG" # Let the user override the test with a path.
 
17205
  ;;
 
17206
  *)
 
17207
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
17208
for as_dir in $PATH
 
17209
do
 
17210
  IFS=$as_save_IFS
 
17211
  test -z "$as_dir" && as_dir=.
 
17212
  for ac_exec_ext in '' $ac_executable_extensions; do
 
17213
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
17214
    ac_cv_path_XML2CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
17215
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
17216
    break 2
 
17217
  fi
 
17218
done
 
17219
done
 
17220
IFS=$as_save_IFS
 
17221
 
 
17222
  test -z "$ac_cv_path_XML2CONFIG" && ac_cv_path_XML2CONFIG="none"
 
17223
  ;;
 
17224
esac
 
17225
fi
 
17226
XML2CONFIG=$ac_cv_path_XML2CONFIG
 
17227
if test -n "$XML2CONFIG"; then
 
17228
  { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
 
17229
echo "${ECHO_T}$XML2CONFIG" >&6; }
 
17230
else
 
17231
  { echo "$as_me:$LINENO: result: no" >&5
 
17232
echo "${ECHO_T}no" >&6; }
 
17233
fi
 
17234
 
 
17235
 
 
17236
  if test "$XML2CONFIG" = "none"; then
 
17237
        # Hmmm, no xml2-config. OS X does not have it while still
 
17238
        # having libxml2, so let's try an educated guess
 
17239
        XML2_LIBS="-lxml2 -lz -lm"
 
17240
        XML2_CFLAGS="-I/usr/include/libxml2"
 
17241
  else
 
17242
    XML2_LIBS=`$XML2CONFIG --libs`
 
17243
    XML2_CFLAGS=`$XML2CONFIG --cflags`
 
17244
  fi
 
17245
  { echo "$as_me:$LINENO: checking for xmlSAXUserParseFile in -lxml2" >&5
 
17246
echo $ECHO_N "checking for xmlSAXUserParseFile in -lxml2... $ECHO_C" >&6; }
 
17247
if test "${ac_cv_lib_xml2_xmlSAXUserParseFile+set}" = set; then
 
17248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17249
else
 
17250
  ac_check_lib_save_LIBS=$LIBS
 
17251
LIBS="-lxml2  $LIBS"
 
17252
cat >conftest.$ac_ext <<_ACEOF
 
17253
/* confdefs.h.  */
 
17254
_ACEOF
 
17255
cat confdefs.h >>conftest.$ac_ext
 
17256
cat >>conftest.$ac_ext <<_ACEOF
 
17257
/* end confdefs.h.  */
 
17258
 
 
17259
/* Override any GCC internal prototype to avoid an error.
 
17260
   Use char because int might match the return type of a GCC
 
17261
   builtin and then its argument prototype would still apply.  */
 
17262
#ifdef __cplusplus
 
17263
extern "C"
 
17264
#endif
 
17265
char xmlSAXUserParseFile ();
 
17266
int
 
17267
main ()
 
17268
{
 
17269
return xmlSAXUserParseFile ();
 
17270
  ;
 
17271
  return 0;
 
17272
}
 
17273
_ACEOF
 
17274
rm -f conftest.$ac_objext conftest$ac_exeext
 
17275
if { (ac_try="$ac_link"
 
17276
case "(($ac_try" in
 
17277
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17278
  *) ac_try_echo=$ac_try;;
 
17279
esac
 
17280
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17281
  (eval "$ac_link") 2>conftest.er1
 
17282
  ac_status=$?
 
17283
  grep -v '^ *+' conftest.er1 >conftest.err
 
17284
  rm -f conftest.er1
 
17285
  cat conftest.err >&5
 
17286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17287
  (exit $ac_status); } && {
 
17288
         test -z "$ac_c_werror_flag" ||
 
17289
         test ! -s conftest.err
 
17290
       } && test -s conftest$ac_exeext &&
 
17291
       $as_test_x conftest$ac_exeext; then
 
17292
  ac_cv_lib_xml2_xmlSAXUserParseFile=yes
 
17293
else
 
17294
  echo "$as_me: failed program was:" >&5
 
17295
sed 's/^/| /' conftest.$ac_ext >&5
 
17296
 
 
17297
        ac_cv_lib_xml2_xmlSAXUserParseFile=no
 
17298
fi
 
17299
 
 
17300
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17301
      conftest$ac_exeext conftest.$ac_ext
 
17302
LIBS=$ac_check_lib_save_LIBS
 
17303
fi
 
17304
{ echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlSAXUserParseFile" >&5
 
17305
echo "${ECHO_T}$ac_cv_lib_xml2_xmlSAXUserParseFile" >&6; }
 
17306
if test $ac_cv_lib_xml2_xmlSAXUserParseFile = yes; then
 
17307
 
 
17308
    OLDCFLAGS=${CFLAGS}
 
17309
    OLDCPPFLAGS=${CPPFLAGS}
 
17310
    CFLAGS=${XML2_CFLAGS}
 
17311
    CPPFLAGS=${XML2_CFLAGS}
 
17312
    if test "${ac_cv_header_libxml_parser_h+set}" = set; then
 
17313
  { echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
 
17314
echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
 
17315
if test "${ac_cv_header_libxml_parser_h+set}" = set; then
 
17316
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17317
fi
 
17318
{ echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
 
17319
echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
 
17320
else
 
17321
  # Is the header compilable?
 
17322
{ echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
 
17323
echo $ECHO_N "checking libxml/parser.h usability... $ECHO_C" >&6; }
 
17324
cat >conftest.$ac_ext <<_ACEOF
 
17325
/* confdefs.h.  */
 
17326
_ACEOF
 
17327
cat confdefs.h >>conftest.$ac_ext
 
17328
cat >>conftest.$ac_ext <<_ACEOF
 
17329
/* end confdefs.h.  */
 
17330
$ac_includes_default
 
17331
#include <libxml/parser.h>
 
17332
_ACEOF
 
17333
rm -f conftest.$ac_objext
 
17334
if { (ac_try="$ac_compile"
 
17335
case "(($ac_try" in
 
17336
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17337
  *) ac_try_echo=$ac_try;;
 
17338
esac
 
17339
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17340
  (eval "$ac_compile") 2>conftest.er1
 
17341
  ac_status=$?
 
17342
  grep -v '^ *+' conftest.er1 >conftest.err
 
17343
  rm -f conftest.er1
 
17344
  cat conftest.err >&5
 
17345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17346
  (exit $ac_status); } && {
 
17347
         test -z "$ac_c_werror_flag" ||
 
17348
         test ! -s conftest.err
 
17349
       } && test -s conftest.$ac_objext; then
 
17350
  ac_header_compiler=yes
 
17351
else
 
17352
  echo "$as_me: failed program was:" >&5
 
17353
sed 's/^/| /' conftest.$ac_ext >&5
 
17354
 
 
17355
        ac_header_compiler=no
 
17356
fi
 
17357
 
 
17358
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17359
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17360
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17361
 
 
17362
# Is the header present?
 
17363
{ echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
 
17364
echo $ECHO_N "checking libxml/parser.h presence... $ECHO_C" >&6; }
 
17365
cat >conftest.$ac_ext <<_ACEOF
 
17366
/* confdefs.h.  */
 
17367
_ACEOF
 
17368
cat confdefs.h >>conftest.$ac_ext
 
17369
cat >>conftest.$ac_ext <<_ACEOF
 
17370
/* end confdefs.h.  */
 
17371
#include <libxml/parser.h>
 
17372
_ACEOF
 
17373
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17374
case "(($ac_try" in
 
17375
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17376
  *) ac_try_echo=$ac_try;;
 
17377
esac
 
17378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17379
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17380
  ac_status=$?
 
17381
  grep -v '^ *+' conftest.er1 >conftest.err
 
17382
  rm -f conftest.er1
 
17383
  cat conftest.err >&5
 
17384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17385
  (exit $ac_status); } >/dev/null && {
 
17386
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17387
         test ! -s conftest.err
 
17388
       }; then
 
17389
  ac_header_preproc=yes
 
17390
else
 
17391
  echo "$as_me: failed program was:" >&5
 
17392
sed 's/^/| /' conftest.$ac_ext >&5
 
17393
 
 
17394
  ac_header_preproc=no
 
17395
fi
 
17396
 
 
17397
rm -f conftest.err conftest.$ac_ext
 
17398
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17399
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17400
 
 
17401
# So?  What about this header?
 
17402
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17403
  yes:no: )
 
17404
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
17405
echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17406
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
 
17407
echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
 
17408
    ac_header_preproc=yes
 
17409
    ;;
 
17410
  no:yes:* )
 
17411
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
 
17412
echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
 
17413
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&5
 
17414
echo "$as_me: WARNING: libxml/parser.h:     check for missing prerequisite headers?" >&2;}
 
17415
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
 
17416
echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
 
17417
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&5
 
17418
echo "$as_me: WARNING: libxml/parser.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17419
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
 
17420
echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
 
17421
    { echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
 
17422
echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
 
17423
    ( cat <<\_ASBOX
 
17424
## ---------------------------------- ##
 
17425
## Report this to csardi@rmki.kfki.hu ##
 
17426
## ---------------------------------- ##
 
17427
_ASBOX
 
17428
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17429
    ;;
 
17430
esac
 
17431
{ echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
 
17432
echo $ECHO_N "checking for libxml/parser.h... $ECHO_C" >&6; }
 
17433
if test "${ac_cv_header_libxml_parser_h+set}" = set; then
 
17434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17435
else
 
17436
  ac_cv_header_libxml_parser_h=$ac_header_preproc
 
17437
fi
 
17438
{ echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
 
17439
echo "${ECHO_T}$ac_cv_header_libxml_parser_h" >&6; }
 
17440
 
 
17441
fi
 
17442
if test $ac_cv_header_libxml_parser_h = yes; then
 
17443
 
 
17444
      HAVE_LIBXML=1
 
17445
 
 
17446
cat >>confdefs.h <<\_ACEOF
 
17447
#define HAVE_LIBXML 1
 
17448
_ACEOF
 
17449
 
 
17450
          CFLAGS="${OLDCFLAGS} ${XML2_CFLAGS}"
 
17451
      CPPFLAGS="${OLDCFLAGS} ${XML2_CFLAGS}"
 
17452
 
 
17453
 
 
17454
 
 
17455
else
 
17456
 
 
17457
      graphml_support=no
 
17458
      CFLAGS=${OLDCFLAGS}
 
17459
          CPPFLAGS=${OLDCPPFLAGS}
 
17460
 
 
17461
fi
 
17462
 
 
17463
 
 
17464
 
 
17465
else
 
17466
 
 
17467
    graphml_support=no
 
17468
 
 
17469
fi
 
17470
 
 
17471
fi
 
17472
 
 
17473
gmp_support=no
 
17474
# Check whether --enable-gmp was given.
 
17475
if test "${enable_gmp+set}" = set; then
 
17476
  enableval=$enable_gmp;
 
17477
fi
 
17478
 
 
17479
if test "x$enable_gmp" != "xno"; then
 
17480
  { echo "$as_me:$LINENO: checking for __gmpz_add in -lgmp" >&5
 
17481
echo $ECHO_N "checking for __gmpz_add in -lgmp... $ECHO_C" >&6; }
 
17482
if test "${ac_cv_lib_gmp___gmpz_add+set}" = set; then
 
17483
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17484
else
 
17485
  ac_check_lib_save_LIBS=$LIBS
 
17486
LIBS="-lgmp  $LIBS"
 
17487
cat >conftest.$ac_ext <<_ACEOF
 
17488
/* confdefs.h.  */
 
17489
_ACEOF
 
17490
cat confdefs.h >>conftest.$ac_ext
 
17491
cat >>conftest.$ac_ext <<_ACEOF
 
17492
/* end confdefs.h.  */
 
17493
 
 
17494
/* Override any GCC internal prototype to avoid an error.
 
17495
   Use char because int might match the return type of a GCC
 
17496
   builtin and then its argument prototype would still apply.  */
 
17497
#ifdef __cplusplus
 
17498
extern "C"
 
17499
#endif
 
17500
char __gmpz_add ();
 
17501
int
 
17502
main ()
 
17503
{
 
17504
return __gmpz_add ();
 
17505
  ;
 
17506
  return 0;
 
17507
}
 
17508
_ACEOF
 
17509
rm -f conftest.$ac_objext conftest$ac_exeext
 
17510
if { (ac_try="$ac_link"
 
17511
case "(($ac_try" in
 
17512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17513
  *) ac_try_echo=$ac_try;;
 
17514
esac
 
17515
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17516
  (eval "$ac_link") 2>conftest.er1
 
17517
  ac_status=$?
 
17518
  grep -v '^ *+' conftest.er1 >conftest.err
 
17519
  rm -f conftest.er1
 
17520
  cat conftest.err >&5
 
17521
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17522
  (exit $ac_status); } && {
 
17523
         test -z "$ac_c_werror_flag" ||
 
17524
         test ! -s conftest.err
 
17525
       } && test -s conftest$ac_exeext &&
 
17526
       $as_test_x conftest$ac_exeext; then
 
17527
  ac_cv_lib_gmp___gmpz_add=yes
 
17528
else
 
17529
  echo "$as_me: failed program was:" >&5
 
17530
sed 's/^/| /' conftest.$ac_ext >&5
 
17531
 
 
17532
        ac_cv_lib_gmp___gmpz_add=no
 
17533
fi
 
17534
 
 
17535
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17536
      conftest$ac_exeext conftest.$ac_ext
 
17537
LIBS=$ac_check_lib_save_LIBS
 
17538
fi
 
17539
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add" >&5
 
17540
echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add" >&6; }
 
17541
if test $ac_cv_lib_gmp___gmpz_add = yes; then
 
17542
 
 
17543
    if test "${ac_cv_header_gmp_h+set}" = set; then
 
17544
  { echo "$as_me:$LINENO: checking for gmp.h" >&5
 
17545
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6; }
 
17546
if test "${ac_cv_header_gmp_h+set}" = set; then
 
17547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17548
fi
 
17549
{ echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
 
17550
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6; }
 
17551
else
 
17552
  # Is the header compilable?
 
17553
{ echo "$as_me:$LINENO: checking gmp.h usability" >&5
 
17554
echo $ECHO_N "checking gmp.h usability... $ECHO_C" >&6; }
 
17555
cat >conftest.$ac_ext <<_ACEOF
 
17556
/* confdefs.h.  */
 
17557
_ACEOF
 
17558
cat confdefs.h >>conftest.$ac_ext
 
17559
cat >>conftest.$ac_ext <<_ACEOF
 
17560
/* end confdefs.h.  */
 
17561
$ac_includes_default
 
17562
#include <gmp.h>
 
17563
_ACEOF
 
17564
rm -f conftest.$ac_objext
 
17565
if { (ac_try="$ac_compile"
 
17566
case "(($ac_try" in
 
17567
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17568
  *) ac_try_echo=$ac_try;;
 
17569
esac
 
17570
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17571
  (eval "$ac_compile") 2>conftest.er1
 
17572
  ac_status=$?
 
17573
  grep -v '^ *+' conftest.er1 >conftest.err
 
17574
  rm -f conftest.er1
 
17575
  cat conftest.err >&5
 
17576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17577
  (exit $ac_status); } && {
 
17578
         test -z "$ac_c_werror_flag" ||
 
17579
         test ! -s conftest.err
 
17580
       } && test -s conftest.$ac_objext; then
 
17581
  ac_header_compiler=yes
 
17582
else
 
17583
  echo "$as_me: failed program was:" >&5
 
17584
sed 's/^/| /' conftest.$ac_ext >&5
 
17585
 
 
17586
        ac_header_compiler=no
 
17587
fi
 
17588
 
 
17589
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
17590
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
17591
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
17592
 
 
17593
# Is the header present?
 
17594
{ echo "$as_me:$LINENO: checking gmp.h presence" >&5
 
17595
echo $ECHO_N "checking gmp.h presence... $ECHO_C" >&6; }
 
17596
cat >conftest.$ac_ext <<_ACEOF
 
17597
/* confdefs.h.  */
 
17598
_ACEOF
 
17599
cat confdefs.h >>conftest.$ac_ext
 
17600
cat >>conftest.$ac_ext <<_ACEOF
 
17601
/* end confdefs.h.  */
 
17602
#include <gmp.h>
 
17603
_ACEOF
 
17604
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
17605
case "(($ac_try" in
 
17606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17607
  *) ac_try_echo=$ac_try;;
 
17608
esac
 
17609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17610
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
17611
  ac_status=$?
 
17612
  grep -v '^ *+' conftest.er1 >conftest.err
 
17613
  rm -f conftest.er1
 
17614
  cat conftest.err >&5
 
17615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17616
  (exit $ac_status); } >/dev/null && {
 
17617
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
17618
         test ! -s conftest.err
 
17619
       }; then
 
17620
  ac_header_preproc=yes
 
17621
else
 
17622
  echo "$as_me: failed program was:" >&5
 
17623
sed 's/^/| /' conftest.$ac_ext >&5
 
17624
 
 
17625
  ac_header_preproc=no
 
17626
fi
 
17627
 
 
17628
rm -f conftest.err conftest.$ac_ext
 
17629
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
17630
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
17631
 
 
17632
# So?  What about this header?
 
17633
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
17634
  yes:no: )
 
17635
    { echo "$as_me:$LINENO: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
17636
echo "$as_me: WARNING: gmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
17637
    { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the compiler's result" >&5
 
17638
echo "$as_me: WARNING: gmp.h: proceeding with the compiler's result" >&2;}
 
17639
    ac_header_preproc=yes
 
17640
    ;;
 
17641
  no:yes:* )
 
17642
    { echo "$as_me:$LINENO: WARNING: gmp.h: present but cannot be compiled" >&5
 
17643
echo "$as_me: WARNING: gmp.h: present but cannot be compiled" >&2;}
 
17644
    { echo "$as_me:$LINENO: WARNING: gmp.h:     check for missing prerequisite headers?" >&5
 
17645
echo "$as_me: WARNING: gmp.h:     check for missing prerequisite headers?" >&2;}
 
17646
    { echo "$as_me:$LINENO: WARNING: gmp.h: see the Autoconf documentation" >&5
 
17647
echo "$as_me: WARNING: gmp.h: see the Autoconf documentation" >&2;}
 
17648
    { echo "$as_me:$LINENO: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&5
 
17649
echo "$as_me: WARNING: gmp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
17650
    { echo "$as_me:$LINENO: WARNING: gmp.h: proceeding with the preprocessor's result" >&5
 
17651
echo "$as_me: WARNING: gmp.h: proceeding with the preprocessor's result" >&2;}
 
17652
    { echo "$as_me:$LINENO: WARNING: gmp.h: in the future, the compiler will take precedence" >&5
 
17653
echo "$as_me: WARNING: gmp.h: in the future, the compiler will take precedence" >&2;}
 
17654
    ( cat <<\_ASBOX
 
17655
## ---------------------------------- ##
 
17656
## Report this to csardi@rmki.kfki.hu ##
 
17657
## ---------------------------------- ##
 
17658
_ASBOX
 
17659
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
17660
    ;;
 
17661
esac
 
17662
{ echo "$as_me:$LINENO: checking for gmp.h" >&5
 
17663
echo $ECHO_N "checking for gmp.h... $ECHO_C" >&6; }
 
17664
if test "${ac_cv_header_gmp_h+set}" = set; then
 
17665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17666
else
 
17667
  ac_cv_header_gmp_h=$ac_header_preproc
 
17668
fi
 
17669
{ echo "$as_me:$LINENO: result: $ac_cv_header_gmp_h" >&5
 
17670
echo "${ECHO_T}$ac_cv_header_gmp_h" >&6; }
 
17671
 
 
17672
fi
 
17673
if test $ac_cv_header_gmp_h = yes; then
 
17674
 
 
17675
 
 
17676
cat >>confdefs.h <<\_ACEOF
 
17677
#define HAVE_GMP 1
 
17678
_ACEOF
 
17679
 
 
17680
      gmp_support=yes
 
17681
      LDFLAGS="${LDFLAGS} -lgmp"
 
17682
 
 
17683
fi
 
17684
 
 
17685
 
 
17686
 
 
17687
fi
 
17688
 
 
17689
fi
 
17690
 
 
17691
 
 
17692
# Check whether --with-external-blas was given.
 
17693
if test "${with_external_blas+set}" = set; then
 
17694
  withval=$with_external_blas; internal_blas=no
 
17695
else
 
17696
  internal_blas=yes
 
17697
fi
 
17698
 
 
17699
 
 
17700
# Check whether --with-external-lapack was given.
 
17701
if test "${with_external_lapack+set}" = set; then
 
17702
  withval=$with_external_lapack; internal_lapack=no
 
17703
else
 
17704
  internal_lapack=yes
 
17705
fi
 
17706
 
 
17707
 
 
17708
# Check whether --with-external-arpack was given.
 
17709
if test "${with_external_arpack+set}" = set; then
 
17710
  withval=$with_external_arpack; internal_arpack=no
 
17711
else
 
17712
  internal_arpack=yes
 
17713
fi
 
17714
 
 
17715
 
 
17716
if test "$internal_blas" == "no"; then
 
17717
 
 
17718
{ echo "$as_me:$LINENO: checking for daxpy_ in -lblas" >&5
 
17719
echo $ECHO_N "checking for daxpy_ in -lblas... $ECHO_C" >&6; }
 
17720
if test "${ac_cv_lib_blas_daxpy_+set}" = set; then
 
17721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17722
else
 
17723
  ac_check_lib_save_LIBS=$LIBS
 
17724
LIBS="-lblas  $LIBS"
 
17725
cat >conftest.$ac_ext <<_ACEOF
 
17726
/* confdefs.h.  */
 
17727
_ACEOF
 
17728
cat confdefs.h >>conftest.$ac_ext
 
17729
cat >>conftest.$ac_ext <<_ACEOF
 
17730
/* end confdefs.h.  */
 
17731
 
 
17732
/* Override any GCC internal prototype to avoid an error.
 
17733
   Use char because int might match the return type of a GCC
 
17734
   builtin and then its argument prototype would still apply.  */
 
17735
#ifdef __cplusplus
 
17736
extern "C"
 
17737
#endif
 
17738
char daxpy_ ();
 
17739
int
 
17740
main ()
 
17741
{
 
17742
return daxpy_ ();
 
17743
  ;
 
17744
  return 0;
 
17745
}
 
17746
_ACEOF
 
17747
rm -f conftest.$ac_objext conftest$ac_exeext
 
17748
if { (ac_try="$ac_link"
 
17749
case "(($ac_try" in
 
17750
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17751
  *) ac_try_echo=$ac_try;;
 
17752
esac
 
17753
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17754
  (eval "$ac_link") 2>conftest.er1
 
17755
  ac_status=$?
 
17756
  grep -v '^ *+' conftest.er1 >conftest.err
 
17757
  rm -f conftest.er1
 
17758
  cat conftest.err >&5
 
17759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17760
  (exit $ac_status); } && {
 
17761
         test -z "$ac_c_werror_flag" ||
 
17762
         test ! -s conftest.err
 
17763
       } && test -s conftest$ac_exeext &&
 
17764
       $as_test_x conftest$ac_exeext; then
 
17765
  ac_cv_lib_blas_daxpy_=yes
 
17766
else
 
17767
  echo "$as_me: failed program was:" >&5
 
17768
sed 's/^/| /' conftest.$ac_ext >&5
 
17769
 
 
17770
        ac_cv_lib_blas_daxpy_=no
 
17771
fi
 
17772
 
 
17773
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17774
      conftest$ac_exeext conftest.$ac_ext
 
17775
LIBS=$ac_check_lib_save_LIBS
 
17776
fi
 
17777
{ echo "$as_me:$LINENO: result: $ac_cv_lib_blas_daxpy_" >&5
 
17778
echo "${ECHO_T}$ac_cv_lib_blas_daxpy_" >&6; }
 
17779
if test $ac_cv_lib_blas_daxpy_ = yes; then
 
17780
  cat >>confdefs.h <<_ACEOF
 
17781
#define HAVE_LIBBLAS 1
 
17782
_ACEOF
 
17783
 
 
17784
  LIBS="-lblas $LIBS"
 
17785
 
 
17786
else
 
17787
 
 
17788
{ echo "$as_me:$LINENO: checking for daxpy in -lblas" >&5
 
17789
echo $ECHO_N "checking for daxpy in -lblas... $ECHO_C" >&6; }
 
17790
if test "${ac_cv_lib_blas_daxpy+set}" = set; then
 
17791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17792
else
 
17793
  ac_check_lib_save_LIBS=$LIBS
 
17794
LIBS="-lblas  $LIBS"
 
17795
cat >conftest.$ac_ext <<_ACEOF
 
17796
/* confdefs.h.  */
 
17797
_ACEOF
 
17798
cat confdefs.h >>conftest.$ac_ext
 
17799
cat >>conftest.$ac_ext <<_ACEOF
 
17800
/* end confdefs.h.  */
 
17801
 
 
17802
/* Override any GCC internal prototype to avoid an error.
 
17803
   Use char because int might match the return type of a GCC
 
17804
   builtin and then its argument prototype would still apply.  */
 
17805
#ifdef __cplusplus
 
17806
extern "C"
 
17807
#endif
 
17808
char daxpy ();
 
17809
int
 
17810
main ()
 
17811
{
 
17812
return daxpy ();
 
17813
  ;
 
17814
  return 0;
 
17815
}
 
17816
_ACEOF
 
17817
rm -f conftest.$ac_objext conftest$ac_exeext
 
17818
if { (ac_try="$ac_link"
 
17819
case "(($ac_try" in
 
17820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17821
  *) ac_try_echo=$ac_try;;
 
17822
esac
 
17823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17824
  (eval "$ac_link") 2>conftest.er1
 
17825
  ac_status=$?
 
17826
  grep -v '^ *+' conftest.er1 >conftest.err
 
17827
  rm -f conftest.er1
 
17828
  cat conftest.err >&5
 
17829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17830
  (exit $ac_status); } && {
 
17831
         test -z "$ac_c_werror_flag" ||
 
17832
         test ! -s conftest.err
 
17833
       } && test -s conftest$ac_exeext &&
 
17834
       $as_test_x conftest$ac_exeext; then
 
17835
  ac_cv_lib_blas_daxpy=yes
 
17836
else
 
17837
  echo "$as_me: failed program was:" >&5
 
17838
sed 's/^/| /' conftest.$ac_ext >&5
 
17839
 
 
17840
        ac_cv_lib_blas_daxpy=no
 
17841
fi
 
17842
 
 
17843
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17844
      conftest$ac_exeext conftest.$ac_ext
 
17845
LIBS=$ac_check_lib_save_LIBS
 
17846
fi
 
17847
{ echo "$as_me:$LINENO: result: $ac_cv_lib_blas_daxpy" >&5
 
17848
echo "${ECHO_T}$ac_cv_lib_blas_daxpy" >&6; }
 
17849
if test $ac_cv_lib_blas_daxpy = yes; then
 
17850
  cat >>confdefs.h <<_ACEOF
 
17851
#define HAVE_LIBBLAS 1
 
17852
_ACEOF
 
17853
 
 
17854
  LIBS="-lblas $LIBS"
 
17855
 
 
17856
else
 
17857
 
 
17858
{ echo "$as_me:$LINENO: checking for DAXPY_ in -lblas" >&5
 
17859
echo $ECHO_N "checking for DAXPY_ in -lblas... $ECHO_C" >&6; }
 
17860
if test "${ac_cv_lib_blas_DAXPY_+set}" = set; then
 
17861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17862
else
 
17863
  ac_check_lib_save_LIBS=$LIBS
 
17864
LIBS="-lblas  $LIBS"
 
17865
cat >conftest.$ac_ext <<_ACEOF
 
17866
/* confdefs.h.  */
 
17867
_ACEOF
 
17868
cat confdefs.h >>conftest.$ac_ext
 
17869
cat >>conftest.$ac_ext <<_ACEOF
 
17870
/* end confdefs.h.  */
 
17871
 
 
17872
/* Override any GCC internal prototype to avoid an error.
 
17873
   Use char because int might match the return type of a GCC
 
17874
   builtin and then its argument prototype would still apply.  */
 
17875
#ifdef __cplusplus
 
17876
extern "C"
 
17877
#endif
 
17878
char DAXPY_ ();
 
17879
int
 
17880
main ()
 
17881
{
 
17882
return DAXPY_ ();
 
17883
  ;
 
17884
  return 0;
 
17885
}
 
17886
_ACEOF
 
17887
rm -f conftest.$ac_objext conftest$ac_exeext
 
17888
if { (ac_try="$ac_link"
 
17889
case "(($ac_try" in
 
17890
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17891
  *) ac_try_echo=$ac_try;;
 
17892
esac
 
17893
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17894
  (eval "$ac_link") 2>conftest.er1
 
17895
  ac_status=$?
 
17896
  grep -v '^ *+' conftest.er1 >conftest.err
 
17897
  rm -f conftest.er1
 
17898
  cat conftest.err >&5
 
17899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17900
  (exit $ac_status); } && {
 
17901
         test -z "$ac_c_werror_flag" ||
 
17902
         test ! -s conftest.err
 
17903
       } && test -s conftest$ac_exeext &&
 
17904
       $as_test_x conftest$ac_exeext; then
 
17905
  ac_cv_lib_blas_DAXPY_=yes
 
17906
else
 
17907
  echo "$as_me: failed program was:" >&5
 
17908
sed 's/^/| /' conftest.$ac_ext >&5
 
17909
 
 
17910
        ac_cv_lib_blas_DAXPY_=no
 
17911
fi
 
17912
 
 
17913
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17914
      conftest$ac_exeext conftest.$ac_ext
 
17915
LIBS=$ac_check_lib_save_LIBS
 
17916
fi
 
17917
{ echo "$as_me:$LINENO: result: $ac_cv_lib_blas_DAXPY_" >&5
 
17918
echo "${ECHO_T}$ac_cv_lib_blas_DAXPY_" >&6; }
 
17919
if test $ac_cv_lib_blas_DAXPY_ = yes; then
 
17920
  cat >>confdefs.h <<_ACEOF
 
17921
#define HAVE_LIBBLAS 1
 
17922
_ACEOF
 
17923
 
 
17924
  LIBS="-lblas $LIBS"
 
17925
 
 
17926
else
 
17927
 
 
17928
{ echo "$as_me:$LINENO: checking for DAXPY in -lblas" >&5
 
17929
echo $ECHO_N "checking for DAXPY in -lblas... $ECHO_C" >&6; }
 
17930
if test "${ac_cv_lib_blas_DAXPY+set}" = set; then
 
17931
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17932
else
 
17933
  ac_check_lib_save_LIBS=$LIBS
 
17934
LIBS="-lblas  $LIBS"
 
17935
cat >conftest.$ac_ext <<_ACEOF
 
17936
/* confdefs.h.  */
 
17937
_ACEOF
 
17938
cat confdefs.h >>conftest.$ac_ext
 
17939
cat >>conftest.$ac_ext <<_ACEOF
 
17940
/* end confdefs.h.  */
 
17941
 
 
17942
/* Override any GCC internal prototype to avoid an error.
 
17943
   Use char because int might match the return type of a GCC
 
17944
   builtin and then its argument prototype would still apply.  */
 
17945
#ifdef __cplusplus
 
17946
extern "C"
 
17947
#endif
 
17948
char DAXPY ();
 
17949
int
 
17950
main ()
 
17951
{
 
17952
return DAXPY ();
 
17953
  ;
 
17954
  return 0;
 
17955
}
 
17956
_ACEOF
 
17957
rm -f conftest.$ac_objext conftest$ac_exeext
 
17958
if { (ac_try="$ac_link"
 
17959
case "(($ac_try" in
 
17960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17961
  *) ac_try_echo=$ac_try;;
 
17962
esac
 
17963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17964
  (eval "$ac_link") 2>conftest.er1
 
17965
  ac_status=$?
 
17966
  grep -v '^ *+' conftest.er1 >conftest.err
 
17967
  rm -f conftest.er1
 
17968
  cat conftest.err >&5
 
17969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17970
  (exit $ac_status); } && {
 
17971
         test -z "$ac_c_werror_flag" ||
 
17972
         test ! -s conftest.err
 
17973
       } && test -s conftest$ac_exeext &&
 
17974
       $as_test_x conftest$ac_exeext; then
 
17975
  ac_cv_lib_blas_DAXPY=yes
 
17976
else
 
17977
  echo "$as_me: failed program was:" >&5
 
17978
sed 's/^/| /' conftest.$ac_ext >&5
 
17979
 
 
17980
        ac_cv_lib_blas_DAXPY=no
 
17981
fi
 
17982
 
 
17983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17984
      conftest$ac_exeext conftest.$ac_ext
 
17985
LIBS=$ac_check_lib_save_LIBS
 
17986
fi
 
17987
{ echo "$as_me:$LINENO: result: $ac_cv_lib_blas_DAXPY" >&5
 
17988
echo "${ECHO_T}$ac_cv_lib_blas_DAXPY" >&6; }
 
17989
if test $ac_cv_lib_blas_DAXPY = yes; then
 
17990
  cat >>confdefs.h <<_ACEOF
 
17991
#define HAVE_LIBBLAS 1
 
17992
_ACEOF
 
17993
 
 
17994
  LIBS="-lblas $LIBS"
 
17995
 
 
17996
else
 
17997
  { echo "$as_me:$LINENO: result: not found" >&5
 
17998
echo "${ECHO_T}not found" >&6; }
 
17999
fi
 
18000
 
 
18001
fi
 
18002
 
 
18003
fi
 
18004
 
 
18005
fi
 
18006
 
 
18007
  LDFLAGS="${LDFLAGS} -lblas"
 
18008
else
 
18009
 
 
18010
cat >>confdefs.h <<\_ACEOF
 
18011
#define INTERNAL_BLAS 1
 
18012
_ACEOF
 
18013
 
 
18014
fi
 
18015
 
 
18016
if test "$internal_lapack" == "no"; then
 
18017
 
 
18018
{ echo "$as_me:$LINENO: checking for dlarnv_ in -llapack" >&5
 
18019
echo $ECHO_N "checking for dlarnv_ in -llapack... $ECHO_C" >&6; }
 
18020
if test "${ac_cv_lib_lapack_dlarnv_+set}" = set; then
 
18021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18022
else
 
18023
  ac_check_lib_save_LIBS=$LIBS
 
18024
LIBS="-llapack  $LIBS"
 
18025
cat >conftest.$ac_ext <<_ACEOF
 
18026
/* confdefs.h.  */
 
18027
_ACEOF
 
18028
cat confdefs.h >>conftest.$ac_ext
 
18029
cat >>conftest.$ac_ext <<_ACEOF
 
18030
/* end confdefs.h.  */
 
18031
 
 
18032
/* Override any GCC internal prototype to avoid an error.
 
18033
   Use char because int might match the return type of a GCC
 
18034
   builtin and then its argument prototype would still apply.  */
 
18035
#ifdef __cplusplus
 
18036
extern "C"
 
18037
#endif
 
18038
char dlarnv_ ();
 
18039
int
 
18040
main ()
 
18041
{
 
18042
return dlarnv_ ();
 
18043
  ;
 
18044
  return 0;
 
18045
}
 
18046
_ACEOF
 
18047
rm -f conftest.$ac_objext conftest$ac_exeext
 
18048
if { (ac_try="$ac_link"
 
18049
case "(($ac_try" in
 
18050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18051
  *) ac_try_echo=$ac_try;;
 
18052
esac
 
18053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18054
  (eval "$ac_link") 2>conftest.er1
 
18055
  ac_status=$?
 
18056
  grep -v '^ *+' conftest.er1 >conftest.err
 
18057
  rm -f conftest.er1
 
18058
  cat conftest.err >&5
 
18059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18060
  (exit $ac_status); } && {
 
18061
         test -z "$ac_c_werror_flag" ||
 
18062
         test ! -s conftest.err
 
18063
       } && test -s conftest$ac_exeext &&
 
18064
       $as_test_x conftest$ac_exeext; then
 
18065
  ac_cv_lib_lapack_dlarnv_=yes
 
18066
else
 
18067
  echo "$as_me: failed program was:" >&5
 
18068
sed 's/^/| /' conftest.$ac_ext >&5
 
18069
 
 
18070
        ac_cv_lib_lapack_dlarnv_=no
 
18071
fi
 
18072
 
 
18073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18074
      conftest$ac_exeext conftest.$ac_ext
 
18075
LIBS=$ac_check_lib_save_LIBS
 
18076
fi
 
18077
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_dlarnv_" >&5
 
18078
echo "${ECHO_T}$ac_cv_lib_lapack_dlarnv_" >&6; }
 
18079
if test $ac_cv_lib_lapack_dlarnv_ = yes; then
 
18080
  cat >>confdefs.h <<_ACEOF
 
18081
#define HAVE_LIBLAPACK 1
 
18082
_ACEOF
 
18083
 
 
18084
  LIBS="-llapack $LIBS"
 
18085
 
 
18086
else
 
18087
 
 
18088
{ echo "$as_me:$LINENO: checking for dlarnv in -llapack" >&5
 
18089
echo $ECHO_N "checking for dlarnv in -llapack... $ECHO_C" >&6; }
 
18090
if test "${ac_cv_lib_lapack_dlarnv+set}" = set; then
 
18091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18092
else
 
18093
  ac_check_lib_save_LIBS=$LIBS
 
18094
LIBS="-llapack  $LIBS"
 
18095
cat >conftest.$ac_ext <<_ACEOF
 
18096
/* confdefs.h.  */
 
18097
_ACEOF
 
18098
cat confdefs.h >>conftest.$ac_ext
 
18099
cat >>conftest.$ac_ext <<_ACEOF
 
18100
/* end confdefs.h.  */
 
18101
 
 
18102
/* Override any GCC internal prototype to avoid an error.
 
18103
   Use char because int might match the return type of a GCC
 
18104
   builtin and then its argument prototype would still apply.  */
 
18105
#ifdef __cplusplus
 
18106
extern "C"
 
18107
#endif
 
18108
char dlarnv ();
 
18109
int
 
18110
main ()
 
18111
{
 
18112
return dlarnv ();
 
18113
  ;
 
18114
  return 0;
 
18115
}
 
18116
_ACEOF
 
18117
rm -f conftest.$ac_objext conftest$ac_exeext
 
18118
if { (ac_try="$ac_link"
 
18119
case "(($ac_try" in
 
18120
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18121
  *) ac_try_echo=$ac_try;;
 
18122
esac
 
18123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18124
  (eval "$ac_link") 2>conftest.er1
 
18125
  ac_status=$?
 
18126
  grep -v '^ *+' conftest.er1 >conftest.err
 
18127
  rm -f conftest.er1
 
18128
  cat conftest.err >&5
 
18129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18130
  (exit $ac_status); } && {
 
18131
         test -z "$ac_c_werror_flag" ||
 
18132
         test ! -s conftest.err
 
18133
       } && test -s conftest$ac_exeext &&
 
18134
       $as_test_x conftest$ac_exeext; then
 
18135
  ac_cv_lib_lapack_dlarnv=yes
 
18136
else
 
18137
  echo "$as_me: failed program was:" >&5
 
18138
sed 's/^/| /' conftest.$ac_ext >&5
 
18139
 
 
18140
        ac_cv_lib_lapack_dlarnv=no
 
18141
fi
 
18142
 
 
18143
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18144
      conftest$ac_exeext conftest.$ac_ext
 
18145
LIBS=$ac_check_lib_save_LIBS
 
18146
fi
 
18147
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_dlarnv" >&5
 
18148
echo "${ECHO_T}$ac_cv_lib_lapack_dlarnv" >&6; }
 
18149
if test $ac_cv_lib_lapack_dlarnv = yes; then
 
18150
  cat >>confdefs.h <<_ACEOF
 
18151
#define HAVE_LIBLAPACK 1
 
18152
_ACEOF
 
18153
 
 
18154
  LIBS="-llapack $LIBS"
 
18155
 
 
18156
else
 
18157
 
 
18158
{ echo "$as_me:$LINENO: checking for DLARNV_ in -llapack" >&5
 
18159
echo $ECHO_N "checking for DLARNV_ in -llapack... $ECHO_C" >&6; }
 
18160
if test "${ac_cv_lib_lapack_DLARNV_+set}" = set; then
 
18161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18162
else
 
18163
  ac_check_lib_save_LIBS=$LIBS
 
18164
LIBS="-llapack  $LIBS"
 
18165
cat >conftest.$ac_ext <<_ACEOF
 
18166
/* confdefs.h.  */
 
18167
_ACEOF
 
18168
cat confdefs.h >>conftest.$ac_ext
 
18169
cat >>conftest.$ac_ext <<_ACEOF
 
18170
/* end confdefs.h.  */
 
18171
 
 
18172
/* Override any GCC internal prototype to avoid an error.
 
18173
   Use char because int might match the return type of a GCC
 
18174
   builtin and then its argument prototype would still apply.  */
 
18175
#ifdef __cplusplus
 
18176
extern "C"
 
18177
#endif
 
18178
char DLARNV_ ();
 
18179
int
 
18180
main ()
 
18181
{
 
18182
return DLARNV_ ();
 
18183
  ;
 
18184
  return 0;
 
18185
}
 
18186
_ACEOF
 
18187
rm -f conftest.$ac_objext conftest$ac_exeext
 
18188
if { (ac_try="$ac_link"
 
18189
case "(($ac_try" in
 
18190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18191
  *) ac_try_echo=$ac_try;;
 
18192
esac
 
18193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18194
  (eval "$ac_link") 2>conftest.er1
 
18195
  ac_status=$?
 
18196
  grep -v '^ *+' conftest.er1 >conftest.err
 
18197
  rm -f conftest.er1
 
18198
  cat conftest.err >&5
 
18199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18200
  (exit $ac_status); } && {
 
18201
         test -z "$ac_c_werror_flag" ||
 
18202
         test ! -s conftest.err
 
18203
       } && test -s conftest$ac_exeext &&
 
18204
       $as_test_x conftest$ac_exeext; then
 
18205
  ac_cv_lib_lapack_DLARNV_=yes
 
18206
else
 
18207
  echo "$as_me: failed program was:" >&5
 
18208
sed 's/^/| /' conftest.$ac_ext >&5
 
18209
 
 
18210
        ac_cv_lib_lapack_DLARNV_=no
 
18211
fi
 
18212
 
 
18213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18214
      conftest$ac_exeext conftest.$ac_ext
 
18215
LIBS=$ac_check_lib_save_LIBS
 
18216
fi
 
18217
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_DLARNV_" >&5
 
18218
echo "${ECHO_T}$ac_cv_lib_lapack_DLARNV_" >&6; }
 
18219
if test $ac_cv_lib_lapack_DLARNV_ = yes; then
 
18220
  cat >>confdefs.h <<_ACEOF
 
18221
#define HAVE_LIBLAPACK 1
 
18222
_ACEOF
 
18223
 
 
18224
  LIBS="-llapack $LIBS"
 
18225
 
 
18226
else
 
18227
 
 
18228
{ echo "$as_me:$LINENO: checking for DLARNV in -llapack" >&5
 
18229
echo $ECHO_N "checking for DLARNV in -llapack... $ECHO_C" >&6; }
 
18230
if test "${ac_cv_lib_lapack_DLARNV+set}" = set; then
 
18231
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18232
else
 
18233
  ac_check_lib_save_LIBS=$LIBS
 
18234
LIBS="-llapack  $LIBS"
 
18235
cat >conftest.$ac_ext <<_ACEOF
 
18236
/* confdefs.h.  */
 
18237
_ACEOF
 
18238
cat confdefs.h >>conftest.$ac_ext
 
18239
cat >>conftest.$ac_ext <<_ACEOF
 
18240
/* end confdefs.h.  */
 
18241
 
 
18242
/* Override any GCC internal prototype to avoid an error.
 
18243
   Use char because int might match the return type of a GCC
 
18244
   builtin and then its argument prototype would still apply.  */
 
18245
#ifdef __cplusplus
 
18246
extern "C"
 
18247
#endif
 
18248
char DLARNV ();
 
18249
int
 
18250
main ()
 
18251
{
 
18252
return DLARNV ();
 
18253
  ;
 
18254
  return 0;
 
18255
}
 
18256
_ACEOF
 
18257
rm -f conftest.$ac_objext conftest$ac_exeext
 
18258
if { (ac_try="$ac_link"
 
18259
case "(($ac_try" in
 
18260
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18261
  *) ac_try_echo=$ac_try;;
 
18262
esac
 
18263
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18264
  (eval "$ac_link") 2>conftest.er1
 
18265
  ac_status=$?
 
18266
  grep -v '^ *+' conftest.er1 >conftest.err
 
18267
  rm -f conftest.er1
 
18268
  cat conftest.err >&5
 
18269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18270
  (exit $ac_status); } && {
 
18271
         test -z "$ac_c_werror_flag" ||
 
18272
         test ! -s conftest.err
 
18273
       } && test -s conftest$ac_exeext &&
 
18274
       $as_test_x conftest$ac_exeext; then
 
18275
  ac_cv_lib_lapack_DLARNV=yes
 
18276
else
 
18277
  echo "$as_me: failed program was:" >&5
 
18278
sed 's/^/| /' conftest.$ac_ext >&5
 
18279
 
 
18280
        ac_cv_lib_lapack_DLARNV=no
 
18281
fi
 
18282
 
 
18283
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18284
      conftest$ac_exeext conftest.$ac_ext
 
18285
LIBS=$ac_check_lib_save_LIBS
 
18286
fi
 
18287
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lapack_DLARNV" >&5
 
18288
echo "${ECHO_T}$ac_cv_lib_lapack_DLARNV" >&6; }
 
18289
if test $ac_cv_lib_lapack_DLARNV = yes; then
 
18290
  cat >>confdefs.h <<_ACEOF
 
18291
#define HAVE_LIBLAPACK 1
 
18292
_ACEOF
 
18293
 
 
18294
  LIBS="-llapack $LIBS"
 
18295
 
 
18296
else
 
18297
  { echo "$as_me:$LINENO: result: not found" >&5
 
18298
echo "${ECHO_T}not found" >&6; }
 
18299
fi
 
18300
 
 
18301
fi
 
18302
 
 
18303
fi
 
18304
 
 
18305
fi
 
18306
 
 
18307
  LDFLAGS="${LDFLAGS} -llapack"
 
18308
else
 
18309
 
 
18310
cat >>confdefs.h <<\_ACEOF
 
18311
#define INTERNAL_LAPACK 1
 
18312
_ACEOF
 
18313
 
 
18314
fi
 
18315
 
 
18316
if test "$internal_arpack" == "no"; then
 
18317
 
 
18318
{ echo "$as_me:$LINENO: checking for dsaupd_ in -larpack" >&5
 
18319
echo $ECHO_N "checking for dsaupd_ in -larpack... $ECHO_C" >&6; }
 
18320
if test "${ac_cv_lib_arpack_dsaupd_+set}" = set; then
 
18321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18322
else
 
18323
  ac_check_lib_save_LIBS=$LIBS
 
18324
LIBS="-larpack  $LIBS"
 
18325
cat >conftest.$ac_ext <<_ACEOF
 
18326
/* confdefs.h.  */
 
18327
_ACEOF
 
18328
cat confdefs.h >>conftest.$ac_ext
 
18329
cat >>conftest.$ac_ext <<_ACEOF
 
18330
/* end confdefs.h.  */
 
18331
 
 
18332
/* Override any GCC internal prototype to avoid an error.
 
18333
   Use char because int might match the return type of a GCC
 
18334
   builtin and then its argument prototype would still apply.  */
 
18335
#ifdef __cplusplus
 
18336
extern "C"
 
18337
#endif
 
18338
char dsaupd_ ();
 
18339
int
 
18340
main ()
 
18341
{
 
18342
return dsaupd_ ();
 
18343
  ;
 
18344
  return 0;
 
18345
}
 
18346
_ACEOF
 
18347
rm -f conftest.$ac_objext conftest$ac_exeext
 
18348
if { (ac_try="$ac_link"
 
18349
case "(($ac_try" in
 
18350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18351
  *) ac_try_echo=$ac_try;;
 
18352
esac
 
18353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18354
  (eval "$ac_link") 2>conftest.er1
 
18355
  ac_status=$?
 
18356
  grep -v '^ *+' conftest.er1 >conftest.err
 
18357
  rm -f conftest.er1
 
18358
  cat conftest.err >&5
 
18359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18360
  (exit $ac_status); } && {
 
18361
         test -z "$ac_c_werror_flag" ||
 
18362
         test ! -s conftest.err
 
18363
       } && test -s conftest$ac_exeext &&
 
18364
       $as_test_x conftest$ac_exeext; then
 
18365
  ac_cv_lib_arpack_dsaupd_=yes
 
18366
else
 
18367
  echo "$as_me: failed program was:" >&5
 
18368
sed 's/^/| /' conftest.$ac_ext >&5
 
18369
 
 
18370
        ac_cv_lib_arpack_dsaupd_=no
 
18371
fi
 
18372
 
 
18373
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18374
      conftest$ac_exeext conftest.$ac_ext
 
18375
LIBS=$ac_check_lib_save_LIBS
 
18376
fi
 
18377
{ echo "$as_me:$LINENO: result: $ac_cv_lib_arpack_dsaupd_" >&5
 
18378
echo "${ECHO_T}$ac_cv_lib_arpack_dsaupd_" >&6; }
 
18379
if test $ac_cv_lib_arpack_dsaupd_ = yes; then
 
18380
  cat >>confdefs.h <<_ACEOF
 
18381
#define HAVE_LIBARPACK 1
 
18382
_ACEOF
 
18383
 
 
18384
  LIBS="-larpack $LIBS"
 
18385
 
 
18386
else
 
18387
 
 
18388
{ echo "$as_me:$LINENO: checking for dsaupd in -larpack" >&5
 
18389
echo $ECHO_N "checking for dsaupd in -larpack... $ECHO_C" >&6; }
 
18390
if test "${ac_cv_lib_arpack_dsaupd+set}" = set; then
 
18391
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18392
else
 
18393
  ac_check_lib_save_LIBS=$LIBS
 
18394
LIBS="-larpack  $LIBS"
 
18395
cat >conftest.$ac_ext <<_ACEOF
 
18396
/* confdefs.h.  */
 
18397
_ACEOF
 
18398
cat confdefs.h >>conftest.$ac_ext
 
18399
cat >>conftest.$ac_ext <<_ACEOF
 
18400
/* end confdefs.h.  */
 
18401
 
 
18402
/* Override any GCC internal prototype to avoid an error.
 
18403
   Use char because int might match the return type of a GCC
 
18404
   builtin and then its argument prototype would still apply.  */
 
18405
#ifdef __cplusplus
 
18406
extern "C"
 
18407
#endif
 
18408
char dsaupd ();
 
18409
int
 
18410
main ()
 
18411
{
 
18412
return dsaupd ();
 
18413
  ;
 
18414
  return 0;
 
18415
}
 
18416
_ACEOF
 
18417
rm -f conftest.$ac_objext conftest$ac_exeext
 
18418
if { (ac_try="$ac_link"
 
18419
case "(($ac_try" in
 
18420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18421
  *) ac_try_echo=$ac_try;;
 
18422
esac
 
18423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18424
  (eval "$ac_link") 2>conftest.er1
 
18425
  ac_status=$?
 
18426
  grep -v '^ *+' conftest.er1 >conftest.err
 
18427
  rm -f conftest.er1
 
18428
  cat conftest.err >&5
 
18429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18430
  (exit $ac_status); } && {
 
18431
         test -z "$ac_c_werror_flag" ||
 
18432
         test ! -s conftest.err
 
18433
       } && test -s conftest$ac_exeext &&
 
18434
       $as_test_x conftest$ac_exeext; then
 
18435
  ac_cv_lib_arpack_dsaupd=yes
 
18436
else
 
18437
  echo "$as_me: failed program was:" >&5
 
18438
sed 's/^/| /' conftest.$ac_ext >&5
 
18439
 
 
18440
        ac_cv_lib_arpack_dsaupd=no
 
18441
fi
 
18442
 
 
18443
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18444
      conftest$ac_exeext conftest.$ac_ext
 
18445
LIBS=$ac_check_lib_save_LIBS
 
18446
fi
 
18447
{ echo "$as_me:$LINENO: result: $ac_cv_lib_arpack_dsaupd" >&5
 
18448
echo "${ECHO_T}$ac_cv_lib_arpack_dsaupd" >&6; }
 
18449
if test $ac_cv_lib_arpack_dsaupd = yes; then
 
18450
  cat >>confdefs.h <<_ACEOF
 
18451
#define HAVE_LIBARPACK 1
 
18452
_ACEOF
 
18453
 
 
18454
  LIBS="-larpack $LIBS"
 
18455
 
 
18456
else
 
18457
 
 
18458
{ echo "$as_me:$LINENO: checking for DSAUPD_ in -larpack" >&5
 
18459
echo $ECHO_N "checking for DSAUPD_ in -larpack... $ECHO_C" >&6; }
 
18460
if test "${ac_cv_lib_arpack_DSAUPD_+set}" = set; then
 
18461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18462
else
 
18463
  ac_check_lib_save_LIBS=$LIBS
 
18464
LIBS="-larpack  $LIBS"
 
18465
cat >conftest.$ac_ext <<_ACEOF
 
18466
/* confdefs.h.  */
 
18467
_ACEOF
 
18468
cat confdefs.h >>conftest.$ac_ext
 
18469
cat >>conftest.$ac_ext <<_ACEOF
 
18470
/* end confdefs.h.  */
 
18471
 
 
18472
/* Override any GCC internal prototype to avoid an error.
 
18473
   Use char because int might match the return type of a GCC
 
18474
   builtin and then its argument prototype would still apply.  */
 
18475
#ifdef __cplusplus
 
18476
extern "C"
 
18477
#endif
 
18478
char DSAUPD_ ();
 
18479
int
 
18480
main ()
 
18481
{
 
18482
return DSAUPD_ ();
 
18483
  ;
 
18484
  return 0;
 
18485
}
 
18486
_ACEOF
 
18487
rm -f conftest.$ac_objext conftest$ac_exeext
 
18488
if { (ac_try="$ac_link"
 
18489
case "(($ac_try" in
 
18490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18491
  *) ac_try_echo=$ac_try;;
 
18492
esac
 
18493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18494
  (eval "$ac_link") 2>conftest.er1
 
18495
  ac_status=$?
 
18496
  grep -v '^ *+' conftest.er1 >conftest.err
 
18497
  rm -f conftest.er1
 
18498
  cat conftest.err >&5
 
18499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18500
  (exit $ac_status); } && {
 
18501
         test -z "$ac_c_werror_flag" ||
 
18502
         test ! -s conftest.err
 
18503
       } && test -s conftest$ac_exeext &&
 
18504
       $as_test_x conftest$ac_exeext; then
 
18505
  ac_cv_lib_arpack_DSAUPD_=yes
 
18506
else
 
18507
  echo "$as_me: failed program was:" >&5
 
18508
sed 's/^/| /' conftest.$ac_ext >&5
 
18509
 
 
18510
        ac_cv_lib_arpack_DSAUPD_=no
 
18511
fi
 
18512
 
 
18513
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18514
      conftest$ac_exeext conftest.$ac_ext
 
18515
LIBS=$ac_check_lib_save_LIBS
 
18516
fi
 
18517
{ echo "$as_me:$LINENO: result: $ac_cv_lib_arpack_DSAUPD_" >&5
 
18518
echo "${ECHO_T}$ac_cv_lib_arpack_DSAUPD_" >&6; }
 
18519
if test $ac_cv_lib_arpack_DSAUPD_ = yes; then
 
18520
  cat >>confdefs.h <<_ACEOF
 
18521
#define HAVE_LIBARPACK 1
 
18522
_ACEOF
 
18523
 
 
18524
  LIBS="-larpack $LIBS"
 
18525
 
 
18526
else
 
18527
 
 
18528
{ echo "$as_me:$LINENO: checking for DSAUPD in -larpack" >&5
 
18529
echo $ECHO_N "checking for DSAUPD in -larpack... $ECHO_C" >&6; }
 
18530
if test "${ac_cv_lib_arpack_DSAUPD+set}" = set; then
 
18531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18532
else
 
18533
  ac_check_lib_save_LIBS=$LIBS
 
18534
LIBS="-larpack  $LIBS"
 
18535
cat >conftest.$ac_ext <<_ACEOF
 
18536
/* confdefs.h.  */
 
18537
_ACEOF
 
18538
cat confdefs.h >>conftest.$ac_ext
 
18539
cat >>conftest.$ac_ext <<_ACEOF
 
18540
/* end confdefs.h.  */
 
18541
 
 
18542
/* Override any GCC internal prototype to avoid an error.
 
18543
   Use char because int might match the return type of a GCC
 
18544
   builtin and then its argument prototype would still apply.  */
 
18545
#ifdef __cplusplus
 
18546
extern "C"
 
18547
#endif
 
18548
char DSAUPD ();
 
18549
int
 
18550
main ()
 
18551
{
 
18552
return DSAUPD ();
 
18553
  ;
 
18554
  return 0;
 
18555
}
 
18556
_ACEOF
 
18557
rm -f conftest.$ac_objext conftest$ac_exeext
 
18558
if { (ac_try="$ac_link"
 
18559
case "(($ac_try" in
 
18560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18561
  *) ac_try_echo=$ac_try;;
 
18562
esac
 
18563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18564
  (eval "$ac_link") 2>conftest.er1
 
18565
  ac_status=$?
 
18566
  grep -v '^ *+' conftest.er1 >conftest.err
 
18567
  rm -f conftest.er1
 
18568
  cat conftest.err >&5
 
18569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18570
  (exit $ac_status); } && {
 
18571
         test -z "$ac_c_werror_flag" ||
 
18572
         test ! -s conftest.err
 
18573
       } && test -s conftest$ac_exeext &&
 
18574
       $as_test_x conftest$ac_exeext; then
 
18575
  ac_cv_lib_arpack_DSAUPD=yes
 
18576
else
 
18577
  echo "$as_me: failed program was:" >&5
 
18578
sed 's/^/| /' conftest.$ac_ext >&5
 
18579
 
 
18580
        ac_cv_lib_arpack_DSAUPD=no
 
18581
fi
 
18582
 
 
18583
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18584
      conftest$ac_exeext conftest.$ac_ext
 
18585
LIBS=$ac_check_lib_save_LIBS
 
18586
fi
 
18587
{ echo "$as_me:$LINENO: result: $ac_cv_lib_arpack_DSAUPD" >&5
 
18588
echo "${ECHO_T}$ac_cv_lib_arpack_DSAUPD" >&6; }
 
18589
if test $ac_cv_lib_arpack_DSAUPD = yes; then
 
18590
  cat >>confdefs.h <<_ACEOF
 
18591
#define HAVE_LIBARPACK 1
 
18592
_ACEOF
 
18593
 
 
18594
  LIBS="-larpack $LIBS"
 
18595
 
 
18596
else
 
18597
  { echo "$as_me:$LINENO: result: not found" >&5
 
18598
echo "${ECHO_T}not found" >&6; }
 
18599
fi
 
18600
 
 
18601
fi
 
18602
 
 
18603
fi
 
18604
 
 
18605
fi
 
18606
 
 
18607
  LDFLAGS="${LDFLAGS} -larpack"
 
18608
else
 
18609
 
 
18610
cat >>confdefs.h <<\_ACEOF
 
18611
#define INTERNAL_ARPACK 1
 
18612
_ACEOF
 
18613
 
 
18614
fi
 
18615
 
 
18616
 if test x$internal_arpack = xyes; then
 
18617
  INTERNAL_ARPACK_TRUE=
 
18618
  INTERNAL_ARPACK_FALSE='#'
 
18619
else
 
18620
  INTERNAL_ARPACK_TRUE='#'
 
18621
  INTERNAL_ARPACK_FALSE=
 
18622
fi
 
18623
 
 
18624
 if test x$internal_lapack = xyes; then
 
18625
  INTERNAL_LAPACK_TRUE=
 
18626
  INTERNAL_LAPACK_FALSE='#'
 
18627
else
 
18628
  INTERNAL_LAPACK_TRUE='#'
 
18629
  INTERNAL_LAPACK_FALSE=
 
18630
fi
 
18631
 
 
18632
 if test x$internal_blas = xyes; then
 
18633
  INTERNAL_BLAS_TRUE=
 
18634
  INTERNAL_BLAS_FALSE='#'
 
18635
else
 
18636
  INTERNAL_BLAS_TRUE='#'
 
18637
  INTERNAL_BLAS_FALSE=
 
18638
fi
 
18639
 
 
18640
 
 
18641
if test "$debug" == "yes"; then
 
18642
  CFLAGS="${CFLAGS} -ggdb -DRC_DEBUG"
 
18643
  CPPFLAGS="${CFLAGS} -ggdb -DRC_DEBUG"
 
18644
  CXXFLAGS="${CFLAGS} -ggdb -DRC_DEBUG"
 
18645
fi
 
18646
 
 
18647
if test "$use_gprof" == "yes"; then
 
18648
  CFLAGS="${CFLAGS} -pg"
 
18649
  CPPFLAGS="${CFLAGS} -pg"
 
18650
  CXXFLAGS="${CFLAGS} -pg"
 
18651
fi
 
18652
 
 
18653
if test "$use_shell" == "yes"; then
 
18654
  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
18655
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
18656
LN_S=$as_ln_s
 
18657
if test "$LN_S" = "ln -s"; then
 
18658
  { echo "$as_me:$LINENO: result: yes" >&5
 
18659
echo "${ECHO_T}yes" >&6; }
 
18660
else
 
18661
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
18662
echo "${ECHO_T}no, using $LN_S" >&6; }
 
18663
fi
 
18664
 
 
18665
fi
 
18666
 
 
18667
ac_config_files="$ac_config_files Makefile src/Makefile igraph.pc igraph_Info.plist doc/Makefile doc/book/Makefile interfaces/R/configure.in interfaces/R/Makefile interfaces/R/src/Makevars.win interfaces/R/DESCRIPTION interfaces/Makefile interfaces/shell/Makefile"
 
18668
 
 
18669
cat >confcache <<\_ACEOF
 
18670
# This file is a shell script that caches the results of configure
 
18671
# tests run on this system so they can be shared between configure
 
18672
# scripts and configure runs, see configure's option --config-cache.
 
18673
# It is not useful on other systems.  If it contains results you don't
 
18674
# want to keep, you may remove or edit it.
 
18675
#
 
18676
# config.status only pays attention to the cache file if you give it
 
18677
# the --recheck option to rerun configure.
 
18678
#
 
18679
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
18680
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
18681
# following values.
 
18682
 
 
18683
_ACEOF
 
18684
 
 
18685
# The following way of writing the cache mishandles newlines in values,
 
18686
# but we know of no workaround that is simple, portable, and efficient.
 
18687
# So, we kill variables containing newlines.
 
18688
# Ultrix sh set writes to stderr and can't be redirected directly,
 
18689
# and sets the high bit in the cache file unless we assign to the vars.
 
18690
(
 
18691
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
18692
    eval ac_val=\$$ac_var
 
18693
    case $ac_val in #(
 
18694
    *${as_nl}*)
 
18695
      case $ac_var in #(
 
18696
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
18697
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
18698
      esac
 
18699
      case $ac_var in #(
 
18700
      _ | IFS | as_nl) ;; #(
 
18701
      *) $as_unset $ac_var ;;
 
18702
      esac ;;
 
18703
    esac
 
18704
  done
 
18705
 
 
18706
  (set) 2>&1 |
 
18707
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
18708
    *${as_nl}ac_space=\ *)
 
18709
      # `set' does not quote correctly, so add quotes (double-quote
 
18710
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
18711
      sed -n \
 
18712
        "s/'/'\\\\''/g;
 
18713
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
18714
      ;; #(
 
18715
    *)
 
18716
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
18717
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
18718
      ;;
 
18719
    esac |
 
18720
    sort
 
18721
) |
 
18722
  sed '
 
18723
     /^ac_cv_env_/b end
 
18724
     t clear
 
18725
     :clear
 
18726
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
18727
     t end
 
18728
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
18729
     :end' >>confcache
 
18730
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
18731
  if test -w "$cache_file"; then
 
18732
    test "x$cache_file" != "x/dev/null" &&
 
18733
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
18734
echo "$as_me: updating cache $cache_file" >&6;}
 
18735
    cat confcache >$cache_file
 
18736
  else
 
18737
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
18738
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
18739
  fi
 
18740
fi
 
18741
rm -f confcache
 
18742
 
 
18743
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
18744
# Let make expand exec_prefix.
 
18745
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
18746
 
 
18747
DEFS=-DHAVE_CONFIG_H
 
18748
 
 
18749
ac_libobjs=
 
18750
ac_ltlibobjs=
 
18751
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
18752
  # 1. Remove the extension, and $U if already installed.
 
18753
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
18754
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
18755
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
18756
  #    will be set to the directory where LIBOBJS objects are built.
 
18757
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
18758
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
18759
done
 
18760
LIBOBJS=$ac_libobjs
 
18761
 
 
18762
LTLIBOBJS=$ac_ltlibobjs
 
18763
 
 
18764
 
 
18765
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
18766
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
18767
Usually this means the macro was only invoked conditionally." >&5
 
18768
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
18769
Usually this means the macro was only invoked conditionally." >&2;}
 
18770
   { (exit 1); exit 1; }; }
 
18771
fi
 
18772
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
18773
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
18774
Usually this means the macro was only invoked conditionally." >&5
 
18775
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
18776
Usually this means the macro was only invoked conditionally." >&2;}
 
18777
   { (exit 1); exit 1; }; }
 
18778
fi
 
18779
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18780
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
18781
Usually this means the macro was only invoked conditionally." >&5
 
18782
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
18783
Usually this means the macro was only invoked conditionally." >&2;}
 
18784
   { (exit 1); exit 1; }; }
 
18785
fi
 
18786
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
18787
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
18788
Usually this means the macro was only invoked conditionally." >&5
 
18789
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
18790
Usually this means the macro was only invoked conditionally." >&2;}
 
18791
   { (exit 1); exit 1; }; }
 
18792
fi
 
18793
if test -z "${USE_SHELL_TRUE}" && test -z "${USE_SHELL_FALSE}"; then
 
18794
  { { echo "$as_me:$LINENO: error: conditional \"USE_SHELL\" was never defined.
 
18795
Usually this means the macro was only invoked conditionally." >&5
 
18796
echo "$as_me: error: conditional \"USE_SHELL\" was never defined.
 
18797
Usually this means the macro was only invoked conditionally." >&2;}
 
18798
   { (exit 1); exit 1; }; }
 
18799
fi
 
18800
if test -z "${INTERNAL_ARPACK_TRUE}" && test -z "${INTERNAL_ARPACK_FALSE}"; then
 
18801
  { { echo "$as_me:$LINENO: error: conditional \"INTERNAL_ARPACK\" was never defined.
 
18802
Usually this means the macro was only invoked conditionally." >&5
 
18803
echo "$as_me: error: conditional \"INTERNAL_ARPACK\" was never defined.
 
18804
Usually this means the macro was only invoked conditionally." >&2;}
 
18805
   { (exit 1); exit 1; }; }
 
18806
fi
 
18807
if test -z "${INTERNAL_LAPACK_TRUE}" && test -z "${INTERNAL_LAPACK_FALSE}"; then
 
18808
  { { echo "$as_me:$LINENO: error: conditional \"INTERNAL_LAPACK\" was never defined.
 
18809
Usually this means the macro was only invoked conditionally." >&5
 
18810
echo "$as_me: error: conditional \"INTERNAL_LAPACK\" was never defined.
 
18811
Usually this means the macro was only invoked conditionally." >&2;}
 
18812
   { (exit 1); exit 1; }; }
 
18813
fi
 
18814
if test -z "${INTERNAL_BLAS_TRUE}" && test -z "${INTERNAL_BLAS_FALSE}"; then
 
18815
  { { echo "$as_me:$LINENO: error: conditional \"INTERNAL_BLAS\" was never defined.
 
18816
Usually this means the macro was only invoked conditionally." >&5
 
18817
echo "$as_me: error: conditional \"INTERNAL_BLAS\" was never defined.
 
18818
Usually this means the macro was only invoked conditionally." >&2;}
 
18819
   { (exit 1); exit 1; }; }
 
18820
fi
 
18821
 
 
18822
: ${CONFIG_STATUS=./config.status}
 
18823
ac_clean_files_save=$ac_clean_files
 
18824
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
18825
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
18826
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
18827
cat >$CONFIG_STATUS <<_ACEOF
 
18828
#! $SHELL
 
18829
# Generated by $as_me.
 
18830
# Run this file to recreate the current configuration.
 
18831
# Compiler output produced by configure, useful for debugging
 
18832
# configure, is in config.log if it exists.
 
18833
 
 
18834
debug=false
 
18835
ac_cs_recheck=false
 
18836
ac_cs_silent=false
 
18837
SHELL=\${CONFIG_SHELL-$SHELL}
 
18838
_ACEOF
 
18839
 
 
18840
cat >>$CONFIG_STATUS <<\_ACEOF
 
18841
## --------------------- ##
 
18842
## M4sh Initialization.  ##
 
18843
## --------------------- ##
 
18844
 
 
18845
# Be more Bourne compatible
 
18846
DUALCASE=1; export DUALCASE # for MKS sh
 
18847
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18848
  emulate sh
 
18849
  NULLCMD=:
 
18850
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18851
  # is contrary to our usage.  Disable this feature.
 
18852
  alias -g '${1+"$@"}'='"$@"'
 
18853
  setopt NO_GLOB_SUBST
 
18854
else
 
18855
  case `(set -o) 2>/dev/null` in
 
18856
  *posix*) set -o posix ;;
 
18857
esac
 
18858
 
 
18859
fi
 
18860
 
 
18861
 
 
18862
 
 
18863
 
 
18864
# PATH needs CR
 
18865
# Avoid depending upon Character Ranges.
 
18866
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
18867
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
18868
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
18869
as_cr_digits='0123456789'
 
18870
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
18871
 
 
18872
# The user is always right.
 
18873
if test "${PATH_SEPARATOR+set}" != set; then
 
18874
  echo "#! /bin/sh" >conf$$.sh
 
18875
  echo  "exit 0"   >>conf$$.sh
 
18876
  chmod +x conf$$.sh
 
18877
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
18878
    PATH_SEPARATOR=';'
 
18879
  else
 
18880
    PATH_SEPARATOR=:
 
18881
  fi
 
18882
  rm -f conf$$.sh
 
18883
fi
 
18884
 
 
18885
# Support unset when possible.
 
18886
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
18887
  as_unset=unset
 
18888
else
 
18889
  as_unset=false
 
18890
fi
 
18891
 
 
18892
 
 
18893
# IFS
 
18894
# We need space, tab and new line, in precisely that order.  Quoting is
 
18895
# there to prevent editors from complaining about space-tab.
 
18896
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
18897
# splitting by setting IFS to empty value.)
 
18898
as_nl='
 
18899
'
 
18900
IFS=" ""        $as_nl"
 
18901
 
 
18902
# Find who we are.  Look in the path if we contain no directory separator.
 
18903
case $0 in
 
18904
  *[\\/]* ) as_myself=$0 ;;
 
18905
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
18906
for as_dir in $PATH
 
18907
do
 
18908
  IFS=$as_save_IFS
 
18909
  test -z "$as_dir" && as_dir=.
 
18910
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
18911
done
 
18912
IFS=$as_save_IFS
 
18913
 
 
18914
     ;;
 
18915
esac
 
18916
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
18917
# in which case we are not to be found in the path.
 
18918
if test "x$as_myself" = x; then
 
18919
  as_myself=$0
 
18920
fi
 
18921
if test ! -f "$as_myself"; then
 
18922
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
18923
  { (exit 1); exit 1; }
 
18924
fi
 
18925
 
 
18926
# Work around bugs in pre-3.0 UWIN ksh.
 
18927
for as_var in ENV MAIL MAILPATH
 
18928
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18929
done
 
18930
PS1='$ '
 
18931
PS2='> '
 
18932
PS4='+ '
 
18933
 
 
18934
# NLS nuisances.
 
18935
for as_var in \
 
18936
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
18937
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
18938
  LC_TELEPHONE LC_TIME
 
18939
do
 
18940
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
18941
    eval $as_var=C; export $as_var
 
18942
  else
 
18943
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
18944
  fi
 
18945
done
 
18946
 
 
18947
# Required to use basename.
 
18948
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
18949
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
18950
  as_expr=expr
 
18951
else
 
18952
  as_expr=false
 
18953
fi
 
18954
 
 
18955
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
18956
  as_basename=basename
 
18957
else
 
18958
  as_basename=false
 
18959
fi
 
18960
 
 
18961
 
 
18962
# Name of the executable.
 
18963
as_me=`$as_basename -- "$0" ||
 
18964
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
18965
         X"$0" : 'X\(//\)$' \| \
 
18966
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
18967
echo X/"$0" |
 
18968
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
18969
            s//\1/
 
18970
            q
 
18971
          }
 
18972
          /^X\/\(\/\/\)$/{
 
18973
            s//\1/
 
18974
            q
 
18975
          }
 
18976
          /^X\/\(\/\).*/{
 
18977
            s//\1/
 
18978
            q
 
18979
          }
 
18980
          s/.*/./; q'`
 
18981
 
 
18982
# CDPATH.
 
18983
$as_unset CDPATH
 
18984
 
 
18985
 
 
18986
 
 
18987
  as_lineno_1=$LINENO
 
18988
  as_lineno_2=$LINENO
 
18989
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
18990
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
18991
 
 
18992
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
18993
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
18994
  # line-number line after each line using $LINENO; the second 'sed'
 
18995
  # does the real work.  The second script uses 'N' to pair each
 
18996
  # line-number line with the line containing $LINENO, and appends
 
18997
  # trailing '-' during substitution so that $LINENO is not a special
 
18998
  # case at line end.
 
18999
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
19000
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
19001
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
19002
  sed -n '
 
19003
    p
 
19004
    /[$]LINENO/=
 
19005
  ' <$as_myself |
 
19006
    sed '
 
19007
      s/[$]LINENO.*/&-/
 
19008
      t lineno
 
19009
      b
 
19010
      :lineno
 
19011
      N
 
19012
      :loop
 
19013
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
19014
      t loop
 
19015
      s/-\n.*//
 
19016
    ' >$as_me.lineno &&
 
19017
  chmod +x "$as_me.lineno" ||
 
19018
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
19019
   { (exit 1); exit 1; }; }
 
19020
 
 
19021
  # Don't try to exec as it changes $[0], causing all sort of problems
 
19022
  # (the dirname of $[0] is not the place where we might find the
 
19023
  # original and so on.  Autoconf is especially sensitive to this).
 
19024
  . "./$as_me.lineno"
 
19025
  # Exit status is that of the last command.
 
19026
  exit
 
19027
}
 
19028
 
 
19029
 
 
19030
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
19031
  as_dirname=dirname
 
19032
else
 
19033
  as_dirname=false
 
19034
fi
 
19035
 
 
19036
ECHO_C= ECHO_N= ECHO_T=
 
19037
case `echo -n x` in
 
19038
-n*)
 
19039
  case `echo 'x\c'` in
 
19040
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
19041
  *)   ECHO_C='\c';;
 
19042
  esac;;
 
19043
*)
 
19044
  ECHO_N='-n';;
 
19045
esac
 
19046
 
 
19047
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
19048
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
19049
  as_expr=expr
 
19050
else
 
19051
  as_expr=false
 
19052
fi
 
19053
 
 
19054
rm -f conf$$ conf$$.exe conf$$.file
 
19055
if test -d conf$$.dir; then
 
19056
  rm -f conf$$.dir/conf$$.file
 
19057
else
 
19058
  rm -f conf$$.dir
 
19059
  mkdir conf$$.dir
 
19060
fi
 
19061
echo >conf$$.file
 
19062
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
19063
  as_ln_s='ln -s'
 
19064
  # ... but there are two gotchas:
 
19065
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
19066
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
19067
  # In both cases, we have to default to `cp -p'.
 
19068
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
19069
    as_ln_s='cp -p'
 
19070
elif ln conf$$.file conf$$ 2>/dev/null; then
 
19071
  as_ln_s=ln
 
19072
else
 
19073
  as_ln_s='cp -p'
 
19074
fi
 
19075
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
19076
rmdir conf$$.dir 2>/dev/null
 
19077
 
 
19078
if mkdir -p . 2>/dev/null; then
 
19079
  as_mkdir_p=:
 
19080
else
 
19081
  test -d ./-p && rmdir ./-p
 
19082
  as_mkdir_p=false
 
19083
fi
 
19084
 
 
19085
if test -x / >/dev/null 2>&1; then
 
19086
  as_test_x='test -x'
 
19087
else
 
19088
  if ls -dL / >/dev/null 2>&1; then
 
19089
    as_ls_L_option=L
 
19090
  else
 
19091
    as_ls_L_option=
 
19092
  fi
 
19093
  as_test_x='
 
19094
    eval sh -c '\''
 
19095
      if test -d "$1"; then
 
19096
        test -d "$1/.";
 
19097
      else
 
19098
        case $1 in
 
19099
        -*)set "./$1";;
 
19100
        esac;
 
19101
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
19102
        ???[sx]*):;;*)false;;esac;fi
 
19103
    '\'' sh
 
19104
  '
 
19105
fi
 
19106
as_executable_p=$as_test_x
 
19107
 
 
19108
# Sed expression to map a string onto a valid CPP name.
 
19109
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
19110
 
 
19111
# Sed expression to map a string onto a valid variable name.
 
19112
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
19113
 
 
19114
 
 
19115
exec 6>&1
 
19116
 
 
19117
# Save the log message, to keep $[0] and so on meaningful, and to
 
19118
# report actual input values of CONFIG_FILES etc. instead of their
 
19119
# values after options handling.
 
19120
ac_log="
 
19121
This file was extended by igraph $as_me 0.5.3, which was
 
19122
generated by GNU Autoconf 2.61.  Invocation command line was
 
19123
 
 
19124
  CONFIG_FILES    = $CONFIG_FILES
 
19125
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
19126
  CONFIG_LINKS    = $CONFIG_LINKS
 
19127
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
19128
  $ $0 $@
 
19129
 
 
19130
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
19131
"
 
19132
 
 
19133
_ACEOF
 
19134
 
 
19135
cat >>$CONFIG_STATUS <<_ACEOF
 
19136
# Files that config.status was made for.
 
19137
config_files="$ac_config_files"
 
19138
config_headers="$ac_config_headers"
 
19139
config_commands="$ac_config_commands"
 
19140
 
 
19141
_ACEOF
 
19142
 
 
19143
cat >>$CONFIG_STATUS <<\_ACEOF
 
19144
ac_cs_usage="\
 
19145
\`$as_me' instantiates files from templates according to the
 
19146
current configuration.
 
19147
 
 
19148
Usage: $0 [OPTIONS] [FILE]...
 
19149
 
 
19150
  -h, --help       print this help, then exit
 
19151
  -V, --version    print version number and configuration settings, then exit
 
19152
  -q, --quiet      do not print progress messages
 
19153
  -d, --debug      don't remove temporary files
 
19154
      --recheck    update $as_me by reconfiguring in the same conditions
 
19155
  --file=FILE[:TEMPLATE]
 
19156
                   instantiate the configuration file FILE
 
19157
  --header=FILE[:TEMPLATE]
 
19158
                   instantiate the configuration header FILE
 
19159
 
 
19160
Configuration files:
 
19161
$config_files
 
19162
 
 
19163
Configuration headers:
 
19164
$config_headers
 
19165
 
 
19166
Configuration commands:
 
19167
$config_commands
 
19168
 
 
19169
Report bugs to <bug-autoconf@gnu.org>."
 
19170
 
 
19171
_ACEOF
 
19172
cat >>$CONFIG_STATUS <<_ACEOF
 
19173
ac_cs_version="\\
 
19174
igraph config.status 0.5.3
 
19175
configured by $0, generated by GNU Autoconf 2.61,
 
19176
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
19177
 
 
19178
Copyright (C) 2006 Free Software Foundation, Inc.
 
19179
This config.status script is free software; the Free Software Foundation
 
19180
gives unlimited permission to copy, distribute and modify it."
 
19181
 
 
19182
ac_pwd='$ac_pwd'
 
19183
srcdir='$srcdir'
 
19184
INSTALL='$INSTALL'
 
19185
MKDIR_P='$MKDIR_P'
 
19186
_ACEOF
 
19187
 
 
19188
cat >>$CONFIG_STATUS <<\_ACEOF
 
19189
# If no file are specified by the user, then we need to provide default
 
19190
# value.  By we need to know if files were specified by the user.
 
19191
ac_need_defaults=:
 
19192
while test $# != 0
 
19193
do
 
19194
  case $1 in
 
19195
  --*=*)
 
19196
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
19197
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
19198
    ac_shift=:
 
19199
    ;;
 
19200
  *)
 
19201
    ac_option=$1
 
19202
    ac_optarg=$2
 
19203
    ac_shift=shift
 
19204
    ;;
 
19205
  esac
 
19206
 
 
19207
  case $ac_option in
 
19208
  # Handling of the options.
 
19209
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
19210
    ac_cs_recheck=: ;;
 
19211
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
19212
    echo "$ac_cs_version"; exit ;;
 
19213
  --debug | --debu | --deb | --de | --d | -d )
 
19214
    debug=: ;;
 
19215
  --file | --fil | --fi | --f )
 
19216
    $ac_shift
 
19217
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
19218
    ac_need_defaults=false;;
 
19219
  --header | --heade | --head | --hea )
 
19220
    $ac_shift
 
19221
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
19222
    ac_need_defaults=false;;
 
19223
  --he | --h)
 
19224
    # Conflict between --help and --header
 
19225
    { echo "$as_me: error: ambiguous option: $1
 
19226
Try \`$0 --help' for more information." >&2
 
19227
   { (exit 1); exit 1; }; };;
 
19228
  --help | --hel | -h )
 
19229
    echo "$ac_cs_usage"; exit ;;
 
19230
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
19231
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
19232
    ac_cs_silent=: ;;
 
19233
 
 
19234
  # This is an error.
 
19235
  -*) { echo "$as_me: error: unrecognized option: $1
 
19236
Try \`$0 --help' for more information." >&2
 
19237
   { (exit 1); exit 1; }; } ;;
 
19238
 
 
19239
  *) ac_config_targets="$ac_config_targets $1"
 
19240
     ac_need_defaults=false ;;
 
19241
 
 
19242
  esac
 
19243
  shift
 
19244
done
 
19245
 
 
19246
ac_configure_extra_args=
 
19247
 
 
19248
if $ac_cs_silent; then
 
19249
  exec 6>/dev/null
 
19250
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
19251
fi
 
19252
 
 
19253
_ACEOF
 
19254
cat >>$CONFIG_STATUS <<_ACEOF
 
19255
if \$ac_cs_recheck; then
 
19256
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
19257
  CONFIG_SHELL=$SHELL
 
19258
  export CONFIG_SHELL
 
19259
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
19260
fi
 
19261
 
 
19262
_ACEOF
 
19263
cat >>$CONFIG_STATUS <<\_ACEOF
 
19264
exec 5>>config.log
 
19265
{
 
19266
  echo
 
19267
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
19268
## Running $as_me. ##
 
19269
_ASBOX
 
19270
  echo "$ac_log"
 
19271
} >&5
 
19272
 
 
19273
_ACEOF
 
19274
cat >>$CONFIG_STATUS <<_ACEOF
 
19275
#
 
19276
# INIT-COMMANDS
 
19277
#
 
19278
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
19279
 
 
19280
 
 
19281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
19282
# if CDPATH is set.
 
19283
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
19284
 
 
19285
sed_quote_subst='$sed_quote_subst'
 
19286
double_quote_subst='$double_quote_subst'
 
19287
delay_variable_subst='$delay_variable_subst'
 
19288
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
 
19289
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
19290
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
 
19291
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
 
19292
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
 
19293
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
 
19294
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19295
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
 
19296
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
 
19297
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
19298
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
 
19299
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
 
19300
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
 
19301
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
 
19302
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
 
19303
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
 
19304
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
 
19305
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19306
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19307
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
 
19308
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
 
19309
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
 
19310
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
 
19311
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
 
19312
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
 
19313
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
 
19314
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
 
19315
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
 
19316
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
 
19317
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19318
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19319
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
 
19320
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
 
19321
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
 
19322
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
19323
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
 
19324
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
 
19325
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19326
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19327
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19328
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
 
19329
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
 
19330
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
 
19331
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
 
19332
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
 
19333
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
 
19334
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
 
19335
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
19336
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
 
19337
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
 
19338
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
 
19339
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
 
19340
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19341
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
 
19342
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
 
19343
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19344
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
 
19345
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
 
19346
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
 
19347
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
 
19348
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
 
19349
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
 
19350
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
 
19351
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
 
19352
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19353
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19354
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
 
19355
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
 
19356
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19357
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19358
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
 
19359
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19360
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19361
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19362
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19363
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19364
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19365
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
19366
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19367
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
 
19368
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19369
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
 
19370
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
 
19371
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
 
19372
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
 
19373
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
 
19374
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19375
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
 
19376
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
 
19377
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
 
19378
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
 
19379
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
 
19380
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19381
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
19382
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
 
19383
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19384
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19385
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
 
19386
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
 
19387
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
 
19388
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
 
19389
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19390
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
 
19391
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
 
19392
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19393
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19394
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19395
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19396
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19397
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
 
19398
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
 
19399
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
 
19400
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19401
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
 
19402
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
 
19403
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
 
19404
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
 
19405
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
 
19406
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
19407
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
 
19408
compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
 
19409
predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
19410
postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
 
19411
predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
 
19412
postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
 
19413
compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
 
19414
LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19415
old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19416
compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19417
GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19418
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19419
lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19420
lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19421
lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19422
lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19423
archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19424
enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19425
export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19426
whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19427
compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19428
old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19429
old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19430
archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19431
archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19432
module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19433
module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19434
with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19435
allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19436
no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19437
hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19438
hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19439
hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19440
hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19441
hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19442
hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19443
hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19444
hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19445
inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19446
link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19447
fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19448
always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19449
export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19450
exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19451
include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19452
prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19453
file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19454
hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19455
compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19456
predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19457
postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19458
predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19459
postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19460
compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
 
19461
 
 
19462
LTCC='$LTCC'
 
19463
LTCFLAGS='$LTCFLAGS'
 
19464
compiler='$compiler_DEFAULT'
 
19465
 
 
19466
# Quote evaled strings.
 
19467
for var in SED \
 
19468
GREP \
 
19469
EGREP \
 
19470
FGREP \
 
19471
LD \
 
19472
NM \
 
19473
LN_S \
 
19474
lt_SP2NL \
 
19475
lt_NL2SP \
 
19476
reload_flag \
 
19477
deplibs_check_method \
 
19478
file_magic_cmd \
 
19479
AR \
 
19480
AR_FLAGS \
 
19481
STRIP \
 
19482
RANLIB \
 
19483
CC \
 
19484
CFLAGS \
 
19485
compiler \
 
19486
lt_cv_sys_global_symbol_pipe \
 
19487
lt_cv_sys_global_symbol_to_cdecl \
 
19488
lt_cv_sys_global_symbol_to_c_name_address \
 
19489
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
 
19490
SHELL \
 
19491
ECHO \
 
19492
lt_prog_compiler_no_builtin_flag \
 
19493
lt_prog_compiler_wl \
 
19494
lt_prog_compiler_pic \
 
19495
lt_prog_compiler_static \
 
19496
lt_cv_prog_compiler_c_o \
 
19497
need_locks \
 
19498
DSYMUTIL \
 
19499
NMEDIT \
 
19500
LIPO \
 
19501
OTOOL \
 
19502
OTOOL64 \
 
19503
shrext_cmds \
 
19504
export_dynamic_flag_spec \
 
19505
whole_archive_flag_spec \
 
19506
compiler_needs_object \
 
19507
with_gnu_ld \
 
19508
allow_undefined_flag \
 
19509
no_undefined_flag \
 
19510
hardcode_libdir_flag_spec \
 
19511
hardcode_libdir_flag_spec_ld \
 
19512
hardcode_libdir_separator \
 
19513
fix_srcfile_path \
 
19514
exclude_expsyms \
 
19515
include_expsyms \
 
19516
file_list_spec \
 
19517
variables_saved_for_relink \
 
19518
libname_spec \
 
19519
library_names_spec \
 
19520
soname_spec \
 
19521
finish_eval \
 
19522
old_striplib \
 
19523
striplib \
 
19524
compiler_lib_search_dirs \
 
19525
predep_objects \
 
19526
postdep_objects \
 
19527
predeps \
 
19528
postdeps \
 
19529
compiler_lib_search_path \
 
19530
LD_CXX \
 
19531
compiler_CXX \
 
19532
lt_prog_compiler_no_builtin_flag_CXX \
 
19533
lt_prog_compiler_wl_CXX \
 
19534
lt_prog_compiler_pic_CXX \
 
19535
lt_prog_compiler_static_CXX \
 
19536
lt_cv_prog_compiler_c_o_CXX \
 
19537
export_dynamic_flag_spec_CXX \
 
19538
whole_archive_flag_spec_CXX \
 
19539
compiler_needs_object_CXX \
 
19540
with_gnu_ld_CXX \
 
19541
allow_undefined_flag_CXX \
 
19542
no_undefined_flag_CXX \
 
19543
hardcode_libdir_flag_spec_CXX \
 
19544
hardcode_libdir_flag_spec_ld_CXX \
 
19545
hardcode_libdir_separator_CXX \
 
19546
fix_srcfile_path_CXX \
 
19547
exclude_expsyms_CXX \
 
19548
include_expsyms_CXX \
 
19549
file_list_spec_CXX \
 
19550
compiler_lib_search_dirs_CXX \
 
19551
predep_objects_CXX \
 
19552
postdep_objects_CXX \
 
19553
predeps_CXX \
 
19554
postdeps_CXX \
 
19555
compiler_lib_search_path_CXX; do
 
19556
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
19557
    *[\\\\\\\`\\"\\\$]*)
 
19558
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
 
19559
      ;;
 
19560
    *)
 
19561
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19562
      ;;
 
19563
    esac
 
19564
done
 
19565
 
 
19566
# Double-quote double-evaled strings.
 
19567
for var in reload_cmds \
 
19568
old_postinstall_cmds \
 
19569
old_postuninstall_cmds \
 
19570
old_archive_cmds \
 
19571
extract_expsyms_cmds \
 
19572
old_archive_from_new_cmds \
 
19573
old_archive_from_expsyms_cmds \
 
19574
archive_cmds \
 
19575
archive_expsym_cmds \
 
19576
module_cmds \
 
19577
module_expsym_cmds \
 
19578
export_symbols_cmds \
 
19579
prelink_cmds \
 
19580
postinstall_cmds \
 
19581
postuninstall_cmds \
 
19582
finish_cmds \
 
19583
sys_lib_search_path_spec \
 
19584
sys_lib_dlsearch_path_spec \
 
19585
old_archive_cmds_CXX \
 
19586
old_archive_from_new_cmds_CXX \
 
19587
old_archive_from_expsyms_cmds_CXX \
 
19588
archive_cmds_CXX \
 
19589
archive_expsym_cmds_CXX \
 
19590
module_cmds_CXX \
 
19591
module_expsym_cmds_CXX \
 
19592
export_symbols_cmds_CXX \
 
19593
prelink_cmds_CXX; do
 
19594
    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
 
19595
    *[\\\\\\\`\\"\\\$]*)
 
19596
      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
 
19597
      ;;
 
19598
    *)
 
19599
      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
 
19600
      ;;
 
19601
    esac
 
19602
done
 
19603
 
 
19604
# Fix-up fallback echo if it was mangled by the above quoting rules.
 
19605
case \$lt_ECHO in
 
19606
*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
 
19607
  ;;
 
19608
esac
 
19609
 
 
19610
ac_aux_dir='$ac_aux_dir'
 
19611
xsi_shell='$xsi_shell'
 
19612
lt_shell_append='$lt_shell_append'
 
19613
 
 
19614
# See if we are running on zsh, and set the options which allow our
 
19615
# commands through without removal of \ escapes INIT.
 
19616
if test -n "\${ZSH_VERSION+set}" ; then
 
19617
   setopt NO_GLOB_SUBST
 
19618
fi
 
19619
 
 
19620
 
 
19621
    PACKAGE='$PACKAGE'
 
19622
    VERSION='$VERSION'
 
19623
    TIMESTAMP='$TIMESTAMP'
 
19624
    RM='$RM'
 
19625
    ofile='$ofile'
 
19626
 
 
19627
 
 
19628
 
 
19629
 
 
19630
 
 
19631
 
 
19632
_ACEOF
 
19633
 
 
19634
cat >>$CONFIG_STATUS <<\_ACEOF
 
19635
 
 
19636
# Handling of arguments.
 
19637
for ac_config_target in $ac_config_targets
 
19638
do
 
19639
  case $ac_config_target in
 
19640
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
19641
    "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
 
19642
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
19643
    "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
 
19644
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
19645
    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
 
19646
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
19647
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
19648
    "igraph.pc") CONFIG_FILES="$CONFIG_FILES igraph.pc" ;;
 
19649
    "igraph_Info.plist") CONFIG_FILES="$CONFIG_FILES igraph_Info.plist" ;;
 
19650
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
19651
    "doc/book/Makefile") CONFIG_FILES="$CONFIG_FILES doc/book/Makefile" ;;
 
19652
    "interfaces/R/configure.in") CONFIG_FILES="$CONFIG_FILES interfaces/R/configure.in" ;;
 
19653
    "interfaces/R/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/R/Makefile" ;;
 
19654
    "interfaces/R/src/Makevars.win") CONFIG_FILES="$CONFIG_FILES interfaces/R/src/Makevars.win" ;;
 
19655
    "interfaces/R/DESCRIPTION") CONFIG_FILES="$CONFIG_FILES interfaces/R/DESCRIPTION" ;;
 
19656
    "interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/Makefile" ;;
 
19657
    "interfaces/shell/Makefile") CONFIG_FILES="$CONFIG_FILES interfaces/shell/Makefile" ;;
 
19658
 
 
19659
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
19660
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
19661
   { (exit 1); exit 1; }; };;
 
19662
  esac
 
19663
done
 
19664
 
 
19665
 
 
19666
# If the user did not use the arguments to specify the items to instantiate,
 
19667
# then the envvar interface is used.  Set only those that are not.
 
19668
# We use the long form for the default assignment because of an extremely
 
19669
# bizarre bug on SunOS 4.1.3.
 
19670
if $ac_need_defaults; then
 
19671
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
19672
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
19673
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
19674
fi
 
19675
 
 
19676
# Have a temporary directory for convenience.  Make it in the build tree
 
19677
# simply because there is no reason against having it here, and in addition,
 
19678
# creating and moving files from /tmp can sometimes cause problems.
 
19679
# Hook for its removal unless debugging.
 
19680
# Note that there is a small window in which the directory will not be cleaned:
 
19681
# after its creation but before its name has been assigned to `$tmp'.
 
19682
$debug ||
 
19683
{
 
19684
  tmp=
 
19685
  trap 'exit_status=$?
 
19686
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
19687
' 0
 
19688
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
19689
}
 
19690
# Create a (secure) tmp directory for tmp files.
 
19691
 
 
19692
{
 
19693
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
19694
  test -n "$tmp" && test -d "$tmp"
 
19695
}  ||
 
19696
{
 
19697
  tmp=./conf$$-$RANDOM
 
19698
  (umask 077 && mkdir "$tmp")
 
19699
} ||
 
19700
{
 
19701
   echo "$me: cannot create a temporary directory in ." >&2
 
19702
   { (exit 1); exit 1; }
 
19703
}
 
19704
 
 
19705
#
 
19706
# Set up the sed scripts for CONFIG_FILES section.
 
19707
#
 
19708
 
 
19709
# No need to generate the scripts if there are no CONFIG_FILES.
 
19710
# This happens for instance when ./config.status config.h
 
19711
if test -n "$CONFIG_FILES"; then
 
19712
 
 
19713
_ACEOF
 
19714
 
 
19715
 
 
19716
 
 
19717
ac_delim='%!_!# '
 
19718
for ac_last_try in false false false false false :; do
 
19719
  cat >conf$$subs.sed <<_ACEOF
 
19720
SHELL!$SHELL$ac_delim
 
19721
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
19722
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
19723
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
19724
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
19725
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
19726
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
19727
exec_prefix!$exec_prefix$ac_delim
 
19728
prefix!$prefix$ac_delim
 
19729
program_transform_name!$program_transform_name$ac_delim
 
19730
bindir!$bindir$ac_delim
 
19731
sbindir!$sbindir$ac_delim
 
19732
libexecdir!$libexecdir$ac_delim
 
19733
datarootdir!$datarootdir$ac_delim
 
19734
datadir!$datadir$ac_delim
 
19735
sysconfdir!$sysconfdir$ac_delim
 
19736
sharedstatedir!$sharedstatedir$ac_delim
 
19737
localstatedir!$localstatedir$ac_delim
 
19738
includedir!$includedir$ac_delim
 
19739
oldincludedir!$oldincludedir$ac_delim
 
19740
docdir!$docdir$ac_delim
 
19741
infodir!$infodir$ac_delim
 
19742
htmldir!$htmldir$ac_delim
 
19743
dvidir!$dvidir$ac_delim
 
19744
pdfdir!$pdfdir$ac_delim
 
19745
psdir!$psdir$ac_delim
 
19746
libdir!$libdir$ac_delim
 
19747
localedir!$localedir$ac_delim
 
19748
mandir!$mandir$ac_delim
 
19749
DEFS!$DEFS$ac_delim
 
19750
ECHO_C!$ECHO_C$ac_delim
 
19751
ECHO_N!$ECHO_N$ac_delim
 
19752
ECHO_T!$ECHO_T$ac_delim
 
19753
LIBS!$LIBS$ac_delim
 
19754
build_alias!$build_alias$ac_delim
 
19755
host_alias!$host_alias$ac_delim
 
19756
target_alias!$target_alias$ac_delim
 
19757
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
19758
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
19759
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
19760
am__isrc!$am__isrc$ac_delim
 
19761
CYGPATH_W!$CYGPATH_W$ac_delim
 
19762
PACKAGE!$PACKAGE$ac_delim
 
19763
VERSION!$VERSION$ac_delim
 
19764
ACLOCAL!$ACLOCAL$ac_delim
 
19765
AUTOCONF!$AUTOCONF$ac_delim
 
19766
AUTOMAKE!$AUTOMAKE$ac_delim
 
19767
AUTOHEADER!$AUTOHEADER$ac_delim
 
19768
MAKEINFO!$MAKEINFO$ac_delim
 
19769
install_sh!$install_sh$ac_delim
 
19770
STRIP!$STRIP$ac_delim
 
19771
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
19772
mkdir_p!$mkdir_p$ac_delim
 
19773
AWK!$AWK$ac_delim
 
19774
SET_MAKE!$SET_MAKE$ac_delim
 
19775
am__leading_dot!$am__leading_dot$ac_delim
 
19776
AMTAR!$AMTAR$ac_delim
 
19777
am__tar!$am__tar$ac_delim
 
19778
am__untar!$am__untar$ac_delim
 
19779
CC!$CC$ac_delim
 
19780
CFLAGS!$CFLAGS$ac_delim
 
19781
LDFLAGS!$LDFLAGS$ac_delim
 
19782
CPPFLAGS!$CPPFLAGS$ac_delim
 
19783
ac_ct_CC!$ac_ct_CC$ac_delim
 
19784
EXEEXT!$EXEEXT$ac_delim
 
19785
OBJEXT!$OBJEXT$ac_delim
 
19786
DEPDIR!$DEPDIR$ac_delim
 
19787
am__include!$am__include$ac_delim
 
19788
am__quote!$am__quote$ac_delim
 
19789
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
19790
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
19791
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
19792
CCDEPMODE!$CCDEPMODE$ac_delim
 
19793
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
19794
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
19795
CXX!$CXX$ac_delim
 
19796
CXXFLAGS!$CXXFLAGS$ac_delim
 
19797
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
19798
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
19799
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
19800
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
19801
CXXCPP!$CXXCPP$ac_delim
 
19802
LEX!$LEX$ac_delim
 
19803
LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
 
19804
LEXLIB!$LEXLIB$ac_delim
 
19805
YACC!$YACC$ac_delim
 
19806
YFLAGS!$YFLAGS$ac_delim
 
19807
CPP!$CPP$ac_delim
 
19808
GREP!$GREP$ac_delim
 
19809
EGREP!$EGREP$ac_delim
 
19810
build!$build$ac_delim
 
19811
build_cpu!$build_cpu$ac_delim
 
19812
build_vendor!$build_vendor$ac_delim
 
19813
build_os!$build_os$ac_delim
 
19814
host!$host$ac_delim
 
19815
host_cpu!$host_cpu$ac_delim
 
19816
host_vendor!$host_vendor$ac_delim
 
19817
_ACEOF
 
19818
 
 
19819
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
19820
    break
 
19821
  elif $ac_last_try; then
 
19822
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19823
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19824
   { (exit 1); exit 1; }; }
 
19825
  else
 
19826
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19827
  fi
 
19828
done
 
19829
 
 
19830
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19831
if test -n "$ac_eof"; then
 
19832
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19833
  ac_eof=`expr $ac_eof + 1`
 
19834
fi
 
19835
 
 
19836
cat >>$CONFIG_STATUS <<_ACEOF
 
19837
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
19838
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
19839
_ACEOF
 
19840
sed '
 
19841
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19842
s/^/s,@/; s/!/@,|#_!!_#|/
 
19843
:n
 
19844
t n
 
19845
s/'"$ac_delim"'$/,g/; t
 
19846
s/$/\\/; p
 
19847
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19848
' >>$CONFIG_STATUS <conf$$subs.sed
 
19849
rm -f conf$$subs.sed
 
19850
cat >>$CONFIG_STATUS <<_ACEOF
 
19851
CEOF$ac_eof
 
19852
_ACEOF
 
19853
 
 
19854
 
 
19855
ac_delim='%!_!# '
 
19856
for ac_last_try in false false false false false :; do
 
19857
  cat >conf$$subs.sed <<_ACEOF
 
19858
host_os!$host_os$ac_delim
 
19859
AS!$AS$ac_delim
 
19860
DLLTOOL!$DLLTOOL$ac_delim
 
19861
OBJDUMP!$OBJDUMP$ac_delim
 
19862
LIBTOOL!$LIBTOOL$ac_delim
 
19863
SED!$SED$ac_delim
 
19864
FGREP!$FGREP$ac_delim
 
19865
LD!$LD$ac_delim
 
19866
DUMPBIN!$DUMPBIN$ac_delim
 
19867
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
 
19868
NM!$NM$ac_delim
 
19869
LN_S!$LN_S$ac_delim
 
19870
AR!$AR$ac_delim
 
19871
RANLIB!$RANLIB$ac_delim
 
19872
lt_ECHO!$lt_ECHO$ac_delim
 
19873
DSYMUTIL!$DSYMUTIL$ac_delim
 
19874
NMEDIT!$NMEDIT$ac_delim
 
19875
LIPO!$LIPO$ac_delim
 
19876
OTOOL!$OTOOL$ac_delim
 
19877
OTOOL64!$OTOOL64$ac_delim
 
19878
AUTOM4TE!$AUTOM4TE$ac_delim
 
19879
FLOATSTORE!$FLOATSTORE$ac_delim
 
19880
WARNING_CFLAGS!$WARNING_CFLAGS$ac_delim
 
19881
WERROR_CFLAGS!$WERROR_CFLAGS$ac_delim
 
19882
USE_SHELL_TRUE!$USE_SHELL_TRUE$ac_delim
 
19883
USE_SHELL_FALSE!$USE_SHELL_FALSE$ac_delim
 
19884
XML2CONFIG!$XML2CONFIG$ac_delim
 
19885
XML2_LIBS!$XML2_LIBS$ac_delim
 
19886
XML2_CFLAGS!$XML2_CFLAGS$ac_delim
 
19887
INTERNAL_ARPACK_TRUE!$INTERNAL_ARPACK_TRUE$ac_delim
 
19888
INTERNAL_ARPACK_FALSE!$INTERNAL_ARPACK_FALSE$ac_delim
 
19889
INTERNAL_LAPACK_TRUE!$INTERNAL_LAPACK_TRUE$ac_delim
 
19890
INTERNAL_LAPACK_FALSE!$INTERNAL_LAPACK_FALSE$ac_delim
 
19891
INTERNAL_BLAS_TRUE!$INTERNAL_BLAS_TRUE$ac_delim
 
19892
INTERNAL_BLAS_FALSE!$INTERNAL_BLAS_FALSE$ac_delim
 
19893
LIBOBJS!$LIBOBJS$ac_delim
 
19894
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
19895
_ACEOF
 
19896
 
 
19897
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 37; then
 
19898
    break
 
19899
  elif $ac_last_try; then
 
19900
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
19901
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
19902
   { (exit 1); exit 1; }; }
 
19903
  else
 
19904
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
19905
  fi
 
19906
done
 
19907
 
 
19908
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
19909
if test -n "$ac_eof"; then
 
19910
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
19911
  ac_eof=`expr $ac_eof + 1`
 
19912
fi
 
19913
 
 
19914
cat >>$CONFIG_STATUS <<_ACEOF
 
19915
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
19916
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
19917
_ACEOF
 
19918
sed '
 
19919
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
19920
s/^/s,@/; s/!/@,|#_!!_#|/
 
19921
:n
 
19922
t n
 
19923
s/'"$ac_delim"'$/,g/; t
 
19924
s/$/\\/; p
 
19925
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
19926
' >>$CONFIG_STATUS <conf$$subs.sed
 
19927
rm -f conf$$subs.sed
 
19928
cat >>$CONFIG_STATUS <<_ACEOF
 
19929
:end
 
19930
s/|#_!!_#|//g
 
19931
CEOF$ac_eof
 
19932
_ACEOF
 
19933
 
 
19934
 
 
19935
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
19936
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
19937
# trailing colons and then remove the whole line if VPATH becomes empty
 
19938
# (actually we leave an empty line to preserve line numbers).
 
19939
if test "x$srcdir" = x.; then
 
19940
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
19941
s/:*\$(srcdir):*/:/
 
19942
s/:*\${srcdir}:*/:/
 
19943
s/:*@srcdir@:*/:/
 
19944
s/^\([^=]*=[     ]*\):*/\1/
 
19945
s/:*$//
 
19946
s/^[^=]*=[       ]*$//
 
19947
}'
 
19948
fi
 
19949
 
 
19950
cat >>$CONFIG_STATUS <<\_ACEOF
 
19951
fi # test -n "$CONFIG_FILES"
 
19952
 
 
19953
 
 
19954
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
19955
do
 
19956
  case $ac_tag in
 
19957
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
19958
  esac
 
19959
  case $ac_mode$ac_tag in
 
19960
  :[FHL]*:*);;
 
19961
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
19962
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
19963
   { (exit 1); exit 1; }; };;
 
19964
  :[FH]-) ac_tag=-:-;;
 
19965
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
19966
  esac
 
19967
  ac_save_IFS=$IFS
 
19968
  IFS=:
 
19969
  set x $ac_tag
 
19970
  IFS=$ac_save_IFS
 
19971
  shift
 
19972
  ac_file=$1
 
19973
  shift
 
19974
 
 
19975
  case $ac_mode in
 
19976
  :L) ac_source=$1;;
 
19977
  :[FH])
 
19978
    ac_file_inputs=
 
19979
    for ac_f
 
19980
    do
 
19981
      case $ac_f in
 
19982
      -) ac_f="$tmp/stdin";;
 
19983
      *) # Look for the file first in the build tree, then in the source tree
 
19984
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
19985
         # because $ac_f cannot contain `:'.
 
19986
         test -f "$ac_f" ||
 
19987
           case $ac_f in
 
19988
           [\\/$]*) false;;
 
19989
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
19990
           esac ||
 
19991
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
19992
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
19993
   { (exit 1); exit 1; }; };;
 
19994
      esac
 
19995
      ac_file_inputs="$ac_file_inputs $ac_f"
 
19996
    done
 
19997
 
 
19998
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
19999
    # use $as_me), people would be surprised to read:
 
20000
    #    /* config.h.  Generated by config.status.  */
 
20001
    configure_input="Generated from "`IFS=:
 
20002
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
20003
    if test x"$ac_file" != x-; then
 
20004
      configure_input="$ac_file.  $configure_input"
 
20005
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20006
echo "$as_me: creating $ac_file" >&6;}
 
20007
    fi
 
20008
 
 
20009
    case $ac_tag in
 
20010
    *:-:* | *:-) cat >"$tmp/stdin";;
 
20011
    esac
 
20012
    ;;
 
20013
  esac
 
20014
 
 
20015
  ac_dir=`$as_dirname -- "$ac_file" ||
 
20016
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20017
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20018
         X"$ac_file" : 'X\(//\)$' \| \
 
20019
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
20020
echo X"$ac_file" |
 
20021
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20022
            s//\1/
 
20023
            q
 
20024
          }
 
20025
          /^X\(\/\/\)[^/].*/{
 
20026
            s//\1/
 
20027
            q
 
20028
          }
 
20029
          /^X\(\/\/\)$/{
 
20030
            s//\1/
 
20031
            q
 
20032
          }
 
20033
          /^X\(\/\).*/{
 
20034
            s//\1/
 
20035
            q
 
20036
          }
 
20037
          s/.*/./; q'`
 
20038
  { as_dir="$ac_dir"
 
20039
  case $as_dir in #(
 
20040
  -*) as_dir=./$as_dir;;
 
20041
  esac
 
20042
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
20043
    as_dirs=
 
20044
    while :; do
 
20045
      case $as_dir in #(
 
20046
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
20047
      *) as_qdir=$as_dir;;
 
20048
      esac
 
20049
      as_dirs="'$as_qdir' $as_dirs"
 
20050
      as_dir=`$as_dirname -- "$as_dir" ||
 
20051
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20052
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20053
         X"$as_dir" : 'X\(//\)$' \| \
 
20054
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
20055
echo X"$as_dir" |
 
20056
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20057
            s//\1/
 
20058
            q
 
20059
          }
 
20060
          /^X\(\/\/\)[^/].*/{
 
20061
            s//\1/
 
20062
            q
 
20063
          }
 
20064
          /^X\(\/\/\)$/{
 
20065
            s//\1/
 
20066
            q
 
20067
          }
 
20068
          /^X\(\/\).*/{
 
20069
            s//\1/
 
20070
            q
 
20071
          }
 
20072
          s/.*/./; q'`
 
20073
      test -d "$as_dir" && break
 
20074
    done
 
20075
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
20076
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
20077
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
20078
   { (exit 1); exit 1; }; }; }
 
20079
  ac_builddir=.
 
20080
 
 
20081
case "$ac_dir" in
 
20082
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20083
*)
 
20084
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20085
  # A ".." for each directory in $ac_dir_suffix.
 
20086
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
20087
  case $ac_top_builddir_sub in
 
20088
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
20089
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
20090
  esac ;;
 
20091
esac
 
20092
ac_abs_top_builddir=$ac_pwd
 
20093
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
20094
# for backward compatibility:
 
20095
ac_top_builddir=$ac_top_build_prefix
 
20096
 
 
20097
case $srcdir in
 
20098
  .)  # We are building in place.
 
20099
    ac_srcdir=.
 
20100
    ac_top_srcdir=$ac_top_builddir_sub
 
20101
    ac_abs_top_srcdir=$ac_pwd ;;
 
20102
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
20103
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20104
    ac_top_srcdir=$srcdir
 
20105
    ac_abs_top_srcdir=$srcdir ;;
 
20106
  *) # Relative name.
 
20107
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
20108
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
20109
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
20110
esac
 
20111
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
20112
 
 
20113
 
 
20114
  case $ac_mode in
 
20115
  :F)
 
20116
  #
 
20117
  # CONFIG_FILE
 
20118
  #
 
20119
 
 
20120
  case $INSTALL in
 
20121
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20122
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
20123
  esac
 
20124
  ac_MKDIR_P=$MKDIR_P
 
20125
  case $MKDIR_P in
 
20126
  [\\/$]* | ?:[\\/]* ) ;;
 
20127
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
20128
  esac
 
20129
_ACEOF
 
20130
 
 
20131
cat >>$CONFIG_STATUS <<\_ACEOF
 
20132
# If the template does not know about datarootdir, expand it.
 
20133
# FIXME: This hack should be removed a few years after 2.60.
 
20134
ac_datarootdir_hack=; ac_datarootdir_seen=
 
20135
 
 
20136
case `sed -n '/datarootdir/ {
 
20137
  p
 
20138
  q
 
20139
}
 
20140
/@datadir@/p
 
20141
/@docdir@/p
 
20142
/@infodir@/p
 
20143
/@localedir@/p
 
20144
/@mandir@/p
 
20145
' $ac_file_inputs` in
 
20146
*datarootdir*) ac_datarootdir_seen=yes;;
 
20147
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
20148
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
20149
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
20150
_ACEOF
 
20151
cat >>$CONFIG_STATUS <<_ACEOF
 
20152
  ac_datarootdir_hack='
 
20153
  s&@datadir@&$datadir&g
 
20154
  s&@docdir@&$docdir&g
 
20155
  s&@infodir@&$infodir&g
 
20156
  s&@localedir@&$localedir&g
 
20157
  s&@mandir@&$mandir&g
 
20158
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
20159
esac
 
20160
_ACEOF
 
20161
 
 
20162
# Neutralize VPATH when `$srcdir' = `.'.
 
20163
# Shell code in configure.ac might set extrasub.
 
20164
# FIXME: do we really want to maintain this feature?
 
20165
cat >>$CONFIG_STATUS <<_ACEOF
 
20166
  sed "$ac_vpsub
 
20167
$extrasub
 
20168
_ACEOF
 
20169
cat >>$CONFIG_STATUS <<\_ACEOF
 
20170
:t
 
20171
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20172
s&@configure_input@&$configure_input&;t t
 
20173
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
20174
s&@srcdir@&$ac_srcdir&;t t
 
20175
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
20176
s&@top_srcdir@&$ac_top_srcdir&;t t
 
20177
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
20178
s&@builddir@&$ac_builddir&;t t
 
20179
s&@abs_builddir@&$ac_abs_builddir&;t t
 
20180
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
20181
s&@INSTALL@&$ac_INSTALL&;t t
 
20182
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
20183
$ac_datarootdir_hack
 
20184
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
20185
 
 
20186
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
20187
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
20188
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
20189
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20190
which seems to be undefined.  Please make sure it is defined." >&5
 
20191
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
20192
which seems to be undefined.  Please make sure it is defined." >&2;}
 
20193
 
 
20194
  rm -f "$tmp/stdin"
 
20195
  case $ac_file in
 
20196
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
20197
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
20198
  esac
 
20199
 ;;
 
20200
  :H)
 
20201
  #
 
20202
  # CONFIG_HEADER
 
20203
  #
 
20204
_ACEOF
 
20205
 
 
20206
# Transform confdefs.h into a sed script `conftest.defines', that
 
20207
# substitutes the proper values into config.h.in to produce config.h.
 
20208
rm -f conftest.defines conftest.tail
 
20209
# First, append a space to every undef/define line, to ease matching.
 
20210
echo 's/$/ /' >conftest.defines
 
20211
# Then, protect against being on the right side of a sed subst, or in
 
20212
# an unquoted here document, in config.status.  If some macros were
 
20213
# called several times there might be several #defines for the same
 
20214
# symbol, which is useless.  But do not sort them, since the last
 
20215
# AC_DEFINE must be honored.
 
20216
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
20217
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
20218
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
20219
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
20220
# just an empty string.
 
20221
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
20222
ac_dB='\\)[      (].*,\\1define\\2'
 
20223
ac_dC=' '
 
20224
ac_dD=' ,'
 
20225
 
 
20226
uniq confdefs.h |
 
20227
  sed -n '
 
20228
        t rset
 
20229
        :rset
 
20230
        s/^[     ]*#[    ]*define[       ][      ]*//
 
20231
        t ok
 
20232
        d
 
20233
        :ok
 
20234
        s/[\\&,]/\\&/g
 
20235
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
20236
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
20237
  ' >>conftest.defines
 
20238
 
 
20239
# Remove the space that was appended to ease matching.
 
20240
# Then replace #undef with comments.  This is necessary, for
 
20241
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
20242
# on some systems where configure will not decide to define it.
 
20243
# (The regexp can be short, since the line contains either #define or #undef.)
 
20244
echo 's/ $//
 
20245
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
20246
 
 
20247
# Break up conftest.defines:
 
20248
ac_max_sed_lines=50
 
20249
 
 
20250
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
20251
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
20252
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
20253
# et cetera.
 
20254
ac_in='$ac_file_inputs'
 
20255
ac_out='"$tmp/out1"'
 
20256
ac_nxt='"$tmp/out2"'
 
20257
 
 
20258
while :
 
20259
do
 
20260
  # Write a here document:
 
20261
    cat >>$CONFIG_STATUS <<_ACEOF
 
20262
    # First, check the format of the line:
 
20263
    cat >"\$tmp/defines.sed" <<\\CEOF
 
20264
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
20265
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
20266
b
 
20267
:def
 
20268
_ACEOF
 
20269
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
20270
  echo 'CEOF
 
20271
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
20272
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
20273
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
20274
  grep . conftest.tail >/dev/null || break
 
20275
  rm -f conftest.defines
 
20276
  mv conftest.tail conftest.defines
 
20277
done
 
20278
rm -f conftest.defines conftest.tail
 
20279
 
 
20280
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
20281
cat >>$CONFIG_STATUS <<\_ACEOF
 
20282
  if test x"$ac_file" != x-; then
 
20283
    echo "/* $configure_input  */" >"$tmp/config.h"
 
20284
    cat "$ac_result" >>"$tmp/config.h"
 
20285
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
20286
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
20287
echo "$as_me: $ac_file is unchanged" >&6;}
 
20288
    else
 
20289
      rm -f $ac_file
 
20290
      mv "$tmp/config.h" $ac_file
 
20291
    fi
 
20292
  else
 
20293
    echo "/* $configure_input  */"
 
20294
    cat "$ac_result"
 
20295
  fi
 
20296
  rm -f "$tmp/out12"
 
20297
# Compute $ac_file's index in $config_headers.
 
20298
_am_arg=$ac_file
 
20299
_am_stamp_count=1
 
20300
for _am_header in $config_headers :; do
 
20301
  case $_am_header in
 
20302
    $_am_arg | $_am_arg:* )
 
20303
      break ;;
 
20304
    * )
 
20305
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
20306
  esac
 
20307
done
 
20308
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
20309
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20310
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
20311
         X"$_am_arg" : 'X\(//\)$' \| \
 
20312
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
20313
echo X"$_am_arg" |
 
20314
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20315
            s//\1/
 
20316
            q
 
20317
          }
 
20318
          /^X\(\/\/\)[^/].*/{
 
20319
            s//\1/
 
20320
            q
 
20321
          }
 
20322
          /^X\(\/\/\)$/{
 
20323
            s//\1/
 
20324
            q
 
20325
          }
 
20326
          /^X\(\/\).*/{
 
20327
            s//\1/
 
20328
            q
 
20329
          }
 
20330
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
20331
 ;;
 
20332
 
 
20333
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
20334
echo "$as_me: executing $ac_file commands" >&6;}
 
20335
 ;;
 
20336
  esac
 
20337
 
 
20338
 
 
20339
  case $ac_file$ac_mode in
 
20340
    "tests/atconfig":C) cat >tests/atconfig <<ATEOF
 
20341
# Configurable variable values for building test suites.
 
20342
# Generated by $0.
 
20343
# Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
 
20344
 
 
20345
# The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
 
20346
at_testdir='tests'
 
20347
abs_builddir='$ac_abs_builddir'
 
20348
at_srcdir='$ac_srcdir'
 
20349
abs_srcdir='$ac_abs_srcdir'
 
20350
at_top_srcdir='$ac_top_srcdir'
 
20351
abs_top_srcdir='$ac_abs_top_srcdir'
 
20352
at_top_build_prefix='$ac_top_build_prefix'
 
20353
abs_top_builddir='$ac_abs_top_builddir'
 
20354
 
 
20355
# Backward compatibility with Autotest <= 2.59b:
 
20356
at_top_builddir=\$at_top_build_prefix
 
20357
 
 
20358
AUTOTEST_PATH='tests'
 
20359
 
 
20360
SHELL=\${CONFIG_SHELL-'$SHELL'}
 
20361
ATEOF
 
20362
 ;;
 
20363
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
20364
  # Strip MF so we end up with the name of the file.
 
20365
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
20366
  # Check whether this is an Automake generated Makefile or not.
 
20367
  # We used to match only the files named `Makefile.in', but
 
20368
  # some people rename them; so instead we look at the file content.
 
20369
  # Grep'ing the first line is not enough: some people post-process
 
20370
  # each Makefile.in and add a new line on top of each file to say so.
 
20371
  # Grep'ing the whole file is not good either: AIX grep has a line
 
20372
  # limit of 2048, but all sed's we know have understand at least 4000.
 
20373
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
20374
    dirpart=`$as_dirname -- "$mf" ||
 
20375
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20376
         X"$mf" : 'X\(//\)[^/]' \| \
 
20377
         X"$mf" : 'X\(//\)$' \| \
 
20378
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
20379
echo X"$mf" |
 
20380
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20381
            s//\1/
 
20382
            q
 
20383
          }
 
20384
          /^X\(\/\/\)[^/].*/{
 
20385
            s//\1/
 
20386
            q
 
20387
          }
 
20388
          /^X\(\/\/\)$/{
 
20389
            s//\1/
 
20390
            q
 
20391
          }
 
20392
          /^X\(\/\).*/{
 
20393
            s//\1/
 
20394
            q
 
20395
          }
 
20396
          s/.*/./; q'`
 
20397
  else
 
20398
    continue
 
20399
  fi
 
20400
  # Extract the definition of DEPDIR, am__include, and am__quote
 
20401
  # from the Makefile without running `make'.
 
20402
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
20403
  test -z "$DEPDIR" && continue
 
20404
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
20405
  test -z "am__include" && continue
 
20406
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
20407
  # When using ansi2knr, U may be empty or an underscore; expand it
 
20408
  U=`sed -n 's/^U = //p' < "$mf"`
 
20409
  # Find all dependency output files, they are included files with
 
20410
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
20411
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
20412
  # expansion.
 
20413
  for file in `sed -n "
 
20414
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
20415
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
20416
    # Make sure the directory exists.
 
20417
    test -f "$dirpart/$file" && continue
 
20418
    fdir=`$as_dirname -- "$file" ||
 
20419
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20420
         X"$file" : 'X\(//\)[^/]' \| \
 
20421
         X"$file" : 'X\(//\)$' \| \
 
20422
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
20423
echo X"$file" |
 
20424
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20425
            s//\1/
 
20426
            q
 
20427
          }
 
20428
          /^X\(\/\/\)[^/].*/{
 
20429
            s//\1/
 
20430
            q
 
20431
          }
 
20432
          /^X\(\/\/\)$/{
 
20433
            s//\1/
 
20434
            q
 
20435
          }
 
20436
          /^X\(\/\).*/{
 
20437
            s//\1/
 
20438
            q
 
20439
          }
 
20440
          s/.*/./; q'`
 
20441
    { as_dir=$dirpart/$fdir
 
20442
  case $as_dir in #(
 
20443
  -*) as_dir=./$as_dir;;
 
20444
  esac
 
20445
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
20446
    as_dirs=
 
20447
    while :; do
 
20448
      case $as_dir in #(
 
20449
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
20450
      *) as_qdir=$as_dir;;
 
20451
      esac
 
20452
      as_dirs="'$as_qdir' $as_dirs"
 
20453
      as_dir=`$as_dirname -- "$as_dir" ||
 
20454
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20455
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20456
         X"$as_dir" : 'X\(//\)$' \| \
 
20457
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
20458
echo X"$as_dir" |
 
20459
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
20460
            s//\1/
 
20461
            q
 
20462
          }
 
20463
          /^X\(\/\/\)[^/].*/{
 
20464
            s//\1/
 
20465
            q
 
20466
          }
 
20467
          /^X\(\/\/\)$/{
 
20468
            s//\1/
 
20469
            q
 
20470
          }
 
20471
          /^X\(\/\).*/{
 
20472
            s//\1/
 
20473
            q
 
20474
          }
 
20475
          s/.*/./; q'`
 
20476
      test -d "$as_dir" && break
 
20477
    done
 
20478
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
20479
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
20480
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
20481
   { (exit 1); exit 1; }; }; }
 
20482
    # echo "creating $dirpart/$file"
 
20483
    echo '# dummy' > "$dirpart/$file"
 
20484
  done
 
20485
done
 
20486
 ;;
 
20487
    "libtool":C)
 
20488
 
 
20489
    # See if we are running on zsh, and set the options which allow our
 
20490
    # commands through without removal of \ escapes.
 
20491
    if test -n "${ZSH_VERSION+set}" ; then
 
20492
      setopt NO_GLOB_SUBST
 
20493
    fi
 
20494
 
 
20495
    cfgfile="${ofile}T"
 
20496
    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
 
20497
    $RM "$cfgfile"
 
20498
 
 
20499
    cat <<_LT_EOF >> "$cfgfile"
 
20500
#! $SHELL
 
20501
 
 
20502
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
20503
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
 
20504
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20505
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
20506
#
 
20507
#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
 
20508
#                 2006, 2007, 2008 Free Software Foundation, Inc.
 
20509
#   Written by Gordon Matzigkeit, 1996
 
20510
#
 
20511
#   This file is part of GNU Libtool.
 
20512
#
 
20513
# GNU Libtool is free software; you can redistribute it and/or
 
20514
# modify it under the terms of the GNU General Public License as
 
20515
# published by the Free Software Foundation; either version 2 of
 
20516
# the License, or (at your option) any later version.
 
20517
#
 
20518
# As a special exception to the GNU General Public License,
 
20519
# if you distribute this file as part of a program or library that
 
20520
# is built using GNU Libtool, you may include this file under the
 
20521
# same distribution terms that you use for the rest of that program.
 
20522
#
 
20523
# GNU Libtool is distributed in the hope that it will be useful,
 
20524
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20525
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
20526
# GNU General Public License for more details.
 
20527
#
 
20528
# You should have received a copy of the GNU General Public License
 
20529
# along with GNU Libtool; see the file COPYING.  If not, a copy
 
20530
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
 
20531
# obtained by writing to the Free Software Foundation, Inc.,
 
20532
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
20533
 
 
20534
 
 
20535
# The names of the tagged configurations supported by this script.
 
20536
available_tags="CXX "
 
20537
 
 
20538
# ### BEGIN LIBTOOL CONFIG
 
20539
 
 
20540
# Assembler program.
 
20541
AS=$AS
 
20542
 
 
20543
# DLL creation program.
 
20544
DLLTOOL=$DLLTOOL
 
20545
 
 
20546
# Object dumper program.
 
20547
OBJDUMP=$OBJDUMP
 
20548
 
 
20549
# Which release of libtool.m4 was used?
 
20550
macro_version=$macro_version
 
20551
macro_revision=$macro_revision
 
20552
 
 
20553
# Whether or not to build shared libraries.
 
20554
build_libtool_libs=$enable_shared
 
20555
 
 
20556
# Whether or not to build static libraries.
 
20557
build_old_libs=$enable_static
 
20558
 
 
20559
# What type of objects to build.
 
20560
pic_mode=$pic_mode
 
20561
 
 
20562
# Whether or not to optimize for fast installation.
 
20563
fast_install=$enable_fast_install
 
20564
 
 
20565
# The host system.
 
20566
host_alias=$host_alias
 
20567
host=$host
 
20568
host_os=$host_os
 
20569
 
 
20570
# The build system.
 
20571
build_alias=$build_alias
 
20572
build=$build
 
20573
build_os=$build_os
 
20574
 
 
20575
# A sed program that does not truncate output.
 
20576
SED=$lt_SED
 
20577
 
 
20578
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
20579
Xsed="\$SED -e 1s/^X//"
 
20580
 
 
20581
# A grep program that handles long lines.
 
20582
GREP=$lt_GREP
 
20583
 
 
20584
# An ERE matcher.
 
20585
EGREP=$lt_EGREP
 
20586
 
 
20587
# A literal string matcher.
 
20588
FGREP=$lt_FGREP
 
20589
 
 
20590
# A BSD- or MS-compatible name lister.
 
20591
NM=$lt_NM
 
20592
 
 
20593
# Whether we need soft or hard links.
 
20594
LN_S=$lt_LN_S
 
20595
 
 
20596
# What is the maximum length of a command?
 
20597
max_cmd_len=$max_cmd_len
 
20598
 
 
20599
# Object file suffix (normally "o").
 
20600
objext=$ac_objext
 
20601
 
 
20602
# Executable file suffix (normally "").
 
20603
exeext=$exeext
 
20604
 
 
20605
# whether the shell understands "unset".
 
20606
lt_unset=$lt_unset
 
20607
 
 
20608
# turn spaces into newlines.
 
20609
SP2NL=$lt_lt_SP2NL
 
20610
 
 
20611
# turn newlines into spaces.
 
20612
NL2SP=$lt_lt_NL2SP
 
20613
 
 
20614
# How to create reloadable object files.
 
20615
reload_flag=$lt_reload_flag
 
20616
reload_cmds=$lt_reload_cmds
 
20617
 
 
20618
# Method to check whether dependent libraries are shared objects.
 
20619
deplibs_check_method=$lt_deplibs_check_method
 
20620
 
 
20621
# Command to use when deplibs_check_method == "file_magic".
 
20622
file_magic_cmd=$lt_file_magic_cmd
 
20623
 
 
20624
# The archiver.
 
20625
AR=$lt_AR
 
20626
AR_FLAGS=$lt_AR_FLAGS
 
20627
 
 
20628
# A symbol stripping program.
 
20629
STRIP=$lt_STRIP
 
20630
 
 
20631
# Commands used to install an old-style archive.
 
20632
RANLIB=$lt_RANLIB
 
20633
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20634
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20635
 
 
20636
# A C compiler.
 
20637
LTCC=$lt_CC
 
20638
 
 
20639
# LTCC compiler flags.
 
20640
LTCFLAGS=$lt_CFLAGS
 
20641
 
 
20642
# Take the output of nm and produce a listing of raw symbols and C names.
 
20643
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20644
 
 
20645
# Transform the output of nm in a proper C declaration.
 
20646
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20647
 
 
20648
# Transform the output of nm in a C name address pair.
 
20649
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20650
 
 
20651
# Transform the output of nm in a C name address pair when lib prefix is needed.
 
20652
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
 
20653
 
 
20654
# The name of the directory that contains temporary libtool files.
 
20655
objdir=$objdir
 
20656
 
 
20657
# Shell to use when invoking shell scripts.
 
20658
SHELL=$lt_SHELL
 
20659
 
 
20660
# An echo program that does not interpret backslashes.
 
20661
ECHO=$lt_ECHO
 
20662
 
 
20663
# Used to examine libraries when file_magic_cmd begins with "file".
 
20664
MAGIC_CMD=$MAGIC_CMD
 
20665
 
 
20666
# Must we lock files when doing compilation?
 
20667
need_locks=$lt_need_locks
 
20668
 
 
20669
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
 
20670
DSYMUTIL=$lt_DSYMUTIL
 
20671
 
 
20672
# Tool to change global to local symbols on Mac OS X.
 
20673
NMEDIT=$lt_NMEDIT
 
20674
 
 
20675
# Tool to manipulate fat objects and archives on Mac OS X.
 
20676
LIPO=$lt_LIPO
 
20677
 
 
20678
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
 
20679
OTOOL=$lt_OTOOL
 
20680
 
 
20681
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
 
20682
OTOOL64=$lt_OTOOL64
 
20683
 
 
20684
# Old archive suffix (normally "a").
 
20685
libext=$libext
 
20686
 
 
20687
# Shared library suffix (normally ".so").
 
20688
shrext_cmds=$lt_shrext_cmds
 
20689
 
 
20690
# The commands to extract the exported symbol list from a shared archive.
 
20691
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20692
 
 
20693
# Variables whose values should be saved in libtool wrapper scripts and
 
20694
# restored at link time.
 
20695
variables_saved_for_relink=$lt_variables_saved_for_relink
 
20696
 
 
20697
# Do we need the "lib" prefix for modules?
 
20698
need_lib_prefix=$need_lib_prefix
 
20699
 
 
20700
# Do we need a version for libraries?
 
20701
need_version=$need_version
 
20702
 
 
20703
# Library versioning type.
 
20704
version_type=$version_type
 
20705
 
 
20706
# Shared library runtime path variable.
 
20707
runpath_var=$runpath_var
 
20708
 
 
20709
# Shared library path variable.
 
20710
shlibpath_var=$shlibpath_var
 
20711
 
 
20712
# Is shlibpath searched before the hard-coded library search path?
 
20713
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20714
 
 
20715
# Format of library name prefix.
 
20716
libname_spec=$lt_libname_spec
 
20717
 
 
20718
# List of archive names.  First name is the real one, the rest are links.
 
20719
# The last name is the one that the linker finds with -lNAME
 
20720
library_names_spec=$lt_library_names_spec
 
20721
 
 
20722
# The coded name of the library, if different from the real name.
 
20723
soname_spec=$lt_soname_spec
 
20724
 
 
20725
# Command to use after installation of a shared archive.
 
20726
postinstall_cmds=$lt_postinstall_cmds
 
20727
 
 
20728
# Command to use after uninstallation of a shared archive.
 
20729
postuninstall_cmds=$lt_postuninstall_cmds
 
20730
 
 
20731
# Commands used to finish a libtool library installation in a directory.
 
20732
finish_cmds=$lt_finish_cmds
 
20733
 
 
20734
# As "finish_cmds", except a single script fragment to be evaled but
 
20735
# not shown.
 
20736
finish_eval=$lt_finish_eval
 
20737
 
 
20738
# Whether we should hardcode library paths into libraries.
 
20739
hardcode_into_libs=$hardcode_into_libs
 
20740
 
 
20741
# Compile-time system search path for libraries.
 
20742
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20743
 
 
20744
# Run-time system search path for libraries.
 
20745
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20746
 
 
20747
# Whether dlopen is supported.
 
20748
dlopen_support=$enable_dlopen
 
20749
 
 
20750
# Whether dlopen of programs is supported.
 
20751
dlopen_self=$enable_dlopen_self
 
20752
 
 
20753
# Whether dlopen of statically linked programs is supported.
 
20754
dlopen_self_static=$enable_dlopen_self_static
 
20755
 
 
20756
# Commands to strip libraries.
 
20757
old_striplib=$lt_old_striplib
 
20758
striplib=$lt_striplib
 
20759
 
 
20760
 
 
20761
# The linker used to build libraries.
 
20762
LD=$lt_LD
 
20763
 
 
20764
# Commands used to build an old-style archive.
 
20765
old_archive_cmds=$lt_old_archive_cmds
 
20766
 
 
20767
# A language specific compiler.
 
20768
CC=$lt_compiler
 
20769
 
 
20770
# Is the compiler the GNU compiler?
 
20771
with_gcc=$GCC
 
20772
 
 
20773
# Compiler flag to turn off builtin functions.
 
20774
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
20775
 
 
20776
# How to pass a linker flag through the compiler.
 
20777
wl=$lt_lt_prog_compiler_wl
 
20778
 
 
20779
# Additional compiler flags for building library objects.
 
20780
pic_flag=$lt_lt_prog_compiler_pic
 
20781
 
 
20782
# Compiler flag to prevent dynamic linking.
 
20783
link_static_flag=$lt_lt_prog_compiler_static
 
20784
 
 
20785
# Does compiler simultaneously support -c and -o options?
 
20786
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
20787
 
 
20788
# Whether or not to add -lc for building shared libraries.
 
20789
build_libtool_need_lc=$archive_cmds_need_lc
 
20790
 
 
20791
# Whether or not to disallow shared libs when runtime libs are static.
 
20792
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
20793
 
 
20794
# Compiler flag to allow reflexive dlopens.
 
20795
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
20796
 
 
20797
# Compiler flag to generate shared objects directly from archives.
 
20798
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
20799
 
 
20800
# Whether the compiler copes with passing no objects directly.
 
20801
compiler_needs_object=$lt_compiler_needs_object
 
20802
 
 
20803
# Create an old-style archive from a shared archive.
 
20804
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
20805
 
 
20806
# Create a temporary old-style archive to link instead of a shared archive.
 
20807
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
20808
 
 
20809
# Commands used to build a shared archive.
 
20810
archive_cmds=$lt_archive_cmds
 
20811
archive_expsym_cmds=$lt_archive_expsym_cmds
 
20812
 
 
20813
# Commands used to build a loadable module if different from building
 
20814
# a shared archive.
 
20815
module_cmds=$lt_module_cmds
 
20816
module_expsym_cmds=$lt_module_expsym_cmds
 
20817
 
 
20818
# Whether we are building with GNU ld or not.
 
20819
with_gnu_ld=$lt_with_gnu_ld
 
20820
 
 
20821
# Flag that allows shared libraries with undefined symbols to be built.
 
20822
allow_undefined_flag=$lt_allow_undefined_flag
 
20823
 
 
20824
# Flag that enforces no undefined symbols.
 
20825
no_undefined_flag=$lt_no_undefined_flag
 
20826
 
 
20827
# Flag to hardcode \$libdir into a binary during linking.
 
20828
# This must work even if \$libdir does not exist
 
20829
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
20830
 
 
20831
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
20832
# during linking.  This must work even if \$libdir does not exist.
 
20833
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
20834
 
 
20835
# Whether we need a single "-rpath" flag with a separated argument.
 
20836
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
20837
 
 
20838
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20839
# DIR into the resulting binary.
 
20840
hardcode_direct=$hardcode_direct
 
20841
 
 
20842
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
20843
# DIR into the resulting binary and the resulting library dependency is
 
20844
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
20845
# library is relocated.
 
20846
hardcode_direct_absolute=$hardcode_direct_absolute
 
20847
 
 
20848
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
20849
# into the resulting binary.
 
20850
hardcode_minus_L=$hardcode_minus_L
 
20851
 
 
20852
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
20853
# into the resulting binary.
 
20854
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
20855
 
 
20856
# Set to "yes" if building a shared library automatically hardcodes DIR
 
20857
# into the library and all subsequent libraries and executables linked
 
20858
# against it.
 
20859
hardcode_automatic=$hardcode_automatic
 
20860
 
 
20861
# Set to yes if linker adds runtime paths of dependent libraries
 
20862
# to runtime path list.
 
20863
inherit_rpath=$inherit_rpath
 
20864
 
 
20865
# Whether libtool must link a program against all its dependency libraries.
 
20866
link_all_deplibs=$link_all_deplibs
 
20867
 
 
20868
# Fix the shell variable \$srcfile for the compiler.
 
20869
fix_srcfile_path=$lt_fix_srcfile_path
 
20870
 
 
20871
# Set to "yes" if exported symbols are required.
 
20872
always_export_symbols=$always_export_symbols
 
20873
 
 
20874
# The commands to list exported symbols.
 
20875
export_symbols_cmds=$lt_export_symbols_cmds
 
20876
 
 
20877
# Symbols that should not be listed in the preloaded symbols.
 
20878
exclude_expsyms=$lt_exclude_expsyms
 
20879
 
 
20880
# Symbols that must always be exported.
 
20881
include_expsyms=$lt_include_expsyms
 
20882
 
 
20883
# Commands necessary for linking programs (against libraries) with templates.
 
20884
prelink_cmds=$lt_prelink_cmds
 
20885
 
 
20886
# Specify filename containing input files.
 
20887
file_list_spec=$lt_file_list_spec
 
20888
 
 
20889
# How to hardcode a shared library path into an executable.
 
20890
hardcode_action=$hardcode_action
 
20891
 
 
20892
# The directories searched by this compiler when creating a shared library.
 
20893
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
20894
 
 
20895
# Dependencies to place before and after the objects being linked to
 
20896
# create a shared library.
 
20897
predep_objects=$lt_predep_objects
 
20898
postdep_objects=$lt_postdep_objects
 
20899
predeps=$lt_predeps
 
20900
postdeps=$lt_postdeps
 
20901
 
 
20902
# The library search path used internally by the compiler when linking
 
20903
# a shared library.
 
20904
compiler_lib_search_path=$lt_compiler_lib_search_path
 
20905
 
 
20906
# ### END LIBTOOL CONFIG
 
20907
 
 
20908
_LT_EOF
 
20909
 
 
20910
  case $host_os in
 
20911
  aix3*)
 
20912
    cat <<\_LT_EOF >> "$cfgfile"
 
20913
# AIX sometimes has problems with the GCC collect2 program.  For some
 
20914
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
20915
# vanish in a puff of smoke.
 
20916
if test "X${COLLECT_NAMES+set}" != Xset; then
 
20917
  COLLECT_NAMES=
 
20918
  export COLLECT_NAMES
 
20919
fi
 
20920
_LT_EOF
 
20921
    ;;
 
20922
  esac
 
20923
 
 
20924
 
 
20925
ltmain="$ac_aux_dir/ltmain.sh"
 
20926
 
 
20927
 
 
20928
  # We use sed instead of cat because bash on DJGPP gets confused if
 
20929
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
20930
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
20931
  # is reportedly fixed, but why not run on old versions too?
 
20932
  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
 
20933
    || (rm -f "$cfgfile"; exit 1)
 
20934
 
 
20935
  case $xsi_shell in
 
20936
  yes)
 
20937
    cat << \_LT_EOF >> "$cfgfile"
 
20938
 
 
20939
# func_dirname file append nondir_replacement
 
20940
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
20941
# otherwise set result to NONDIR_REPLACEMENT.
 
20942
func_dirname ()
 
20943
{
 
20944
  case ${1} in
 
20945
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20946
    *  ) func_dirname_result="${3}" ;;
 
20947
  esac
 
20948
}
 
20949
 
 
20950
# func_basename file
 
20951
func_basename ()
 
20952
{
 
20953
  func_basename_result="${1##*/}"
 
20954
}
 
20955
 
 
20956
# func_dirname_and_basename file append nondir_replacement
 
20957
# perform func_basename and func_dirname in a single function
 
20958
# call:
 
20959
#   dirname:  Compute the dirname of FILE.  If nonempty,
 
20960
#             add APPEND to the result, otherwise set result
 
20961
#             to NONDIR_REPLACEMENT.
 
20962
#             value returned in "$func_dirname_result"
 
20963
#   basename: Compute filename of FILE.
 
20964
#             value retuned in "$func_basename_result"
 
20965
# Implementation must be kept synchronized with func_dirname
 
20966
# and func_basename. For efficiency, we do not delegate to
 
20967
# those functions but instead duplicate the functionality here.
 
20968
func_dirname_and_basename ()
 
20969
{
 
20970
  case ${1} in
 
20971
    */*) func_dirname_result="${1%/*}${2}" ;;
 
20972
    *  ) func_dirname_result="${3}" ;;
 
20973
  esac
 
20974
  func_basename_result="${1##*/}"
 
20975
}
 
20976
 
 
20977
# func_stripname prefix suffix name
 
20978
# strip PREFIX and SUFFIX off of NAME.
 
20979
# PREFIX and SUFFIX must not contain globbing or regex special
 
20980
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
20981
# dot (in which case that matches only a dot).
 
20982
func_stripname ()
 
20983
{
 
20984
  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
 
20985
  # positional parameters, so assign one to ordinary parameter first.
 
20986
  func_stripname_result=${3}
 
20987
  func_stripname_result=${func_stripname_result#"${1}"}
 
20988
  func_stripname_result=${func_stripname_result%"${2}"}
 
20989
}
 
20990
 
 
20991
# func_opt_split
 
20992
func_opt_split ()
 
20993
{
 
20994
  func_opt_split_opt=${1%%=*}
 
20995
  func_opt_split_arg=${1#*=}
 
20996
}
 
20997
 
 
20998
# func_lo2o object
 
20999
func_lo2o ()
 
21000
{
 
21001
  case ${1} in
 
21002
    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
 
21003
    *)    func_lo2o_result=${1} ;;
 
21004
  esac
 
21005
}
 
21006
 
 
21007
# func_xform libobj-or-source
 
21008
func_xform ()
 
21009
{
 
21010
  func_xform_result=${1%.*}.lo
 
21011
}
 
21012
 
 
21013
# func_arith arithmetic-term...
 
21014
func_arith ()
 
21015
{
 
21016
  func_arith_result=$(( $* ))
 
21017
}
 
21018
 
 
21019
# func_len string
 
21020
# STRING may not start with a hyphen.
 
21021
func_len ()
 
21022
{
 
21023
  func_len_result=${#1}
 
21024
}
 
21025
 
 
21026
_LT_EOF
 
21027
    ;;
 
21028
  *) # Bourne compatible functions.
 
21029
    cat << \_LT_EOF >> "$cfgfile"
 
21030
 
 
21031
# func_dirname file append nondir_replacement
 
21032
# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
 
21033
# otherwise set result to NONDIR_REPLACEMENT.
 
21034
func_dirname ()
 
21035
{
 
21036
  # Extract subdirectory from the argument.
 
21037
  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
 
21038
  if test "X$func_dirname_result" = "X${1}"; then
 
21039
    func_dirname_result="${3}"
 
21040
  else
 
21041
    func_dirname_result="$func_dirname_result${2}"
 
21042
  fi
 
21043
}
 
21044
 
 
21045
# func_basename file
 
21046
func_basename ()
 
21047
{
 
21048
  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
 
21049
}
 
21050
 
 
21051
 
 
21052
# func_stripname prefix suffix name
 
21053
# strip PREFIX and SUFFIX off of NAME.
 
21054
# PREFIX and SUFFIX must not contain globbing or regex special
 
21055
# characters, hashes, percent signs, but SUFFIX may contain a leading
 
21056
# dot (in which case that matches only a dot).
 
21057
# func_strip_suffix prefix name
 
21058
func_stripname ()
 
21059
{
 
21060
  case ${2} in
 
21061
    .*) func_stripname_result=`$ECHO "X${3}" \
 
21062
           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
 
21063
    *)  func_stripname_result=`$ECHO "X${3}" \
 
21064
           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
 
21065
  esac
 
21066
}
 
21067
 
 
21068
# sed scripts:
 
21069
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
 
21070
my_sed_long_arg='1s/^-[^=]*=//'
 
21071
 
 
21072
# func_opt_split
 
21073
func_opt_split ()
 
21074
{
 
21075
  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
 
21076
  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
 
21077
}
 
21078
 
 
21079
# func_lo2o object
 
21080
func_lo2o ()
 
21081
{
 
21082
  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
 
21083
}
 
21084
 
 
21085
# func_xform libobj-or-source
 
21086
func_xform ()
 
21087
{
 
21088
  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
 
21089
}
 
21090
 
 
21091
# func_arith arithmetic-term...
 
21092
func_arith ()
 
21093
{
 
21094
  func_arith_result=`expr "$@"`
 
21095
}
 
21096
 
 
21097
# func_len string
 
21098
# STRING may not start with a hyphen.
 
21099
func_len ()
 
21100
{
 
21101
  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
 
21102
}
 
21103
 
 
21104
_LT_EOF
 
21105
esac
 
21106
 
 
21107
case $lt_shell_append in
 
21108
  yes)
 
21109
    cat << \_LT_EOF >> "$cfgfile"
 
21110
 
 
21111
# func_append var value
 
21112
# Append VALUE to the end of shell variable VAR.
 
21113
func_append ()
 
21114
{
 
21115
  eval "$1+=\$2"
 
21116
}
 
21117
_LT_EOF
 
21118
    ;;
 
21119
  *)
 
21120
    cat << \_LT_EOF >> "$cfgfile"
 
21121
 
 
21122
# func_append var value
 
21123
# Append VALUE to the end of shell variable VAR.
 
21124
func_append ()
 
21125
{
 
21126
  eval "$1=\$$1\$2"
 
21127
}
 
21128
 
 
21129
_LT_EOF
 
21130
    ;;
 
21131
  esac
 
21132
 
 
21133
 
 
21134
  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
 
21135
    || (rm -f "$cfgfile"; exit 1)
 
21136
 
 
21137
  mv -f "$cfgfile" "$ofile" ||
 
21138
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
21139
  chmod +x "$ofile"
 
21140
 
 
21141
 
 
21142
    cat <<_LT_EOF >> "$ofile"
 
21143
 
 
21144
# ### BEGIN LIBTOOL TAG CONFIG: CXX
 
21145
 
 
21146
# The linker used to build libraries.
 
21147
LD=$lt_LD_CXX
 
21148
 
 
21149
# Commands used to build an old-style archive.
 
21150
old_archive_cmds=$lt_old_archive_cmds_CXX
 
21151
 
 
21152
# A language specific compiler.
 
21153
CC=$lt_compiler_CXX
 
21154
 
 
21155
# Is the compiler the GNU compiler?
 
21156
with_gcc=$GCC_CXX
 
21157
 
 
21158
# Compiler flag to turn off builtin functions.
 
21159
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
21160
 
 
21161
# How to pass a linker flag through the compiler.
 
21162
wl=$lt_lt_prog_compiler_wl_CXX
 
21163
 
 
21164
# Additional compiler flags for building library objects.
 
21165
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
21166
 
 
21167
# Compiler flag to prevent dynamic linking.
 
21168
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
21169
 
 
21170
# Does compiler simultaneously support -c and -o options?
 
21171
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
21172
 
 
21173
# Whether or not to add -lc for building shared libraries.
 
21174
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
21175
 
 
21176
# Whether or not to disallow shared libs when runtime libs are static.
 
21177
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
21178
 
 
21179
# Compiler flag to allow reflexive dlopens.
 
21180
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
21181
 
 
21182
# Compiler flag to generate shared objects directly from archives.
 
21183
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
21184
 
 
21185
# Whether the compiler copes with passing no objects directly.
 
21186
compiler_needs_object=$lt_compiler_needs_object_CXX
 
21187
 
 
21188
# Create an old-style archive from a shared archive.
 
21189
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
21190
 
 
21191
# Create a temporary old-style archive to link instead of a shared archive.
 
21192
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
21193
 
 
21194
# Commands used to build a shared archive.
 
21195
archive_cmds=$lt_archive_cmds_CXX
 
21196
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
21197
 
 
21198
# Commands used to build a loadable module if different from building
 
21199
# a shared archive.
 
21200
module_cmds=$lt_module_cmds_CXX
 
21201
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
21202
 
 
21203
# Whether we are building with GNU ld or not.
 
21204
with_gnu_ld=$lt_with_gnu_ld_CXX
 
21205
 
 
21206
# Flag that allows shared libraries with undefined symbols to be built.
 
21207
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
21208
 
 
21209
# Flag that enforces no undefined symbols.
 
21210
no_undefined_flag=$lt_no_undefined_flag_CXX
 
21211
 
 
21212
# Flag to hardcode \$libdir into a binary during linking.
 
21213
# This must work even if \$libdir does not exist
 
21214
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
21215
 
 
21216
# If ld is used when linking, flag to hardcode \$libdir into a binary
 
21217
# during linking.  This must work even if \$libdir does not exist.
 
21218
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
21219
 
 
21220
# Whether we need a single "-rpath" flag with a separated argument.
 
21221
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
21222
 
 
21223
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21224
# DIR into the resulting binary.
 
21225
hardcode_direct=$hardcode_direct_CXX
 
21226
 
 
21227
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
 
21228
# DIR into the resulting binary and the resulting library dependency is
 
21229
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
 
21230
# library is relocated.
 
21231
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
 
21232
 
 
21233
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
 
21234
# into the resulting binary.
 
21235
hardcode_minus_L=$hardcode_minus_L_CXX
 
21236
 
 
21237
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
 
21238
# into the resulting binary.
 
21239
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
21240
 
 
21241
# Set to "yes" if building a shared library automatically hardcodes DIR
 
21242
# into the library and all subsequent libraries and executables linked
 
21243
# against it.
 
21244
hardcode_automatic=$hardcode_automatic_CXX
 
21245
 
 
21246
# Set to yes if linker adds runtime paths of dependent libraries
 
21247
# to runtime path list.
 
21248
inherit_rpath=$inherit_rpath_CXX
 
21249
 
 
21250
# Whether libtool must link a program against all its dependency libraries.
 
21251
link_all_deplibs=$link_all_deplibs_CXX
 
21252
 
 
21253
# Fix the shell variable \$srcfile for the compiler.
 
21254
fix_srcfile_path=$lt_fix_srcfile_path_CXX
 
21255
 
 
21256
# Set to "yes" if exported symbols are required.
 
21257
always_export_symbols=$always_export_symbols_CXX
 
21258
 
 
21259
# The commands to list exported symbols.
 
21260
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
21261
 
 
21262
# Symbols that should not be listed in the preloaded symbols.
 
21263
exclude_expsyms=$lt_exclude_expsyms_CXX
 
21264
 
 
21265
# Symbols that must always be exported.
 
21266
include_expsyms=$lt_include_expsyms_CXX
 
21267
 
 
21268
# Commands necessary for linking programs (against libraries) with templates.
 
21269
prelink_cmds=$lt_prelink_cmds_CXX
 
21270
 
 
21271
# Specify filename containing input files.
 
21272
file_list_spec=$lt_file_list_spec_CXX
 
21273
 
 
21274
# How to hardcode a shared library path into an executable.
 
21275
hardcode_action=$hardcode_action_CXX
 
21276
 
 
21277
# The directories searched by this compiler when creating a shared library.
 
21278
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
21279
 
 
21280
# Dependencies to place before and after the objects being linked to
 
21281
# create a shared library.
 
21282
predep_objects=$lt_predep_objects_CXX
 
21283
postdep_objects=$lt_postdep_objects_CXX
 
21284
predeps=$lt_predeps_CXX
 
21285
postdeps=$lt_postdeps_CXX
 
21286
 
 
21287
# The library search path used internally by the compiler when linking
 
21288
# a shared library.
 
21289
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
21290
 
 
21291
# ### END LIBTOOL TAG CONFIG: CXX
 
21292
_LT_EOF
 
21293
 
 
21294
 ;;
 
21295
 
 
21296
  esac
 
21297
done # for ac_tag
 
21298
 
 
21299
 
 
21300
{ (exit 0); exit 0; }
 
21301
_ACEOF
 
21302
chmod +x $CONFIG_STATUS
 
21303
ac_clean_files=$ac_clean_files_save
 
21304
 
 
21305
 
 
21306
# configure is writing to config.log, and then calls config.status.
 
21307
# config.status does its own redirection, appending to config.log.
 
21308
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21309
# by configure, so config.status won't be able to write to it; its
 
21310
# output is simply discarded.  So we exec the FD to /dev/null,
 
21311
# effectively closing config.log, so it can be properly (re)opened and
 
21312
# appended to by config.status.  When coming back to configure, we
 
21313
# need to make the FD available again.
 
21314
if test "$no_create" != yes; then
 
21315
  ac_cs_success=:
 
21316
  ac_config_status_args=
 
21317
  test "$silent" = yes &&
 
21318
    ac_config_status_args="$ac_config_status_args --quiet"
 
21319
  exec 5>/dev/null
 
21320
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21321
  exec 5>>config.log
 
21322
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21323
  # would make configure fail if this is the last instruction.
 
21324
  $ac_cs_success || { (exit 1); exit 1; }
 
21325
fi
 
21326
 
 
21327
 
 
21328
{ echo "$as_me:$LINENO: result: igraph successfully configured." >&5
 
21329
echo "${ECHO_T}igraph successfully configured." >&6; }
 
21330
{ echo "$as_me:$LINENO: result:   GraphML format support -- $graphml_support" >&5
 
21331
echo "${ECHO_T}  GraphML format support -- $graphml_support" >&6; }
 
21332
{ echo "$as_me:$LINENO: result:   GMP library support    -- $gmp_support" >&5
 
21333
echo "${ECHO_T}  GMP library support    -- $gmp_support" >&6; }
 
21334
{ echo "$as_me:$LINENO: result:   Use internal ARPACK    -- $internal_arpack" >&5
 
21335
echo "${ECHO_T}  Use internal ARPACK    -- $internal_arpack" >&6; }
 
21336
{ echo "$as_me:$LINENO: result:   Use internal LAPACK    -- $internal_lapack" >&5
 
21337
echo "${ECHO_T}  Use internal LAPACK    -- $internal_lapack" >&6; }
 
21338
{ echo "$as_me:$LINENO: result:   Use internal BLAS      -- $internal_blas" >&5
 
21339
echo "${ECHO_T}  Use internal BLAS      -- $internal_blas" >&6; }
 
21340
{ echo "$as_me:$LINENO: result:   Debug build            -- $debug" >&5
 
21341
echo "${ECHO_T}  Debug build            -- $debug" >&6; }
 
21342
{ echo "$as_me:$LINENO: result:   Profiling              -- $use_gprof" >&5
 
21343
echo "${ECHO_T}  Profiling              -- $use_gprof" >&6; }
 
21344
{ echo "$as_me:$LINENO: result:   Shell interface        -- $use_shell" >&5
 
21345
echo "${ECHO_T}  Shell interface        -- $use_shell" >&6; }