~ubuntu-branches/ubuntu/maverick/libxcb/maverick

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2009-04-29 09:12:45 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090429091245-y52bls65h0988u22
Tags: 1.2-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - libxcb1 should Breaks: libxcb-xlib0 instead of Conflicts:, since
    there are no file overlaps and Breaks will allow apt to better
    calculate an upgrade from hardy/intrepid.

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 libxcb 1.2.
 
4
#
 
5
# Report bugs to <xcb@lists.freedesktop.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='libxcb'
 
730
PACKAGE_TARNAME='libxcb'
 
731
PACKAGE_VERSION='1.2'
 
732
PACKAGE_STRING='libxcb 1.2'
 
733
PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
 
734
 
 
735
ac_unique_file="xcb.pc.in"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
am__isrc
 
813
CYGPATH_W
 
814
PACKAGE
 
815
VERSION
 
816
ACLOCAL
 
817
AUTOCONF
 
818
AUTOMAKE
 
819
AUTOHEADER
 
820
MAKEINFO
 
821
install_sh
 
822
STRIP
 
823
INSTALL_STRIP_PROGRAM
 
824
mkdir_p
 
825
AWK
 
826
SET_MAKE
 
827
am__leading_dot
 
828
AMTAR
 
829
am__tar
 
830
am__untar
 
831
PYTHON
 
832
PYTHON_VERSION
 
833
PYTHON_PREFIX
 
834
PYTHON_EXEC_PREFIX
 
835
PYTHON_PLATFORM
 
836
pythondir
 
837
pkgpythondir
 
838
pyexecdir
 
839
pkgpyexecdir
 
840
PKG_CONFIG
 
841
CHECK_CFLAGS
 
842
CHECK_LIBS
 
843
HAVE_CHECK_TRUE
 
844
HAVE_CHECK_FALSE
 
845
build
 
846
build_cpu
 
847
build_vendor
 
848
build_os
 
849
host
 
850
host_cpu
 
851
host_vendor
 
852
host_os
 
853
CC
 
854
CFLAGS
 
855
LDFLAGS
 
856
CPPFLAGS
 
857
ac_ct_CC
 
858
EXEEXT
 
859
OBJEXT
 
860
DEPDIR
 
861
am__include
 
862
am__quote
 
863
AMDEP_TRUE
 
864
AMDEP_FALSE
 
865
AMDEPBACKSLASH
 
866
CCDEPMODE
 
867
am__fastdepCC_TRUE
 
868
am__fastdepCC_FALSE
 
869
SED
 
870
GREP
 
871
EGREP
 
872
LN_S
 
873
ECHO
 
874
AR
 
875
RANLIB
 
876
DSYMUTIL
 
877
NMEDIT
 
878
CPP
 
879
CXX
 
880
CXXFLAGS
 
881
ac_ct_CXX
 
882
CXXDEPMODE
 
883
am__fastdepCXX_TRUE
 
884
am__fastdepCXX_FALSE
 
885
CXXCPP
 
886
F77
 
887
FFLAGS
 
888
ac_ct_F77
 
889
LIBTOOL
 
890
XSLTPROC
 
891
HTML_CHECK_RESULT
 
892
XCBPROTO_CFLAGS
 
893
XCBPROTO_LIBS
 
894
NEEDED_CFLAGS
 
895
NEEDED_LIBS
 
896
XDMCP_CFLAGS
 
897
XDMCP_LIBS
 
898
NEEDED
 
899
XCBPROTO_XCBINCLUDEDIR
 
900
XCBPROTO_XCBPYTHONDIR
 
901
xcbincludedir
 
902
CWARNFLAGS
 
903
BUILD_DOCS
 
904
DOXYGEN
 
905
BUILD_DOCS_TRUE
 
906
BUILD_DOCS_FALSE
 
907
BUILD_COMPOSITE_TRUE
 
908
BUILD_COMPOSITE_FALSE
 
909
BUILD_DAMAGE_TRUE
 
910
BUILD_DAMAGE_FALSE
 
911
BUILD_DPMS_TRUE
 
912
BUILD_DPMS_FALSE
 
913
BUILD_GLX_TRUE
 
914
BUILD_GLX_FALSE
 
915
BUILD_RANDR_TRUE
 
916
BUILD_RANDR_FALSE
 
917
BUILD_RECORD_TRUE
 
918
BUILD_RECORD_FALSE
 
919
BUILD_RENDER_TRUE
 
920
BUILD_RENDER_FALSE
 
921
BUILD_RESOURCE_TRUE
 
922
BUILD_RESOURCE_FALSE
 
923
BUILD_SCREENSAVER_TRUE
 
924
BUILD_SCREENSAVER_FALSE
 
925
BUILD_SHAPE_TRUE
 
926
BUILD_SHAPE_FALSE
 
927
BUILD_SHM_TRUE
 
928
BUILD_SHM_FALSE
 
929
BUILD_SYNC_TRUE
 
930
BUILD_SYNC_FALSE
 
931
BUILD_XEVIE_TRUE
 
932
BUILD_XEVIE_FALSE
 
933
BUILD_XFIXES_TRUE
 
934
BUILD_XFIXES_FALSE
 
935
BUILD_XFREE86_DRI_TRUE
 
936
BUILD_XFREE86_DRI_FALSE
 
937
BUILD_XINERAMA_TRUE
 
938
BUILD_XINERAMA_FALSE
 
939
BUILD_XINPUT_TRUE
 
940
BUILD_XINPUT_FALSE
 
941
BUILD_XPRINT_TRUE
 
942
BUILD_XPRINT_FALSE
 
943
BUILD_SELINUX_TRUE
 
944
BUILD_SELINUX_FALSE
 
945
BUILD_XTEST_TRUE
 
946
BUILD_XTEST_FALSE
 
947
BUILD_XV_TRUE
 
948
BUILD_XV_FALSE
 
949
BUILD_XVMC_TRUE
 
950
BUILD_XVMC_FALSE
 
951
LAUNCHD
 
952
LIBOBJS
 
953
LTLIBOBJS'
 
954
ac_subst_files=''
 
955
      ac_precious_vars='build_alias
 
956
host_alias
 
957
target_alias
 
958
PKG_CONFIG
 
959
CHECK_CFLAGS
 
960
CHECK_LIBS
 
961
CC
 
962
CFLAGS
 
963
LDFLAGS
 
964
LIBS
 
965
CPPFLAGS
 
966
CPP
 
967
CXX
 
968
CXXFLAGS
 
969
CCC
 
970
CXXCPP
 
971
F77
 
972
FFLAGS
 
973
XCBPROTO_CFLAGS
 
974
XCBPROTO_LIBS
 
975
NEEDED_CFLAGS
 
976
NEEDED_LIBS
 
977
XDMCP_CFLAGS
 
978
XDMCP_LIBS'
 
979
 
 
980
 
 
981
# Initialize some variables set by options.
 
982
ac_init_help=
 
983
ac_init_version=false
 
984
# The variables have the same names as the options, with
 
985
# dashes changed to underlines.
 
986
cache_file=/dev/null
 
987
exec_prefix=NONE
 
988
no_create=
 
989
no_recursion=
 
990
prefix=NONE
 
991
program_prefix=NONE
 
992
program_suffix=NONE
 
993
program_transform_name=s,x,x,
 
994
silent=
 
995
site=
 
996
srcdir=
 
997
verbose=
 
998
x_includes=NONE
 
999
x_libraries=NONE
 
1000
 
 
1001
# Installation directory options.
 
1002
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1003
# and all the variables that are supposed to be based on exec_prefix
 
1004
# by default will actually change.
 
1005
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1006
# (The list follows the same order as the GNU Coding Standards.)
 
1007
bindir='${exec_prefix}/bin'
 
1008
sbindir='${exec_prefix}/sbin'
 
1009
libexecdir='${exec_prefix}/libexec'
 
1010
datarootdir='${prefix}/share'
 
1011
datadir='${datarootdir}'
 
1012
sysconfdir='${prefix}/etc'
 
1013
sharedstatedir='${prefix}/com'
 
1014
localstatedir='${prefix}/var'
 
1015
includedir='${prefix}/include'
 
1016
oldincludedir='/usr/include'
 
1017
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1018
infodir='${datarootdir}/info'
 
1019
htmldir='${docdir}'
 
1020
dvidir='${docdir}'
 
1021
pdfdir='${docdir}'
 
1022
psdir='${docdir}'
 
1023
libdir='${exec_prefix}/lib'
 
1024
localedir='${datarootdir}/locale'
 
1025
mandir='${datarootdir}/man'
 
1026
 
 
1027
ac_prev=
 
1028
ac_dashdash=
 
1029
for ac_option
 
1030
do
 
1031
  # If the previous option needs an argument, assign it.
 
1032
  if test -n "$ac_prev"; then
 
1033
    eval $ac_prev=\$ac_option
 
1034
    ac_prev=
 
1035
    continue
 
1036
  fi
 
1037
 
 
1038
  case $ac_option in
 
1039
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1040
  *)    ac_optarg=yes ;;
 
1041
  esac
 
1042
 
 
1043
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1044
 
 
1045
  case $ac_dashdash$ac_option in
 
1046
  --)
 
1047
    ac_dashdash=yes ;;
 
1048
 
 
1049
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1050
    ac_prev=bindir ;;
 
1051
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1052
    bindir=$ac_optarg ;;
 
1053
 
 
1054
  -build | --build | --buil | --bui | --bu)
 
1055
    ac_prev=build_alias ;;
 
1056
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1057
    build_alias=$ac_optarg ;;
 
1058
 
 
1059
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1060
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1061
    ac_prev=cache_file ;;
 
1062
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1063
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1064
    cache_file=$ac_optarg ;;
 
1065
 
 
1066
  --config-cache | -C)
 
1067
    cache_file=config.cache ;;
 
1068
 
 
1069
  -datadir | --datadir | --datadi | --datad)
 
1070
    ac_prev=datadir ;;
 
1071
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1072
    datadir=$ac_optarg ;;
 
1073
 
 
1074
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1075
  | --dataroo | --dataro | --datar)
 
1076
    ac_prev=datarootdir ;;
 
1077
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1078
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1079
    datarootdir=$ac_optarg ;;
 
1080
 
 
1081
  -disable-* | --disable-*)
 
1082
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1083
    # Reject names that are not valid shell variable names.
 
1084
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1085
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1086
   { (exit 1); exit 1; }; }
 
1087
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1088
    eval enable_$ac_feature=no ;;
 
1089
 
 
1090
  -docdir | --docdir | --docdi | --doc | --do)
 
1091
    ac_prev=docdir ;;
 
1092
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1093
    docdir=$ac_optarg ;;
 
1094
 
 
1095
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1096
    ac_prev=dvidir ;;
 
1097
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1098
    dvidir=$ac_optarg ;;
 
1099
 
 
1100
  -enable-* | --enable-*)
 
1101
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1102
    # Reject names that are not valid shell variable names.
 
1103
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1104
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1105
   { (exit 1); exit 1; }; }
 
1106
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1107
    eval enable_$ac_feature=\$ac_optarg ;;
 
1108
 
 
1109
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1110
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1111
  | --exec | --exe | --ex)
 
1112
    ac_prev=exec_prefix ;;
 
1113
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1114
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1115
  | --exec=* | --exe=* | --ex=*)
 
1116
    exec_prefix=$ac_optarg ;;
 
1117
 
 
1118
  -gas | --gas | --ga | --g)
 
1119
    # Obsolete; use --with-gas.
 
1120
    with_gas=yes ;;
 
1121
 
 
1122
  -help | --help | --hel | --he | -h)
 
1123
    ac_init_help=long ;;
 
1124
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1125
    ac_init_help=recursive ;;
 
1126
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1127
    ac_init_help=short ;;
 
1128
 
 
1129
  -host | --host | --hos | --ho)
 
1130
    ac_prev=host_alias ;;
 
1131
  -host=* | --host=* | --hos=* | --ho=*)
 
1132
    host_alias=$ac_optarg ;;
 
1133
 
 
1134
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1135
    ac_prev=htmldir ;;
 
1136
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1137
  | --ht=*)
 
1138
    htmldir=$ac_optarg ;;
 
1139
 
 
1140
  -includedir | --includedir | --includedi | --included | --include \
 
1141
  | --includ | --inclu | --incl | --inc)
 
1142
    ac_prev=includedir ;;
 
1143
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1144
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1145
    includedir=$ac_optarg ;;
 
1146
 
 
1147
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1148
    ac_prev=infodir ;;
 
1149
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1150
    infodir=$ac_optarg ;;
 
1151
 
 
1152
  -libdir | --libdir | --libdi | --libd)
 
1153
    ac_prev=libdir ;;
 
1154
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1155
    libdir=$ac_optarg ;;
 
1156
 
 
1157
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1158
  | --libexe | --libex | --libe)
 
1159
    ac_prev=libexecdir ;;
 
1160
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1161
  | --libexe=* | --libex=* | --libe=*)
 
1162
    libexecdir=$ac_optarg ;;
 
1163
 
 
1164
  -localedir | --localedir | --localedi | --localed | --locale)
 
1165
    ac_prev=localedir ;;
 
1166
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1167
    localedir=$ac_optarg ;;
 
1168
 
 
1169
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1170
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1171
    ac_prev=localstatedir ;;
 
1172
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1173
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1174
    localstatedir=$ac_optarg ;;
 
1175
 
 
1176
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1177
    ac_prev=mandir ;;
 
1178
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1179
    mandir=$ac_optarg ;;
 
1180
 
 
1181
  -nfp | --nfp | --nf)
 
1182
    # Obsolete; use --without-fp.
 
1183
    with_fp=no ;;
 
1184
 
 
1185
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1186
  | --no-cr | --no-c | -n)
 
1187
    no_create=yes ;;
 
1188
 
 
1189
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1190
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1191
    no_recursion=yes ;;
 
1192
 
 
1193
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1194
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1195
  | --oldin | --oldi | --old | --ol | --o)
 
1196
    ac_prev=oldincludedir ;;
 
1197
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1198
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1199
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1200
    oldincludedir=$ac_optarg ;;
 
1201
 
 
1202
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1203
    ac_prev=prefix ;;
 
1204
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1205
    prefix=$ac_optarg ;;
 
1206
 
 
1207
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1208
  | --program-pre | --program-pr | --program-p)
 
1209
    ac_prev=program_prefix ;;
 
1210
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1211
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1212
    program_prefix=$ac_optarg ;;
 
1213
 
 
1214
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1215
  | --program-suf | --program-su | --program-s)
 
1216
    ac_prev=program_suffix ;;
 
1217
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1218
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1219
    program_suffix=$ac_optarg ;;
 
1220
 
 
1221
  -program-transform-name | --program-transform-name \
 
1222
  | --program-transform-nam | --program-transform-na \
 
1223
  | --program-transform-n | --program-transform- \
 
1224
  | --program-transform | --program-transfor \
 
1225
  | --program-transfo | --program-transf \
 
1226
  | --program-trans | --program-tran \
 
1227
  | --progr-tra | --program-tr | --program-t)
 
1228
    ac_prev=program_transform_name ;;
 
1229
  -program-transform-name=* | --program-transform-name=* \
 
1230
  | --program-transform-nam=* | --program-transform-na=* \
 
1231
  | --program-transform-n=* | --program-transform-=* \
 
1232
  | --program-transform=* | --program-transfor=* \
 
1233
  | --program-transfo=* | --program-transf=* \
 
1234
  | --program-trans=* | --program-tran=* \
 
1235
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1236
    program_transform_name=$ac_optarg ;;
 
1237
 
 
1238
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1239
    ac_prev=pdfdir ;;
 
1240
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1241
    pdfdir=$ac_optarg ;;
 
1242
 
 
1243
  -psdir | --psdir | --psdi | --psd | --ps)
 
1244
    ac_prev=psdir ;;
 
1245
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1246
    psdir=$ac_optarg ;;
 
1247
 
 
1248
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1249
  | -silent | --silent | --silen | --sile | --sil)
 
1250
    silent=yes ;;
 
1251
 
 
1252
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1253
    ac_prev=sbindir ;;
 
1254
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1255
  | --sbi=* | --sb=*)
 
1256
    sbindir=$ac_optarg ;;
 
1257
 
 
1258
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1259
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1260
  | --sharedst | --shareds | --shared | --share | --shar \
 
1261
  | --sha | --sh)
 
1262
    ac_prev=sharedstatedir ;;
 
1263
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1264
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1265
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1266
  | --sha=* | --sh=*)
 
1267
    sharedstatedir=$ac_optarg ;;
 
1268
 
 
1269
  -site | --site | --sit)
 
1270
    ac_prev=site ;;
 
1271
  -site=* | --site=* | --sit=*)
 
1272
    site=$ac_optarg ;;
 
1273
 
 
1274
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1275
    ac_prev=srcdir ;;
 
1276
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1277
    srcdir=$ac_optarg ;;
 
1278
 
 
1279
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1280
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1281
    ac_prev=sysconfdir ;;
 
1282
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1283
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1284
    sysconfdir=$ac_optarg ;;
 
1285
 
 
1286
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1287
    ac_prev=target_alias ;;
 
1288
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1289
    target_alias=$ac_optarg ;;
 
1290
 
 
1291
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1292
    verbose=yes ;;
 
1293
 
 
1294
  -version | --version | --versio | --versi | --vers | -V)
 
1295
    ac_init_version=: ;;
 
1296
 
 
1297
  -with-* | --with-*)
 
1298
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1299
    # Reject names that are not valid shell variable names.
 
1300
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1301
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1302
   { (exit 1); exit 1; }; }
 
1303
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1304
    eval with_$ac_package=\$ac_optarg ;;
 
1305
 
 
1306
  -without-* | --without-*)
 
1307
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1308
    # Reject names that are not valid shell variable names.
 
1309
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1310
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1311
   { (exit 1); exit 1; }; }
 
1312
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1313
    eval with_$ac_package=no ;;
 
1314
 
 
1315
  --x)
 
1316
    # Obsolete; use --with-x.
 
1317
    with_x=yes ;;
 
1318
 
 
1319
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1320
  | --x-incl | --x-inc | --x-in | --x-i)
 
1321
    ac_prev=x_includes ;;
 
1322
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1323
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1324
    x_includes=$ac_optarg ;;
 
1325
 
 
1326
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1327
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1328
    ac_prev=x_libraries ;;
 
1329
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1330
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1331
    x_libraries=$ac_optarg ;;
 
1332
 
 
1333
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1334
Try \`$0 --help' for more information." >&2
 
1335
   { (exit 1); exit 1; }; }
 
1336
    ;;
 
1337
 
 
1338
  *=*)
 
1339
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1340
    # Reject names that are not valid shell variable names.
 
1341
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1342
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1343
   { (exit 1); exit 1; }; }
 
1344
    eval $ac_envvar=\$ac_optarg
 
1345
    export $ac_envvar ;;
 
1346
 
 
1347
  *)
 
1348
    # FIXME: should be removed in autoconf 3.0.
 
1349
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1350
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1351
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1352
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1353
    ;;
 
1354
 
 
1355
  esac
 
1356
done
 
1357
 
 
1358
if test -n "$ac_prev"; then
 
1359
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1360
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1361
   { (exit 1); exit 1; }; }
 
1362
fi
 
1363
 
 
1364
# Be sure to have absolute directory names.
 
1365
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1366
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1367
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1368
                libdir localedir mandir
 
1369
do
 
1370
  eval ac_val=\$$ac_var
 
1371
  case $ac_val in
 
1372
    [\\/$]* | ?:[\\/]* )  continue;;
 
1373
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1374
  esac
 
1375
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1376
   { (exit 1); exit 1; }; }
 
1377
done
 
1378
 
 
1379
# There might be people who depend on the old broken behavior: `$host'
 
1380
# used to hold the argument of --host etc.
 
1381
# FIXME: To remove some day.
 
1382
build=$build_alias
 
1383
host=$host_alias
 
1384
target=$target_alias
 
1385
 
 
1386
# FIXME: To remove some day.
 
1387
if test "x$host_alias" != x; then
 
1388
  if test "x$build_alias" = x; then
 
1389
    cross_compiling=maybe
 
1390
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1391
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1392
  elif test "x$build_alias" != "x$host_alias"; then
 
1393
    cross_compiling=yes
 
1394
  fi
 
1395
fi
 
1396
 
 
1397
ac_tool_prefix=
 
1398
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1399
 
 
1400
test "$silent" = yes && exec 6>/dev/null
 
1401
 
 
1402
 
 
1403
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1404
ac_ls_di=`ls -di .` &&
 
1405
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1406
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1407
   { (exit 1); exit 1; }; }
 
1408
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1409
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1410
   { (exit 1); exit 1; }; }
 
1411
 
 
1412
 
 
1413
# Find the source files, if location was not specified.
 
1414
if test -z "$srcdir"; then
 
1415
  ac_srcdir_defaulted=yes
 
1416
  # Try the directory containing this script, then the parent directory.
 
1417
  ac_confdir=`$as_dirname -- "$0" ||
 
1418
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1419
         X"$0" : 'X\(//\)[^/]' \| \
 
1420
         X"$0" : 'X\(//\)$' \| \
 
1421
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1422
echo X"$0" |
 
1423
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1424
            s//\1/
 
1425
            q
 
1426
          }
 
1427
          /^X\(\/\/\)[^/].*/{
 
1428
            s//\1/
 
1429
            q
 
1430
          }
 
1431
          /^X\(\/\/\)$/{
 
1432
            s//\1/
 
1433
            q
 
1434
          }
 
1435
          /^X\(\/\).*/{
 
1436
            s//\1/
 
1437
            q
 
1438
          }
 
1439
          s/.*/./; q'`
 
1440
  srcdir=$ac_confdir
 
1441
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1442
    srcdir=..
 
1443
  fi
 
1444
else
 
1445
  ac_srcdir_defaulted=no
 
1446
fi
 
1447
if test ! -r "$srcdir/$ac_unique_file"; then
 
1448
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1449
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1450
   { (exit 1); exit 1; }; }
 
1451
fi
 
1452
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1453
ac_abs_confdir=`(
 
1454
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1455
   { (exit 1); exit 1; }; }
 
1456
        pwd)`
 
1457
# When building in place, set srcdir=.
 
1458
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1459
  srcdir=.
 
1460
fi
 
1461
# Remove unnecessary trailing slashes from srcdir.
 
1462
# Double slashes in file names in object file debugging info
 
1463
# mess up M-x gdb in Emacs.
 
1464
case $srcdir in
 
1465
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1466
esac
 
1467
for ac_var in $ac_precious_vars; do
 
1468
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1469
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1470
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1471
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1472
done
 
1473
 
 
1474
#
 
1475
# Report the --help message.
 
1476
#
 
1477
if test "$ac_init_help" = "long"; then
 
1478
  # Omit some internal or obsolete options to make the list less imposing.
 
1479
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1480
  cat <<_ACEOF
 
1481
\`configure' configures libxcb 1.2 to adapt to many kinds of systems.
 
1482
 
 
1483
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1484
 
 
1485
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1486
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1487
 
 
1488
Defaults for the options are specified in brackets.
 
1489
 
 
1490
Configuration:
 
1491
  -h, --help              display this help and exit
 
1492
      --help=short        display options specific to this package
 
1493
      --help=recursive    display the short help of all the included packages
 
1494
  -V, --version           display version information and exit
 
1495
  -q, --quiet, --silent   do not print \`checking...' messages
 
1496
      --cache-file=FILE   cache test results in FILE [disabled]
 
1497
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1498
  -n, --no-create         do not create output files
 
1499
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1500
 
 
1501
Installation directories:
 
1502
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1503
                          [$ac_default_prefix]
 
1504
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1505
                          [PREFIX]
 
1506
 
 
1507
By default, \`make install' will install all the files in
 
1508
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1509
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1510
for instance \`--prefix=\$HOME'.
 
1511
 
 
1512
For better control, use the options below.
 
1513
 
 
1514
Fine tuning of the installation directories:
 
1515
  --bindir=DIR           user executables [EPREFIX/bin]
 
1516
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1517
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1518
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1519
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1520
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1521
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1522
  --includedir=DIR       C header files [PREFIX/include]
 
1523
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1524
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1525
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1526
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1527
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1528
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1529
  --docdir=DIR           documentation root [DATAROOTDIR/doc/libxcb]
 
1530
  --htmldir=DIR          html documentation [DOCDIR]
 
1531
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1532
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1533
  --psdir=DIR            ps documentation [DOCDIR]
 
1534
_ACEOF
 
1535
 
 
1536
  cat <<\_ACEOF
 
1537
 
 
1538
Program names:
 
1539
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1540
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1541
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1542
 
 
1543
System types:
 
1544
  --build=BUILD     configure for building on BUILD [guessed]
 
1545
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1546
_ACEOF
 
1547
fi
 
1548
 
 
1549
if test -n "$ac_init_help"; then
 
1550
  case $ac_init_help in
 
1551
     short | recursive ) echo "Configuration of libxcb 1.2:";;
 
1552
   esac
 
1553
  cat <<\_ACEOF
 
1554
 
 
1555
Optional Features:
 
1556
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1557
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1558
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1559
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1560
  --enable-fast-install[=PKGS]
 
1561
                          optimize for fast installation [default=yes]
 
1562
  --disable-dependency-tracking  speeds up one-time build
 
1563
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1564
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1565
  --disable-build-docs    Disable the build of the documentation
 
1566
  --enable-composite
 
1567
                          Build XCB Composite Extension (default: "yes")
 
1568
  --enable-damage         Build XCB Damage Extension (default: "yes")
 
1569
  --enable-dpms           Build XCB DPMS Extension (default: "yes")
 
1570
  --enable-glx            Build XCB GLX Extension (default: "yes")
 
1571
  --enable-randr          Build XCB RandR Extension (default: "yes")
 
1572
  --enable-record         Build XCB Record Extension (default: "yes")
 
1573
  --enable-render         Build XCB Render Extension (default: "yes")
 
1574
  --enable-resource
 
1575
                          Build XCB Resource Extension (default: "yes")
 
1576
  --enable-screensaver
 
1577
                          Build XCB Screensaver Extension (default: "yes")
 
1578
  --enable-shape          Build XCB Shape Extension (default: "yes")
 
1579
  --enable-shm            Build XCB Shm Extension (default: "yes")
 
1580
  --enable-sync           Build XCB Sync Extension (default: "yes")
 
1581
  --enable-xevie          Build XCB Xevie Extension (default: "yes")
 
1582
  --enable-xfixes         Build XCB XFixes Extension (default: "yes")
 
1583
  --enable-xfree86-dri
 
1584
                          Build XCB XFree86-DRI Extension (default: "yes")
 
1585
  --enable-xinerama
 
1586
                          Build XCB Xinerama Extension (default: "yes")
 
1587
  --enable-xinput         Build XCB XInput Extension (default: "no")
 
1588
  --enable-xprint         Build XCB Xprint Extension (default: "yes")
 
1589
  --enable-selinux
 
1590
                          Build XCB SELinux Extension (default: "no")
 
1591
  --enable-xtest          Build XCB XTest Extension (default: "yes")
 
1592
  --enable-xv             Build XCB Xv Extension (default: "yes")
 
1593
  --enable-xvmc           Build XCB XvMC Extension (default: "yes")
 
1594
 
 
1595
Optional Packages:
 
1596
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1597
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1598
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1599
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1600
                          both]
 
1601
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1602
  --with-queue-size=SIZE  Set the XCB buffer queue size (default is 16384)
 
1603
  --with-doxygen=FILE     doxygen program to use (eg /usr/bin/doxygen)
 
1604
  --with-launchd          Build with support for Apple's launchd (default:
 
1605
                          auto)
 
1606
 
 
1607
Some influential environment variables:
 
1608
  PKG_CONFIG  path to pkg-config utility
 
1609
  CHECK_CFLAGS
 
1610
              C compiler flags for CHECK, overriding pkg-config
 
1611
  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
 
1612
  CC          C compiler command
 
1613
  CFLAGS      C compiler flags
 
1614
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1615
              nonstandard directory <lib dir>
 
1616
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1617
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1618
              you have headers in a nonstandard directory <include dir>
 
1619
  CPP         C preprocessor
 
1620
  CXX         C++ compiler command
 
1621
  CXXFLAGS    C++ compiler flags
 
1622
  CXXCPP      C++ preprocessor
 
1623
  F77         Fortran 77 compiler command
 
1624
  FFLAGS      Fortran 77 compiler flags
 
1625
  XCBPROTO_CFLAGS
 
1626
              C compiler flags for XCBPROTO, overriding pkg-config
 
1627
  XCBPROTO_LIBS
 
1628
              linker flags for XCBPROTO, overriding pkg-config
 
1629
  NEEDED_CFLAGS
 
1630
              C compiler flags for NEEDED, overriding pkg-config
 
1631
  NEEDED_LIBS linker flags for NEEDED, overriding pkg-config
 
1632
  XDMCP_CFLAGS
 
1633
              C compiler flags for XDMCP, overriding pkg-config
 
1634
  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
 
1635
 
 
1636
Use these variables to override the choices made by `configure' or to help
 
1637
it to find libraries and programs with nonstandard names/locations.
 
1638
 
 
1639
Report bugs to <xcb@lists.freedesktop.org>.
 
1640
_ACEOF
 
1641
ac_status=$?
 
1642
fi
 
1643
 
 
1644
if test "$ac_init_help" = "recursive"; then
 
1645
  # If there are subdirs, report their specific --help.
 
1646
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1647
    test -d "$ac_dir" || continue
 
1648
    ac_builddir=.
 
1649
 
 
1650
case "$ac_dir" in
 
1651
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1652
*)
 
1653
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1654
  # A ".." for each directory in $ac_dir_suffix.
 
1655
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1656
  case $ac_top_builddir_sub in
 
1657
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1658
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1659
  esac ;;
 
1660
esac
 
1661
ac_abs_top_builddir=$ac_pwd
 
1662
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1663
# for backward compatibility:
 
1664
ac_top_builddir=$ac_top_build_prefix
 
1665
 
 
1666
case $srcdir in
 
1667
  .)  # We are building in place.
 
1668
    ac_srcdir=.
 
1669
    ac_top_srcdir=$ac_top_builddir_sub
 
1670
    ac_abs_top_srcdir=$ac_pwd ;;
 
1671
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1672
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1673
    ac_top_srcdir=$srcdir
 
1674
    ac_abs_top_srcdir=$srcdir ;;
 
1675
  *) # Relative name.
 
1676
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1677
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1678
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1679
esac
 
1680
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1681
 
 
1682
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1683
    # Check for guested configure.
 
1684
    if test -f "$ac_srcdir/configure.gnu"; then
 
1685
      echo &&
 
1686
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1687
    elif test -f "$ac_srcdir/configure"; then
 
1688
      echo &&
 
1689
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1690
    else
 
1691
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1692
    fi || ac_status=$?
 
1693
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1694
  done
 
1695
fi
 
1696
 
 
1697
test -n "$ac_init_help" && exit $ac_status
 
1698
if $ac_init_version; then
 
1699
  cat <<\_ACEOF
 
1700
libxcb configure 1.2
 
1701
generated by GNU Autoconf 2.61
 
1702
 
 
1703
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1704
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1705
This configure script is free software; the Free Software Foundation
 
1706
gives unlimited permission to copy, distribute and modify it.
 
1707
_ACEOF
 
1708
  exit
 
1709
fi
 
1710
cat >config.log <<_ACEOF
 
1711
This file contains any messages produced by compilers while
 
1712
running configure, to aid debugging if configure makes a mistake.
 
1713
 
 
1714
It was created by libxcb $as_me 1.2, which was
 
1715
generated by GNU Autoconf 2.61.  Invocation command line was
 
1716
 
 
1717
  $ $0 $@
 
1718
 
 
1719
_ACEOF
 
1720
exec 5>>config.log
 
1721
{
 
1722
cat <<_ASUNAME
 
1723
## --------- ##
 
1724
## Platform. ##
 
1725
## --------- ##
 
1726
 
 
1727
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1728
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1729
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1730
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1731
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1732
 
 
1733
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1734
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1735
 
 
1736
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1737
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1738
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1739
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1740
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1741
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1742
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1743
 
 
1744
_ASUNAME
 
1745
 
 
1746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1747
for as_dir in $PATH
 
1748
do
 
1749
  IFS=$as_save_IFS
 
1750
  test -z "$as_dir" && as_dir=.
 
1751
  echo "PATH: $as_dir"
 
1752
done
 
1753
IFS=$as_save_IFS
 
1754
 
 
1755
} >&5
 
1756
 
 
1757
cat >&5 <<_ACEOF
 
1758
 
 
1759
 
 
1760
## ----------- ##
 
1761
## Core tests. ##
 
1762
## ----------- ##
 
1763
 
 
1764
_ACEOF
 
1765
 
 
1766
 
 
1767
# Keep a trace of the command line.
 
1768
# Strip out --no-create and --no-recursion so they do not pile up.
 
1769
# Strip out --silent because we don't want to record it for future runs.
 
1770
# Also quote any args containing shell meta-characters.
 
1771
# Make two passes to allow for proper duplicate-argument suppression.
 
1772
ac_configure_args=
 
1773
ac_configure_args0=
 
1774
ac_configure_args1=
 
1775
ac_must_keep_next=false
 
1776
for ac_pass in 1 2
 
1777
do
 
1778
  for ac_arg
 
1779
  do
 
1780
    case $ac_arg in
 
1781
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1782
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1783
    | -silent | --silent | --silen | --sile | --sil)
 
1784
      continue ;;
 
1785
    *\'*)
 
1786
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1787
    esac
 
1788
    case $ac_pass in
 
1789
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1790
    2)
 
1791
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1792
      if test $ac_must_keep_next = true; then
 
1793
        ac_must_keep_next=false # Got value, back to normal.
 
1794
      else
 
1795
        case $ac_arg in
 
1796
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1797
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1798
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1799
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1800
            case "$ac_configure_args0 " in
 
1801
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1802
            esac
 
1803
            ;;
 
1804
          -* ) ac_must_keep_next=true ;;
 
1805
        esac
 
1806
      fi
 
1807
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1808
      ;;
 
1809
    esac
 
1810
  done
 
1811
done
 
1812
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1813
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1814
 
 
1815
# When interrupted or exit'd, cleanup temporary files, and complete
 
1816
# config.log.  We remove comments because anyway the quotes in there
 
1817
# would cause problems or look ugly.
 
1818
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1819
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1820
trap 'exit_status=$?
 
1821
  # Save into config.log some information that might help in debugging.
 
1822
  {
 
1823
    echo
 
1824
 
 
1825
    cat <<\_ASBOX
 
1826
## ---------------- ##
 
1827
## Cache variables. ##
 
1828
## ---------------- ##
 
1829
_ASBOX
 
1830
    echo
 
1831
    # The following way of writing the cache mishandles newlines in values,
 
1832
(
 
1833
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1834
    eval ac_val=\$$ac_var
 
1835
    case $ac_val in #(
 
1836
    *${as_nl}*)
 
1837
      case $ac_var in #(
 
1838
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1839
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1840
      esac
 
1841
      case $ac_var in #(
 
1842
      _ | IFS | as_nl) ;; #(
 
1843
      *) $as_unset $ac_var ;;
 
1844
      esac ;;
 
1845
    esac
 
1846
  done
 
1847
  (set) 2>&1 |
 
1848
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1849
    *${as_nl}ac_space=\ *)
 
1850
      sed -n \
 
1851
        "s/'\''/'\''\\\\'\'''\''/g;
 
1852
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1853
      ;; #(
 
1854
    *)
 
1855
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1856
      ;;
 
1857
    esac |
 
1858
    sort
 
1859
)
 
1860
    echo
 
1861
 
 
1862
    cat <<\_ASBOX
 
1863
## ----------------- ##
 
1864
## Output variables. ##
 
1865
## ----------------- ##
 
1866
_ASBOX
 
1867
    echo
 
1868
    for ac_var in $ac_subst_vars
 
1869
    do
 
1870
      eval ac_val=\$$ac_var
 
1871
      case $ac_val in
 
1872
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1873
      esac
 
1874
      echo "$ac_var='\''$ac_val'\''"
 
1875
    done | sort
 
1876
    echo
 
1877
 
 
1878
    if test -n "$ac_subst_files"; then
 
1879
      cat <<\_ASBOX
 
1880
## ------------------- ##
 
1881
## File substitutions. ##
 
1882
## ------------------- ##
 
1883
_ASBOX
 
1884
      echo
 
1885
      for ac_var in $ac_subst_files
 
1886
      do
 
1887
        eval ac_val=\$$ac_var
 
1888
        case $ac_val in
 
1889
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1890
        esac
 
1891
        echo "$ac_var='\''$ac_val'\''"
 
1892
      done | sort
 
1893
      echo
 
1894
    fi
 
1895
 
 
1896
    if test -s confdefs.h; then
 
1897
      cat <<\_ASBOX
 
1898
## ----------- ##
 
1899
## confdefs.h. ##
 
1900
## ----------- ##
 
1901
_ASBOX
 
1902
      echo
 
1903
      cat confdefs.h
 
1904
      echo
 
1905
    fi
 
1906
    test "$ac_signal" != 0 &&
 
1907
      echo "$as_me: caught signal $ac_signal"
 
1908
    echo "$as_me: exit $exit_status"
 
1909
  } >&5
 
1910
  rm -f core *.core core.conftest.* &&
 
1911
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1912
    exit $exit_status
 
1913
' 0
 
1914
for ac_signal in 1 2 13 15; do
 
1915
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1916
done
 
1917
ac_signal=0
 
1918
 
 
1919
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1920
rm -f -r conftest* confdefs.h
 
1921
 
 
1922
# Predefined preprocessor variables.
 
1923
 
 
1924
cat >>confdefs.h <<_ACEOF
 
1925
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1926
_ACEOF
 
1927
 
 
1928
 
 
1929
cat >>confdefs.h <<_ACEOF
 
1930
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1931
_ACEOF
 
1932
 
 
1933
 
 
1934
cat >>confdefs.h <<_ACEOF
 
1935
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1936
_ACEOF
 
1937
 
 
1938
 
 
1939
cat >>confdefs.h <<_ACEOF
 
1940
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1941
_ACEOF
 
1942
 
 
1943
 
 
1944
cat >>confdefs.h <<_ACEOF
 
1945
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1946
_ACEOF
 
1947
 
 
1948
 
 
1949
# Let the site file select an alternate cache file if it wants to.
 
1950
# Prefer explicitly selected file to automatically selected ones.
 
1951
if test -n "$CONFIG_SITE"; then
 
1952
  set x "$CONFIG_SITE"
 
1953
elif test "x$prefix" != xNONE; then
 
1954
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1955
else
 
1956
  set x "$ac_default_prefix/share/config.site" \
 
1957
        "$ac_default_prefix/etc/config.site"
 
1958
fi
 
1959
shift
 
1960
for ac_site_file
 
1961
do
 
1962
  if test -r "$ac_site_file"; then
 
1963
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1964
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1965
    sed 's/^/| /' "$ac_site_file" >&5
 
1966
    . "$ac_site_file"
 
1967
  fi
 
1968
done
 
1969
 
 
1970
if test -r "$cache_file"; then
 
1971
  # Some versions of bash will fail to source /dev/null (special
 
1972
  # files actually), so we avoid doing that.
 
1973
  if test -f "$cache_file"; then
 
1974
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1975
echo "$as_me: loading cache $cache_file" >&6;}
 
1976
    case $cache_file in
 
1977
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1978
      *)                      . "./$cache_file";;
 
1979
    esac
 
1980
  fi
 
1981
else
 
1982
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1983
echo "$as_me: creating cache $cache_file" >&6;}
 
1984
  >$cache_file
 
1985
fi
 
1986
 
 
1987
# Check that the precious variables saved in the cache have kept the same
 
1988
# value.
 
1989
ac_cache_corrupted=false
 
1990
for ac_var in $ac_precious_vars; do
 
1991
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1992
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1993
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1994
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1995
  case $ac_old_set,$ac_new_set in
 
1996
    set,)
 
1997
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1998
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1999
      ac_cache_corrupted=: ;;
 
2000
    ,set)
 
2001
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2002
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2003
      ac_cache_corrupted=: ;;
 
2004
    ,);;
 
2005
    *)
 
2006
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2007
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2008
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2009
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
2010
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
2011
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
2012
echo "$as_me:   current value: $ac_new_val" >&2;}
 
2013
        ac_cache_corrupted=:
 
2014
      fi;;
 
2015
  esac
 
2016
  # Pass precious variables to config.status.
 
2017
  if test "$ac_new_set" = set; then
 
2018
    case $ac_new_val in
 
2019
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2020
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2021
    esac
 
2022
    case " $ac_configure_args " in
 
2023
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2024
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2025
    esac
 
2026
  fi
 
2027
done
 
2028
if $ac_cache_corrupted; then
 
2029
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2030
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2031
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2032
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2033
   { (exit 1); exit 1; }; }
 
2034
fi
 
2035
 
 
2036
 
 
2037
 
 
2038
 
 
2039
 
 
2040
 
 
2041
 
 
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
 
2049
 
 
2050
 
 
2051
 
 
2052
 
 
2053
 
 
2054
 
 
2055
 
 
2056
 
 
2057
 
 
2058
 
 
2059
 
 
2060
ac_ext=c
 
2061
ac_cpp='$CPP $CPPFLAGS'
 
2062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2065
 
 
2066
 
 
2067
 
 
2068
am__api_version='1.10'
 
2069
 
 
2070
ac_aux_dir=
 
2071
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2072
  if test -f "$ac_dir/install-sh"; then
 
2073
    ac_aux_dir=$ac_dir
 
2074
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2075
    break
 
2076
  elif test -f "$ac_dir/install.sh"; then
 
2077
    ac_aux_dir=$ac_dir
 
2078
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2079
    break
 
2080
  elif test -f "$ac_dir/shtool"; then
 
2081
    ac_aux_dir=$ac_dir
 
2082
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2083
    break
 
2084
  fi
 
2085
done
 
2086
if test -z "$ac_aux_dir"; then
 
2087
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2088
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2089
   { (exit 1); exit 1; }; }
 
2090
fi
 
2091
 
 
2092
# These three variables are undocumented and unsupported,
 
2093
# and are intended to be withdrawn in a future Autoconf release.
 
2094
# They can cause serious problems if a builder's source tree is in a directory
 
2095
# whose full name contains unusual characters.
 
2096
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2097
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2098
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2099
 
 
2100
 
 
2101
# Find a good install program.  We prefer a C program (faster),
 
2102
# so one script is as good as another.  But avoid the broken or
 
2103
# incompatible versions:
 
2104
# SysV /etc/install, /usr/sbin/install
 
2105
# SunOS /usr/etc/install
 
2106
# IRIX /sbin/install
 
2107
# AIX /bin/install
 
2108
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2109
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2110
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2111
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2112
# OS/2's system install, which has a completely different semantic
 
2113
# ./install, which can be erroneously created by make from ./install.sh.
 
2114
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2115
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2116
if test -z "$INSTALL"; then
 
2117
if test "${ac_cv_path_install+set}" = set; then
 
2118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2119
else
 
2120
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2121
for as_dir in $PATH
 
2122
do
 
2123
  IFS=$as_save_IFS
 
2124
  test -z "$as_dir" && as_dir=.
 
2125
  # Account for people who put trailing slashes in PATH elements.
 
2126
case $as_dir/ in
 
2127
  ./ | .// | /cC/* | \
 
2128
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2129
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2130
  /usr/ucb/* ) ;;
 
2131
  *)
 
2132
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2133
    # Don't use installbsd from OSF since it installs stuff as root
 
2134
    # by default.
 
2135
    for ac_prog in ginstall scoinst install; do
 
2136
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2137
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2138
          if test $ac_prog = install &&
 
2139
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2140
            # AIX install.  It has an incompatible calling convention.
 
2141
            :
 
2142
          elif test $ac_prog = install &&
 
2143
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2144
            # program-specific install script used by HP pwplus--don't use.
 
2145
            :
 
2146
          else
 
2147
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2148
            break 3
 
2149
          fi
 
2150
        fi
 
2151
      done
 
2152
    done
 
2153
    ;;
 
2154
esac
 
2155
done
 
2156
IFS=$as_save_IFS
 
2157
 
 
2158
 
 
2159
fi
 
2160
  if test "${ac_cv_path_install+set}" = set; then
 
2161
    INSTALL=$ac_cv_path_install
 
2162
  else
 
2163
    # As a last resort, use the slow shell script.  Don't cache a
 
2164
    # value for INSTALL within a source directory, because that will
 
2165
    # break other packages using the cache if that directory is
 
2166
    # removed, or if the value is a relative name.
 
2167
    INSTALL=$ac_install_sh
 
2168
  fi
 
2169
fi
 
2170
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2171
echo "${ECHO_T}$INSTALL" >&6; }
 
2172
 
 
2173
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2174
# It thinks the first close brace ends the variable substitution.
 
2175
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2176
 
 
2177
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2178
 
 
2179
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2180
 
 
2181
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2182
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2183
# Just in case
 
2184
sleep 1
 
2185
echo timestamp > conftest.file
 
2186
# Do `set' in a subshell so we don't clobber the current shell's
 
2187
# arguments.  Must try -L first in case configure is actually a
 
2188
# symlink; some systems play weird games with the mod time of symlinks
 
2189
# (eg FreeBSD returns the mod time of the symlink's containing
 
2190
# directory).
 
2191
if (
 
2192
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2193
   if test "$*" = "X"; then
 
2194
      # -L didn't work.
 
2195
      set X `ls -t $srcdir/configure conftest.file`
 
2196
   fi
 
2197
   rm -f conftest.file
 
2198
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2199
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2200
 
 
2201
      # If neither matched, then we have a broken ls.  This can happen
 
2202
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2203
      # broken ls alias from the environment.  This has actually
 
2204
      # happened.  Such a system could not be considered "sane".
 
2205
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2206
alias in your environment" >&5
 
2207
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2208
alias in your environment" >&2;}
 
2209
   { (exit 1); exit 1; }; }
 
2210
   fi
 
2211
 
 
2212
   test "$2" = conftest.file
 
2213
   )
 
2214
then
 
2215
   # Ok.
 
2216
   :
 
2217
else
 
2218
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2219
Check your system clock" >&5
 
2220
echo "$as_me: error: newly created file is older than distributed files!
 
2221
Check your system clock" >&2;}
 
2222
   { (exit 1); exit 1; }; }
 
2223
fi
 
2224
{ echo "$as_me:$LINENO: result: yes" >&5
 
2225
echo "${ECHO_T}yes" >&6; }
 
2226
test "$program_prefix" != NONE &&
 
2227
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2228
# Use a double $ so make ignores it.
 
2229
test "$program_suffix" != NONE &&
 
2230
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2231
# Double any \ or $.  echo might interpret backslashes.
 
2232
# By default was `s,x,x', remove it if useless.
 
2233
cat <<\_ACEOF >conftest.sed
 
2234
s/[\\$]/&&/g;s/;s,x,x,$//
 
2235
_ACEOF
 
2236
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2237
rm -f conftest.sed
 
2238
 
 
2239
# expand $ac_aux_dir to an absolute path
 
2240
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2241
 
 
2242
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2243
# Use eval to expand $SHELL
 
2244
if eval "$MISSING --run true"; then
 
2245
  am_missing_run="$MISSING --run "
 
2246
else
 
2247
  am_missing_run=
 
2248
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2249
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2250
fi
 
2251
 
 
2252
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2253
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2254
if test -z "$MKDIR_P"; then
 
2255
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2257
else
 
2258
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2259
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2260
do
 
2261
  IFS=$as_save_IFS
 
2262
  test -z "$as_dir" && as_dir=.
 
2263
  for ac_prog in mkdir gmkdir; do
 
2264
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2265
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2266
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2267
             'mkdir (GNU coreutils) '* | \
 
2268
             'mkdir (coreutils) '* | \
 
2269
             'mkdir (fileutils) '4.1*)
 
2270
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2271
               break 3;;
 
2272
           esac
 
2273
         done
 
2274
       done
 
2275
done
 
2276
IFS=$as_save_IFS
 
2277
 
 
2278
fi
 
2279
 
 
2280
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2281
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2282
  else
 
2283
    # As a last resort, use the slow shell script.  Don't cache a
 
2284
    # value for MKDIR_P within a source directory, because that will
 
2285
    # break other packages using the cache if that directory is
 
2286
    # removed, or if the value is a relative name.
 
2287
    test -d ./--version && rmdir ./--version
 
2288
    MKDIR_P="$ac_install_sh -d"
 
2289
  fi
 
2290
fi
 
2291
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2292
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2293
 
 
2294
mkdir_p="$MKDIR_P"
 
2295
case $mkdir_p in
 
2296
  [\\/$]* | ?:[\\/]*) ;;
 
2297
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2298
esac
 
2299
 
 
2300
for ac_prog in gawk mawk nawk awk
 
2301
do
 
2302
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2303
set dummy $ac_prog; ac_word=$2
 
2304
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2306
if test "${ac_cv_prog_AWK+set}" = set; then
 
2307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2308
else
 
2309
  if test -n "$AWK"; then
 
2310
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2311
else
 
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2313
for as_dir in $PATH
 
2314
do
 
2315
  IFS=$as_save_IFS
 
2316
  test -z "$as_dir" && as_dir=.
 
2317
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2318
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2319
    ac_cv_prog_AWK="$ac_prog"
 
2320
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2321
    break 2
 
2322
  fi
 
2323
done
 
2324
done
 
2325
IFS=$as_save_IFS
 
2326
 
 
2327
fi
 
2328
fi
 
2329
AWK=$ac_cv_prog_AWK
 
2330
if test -n "$AWK"; then
 
2331
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2332
echo "${ECHO_T}$AWK" >&6; }
 
2333
else
 
2334
  { echo "$as_me:$LINENO: result: no" >&5
 
2335
echo "${ECHO_T}no" >&6; }
 
2336
fi
 
2337
 
 
2338
 
 
2339
  test -n "$AWK" && break
 
2340
done
 
2341
 
 
2342
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2343
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2344
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2345
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2347
else
 
2348
  cat >conftest.make <<\_ACEOF
 
2349
SHELL = /bin/sh
 
2350
all:
 
2351
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2352
_ACEOF
 
2353
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2354
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2355
  *@@@%%%=?*=@@@%%%*)
 
2356
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2357
  *)
 
2358
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2359
esac
 
2360
rm -f conftest.make
 
2361
fi
 
2362
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2363
  { echo "$as_me:$LINENO: result: yes" >&5
 
2364
echo "${ECHO_T}yes" >&6; }
 
2365
  SET_MAKE=
 
2366
else
 
2367
  { echo "$as_me:$LINENO: result: no" >&5
 
2368
echo "${ECHO_T}no" >&6; }
 
2369
  SET_MAKE="MAKE=${MAKE-make}"
 
2370
fi
 
2371
 
 
2372
rm -rf .tst 2>/dev/null
 
2373
mkdir .tst 2>/dev/null
 
2374
if test -d .tst; then
 
2375
  am__leading_dot=.
 
2376
else
 
2377
  am__leading_dot=_
 
2378
fi
 
2379
rmdir .tst 2>/dev/null
 
2380
 
 
2381
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2382
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2383
  # is not polluted with repeated "-I."
 
2384
  am__isrc=' -I$(srcdir)'
 
2385
  # test to see if srcdir already configured
 
2386
  if test -f $srcdir/config.status; then
 
2387
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2388
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2389
   { (exit 1); exit 1; }; }
 
2390
  fi
 
2391
fi
 
2392
 
 
2393
# test whether we have cygpath
 
2394
if test -z "$CYGPATH_W"; then
 
2395
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2396
    CYGPATH_W='cygpath -w'
 
2397
  else
 
2398
    CYGPATH_W=echo
 
2399
  fi
 
2400
fi
 
2401
 
 
2402
 
 
2403
# Define the identity of the package.
 
2404
 PACKAGE='libxcb'
 
2405
 VERSION='1.2'
 
2406
 
 
2407
 
 
2408
cat >>confdefs.h <<_ACEOF
 
2409
#define PACKAGE "$PACKAGE"
 
2410
_ACEOF
 
2411
 
 
2412
 
 
2413
cat >>confdefs.h <<_ACEOF
 
2414
#define VERSION "$VERSION"
 
2415
_ACEOF
 
2416
 
 
2417
# Some tools Automake needs.
 
2418
 
 
2419
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2420
 
 
2421
 
 
2422
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2423
 
 
2424
 
 
2425
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2426
 
 
2427
 
 
2428
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2429
 
 
2430
 
 
2431
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2432
 
 
2433
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2434
 
 
2435
# Installed binaries are usually stripped using `strip' when the user
 
2436
# run `make install-strip'.  However `strip' might not be the right
 
2437
# tool to use in cross-compilation environments, therefore Automake
 
2438
# will honor the `STRIP' environment variable to overrule this program.
 
2439
if test "$cross_compiling" != no; then
 
2440
  if test -n "$ac_tool_prefix"; then
 
2441
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2442
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2443
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2444
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2445
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2447
else
 
2448
  if test -n "$STRIP"; then
 
2449
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2450
else
 
2451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2452
for as_dir in $PATH
 
2453
do
 
2454
  IFS=$as_save_IFS
 
2455
  test -z "$as_dir" && as_dir=.
 
2456
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2457
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2458
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2459
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2460
    break 2
 
2461
  fi
 
2462
done
 
2463
done
 
2464
IFS=$as_save_IFS
 
2465
 
 
2466
fi
 
2467
fi
 
2468
STRIP=$ac_cv_prog_STRIP
 
2469
if test -n "$STRIP"; then
 
2470
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2471
echo "${ECHO_T}$STRIP" >&6; }
 
2472
else
 
2473
  { echo "$as_me:$LINENO: result: no" >&5
 
2474
echo "${ECHO_T}no" >&6; }
 
2475
fi
 
2476
 
 
2477
 
 
2478
fi
 
2479
if test -z "$ac_cv_prog_STRIP"; then
 
2480
  ac_ct_STRIP=$STRIP
 
2481
  # Extract the first word of "strip", so it can be a program name with args.
 
2482
set dummy strip; ac_word=$2
 
2483
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2484
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2485
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2487
else
 
2488
  if test -n "$ac_ct_STRIP"; then
 
2489
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2490
else
 
2491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2492
for as_dir in $PATH
 
2493
do
 
2494
  IFS=$as_save_IFS
 
2495
  test -z "$as_dir" && as_dir=.
 
2496
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2497
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2498
    ac_cv_prog_ac_ct_STRIP="strip"
 
2499
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2500
    break 2
 
2501
  fi
 
2502
done
 
2503
done
 
2504
IFS=$as_save_IFS
 
2505
 
 
2506
fi
 
2507
fi
 
2508
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2509
if test -n "$ac_ct_STRIP"; then
 
2510
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2511
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2512
else
 
2513
  { echo "$as_me:$LINENO: result: no" >&5
 
2514
echo "${ECHO_T}no" >&6; }
 
2515
fi
 
2516
 
 
2517
  if test "x$ac_ct_STRIP" = x; then
 
2518
    STRIP=":"
 
2519
  else
 
2520
    case $cross_compiling:$ac_tool_warned in
 
2521
yes:)
 
2522
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2523
whose name does not start with the host triplet.  If you think this
 
2524
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2525
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2526
whose name does not start with the host triplet.  If you think this
 
2527
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2528
ac_tool_warned=yes ;;
 
2529
esac
 
2530
    STRIP=$ac_ct_STRIP
 
2531
  fi
 
2532
else
 
2533
  STRIP="$ac_cv_prog_STRIP"
 
2534
fi
 
2535
 
 
2536
fi
 
2537
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2538
 
 
2539
# We need awk for the "check" target.  The system "awk" is bad on
 
2540
# some platforms.
 
2541
# Always define AMTAR for backward compatibility.
 
2542
 
 
2543
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2544
 
 
2545
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2546
 
 
2547
 
 
2548
 
 
2549
 
 
2550
 
 
2551
 
 
2552
 
 
2553
 
 
2554
 
 
2555
 
 
2556
        if test -n "$PYTHON"; then
 
2557
      # If the user set $PYTHON, use it and don't search something else.
 
2558
      { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
 
2559
echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
 
2560
      prog="import sys, string
 
2561
# split strings by '.' and convert to numeric.  Append some zeros
 
2562
# because we need at least 4 digits for the hex conversion.
 
2563
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
 
2564
minverhex = 0
 
2565
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 
2566
sys.exit(sys.hexversion < minverhex)"
 
2567
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
2568
   ($PYTHON -c "$prog") >&5 2>&5
 
2569
   ac_status=$?
 
2570
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2571
   (exit $ac_status); }; then
 
2572
  { echo "$as_me:$LINENO: result: yes" >&5
 
2573
echo "${ECHO_T}yes" >&6; }
 
2574
else
 
2575
  { { echo "$as_me:$LINENO: error: too old" >&5
 
2576
echo "$as_me: error: too old" >&2;}
 
2577
   { (exit 1); exit 1; }; }
 
2578
fi
 
2579
 
 
2580
      am_display_PYTHON=$PYTHON
 
2581
    else
 
2582
      # Otherwise, try each interpreter until we find one that satisfies
 
2583
      # VERSION.
 
2584
      { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
 
2585
echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
 
2586
if test "${am_cv_pathless_PYTHON+set}" = set; then
 
2587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2588
else
 
2589
 
 
2590
        for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
 
2591
          test "$am_cv_pathless_PYTHON" = none && break
 
2592
          prog="import sys, string
 
2593
# split strings by '.' and convert to numeric.  Append some zeros
 
2594
# because we need at least 4 digits for the hex conversion.
 
2595
minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
 
2596
minverhex = 0
 
2597
for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
 
2598
sys.exit(sys.hexversion < minverhex)"
 
2599
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
2600
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
2601
   ac_status=$?
 
2602
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2603
   (exit $ac_status); }; then
 
2604
  break
 
2605
fi
 
2606
 
 
2607
        done
 
2608
fi
 
2609
{ echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
 
2610
echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
 
2611
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
2612
      if test "$am_cv_pathless_PYTHON" = none; then
 
2613
        PYTHON=:
 
2614
      else
 
2615
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
2616
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
2617
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2618
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2619
if test "${ac_cv_path_PYTHON+set}" = set; then
 
2620
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2621
else
 
2622
  case $PYTHON in
 
2623
  [\\/]* | ?:[\\/]*)
 
2624
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
2625
  ;;
 
2626
  *)
 
2627
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2628
for as_dir in $PATH
 
2629
do
 
2630
  IFS=$as_save_IFS
 
2631
  test -z "$as_dir" && as_dir=.
 
2632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2633
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2634
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
2635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2636
    break 2
 
2637
  fi
 
2638
done
 
2639
done
 
2640
IFS=$as_save_IFS
 
2641
 
 
2642
  ;;
 
2643
esac
 
2644
fi
 
2645
PYTHON=$ac_cv_path_PYTHON
 
2646
if test -n "$PYTHON"; then
 
2647
  { echo "$as_me:$LINENO: result: $PYTHON" >&5
 
2648
echo "${ECHO_T}$PYTHON" >&6; }
 
2649
else
 
2650
  { echo "$as_me:$LINENO: result: no" >&5
 
2651
echo "${ECHO_T}no" >&6; }
 
2652
fi
 
2653
 
 
2654
 
 
2655
      fi
 
2656
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
2657
    fi
 
2658
 
 
2659
 
 
2660
  if test "$PYTHON" = :; then
 
2661
      { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
 
2662
echo "$as_me: error: no suitable Python interpreter found" >&2;}
 
2663
   { (exit 1); exit 1; }; }
 
2664
  else
 
2665
 
 
2666
 
 
2667
  { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
 
2668
echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
 
2669
if test "${am_cv_python_version+set}" = set; then
 
2670
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2671
else
 
2672
  am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
 
2673
fi
 
2674
{ echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
 
2675
echo "${ECHO_T}$am_cv_python_version" >&6; }
 
2676
  PYTHON_VERSION=$am_cv_python_version
 
2677
 
 
2678
 
 
2679
 
 
2680
  PYTHON_PREFIX='${prefix}'
 
2681
 
 
2682
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
2683
 
 
2684
 
 
2685
 
 
2686
  { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
 
2687
echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
 
2688
if test "${am_cv_python_platform+set}" = set; then
 
2689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2690
else
 
2691
  am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
 
2692
fi
 
2693
{ echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
 
2694
echo "${ECHO_T}$am_cv_python_platform" >&6; }
 
2695
  PYTHON_PLATFORM=$am_cv_python_platform
 
2696
 
 
2697
 
 
2698
 
 
2699
 
 
2700
                { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
 
2701
echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
 
2702
if test "${am_cv_python_pythondir+set}" = set; then
 
2703
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2704
else
 
2705
  am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
 
2706
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
2707
fi
 
2708
{ echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
 
2709
echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
 
2710
  pythondir=$am_cv_python_pythondir
 
2711
 
 
2712
 
 
2713
 
 
2714
  pkgpythondir=\${pythondir}/$PACKAGE
 
2715
 
 
2716
 
 
2717
            { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
 
2718
echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
 
2719
if test "${am_cv_python_pyexecdir+set}" = set; then
 
2720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2721
else
 
2722
  am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
 
2723
     echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
 
2724
fi
 
2725
{ echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
 
2726
echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
 
2727
  pyexecdir=$am_cv_python_pyexecdir
 
2728
 
 
2729
 
 
2730
 
 
2731
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
2732
 
 
2733
 
 
2734
 
 
2735
  fi
 
2736
 
 
2737
 
 
2738
 
 
2739
 
 
2740
 
 
2741
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
2742
        if test -n "$ac_tool_prefix"; then
 
2743
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
2744
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
2745
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2747
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
2748
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2749
else
 
2750
  case $PKG_CONFIG in
 
2751
  [\\/]* | ?:[\\/]*)
 
2752
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
2753
  ;;
 
2754
  *)
 
2755
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2756
for as_dir in $PATH
 
2757
do
 
2758
  IFS=$as_save_IFS
 
2759
  test -z "$as_dir" && as_dir=.
 
2760
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2761
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2762
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
2763
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2764
    break 2
 
2765
  fi
 
2766
done
 
2767
done
 
2768
IFS=$as_save_IFS
 
2769
 
 
2770
  ;;
 
2771
esac
 
2772
fi
 
2773
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
2774
if test -n "$PKG_CONFIG"; then
 
2775
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
2776
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
2777
else
 
2778
  { echo "$as_me:$LINENO: result: no" >&5
 
2779
echo "${ECHO_T}no" >&6; }
 
2780
fi
 
2781
 
 
2782
 
 
2783
fi
 
2784
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
2785
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
2786
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
2787
set dummy pkg-config; ac_word=$2
 
2788
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2790
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
2791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2792
else
 
2793
  case $ac_pt_PKG_CONFIG in
 
2794
  [\\/]* | ?:[\\/]*)
 
2795
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
2796
  ;;
 
2797
  *)
 
2798
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2799
for as_dir in $PATH
 
2800
do
 
2801
  IFS=$as_save_IFS
 
2802
  test -z "$as_dir" && as_dir=.
 
2803
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2804
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2805
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
2806
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2807
    break 2
 
2808
  fi
 
2809
done
 
2810
done
 
2811
IFS=$as_save_IFS
 
2812
 
 
2813
  ;;
 
2814
esac
 
2815
fi
 
2816
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
2817
if test -n "$ac_pt_PKG_CONFIG"; then
 
2818
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
2819
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
2820
else
 
2821
  { echo "$as_me:$LINENO: result: no" >&5
 
2822
echo "${ECHO_T}no" >&6; }
 
2823
fi
 
2824
 
 
2825
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
2826
    PKG_CONFIG=""
 
2827
  else
 
2828
    case $cross_compiling:$ac_tool_warned in
 
2829
yes:)
 
2830
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2831
whose name does not start with the host triplet.  If you think this
 
2832
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2833
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2834
whose name does not start with the host triplet.  If you think this
 
2835
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2836
ac_tool_warned=yes ;;
 
2837
esac
 
2838
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
2839
  fi
 
2840
else
 
2841
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
2842
fi
 
2843
 
 
2844
fi
 
2845
if test -n "$PKG_CONFIG"; then
 
2846
        _pkg_min_version=0.9.0
 
2847
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
2848
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
2849
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
2850
                { echo "$as_me:$LINENO: result: yes" >&5
 
2851
echo "${ECHO_T}yes" >&6; }
 
2852
        else
 
2853
                { echo "$as_me:$LINENO: result: no" >&5
 
2854
echo "${ECHO_T}no" >&6; }
 
2855
                PKG_CONFIG=""
 
2856
        fi
 
2857
 
 
2858
fi
 
2859
 
 
2860
pkg_failed=no
 
2861
{ echo "$as_me:$LINENO: checking for CHECK" >&5
 
2862
echo $ECHO_N "checking for CHECK... $ECHO_C" >&6; }
 
2863
 
 
2864
if test -n "$PKG_CONFIG"; then
 
2865
    if test -n "$CHECK_CFLAGS"; then
 
2866
        pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
 
2867
    else
 
2868
        if test -n "$PKG_CONFIG" && \
 
2869
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
 
2870
  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
 
2871
  ac_status=$?
 
2872
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2873
  (exit $ac_status); }; then
 
2874
  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
 
2875
else
 
2876
  pkg_failed=yes
 
2877
fi
 
2878
    fi
 
2879
else
 
2880
        pkg_failed=untried
 
2881
fi
 
2882
if test -n "$PKG_CONFIG"; then
 
2883
    if test -n "$CHECK_LIBS"; then
 
2884
        pkg_cv_CHECK_LIBS="$CHECK_LIBS"
 
2885
    else
 
2886
        if test -n "$PKG_CONFIG" && \
 
2887
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\"") >&5
 
2888
  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
 
2889
  ac_status=$?
 
2890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2891
  (exit $ac_status); }; then
 
2892
  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
 
2893
else
 
2894
  pkg_failed=yes
 
2895
fi
 
2896
    fi
 
2897
else
 
2898
        pkg_failed=untried
 
2899
fi
 
2900
 
 
2901
 
 
2902
 
 
2903
if test $pkg_failed = yes; then
 
2904
 
 
2905
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
2906
        _pkg_short_errors_supported=yes
 
2907
else
 
2908
        _pkg_short_errors_supported=no
 
2909
fi
 
2910
        if test $_pkg_short_errors_supported = yes; then
 
2911
                CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "check >= 0.9.4"`
 
2912
        else
 
2913
                CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.4"`
 
2914
        fi
 
2915
        # Put the nasty error message in config.log where it belongs
 
2916
        echo "$CHECK_PKG_ERRORS" >&5
 
2917
 
 
2918
        { echo "$as_me:$LINENO: result: no" >&5
 
2919
echo "${ECHO_T}no" >&6; }
 
2920
                HAVE_CHECK=no
 
2921
elif test $pkg_failed = untried; then
 
2922
        HAVE_CHECK=no
 
2923
else
 
2924
        CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
 
2925
        CHECK_LIBS=$pkg_cv_CHECK_LIBS
 
2926
        { echo "$as_me:$LINENO: result: yes" >&5
 
2927
echo "${ECHO_T}yes" >&6; }
 
2928
        HAVE_CHECK=yes
 
2929
fi
 
2930
 if test x$HAVE_CHECK = xyes; then
 
2931
  HAVE_CHECK_TRUE=
 
2932
  HAVE_CHECK_FALSE='#'
 
2933
else
 
2934
  HAVE_CHECK_TRUE='#'
 
2935
  HAVE_CHECK_FALSE=
 
2936
fi
 
2937
 
 
2938
 
 
2939
ac_config_headers="$ac_config_headers src/config.h"
 
2940
 
 
2941
 
 
2942
# Check whether --enable-shared was given.
 
2943
if test "${enable_shared+set}" = set; then
 
2944
  enableval=$enable_shared; p=${PACKAGE-default}
 
2945
    case $enableval in
 
2946
    yes) enable_shared=yes ;;
 
2947
    no) enable_shared=no ;;
 
2948
    *)
 
2949
      enable_shared=no
 
2950
      # Look at the argument we got.  We use all the common list separators.
 
2951
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2952
      for pkg in $enableval; do
 
2953
        IFS="$lt_save_ifs"
 
2954
        if test "X$pkg" = "X$p"; then
 
2955
          enable_shared=yes
 
2956
        fi
 
2957
      done
 
2958
      IFS="$lt_save_ifs"
 
2959
      ;;
 
2960
    esac
 
2961
else
 
2962
  enable_shared=yes
 
2963
fi
 
2964
 
 
2965
 
 
2966
# Check whether --enable-static was given.
 
2967
if test "${enable_static+set}" = set; then
 
2968
  enableval=$enable_static; p=${PACKAGE-default}
 
2969
    case $enableval in
 
2970
    yes) enable_static=yes ;;
 
2971
    no) enable_static=no ;;
 
2972
    *)
 
2973
     enable_static=no
 
2974
      # Look at the argument we got.  We use all the common list separators.
 
2975
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2976
      for pkg in $enableval; do
 
2977
        IFS="$lt_save_ifs"
 
2978
        if test "X$pkg" = "X$p"; then
 
2979
          enable_static=yes
 
2980
        fi
 
2981
      done
 
2982
      IFS="$lt_save_ifs"
 
2983
      ;;
 
2984
    esac
 
2985
else
 
2986
  enable_static=yes
 
2987
fi
 
2988
 
 
2989
 
 
2990
# Check whether --enable-fast-install was given.
 
2991
if test "${enable_fast_install+set}" = set; then
 
2992
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2993
    case $enableval in
 
2994
    yes) enable_fast_install=yes ;;
 
2995
    no) enable_fast_install=no ;;
 
2996
    *)
 
2997
      enable_fast_install=no
 
2998
      # Look at the argument we got.  We use all the common list separators.
 
2999
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3000
      for pkg in $enableval; do
 
3001
        IFS="$lt_save_ifs"
 
3002
        if test "X$pkg" = "X$p"; then
 
3003
          enable_fast_install=yes
 
3004
        fi
 
3005
      done
 
3006
      IFS="$lt_save_ifs"
 
3007
      ;;
 
3008
    esac
 
3009
else
 
3010
  enable_fast_install=yes
 
3011
fi
 
3012
 
 
3013
 
 
3014
# Make sure we can run config.sub.
 
3015
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3016
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3017
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3018
   { (exit 1); exit 1; }; }
 
3019
 
 
3020
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3021
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3022
if test "${ac_cv_build+set}" = set; then
 
3023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3024
else
 
3025
  ac_build_alias=$build_alias
 
3026
test "x$ac_build_alias" = x &&
 
3027
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3028
test "x$ac_build_alias" = x &&
 
3029
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3030
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3031
   { (exit 1); exit 1; }; }
 
3032
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3033
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3034
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3035
   { (exit 1); exit 1; }; }
 
3036
 
 
3037
fi
 
3038
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3039
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3040
case $ac_cv_build in
 
3041
*-*-*) ;;
 
3042
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3043
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3044
   { (exit 1); exit 1; }; };;
 
3045
esac
 
3046
build=$ac_cv_build
 
3047
ac_save_IFS=$IFS; IFS='-'
 
3048
set x $ac_cv_build
 
3049
shift
 
3050
build_cpu=$1
 
3051
build_vendor=$2
 
3052
shift; shift
 
3053
# Remember, the first character of IFS is used to create $*,
 
3054
# except with old shells:
 
3055
build_os=$*
 
3056
IFS=$ac_save_IFS
 
3057
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3058
 
 
3059
 
 
3060
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3061
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3062
if test "${ac_cv_host+set}" = set; then
 
3063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3064
else
 
3065
  if test "x$host_alias" = x; then
 
3066
  ac_cv_host=$ac_cv_build
 
3067
else
 
3068
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3069
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3070
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3071
   { (exit 1); exit 1; }; }
 
3072
fi
 
3073
 
 
3074
fi
 
3075
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3076
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3077
case $ac_cv_host in
 
3078
*-*-*) ;;
 
3079
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3080
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3081
   { (exit 1); exit 1; }; };;
 
3082
esac
 
3083
host=$ac_cv_host
 
3084
ac_save_IFS=$IFS; IFS='-'
 
3085
set x $ac_cv_host
 
3086
shift
 
3087
host_cpu=$1
 
3088
host_vendor=$2
 
3089
shift; shift
 
3090
# Remember, the first character of IFS is used to create $*,
 
3091
# except with old shells:
 
3092
host_os=$*
 
3093
IFS=$ac_save_IFS
 
3094
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3095
 
 
3096
 
 
3097
DEPDIR="${am__leading_dot}deps"
 
3098
 
 
3099
ac_config_commands="$ac_config_commands depfiles"
 
3100
 
 
3101
 
 
3102
am_make=${MAKE-make}
 
3103
cat > confinc << 'END'
 
3104
am__doit:
 
3105
        @echo done
 
3106
.PHONY: am__doit
 
3107
END
 
3108
# If we don't find an include directive, just comment out the code.
 
3109
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3110
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3111
am__include="#"
 
3112
am__quote=
 
3113
_am_result=none
 
3114
# First try GNU make style include.
 
3115
echo "include confinc" > confmf
 
3116
# We grep out `Entering directory' and `Leaving directory'
 
3117
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3118
# In particular we don't look at `^make:' because GNU make might
 
3119
# be invoked under some other name (usually "gmake"), in which
 
3120
# case it prints its new name instead of `make'.
 
3121
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3122
   am__include=include
 
3123
   am__quote=
 
3124
   _am_result=GNU
 
3125
fi
 
3126
# Now try BSD make style include.
 
3127
if test "$am__include" = "#"; then
 
3128
   echo '.include "confinc"' > confmf
 
3129
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3130
      am__include=.include
 
3131
      am__quote="\""
 
3132
      _am_result=BSD
 
3133
   fi
 
3134
fi
 
3135
 
 
3136
 
 
3137
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3138
echo "${ECHO_T}$_am_result" >&6; }
 
3139
rm -f confinc confmf
 
3140
 
 
3141
# Check whether --enable-dependency-tracking was given.
 
3142
if test "${enable_dependency_tracking+set}" = set; then
 
3143
  enableval=$enable_dependency_tracking;
 
3144
fi
 
3145
 
 
3146
if test "x$enable_dependency_tracking" != xno; then
 
3147
  am_depcomp="$ac_aux_dir/depcomp"
 
3148
  AMDEPBACKSLASH='\'
 
3149
fi
 
3150
 if test "x$enable_dependency_tracking" != xno; then
 
3151
  AMDEP_TRUE=
 
3152
  AMDEP_FALSE='#'
 
3153
else
 
3154
  AMDEP_TRUE='#'
 
3155
  AMDEP_FALSE=
 
3156
fi
 
3157
 
 
3158
 
 
3159
ac_ext=c
 
3160
ac_cpp='$CPP $CPPFLAGS'
 
3161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3164
if test -n "$ac_tool_prefix"; then
 
3165
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3166
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3167
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3168
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3169
if test "${ac_cv_prog_CC+set}" = set; then
 
3170
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3171
else
 
3172
  if test -n "$CC"; then
 
3173
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3174
else
 
3175
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3176
for as_dir in $PATH
 
3177
do
 
3178
  IFS=$as_save_IFS
 
3179
  test -z "$as_dir" && as_dir=.
 
3180
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3181
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3182
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3183
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3184
    break 2
 
3185
  fi
 
3186
done
 
3187
done
 
3188
IFS=$as_save_IFS
 
3189
 
 
3190
fi
 
3191
fi
 
3192
CC=$ac_cv_prog_CC
 
3193
if test -n "$CC"; then
 
3194
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3195
echo "${ECHO_T}$CC" >&6; }
 
3196
else
 
3197
  { echo "$as_me:$LINENO: result: no" >&5
 
3198
echo "${ECHO_T}no" >&6; }
 
3199
fi
 
3200
 
 
3201
 
 
3202
fi
 
3203
if test -z "$ac_cv_prog_CC"; then
 
3204
  ac_ct_CC=$CC
 
3205
  # Extract the first word of "gcc", so it can be a program name with args.
 
3206
set dummy gcc; ac_word=$2
 
3207
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3208
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3209
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3211
else
 
3212
  if test -n "$ac_ct_CC"; then
 
3213
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3214
else
 
3215
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3216
for as_dir in $PATH
 
3217
do
 
3218
  IFS=$as_save_IFS
 
3219
  test -z "$as_dir" && as_dir=.
 
3220
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3221
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3222
    ac_cv_prog_ac_ct_CC="gcc"
 
3223
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3224
    break 2
 
3225
  fi
 
3226
done
 
3227
done
 
3228
IFS=$as_save_IFS
 
3229
 
 
3230
fi
 
3231
fi
 
3232
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3233
if test -n "$ac_ct_CC"; then
 
3234
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3235
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3236
else
 
3237
  { echo "$as_me:$LINENO: result: no" >&5
 
3238
echo "${ECHO_T}no" >&6; }
 
3239
fi
 
3240
 
 
3241
  if test "x$ac_ct_CC" = x; then
 
3242
    CC=""
 
3243
  else
 
3244
    case $cross_compiling:$ac_tool_warned in
 
3245
yes:)
 
3246
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3247
whose name does not start with the host triplet.  If you think this
 
3248
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3249
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3250
whose name does not start with the host triplet.  If you think this
 
3251
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3252
ac_tool_warned=yes ;;
 
3253
esac
 
3254
    CC=$ac_ct_CC
 
3255
  fi
 
3256
else
 
3257
  CC="$ac_cv_prog_CC"
 
3258
fi
 
3259
 
 
3260
if test -z "$CC"; then
 
3261
          if test -n "$ac_tool_prefix"; then
 
3262
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3263
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3264
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3265
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3266
if test "${ac_cv_prog_CC+set}" = set; then
 
3267
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3268
else
 
3269
  if test -n "$CC"; then
 
3270
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3271
else
 
3272
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3273
for as_dir in $PATH
 
3274
do
 
3275
  IFS=$as_save_IFS
 
3276
  test -z "$as_dir" && as_dir=.
 
3277
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3278
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3279
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3280
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3281
    break 2
 
3282
  fi
 
3283
done
 
3284
done
 
3285
IFS=$as_save_IFS
 
3286
 
 
3287
fi
 
3288
fi
 
3289
CC=$ac_cv_prog_CC
 
3290
if test -n "$CC"; then
 
3291
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3292
echo "${ECHO_T}$CC" >&6; }
 
3293
else
 
3294
  { echo "$as_me:$LINENO: result: no" >&5
 
3295
echo "${ECHO_T}no" >&6; }
 
3296
fi
 
3297
 
 
3298
 
 
3299
  fi
 
3300
fi
 
3301
if test -z "$CC"; then
 
3302
  # Extract the first word of "cc", so it can be a program name with args.
 
3303
set dummy cc; ac_word=$2
 
3304
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3305
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3306
if test "${ac_cv_prog_CC+set}" = set; then
 
3307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3308
else
 
3309
  if test -n "$CC"; then
 
3310
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3311
else
 
3312
  ac_prog_rejected=no
 
3313
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3314
for as_dir in $PATH
 
3315
do
 
3316
  IFS=$as_save_IFS
 
3317
  test -z "$as_dir" && as_dir=.
 
3318
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3319
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3320
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3321
       ac_prog_rejected=yes
 
3322
       continue
 
3323
     fi
 
3324
    ac_cv_prog_CC="cc"
 
3325
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3326
    break 2
 
3327
  fi
 
3328
done
 
3329
done
 
3330
IFS=$as_save_IFS
 
3331
 
 
3332
if test $ac_prog_rejected = yes; then
 
3333
  # We found a bogon in the path, so make sure we never use it.
 
3334
  set dummy $ac_cv_prog_CC
 
3335
  shift
 
3336
  if test $# != 0; then
 
3337
    # We chose a different compiler from the bogus one.
 
3338
    # However, it has the same basename, so the bogon will be chosen
 
3339
    # first if we set CC to just the basename; use the full file name.
 
3340
    shift
 
3341
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3342
  fi
 
3343
fi
 
3344
fi
 
3345
fi
 
3346
CC=$ac_cv_prog_CC
 
3347
if test -n "$CC"; then
 
3348
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3349
echo "${ECHO_T}$CC" >&6; }
 
3350
else
 
3351
  { echo "$as_me:$LINENO: result: no" >&5
 
3352
echo "${ECHO_T}no" >&6; }
 
3353
fi
 
3354
 
 
3355
 
 
3356
fi
 
3357
if test -z "$CC"; then
 
3358
  if test -n "$ac_tool_prefix"; then
 
3359
  for ac_prog in cl.exe
 
3360
  do
 
3361
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3362
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3363
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3365
if test "${ac_cv_prog_CC+set}" = set; then
 
3366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3367
else
 
3368
  if test -n "$CC"; then
 
3369
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3370
else
 
3371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3372
for as_dir in $PATH
 
3373
do
 
3374
  IFS=$as_save_IFS
 
3375
  test -z "$as_dir" && as_dir=.
 
3376
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3378
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3379
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3380
    break 2
 
3381
  fi
 
3382
done
 
3383
done
 
3384
IFS=$as_save_IFS
 
3385
 
 
3386
fi
 
3387
fi
 
3388
CC=$ac_cv_prog_CC
 
3389
if test -n "$CC"; then
 
3390
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3391
echo "${ECHO_T}$CC" >&6; }
 
3392
else
 
3393
  { echo "$as_me:$LINENO: result: no" >&5
 
3394
echo "${ECHO_T}no" >&6; }
 
3395
fi
 
3396
 
 
3397
 
 
3398
    test -n "$CC" && break
 
3399
  done
 
3400
fi
 
3401
if test -z "$CC"; then
 
3402
  ac_ct_CC=$CC
 
3403
  for ac_prog in cl.exe
 
3404
do
 
3405
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3406
set dummy $ac_prog; ac_word=$2
 
3407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3409
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3411
else
 
3412
  if test -n "$ac_ct_CC"; then
 
3413
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3414
else
 
3415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3416
for as_dir in $PATH
 
3417
do
 
3418
  IFS=$as_save_IFS
 
3419
  test -z "$as_dir" && as_dir=.
 
3420
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3422
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3424
    break 2
 
3425
  fi
 
3426
done
 
3427
done
 
3428
IFS=$as_save_IFS
 
3429
 
 
3430
fi
 
3431
fi
 
3432
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3433
if test -n "$ac_ct_CC"; then
 
3434
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3435
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3436
else
 
3437
  { echo "$as_me:$LINENO: result: no" >&5
 
3438
echo "${ECHO_T}no" >&6; }
 
3439
fi
 
3440
 
 
3441
 
 
3442
  test -n "$ac_ct_CC" && break
 
3443
done
 
3444
 
 
3445
  if test "x$ac_ct_CC" = x; then
 
3446
    CC=""
 
3447
  else
 
3448
    case $cross_compiling:$ac_tool_warned in
 
3449
yes:)
 
3450
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3451
whose name does not start with the host triplet.  If you think this
 
3452
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3453
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3454
whose name does not start with the host triplet.  If you think this
 
3455
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3456
ac_tool_warned=yes ;;
 
3457
esac
 
3458
    CC=$ac_ct_CC
 
3459
  fi
 
3460
fi
 
3461
 
 
3462
fi
 
3463
 
 
3464
 
 
3465
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3466
See \`config.log' for more details." >&5
 
3467
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3468
See \`config.log' for more details." >&2;}
 
3469
   { (exit 1); exit 1; }; }
 
3470
 
 
3471
# Provide some information about the compiler.
 
3472
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3473
ac_compiler=`set X $ac_compile; echo $2`
 
3474
{ (ac_try="$ac_compiler --version >&5"
 
3475
case "(($ac_try" in
 
3476
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3477
  *) ac_try_echo=$ac_try;;
 
3478
esac
 
3479
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3480
  (eval "$ac_compiler --version >&5") 2>&5
 
3481
  ac_status=$?
 
3482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3483
  (exit $ac_status); }
 
3484
{ (ac_try="$ac_compiler -v >&5"
 
3485
case "(($ac_try" in
 
3486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3487
  *) ac_try_echo=$ac_try;;
 
3488
esac
 
3489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3490
  (eval "$ac_compiler -v >&5") 2>&5
 
3491
  ac_status=$?
 
3492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3493
  (exit $ac_status); }
 
3494
{ (ac_try="$ac_compiler -V >&5"
 
3495
case "(($ac_try" in
 
3496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3497
  *) ac_try_echo=$ac_try;;
 
3498
esac
 
3499
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3500
  (eval "$ac_compiler -V >&5") 2>&5
 
3501
  ac_status=$?
 
3502
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3503
  (exit $ac_status); }
 
3504
 
 
3505
cat >conftest.$ac_ext <<_ACEOF
 
3506
/* confdefs.h.  */
 
3507
_ACEOF
 
3508
cat confdefs.h >>conftest.$ac_ext
 
3509
cat >>conftest.$ac_ext <<_ACEOF
 
3510
/* end confdefs.h.  */
 
3511
 
 
3512
int
 
3513
main ()
 
3514
{
 
3515
 
 
3516
  ;
 
3517
  return 0;
 
3518
}
 
3519
_ACEOF
 
3520
ac_clean_files_save=$ac_clean_files
 
3521
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3522
# Try to create an executable without -o first, disregard a.out.
 
3523
# It will help us diagnose broken compilers, and finding out an intuition
 
3524
# of exeext.
 
3525
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3526
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3527
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3528
#
 
3529
# List of possible output files, starting from the most likely.
 
3530
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3531
# only as a last resort.  b.out is created by i960 compilers.
 
3532
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3533
#
 
3534
# The IRIX 6 linker writes into existing files which may not be
 
3535
# executable, retaining their permissions.  Remove them first so a
 
3536
# subsequent execution test works.
 
3537
ac_rmfiles=
 
3538
for ac_file in $ac_files
 
3539
do
 
3540
  case $ac_file in
 
3541
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3542
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3543
  esac
 
3544
done
 
3545
rm -f $ac_rmfiles
 
3546
 
 
3547
if { (ac_try="$ac_link_default"
 
3548
case "(($ac_try" in
 
3549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3550
  *) ac_try_echo=$ac_try;;
 
3551
esac
 
3552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3553
  (eval "$ac_link_default") 2>&5
 
3554
  ac_status=$?
 
3555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3556
  (exit $ac_status); }; then
 
3557
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3558
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3559
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3560
# so that the user can short-circuit this test for compilers unknown to
 
3561
# Autoconf.
 
3562
for ac_file in $ac_files ''
 
3563
do
 
3564
  test -f "$ac_file" || continue
 
3565
  case $ac_file in
 
3566
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3567
        ;;
 
3568
    [ab].out )
 
3569
        # We found the default executable, but exeext='' is most
 
3570
        # certainly right.
 
3571
        break;;
 
3572
    *.* )
 
3573
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3574
        then :; else
 
3575
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3576
        fi
 
3577
        # We set ac_cv_exeext here because the later test for it is not
 
3578
        # safe: cross compilers may not add the suffix if given an `-o'
 
3579
        # argument, so we may need to know it at that point already.
 
3580
        # Even if this section looks crufty: it has the advantage of
 
3581
        # actually working.
 
3582
        break;;
 
3583
    * )
 
3584
        break;;
 
3585
  esac
 
3586
done
 
3587
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3588
 
 
3589
else
 
3590
  ac_file=''
 
3591
fi
 
3592
 
 
3593
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3594
echo "${ECHO_T}$ac_file" >&6; }
 
3595
if test -z "$ac_file"; then
 
3596
  echo "$as_me: failed program was:" >&5
 
3597
sed 's/^/| /' conftest.$ac_ext >&5
 
3598
 
 
3599
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3600
See \`config.log' for more details." >&5
 
3601
echo "$as_me: error: C compiler cannot create executables
 
3602
See \`config.log' for more details." >&2;}
 
3603
   { (exit 77); exit 77; }; }
 
3604
fi
 
3605
 
 
3606
ac_exeext=$ac_cv_exeext
 
3607
 
 
3608
# Check that the compiler produces executables we can run.  If not, either
 
3609
# the compiler is broken, or we cross compile.
 
3610
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3611
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3612
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3613
# If not cross compiling, check that we can run a simple program.
 
3614
if test "$cross_compiling" != yes; then
 
3615
  if { ac_try='./$ac_file'
 
3616
  { (case "(($ac_try" in
 
3617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3618
  *) ac_try_echo=$ac_try;;
 
3619
esac
 
3620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3621
  (eval "$ac_try") 2>&5
 
3622
  ac_status=$?
 
3623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3624
  (exit $ac_status); }; }; then
 
3625
    cross_compiling=no
 
3626
  else
 
3627
    if test "$cross_compiling" = maybe; then
 
3628
        cross_compiling=yes
 
3629
    else
 
3630
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3631
If you meant to cross compile, use \`--host'.
 
3632
See \`config.log' for more details." >&5
 
3633
echo "$as_me: error: cannot run C compiled programs.
 
3634
If you meant to cross compile, use \`--host'.
 
3635
See \`config.log' for more details." >&2;}
 
3636
   { (exit 1); exit 1; }; }
 
3637
    fi
 
3638
  fi
 
3639
fi
 
3640
{ echo "$as_me:$LINENO: result: yes" >&5
 
3641
echo "${ECHO_T}yes" >&6; }
 
3642
 
 
3643
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3644
ac_clean_files=$ac_clean_files_save
 
3645
# Check that the compiler produces executables we can run.  If not, either
 
3646
# the compiler is broken, or we cross compile.
 
3647
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3648
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3649
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3650
echo "${ECHO_T}$cross_compiling" >&6; }
 
3651
 
 
3652
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3653
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3654
if { (ac_try="$ac_link"
 
3655
case "(($ac_try" in
 
3656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3657
  *) ac_try_echo=$ac_try;;
 
3658
esac
 
3659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3660
  (eval "$ac_link") 2>&5
 
3661
  ac_status=$?
 
3662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3663
  (exit $ac_status); }; then
 
3664
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3665
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3666
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3667
# `rm'.
 
3668
for ac_file in conftest.exe conftest conftest.*; do
 
3669
  test -f "$ac_file" || continue
 
3670
  case $ac_file in
 
3671
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3672
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3673
          break;;
 
3674
    * ) break;;
 
3675
  esac
 
3676
done
 
3677
else
 
3678
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3679
See \`config.log' for more details." >&5
 
3680
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3681
See \`config.log' for more details." >&2;}
 
3682
   { (exit 1); exit 1; }; }
 
3683
fi
 
3684
 
 
3685
rm -f conftest$ac_cv_exeext
 
3686
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3687
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3688
 
 
3689
rm -f conftest.$ac_ext
 
3690
EXEEXT=$ac_cv_exeext
 
3691
ac_exeext=$EXEEXT
 
3692
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3693
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3694
if test "${ac_cv_objext+set}" = set; then
 
3695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3696
else
 
3697
  cat >conftest.$ac_ext <<_ACEOF
 
3698
/* confdefs.h.  */
 
3699
_ACEOF
 
3700
cat confdefs.h >>conftest.$ac_ext
 
3701
cat >>conftest.$ac_ext <<_ACEOF
 
3702
/* end confdefs.h.  */
 
3703
 
 
3704
int
 
3705
main ()
 
3706
{
 
3707
 
 
3708
  ;
 
3709
  return 0;
 
3710
}
 
3711
_ACEOF
 
3712
rm -f conftest.o conftest.obj
 
3713
if { (ac_try="$ac_compile"
 
3714
case "(($ac_try" in
 
3715
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3716
  *) ac_try_echo=$ac_try;;
 
3717
esac
 
3718
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3719
  (eval "$ac_compile") 2>&5
 
3720
  ac_status=$?
 
3721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3722
  (exit $ac_status); }; then
 
3723
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3724
  test -f "$ac_file" || continue;
 
3725
  case $ac_file in
 
3726
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3727
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3728
       break;;
 
3729
  esac
 
3730
done
 
3731
else
 
3732
  echo "$as_me: failed program was:" >&5
 
3733
sed 's/^/| /' conftest.$ac_ext >&5
 
3734
 
 
3735
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3736
See \`config.log' for more details." >&5
 
3737
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3738
See \`config.log' for more details." >&2;}
 
3739
   { (exit 1); exit 1; }; }
 
3740
fi
 
3741
 
 
3742
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3743
fi
 
3744
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3745
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3746
OBJEXT=$ac_cv_objext
 
3747
ac_objext=$OBJEXT
 
3748
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3749
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3750
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3751
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3752
else
 
3753
  cat >conftest.$ac_ext <<_ACEOF
 
3754
/* confdefs.h.  */
 
3755
_ACEOF
 
3756
cat confdefs.h >>conftest.$ac_ext
 
3757
cat >>conftest.$ac_ext <<_ACEOF
 
3758
/* end confdefs.h.  */
 
3759
 
 
3760
int
 
3761
main ()
 
3762
{
 
3763
#ifndef __GNUC__
 
3764
       choke me
 
3765
#endif
 
3766
 
 
3767
  ;
 
3768
  return 0;
 
3769
}
 
3770
_ACEOF
 
3771
rm -f conftest.$ac_objext
 
3772
if { (ac_try="$ac_compile"
 
3773
case "(($ac_try" in
 
3774
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3775
  *) ac_try_echo=$ac_try;;
 
3776
esac
 
3777
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3778
  (eval "$ac_compile") 2>conftest.er1
 
3779
  ac_status=$?
 
3780
  grep -v '^ *+' conftest.er1 >conftest.err
 
3781
  rm -f conftest.er1
 
3782
  cat conftest.err >&5
 
3783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3784
  (exit $ac_status); } && {
 
3785
         test -z "$ac_c_werror_flag" ||
 
3786
         test ! -s conftest.err
 
3787
       } && test -s conftest.$ac_objext; then
 
3788
  ac_compiler_gnu=yes
 
3789
else
 
3790
  echo "$as_me: failed program was:" >&5
 
3791
sed 's/^/| /' conftest.$ac_ext >&5
 
3792
 
 
3793
        ac_compiler_gnu=no
 
3794
fi
 
3795
 
 
3796
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3797
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3798
 
 
3799
fi
 
3800
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3801
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3802
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3803
ac_test_CFLAGS=${CFLAGS+set}
 
3804
ac_save_CFLAGS=$CFLAGS
 
3805
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3806
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3807
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3809
else
 
3810
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3811
   ac_c_werror_flag=yes
 
3812
   ac_cv_prog_cc_g=no
 
3813
   CFLAGS="-g"
 
3814
   cat >conftest.$ac_ext <<_ACEOF
 
3815
/* confdefs.h.  */
 
3816
_ACEOF
 
3817
cat confdefs.h >>conftest.$ac_ext
 
3818
cat >>conftest.$ac_ext <<_ACEOF
 
3819
/* end confdefs.h.  */
 
3820
 
 
3821
int
 
3822
main ()
 
3823
{
 
3824
 
 
3825
  ;
 
3826
  return 0;
 
3827
}
 
3828
_ACEOF
 
3829
rm -f conftest.$ac_objext
 
3830
if { (ac_try="$ac_compile"
 
3831
case "(($ac_try" in
 
3832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3833
  *) ac_try_echo=$ac_try;;
 
3834
esac
 
3835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3836
  (eval "$ac_compile") 2>conftest.er1
 
3837
  ac_status=$?
 
3838
  grep -v '^ *+' conftest.er1 >conftest.err
 
3839
  rm -f conftest.er1
 
3840
  cat conftest.err >&5
 
3841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3842
  (exit $ac_status); } && {
 
3843
         test -z "$ac_c_werror_flag" ||
 
3844
         test ! -s conftest.err
 
3845
       } && test -s conftest.$ac_objext; then
 
3846
  ac_cv_prog_cc_g=yes
 
3847
else
 
3848
  echo "$as_me: failed program was:" >&5
 
3849
sed 's/^/| /' conftest.$ac_ext >&5
 
3850
 
 
3851
        CFLAGS=""
 
3852
      cat >conftest.$ac_ext <<_ACEOF
 
3853
/* confdefs.h.  */
 
3854
_ACEOF
 
3855
cat confdefs.h >>conftest.$ac_ext
 
3856
cat >>conftest.$ac_ext <<_ACEOF
 
3857
/* end confdefs.h.  */
 
3858
 
 
3859
int
 
3860
main ()
 
3861
{
 
3862
 
 
3863
  ;
 
3864
  return 0;
 
3865
}
 
3866
_ACEOF
 
3867
rm -f conftest.$ac_objext
 
3868
if { (ac_try="$ac_compile"
 
3869
case "(($ac_try" in
 
3870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3871
  *) ac_try_echo=$ac_try;;
 
3872
esac
 
3873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3874
  (eval "$ac_compile") 2>conftest.er1
 
3875
  ac_status=$?
 
3876
  grep -v '^ *+' conftest.er1 >conftest.err
 
3877
  rm -f conftest.er1
 
3878
  cat conftest.err >&5
 
3879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3880
  (exit $ac_status); } && {
 
3881
         test -z "$ac_c_werror_flag" ||
 
3882
         test ! -s conftest.err
 
3883
       } && test -s conftest.$ac_objext; then
 
3884
  :
 
3885
else
 
3886
  echo "$as_me: failed program was:" >&5
 
3887
sed 's/^/| /' conftest.$ac_ext >&5
 
3888
 
 
3889
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3890
         CFLAGS="-g"
 
3891
         cat >conftest.$ac_ext <<_ACEOF
 
3892
/* confdefs.h.  */
 
3893
_ACEOF
 
3894
cat confdefs.h >>conftest.$ac_ext
 
3895
cat >>conftest.$ac_ext <<_ACEOF
 
3896
/* end confdefs.h.  */
 
3897
 
 
3898
int
 
3899
main ()
 
3900
{
 
3901
 
 
3902
  ;
 
3903
  return 0;
 
3904
}
 
3905
_ACEOF
 
3906
rm -f conftest.$ac_objext
 
3907
if { (ac_try="$ac_compile"
 
3908
case "(($ac_try" in
 
3909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3910
  *) ac_try_echo=$ac_try;;
 
3911
esac
 
3912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3913
  (eval "$ac_compile") 2>conftest.er1
 
3914
  ac_status=$?
 
3915
  grep -v '^ *+' conftest.er1 >conftest.err
 
3916
  rm -f conftest.er1
 
3917
  cat conftest.err >&5
 
3918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3919
  (exit $ac_status); } && {
 
3920
         test -z "$ac_c_werror_flag" ||
 
3921
         test ! -s conftest.err
 
3922
       } && test -s conftest.$ac_objext; then
 
3923
  ac_cv_prog_cc_g=yes
 
3924
else
 
3925
  echo "$as_me: failed program was:" >&5
 
3926
sed 's/^/| /' conftest.$ac_ext >&5
 
3927
 
 
3928
 
 
3929
fi
 
3930
 
 
3931
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3932
fi
 
3933
 
 
3934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3935
fi
 
3936
 
 
3937
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3938
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3939
fi
 
3940
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3941
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3942
if test "$ac_test_CFLAGS" = set; then
 
3943
  CFLAGS=$ac_save_CFLAGS
 
3944
elif test $ac_cv_prog_cc_g = yes; then
 
3945
  if test "$GCC" = yes; then
 
3946
    CFLAGS="-g -O2"
 
3947
  else
 
3948
    CFLAGS="-g"
 
3949
  fi
 
3950
else
 
3951
  if test "$GCC" = yes; then
 
3952
    CFLAGS="-O2"
 
3953
  else
 
3954
    CFLAGS=
 
3955
  fi
 
3956
fi
 
3957
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3958
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3959
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3961
else
 
3962
  ac_cv_prog_cc_c89=no
 
3963
ac_save_CC=$CC
 
3964
cat >conftest.$ac_ext <<_ACEOF
 
3965
/* confdefs.h.  */
 
3966
_ACEOF
 
3967
cat confdefs.h >>conftest.$ac_ext
 
3968
cat >>conftest.$ac_ext <<_ACEOF
 
3969
/* end confdefs.h.  */
 
3970
#include <stdarg.h>
 
3971
#include <stdio.h>
 
3972
#include <sys/types.h>
 
3973
#include <sys/stat.h>
 
3974
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3975
struct buf { int x; };
 
3976
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3977
static char *e (p, i)
 
3978
     char **p;
 
3979
     int i;
 
3980
{
 
3981
  return p[i];
 
3982
}
 
3983
static char *f (char * (*g) (char **, int), char **p, ...)
 
3984
{
 
3985
  char *s;
 
3986
  va_list v;
 
3987
  va_start (v,p);
 
3988
  s = g (p, va_arg (v,int));
 
3989
  va_end (v);
 
3990
  return s;
 
3991
}
 
3992
 
 
3993
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3994
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3995
   These don't provoke an error unfortunately, instead are silently treated
 
3996
   as 'x'.  The following induces an error, until -std is added to get
 
3997
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3998
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3999
   that's true only with -std.  */
 
4000
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4001
 
 
4002
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4003
   inside strings and character constants.  */
 
4004
#define FOO(x) 'x'
 
4005
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4006
 
 
4007
int test (int i, double x);
 
4008
struct s1 {int (*f) (int a);};
 
4009
struct s2 {int (*f) (double a);};
 
4010
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4011
int argc;
 
4012
char **argv;
 
4013
int
 
4014
main ()
 
4015
{
 
4016
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4017
  ;
 
4018
  return 0;
 
4019
}
 
4020
_ACEOF
 
4021
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4022
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4023
do
 
4024
  CC="$ac_save_CC $ac_arg"
 
4025
  rm -f conftest.$ac_objext
 
4026
if { (ac_try="$ac_compile"
 
4027
case "(($ac_try" in
 
4028
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4029
  *) ac_try_echo=$ac_try;;
 
4030
esac
 
4031
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4032
  (eval "$ac_compile") 2>conftest.er1
 
4033
  ac_status=$?
 
4034
  grep -v '^ *+' conftest.er1 >conftest.err
 
4035
  rm -f conftest.er1
 
4036
  cat conftest.err >&5
 
4037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4038
  (exit $ac_status); } && {
 
4039
         test -z "$ac_c_werror_flag" ||
 
4040
         test ! -s conftest.err
 
4041
       } && test -s conftest.$ac_objext; then
 
4042
  ac_cv_prog_cc_c89=$ac_arg
 
4043
else
 
4044
  echo "$as_me: failed program was:" >&5
 
4045
sed 's/^/| /' conftest.$ac_ext >&5
 
4046
 
 
4047
 
 
4048
fi
 
4049
 
 
4050
rm -f core conftest.err conftest.$ac_objext
 
4051
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4052
done
 
4053
rm -f conftest.$ac_ext
 
4054
CC=$ac_save_CC
 
4055
 
 
4056
fi
 
4057
# AC_CACHE_VAL
 
4058
case "x$ac_cv_prog_cc_c89" in
 
4059
  x)
 
4060
    { echo "$as_me:$LINENO: result: none needed" >&5
 
4061
echo "${ECHO_T}none needed" >&6; } ;;
 
4062
  xno)
 
4063
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
4064
echo "${ECHO_T}unsupported" >&6; } ;;
 
4065
  *)
 
4066
    CC="$CC $ac_cv_prog_cc_c89"
 
4067
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4068
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
4069
esac
 
4070
 
 
4071
 
 
4072
ac_ext=c
 
4073
ac_cpp='$CPP $CPPFLAGS'
 
4074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4077
 
 
4078
depcc="$CC"   am_compiler_list=
 
4079
 
 
4080
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4081
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
4082
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4084
else
 
4085
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4086
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4087
  # making bogus files that we don't know about and never remove.  For
 
4088
  # instance it was reported that on HP-UX the gcc test will end up
 
4089
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4090
  # in D'.
 
4091
  mkdir conftest.dir
 
4092
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4093
  # using a relative directory.
 
4094
  cp "$am_depcomp" conftest.dir
 
4095
  cd conftest.dir
 
4096
  # We will build objects and dependencies in a subdirectory because
 
4097
  # it helps to detect inapplicable dependency modes.  For instance
 
4098
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4099
  # side effect of compilation, but ICC will put the dependencies in
 
4100
  # the current directory while Tru64 will put them in the object
 
4101
  # directory.
 
4102
  mkdir sub
 
4103
 
 
4104
  am_cv_CC_dependencies_compiler_type=none
 
4105
  if test "$am_compiler_list" = ""; then
 
4106
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4107
  fi
 
4108
  for depmode in $am_compiler_list; do
 
4109
    # Setup a source with many dependencies, because some compilers
 
4110
    # like to wrap large dependency lists on column 80 (with \), and
 
4111
    # we should not choose a depcomp mode which is confused by this.
 
4112
    #
 
4113
    # We need to recreate these files for each test, as the compiler may
 
4114
    # overwrite some of them when testing with obscure command lines.
 
4115
    # This happens at least with the AIX C compiler.
 
4116
    : > sub/conftest.c
 
4117
    for i in 1 2 3 4 5 6; do
 
4118
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4119
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4120
      # Solaris 8's {/usr,}/bin/sh.
 
4121
      touch sub/conftst$i.h
 
4122
    done
 
4123
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4124
 
 
4125
    case $depmode in
 
4126
    nosideeffect)
 
4127
      # after this tag, mechanisms are not by side-effect, so they'll
 
4128
      # only be used when explicitly requested
 
4129
      if test "x$enable_dependency_tracking" = xyes; then
 
4130
        continue
 
4131
      else
 
4132
        break
 
4133
      fi
 
4134
      ;;
 
4135
    none) break ;;
 
4136
    esac
 
4137
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4138
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4139
    # handle `-M -o', and we need to detect this.
 
4140
    if depmode=$depmode \
 
4141
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4142
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4143
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4144
         >/dev/null 2>conftest.err &&
 
4145
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4146
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4147
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4148
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4149
      # icc doesn't choke on unknown options, it will just issue warnings
 
4150
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4151
      # that says an option was ignored or not supported.
 
4152
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4153
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4154
      # The diagnosis changed in icc 8.0:
 
4155
      #   icc: Command line remark: option '-MP' not supported
 
4156
      if (grep 'ignoring option' conftest.err ||
 
4157
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4158
        am_cv_CC_dependencies_compiler_type=$depmode
 
4159
        break
 
4160
      fi
 
4161
    fi
 
4162
  done
 
4163
 
 
4164
  cd ..
 
4165
  rm -rf conftest.dir
 
4166
else
 
4167
  am_cv_CC_dependencies_compiler_type=none
 
4168
fi
 
4169
 
 
4170
fi
 
4171
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4172
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
4173
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4174
 
 
4175
 if
 
4176
  test "x$enable_dependency_tracking" != xno \
 
4177
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4178
  am__fastdepCC_TRUE=
 
4179
  am__fastdepCC_FALSE='#'
 
4180
else
 
4181
  am__fastdepCC_TRUE='#'
 
4182
  am__fastdepCC_FALSE=
 
4183
fi
 
4184
 
 
4185
 
 
4186
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4187
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4188
if test "${lt_cv_path_SED+set}" = set; then
 
4189
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4190
else
 
4191
  # Loop through the user's path and test for sed and gsed.
 
4192
# Then use that list of sed's as ones to test for truncation.
 
4193
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4194
for as_dir in $PATH
 
4195
do
 
4196
  IFS=$as_save_IFS
 
4197
  test -z "$as_dir" && as_dir=.
 
4198
  for lt_ac_prog in sed gsed; do
 
4199
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4200
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4201
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4202
      fi
 
4203
    done
 
4204
  done
 
4205
done
 
4206
IFS=$as_save_IFS
 
4207
lt_ac_max=0
 
4208
lt_ac_count=0
 
4209
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4210
# along with /bin/sed that truncates output.
 
4211
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4212
  test ! -f $lt_ac_sed && continue
 
4213
  cat /dev/null > conftest.in
 
4214
  lt_ac_count=0
 
4215
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4216
  # Check for GNU sed and select it if it is found.
 
4217
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4218
    lt_cv_path_SED=$lt_ac_sed
 
4219
    break
 
4220
  fi
 
4221
  while true; do
 
4222
    cat conftest.in conftest.in >conftest.tmp
 
4223
    mv conftest.tmp conftest.in
 
4224
    cp conftest.in conftest.nl
 
4225
    echo >>conftest.nl
 
4226
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4227
    cmp -s conftest.out conftest.nl || break
 
4228
    # 10000 chars as input seems more than enough
 
4229
    test $lt_ac_count -gt 10 && break
 
4230
    lt_ac_count=`expr $lt_ac_count + 1`
 
4231
    if test $lt_ac_count -gt $lt_ac_max; then
 
4232
      lt_ac_max=$lt_ac_count
 
4233
      lt_cv_path_SED=$lt_ac_sed
 
4234
    fi
 
4235
  done
 
4236
done
 
4237
 
 
4238
fi
 
4239
 
 
4240
SED=$lt_cv_path_SED
 
4241
 
 
4242
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4243
echo "${ECHO_T}$SED" >&6; }
 
4244
 
 
4245
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4246
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4247
if test "${ac_cv_path_GREP+set}" = set; then
 
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4249
else
 
4250
  # Extract the first word of "grep ggrep" to use in msg output
 
4251
if test -z "$GREP"; then
 
4252
set dummy grep ggrep; ac_prog_name=$2
 
4253
if test "${ac_cv_path_GREP+set}" = set; then
 
4254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4255
else
 
4256
  ac_path_GREP_found=false
 
4257
# Loop through the user's path and test for each of PROGNAME-LIST
 
4258
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4259
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4260
do
 
4261
  IFS=$as_save_IFS
 
4262
  test -z "$as_dir" && as_dir=.
 
4263
  for ac_prog in grep ggrep; do
 
4264
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4265
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4266
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4267
    # Check for GNU ac_path_GREP and select it if it is found.
 
4268
  # Check for GNU $ac_path_GREP
 
4269
case `"$ac_path_GREP" --version 2>&1` in
 
4270
*GNU*)
 
4271
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4272
*)
 
4273
  ac_count=0
 
4274
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4275
  while :
 
4276
  do
 
4277
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4278
    mv "conftest.tmp" "conftest.in"
 
4279
    cp "conftest.in" "conftest.nl"
 
4280
    echo 'GREP' >> "conftest.nl"
 
4281
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4282
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4283
    ac_count=`expr $ac_count + 1`
 
4284
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4285
      # Best one so far, save it but keep looking for a better one
 
4286
      ac_cv_path_GREP="$ac_path_GREP"
 
4287
      ac_path_GREP_max=$ac_count
 
4288
    fi
 
4289
    # 10*(2^10) chars as input seems more than enough
 
4290
    test $ac_count -gt 10 && break
 
4291
  done
 
4292
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4293
esac
 
4294
 
 
4295
 
 
4296
    $ac_path_GREP_found && break 3
 
4297
  done
 
4298
done
 
4299
 
 
4300
done
 
4301
IFS=$as_save_IFS
 
4302
 
 
4303
 
 
4304
fi
 
4305
 
 
4306
GREP="$ac_cv_path_GREP"
 
4307
if test -z "$GREP"; then
 
4308
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4309
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4310
   { (exit 1); exit 1; }; }
 
4311
fi
 
4312
 
 
4313
else
 
4314
  ac_cv_path_GREP=$GREP
 
4315
fi
 
4316
 
 
4317
 
 
4318
fi
 
4319
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4320
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4321
 GREP="$ac_cv_path_GREP"
 
4322
 
 
4323
 
 
4324
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4325
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4326
if test "${ac_cv_path_EGREP+set}" = set; then
 
4327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4328
else
 
4329
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4330
   then ac_cv_path_EGREP="$GREP -E"
 
4331
   else
 
4332
     # Extract the first word of "egrep" to use in msg output
 
4333
if test -z "$EGREP"; then
 
4334
set dummy egrep; ac_prog_name=$2
 
4335
if test "${ac_cv_path_EGREP+set}" = set; then
 
4336
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4337
else
 
4338
  ac_path_EGREP_found=false
 
4339
# Loop through the user's path and test for each of PROGNAME-LIST
 
4340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4341
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4342
do
 
4343
  IFS=$as_save_IFS
 
4344
  test -z "$as_dir" && as_dir=.
 
4345
  for ac_prog in egrep; do
 
4346
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4347
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4348
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4349
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4350
  # Check for GNU $ac_path_EGREP
 
4351
case `"$ac_path_EGREP" --version 2>&1` in
 
4352
*GNU*)
 
4353
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4354
*)
 
4355
  ac_count=0
 
4356
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4357
  while :
 
4358
  do
 
4359
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4360
    mv "conftest.tmp" "conftest.in"
 
4361
    cp "conftest.in" "conftest.nl"
 
4362
    echo 'EGREP' >> "conftest.nl"
 
4363
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4364
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4365
    ac_count=`expr $ac_count + 1`
 
4366
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4367
      # Best one so far, save it but keep looking for a better one
 
4368
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4369
      ac_path_EGREP_max=$ac_count
 
4370
    fi
 
4371
    # 10*(2^10) chars as input seems more than enough
 
4372
    test $ac_count -gt 10 && break
 
4373
  done
 
4374
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4375
esac
 
4376
 
 
4377
 
 
4378
    $ac_path_EGREP_found && break 3
 
4379
  done
 
4380
done
 
4381
 
 
4382
done
 
4383
IFS=$as_save_IFS
 
4384
 
 
4385
 
 
4386
fi
 
4387
 
 
4388
EGREP="$ac_cv_path_EGREP"
 
4389
if test -z "$EGREP"; then
 
4390
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4391
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4392
   { (exit 1); exit 1; }; }
 
4393
fi
 
4394
 
 
4395
else
 
4396
  ac_cv_path_EGREP=$EGREP
 
4397
fi
 
4398
 
 
4399
 
 
4400
   fi
 
4401
fi
 
4402
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4403
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4404
 EGREP="$ac_cv_path_EGREP"
 
4405
 
 
4406
 
 
4407
 
 
4408
# Check whether --with-gnu-ld was given.
 
4409
if test "${with_gnu_ld+set}" = set; then
 
4410
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4411
else
 
4412
  with_gnu_ld=no
 
4413
fi
 
4414
 
 
4415
ac_prog=ld
 
4416
if test "$GCC" = yes; then
 
4417
  # Check if gcc -print-prog-name=ld gives a path.
 
4418
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4419
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4420
  case $host in
 
4421
  *-*-mingw*)
 
4422
    # gcc leaves a trailing carriage return which upsets mingw
 
4423
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4424
  *)
 
4425
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4426
  esac
 
4427
  case $ac_prog in
 
4428
    # Accept absolute paths.
 
4429
    [\\/]* | ?:[\\/]*)
 
4430
      re_direlt='/[^/][^/]*/\.\./'
 
4431
      # Canonicalize the pathname of ld
 
4432
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4433
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4434
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4435
      done
 
4436
      test -z "$LD" && LD="$ac_prog"
 
4437
      ;;
 
4438
  "")
 
4439
    # If it fails, then pretend we aren't using GCC.
 
4440
    ac_prog=ld
 
4441
    ;;
 
4442
  *)
 
4443
    # If it is relative, then search for the first ld in PATH.
 
4444
    with_gnu_ld=unknown
 
4445
    ;;
 
4446
  esac
 
4447
elif test "$with_gnu_ld" = yes; then
 
4448
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4449
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4450
else
 
4451
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4452
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4453
fi
 
4454
if test "${lt_cv_path_LD+set}" = set; then
 
4455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4456
else
 
4457
  if test -z "$LD"; then
 
4458
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4459
  for ac_dir in $PATH; do
 
4460
    IFS="$lt_save_ifs"
 
4461
    test -z "$ac_dir" && ac_dir=.
 
4462
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4463
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4464
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4465
      # but apparently some variants of GNU ld only accept -v.
 
4466
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4467
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4468
      *GNU* | *'with BFD'*)
 
4469
        test "$with_gnu_ld" != no && break
 
4470
        ;;
 
4471
      *)
 
4472
        test "$with_gnu_ld" != yes && break
 
4473
        ;;
 
4474
      esac
 
4475
    fi
 
4476
  done
 
4477
  IFS="$lt_save_ifs"
 
4478
else
 
4479
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4480
fi
 
4481
fi
 
4482
 
 
4483
LD="$lt_cv_path_LD"
 
4484
if test -n "$LD"; then
 
4485
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4486
echo "${ECHO_T}$LD" >&6; }
 
4487
else
 
4488
  { echo "$as_me:$LINENO: result: no" >&5
 
4489
echo "${ECHO_T}no" >&6; }
 
4490
fi
 
4491
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4492
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4493
   { (exit 1); exit 1; }; }
 
4494
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4495
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4496
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4497
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4498
else
 
4499
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4500
case `$LD -v 2>&1 </dev/null` in
 
4501
*GNU* | *'with BFD'*)
 
4502
  lt_cv_prog_gnu_ld=yes
 
4503
  ;;
 
4504
*)
 
4505
  lt_cv_prog_gnu_ld=no
 
4506
  ;;
 
4507
esac
 
4508
fi
 
4509
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4510
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4511
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4512
 
 
4513
 
 
4514
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4515
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4516
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4518
else
 
4519
  lt_cv_ld_reload_flag='-r'
 
4520
fi
 
4521
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4522
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4523
reload_flag=$lt_cv_ld_reload_flag
 
4524
case $reload_flag in
 
4525
"" | " "*) ;;
 
4526
*) reload_flag=" $reload_flag" ;;
 
4527
esac
 
4528
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4529
case $host_os in
 
4530
  darwin*)
 
4531
    if test "$GCC" = yes; then
 
4532
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4533
    else
 
4534
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4535
    fi
 
4536
    ;;
 
4537
esac
 
4538
 
 
4539
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4540
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4541
if test "${lt_cv_path_NM+set}" = set; then
 
4542
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4543
else
 
4544
  if test -n "$NM"; then
 
4545
  # Let the user override the test.
 
4546
  lt_cv_path_NM="$NM"
 
4547
else
 
4548
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4549
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4550
    lt_nm_to_check="$lt_nm_to_check nm"
 
4551
  fi
 
4552
  for lt_tmp_nm in $lt_nm_to_check; do
 
4553
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4554
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4555
      IFS="$lt_save_ifs"
 
4556
      test -z "$ac_dir" && ac_dir=.
 
4557
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4558
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4559
        # Check to see if the nm accepts a BSD-compat flag.
 
4560
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4561
        #   nm: unknown option "B" ignored
 
4562
        # Tru64's nm complains that /dev/null is an invalid object file
 
4563
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4564
        */dev/null* | *'Invalid file or object type'*)
 
4565
          lt_cv_path_NM="$tmp_nm -B"
 
4566
          break
 
4567
          ;;
 
4568
        *)
 
4569
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4570
          */dev/null*)
 
4571
            lt_cv_path_NM="$tmp_nm -p"
 
4572
            break
 
4573
            ;;
 
4574
          *)
 
4575
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4576
            continue # so that we can try to find one that supports BSD flags
 
4577
            ;;
 
4578
          esac
 
4579
          ;;
 
4580
        esac
 
4581
      fi
 
4582
    done
 
4583
    IFS="$lt_save_ifs"
 
4584
  done
 
4585
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4586
fi
 
4587
fi
 
4588
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4589
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4590
NM="$lt_cv_path_NM"
 
4591
 
 
4592
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4593
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4594
LN_S=$as_ln_s
 
4595
if test "$LN_S" = "ln -s"; then
 
4596
  { echo "$as_me:$LINENO: result: yes" >&5
 
4597
echo "${ECHO_T}yes" >&6; }
 
4598
else
 
4599
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4600
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4601
fi
 
4602
 
 
4603
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4604
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4605
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4606
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4607
else
 
4608
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4609
lt_cv_file_magic_test_file=
 
4610
lt_cv_deplibs_check_method='unknown'
 
4611
# Need to set the preceding variable on all platforms that support
 
4612
# interlibrary dependencies.
 
4613
# 'none' -- dependencies not supported.
 
4614
# `unknown' -- same as none, but documents that we really don't know.
 
4615
# 'pass_all' -- all dependencies passed with no checks.
 
4616
# 'test_compile' -- check by making test program.
 
4617
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4618
# which responds to the $file_magic_cmd with a given extended regex.
 
4619
# If you have `file' or equivalent on your system and you're not sure
 
4620
# whether `pass_all' will *always* work, you probably want this one.
 
4621
 
 
4622
case $host_os in
 
4623
aix[4-9]*)
 
4624
  lt_cv_deplibs_check_method=pass_all
 
4625
  ;;
 
4626
 
 
4627
beos*)
 
4628
  lt_cv_deplibs_check_method=pass_all
 
4629
  ;;
 
4630
 
 
4631
bsdi[45]*)
 
4632
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4633
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4634
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4635
  ;;
 
4636
 
 
4637
cygwin*)
 
4638
  # func_win32_libid is a shell function defined in ltmain.sh
 
4639
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4640
  lt_cv_file_magic_cmd='func_win32_libid'
 
4641
  ;;
 
4642
 
 
4643
mingw* | pw32*)
 
4644
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4645
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4646
  # unless we find 'file', for example because we are cross-compiling.
 
4647
  if ( file / ) >/dev/null 2>&1; then
 
4648
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4649
    lt_cv_file_magic_cmd='func_win32_libid'
 
4650
  else
 
4651
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4652
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4653
  fi
 
4654
  ;;
 
4655
 
 
4656
darwin* | rhapsody*)
 
4657
  lt_cv_deplibs_check_method=pass_all
 
4658
  ;;
 
4659
 
 
4660
freebsd* | dragonfly*)
 
4661
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4662
    case $host_cpu in
 
4663
    i*86 )
 
4664
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4665
      # Let's accept both of them until this is cleared up.
 
4666
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4667
      lt_cv_file_magic_cmd=/usr/bin/file
 
4668
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4669
      ;;
 
4670
    esac
 
4671
  else
 
4672
    lt_cv_deplibs_check_method=pass_all
 
4673
  fi
 
4674
  ;;
 
4675
 
 
4676
gnu*)
 
4677
  lt_cv_deplibs_check_method=pass_all
 
4678
  ;;
 
4679
 
 
4680
hpux10.20* | hpux11*)
 
4681
  lt_cv_file_magic_cmd=/usr/bin/file
 
4682
  case $host_cpu in
 
4683
  ia64*)
 
4684
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4685
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4686
    ;;
 
4687
  hppa*64*)
 
4688
    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]'
 
4689
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4690
    ;;
 
4691
  *)
 
4692
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4693
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4694
    ;;
 
4695
  esac
 
4696
  ;;
 
4697
 
 
4698
interix[3-9]*)
 
4699
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4700
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4701
  ;;
 
4702
 
 
4703
irix5* | irix6* | nonstopux*)
 
4704
  case $LD in
 
4705
  *-32|*"-32 ") libmagic=32-bit;;
 
4706
  *-n32|*"-n32 ") libmagic=N32;;
 
4707
  *-64|*"-64 ") libmagic=64-bit;;
 
4708
  *) libmagic=never-match;;
 
4709
  esac
 
4710
  lt_cv_deplibs_check_method=pass_all
 
4711
  ;;
 
4712
 
 
4713
# This must be Linux ELF.
 
4714
linux* | k*bsd*-gnu)
 
4715
  lt_cv_deplibs_check_method=pass_all
 
4716
  ;;
 
4717
 
 
4718
netbsd* | netbsdelf*-gnu)
 
4719
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4720
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4721
  else
 
4722
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4723
  fi
 
4724
  ;;
 
4725
 
 
4726
newos6*)
 
4727
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4728
  lt_cv_file_magic_cmd=/usr/bin/file
 
4729
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4730
  ;;
 
4731
 
 
4732
nto-qnx*)
 
4733
  lt_cv_deplibs_check_method=unknown
 
4734
  ;;
 
4735
 
 
4736
openbsd*)
 
4737
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4738
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4739
  else
 
4740
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4741
  fi
 
4742
  ;;
 
4743
 
 
4744
osf3* | osf4* | osf5*)
 
4745
  lt_cv_deplibs_check_method=pass_all
 
4746
  ;;
 
4747
 
 
4748
rdos*)
 
4749
  lt_cv_deplibs_check_method=pass_all
 
4750
  ;;
 
4751
 
 
4752
solaris*)
 
4753
  lt_cv_deplibs_check_method=pass_all
 
4754
  ;;
 
4755
 
 
4756
sysv4 | sysv4.3*)
 
4757
  case $host_vendor in
 
4758
  motorola)
 
4759
    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]'
 
4760
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4761
    ;;
 
4762
  ncr)
 
4763
    lt_cv_deplibs_check_method=pass_all
 
4764
    ;;
 
4765
  sequent)
 
4766
    lt_cv_file_magic_cmd='/bin/file'
 
4767
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4768
    ;;
 
4769
  sni)
 
4770
    lt_cv_file_magic_cmd='/bin/file'
 
4771
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4772
    lt_cv_file_magic_test_file=/lib/libc.so
 
4773
    ;;
 
4774
  siemens)
 
4775
    lt_cv_deplibs_check_method=pass_all
 
4776
    ;;
 
4777
  pc)
 
4778
    lt_cv_deplibs_check_method=pass_all
 
4779
    ;;
 
4780
  esac
 
4781
  ;;
 
4782
 
 
4783
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4784
  lt_cv_deplibs_check_method=pass_all
 
4785
  ;;
 
4786
esac
 
4787
 
 
4788
fi
 
4789
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4790
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4791
file_magic_cmd=$lt_cv_file_magic_cmd
 
4792
deplibs_check_method=$lt_cv_deplibs_check_method
 
4793
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4794
 
 
4795
 
 
4796
 
 
4797
 
 
4798
# If no C compiler was specified, use CC.
 
4799
LTCC=${LTCC-"$CC"}
 
4800
 
 
4801
# If no C compiler flags were specified, use CFLAGS.
 
4802
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4803
 
 
4804
# Allow CC to be a program name with arguments.
 
4805
compiler=$CC
 
4806
 
 
4807
 
 
4808
# Check whether --enable-libtool-lock was given.
 
4809
if test "${enable_libtool_lock+set}" = set; then
 
4810
  enableval=$enable_libtool_lock;
 
4811
fi
 
4812
 
 
4813
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4814
 
 
4815
# Some flags need to be propagated to the compiler or linker for good
 
4816
# libtool support.
 
4817
case $host in
 
4818
ia64-*-hpux*)
 
4819
  # Find out which ABI we are using.
 
4820
  echo 'int i;' > conftest.$ac_ext
 
4821
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4822
  (eval $ac_compile) 2>&5
 
4823
  ac_status=$?
 
4824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4825
  (exit $ac_status); }; then
 
4826
    case `/usr/bin/file conftest.$ac_objext` in
 
4827
    *ELF-32*)
 
4828
      HPUX_IA64_MODE="32"
 
4829
      ;;
 
4830
    *ELF-64*)
 
4831
      HPUX_IA64_MODE="64"
 
4832
      ;;
 
4833
    esac
 
4834
  fi
 
4835
  rm -rf conftest*
 
4836
  ;;
 
4837
*-*-irix6*)
 
4838
  # Find out which ABI we are using.
 
4839
  echo '#line 4839 "configure"' > conftest.$ac_ext
 
4840
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4841
  (eval $ac_compile) 2>&5
 
4842
  ac_status=$?
 
4843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4844
  (exit $ac_status); }; then
 
4845
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4846
    case `/usr/bin/file conftest.$ac_objext` in
 
4847
    *32-bit*)
 
4848
      LD="${LD-ld} -melf32bsmip"
 
4849
      ;;
 
4850
    *N32*)
 
4851
      LD="${LD-ld} -melf32bmipn32"
 
4852
      ;;
 
4853
    *64-bit*)
 
4854
      LD="${LD-ld} -melf64bmip"
 
4855
      ;;
 
4856
    esac
 
4857
   else
 
4858
    case `/usr/bin/file conftest.$ac_objext` in
 
4859
    *32-bit*)
 
4860
      LD="${LD-ld} -32"
 
4861
      ;;
 
4862
    *N32*)
 
4863
      LD="${LD-ld} -n32"
 
4864
      ;;
 
4865
    *64-bit*)
 
4866
      LD="${LD-ld} -64"
 
4867
      ;;
 
4868
    esac
 
4869
   fi
 
4870
  fi
 
4871
  rm -rf conftest*
 
4872
  ;;
 
4873
 
 
4874
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4875
s390*-*linux*|sparc*-*linux*)
 
4876
  # Find out which ABI we are using.
 
4877
  echo 'int i;' > conftest.$ac_ext
 
4878
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4879
  (eval $ac_compile) 2>&5
 
4880
  ac_status=$?
 
4881
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4882
  (exit $ac_status); }; then
 
4883
    case `/usr/bin/file conftest.o` in
 
4884
    *32-bit*)
 
4885
      case $host in
 
4886
        x86_64-*kfreebsd*-gnu)
 
4887
          LD="${LD-ld} -m elf_i386_fbsd"
 
4888
          ;;
 
4889
        x86_64-*linux*)
 
4890
          LD="${LD-ld} -m elf_i386"
 
4891
          ;;
 
4892
        ppc64-*linux*|powerpc64-*linux*)
 
4893
          LD="${LD-ld} -m elf32ppclinux"
 
4894
          ;;
 
4895
        s390x-*linux*)
 
4896
          LD="${LD-ld} -m elf_s390"
 
4897
          ;;
 
4898
        sparc64-*linux*)
 
4899
          LD="${LD-ld} -m elf32_sparc"
 
4900
          ;;
 
4901
      esac
 
4902
      ;;
 
4903
    *64-bit*)
 
4904
      case $host in
 
4905
        x86_64-*kfreebsd*-gnu)
 
4906
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4907
          ;;
 
4908
        x86_64-*linux*)
 
4909
          LD="${LD-ld} -m elf_x86_64"
 
4910
          ;;
 
4911
        ppc*-*linux*|powerpc*-*linux*)
 
4912
          LD="${LD-ld} -m elf64ppc"
 
4913
          ;;
 
4914
        s390*-*linux*)
 
4915
          LD="${LD-ld} -m elf64_s390"
 
4916
          ;;
 
4917
        sparc*-*linux*)
 
4918
          LD="${LD-ld} -m elf64_sparc"
 
4919
          ;;
 
4920
      esac
 
4921
      ;;
 
4922
    esac
 
4923
  fi
 
4924
  rm -rf conftest*
 
4925
  ;;
 
4926
 
 
4927
*-*-sco3.2v5*)
 
4928
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4929
  SAVE_CFLAGS="$CFLAGS"
 
4930
  CFLAGS="$CFLAGS -belf"
 
4931
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4932
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4933
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4934
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4935
else
 
4936
  ac_ext=c
 
4937
ac_cpp='$CPP $CPPFLAGS'
 
4938
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4939
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4940
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4941
 
 
4942
     cat >conftest.$ac_ext <<_ACEOF
 
4943
/* confdefs.h.  */
 
4944
_ACEOF
 
4945
cat confdefs.h >>conftest.$ac_ext
 
4946
cat >>conftest.$ac_ext <<_ACEOF
 
4947
/* end confdefs.h.  */
 
4948
 
 
4949
int
 
4950
main ()
 
4951
{
 
4952
 
 
4953
  ;
 
4954
  return 0;
 
4955
}
 
4956
_ACEOF
 
4957
rm -f conftest.$ac_objext conftest$ac_exeext
 
4958
if { (ac_try="$ac_link"
 
4959
case "(($ac_try" in
 
4960
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4961
  *) ac_try_echo=$ac_try;;
 
4962
esac
 
4963
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4964
  (eval "$ac_link") 2>conftest.er1
 
4965
  ac_status=$?
 
4966
  grep -v '^ *+' conftest.er1 >conftest.err
 
4967
  rm -f conftest.er1
 
4968
  cat conftest.err >&5
 
4969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4970
  (exit $ac_status); } && {
 
4971
         test -z "$ac_c_werror_flag" ||
 
4972
         test ! -s conftest.err
 
4973
       } && test -s conftest$ac_exeext &&
 
4974
       $as_test_x conftest$ac_exeext; then
 
4975
  lt_cv_cc_needs_belf=yes
 
4976
else
 
4977
  echo "$as_me: failed program was:" >&5
 
4978
sed 's/^/| /' conftest.$ac_ext >&5
 
4979
 
 
4980
        lt_cv_cc_needs_belf=no
 
4981
fi
 
4982
 
 
4983
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4984
      conftest$ac_exeext conftest.$ac_ext
 
4985
     ac_ext=c
 
4986
ac_cpp='$CPP $CPPFLAGS'
 
4987
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4988
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4989
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4990
 
 
4991
fi
 
4992
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4993
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4994
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4995
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4996
    CFLAGS="$SAVE_CFLAGS"
 
4997
  fi
 
4998
  ;;
 
4999
sparc*-*solaris*)
 
5000
  # Find out which ABI we are using.
 
5001
  echo 'int i;' > conftest.$ac_ext
 
5002
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5003
  (eval $ac_compile) 2>&5
 
5004
  ac_status=$?
 
5005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5006
  (exit $ac_status); }; then
 
5007
    case `/usr/bin/file conftest.o` in
 
5008
    *64-bit*)
 
5009
      case $lt_cv_prog_gnu_ld in
 
5010
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5011
      *)
 
5012
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5013
          LD="${LD-ld} -64"
 
5014
        fi
 
5015
        ;;
 
5016
      esac
 
5017
      ;;
 
5018
    esac
 
5019
  fi
 
5020
  rm -rf conftest*
 
5021
  ;;
 
5022
 
 
5023
 
 
5024
esac
 
5025
 
 
5026
need_locks="$enable_libtool_lock"
 
5027
 
 
5028
 
 
5029
ac_ext=c
 
5030
ac_cpp='$CPP $CPPFLAGS'
 
5031
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5032
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5033
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5034
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5035
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
5036
# On Suns, sometimes $CPP names a directory.
 
5037
if test -n "$CPP" && test -d "$CPP"; then
 
5038
  CPP=
 
5039
fi
 
5040
if test -z "$CPP"; then
 
5041
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5042
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5043
else
 
5044
      # Double quotes because CPP needs to be expanded
 
5045
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5046
    do
 
5047
      ac_preproc_ok=false
 
5048
for ac_c_preproc_warn_flag in '' yes
 
5049
do
 
5050
  # Use a header file that comes with gcc, so configuring glibc
 
5051
  # with a fresh cross-compiler works.
 
5052
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5053
  # <limits.h> exists even on freestanding compilers.
 
5054
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5055
  # not just through cpp. "Syntax error" is here to catch this case.
 
5056
  cat >conftest.$ac_ext <<_ACEOF
 
5057
/* confdefs.h.  */
 
5058
_ACEOF
 
5059
cat confdefs.h >>conftest.$ac_ext
 
5060
cat >>conftest.$ac_ext <<_ACEOF
 
5061
/* end confdefs.h.  */
 
5062
#ifdef __STDC__
 
5063
# include <limits.h>
 
5064
#else
 
5065
# include <assert.h>
 
5066
#endif
 
5067
                     Syntax error
 
5068
_ACEOF
 
5069
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5070
case "(($ac_try" in
 
5071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5072
  *) ac_try_echo=$ac_try;;
 
5073
esac
 
5074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5075
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5076
  ac_status=$?
 
5077
  grep -v '^ *+' conftest.er1 >conftest.err
 
5078
  rm -f conftest.er1
 
5079
  cat conftest.err >&5
 
5080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5081
  (exit $ac_status); } >/dev/null && {
 
5082
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5083
         test ! -s conftest.err
 
5084
       }; then
 
5085
  :
 
5086
else
 
5087
  echo "$as_me: failed program was:" >&5
 
5088
sed 's/^/| /' conftest.$ac_ext >&5
 
5089
 
 
5090
  # Broken: fails on valid input.
 
5091
continue
 
5092
fi
 
5093
 
 
5094
rm -f conftest.err conftest.$ac_ext
 
5095
 
 
5096
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5097
  # can be detected and how.
 
5098
  cat >conftest.$ac_ext <<_ACEOF
 
5099
/* confdefs.h.  */
 
5100
_ACEOF
 
5101
cat confdefs.h >>conftest.$ac_ext
 
5102
cat >>conftest.$ac_ext <<_ACEOF
 
5103
/* end confdefs.h.  */
 
5104
#include <ac_nonexistent.h>
 
5105
_ACEOF
 
5106
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5107
case "(($ac_try" in
 
5108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5109
  *) ac_try_echo=$ac_try;;
 
5110
esac
 
5111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5112
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5113
  ac_status=$?
 
5114
  grep -v '^ *+' conftest.er1 >conftest.err
 
5115
  rm -f conftest.er1
 
5116
  cat conftest.err >&5
 
5117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5118
  (exit $ac_status); } >/dev/null && {
 
5119
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5120
         test ! -s conftest.err
 
5121
       }; then
 
5122
  # Broken: success on invalid input.
 
5123
continue
 
5124
else
 
5125
  echo "$as_me: failed program was:" >&5
 
5126
sed 's/^/| /' conftest.$ac_ext >&5
 
5127
 
 
5128
  # Passes both tests.
 
5129
ac_preproc_ok=:
 
5130
break
 
5131
fi
 
5132
 
 
5133
rm -f conftest.err conftest.$ac_ext
 
5134
 
 
5135
done
 
5136
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5137
rm -f conftest.err conftest.$ac_ext
 
5138
if $ac_preproc_ok; then
 
5139
  break
 
5140
fi
 
5141
 
 
5142
    done
 
5143
    ac_cv_prog_CPP=$CPP
 
5144
 
 
5145
fi
 
5146
  CPP=$ac_cv_prog_CPP
 
5147
else
 
5148
  ac_cv_prog_CPP=$CPP
 
5149
fi
 
5150
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
5151
echo "${ECHO_T}$CPP" >&6; }
 
5152
ac_preproc_ok=false
 
5153
for ac_c_preproc_warn_flag in '' yes
 
5154
do
 
5155
  # Use a header file that comes with gcc, so configuring glibc
 
5156
  # with a fresh cross-compiler works.
 
5157
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5158
  # <limits.h> exists even on freestanding compilers.
 
5159
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5160
  # not just through cpp. "Syntax error" is here to catch this case.
 
5161
  cat >conftest.$ac_ext <<_ACEOF
 
5162
/* confdefs.h.  */
 
5163
_ACEOF
 
5164
cat confdefs.h >>conftest.$ac_ext
 
5165
cat >>conftest.$ac_ext <<_ACEOF
 
5166
/* end confdefs.h.  */
 
5167
#ifdef __STDC__
 
5168
# include <limits.h>
 
5169
#else
 
5170
# include <assert.h>
 
5171
#endif
 
5172
                     Syntax error
 
5173
_ACEOF
 
5174
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5175
case "(($ac_try" in
 
5176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5177
  *) ac_try_echo=$ac_try;;
 
5178
esac
 
5179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5180
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5181
  ac_status=$?
 
5182
  grep -v '^ *+' conftest.er1 >conftest.err
 
5183
  rm -f conftest.er1
 
5184
  cat conftest.err >&5
 
5185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5186
  (exit $ac_status); } >/dev/null && {
 
5187
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5188
         test ! -s conftest.err
 
5189
       }; then
 
5190
  :
 
5191
else
 
5192
  echo "$as_me: failed program was:" >&5
 
5193
sed 's/^/| /' conftest.$ac_ext >&5
 
5194
 
 
5195
  # Broken: fails on valid input.
 
5196
continue
 
5197
fi
 
5198
 
 
5199
rm -f conftest.err conftest.$ac_ext
 
5200
 
 
5201
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5202
  # can be detected and how.
 
5203
  cat >conftest.$ac_ext <<_ACEOF
 
5204
/* confdefs.h.  */
 
5205
_ACEOF
 
5206
cat confdefs.h >>conftest.$ac_ext
 
5207
cat >>conftest.$ac_ext <<_ACEOF
 
5208
/* end confdefs.h.  */
 
5209
#include <ac_nonexistent.h>
 
5210
_ACEOF
 
5211
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5212
case "(($ac_try" in
 
5213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5214
  *) ac_try_echo=$ac_try;;
 
5215
esac
 
5216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5217
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5218
  ac_status=$?
 
5219
  grep -v '^ *+' conftest.er1 >conftest.err
 
5220
  rm -f conftest.er1
 
5221
  cat conftest.err >&5
 
5222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5223
  (exit $ac_status); } >/dev/null && {
 
5224
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5225
         test ! -s conftest.err
 
5226
       }; then
 
5227
  # Broken: success on invalid input.
 
5228
continue
 
5229
else
 
5230
  echo "$as_me: failed program was:" >&5
 
5231
sed 's/^/| /' conftest.$ac_ext >&5
 
5232
 
 
5233
  # Passes both tests.
 
5234
ac_preproc_ok=:
 
5235
break
 
5236
fi
 
5237
 
 
5238
rm -f conftest.err conftest.$ac_ext
 
5239
 
 
5240
done
 
5241
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5242
rm -f conftest.err conftest.$ac_ext
 
5243
if $ac_preproc_ok; then
 
5244
  :
 
5245
else
 
5246
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5247
See \`config.log' for more details." >&5
 
5248
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5249
See \`config.log' for more details." >&2;}
 
5250
   { (exit 1); exit 1; }; }
 
5251
fi
 
5252
 
 
5253
ac_ext=c
 
5254
ac_cpp='$CPP $CPPFLAGS'
 
5255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5258
 
 
5259
 
 
5260
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5261
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5262
if test "${ac_cv_header_stdc+set}" = set; then
 
5263
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5264
else
 
5265
  cat >conftest.$ac_ext <<_ACEOF
 
5266
/* confdefs.h.  */
 
5267
_ACEOF
 
5268
cat confdefs.h >>conftest.$ac_ext
 
5269
cat >>conftest.$ac_ext <<_ACEOF
 
5270
/* end confdefs.h.  */
 
5271
#include <stdlib.h>
 
5272
#include <stdarg.h>
 
5273
#include <string.h>
 
5274
#include <float.h>
 
5275
 
 
5276
int
 
5277
main ()
 
5278
{
 
5279
 
 
5280
  ;
 
5281
  return 0;
 
5282
}
 
5283
_ACEOF
 
5284
rm -f conftest.$ac_objext
 
5285
if { (ac_try="$ac_compile"
 
5286
case "(($ac_try" in
 
5287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5288
  *) ac_try_echo=$ac_try;;
 
5289
esac
 
5290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5291
  (eval "$ac_compile") 2>conftest.er1
 
5292
  ac_status=$?
 
5293
  grep -v '^ *+' conftest.er1 >conftest.err
 
5294
  rm -f conftest.er1
 
5295
  cat conftest.err >&5
 
5296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5297
  (exit $ac_status); } && {
 
5298
         test -z "$ac_c_werror_flag" ||
 
5299
         test ! -s conftest.err
 
5300
       } && test -s conftest.$ac_objext; then
 
5301
  ac_cv_header_stdc=yes
 
5302
else
 
5303
  echo "$as_me: failed program was:" >&5
 
5304
sed 's/^/| /' conftest.$ac_ext >&5
 
5305
 
 
5306
        ac_cv_header_stdc=no
 
5307
fi
 
5308
 
 
5309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5310
 
 
5311
if test $ac_cv_header_stdc = yes; then
 
5312
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5313
  cat >conftest.$ac_ext <<_ACEOF
 
5314
/* confdefs.h.  */
 
5315
_ACEOF
 
5316
cat confdefs.h >>conftest.$ac_ext
 
5317
cat >>conftest.$ac_ext <<_ACEOF
 
5318
/* end confdefs.h.  */
 
5319
#include <string.h>
 
5320
 
 
5321
_ACEOF
 
5322
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5323
  $EGREP "memchr" >/dev/null 2>&1; then
 
5324
  :
 
5325
else
 
5326
  ac_cv_header_stdc=no
 
5327
fi
 
5328
rm -f conftest*
 
5329
 
 
5330
fi
 
5331
 
 
5332
if test $ac_cv_header_stdc = yes; then
 
5333
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5334
  cat >conftest.$ac_ext <<_ACEOF
 
5335
/* confdefs.h.  */
 
5336
_ACEOF
 
5337
cat confdefs.h >>conftest.$ac_ext
 
5338
cat >>conftest.$ac_ext <<_ACEOF
 
5339
/* end confdefs.h.  */
 
5340
#include <stdlib.h>
 
5341
 
 
5342
_ACEOF
 
5343
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5344
  $EGREP "free" >/dev/null 2>&1; then
 
5345
  :
 
5346
else
 
5347
  ac_cv_header_stdc=no
 
5348
fi
 
5349
rm -f conftest*
 
5350
 
 
5351
fi
 
5352
 
 
5353
if test $ac_cv_header_stdc = yes; then
 
5354
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5355
  if test "$cross_compiling" = yes; then
 
5356
  :
 
5357
else
 
5358
  cat >conftest.$ac_ext <<_ACEOF
 
5359
/* confdefs.h.  */
 
5360
_ACEOF
 
5361
cat confdefs.h >>conftest.$ac_ext
 
5362
cat >>conftest.$ac_ext <<_ACEOF
 
5363
/* end confdefs.h.  */
 
5364
#include <ctype.h>
 
5365
#include <stdlib.h>
 
5366
#if ((' ' & 0x0FF) == 0x020)
 
5367
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5368
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5369
#else
 
5370
# define ISLOWER(c) \
 
5371
                   (('a' <= (c) && (c) <= 'i') \
 
5372
                     || ('j' <= (c) && (c) <= 'r') \
 
5373
                     || ('s' <= (c) && (c) <= 'z'))
 
5374
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5375
#endif
 
5376
 
 
5377
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5378
int
 
5379
main ()
 
5380
{
 
5381
  int i;
 
5382
  for (i = 0; i < 256; i++)
 
5383
    if (XOR (islower (i), ISLOWER (i))
 
5384
        || toupper (i) != TOUPPER (i))
 
5385
      return 2;
 
5386
  return 0;
 
5387
}
 
5388
_ACEOF
 
5389
rm -f conftest$ac_exeext
 
5390
if { (ac_try="$ac_link"
 
5391
case "(($ac_try" in
 
5392
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5393
  *) ac_try_echo=$ac_try;;
 
5394
esac
 
5395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5396
  (eval "$ac_link") 2>&5
 
5397
  ac_status=$?
 
5398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5399
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5400
  { (case "(($ac_try" in
 
5401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5402
  *) ac_try_echo=$ac_try;;
 
5403
esac
 
5404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5405
  (eval "$ac_try") 2>&5
 
5406
  ac_status=$?
 
5407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); }; }; then
 
5409
  :
 
5410
else
 
5411
  echo "$as_me: program exited with status $ac_status" >&5
 
5412
echo "$as_me: failed program was:" >&5
 
5413
sed 's/^/| /' conftest.$ac_ext >&5
 
5414
 
 
5415
( exit $ac_status )
 
5416
ac_cv_header_stdc=no
 
5417
fi
 
5418
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5419
fi
 
5420
 
 
5421
 
 
5422
fi
 
5423
fi
 
5424
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5425
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5426
if test $ac_cv_header_stdc = yes; then
 
5427
 
 
5428
cat >>confdefs.h <<\_ACEOF
 
5429
#define STDC_HEADERS 1
 
5430
_ACEOF
 
5431
 
 
5432
fi
 
5433
 
 
5434
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5435
 
 
5436
 
 
5437
 
 
5438
 
 
5439
 
 
5440
 
 
5441
 
 
5442
 
 
5443
 
 
5444
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5445
                  inttypes.h stdint.h unistd.h
 
5446
do
 
5447
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5448
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5449
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5450
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5452
else
 
5453
  cat >conftest.$ac_ext <<_ACEOF
 
5454
/* confdefs.h.  */
 
5455
_ACEOF
 
5456
cat confdefs.h >>conftest.$ac_ext
 
5457
cat >>conftest.$ac_ext <<_ACEOF
 
5458
/* end confdefs.h.  */
 
5459
$ac_includes_default
 
5460
 
 
5461
#include <$ac_header>
 
5462
_ACEOF
 
5463
rm -f conftest.$ac_objext
 
5464
if { (ac_try="$ac_compile"
 
5465
case "(($ac_try" in
 
5466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5467
  *) ac_try_echo=$ac_try;;
 
5468
esac
 
5469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5470
  (eval "$ac_compile") 2>conftest.er1
 
5471
  ac_status=$?
 
5472
  grep -v '^ *+' conftest.er1 >conftest.err
 
5473
  rm -f conftest.er1
 
5474
  cat conftest.err >&5
 
5475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5476
  (exit $ac_status); } && {
 
5477
         test -z "$ac_c_werror_flag" ||
 
5478
         test ! -s conftest.err
 
5479
       } && test -s conftest.$ac_objext; then
 
5480
  eval "$as_ac_Header=yes"
 
5481
else
 
5482
  echo "$as_me: failed program was:" >&5
 
5483
sed 's/^/| /' conftest.$ac_ext >&5
 
5484
 
 
5485
        eval "$as_ac_Header=no"
 
5486
fi
 
5487
 
 
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5489
fi
 
5490
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5491
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5492
echo "${ECHO_T}$ac_res" >&6; }
 
5493
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5494
  cat >>confdefs.h <<_ACEOF
 
5495
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5496
_ACEOF
 
5497
 
 
5498
fi
 
5499
 
 
5500
done
 
5501
 
 
5502
 
 
5503
 
 
5504
for ac_header in dlfcn.h
 
5505
do
 
5506
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5507
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5508
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5509
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5510
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5511
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5512
fi
 
5513
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5514
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5515
echo "${ECHO_T}$ac_res" >&6; }
 
5516
else
 
5517
  # Is the header compilable?
 
5518
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5519
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5520
cat >conftest.$ac_ext <<_ACEOF
 
5521
/* confdefs.h.  */
 
5522
_ACEOF
 
5523
cat confdefs.h >>conftest.$ac_ext
 
5524
cat >>conftest.$ac_ext <<_ACEOF
 
5525
/* end confdefs.h.  */
 
5526
$ac_includes_default
 
5527
#include <$ac_header>
 
5528
_ACEOF
 
5529
rm -f conftest.$ac_objext
 
5530
if { (ac_try="$ac_compile"
 
5531
case "(($ac_try" in
 
5532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5533
  *) ac_try_echo=$ac_try;;
 
5534
esac
 
5535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5536
  (eval "$ac_compile") 2>conftest.er1
 
5537
  ac_status=$?
 
5538
  grep -v '^ *+' conftest.er1 >conftest.err
 
5539
  rm -f conftest.er1
 
5540
  cat conftest.err >&5
 
5541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5542
  (exit $ac_status); } && {
 
5543
         test -z "$ac_c_werror_flag" ||
 
5544
         test ! -s conftest.err
 
5545
       } && test -s conftest.$ac_objext; then
 
5546
  ac_header_compiler=yes
 
5547
else
 
5548
  echo "$as_me: failed program was:" >&5
 
5549
sed 's/^/| /' conftest.$ac_ext >&5
 
5550
 
 
5551
        ac_header_compiler=no
 
5552
fi
 
5553
 
 
5554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5555
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5556
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5557
 
 
5558
# Is the header present?
 
5559
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5560
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5561
cat >conftest.$ac_ext <<_ACEOF
 
5562
/* confdefs.h.  */
 
5563
_ACEOF
 
5564
cat confdefs.h >>conftest.$ac_ext
 
5565
cat >>conftest.$ac_ext <<_ACEOF
 
5566
/* end confdefs.h.  */
 
5567
#include <$ac_header>
 
5568
_ACEOF
 
5569
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5570
case "(($ac_try" in
 
5571
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5572
  *) ac_try_echo=$ac_try;;
 
5573
esac
 
5574
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5575
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5576
  ac_status=$?
 
5577
  grep -v '^ *+' conftest.er1 >conftest.err
 
5578
  rm -f conftest.er1
 
5579
  cat conftest.err >&5
 
5580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5581
  (exit $ac_status); } >/dev/null && {
 
5582
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5583
         test ! -s conftest.err
 
5584
       }; then
 
5585
  ac_header_preproc=yes
 
5586
else
 
5587
  echo "$as_me: failed program was:" >&5
 
5588
sed 's/^/| /' conftest.$ac_ext >&5
 
5589
 
 
5590
  ac_header_preproc=no
 
5591
fi
 
5592
 
 
5593
rm -f conftest.err conftest.$ac_ext
 
5594
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5595
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5596
 
 
5597
# So?  What about this header?
 
5598
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5599
  yes:no: )
 
5600
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5601
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5602
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5603
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5604
    ac_header_preproc=yes
 
5605
    ;;
 
5606
  no:yes:* )
 
5607
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5608
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5609
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5610
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5611
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5612
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5613
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5614
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5615
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5616
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5617
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5618
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5619
    ( cat <<\_ASBOX
 
5620
## ---------------------------------------- ##
 
5621
## Report this to xcb@lists.freedesktop.org ##
 
5622
## ---------------------------------------- ##
 
5623
_ASBOX
 
5624
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5625
    ;;
 
5626
esac
 
5627
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5628
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5629
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5630
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5631
else
 
5632
  eval "$as_ac_Header=\$ac_header_preproc"
 
5633
fi
 
5634
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5635
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5636
echo "${ECHO_T}$ac_res" >&6; }
 
5637
 
 
5638
fi
 
5639
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5640
  cat >>confdefs.h <<_ACEOF
 
5641
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5642
_ACEOF
 
5643
 
 
5644
fi
 
5645
 
 
5646
done
 
5647
 
 
5648
ac_ext=cpp
 
5649
ac_cpp='$CXXCPP $CPPFLAGS'
 
5650
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5651
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5652
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5653
if test -z "$CXX"; then
 
5654
  if test -n "$CCC"; then
 
5655
    CXX=$CCC
 
5656
  else
 
5657
    if test -n "$ac_tool_prefix"; then
 
5658
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5659
  do
 
5660
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5661
set dummy $ac_tool_prefix$ac_prog; 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_CXX+set}" = set; then
 
5665
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5666
else
 
5667
  if test -n "$CXX"; then
 
5668
  ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_tool_prefix$ac_prog"
 
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
CXX=$ac_cv_prog_CXX
 
5688
if test -n "$CXX"; then
 
5689
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5690
echo "${ECHO_T}$CXX" >&6; }
 
5691
else
 
5692
  { echo "$as_me:$LINENO: result: no" >&5
 
5693
echo "${ECHO_T}no" >&6; }
 
5694
fi
 
5695
 
 
5696
 
 
5697
    test -n "$CXX" && break
 
5698
  done
 
5699
fi
 
5700
if test -z "$CXX"; then
 
5701
  ac_ct_CXX=$CXX
 
5702
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5703
do
 
5704
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5705
set dummy $ac_prog; ac_word=$2
 
5706
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5707
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5708
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5710
else
 
5711
  if test -n "$ac_ct_CXX"; then
 
5712
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5713
else
 
5714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5715
for as_dir in $PATH
 
5716
do
 
5717
  IFS=$as_save_IFS
 
5718
  test -z "$as_dir" && as_dir=.
 
5719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5720
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5721
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5722
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5723
    break 2
 
5724
  fi
 
5725
done
 
5726
done
 
5727
IFS=$as_save_IFS
 
5728
 
 
5729
fi
 
5730
fi
 
5731
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5732
if test -n "$ac_ct_CXX"; then
 
5733
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5734
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5735
else
 
5736
  { echo "$as_me:$LINENO: result: no" >&5
 
5737
echo "${ECHO_T}no" >&6; }
 
5738
fi
 
5739
 
 
5740
 
 
5741
  test -n "$ac_ct_CXX" && break
 
5742
done
 
5743
 
 
5744
  if test "x$ac_ct_CXX" = x; then
 
5745
    CXX="g++"
 
5746
  else
 
5747
    case $cross_compiling:$ac_tool_warned in
 
5748
yes:)
 
5749
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5750
whose name does not start with the host triplet.  If you think this
 
5751
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5752
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5753
whose name does not start with the host triplet.  If you think this
 
5754
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5755
ac_tool_warned=yes ;;
 
5756
esac
 
5757
    CXX=$ac_ct_CXX
 
5758
  fi
 
5759
fi
 
5760
 
 
5761
  fi
 
5762
fi
 
5763
# Provide some information about the compiler.
 
5764
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5765
ac_compiler=`set X $ac_compile; echo $2`
 
5766
{ (ac_try="$ac_compiler --version >&5"
 
5767
case "(($ac_try" in
 
5768
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5769
  *) ac_try_echo=$ac_try;;
 
5770
esac
 
5771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5772
  (eval "$ac_compiler --version >&5") 2>&5
 
5773
  ac_status=$?
 
5774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5775
  (exit $ac_status); }
 
5776
{ (ac_try="$ac_compiler -v >&5"
 
5777
case "(($ac_try" in
 
5778
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5779
  *) ac_try_echo=$ac_try;;
 
5780
esac
 
5781
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5782
  (eval "$ac_compiler -v >&5") 2>&5
 
5783
  ac_status=$?
 
5784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5785
  (exit $ac_status); }
 
5786
{ (ac_try="$ac_compiler -V >&5"
 
5787
case "(($ac_try" in
 
5788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5789
  *) ac_try_echo=$ac_try;;
 
5790
esac
 
5791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5792
  (eval "$ac_compiler -V >&5") 2>&5
 
5793
  ac_status=$?
 
5794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5795
  (exit $ac_status); }
 
5796
 
 
5797
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5798
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5799
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5801
else
 
5802
  cat >conftest.$ac_ext <<_ACEOF
 
5803
/* confdefs.h.  */
 
5804
_ACEOF
 
5805
cat confdefs.h >>conftest.$ac_ext
 
5806
cat >>conftest.$ac_ext <<_ACEOF
 
5807
/* end confdefs.h.  */
 
5808
 
 
5809
int
 
5810
main ()
 
5811
{
 
5812
#ifndef __GNUC__
 
5813
       choke me
 
5814
#endif
 
5815
 
 
5816
  ;
 
5817
  return 0;
 
5818
}
 
5819
_ACEOF
 
5820
rm -f conftest.$ac_objext
 
5821
if { (ac_try="$ac_compile"
 
5822
case "(($ac_try" in
 
5823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5824
  *) ac_try_echo=$ac_try;;
 
5825
esac
 
5826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5827
  (eval "$ac_compile") 2>conftest.er1
 
5828
  ac_status=$?
 
5829
  grep -v '^ *+' conftest.er1 >conftest.err
 
5830
  rm -f conftest.er1
 
5831
  cat conftest.err >&5
 
5832
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5833
  (exit $ac_status); } && {
 
5834
         test -z "$ac_cxx_werror_flag" ||
 
5835
         test ! -s conftest.err
 
5836
       } && test -s conftest.$ac_objext; then
 
5837
  ac_compiler_gnu=yes
 
5838
else
 
5839
  echo "$as_me: failed program was:" >&5
 
5840
sed 's/^/| /' conftest.$ac_ext >&5
 
5841
 
 
5842
        ac_compiler_gnu=no
 
5843
fi
 
5844
 
 
5845
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5846
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5847
 
 
5848
fi
 
5849
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5850
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5851
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5852
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5853
ac_save_CXXFLAGS=$CXXFLAGS
 
5854
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5855
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5856
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5857
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5858
else
 
5859
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5860
   ac_cxx_werror_flag=yes
 
5861
   ac_cv_prog_cxx_g=no
 
5862
   CXXFLAGS="-g"
 
5863
   cat >conftest.$ac_ext <<_ACEOF
 
5864
/* confdefs.h.  */
 
5865
_ACEOF
 
5866
cat confdefs.h >>conftest.$ac_ext
 
5867
cat >>conftest.$ac_ext <<_ACEOF
 
5868
/* end confdefs.h.  */
 
5869
 
 
5870
int
 
5871
main ()
 
5872
{
 
5873
 
 
5874
  ;
 
5875
  return 0;
 
5876
}
 
5877
_ACEOF
 
5878
rm -f conftest.$ac_objext
 
5879
if { (ac_try="$ac_compile"
 
5880
case "(($ac_try" in
 
5881
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5882
  *) ac_try_echo=$ac_try;;
 
5883
esac
 
5884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5885
  (eval "$ac_compile") 2>conftest.er1
 
5886
  ac_status=$?
 
5887
  grep -v '^ *+' conftest.er1 >conftest.err
 
5888
  rm -f conftest.er1
 
5889
  cat conftest.err >&5
 
5890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5891
  (exit $ac_status); } && {
 
5892
         test -z "$ac_cxx_werror_flag" ||
 
5893
         test ! -s conftest.err
 
5894
       } && test -s conftest.$ac_objext; then
 
5895
  ac_cv_prog_cxx_g=yes
 
5896
else
 
5897
  echo "$as_me: failed program was:" >&5
 
5898
sed 's/^/| /' conftest.$ac_ext >&5
 
5899
 
 
5900
        CXXFLAGS=""
 
5901
      cat >conftest.$ac_ext <<_ACEOF
 
5902
/* confdefs.h.  */
 
5903
_ACEOF
 
5904
cat confdefs.h >>conftest.$ac_ext
 
5905
cat >>conftest.$ac_ext <<_ACEOF
 
5906
/* end confdefs.h.  */
 
5907
 
 
5908
int
 
5909
main ()
 
5910
{
 
5911
 
 
5912
  ;
 
5913
  return 0;
 
5914
}
 
5915
_ACEOF
 
5916
rm -f conftest.$ac_objext
 
5917
if { (ac_try="$ac_compile"
 
5918
case "(($ac_try" in
 
5919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5920
  *) ac_try_echo=$ac_try;;
 
5921
esac
 
5922
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5923
  (eval "$ac_compile") 2>conftest.er1
 
5924
  ac_status=$?
 
5925
  grep -v '^ *+' conftest.er1 >conftest.err
 
5926
  rm -f conftest.er1
 
5927
  cat conftest.err >&5
 
5928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5929
  (exit $ac_status); } && {
 
5930
         test -z "$ac_cxx_werror_flag" ||
 
5931
         test ! -s conftest.err
 
5932
       } && test -s conftest.$ac_objext; then
 
5933
  :
 
5934
else
 
5935
  echo "$as_me: failed program was:" >&5
 
5936
sed 's/^/| /' conftest.$ac_ext >&5
 
5937
 
 
5938
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5939
         CXXFLAGS="-g"
 
5940
         cat >conftest.$ac_ext <<_ACEOF
 
5941
/* confdefs.h.  */
 
5942
_ACEOF
 
5943
cat confdefs.h >>conftest.$ac_ext
 
5944
cat >>conftest.$ac_ext <<_ACEOF
 
5945
/* end confdefs.h.  */
 
5946
 
 
5947
int
 
5948
main ()
 
5949
{
 
5950
 
 
5951
  ;
 
5952
  return 0;
 
5953
}
 
5954
_ACEOF
 
5955
rm -f conftest.$ac_objext
 
5956
if { (ac_try="$ac_compile"
 
5957
case "(($ac_try" in
 
5958
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5959
  *) ac_try_echo=$ac_try;;
 
5960
esac
 
5961
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5962
  (eval "$ac_compile") 2>conftest.er1
 
5963
  ac_status=$?
 
5964
  grep -v '^ *+' conftest.er1 >conftest.err
 
5965
  rm -f conftest.er1
 
5966
  cat conftest.err >&5
 
5967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5968
  (exit $ac_status); } && {
 
5969
         test -z "$ac_cxx_werror_flag" ||
 
5970
         test ! -s conftest.err
 
5971
       } && test -s conftest.$ac_objext; then
 
5972
  ac_cv_prog_cxx_g=yes
 
5973
else
 
5974
  echo "$as_me: failed program was:" >&5
 
5975
sed 's/^/| /' conftest.$ac_ext >&5
 
5976
 
 
5977
 
 
5978
fi
 
5979
 
 
5980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5981
fi
 
5982
 
 
5983
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5984
fi
 
5985
 
 
5986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5987
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5988
fi
 
5989
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5990
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5991
if test "$ac_test_CXXFLAGS" = set; then
 
5992
  CXXFLAGS=$ac_save_CXXFLAGS
 
5993
elif test $ac_cv_prog_cxx_g = yes; then
 
5994
  if test "$GXX" = yes; then
 
5995
    CXXFLAGS="-g -O2"
 
5996
  else
 
5997
    CXXFLAGS="-g"
 
5998
  fi
 
5999
else
 
6000
  if test "$GXX" = yes; then
 
6001
    CXXFLAGS="-O2"
 
6002
  else
 
6003
    CXXFLAGS=
 
6004
  fi
 
6005
fi
 
6006
ac_ext=cpp
 
6007
ac_cpp='$CXXCPP $CPPFLAGS'
 
6008
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6009
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6010
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6011
 
 
6012
depcc="$CXX"  am_compiler_list=
 
6013
 
 
6014
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6015
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
6016
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6018
else
 
6019
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6020
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6021
  # making bogus files that we don't know about and never remove.  For
 
6022
  # instance it was reported that on HP-UX the gcc test will end up
 
6023
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6024
  # in D'.
 
6025
  mkdir conftest.dir
 
6026
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6027
  # using a relative directory.
 
6028
  cp "$am_depcomp" conftest.dir
 
6029
  cd conftest.dir
 
6030
  # We will build objects and dependencies in a subdirectory because
 
6031
  # it helps to detect inapplicable dependency modes.  For instance
 
6032
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6033
  # side effect of compilation, but ICC will put the dependencies in
 
6034
  # the current directory while Tru64 will put them in the object
 
6035
  # directory.
 
6036
  mkdir sub
 
6037
 
 
6038
  am_cv_CXX_dependencies_compiler_type=none
 
6039
  if test "$am_compiler_list" = ""; then
 
6040
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6041
  fi
 
6042
  for depmode in $am_compiler_list; do
 
6043
    # Setup a source with many dependencies, because some compilers
 
6044
    # like to wrap large dependency lists on column 80 (with \), and
 
6045
    # we should not choose a depcomp mode which is confused by this.
 
6046
    #
 
6047
    # We need to recreate these files for each test, as the compiler may
 
6048
    # overwrite some of them when testing with obscure command lines.
 
6049
    # This happens at least with the AIX C compiler.
 
6050
    : > sub/conftest.c
 
6051
    for i in 1 2 3 4 5 6; do
 
6052
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6053
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6054
      # Solaris 8's {/usr,}/bin/sh.
 
6055
      touch sub/conftst$i.h
 
6056
    done
 
6057
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6058
 
 
6059
    case $depmode in
 
6060
    nosideeffect)
 
6061
      # after this tag, mechanisms are not by side-effect, so they'll
 
6062
      # only be used when explicitly requested
 
6063
      if test "x$enable_dependency_tracking" = xyes; then
 
6064
        continue
 
6065
      else
 
6066
        break
 
6067
      fi
 
6068
      ;;
 
6069
    none) break ;;
 
6070
    esac
 
6071
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6072
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6073
    # handle `-M -o', and we need to detect this.
 
6074
    if depmode=$depmode \
 
6075
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6076
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6077
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6078
         >/dev/null 2>conftest.err &&
 
6079
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
6080
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6081
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6082
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6083
      # icc doesn't choke on unknown options, it will just issue warnings
 
6084
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6085
      # that says an option was ignored or not supported.
 
6086
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6087
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6088
      # The diagnosis changed in icc 8.0:
 
6089
      #   icc: Command line remark: option '-MP' not supported
 
6090
      if (grep 'ignoring option' conftest.err ||
 
6091
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6092
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6093
        break
 
6094
      fi
 
6095
    fi
 
6096
  done
 
6097
 
 
6098
  cd ..
 
6099
  rm -rf conftest.dir
 
6100
else
 
6101
  am_cv_CXX_dependencies_compiler_type=none
 
6102
fi
 
6103
 
 
6104
fi
 
6105
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6106
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6107
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6108
 
 
6109
 if
 
6110
  test "x$enable_dependency_tracking" != xno \
 
6111
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6112
  am__fastdepCXX_TRUE=
 
6113
  am__fastdepCXX_FALSE='#'
 
6114
else
 
6115
  am__fastdepCXX_TRUE='#'
 
6116
  am__fastdepCXX_FALSE=
 
6117
fi
 
6118
 
 
6119
 
 
6120
 
 
6121
 
 
6122
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6123
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6124
    (test "X$CXX" != "Xg++"))) ; then
 
6125
  ac_ext=cpp
 
6126
ac_cpp='$CXXCPP $CPPFLAGS'
 
6127
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6128
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6129
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6130
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6131
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
6132
if test -z "$CXXCPP"; then
 
6133
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6135
else
 
6136
      # Double quotes because CXXCPP needs to be expanded
 
6137
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6138
    do
 
6139
      ac_preproc_ok=false
 
6140
for ac_cxx_preproc_warn_flag in '' yes
 
6141
do
 
6142
  # Use a header file that comes with gcc, so configuring glibc
 
6143
  # with a fresh cross-compiler works.
 
6144
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6145
  # <limits.h> exists even on freestanding compilers.
 
6146
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6147
  # not just through cpp. "Syntax error" is here to catch this case.
 
6148
  cat >conftest.$ac_ext <<_ACEOF
 
6149
/* confdefs.h.  */
 
6150
_ACEOF
 
6151
cat confdefs.h >>conftest.$ac_ext
 
6152
cat >>conftest.$ac_ext <<_ACEOF
 
6153
/* end confdefs.h.  */
 
6154
#ifdef __STDC__
 
6155
# include <limits.h>
 
6156
#else
 
6157
# include <assert.h>
 
6158
#endif
 
6159
                     Syntax error
 
6160
_ACEOF
 
6161
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6162
case "(($ac_try" in
 
6163
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6164
  *) ac_try_echo=$ac_try;;
 
6165
esac
 
6166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6167
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6168
  ac_status=$?
 
6169
  grep -v '^ *+' conftest.er1 >conftest.err
 
6170
  rm -f conftest.er1
 
6171
  cat conftest.err >&5
 
6172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6173
  (exit $ac_status); } >/dev/null && {
 
6174
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6175
         test ! -s conftest.err
 
6176
       }; then
 
6177
  :
 
6178
else
 
6179
  echo "$as_me: failed program was:" >&5
 
6180
sed 's/^/| /' conftest.$ac_ext >&5
 
6181
 
 
6182
  # Broken: fails on valid input.
 
6183
continue
 
6184
fi
 
6185
 
 
6186
rm -f conftest.err conftest.$ac_ext
 
6187
 
 
6188
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6189
  # can be detected and how.
 
6190
  cat >conftest.$ac_ext <<_ACEOF
 
6191
/* confdefs.h.  */
 
6192
_ACEOF
 
6193
cat confdefs.h >>conftest.$ac_ext
 
6194
cat >>conftest.$ac_ext <<_ACEOF
 
6195
/* end confdefs.h.  */
 
6196
#include <ac_nonexistent.h>
 
6197
_ACEOF
 
6198
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6199
case "(($ac_try" in
 
6200
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6201
  *) ac_try_echo=$ac_try;;
 
6202
esac
 
6203
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6204
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6205
  ac_status=$?
 
6206
  grep -v '^ *+' conftest.er1 >conftest.err
 
6207
  rm -f conftest.er1
 
6208
  cat conftest.err >&5
 
6209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6210
  (exit $ac_status); } >/dev/null && {
 
6211
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6212
         test ! -s conftest.err
 
6213
       }; then
 
6214
  # Broken: success on invalid input.
 
6215
continue
 
6216
else
 
6217
  echo "$as_me: failed program was:" >&5
 
6218
sed 's/^/| /' conftest.$ac_ext >&5
 
6219
 
 
6220
  # Passes both tests.
 
6221
ac_preproc_ok=:
 
6222
break
 
6223
fi
 
6224
 
 
6225
rm -f conftest.err conftest.$ac_ext
 
6226
 
 
6227
done
 
6228
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6229
rm -f conftest.err conftest.$ac_ext
 
6230
if $ac_preproc_ok; then
 
6231
  break
 
6232
fi
 
6233
 
 
6234
    done
 
6235
    ac_cv_prog_CXXCPP=$CXXCPP
 
6236
 
 
6237
fi
 
6238
  CXXCPP=$ac_cv_prog_CXXCPP
 
6239
else
 
6240
  ac_cv_prog_CXXCPP=$CXXCPP
 
6241
fi
 
6242
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6243
echo "${ECHO_T}$CXXCPP" >&6; }
 
6244
ac_preproc_ok=false
 
6245
for ac_cxx_preproc_warn_flag in '' yes
 
6246
do
 
6247
  # Use a header file that comes with gcc, so configuring glibc
 
6248
  # with a fresh cross-compiler works.
 
6249
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6250
  # <limits.h> exists even on freestanding compilers.
 
6251
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6252
  # not just through cpp. "Syntax error" is here to catch this case.
 
6253
  cat >conftest.$ac_ext <<_ACEOF
 
6254
/* confdefs.h.  */
 
6255
_ACEOF
 
6256
cat confdefs.h >>conftest.$ac_ext
 
6257
cat >>conftest.$ac_ext <<_ACEOF
 
6258
/* end confdefs.h.  */
 
6259
#ifdef __STDC__
 
6260
# include <limits.h>
 
6261
#else
 
6262
# include <assert.h>
 
6263
#endif
 
6264
                     Syntax error
 
6265
_ACEOF
 
6266
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6267
case "(($ac_try" in
 
6268
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6269
  *) ac_try_echo=$ac_try;;
 
6270
esac
 
6271
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6272
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6273
  ac_status=$?
 
6274
  grep -v '^ *+' conftest.er1 >conftest.err
 
6275
  rm -f conftest.er1
 
6276
  cat conftest.err >&5
 
6277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6278
  (exit $ac_status); } >/dev/null && {
 
6279
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6280
         test ! -s conftest.err
 
6281
       }; then
 
6282
  :
 
6283
else
 
6284
  echo "$as_me: failed program was:" >&5
 
6285
sed 's/^/| /' conftest.$ac_ext >&5
 
6286
 
 
6287
  # Broken: fails on valid input.
 
6288
continue
 
6289
fi
 
6290
 
 
6291
rm -f conftest.err conftest.$ac_ext
 
6292
 
 
6293
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6294
  # can be detected and how.
 
6295
  cat >conftest.$ac_ext <<_ACEOF
 
6296
/* confdefs.h.  */
 
6297
_ACEOF
 
6298
cat confdefs.h >>conftest.$ac_ext
 
6299
cat >>conftest.$ac_ext <<_ACEOF
 
6300
/* end confdefs.h.  */
 
6301
#include <ac_nonexistent.h>
 
6302
_ACEOF
 
6303
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6304
case "(($ac_try" in
 
6305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6306
  *) ac_try_echo=$ac_try;;
 
6307
esac
 
6308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6309
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6310
  ac_status=$?
 
6311
  grep -v '^ *+' conftest.er1 >conftest.err
 
6312
  rm -f conftest.er1
 
6313
  cat conftest.err >&5
 
6314
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6315
  (exit $ac_status); } >/dev/null && {
 
6316
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6317
         test ! -s conftest.err
 
6318
       }; then
 
6319
  # Broken: success on invalid input.
 
6320
continue
 
6321
else
 
6322
  echo "$as_me: failed program was:" >&5
 
6323
sed 's/^/| /' conftest.$ac_ext >&5
 
6324
 
 
6325
  # Passes both tests.
 
6326
ac_preproc_ok=:
 
6327
break
 
6328
fi
 
6329
 
 
6330
rm -f conftest.err conftest.$ac_ext
 
6331
 
 
6332
done
 
6333
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6334
rm -f conftest.err conftest.$ac_ext
 
6335
if $ac_preproc_ok; then
 
6336
  :
 
6337
else
 
6338
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6339
See \`config.log' for more details." >&5
 
6340
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6341
See \`config.log' for more details." >&2;}
 
6342
   { (exit 1); exit 1; }; }
 
6343
fi
 
6344
 
 
6345
ac_ext=cpp
 
6346
ac_cpp='$CXXCPP $CPPFLAGS'
 
6347
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6348
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6349
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6350
 
 
6351
fi
 
6352
 
 
6353
 
 
6354
ac_ext=f
 
6355
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6356
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6357
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6358
if test -n "$ac_tool_prefix"; then
 
6359
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6360
  do
 
6361
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6362
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6363
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6364
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6365
if test "${ac_cv_prog_F77+set}" = set; then
 
6366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6367
else
 
6368
  if test -n "$F77"; then
 
6369
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6370
else
 
6371
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6372
for as_dir in $PATH
 
6373
do
 
6374
  IFS=$as_save_IFS
 
6375
  test -z "$as_dir" && as_dir=.
 
6376
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6377
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6378
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6379
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6380
    break 2
 
6381
  fi
 
6382
done
 
6383
done
 
6384
IFS=$as_save_IFS
 
6385
 
 
6386
fi
 
6387
fi
 
6388
F77=$ac_cv_prog_F77
 
6389
if test -n "$F77"; then
 
6390
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6391
echo "${ECHO_T}$F77" >&6; }
 
6392
else
 
6393
  { echo "$as_me:$LINENO: result: no" >&5
 
6394
echo "${ECHO_T}no" >&6; }
 
6395
fi
 
6396
 
 
6397
 
 
6398
    test -n "$F77" && break
 
6399
  done
 
6400
fi
 
6401
if test -z "$F77"; then
 
6402
  ac_ct_F77=$F77
 
6403
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6404
do
 
6405
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6406
set dummy $ac_prog; ac_word=$2
 
6407
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6408
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6409
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6410
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6411
else
 
6412
  if test -n "$ac_ct_F77"; then
 
6413
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6414
else
 
6415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6416
for as_dir in $PATH
 
6417
do
 
6418
  IFS=$as_save_IFS
 
6419
  test -z "$as_dir" && as_dir=.
 
6420
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6421
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6422
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6423
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6424
    break 2
 
6425
  fi
 
6426
done
 
6427
done
 
6428
IFS=$as_save_IFS
 
6429
 
 
6430
fi
 
6431
fi
 
6432
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6433
if test -n "$ac_ct_F77"; then
 
6434
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6435
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6436
else
 
6437
  { echo "$as_me:$LINENO: result: no" >&5
 
6438
echo "${ECHO_T}no" >&6; }
 
6439
fi
 
6440
 
 
6441
 
 
6442
  test -n "$ac_ct_F77" && break
 
6443
done
 
6444
 
 
6445
  if test "x$ac_ct_F77" = x; then
 
6446
    F77=""
 
6447
  else
 
6448
    case $cross_compiling:$ac_tool_warned in
 
6449
yes:)
 
6450
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6451
whose name does not start with the host triplet.  If you think this
 
6452
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6453
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6454
whose name does not start with the host triplet.  If you think this
 
6455
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6456
ac_tool_warned=yes ;;
 
6457
esac
 
6458
    F77=$ac_ct_F77
 
6459
  fi
 
6460
fi
 
6461
 
 
6462
 
 
6463
# Provide some information about the compiler.
 
6464
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6465
ac_compiler=`set X $ac_compile; echo $2`
 
6466
{ (ac_try="$ac_compiler --version >&5"
 
6467
case "(($ac_try" in
 
6468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6469
  *) ac_try_echo=$ac_try;;
 
6470
esac
 
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6472
  (eval "$ac_compiler --version >&5") 2>&5
 
6473
  ac_status=$?
 
6474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6475
  (exit $ac_status); }
 
6476
{ (ac_try="$ac_compiler -v >&5"
 
6477
case "(($ac_try" in
 
6478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6479
  *) ac_try_echo=$ac_try;;
 
6480
esac
 
6481
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6482
  (eval "$ac_compiler -v >&5") 2>&5
 
6483
  ac_status=$?
 
6484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6485
  (exit $ac_status); }
 
6486
{ (ac_try="$ac_compiler -V >&5"
 
6487
case "(($ac_try" in
 
6488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6489
  *) ac_try_echo=$ac_try;;
 
6490
esac
 
6491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6492
  (eval "$ac_compiler -V >&5") 2>&5
 
6493
  ac_status=$?
 
6494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6495
  (exit $ac_status); }
 
6496
rm -f a.out
 
6497
 
 
6498
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6499
# input file.  (Note that this only needs to work for GNU compilers.)
 
6500
ac_save_ext=$ac_ext
 
6501
ac_ext=F
 
6502
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6503
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6504
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6506
else
 
6507
  cat >conftest.$ac_ext <<_ACEOF
 
6508
      program main
 
6509
#ifndef __GNUC__
 
6510
       choke me
 
6511
#endif
 
6512
 
 
6513
      end
 
6514
_ACEOF
 
6515
rm -f conftest.$ac_objext
 
6516
if { (ac_try="$ac_compile"
 
6517
case "(($ac_try" in
 
6518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6519
  *) ac_try_echo=$ac_try;;
 
6520
esac
 
6521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6522
  (eval "$ac_compile") 2>conftest.er1
 
6523
  ac_status=$?
 
6524
  grep -v '^ *+' conftest.er1 >conftest.err
 
6525
  rm -f conftest.er1
 
6526
  cat conftest.err >&5
 
6527
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6528
  (exit $ac_status); } && {
 
6529
         test -z "$ac_f77_werror_flag" ||
 
6530
         test ! -s conftest.err
 
6531
       } && test -s conftest.$ac_objext; then
 
6532
  ac_compiler_gnu=yes
 
6533
else
 
6534
  echo "$as_me: failed program was:" >&5
 
6535
sed 's/^/| /' conftest.$ac_ext >&5
 
6536
 
 
6537
        ac_compiler_gnu=no
 
6538
fi
 
6539
 
 
6540
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6541
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6542
 
 
6543
fi
 
6544
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6545
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6546
ac_ext=$ac_save_ext
 
6547
ac_test_FFLAGS=${FFLAGS+set}
 
6548
ac_save_FFLAGS=$FFLAGS
 
6549
FFLAGS=
 
6550
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6551
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6552
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6554
else
 
6555
  FFLAGS=-g
 
6556
cat >conftest.$ac_ext <<_ACEOF
 
6557
      program main
 
6558
 
 
6559
      end
 
6560
_ACEOF
 
6561
rm -f conftest.$ac_objext
 
6562
if { (ac_try="$ac_compile"
 
6563
case "(($ac_try" in
 
6564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6565
  *) ac_try_echo=$ac_try;;
 
6566
esac
 
6567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6568
  (eval "$ac_compile") 2>conftest.er1
 
6569
  ac_status=$?
 
6570
  grep -v '^ *+' conftest.er1 >conftest.err
 
6571
  rm -f conftest.er1
 
6572
  cat conftest.err >&5
 
6573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6574
  (exit $ac_status); } && {
 
6575
         test -z "$ac_f77_werror_flag" ||
 
6576
         test ! -s conftest.err
 
6577
       } && test -s conftest.$ac_objext; then
 
6578
  ac_cv_prog_f77_g=yes
 
6579
else
 
6580
  echo "$as_me: failed program was:" >&5
 
6581
sed 's/^/| /' conftest.$ac_ext >&5
 
6582
 
 
6583
        ac_cv_prog_f77_g=no
 
6584
fi
 
6585
 
 
6586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6587
 
 
6588
fi
 
6589
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6590
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6591
if test "$ac_test_FFLAGS" = set; then
 
6592
  FFLAGS=$ac_save_FFLAGS
 
6593
elif test $ac_cv_prog_f77_g = yes; then
 
6594
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6595
    FFLAGS="-g -O2"
 
6596
  else
 
6597
    FFLAGS="-g"
 
6598
  fi
 
6599
else
 
6600
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6601
    FFLAGS="-O2"
 
6602
  else
 
6603
    FFLAGS=
 
6604
  fi
 
6605
fi
 
6606
 
 
6607
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6608
ac_ext=c
 
6609
ac_cpp='$CPP $CPPFLAGS'
 
6610
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6611
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6612
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6613
 
 
6614
 
 
6615
 
 
6616
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6617
# find the maximum length of command line arguments
 
6618
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6619
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6620
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6622
else
 
6623
    i=0
 
6624
  teststring="ABCD"
 
6625
 
 
6626
  case $build_os in
 
6627
  msdosdjgpp*)
 
6628
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6629
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6630
    # during glob expansion).  Even if it were fixed, the result of this
 
6631
    # check would be larger than it should be.
 
6632
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6633
    ;;
 
6634
 
 
6635
  gnu*)
 
6636
    # Under GNU Hurd, this test is not required because there is
 
6637
    # no limit to the length of command line arguments.
 
6638
    # Libtool will interpret -1 as no limit whatsoever
 
6639
    lt_cv_sys_max_cmd_len=-1;
 
6640
    ;;
 
6641
 
 
6642
  cygwin* | mingw*)
 
6643
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6644
    # about 5 minutes as the teststring grows exponentially.
 
6645
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6646
    # you end up with a "frozen" computer, even though with patience
 
6647
    # the test eventually succeeds (with a max line length of 256k).
 
6648
    # Instead, let's just punt: use the minimum linelength reported by
 
6649
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6650
    lt_cv_sys_max_cmd_len=8192;
 
6651
    ;;
 
6652
 
 
6653
  amigaos*)
 
6654
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6655
    # So we just punt and use a minimum line length of 8192.
 
6656
    lt_cv_sys_max_cmd_len=8192;
 
6657
    ;;
 
6658
 
 
6659
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6660
    # This has been around since 386BSD, at least.  Likely further.
 
6661
    if test -x /sbin/sysctl; then
 
6662
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6663
    elif test -x /usr/sbin/sysctl; then
 
6664
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6665
    else
 
6666
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6667
    fi
 
6668
    # And add a safety zone
 
6669
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6670
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6671
    ;;
 
6672
 
 
6673
  interix*)
 
6674
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6675
    lt_cv_sys_max_cmd_len=196608
 
6676
    ;;
 
6677
 
 
6678
  osf*)
 
6679
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6680
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6681
    # nice to cause kernel panics so lets avoid the loop below.
 
6682
    # First set a reasonable default.
 
6683
    lt_cv_sys_max_cmd_len=16384
 
6684
    #
 
6685
    if test -x /sbin/sysconfig; then
 
6686
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6687
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6688
      esac
 
6689
    fi
 
6690
    ;;
 
6691
  sco3.2v5*)
 
6692
    lt_cv_sys_max_cmd_len=102400
 
6693
    ;;
 
6694
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6695
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6696
    if test -n "$kargmax"; then
 
6697
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6698
    else
 
6699
      lt_cv_sys_max_cmd_len=32768
 
6700
    fi
 
6701
    ;;
 
6702
  *)
 
6703
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6704
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6705
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6706
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6707
    else
 
6708
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6709
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6710
               = "XX$teststring") >/dev/null 2>&1 &&
 
6711
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6712
              lt_cv_sys_max_cmd_len=$new_result &&
 
6713
              test $i != 17 # 1/2 MB should be enough
 
6714
      do
 
6715
        i=`expr $i + 1`
 
6716
        teststring=$teststring$teststring
 
6717
      done
 
6718
      teststring=
 
6719
      # Add a significant safety factor because C++ compilers can tack on massive
 
6720
      # amounts of additional arguments before passing them to the linker.
 
6721
      # It appears as though 1/2 is a usable value.
 
6722
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6723
    fi
 
6724
    ;;
 
6725
  esac
 
6726
 
 
6727
fi
 
6728
 
 
6729
if test -n $lt_cv_sys_max_cmd_len ; then
 
6730
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6731
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6732
else
 
6733
  { echo "$as_me:$LINENO: result: none" >&5
 
6734
echo "${ECHO_T}none" >&6; }
 
6735
fi
 
6736
 
 
6737
 
 
6738
 
 
6739
 
 
6740
 
 
6741
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6742
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6743
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6744
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6745
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6746
else
 
6747
 
 
6748
# These are sane defaults that work on at least a few old systems.
 
6749
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6750
 
 
6751
# Character class describing NM global symbol codes.
 
6752
symcode='[BCDEGRST]'
 
6753
 
 
6754
# Regexp to match symbols that can be accessed directly from C.
 
6755
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6756
 
 
6757
# Transform an extracted symbol line into a proper C declaration
 
6758
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6759
 
 
6760
# Transform an extracted symbol line into symbol name and symbol address
 
6761
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6762
 
 
6763
# Define system-specific variables.
 
6764
case $host_os in
 
6765
aix*)
 
6766
  symcode='[BCDT]'
 
6767
  ;;
 
6768
cygwin* | mingw* | pw32*)
 
6769
  symcode='[ABCDGISTW]'
 
6770
  ;;
 
6771
hpux*) # Its linker distinguishes data from code symbols
 
6772
  if test "$host_cpu" = ia64; then
 
6773
    symcode='[ABCDEGRST]'
 
6774
  fi
 
6775
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6776
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6777
  ;;
 
6778
linux* | k*bsd*-gnu)
 
6779
  if test "$host_cpu" = ia64; then
 
6780
    symcode='[ABCDGIRSTW]'
 
6781
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6782
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
6783
  fi
 
6784
  ;;
 
6785
irix* | nonstopux*)
 
6786
  symcode='[BCDEGRST]'
 
6787
  ;;
 
6788
osf*)
 
6789
  symcode='[BCDEGQRST]'
 
6790
  ;;
 
6791
solaris*)
 
6792
  symcode='[BDRT]'
 
6793
  ;;
 
6794
sco3.2v5*)
 
6795
  symcode='[DT]'
 
6796
  ;;
 
6797
sysv4.2uw2*)
 
6798
  symcode='[DT]'
 
6799
  ;;
 
6800
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6801
  symcode='[ABDT]'
 
6802
  ;;
 
6803
sysv4)
 
6804
  symcode='[DFNSTU]'
 
6805
  ;;
 
6806
esac
 
6807
 
 
6808
# Handle CRLF in mingw tool chain
 
6809
opt_cr=
 
6810
case $build_os in
 
6811
mingw*)
 
6812
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6813
  ;;
 
6814
esac
 
6815
 
 
6816
# If we're using GNU nm, then use its standard symbol codes.
 
6817
case `$NM -V 2>&1` in
 
6818
*GNU* | *'with BFD'*)
 
6819
  symcode='[ABCDGIRSTW]' ;;
 
6820
esac
 
6821
 
 
6822
# Try without a prefix undercore, then with it.
 
6823
for ac_symprfx in "" "_"; do
 
6824
 
 
6825
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6826
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6827
 
 
6828
  # Write the raw and C identifiers.
 
6829
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6830
 
 
6831
  # Check to see that the pipe works correctly.
 
6832
  pipe_works=no
 
6833
 
 
6834
  rm -f conftest*
 
6835
  cat > conftest.$ac_ext <<EOF
 
6836
#ifdef __cplusplus
 
6837
extern "C" {
 
6838
#endif
 
6839
char nm_test_var;
 
6840
void nm_test_func(){}
 
6841
#ifdef __cplusplus
 
6842
}
 
6843
#endif
 
6844
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6845
EOF
 
6846
 
 
6847
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6848
  (eval $ac_compile) 2>&5
 
6849
  ac_status=$?
 
6850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6851
  (exit $ac_status); }; then
 
6852
    # Now try to grab the symbols.
 
6853
    nlist=conftest.nm
 
6854
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6855
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6856
  ac_status=$?
 
6857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6858
  (exit $ac_status); } && test -s "$nlist"; then
 
6859
      # Try sorting and uniquifying the output.
 
6860
      if sort "$nlist" | uniq > "$nlist"T; then
 
6861
        mv -f "$nlist"T "$nlist"
 
6862
      else
 
6863
        rm -f "$nlist"T
 
6864
      fi
 
6865
 
 
6866
      # Make sure that we snagged all the symbols we need.
 
6867
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6868
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6869
          cat <<EOF > conftest.$ac_ext
 
6870
#ifdef __cplusplus
 
6871
extern "C" {
 
6872
#endif
 
6873
 
 
6874
EOF
 
6875
          # Now generate the symbol file.
 
6876
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6877
 
 
6878
          cat <<EOF >> conftest.$ac_ext
 
6879
#if defined (__STDC__) && __STDC__
 
6880
# define lt_ptr_t void *
 
6881
#else
 
6882
# define lt_ptr_t char *
 
6883
# define const
 
6884
#endif
 
6885
 
 
6886
/* The mapping between symbol names and symbols. */
 
6887
const struct {
 
6888
  const char *name;
 
6889
  lt_ptr_t address;
 
6890
}
 
6891
lt_preloaded_symbols[] =
 
6892
{
 
6893
EOF
 
6894
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6895
          cat <<\EOF >> conftest.$ac_ext
 
6896
  {0, (lt_ptr_t) 0}
 
6897
};
 
6898
 
 
6899
#ifdef __cplusplus
 
6900
}
 
6901
#endif
 
6902
EOF
 
6903
          # Now try linking the two files.
 
6904
          mv conftest.$ac_objext conftstm.$ac_objext
 
6905
          lt_save_LIBS="$LIBS"
 
6906
          lt_save_CFLAGS="$CFLAGS"
 
6907
          LIBS="conftstm.$ac_objext"
 
6908
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6909
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6910
  (eval $ac_link) 2>&5
 
6911
  ac_status=$?
 
6912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6913
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6914
            pipe_works=yes
 
6915
          fi
 
6916
          LIBS="$lt_save_LIBS"
 
6917
          CFLAGS="$lt_save_CFLAGS"
 
6918
        else
 
6919
          echo "cannot find nm_test_func in $nlist" >&5
 
6920
        fi
 
6921
      else
 
6922
        echo "cannot find nm_test_var in $nlist" >&5
 
6923
      fi
 
6924
    else
 
6925
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6926
    fi
 
6927
  else
 
6928
    echo "$progname: failed program was:" >&5
 
6929
    cat conftest.$ac_ext >&5
 
6930
  fi
 
6931
  rm -rf conftest* conftst*
 
6932
 
 
6933
  # Do not use the global_symbol_pipe unless it works.
 
6934
  if test "$pipe_works" = yes; then
 
6935
    break
 
6936
  else
 
6937
    lt_cv_sys_global_symbol_pipe=
 
6938
  fi
 
6939
done
 
6940
 
 
6941
fi
 
6942
 
 
6943
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6944
  lt_cv_sys_global_symbol_to_cdecl=
 
6945
fi
 
6946
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6947
  { echo "$as_me:$LINENO: result: failed" >&5
 
6948
echo "${ECHO_T}failed" >&6; }
 
6949
else
 
6950
  { echo "$as_me:$LINENO: result: ok" >&5
 
6951
echo "${ECHO_T}ok" >&6; }
 
6952
fi
 
6953
 
 
6954
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6955
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6956
if test "${lt_cv_objdir+set}" = set; then
 
6957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6958
else
 
6959
  rm -f .libs 2>/dev/null
 
6960
mkdir .libs 2>/dev/null
 
6961
if test -d .libs; then
 
6962
  lt_cv_objdir=.libs
 
6963
else
 
6964
  # MS-DOS does not allow filenames that begin with a dot.
 
6965
  lt_cv_objdir=_libs
 
6966
fi
 
6967
rmdir .libs 2>/dev/null
 
6968
fi
 
6969
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6970
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6971
objdir=$lt_cv_objdir
 
6972
 
 
6973
 
 
6974
 
 
6975
 
 
6976
 
 
6977
case $host_os in
 
6978
aix3*)
 
6979
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6980
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6981
  # vanish in a puff of smoke.
 
6982
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6983
    COLLECT_NAMES=
 
6984
    export COLLECT_NAMES
 
6985
  fi
 
6986
  ;;
 
6987
esac
 
6988
 
 
6989
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6990
# metacharacters that are still active within double-quoted strings.
 
6991
Xsed='sed -e 1s/^X//'
 
6992
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6993
 
 
6994
# Same as above, but do not quote variable references.
 
6995
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6996
 
 
6997
# Sed substitution to delay expansion of an escaped shell variable in a
 
6998
# double_quote_subst'ed string.
 
6999
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7000
 
 
7001
# Sed substitution to avoid accidental globbing in evaled expressions
 
7002
no_glob_subst='s/\*/\\\*/g'
 
7003
 
 
7004
# Constants:
 
7005
rm="rm -f"
 
7006
 
 
7007
# Global variables:
 
7008
default_ofile=libtool
 
7009
can_build_shared=yes
 
7010
 
 
7011
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7012
# which needs '.lib').
 
7013
libext=a
 
7014
ltmain="$ac_aux_dir/ltmain.sh"
 
7015
ofile="$default_ofile"
 
7016
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7017
 
 
7018
if test -n "$ac_tool_prefix"; then
 
7019
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7020
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7021
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7022
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7023
if test "${ac_cv_prog_AR+set}" = set; then
 
7024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7025
else
 
7026
  if test -n "$AR"; then
 
7027
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7028
else
 
7029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7030
for as_dir in $PATH
 
7031
do
 
7032
  IFS=$as_save_IFS
 
7033
  test -z "$as_dir" && as_dir=.
 
7034
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7035
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7036
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7037
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7038
    break 2
 
7039
  fi
 
7040
done
 
7041
done
 
7042
IFS=$as_save_IFS
 
7043
 
 
7044
fi
 
7045
fi
 
7046
AR=$ac_cv_prog_AR
 
7047
if test -n "$AR"; then
 
7048
  { echo "$as_me:$LINENO: result: $AR" >&5
 
7049
echo "${ECHO_T}$AR" >&6; }
 
7050
else
 
7051
  { echo "$as_me:$LINENO: result: no" >&5
 
7052
echo "${ECHO_T}no" >&6; }
 
7053
fi
 
7054
 
 
7055
 
 
7056
fi
 
7057
if test -z "$ac_cv_prog_AR"; then
 
7058
  ac_ct_AR=$AR
 
7059
  # Extract the first word of "ar", so it can be a program name with args.
 
7060
set dummy ar; ac_word=$2
 
7061
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7062
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7063
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7065
else
 
7066
  if test -n "$ac_ct_AR"; then
 
7067
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7068
else
 
7069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7070
for as_dir in $PATH
 
7071
do
 
7072
  IFS=$as_save_IFS
 
7073
  test -z "$as_dir" && as_dir=.
 
7074
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7075
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7076
    ac_cv_prog_ac_ct_AR="ar"
 
7077
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7078
    break 2
 
7079
  fi
 
7080
done
 
7081
done
 
7082
IFS=$as_save_IFS
 
7083
 
 
7084
fi
 
7085
fi
 
7086
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7087
if test -n "$ac_ct_AR"; then
 
7088
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7089
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
7090
else
 
7091
  { echo "$as_me:$LINENO: result: no" >&5
 
7092
echo "${ECHO_T}no" >&6; }
 
7093
fi
 
7094
 
 
7095
  if test "x$ac_ct_AR" = x; then
 
7096
    AR="false"
 
7097
  else
 
7098
    case $cross_compiling:$ac_tool_warned in
 
7099
yes:)
 
7100
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7101
whose name does not start with the host triplet.  If you think this
 
7102
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7103
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7104
whose name does not start with the host triplet.  If you think this
 
7105
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7106
ac_tool_warned=yes ;;
 
7107
esac
 
7108
    AR=$ac_ct_AR
 
7109
  fi
 
7110
else
 
7111
  AR="$ac_cv_prog_AR"
 
7112
fi
 
7113
 
 
7114
if test -n "$ac_tool_prefix"; then
 
7115
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7116
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7117
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7118
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7119
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7120
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7121
else
 
7122
  if test -n "$RANLIB"; then
 
7123
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7124
else
 
7125
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7126
for as_dir in $PATH
 
7127
do
 
7128
  IFS=$as_save_IFS
 
7129
  test -z "$as_dir" && as_dir=.
 
7130
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7131
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7132
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7133
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7134
    break 2
 
7135
  fi
 
7136
done
 
7137
done
 
7138
IFS=$as_save_IFS
 
7139
 
 
7140
fi
 
7141
fi
 
7142
RANLIB=$ac_cv_prog_RANLIB
 
7143
if test -n "$RANLIB"; then
 
7144
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7145
echo "${ECHO_T}$RANLIB" >&6; }
 
7146
else
 
7147
  { echo "$as_me:$LINENO: result: no" >&5
 
7148
echo "${ECHO_T}no" >&6; }
 
7149
fi
 
7150
 
 
7151
 
 
7152
fi
 
7153
if test -z "$ac_cv_prog_RANLIB"; then
 
7154
  ac_ct_RANLIB=$RANLIB
 
7155
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7156
set dummy ranlib; ac_word=$2
 
7157
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7158
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7159
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7160
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7161
else
 
7162
  if test -n "$ac_ct_RANLIB"; then
 
7163
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7164
else
 
7165
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7166
for as_dir in $PATH
 
7167
do
 
7168
  IFS=$as_save_IFS
 
7169
  test -z "$as_dir" && as_dir=.
 
7170
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7171
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7172
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7173
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7174
    break 2
 
7175
  fi
 
7176
done
 
7177
done
 
7178
IFS=$as_save_IFS
 
7179
 
 
7180
fi
 
7181
fi
 
7182
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7183
if test -n "$ac_ct_RANLIB"; then
 
7184
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7185
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7186
else
 
7187
  { echo "$as_me:$LINENO: result: no" >&5
 
7188
echo "${ECHO_T}no" >&6; }
 
7189
fi
 
7190
 
 
7191
  if test "x$ac_ct_RANLIB" = x; then
 
7192
    RANLIB=":"
 
7193
  else
 
7194
    case $cross_compiling:$ac_tool_warned in
 
7195
yes:)
 
7196
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7197
whose name does not start with the host triplet.  If you think this
 
7198
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7199
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7200
whose name does not start with the host triplet.  If you think this
 
7201
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7202
ac_tool_warned=yes ;;
 
7203
esac
 
7204
    RANLIB=$ac_ct_RANLIB
 
7205
  fi
 
7206
else
 
7207
  RANLIB="$ac_cv_prog_RANLIB"
 
7208
fi
 
7209
 
 
7210
if test -n "$ac_tool_prefix"; then
 
7211
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7212
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7213
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7214
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7215
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7217
else
 
7218
  if test -n "$STRIP"; then
 
7219
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7220
else
 
7221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7222
for as_dir in $PATH
 
7223
do
 
7224
  IFS=$as_save_IFS
 
7225
  test -z "$as_dir" && as_dir=.
 
7226
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7227
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7228
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7229
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7230
    break 2
 
7231
  fi
 
7232
done
 
7233
done
 
7234
IFS=$as_save_IFS
 
7235
 
 
7236
fi
 
7237
fi
 
7238
STRIP=$ac_cv_prog_STRIP
 
7239
if test -n "$STRIP"; then
 
7240
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7241
echo "${ECHO_T}$STRIP" >&6; }
 
7242
else
 
7243
  { echo "$as_me:$LINENO: result: no" >&5
 
7244
echo "${ECHO_T}no" >&6; }
 
7245
fi
 
7246
 
 
7247
 
 
7248
fi
 
7249
if test -z "$ac_cv_prog_STRIP"; then
 
7250
  ac_ct_STRIP=$STRIP
 
7251
  # Extract the first word of "strip", so it can be a program name with args.
 
7252
set dummy strip; ac_word=$2
 
7253
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7254
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7255
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7257
else
 
7258
  if test -n "$ac_ct_STRIP"; then
 
7259
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7260
else
 
7261
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7262
for as_dir in $PATH
 
7263
do
 
7264
  IFS=$as_save_IFS
 
7265
  test -z "$as_dir" && as_dir=.
 
7266
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7267
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7268
    ac_cv_prog_ac_ct_STRIP="strip"
 
7269
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7270
    break 2
 
7271
  fi
 
7272
done
 
7273
done
 
7274
IFS=$as_save_IFS
 
7275
 
 
7276
fi
 
7277
fi
 
7278
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7279
if test -n "$ac_ct_STRIP"; then
 
7280
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7281
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7282
else
 
7283
  { echo "$as_me:$LINENO: result: no" >&5
 
7284
echo "${ECHO_T}no" >&6; }
 
7285
fi
 
7286
 
 
7287
  if test "x$ac_ct_STRIP" = x; then
 
7288
    STRIP=":"
 
7289
  else
 
7290
    case $cross_compiling:$ac_tool_warned in
 
7291
yes:)
 
7292
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7293
whose name does not start with the host triplet.  If you think this
 
7294
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7295
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7296
whose name does not start with the host triplet.  If you think this
 
7297
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7298
ac_tool_warned=yes ;;
 
7299
esac
 
7300
    STRIP=$ac_ct_STRIP
 
7301
  fi
 
7302
else
 
7303
  STRIP="$ac_cv_prog_STRIP"
 
7304
fi
 
7305
 
 
7306
 
 
7307
old_CC="$CC"
 
7308
old_CFLAGS="$CFLAGS"
 
7309
 
 
7310
# Set sane defaults for various variables
 
7311
test -z "$AR" && AR=ar
 
7312
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7313
test -z "$AS" && AS=as
 
7314
test -z "$CC" && CC=cc
 
7315
test -z "$LTCC" && LTCC=$CC
 
7316
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7317
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7318
test -z "$LD" && LD=ld
 
7319
test -z "$LN_S" && LN_S="ln -s"
 
7320
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7321
test -z "$NM" && NM=nm
 
7322
test -z "$SED" && SED=sed
 
7323
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7324
test -z "$RANLIB" && RANLIB=:
 
7325
test -z "$STRIP" && STRIP=:
 
7326
test -z "$ac_objext" && ac_objext=o
 
7327
 
 
7328
# Determine commands to create old-style static archives.
 
7329
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7330
old_postinstall_cmds='chmod 644 $oldlib'
 
7331
old_postuninstall_cmds=
 
7332
 
 
7333
if test -n "$RANLIB"; then
 
7334
  case $host_os in
 
7335
  openbsd*)
 
7336
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7337
    ;;
 
7338
  *)
 
7339
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7340
    ;;
 
7341
  esac
 
7342
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7343
fi
 
7344
 
 
7345
for cc_temp in $compiler""; do
 
7346
  case $cc_temp in
 
7347
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7348
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7349
    \-*) ;;
 
7350
    *) break;;
 
7351
  esac
 
7352
done
 
7353
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7354
 
 
7355
 
 
7356
# Only perform the check for file, if the check method requires it
 
7357
case $deplibs_check_method in
 
7358
file_magic*)
 
7359
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7360
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7361
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7362
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7364
else
 
7365
  case $MAGIC_CMD in
 
7366
[\\/*] |  ?:[\\/]*)
 
7367
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7368
  ;;
 
7369
*)
 
7370
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7371
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7372
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7373
  for ac_dir in $ac_dummy; do
 
7374
    IFS="$lt_save_ifs"
 
7375
    test -z "$ac_dir" && ac_dir=.
 
7376
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7377
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7378
      if test -n "$file_magic_test_file"; then
 
7379
        case $deplibs_check_method in
 
7380
        "file_magic "*)
 
7381
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7382
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7383
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7384
            $EGREP "$file_magic_regex" > /dev/null; then
 
7385
            :
 
7386
          else
 
7387
            cat <<EOF 1>&2
 
7388
 
 
7389
*** Warning: the command libtool uses to detect shared libraries,
 
7390
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7391
*** The result is that libtool may fail to recognize shared libraries
 
7392
*** as such.  This will affect the creation of libtool libraries that
 
7393
*** depend on shared libraries, but programs linked with such libtool
 
7394
*** libraries will work regardless of this problem.  Nevertheless, you
 
7395
*** may want to report the problem to your system manager and/or to
 
7396
*** bug-libtool@gnu.org
 
7397
 
 
7398
EOF
 
7399
          fi ;;
 
7400
        esac
 
7401
      fi
 
7402
      break
 
7403
    fi
 
7404
  done
 
7405
  IFS="$lt_save_ifs"
 
7406
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7407
  ;;
 
7408
esac
 
7409
fi
 
7410
 
 
7411
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7412
if test -n "$MAGIC_CMD"; then
 
7413
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7414
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7415
else
 
7416
  { echo "$as_me:$LINENO: result: no" >&5
 
7417
echo "${ECHO_T}no" >&6; }
 
7418
fi
 
7419
 
 
7420
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7421
  if test -n "$ac_tool_prefix"; then
 
7422
    { echo "$as_me:$LINENO: checking for file" >&5
 
7423
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7424
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7426
else
 
7427
  case $MAGIC_CMD in
 
7428
[\\/*] |  ?:[\\/]*)
 
7429
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7430
  ;;
 
7431
*)
 
7432
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7433
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7434
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7435
  for ac_dir in $ac_dummy; do
 
7436
    IFS="$lt_save_ifs"
 
7437
    test -z "$ac_dir" && ac_dir=.
 
7438
    if test -f $ac_dir/file; then
 
7439
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7440
      if test -n "$file_magic_test_file"; then
 
7441
        case $deplibs_check_method in
 
7442
        "file_magic "*)
 
7443
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7444
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7445
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7446
            $EGREP "$file_magic_regex" > /dev/null; then
 
7447
            :
 
7448
          else
 
7449
            cat <<EOF 1>&2
 
7450
 
 
7451
*** Warning: the command libtool uses to detect shared libraries,
 
7452
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7453
*** The result is that libtool may fail to recognize shared libraries
 
7454
*** as such.  This will affect the creation of libtool libraries that
 
7455
*** depend on shared libraries, but programs linked with such libtool
 
7456
*** libraries will work regardless of this problem.  Nevertheless, you
 
7457
*** may want to report the problem to your system manager and/or to
 
7458
*** bug-libtool@gnu.org
 
7459
 
 
7460
EOF
 
7461
          fi ;;
 
7462
        esac
 
7463
      fi
 
7464
      break
 
7465
    fi
 
7466
  done
 
7467
  IFS="$lt_save_ifs"
 
7468
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7469
  ;;
 
7470
esac
 
7471
fi
 
7472
 
 
7473
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7474
if test -n "$MAGIC_CMD"; then
 
7475
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7476
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7477
else
 
7478
  { echo "$as_me:$LINENO: result: no" >&5
 
7479
echo "${ECHO_T}no" >&6; }
 
7480
fi
 
7481
 
 
7482
  else
 
7483
    MAGIC_CMD=:
 
7484
  fi
 
7485
fi
 
7486
 
 
7487
  fi
 
7488
  ;;
 
7489
esac
 
7490
 
 
7491
 
 
7492
  case $host_os in
 
7493
    rhapsody* | darwin*)
 
7494
    if test -n "$ac_tool_prefix"; then
 
7495
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7496
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7497
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7499
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7501
else
 
7502
  if test -n "$DSYMUTIL"; then
 
7503
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7504
else
 
7505
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7506
for as_dir in $PATH
 
7507
do
 
7508
  IFS=$as_save_IFS
 
7509
  test -z "$as_dir" && as_dir=.
 
7510
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7511
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7512
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7514
    break 2
 
7515
  fi
 
7516
done
 
7517
done
 
7518
IFS=$as_save_IFS
 
7519
 
 
7520
fi
 
7521
fi
 
7522
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7523
if test -n "$DSYMUTIL"; then
 
7524
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7525
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7526
else
 
7527
  { echo "$as_me:$LINENO: result: no" >&5
 
7528
echo "${ECHO_T}no" >&6; }
 
7529
fi
 
7530
 
 
7531
 
 
7532
fi
 
7533
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7534
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7535
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7536
set dummy dsymutil; ac_word=$2
 
7537
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7538
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7539
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7540
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7541
else
 
7542
  if test -n "$ac_ct_DSYMUTIL"; then
 
7543
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7544
else
 
7545
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7546
for as_dir in $PATH
 
7547
do
 
7548
  IFS=$as_save_IFS
 
7549
  test -z "$as_dir" && as_dir=.
 
7550
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7551
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7552
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7553
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7554
    break 2
 
7555
  fi
 
7556
done
 
7557
done
 
7558
IFS=$as_save_IFS
 
7559
 
 
7560
fi
 
7561
fi
 
7562
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7563
if test -n "$ac_ct_DSYMUTIL"; then
 
7564
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7565
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7566
else
 
7567
  { echo "$as_me:$LINENO: result: no" >&5
 
7568
echo "${ECHO_T}no" >&6; }
 
7569
fi
 
7570
 
 
7571
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7572
    DSYMUTIL=":"
 
7573
  else
 
7574
    case $cross_compiling:$ac_tool_warned in
 
7575
yes:)
 
7576
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7577
whose name does not start with the host triplet.  If you think this
 
7578
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7579
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7580
whose name does not start with the host triplet.  If you think this
 
7581
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7582
ac_tool_warned=yes ;;
 
7583
esac
 
7584
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7585
  fi
 
7586
else
 
7587
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7588
fi
 
7589
 
 
7590
    if test -n "$ac_tool_prefix"; then
 
7591
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7592
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7595
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7597
else
 
7598
  if test -n "$NMEDIT"; then
 
7599
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7600
else
 
7601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7602
for as_dir in $PATH
 
7603
do
 
7604
  IFS=$as_save_IFS
 
7605
  test -z "$as_dir" && as_dir=.
 
7606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7608
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7609
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7610
    break 2
 
7611
  fi
 
7612
done
 
7613
done
 
7614
IFS=$as_save_IFS
 
7615
 
 
7616
fi
 
7617
fi
 
7618
NMEDIT=$ac_cv_prog_NMEDIT
 
7619
if test -n "$NMEDIT"; then
 
7620
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7621
echo "${ECHO_T}$NMEDIT" >&6; }
 
7622
else
 
7623
  { echo "$as_me:$LINENO: result: no" >&5
 
7624
echo "${ECHO_T}no" >&6; }
 
7625
fi
 
7626
 
 
7627
 
 
7628
fi
 
7629
if test -z "$ac_cv_prog_NMEDIT"; then
 
7630
  ac_ct_NMEDIT=$NMEDIT
 
7631
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7632
set dummy nmedit; ac_word=$2
 
7633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7635
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7637
else
 
7638
  if test -n "$ac_ct_NMEDIT"; then
 
7639
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7640
else
 
7641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7642
for as_dir in $PATH
 
7643
do
 
7644
  IFS=$as_save_IFS
 
7645
  test -z "$as_dir" && as_dir=.
 
7646
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7648
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7649
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7650
    break 2
 
7651
  fi
 
7652
done
 
7653
done
 
7654
IFS=$as_save_IFS
 
7655
 
 
7656
fi
 
7657
fi
 
7658
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7659
if test -n "$ac_ct_NMEDIT"; then
 
7660
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7661
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7662
else
 
7663
  { echo "$as_me:$LINENO: result: no" >&5
 
7664
echo "${ECHO_T}no" >&6; }
 
7665
fi
 
7666
 
 
7667
  if test "x$ac_ct_NMEDIT" = x; then
 
7668
    NMEDIT=":"
 
7669
  else
 
7670
    case $cross_compiling:$ac_tool_warned in
 
7671
yes:)
 
7672
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7673
whose name does not start with the host triplet.  If you think this
 
7674
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7675
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7676
whose name does not start with the host triplet.  If you think this
 
7677
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7678
ac_tool_warned=yes ;;
 
7679
esac
 
7680
    NMEDIT=$ac_ct_NMEDIT
 
7681
  fi
 
7682
else
 
7683
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7684
fi
 
7685
 
 
7686
 
 
7687
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7688
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7689
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7691
else
 
7692
  lt_cv_apple_cc_single_mod=no
 
7693
      if test -z "${LT_MULTI_MODULE}"; then
 
7694
   # By default we will add the -single_module flag. You can override
 
7695
   # by either setting the environment variable LT_MULTI_MODULE
 
7696
   # non-empty at configure time, or by adding -multi_module to the
 
7697
   # link flags.
 
7698
   echo "int foo(void){return 1;}" > conftest.c
 
7699
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7700
     -dynamiclib ${wl}-single_module conftest.c
 
7701
   if test -f libconftest.dylib; then
 
7702
     lt_cv_apple_cc_single_mod=yes
 
7703
     rm -rf libconftest.dylib*
 
7704
   fi
 
7705
   rm conftest.c
 
7706
      fi
 
7707
fi
 
7708
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7709
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7710
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7711
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7712
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7714
else
 
7715
  lt_cv_ld_exported_symbols_list=no
 
7716
      save_LDFLAGS=$LDFLAGS
 
7717
      echo "_main" > conftest.sym
 
7718
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7719
      cat >conftest.$ac_ext <<_ACEOF
 
7720
/* confdefs.h.  */
 
7721
_ACEOF
 
7722
cat confdefs.h >>conftest.$ac_ext
 
7723
cat >>conftest.$ac_ext <<_ACEOF
 
7724
/* end confdefs.h.  */
 
7725
 
 
7726
int
 
7727
main ()
 
7728
{
 
7729
 
 
7730
  ;
 
7731
  return 0;
 
7732
}
 
7733
_ACEOF
 
7734
rm -f conftest.$ac_objext conftest$ac_exeext
 
7735
if { (ac_try="$ac_link"
 
7736
case "(($ac_try" in
 
7737
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7738
  *) ac_try_echo=$ac_try;;
 
7739
esac
 
7740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7741
  (eval "$ac_link") 2>conftest.er1
 
7742
  ac_status=$?
 
7743
  grep -v '^ *+' conftest.er1 >conftest.err
 
7744
  rm -f conftest.er1
 
7745
  cat conftest.err >&5
 
7746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7747
  (exit $ac_status); } && {
 
7748
         test -z "$ac_c_werror_flag" ||
 
7749
         test ! -s conftest.err
 
7750
       } && test -s conftest$ac_exeext &&
 
7751
       $as_test_x conftest$ac_exeext; then
 
7752
  lt_cv_ld_exported_symbols_list=yes
 
7753
else
 
7754
  echo "$as_me: failed program was:" >&5
 
7755
sed 's/^/| /' conftest.$ac_ext >&5
 
7756
 
 
7757
        lt_cv_ld_exported_symbols_list=no
 
7758
fi
 
7759
 
 
7760
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7761
      conftest$ac_exeext conftest.$ac_ext
 
7762
   LDFLAGS="$save_LDFLAGS"
 
7763
 
 
7764
fi
 
7765
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7766
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7767
    case $host_os in
 
7768
    rhapsody* | darwin1.[0123])
 
7769
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7770
    darwin1.*)
 
7771
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7772
    darwin*)
 
7773
      # if running on 10.5 or later, the deployment target defaults
 
7774
      # to the OS version, if on x86, and 10.4, the deployment
 
7775
      # target defaults to 10.4. Don't you love it?
 
7776
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7777
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7778
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7779
   10.[012]*)
 
7780
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7781
   10.*)
 
7782
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7783
      esac
 
7784
    ;;
 
7785
  esac
 
7786
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7787
      _lt_dar_single_mod='$single_module'
 
7788
    fi
 
7789
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7790
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7791
    else
 
7792
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7793
    fi
 
7794
    if test "$DSYMUTIL" != ":"; then
 
7795
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7796
    else
 
7797
      _lt_dsymutil=
 
7798
    fi
 
7799
    ;;
 
7800
  esac
 
7801
 
 
7802
 
 
7803
enable_dlopen=no
 
7804
enable_win32_dll=no
 
7805
 
 
7806
# Check whether --enable-libtool-lock was given.
 
7807
if test "${enable_libtool_lock+set}" = set; then
 
7808
  enableval=$enable_libtool_lock;
 
7809
fi
 
7810
 
 
7811
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7812
 
 
7813
 
 
7814
# Check whether --with-pic was given.
 
7815
if test "${with_pic+set}" = set; then
 
7816
  withval=$with_pic; pic_mode="$withval"
 
7817
else
 
7818
  pic_mode=default
 
7819
fi
 
7820
 
 
7821
test -z "$pic_mode" && pic_mode=default
 
7822
 
 
7823
# Use C for the default configuration in the libtool script
 
7824
tagname=
 
7825
lt_save_CC="$CC"
 
7826
ac_ext=c
 
7827
ac_cpp='$CPP $CPPFLAGS'
 
7828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7831
 
 
7832
 
 
7833
# Source file extension for C test sources.
 
7834
ac_ext=c
 
7835
 
 
7836
# Object file extension for compiled C test sources.
 
7837
objext=o
 
7838
objext=$objext
 
7839
 
 
7840
# Code to be used in simple compile tests
 
7841
lt_simple_compile_test_code="int some_variable = 0;"
 
7842
 
 
7843
# Code to be used in simple link tests
 
7844
lt_simple_link_test_code='int main(){return(0);}'
 
7845
 
 
7846
 
 
7847
# If no C compiler was specified, use CC.
 
7848
LTCC=${LTCC-"$CC"}
 
7849
 
 
7850
# If no C compiler flags were specified, use CFLAGS.
 
7851
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7852
 
 
7853
# Allow CC to be a program name with arguments.
 
7854
compiler=$CC
 
7855
 
 
7856
 
 
7857
# save warnings/boilerplate of simple test code
 
7858
ac_outfile=conftest.$ac_objext
 
7859
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7860
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7861
_lt_compiler_boilerplate=`cat conftest.err`
 
7862
$rm conftest*
 
7863
 
 
7864
ac_outfile=conftest.$ac_objext
 
7865
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7866
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7867
_lt_linker_boilerplate=`cat conftest.err`
 
7868
$rm -r conftest*
 
7869
 
 
7870
 
 
7871
 
 
7872
lt_prog_compiler_no_builtin_flag=
 
7873
 
 
7874
if test "$GCC" = yes; then
 
7875
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7876
 
 
7877
 
 
7878
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7879
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7880
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7882
else
 
7883
  lt_cv_prog_compiler_rtti_exceptions=no
 
7884
  ac_outfile=conftest.$ac_objext
 
7885
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7886
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7887
   # Insert the option either (1) after the last *FLAGS variable, or
 
7888
   # (2) before a word containing "conftest.", or (3) at the end.
 
7889
   # Note that $ac_compile itself does not contain backslashes and begins
 
7890
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7891
   # The option is referenced via a variable to avoid confusing sed.
 
7892
   lt_compile=`echo "$ac_compile" | $SED \
 
7893
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7894
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7895
   -e 's:$: $lt_compiler_flag:'`
 
7896
   (eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
 
7897
   (eval "$lt_compile" 2>conftest.err)
 
7898
   ac_status=$?
 
7899
   cat conftest.err >&5
 
7900
   echo "$as_me:7900: \$? = $ac_status" >&5
 
7901
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7902
     # The compiler can only warn and ignore the option if not recognized
 
7903
     # So say no if there are warnings other than the usual output.
 
7904
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7905
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7906
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7907
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7908
     fi
 
7909
   fi
 
7910
   $rm conftest*
 
7911
 
 
7912
fi
 
7913
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7914
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7915
 
 
7916
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7917
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7918
else
 
7919
    :
 
7920
fi
 
7921
 
 
7922
fi
 
7923
 
 
7924
lt_prog_compiler_wl=
 
7925
lt_prog_compiler_pic=
 
7926
lt_prog_compiler_static=
 
7927
 
 
7928
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7929
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7930
 
 
7931
  if test "$GCC" = yes; then
 
7932
    lt_prog_compiler_wl='-Wl,'
 
7933
    lt_prog_compiler_static='-static'
 
7934
 
 
7935
    case $host_os in
 
7936
      aix*)
 
7937
      # All AIX code is PIC.
 
7938
      if test "$host_cpu" = ia64; then
 
7939
        # AIX 5 now supports IA64 processor
 
7940
        lt_prog_compiler_static='-Bstatic'
 
7941
      fi
 
7942
      ;;
 
7943
 
 
7944
    amigaos*)
 
7945
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7946
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7947
      # like `-m68040'.
 
7948
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7949
      ;;
 
7950
 
 
7951
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7952
      # PIC is the default for these OSes.
 
7953
      ;;
 
7954
 
 
7955
    mingw* | cygwin* | pw32* | os2*)
 
7956
      # This hack is so that the source file can tell whether it is being
 
7957
      # built for inclusion in a dll (and should export symbols for example).
 
7958
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7959
      # (--disable-auto-import) libraries
 
7960
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7961
      ;;
 
7962
 
 
7963
    darwin* | rhapsody*)
 
7964
      # PIC is the default on this platform
 
7965
      # Common symbols not allowed in MH_DYLIB files
 
7966
      lt_prog_compiler_pic='-fno-common'
 
7967
      ;;
 
7968
 
 
7969
    interix[3-9]*)
 
7970
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7971
      # Instead, we relocate shared libraries at runtime.
 
7972
      ;;
 
7973
 
 
7974
    msdosdjgpp*)
 
7975
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7976
      # on systems that don't support them.
 
7977
      lt_prog_compiler_can_build_shared=no
 
7978
      enable_shared=no
 
7979
      ;;
 
7980
 
 
7981
    sysv4*MP*)
 
7982
      if test -d /usr/nec; then
 
7983
        lt_prog_compiler_pic=-Kconform_pic
 
7984
      fi
 
7985
      ;;
 
7986
 
 
7987
    hpux*)
 
7988
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7989
      # not for PA HP-UX.
 
7990
      case $host_cpu in
 
7991
      hppa*64*|ia64*)
 
7992
        # +Z the default
 
7993
        ;;
 
7994
      *)
 
7995
        lt_prog_compiler_pic='-fPIC'
 
7996
        ;;
 
7997
      esac
 
7998
      ;;
 
7999
 
 
8000
    *)
 
8001
      lt_prog_compiler_pic='-fPIC'
 
8002
      ;;
 
8003
    esac
 
8004
  else
 
8005
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8006
    case $host_os in
 
8007
    aix*)
 
8008
      lt_prog_compiler_wl='-Wl,'
 
8009
      if test "$host_cpu" = ia64; then
 
8010
        # AIX 5 now supports IA64 processor
 
8011
        lt_prog_compiler_static='-Bstatic'
 
8012
      else
 
8013
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8014
      fi
 
8015
      ;;
 
8016
      darwin*)
 
8017
        # PIC is the default on this platform
 
8018
        # Common symbols not allowed in MH_DYLIB files
 
8019
       case $cc_basename in
 
8020
         xlc*)
 
8021
         lt_prog_compiler_pic='-qnocommon'
 
8022
         lt_prog_compiler_wl='-Wl,'
 
8023
         ;;
 
8024
       esac
 
8025
       ;;
 
8026
 
 
8027
    mingw* | cygwin* | pw32* | os2*)
 
8028
      # This hack is so that the source file can tell whether it is being
 
8029
      # built for inclusion in a dll (and should export symbols for example).
 
8030
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8031
      ;;
 
8032
 
 
8033
    hpux9* | hpux10* | hpux11*)
 
8034
      lt_prog_compiler_wl='-Wl,'
 
8035
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8036
      # not for PA HP-UX.
 
8037
      case $host_cpu in
 
8038
      hppa*64*|ia64*)
 
8039
        # +Z the default
 
8040
        ;;
 
8041
      *)
 
8042
        lt_prog_compiler_pic='+Z'
 
8043
        ;;
 
8044
      esac
 
8045
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8046
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8047
      ;;
 
8048
 
 
8049
    irix5* | irix6* | nonstopux*)
 
8050
      lt_prog_compiler_wl='-Wl,'
 
8051
      # PIC (with -KPIC) is the default.
 
8052
      lt_prog_compiler_static='-non_shared'
 
8053
      ;;
 
8054
 
 
8055
    newsos6)
 
8056
      lt_prog_compiler_pic='-KPIC'
 
8057
      lt_prog_compiler_static='-Bstatic'
 
8058
      ;;
 
8059
 
 
8060
    linux* | k*bsd*-gnu)
 
8061
      case $cc_basename in
 
8062
      icc* | ecc*)
 
8063
        lt_prog_compiler_wl='-Wl,'
 
8064
        lt_prog_compiler_pic='-KPIC'
 
8065
        lt_prog_compiler_static='-static'
 
8066
        ;;
 
8067
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8068
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8069
        # which looks to be a dead project)
 
8070
        lt_prog_compiler_wl='-Wl,'
 
8071
        lt_prog_compiler_pic='-fpic'
 
8072
        lt_prog_compiler_static='-Bstatic'
 
8073
        ;;
 
8074
      ccc*)
 
8075
        lt_prog_compiler_wl='-Wl,'
 
8076
        # All Alpha code is PIC.
 
8077
        lt_prog_compiler_static='-non_shared'
 
8078
        ;;
 
8079
      *)
 
8080
        case `$CC -V 2>&1 | sed 5q` in
 
8081
        *Sun\ C*)
 
8082
          # Sun C 5.9
 
8083
          lt_prog_compiler_pic='-KPIC'
 
8084
          lt_prog_compiler_static='-Bstatic'
 
8085
          lt_prog_compiler_wl='-Wl,'
 
8086
          ;;
 
8087
        *Sun\ F*)
 
8088
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8089
          lt_prog_compiler_pic='-KPIC'
 
8090
          lt_prog_compiler_static='-Bstatic'
 
8091
          lt_prog_compiler_wl=''
 
8092
          ;;
 
8093
        esac
 
8094
        ;;
 
8095
      esac
 
8096
      ;;
 
8097
 
 
8098
    osf3* | osf4* | osf5*)
 
8099
      lt_prog_compiler_wl='-Wl,'
 
8100
      # All OSF/1 code is PIC.
 
8101
      lt_prog_compiler_static='-non_shared'
 
8102
      ;;
 
8103
 
 
8104
    rdos*)
 
8105
      lt_prog_compiler_static='-non_shared'
 
8106
      ;;
 
8107
 
 
8108
    solaris*)
 
8109
      lt_prog_compiler_pic='-KPIC'
 
8110
      lt_prog_compiler_static='-Bstatic'
 
8111
      case $cc_basename in
 
8112
      f77* | f90* | f95*)
 
8113
        lt_prog_compiler_wl='-Qoption ld ';;
 
8114
      *)
 
8115
        lt_prog_compiler_wl='-Wl,';;
 
8116
      esac
 
8117
      ;;
 
8118
 
 
8119
    sunos4*)
 
8120
      lt_prog_compiler_wl='-Qoption ld '
 
8121
      lt_prog_compiler_pic='-PIC'
 
8122
      lt_prog_compiler_static='-Bstatic'
 
8123
      ;;
 
8124
 
 
8125
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8126
      lt_prog_compiler_wl='-Wl,'
 
8127
      lt_prog_compiler_pic='-KPIC'
 
8128
      lt_prog_compiler_static='-Bstatic'
 
8129
      ;;
 
8130
 
 
8131
    sysv4*MP*)
 
8132
      if test -d /usr/nec ;then
 
8133
        lt_prog_compiler_pic='-Kconform_pic'
 
8134
        lt_prog_compiler_static='-Bstatic'
 
8135
      fi
 
8136
      ;;
 
8137
 
 
8138
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8139
      lt_prog_compiler_wl='-Wl,'
 
8140
      lt_prog_compiler_pic='-KPIC'
 
8141
      lt_prog_compiler_static='-Bstatic'
 
8142
      ;;
 
8143
 
 
8144
    unicos*)
 
8145
      lt_prog_compiler_wl='-Wl,'
 
8146
      lt_prog_compiler_can_build_shared=no
 
8147
      ;;
 
8148
 
 
8149
    uts4*)
 
8150
      lt_prog_compiler_pic='-pic'
 
8151
      lt_prog_compiler_static='-Bstatic'
 
8152
      ;;
 
8153
 
 
8154
    *)
 
8155
      lt_prog_compiler_can_build_shared=no
 
8156
      ;;
 
8157
    esac
 
8158
  fi
 
8159
 
 
8160
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8161
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
8162
 
 
8163
#
 
8164
# Check to make sure the PIC flag actually works.
 
8165
#
 
8166
if test -n "$lt_prog_compiler_pic"; then
 
8167
 
 
8168
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8169
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
8170
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8172
else
 
8173
  lt_cv_prog_compiler_pic_works=no
 
8174
  ac_outfile=conftest.$ac_objext
 
8175
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8176
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8177
   # Insert the option either (1) after the last *FLAGS variable, or
 
8178
   # (2) before a word containing "conftest.", or (3) at the end.
 
8179
   # Note that $ac_compile itself does not contain backslashes and begins
 
8180
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8181
   # The option is referenced via a variable to avoid confusing sed.
 
8182
   lt_compile=`echo "$ac_compile" | $SED \
 
8183
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8184
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8185
   -e 's:$: $lt_compiler_flag:'`
 
8186
   (eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
 
8187
   (eval "$lt_compile" 2>conftest.err)
 
8188
   ac_status=$?
 
8189
   cat conftest.err >&5
 
8190
   echo "$as_me:8190: \$? = $ac_status" >&5
 
8191
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8192
     # The compiler can only warn and ignore the option if not recognized
 
8193
     # So say no if there are warnings other than the usual output.
 
8194
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8195
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8196
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8197
       lt_cv_prog_compiler_pic_works=yes
 
8198
     fi
 
8199
   fi
 
8200
   $rm conftest*
 
8201
 
 
8202
fi
 
8203
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8204
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
8205
 
 
8206
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8207
    case $lt_prog_compiler_pic in
 
8208
     "" | " "*) ;;
 
8209
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8210
     esac
 
8211
else
 
8212
    lt_prog_compiler_pic=
 
8213
     lt_prog_compiler_can_build_shared=no
 
8214
fi
 
8215
 
 
8216
fi
 
8217
case $host_os in
 
8218
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8219
  *djgpp*)
 
8220
    lt_prog_compiler_pic=
 
8221
    ;;
 
8222
  *)
 
8223
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8224
    ;;
 
8225
esac
 
8226
 
 
8227
#
 
8228
# Check to make sure the static flag actually works.
 
8229
#
 
8230
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8231
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8232
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
8233
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8234
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8235
else
 
8236
  lt_cv_prog_compiler_static_works=no
 
8237
   save_LDFLAGS="$LDFLAGS"
 
8238
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8239
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8240
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8241
     # The linker can only warn and ignore the option if not recognized
 
8242
     # So say no if there are warnings
 
8243
     if test -s conftest.err; then
 
8244
       # Append any errors to the config.log.
 
8245
       cat conftest.err 1>&5
 
8246
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8247
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8248
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8249
         lt_cv_prog_compiler_static_works=yes
 
8250
       fi
 
8251
     else
 
8252
       lt_cv_prog_compiler_static_works=yes
 
8253
     fi
 
8254
   fi
 
8255
   $rm -r conftest*
 
8256
   LDFLAGS="$save_LDFLAGS"
 
8257
 
 
8258
fi
 
8259
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8260
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
8261
 
 
8262
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8263
    :
 
8264
else
 
8265
    lt_prog_compiler_static=
 
8266
fi
 
8267
 
 
8268
 
 
8269
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8270
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8273
else
 
8274
  lt_cv_prog_compiler_c_o=no
 
8275
   $rm -r conftest 2>/dev/null
 
8276
   mkdir conftest
 
8277
   cd conftest
 
8278
   mkdir out
 
8279
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8280
 
 
8281
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8282
   # Insert the option either (1) after the last *FLAGS variable, or
 
8283
   # (2) before a word containing "conftest.", or (3) at the end.
 
8284
   # Note that $ac_compile itself does not contain backslashes and begins
 
8285
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8286
   lt_compile=`echo "$ac_compile" | $SED \
 
8287
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8289
   -e 's:$: $lt_compiler_flag:'`
 
8290
   (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
 
8291
   (eval "$lt_compile" 2>out/conftest.err)
 
8292
   ac_status=$?
 
8293
   cat out/conftest.err >&5
 
8294
   echo "$as_me:8294: \$? = $ac_status" >&5
 
8295
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8296
   then
 
8297
     # The compiler can only warn and ignore the option if not recognized
 
8298
     # So say no if there are warnings
 
8299
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8300
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8301
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8302
       lt_cv_prog_compiler_c_o=yes
 
8303
     fi
 
8304
   fi
 
8305
   chmod u+w . 2>&5
 
8306
   $rm conftest*
 
8307
   # SGI C++ compiler will create directory out/ii_files/ for
 
8308
   # template instantiation
 
8309
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8310
   $rm out/* && rmdir out
 
8311
   cd ..
 
8312
   rmdir conftest
 
8313
   $rm conftest*
 
8314
 
 
8315
fi
 
8316
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8317
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8318
 
 
8319
 
 
8320
hard_links="nottested"
 
8321
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8322
  # do not overwrite the value of need_locks provided by the user
 
8323
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8324
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8325
  hard_links=yes
 
8326
  $rm conftest*
 
8327
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8328
  touch conftest.a
 
8329
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8330
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8331
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8332
echo "${ECHO_T}$hard_links" >&6; }
 
8333
  if test "$hard_links" = no; then
 
8334
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8335
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8336
    need_locks=warn
 
8337
  fi
 
8338
else
 
8339
  need_locks=no
 
8340
fi
 
8341
 
 
8342
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8343
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8344
 
 
8345
  runpath_var=
 
8346
  allow_undefined_flag=
 
8347
  enable_shared_with_static_runtimes=no
 
8348
  archive_cmds=
 
8349
  archive_expsym_cmds=
 
8350
  old_archive_From_new_cmds=
 
8351
  old_archive_from_expsyms_cmds=
 
8352
  export_dynamic_flag_spec=
 
8353
  whole_archive_flag_spec=
 
8354
  thread_safe_flag_spec=
 
8355
  hardcode_libdir_flag_spec=
 
8356
  hardcode_libdir_flag_spec_ld=
 
8357
  hardcode_libdir_separator=
 
8358
  hardcode_direct=no
 
8359
  hardcode_minus_L=no
 
8360
  hardcode_shlibpath_var=unsupported
 
8361
  link_all_deplibs=unknown
 
8362
  hardcode_automatic=no
 
8363
  module_cmds=
 
8364
  module_expsym_cmds=
 
8365
  always_export_symbols=no
 
8366
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8367
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8368
  # included in the symbol list
 
8369
  include_expsyms=
 
8370
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8371
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8372
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8373
  # as well as any symbol that contains `d'.
 
8374
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8375
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8376
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8377
  # the symbol is explicitly referenced.  Since portable code cannot
 
8378
  # rely on this symbol name, it's probably fine to never include it in
 
8379
  # preloaded symbol tables.
 
8380
  # Exclude shared library initialization/finalization symbols.
 
8381
  extract_expsyms_cmds=
 
8382
  # Just being paranoid about ensuring that cc_basename is set.
 
8383
  for cc_temp in $compiler""; do
 
8384
  case $cc_temp in
 
8385
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8386
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8387
    \-*) ;;
 
8388
    *) break;;
 
8389
  esac
 
8390
done
 
8391
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8392
 
 
8393
  case $host_os in
 
8394
  cygwin* | mingw* | pw32*)
 
8395
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8396
    # When not using gcc, we currently assume that we are using
 
8397
    # Microsoft Visual C++.
 
8398
    if test "$GCC" != yes; then
 
8399
      with_gnu_ld=no
 
8400
    fi
 
8401
    ;;
 
8402
  interix*)
 
8403
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8404
    with_gnu_ld=yes
 
8405
    ;;
 
8406
  openbsd*)
 
8407
    with_gnu_ld=no
 
8408
    ;;
 
8409
  esac
 
8410
 
 
8411
  ld_shlibs=yes
 
8412
  if test "$with_gnu_ld" = yes; then
 
8413
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8414
    wlarc='${wl}'
 
8415
 
 
8416
    # Set some defaults for GNU ld with shared library support. These
 
8417
    # are reset later if shared libraries are not supported. Putting them
 
8418
    # here allows them to be overridden if necessary.
 
8419
    runpath_var=LD_RUN_PATH
 
8420
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8421
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8422
    # ancient GNU ld didn't support --whole-archive et. al.
 
8423
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8424
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8425
      else
 
8426
        whole_archive_flag_spec=
 
8427
    fi
 
8428
    supports_anon_versioning=no
 
8429
    case `$LD -v 2>/dev/null` in
 
8430
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8431
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8432
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8433
      *\ 2.11.*) ;; # other 2.11 versions
 
8434
      *) supports_anon_versioning=yes ;;
 
8435
    esac
 
8436
 
 
8437
    # See if GNU ld supports shared libraries.
 
8438
    case $host_os in
 
8439
    aix[3-9]*)
 
8440
      # On AIX/PPC, the GNU linker is very broken
 
8441
      if test "$host_cpu" != ia64; then
 
8442
        ld_shlibs=no
 
8443
        cat <<EOF 1>&2
 
8444
 
 
8445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8446
*** to be unable to reliably create shared libraries on AIX.
 
8447
*** Therefore, libtool is disabling shared libraries support.  If you
 
8448
*** really care for shared libraries, you may want to modify your PATH
 
8449
*** so that a non-GNU linker is found, and then restart.
 
8450
 
 
8451
EOF
 
8452
      fi
 
8453
      ;;
 
8454
 
 
8455
    amigaos*)
 
8456
      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)'
 
8457
      hardcode_libdir_flag_spec='-L$libdir'
 
8458
      hardcode_minus_L=yes
 
8459
 
 
8460
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8461
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8462
      # to version 4, is to share data among multiple programs linked
 
8463
      # with the same dynamic library.  Since this doesn't match the
 
8464
      # behavior of shared libraries on other platforms, we can't use
 
8465
      # them.
 
8466
      ld_shlibs=no
 
8467
      ;;
 
8468
 
 
8469
    beos*)
 
8470
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8471
        allow_undefined_flag=unsupported
 
8472
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8473
        # support --undefined.  This deserves some investigation.  FIXME
 
8474
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8475
      else
 
8476
        ld_shlibs=no
 
8477
      fi
 
8478
      ;;
 
8479
 
 
8480
    cygwin* | mingw* | pw32*)
 
8481
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8482
      # as there is no search path for DLLs.
 
8483
      hardcode_libdir_flag_spec='-L$libdir'
 
8484
      allow_undefined_flag=unsupported
 
8485
      always_export_symbols=no
 
8486
      enable_shared_with_static_runtimes=yes
 
8487
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8488
 
 
8489
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8490
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8491
        # If the export-symbols file already is a .def file (1st line
 
8492
        # is EXPORTS), use it as is; otherwise, prepend...
 
8493
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8494
          cp $export_symbols $output_objdir/$soname.def;
 
8495
        else
 
8496
          echo EXPORTS > $output_objdir/$soname.def;
 
8497
          cat $export_symbols >> $output_objdir/$soname.def;
 
8498
        fi~
 
8499
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8500
      else
 
8501
        ld_shlibs=no
 
8502
      fi
 
8503
      ;;
 
8504
 
 
8505
    interix[3-9]*)
 
8506
      hardcode_direct=no
 
8507
      hardcode_shlibpath_var=no
 
8508
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8509
      export_dynamic_flag_spec='${wl}-E'
 
8510
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8511
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8512
      # default) and relocated if they conflict, which is a slow very memory
 
8513
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8514
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8515
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8516
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8517
      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'
 
8518
      ;;
 
8519
 
 
8520
    gnu* | linux* | k*bsd*-gnu)
 
8521
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8522
        tmp_addflag=
 
8523
        case $cc_basename,$host_cpu in
 
8524
        pgcc*)                          # Portland Group C compiler
 
8525
          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'
 
8526
          tmp_addflag=' $pic_flag'
 
8527
          ;;
 
8528
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8529
          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'
 
8530
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8531
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8532
          tmp_addflag=' -i_dynamic' ;;
 
8533
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8534
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8535
        ifc* | ifort*)                  # Intel Fortran compiler
 
8536
          tmp_addflag=' -nofor_main' ;;
 
8537
        esac
 
8538
        case `$CC -V 2>&1 | sed 5q` in
 
8539
        *Sun\ C*)                       # Sun C 5.9
 
8540
          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'
 
8541
          tmp_sharedflag='-G' ;;
 
8542
        *Sun\ F*)                       # Sun Fortran 8.3
 
8543
          tmp_sharedflag='-G' ;;
 
8544
        *)
 
8545
          tmp_sharedflag='-shared' ;;
 
8546
        esac
 
8547
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8548
 
 
8549
        if test $supports_anon_versioning = yes; then
 
8550
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8551
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8552
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8553
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8554
        fi
 
8555
        link_all_deplibs=no
 
8556
      else
 
8557
        ld_shlibs=no
 
8558
      fi
 
8559
      ;;
 
8560
 
 
8561
    netbsd* | netbsdelf*-gnu)
 
8562
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8563
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8564
        wlarc=
 
8565
      else
 
8566
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8567
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8568
      fi
 
8569
      ;;
 
8570
 
 
8571
    solaris*)
 
8572
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8573
        ld_shlibs=no
 
8574
        cat <<EOF 1>&2
 
8575
 
 
8576
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8577
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8578
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8579
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8580
*** your PATH or compiler configuration so that the native linker is
 
8581
*** used, and then restart.
 
8582
 
 
8583
EOF
 
8584
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8585
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8586
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8587
      else
 
8588
        ld_shlibs=no
 
8589
      fi
 
8590
      ;;
 
8591
 
 
8592
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8593
      case `$LD -v 2>&1` in
 
8594
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8595
        ld_shlibs=no
 
8596
        cat <<_LT_EOF 1>&2
 
8597
 
 
8598
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8599
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8600
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8601
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8602
*** your PATH or compiler configuration so that the native linker is
 
8603
*** used, and then restart.
 
8604
 
 
8605
_LT_EOF
 
8606
        ;;
 
8607
        *)
 
8608
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8609
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8610
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8611
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8612
          else
 
8613
            ld_shlibs=no
 
8614
          fi
 
8615
        ;;
 
8616
      esac
 
8617
      ;;
 
8618
 
 
8619
    sunos4*)
 
8620
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8621
      wlarc=
 
8622
      hardcode_direct=yes
 
8623
      hardcode_shlibpath_var=no
 
8624
      ;;
 
8625
 
 
8626
    *)
 
8627
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8628
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8629
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8630
      else
 
8631
        ld_shlibs=no
 
8632
      fi
 
8633
      ;;
 
8634
    esac
 
8635
 
 
8636
    if test "$ld_shlibs" = no; then
 
8637
      runpath_var=
 
8638
      hardcode_libdir_flag_spec=
 
8639
      export_dynamic_flag_spec=
 
8640
      whole_archive_flag_spec=
 
8641
    fi
 
8642
  else
 
8643
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8644
    case $host_os in
 
8645
    aix3*)
 
8646
      allow_undefined_flag=unsupported
 
8647
      always_export_symbols=yes
 
8648
      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'
 
8649
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8650
      # are no directories specified by -L.
 
8651
      hardcode_minus_L=yes
 
8652
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8653
        # Neither direct hardcoding nor static linking is supported with a
 
8654
        # broken collect2.
 
8655
        hardcode_direct=unsupported
 
8656
      fi
 
8657
      ;;
 
8658
 
 
8659
    aix[4-9]*)
 
8660
      if test "$host_cpu" = ia64; then
 
8661
        # On IA64, the linker does run time linking by default, so we don't
 
8662
        # have to do anything special.
 
8663
        aix_use_runtimelinking=no
 
8664
        exp_sym_flag='-Bexport'
 
8665
        no_entry_flag=""
 
8666
      else
 
8667
        # If we're using GNU nm, then we don't want the "-C" option.
 
8668
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8669
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8670
          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'
 
8671
        else
 
8672
          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'
 
8673
        fi
 
8674
        aix_use_runtimelinking=no
 
8675
 
 
8676
        # Test if we are trying to use run time linking or normal
 
8677
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8678
        # need to do runtime linking.
 
8679
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8680
          for ld_flag in $LDFLAGS; do
 
8681
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8682
            aix_use_runtimelinking=yes
 
8683
            break
 
8684
          fi
 
8685
          done
 
8686
          ;;
 
8687
        esac
 
8688
 
 
8689
        exp_sym_flag='-bexport'
 
8690
        no_entry_flag='-bnoentry'
 
8691
      fi
 
8692
 
 
8693
      # When large executables or shared objects are built, AIX ld can
 
8694
      # have problems creating the table of contents.  If linking a library
 
8695
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8696
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8697
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8698
 
 
8699
      archive_cmds=''
 
8700
      hardcode_direct=yes
 
8701
      hardcode_libdir_separator=':'
 
8702
      link_all_deplibs=yes
 
8703
 
 
8704
      if test "$GCC" = yes; then
 
8705
        case $host_os in aix4.[012]|aix4.[012].*)
 
8706
        # We only want to do this on AIX 4.2 and lower, the check
 
8707
        # below for broken collect2 doesn't work under 4.3+
 
8708
          collect2name=`${CC} -print-prog-name=collect2`
 
8709
          if test -f "$collect2name" && \
 
8710
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8711
          then
 
8712
          # We have reworked collect2
 
8713
          :
 
8714
          else
 
8715
          # We have old collect2
 
8716
          hardcode_direct=unsupported
 
8717
          # It fails to find uninstalled libraries when the uninstalled
 
8718
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8719
          # to unsupported forces relinking
 
8720
          hardcode_minus_L=yes
 
8721
          hardcode_libdir_flag_spec='-L$libdir'
 
8722
          hardcode_libdir_separator=
 
8723
          fi
 
8724
          ;;
 
8725
        esac
 
8726
        shared_flag='-shared'
 
8727
        if test "$aix_use_runtimelinking" = yes; then
 
8728
          shared_flag="$shared_flag "'${wl}-G'
 
8729
        fi
 
8730
      else
 
8731
        # not using gcc
 
8732
        if test "$host_cpu" = ia64; then
 
8733
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8734
        # chokes on -Wl,-G. The following line is correct:
 
8735
          shared_flag='-G'
 
8736
        else
 
8737
          if test "$aix_use_runtimelinking" = yes; then
 
8738
            shared_flag='${wl}-G'
 
8739
          else
 
8740
            shared_flag='${wl}-bM:SRE'
 
8741
          fi
 
8742
        fi
 
8743
      fi
 
8744
 
 
8745
      # It seems that -bexpall does not export symbols beginning with
 
8746
      # underscore (_), so it is better to generate a list of symbols to export.
 
8747
      always_export_symbols=yes
 
8748
      if test "$aix_use_runtimelinking" = yes; then
 
8749
        # Warning - without using the other runtime loading flags (-brtl),
 
8750
        # -berok will link without error, but may produce a broken library.
 
8751
        allow_undefined_flag='-berok'
 
8752
       # Determine the default libpath from the value encoded in an empty executable.
 
8753
       cat >conftest.$ac_ext <<_ACEOF
 
8754
/* confdefs.h.  */
 
8755
_ACEOF
 
8756
cat confdefs.h >>conftest.$ac_ext
 
8757
cat >>conftest.$ac_ext <<_ACEOF
 
8758
/* end confdefs.h.  */
 
8759
 
 
8760
int
 
8761
main ()
 
8762
{
 
8763
 
 
8764
  ;
 
8765
  return 0;
 
8766
}
 
8767
_ACEOF
 
8768
rm -f conftest.$ac_objext conftest$ac_exeext
 
8769
if { (ac_try="$ac_link"
 
8770
case "(($ac_try" in
 
8771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8772
  *) ac_try_echo=$ac_try;;
 
8773
esac
 
8774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8775
  (eval "$ac_link") 2>conftest.er1
 
8776
  ac_status=$?
 
8777
  grep -v '^ *+' conftest.er1 >conftest.err
 
8778
  rm -f conftest.er1
 
8779
  cat conftest.err >&5
 
8780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8781
  (exit $ac_status); } && {
 
8782
         test -z "$ac_c_werror_flag" ||
 
8783
         test ! -s conftest.err
 
8784
       } && test -s conftest$ac_exeext &&
 
8785
       $as_test_x conftest$ac_exeext; then
 
8786
 
 
8787
lt_aix_libpath_sed='
 
8788
    /Import File Strings/,/^$/ {
 
8789
        /^0/ {
 
8790
            s/^0  *\(.*\)$/\1/
 
8791
            p
 
8792
        }
 
8793
    }'
 
8794
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8795
# Check for a 64-bit object if we didn't find anything.
 
8796
if test -z "$aix_libpath"; then
 
8797
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8798
fi
 
8799
else
 
8800
  echo "$as_me: failed program was:" >&5
 
8801
sed 's/^/| /' conftest.$ac_ext >&5
 
8802
 
 
8803
 
 
8804
fi
 
8805
 
 
8806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8807
      conftest$ac_exeext conftest.$ac_ext
 
8808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8809
 
 
8810
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8811
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8812
       else
 
8813
        if test "$host_cpu" = ia64; then
 
8814
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8815
          allow_undefined_flag="-z nodefs"
 
8816
          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"
 
8817
        else
 
8818
         # Determine the default libpath from the value encoded in an empty executable.
 
8819
         cat >conftest.$ac_ext <<_ACEOF
 
8820
/* confdefs.h.  */
 
8821
_ACEOF
 
8822
cat confdefs.h >>conftest.$ac_ext
 
8823
cat >>conftest.$ac_ext <<_ACEOF
 
8824
/* end confdefs.h.  */
 
8825
 
 
8826
int
 
8827
main ()
 
8828
{
 
8829
 
 
8830
  ;
 
8831
  return 0;
 
8832
}
 
8833
_ACEOF
 
8834
rm -f conftest.$ac_objext conftest$ac_exeext
 
8835
if { (ac_try="$ac_link"
 
8836
case "(($ac_try" in
 
8837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8838
  *) ac_try_echo=$ac_try;;
 
8839
esac
 
8840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8841
  (eval "$ac_link") 2>conftest.er1
 
8842
  ac_status=$?
 
8843
  grep -v '^ *+' conftest.er1 >conftest.err
 
8844
  rm -f conftest.er1
 
8845
  cat conftest.err >&5
 
8846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8847
  (exit $ac_status); } && {
 
8848
         test -z "$ac_c_werror_flag" ||
 
8849
         test ! -s conftest.err
 
8850
       } && test -s conftest$ac_exeext &&
 
8851
       $as_test_x conftest$ac_exeext; then
 
8852
 
 
8853
lt_aix_libpath_sed='
 
8854
    /Import File Strings/,/^$/ {
 
8855
        /^0/ {
 
8856
            s/^0  *\(.*\)$/\1/
 
8857
            p
 
8858
        }
 
8859
    }'
 
8860
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8861
# Check for a 64-bit object if we didn't find anything.
 
8862
if test -z "$aix_libpath"; then
 
8863
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8864
fi
 
8865
else
 
8866
  echo "$as_me: failed program was:" >&5
 
8867
sed 's/^/| /' conftest.$ac_ext >&5
 
8868
 
 
8869
 
 
8870
fi
 
8871
 
 
8872
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8873
      conftest$ac_exeext conftest.$ac_ext
 
8874
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8875
 
 
8876
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8877
          # Warning - without using the other run time loading flags,
 
8878
          # -berok will link without error, but may produce a broken library.
 
8879
          no_undefined_flag=' ${wl}-bernotok'
 
8880
          allow_undefined_flag=' ${wl}-berok'
 
8881
          # Exported symbols can be pulled into shared objects from archives
 
8882
          whole_archive_flag_spec='$convenience'
 
8883
          archive_cmds_need_lc=yes
 
8884
          # This is similar to how AIX traditionally builds its shared libraries.
 
8885
          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'
 
8886
        fi
 
8887
      fi
 
8888
      ;;
 
8889
 
 
8890
    amigaos*)
 
8891
      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)'
 
8892
      hardcode_libdir_flag_spec='-L$libdir'
 
8893
      hardcode_minus_L=yes
 
8894
      # see comment about different semantics on the GNU ld section
 
8895
      ld_shlibs=no
 
8896
      ;;
 
8897
 
 
8898
    bsdi[45]*)
 
8899
      export_dynamic_flag_spec=-rdynamic
 
8900
      ;;
 
8901
 
 
8902
    cygwin* | mingw* | pw32*)
 
8903
      # When not using gcc, we currently assume that we are using
 
8904
      # Microsoft Visual C++.
 
8905
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8906
      # no search path for DLLs.
 
8907
      hardcode_libdir_flag_spec=' '
 
8908
      allow_undefined_flag=unsupported
 
8909
      # Tell ltmain to make .lib files, not .a files.
 
8910
      libext=lib
 
8911
      # Tell ltmain to make .dll files, not .so files.
 
8912
      shrext_cmds=".dll"
 
8913
      # FIXME: Setting linknames here is a bad hack.
 
8914
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8915
      # The linker will automatically build a .lib file if we build a DLL.
 
8916
      old_archive_From_new_cmds='true'
 
8917
      # FIXME: Should let the user specify the lib program.
 
8918
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8919
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8920
      enable_shared_with_static_runtimes=yes
 
8921
      ;;
 
8922
 
 
8923
    darwin* | rhapsody*)
 
8924
      case $host_os in
 
8925
        rhapsody* | darwin1.[012])
 
8926
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8927
         ;;
 
8928
       *) # Darwin 1.3 on
 
8929
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8930
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8931
         else
 
8932
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8933
             10.[012])
 
8934
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8935
               ;;
 
8936
             10.*)
 
8937
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8938
               ;;
 
8939
           esac
 
8940
         fi
 
8941
         ;;
 
8942
      esac
 
8943
      archive_cmds_need_lc=no
 
8944
      hardcode_direct=no
 
8945
      hardcode_automatic=yes
 
8946
      hardcode_shlibpath_var=unsupported
 
8947
      whole_archive_flag_spec=''
 
8948
      link_all_deplibs=yes
 
8949
    if test "$GCC" = yes ; then
 
8950
        output_verbose_link_cmd='echo'
 
8951
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8952
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8953
        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}"
 
8954
        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}"
 
8955
    else
 
8956
      case $cc_basename in
 
8957
        xlc*)
 
8958
         output_verbose_link_cmd='echo'
 
8959
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8960
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8961
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8962
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8963
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8964
          ;;
 
8965
       *)
 
8966
         ld_shlibs=no
 
8967
          ;;
 
8968
      esac
 
8969
    fi
 
8970
      ;;
 
8971
 
 
8972
    dgux*)
 
8973
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8974
      hardcode_libdir_flag_spec='-L$libdir'
 
8975
      hardcode_shlibpath_var=no
 
8976
      ;;
 
8977
 
 
8978
    freebsd1*)
 
8979
      ld_shlibs=no
 
8980
      ;;
 
8981
 
 
8982
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8983
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8984
    # does not break anything, and helps significantly (at the cost of a little
 
8985
    # extra space).
 
8986
    freebsd2.2*)
 
8987
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8988
      hardcode_libdir_flag_spec='-R$libdir'
 
8989
      hardcode_direct=yes
 
8990
      hardcode_shlibpath_var=no
 
8991
      ;;
 
8992
 
 
8993
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8994
    freebsd2*)
 
8995
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8996
      hardcode_direct=yes
 
8997
      hardcode_minus_L=yes
 
8998
      hardcode_shlibpath_var=no
 
8999
      ;;
 
9000
 
 
9001
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9002
    freebsd* | dragonfly*)
 
9003
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9004
      hardcode_libdir_flag_spec='-R$libdir'
 
9005
      hardcode_direct=yes
 
9006
      hardcode_shlibpath_var=no
 
9007
      ;;
 
9008
 
 
9009
    hpux9*)
 
9010
      if test "$GCC" = yes; then
 
9011
        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'
 
9012
      else
 
9013
        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'
 
9014
      fi
 
9015
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9016
      hardcode_libdir_separator=:
 
9017
      hardcode_direct=yes
 
9018
 
 
9019
      # hardcode_minus_L: Not really in the search PATH,
 
9020
      # but as the default location of the library.
 
9021
      hardcode_minus_L=yes
 
9022
      export_dynamic_flag_spec='${wl}-E'
 
9023
      ;;
 
9024
 
 
9025
    hpux10*)
 
9026
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9027
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9028
      else
 
9029
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9030
      fi
 
9031
      if test "$with_gnu_ld" = no; then
 
9032
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9033
        hardcode_libdir_separator=:
 
9034
 
 
9035
        hardcode_direct=yes
 
9036
        export_dynamic_flag_spec='${wl}-E'
 
9037
 
 
9038
        # hardcode_minus_L: Not really in the search PATH,
 
9039
        # but as the default location of the library.
 
9040
        hardcode_minus_L=yes
 
9041
      fi
 
9042
      ;;
 
9043
 
 
9044
    hpux11*)
 
9045
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9046
        case $host_cpu in
 
9047
        hppa*64*)
 
9048
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9049
          ;;
 
9050
        ia64*)
 
9051
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9052
          ;;
 
9053
        *)
 
9054
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9055
          ;;
 
9056
        esac
 
9057
      else
 
9058
        case $host_cpu in
 
9059
        hppa*64*)
 
9060
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9061
          ;;
 
9062
        ia64*)
 
9063
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9064
          ;;
 
9065
        *)
 
9066
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9067
          ;;
 
9068
        esac
 
9069
      fi
 
9070
      if test "$with_gnu_ld" = no; then
 
9071
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9072
        hardcode_libdir_separator=:
 
9073
 
 
9074
        case $host_cpu in
 
9075
        hppa*64*|ia64*)
 
9076
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9077
          hardcode_direct=no
 
9078
          hardcode_shlibpath_var=no
 
9079
          ;;
 
9080
        *)
 
9081
          hardcode_direct=yes
 
9082
          export_dynamic_flag_spec='${wl}-E'
 
9083
 
 
9084
          # hardcode_minus_L: Not really in the search PATH,
 
9085
          # but as the default location of the library.
 
9086
          hardcode_minus_L=yes
 
9087
          ;;
 
9088
        esac
 
9089
      fi
 
9090
      ;;
 
9091
 
 
9092
    irix5* | irix6* | nonstopux*)
 
9093
      if test "$GCC" = yes; then
 
9094
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9095
      else
 
9096
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9097
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9098
      fi
 
9099
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9100
      hardcode_libdir_separator=:
 
9101
      link_all_deplibs=yes
 
9102
      ;;
 
9103
 
 
9104
    netbsd* | netbsdelf*-gnu)
 
9105
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9106
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9107
      else
 
9108
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9109
      fi
 
9110
      hardcode_libdir_flag_spec='-R$libdir'
 
9111
      hardcode_direct=yes
 
9112
      hardcode_shlibpath_var=no
 
9113
      ;;
 
9114
 
 
9115
    newsos6)
 
9116
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9117
      hardcode_direct=yes
 
9118
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9119
      hardcode_libdir_separator=:
 
9120
      hardcode_shlibpath_var=no
 
9121
      ;;
 
9122
 
 
9123
    openbsd*)
 
9124
      if test -f /usr/libexec/ld.so; then
 
9125
        hardcode_direct=yes
 
9126
        hardcode_shlibpath_var=no
 
9127
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9128
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9129
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9130
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9131
          export_dynamic_flag_spec='${wl}-E'
 
9132
        else
 
9133
          case $host_os in
 
9134
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9135
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9136
             hardcode_libdir_flag_spec='-R$libdir'
 
9137
             ;;
 
9138
           *)
 
9139
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9140
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9141
             ;;
 
9142
          esac
 
9143
        fi
 
9144
      else
 
9145
        ld_shlibs=no
 
9146
      fi
 
9147
      ;;
 
9148
 
 
9149
    os2*)
 
9150
      hardcode_libdir_flag_spec='-L$libdir'
 
9151
      hardcode_minus_L=yes
 
9152
      allow_undefined_flag=unsupported
 
9153
      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'
 
9154
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9155
      ;;
 
9156
 
 
9157
    osf3*)
 
9158
      if test "$GCC" = yes; then
 
9159
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9160
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9161
      else
 
9162
        allow_undefined_flag=' -expect_unresolved \*'
 
9163
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9164
      fi
 
9165
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9166
      hardcode_libdir_separator=:
 
9167
      ;;
 
9168
 
 
9169
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9170
      if test "$GCC" = yes; then
 
9171
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9172
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9173
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9174
      else
 
9175
        allow_undefined_flag=' -expect_unresolved \*'
 
9176
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9177
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9178
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
9179
 
 
9180
        # Both c and cxx compiler support -rpath directly
 
9181
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9182
      fi
 
9183
      hardcode_libdir_separator=:
 
9184
      ;;
 
9185
 
 
9186
    solaris*)
 
9187
      no_undefined_flag=' -z text'
 
9188
      if test "$GCC" = yes; then
 
9189
        wlarc='${wl}'
 
9190
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9191
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9192
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9193
      else
 
9194
        wlarc=''
 
9195
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9196
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9197
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9198
      fi
 
9199
      hardcode_libdir_flag_spec='-R$libdir'
 
9200
      hardcode_shlibpath_var=no
 
9201
      case $host_os in
 
9202
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9203
      *)
 
9204
        # The compiler driver will combine and reorder linker options,
 
9205
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9206
        # but is careful enough not to reorder.
 
9207
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9208
        if test "$GCC" = yes; then
 
9209
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9210
        else
 
9211
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9212
        fi
 
9213
        ;;
 
9214
      esac
 
9215
      link_all_deplibs=yes
 
9216
      ;;
 
9217
 
 
9218
    sunos4*)
 
9219
      if test "x$host_vendor" = xsequent; then
 
9220
        # Use $CC to link under sequent, because it throws in some extra .o
 
9221
        # files that make .init and .fini sections work.
 
9222
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9223
      else
 
9224
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9225
      fi
 
9226
      hardcode_libdir_flag_spec='-L$libdir'
 
9227
      hardcode_direct=yes
 
9228
      hardcode_minus_L=yes
 
9229
      hardcode_shlibpath_var=no
 
9230
      ;;
 
9231
 
 
9232
    sysv4)
 
9233
      case $host_vendor in
 
9234
        sni)
 
9235
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9236
          hardcode_direct=yes # is this really true???
 
9237
        ;;
 
9238
        siemens)
 
9239
          ## LD is ld it makes a PLAMLIB
 
9240
          ## CC just makes a GrossModule.
 
9241
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9242
          reload_cmds='$CC -r -o $output$reload_objs'
 
9243
          hardcode_direct=no
 
9244
        ;;
 
9245
        motorola)
 
9246
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9247
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9248
        ;;
 
9249
      esac
 
9250
      runpath_var='LD_RUN_PATH'
 
9251
      hardcode_shlibpath_var=no
 
9252
      ;;
 
9253
 
 
9254
    sysv4.3*)
 
9255
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9256
      hardcode_shlibpath_var=no
 
9257
      export_dynamic_flag_spec='-Bexport'
 
9258
      ;;
 
9259
 
 
9260
    sysv4*MP*)
 
9261
      if test -d /usr/nec; then
 
9262
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9263
        hardcode_shlibpath_var=no
 
9264
        runpath_var=LD_RUN_PATH
 
9265
        hardcode_runpath_var=yes
 
9266
        ld_shlibs=yes
 
9267
      fi
 
9268
      ;;
 
9269
 
 
9270
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9271
      no_undefined_flag='${wl}-z,text'
 
9272
      archive_cmds_need_lc=no
 
9273
      hardcode_shlibpath_var=no
 
9274
      runpath_var='LD_RUN_PATH'
 
9275
 
 
9276
      if test "$GCC" = yes; then
 
9277
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9278
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9279
      else
 
9280
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9281
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9282
      fi
 
9283
      ;;
 
9284
 
 
9285
    sysv5* | sco3.2v5* | sco5v6*)
 
9286
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9287
      # link with -lc, and that would cause any symbols used from libc to
 
9288
      # always be unresolved, which means just about no library would
 
9289
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9290
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9291
      # as -z defs.
 
9292
      no_undefined_flag='${wl}-z,text'
 
9293
      allow_undefined_flag='${wl}-z,nodefs'
 
9294
      archive_cmds_need_lc=no
 
9295
      hardcode_shlibpath_var=no
 
9296
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9297
      hardcode_libdir_separator=':'
 
9298
      link_all_deplibs=yes
 
9299
      export_dynamic_flag_spec='${wl}-Bexport'
 
9300
      runpath_var='LD_RUN_PATH'
 
9301
 
 
9302
      if test "$GCC" = yes; then
 
9303
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9304
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9305
      else
 
9306
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9307
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9308
      fi
 
9309
      ;;
 
9310
 
 
9311
    uts4*)
 
9312
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9313
      hardcode_libdir_flag_spec='-L$libdir'
 
9314
      hardcode_shlibpath_var=no
 
9315
      ;;
 
9316
 
 
9317
    *)
 
9318
      ld_shlibs=no
 
9319
      ;;
 
9320
    esac
 
9321
  fi
 
9322
 
 
9323
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9324
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9325
test "$ld_shlibs" = no && can_build_shared=no
 
9326
 
 
9327
#
 
9328
# Do we need to explicitly link libc?
 
9329
#
 
9330
case "x$archive_cmds_need_lc" in
 
9331
x|xyes)
 
9332
  # Assume -lc should be added
 
9333
  archive_cmds_need_lc=yes
 
9334
 
 
9335
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9336
    case $archive_cmds in
 
9337
    *'~'*)
 
9338
      # FIXME: we may have to deal with multi-command sequences.
 
9339
      ;;
 
9340
    '$CC '*)
 
9341
      # Test whether the compiler implicitly links with -lc since on some
 
9342
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9343
      # to ld, don't add -lc before -lgcc.
 
9344
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9345
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9346
      $rm conftest*
 
9347
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9348
 
 
9349
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9350
  (eval $ac_compile) 2>&5
 
9351
  ac_status=$?
 
9352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9353
  (exit $ac_status); } 2>conftest.err; then
 
9354
        soname=conftest
 
9355
        lib=conftest
 
9356
        libobjs=conftest.$ac_objext
 
9357
        deplibs=
 
9358
        wl=$lt_prog_compiler_wl
 
9359
        pic_flag=$lt_prog_compiler_pic
 
9360
        compiler_flags=-v
 
9361
        linker_flags=-v
 
9362
        verstring=
 
9363
        output_objdir=.
 
9364
        libname=conftest
 
9365
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9366
        allow_undefined_flag=
 
9367
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9368
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9369
  ac_status=$?
 
9370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9371
  (exit $ac_status); }
 
9372
        then
 
9373
          archive_cmds_need_lc=no
 
9374
        else
 
9375
          archive_cmds_need_lc=yes
 
9376
        fi
 
9377
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9378
      else
 
9379
        cat conftest.err 1>&5
 
9380
      fi
 
9381
      $rm conftest*
 
9382
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9383
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9384
      ;;
 
9385
    esac
 
9386
  fi
 
9387
  ;;
 
9388
esac
 
9389
 
 
9390
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9391
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9392
library_names_spec=
 
9393
libname_spec='lib$name'
 
9394
soname_spec=
 
9395
shrext_cmds=".so"
 
9396
postinstall_cmds=
 
9397
postuninstall_cmds=
 
9398
finish_cmds=
 
9399
finish_eval=
 
9400
shlibpath_var=
 
9401
shlibpath_overrides_runpath=unknown
 
9402
version_type=none
 
9403
dynamic_linker="$host_os ld.so"
 
9404
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9405
 
 
9406
if test "$GCC" = yes; then
 
9407
  case $host_os in
 
9408
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9409
    *) lt_awk_arg="/^libraries:/" ;;
 
9410
  esac
 
9411
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9412
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9413
    # if the path contains ";" then we assume it to be the separator
 
9414
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9415
    # assumed that no part of a normal pathname contains ";" but that should
 
9416
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9417
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9418
  else
 
9419
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9420
  fi
 
9421
  # Ok, now we have the path, separated by spaces, we can step through it
 
9422
  # and add multilib dir if necessary.
 
9423
  lt_tmp_lt_search_path_spec=
 
9424
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9425
  for lt_sys_path in $lt_search_path_spec; do
 
9426
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9427
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9428
    else
 
9429
      test -d "$lt_sys_path" && \
 
9430
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9431
    fi
 
9432
  done
 
9433
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9434
BEGIN {RS=" "; FS="/|\n";} {
 
9435
  lt_foo="";
 
9436
  lt_count=0;
 
9437
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9438
    if ($lt_i != "" && $lt_i != ".") {
 
9439
      if ($lt_i == "..") {
 
9440
        lt_count++;
 
9441
      } else {
 
9442
        if (lt_count == 0) {
 
9443
          lt_foo="/" $lt_i lt_foo;
 
9444
        } else {
 
9445
          lt_count--;
 
9446
        }
 
9447
      }
 
9448
    }
 
9449
  }
 
9450
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9451
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9452
}'`
 
9453
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9454
else
 
9455
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9456
fi
 
9457
need_lib_prefix=unknown
 
9458
hardcode_into_libs=no
 
9459
 
 
9460
# when you set need_version to no, make sure it does not cause -set_version
 
9461
# flags to be left without arguments
 
9462
need_version=unknown
 
9463
 
 
9464
case $host_os in
 
9465
aix3*)
 
9466
  version_type=linux
 
9467
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9468
  shlibpath_var=LIBPATH
 
9469
 
 
9470
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9471
  soname_spec='${libname}${release}${shared_ext}$major'
 
9472
  ;;
 
9473
 
 
9474
aix[4-9]*)
 
9475
  version_type=linux
 
9476
  need_lib_prefix=no
 
9477
  need_version=no
 
9478
  hardcode_into_libs=yes
 
9479
  if test "$host_cpu" = ia64; then
 
9480
    # AIX 5 supports IA64
 
9481
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9482
    shlibpath_var=LD_LIBRARY_PATH
 
9483
  else
 
9484
    # With GCC up to 2.95.x, collect2 would create an import file
 
9485
    # for dependence libraries.  The import file would start with
 
9486
    # the line `#! .'.  This would cause the generated library to
 
9487
    # depend on `.', always an invalid library.  This was fixed in
 
9488
    # development snapshots of GCC prior to 3.0.
 
9489
    case $host_os in
 
9490
      aix4 | aix4.[01] | aix4.[01].*)
 
9491
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9492
           echo ' yes '
 
9493
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9494
        :
 
9495
      else
 
9496
        can_build_shared=no
 
9497
      fi
 
9498
      ;;
 
9499
    esac
 
9500
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9501
    # soname into executable. Probably we can add versioning support to
 
9502
    # collect2, so additional links can be useful in future.
 
9503
    if test "$aix_use_runtimelinking" = yes; then
 
9504
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9505
      # instead of lib<name>.a to let people know that these are not
 
9506
      # typical AIX shared libraries.
 
9507
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9508
    else
 
9509
      # We preserve .a as extension for shared libraries through AIX4.2
 
9510
      # and later when we are not doing run time linking.
 
9511
      library_names_spec='${libname}${release}.a $libname.a'
 
9512
      soname_spec='${libname}${release}${shared_ext}$major'
 
9513
    fi
 
9514
    shlibpath_var=LIBPATH
 
9515
  fi
 
9516
  ;;
 
9517
 
 
9518
amigaos*)
 
9519
  library_names_spec='$libname.ixlibrary $libname.a'
 
9520
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9521
  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'
 
9522
  ;;
 
9523
 
 
9524
beos*)
 
9525
  library_names_spec='${libname}${shared_ext}'
 
9526
  dynamic_linker="$host_os ld.so"
 
9527
  shlibpath_var=LIBRARY_PATH
 
9528
  ;;
 
9529
 
 
9530
bsdi[45]*)
 
9531
  version_type=linux
 
9532
  need_version=no
 
9533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9534
  soname_spec='${libname}${release}${shared_ext}$major'
 
9535
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9536
  shlibpath_var=LD_LIBRARY_PATH
 
9537
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9538
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9539
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9540
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9541
  # libtool to hard-code these into programs
 
9542
  ;;
 
9543
 
 
9544
cygwin* | mingw* | pw32*)
 
9545
  version_type=windows
 
9546
  shrext_cmds=".dll"
 
9547
  need_version=no
 
9548
  need_lib_prefix=no
 
9549
 
 
9550
  case $GCC,$host_os in
 
9551
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9552
    library_names_spec='$libname.dll.a'
 
9553
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9554
    postinstall_cmds='base_file=`basename \${file}`~
 
9555
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9556
      dldir=$destdir/`dirname \$dlpath`~
 
9557
      test -d \$dldir || mkdir -p \$dldir~
 
9558
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9559
      chmod a+x \$dldir/$dlname'
 
9560
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9561
      dlpath=$dir/\$dldll~
 
9562
       $rm \$dlpath'
 
9563
    shlibpath_overrides_runpath=yes
 
9564
 
 
9565
    case $host_os in
 
9566
    cygwin*)
 
9567
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9568
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9569
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9570
      ;;
 
9571
    mingw*)
 
9572
      # MinGW DLLs use traditional 'lib' prefix
 
9573
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9574
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9575
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9576
        # It is most probably a Windows format PATH printed by
 
9577
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9578
        # path with ; separators, and with drive letters. We can handle the
 
9579
        # drive letters (cygwin fileutils understands them), so leave them,
 
9580
        # especially as we might pass files found there to a mingw objdump,
 
9581
        # which wouldn't understand a cygwinified path. Ahh.
 
9582
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9583
      else
 
9584
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9585
      fi
 
9586
      ;;
 
9587
    pw32*)
 
9588
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9589
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9590
      ;;
 
9591
    esac
 
9592
    ;;
 
9593
 
 
9594
  *)
 
9595
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9596
    ;;
 
9597
  esac
 
9598
  dynamic_linker='Win32 ld.exe'
 
9599
  # FIXME: first we should search . and the directory the executable is in
 
9600
  shlibpath_var=PATH
 
9601
  ;;
 
9602
 
 
9603
darwin* | rhapsody*)
 
9604
  dynamic_linker="$host_os dyld"
 
9605
  version_type=darwin
 
9606
  need_lib_prefix=no
 
9607
  need_version=no
 
9608
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9609
  soname_spec='${libname}${release}${major}$shared_ext'
 
9610
  shlibpath_overrides_runpath=yes
 
9611
  shlibpath_var=DYLD_LIBRARY_PATH
 
9612
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9613
 
 
9614
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9615
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9616
  ;;
 
9617
 
 
9618
dgux*)
 
9619
  version_type=linux
 
9620
  need_lib_prefix=no
 
9621
  need_version=no
 
9622
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9623
  soname_spec='${libname}${release}${shared_ext}$major'
 
9624
  shlibpath_var=LD_LIBRARY_PATH
 
9625
  ;;
 
9626
 
 
9627
freebsd1*)
 
9628
  dynamic_linker=no
 
9629
  ;;
 
9630
 
 
9631
freebsd* | dragonfly*)
 
9632
  # DragonFly does not have aout.  When/if they implement a new
 
9633
  # versioning mechanism, adjust this.
 
9634
  if test -x /usr/bin/objformat; then
 
9635
    objformat=`/usr/bin/objformat`
 
9636
  else
 
9637
    case $host_os in
 
9638
    freebsd[123]*) objformat=aout ;;
 
9639
    *) objformat=elf ;;
 
9640
    esac
 
9641
  fi
 
9642
  version_type=freebsd-$objformat
 
9643
  case $version_type in
 
9644
    freebsd-elf*)
 
9645
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9646
      need_version=no
 
9647
      need_lib_prefix=no
 
9648
      ;;
 
9649
    freebsd-*)
 
9650
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9651
      need_version=yes
 
9652
      ;;
 
9653
  esac
 
9654
  shlibpath_var=LD_LIBRARY_PATH
 
9655
  case $host_os in
 
9656
  freebsd2*)
 
9657
    shlibpath_overrides_runpath=yes
 
9658
    ;;
 
9659
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9660
    shlibpath_overrides_runpath=yes
 
9661
    hardcode_into_libs=yes
 
9662
    ;;
 
9663
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9664
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9665
    shlibpath_overrides_runpath=no
 
9666
    hardcode_into_libs=yes
 
9667
    ;;
 
9668
  *) # from 4.6 on, and DragonFly
 
9669
    shlibpath_overrides_runpath=yes
 
9670
    hardcode_into_libs=yes
 
9671
    ;;
 
9672
  esac
 
9673
  ;;
 
9674
 
 
9675
gnu*)
 
9676
  version_type=linux
 
9677
  need_lib_prefix=no
 
9678
  need_version=no
 
9679
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9680
  soname_spec='${libname}${release}${shared_ext}$major'
 
9681
  shlibpath_var=LD_LIBRARY_PATH
 
9682
  hardcode_into_libs=yes
 
9683
  ;;
 
9684
 
 
9685
hpux9* | hpux10* | hpux11*)
 
9686
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9687
  # link against other versions.
 
9688
  version_type=sunos
 
9689
  need_lib_prefix=no
 
9690
  need_version=no
 
9691
  case $host_cpu in
 
9692
  ia64*)
 
9693
    shrext_cmds='.so'
 
9694
    hardcode_into_libs=yes
 
9695
    dynamic_linker="$host_os dld.so"
 
9696
    shlibpath_var=LD_LIBRARY_PATH
 
9697
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9698
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9699
    soname_spec='${libname}${release}${shared_ext}$major'
 
9700
    if test "X$HPUX_IA64_MODE" = X32; then
 
9701
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9702
    else
 
9703
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9704
    fi
 
9705
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9706
    ;;
 
9707
   hppa*64*)
 
9708
     shrext_cmds='.sl'
 
9709
     hardcode_into_libs=yes
 
9710
     dynamic_linker="$host_os dld.sl"
 
9711
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9712
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9713
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9714
     soname_spec='${libname}${release}${shared_ext}$major'
 
9715
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9716
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9717
     ;;
 
9718
   *)
 
9719
    shrext_cmds='.sl'
 
9720
    dynamic_linker="$host_os dld.sl"
 
9721
    shlibpath_var=SHLIB_PATH
 
9722
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9723
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9724
    soname_spec='${libname}${release}${shared_ext}$major'
 
9725
    ;;
 
9726
  esac
 
9727
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9728
  postinstall_cmds='chmod 555 $lib'
 
9729
  ;;
 
9730
 
 
9731
interix[3-9]*)
 
9732
  version_type=linux
 
9733
  need_lib_prefix=no
 
9734
  need_version=no
 
9735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9736
  soname_spec='${libname}${release}${shared_ext}$major'
 
9737
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9738
  shlibpath_var=LD_LIBRARY_PATH
 
9739
  shlibpath_overrides_runpath=no
 
9740
  hardcode_into_libs=yes
 
9741
  ;;
 
9742
 
 
9743
irix5* | irix6* | nonstopux*)
 
9744
  case $host_os in
 
9745
    nonstopux*) version_type=nonstopux ;;
 
9746
    *)
 
9747
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9748
                version_type=linux
 
9749
        else
 
9750
                version_type=irix
 
9751
        fi ;;
 
9752
  esac
 
9753
  need_lib_prefix=no
 
9754
  need_version=no
 
9755
  soname_spec='${libname}${release}${shared_ext}$major'
 
9756
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9757
  case $host_os in
 
9758
  irix5* | nonstopux*)
 
9759
    libsuff= shlibsuff=
 
9760
    ;;
 
9761
  *)
 
9762
    case $LD in # libtool.m4 will add one of these switches to LD
 
9763
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9764
      libsuff= shlibsuff= libmagic=32-bit;;
 
9765
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9766
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9767
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9768
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9769
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9770
    esac
 
9771
    ;;
 
9772
  esac
 
9773
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9774
  shlibpath_overrides_runpath=no
 
9775
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9776
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9777
  hardcode_into_libs=yes
 
9778
  ;;
 
9779
 
 
9780
# No shared lib support for Linux oldld, aout, or coff.
 
9781
linux*oldld* | linux*aout* | linux*coff*)
 
9782
  dynamic_linker=no
 
9783
  ;;
 
9784
 
 
9785
# This must be Linux ELF.
 
9786
linux* | k*bsd*-gnu)
 
9787
  version_type=linux
 
9788
  need_lib_prefix=no
 
9789
  need_version=no
 
9790
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9791
  soname_spec='${libname}${release}${shared_ext}$major'
 
9792
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9793
  shlibpath_var=LD_LIBRARY_PATH
 
9794
  shlibpath_overrides_runpath=no
 
9795
  # This implies no fast_install, which is unacceptable.
 
9796
  # Some rework will be needed to allow for fast_install
 
9797
  # before this can be enabled.
 
9798
  hardcode_into_libs=yes
 
9799
 
 
9800
  # Append ld.so.conf contents to the search path
 
9801
  if test -f /etc/ld.so.conf; then
 
9802
    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' ' '`
 
9803
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9804
  fi
 
9805
 
 
9806
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9807
  # powerpc, because MkLinux only supported shared libraries with the
 
9808
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9809
  # most powerpc-linux boxes support dynamic linking these days and
 
9810
  # people can always --disable-shared, the test was removed, and we
 
9811
  # assume the GNU/Linux dynamic linker is in use.
 
9812
  dynamic_linker='GNU/Linux ld.so'
 
9813
  ;;
 
9814
 
 
9815
netbsdelf*-gnu)
 
9816
  version_type=linux
 
9817
  need_lib_prefix=no
 
9818
  need_version=no
 
9819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9820
  soname_spec='${libname}${release}${shared_ext}$major'
 
9821
  shlibpath_var=LD_LIBRARY_PATH
 
9822
  shlibpath_overrides_runpath=no
 
9823
  hardcode_into_libs=yes
 
9824
  dynamic_linker='NetBSD ld.elf_so'
 
9825
  ;;
 
9826
 
 
9827
netbsd*)
 
9828
  version_type=sunos
 
9829
  need_lib_prefix=no
 
9830
  need_version=no
 
9831
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9833
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9834
    dynamic_linker='NetBSD (a.out) ld.so'
 
9835
  else
 
9836
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9837
    soname_spec='${libname}${release}${shared_ext}$major'
 
9838
    dynamic_linker='NetBSD ld.elf_so'
 
9839
  fi
 
9840
  shlibpath_var=LD_LIBRARY_PATH
 
9841
  shlibpath_overrides_runpath=yes
 
9842
  hardcode_into_libs=yes
 
9843
  ;;
 
9844
 
 
9845
newsos6)
 
9846
  version_type=linux
 
9847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9848
  shlibpath_var=LD_LIBRARY_PATH
 
9849
  shlibpath_overrides_runpath=yes
 
9850
  ;;
 
9851
 
 
9852
nto-qnx*)
 
9853
  version_type=linux
 
9854
  need_lib_prefix=no
 
9855
  need_version=no
 
9856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9857
  soname_spec='${libname}${release}${shared_ext}$major'
 
9858
  shlibpath_var=LD_LIBRARY_PATH
 
9859
  shlibpath_overrides_runpath=yes
 
9860
  ;;
 
9861
 
 
9862
openbsd*)
 
9863
  version_type=sunos
 
9864
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9865
  need_lib_prefix=no
 
9866
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9867
  case $host_os in
 
9868
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9869
    *)                         need_version=no  ;;
 
9870
  esac
 
9871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9872
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9873
  shlibpath_var=LD_LIBRARY_PATH
 
9874
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9875
    case $host_os in
 
9876
      openbsd2.[89] | openbsd2.[89].*)
 
9877
        shlibpath_overrides_runpath=no
 
9878
        ;;
 
9879
      *)
 
9880
        shlibpath_overrides_runpath=yes
 
9881
        ;;
 
9882
      esac
 
9883
  else
 
9884
    shlibpath_overrides_runpath=yes
 
9885
  fi
 
9886
  ;;
 
9887
 
 
9888
os2*)
 
9889
  libname_spec='$name'
 
9890
  shrext_cmds=".dll"
 
9891
  need_lib_prefix=no
 
9892
  library_names_spec='$libname${shared_ext} $libname.a'
 
9893
  dynamic_linker='OS/2 ld.exe'
 
9894
  shlibpath_var=LIBPATH
 
9895
  ;;
 
9896
 
 
9897
osf3* | osf4* | osf5*)
 
9898
  version_type=osf
 
9899
  need_lib_prefix=no
 
9900
  need_version=no
 
9901
  soname_spec='${libname}${release}${shared_ext}$major'
 
9902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9903
  shlibpath_var=LD_LIBRARY_PATH
 
9904
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9905
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9906
  ;;
 
9907
 
 
9908
rdos*)
 
9909
  dynamic_linker=no
 
9910
  ;;
 
9911
 
 
9912
solaris*)
 
9913
  version_type=linux
 
9914
  need_lib_prefix=no
 
9915
  need_version=no
 
9916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9917
  soname_spec='${libname}${release}${shared_ext}$major'
 
9918
  shlibpath_var=LD_LIBRARY_PATH
 
9919
  shlibpath_overrides_runpath=yes
 
9920
  hardcode_into_libs=yes
 
9921
  # ldd complains unless libraries are executable
 
9922
  postinstall_cmds='chmod +x $lib'
 
9923
  ;;
 
9924
 
 
9925
sunos4*)
 
9926
  version_type=sunos
 
9927
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9928
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9929
  shlibpath_var=LD_LIBRARY_PATH
 
9930
  shlibpath_overrides_runpath=yes
 
9931
  if test "$with_gnu_ld" = yes; then
 
9932
    need_lib_prefix=no
 
9933
  fi
 
9934
  need_version=yes
 
9935
  ;;
 
9936
 
 
9937
sysv4 | sysv4.3*)
 
9938
  version_type=linux
 
9939
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9940
  soname_spec='${libname}${release}${shared_ext}$major'
 
9941
  shlibpath_var=LD_LIBRARY_PATH
 
9942
  case $host_vendor in
 
9943
    sni)
 
9944
      shlibpath_overrides_runpath=no
 
9945
      need_lib_prefix=no
 
9946
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9947
      runpath_var=LD_RUN_PATH
 
9948
      ;;
 
9949
    siemens)
 
9950
      need_lib_prefix=no
 
9951
      ;;
 
9952
    motorola)
 
9953
      need_lib_prefix=no
 
9954
      need_version=no
 
9955
      shlibpath_overrides_runpath=no
 
9956
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9957
      ;;
 
9958
  esac
 
9959
  ;;
 
9960
 
 
9961
sysv4*MP*)
 
9962
  if test -d /usr/nec ;then
 
9963
    version_type=linux
 
9964
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9965
    soname_spec='$libname${shared_ext}.$major'
 
9966
    shlibpath_var=LD_LIBRARY_PATH
 
9967
  fi
 
9968
  ;;
 
9969
 
 
9970
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9971
  version_type=freebsd-elf
 
9972
  need_lib_prefix=no
 
9973
  need_version=no
 
9974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9975
  soname_spec='${libname}${release}${shared_ext}$major'
 
9976
  shlibpath_var=LD_LIBRARY_PATH
 
9977
  hardcode_into_libs=yes
 
9978
  if test "$with_gnu_ld" = yes; then
 
9979
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9980
    shlibpath_overrides_runpath=no
 
9981
  else
 
9982
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9983
    shlibpath_overrides_runpath=yes
 
9984
    case $host_os in
 
9985
      sco3.2v5*)
 
9986
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9987
        ;;
 
9988
    esac
 
9989
  fi
 
9990
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9991
  ;;
 
9992
 
 
9993
uts4*)
 
9994
  version_type=linux
 
9995
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9996
  soname_spec='${libname}${release}${shared_ext}$major'
 
9997
  shlibpath_var=LD_LIBRARY_PATH
 
9998
  ;;
 
9999
 
 
10000
*)
 
10001
  dynamic_linker=no
 
10002
  ;;
 
10003
esac
 
10004
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10005
echo "${ECHO_T}$dynamic_linker" >&6; }
 
10006
test "$dynamic_linker" = no && can_build_shared=no
 
10007
 
 
10008
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10009
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10010
else
 
10011
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
10012
fi
 
10013
 
 
10014
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10015
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10016
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10017
else
 
10018
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
10019
fi
 
10020
 
 
10021
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10022
 
 
10023
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10024
if test "$GCC" = yes; then
 
10025
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10026
fi
 
10027
 
 
10028
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10029
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
10030
hardcode_action=
 
10031
if test -n "$hardcode_libdir_flag_spec" || \
 
10032
   test -n "$runpath_var" || \
 
10033
   test "X$hardcode_automatic" = "Xyes" ; then
 
10034
 
 
10035
  # We can hardcode non-existant directories.
 
10036
  if test "$hardcode_direct" != no &&
 
10037
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10038
     # have to relink, otherwise we might link with an installed library
 
10039
     # when we should be linking with a yet-to-be-installed one
 
10040
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10041
     test "$hardcode_minus_L" != no; then
 
10042
    # Linking always hardcodes the temporary library directory.
 
10043
    hardcode_action=relink
 
10044
  else
 
10045
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10046
    hardcode_action=immediate
 
10047
  fi
 
10048
else
 
10049
  # We cannot hardcode anything, or else we can only hardcode existing
 
10050
  # directories.
 
10051
  hardcode_action=unsupported
 
10052
fi
 
10053
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10054
echo "${ECHO_T}$hardcode_action" >&6; }
 
10055
 
 
10056
if test "$hardcode_action" = relink; then
 
10057
  # Fast installation is not supported
 
10058
  enable_fast_install=no
 
10059
elif test "$shlibpath_overrides_runpath" = yes ||
 
10060
     test "$enable_shared" = no; then
 
10061
  # Fast installation is not necessary
 
10062
  enable_fast_install=needless
 
10063
fi
 
10064
 
 
10065
striplib=
 
10066
old_striplib=
 
10067
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10068
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
10069
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10070
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10071
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10072
  { echo "$as_me:$LINENO: result: yes" >&5
 
10073
echo "${ECHO_T}yes" >&6; }
 
10074
else
 
10075
# FIXME - insert some real tests, host_os isn't really good enough
 
10076
  case $host_os in
 
10077
   darwin*)
 
10078
       if test -n "$STRIP" ; then
 
10079
         striplib="$STRIP -x"
 
10080
         old_striplib="$STRIP -S"
 
10081
         { echo "$as_me:$LINENO: result: yes" >&5
 
10082
echo "${ECHO_T}yes" >&6; }
 
10083
       else
 
10084
  { echo "$as_me:$LINENO: result: no" >&5
 
10085
echo "${ECHO_T}no" >&6; }
 
10086
fi
 
10087
       ;;
 
10088
   *)
 
10089
  { echo "$as_me:$LINENO: result: no" >&5
 
10090
echo "${ECHO_T}no" >&6; }
 
10091
    ;;
 
10092
  esac
 
10093
fi
 
10094
 
 
10095
if test "x$enable_dlopen" != xyes; then
 
10096
  enable_dlopen=unknown
 
10097
  enable_dlopen_self=unknown
 
10098
  enable_dlopen_self_static=unknown
 
10099
else
 
10100
  lt_cv_dlopen=no
 
10101
  lt_cv_dlopen_libs=
 
10102
 
 
10103
  case $host_os in
 
10104
  beos*)
 
10105
    lt_cv_dlopen="load_add_on"
 
10106
    lt_cv_dlopen_libs=
 
10107
    lt_cv_dlopen_self=yes
 
10108
    ;;
 
10109
 
 
10110
  mingw* | pw32*)
 
10111
    lt_cv_dlopen="LoadLibrary"
 
10112
    lt_cv_dlopen_libs=
 
10113
   ;;
 
10114
 
 
10115
  cygwin*)
 
10116
    lt_cv_dlopen="dlopen"
 
10117
    lt_cv_dlopen_libs=
 
10118
   ;;
 
10119
 
 
10120
  darwin*)
 
10121
  # if libdl is installed we need to link against it
 
10122
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10123
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10124
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10126
else
 
10127
  ac_check_lib_save_LIBS=$LIBS
 
10128
LIBS="-ldl  $LIBS"
 
10129
cat >conftest.$ac_ext <<_ACEOF
 
10130
/* confdefs.h.  */
 
10131
_ACEOF
 
10132
cat confdefs.h >>conftest.$ac_ext
 
10133
cat >>conftest.$ac_ext <<_ACEOF
 
10134
/* end confdefs.h.  */
 
10135
 
 
10136
/* Override any GCC internal prototype to avoid an error.
 
10137
   Use char because int might match the return type of a GCC
 
10138
   builtin and then its argument prototype would still apply.  */
 
10139
#ifdef __cplusplus
 
10140
extern "C"
 
10141
#endif
 
10142
char dlopen ();
 
10143
int
 
10144
main ()
 
10145
{
 
10146
return dlopen ();
 
10147
  ;
 
10148
  return 0;
 
10149
}
 
10150
_ACEOF
 
10151
rm -f conftest.$ac_objext conftest$ac_exeext
 
10152
if { (ac_try="$ac_link"
 
10153
case "(($ac_try" in
 
10154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10155
  *) ac_try_echo=$ac_try;;
 
10156
esac
 
10157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10158
  (eval "$ac_link") 2>conftest.er1
 
10159
  ac_status=$?
 
10160
  grep -v '^ *+' conftest.er1 >conftest.err
 
10161
  rm -f conftest.er1
 
10162
  cat conftest.err >&5
 
10163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10164
  (exit $ac_status); } && {
 
10165
         test -z "$ac_c_werror_flag" ||
 
10166
         test ! -s conftest.err
 
10167
       } && test -s conftest$ac_exeext &&
 
10168
       $as_test_x conftest$ac_exeext; then
 
10169
  ac_cv_lib_dl_dlopen=yes
 
10170
else
 
10171
  echo "$as_me: failed program was:" >&5
 
10172
sed 's/^/| /' conftest.$ac_ext >&5
 
10173
 
 
10174
        ac_cv_lib_dl_dlopen=no
 
10175
fi
 
10176
 
 
10177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10178
      conftest$ac_exeext conftest.$ac_ext
 
10179
LIBS=$ac_check_lib_save_LIBS
 
10180
fi
 
10181
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10182
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10183
if test $ac_cv_lib_dl_dlopen = yes; then
 
10184
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10185
else
 
10186
 
 
10187
    lt_cv_dlopen="dyld"
 
10188
    lt_cv_dlopen_libs=
 
10189
    lt_cv_dlopen_self=yes
 
10190
 
 
10191
fi
 
10192
 
 
10193
   ;;
 
10194
 
 
10195
  *)
 
10196
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
10197
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
10198
if test "${ac_cv_func_shl_load+set}" = set; then
 
10199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10200
else
 
10201
  cat >conftest.$ac_ext <<_ACEOF
 
10202
/* confdefs.h.  */
 
10203
_ACEOF
 
10204
cat confdefs.h >>conftest.$ac_ext
 
10205
cat >>conftest.$ac_ext <<_ACEOF
 
10206
/* end confdefs.h.  */
 
10207
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10208
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10209
#define shl_load innocuous_shl_load
 
10210
 
 
10211
/* System header to define __stub macros and hopefully few prototypes,
 
10212
    which can conflict with char shl_load (); below.
 
10213
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10214
    <limits.h> exists even on freestanding compilers.  */
 
10215
 
 
10216
#ifdef __STDC__
 
10217
# include <limits.h>
 
10218
#else
 
10219
# include <assert.h>
 
10220
#endif
 
10221
 
 
10222
#undef shl_load
 
10223
 
 
10224
/* Override any GCC internal prototype to avoid an error.
 
10225
   Use char because int might match the return type of a GCC
 
10226
   builtin and then its argument prototype would still apply.  */
 
10227
#ifdef __cplusplus
 
10228
extern "C"
 
10229
#endif
 
10230
char shl_load ();
 
10231
/* The GNU C library defines this for functions which it implements
 
10232
    to always fail with ENOSYS.  Some functions are actually named
 
10233
    something starting with __ and the normal name is an alias.  */
 
10234
#if defined __stub_shl_load || defined __stub___shl_load
 
10235
choke me
 
10236
#endif
 
10237
 
 
10238
int
 
10239
main ()
 
10240
{
 
10241
return shl_load ();
 
10242
  ;
 
10243
  return 0;
 
10244
}
 
10245
_ACEOF
 
10246
rm -f conftest.$ac_objext conftest$ac_exeext
 
10247
if { (ac_try="$ac_link"
 
10248
case "(($ac_try" in
 
10249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10250
  *) ac_try_echo=$ac_try;;
 
10251
esac
 
10252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10253
  (eval "$ac_link") 2>conftest.er1
 
10254
  ac_status=$?
 
10255
  grep -v '^ *+' conftest.er1 >conftest.err
 
10256
  rm -f conftest.er1
 
10257
  cat conftest.err >&5
 
10258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10259
  (exit $ac_status); } && {
 
10260
         test -z "$ac_c_werror_flag" ||
 
10261
         test ! -s conftest.err
 
10262
       } && test -s conftest$ac_exeext &&
 
10263
       $as_test_x conftest$ac_exeext; then
 
10264
  ac_cv_func_shl_load=yes
 
10265
else
 
10266
  echo "$as_me: failed program was:" >&5
 
10267
sed 's/^/| /' conftest.$ac_ext >&5
 
10268
 
 
10269
        ac_cv_func_shl_load=no
 
10270
fi
 
10271
 
 
10272
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10273
      conftest$ac_exeext conftest.$ac_ext
 
10274
fi
 
10275
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10276
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
10277
if test $ac_cv_func_shl_load = yes; then
 
10278
  lt_cv_dlopen="shl_load"
 
10279
else
 
10280
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10281
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
10282
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10284
else
 
10285
  ac_check_lib_save_LIBS=$LIBS
 
10286
LIBS="-ldld  $LIBS"
 
10287
cat >conftest.$ac_ext <<_ACEOF
 
10288
/* confdefs.h.  */
 
10289
_ACEOF
 
10290
cat confdefs.h >>conftest.$ac_ext
 
10291
cat >>conftest.$ac_ext <<_ACEOF
 
10292
/* end confdefs.h.  */
 
10293
 
 
10294
/* Override any GCC internal prototype to avoid an error.
 
10295
   Use char because int might match the return type of a GCC
 
10296
   builtin and then its argument prototype would still apply.  */
 
10297
#ifdef __cplusplus
 
10298
extern "C"
 
10299
#endif
 
10300
char shl_load ();
 
10301
int
 
10302
main ()
 
10303
{
 
10304
return shl_load ();
 
10305
  ;
 
10306
  return 0;
 
10307
}
 
10308
_ACEOF
 
10309
rm -f conftest.$ac_objext conftest$ac_exeext
 
10310
if { (ac_try="$ac_link"
 
10311
case "(($ac_try" in
 
10312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10313
  *) ac_try_echo=$ac_try;;
 
10314
esac
 
10315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10316
  (eval "$ac_link") 2>conftest.er1
 
10317
  ac_status=$?
 
10318
  grep -v '^ *+' conftest.er1 >conftest.err
 
10319
  rm -f conftest.er1
 
10320
  cat conftest.err >&5
 
10321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10322
  (exit $ac_status); } && {
 
10323
         test -z "$ac_c_werror_flag" ||
 
10324
         test ! -s conftest.err
 
10325
       } && test -s conftest$ac_exeext &&
 
10326
       $as_test_x conftest$ac_exeext; then
 
10327
  ac_cv_lib_dld_shl_load=yes
 
10328
else
 
10329
  echo "$as_me: failed program was:" >&5
 
10330
sed 's/^/| /' conftest.$ac_ext >&5
 
10331
 
 
10332
        ac_cv_lib_dld_shl_load=no
 
10333
fi
 
10334
 
 
10335
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10336
      conftest$ac_exeext conftest.$ac_ext
 
10337
LIBS=$ac_check_lib_save_LIBS
 
10338
fi
 
10339
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10340
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10341
if test $ac_cv_lib_dld_shl_load = yes; then
 
10342
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10343
else
 
10344
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10345
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10346
if test "${ac_cv_func_dlopen+set}" = set; then
 
10347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10348
else
 
10349
  cat >conftest.$ac_ext <<_ACEOF
 
10350
/* confdefs.h.  */
 
10351
_ACEOF
 
10352
cat confdefs.h >>conftest.$ac_ext
 
10353
cat >>conftest.$ac_ext <<_ACEOF
 
10354
/* end confdefs.h.  */
 
10355
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10356
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10357
#define dlopen innocuous_dlopen
 
10358
 
 
10359
/* System header to define __stub macros and hopefully few prototypes,
 
10360
    which can conflict with char dlopen (); below.
 
10361
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10362
    <limits.h> exists even on freestanding compilers.  */
 
10363
 
 
10364
#ifdef __STDC__
 
10365
# include <limits.h>
 
10366
#else
 
10367
# include <assert.h>
 
10368
#endif
 
10369
 
 
10370
#undef dlopen
 
10371
 
 
10372
/* Override any GCC internal prototype to avoid an error.
 
10373
   Use char because int might match the return type of a GCC
 
10374
   builtin and then its argument prototype would still apply.  */
 
10375
#ifdef __cplusplus
 
10376
extern "C"
 
10377
#endif
 
10378
char dlopen ();
 
10379
/* The GNU C library defines this for functions which it implements
 
10380
    to always fail with ENOSYS.  Some functions are actually named
 
10381
    something starting with __ and the normal name is an alias.  */
 
10382
#if defined __stub_dlopen || defined __stub___dlopen
 
10383
choke me
 
10384
#endif
 
10385
 
 
10386
int
 
10387
main ()
 
10388
{
 
10389
return dlopen ();
 
10390
  ;
 
10391
  return 0;
 
10392
}
 
10393
_ACEOF
 
10394
rm -f conftest.$ac_objext conftest$ac_exeext
 
10395
if { (ac_try="$ac_link"
 
10396
case "(($ac_try" in
 
10397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10398
  *) ac_try_echo=$ac_try;;
 
10399
esac
 
10400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10401
  (eval "$ac_link") 2>conftest.er1
 
10402
  ac_status=$?
 
10403
  grep -v '^ *+' conftest.er1 >conftest.err
 
10404
  rm -f conftest.er1
 
10405
  cat conftest.err >&5
 
10406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10407
  (exit $ac_status); } && {
 
10408
         test -z "$ac_c_werror_flag" ||
 
10409
         test ! -s conftest.err
 
10410
       } && test -s conftest$ac_exeext &&
 
10411
       $as_test_x conftest$ac_exeext; then
 
10412
  ac_cv_func_dlopen=yes
 
10413
else
 
10414
  echo "$as_me: failed program was:" >&5
 
10415
sed 's/^/| /' conftest.$ac_ext >&5
 
10416
 
 
10417
        ac_cv_func_dlopen=no
 
10418
fi
 
10419
 
 
10420
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10421
      conftest$ac_exeext conftest.$ac_ext
 
10422
fi
 
10423
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10424
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10425
if test $ac_cv_func_dlopen = yes; then
 
10426
  lt_cv_dlopen="dlopen"
 
10427
else
 
10428
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10429
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10430
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10432
else
 
10433
  ac_check_lib_save_LIBS=$LIBS
 
10434
LIBS="-ldl  $LIBS"
 
10435
cat >conftest.$ac_ext <<_ACEOF
 
10436
/* confdefs.h.  */
 
10437
_ACEOF
 
10438
cat confdefs.h >>conftest.$ac_ext
 
10439
cat >>conftest.$ac_ext <<_ACEOF
 
10440
/* end confdefs.h.  */
 
10441
 
 
10442
/* Override any GCC internal prototype to avoid an error.
 
10443
   Use char because int might match the return type of a GCC
 
10444
   builtin and then its argument prototype would still apply.  */
 
10445
#ifdef __cplusplus
 
10446
extern "C"
 
10447
#endif
 
10448
char dlopen ();
 
10449
int
 
10450
main ()
 
10451
{
 
10452
return dlopen ();
 
10453
  ;
 
10454
  return 0;
 
10455
}
 
10456
_ACEOF
 
10457
rm -f conftest.$ac_objext conftest$ac_exeext
 
10458
if { (ac_try="$ac_link"
 
10459
case "(($ac_try" in
 
10460
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10461
  *) ac_try_echo=$ac_try;;
 
10462
esac
 
10463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10464
  (eval "$ac_link") 2>conftest.er1
 
10465
  ac_status=$?
 
10466
  grep -v '^ *+' conftest.er1 >conftest.err
 
10467
  rm -f conftest.er1
 
10468
  cat conftest.err >&5
 
10469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10470
  (exit $ac_status); } && {
 
10471
         test -z "$ac_c_werror_flag" ||
 
10472
         test ! -s conftest.err
 
10473
       } && test -s conftest$ac_exeext &&
 
10474
       $as_test_x conftest$ac_exeext; then
 
10475
  ac_cv_lib_dl_dlopen=yes
 
10476
else
 
10477
  echo "$as_me: failed program was:" >&5
 
10478
sed 's/^/| /' conftest.$ac_ext >&5
 
10479
 
 
10480
        ac_cv_lib_dl_dlopen=no
 
10481
fi
 
10482
 
 
10483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10484
      conftest$ac_exeext conftest.$ac_ext
 
10485
LIBS=$ac_check_lib_save_LIBS
 
10486
fi
 
10487
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10488
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10489
if test $ac_cv_lib_dl_dlopen = yes; then
 
10490
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10491
else
 
10492
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10493
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10494
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10495
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10496
else
 
10497
  ac_check_lib_save_LIBS=$LIBS
 
10498
LIBS="-lsvld  $LIBS"
 
10499
cat >conftest.$ac_ext <<_ACEOF
 
10500
/* confdefs.h.  */
 
10501
_ACEOF
 
10502
cat confdefs.h >>conftest.$ac_ext
 
10503
cat >>conftest.$ac_ext <<_ACEOF
 
10504
/* end confdefs.h.  */
 
10505
 
 
10506
/* Override any GCC internal prototype to avoid an error.
 
10507
   Use char because int might match the return type of a GCC
 
10508
   builtin and then its argument prototype would still apply.  */
 
10509
#ifdef __cplusplus
 
10510
extern "C"
 
10511
#endif
 
10512
char dlopen ();
 
10513
int
 
10514
main ()
 
10515
{
 
10516
return dlopen ();
 
10517
  ;
 
10518
  return 0;
 
10519
}
 
10520
_ACEOF
 
10521
rm -f conftest.$ac_objext conftest$ac_exeext
 
10522
if { (ac_try="$ac_link"
 
10523
case "(($ac_try" in
 
10524
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10525
  *) ac_try_echo=$ac_try;;
 
10526
esac
 
10527
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10528
  (eval "$ac_link") 2>conftest.er1
 
10529
  ac_status=$?
 
10530
  grep -v '^ *+' conftest.er1 >conftest.err
 
10531
  rm -f conftest.er1
 
10532
  cat conftest.err >&5
 
10533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10534
  (exit $ac_status); } && {
 
10535
         test -z "$ac_c_werror_flag" ||
 
10536
         test ! -s conftest.err
 
10537
       } && test -s conftest$ac_exeext &&
 
10538
       $as_test_x conftest$ac_exeext; then
 
10539
  ac_cv_lib_svld_dlopen=yes
 
10540
else
 
10541
  echo "$as_me: failed program was:" >&5
 
10542
sed 's/^/| /' conftest.$ac_ext >&5
 
10543
 
 
10544
        ac_cv_lib_svld_dlopen=no
 
10545
fi
 
10546
 
 
10547
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10548
      conftest$ac_exeext conftest.$ac_ext
 
10549
LIBS=$ac_check_lib_save_LIBS
 
10550
fi
 
10551
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10552
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10553
if test $ac_cv_lib_svld_dlopen = yes; then
 
10554
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10555
else
 
10556
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10557
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10558
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10560
else
 
10561
  ac_check_lib_save_LIBS=$LIBS
 
10562
LIBS="-ldld  $LIBS"
 
10563
cat >conftest.$ac_ext <<_ACEOF
 
10564
/* confdefs.h.  */
 
10565
_ACEOF
 
10566
cat confdefs.h >>conftest.$ac_ext
 
10567
cat >>conftest.$ac_ext <<_ACEOF
 
10568
/* end confdefs.h.  */
 
10569
 
 
10570
/* Override any GCC internal prototype to avoid an error.
 
10571
   Use char because int might match the return type of a GCC
 
10572
   builtin and then its argument prototype would still apply.  */
 
10573
#ifdef __cplusplus
 
10574
extern "C"
 
10575
#endif
 
10576
char dld_link ();
 
10577
int
 
10578
main ()
 
10579
{
 
10580
return dld_link ();
 
10581
  ;
 
10582
  return 0;
 
10583
}
 
10584
_ACEOF
 
10585
rm -f conftest.$ac_objext conftest$ac_exeext
 
10586
if { (ac_try="$ac_link"
 
10587
case "(($ac_try" in
 
10588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10589
  *) ac_try_echo=$ac_try;;
 
10590
esac
 
10591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10592
  (eval "$ac_link") 2>conftest.er1
 
10593
  ac_status=$?
 
10594
  grep -v '^ *+' conftest.er1 >conftest.err
 
10595
  rm -f conftest.er1
 
10596
  cat conftest.err >&5
 
10597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10598
  (exit $ac_status); } && {
 
10599
         test -z "$ac_c_werror_flag" ||
 
10600
         test ! -s conftest.err
 
10601
       } && test -s conftest$ac_exeext &&
 
10602
       $as_test_x conftest$ac_exeext; then
 
10603
  ac_cv_lib_dld_dld_link=yes
 
10604
else
 
10605
  echo "$as_me: failed program was:" >&5
 
10606
sed 's/^/| /' conftest.$ac_ext >&5
 
10607
 
 
10608
        ac_cv_lib_dld_dld_link=no
 
10609
fi
 
10610
 
 
10611
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10612
      conftest$ac_exeext conftest.$ac_ext
 
10613
LIBS=$ac_check_lib_save_LIBS
 
10614
fi
 
10615
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10616
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10617
if test $ac_cv_lib_dld_dld_link = yes; then
 
10618
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10619
fi
 
10620
 
 
10621
 
 
10622
fi
 
10623
 
 
10624
 
 
10625
fi
 
10626
 
 
10627
 
 
10628
fi
 
10629
 
 
10630
 
 
10631
fi
 
10632
 
 
10633
 
 
10634
fi
 
10635
 
 
10636
    ;;
 
10637
  esac
 
10638
 
 
10639
  if test "x$lt_cv_dlopen" != xno; then
 
10640
    enable_dlopen=yes
 
10641
  else
 
10642
    enable_dlopen=no
 
10643
  fi
 
10644
 
 
10645
  case $lt_cv_dlopen in
 
10646
  dlopen)
 
10647
    save_CPPFLAGS="$CPPFLAGS"
 
10648
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10649
 
 
10650
    save_LDFLAGS="$LDFLAGS"
 
10651
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10652
 
 
10653
    save_LIBS="$LIBS"
 
10654
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10655
 
 
10656
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10657
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10658
if test "${lt_cv_dlopen_self+set}" = set; then
 
10659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10660
else
 
10661
          if test "$cross_compiling" = yes; then :
 
10662
  lt_cv_dlopen_self=cross
 
10663
else
 
10664
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10665
  lt_status=$lt_dlunknown
 
10666
  cat > conftest.$ac_ext <<EOF
 
10667
#line 10667 "configure"
 
10668
#include "confdefs.h"
 
10669
 
 
10670
#if HAVE_DLFCN_H
 
10671
#include <dlfcn.h>
 
10672
#endif
 
10673
 
 
10674
#include <stdio.h>
 
10675
 
 
10676
#ifdef RTLD_GLOBAL
 
10677
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10678
#else
 
10679
#  ifdef DL_GLOBAL
 
10680
#    define LT_DLGLOBAL         DL_GLOBAL
 
10681
#  else
 
10682
#    define LT_DLGLOBAL         0
 
10683
#  endif
 
10684
#endif
 
10685
 
 
10686
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10687
   find out it does not work in some platform. */
 
10688
#ifndef LT_DLLAZY_OR_NOW
 
10689
#  ifdef RTLD_LAZY
 
10690
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10691
#  else
 
10692
#    ifdef DL_LAZY
 
10693
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10694
#    else
 
10695
#      ifdef RTLD_NOW
 
10696
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10697
#      else
 
10698
#        ifdef DL_NOW
 
10699
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10700
#        else
 
10701
#          define LT_DLLAZY_OR_NOW      0
 
10702
#        endif
 
10703
#      endif
 
10704
#    endif
 
10705
#  endif
 
10706
#endif
 
10707
 
 
10708
#ifdef __cplusplus
 
10709
extern "C" void exit (int);
 
10710
#endif
 
10711
 
 
10712
void fnord() { int i=42;}
 
10713
int main ()
 
10714
{
 
10715
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10716
  int status = $lt_dlunknown;
 
10717
 
 
10718
  if (self)
 
10719
    {
 
10720
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10721
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10722
      /* dlclose (self); */
 
10723
    }
 
10724
  else
 
10725
    puts (dlerror ());
 
10726
 
 
10727
    exit (status);
 
10728
}
 
10729
EOF
 
10730
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10731
  (eval $ac_link) 2>&5
 
10732
  ac_status=$?
 
10733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10734
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10735
    (./conftest; exit; ) >&5 2>/dev/null
 
10736
    lt_status=$?
 
10737
    case x$lt_status in
 
10738
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10739
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10740
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10741
    esac
 
10742
  else :
 
10743
    # compilation failed
 
10744
    lt_cv_dlopen_self=no
 
10745
  fi
 
10746
fi
 
10747
rm -fr conftest*
 
10748
 
 
10749
 
 
10750
fi
 
10751
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10752
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10753
 
 
10754
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10755
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10756
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10757
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10758
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10760
else
 
10761
          if test "$cross_compiling" = yes; then :
 
10762
  lt_cv_dlopen_self_static=cross
 
10763
else
 
10764
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10765
  lt_status=$lt_dlunknown
 
10766
  cat > conftest.$ac_ext <<EOF
 
10767
#line 10767 "configure"
 
10768
#include "confdefs.h"
 
10769
 
 
10770
#if HAVE_DLFCN_H
 
10771
#include <dlfcn.h>
 
10772
#endif
 
10773
 
 
10774
#include <stdio.h>
 
10775
 
 
10776
#ifdef RTLD_GLOBAL
 
10777
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10778
#else
 
10779
#  ifdef DL_GLOBAL
 
10780
#    define LT_DLGLOBAL         DL_GLOBAL
 
10781
#  else
 
10782
#    define LT_DLGLOBAL         0
 
10783
#  endif
 
10784
#endif
 
10785
 
 
10786
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10787
   find out it does not work in some platform. */
 
10788
#ifndef LT_DLLAZY_OR_NOW
 
10789
#  ifdef RTLD_LAZY
 
10790
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10791
#  else
 
10792
#    ifdef DL_LAZY
 
10793
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10794
#    else
 
10795
#      ifdef RTLD_NOW
 
10796
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10797
#      else
 
10798
#        ifdef DL_NOW
 
10799
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10800
#        else
 
10801
#          define LT_DLLAZY_OR_NOW      0
 
10802
#        endif
 
10803
#      endif
 
10804
#    endif
 
10805
#  endif
 
10806
#endif
 
10807
 
 
10808
#ifdef __cplusplus
 
10809
extern "C" void exit (int);
 
10810
#endif
 
10811
 
 
10812
void fnord() { int i=42;}
 
10813
int main ()
 
10814
{
 
10815
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10816
  int status = $lt_dlunknown;
 
10817
 
 
10818
  if (self)
 
10819
    {
 
10820
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10821
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10822
      /* dlclose (self); */
 
10823
    }
 
10824
  else
 
10825
    puts (dlerror ());
 
10826
 
 
10827
    exit (status);
 
10828
}
 
10829
EOF
 
10830
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10831
  (eval $ac_link) 2>&5
 
10832
  ac_status=$?
 
10833
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10834
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10835
    (./conftest; exit; ) >&5 2>/dev/null
 
10836
    lt_status=$?
 
10837
    case x$lt_status in
 
10838
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10839
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10840
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10841
    esac
 
10842
  else :
 
10843
    # compilation failed
 
10844
    lt_cv_dlopen_self_static=no
 
10845
  fi
 
10846
fi
 
10847
rm -fr conftest*
 
10848
 
 
10849
 
 
10850
fi
 
10851
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10852
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10853
    fi
 
10854
 
 
10855
    CPPFLAGS="$save_CPPFLAGS"
 
10856
    LDFLAGS="$save_LDFLAGS"
 
10857
    LIBS="$save_LIBS"
 
10858
    ;;
 
10859
  esac
 
10860
 
 
10861
  case $lt_cv_dlopen_self in
 
10862
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10863
  *) enable_dlopen_self=unknown ;;
 
10864
  esac
 
10865
 
 
10866
  case $lt_cv_dlopen_self_static in
 
10867
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10868
  *) enable_dlopen_self_static=unknown ;;
 
10869
  esac
 
10870
fi
 
10871
 
 
10872
 
 
10873
# Report which library types will actually be built
 
10874
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10875
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10876
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10877
echo "${ECHO_T}$can_build_shared" >&6; }
 
10878
 
 
10879
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10880
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10881
test "$can_build_shared" = "no" && enable_shared=no
 
10882
 
 
10883
# On AIX, shared libraries and static libraries use the same namespace, and
 
10884
# are all built from PIC.
 
10885
case $host_os in
 
10886
aix3*)
 
10887
  test "$enable_shared" = yes && enable_static=no
 
10888
  if test -n "$RANLIB"; then
 
10889
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10890
    postinstall_cmds='$RANLIB $lib'
 
10891
  fi
 
10892
  ;;
 
10893
 
 
10894
aix[4-9]*)
 
10895
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10896
    test "$enable_shared" = yes && enable_static=no
 
10897
  fi
 
10898
    ;;
 
10899
esac
 
10900
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10901
echo "${ECHO_T}$enable_shared" >&6; }
 
10902
 
 
10903
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10904
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10905
# Make sure either enable_shared or enable_static is yes.
 
10906
test "$enable_shared" = yes || enable_static=yes
 
10907
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10908
echo "${ECHO_T}$enable_static" >&6; }
 
10909
 
 
10910
# The else clause should only fire when bootstrapping the
 
10911
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10912
# with your package, and you will get complaints that there are
 
10913
# no rules to generate ltmain.sh.
 
10914
if test -f "$ltmain"; then
 
10915
  # See if we are running on zsh, and set the options which allow our commands through
 
10916
  # without removal of \ escapes.
 
10917
  if test -n "${ZSH_VERSION+set}" ; then
 
10918
    setopt NO_GLOB_SUBST
 
10919
  fi
 
10920
  # Now quote all the things that may contain metacharacters while being
 
10921
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10922
  # variables and quote the copies for generation of the libtool script.
 
10923
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10924
    SED SHELL STRIP \
 
10925
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10926
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10927
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10928
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10929
    lt_cv_sys_global_symbol_to_c_name_address \
 
10930
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10931
    old_postinstall_cmds old_postuninstall_cmds \
 
10932
    compiler \
 
10933
    CC \
 
10934
    LD \
 
10935
    lt_prog_compiler_wl \
 
10936
    lt_prog_compiler_pic \
 
10937
    lt_prog_compiler_static \
 
10938
    lt_prog_compiler_no_builtin_flag \
 
10939
    export_dynamic_flag_spec \
 
10940
    thread_safe_flag_spec \
 
10941
    whole_archive_flag_spec \
 
10942
    enable_shared_with_static_runtimes \
 
10943
    old_archive_cmds \
 
10944
    old_archive_from_new_cmds \
 
10945
    predep_objects \
 
10946
    postdep_objects \
 
10947
    predeps \
 
10948
    postdeps \
 
10949
    compiler_lib_search_path \
 
10950
    compiler_lib_search_dirs \
 
10951
    archive_cmds \
 
10952
    archive_expsym_cmds \
 
10953
    postinstall_cmds \
 
10954
    postuninstall_cmds \
 
10955
    old_archive_from_expsyms_cmds \
 
10956
    allow_undefined_flag \
 
10957
    no_undefined_flag \
 
10958
    export_symbols_cmds \
 
10959
    hardcode_libdir_flag_spec \
 
10960
    hardcode_libdir_flag_spec_ld \
 
10961
    hardcode_libdir_separator \
 
10962
    hardcode_automatic \
 
10963
    module_cmds \
 
10964
    module_expsym_cmds \
 
10965
    lt_cv_prog_compiler_c_o \
 
10966
    fix_srcfile_path \
 
10967
    exclude_expsyms \
 
10968
    include_expsyms; do
 
10969
 
 
10970
    case $var in
 
10971
    old_archive_cmds | \
 
10972
    old_archive_from_new_cmds | \
 
10973
    archive_cmds | \
 
10974
    archive_expsym_cmds | \
 
10975
    module_cmds | \
 
10976
    module_expsym_cmds | \
 
10977
    old_archive_from_expsyms_cmds | \
 
10978
    export_symbols_cmds | \
 
10979
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10980
    postinstall_cmds | postuninstall_cmds | \
 
10981
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10982
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10983
      # Double-quote double-evaled strings.
 
10984
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10985
      ;;
 
10986
    *)
 
10987
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10988
      ;;
 
10989
    esac
 
10990
  done
 
10991
 
 
10992
  case $lt_echo in
 
10993
  *'\$0 --fallback-echo"')
 
10994
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10995
    ;;
 
10996
  esac
 
10997
 
 
10998
cfgfile="${ofile}T"
 
10999
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11000
  $rm -f "$cfgfile"
 
11001
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11002
echo "$as_me: creating $ofile" >&6;}
 
11003
 
 
11004
  cat <<__EOF__ >> "$cfgfile"
 
11005
#! $SHELL
 
11006
 
 
11007
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11008
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11009
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11010
#
 
11011
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
11012
# Free Software Foundation, Inc.
 
11013
#
 
11014
# This file is part of GNU Libtool:
 
11015
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11016
#
 
11017
# This program is free software; you can redistribute it and/or modify
 
11018
# it under the terms of the GNU General Public License as published by
 
11019
# the Free Software Foundation; either version 2 of the License, or
 
11020
# (at your option) any later version.
 
11021
#
 
11022
# This program is distributed in the hope that it will be useful, but
 
11023
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11024
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11025
# General Public License for more details.
 
11026
#
 
11027
# You should have received a copy of the GNU General Public License
 
11028
# along with this program; if not, write to the Free Software
 
11029
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11030
#
 
11031
# As a special exception to the GNU General Public License, if you
 
11032
# distribute this file as part of a program that contains a
 
11033
# configuration script generated by Autoconf, you may include it under
 
11034
# the same distribution terms that you use for the rest of that program.
 
11035
 
 
11036
# A sed program that does not truncate output.
 
11037
SED=$lt_SED
 
11038
 
 
11039
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11040
Xsed="$SED -e 1s/^X//"
 
11041
 
 
11042
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11043
# if CDPATH is set.
 
11044
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11045
 
 
11046
# The names of the tagged configurations supported by this script.
 
11047
available_tags=
 
11048
 
 
11049
# ### BEGIN LIBTOOL CONFIG
 
11050
 
 
11051
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11052
 
 
11053
# Shell to use when invoking shell scripts.
 
11054
SHELL=$lt_SHELL
 
11055
 
 
11056
# Whether or not to build shared libraries.
 
11057
build_libtool_libs=$enable_shared
 
11058
 
 
11059
# Whether or not to build static libraries.
 
11060
build_old_libs=$enable_static
 
11061
 
 
11062
# Whether or not to add -lc for building shared libraries.
 
11063
build_libtool_need_lc=$archive_cmds_need_lc
 
11064
 
 
11065
# Whether or not to disallow shared libs when runtime libs are static
 
11066
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11067
 
 
11068
# Whether or not to optimize for fast installation.
 
11069
fast_install=$enable_fast_install
 
11070
 
 
11071
# The host system.
 
11072
host_alias=$host_alias
 
11073
host=$host
 
11074
host_os=$host_os
 
11075
 
 
11076
# The build system.
 
11077
build_alias=$build_alias
 
11078
build=$build
 
11079
build_os=$build_os
 
11080
 
 
11081
# An echo program that does not interpret backslashes.
 
11082
echo=$lt_echo
 
11083
 
 
11084
# The archiver.
 
11085
AR=$lt_AR
 
11086
AR_FLAGS=$lt_AR_FLAGS
 
11087
 
 
11088
# A C compiler.
 
11089
LTCC=$lt_LTCC
 
11090
 
 
11091
# LTCC compiler flags.
 
11092
LTCFLAGS=$lt_LTCFLAGS
 
11093
 
 
11094
# A language-specific compiler.
 
11095
CC=$lt_compiler
 
11096
 
 
11097
# Is the compiler the GNU C compiler?
 
11098
with_gcc=$GCC
 
11099
 
 
11100
# An ERE matcher.
 
11101
EGREP=$lt_EGREP
 
11102
 
 
11103
# The linker used to build libraries.
 
11104
LD=$lt_LD
 
11105
 
 
11106
# Whether we need hard or soft links.
 
11107
LN_S=$lt_LN_S
 
11108
 
 
11109
# A BSD-compatible nm program.
 
11110
NM=$lt_NM
 
11111
 
 
11112
# A symbol stripping program
 
11113
STRIP=$lt_STRIP
 
11114
 
 
11115
# Used to examine libraries when file_magic_cmd begins "file"
 
11116
MAGIC_CMD=$MAGIC_CMD
 
11117
 
 
11118
# Used on cygwin: DLL creation program.
 
11119
DLLTOOL="$DLLTOOL"
 
11120
 
 
11121
# Used on cygwin: object dumper.
 
11122
OBJDUMP="$OBJDUMP"
 
11123
 
 
11124
# Used on cygwin: assembler.
 
11125
AS="$AS"
 
11126
 
 
11127
# The name of the directory that contains temporary libtool files.
 
11128
objdir=$objdir
 
11129
 
 
11130
# How to create reloadable object files.
 
11131
reload_flag=$lt_reload_flag
 
11132
reload_cmds=$lt_reload_cmds
 
11133
 
 
11134
# How to pass a linker flag through the compiler.
 
11135
wl=$lt_lt_prog_compiler_wl
 
11136
 
 
11137
# Object file suffix (normally "o").
 
11138
objext="$ac_objext"
 
11139
 
 
11140
# Old archive suffix (normally "a").
 
11141
libext="$libext"
 
11142
 
 
11143
# Shared library suffix (normally ".so").
 
11144
shrext_cmds='$shrext_cmds'
 
11145
 
 
11146
# Executable file suffix (normally "").
 
11147
exeext="$exeext"
 
11148
 
 
11149
# Additional compiler flags for building library objects.
 
11150
pic_flag=$lt_lt_prog_compiler_pic
 
11151
pic_mode=$pic_mode
 
11152
 
 
11153
# What is the maximum length of a command?
 
11154
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11155
 
 
11156
# Does compiler simultaneously support -c and -o options?
 
11157
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11158
 
 
11159
# Must we lock files when doing compilation?
 
11160
need_locks=$lt_need_locks
 
11161
 
 
11162
# Do we need the lib prefix for modules?
 
11163
need_lib_prefix=$need_lib_prefix
 
11164
 
 
11165
# Do we need a version for libraries?
 
11166
need_version=$need_version
 
11167
 
 
11168
# Whether dlopen is supported.
 
11169
dlopen_support=$enable_dlopen
 
11170
 
 
11171
# Whether dlopen of programs is supported.
 
11172
dlopen_self=$enable_dlopen_self
 
11173
 
 
11174
# Whether dlopen of statically linked programs is supported.
 
11175
dlopen_self_static=$enable_dlopen_self_static
 
11176
 
 
11177
# Compiler flag to prevent dynamic linking.
 
11178
link_static_flag=$lt_lt_prog_compiler_static
 
11179
 
 
11180
# Compiler flag to turn off builtin functions.
 
11181
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11182
 
 
11183
# Compiler flag to allow reflexive dlopens.
 
11184
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11185
 
 
11186
# Compiler flag to generate shared objects directly from archives.
 
11187
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11188
 
 
11189
# Compiler flag to generate thread-safe objects.
 
11190
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11191
 
 
11192
# Library versioning type.
 
11193
version_type=$version_type
 
11194
 
 
11195
# Format of library name prefix.
 
11196
libname_spec=$lt_libname_spec
 
11197
 
 
11198
# List of archive names.  First name is the real one, the rest are links.
 
11199
# The last name is the one that the linker finds with -lNAME.
 
11200
library_names_spec=$lt_library_names_spec
 
11201
 
 
11202
# The coded name of the library, if different from the real name.
 
11203
soname_spec=$lt_soname_spec
 
11204
 
 
11205
# Commands used to build and install an old-style archive.
 
11206
RANLIB=$lt_RANLIB
 
11207
old_archive_cmds=$lt_old_archive_cmds
 
11208
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11209
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11210
 
 
11211
# Create an old-style archive from a shared archive.
 
11212
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11213
 
 
11214
# Create a temporary old-style archive to link instead of a shared archive.
 
11215
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11216
 
 
11217
# Commands used to build and install a shared archive.
 
11218
archive_cmds=$lt_archive_cmds
 
11219
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11220
postinstall_cmds=$lt_postinstall_cmds
 
11221
postuninstall_cmds=$lt_postuninstall_cmds
 
11222
 
 
11223
# Commands used to build a loadable module (assumed same as above if empty)
 
11224
module_cmds=$lt_module_cmds
 
11225
module_expsym_cmds=$lt_module_expsym_cmds
 
11226
 
 
11227
# Commands to strip libraries.
 
11228
old_striplib=$lt_old_striplib
 
11229
striplib=$lt_striplib
 
11230
 
 
11231
# Dependencies to place before the objects being linked to create a
 
11232
# shared library.
 
11233
predep_objects=$lt_predep_objects
 
11234
 
 
11235
# Dependencies to place after the objects being linked to create a
 
11236
# shared library.
 
11237
postdep_objects=$lt_postdep_objects
 
11238
 
 
11239
# Dependencies to place before the objects being linked to create a
 
11240
# shared library.
 
11241
predeps=$lt_predeps
 
11242
 
 
11243
# Dependencies to place after the objects being linked to create a
 
11244
# shared library.
 
11245
postdeps=$lt_postdeps
 
11246
 
 
11247
# The directories searched by this compiler when creating a shared
 
11248
# library
 
11249
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11250
 
 
11251
# The library search path used internally by the compiler when linking
 
11252
# a shared library.
 
11253
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11254
 
 
11255
# Method to check whether dependent libraries are shared objects.
 
11256
deplibs_check_method=$lt_deplibs_check_method
 
11257
 
 
11258
# Command to use when deplibs_check_method == file_magic.
 
11259
file_magic_cmd=$lt_file_magic_cmd
 
11260
 
 
11261
# Flag that allows shared libraries with undefined symbols to be built.
 
11262
allow_undefined_flag=$lt_allow_undefined_flag
 
11263
 
 
11264
# Flag that forces no undefined symbols.
 
11265
no_undefined_flag=$lt_no_undefined_flag
 
11266
 
 
11267
# Commands used to finish a libtool library installation in a directory.
 
11268
finish_cmds=$lt_finish_cmds
 
11269
 
 
11270
# Same as above, but a single script fragment to be evaled but not shown.
 
11271
finish_eval=$lt_finish_eval
 
11272
 
 
11273
# Take the output of nm and produce a listing of raw symbols and C names.
 
11274
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11275
 
 
11276
# Transform the output of nm in a proper C declaration
 
11277
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11278
 
 
11279
# Transform the output of nm in a C name address pair
 
11280
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11281
 
 
11282
# This is the shared library runtime path variable.
 
11283
runpath_var=$runpath_var
 
11284
 
 
11285
# This is the shared library path variable.
 
11286
shlibpath_var=$shlibpath_var
 
11287
 
 
11288
# Is shlibpath searched before the hard-coded library search path?
 
11289
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11290
 
 
11291
# How to hardcode a shared library path into an executable.
 
11292
hardcode_action=$hardcode_action
 
11293
 
 
11294
# Whether we should hardcode library paths into libraries.
 
11295
hardcode_into_libs=$hardcode_into_libs
 
11296
 
 
11297
# Flag to hardcode \$libdir into a binary during linking.
 
11298
# This must work even if \$libdir does not exist.
 
11299
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11300
 
 
11301
# If ld is used when linking, flag to hardcode \$libdir into
 
11302
# a binary during linking. This must work even if \$libdir does
 
11303
# not exist.
 
11304
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11305
 
 
11306
# Whether we need a single -rpath flag with a separated argument.
 
11307
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11308
 
 
11309
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11310
# resulting binary.
 
11311
hardcode_direct=$hardcode_direct
 
11312
 
 
11313
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11314
# resulting binary.
 
11315
hardcode_minus_L=$hardcode_minus_L
 
11316
 
 
11317
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11318
# the resulting binary.
 
11319
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11320
 
 
11321
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11322
# and all subsequent libraries and executables linked against it.
 
11323
hardcode_automatic=$hardcode_automatic
 
11324
 
 
11325
# Variables whose values should be saved in libtool wrapper scripts and
 
11326
# restored at relink time.
 
11327
variables_saved_for_relink="$variables_saved_for_relink"
 
11328
 
 
11329
# Whether libtool must link a program against all its dependency libraries.
 
11330
link_all_deplibs=$link_all_deplibs
 
11331
 
 
11332
# Compile-time system search path for libraries
 
11333
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11334
 
 
11335
# Run-time system search path for libraries
 
11336
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11337
 
 
11338
# Fix the shell variable \$srcfile for the compiler.
 
11339
fix_srcfile_path=$lt_fix_srcfile_path
 
11340
 
 
11341
# Set to yes if exported symbols are required.
 
11342
always_export_symbols=$always_export_symbols
 
11343
 
 
11344
# The commands to list exported symbols.
 
11345
export_symbols_cmds=$lt_export_symbols_cmds
 
11346
 
 
11347
# The commands to extract the exported symbol list from a shared archive.
 
11348
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11349
 
 
11350
# Symbols that should not be listed in the preloaded symbols.
 
11351
exclude_expsyms=$lt_exclude_expsyms
 
11352
 
 
11353
# Symbols that must always be exported.
 
11354
include_expsyms=$lt_include_expsyms
 
11355
 
 
11356
# ### END LIBTOOL CONFIG
 
11357
 
 
11358
__EOF__
 
11359
 
 
11360
 
 
11361
  case $host_os in
 
11362
  aix3*)
 
11363
    cat <<\EOF >> "$cfgfile"
 
11364
 
 
11365
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11366
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11367
# vanish in a puff of smoke.
 
11368
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11369
  COLLECT_NAMES=
 
11370
  export COLLECT_NAMES
 
11371
fi
 
11372
EOF
 
11373
    ;;
 
11374
  esac
 
11375
 
 
11376
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11377
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11378
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11379
  # is reportedly fixed, but why not run on old versions too?
 
11380
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11381
 
 
11382
  mv -f "$cfgfile" "$ofile" || \
 
11383
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11384
  chmod +x "$ofile"
 
11385
 
 
11386
else
 
11387
  # If there is no Makefile yet, we rely on a make rule to execute
 
11388
  # `config.status --recheck' to rerun these tests and create the
 
11389
  # libtool script then.
 
11390
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11391
  if test -f "$ltmain_in"; then
 
11392
    test -f Makefile && make "$ltmain"
 
11393
  fi
 
11394
fi
 
11395
 
 
11396
 
 
11397
ac_ext=c
 
11398
ac_cpp='$CPP $CPPFLAGS'
 
11399
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11400
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11401
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11402
 
 
11403
CC="$lt_save_CC"
 
11404
 
 
11405
 
 
11406
# Check whether --with-tags was given.
 
11407
if test "${with_tags+set}" = set; then
 
11408
  withval=$with_tags; tagnames="$withval"
 
11409
fi
 
11410
 
 
11411
 
 
11412
if test -f "$ltmain" && test -n "$tagnames"; then
 
11413
  if test ! -f "${ofile}"; then
 
11414
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11415
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11416
  fi
 
11417
 
 
11418
  if test -z "$LTCC"; then
 
11419
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11420
    if test -z "$LTCC"; then
 
11421
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11422
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11423
    else
 
11424
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11425
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11426
    fi
 
11427
  fi
 
11428
  if test -z "$LTCFLAGS"; then
 
11429
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11430
  fi
 
11431
 
 
11432
  # Extract list of available tagged configurations in $ofile.
 
11433
  # Note that this assumes the entire list is on one line.
 
11434
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11435
 
 
11436
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11437
  for tagname in $tagnames; do
 
11438
    IFS="$lt_save_ifs"
 
11439
    # Check whether tagname contains only valid characters
 
11440
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11441
    "") ;;
 
11442
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11443
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11444
   { (exit 1); exit 1; }; }
 
11445
        ;;
 
11446
    esac
 
11447
 
 
11448
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11449
    then
 
11450
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11451
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11452
   { (exit 1); exit 1; }; }
 
11453
    fi
 
11454
 
 
11455
    # Update the list of available tags.
 
11456
    if test -n "$tagname"; then
 
11457
      echo appending configuration tag \"$tagname\" to $ofile
 
11458
 
 
11459
      case $tagname in
 
11460
      CXX)
 
11461
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11462
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11463
            (test "X$CXX" != "Xg++"))) ; then
 
11464
          ac_ext=cpp
 
11465
ac_cpp='$CXXCPP $CPPFLAGS'
 
11466
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11467
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11468
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11469
 
 
11470
 
 
11471
 
 
11472
 
 
11473
archive_cmds_need_lc_CXX=no
 
11474
allow_undefined_flag_CXX=
 
11475
always_export_symbols_CXX=no
 
11476
archive_expsym_cmds_CXX=
 
11477
export_dynamic_flag_spec_CXX=
 
11478
hardcode_direct_CXX=no
 
11479
hardcode_libdir_flag_spec_CXX=
 
11480
hardcode_libdir_flag_spec_ld_CXX=
 
11481
hardcode_libdir_separator_CXX=
 
11482
hardcode_minus_L_CXX=no
 
11483
hardcode_shlibpath_var_CXX=unsupported
 
11484
hardcode_automatic_CXX=no
 
11485
module_cmds_CXX=
 
11486
module_expsym_cmds_CXX=
 
11487
link_all_deplibs_CXX=unknown
 
11488
old_archive_cmds_CXX=$old_archive_cmds
 
11489
no_undefined_flag_CXX=
 
11490
whole_archive_flag_spec_CXX=
 
11491
enable_shared_with_static_runtimes_CXX=no
 
11492
 
 
11493
# Dependencies to place before and after the object being linked:
 
11494
predep_objects_CXX=
 
11495
postdep_objects_CXX=
 
11496
predeps_CXX=
 
11497
postdeps_CXX=
 
11498
compiler_lib_search_path_CXX=
 
11499
compiler_lib_search_dirs_CXX=
 
11500
 
 
11501
# Source file extension for C++ test sources.
 
11502
ac_ext=cpp
 
11503
 
 
11504
# Object file extension for compiled C++ test sources.
 
11505
objext=o
 
11506
objext_CXX=$objext
 
11507
 
 
11508
# Code to be used in simple compile tests
 
11509
lt_simple_compile_test_code="int some_variable = 0;"
 
11510
 
 
11511
# Code to be used in simple link tests
 
11512
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11513
 
 
11514
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11515
 
 
11516
# If no C compiler was specified, use CC.
 
11517
LTCC=${LTCC-"$CC"}
 
11518
 
 
11519
# If no C compiler flags were specified, use CFLAGS.
 
11520
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11521
 
 
11522
# Allow CC to be a program name with arguments.
 
11523
compiler=$CC
 
11524
 
 
11525
 
 
11526
# save warnings/boilerplate of simple test code
 
11527
ac_outfile=conftest.$ac_objext
 
11528
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11529
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11530
_lt_compiler_boilerplate=`cat conftest.err`
 
11531
$rm conftest*
 
11532
 
 
11533
ac_outfile=conftest.$ac_objext
 
11534
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11535
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11536
_lt_linker_boilerplate=`cat conftest.err`
 
11537
$rm -r conftest*
 
11538
 
 
11539
 
 
11540
# Allow CC to be a program name with arguments.
 
11541
lt_save_CC=$CC
 
11542
lt_save_LD=$LD
 
11543
lt_save_GCC=$GCC
 
11544
GCC=$GXX
 
11545
lt_save_with_gnu_ld=$with_gnu_ld
 
11546
lt_save_path_LD=$lt_cv_path_LD
 
11547
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11548
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11549
else
 
11550
  $as_unset lt_cv_prog_gnu_ld
 
11551
fi
 
11552
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11553
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11554
else
 
11555
  $as_unset lt_cv_path_LD
 
11556
fi
 
11557
test -z "${LDCXX+set}" || LD=$LDCXX
 
11558
CC=${CXX-"c++"}
 
11559
compiler=$CC
 
11560
compiler_CXX=$CC
 
11561
for cc_temp in $compiler""; do
 
11562
  case $cc_temp in
 
11563
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11564
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11565
    \-*) ;;
 
11566
    *) break;;
 
11567
  esac
 
11568
done
 
11569
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11570
 
 
11571
 
 
11572
# We don't want -fno-exception wen compiling C++ code, so set the
 
11573
# no_builtin_flag separately
 
11574
if test "$GXX" = yes; then
 
11575
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11576
else
 
11577
  lt_prog_compiler_no_builtin_flag_CXX=
 
11578
fi
 
11579
 
 
11580
if test "$GXX" = yes; then
 
11581
  # Set up default GNU C++ configuration
 
11582
 
 
11583
 
 
11584
# Check whether --with-gnu-ld was given.
 
11585
if test "${with_gnu_ld+set}" = set; then
 
11586
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11587
else
 
11588
  with_gnu_ld=no
 
11589
fi
 
11590
 
 
11591
ac_prog=ld
 
11592
if test "$GCC" = yes; then
 
11593
  # Check if gcc -print-prog-name=ld gives a path.
 
11594
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11595
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11596
  case $host in
 
11597
  *-*-mingw*)
 
11598
    # gcc leaves a trailing carriage return which upsets mingw
 
11599
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11600
  *)
 
11601
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11602
  esac
 
11603
  case $ac_prog in
 
11604
    # Accept absolute paths.
 
11605
    [\\/]* | ?:[\\/]*)
 
11606
      re_direlt='/[^/][^/]*/\.\./'
 
11607
      # Canonicalize the pathname of ld
 
11608
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11609
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11610
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11611
      done
 
11612
      test -z "$LD" && LD="$ac_prog"
 
11613
      ;;
 
11614
  "")
 
11615
    # If it fails, then pretend we aren't using GCC.
 
11616
    ac_prog=ld
 
11617
    ;;
 
11618
  *)
 
11619
    # If it is relative, then search for the first ld in PATH.
 
11620
    with_gnu_ld=unknown
 
11621
    ;;
 
11622
  esac
 
11623
elif test "$with_gnu_ld" = yes; then
 
11624
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11625
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11626
else
 
11627
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11628
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11629
fi
 
11630
if test "${lt_cv_path_LD+set}" = set; then
 
11631
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11632
else
 
11633
  if test -z "$LD"; then
 
11634
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11635
  for ac_dir in $PATH; do
 
11636
    IFS="$lt_save_ifs"
 
11637
    test -z "$ac_dir" && ac_dir=.
 
11638
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11639
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11640
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11641
      # but apparently some variants of GNU ld only accept -v.
 
11642
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11643
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11644
      *GNU* | *'with BFD'*)
 
11645
        test "$with_gnu_ld" != no && break
 
11646
        ;;
 
11647
      *)
 
11648
        test "$with_gnu_ld" != yes && break
 
11649
        ;;
 
11650
      esac
 
11651
    fi
 
11652
  done
 
11653
  IFS="$lt_save_ifs"
 
11654
else
 
11655
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11656
fi
 
11657
fi
 
11658
 
 
11659
LD="$lt_cv_path_LD"
 
11660
if test -n "$LD"; then
 
11661
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11662
echo "${ECHO_T}$LD" >&6; }
 
11663
else
 
11664
  { echo "$as_me:$LINENO: result: no" >&5
 
11665
echo "${ECHO_T}no" >&6; }
 
11666
fi
 
11667
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11668
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11669
   { (exit 1); exit 1; }; }
 
11670
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11671
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11672
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11674
else
 
11675
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11676
case `$LD -v 2>&1 </dev/null` in
 
11677
*GNU* | *'with BFD'*)
 
11678
  lt_cv_prog_gnu_ld=yes
 
11679
  ;;
 
11680
*)
 
11681
  lt_cv_prog_gnu_ld=no
 
11682
  ;;
 
11683
esac
 
11684
fi
 
11685
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11686
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11687
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11688
 
 
11689
 
 
11690
 
 
11691
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11692
  # archiving commands below assume that GNU ld is being used.
 
11693
  if test "$with_gnu_ld" = yes; then
 
11694
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11695
    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'
 
11696
 
 
11697
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11698
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11699
 
 
11700
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11701
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11702
    #     investigate it a little bit more. (MM)
 
11703
    wlarc='${wl}'
 
11704
 
 
11705
    # ancient GNU ld didn't support --whole-archive et. al.
 
11706
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11707
        grep 'no-whole-archive' > /dev/null; then
 
11708
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11709
    else
 
11710
      whole_archive_flag_spec_CXX=
 
11711
    fi
 
11712
  else
 
11713
    with_gnu_ld=no
 
11714
    wlarc=
 
11715
 
 
11716
    # A generic and very simple default shared library creation
 
11717
    # command for GNU C++ for the case where it uses the native
 
11718
    # linker, instead of GNU ld.  If possible, this setting should
 
11719
    # overridden to take advantage of the native linker features on
 
11720
    # the platform it is being used on.
 
11721
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11722
  fi
 
11723
 
 
11724
  # Commands to make compiler produce verbose output that lists
 
11725
  # what "hidden" libraries, object files and flags are used when
 
11726
  # linking a shared library.
 
11727
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11728
 
 
11729
else
 
11730
  GXX=no
 
11731
  with_gnu_ld=no
 
11732
  wlarc=
 
11733
fi
 
11734
 
 
11735
# PORTME: fill in a description of your system's C++ link characteristics
 
11736
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11737
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11738
ld_shlibs_CXX=yes
 
11739
case $host_os in
 
11740
  aix3*)
 
11741
    # FIXME: insert proper C++ library support
 
11742
    ld_shlibs_CXX=no
 
11743
    ;;
 
11744
  aix[4-9]*)
 
11745
    if test "$host_cpu" = ia64; then
 
11746
      # On IA64, the linker does run time linking by default, so we don't
 
11747
      # have to do anything special.
 
11748
      aix_use_runtimelinking=no
 
11749
      exp_sym_flag='-Bexport'
 
11750
      no_entry_flag=""
 
11751
    else
 
11752
      aix_use_runtimelinking=no
 
11753
 
 
11754
      # Test if we are trying to use run time linking or normal
 
11755
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11756
      # need to do runtime linking.
 
11757
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11758
        for ld_flag in $LDFLAGS; do
 
11759
          case $ld_flag in
 
11760
          *-brtl*)
 
11761
            aix_use_runtimelinking=yes
 
11762
            break
 
11763
            ;;
 
11764
          esac
 
11765
        done
 
11766
        ;;
 
11767
      esac
 
11768
 
 
11769
      exp_sym_flag='-bexport'
 
11770
      no_entry_flag='-bnoentry'
 
11771
    fi
 
11772
 
 
11773
    # When large executables or shared objects are built, AIX ld can
 
11774
    # have problems creating the table of contents.  If linking a library
 
11775
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11776
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11777
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11778
 
 
11779
    archive_cmds_CXX=''
 
11780
    hardcode_direct_CXX=yes
 
11781
    hardcode_libdir_separator_CXX=':'
 
11782
    link_all_deplibs_CXX=yes
 
11783
 
 
11784
    if test "$GXX" = yes; then
 
11785
      case $host_os in aix4.[012]|aix4.[012].*)
 
11786
      # We only want to do this on AIX 4.2 and lower, the check
 
11787
      # below for broken collect2 doesn't work under 4.3+
 
11788
        collect2name=`${CC} -print-prog-name=collect2`
 
11789
        if test -f "$collect2name" && \
 
11790
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11791
        then
 
11792
          # We have reworked collect2
 
11793
          :
 
11794
        else
 
11795
          # We have old collect2
 
11796
          hardcode_direct_CXX=unsupported
 
11797
          # It fails to find uninstalled libraries when the uninstalled
 
11798
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11799
          # to unsupported forces relinking
 
11800
          hardcode_minus_L_CXX=yes
 
11801
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11802
          hardcode_libdir_separator_CXX=
 
11803
        fi
 
11804
        ;;
 
11805
      esac
 
11806
      shared_flag='-shared'
 
11807
      if test "$aix_use_runtimelinking" = yes; then
 
11808
        shared_flag="$shared_flag "'${wl}-G'
 
11809
      fi
 
11810
    else
 
11811
      # not using gcc
 
11812
      if test "$host_cpu" = ia64; then
 
11813
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11814
        # chokes on -Wl,-G. The following line is correct:
 
11815
        shared_flag='-G'
 
11816
      else
 
11817
        if test "$aix_use_runtimelinking" = yes; then
 
11818
          shared_flag='${wl}-G'
 
11819
        else
 
11820
          shared_flag='${wl}-bM:SRE'
 
11821
        fi
 
11822
      fi
 
11823
    fi
 
11824
 
 
11825
    # It seems that -bexpall does not export symbols beginning with
 
11826
    # underscore (_), so it is better to generate a list of symbols to export.
 
11827
    always_export_symbols_CXX=yes
 
11828
    if test "$aix_use_runtimelinking" = yes; then
 
11829
      # Warning - without using the other runtime loading flags (-brtl),
 
11830
      # -berok will link without error, but may produce a broken library.
 
11831
      allow_undefined_flag_CXX='-berok'
 
11832
      # Determine the default libpath from the value encoded in an empty executable.
 
11833
      cat >conftest.$ac_ext <<_ACEOF
 
11834
/* confdefs.h.  */
 
11835
_ACEOF
 
11836
cat confdefs.h >>conftest.$ac_ext
 
11837
cat >>conftest.$ac_ext <<_ACEOF
 
11838
/* end confdefs.h.  */
 
11839
 
 
11840
int
 
11841
main ()
 
11842
{
 
11843
 
 
11844
  ;
 
11845
  return 0;
 
11846
}
 
11847
_ACEOF
 
11848
rm -f conftest.$ac_objext conftest$ac_exeext
 
11849
if { (ac_try="$ac_link"
 
11850
case "(($ac_try" in
 
11851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11852
  *) ac_try_echo=$ac_try;;
 
11853
esac
 
11854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11855
  (eval "$ac_link") 2>conftest.er1
 
11856
  ac_status=$?
 
11857
  grep -v '^ *+' conftest.er1 >conftest.err
 
11858
  rm -f conftest.er1
 
11859
  cat conftest.err >&5
 
11860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11861
  (exit $ac_status); } && {
 
11862
         test -z "$ac_cxx_werror_flag" ||
 
11863
         test ! -s conftest.err
 
11864
       } && test -s conftest$ac_exeext &&
 
11865
       $as_test_x conftest$ac_exeext; then
 
11866
 
 
11867
lt_aix_libpath_sed='
 
11868
    /Import File Strings/,/^$/ {
 
11869
        /^0/ {
 
11870
            s/^0  *\(.*\)$/\1/
 
11871
            p
 
11872
        }
 
11873
    }'
 
11874
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11875
# Check for a 64-bit object if we didn't find anything.
 
11876
if test -z "$aix_libpath"; then
 
11877
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11878
fi
 
11879
else
 
11880
  echo "$as_me: failed program was:" >&5
 
11881
sed 's/^/| /' conftest.$ac_ext >&5
 
11882
 
 
11883
 
 
11884
fi
 
11885
 
 
11886
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11887
      conftest$ac_exeext conftest.$ac_ext
 
11888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11889
 
 
11890
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11891
 
 
11892
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11893
     else
 
11894
      if test "$host_cpu" = ia64; then
 
11895
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11896
        allow_undefined_flag_CXX="-z nodefs"
 
11897
        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"
 
11898
      else
 
11899
        # Determine the default libpath from the value encoded in an empty executable.
 
11900
        cat >conftest.$ac_ext <<_ACEOF
 
11901
/* confdefs.h.  */
 
11902
_ACEOF
 
11903
cat confdefs.h >>conftest.$ac_ext
 
11904
cat >>conftest.$ac_ext <<_ACEOF
 
11905
/* end confdefs.h.  */
 
11906
 
 
11907
int
 
11908
main ()
 
11909
{
 
11910
 
 
11911
  ;
 
11912
  return 0;
 
11913
}
 
11914
_ACEOF
 
11915
rm -f conftest.$ac_objext conftest$ac_exeext
 
11916
if { (ac_try="$ac_link"
 
11917
case "(($ac_try" in
 
11918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11919
  *) ac_try_echo=$ac_try;;
 
11920
esac
 
11921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11922
  (eval "$ac_link") 2>conftest.er1
 
11923
  ac_status=$?
 
11924
  grep -v '^ *+' conftest.er1 >conftest.err
 
11925
  rm -f conftest.er1
 
11926
  cat conftest.err >&5
 
11927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11928
  (exit $ac_status); } && {
 
11929
         test -z "$ac_cxx_werror_flag" ||
 
11930
         test ! -s conftest.err
 
11931
       } && test -s conftest$ac_exeext &&
 
11932
       $as_test_x conftest$ac_exeext; then
 
11933
 
 
11934
lt_aix_libpath_sed='
 
11935
    /Import File Strings/,/^$/ {
 
11936
        /^0/ {
 
11937
            s/^0  *\(.*\)$/\1/
 
11938
            p
 
11939
        }
 
11940
    }'
 
11941
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11942
# Check for a 64-bit object if we didn't find anything.
 
11943
if test -z "$aix_libpath"; then
 
11944
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11945
fi
 
11946
else
 
11947
  echo "$as_me: failed program was:" >&5
 
11948
sed 's/^/| /' conftest.$ac_ext >&5
 
11949
 
 
11950
 
 
11951
fi
 
11952
 
 
11953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11954
      conftest$ac_exeext conftest.$ac_ext
 
11955
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11956
 
 
11957
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11958
        # Warning - without using the other run time loading flags,
 
11959
        # -berok will link without error, but may produce a broken library.
 
11960
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11961
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11962
        # Exported symbols can be pulled into shared objects from archives
 
11963
        whole_archive_flag_spec_CXX='$convenience'
 
11964
        archive_cmds_need_lc_CXX=yes
 
11965
        # This is similar to how AIX traditionally builds its shared libraries.
 
11966
        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'
 
11967
      fi
 
11968
    fi
 
11969
    ;;
 
11970
 
 
11971
  beos*)
 
11972
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11973
      allow_undefined_flag_CXX=unsupported
 
11974
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11975
      # support --undefined.  This deserves some investigation.  FIXME
 
11976
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11977
    else
 
11978
      ld_shlibs_CXX=no
 
11979
    fi
 
11980
    ;;
 
11981
 
 
11982
  chorus*)
 
11983
    case $cc_basename in
 
11984
      *)
 
11985
        # FIXME: insert proper C++ library support
 
11986
        ld_shlibs_CXX=no
 
11987
        ;;
 
11988
    esac
 
11989
    ;;
 
11990
 
 
11991
  cygwin* | mingw* | pw32*)
 
11992
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11993
    # as there is no search path for DLLs.
 
11994
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11995
    allow_undefined_flag_CXX=unsupported
 
11996
    always_export_symbols_CXX=no
 
11997
    enable_shared_with_static_runtimes_CXX=yes
 
11998
 
 
11999
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12000
      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'
 
12001
      # If the export-symbols file already is a .def file (1st line
 
12002
      # is EXPORTS), use it as is; otherwise, prepend...
 
12003
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12004
        cp $export_symbols $output_objdir/$soname.def;
 
12005
      else
 
12006
        echo EXPORTS > $output_objdir/$soname.def;
 
12007
        cat $export_symbols >> $output_objdir/$soname.def;
 
12008
      fi~
 
12009
      $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'
 
12010
    else
 
12011
      ld_shlibs_CXX=no
 
12012
    fi
 
12013
  ;;
 
12014
      darwin* | rhapsody*)
 
12015
      archive_cmds_need_lc_CXX=no
 
12016
      hardcode_direct_CXX=no
 
12017
      hardcode_automatic_CXX=yes
 
12018
      hardcode_shlibpath_var_CXX=unsupported
 
12019
      whole_archive_flag_spec_CXX=''
 
12020
      link_all_deplibs_CXX=yes
 
12021
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12022
      if test "$GXX" = yes ; then
 
12023
      output_verbose_link_cmd='echo'
 
12024
      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}"
 
12025
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12026
      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}"
 
12027
      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}"
 
12028
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12029
        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}"
 
12030
        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}"
 
12031
      fi
 
12032
      else
 
12033
      case $cc_basename in
 
12034
        xlc*)
 
12035
         output_verbose_link_cmd='echo'
 
12036
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
12037
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12038
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12039
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12040
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12041
          ;;
 
12042
       *)
 
12043
         ld_shlibs_CXX=no
 
12044
          ;;
 
12045
      esac
 
12046
      fi
 
12047
        ;;
 
12048
 
 
12049
  dgux*)
 
12050
    case $cc_basename in
 
12051
      ec++*)
 
12052
        # FIXME: insert proper C++ library support
 
12053
        ld_shlibs_CXX=no
 
12054
        ;;
 
12055
      ghcx*)
 
12056
        # Green Hills C++ Compiler
 
12057
        # FIXME: insert proper C++ library support
 
12058
        ld_shlibs_CXX=no
 
12059
        ;;
 
12060
      *)
 
12061
        # FIXME: insert proper C++ library support
 
12062
        ld_shlibs_CXX=no
 
12063
        ;;
 
12064
    esac
 
12065
    ;;
 
12066
  freebsd[12]*)
 
12067
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12068
    ld_shlibs_CXX=no
 
12069
    ;;
 
12070
  freebsd-elf*)
 
12071
    archive_cmds_need_lc_CXX=no
 
12072
    ;;
 
12073
  freebsd* | dragonfly*)
 
12074
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12075
    # conventions
 
12076
    ld_shlibs_CXX=yes
 
12077
    ;;
 
12078
  gnu*)
 
12079
    ;;
 
12080
  hpux9*)
 
12081
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12082
    hardcode_libdir_separator_CXX=:
 
12083
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12084
    hardcode_direct_CXX=yes
 
12085
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12086
                                # but as the default
 
12087
                                # location of the library.
 
12088
 
 
12089
    case $cc_basename in
 
12090
    CC*)
 
12091
      # FIXME: insert proper C++ library support
 
12092
      ld_shlibs_CXX=no
 
12093
      ;;
 
12094
    aCC*)
 
12095
      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'
 
12096
      # Commands to make compiler produce verbose output that lists
 
12097
      # what "hidden" libraries, object files and flags are used when
 
12098
      # linking a shared library.
 
12099
      #
 
12100
      # There doesn't appear to be a way to prevent this compiler from
 
12101
      # explicitly linking system object files so we need to strip them
 
12102
      # from the output so that they don't get included in the library
 
12103
      # dependencies.
 
12104
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12105
      ;;
 
12106
    *)
 
12107
      if test "$GXX" = yes; then
 
12108
        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'
 
12109
      else
 
12110
        # FIXME: insert proper C++ library support
 
12111
        ld_shlibs_CXX=no
 
12112
      fi
 
12113
      ;;
 
12114
    esac
 
12115
    ;;
 
12116
  hpux10*|hpux11*)
 
12117
    if test $with_gnu_ld = no; then
 
12118
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12119
      hardcode_libdir_separator_CXX=:
 
12120
 
 
12121
      case $host_cpu in
 
12122
      hppa*64*|ia64*) ;;
 
12123
      *)
 
12124
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12125
        ;;
 
12126
      esac
 
12127
    fi
 
12128
    case $host_cpu in
 
12129
    hppa*64*|ia64*)
 
12130
      hardcode_direct_CXX=no
 
12131
      hardcode_shlibpath_var_CXX=no
 
12132
      ;;
 
12133
    *)
 
12134
      hardcode_direct_CXX=yes
 
12135
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12136
                                              # but as the default
 
12137
                                              # location of the library.
 
12138
      ;;
 
12139
    esac
 
12140
 
 
12141
    case $cc_basename in
 
12142
      CC*)
 
12143
        # FIXME: insert proper C++ library support
 
12144
        ld_shlibs_CXX=no
 
12145
        ;;
 
12146
      aCC*)
 
12147
        case $host_cpu in
 
12148
        hppa*64*)
 
12149
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12150
          ;;
 
12151
        ia64*)
 
12152
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12153
          ;;
 
12154
        *)
 
12155
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12156
          ;;
 
12157
        esac
 
12158
        # Commands to make compiler produce verbose output that lists
 
12159
        # what "hidden" libraries, object files and flags are used when
 
12160
        # linking a shared library.
 
12161
        #
 
12162
        # There doesn't appear to be a way to prevent this compiler from
 
12163
        # explicitly linking system object files so we need to strip them
 
12164
        # from the output so that they don't get included in the library
 
12165
        # dependencies.
 
12166
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12167
        ;;
 
12168
      *)
 
12169
        if test "$GXX" = yes; then
 
12170
          if test $with_gnu_ld = no; then
 
12171
            case $host_cpu in
 
12172
            hppa*64*)
 
12173
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12174
              ;;
 
12175
            ia64*)
 
12176
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12177
              ;;
 
12178
            *)
 
12179
              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'
 
12180
              ;;
 
12181
            esac
 
12182
          fi
 
12183
        else
 
12184
          # FIXME: insert proper C++ library support
 
12185
          ld_shlibs_CXX=no
 
12186
        fi
 
12187
        ;;
 
12188
    esac
 
12189
    ;;
 
12190
  interix[3-9]*)
 
12191
    hardcode_direct_CXX=no
 
12192
    hardcode_shlibpath_var_CXX=no
 
12193
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12194
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12195
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12196
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12197
    # default) and relocated if they conflict, which is a slow very memory
 
12198
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12199
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12200
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12201
    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'
 
12202
    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'
 
12203
    ;;
 
12204
  irix5* | irix6*)
 
12205
    case $cc_basename in
 
12206
      CC*)
 
12207
        # SGI C++
 
12208
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12209
 
 
12210
        # Archives containing C++ object files must be created using
 
12211
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12212
        # necessary to make sure instantiated templates are included
 
12213
        # in the archive.
 
12214
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12215
        ;;
 
12216
      *)
 
12217
        if test "$GXX" = yes; then
 
12218
          if test "$with_gnu_ld" = no; then
 
12219
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12220
          else
 
12221
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
12222
          fi
 
12223
        fi
 
12224
        link_all_deplibs_CXX=yes
 
12225
        ;;
 
12226
    esac
 
12227
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12228
    hardcode_libdir_separator_CXX=:
 
12229
    ;;
 
12230
  linux* | k*bsd*-gnu)
 
12231
    case $cc_basename in
 
12232
      KCC*)
 
12233
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12234
 
 
12235
        # KCC will only create a shared library if the output file
 
12236
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12237
        # to its proper name (with version) after linking.
 
12238
        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'
 
12239
        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'
 
12240
        # Commands to make compiler produce verbose output that lists
 
12241
        # what "hidden" libraries, object files and flags are used when
 
12242
        # linking a shared library.
 
12243
        #
 
12244
        # There doesn't appear to be a way to prevent this compiler from
 
12245
        # explicitly linking system object files so we need to strip them
 
12246
        # from the output so that they don't get included in the library
 
12247
        # dependencies.
 
12248
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12249
 
 
12250
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12251
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12252
 
 
12253
        # Archives containing C++ object files must be created using
 
12254
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12255
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12256
        ;;
 
12257
      icpc*)
 
12258
        # Intel C++
 
12259
        with_gnu_ld=yes
 
12260
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12261
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12262
        # earlier do not add the objects themselves.
 
12263
        case `$CC -V 2>&1` in
 
12264
        *"Version 7."*)
 
12265
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12266
          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'
 
12267
          ;;
 
12268
        *)  # Version 8.0 or newer
 
12269
          tmp_idyn=
 
12270
          case $host_cpu in
 
12271
            ia64*) tmp_idyn=' -i_dynamic';;
 
12272
          esac
 
12273
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12274
          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'
 
12275
          ;;
 
12276
        esac
 
12277
        archive_cmds_need_lc_CXX=no
 
12278
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12279
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12280
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12281
        ;;
 
12282
      pgCC* | pgcpp*)
 
12283
        # Portland Group C++ compiler
 
12284
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12285
        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'
 
12286
 
 
12287
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12288
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12289
        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'
 
12290
        ;;
 
12291
      cxx*)
 
12292
        # Compaq C++
 
12293
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12294
        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'
 
12295
 
 
12296
        runpath_var=LD_RUN_PATH
 
12297
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12298
        hardcode_libdir_separator_CXX=:
 
12299
 
 
12300
        # Commands to make compiler produce verbose output that lists
 
12301
        # what "hidden" libraries, object files and flags are used when
 
12302
        # linking a shared library.
 
12303
        #
 
12304
        # There doesn't appear to be a way to prevent this compiler from
 
12305
        # explicitly linking system object files so we need to strip them
 
12306
        # from the output so that they don't get included in the library
 
12307
        # dependencies.
 
12308
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12309
        ;;
 
12310
      *)
 
12311
        case `$CC -V 2>&1 | sed 5q` in
 
12312
        *Sun\ C*)
 
12313
          # Sun C++ 5.9
 
12314
          no_undefined_flag_CXX=' -zdefs'
 
12315
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12316
          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'
 
12317
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12318
          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'
 
12319
 
 
12320
          # Not sure whether something based on
 
12321
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12322
          # would be better.
 
12323
          output_verbose_link_cmd='echo'
 
12324
 
 
12325
          # Archives containing C++ object files must be created using
 
12326
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12327
          # necessary to make sure instantiated templates are included
 
12328
          # in the archive.
 
12329
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12330
          ;;
 
12331
        esac
 
12332
        ;;
 
12333
    esac
 
12334
    ;;
 
12335
  lynxos*)
 
12336
    # FIXME: insert proper C++ library support
 
12337
    ld_shlibs_CXX=no
 
12338
    ;;
 
12339
  m88k*)
 
12340
    # FIXME: insert proper C++ library support
 
12341
    ld_shlibs_CXX=no
 
12342
    ;;
 
12343
  mvs*)
 
12344
    case $cc_basename in
 
12345
      cxx*)
 
12346
        # FIXME: insert proper C++ library support
 
12347
        ld_shlibs_CXX=no
 
12348
        ;;
 
12349
      *)
 
12350
        # FIXME: insert proper C++ library support
 
12351
        ld_shlibs_CXX=no
 
12352
        ;;
 
12353
    esac
 
12354
    ;;
 
12355
  netbsd* | netbsdelf*-gnu)
 
12356
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12357
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12358
      wlarc=
 
12359
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12360
      hardcode_direct_CXX=yes
 
12361
      hardcode_shlibpath_var_CXX=no
 
12362
    fi
 
12363
    # Workaround some broken pre-1.5 toolchains
 
12364
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12365
    ;;
 
12366
  openbsd2*)
 
12367
    # C++ shared libraries are fairly broken
 
12368
    ld_shlibs_CXX=no
 
12369
    ;;
 
12370
  openbsd*)
 
12371
    if test -f /usr/libexec/ld.so; then
 
12372
      hardcode_direct_CXX=yes
 
12373
      hardcode_shlibpath_var_CXX=no
 
12374
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12375
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12376
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12377
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12378
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12379
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12380
      fi
 
12381
      output_verbose_link_cmd='echo'
 
12382
    else
 
12383
      ld_shlibs_CXX=no
 
12384
    fi
 
12385
    ;;
 
12386
  osf3*)
 
12387
    case $cc_basename in
 
12388
      KCC*)
 
12389
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12390
 
 
12391
        # KCC will only create a shared library if the output file
 
12392
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12393
        # to its proper name (with version) after linking.
 
12394
        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'
 
12395
 
 
12396
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12397
        hardcode_libdir_separator_CXX=:
 
12398
 
 
12399
        # Archives containing C++ object files must be created using
 
12400
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12401
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12402
 
 
12403
        ;;
 
12404
      RCC*)
 
12405
        # Rational C++ 2.4.1
 
12406
        # FIXME: insert proper C++ library support
 
12407
        ld_shlibs_CXX=no
 
12408
        ;;
 
12409
      cxx*)
 
12410
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12411
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12412
 
 
12413
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12414
        hardcode_libdir_separator_CXX=:
 
12415
 
 
12416
        # Commands to make compiler produce verbose output that lists
 
12417
        # what "hidden" libraries, object files and flags are used when
 
12418
        # linking a shared library.
 
12419
        #
 
12420
        # There doesn't appear to be a way to prevent this compiler from
 
12421
        # explicitly linking system object files so we need to strip them
 
12422
        # from the output so that they don't get included in the library
 
12423
        # dependencies.
 
12424
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12425
        ;;
 
12426
      *)
 
12427
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12428
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12429
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12430
 
 
12431
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12432
          hardcode_libdir_separator_CXX=:
 
12433
 
 
12434
          # Commands to make compiler produce verbose output that lists
 
12435
          # what "hidden" libraries, object files and flags are used when
 
12436
          # linking a shared library.
 
12437
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12438
 
 
12439
        else
 
12440
          # FIXME: insert proper C++ library support
 
12441
          ld_shlibs_CXX=no
 
12442
        fi
 
12443
        ;;
 
12444
    esac
 
12445
    ;;
 
12446
  osf4* | osf5*)
 
12447
    case $cc_basename in
 
12448
      KCC*)
 
12449
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12450
 
 
12451
        # KCC will only create a shared library if the output file
 
12452
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12453
        # to its proper name (with version) after linking.
 
12454
        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'
 
12455
 
 
12456
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12457
        hardcode_libdir_separator_CXX=:
 
12458
 
 
12459
        # Archives containing C++ object files must be created using
 
12460
        # the KAI C++ compiler.
 
12461
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12462
        ;;
 
12463
      RCC*)
 
12464
        # Rational C++ 2.4.1
 
12465
        # FIXME: insert proper C++ library support
 
12466
        ld_shlibs_CXX=no
 
12467
        ;;
 
12468
      cxx*)
 
12469
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12470
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
12471
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12472
          echo "-hidden">> $lib.exp~
 
12473
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
12474
          $rm $lib.exp'
 
12475
 
 
12476
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12477
        hardcode_libdir_separator_CXX=:
 
12478
 
 
12479
        # Commands to make compiler produce verbose output that lists
 
12480
        # what "hidden" libraries, object files and flags are used when
 
12481
        # linking a shared library.
 
12482
        #
 
12483
        # There doesn't appear to be a way to prevent this compiler from
 
12484
        # explicitly linking system object files so we need to strip them
 
12485
        # from the output so that they don't get included in the library
 
12486
        # dependencies.
 
12487
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12488
        ;;
 
12489
      *)
 
12490
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12491
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12492
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
12493
 
 
12494
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12495
          hardcode_libdir_separator_CXX=:
 
12496
 
 
12497
          # Commands to make compiler produce verbose output that lists
 
12498
          # what "hidden" libraries, object files and flags are used when
 
12499
          # linking a shared library.
 
12500
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12501
 
 
12502
        else
 
12503
          # FIXME: insert proper C++ library support
 
12504
          ld_shlibs_CXX=no
 
12505
        fi
 
12506
        ;;
 
12507
    esac
 
12508
    ;;
 
12509
  psos*)
 
12510
    # FIXME: insert proper C++ library support
 
12511
    ld_shlibs_CXX=no
 
12512
    ;;
 
12513
  sunos4*)
 
12514
    case $cc_basename in
 
12515
      CC*)
 
12516
        # Sun C++ 4.x
 
12517
        # FIXME: insert proper C++ library support
 
12518
        ld_shlibs_CXX=no
 
12519
        ;;
 
12520
      lcc*)
 
12521
        # Lucid
 
12522
        # FIXME: insert proper C++ library support
 
12523
        ld_shlibs_CXX=no
 
12524
        ;;
 
12525
      *)
 
12526
        # FIXME: insert proper C++ library support
 
12527
        ld_shlibs_CXX=no
 
12528
        ;;
 
12529
    esac
 
12530
    ;;
 
12531
  solaris*)
 
12532
    case $cc_basename in
 
12533
      CC*)
 
12534
        # Sun C++ 4.2, 5.x and Centerline C++
 
12535
        archive_cmds_need_lc_CXX=yes
 
12536
        no_undefined_flag_CXX=' -zdefs'
 
12537
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12538
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12539
        $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'
 
12540
 
 
12541
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12542
        hardcode_shlibpath_var_CXX=no
 
12543
        case $host_os in
 
12544
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12545
          *)
 
12546
            # The compiler driver will combine and reorder linker options,
 
12547
            # but understands `-z linker_flag'.
 
12548
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12549
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12550
            ;;
 
12551
        esac
 
12552
        link_all_deplibs_CXX=yes
 
12553
 
 
12554
        output_verbose_link_cmd='echo'
 
12555
 
 
12556
        # Archives containing C++ object files must be created using
 
12557
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12558
        # necessary to make sure instantiated templates are included
 
12559
        # in the archive.
 
12560
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12561
        ;;
 
12562
      gcx*)
 
12563
        # Green Hills C++ Compiler
 
12564
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12565
 
 
12566
        # The C++ compiler must be used to create the archive.
 
12567
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12568
        ;;
 
12569
      *)
 
12570
        # GNU C++ compiler with Solaris linker
 
12571
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12572
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12573
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12574
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12575
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12576
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12577
 
 
12578
            # Commands to make compiler produce verbose output that lists
 
12579
            # what "hidden" libraries, object files and flags are used when
 
12580
            # linking a shared library.
 
12581
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12582
          else
 
12583
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12584
            # platform.
 
12585
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12586
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12587
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12588
 
 
12589
            # Commands to make compiler produce verbose output that lists
 
12590
            # what "hidden" libraries, object files and flags are used when
 
12591
            # linking a shared library.
 
12592
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12593
          fi
 
12594
 
 
12595
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12596
          case $host_os in
 
12597
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12598
          *)
 
12599
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12600
            ;;
 
12601
          esac
 
12602
        fi
 
12603
        ;;
 
12604
    esac
 
12605
    ;;
 
12606
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12607
    no_undefined_flag_CXX='${wl}-z,text'
 
12608
    archive_cmds_need_lc_CXX=no
 
12609
    hardcode_shlibpath_var_CXX=no
 
12610
    runpath_var='LD_RUN_PATH'
 
12611
 
 
12612
    case $cc_basename in
 
12613
      CC*)
 
12614
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12615
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12616
        ;;
 
12617
      *)
 
12618
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12619
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12620
        ;;
 
12621
    esac
 
12622
    ;;
 
12623
  sysv5* | sco3.2v5* | sco5v6*)
 
12624
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12625
    # link with -lc, and that would cause any symbols used from libc to
 
12626
    # always be unresolved, which means just about no library would
 
12627
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12628
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12629
    # as -z defs.
 
12630
    # For security reasons, it is highly recommended that you always
 
12631
    # use absolute paths for naming shared libraries, and exclude the
 
12632
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12633
    # requires that you compile everything twice, which is a pain.
 
12634
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12635
    # non-empty value in the environment.  Most likely only useful for
 
12636
    # creating official distributions of packages.
 
12637
    # This is a hack until libtool officially supports absolute path
 
12638
    # names for shared libraries.
 
12639
    no_undefined_flag_CXX='${wl}-z,text'
 
12640
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12641
    archive_cmds_need_lc_CXX=no
 
12642
    hardcode_shlibpath_var_CXX=no
 
12643
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12644
    hardcode_libdir_separator_CXX=':'
 
12645
    link_all_deplibs_CXX=yes
 
12646
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12647
    runpath_var='LD_RUN_PATH'
 
12648
 
 
12649
    case $cc_basename in
 
12650
      CC*)
 
12651
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12652
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12653
        ;;
 
12654
      *)
 
12655
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12656
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12657
        ;;
 
12658
    esac
 
12659
    ;;
 
12660
  tandem*)
 
12661
    case $cc_basename in
 
12662
      NCC*)
 
12663
        # NonStop-UX NCC 3.20
 
12664
        # FIXME: insert proper C++ library support
 
12665
        ld_shlibs_CXX=no
 
12666
        ;;
 
12667
      *)
 
12668
        # FIXME: insert proper C++ library support
 
12669
        ld_shlibs_CXX=no
 
12670
        ;;
 
12671
    esac
 
12672
    ;;
 
12673
  vxworks*)
 
12674
    # FIXME: insert proper C++ library support
 
12675
    ld_shlibs_CXX=no
 
12676
    ;;
 
12677
  *)
 
12678
    # FIXME: insert proper C++ library support
 
12679
    ld_shlibs_CXX=no
 
12680
    ;;
 
12681
esac
 
12682
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12683
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12684
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12685
 
 
12686
GCC_CXX="$GXX"
 
12687
LD_CXX="$LD"
 
12688
 
 
12689
cat > conftest.$ac_ext <<EOF
 
12690
class Foo
 
12691
{
 
12692
public:
 
12693
  Foo (void) { a = 0; }
 
12694
private:
 
12695
  int a;
 
12696
};
 
12697
EOF
 
12698
 
 
12699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12700
  (eval $ac_compile) 2>&5
 
12701
  ac_status=$?
 
12702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12703
  (exit $ac_status); }; then
 
12704
  # Parse the compiler output and extract the necessary
 
12705
  # objects, libraries and library flags.
 
12706
 
 
12707
  # Sentinel used to keep track of whether or not we are before
 
12708
  # the conftest object file.
 
12709
  pre_test_object_deps_done=no
 
12710
 
 
12711
  # The `*' in the case matches for architectures that use `case' in
 
12712
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12713
  # eval without this substitution.
 
12714
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12715
 
 
12716
  for p in `eval $output_verbose_link_cmd`; do
 
12717
    case $p in
 
12718
 
 
12719
    -L* | -R* | -l*)
 
12720
       # Some compilers place space between "-{L,R}" and the path.
 
12721
       # Remove the space.
 
12722
       if test $p = "-L" \
 
12723
          || test $p = "-R"; then
 
12724
         prev=$p
 
12725
         continue
 
12726
       else
 
12727
         prev=
 
12728
       fi
 
12729
 
 
12730
       if test "$pre_test_object_deps_done" = no; then
 
12731
         case $p in
 
12732
         -L* | -R*)
 
12733
           # Internal compiler library paths should come after those
 
12734
           # provided the user.  The postdeps already come after the
 
12735
           # user supplied libs so there is no need to process them.
 
12736
           if test -z "$compiler_lib_search_path_CXX"; then
 
12737
             compiler_lib_search_path_CXX="${prev}${p}"
 
12738
           else
 
12739
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12740
           fi
 
12741
           ;;
 
12742
         # The "-l" case would never come before the object being
 
12743
         # linked, so don't bother handling this case.
 
12744
         esac
 
12745
       else
 
12746
         if test -z "$postdeps_CXX"; then
 
12747
           postdeps_CXX="${prev}${p}"
 
12748
         else
 
12749
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12750
         fi
 
12751
       fi
 
12752
       ;;
 
12753
 
 
12754
    *.$objext)
 
12755
       # This assumes that the test object file only shows up
 
12756
       # once in the compiler output.
 
12757
       if test "$p" = "conftest.$objext"; then
 
12758
         pre_test_object_deps_done=yes
 
12759
         continue
 
12760
       fi
 
12761
 
 
12762
       if test "$pre_test_object_deps_done" = no; then
 
12763
         if test -z "$predep_objects_CXX"; then
 
12764
           predep_objects_CXX="$p"
 
12765
         else
 
12766
           predep_objects_CXX="$predep_objects_CXX $p"
 
12767
         fi
 
12768
       else
 
12769
         if test -z "$postdep_objects_CXX"; then
 
12770
           postdep_objects_CXX="$p"
 
12771
         else
 
12772
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12773
         fi
 
12774
       fi
 
12775
       ;;
 
12776
 
 
12777
    *) ;; # Ignore the rest.
 
12778
 
 
12779
    esac
 
12780
  done
 
12781
 
 
12782
  # Clean up.
 
12783
  rm -f a.out a.exe
 
12784
else
 
12785
  echo "libtool.m4: error: problem compiling CXX test program"
 
12786
fi
 
12787
 
 
12788
$rm -f confest.$objext
 
12789
 
 
12790
compiler_lib_search_dirs_CXX=
 
12791
if test -n "$compiler_lib_search_path_CXX"; then
 
12792
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12793
fi
 
12794
 
 
12795
# PORTME: override above test on systems where it is broken
 
12796
case $host_os in
 
12797
interix[3-9]*)
 
12798
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12799
  # hack all around it, let's just trust "g++" to DTRT.
 
12800
  predep_objects_CXX=
 
12801
  postdep_objects_CXX=
 
12802
  postdeps_CXX=
 
12803
  ;;
 
12804
 
 
12805
linux*)
 
12806
  case `$CC -V 2>&1 | sed 5q` in
 
12807
  *Sun\ C*)
 
12808
    # Sun C++ 5.9
 
12809
    #
 
12810
    # The more standards-conforming stlport4 library is
 
12811
    # incompatible with the Cstd library. Avoid specifying
 
12812
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12813
    # -library=stlport4 depends on it.
 
12814
    case " $CXX $CXXFLAGS " in
 
12815
    *" -library=stlport4 "*)
 
12816
      solaris_use_stlport4=yes
 
12817
      ;;
 
12818
    esac
 
12819
    if test "$solaris_use_stlport4" != yes; then
 
12820
      postdeps_CXX='-library=Cstd -library=Crun'
 
12821
    fi
 
12822
    ;;
 
12823
  esac
 
12824
  ;;
 
12825
 
 
12826
solaris*)
 
12827
  case $cc_basename in
 
12828
  CC*)
 
12829
    # The more standards-conforming stlport4 library is
 
12830
    # incompatible with the Cstd library. Avoid specifying
 
12831
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12832
    # -library=stlport4 depends on it.
 
12833
    case " $CXX $CXXFLAGS " in
 
12834
    *" -library=stlport4 "*)
 
12835
      solaris_use_stlport4=yes
 
12836
      ;;
 
12837
    esac
 
12838
 
 
12839
    # Adding this requires a known-good setup of shared libraries for
 
12840
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12841
    # archive will be linked into the output, leading to subtle bugs.
 
12842
    if test "$solaris_use_stlport4" != yes; then
 
12843
      postdeps_CXX='-library=Cstd -library=Crun'
 
12844
    fi
 
12845
    ;;
 
12846
  esac
 
12847
  ;;
 
12848
esac
 
12849
 
 
12850
case " $postdeps_CXX " in
 
12851
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12852
esac
 
12853
 
 
12854
lt_prog_compiler_wl_CXX=
 
12855
lt_prog_compiler_pic_CXX=
 
12856
lt_prog_compiler_static_CXX=
 
12857
 
 
12858
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12859
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12860
 
 
12861
  # C++ specific cases for pic, static, wl, etc.
 
12862
  if test "$GXX" = yes; then
 
12863
    lt_prog_compiler_wl_CXX='-Wl,'
 
12864
    lt_prog_compiler_static_CXX='-static'
 
12865
 
 
12866
    case $host_os in
 
12867
    aix*)
 
12868
      # All AIX code is PIC.
 
12869
      if test "$host_cpu" = ia64; then
 
12870
        # AIX 5 now supports IA64 processor
 
12871
        lt_prog_compiler_static_CXX='-Bstatic'
 
12872
      fi
 
12873
      ;;
 
12874
    amigaos*)
 
12875
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12876
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12877
      # like `-m68040'.
 
12878
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12879
      ;;
 
12880
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12881
      # PIC is the default for these OSes.
 
12882
      ;;
 
12883
    mingw* | cygwin* | os2* | pw32*)
 
12884
      # This hack is so that the source file can tell whether it is being
 
12885
      # built for inclusion in a dll (and should export symbols for example).
 
12886
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12887
      # (--disable-auto-import) libraries
 
12888
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12889
      ;;
 
12890
    darwin* | rhapsody*)
 
12891
      # PIC is the default on this platform
 
12892
      # Common symbols not allowed in MH_DYLIB files
 
12893
      lt_prog_compiler_pic_CXX='-fno-common'
 
12894
      ;;
 
12895
    *djgpp*)
 
12896
      # DJGPP does not support shared libraries at all
 
12897
      lt_prog_compiler_pic_CXX=
 
12898
      ;;
 
12899
    interix[3-9]*)
 
12900
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12901
      # Instead, we relocate shared libraries at runtime.
 
12902
      ;;
 
12903
    sysv4*MP*)
 
12904
      if test -d /usr/nec; then
 
12905
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12906
      fi
 
12907
      ;;
 
12908
    hpux*)
 
12909
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12910
      # not for PA HP-UX.
 
12911
      case $host_cpu in
 
12912
      hppa*64*|ia64*)
 
12913
        ;;
 
12914
      *)
 
12915
        lt_prog_compiler_pic_CXX='-fPIC'
 
12916
        ;;
 
12917
      esac
 
12918
      ;;
 
12919
    *)
 
12920
      lt_prog_compiler_pic_CXX='-fPIC'
 
12921
      ;;
 
12922
    esac
 
12923
  else
 
12924
    case $host_os in
 
12925
      aix[4-9]*)
 
12926
        # All AIX code is PIC.
 
12927
        if test "$host_cpu" = ia64; then
 
12928
          # AIX 5 now supports IA64 processor
 
12929
          lt_prog_compiler_static_CXX='-Bstatic'
 
12930
        else
 
12931
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12932
        fi
 
12933
        ;;
 
12934
      chorus*)
 
12935
        case $cc_basename in
 
12936
        cxch68*)
 
12937
          # Green Hills C++ Compiler
 
12938
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12939
          ;;
 
12940
        esac
 
12941
        ;;
 
12942
       darwin*)
 
12943
         # PIC is the default on this platform
 
12944
         # Common symbols not allowed in MH_DYLIB files
 
12945
         case $cc_basename in
 
12946
           xlc*)
 
12947
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12948
           lt_prog_compiler_wl_CXX='-Wl,'
 
12949
           ;;
 
12950
         esac
 
12951
       ;;
 
12952
      dgux*)
 
12953
        case $cc_basename in
 
12954
          ec++*)
 
12955
            lt_prog_compiler_pic_CXX='-KPIC'
 
12956
            ;;
 
12957
          ghcx*)
 
12958
            # Green Hills C++ Compiler
 
12959
            lt_prog_compiler_pic_CXX='-pic'
 
12960
            ;;
 
12961
          *)
 
12962
            ;;
 
12963
        esac
 
12964
        ;;
 
12965
      freebsd* | dragonfly*)
 
12966
        # FreeBSD uses GNU C++
 
12967
        ;;
 
12968
      hpux9* | hpux10* | hpux11*)
 
12969
        case $cc_basename in
 
12970
          CC*)
 
12971
            lt_prog_compiler_wl_CXX='-Wl,'
 
12972
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12973
            if test "$host_cpu" != ia64; then
 
12974
              lt_prog_compiler_pic_CXX='+Z'
 
12975
            fi
 
12976
            ;;
 
12977
          aCC*)
 
12978
            lt_prog_compiler_wl_CXX='-Wl,'
 
12979
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12980
            case $host_cpu in
 
12981
            hppa*64*|ia64*)
 
12982
              # +Z the default
 
12983
              ;;
 
12984
            *)
 
12985
              lt_prog_compiler_pic_CXX='+Z'
 
12986
              ;;
 
12987
            esac
 
12988
            ;;
 
12989
          *)
 
12990
            ;;
 
12991
        esac
 
12992
        ;;
 
12993
      interix*)
 
12994
        # This is c89, which is MS Visual C++ (no shared libs)
 
12995
        # Anyone wants to do a port?
 
12996
        ;;
 
12997
      irix5* | irix6* | nonstopux*)
 
12998
        case $cc_basename in
 
12999
          CC*)
 
13000
            lt_prog_compiler_wl_CXX='-Wl,'
 
13001
            lt_prog_compiler_static_CXX='-non_shared'
 
13002
            # CC pic flag -KPIC is the default.
 
13003
            ;;
 
13004
          *)
 
13005
            ;;
 
13006
        esac
 
13007
        ;;
 
13008
      linux* | k*bsd*-gnu)
 
13009
        case $cc_basename in
 
13010
          KCC*)
 
13011
            # KAI C++ Compiler
 
13012
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13013
            lt_prog_compiler_pic_CXX='-fPIC'
 
13014
            ;;
 
13015
          icpc* | ecpc*)
 
13016
            # Intel C++
 
13017
            lt_prog_compiler_wl_CXX='-Wl,'
 
13018
            lt_prog_compiler_pic_CXX='-KPIC'
 
13019
            lt_prog_compiler_static_CXX='-static'
 
13020
            ;;
 
13021
          pgCC* | pgcpp*)
 
13022
            # Portland Group C++ compiler.
 
13023
            lt_prog_compiler_wl_CXX='-Wl,'
 
13024
            lt_prog_compiler_pic_CXX='-fpic'
 
13025
            lt_prog_compiler_static_CXX='-Bstatic'
 
13026
            ;;
 
13027
          cxx*)
 
13028
            # Compaq C++
 
13029
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13030
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13031
            lt_prog_compiler_pic_CXX=
 
13032
            lt_prog_compiler_static_CXX='-non_shared'
 
13033
            ;;
 
13034
          *)
 
13035
            case `$CC -V 2>&1 | sed 5q` in
 
13036
            *Sun\ C*)
 
13037
              # Sun C++ 5.9
 
13038
              lt_prog_compiler_pic_CXX='-KPIC'
 
13039
              lt_prog_compiler_static_CXX='-Bstatic'
 
13040
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13041
              ;;
 
13042
            esac
 
13043
            ;;
 
13044
        esac
 
13045
        ;;
 
13046
      lynxos*)
 
13047
        ;;
 
13048
      m88k*)
 
13049
        ;;
 
13050
      mvs*)
 
13051
        case $cc_basename in
 
13052
          cxx*)
 
13053
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13054
            ;;
 
13055
          *)
 
13056
            ;;
 
13057
        esac
 
13058
        ;;
 
13059
      netbsd* | netbsdelf*-gnu)
 
13060
        ;;
 
13061
      osf3* | osf4* | osf5*)
 
13062
        case $cc_basename in
 
13063
          KCC*)
 
13064
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13065
            ;;
 
13066
          RCC*)
 
13067
            # Rational C++ 2.4.1
 
13068
            lt_prog_compiler_pic_CXX='-pic'
 
13069
            ;;
 
13070
          cxx*)
 
13071
            # Digital/Compaq C++
 
13072
            lt_prog_compiler_wl_CXX='-Wl,'
 
13073
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13074
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13075
            lt_prog_compiler_pic_CXX=
 
13076
            lt_prog_compiler_static_CXX='-non_shared'
 
13077
            ;;
 
13078
          *)
 
13079
            ;;
 
13080
        esac
 
13081
        ;;
 
13082
      psos*)
 
13083
        ;;
 
13084
      solaris*)
 
13085
        case $cc_basename in
 
13086
          CC*)
 
13087
            # Sun C++ 4.2, 5.x and Centerline C++
 
13088
            lt_prog_compiler_pic_CXX='-KPIC'
 
13089
            lt_prog_compiler_static_CXX='-Bstatic'
 
13090
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13091
            ;;
 
13092
          gcx*)
 
13093
            # Green Hills C++ Compiler
 
13094
            lt_prog_compiler_pic_CXX='-PIC'
 
13095
            ;;
 
13096
          *)
 
13097
            ;;
 
13098
        esac
 
13099
        ;;
 
13100
      sunos4*)
 
13101
        case $cc_basename in
 
13102
          CC*)
 
13103
            # Sun C++ 4.x
 
13104
            lt_prog_compiler_pic_CXX='-pic'
 
13105
            lt_prog_compiler_static_CXX='-Bstatic'
 
13106
            ;;
 
13107
          lcc*)
 
13108
            # Lucid
 
13109
            lt_prog_compiler_pic_CXX='-pic'
 
13110
            ;;
 
13111
          *)
 
13112
            ;;
 
13113
        esac
 
13114
        ;;
 
13115
      tandem*)
 
13116
        case $cc_basename in
 
13117
          NCC*)
 
13118
            # NonStop-UX NCC 3.20
 
13119
            lt_prog_compiler_pic_CXX='-KPIC'
 
13120
            ;;
 
13121
          *)
 
13122
            ;;
 
13123
        esac
 
13124
        ;;
 
13125
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13126
        case $cc_basename in
 
13127
          CC*)
 
13128
            lt_prog_compiler_wl_CXX='-Wl,'
 
13129
            lt_prog_compiler_pic_CXX='-KPIC'
 
13130
            lt_prog_compiler_static_CXX='-Bstatic'
 
13131
            ;;
 
13132
        esac
 
13133
        ;;
 
13134
      vxworks*)
 
13135
        ;;
 
13136
      *)
 
13137
        lt_prog_compiler_can_build_shared_CXX=no
 
13138
        ;;
 
13139
    esac
 
13140
  fi
 
13141
 
 
13142
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13143
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
13144
 
 
13145
#
 
13146
# Check to make sure the PIC flag actually works.
 
13147
#
 
13148
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13149
 
 
13150
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13151
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
13152
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13154
else
 
13155
  lt_cv_prog_compiler_pic_works_CXX=no
 
13156
  ac_outfile=conftest.$ac_objext
 
13157
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13158
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13159
   # Insert the option either (1) after the last *FLAGS variable, or
 
13160
   # (2) before a word containing "conftest.", or (3) at the end.
 
13161
   # Note that $ac_compile itself does not contain backslashes and begins
 
13162
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13163
   # The option is referenced via a variable to avoid confusing sed.
 
13164
   lt_compile=`echo "$ac_compile" | $SED \
 
13165
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13166
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13167
   -e 's:$: $lt_compiler_flag:'`
 
13168
   (eval echo "\"\$as_me:13168: $lt_compile\"" >&5)
 
13169
   (eval "$lt_compile" 2>conftest.err)
 
13170
   ac_status=$?
 
13171
   cat conftest.err >&5
 
13172
   echo "$as_me:13172: \$? = $ac_status" >&5
 
13173
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13174
     # The compiler can only warn and ignore the option if not recognized
 
13175
     # So say no if there are warnings other than the usual output.
 
13176
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13177
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13178
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13179
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13180
     fi
 
13181
   fi
 
13182
   $rm conftest*
 
13183
 
 
13184
fi
 
13185
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13186
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13187
 
 
13188
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13189
    case $lt_prog_compiler_pic_CXX in
 
13190
     "" | " "*) ;;
 
13191
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13192
     esac
 
13193
else
 
13194
    lt_prog_compiler_pic_CXX=
 
13195
     lt_prog_compiler_can_build_shared_CXX=no
 
13196
fi
 
13197
 
 
13198
fi
 
13199
case $host_os in
 
13200
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13201
  *djgpp*)
 
13202
    lt_prog_compiler_pic_CXX=
 
13203
    ;;
 
13204
  *)
 
13205
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13206
    ;;
 
13207
esac
 
13208
 
 
13209
#
 
13210
# Check to make sure the static flag actually works.
 
13211
#
 
13212
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13213
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13214
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13215
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13217
else
 
13218
  lt_cv_prog_compiler_static_works_CXX=no
 
13219
   save_LDFLAGS="$LDFLAGS"
 
13220
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13221
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13222
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13223
     # The linker can only warn and ignore the option if not recognized
 
13224
     # So say no if there are warnings
 
13225
     if test -s conftest.err; then
 
13226
       # Append any errors to the config.log.
 
13227
       cat conftest.err 1>&5
 
13228
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13229
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13230
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13231
         lt_cv_prog_compiler_static_works_CXX=yes
 
13232
       fi
 
13233
     else
 
13234
       lt_cv_prog_compiler_static_works_CXX=yes
 
13235
     fi
 
13236
   fi
 
13237
   $rm -r conftest*
 
13238
   LDFLAGS="$save_LDFLAGS"
 
13239
 
 
13240
fi
 
13241
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13242
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13243
 
 
13244
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13245
    :
 
13246
else
 
13247
    lt_prog_compiler_static_CXX=
 
13248
fi
 
13249
 
 
13250
 
 
13251
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13252
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13253
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13255
else
 
13256
  lt_cv_prog_compiler_c_o_CXX=no
 
13257
   $rm -r conftest 2>/dev/null
 
13258
   mkdir conftest
 
13259
   cd conftest
 
13260
   mkdir out
 
13261
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13262
 
 
13263
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13264
   # Insert the option either (1) after the last *FLAGS variable, or
 
13265
   # (2) before a word containing "conftest.", or (3) at the end.
 
13266
   # Note that $ac_compile itself does not contain backslashes and begins
 
13267
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13268
   lt_compile=`echo "$ac_compile" | $SED \
 
13269
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13270
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13271
   -e 's:$: $lt_compiler_flag:'`
 
13272
   (eval echo "\"\$as_me:13272: $lt_compile\"" >&5)
 
13273
   (eval "$lt_compile" 2>out/conftest.err)
 
13274
   ac_status=$?
 
13275
   cat out/conftest.err >&5
 
13276
   echo "$as_me:13276: \$? = $ac_status" >&5
 
13277
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13278
   then
 
13279
     # The compiler can only warn and ignore the option if not recognized
 
13280
     # So say no if there are warnings
 
13281
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13282
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13283
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13284
       lt_cv_prog_compiler_c_o_CXX=yes
 
13285
     fi
 
13286
   fi
 
13287
   chmod u+w . 2>&5
 
13288
   $rm conftest*
 
13289
   # SGI C++ compiler will create directory out/ii_files/ for
 
13290
   # template instantiation
 
13291
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13292
   $rm out/* && rmdir out
 
13293
   cd ..
 
13294
   rmdir conftest
 
13295
   $rm conftest*
 
13296
 
 
13297
fi
 
13298
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13299
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13300
 
 
13301
 
 
13302
hard_links="nottested"
 
13303
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13304
  # do not overwrite the value of need_locks provided by the user
 
13305
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13306
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13307
  hard_links=yes
 
13308
  $rm conftest*
 
13309
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13310
  touch conftest.a
 
13311
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13312
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13313
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13314
echo "${ECHO_T}$hard_links" >&6; }
 
13315
  if test "$hard_links" = no; then
 
13316
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13317
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13318
    need_locks=warn
 
13319
  fi
 
13320
else
 
13321
  need_locks=no
 
13322
fi
 
13323
 
 
13324
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13325
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13326
 
 
13327
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13328
  case $host_os in
 
13329
  aix[4-9]*)
 
13330
    # If we're using GNU nm, then we don't want the "-C" option.
 
13331
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13332
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13333
      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'
 
13334
    else
 
13335
      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'
 
13336
    fi
 
13337
    ;;
 
13338
  pw32*)
 
13339
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13340
  ;;
 
13341
  cygwin* | mingw*)
 
13342
    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'
 
13343
  ;;
 
13344
  linux* | k*bsd*-gnu)
 
13345
    link_all_deplibs_CXX=no
 
13346
  ;;
 
13347
  *)
 
13348
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13349
  ;;
 
13350
  esac
 
13351
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13352
 
 
13353
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13354
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13355
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13356
 
 
13357
#
 
13358
# Do we need to explicitly link libc?
 
13359
#
 
13360
case "x$archive_cmds_need_lc_CXX" in
 
13361
x|xyes)
 
13362
  # Assume -lc should be added
 
13363
  archive_cmds_need_lc_CXX=yes
 
13364
 
 
13365
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13366
    case $archive_cmds_CXX in
 
13367
    *'~'*)
 
13368
      # FIXME: we may have to deal with multi-command sequences.
 
13369
      ;;
 
13370
    '$CC '*)
 
13371
      # Test whether the compiler implicitly links with -lc since on some
 
13372
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13373
      # to ld, don't add -lc before -lgcc.
 
13374
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13375
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13376
      $rm conftest*
 
13377
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13378
 
 
13379
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13380
  (eval $ac_compile) 2>&5
 
13381
  ac_status=$?
 
13382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13383
  (exit $ac_status); } 2>conftest.err; then
 
13384
        soname=conftest
 
13385
        lib=conftest
 
13386
        libobjs=conftest.$ac_objext
 
13387
        deplibs=
 
13388
        wl=$lt_prog_compiler_wl_CXX
 
13389
        pic_flag=$lt_prog_compiler_pic_CXX
 
13390
        compiler_flags=-v
 
13391
        linker_flags=-v
 
13392
        verstring=
 
13393
        output_objdir=.
 
13394
        libname=conftest
 
13395
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13396
        allow_undefined_flag_CXX=
 
13397
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13398
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13399
  ac_status=$?
 
13400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13401
  (exit $ac_status); }
 
13402
        then
 
13403
          archive_cmds_need_lc_CXX=no
 
13404
        else
 
13405
          archive_cmds_need_lc_CXX=yes
 
13406
        fi
 
13407
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13408
      else
 
13409
        cat conftest.err 1>&5
 
13410
      fi
 
13411
      $rm conftest*
 
13412
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13413
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13414
      ;;
 
13415
    esac
 
13416
  fi
 
13417
  ;;
 
13418
esac
 
13419
 
 
13420
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13421
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13422
library_names_spec=
 
13423
libname_spec='lib$name'
 
13424
soname_spec=
 
13425
shrext_cmds=".so"
 
13426
postinstall_cmds=
 
13427
postuninstall_cmds=
 
13428
finish_cmds=
 
13429
finish_eval=
 
13430
shlibpath_var=
 
13431
shlibpath_overrides_runpath=unknown
 
13432
version_type=none
 
13433
dynamic_linker="$host_os ld.so"
 
13434
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13435
 
 
13436
need_lib_prefix=unknown
 
13437
hardcode_into_libs=no
 
13438
 
 
13439
# when you set need_version to no, make sure it does not cause -set_version
 
13440
# flags to be left without arguments
 
13441
need_version=unknown
 
13442
 
 
13443
case $host_os in
 
13444
aix3*)
 
13445
  version_type=linux
 
13446
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13447
  shlibpath_var=LIBPATH
 
13448
 
 
13449
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13450
  soname_spec='${libname}${release}${shared_ext}$major'
 
13451
  ;;
 
13452
 
 
13453
aix[4-9]*)
 
13454
  version_type=linux
 
13455
  need_lib_prefix=no
 
13456
  need_version=no
 
13457
  hardcode_into_libs=yes
 
13458
  if test "$host_cpu" = ia64; then
 
13459
    # AIX 5 supports IA64
 
13460
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13461
    shlibpath_var=LD_LIBRARY_PATH
 
13462
  else
 
13463
    # With GCC up to 2.95.x, collect2 would create an import file
 
13464
    # for dependence libraries.  The import file would start with
 
13465
    # the line `#! .'.  This would cause the generated library to
 
13466
    # depend on `.', always an invalid library.  This was fixed in
 
13467
    # development snapshots of GCC prior to 3.0.
 
13468
    case $host_os in
 
13469
      aix4 | aix4.[01] | aix4.[01].*)
 
13470
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13471
           echo ' yes '
 
13472
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13473
        :
 
13474
      else
 
13475
        can_build_shared=no
 
13476
      fi
 
13477
      ;;
 
13478
    esac
 
13479
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13480
    # soname into executable. Probably we can add versioning support to
 
13481
    # collect2, so additional links can be useful in future.
 
13482
    if test "$aix_use_runtimelinking" = yes; then
 
13483
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13484
      # instead of lib<name>.a to let people know that these are not
 
13485
      # typical AIX shared libraries.
 
13486
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13487
    else
 
13488
      # We preserve .a as extension for shared libraries through AIX4.2
 
13489
      # and later when we are not doing run time linking.
 
13490
      library_names_spec='${libname}${release}.a $libname.a'
 
13491
      soname_spec='${libname}${release}${shared_ext}$major'
 
13492
    fi
 
13493
    shlibpath_var=LIBPATH
 
13494
  fi
 
13495
  ;;
 
13496
 
 
13497
amigaos*)
 
13498
  library_names_spec='$libname.ixlibrary $libname.a'
 
13499
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13500
  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'
 
13501
  ;;
 
13502
 
 
13503
beos*)
 
13504
  library_names_spec='${libname}${shared_ext}'
 
13505
  dynamic_linker="$host_os ld.so"
 
13506
  shlibpath_var=LIBRARY_PATH
 
13507
  ;;
 
13508
 
 
13509
bsdi[45]*)
 
13510
  version_type=linux
 
13511
  need_version=no
 
13512
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13513
  soname_spec='${libname}${release}${shared_ext}$major'
 
13514
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13515
  shlibpath_var=LD_LIBRARY_PATH
 
13516
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13517
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13518
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13519
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13520
  # libtool to hard-code these into programs
 
13521
  ;;
 
13522
 
 
13523
cygwin* | mingw* | pw32*)
 
13524
  version_type=windows
 
13525
  shrext_cmds=".dll"
 
13526
  need_version=no
 
13527
  need_lib_prefix=no
 
13528
 
 
13529
  case $GCC,$host_os in
 
13530
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13531
    library_names_spec='$libname.dll.a'
 
13532
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13533
    postinstall_cmds='base_file=`basename \${file}`~
 
13534
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13535
      dldir=$destdir/`dirname \$dlpath`~
 
13536
      test -d \$dldir || mkdir -p \$dldir~
 
13537
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13538
      chmod a+x \$dldir/$dlname'
 
13539
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13540
      dlpath=$dir/\$dldll~
 
13541
       $rm \$dlpath'
 
13542
    shlibpath_overrides_runpath=yes
 
13543
 
 
13544
    case $host_os in
 
13545
    cygwin*)
 
13546
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13547
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13548
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13549
      ;;
 
13550
    mingw*)
 
13551
      # MinGW DLLs use traditional 'lib' prefix
 
13552
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13553
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13554
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13555
        # It is most probably a Windows format PATH printed by
 
13556
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13557
        # path with ; separators, and with drive letters. We can handle the
 
13558
        # drive letters (cygwin fileutils understands them), so leave them,
 
13559
        # especially as we might pass files found there to a mingw objdump,
 
13560
        # which wouldn't understand a cygwinified path. Ahh.
 
13561
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13562
      else
 
13563
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13564
      fi
 
13565
      ;;
 
13566
    pw32*)
 
13567
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13568
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13569
      ;;
 
13570
    esac
 
13571
    ;;
 
13572
 
 
13573
  *)
 
13574
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13575
    ;;
 
13576
  esac
 
13577
  dynamic_linker='Win32 ld.exe'
 
13578
  # FIXME: first we should search . and the directory the executable is in
 
13579
  shlibpath_var=PATH
 
13580
  ;;
 
13581
 
 
13582
darwin* | rhapsody*)
 
13583
  dynamic_linker="$host_os dyld"
 
13584
  version_type=darwin
 
13585
  need_lib_prefix=no
 
13586
  need_version=no
 
13587
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13588
  soname_spec='${libname}${release}${major}$shared_ext'
 
13589
  shlibpath_overrides_runpath=yes
 
13590
  shlibpath_var=DYLD_LIBRARY_PATH
 
13591
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13592
 
 
13593
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13594
  ;;
 
13595
 
 
13596
dgux*)
 
13597
  version_type=linux
 
13598
  need_lib_prefix=no
 
13599
  need_version=no
 
13600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13601
  soname_spec='${libname}${release}${shared_ext}$major'
 
13602
  shlibpath_var=LD_LIBRARY_PATH
 
13603
  ;;
 
13604
 
 
13605
freebsd1*)
 
13606
  dynamic_linker=no
 
13607
  ;;
 
13608
 
 
13609
freebsd* | dragonfly*)
 
13610
  # DragonFly does not have aout.  When/if they implement a new
 
13611
  # versioning mechanism, adjust this.
 
13612
  if test -x /usr/bin/objformat; then
 
13613
    objformat=`/usr/bin/objformat`
 
13614
  else
 
13615
    case $host_os in
 
13616
    freebsd[123]*) objformat=aout ;;
 
13617
    *) objformat=elf ;;
 
13618
    esac
 
13619
  fi
 
13620
  version_type=freebsd-$objformat
 
13621
  case $version_type in
 
13622
    freebsd-elf*)
 
13623
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13624
      need_version=no
 
13625
      need_lib_prefix=no
 
13626
      ;;
 
13627
    freebsd-*)
 
13628
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13629
      need_version=yes
 
13630
      ;;
 
13631
  esac
 
13632
  shlibpath_var=LD_LIBRARY_PATH
 
13633
  case $host_os in
 
13634
  freebsd2*)
 
13635
    shlibpath_overrides_runpath=yes
 
13636
    ;;
 
13637
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13638
    shlibpath_overrides_runpath=yes
 
13639
    hardcode_into_libs=yes
 
13640
    ;;
 
13641
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13642
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13643
    shlibpath_overrides_runpath=no
 
13644
    hardcode_into_libs=yes
 
13645
    ;;
 
13646
  *) # from 4.6 on, and DragonFly
 
13647
    shlibpath_overrides_runpath=yes
 
13648
    hardcode_into_libs=yes
 
13649
    ;;
 
13650
  esac
 
13651
  ;;
 
13652
 
 
13653
gnu*)
 
13654
  version_type=linux
 
13655
  need_lib_prefix=no
 
13656
  need_version=no
 
13657
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13658
  soname_spec='${libname}${release}${shared_ext}$major'
 
13659
  shlibpath_var=LD_LIBRARY_PATH
 
13660
  hardcode_into_libs=yes
 
13661
  ;;
 
13662
 
 
13663
hpux9* | hpux10* | hpux11*)
 
13664
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13665
  # link against other versions.
 
13666
  version_type=sunos
 
13667
  need_lib_prefix=no
 
13668
  need_version=no
 
13669
  case $host_cpu in
 
13670
  ia64*)
 
13671
    shrext_cmds='.so'
 
13672
    hardcode_into_libs=yes
 
13673
    dynamic_linker="$host_os dld.so"
 
13674
    shlibpath_var=LD_LIBRARY_PATH
 
13675
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13676
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13677
    soname_spec='${libname}${release}${shared_ext}$major'
 
13678
    if test "X$HPUX_IA64_MODE" = X32; then
 
13679
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13680
    else
 
13681
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13682
    fi
 
13683
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13684
    ;;
 
13685
   hppa*64*)
 
13686
     shrext_cmds='.sl'
 
13687
     hardcode_into_libs=yes
 
13688
     dynamic_linker="$host_os dld.sl"
 
13689
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13690
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13691
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13692
     soname_spec='${libname}${release}${shared_ext}$major'
 
13693
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13694
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13695
     ;;
 
13696
   *)
 
13697
    shrext_cmds='.sl'
 
13698
    dynamic_linker="$host_os dld.sl"
 
13699
    shlibpath_var=SHLIB_PATH
 
13700
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13701
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13702
    soname_spec='${libname}${release}${shared_ext}$major'
 
13703
    ;;
 
13704
  esac
 
13705
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13706
  postinstall_cmds='chmod 555 $lib'
 
13707
  ;;
 
13708
 
 
13709
interix[3-9]*)
 
13710
  version_type=linux
 
13711
  need_lib_prefix=no
 
13712
  need_version=no
 
13713
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13714
  soname_spec='${libname}${release}${shared_ext}$major'
 
13715
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13716
  shlibpath_var=LD_LIBRARY_PATH
 
13717
  shlibpath_overrides_runpath=no
 
13718
  hardcode_into_libs=yes
 
13719
  ;;
 
13720
 
 
13721
irix5* | irix6* | nonstopux*)
 
13722
  case $host_os in
 
13723
    nonstopux*) version_type=nonstopux ;;
 
13724
    *)
 
13725
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13726
                version_type=linux
 
13727
        else
 
13728
                version_type=irix
 
13729
        fi ;;
 
13730
  esac
 
13731
  need_lib_prefix=no
 
13732
  need_version=no
 
13733
  soname_spec='${libname}${release}${shared_ext}$major'
 
13734
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13735
  case $host_os in
 
13736
  irix5* | nonstopux*)
 
13737
    libsuff= shlibsuff=
 
13738
    ;;
 
13739
  *)
 
13740
    case $LD in # libtool.m4 will add one of these switches to LD
 
13741
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13742
      libsuff= shlibsuff= libmagic=32-bit;;
 
13743
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13744
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13745
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13746
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13747
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13748
    esac
 
13749
    ;;
 
13750
  esac
 
13751
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13752
  shlibpath_overrides_runpath=no
 
13753
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13754
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13755
  hardcode_into_libs=yes
 
13756
  ;;
 
13757
 
 
13758
# No shared lib support for Linux oldld, aout, or coff.
 
13759
linux*oldld* | linux*aout* | linux*coff*)
 
13760
  dynamic_linker=no
 
13761
  ;;
 
13762
 
 
13763
# This must be Linux ELF.
 
13764
linux* | k*bsd*-gnu)
 
13765
  version_type=linux
 
13766
  need_lib_prefix=no
 
13767
  need_version=no
 
13768
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13769
  soname_spec='${libname}${release}${shared_ext}$major'
 
13770
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13771
  shlibpath_var=LD_LIBRARY_PATH
 
13772
  shlibpath_overrides_runpath=no
 
13773
  # This implies no fast_install, which is unacceptable.
 
13774
  # Some rework will be needed to allow for fast_install
 
13775
  # before this can be enabled.
 
13776
  hardcode_into_libs=yes
 
13777
 
 
13778
  # Append ld.so.conf contents to the search path
 
13779
  if test -f /etc/ld.so.conf; then
 
13780
    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' ' '`
 
13781
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13782
  fi
 
13783
 
 
13784
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13785
  # powerpc, because MkLinux only supported shared libraries with the
 
13786
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13787
  # most powerpc-linux boxes support dynamic linking these days and
 
13788
  # people can always --disable-shared, the test was removed, and we
 
13789
  # assume the GNU/Linux dynamic linker is in use.
 
13790
  dynamic_linker='GNU/Linux ld.so'
 
13791
  ;;
 
13792
 
 
13793
netbsdelf*-gnu)
 
13794
  version_type=linux
 
13795
  need_lib_prefix=no
 
13796
  need_version=no
 
13797
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13798
  soname_spec='${libname}${release}${shared_ext}$major'
 
13799
  shlibpath_var=LD_LIBRARY_PATH
 
13800
  shlibpath_overrides_runpath=no
 
13801
  hardcode_into_libs=yes
 
13802
  dynamic_linker='NetBSD ld.elf_so'
 
13803
  ;;
 
13804
 
 
13805
netbsd*)
 
13806
  version_type=sunos
 
13807
  need_lib_prefix=no
 
13808
  need_version=no
 
13809
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13810
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13811
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13812
    dynamic_linker='NetBSD (a.out) ld.so'
 
13813
  else
 
13814
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13815
    soname_spec='${libname}${release}${shared_ext}$major'
 
13816
    dynamic_linker='NetBSD ld.elf_so'
 
13817
  fi
 
13818
  shlibpath_var=LD_LIBRARY_PATH
 
13819
  shlibpath_overrides_runpath=yes
 
13820
  hardcode_into_libs=yes
 
13821
  ;;
 
13822
 
 
13823
newsos6)
 
13824
  version_type=linux
 
13825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13826
  shlibpath_var=LD_LIBRARY_PATH
 
13827
  shlibpath_overrides_runpath=yes
 
13828
  ;;
 
13829
 
 
13830
nto-qnx*)
 
13831
  version_type=linux
 
13832
  need_lib_prefix=no
 
13833
  need_version=no
 
13834
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13835
  soname_spec='${libname}${release}${shared_ext}$major'
 
13836
  shlibpath_var=LD_LIBRARY_PATH
 
13837
  shlibpath_overrides_runpath=yes
 
13838
  ;;
 
13839
 
 
13840
openbsd*)
 
13841
  version_type=sunos
 
13842
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13843
  need_lib_prefix=no
 
13844
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13845
  case $host_os in
 
13846
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13847
    *)                         need_version=no  ;;
 
13848
  esac
 
13849
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13850
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13851
  shlibpath_var=LD_LIBRARY_PATH
 
13852
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13853
    case $host_os in
 
13854
      openbsd2.[89] | openbsd2.[89].*)
 
13855
        shlibpath_overrides_runpath=no
 
13856
        ;;
 
13857
      *)
 
13858
        shlibpath_overrides_runpath=yes
 
13859
        ;;
 
13860
      esac
 
13861
  else
 
13862
    shlibpath_overrides_runpath=yes
 
13863
  fi
 
13864
  ;;
 
13865
 
 
13866
os2*)
 
13867
  libname_spec='$name'
 
13868
  shrext_cmds=".dll"
 
13869
  need_lib_prefix=no
 
13870
  library_names_spec='$libname${shared_ext} $libname.a'
 
13871
  dynamic_linker='OS/2 ld.exe'
 
13872
  shlibpath_var=LIBPATH
 
13873
  ;;
 
13874
 
 
13875
osf3* | osf4* | osf5*)
 
13876
  version_type=osf
 
13877
  need_lib_prefix=no
 
13878
  need_version=no
 
13879
  soname_spec='${libname}${release}${shared_ext}$major'
 
13880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13881
  shlibpath_var=LD_LIBRARY_PATH
 
13882
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13883
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13884
  ;;
 
13885
 
 
13886
rdos*)
 
13887
  dynamic_linker=no
 
13888
  ;;
 
13889
 
 
13890
solaris*)
 
13891
  version_type=linux
 
13892
  need_lib_prefix=no
 
13893
  need_version=no
 
13894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13895
  soname_spec='${libname}${release}${shared_ext}$major'
 
13896
  shlibpath_var=LD_LIBRARY_PATH
 
13897
  shlibpath_overrides_runpath=yes
 
13898
  hardcode_into_libs=yes
 
13899
  # ldd complains unless libraries are executable
 
13900
  postinstall_cmds='chmod +x $lib'
 
13901
  ;;
 
13902
 
 
13903
sunos4*)
 
13904
  version_type=sunos
 
13905
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13906
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13907
  shlibpath_var=LD_LIBRARY_PATH
 
13908
  shlibpath_overrides_runpath=yes
 
13909
  if test "$with_gnu_ld" = yes; then
 
13910
    need_lib_prefix=no
 
13911
  fi
 
13912
  need_version=yes
 
13913
  ;;
 
13914
 
 
13915
sysv4 | sysv4.3*)
 
13916
  version_type=linux
 
13917
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13918
  soname_spec='${libname}${release}${shared_ext}$major'
 
13919
  shlibpath_var=LD_LIBRARY_PATH
 
13920
  case $host_vendor in
 
13921
    sni)
 
13922
      shlibpath_overrides_runpath=no
 
13923
      need_lib_prefix=no
 
13924
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13925
      runpath_var=LD_RUN_PATH
 
13926
      ;;
 
13927
    siemens)
 
13928
      need_lib_prefix=no
 
13929
      ;;
 
13930
    motorola)
 
13931
      need_lib_prefix=no
 
13932
      need_version=no
 
13933
      shlibpath_overrides_runpath=no
 
13934
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13935
      ;;
 
13936
  esac
 
13937
  ;;
 
13938
 
 
13939
sysv4*MP*)
 
13940
  if test -d /usr/nec ;then
 
13941
    version_type=linux
 
13942
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13943
    soname_spec='$libname${shared_ext}.$major'
 
13944
    shlibpath_var=LD_LIBRARY_PATH
 
13945
  fi
 
13946
  ;;
 
13947
 
 
13948
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13949
  version_type=freebsd-elf
 
13950
  need_lib_prefix=no
 
13951
  need_version=no
 
13952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13953
  soname_spec='${libname}${release}${shared_ext}$major'
 
13954
  shlibpath_var=LD_LIBRARY_PATH
 
13955
  hardcode_into_libs=yes
 
13956
  if test "$with_gnu_ld" = yes; then
 
13957
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13958
    shlibpath_overrides_runpath=no
 
13959
  else
 
13960
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13961
    shlibpath_overrides_runpath=yes
 
13962
    case $host_os in
 
13963
      sco3.2v5*)
 
13964
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13965
        ;;
 
13966
    esac
 
13967
  fi
 
13968
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13969
  ;;
 
13970
 
 
13971
uts4*)
 
13972
  version_type=linux
 
13973
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13974
  soname_spec='${libname}${release}${shared_ext}$major'
 
13975
  shlibpath_var=LD_LIBRARY_PATH
 
13976
  ;;
 
13977
 
 
13978
*)
 
13979
  dynamic_linker=no
 
13980
  ;;
 
13981
esac
 
13982
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13983
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13984
test "$dynamic_linker" = no && can_build_shared=no
 
13985
 
 
13986
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13987
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13988
else
 
13989
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13990
fi
 
13991
 
 
13992
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13993
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13994
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13995
else
 
13996
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13997
fi
 
13998
 
 
13999
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14000
 
 
14001
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14002
if test "$GCC" = yes; then
 
14003
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14004
fi
 
14005
 
 
14006
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14007
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
14008
hardcode_action_CXX=
 
14009
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14010
   test -n "$runpath_var_CXX" || \
 
14011
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14012
 
 
14013
  # We can hardcode non-existant directories.
 
14014
  if test "$hardcode_direct_CXX" != no &&
 
14015
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14016
     # have to relink, otherwise we might link with an installed library
 
14017
     # when we should be linking with a yet-to-be-installed one
 
14018
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14019
     test "$hardcode_minus_L_CXX" != no; then
 
14020
    # Linking always hardcodes the temporary library directory.
 
14021
    hardcode_action_CXX=relink
 
14022
  else
 
14023
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14024
    hardcode_action_CXX=immediate
 
14025
  fi
 
14026
else
 
14027
  # We cannot hardcode anything, or else we can only hardcode existing
 
14028
  # directories.
 
14029
  hardcode_action_CXX=unsupported
 
14030
fi
 
14031
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14032
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
14033
 
 
14034
if test "$hardcode_action_CXX" = relink; then
 
14035
  # Fast installation is not supported
 
14036
  enable_fast_install=no
 
14037
elif test "$shlibpath_overrides_runpath" = yes ||
 
14038
     test "$enable_shared" = no; then
 
14039
  # Fast installation is not necessary
 
14040
  enable_fast_install=needless
 
14041
fi
 
14042
 
 
14043
 
 
14044
# The else clause should only fire when bootstrapping the
 
14045
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14046
# with your package, and you will get complaints that there are
 
14047
# no rules to generate ltmain.sh.
 
14048
if test -f "$ltmain"; then
 
14049
  # See if we are running on zsh, and set the options which allow our commands through
 
14050
  # without removal of \ escapes.
 
14051
  if test -n "${ZSH_VERSION+set}" ; then
 
14052
    setopt NO_GLOB_SUBST
 
14053
  fi
 
14054
  # Now quote all the things that may contain metacharacters while being
 
14055
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14056
  # variables and quote the copies for generation of the libtool script.
 
14057
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14058
    SED SHELL STRIP \
 
14059
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14060
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14061
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14062
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14063
    lt_cv_sys_global_symbol_to_c_name_address \
 
14064
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14065
    old_postinstall_cmds old_postuninstall_cmds \
 
14066
    compiler_CXX \
 
14067
    CC_CXX \
 
14068
    LD_CXX \
 
14069
    lt_prog_compiler_wl_CXX \
 
14070
    lt_prog_compiler_pic_CXX \
 
14071
    lt_prog_compiler_static_CXX \
 
14072
    lt_prog_compiler_no_builtin_flag_CXX \
 
14073
    export_dynamic_flag_spec_CXX \
 
14074
    thread_safe_flag_spec_CXX \
 
14075
    whole_archive_flag_spec_CXX \
 
14076
    enable_shared_with_static_runtimes_CXX \
 
14077
    old_archive_cmds_CXX \
 
14078
    old_archive_from_new_cmds_CXX \
 
14079
    predep_objects_CXX \
 
14080
    postdep_objects_CXX \
 
14081
    predeps_CXX \
 
14082
    postdeps_CXX \
 
14083
    compiler_lib_search_path_CXX \
 
14084
    compiler_lib_search_dirs_CXX \
 
14085
    archive_cmds_CXX \
 
14086
    archive_expsym_cmds_CXX \
 
14087
    postinstall_cmds_CXX \
 
14088
    postuninstall_cmds_CXX \
 
14089
    old_archive_from_expsyms_cmds_CXX \
 
14090
    allow_undefined_flag_CXX \
 
14091
    no_undefined_flag_CXX \
 
14092
    export_symbols_cmds_CXX \
 
14093
    hardcode_libdir_flag_spec_CXX \
 
14094
    hardcode_libdir_flag_spec_ld_CXX \
 
14095
    hardcode_libdir_separator_CXX \
 
14096
    hardcode_automatic_CXX \
 
14097
    module_cmds_CXX \
 
14098
    module_expsym_cmds_CXX \
 
14099
    lt_cv_prog_compiler_c_o_CXX \
 
14100
    fix_srcfile_path_CXX \
 
14101
    exclude_expsyms_CXX \
 
14102
    include_expsyms_CXX; do
 
14103
 
 
14104
    case $var in
 
14105
    old_archive_cmds_CXX | \
 
14106
    old_archive_from_new_cmds_CXX | \
 
14107
    archive_cmds_CXX | \
 
14108
    archive_expsym_cmds_CXX | \
 
14109
    module_cmds_CXX | \
 
14110
    module_expsym_cmds_CXX | \
 
14111
    old_archive_from_expsyms_cmds_CXX | \
 
14112
    export_symbols_cmds_CXX | \
 
14113
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14114
    postinstall_cmds | postuninstall_cmds | \
 
14115
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14116
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14117
      # Double-quote double-evaled strings.
 
14118
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14119
      ;;
 
14120
    *)
 
14121
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14122
      ;;
 
14123
    esac
 
14124
  done
 
14125
 
 
14126
  case $lt_echo in
 
14127
  *'\$0 --fallback-echo"')
 
14128
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14129
    ;;
 
14130
  esac
 
14131
 
 
14132
cfgfile="$ofile"
 
14133
 
 
14134
  cat <<__EOF__ >> "$cfgfile"
 
14135
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14136
 
 
14137
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14138
 
 
14139
# Shell to use when invoking shell scripts.
 
14140
SHELL=$lt_SHELL
 
14141
 
 
14142
# Whether or not to build shared libraries.
 
14143
build_libtool_libs=$enable_shared
 
14144
 
 
14145
# Whether or not to build static libraries.
 
14146
build_old_libs=$enable_static
 
14147
 
 
14148
# Whether or not to add -lc for building shared libraries.
 
14149
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14150
 
 
14151
# Whether or not to disallow shared libs when runtime libs are static
 
14152
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14153
 
 
14154
# Whether or not to optimize for fast installation.
 
14155
fast_install=$enable_fast_install
 
14156
 
 
14157
# The host system.
 
14158
host_alias=$host_alias
 
14159
host=$host
 
14160
host_os=$host_os
 
14161
 
 
14162
# The build system.
 
14163
build_alias=$build_alias
 
14164
build=$build
 
14165
build_os=$build_os
 
14166
 
 
14167
# An echo program that does not interpret backslashes.
 
14168
echo=$lt_echo
 
14169
 
 
14170
# The archiver.
 
14171
AR=$lt_AR
 
14172
AR_FLAGS=$lt_AR_FLAGS
 
14173
 
 
14174
# A C compiler.
 
14175
LTCC=$lt_LTCC
 
14176
 
 
14177
# LTCC compiler flags.
 
14178
LTCFLAGS=$lt_LTCFLAGS
 
14179
 
 
14180
# A language-specific compiler.
 
14181
CC=$lt_compiler_CXX
 
14182
 
 
14183
# Is the compiler the GNU C compiler?
 
14184
with_gcc=$GCC_CXX
 
14185
 
 
14186
# An ERE matcher.
 
14187
EGREP=$lt_EGREP
 
14188
 
 
14189
# The linker used to build libraries.
 
14190
LD=$lt_LD_CXX
 
14191
 
 
14192
# Whether we need hard or soft links.
 
14193
LN_S=$lt_LN_S
 
14194
 
 
14195
# A BSD-compatible nm program.
 
14196
NM=$lt_NM
 
14197
 
 
14198
# A symbol stripping program
 
14199
STRIP=$lt_STRIP
 
14200
 
 
14201
# Used to examine libraries when file_magic_cmd begins "file"
 
14202
MAGIC_CMD=$MAGIC_CMD
 
14203
 
 
14204
# Used on cygwin: DLL creation program.
 
14205
DLLTOOL="$DLLTOOL"
 
14206
 
 
14207
# Used on cygwin: object dumper.
 
14208
OBJDUMP="$OBJDUMP"
 
14209
 
 
14210
# Used on cygwin: assembler.
 
14211
AS="$AS"
 
14212
 
 
14213
# The name of the directory that contains temporary libtool files.
 
14214
objdir=$objdir
 
14215
 
 
14216
# How to create reloadable object files.
 
14217
reload_flag=$lt_reload_flag
 
14218
reload_cmds=$lt_reload_cmds
 
14219
 
 
14220
# How to pass a linker flag through the compiler.
 
14221
wl=$lt_lt_prog_compiler_wl_CXX
 
14222
 
 
14223
# Object file suffix (normally "o").
 
14224
objext="$ac_objext"
 
14225
 
 
14226
# Old archive suffix (normally "a").
 
14227
libext="$libext"
 
14228
 
 
14229
# Shared library suffix (normally ".so").
 
14230
shrext_cmds='$shrext_cmds'
 
14231
 
 
14232
# Executable file suffix (normally "").
 
14233
exeext="$exeext"
 
14234
 
 
14235
# Additional compiler flags for building library objects.
 
14236
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14237
pic_mode=$pic_mode
 
14238
 
 
14239
# What is the maximum length of a command?
 
14240
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14241
 
 
14242
# Does compiler simultaneously support -c and -o options?
 
14243
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14244
 
 
14245
# Must we lock files when doing compilation?
 
14246
need_locks=$lt_need_locks
 
14247
 
 
14248
# Do we need the lib prefix for modules?
 
14249
need_lib_prefix=$need_lib_prefix
 
14250
 
 
14251
# Do we need a version for libraries?
 
14252
need_version=$need_version
 
14253
 
 
14254
# Whether dlopen is supported.
 
14255
dlopen_support=$enable_dlopen
 
14256
 
 
14257
# Whether dlopen of programs is supported.
 
14258
dlopen_self=$enable_dlopen_self
 
14259
 
 
14260
# Whether dlopen of statically linked programs is supported.
 
14261
dlopen_self_static=$enable_dlopen_self_static
 
14262
 
 
14263
# Compiler flag to prevent dynamic linking.
 
14264
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14265
 
 
14266
# Compiler flag to turn off builtin functions.
 
14267
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14268
 
 
14269
# Compiler flag to allow reflexive dlopens.
 
14270
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14271
 
 
14272
# Compiler flag to generate shared objects directly from archives.
 
14273
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14274
 
 
14275
# Compiler flag to generate thread-safe objects.
 
14276
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14277
 
 
14278
# Library versioning type.
 
14279
version_type=$version_type
 
14280
 
 
14281
# Format of library name prefix.
 
14282
libname_spec=$lt_libname_spec
 
14283
 
 
14284
# List of archive names.  First name is the real one, the rest are links.
 
14285
# The last name is the one that the linker finds with -lNAME.
 
14286
library_names_spec=$lt_library_names_spec
 
14287
 
 
14288
# The coded name of the library, if different from the real name.
 
14289
soname_spec=$lt_soname_spec
 
14290
 
 
14291
# Commands used to build and install an old-style archive.
 
14292
RANLIB=$lt_RANLIB
 
14293
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14294
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14295
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14296
 
 
14297
# Create an old-style archive from a shared archive.
 
14298
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14299
 
 
14300
# Create a temporary old-style archive to link instead of a shared archive.
 
14301
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14302
 
 
14303
# Commands used to build and install a shared archive.
 
14304
archive_cmds=$lt_archive_cmds_CXX
 
14305
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14306
postinstall_cmds=$lt_postinstall_cmds
 
14307
postuninstall_cmds=$lt_postuninstall_cmds
 
14308
 
 
14309
# Commands used to build a loadable module (assumed same as above if empty)
 
14310
module_cmds=$lt_module_cmds_CXX
 
14311
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14312
 
 
14313
# Commands to strip libraries.
 
14314
old_striplib=$lt_old_striplib
 
14315
striplib=$lt_striplib
 
14316
 
 
14317
# Dependencies to place before the objects being linked to create a
 
14318
# shared library.
 
14319
predep_objects=$lt_predep_objects_CXX
 
14320
 
 
14321
# Dependencies to place after the objects being linked to create a
 
14322
# shared library.
 
14323
postdep_objects=$lt_postdep_objects_CXX
 
14324
 
 
14325
# Dependencies to place before the objects being linked to create a
 
14326
# shared library.
 
14327
predeps=$lt_predeps_CXX
 
14328
 
 
14329
# Dependencies to place after the objects being linked to create a
 
14330
# shared library.
 
14331
postdeps=$lt_postdeps_CXX
 
14332
 
 
14333
# The directories searched by this compiler when creating a shared
 
14334
# library
 
14335
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14336
 
 
14337
# The library search path used internally by the compiler when linking
 
14338
# a shared library.
 
14339
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14340
 
 
14341
# Method to check whether dependent libraries are shared objects.
 
14342
deplibs_check_method=$lt_deplibs_check_method
 
14343
 
 
14344
# Command to use when deplibs_check_method == file_magic.
 
14345
file_magic_cmd=$lt_file_magic_cmd
 
14346
 
 
14347
# Flag that allows shared libraries with undefined symbols to be built.
 
14348
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14349
 
 
14350
# Flag that forces no undefined symbols.
 
14351
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14352
 
 
14353
# Commands used to finish a libtool library installation in a directory.
 
14354
finish_cmds=$lt_finish_cmds
 
14355
 
 
14356
# Same as above, but a single script fragment to be evaled but not shown.
 
14357
finish_eval=$lt_finish_eval
 
14358
 
 
14359
# Take the output of nm and produce a listing of raw symbols and C names.
 
14360
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14361
 
 
14362
# Transform the output of nm in a proper C declaration
 
14363
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14364
 
 
14365
# Transform the output of nm in a C name address pair
 
14366
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14367
 
 
14368
# This is the shared library runtime path variable.
 
14369
runpath_var=$runpath_var
 
14370
 
 
14371
# This is the shared library path variable.
 
14372
shlibpath_var=$shlibpath_var
 
14373
 
 
14374
# Is shlibpath searched before the hard-coded library search path?
 
14375
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14376
 
 
14377
# How to hardcode a shared library path into an executable.
 
14378
hardcode_action=$hardcode_action_CXX
 
14379
 
 
14380
# Whether we should hardcode library paths into libraries.
 
14381
hardcode_into_libs=$hardcode_into_libs
 
14382
 
 
14383
# Flag to hardcode \$libdir into a binary during linking.
 
14384
# This must work even if \$libdir does not exist.
 
14385
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14386
 
 
14387
# If ld is used when linking, flag to hardcode \$libdir into
 
14388
# a binary during linking. This must work even if \$libdir does
 
14389
# not exist.
 
14390
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14391
 
 
14392
# Whether we need a single -rpath flag with a separated argument.
 
14393
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14394
 
 
14395
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14396
# resulting binary.
 
14397
hardcode_direct=$hardcode_direct_CXX
 
14398
 
 
14399
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14400
# resulting binary.
 
14401
hardcode_minus_L=$hardcode_minus_L_CXX
 
14402
 
 
14403
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14404
# the resulting binary.
 
14405
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14406
 
 
14407
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14408
# and all subsequent libraries and executables linked against it.
 
14409
hardcode_automatic=$hardcode_automatic_CXX
 
14410
 
 
14411
# Variables whose values should be saved in libtool wrapper scripts and
 
14412
# restored at relink time.
 
14413
variables_saved_for_relink="$variables_saved_for_relink"
 
14414
 
 
14415
# Whether libtool must link a program against all its dependency libraries.
 
14416
link_all_deplibs=$link_all_deplibs_CXX
 
14417
 
 
14418
# Compile-time system search path for libraries
 
14419
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14420
 
 
14421
# Run-time system search path for libraries
 
14422
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14423
 
 
14424
# Fix the shell variable \$srcfile for the compiler.
 
14425
fix_srcfile_path=$lt_fix_srcfile_path
 
14426
 
 
14427
# Set to yes if exported symbols are required.
 
14428
always_export_symbols=$always_export_symbols_CXX
 
14429
 
 
14430
# The commands to list exported symbols.
 
14431
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14432
 
 
14433
# The commands to extract the exported symbol list from a shared archive.
 
14434
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14435
 
 
14436
# Symbols that should not be listed in the preloaded symbols.
 
14437
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14438
 
 
14439
# Symbols that must always be exported.
 
14440
include_expsyms=$lt_include_expsyms_CXX
 
14441
 
 
14442
# ### END LIBTOOL TAG CONFIG: $tagname
 
14443
 
 
14444
__EOF__
 
14445
 
 
14446
 
 
14447
else
 
14448
  # If there is no Makefile yet, we rely on a make rule to execute
 
14449
  # `config.status --recheck' to rerun these tests and create the
 
14450
  # libtool script then.
 
14451
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14452
  if test -f "$ltmain_in"; then
 
14453
    test -f Makefile && make "$ltmain"
 
14454
  fi
 
14455
fi
 
14456
 
 
14457
 
 
14458
ac_ext=c
 
14459
ac_cpp='$CPP $CPPFLAGS'
 
14460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14463
 
 
14464
CC=$lt_save_CC
 
14465
LDCXX=$LD
 
14466
LD=$lt_save_LD
 
14467
GCC=$lt_save_GCC
 
14468
with_gnu_ldcxx=$with_gnu_ld
 
14469
with_gnu_ld=$lt_save_with_gnu_ld
 
14470
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14471
lt_cv_path_LD=$lt_save_path_LD
 
14472
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14473
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14474
 
 
14475
        else
 
14476
          tagname=""
 
14477
        fi
 
14478
        ;;
 
14479
 
 
14480
      F77)
 
14481
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14482
 
 
14483
ac_ext=f
 
14484
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14485
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14486
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14487
 
 
14488
 
 
14489
archive_cmds_need_lc_F77=no
 
14490
allow_undefined_flag_F77=
 
14491
always_export_symbols_F77=no
 
14492
archive_expsym_cmds_F77=
 
14493
export_dynamic_flag_spec_F77=
 
14494
hardcode_direct_F77=no
 
14495
hardcode_libdir_flag_spec_F77=
 
14496
hardcode_libdir_flag_spec_ld_F77=
 
14497
hardcode_libdir_separator_F77=
 
14498
hardcode_minus_L_F77=no
 
14499
hardcode_automatic_F77=no
 
14500
module_cmds_F77=
 
14501
module_expsym_cmds_F77=
 
14502
link_all_deplibs_F77=unknown
 
14503
old_archive_cmds_F77=$old_archive_cmds
 
14504
no_undefined_flag_F77=
 
14505
whole_archive_flag_spec_F77=
 
14506
enable_shared_with_static_runtimes_F77=no
 
14507
 
 
14508
# Source file extension for f77 test sources.
 
14509
ac_ext=f
 
14510
 
 
14511
# Object file extension for compiled f77 test sources.
 
14512
objext=o
 
14513
objext_F77=$objext
 
14514
 
 
14515
# Code to be used in simple compile tests
 
14516
lt_simple_compile_test_code="\
 
14517
      subroutine t
 
14518
      return
 
14519
      end
 
14520
"
 
14521
 
 
14522
# Code to be used in simple link tests
 
14523
lt_simple_link_test_code="\
 
14524
      program t
 
14525
      end
 
14526
"
 
14527
 
 
14528
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14529
 
 
14530
# If no C compiler was specified, use CC.
 
14531
LTCC=${LTCC-"$CC"}
 
14532
 
 
14533
# If no C compiler flags were specified, use CFLAGS.
 
14534
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14535
 
 
14536
# Allow CC to be a program name with arguments.
 
14537
compiler=$CC
 
14538
 
 
14539
 
 
14540
# save warnings/boilerplate of simple test code
 
14541
ac_outfile=conftest.$ac_objext
 
14542
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14543
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14544
_lt_compiler_boilerplate=`cat conftest.err`
 
14545
$rm conftest*
 
14546
 
 
14547
ac_outfile=conftest.$ac_objext
 
14548
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14549
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14550
_lt_linker_boilerplate=`cat conftest.err`
 
14551
$rm -r conftest*
 
14552
 
 
14553
 
 
14554
# Allow CC to be a program name with arguments.
 
14555
lt_save_CC="$CC"
 
14556
CC=${F77-"f77"}
 
14557
compiler=$CC
 
14558
compiler_F77=$CC
 
14559
for cc_temp in $compiler""; do
 
14560
  case $cc_temp in
 
14561
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14562
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14563
    \-*) ;;
 
14564
    *) break;;
 
14565
  esac
 
14566
done
 
14567
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14568
 
 
14569
 
 
14570
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14571
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14572
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14573
echo "${ECHO_T}$can_build_shared" >&6; }
 
14574
 
 
14575
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14576
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14577
test "$can_build_shared" = "no" && enable_shared=no
 
14578
 
 
14579
# On AIX, shared libraries and static libraries use the same namespace, and
 
14580
# are all built from PIC.
 
14581
case $host_os in
 
14582
aix3*)
 
14583
  test "$enable_shared" = yes && enable_static=no
 
14584
  if test -n "$RANLIB"; then
 
14585
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14586
    postinstall_cmds='$RANLIB $lib'
 
14587
  fi
 
14588
  ;;
 
14589
aix[4-9]*)
 
14590
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14591
    test "$enable_shared" = yes && enable_static=no
 
14592
  fi
 
14593
  ;;
 
14594
esac
 
14595
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14596
echo "${ECHO_T}$enable_shared" >&6; }
 
14597
 
 
14598
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14599
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14600
# Make sure either enable_shared or enable_static is yes.
 
14601
test "$enable_shared" = yes || enable_static=yes
 
14602
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14603
echo "${ECHO_T}$enable_static" >&6; }
 
14604
 
 
14605
GCC_F77="$G77"
 
14606
LD_F77="$LD"
 
14607
 
 
14608
lt_prog_compiler_wl_F77=
 
14609
lt_prog_compiler_pic_F77=
 
14610
lt_prog_compiler_static_F77=
 
14611
 
 
14612
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14613
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14614
 
 
14615
  if test "$GCC" = yes; then
 
14616
    lt_prog_compiler_wl_F77='-Wl,'
 
14617
    lt_prog_compiler_static_F77='-static'
 
14618
 
 
14619
    case $host_os in
 
14620
      aix*)
 
14621
      # All AIX code is PIC.
 
14622
      if test "$host_cpu" = ia64; then
 
14623
        # AIX 5 now supports IA64 processor
 
14624
        lt_prog_compiler_static_F77='-Bstatic'
 
14625
      fi
 
14626
      ;;
 
14627
 
 
14628
    amigaos*)
 
14629
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14630
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14631
      # like `-m68040'.
 
14632
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14633
      ;;
 
14634
 
 
14635
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14636
      # PIC is the default for these OSes.
 
14637
      ;;
 
14638
 
 
14639
    mingw* | cygwin* | pw32* | os2*)
 
14640
      # This hack is so that the source file can tell whether it is being
 
14641
      # built for inclusion in a dll (and should export symbols for example).
 
14642
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14643
      # (--disable-auto-import) libraries
 
14644
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14645
      ;;
 
14646
 
 
14647
    darwin* | rhapsody*)
 
14648
      # PIC is the default on this platform
 
14649
      # Common symbols not allowed in MH_DYLIB files
 
14650
      lt_prog_compiler_pic_F77='-fno-common'
 
14651
      ;;
 
14652
 
 
14653
    interix[3-9]*)
 
14654
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14655
      # Instead, we relocate shared libraries at runtime.
 
14656
      ;;
 
14657
 
 
14658
    msdosdjgpp*)
 
14659
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14660
      # on systems that don't support them.
 
14661
      lt_prog_compiler_can_build_shared_F77=no
 
14662
      enable_shared=no
 
14663
      ;;
 
14664
 
 
14665
    sysv4*MP*)
 
14666
      if test -d /usr/nec; then
 
14667
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14668
      fi
 
14669
      ;;
 
14670
 
 
14671
    hpux*)
 
14672
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14673
      # not for PA HP-UX.
 
14674
      case $host_cpu in
 
14675
      hppa*64*|ia64*)
 
14676
        # +Z the default
 
14677
        ;;
 
14678
      *)
 
14679
        lt_prog_compiler_pic_F77='-fPIC'
 
14680
        ;;
 
14681
      esac
 
14682
      ;;
 
14683
 
 
14684
    *)
 
14685
      lt_prog_compiler_pic_F77='-fPIC'
 
14686
      ;;
 
14687
    esac
 
14688
  else
 
14689
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14690
    case $host_os in
 
14691
    aix*)
 
14692
      lt_prog_compiler_wl_F77='-Wl,'
 
14693
      if test "$host_cpu" = ia64; then
 
14694
        # AIX 5 now supports IA64 processor
 
14695
        lt_prog_compiler_static_F77='-Bstatic'
 
14696
      else
 
14697
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14698
      fi
 
14699
      ;;
 
14700
      darwin*)
 
14701
        # PIC is the default on this platform
 
14702
        # Common symbols not allowed in MH_DYLIB files
 
14703
       case $cc_basename in
 
14704
         xlc*)
 
14705
         lt_prog_compiler_pic_F77='-qnocommon'
 
14706
         lt_prog_compiler_wl_F77='-Wl,'
 
14707
         ;;
 
14708
       esac
 
14709
       ;;
 
14710
 
 
14711
    mingw* | cygwin* | pw32* | os2*)
 
14712
      # This hack is so that the source file can tell whether it is being
 
14713
      # built for inclusion in a dll (and should export symbols for example).
 
14714
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14715
      ;;
 
14716
 
 
14717
    hpux9* | hpux10* | hpux11*)
 
14718
      lt_prog_compiler_wl_F77='-Wl,'
 
14719
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14720
      # not for PA HP-UX.
 
14721
      case $host_cpu in
 
14722
      hppa*64*|ia64*)
 
14723
        # +Z the default
 
14724
        ;;
 
14725
      *)
 
14726
        lt_prog_compiler_pic_F77='+Z'
 
14727
        ;;
 
14728
      esac
 
14729
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14730
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14731
      ;;
 
14732
 
 
14733
    irix5* | irix6* | nonstopux*)
 
14734
      lt_prog_compiler_wl_F77='-Wl,'
 
14735
      # PIC (with -KPIC) is the default.
 
14736
      lt_prog_compiler_static_F77='-non_shared'
 
14737
      ;;
 
14738
 
 
14739
    newsos6)
 
14740
      lt_prog_compiler_pic_F77='-KPIC'
 
14741
      lt_prog_compiler_static_F77='-Bstatic'
 
14742
      ;;
 
14743
 
 
14744
    linux* | k*bsd*-gnu)
 
14745
      case $cc_basename in
 
14746
      icc* | ecc*)
 
14747
        lt_prog_compiler_wl_F77='-Wl,'
 
14748
        lt_prog_compiler_pic_F77='-KPIC'
 
14749
        lt_prog_compiler_static_F77='-static'
 
14750
        ;;
 
14751
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14752
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14753
        # which looks to be a dead project)
 
14754
        lt_prog_compiler_wl_F77='-Wl,'
 
14755
        lt_prog_compiler_pic_F77='-fpic'
 
14756
        lt_prog_compiler_static_F77='-Bstatic'
 
14757
        ;;
 
14758
      ccc*)
 
14759
        lt_prog_compiler_wl_F77='-Wl,'
 
14760
        # All Alpha code is PIC.
 
14761
        lt_prog_compiler_static_F77='-non_shared'
 
14762
        ;;
 
14763
      *)
 
14764
        case `$CC -V 2>&1 | sed 5q` in
 
14765
        *Sun\ C*)
 
14766
          # Sun C 5.9
 
14767
          lt_prog_compiler_pic_F77='-KPIC'
 
14768
          lt_prog_compiler_static_F77='-Bstatic'
 
14769
          lt_prog_compiler_wl_F77='-Wl,'
 
14770
          ;;
 
14771
        *Sun\ F*)
 
14772
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14773
          lt_prog_compiler_pic_F77='-KPIC'
 
14774
          lt_prog_compiler_static_F77='-Bstatic'
 
14775
          lt_prog_compiler_wl_F77=''
 
14776
          ;;
 
14777
        esac
 
14778
        ;;
 
14779
      esac
 
14780
      ;;
 
14781
 
 
14782
    osf3* | osf4* | osf5*)
 
14783
      lt_prog_compiler_wl_F77='-Wl,'
 
14784
      # All OSF/1 code is PIC.
 
14785
      lt_prog_compiler_static_F77='-non_shared'
 
14786
      ;;
 
14787
 
 
14788
    rdos*)
 
14789
      lt_prog_compiler_static_F77='-non_shared'
 
14790
      ;;
 
14791
 
 
14792
    solaris*)
 
14793
      lt_prog_compiler_pic_F77='-KPIC'
 
14794
      lt_prog_compiler_static_F77='-Bstatic'
 
14795
      case $cc_basename in
 
14796
      f77* | f90* | f95*)
 
14797
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14798
      *)
 
14799
        lt_prog_compiler_wl_F77='-Wl,';;
 
14800
      esac
 
14801
      ;;
 
14802
 
 
14803
    sunos4*)
 
14804
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14805
      lt_prog_compiler_pic_F77='-PIC'
 
14806
      lt_prog_compiler_static_F77='-Bstatic'
 
14807
      ;;
 
14808
 
 
14809
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14810
      lt_prog_compiler_wl_F77='-Wl,'
 
14811
      lt_prog_compiler_pic_F77='-KPIC'
 
14812
      lt_prog_compiler_static_F77='-Bstatic'
 
14813
      ;;
 
14814
 
 
14815
    sysv4*MP*)
 
14816
      if test -d /usr/nec ;then
 
14817
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14818
        lt_prog_compiler_static_F77='-Bstatic'
 
14819
      fi
 
14820
      ;;
 
14821
 
 
14822
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14823
      lt_prog_compiler_wl_F77='-Wl,'
 
14824
      lt_prog_compiler_pic_F77='-KPIC'
 
14825
      lt_prog_compiler_static_F77='-Bstatic'
 
14826
      ;;
 
14827
 
 
14828
    unicos*)
 
14829
      lt_prog_compiler_wl_F77='-Wl,'
 
14830
      lt_prog_compiler_can_build_shared_F77=no
 
14831
      ;;
 
14832
 
 
14833
    uts4*)
 
14834
      lt_prog_compiler_pic_F77='-pic'
 
14835
      lt_prog_compiler_static_F77='-Bstatic'
 
14836
      ;;
 
14837
 
 
14838
    *)
 
14839
      lt_prog_compiler_can_build_shared_F77=no
 
14840
      ;;
 
14841
    esac
 
14842
  fi
 
14843
 
 
14844
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14845
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14846
 
 
14847
#
 
14848
# Check to make sure the PIC flag actually works.
 
14849
#
 
14850
if test -n "$lt_prog_compiler_pic_F77"; then
 
14851
 
 
14852
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14853
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14854
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14855
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14856
else
 
14857
  lt_cv_prog_compiler_pic_works_F77=no
 
14858
  ac_outfile=conftest.$ac_objext
 
14859
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14860
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14861
   # Insert the option either (1) after the last *FLAGS variable, or
 
14862
   # (2) before a word containing "conftest.", or (3) at the end.
 
14863
   # Note that $ac_compile itself does not contain backslashes and begins
 
14864
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14865
   # The option is referenced via a variable to avoid confusing sed.
 
14866
   lt_compile=`echo "$ac_compile" | $SED \
 
14867
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14868
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14869
   -e 's:$: $lt_compiler_flag:'`
 
14870
   (eval echo "\"\$as_me:14870: $lt_compile\"" >&5)
 
14871
   (eval "$lt_compile" 2>conftest.err)
 
14872
   ac_status=$?
 
14873
   cat conftest.err >&5
 
14874
   echo "$as_me:14874: \$? = $ac_status" >&5
 
14875
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14876
     # The compiler can only warn and ignore the option if not recognized
 
14877
     # So say no if there are warnings other than the usual output.
 
14878
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14879
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14880
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14881
       lt_cv_prog_compiler_pic_works_F77=yes
 
14882
     fi
 
14883
   fi
 
14884
   $rm conftest*
 
14885
 
 
14886
fi
 
14887
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14888
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14889
 
 
14890
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14891
    case $lt_prog_compiler_pic_F77 in
 
14892
     "" | " "*) ;;
 
14893
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14894
     esac
 
14895
else
 
14896
    lt_prog_compiler_pic_F77=
 
14897
     lt_prog_compiler_can_build_shared_F77=no
 
14898
fi
 
14899
 
 
14900
fi
 
14901
case $host_os in
 
14902
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14903
  *djgpp*)
 
14904
    lt_prog_compiler_pic_F77=
 
14905
    ;;
 
14906
  *)
 
14907
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14908
    ;;
 
14909
esac
 
14910
 
 
14911
#
 
14912
# Check to make sure the static flag actually works.
 
14913
#
 
14914
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14915
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14916
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14917
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14919
else
 
14920
  lt_cv_prog_compiler_static_works_F77=no
 
14921
   save_LDFLAGS="$LDFLAGS"
 
14922
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14923
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14924
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14925
     # The linker can only warn and ignore the option if not recognized
 
14926
     # So say no if there are warnings
 
14927
     if test -s conftest.err; then
 
14928
       # Append any errors to the config.log.
 
14929
       cat conftest.err 1>&5
 
14930
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14931
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14932
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14933
         lt_cv_prog_compiler_static_works_F77=yes
 
14934
       fi
 
14935
     else
 
14936
       lt_cv_prog_compiler_static_works_F77=yes
 
14937
     fi
 
14938
   fi
 
14939
   $rm -r conftest*
 
14940
   LDFLAGS="$save_LDFLAGS"
 
14941
 
 
14942
fi
 
14943
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14944
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14945
 
 
14946
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14947
    :
 
14948
else
 
14949
    lt_prog_compiler_static_F77=
 
14950
fi
 
14951
 
 
14952
 
 
14953
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14954
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14955
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14957
else
 
14958
  lt_cv_prog_compiler_c_o_F77=no
 
14959
   $rm -r conftest 2>/dev/null
 
14960
   mkdir conftest
 
14961
   cd conftest
 
14962
   mkdir out
 
14963
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14964
 
 
14965
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14966
   # Insert the option either (1) after the last *FLAGS variable, or
 
14967
   # (2) before a word containing "conftest.", or (3) at the end.
 
14968
   # Note that $ac_compile itself does not contain backslashes and begins
 
14969
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14970
   lt_compile=`echo "$ac_compile" | $SED \
 
14971
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14972
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14973
   -e 's:$: $lt_compiler_flag:'`
 
14974
   (eval echo "\"\$as_me:14974: $lt_compile\"" >&5)
 
14975
   (eval "$lt_compile" 2>out/conftest.err)
 
14976
   ac_status=$?
 
14977
   cat out/conftest.err >&5
 
14978
   echo "$as_me:14978: \$? = $ac_status" >&5
 
14979
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14980
   then
 
14981
     # The compiler can only warn and ignore the option if not recognized
 
14982
     # So say no if there are warnings
 
14983
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14984
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14985
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14986
       lt_cv_prog_compiler_c_o_F77=yes
 
14987
     fi
 
14988
   fi
 
14989
   chmod u+w . 2>&5
 
14990
   $rm conftest*
 
14991
   # SGI C++ compiler will create directory out/ii_files/ for
 
14992
   # template instantiation
 
14993
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14994
   $rm out/* && rmdir out
 
14995
   cd ..
 
14996
   rmdir conftest
 
14997
   $rm conftest*
 
14998
 
 
14999
fi
 
15000
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15001
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
15002
 
 
15003
 
 
15004
hard_links="nottested"
 
15005
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15006
  # do not overwrite the value of need_locks provided by the user
 
15007
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15008
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
15009
  hard_links=yes
 
15010
  $rm conftest*
 
15011
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15012
  touch conftest.a
 
15013
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15014
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15015
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
15016
echo "${ECHO_T}$hard_links" >&6; }
 
15017
  if test "$hard_links" = no; then
 
15018
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15019
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15020
    need_locks=warn
 
15021
  fi
 
15022
else
 
15023
  need_locks=no
 
15024
fi
 
15025
 
 
15026
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15027
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
15028
 
 
15029
  runpath_var=
 
15030
  allow_undefined_flag_F77=
 
15031
  enable_shared_with_static_runtimes_F77=no
 
15032
  archive_cmds_F77=
 
15033
  archive_expsym_cmds_F77=
 
15034
  old_archive_From_new_cmds_F77=
 
15035
  old_archive_from_expsyms_cmds_F77=
 
15036
  export_dynamic_flag_spec_F77=
 
15037
  whole_archive_flag_spec_F77=
 
15038
  thread_safe_flag_spec_F77=
 
15039
  hardcode_libdir_flag_spec_F77=
 
15040
  hardcode_libdir_flag_spec_ld_F77=
 
15041
  hardcode_libdir_separator_F77=
 
15042
  hardcode_direct_F77=no
 
15043
  hardcode_minus_L_F77=no
 
15044
  hardcode_shlibpath_var_F77=unsupported
 
15045
  link_all_deplibs_F77=unknown
 
15046
  hardcode_automatic_F77=no
 
15047
  module_cmds_F77=
 
15048
  module_expsym_cmds_F77=
 
15049
  always_export_symbols_F77=no
 
15050
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15051
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15052
  # included in the symbol list
 
15053
  include_expsyms_F77=
 
15054
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15055
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15056
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15057
  # as well as any symbol that contains `d'.
 
15058
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15059
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15060
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15061
  # the symbol is explicitly referenced.  Since portable code cannot
 
15062
  # rely on this symbol name, it's probably fine to never include it in
 
15063
  # preloaded symbol tables.
 
15064
  # Exclude shared library initialization/finalization symbols.
 
15065
  extract_expsyms_cmds=
 
15066
  # Just being paranoid about ensuring that cc_basename is set.
 
15067
  for cc_temp in $compiler""; do
 
15068
  case $cc_temp in
 
15069
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15070
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15071
    \-*) ;;
 
15072
    *) break;;
 
15073
  esac
 
15074
done
 
15075
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15076
 
 
15077
  case $host_os in
 
15078
  cygwin* | mingw* | pw32*)
 
15079
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15080
    # When not using gcc, we currently assume that we are using
 
15081
    # Microsoft Visual C++.
 
15082
    if test "$GCC" != yes; then
 
15083
      with_gnu_ld=no
 
15084
    fi
 
15085
    ;;
 
15086
  interix*)
 
15087
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15088
    with_gnu_ld=yes
 
15089
    ;;
 
15090
  openbsd*)
 
15091
    with_gnu_ld=no
 
15092
    ;;
 
15093
  esac
 
15094
 
 
15095
  ld_shlibs_F77=yes
 
15096
  if test "$with_gnu_ld" = yes; then
 
15097
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15098
    wlarc='${wl}'
 
15099
 
 
15100
    # Set some defaults for GNU ld with shared library support. These
 
15101
    # are reset later if shared libraries are not supported. Putting them
 
15102
    # here allows them to be overridden if necessary.
 
15103
    runpath_var=LD_RUN_PATH
 
15104
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15105
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15106
    # ancient GNU ld didn't support --whole-archive et. al.
 
15107
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15108
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15109
      else
 
15110
        whole_archive_flag_spec_F77=
 
15111
    fi
 
15112
    supports_anon_versioning=no
 
15113
    case `$LD -v 2>/dev/null` in
 
15114
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15115
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15116
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15117
      *\ 2.11.*) ;; # other 2.11 versions
 
15118
      *) supports_anon_versioning=yes ;;
 
15119
    esac
 
15120
 
 
15121
    # See if GNU ld supports shared libraries.
 
15122
    case $host_os in
 
15123
    aix[3-9]*)
 
15124
      # On AIX/PPC, the GNU linker is very broken
 
15125
      if test "$host_cpu" != ia64; then
 
15126
        ld_shlibs_F77=no
 
15127
        cat <<EOF 1>&2
 
15128
 
 
15129
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15130
*** to be unable to reliably create shared libraries on AIX.
 
15131
*** Therefore, libtool is disabling shared libraries support.  If you
 
15132
*** really care for shared libraries, you may want to modify your PATH
 
15133
*** so that a non-GNU linker is found, and then restart.
 
15134
 
 
15135
EOF
 
15136
      fi
 
15137
      ;;
 
15138
 
 
15139
    amigaos*)
 
15140
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
15141
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15142
      hardcode_minus_L_F77=yes
 
15143
 
 
15144
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15145
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15146
      # to version 4, is to share data among multiple programs linked
 
15147
      # with the same dynamic library.  Since this doesn't match the
 
15148
      # behavior of shared libraries on other platforms, we can't use
 
15149
      # them.
 
15150
      ld_shlibs_F77=no
 
15151
      ;;
 
15152
 
 
15153
    beos*)
 
15154
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15155
        allow_undefined_flag_F77=unsupported
 
15156
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15157
        # support --undefined.  This deserves some investigation.  FIXME
 
15158
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15159
      else
 
15160
        ld_shlibs_F77=no
 
15161
      fi
 
15162
      ;;
 
15163
 
 
15164
    cygwin* | mingw* | pw32*)
 
15165
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15166
      # as there is no search path for DLLs.
 
15167
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15168
      allow_undefined_flag_F77=unsupported
 
15169
      always_export_symbols_F77=no
 
15170
      enable_shared_with_static_runtimes_F77=yes
 
15171
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15172
 
 
15173
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15174
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15175
        # If the export-symbols file already is a .def file (1st line
 
15176
        # is EXPORTS), use it as is; otherwise, prepend...
 
15177
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15178
          cp $export_symbols $output_objdir/$soname.def;
 
15179
        else
 
15180
          echo EXPORTS > $output_objdir/$soname.def;
 
15181
          cat $export_symbols >> $output_objdir/$soname.def;
 
15182
        fi~
 
15183
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15184
      else
 
15185
        ld_shlibs_F77=no
 
15186
      fi
 
15187
      ;;
 
15188
 
 
15189
    interix[3-9]*)
 
15190
      hardcode_direct_F77=no
 
15191
      hardcode_shlibpath_var_F77=no
 
15192
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15193
      export_dynamic_flag_spec_F77='${wl}-E'
 
15194
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15195
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15196
      # default) and relocated if they conflict, which is a slow very memory
 
15197
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15198
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15199
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15200
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15201
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
15202
      ;;
 
15203
 
 
15204
    gnu* | linux* | k*bsd*-gnu)
 
15205
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15206
        tmp_addflag=
 
15207
        case $cc_basename,$host_cpu in
 
15208
        pgcc*)                          # Portland Group C compiler
 
15209
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15210
          tmp_addflag=' $pic_flag'
 
15211
          ;;
 
15212
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15213
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15214
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15215
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15216
          tmp_addflag=' -i_dynamic' ;;
 
15217
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15218
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15219
        ifc* | ifort*)                  # Intel Fortran compiler
 
15220
          tmp_addflag=' -nofor_main' ;;
 
15221
        esac
 
15222
        case `$CC -V 2>&1 | sed 5q` in
 
15223
        *Sun\ C*)                       # Sun C 5.9
 
15224
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
15225
          tmp_sharedflag='-G' ;;
 
15226
        *Sun\ F*)                       # Sun Fortran 8.3
 
15227
          tmp_sharedflag='-G' ;;
 
15228
        *)
 
15229
          tmp_sharedflag='-shared' ;;
 
15230
        esac
 
15231
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15232
 
 
15233
        if test $supports_anon_versioning = yes; then
 
15234
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15235
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15236
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15237
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15238
        fi
 
15239
        link_all_deplibs_F77=no
 
15240
      else
 
15241
        ld_shlibs_F77=no
 
15242
      fi
 
15243
      ;;
 
15244
 
 
15245
    netbsd* | netbsdelf*-gnu)
 
15246
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15247
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15248
        wlarc=
 
15249
      else
 
15250
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15251
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15252
      fi
 
15253
      ;;
 
15254
 
 
15255
    solaris*)
 
15256
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15257
        ld_shlibs_F77=no
 
15258
        cat <<EOF 1>&2
 
15259
 
 
15260
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15261
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15262
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15263
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15264
*** your PATH or compiler configuration so that the native linker is
 
15265
*** used, and then restart.
 
15266
 
 
15267
EOF
 
15268
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15269
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15270
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15271
      else
 
15272
        ld_shlibs_F77=no
 
15273
      fi
 
15274
      ;;
 
15275
 
 
15276
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15277
      case `$LD -v 2>&1` in
 
15278
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15279
        ld_shlibs_F77=no
 
15280
        cat <<_LT_EOF 1>&2
 
15281
 
 
15282
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15283
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15284
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15285
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15286
*** your PATH or compiler configuration so that the native linker is
 
15287
*** used, and then restart.
 
15288
 
 
15289
_LT_EOF
 
15290
        ;;
 
15291
        *)
 
15292
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15293
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15294
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15295
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15296
          else
 
15297
            ld_shlibs_F77=no
 
15298
          fi
 
15299
        ;;
 
15300
      esac
 
15301
      ;;
 
15302
 
 
15303
    sunos4*)
 
15304
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15305
      wlarc=
 
15306
      hardcode_direct_F77=yes
 
15307
      hardcode_shlibpath_var_F77=no
 
15308
      ;;
 
15309
 
 
15310
    *)
 
15311
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15312
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15313
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15314
      else
 
15315
        ld_shlibs_F77=no
 
15316
      fi
 
15317
      ;;
 
15318
    esac
 
15319
 
 
15320
    if test "$ld_shlibs_F77" = no; then
 
15321
      runpath_var=
 
15322
      hardcode_libdir_flag_spec_F77=
 
15323
      export_dynamic_flag_spec_F77=
 
15324
      whole_archive_flag_spec_F77=
 
15325
    fi
 
15326
  else
 
15327
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15328
    case $host_os in
 
15329
    aix3*)
 
15330
      allow_undefined_flag_F77=unsupported
 
15331
      always_export_symbols_F77=yes
 
15332
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15333
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15334
      # are no directories specified by -L.
 
15335
      hardcode_minus_L_F77=yes
 
15336
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15337
        # Neither direct hardcoding nor static linking is supported with a
 
15338
        # broken collect2.
 
15339
        hardcode_direct_F77=unsupported
 
15340
      fi
 
15341
      ;;
 
15342
 
 
15343
    aix[4-9]*)
 
15344
      if test "$host_cpu" = ia64; then
 
15345
        # On IA64, the linker does run time linking by default, so we don't
 
15346
        # have to do anything special.
 
15347
        aix_use_runtimelinking=no
 
15348
        exp_sym_flag='-Bexport'
 
15349
        no_entry_flag=""
 
15350
      else
 
15351
        # If we're using GNU nm, then we don't want the "-C" option.
 
15352
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15353
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15354
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15355
        else
 
15356
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15357
        fi
 
15358
        aix_use_runtimelinking=no
 
15359
 
 
15360
        # Test if we are trying to use run time linking or normal
 
15361
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15362
        # need to do runtime linking.
 
15363
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15364
          for ld_flag in $LDFLAGS; do
 
15365
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15366
            aix_use_runtimelinking=yes
 
15367
            break
 
15368
          fi
 
15369
          done
 
15370
          ;;
 
15371
        esac
 
15372
 
 
15373
        exp_sym_flag='-bexport'
 
15374
        no_entry_flag='-bnoentry'
 
15375
      fi
 
15376
 
 
15377
      # When large executables or shared objects are built, AIX ld can
 
15378
      # have problems creating the table of contents.  If linking a library
 
15379
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15380
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15381
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15382
 
 
15383
      archive_cmds_F77=''
 
15384
      hardcode_direct_F77=yes
 
15385
      hardcode_libdir_separator_F77=':'
 
15386
      link_all_deplibs_F77=yes
 
15387
 
 
15388
      if test "$GCC" = yes; then
 
15389
        case $host_os in aix4.[012]|aix4.[012].*)
 
15390
        # We only want to do this on AIX 4.2 and lower, the check
 
15391
        # below for broken collect2 doesn't work under 4.3+
 
15392
          collect2name=`${CC} -print-prog-name=collect2`
 
15393
          if test -f "$collect2name" && \
 
15394
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15395
          then
 
15396
          # We have reworked collect2
 
15397
          :
 
15398
          else
 
15399
          # We have old collect2
 
15400
          hardcode_direct_F77=unsupported
 
15401
          # It fails to find uninstalled libraries when the uninstalled
 
15402
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15403
          # to unsupported forces relinking
 
15404
          hardcode_minus_L_F77=yes
 
15405
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15406
          hardcode_libdir_separator_F77=
 
15407
          fi
 
15408
          ;;
 
15409
        esac
 
15410
        shared_flag='-shared'
 
15411
        if test "$aix_use_runtimelinking" = yes; then
 
15412
          shared_flag="$shared_flag "'${wl}-G'
 
15413
        fi
 
15414
      else
 
15415
        # not using gcc
 
15416
        if test "$host_cpu" = ia64; then
 
15417
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15418
        # chokes on -Wl,-G. The following line is correct:
 
15419
          shared_flag='-G'
 
15420
        else
 
15421
          if test "$aix_use_runtimelinking" = yes; then
 
15422
            shared_flag='${wl}-G'
 
15423
          else
 
15424
            shared_flag='${wl}-bM:SRE'
 
15425
          fi
 
15426
        fi
 
15427
      fi
 
15428
 
 
15429
      # It seems that -bexpall does not export symbols beginning with
 
15430
      # underscore (_), so it is better to generate a list of symbols to export.
 
15431
      always_export_symbols_F77=yes
 
15432
      if test "$aix_use_runtimelinking" = yes; then
 
15433
        # Warning - without using the other runtime loading flags (-brtl),
 
15434
        # -berok will link without error, but may produce a broken library.
 
15435
        allow_undefined_flag_F77='-berok'
 
15436
       # Determine the default libpath from the value encoded in an empty executable.
 
15437
       cat >conftest.$ac_ext <<_ACEOF
 
15438
      program main
 
15439
 
 
15440
      end
 
15441
_ACEOF
 
15442
rm -f conftest.$ac_objext conftest$ac_exeext
 
15443
if { (ac_try="$ac_link"
 
15444
case "(($ac_try" in
 
15445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15446
  *) ac_try_echo=$ac_try;;
 
15447
esac
 
15448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15449
  (eval "$ac_link") 2>conftest.er1
 
15450
  ac_status=$?
 
15451
  grep -v '^ *+' conftest.er1 >conftest.err
 
15452
  rm -f conftest.er1
 
15453
  cat conftest.err >&5
 
15454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15455
  (exit $ac_status); } && {
 
15456
         test -z "$ac_f77_werror_flag" ||
 
15457
         test ! -s conftest.err
 
15458
       } && test -s conftest$ac_exeext &&
 
15459
       $as_test_x conftest$ac_exeext; then
 
15460
 
 
15461
lt_aix_libpath_sed='
 
15462
    /Import File Strings/,/^$/ {
 
15463
        /^0/ {
 
15464
            s/^0  *\(.*\)$/\1/
 
15465
            p
 
15466
        }
 
15467
    }'
 
15468
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15469
# Check for a 64-bit object if we didn't find anything.
 
15470
if test -z "$aix_libpath"; then
 
15471
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15472
fi
 
15473
else
 
15474
  echo "$as_me: failed program was:" >&5
 
15475
sed 's/^/| /' conftest.$ac_ext >&5
 
15476
 
 
15477
 
 
15478
fi
 
15479
 
 
15480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15481
      conftest$ac_exeext conftest.$ac_ext
 
15482
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15483
 
 
15484
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15485
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15486
       else
 
15487
        if test "$host_cpu" = ia64; then
 
15488
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15489
          allow_undefined_flag_F77="-z nodefs"
 
15490
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
15491
        else
 
15492
         # Determine the default libpath from the value encoded in an empty executable.
 
15493
         cat >conftest.$ac_ext <<_ACEOF
 
15494
      program main
 
15495
 
 
15496
      end
 
15497
_ACEOF
 
15498
rm -f conftest.$ac_objext conftest$ac_exeext
 
15499
if { (ac_try="$ac_link"
 
15500
case "(($ac_try" in
 
15501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15502
  *) ac_try_echo=$ac_try;;
 
15503
esac
 
15504
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15505
  (eval "$ac_link") 2>conftest.er1
 
15506
  ac_status=$?
 
15507
  grep -v '^ *+' conftest.er1 >conftest.err
 
15508
  rm -f conftest.er1
 
15509
  cat conftest.err >&5
 
15510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15511
  (exit $ac_status); } && {
 
15512
         test -z "$ac_f77_werror_flag" ||
 
15513
         test ! -s conftest.err
 
15514
       } && test -s conftest$ac_exeext &&
 
15515
       $as_test_x conftest$ac_exeext; then
 
15516
 
 
15517
lt_aix_libpath_sed='
 
15518
    /Import File Strings/,/^$/ {
 
15519
        /^0/ {
 
15520
            s/^0  *\(.*\)$/\1/
 
15521
            p
 
15522
        }
 
15523
    }'
 
15524
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15525
# Check for a 64-bit object if we didn't find anything.
 
15526
if test -z "$aix_libpath"; then
 
15527
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15528
fi
 
15529
else
 
15530
  echo "$as_me: failed program was:" >&5
 
15531
sed 's/^/| /' conftest.$ac_ext >&5
 
15532
 
 
15533
 
 
15534
fi
 
15535
 
 
15536
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15537
      conftest$ac_exeext conftest.$ac_ext
 
15538
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15539
 
 
15540
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15541
          # Warning - without using the other run time loading flags,
 
15542
          # -berok will link without error, but may produce a broken library.
 
15543
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15544
          allow_undefined_flag_F77=' ${wl}-berok'
 
15545
          # Exported symbols can be pulled into shared objects from archives
 
15546
          whole_archive_flag_spec_F77='$convenience'
 
15547
          archive_cmds_need_lc_F77=yes
 
15548
          # This is similar to how AIX traditionally builds its shared libraries.
 
15549
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15550
        fi
 
15551
      fi
 
15552
      ;;
 
15553
 
 
15554
    amigaos*)
 
15555
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
15556
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15557
      hardcode_minus_L_F77=yes
 
15558
      # see comment about different semantics on the GNU ld section
 
15559
      ld_shlibs_F77=no
 
15560
      ;;
 
15561
 
 
15562
    bsdi[45]*)
 
15563
      export_dynamic_flag_spec_F77=-rdynamic
 
15564
      ;;
 
15565
 
 
15566
    cygwin* | mingw* | pw32*)
 
15567
      # When not using gcc, we currently assume that we are using
 
15568
      # Microsoft Visual C++.
 
15569
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15570
      # no search path for DLLs.
 
15571
      hardcode_libdir_flag_spec_F77=' '
 
15572
      allow_undefined_flag_F77=unsupported
 
15573
      # Tell ltmain to make .lib files, not .a files.
 
15574
      libext=lib
 
15575
      # Tell ltmain to make .dll files, not .so files.
 
15576
      shrext_cmds=".dll"
 
15577
      # FIXME: Setting linknames here is a bad hack.
 
15578
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15579
      # The linker will automatically build a .lib file if we build a DLL.
 
15580
      old_archive_From_new_cmds_F77='true'
 
15581
      # FIXME: Should let the user specify the lib program.
 
15582
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15583
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15584
      enable_shared_with_static_runtimes_F77=yes
 
15585
      ;;
 
15586
 
 
15587
    darwin* | rhapsody*)
 
15588
      case $host_os in
 
15589
        rhapsody* | darwin1.[012])
 
15590
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15591
         ;;
 
15592
       *) # Darwin 1.3 on
 
15593
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15594
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15595
         else
 
15596
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15597
             10.[012])
 
15598
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15599
               ;;
 
15600
             10.*)
 
15601
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15602
               ;;
 
15603
           esac
 
15604
         fi
 
15605
         ;;
 
15606
      esac
 
15607
      archive_cmds_need_lc_F77=no
 
15608
      hardcode_direct_F77=no
 
15609
      hardcode_automatic_F77=yes
 
15610
      hardcode_shlibpath_var_F77=unsupported
 
15611
      whole_archive_flag_spec_F77=''
 
15612
      link_all_deplibs_F77=yes
 
15613
    if test "$GCC" = yes ; then
 
15614
        output_verbose_link_cmd='echo'
 
15615
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15616
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15617
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15618
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15619
    else
 
15620
      case $cc_basename in
 
15621
        xlc*)
 
15622
         output_verbose_link_cmd='echo'
 
15623
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15624
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15625
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15626
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15627
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15628
          ;;
 
15629
       *)
 
15630
         ld_shlibs_F77=no
 
15631
          ;;
 
15632
      esac
 
15633
    fi
 
15634
      ;;
 
15635
 
 
15636
    dgux*)
 
15637
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15638
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15639
      hardcode_shlibpath_var_F77=no
 
15640
      ;;
 
15641
 
 
15642
    freebsd1*)
 
15643
      ld_shlibs_F77=no
 
15644
      ;;
 
15645
 
 
15646
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15647
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15648
    # does not break anything, and helps significantly (at the cost of a little
 
15649
    # extra space).
 
15650
    freebsd2.2*)
 
15651
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15652
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15653
      hardcode_direct_F77=yes
 
15654
      hardcode_shlibpath_var_F77=no
 
15655
      ;;
 
15656
 
 
15657
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15658
    freebsd2*)
 
15659
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15660
      hardcode_direct_F77=yes
 
15661
      hardcode_minus_L_F77=yes
 
15662
      hardcode_shlibpath_var_F77=no
 
15663
      ;;
 
15664
 
 
15665
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15666
    freebsd* | dragonfly*)
 
15667
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15668
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15669
      hardcode_direct_F77=yes
 
15670
      hardcode_shlibpath_var_F77=no
 
15671
      ;;
 
15672
 
 
15673
    hpux9*)
 
15674
      if test "$GCC" = yes; then
 
15675
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15676
      else
 
15677
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15678
      fi
 
15679
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15680
      hardcode_libdir_separator_F77=:
 
15681
      hardcode_direct_F77=yes
 
15682
 
 
15683
      # hardcode_minus_L: Not really in the search PATH,
 
15684
      # but as the default location of the library.
 
15685
      hardcode_minus_L_F77=yes
 
15686
      export_dynamic_flag_spec_F77='${wl}-E'
 
15687
      ;;
 
15688
 
 
15689
    hpux10*)
 
15690
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15691
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15692
      else
 
15693
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15694
      fi
 
15695
      if test "$with_gnu_ld" = no; then
 
15696
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15697
        hardcode_libdir_separator_F77=:
 
15698
 
 
15699
        hardcode_direct_F77=yes
 
15700
        export_dynamic_flag_spec_F77='${wl}-E'
 
15701
 
 
15702
        # hardcode_minus_L: Not really in the search PATH,
 
15703
        # but as the default location of the library.
 
15704
        hardcode_minus_L_F77=yes
 
15705
      fi
 
15706
      ;;
 
15707
 
 
15708
    hpux11*)
 
15709
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15710
        case $host_cpu in
 
15711
        hppa*64*)
 
15712
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15713
          ;;
 
15714
        ia64*)
 
15715
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15716
          ;;
 
15717
        *)
 
15718
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15719
          ;;
 
15720
        esac
 
15721
      else
 
15722
        case $host_cpu in
 
15723
        hppa*64*)
 
15724
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15725
          ;;
 
15726
        ia64*)
 
15727
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15728
          ;;
 
15729
        *)
 
15730
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15731
          ;;
 
15732
        esac
 
15733
      fi
 
15734
      if test "$with_gnu_ld" = no; then
 
15735
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15736
        hardcode_libdir_separator_F77=:
 
15737
 
 
15738
        case $host_cpu in
 
15739
        hppa*64*|ia64*)
 
15740
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15741
          hardcode_direct_F77=no
 
15742
          hardcode_shlibpath_var_F77=no
 
15743
          ;;
 
15744
        *)
 
15745
          hardcode_direct_F77=yes
 
15746
          export_dynamic_flag_spec_F77='${wl}-E'
 
15747
 
 
15748
          # hardcode_minus_L: Not really in the search PATH,
 
15749
          # but as the default location of the library.
 
15750
          hardcode_minus_L_F77=yes
 
15751
          ;;
 
15752
        esac
 
15753
      fi
 
15754
      ;;
 
15755
 
 
15756
    irix5* | irix6* | nonstopux*)
 
15757
      if test "$GCC" = yes; then
 
15758
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15759
      else
 
15760
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15761
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15762
      fi
 
15763
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15764
      hardcode_libdir_separator_F77=:
 
15765
      link_all_deplibs_F77=yes
 
15766
      ;;
 
15767
 
 
15768
    netbsd* | netbsdelf*-gnu)
 
15769
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15770
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15771
      else
 
15772
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15773
      fi
 
15774
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15775
      hardcode_direct_F77=yes
 
15776
      hardcode_shlibpath_var_F77=no
 
15777
      ;;
 
15778
 
 
15779
    newsos6)
 
15780
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15781
      hardcode_direct_F77=yes
 
15782
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15783
      hardcode_libdir_separator_F77=:
 
15784
      hardcode_shlibpath_var_F77=no
 
15785
      ;;
 
15786
 
 
15787
    openbsd*)
 
15788
      if test -f /usr/libexec/ld.so; then
 
15789
        hardcode_direct_F77=yes
 
15790
        hardcode_shlibpath_var_F77=no
 
15791
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15792
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15793
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15794
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15795
          export_dynamic_flag_spec_F77='${wl}-E'
 
15796
        else
 
15797
          case $host_os in
 
15798
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15799
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15800
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15801
             ;;
 
15802
           *)
 
15803
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15804
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15805
             ;;
 
15806
          esac
 
15807
        fi
 
15808
      else
 
15809
        ld_shlibs_F77=no
 
15810
      fi
 
15811
      ;;
 
15812
 
 
15813
    os2*)
 
15814
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15815
      hardcode_minus_L_F77=yes
 
15816
      allow_undefined_flag_F77=unsupported
 
15817
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
15818
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15819
      ;;
 
15820
 
 
15821
    osf3*)
 
15822
      if test "$GCC" = yes; then
 
15823
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15824
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15825
      else
 
15826
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15827
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15828
      fi
 
15829
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15830
      hardcode_libdir_separator_F77=:
 
15831
      ;;
 
15832
 
 
15833
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15834
      if test "$GCC" = yes; then
 
15835
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15836
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15837
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15838
      else
 
15839
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15840
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15841
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15842
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15843
 
 
15844
        # Both c and cxx compiler support -rpath directly
 
15845
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15846
      fi
 
15847
      hardcode_libdir_separator_F77=:
 
15848
      ;;
 
15849
 
 
15850
    solaris*)
 
15851
      no_undefined_flag_F77=' -z text'
 
15852
      if test "$GCC" = yes; then
 
15853
        wlarc='${wl}'
 
15854
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15855
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15856
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15857
      else
 
15858
        wlarc=''
 
15859
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15860
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15861
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15862
      fi
 
15863
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15864
      hardcode_shlibpath_var_F77=no
 
15865
      case $host_os in
 
15866
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15867
      *)
 
15868
        # The compiler driver will combine and reorder linker options,
 
15869
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15870
        # but is careful enough not to reorder.
 
15871
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15872
        if test "$GCC" = yes; then
 
15873
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15874
        else
 
15875
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15876
        fi
 
15877
        ;;
 
15878
      esac
 
15879
      link_all_deplibs_F77=yes
 
15880
      ;;
 
15881
 
 
15882
    sunos4*)
 
15883
      if test "x$host_vendor" = xsequent; then
 
15884
        # Use $CC to link under sequent, because it throws in some extra .o
 
15885
        # files that make .init and .fini sections work.
 
15886
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15887
      else
 
15888
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15889
      fi
 
15890
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15891
      hardcode_direct_F77=yes
 
15892
      hardcode_minus_L_F77=yes
 
15893
      hardcode_shlibpath_var_F77=no
 
15894
      ;;
 
15895
 
 
15896
    sysv4)
 
15897
      case $host_vendor in
 
15898
        sni)
 
15899
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15900
          hardcode_direct_F77=yes # is this really true???
 
15901
        ;;
 
15902
        siemens)
 
15903
          ## LD is ld it makes a PLAMLIB
 
15904
          ## CC just makes a GrossModule.
 
15905
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15906
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15907
          hardcode_direct_F77=no
 
15908
        ;;
 
15909
        motorola)
 
15910
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15911
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15912
        ;;
 
15913
      esac
 
15914
      runpath_var='LD_RUN_PATH'
 
15915
      hardcode_shlibpath_var_F77=no
 
15916
      ;;
 
15917
 
 
15918
    sysv4.3*)
 
15919
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15920
      hardcode_shlibpath_var_F77=no
 
15921
      export_dynamic_flag_spec_F77='-Bexport'
 
15922
      ;;
 
15923
 
 
15924
    sysv4*MP*)
 
15925
      if test -d /usr/nec; then
 
15926
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15927
        hardcode_shlibpath_var_F77=no
 
15928
        runpath_var=LD_RUN_PATH
 
15929
        hardcode_runpath_var=yes
 
15930
        ld_shlibs_F77=yes
 
15931
      fi
 
15932
      ;;
 
15933
 
 
15934
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15935
      no_undefined_flag_F77='${wl}-z,text'
 
15936
      archive_cmds_need_lc_F77=no
 
15937
      hardcode_shlibpath_var_F77=no
 
15938
      runpath_var='LD_RUN_PATH'
 
15939
 
 
15940
      if test "$GCC" = yes; then
 
15941
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15942
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15943
      else
 
15944
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15945
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15946
      fi
 
15947
      ;;
 
15948
 
 
15949
    sysv5* | sco3.2v5* | sco5v6*)
 
15950
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15951
      # link with -lc, and that would cause any symbols used from libc to
 
15952
      # always be unresolved, which means just about no library would
 
15953
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15954
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15955
      # as -z defs.
 
15956
      no_undefined_flag_F77='${wl}-z,text'
 
15957
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15958
      archive_cmds_need_lc_F77=no
 
15959
      hardcode_shlibpath_var_F77=no
 
15960
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15961
      hardcode_libdir_separator_F77=':'
 
15962
      link_all_deplibs_F77=yes
 
15963
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15964
      runpath_var='LD_RUN_PATH'
 
15965
 
 
15966
      if test "$GCC" = yes; then
 
15967
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15968
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15969
      else
 
15970
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15971
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15972
      fi
 
15973
      ;;
 
15974
 
 
15975
    uts4*)
 
15976
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15977
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15978
      hardcode_shlibpath_var_F77=no
 
15979
      ;;
 
15980
 
 
15981
    *)
 
15982
      ld_shlibs_F77=no
 
15983
      ;;
 
15984
    esac
 
15985
  fi
 
15986
 
 
15987
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15988
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15989
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15990
 
 
15991
#
 
15992
# Do we need to explicitly link libc?
 
15993
#
 
15994
case "x$archive_cmds_need_lc_F77" in
 
15995
x|xyes)
 
15996
  # Assume -lc should be added
 
15997
  archive_cmds_need_lc_F77=yes
 
15998
 
 
15999
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16000
    case $archive_cmds_F77 in
 
16001
    *'~'*)
 
16002
      # FIXME: we may have to deal with multi-command sequences.
 
16003
      ;;
 
16004
    '$CC '*)
 
16005
      # Test whether the compiler implicitly links with -lc since on some
 
16006
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16007
      # to ld, don't add -lc before -lgcc.
 
16008
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16009
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
16010
      $rm conftest*
 
16011
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16012
 
 
16013
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16014
  (eval $ac_compile) 2>&5
 
16015
  ac_status=$?
 
16016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16017
  (exit $ac_status); } 2>conftest.err; then
 
16018
        soname=conftest
 
16019
        lib=conftest
 
16020
        libobjs=conftest.$ac_objext
 
16021
        deplibs=
 
16022
        wl=$lt_prog_compiler_wl_F77
 
16023
        pic_flag=$lt_prog_compiler_pic_F77
 
16024
        compiler_flags=-v
 
16025
        linker_flags=-v
 
16026
        verstring=
 
16027
        output_objdir=.
 
16028
        libname=conftest
 
16029
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16030
        allow_undefined_flag_F77=
 
16031
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16032
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16033
  ac_status=$?
 
16034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16035
  (exit $ac_status); }
 
16036
        then
 
16037
          archive_cmds_need_lc_F77=no
 
16038
        else
 
16039
          archive_cmds_need_lc_F77=yes
 
16040
        fi
 
16041
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16042
      else
 
16043
        cat conftest.err 1>&5
 
16044
      fi
 
16045
      $rm conftest*
 
16046
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16047
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
16048
      ;;
 
16049
    esac
 
16050
  fi
 
16051
  ;;
 
16052
esac
 
16053
 
 
16054
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16055
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
16056
library_names_spec=
 
16057
libname_spec='lib$name'
 
16058
soname_spec=
 
16059
shrext_cmds=".so"
 
16060
postinstall_cmds=
 
16061
postuninstall_cmds=
 
16062
finish_cmds=
 
16063
finish_eval=
 
16064
shlibpath_var=
 
16065
shlibpath_overrides_runpath=unknown
 
16066
version_type=none
 
16067
dynamic_linker="$host_os ld.so"
 
16068
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16069
 
 
16070
need_lib_prefix=unknown
 
16071
hardcode_into_libs=no
 
16072
 
 
16073
# when you set need_version to no, make sure it does not cause -set_version
 
16074
# flags to be left without arguments
 
16075
need_version=unknown
 
16076
 
 
16077
case $host_os in
 
16078
aix3*)
 
16079
  version_type=linux
 
16080
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16081
  shlibpath_var=LIBPATH
 
16082
 
 
16083
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16084
  soname_spec='${libname}${release}${shared_ext}$major'
 
16085
  ;;
 
16086
 
 
16087
aix[4-9]*)
 
16088
  version_type=linux
 
16089
  need_lib_prefix=no
 
16090
  need_version=no
 
16091
  hardcode_into_libs=yes
 
16092
  if test "$host_cpu" = ia64; then
 
16093
    # AIX 5 supports IA64
 
16094
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16095
    shlibpath_var=LD_LIBRARY_PATH
 
16096
  else
 
16097
    # With GCC up to 2.95.x, collect2 would create an import file
 
16098
    # for dependence libraries.  The import file would start with
 
16099
    # the line `#! .'.  This would cause the generated library to
 
16100
    # depend on `.', always an invalid library.  This was fixed in
 
16101
    # development snapshots of GCC prior to 3.0.
 
16102
    case $host_os in
 
16103
      aix4 | aix4.[01] | aix4.[01].*)
 
16104
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16105
           echo ' yes '
 
16106
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16107
        :
 
16108
      else
 
16109
        can_build_shared=no
 
16110
      fi
 
16111
      ;;
 
16112
    esac
 
16113
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16114
    # soname into executable. Probably we can add versioning support to
 
16115
    # collect2, so additional links can be useful in future.
 
16116
    if test "$aix_use_runtimelinking" = yes; then
 
16117
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16118
      # instead of lib<name>.a to let people know that these are not
 
16119
      # typical AIX shared libraries.
 
16120
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16121
    else
 
16122
      # We preserve .a as extension for shared libraries through AIX4.2
 
16123
      # and later when we are not doing run time linking.
 
16124
      library_names_spec='${libname}${release}.a $libname.a'
 
16125
      soname_spec='${libname}${release}${shared_ext}$major'
 
16126
    fi
 
16127
    shlibpath_var=LIBPATH
 
16128
  fi
 
16129
  ;;
 
16130
 
 
16131
amigaos*)
 
16132
  library_names_spec='$libname.ixlibrary $libname.a'
 
16133
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16134
  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'
 
16135
  ;;
 
16136
 
 
16137
beos*)
 
16138
  library_names_spec='${libname}${shared_ext}'
 
16139
  dynamic_linker="$host_os ld.so"
 
16140
  shlibpath_var=LIBRARY_PATH
 
16141
  ;;
 
16142
 
 
16143
bsdi[45]*)
 
16144
  version_type=linux
 
16145
  need_version=no
 
16146
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16147
  soname_spec='${libname}${release}${shared_ext}$major'
 
16148
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16149
  shlibpath_var=LD_LIBRARY_PATH
 
16150
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16151
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16152
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16153
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16154
  # libtool to hard-code these into programs
 
16155
  ;;
 
16156
 
 
16157
cygwin* | mingw* | pw32*)
 
16158
  version_type=windows
 
16159
  shrext_cmds=".dll"
 
16160
  need_version=no
 
16161
  need_lib_prefix=no
 
16162
 
 
16163
  case $GCC,$host_os in
 
16164
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16165
    library_names_spec='$libname.dll.a'
 
16166
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16167
    postinstall_cmds='base_file=`basename \${file}`~
 
16168
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16169
      dldir=$destdir/`dirname \$dlpath`~
 
16170
      test -d \$dldir || mkdir -p \$dldir~
 
16171
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16172
      chmod a+x \$dldir/$dlname'
 
16173
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16174
      dlpath=$dir/\$dldll~
 
16175
       $rm \$dlpath'
 
16176
    shlibpath_overrides_runpath=yes
 
16177
 
 
16178
    case $host_os in
 
16179
    cygwin*)
 
16180
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16181
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16182
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16183
      ;;
 
16184
    mingw*)
 
16185
      # MinGW DLLs use traditional 'lib' prefix
 
16186
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16187
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16188
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16189
        # It is most probably a Windows format PATH printed by
 
16190
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16191
        # path with ; separators, and with drive letters. We can handle the
 
16192
        # drive letters (cygwin fileutils understands them), so leave them,
 
16193
        # especially as we might pass files found there to a mingw objdump,
 
16194
        # which wouldn't understand a cygwinified path. Ahh.
 
16195
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16196
      else
 
16197
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16198
      fi
 
16199
      ;;
 
16200
    pw32*)
 
16201
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16202
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16203
      ;;
 
16204
    esac
 
16205
    ;;
 
16206
 
 
16207
  *)
 
16208
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16209
    ;;
 
16210
  esac
 
16211
  dynamic_linker='Win32 ld.exe'
 
16212
  # FIXME: first we should search . and the directory the executable is in
 
16213
  shlibpath_var=PATH
 
16214
  ;;
 
16215
 
 
16216
darwin* | rhapsody*)
 
16217
  dynamic_linker="$host_os dyld"
 
16218
  version_type=darwin
 
16219
  need_lib_prefix=no
 
16220
  need_version=no
 
16221
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16222
  soname_spec='${libname}${release}${major}$shared_ext'
 
16223
  shlibpath_overrides_runpath=yes
 
16224
  shlibpath_var=DYLD_LIBRARY_PATH
 
16225
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16226
 
 
16227
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16228
  ;;
 
16229
 
 
16230
dgux*)
 
16231
  version_type=linux
 
16232
  need_lib_prefix=no
 
16233
  need_version=no
 
16234
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16235
  soname_spec='${libname}${release}${shared_ext}$major'
 
16236
  shlibpath_var=LD_LIBRARY_PATH
 
16237
  ;;
 
16238
 
 
16239
freebsd1*)
 
16240
  dynamic_linker=no
 
16241
  ;;
 
16242
 
 
16243
freebsd* | dragonfly*)
 
16244
  # DragonFly does not have aout.  When/if they implement a new
 
16245
  # versioning mechanism, adjust this.
 
16246
  if test -x /usr/bin/objformat; then
 
16247
    objformat=`/usr/bin/objformat`
 
16248
  else
 
16249
    case $host_os in
 
16250
    freebsd[123]*) objformat=aout ;;
 
16251
    *) objformat=elf ;;
 
16252
    esac
 
16253
  fi
 
16254
  version_type=freebsd-$objformat
 
16255
  case $version_type in
 
16256
    freebsd-elf*)
 
16257
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16258
      need_version=no
 
16259
      need_lib_prefix=no
 
16260
      ;;
 
16261
    freebsd-*)
 
16262
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16263
      need_version=yes
 
16264
      ;;
 
16265
  esac
 
16266
  shlibpath_var=LD_LIBRARY_PATH
 
16267
  case $host_os in
 
16268
  freebsd2*)
 
16269
    shlibpath_overrides_runpath=yes
 
16270
    ;;
 
16271
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16272
    shlibpath_overrides_runpath=yes
 
16273
    hardcode_into_libs=yes
 
16274
    ;;
 
16275
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16276
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16277
    shlibpath_overrides_runpath=no
 
16278
    hardcode_into_libs=yes
 
16279
    ;;
 
16280
  *) # from 4.6 on, and DragonFly
 
16281
    shlibpath_overrides_runpath=yes
 
16282
    hardcode_into_libs=yes
 
16283
    ;;
 
16284
  esac
 
16285
  ;;
 
16286
 
 
16287
gnu*)
 
16288
  version_type=linux
 
16289
  need_lib_prefix=no
 
16290
  need_version=no
 
16291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16292
  soname_spec='${libname}${release}${shared_ext}$major'
 
16293
  shlibpath_var=LD_LIBRARY_PATH
 
16294
  hardcode_into_libs=yes
 
16295
  ;;
 
16296
 
 
16297
hpux9* | hpux10* | hpux11*)
 
16298
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16299
  # link against other versions.
 
16300
  version_type=sunos
 
16301
  need_lib_prefix=no
 
16302
  need_version=no
 
16303
  case $host_cpu in
 
16304
  ia64*)
 
16305
    shrext_cmds='.so'
 
16306
    hardcode_into_libs=yes
 
16307
    dynamic_linker="$host_os dld.so"
 
16308
    shlibpath_var=LD_LIBRARY_PATH
 
16309
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16310
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16311
    soname_spec='${libname}${release}${shared_ext}$major'
 
16312
    if test "X$HPUX_IA64_MODE" = X32; then
 
16313
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16314
    else
 
16315
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16316
    fi
 
16317
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16318
    ;;
 
16319
   hppa*64*)
 
16320
     shrext_cmds='.sl'
 
16321
     hardcode_into_libs=yes
 
16322
     dynamic_linker="$host_os dld.sl"
 
16323
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16324
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16325
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16326
     soname_spec='${libname}${release}${shared_ext}$major'
 
16327
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16328
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16329
     ;;
 
16330
   *)
 
16331
    shrext_cmds='.sl'
 
16332
    dynamic_linker="$host_os dld.sl"
 
16333
    shlibpath_var=SHLIB_PATH
 
16334
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16335
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16336
    soname_spec='${libname}${release}${shared_ext}$major'
 
16337
    ;;
 
16338
  esac
 
16339
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16340
  postinstall_cmds='chmod 555 $lib'
 
16341
  ;;
 
16342
 
 
16343
interix[3-9]*)
 
16344
  version_type=linux
 
16345
  need_lib_prefix=no
 
16346
  need_version=no
 
16347
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16348
  soname_spec='${libname}${release}${shared_ext}$major'
 
16349
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16350
  shlibpath_var=LD_LIBRARY_PATH
 
16351
  shlibpath_overrides_runpath=no
 
16352
  hardcode_into_libs=yes
 
16353
  ;;
 
16354
 
 
16355
irix5* | irix6* | nonstopux*)
 
16356
  case $host_os in
 
16357
    nonstopux*) version_type=nonstopux ;;
 
16358
    *)
 
16359
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16360
                version_type=linux
 
16361
        else
 
16362
                version_type=irix
 
16363
        fi ;;
 
16364
  esac
 
16365
  need_lib_prefix=no
 
16366
  need_version=no
 
16367
  soname_spec='${libname}${release}${shared_ext}$major'
 
16368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16369
  case $host_os in
 
16370
  irix5* | nonstopux*)
 
16371
    libsuff= shlibsuff=
 
16372
    ;;
 
16373
  *)
 
16374
    case $LD in # libtool.m4 will add one of these switches to LD
 
16375
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16376
      libsuff= shlibsuff= libmagic=32-bit;;
 
16377
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16378
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16379
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16380
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16381
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16382
    esac
 
16383
    ;;
 
16384
  esac
 
16385
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16386
  shlibpath_overrides_runpath=no
 
16387
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16388
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16389
  hardcode_into_libs=yes
 
16390
  ;;
 
16391
 
 
16392
# No shared lib support for Linux oldld, aout, or coff.
 
16393
linux*oldld* | linux*aout* | linux*coff*)
 
16394
  dynamic_linker=no
 
16395
  ;;
 
16396
 
 
16397
# This must be Linux ELF.
 
16398
linux* | k*bsd*-gnu)
 
16399
  version_type=linux
 
16400
  need_lib_prefix=no
 
16401
  need_version=no
 
16402
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16403
  soname_spec='${libname}${release}${shared_ext}$major'
 
16404
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16405
  shlibpath_var=LD_LIBRARY_PATH
 
16406
  shlibpath_overrides_runpath=no
 
16407
  # This implies no fast_install, which is unacceptable.
 
16408
  # Some rework will be needed to allow for fast_install
 
16409
  # before this can be enabled.
 
16410
  hardcode_into_libs=yes
 
16411
 
 
16412
  # Append ld.so.conf contents to the search path
 
16413
  if test -f /etc/ld.so.conf; then
 
16414
    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' ' '`
 
16415
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16416
  fi
 
16417
 
 
16418
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16419
  # powerpc, because MkLinux only supported shared libraries with the
 
16420
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16421
  # most powerpc-linux boxes support dynamic linking these days and
 
16422
  # people can always --disable-shared, the test was removed, and we
 
16423
  # assume the GNU/Linux dynamic linker is in use.
 
16424
  dynamic_linker='GNU/Linux ld.so'
 
16425
  ;;
 
16426
 
 
16427
netbsdelf*-gnu)
 
16428
  version_type=linux
 
16429
  need_lib_prefix=no
 
16430
  need_version=no
 
16431
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16432
  soname_spec='${libname}${release}${shared_ext}$major'
 
16433
  shlibpath_var=LD_LIBRARY_PATH
 
16434
  shlibpath_overrides_runpath=no
 
16435
  hardcode_into_libs=yes
 
16436
  dynamic_linker='NetBSD ld.elf_so'
 
16437
  ;;
 
16438
 
 
16439
netbsd*)
 
16440
  version_type=sunos
 
16441
  need_lib_prefix=no
 
16442
  need_version=no
 
16443
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16444
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16445
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16446
    dynamic_linker='NetBSD (a.out) ld.so'
 
16447
  else
 
16448
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16449
    soname_spec='${libname}${release}${shared_ext}$major'
 
16450
    dynamic_linker='NetBSD ld.elf_so'
 
16451
  fi
 
16452
  shlibpath_var=LD_LIBRARY_PATH
 
16453
  shlibpath_overrides_runpath=yes
 
16454
  hardcode_into_libs=yes
 
16455
  ;;
 
16456
 
 
16457
newsos6)
 
16458
  version_type=linux
 
16459
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16460
  shlibpath_var=LD_LIBRARY_PATH
 
16461
  shlibpath_overrides_runpath=yes
 
16462
  ;;
 
16463
 
 
16464
nto-qnx*)
 
16465
  version_type=linux
 
16466
  need_lib_prefix=no
 
16467
  need_version=no
 
16468
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16469
  soname_spec='${libname}${release}${shared_ext}$major'
 
16470
  shlibpath_var=LD_LIBRARY_PATH
 
16471
  shlibpath_overrides_runpath=yes
 
16472
  ;;
 
16473
 
 
16474
openbsd*)
 
16475
  version_type=sunos
 
16476
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16477
  need_lib_prefix=no
 
16478
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16479
  case $host_os in
 
16480
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16481
    *)                         need_version=no  ;;
 
16482
  esac
 
16483
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16484
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16485
  shlibpath_var=LD_LIBRARY_PATH
 
16486
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16487
    case $host_os in
 
16488
      openbsd2.[89] | openbsd2.[89].*)
 
16489
        shlibpath_overrides_runpath=no
 
16490
        ;;
 
16491
      *)
 
16492
        shlibpath_overrides_runpath=yes
 
16493
        ;;
 
16494
      esac
 
16495
  else
 
16496
    shlibpath_overrides_runpath=yes
 
16497
  fi
 
16498
  ;;
 
16499
 
 
16500
os2*)
 
16501
  libname_spec='$name'
 
16502
  shrext_cmds=".dll"
 
16503
  need_lib_prefix=no
 
16504
  library_names_spec='$libname${shared_ext} $libname.a'
 
16505
  dynamic_linker='OS/2 ld.exe'
 
16506
  shlibpath_var=LIBPATH
 
16507
  ;;
 
16508
 
 
16509
osf3* | osf4* | osf5*)
 
16510
  version_type=osf
 
16511
  need_lib_prefix=no
 
16512
  need_version=no
 
16513
  soname_spec='${libname}${release}${shared_ext}$major'
 
16514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16515
  shlibpath_var=LD_LIBRARY_PATH
 
16516
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16517
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16518
  ;;
 
16519
 
 
16520
rdos*)
 
16521
  dynamic_linker=no
 
16522
  ;;
 
16523
 
 
16524
solaris*)
 
16525
  version_type=linux
 
16526
  need_lib_prefix=no
 
16527
  need_version=no
 
16528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16529
  soname_spec='${libname}${release}${shared_ext}$major'
 
16530
  shlibpath_var=LD_LIBRARY_PATH
 
16531
  shlibpath_overrides_runpath=yes
 
16532
  hardcode_into_libs=yes
 
16533
  # ldd complains unless libraries are executable
 
16534
  postinstall_cmds='chmod +x $lib'
 
16535
  ;;
 
16536
 
 
16537
sunos4*)
 
16538
  version_type=sunos
 
16539
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16540
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16541
  shlibpath_var=LD_LIBRARY_PATH
 
16542
  shlibpath_overrides_runpath=yes
 
16543
  if test "$with_gnu_ld" = yes; then
 
16544
    need_lib_prefix=no
 
16545
  fi
 
16546
  need_version=yes
 
16547
  ;;
 
16548
 
 
16549
sysv4 | sysv4.3*)
 
16550
  version_type=linux
 
16551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16552
  soname_spec='${libname}${release}${shared_ext}$major'
 
16553
  shlibpath_var=LD_LIBRARY_PATH
 
16554
  case $host_vendor in
 
16555
    sni)
 
16556
      shlibpath_overrides_runpath=no
 
16557
      need_lib_prefix=no
 
16558
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16559
      runpath_var=LD_RUN_PATH
 
16560
      ;;
 
16561
    siemens)
 
16562
      need_lib_prefix=no
 
16563
      ;;
 
16564
    motorola)
 
16565
      need_lib_prefix=no
 
16566
      need_version=no
 
16567
      shlibpath_overrides_runpath=no
 
16568
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16569
      ;;
 
16570
  esac
 
16571
  ;;
 
16572
 
 
16573
sysv4*MP*)
 
16574
  if test -d /usr/nec ;then
 
16575
    version_type=linux
 
16576
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16577
    soname_spec='$libname${shared_ext}.$major'
 
16578
    shlibpath_var=LD_LIBRARY_PATH
 
16579
  fi
 
16580
  ;;
 
16581
 
 
16582
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16583
  version_type=freebsd-elf
 
16584
  need_lib_prefix=no
 
16585
  need_version=no
 
16586
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16587
  soname_spec='${libname}${release}${shared_ext}$major'
 
16588
  shlibpath_var=LD_LIBRARY_PATH
 
16589
  hardcode_into_libs=yes
 
16590
  if test "$with_gnu_ld" = yes; then
 
16591
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16592
    shlibpath_overrides_runpath=no
 
16593
  else
 
16594
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16595
    shlibpath_overrides_runpath=yes
 
16596
    case $host_os in
 
16597
      sco3.2v5*)
 
16598
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16599
        ;;
 
16600
    esac
 
16601
  fi
 
16602
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16603
  ;;
 
16604
 
 
16605
uts4*)
 
16606
  version_type=linux
 
16607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16608
  soname_spec='${libname}${release}${shared_ext}$major'
 
16609
  shlibpath_var=LD_LIBRARY_PATH
 
16610
  ;;
 
16611
 
 
16612
*)
 
16613
  dynamic_linker=no
 
16614
  ;;
 
16615
esac
 
16616
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16617
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16618
test "$dynamic_linker" = no && can_build_shared=no
 
16619
 
 
16620
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16621
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16622
else
 
16623
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16624
fi
 
16625
 
 
16626
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16627
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16629
else
 
16630
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16631
fi
 
16632
 
 
16633
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16634
 
 
16635
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16636
if test "$GCC" = yes; then
 
16637
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16638
fi
 
16639
 
 
16640
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16641
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16642
hardcode_action_F77=
 
16643
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16644
   test -n "$runpath_var_F77" || \
 
16645
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16646
 
 
16647
  # We can hardcode non-existant directories.
 
16648
  if test "$hardcode_direct_F77" != no &&
 
16649
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16650
     # have to relink, otherwise we might link with an installed library
 
16651
     # when we should be linking with a yet-to-be-installed one
 
16652
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16653
     test "$hardcode_minus_L_F77" != no; then
 
16654
    # Linking always hardcodes the temporary library directory.
 
16655
    hardcode_action_F77=relink
 
16656
  else
 
16657
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16658
    hardcode_action_F77=immediate
 
16659
  fi
 
16660
else
 
16661
  # We cannot hardcode anything, or else we can only hardcode existing
 
16662
  # directories.
 
16663
  hardcode_action_F77=unsupported
 
16664
fi
 
16665
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16666
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16667
 
 
16668
if test "$hardcode_action_F77" = relink; then
 
16669
  # Fast installation is not supported
 
16670
  enable_fast_install=no
 
16671
elif test "$shlibpath_overrides_runpath" = yes ||
 
16672
     test "$enable_shared" = no; then
 
16673
  # Fast installation is not necessary
 
16674
  enable_fast_install=needless
 
16675
fi
 
16676
 
 
16677
 
 
16678
# The else clause should only fire when bootstrapping the
 
16679
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16680
# with your package, and you will get complaints that there are
 
16681
# no rules to generate ltmain.sh.
 
16682
if test -f "$ltmain"; then
 
16683
  # See if we are running on zsh, and set the options which allow our commands through
 
16684
  # without removal of \ escapes.
 
16685
  if test -n "${ZSH_VERSION+set}" ; then
 
16686
    setopt NO_GLOB_SUBST
 
16687
  fi
 
16688
  # Now quote all the things that may contain metacharacters while being
 
16689
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16690
  # variables and quote the copies for generation of the libtool script.
 
16691
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16692
    SED SHELL STRIP \
 
16693
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16694
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16695
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16696
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16697
    lt_cv_sys_global_symbol_to_c_name_address \
 
16698
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16699
    old_postinstall_cmds old_postuninstall_cmds \
 
16700
    compiler_F77 \
 
16701
    CC_F77 \
 
16702
    LD_F77 \
 
16703
    lt_prog_compiler_wl_F77 \
 
16704
    lt_prog_compiler_pic_F77 \
 
16705
    lt_prog_compiler_static_F77 \
 
16706
    lt_prog_compiler_no_builtin_flag_F77 \
 
16707
    export_dynamic_flag_spec_F77 \
 
16708
    thread_safe_flag_spec_F77 \
 
16709
    whole_archive_flag_spec_F77 \
 
16710
    enable_shared_with_static_runtimes_F77 \
 
16711
    old_archive_cmds_F77 \
 
16712
    old_archive_from_new_cmds_F77 \
 
16713
    predep_objects_F77 \
 
16714
    postdep_objects_F77 \
 
16715
    predeps_F77 \
 
16716
    postdeps_F77 \
 
16717
    compiler_lib_search_path_F77 \
 
16718
    compiler_lib_search_dirs_F77 \
 
16719
    archive_cmds_F77 \
 
16720
    archive_expsym_cmds_F77 \
 
16721
    postinstall_cmds_F77 \
 
16722
    postuninstall_cmds_F77 \
 
16723
    old_archive_from_expsyms_cmds_F77 \
 
16724
    allow_undefined_flag_F77 \
 
16725
    no_undefined_flag_F77 \
 
16726
    export_symbols_cmds_F77 \
 
16727
    hardcode_libdir_flag_spec_F77 \
 
16728
    hardcode_libdir_flag_spec_ld_F77 \
 
16729
    hardcode_libdir_separator_F77 \
 
16730
    hardcode_automatic_F77 \
 
16731
    module_cmds_F77 \
 
16732
    module_expsym_cmds_F77 \
 
16733
    lt_cv_prog_compiler_c_o_F77 \
 
16734
    fix_srcfile_path_F77 \
 
16735
    exclude_expsyms_F77 \
 
16736
    include_expsyms_F77; do
 
16737
 
 
16738
    case $var in
 
16739
    old_archive_cmds_F77 | \
 
16740
    old_archive_from_new_cmds_F77 | \
 
16741
    archive_cmds_F77 | \
 
16742
    archive_expsym_cmds_F77 | \
 
16743
    module_cmds_F77 | \
 
16744
    module_expsym_cmds_F77 | \
 
16745
    old_archive_from_expsyms_cmds_F77 | \
 
16746
    export_symbols_cmds_F77 | \
 
16747
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16748
    postinstall_cmds | postuninstall_cmds | \
 
16749
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16750
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16751
      # Double-quote double-evaled strings.
 
16752
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16753
      ;;
 
16754
    *)
 
16755
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16756
      ;;
 
16757
    esac
 
16758
  done
 
16759
 
 
16760
  case $lt_echo in
 
16761
  *'\$0 --fallback-echo"')
 
16762
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16763
    ;;
 
16764
  esac
 
16765
 
 
16766
cfgfile="$ofile"
 
16767
 
 
16768
  cat <<__EOF__ >> "$cfgfile"
 
16769
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16770
 
 
16771
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16772
 
 
16773
# Shell to use when invoking shell scripts.
 
16774
SHELL=$lt_SHELL
 
16775
 
 
16776
# Whether or not to build shared libraries.
 
16777
build_libtool_libs=$enable_shared
 
16778
 
 
16779
# Whether or not to build static libraries.
 
16780
build_old_libs=$enable_static
 
16781
 
 
16782
# Whether or not to add -lc for building shared libraries.
 
16783
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16784
 
 
16785
# Whether or not to disallow shared libs when runtime libs are static
 
16786
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16787
 
 
16788
# Whether or not to optimize for fast installation.
 
16789
fast_install=$enable_fast_install
 
16790
 
 
16791
# The host system.
 
16792
host_alias=$host_alias
 
16793
host=$host
 
16794
host_os=$host_os
 
16795
 
 
16796
# The build system.
 
16797
build_alias=$build_alias
 
16798
build=$build
 
16799
build_os=$build_os
 
16800
 
 
16801
# An echo program that does not interpret backslashes.
 
16802
echo=$lt_echo
 
16803
 
 
16804
# The archiver.
 
16805
AR=$lt_AR
 
16806
AR_FLAGS=$lt_AR_FLAGS
 
16807
 
 
16808
# A C compiler.
 
16809
LTCC=$lt_LTCC
 
16810
 
 
16811
# LTCC compiler flags.
 
16812
LTCFLAGS=$lt_LTCFLAGS
 
16813
 
 
16814
# A language-specific compiler.
 
16815
CC=$lt_compiler_F77
 
16816
 
 
16817
# Is the compiler the GNU C compiler?
 
16818
with_gcc=$GCC_F77
 
16819
 
 
16820
# An ERE matcher.
 
16821
EGREP=$lt_EGREP
 
16822
 
 
16823
# The linker used to build libraries.
 
16824
LD=$lt_LD_F77
 
16825
 
 
16826
# Whether we need hard or soft links.
 
16827
LN_S=$lt_LN_S
 
16828
 
 
16829
# A BSD-compatible nm program.
 
16830
NM=$lt_NM
 
16831
 
 
16832
# A symbol stripping program
 
16833
STRIP=$lt_STRIP
 
16834
 
 
16835
# Used to examine libraries when file_magic_cmd begins "file"
 
16836
MAGIC_CMD=$MAGIC_CMD
 
16837
 
 
16838
# Used on cygwin: DLL creation program.
 
16839
DLLTOOL="$DLLTOOL"
 
16840
 
 
16841
# Used on cygwin: object dumper.
 
16842
OBJDUMP="$OBJDUMP"
 
16843
 
 
16844
# Used on cygwin: assembler.
 
16845
AS="$AS"
 
16846
 
 
16847
# The name of the directory that contains temporary libtool files.
 
16848
objdir=$objdir
 
16849
 
 
16850
# How to create reloadable object files.
 
16851
reload_flag=$lt_reload_flag
 
16852
reload_cmds=$lt_reload_cmds
 
16853
 
 
16854
# How to pass a linker flag through the compiler.
 
16855
wl=$lt_lt_prog_compiler_wl_F77
 
16856
 
 
16857
# Object file suffix (normally "o").
 
16858
objext="$ac_objext"
 
16859
 
 
16860
# Old archive suffix (normally "a").
 
16861
libext="$libext"
 
16862
 
 
16863
# Shared library suffix (normally ".so").
 
16864
shrext_cmds='$shrext_cmds'
 
16865
 
 
16866
# Executable file suffix (normally "").
 
16867
exeext="$exeext"
 
16868
 
 
16869
# Additional compiler flags for building library objects.
 
16870
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16871
pic_mode=$pic_mode
 
16872
 
 
16873
# What is the maximum length of a command?
 
16874
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16875
 
 
16876
# Does compiler simultaneously support -c and -o options?
 
16877
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16878
 
 
16879
# Must we lock files when doing compilation?
 
16880
need_locks=$lt_need_locks
 
16881
 
 
16882
# Do we need the lib prefix for modules?
 
16883
need_lib_prefix=$need_lib_prefix
 
16884
 
 
16885
# Do we need a version for libraries?
 
16886
need_version=$need_version
 
16887
 
 
16888
# Whether dlopen is supported.
 
16889
dlopen_support=$enable_dlopen
 
16890
 
 
16891
# Whether dlopen of programs is supported.
 
16892
dlopen_self=$enable_dlopen_self
 
16893
 
 
16894
# Whether dlopen of statically linked programs is supported.
 
16895
dlopen_self_static=$enable_dlopen_self_static
 
16896
 
 
16897
# Compiler flag to prevent dynamic linking.
 
16898
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16899
 
 
16900
# Compiler flag to turn off builtin functions.
 
16901
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16902
 
 
16903
# Compiler flag to allow reflexive dlopens.
 
16904
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16905
 
 
16906
# Compiler flag to generate shared objects directly from archives.
 
16907
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16908
 
 
16909
# Compiler flag to generate thread-safe objects.
 
16910
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16911
 
 
16912
# Library versioning type.
 
16913
version_type=$version_type
 
16914
 
 
16915
# Format of library name prefix.
 
16916
libname_spec=$lt_libname_spec
 
16917
 
 
16918
# List of archive names.  First name is the real one, the rest are links.
 
16919
# The last name is the one that the linker finds with -lNAME.
 
16920
library_names_spec=$lt_library_names_spec
 
16921
 
 
16922
# The coded name of the library, if different from the real name.
 
16923
soname_spec=$lt_soname_spec
 
16924
 
 
16925
# Commands used to build and install an old-style archive.
 
16926
RANLIB=$lt_RANLIB
 
16927
old_archive_cmds=$lt_old_archive_cmds_F77
 
16928
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16929
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16930
 
 
16931
# Create an old-style archive from a shared archive.
 
16932
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16933
 
 
16934
# Create a temporary old-style archive to link instead of a shared archive.
 
16935
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16936
 
 
16937
# Commands used to build and install a shared archive.
 
16938
archive_cmds=$lt_archive_cmds_F77
 
16939
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16940
postinstall_cmds=$lt_postinstall_cmds
 
16941
postuninstall_cmds=$lt_postuninstall_cmds
 
16942
 
 
16943
# Commands used to build a loadable module (assumed same as above if empty)
 
16944
module_cmds=$lt_module_cmds_F77
 
16945
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16946
 
 
16947
# Commands to strip libraries.
 
16948
old_striplib=$lt_old_striplib
 
16949
striplib=$lt_striplib
 
16950
 
 
16951
# Dependencies to place before the objects being linked to create a
 
16952
# shared library.
 
16953
predep_objects=$lt_predep_objects_F77
 
16954
 
 
16955
# Dependencies to place after the objects being linked to create a
 
16956
# shared library.
 
16957
postdep_objects=$lt_postdep_objects_F77
 
16958
 
 
16959
# Dependencies to place before the objects being linked to create a
 
16960
# shared library.
 
16961
predeps=$lt_predeps_F77
 
16962
 
 
16963
# Dependencies to place after the objects being linked to create a
 
16964
# shared library.
 
16965
postdeps=$lt_postdeps_F77
 
16966
 
 
16967
# The directories searched by this compiler when creating a shared
 
16968
# library
 
16969
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16970
 
 
16971
# The library search path used internally by the compiler when linking
 
16972
# a shared library.
 
16973
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16974
 
 
16975
# Method to check whether dependent libraries are shared objects.
 
16976
deplibs_check_method=$lt_deplibs_check_method
 
16977
 
 
16978
# Command to use when deplibs_check_method == file_magic.
 
16979
file_magic_cmd=$lt_file_magic_cmd
 
16980
 
 
16981
# Flag that allows shared libraries with undefined symbols to be built.
 
16982
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16983
 
 
16984
# Flag that forces no undefined symbols.
 
16985
no_undefined_flag=$lt_no_undefined_flag_F77
 
16986
 
 
16987
# Commands used to finish a libtool library installation in a directory.
 
16988
finish_cmds=$lt_finish_cmds
 
16989
 
 
16990
# Same as above, but a single script fragment to be evaled but not shown.
 
16991
finish_eval=$lt_finish_eval
 
16992
 
 
16993
# Take the output of nm and produce a listing of raw symbols and C names.
 
16994
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16995
 
 
16996
# Transform the output of nm in a proper C declaration
 
16997
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16998
 
 
16999
# Transform the output of nm in a C name address pair
 
17000
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17001
 
 
17002
# This is the shared library runtime path variable.
 
17003
runpath_var=$runpath_var
 
17004
 
 
17005
# This is the shared library path variable.
 
17006
shlibpath_var=$shlibpath_var
 
17007
 
 
17008
# Is shlibpath searched before the hard-coded library search path?
 
17009
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17010
 
 
17011
# How to hardcode a shared library path into an executable.
 
17012
hardcode_action=$hardcode_action_F77
 
17013
 
 
17014
# Whether we should hardcode library paths into libraries.
 
17015
hardcode_into_libs=$hardcode_into_libs
 
17016
 
 
17017
# Flag to hardcode \$libdir into a binary during linking.
 
17018
# This must work even if \$libdir does not exist.
 
17019
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17020
 
 
17021
# If ld is used when linking, flag to hardcode \$libdir into
 
17022
# a binary during linking. This must work even if \$libdir does
 
17023
# not exist.
 
17024
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17025
 
 
17026
# Whether we need a single -rpath flag with a separated argument.
 
17027
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17028
 
 
17029
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17030
# resulting binary.
 
17031
hardcode_direct=$hardcode_direct_F77
 
17032
 
 
17033
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17034
# resulting binary.
 
17035
hardcode_minus_L=$hardcode_minus_L_F77
 
17036
 
 
17037
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17038
# the resulting binary.
 
17039
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17040
 
 
17041
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17042
# and all subsequent libraries and executables linked against it.
 
17043
hardcode_automatic=$hardcode_automatic_F77
 
17044
 
 
17045
# Variables whose values should be saved in libtool wrapper scripts and
 
17046
# restored at relink time.
 
17047
variables_saved_for_relink="$variables_saved_for_relink"
 
17048
 
 
17049
# Whether libtool must link a program against all its dependency libraries.
 
17050
link_all_deplibs=$link_all_deplibs_F77
 
17051
 
 
17052
# Compile-time system search path for libraries
 
17053
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17054
 
 
17055
# Run-time system search path for libraries
 
17056
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17057
 
 
17058
# Fix the shell variable \$srcfile for the compiler.
 
17059
fix_srcfile_path=$lt_fix_srcfile_path
 
17060
 
 
17061
# Set to yes if exported symbols are required.
 
17062
always_export_symbols=$always_export_symbols_F77
 
17063
 
 
17064
# The commands to list exported symbols.
 
17065
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17066
 
 
17067
# The commands to extract the exported symbol list from a shared archive.
 
17068
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17069
 
 
17070
# Symbols that should not be listed in the preloaded symbols.
 
17071
exclude_expsyms=$lt_exclude_expsyms_F77
 
17072
 
 
17073
# Symbols that must always be exported.
 
17074
include_expsyms=$lt_include_expsyms_F77
 
17075
 
 
17076
# ### END LIBTOOL TAG CONFIG: $tagname
 
17077
 
 
17078
__EOF__
 
17079
 
 
17080
 
 
17081
else
 
17082
  # If there is no Makefile yet, we rely on a make rule to execute
 
17083
  # `config.status --recheck' to rerun these tests and create the
 
17084
  # libtool script then.
 
17085
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17086
  if test -f "$ltmain_in"; then
 
17087
    test -f Makefile && make "$ltmain"
 
17088
  fi
 
17089
fi
 
17090
 
 
17091
 
 
17092
ac_ext=c
 
17093
ac_cpp='$CPP $CPPFLAGS'
 
17094
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17095
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17096
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17097
 
 
17098
CC="$lt_save_CC"
 
17099
 
 
17100
        else
 
17101
          tagname=""
 
17102
        fi
 
17103
        ;;
 
17104
 
 
17105
      GCJ)
 
17106
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17107
 
 
17108
 
 
17109
# Source file extension for Java test sources.
 
17110
ac_ext=java
 
17111
 
 
17112
# Object file extension for compiled Java test sources.
 
17113
objext=o
 
17114
objext_GCJ=$objext
 
17115
 
 
17116
# Code to be used in simple compile tests
 
17117
lt_simple_compile_test_code="class foo {}"
 
17118
 
 
17119
# Code to be used in simple link tests
 
17120
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17121
 
 
17122
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17123
 
 
17124
# If no C compiler was specified, use CC.
 
17125
LTCC=${LTCC-"$CC"}
 
17126
 
 
17127
# If no C compiler flags were specified, use CFLAGS.
 
17128
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17129
 
 
17130
# Allow CC to be a program name with arguments.
 
17131
compiler=$CC
 
17132
 
 
17133
 
 
17134
# save warnings/boilerplate of simple test code
 
17135
ac_outfile=conftest.$ac_objext
 
17136
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17137
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17138
_lt_compiler_boilerplate=`cat conftest.err`
 
17139
$rm conftest*
 
17140
 
 
17141
ac_outfile=conftest.$ac_objext
 
17142
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17143
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17144
_lt_linker_boilerplate=`cat conftest.err`
 
17145
$rm -r conftest*
 
17146
 
 
17147
 
 
17148
# Allow CC to be a program name with arguments.
 
17149
lt_save_CC="$CC"
 
17150
CC=${GCJ-"gcj"}
 
17151
compiler=$CC
 
17152
compiler_GCJ=$CC
 
17153
for cc_temp in $compiler""; do
 
17154
  case $cc_temp in
 
17155
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17156
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17157
    \-*) ;;
 
17158
    *) break;;
 
17159
  esac
 
17160
done
 
17161
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17162
 
 
17163
 
 
17164
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17165
archive_cmds_need_lc_GCJ=no
 
17166
 
 
17167
old_archive_cmds_GCJ=$old_archive_cmds
 
17168
 
 
17169
 
 
17170
lt_prog_compiler_no_builtin_flag_GCJ=
 
17171
 
 
17172
if test "$GCC" = yes; then
 
17173
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17174
 
 
17175
 
 
17176
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17177
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
17178
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17179
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17180
else
 
17181
  lt_cv_prog_compiler_rtti_exceptions=no
 
17182
  ac_outfile=conftest.$ac_objext
 
17183
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17184
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17185
   # Insert the option either (1) after the last *FLAGS variable, or
 
17186
   # (2) before a word containing "conftest.", or (3) at the end.
 
17187
   # Note that $ac_compile itself does not contain backslashes and begins
 
17188
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17189
   # The option is referenced via a variable to avoid confusing sed.
 
17190
   lt_compile=`echo "$ac_compile" | $SED \
 
17191
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17192
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17193
   -e 's:$: $lt_compiler_flag:'`
 
17194
   (eval echo "\"\$as_me:17194: $lt_compile\"" >&5)
 
17195
   (eval "$lt_compile" 2>conftest.err)
 
17196
   ac_status=$?
 
17197
   cat conftest.err >&5
 
17198
   echo "$as_me:17198: \$? = $ac_status" >&5
 
17199
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17200
     # The compiler can only warn and ignore the option if not recognized
 
17201
     # So say no if there are warnings other than the usual output.
 
17202
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17203
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17204
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17205
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17206
     fi
 
17207
   fi
 
17208
   $rm conftest*
 
17209
 
 
17210
fi
 
17211
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17212
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17213
 
 
17214
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17215
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17216
else
 
17217
    :
 
17218
fi
 
17219
 
 
17220
fi
 
17221
 
 
17222
lt_prog_compiler_wl_GCJ=
 
17223
lt_prog_compiler_pic_GCJ=
 
17224
lt_prog_compiler_static_GCJ=
 
17225
 
 
17226
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17227
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
17228
 
 
17229
  if test "$GCC" = yes; then
 
17230
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17231
    lt_prog_compiler_static_GCJ='-static'
 
17232
 
 
17233
    case $host_os in
 
17234
      aix*)
 
17235
      # All AIX code is PIC.
 
17236
      if test "$host_cpu" = ia64; then
 
17237
        # AIX 5 now supports IA64 processor
 
17238
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17239
      fi
 
17240
      ;;
 
17241
 
 
17242
    amigaos*)
 
17243
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17244
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17245
      # like `-m68040'.
 
17246
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17247
      ;;
 
17248
 
 
17249
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17250
      # PIC is the default for these OSes.
 
17251
      ;;
 
17252
 
 
17253
    mingw* | cygwin* | pw32* | os2*)
 
17254
      # This hack is so that the source file can tell whether it is being
 
17255
      # built for inclusion in a dll (and should export symbols for example).
 
17256
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17257
      # (--disable-auto-import) libraries
 
17258
 
 
17259
      ;;
 
17260
 
 
17261
    darwin* | rhapsody*)
 
17262
      # PIC is the default on this platform
 
17263
      # Common symbols not allowed in MH_DYLIB files
 
17264
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17265
      ;;
 
17266
 
 
17267
    interix[3-9]*)
 
17268
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17269
      # Instead, we relocate shared libraries at runtime.
 
17270
      ;;
 
17271
 
 
17272
    msdosdjgpp*)
 
17273
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17274
      # on systems that don't support them.
 
17275
      lt_prog_compiler_can_build_shared_GCJ=no
 
17276
      enable_shared=no
 
17277
      ;;
 
17278
 
 
17279
    sysv4*MP*)
 
17280
      if test -d /usr/nec; then
 
17281
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17282
      fi
 
17283
      ;;
 
17284
 
 
17285
    hpux*)
 
17286
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17287
      # not for PA HP-UX.
 
17288
      case $host_cpu in
 
17289
      hppa*64*|ia64*)
 
17290
        # +Z the default
 
17291
        ;;
 
17292
      *)
 
17293
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17294
        ;;
 
17295
      esac
 
17296
      ;;
 
17297
 
 
17298
    *)
 
17299
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17300
      ;;
 
17301
    esac
 
17302
  else
 
17303
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17304
    case $host_os in
 
17305
    aix*)
 
17306
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17307
      if test "$host_cpu" = ia64; then
 
17308
        # AIX 5 now supports IA64 processor
 
17309
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17310
      else
 
17311
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17312
      fi
 
17313
      ;;
 
17314
      darwin*)
 
17315
        # PIC is the default on this platform
 
17316
        # Common symbols not allowed in MH_DYLIB files
 
17317
       case $cc_basename in
 
17318
         xlc*)
 
17319
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17320
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17321
         ;;
 
17322
       esac
 
17323
       ;;
 
17324
 
 
17325
    mingw* | cygwin* | pw32* | os2*)
 
17326
      # This hack is so that the source file can tell whether it is being
 
17327
      # built for inclusion in a dll (and should export symbols for example).
 
17328
 
 
17329
      ;;
 
17330
 
 
17331
    hpux9* | hpux10* | hpux11*)
 
17332
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17333
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17334
      # not for PA HP-UX.
 
17335
      case $host_cpu in
 
17336
      hppa*64*|ia64*)
 
17337
        # +Z the default
 
17338
        ;;
 
17339
      *)
 
17340
        lt_prog_compiler_pic_GCJ='+Z'
 
17341
        ;;
 
17342
      esac
 
17343
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17344
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17345
      ;;
 
17346
 
 
17347
    irix5* | irix6* | nonstopux*)
 
17348
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17349
      # PIC (with -KPIC) is the default.
 
17350
      lt_prog_compiler_static_GCJ='-non_shared'
 
17351
      ;;
 
17352
 
 
17353
    newsos6)
 
17354
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17355
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17356
      ;;
 
17357
 
 
17358
    linux* | k*bsd*-gnu)
 
17359
      case $cc_basename in
 
17360
      icc* | ecc*)
 
17361
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17362
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17363
        lt_prog_compiler_static_GCJ='-static'
 
17364
        ;;
 
17365
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17366
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17367
        # which looks to be a dead project)
 
17368
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17369
        lt_prog_compiler_pic_GCJ='-fpic'
 
17370
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17371
        ;;
 
17372
      ccc*)
 
17373
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17374
        # All Alpha code is PIC.
 
17375
        lt_prog_compiler_static_GCJ='-non_shared'
 
17376
        ;;
 
17377
      *)
 
17378
        case `$CC -V 2>&1 | sed 5q` in
 
17379
        *Sun\ C*)
 
17380
          # Sun C 5.9
 
17381
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17382
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17383
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17384
          ;;
 
17385
        *Sun\ F*)
 
17386
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17387
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17388
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17389
          lt_prog_compiler_wl_GCJ=''
 
17390
          ;;
 
17391
        esac
 
17392
        ;;
 
17393
      esac
 
17394
      ;;
 
17395
 
 
17396
    osf3* | osf4* | osf5*)
 
17397
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17398
      # All OSF/1 code is PIC.
 
17399
      lt_prog_compiler_static_GCJ='-non_shared'
 
17400
      ;;
 
17401
 
 
17402
    rdos*)
 
17403
      lt_prog_compiler_static_GCJ='-non_shared'
 
17404
      ;;
 
17405
 
 
17406
    solaris*)
 
17407
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17408
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17409
      case $cc_basename in
 
17410
      f77* | f90* | f95*)
 
17411
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17412
      *)
 
17413
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17414
      esac
 
17415
      ;;
 
17416
 
 
17417
    sunos4*)
 
17418
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17419
      lt_prog_compiler_pic_GCJ='-PIC'
 
17420
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17421
      ;;
 
17422
 
 
17423
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17424
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17425
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17426
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17427
      ;;
 
17428
 
 
17429
    sysv4*MP*)
 
17430
      if test -d /usr/nec ;then
 
17431
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17432
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17433
      fi
 
17434
      ;;
 
17435
 
 
17436
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17437
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17438
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17439
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17440
      ;;
 
17441
 
 
17442
    unicos*)
 
17443
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17444
      lt_prog_compiler_can_build_shared_GCJ=no
 
17445
      ;;
 
17446
 
 
17447
    uts4*)
 
17448
      lt_prog_compiler_pic_GCJ='-pic'
 
17449
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17450
      ;;
 
17451
 
 
17452
    *)
 
17453
      lt_prog_compiler_can_build_shared_GCJ=no
 
17454
      ;;
 
17455
    esac
 
17456
  fi
 
17457
 
 
17458
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17459
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17460
 
 
17461
#
 
17462
# Check to make sure the PIC flag actually works.
 
17463
#
 
17464
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17465
 
 
17466
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17467
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17468
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17469
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17470
else
 
17471
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17472
  ac_outfile=conftest.$ac_objext
 
17473
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17474
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17475
   # Insert the option either (1) after the last *FLAGS variable, or
 
17476
   # (2) before a word containing "conftest.", or (3) at the end.
 
17477
   # Note that $ac_compile itself does not contain backslashes and begins
 
17478
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17479
   # The option is referenced via a variable to avoid confusing sed.
 
17480
   lt_compile=`echo "$ac_compile" | $SED \
 
17481
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17482
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17483
   -e 's:$: $lt_compiler_flag:'`
 
17484
   (eval echo "\"\$as_me:17484: $lt_compile\"" >&5)
 
17485
   (eval "$lt_compile" 2>conftest.err)
 
17486
   ac_status=$?
 
17487
   cat conftest.err >&5
 
17488
   echo "$as_me:17488: \$? = $ac_status" >&5
 
17489
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17490
     # The compiler can only warn and ignore the option if not recognized
 
17491
     # So say no if there are warnings other than the usual output.
 
17492
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17493
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17494
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17495
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17496
     fi
 
17497
   fi
 
17498
   $rm conftest*
 
17499
 
 
17500
fi
 
17501
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17502
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17503
 
 
17504
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17505
    case $lt_prog_compiler_pic_GCJ in
 
17506
     "" | " "*) ;;
 
17507
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17508
     esac
 
17509
else
 
17510
    lt_prog_compiler_pic_GCJ=
 
17511
     lt_prog_compiler_can_build_shared_GCJ=no
 
17512
fi
 
17513
 
 
17514
fi
 
17515
case $host_os in
 
17516
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17517
  *djgpp*)
 
17518
    lt_prog_compiler_pic_GCJ=
 
17519
    ;;
 
17520
  *)
 
17521
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17522
    ;;
 
17523
esac
 
17524
 
 
17525
#
 
17526
# Check to make sure the static flag actually works.
 
17527
#
 
17528
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17529
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17530
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17531
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17532
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17533
else
 
17534
  lt_cv_prog_compiler_static_works_GCJ=no
 
17535
   save_LDFLAGS="$LDFLAGS"
 
17536
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17537
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17538
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17539
     # The linker can only warn and ignore the option if not recognized
 
17540
     # So say no if there are warnings
 
17541
     if test -s conftest.err; then
 
17542
       # Append any errors to the config.log.
 
17543
       cat conftest.err 1>&5
 
17544
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17545
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17546
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17547
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17548
       fi
 
17549
     else
 
17550
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17551
     fi
 
17552
   fi
 
17553
   $rm -r conftest*
 
17554
   LDFLAGS="$save_LDFLAGS"
 
17555
 
 
17556
fi
 
17557
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17558
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17559
 
 
17560
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17561
    :
 
17562
else
 
17563
    lt_prog_compiler_static_GCJ=
 
17564
fi
 
17565
 
 
17566
 
 
17567
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17568
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17569
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17571
else
 
17572
  lt_cv_prog_compiler_c_o_GCJ=no
 
17573
   $rm -r conftest 2>/dev/null
 
17574
   mkdir conftest
 
17575
   cd conftest
 
17576
   mkdir out
 
17577
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17578
 
 
17579
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17580
   # Insert the option either (1) after the last *FLAGS variable, or
 
17581
   # (2) before a word containing "conftest.", or (3) at the end.
 
17582
   # Note that $ac_compile itself does not contain backslashes and begins
 
17583
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17584
   lt_compile=`echo "$ac_compile" | $SED \
 
17585
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17586
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17587
   -e 's:$: $lt_compiler_flag:'`
 
17588
   (eval echo "\"\$as_me:17588: $lt_compile\"" >&5)
 
17589
   (eval "$lt_compile" 2>out/conftest.err)
 
17590
   ac_status=$?
 
17591
   cat out/conftest.err >&5
 
17592
   echo "$as_me:17592: \$? = $ac_status" >&5
 
17593
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17594
   then
 
17595
     # The compiler can only warn and ignore the option if not recognized
 
17596
     # So say no if there are warnings
 
17597
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17598
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17599
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17600
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17601
     fi
 
17602
   fi
 
17603
   chmod u+w . 2>&5
 
17604
   $rm conftest*
 
17605
   # SGI C++ compiler will create directory out/ii_files/ for
 
17606
   # template instantiation
 
17607
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17608
   $rm out/* && rmdir out
 
17609
   cd ..
 
17610
   rmdir conftest
 
17611
   $rm conftest*
 
17612
 
 
17613
fi
 
17614
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17615
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17616
 
 
17617
 
 
17618
hard_links="nottested"
 
17619
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17620
  # do not overwrite the value of need_locks provided by the user
 
17621
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17622
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17623
  hard_links=yes
 
17624
  $rm conftest*
 
17625
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17626
  touch conftest.a
 
17627
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17628
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17629
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17630
echo "${ECHO_T}$hard_links" >&6; }
 
17631
  if test "$hard_links" = no; then
 
17632
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17633
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17634
    need_locks=warn
 
17635
  fi
 
17636
else
 
17637
  need_locks=no
 
17638
fi
 
17639
 
 
17640
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17641
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17642
 
 
17643
  runpath_var=
 
17644
  allow_undefined_flag_GCJ=
 
17645
  enable_shared_with_static_runtimes_GCJ=no
 
17646
  archive_cmds_GCJ=
 
17647
  archive_expsym_cmds_GCJ=
 
17648
  old_archive_From_new_cmds_GCJ=
 
17649
  old_archive_from_expsyms_cmds_GCJ=
 
17650
  export_dynamic_flag_spec_GCJ=
 
17651
  whole_archive_flag_spec_GCJ=
 
17652
  thread_safe_flag_spec_GCJ=
 
17653
  hardcode_libdir_flag_spec_GCJ=
 
17654
  hardcode_libdir_flag_spec_ld_GCJ=
 
17655
  hardcode_libdir_separator_GCJ=
 
17656
  hardcode_direct_GCJ=no
 
17657
  hardcode_minus_L_GCJ=no
 
17658
  hardcode_shlibpath_var_GCJ=unsupported
 
17659
  link_all_deplibs_GCJ=unknown
 
17660
  hardcode_automatic_GCJ=no
 
17661
  module_cmds_GCJ=
 
17662
  module_expsym_cmds_GCJ=
 
17663
  always_export_symbols_GCJ=no
 
17664
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17665
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17666
  # included in the symbol list
 
17667
  include_expsyms_GCJ=
 
17668
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17669
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17670
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17671
  # as well as any symbol that contains `d'.
 
17672
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17673
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17674
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17675
  # the symbol is explicitly referenced.  Since portable code cannot
 
17676
  # rely on this symbol name, it's probably fine to never include it in
 
17677
  # preloaded symbol tables.
 
17678
  # Exclude shared library initialization/finalization symbols.
 
17679
  extract_expsyms_cmds=
 
17680
  # Just being paranoid about ensuring that cc_basename is set.
 
17681
  for cc_temp in $compiler""; do
 
17682
  case $cc_temp in
 
17683
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17684
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17685
    \-*) ;;
 
17686
    *) break;;
 
17687
  esac
 
17688
done
 
17689
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17690
 
 
17691
  case $host_os in
 
17692
  cygwin* | mingw* | pw32*)
 
17693
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17694
    # When not using gcc, we currently assume that we are using
 
17695
    # Microsoft Visual C++.
 
17696
    if test "$GCC" != yes; then
 
17697
      with_gnu_ld=no
 
17698
    fi
 
17699
    ;;
 
17700
  interix*)
 
17701
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17702
    with_gnu_ld=yes
 
17703
    ;;
 
17704
  openbsd*)
 
17705
    with_gnu_ld=no
 
17706
    ;;
 
17707
  esac
 
17708
 
 
17709
  ld_shlibs_GCJ=yes
 
17710
  if test "$with_gnu_ld" = yes; then
 
17711
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17712
    wlarc='${wl}'
 
17713
 
 
17714
    # Set some defaults for GNU ld with shared library support. These
 
17715
    # are reset later if shared libraries are not supported. Putting them
 
17716
    # here allows them to be overridden if necessary.
 
17717
    runpath_var=LD_RUN_PATH
 
17718
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17719
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17720
    # ancient GNU ld didn't support --whole-archive et. al.
 
17721
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17722
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17723
      else
 
17724
        whole_archive_flag_spec_GCJ=
 
17725
    fi
 
17726
    supports_anon_versioning=no
 
17727
    case `$LD -v 2>/dev/null` in
 
17728
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17729
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17730
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17731
      *\ 2.11.*) ;; # other 2.11 versions
 
17732
      *) supports_anon_versioning=yes ;;
 
17733
    esac
 
17734
 
 
17735
    # See if GNU ld supports shared libraries.
 
17736
    case $host_os in
 
17737
    aix[3-9]*)
 
17738
      # On AIX/PPC, the GNU linker is very broken
 
17739
      if test "$host_cpu" != ia64; then
 
17740
        ld_shlibs_GCJ=no
 
17741
        cat <<EOF 1>&2
 
17742
 
 
17743
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17744
*** to be unable to reliably create shared libraries on AIX.
 
17745
*** Therefore, libtool is disabling shared libraries support.  If you
 
17746
*** really care for shared libraries, you may want to modify your PATH
 
17747
*** so that a non-GNU linker is found, and then restart.
 
17748
 
 
17749
EOF
 
17750
      fi
 
17751
      ;;
 
17752
 
 
17753
    amigaos*)
 
17754
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17755
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17756
      hardcode_minus_L_GCJ=yes
 
17757
 
 
17758
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17759
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17760
      # to version 4, is to share data among multiple programs linked
 
17761
      # with the same dynamic library.  Since this doesn't match the
 
17762
      # behavior of shared libraries on other platforms, we can't use
 
17763
      # them.
 
17764
      ld_shlibs_GCJ=no
 
17765
      ;;
 
17766
 
 
17767
    beos*)
 
17768
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17769
        allow_undefined_flag_GCJ=unsupported
 
17770
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17771
        # support --undefined.  This deserves some investigation.  FIXME
 
17772
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17773
      else
 
17774
        ld_shlibs_GCJ=no
 
17775
      fi
 
17776
      ;;
 
17777
 
 
17778
    cygwin* | mingw* | pw32*)
 
17779
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17780
      # as there is no search path for DLLs.
 
17781
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17782
      allow_undefined_flag_GCJ=unsupported
 
17783
      always_export_symbols_GCJ=no
 
17784
      enable_shared_with_static_runtimes_GCJ=yes
 
17785
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17786
 
 
17787
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17788
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17789
        # If the export-symbols file already is a .def file (1st line
 
17790
        # is EXPORTS), use it as is; otherwise, prepend...
 
17791
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17792
          cp $export_symbols $output_objdir/$soname.def;
 
17793
        else
 
17794
          echo EXPORTS > $output_objdir/$soname.def;
 
17795
          cat $export_symbols >> $output_objdir/$soname.def;
 
17796
        fi~
 
17797
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17798
      else
 
17799
        ld_shlibs_GCJ=no
 
17800
      fi
 
17801
      ;;
 
17802
 
 
17803
    interix[3-9]*)
 
17804
      hardcode_direct_GCJ=no
 
17805
      hardcode_shlibpath_var_GCJ=no
 
17806
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17807
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17808
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17809
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17810
      # default) and relocated if they conflict, which is a slow very memory
 
17811
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17812
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17813
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17814
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17815
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
17816
      ;;
 
17817
 
 
17818
    gnu* | linux* | k*bsd*-gnu)
 
17819
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17820
        tmp_addflag=
 
17821
        case $cc_basename,$host_cpu in
 
17822
        pgcc*)                          # Portland Group C compiler
 
17823
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17824
          tmp_addflag=' $pic_flag'
 
17825
          ;;
 
17826
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17827
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17828
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17829
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17830
          tmp_addflag=' -i_dynamic' ;;
 
17831
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17832
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17833
        ifc* | ifort*)                  # Intel Fortran compiler
 
17834
          tmp_addflag=' -nofor_main' ;;
 
17835
        esac
 
17836
        case `$CC -V 2>&1 | sed 5q` in
 
17837
        *Sun\ C*)                       # Sun C 5.9
 
17838
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17839
          tmp_sharedflag='-G' ;;
 
17840
        *Sun\ F*)                       # Sun Fortran 8.3
 
17841
          tmp_sharedflag='-G' ;;
 
17842
        *)
 
17843
          tmp_sharedflag='-shared' ;;
 
17844
        esac
 
17845
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17846
 
 
17847
        if test $supports_anon_versioning = yes; then
 
17848
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17849
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17850
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17851
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17852
        fi
 
17853
        link_all_deplibs_GCJ=no
 
17854
      else
 
17855
        ld_shlibs_GCJ=no
 
17856
      fi
 
17857
      ;;
 
17858
 
 
17859
    netbsd* | netbsdelf*-gnu)
 
17860
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17861
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17862
        wlarc=
 
17863
      else
 
17864
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17865
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17866
      fi
 
17867
      ;;
 
17868
 
 
17869
    solaris*)
 
17870
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17871
        ld_shlibs_GCJ=no
 
17872
        cat <<EOF 1>&2
 
17873
 
 
17874
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17875
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17876
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17877
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17878
*** your PATH or compiler configuration so that the native linker is
 
17879
*** used, and then restart.
 
17880
 
 
17881
EOF
 
17882
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17883
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17884
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17885
      else
 
17886
        ld_shlibs_GCJ=no
 
17887
      fi
 
17888
      ;;
 
17889
 
 
17890
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17891
      case `$LD -v 2>&1` in
 
17892
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17893
        ld_shlibs_GCJ=no
 
17894
        cat <<_LT_EOF 1>&2
 
17895
 
 
17896
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17897
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17898
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17899
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17900
*** your PATH or compiler configuration so that the native linker is
 
17901
*** used, and then restart.
 
17902
 
 
17903
_LT_EOF
 
17904
        ;;
 
17905
        *)
 
17906
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17907
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17908
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17909
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17910
          else
 
17911
            ld_shlibs_GCJ=no
 
17912
          fi
 
17913
        ;;
 
17914
      esac
 
17915
      ;;
 
17916
 
 
17917
    sunos4*)
 
17918
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17919
      wlarc=
 
17920
      hardcode_direct_GCJ=yes
 
17921
      hardcode_shlibpath_var_GCJ=no
 
17922
      ;;
 
17923
 
 
17924
    *)
 
17925
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17926
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17927
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17928
      else
 
17929
        ld_shlibs_GCJ=no
 
17930
      fi
 
17931
      ;;
 
17932
    esac
 
17933
 
 
17934
    if test "$ld_shlibs_GCJ" = no; then
 
17935
      runpath_var=
 
17936
      hardcode_libdir_flag_spec_GCJ=
 
17937
      export_dynamic_flag_spec_GCJ=
 
17938
      whole_archive_flag_spec_GCJ=
 
17939
    fi
 
17940
  else
 
17941
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17942
    case $host_os in
 
17943
    aix3*)
 
17944
      allow_undefined_flag_GCJ=unsupported
 
17945
      always_export_symbols_GCJ=yes
 
17946
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17947
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17948
      # are no directories specified by -L.
 
17949
      hardcode_minus_L_GCJ=yes
 
17950
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17951
        # Neither direct hardcoding nor static linking is supported with a
 
17952
        # broken collect2.
 
17953
        hardcode_direct_GCJ=unsupported
 
17954
      fi
 
17955
      ;;
 
17956
 
 
17957
    aix[4-9]*)
 
17958
      if test "$host_cpu" = ia64; then
 
17959
        # On IA64, the linker does run time linking by default, so we don't
 
17960
        # have to do anything special.
 
17961
        aix_use_runtimelinking=no
 
17962
        exp_sym_flag='-Bexport'
 
17963
        no_entry_flag=""
 
17964
      else
 
17965
        # If we're using GNU nm, then we don't want the "-C" option.
 
17966
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17967
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17968
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17969
        else
 
17970
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17971
        fi
 
17972
        aix_use_runtimelinking=no
 
17973
 
 
17974
        # Test if we are trying to use run time linking or normal
 
17975
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17976
        # need to do runtime linking.
 
17977
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17978
          for ld_flag in $LDFLAGS; do
 
17979
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17980
            aix_use_runtimelinking=yes
 
17981
            break
 
17982
          fi
 
17983
          done
 
17984
          ;;
 
17985
        esac
 
17986
 
 
17987
        exp_sym_flag='-bexport'
 
17988
        no_entry_flag='-bnoentry'
 
17989
      fi
 
17990
 
 
17991
      # When large executables or shared objects are built, AIX ld can
 
17992
      # have problems creating the table of contents.  If linking a library
 
17993
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17994
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17995
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17996
 
 
17997
      archive_cmds_GCJ=''
 
17998
      hardcode_direct_GCJ=yes
 
17999
      hardcode_libdir_separator_GCJ=':'
 
18000
      link_all_deplibs_GCJ=yes
 
18001
 
 
18002
      if test "$GCC" = yes; then
 
18003
        case $host_os in aix4.[012]|aix4.[012].*)
 
18004
        # We only want to do this on AIX 4.2 and lower, the check
 
18005
        # below for broken collect2 doesn't work under 4.3+
 
18006
          collect2name=`${CC} -print-prog-name=collect2`
 
18007
          if test -f "$collect2name" && \
 
18008
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18009
          then
 
18010
          # We have reworked collect2
 
18011
          :
 
18012
          else
 
18013
          # We have old collect2
 
18014
          hardcode_direct_GCJ=unsupported
 
18015
          # It fails to find uninstalled libraries when the uninstalled
 
18016
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18017
          # to unsupported forces relinking
 
18018
          hardcode_minus_L_GCJ=yes
 
18019
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18020
          hardcode_libdir_separator_GCJ=
 
18021
          fi
 
18022
          ;;
 
18023
        esac
 
18024
        shared_flag='-shared'
 
18025
        if test "$aix_use_runtimelinking" = yes; then
 
18026
          shared_flag="$shared_flag "'${wl}-G'
 
18027
        fi
 
18028
      else
 
18029
        # not using gcc
 
18030
        if test "$host_cpu" = ia64; then
 
18031
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18032
        # chokes on -Wl,-G. The following line is correct:
 
18033
          shared_flag='-G'
 
18034
        else
 
18035
          if test "$aix_use_runtimelinking" = yes; then
 
18036
            shared_flag='${wl}-G'
 
18037
          else
 
18038
            shared_flag='${wl}-bM:SRE'
 
18039
          fi
 
18040
        fi
 
18041
      fi
 
18042
 
 
18043
      # It seems that -bexpall does not export symbols beginning with
 
18044
      # underscore (_), so it is better to generate a list of symbols to export.
 
18045
      always_export_symbols_GCJ=yes
 
18046
      if test "$aix_use_runtimelinking" = yes; then
 
18047
        # Warning - without using the other runtime loading flags (-brtl),
 
18048
        # -berok will link without error, but may produce a broken library.
 
18049
        allow_undefined_flag_GCJ='-berok'
 
18050
       # Determine the default libpath from the value encoded in an empty executable.
 
18051
       cat >conftest.$ac_ext <<_ACEOF
 
18052
/* confdefs.h.  */
 
18053
_ACEOF
 
18054
cat confdefs.h >>conftest.$ac_ext
 
18055
cat >>conftest.$ac_ext <<_ACEOF
 
18056
/* end confdefs.h.  */
 
18057
 
 
18058
int
 
18059
main ()
 
18060
{
 
18061
 
 
18062
  ;
 
18063
  return 0;
 
18064
}
 
18065
_ACEOF
 
18066
rm -f conftest.$ac_objext conftest$ac_exeext
 
18067
if { (ac_try="$ac_link"
 
18068
case "(($ac_try" in
 
18069
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18070
  *) ac_try_echo=$ac_try;;
 
18071
esac
 
18072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18073
  (eval "$ac_link") 2>conftest.er1
 
18074
  ac_status=$?
 
18075
  grep -v '^ *+' conftest.er1 >conftest.err
 
18076
  rm -f conftest.er1
 
18077
  cat conftest.err >&5
 
18078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18079
  (exit $ac_status); } && {
 
18080
         test -z "$ac_c_werror_flag" ||
 
18081
         test ! -s conftest.err
 
18082
       } && test -s conftest$ac_exeext &&
 
18083
       $as_test_x conftest$ac_exeext; then
 
18084
 
 
18085
lt_aix_libpath_sed='
 
18086
    /Import File Strings/,/^$/ {
 
18087
        /^0/ {
 
18088
            s/^0  *\(.*\)$/\1/
 
18089
            p
 
18090
        }
 
18091
    }'
 
18092
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18093
# Check for a 64-bit object if we didn't find anything.
 
18094
if test -z "$aix_libpath"; then
 
18095
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18096
fi
 
18097
else
 
18098
  echo "$as_me: failed program was:" >&5
 
18099
sed 's/^/| /' conftest.$ac_ext >&5
 
18100
 
 
18101
 
 
18102
fi
 
18103
 
 
18104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18105
      conftest$ac_exeext conftest.$ac_ext
 
18106
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18107
 
 
18108
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18109
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18110
       else
 
18111
        if test "$host_cpu" = ia64; then
 
18112
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18113
          allow_undefined_flag_GCJ="-z nodefs"
 
18114
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
18115
        else
 
18116
         # Determine the default libpath from the value encoded in an empty executable.
 
18117
         cat >conftest.$ac_ext <<_ACEOF
 
18118
/* confdefs.h.  */
 
18119
_ACEOF
 
18120
cat confdefs.h >>conftest.$ac_ext
 
18121
cat >>conftest.$ac_ext <<_ACEOF
 
18122
/* end confdefs.h.  */
 
18123
 
 
18124
int
 
18125
main ()
 
18126
{
 
18127
 
 
18128
  ;
 
18129
  return 0;
 
18130
}
 
18131
_ACEOF
 
18132
rm -f conftest.$ac_objext conftest$ac_exeext
 
18133
if { (ac_try="$ac_link"
 
18134
case "(($ac_try" in
 
18135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18136
  *) ac_try_echo=$ac_try;;
 
18137
esac
 
18138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
18139
  (eval "$ac_link") 2>conftest.er1
 
18140
  ac_status=$?
 
18141
  grep -v '^ *+' conftest.er1 >conftest.err
 
18142
  rm -f conftest.er1
 
18143
  cat conftest.err >&5
 
18144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18145
  (exit $ac_status); } && {
 
18146
         test -z "$ac_c_werror_flag" ||
 
18147
         test ! -s conftest.err
 
18148
       } && test -s conftest$ac_exeext &&
 
18149
       $as_test_x conftest$ac_exeext; then
 
18150
 
 
18151
lt_aix_libpath_sed='
 
18152
    /Import File Strings/,/^$/ {
 
18153
        /^0/ {
 
18154
            s/^0  *\(.*\)$/\1/
 
18155
            p
 
18156
        }
 
18157
    }'
 
18158
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18159
# Check for a 64-bit object if we didn't find anything.
 
18160
if test -z "$aix_libpath"; then
 
18161
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18162
fi
 
18163
else
 
18164
  echo "$as_me: failed program was:" >&5
 
18165
sed 's/^/| /' conftest.$ac_ext >&5
 
18166
 
 
18167
 
 
18168
fi
 
18169
 
 
18170
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18171
      conftest$ac_exeext conftest.$ac_ext
 
18172
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18173
 
 
18174
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18175
          # Warning - without using the other run time loading flags,
 
18176
          # -berok will link without error, but may produce a broken library.
 
18177
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18178
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18179
          # Exported symbols can be pulled into shared objects from archives
 
18180
          whole_archive_flag_spec_GCJ='$convenience'
 
18181
          archive_cmds_need_lc_GCJ=yes
 
18182
          # This is similar to how AIX traditionally builds its shared libraries.
 
18183
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18184
        fi
 
18185
      fi
 
18186
      ;;
 
18187
 
 
18188
    amigaos*)
 
18189
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
18190
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18191
      hardcode_minus_L_GCJ=yes
 
18192
      # see comment about different semantics on the GNU ld section
 
18193
      ld_shlibs_GCJ=no
 
18194
      ;;
 
18195
 
 
18196
    bsdi[45]*)
 
18197
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18198
      ;;
 
18199
 
 
18200
    cygwin* | mingw* | pw32*)
 
18201
      # When not using gcc, we currently assume that we are using
 
18202
      # Microsoft Visual C++.
 
18203
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18204
      # no search path for DLLs.
 
18205
      hardcode_libdir_flag_spec_GCJ=' '
 
18206
      allow_undefined_flag_GCJ=unsupported
 
18207
      # Tell ltmain to make .lib files, not .a files.
 
18208
      libext=lib
 
18209
      # Tell ltmain to make .dll files, not .so files.
 
18210
      shrext_cmds=".dll"
 
18211
      # FIXME: Setting linknames here is a bad hack.
 
18212
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18213
      # The linker will automatically build a .lib file if we build a DLL.
 
18214
      old_archive_From_new_cmds_GCJ='true'
 
18215
      # FIXME: Should let the user specify the lib program.
 
18216
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18217
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18218
      enable_shared_with_static_runtimes_GCJ=yes
 
18219
      ;;
 
18220
 
 
18221
    darwin* | rhapsody*)
 
18222
      case $host_os in
 
18223
        rhapsody* | darwin1.[012])
 
18224
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18225
         ;;
 
18226
       *) # Darwin 1.3 on
 
18227
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18228
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18229
         else
 
18230
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18231
             10.[012])
 
18232
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18233
               ;;
 
18234
             10.*)
 
18235
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18236
               ;;
 
18237
           esac
 
18238
         fi
 
18239
         ;;
 
18240
      esac
 
18241
      archive_cmds_need_lc_GCJ=no
 
18242
      hardcode_direct_GCJ=no
 
18243
      hardcode_automatic_GCJ=yes
 
18244
      hardcode_shlibpath_var_GCJ=unsupported
 
18245
      whole_archive_flag_spec_GCJ=''
 
18246
      link_all_deplibs_GCJ=yes
 
18247
    if test "$GCC" = yes ; then
 
18248
        output_verbose_link_cmd='echo'
 
18249
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
18250
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18251
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
18252
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
18253
    else
 
18254
      case $cc_basename in
 
18255
        xlc*)
 
18256
         output_verbose_link_cmd='echo'
 
18257
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18258
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18259
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18260
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18261
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18262
          ;;
 
18263
       *)
 
18264
         ld_shlibs_GCJ=no
 
18265
          ;;
 
18266
      esac
 
18267
    fi
 
18268
      ;;
 
18269
 
 
18270
    dgux*)
 
18271
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18272
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18273
      hardcode_shlibpath_var_GCJ=no
 
18274
      ;;
 
18275
 
 
18276
    freebsd1*)
 
18277
      ld_shlibs_GCJ=no
 
18278
      ;;
 
18279
 
 
18280
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18281
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18282
    # does not break anything, and helps significantly (at the cost of a little
 
18283
    # extra space).
 
18284
    freebsd2.2*)
 
18285
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18286
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18287
      hardcode_direct_GCJ=yes
 
18288
      hardcode_shlibpath_var_GCJ=no
 
18289
      ;;
 
18290
 
 
18291
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18292
    freebsd2*)
 
18293
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18294
      hardcode_direct_GCJ=yes
 
18295
      hardcode_minus_L_GCJ=yes
 
18296
      hardcode_shlibpath_var_GCJ=no
 
18297
      ;;
 
18298
 
 
18299
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18300
    freebsd* | dragonfly*)
 
18301
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18302
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18303
      hardcode_direct_GCJ=yes
 
18304
      hardcode_shlibpath_var_GCJ=no
 
18305
      ;;
 
18306
 
 
18307
    hpux9*)
 
18308
      if test "$GCC" = yes; then
 
18309
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18310
      else
 
18311
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18312
      fi
 
18313
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18314
      hardcode_libdir_separator_GCJ=:
 
18315
      hardcode_direct_GCJ=yes
 
18316
 
 
18317
      # hardcode_minus_L: Not really in the search PATH,
 
18318
      # but as the default location of the library.
 
18319
      hardcode_minus_L_GCJ=yes
 
18320
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18321
      ;;
 
18322
 
 
18323
    hpux10*)
 
18324
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18325
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18326
      else
 
18327
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18328
      fi
 
18329
      if test "$with_gnu_ld" = no; then
 
18330
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18331
        hardcode_libdir_separator_GCJ=:
 
18332
 
 
18333
        hardcode_direct_GCJ=yes
 
18334
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18335
 
 
18336
        # hardcode_minus_L: Not really in the search PATH,
 
18337
        # but as the default location of the library.
 
18338
        hardcode_minus_L_GCJ=yes
 
18339
      fi
 
18340
      ;;
 
18341
 
 
18342
    hpux11*)
 
18343
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18344
        case $host_cpu in
 
18345
        hppa*64*)
 
18346
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18347
          ;;
 
18348
        ia64*)
 
18349
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18350
          ;;
 
18351
        *)
 
18352
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18353
          ;;
 
18354
        esac
 
18355
      else
 
18356
        case $host_cpu in
 
18357
        hppa*64*)
 
18358
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18359
          ;;
 
18360
        ia64*)
 
18361
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18362
          ;;
 
18363
        *)
 
18364
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18365
          ;;
 
18366
        esac
 
18367
      fi
 
18368
      if test "$with_gnu_ld" = no; then
 
18369
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18370
        hardcode_libdir_separator_GCJ=:
 
18371
 
 
18372
        case $host_cpu in
 
18373
        hppa*64*|ia64*)
 
18374
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18375
          hardcode_direct_GCJ=no
 
18376
          hardcode_shlibpath_var_GCJ=no
 
18377
          ;;
 
18378
        *)
 
18379
          hardcode_direct_GCJ=yes
 
18380
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18381
 
 
18382
          # hardcode_minus_L: Not really in the search PATH,
 
18383
          # but as the default location of the library.
 
18384
          hardcode_minus_L_GCJ=yes
 
18385
          ;;
 
18386
        esac
 
18387
      fi
 
18388
      ;;
 
18389
 
 
18390
    irix5* | irix6* | nonstopux*)
 
18391
      if test "$GCC" = yes; then
 
18392
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18393
      else
 
18394
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18395
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18396
      fi
 
18397
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18398
      hardcode_libdir_separator_GCJ=:
 
18399
      link_all_deplibs_GCJ=yes
 
18400
      ;;
 
18401
 
 
18402
    netbsd* | netbsdelf*-gnu)
 
18403
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18404
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18405
      else
 
18406
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18407
      fi
 
18408
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18409
      hardcode_direct_GCJ=yes
 
18410
      hardcode_shlibpath_var_GCJ=no
 
18411
      ;;
 
18412
 
 
18413
    newsos6)
 
18414
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18415
      hardcode_direct_GCJ=yes
 
18416
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18417
      hardcode_libdir_separator_GCJ=:
 
18418
      hardcode_shlibpath_var_GCJ=no
 
18419
      ;;
 
18420
 
 
18421
    openbsd*)
 
18422
      if test -f /usr/libexec/ld.so; then
 
18423
        hardcode_direct_GCJ=yes
 
18424
        hardcode_shlibpath_var_GCJ=no
 
18425
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18426
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18427
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18428
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18429
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18430
        else
 
18431
          case $host_os in
 
18432
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18433
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18434
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18435
             ;;
 
18436
           *)
 
18437
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18438
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18439
             ;;
 
18440
          esac
 
18441
        fi
 
18442
      else
 
18443
        ld_shlibs_GCJ=no
 
18444
      fi
 
18445
      ;;
 
18446
 
 
18447
    os2*)
 
18448
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18449
      hardcode_minus_L_GCJ=yes
 
18450
      allow_undefined_flag_GCJ=unsupported
 
18451
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
18452
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18453
      ;;
 
18454
 
 
18455
    osf3*)
 
18456
      if test "$GCC" = yes; then
 
18457
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18458
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18459
      else
 
18460
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18461
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18462
      fi
 
18463
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18464
      hardcode_libdir_separator_GCJ=:
 
18465
      ;;
 
18466
 
 
18467
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18468
      if test "$GCC" = yes; then
 
18469
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18470
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18471
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18472
      else
 
18473
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18474
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18475
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18476
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
18477
 
 
18478
        # Both c and cxx compiler support -rpath directly
 
18479
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18480
      fi
 
18481
      hardcode_libdir_separator_GCJ=:
 
18482
      ;;
 
18483
 
 
18484
    solaris*)
 
18485
      no_undefined_flag_GCJ=' -z text'
 
18486
      if test "$GCC" = yes; then
 
18487
        wlarc='${wl}'
 
18488
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18489
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18490
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18491
      else
 
18492
        wlarc=''
 
18493
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18494
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18495
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18496
      fi
 
18497
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18498
      hardcode_shlibpath_var_GCJ=no
 
18499
      case $host_os in
 
18500
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18501
      *)
 
18502
        # The compiler driver will combine and reorder linker options,
 
18503
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18504
        # but is careful enough not to reorder.
 
18505
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18506
        if test "$GCC" = yes; then
 
18507
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18508
        else
 
18509
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18510
        fi
 
18511
        ;;
 
18512
      esac
 
18513
      link_all_deplibs_GCJ=yes
 
18514
      ;;
 
18515
 
 
18516
    sunos4*)
 
18517
      if test "x$host_vendor" = xsequent; then
 
18518
        # Use $CC to link under sequent, because it throws in some extra .o
 
18519
        # files that make .init and .fini sections work.
 
18520
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18521
      else
 
18522
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18523
      fi
 
18524
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18525
      hardcode_direct_GCJ=yes
 
18526
      hardcode_minus_L_GCJ=yes
 
18527
      hardcode_shlibpath_var_GCJ=no
 
18528
      ;;
 
18529
 
 
18530
    sysv4)
 
18531
      case $host_vendor in
 
18532
        sni)
 
18533
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18534
          hardcode_direct_GCJ=yes # is this really true???
 
18535
        ;;
 
18536
        siemens)
 
18537
          ## LD is ld it makes a PLAMLIB
 
18538
          ## CC just makes a GrossModule.
 
18539
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18540
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18541
          hardcode_direct_GCJ=no
 
18542
        ;;
 
18543
        motorola)
 
18544
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18545
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18546
        ;;
 
18547
      esac
 
18548
      runpath_var='LD_RUN_PATH'
 
18549
      hardcode_shlibpath_var_GCJ=no
 
18550
      ;;
 
18551
 
 
18552
    sysv4.3*)
 
18553
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18554
      hardcode_shlibpath_var_GCJ=no
 
18555
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18556
      ;;
 
18557
 
 
18558
    sysv4*MP*)
 
18559
      if test -d /usr/nec; then
 
18560
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18561
        hardcode_shlibpath_var_GCJ=no
 
18562
        runpath_var=LD_RUN_PATH
 
18563
        hardcode_runpath_var=yes
 
18564
        ld_shlibs_GCJ=yes
 
18565
      fi
 
18566
      ;;
 
18567
 
 
18568
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18569
      no_undefined_flag_GCJ='${wl}-z,text'
 
18570
      archive_cmds_need_lc_GCJ=no
 
18571
      hardcode_shlibpath_var_GCJ=no
 
18572
      runpath_var='LD_RUN_PATH'
 
18573
 
 
18574
      if test "$GCC" = yes; then
 
18575
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18576
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18577
      else
 
18578
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18579
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18580
      fi
 
18581
      ;;
 
18582
 
 
18583
    sysv5* | sco3.2v5* | sco5v6*)
 
18584
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18585
      # link with -lc, and that would cause any symbols used from libc to
 
18586
      # always be unresolved, which means just about no library would
 
18587
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18588
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18589
      # as -z defs.
 
18590
      no_undefined_flag_GCJ='${wl}-z,text'
 
18591
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18592
      archive_cmds_need_lc_GCJ=no
 
18593
      hardcode_shlibpath_var_GCJ=no
 
18594
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18595
      hardcode_libdir_separator_GCJ=':'
 
18596
      link_all_deplibs_GCJ=yes
 
18597
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18598
      runpath_var='LD_RUN_PATH'
 
18599
 
 
18600
      if test "$GCC" = yes; then
 
18601
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18602
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18603
      else
 
18604
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18605
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18606
      fi
 
18607
      ;;
 
18608
 
 
18609
    uts4*)
 
18610
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18611
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18612
      hardcode_shlibpath_var_GCJ=no
 
18613
      ;;
 
18614
 
 
18615
    *)
 
18616
      ld_shlibs_GCJ=no
 
18617
      ;;
 
18618
    esac
 
18619
  fi
 
18620
 
 
18621
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18622
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18623
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18624
 
 
18625
#
 
18626
# Do we need to explicitly link libc?
 
18627
#
 
18628
case "x$archive_cmds_need_lc_GCJ" in
 
18629
x|xyes)
 
18630
  # Assume -lc should be added
 
18631
  archive_cmds_need_lc_GCJ=yes
 
18632
 
 
18633
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18634
    case $archive_cmds_GCJ in
 
18635
    *'~'*)
 
18636
      # FIXME: we may have to deal with multi-command sequences.
 
18637
      ;;
 
18638
    '$CC '*)
 
18639
      # Test whether the compiler implicitly links with -lc since on some
 
18640
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18641
      # to ld, don't add -lc before -lgcc.
 
18642
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18643
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18644
      $rm conftest*
 
18645
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18646
 
 
18647
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18648
  (eval $ac_compile) 2>&5
 
18649
  ac_status=$?
 
18650
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18651
  (exit $ac_status); } 2>conftest.err; then
 
18652
        soname=conftest
 
18653
        lib=conftest
 
18654
        libobjs=conftest.$ac_objext
 
18655
        deplibs=
 
18656
        wl=$lt_prog_compiler_wl_GCJ
 
18657
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18658
        compiler_flags=-v
 
18659
        linker_flags=-v
 
18660
        verstring=
 
18661
        output_objdir=.
 
18662
        libname=conftest
 
18663
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18664
        allow_undefined_flag_GCJ=
 
18665
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18666
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18667
  ac_status=$?
 
18668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18669
  (exit $ac_status); }
 
18670
        then
 
18671
          archive_cmds_need_lc_GCJ=no
 
18672
        else
 
18673
          archive_cmds_need_lc_GCJ=yes
 
18674
        fi
 
18675
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18676
      else
 
18677
        cat conftest.err 1>&5
 
18678
      fi
 
18679
      $rm conftest*
 
18680
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18681
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18682
      ;;
 
18683
    esac
 
18684
  fi
 
18685
  ;;
 
18686
esac
 
18687
 
 
18688
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18689
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18690
library_names_spec=
 
18691
libname_spec='lib$name'
 
18692
soname_spec=
 
18693
shrext_cmds=".so"
 
18694
postinstall_cmds=
 
18695
postuninstall_cmds=
 
18696
finish_cmds=
 
18697
finish_eval=
 
18698
shlibpath_var=
 
18699
shlibpath_overrides_runpath=unknown
 
18700
version_type=none
 
18701
dynamic_linker="$host_os ld.so"
 
18702
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18703
 
 
18704
need_lib_prefix=unknown
 
18705
hardcode_into_libs=no
 
18706
 
 
18707
# when you set need_version to no, make sure it does not cause -set_version
 
18708
# flags to be left without arguments
 
18709
need_version=unknown
 
18710
 
 
18711
case $host_os in
 
18712
aix3*)
 
18713
  version_type=linux
 
18714
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18715
  shlibpath_var=LIBPATH
 
18716
 
 
18717
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18718
  soname_spec='${libname}${release}${shared_ext}$major'
 
18719
  ;;
 
18720
 
 
18721
aix[4-9]*)
 
18722
  version_type=linux
 
18723
  need_lib_prefix=no
 
18724
  need_version=no
 
18725
  hardcode_into_libs=yes
 
18726
  if test "$host_cpu" = ia64; then
 
18727
    # AIX 5 supports IA64
 
18728
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18729
    shlibpath_var=LD_LIBRARY_PATH
 
18730
  else
 
18731
    # With GCC up to 2.95.x, collect2 would create an import file
 
18732
    # for dependence libraries.  The import file would start with
 
18733
    # the line `#! .'.  This would cause the generated library to
 
18734
    # depend on `.', always an invalid library.  This was fixed in
 
18735
    # development snapshots of GCC prior to 3.0.
 
18736
    case $host_os in
 
18737
      aix4 | aix4.[01] | aix4.[01].*)
 
18738
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18739
           echo ' yes '
 
18740
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18741
        :
 
18742
      else
 
18743
        can_build_shared=no
 
18744
      fi
 
18745
      ;;
 
18746
    esac
 
18747
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18748
    # soname into executable. Probably we can add versioning support to
 
18749
    # collect2, so additional links can be useful in future.
 
18750
    if test "$aix_use_runtimelinking" = yes; then
 
18751
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18752
      # instead of lib<name>.a to let people know that these are not
 
18753
      # typical AIX shared libraries.
 
18754
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18755
    else
 
18756
      # We preserve .a as extension for shared libraries through AIX4.2
 
18757
      # and later when we are not doing run time linking.
 
18758
      library_names_spec='${libname}${release}.a $libname.a'
 
18759
      soname_spec='${libname}${release}${shared_ext}$major'
 
18760
    fi
 
18761
    shlibpath_var=LIBPATH
 
18762
  fi
 
18763
  ;;
 
18764
 
 
18765
amigaos*)
 
18766
  library_names_spec='$libname.ixlibrary $libname.a'
 
18767
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18768
  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'
 
18769
  ;;
 
18770
 
 
18771
beos*)
 
18772
  library_names_spec='${libname}${shared_ext}'
 
18773
  dynamic_linker="$host_os ld.so"
 
18774
  shlibpath_var=LIBRARY_PATH
 
18775
  ;;
 
18776
 
 
18777
bsdi[45]*)
 
18778
  version_type=linux
 
18779
  need_version=no
 
18780
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18781
  soname_spec='${libname}${release}${shared_ext}$major'
 
18782
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18783
  shlibpath_var=LD_LIBRARY_PATH
 
18784
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18785
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18786
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18787
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18788
  # libtool to hard-code these into programs
 
18789
  ;;
 
18790
 
 
18791
cygwin* | mingw* | pw32*)
 
18792
  version_type=windows
 
18793
  shrext_cmds=".dll"
 
18794
  need_version=no
 
18795
  need_lib_prefix=no
 
18796
 
 
18797
  case $GCC,$host_os in
 
18798
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18799
    library_names_spec='$libname.dll.a'
 
18800
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18801
    postinstall_cmds='base_file=`basename \${file}`~
 
18802
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18803
      dldir=$destdir/`dirname \$dlpath`~
 
18804
      test -d \$dldir || mkdir -p \$dldir~
 
18805
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18806
      chmod a+x \$dldir/$dlname'
 
18807
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18808
      dlpath=$dir/\$dldll~
 
18809
       $rm \$dlpath'
 
18810
    shlibpath_overrides_runpath=yes
 
18811
 
 
18812
    case $host_os in
 
18813
    cygwin*)
 
18814
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18815
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18816
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18817
      ;;
 
18818
    mingw*)
 
18819
      # MinGW DLLs use traditional 'lib' prefix
 
18820
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18821
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18822
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18823
        # It is most probably a Windows format PATH printed by
 
18824
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18825
        # path with ; separators, and with drive letters. We can handle the
 
18826
        # drive letters (cygwin fileutils understands them), so leave them,
 
18827
        # especially as we might pass files found there to a mingw objdump,
 
18828
        # which wouldn't understand a cygwinified path. Ahh.
 
18829
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18830
      else
 
18831
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18832
      fi
 
18833
      ;;
 
18834
    pw32*)
 
18835
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18836
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18837
      ;;
 
18838
    esac
 
18839
    ;;
 
18840
 
 
18841
  *)
 
18842
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18843
    ;;
 
18844
  esac
 
18845
  dynamic_linker='Win32 ld.exe'
 
18846
  # FIXME: first we should search . and the directory the executable is in
 
18847
  shlibpath_var=PATH
 
18848
  ;;
 
18849
 
 
18850
darwin* | rhapsody*)
 
18851
  dynamic_linker="$host_os dyld"
 
18852
  version_type=darwin
 
18853
  need_lib_prefix=no
 
18854
  need_version=no
 
18855
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18856
  soname_spec='${libname}${release}${major}$shared_ext'
 
18857
  shlibpath_overrides_runpath=yes
 
18858
  shlibpath_var=DYLD_LIBRARY_PATH
 
18859
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18860
 
 
18861
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18862
  ;;
 
18863
 
 
18864
dgux*)
 
18865
  version_type=linux
 
18866
  need_lib_prefix=no
 
18867
  need_version=no
 
18868
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18869
  soname_spec='${libname}${release}${shared_ext}$major'
 
18870
  shlibpath_var=LD_LIBRARY_PATH
 
18871
  ;;
 
18872
 
 
18873
freebsd1*)
 
18874
  dynamic_linker=no
 
18875
  ;;
 
18876
 
 
18877
freebsd* | dragonfly*)
 
18878
  # DragonFly does not have aout.  When/if they implement a new
 
18879
  # versioning mechanism, adjust this.
 
18880
  if test -x /usr/bin/objformat; then
 
18881
    objformat=`/usr/bin/objformat`
 
18882
  else
 
18883
    case $host_os in
 
18884
    freebsd[123]*) objformat=aout ;;
 
18885
    *) objformat=elf ;;
 
18886
    esac
 
18887
  fi
 
18888
  version_type=freebsd-$objformat
 
18889
  case $version_type in
 
18890
    freebsd-elf*)
 
18891
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18892
      need_version=no
 
18893
      need_lib_prefix=no
 
18894
      ;;
 
18895
    freebsd-*)
 
18896
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18897
      need_version=yes
 
18898
      ;;
 
18899
  esac
 
18900
  shlibpath_var=LD_LIBRARY_PATH
 
18901
  case $host_os in
 
18902
  freebsd2*)
 
18903
    shlibpath_overrides_runpath=yes
 
18904
    ;;
 
18905
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18906
    shlibpath_overrides_runpath=yes
 
18907
    hardcode_into_libs=yes
 
18908
    ;;
 
18909
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18910
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18911
    shlibpath_overrides_runpath=no
 
18912
    hardcode_into_libs=yes
 
18913
    ;;
 
18914
  *) # from 4.6 on, and DragonFly
 
18915
    shlibpath_overrides_runpath=yes
 
18916
    hardcode_into_libs=yes
 
18917
    ;;
 
18918
  esac
 
18919
  ;;
 
18920
 
 
18921
gnu*)
 
18922
  version_type=linux
 
18923
  need_lib_prefix=no
 
18924
  need_version=no
 
18925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18926
  soname_spec='${libname}${release}${shared_ext}$major'
 
18927
  shlibpath_var=LD_LIBRARY_PATH
 
18928
  hardcode_into_libs=yes
 
18929
  ;;
 
18930
 
 
18931
hpux9* | hpux10* | hpux11*)
 
18932
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18933
  # link against other versions.
 
18934
  version_type=sunos
 
18935
  need_lib_prefix=no
 
18936
  need_version=no
 
18937
  case $host_cpu in
 
18938
  ia64*)
 
18939
    shrext_cmds='.so'
 
18940
    hardcode_into_libs=yes
 
18941
    dynamic_linker="$host_os dld.so"
 
18942
    shlibpath_var=LD_LIBRARY_PATH
 
18943
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18944
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18945
    soname_spec='${libname}${release}${shared_ext}$major'
 
18946
    if test "X$HPUX_IA64_MODE" = X32; then
 
18947
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18948
    else
 
18949
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18950
    fi
 
18951
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18952
    ;;
 
18953
   hppa*64*)
 
18954
     shrext_cmds='.sl'
 
18955
     hardcode_into_libs=yes
 
18956
     dynamic_linker="$host_os dld.sl"
 
18957
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18958
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18959
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18960
     soname_spec='${libname}${release}${shared_ext}$major'
 
18961
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18962
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18963
     ;;
 
18964
   *)
 
18965
    shrext_cmds='.sl'
 
18966
    dynamic_linker="$host_os dld.sl"
 
18967
    shlibpath_var=SHLIB_PATH
 
18968
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18969
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18970
    soname_spec='${libname}${release}${shared_ext}$major'
 
18971
    ;;
 
18972
  esac
 
18973
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18974
  postinstall_cmds='chmod 555 $lib'
 
18975
  ;;
 
18976
 
 
18977
interix[3-9]*)
 
18978
  version_type=linux
 
18979
  need_lib_prefix=no
 
18980
  need_version=no
 
18981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18982
  soname_spec='${libname}${release}${shared_ext}$major'
 
18983
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18984
  shlibpath_var=LD_LIBRARY_PATH
 
18985
  shlibpath_overrides_runpath=no
 
18986
  hardcode_into_libs=yes
 
18987
  ;;
 
18988
 
 
18989
irix5* | irix6* | nonstopux*)
 
18990
  case $host_os in
 
18991
    nonstopux*) version_type=nonstopux ;;
 
18992
    *)
 
18993
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18994
                version_type=linux
 
18995
        else
 
18996
                version_type=irix
 
18997
        fi ;;
 
18998
  esac
 
18999
  need_lib_prefix=no
 
19000
  need_version=no
 
19001
  soname_spec='${libname}${release}${shared_ext}$major'
 
19002
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19003
  case $host_os in
 
19004
  irix5* | nonstopux*)
 
19005
    libsuff= shlibsuff=
 
19006
    ;;
 
19007
  *)
 
19008
    case $LD in # libtool.m4 will add one of these switches to LD
 
19009
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19010
      libsuff= shlibsuff= libmagic=32-bit;;
 
19011
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19012
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19013
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19014
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19015
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19016
    esac
 
19017
    ;;
 
19018
  esac
 
19019
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19020
  shlibpath_overrides_runpath=no
 
19021
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19022
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19023
  hardcode_into_libs=yes
 
19024
  ;;
 
19025
 
 
19026
# No shared lib support for Linux oldld, aout, or coff.
 
19027
linux*oldld* | linux*aout* | linux*coff*)
 
19028
  dynamic_linker=no
 
19029
  ;;
 
19030
 
 
19031
# This must be Linux ELF.
 
19032
linux* | k*bsd*-gnu)
 
19033
  version_type=linux
 
19034
  need_lib_prefix=no
 
19035
  need_version=no
 
19036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19037
  soname_spec='${libname}${release}${shared_ext}$major'
 
19038
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19039
  shlibpath_var=LD_LIBRARY_PATH
 
19040
  shlibpath_overrides_runpath=no
 
19041
  # This implies no fast_install, which is unacceptable.
 
19042
  # Some rework will be needed to allow for fast_install
 
19043
  # before this can be enabled.
 
19044
  hardcode_into_libs=yes
 
19045
 
 
19046
  # Append ld.so.conf contents to the search path
 
19047
  if test -f /etc/ld.so.conf; then
 
19048
    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' ' '`
 
19049
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
19050
  fi
 
19051
 
 
19052
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19053
  # powerpc, because MkLinux only supported shared libraries with the
 
19054
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19055
  # most powerpc-linux boxes support dynamic linking these days and
 
19056
  # people can always --disable-shared, the test was removed, and we
 
19057
  # assume the GNU/Linux dynamic linker is in use.
 
19058
  dynamic_linker='GNU/Linux ld.so'
 
19059
  ;;
 
19060
 
 
19061
netbsdelf*-gnu)
 
19062
  version_type=linux
 
19063
  need_lib_prefix=no
 
19064
  need_version=no
 
19065
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19066
  soname_spec='${libname}${release}${shared_ext}$major'
 
19067
  shlibpath_var=LD_LIBRARY_PATH
 
19068
  shlibpath_overrides_runpath=no
 
19069
  hardcode_into_libs=yes
 
19070
  dynamic_linker='NetBSD ld.elf_so'
 
19071
  ;;
 
19072
 
 
19073
netbsd*)
 
19074
  version_type=sunos
 
19075
  need_lib_prefix=no
 
19076
  need_version=no
 
19077
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19078
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19079
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19080
    dynamic_linker='NetBSD (a.out) ld.so'
 
19081
  else
 
19082
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19083
    soname_spec='${libname}${release}${shared_ext}$major'
 
19084
    dynamic_linker='NetBSD ld.elf_so'
 
19085
  fi
 
19086
  shlibpath_var=LD_LIBRARY_PATH
 
19087
  shlibpath_overrides_runpath=yes
 
19088
  hardcode_into_libs=yes
 
19089
  ;;
 
19090
 
 
19091
newsos6)
 
19092
  version_type=linux
 
19093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19094
  shlibpath_var=LD_LIBRARY_PATH
 
19095
  shlibpath_overrides_runpath=yes
 
19096
  ;;
 
19097
 
 
19098
nto-qnx*)
 
19099
  version_type=linux
 
19100
  need_lib_prefix=no
 
19101
  need_version=no
 
19102
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19103
  soname_spec='${libname}${release}${shared_ext}$major'
 
19104
  shlibpath_var=LD_LIBRARY_PATH
 
19105
  shlibpath_overrides_runpath=yes
 
19106
  ;;
 
19107
 
 
19108
openbsd*)
 
19109
  version_type=sunos
 
19110
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19111
  need_lib_prefix=no
 
19112
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19113
  case $host_os in
 
19114
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19115
    *)                         need_version=no  ;;
 
19116
  esac
 
19117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19118
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19119
  shlibpath_var=LD_LIBRARY_PATH
 
19120
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19121
    case $host_os in
 
19122
      openbsd2.[89] | openbsd2.[89].*)
 
19123
        shlibpath_overrides_runpath=no
 
19124
        ;;
 
19125
      *)
 
19126
        shlibpath_overrides_runpath=yes
 
19127
        ;;
 
19128
      esac
 
19129
  else
 
19130
    shlibpath_overrides_runpath=yes
 
19131
  fi
 
19132
  ;;
 
19133
 
 
19134
os2*)
 
19135
  libname_spec='$name'
 
19136
  shrext_cmds=".dll"
 
19137
  need_lib_prefix=no
 
19138
  library_names_spec='$libname${shared_ext} $libname.a'
 
19139
  dynamic_linker='OS/2 ld.exe'
 
19140
  shlibpath_var=LIBPATH
 
19141
  ;;
 
19142
 
 
19143
osf3* | osf4* | osf5*)
 
19144
  version_type=osf
 
19145
  need_lib_prefix=no
 
19146
  need_version=no
 
19147
  soname_spec='${libname}${release}${shared_ext}$major'
 
19148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19149
  shlibpath_var=LD_LIBRARY_PATH
 
19150
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19151
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19152
  ;;
 
19153
 
 
19154
rdos*)
 
19155
  dynamic_linker=no
 
19156
  ;;
 
19157
 
 
19158
solaris*)
 
19159
  version_type=linux
 
19160
  need_lib_prefix=no
 
19161
  need_version=no
 
19162
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19163
  soname_spec='${libname}${release}${shared_ext}$major'
 
19164
  shlibpath_var=LD_LIBRARY_PATH
 
19165
  shlibpath_overrides_runpath=yes
 
19166
  hardcode_into_libs=yes
 
19167
  # ldd complains unless libraries are executable
 
19168
  postinstall_cmds='chmod +x $lib'
 
19169
  ;;
 
19170
 
 
19171
sunos4*)
 
19172
  version_type=sunos
 
19173
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19174
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19175
  shlibpath_var=LD_LIBRARY_PATH
 
19176
  shlibpath_overrides_runpath=yes
 
19177
  if test "$with_gnu_ld" = yes; then
 
19178
    need_lib_prefix=no
 
19179
  fi
 
19180
  need_version=yes
 
19181
  ;;
 
19182
 
 
19183
sysv4 | sysv4.3*)
 
19184
  version_type=linux
 
19185
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19186
  soname_spec='${libname}${release}${shared_ext}$major'
 
19187
  shlibpath_var=LD_LIBRARY_PATH
 
19188
  case $host_vendor in
 
19189
    sni)
 
19190
      shlibpath_overrides_runpath=no
 
19191
      need_lib_prefix=no
 
19192
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19193
      runpath_var=LD_RUN_PATH
 
19194
      ;;
 
19195
    siemens)
 
19196
      need_lib_prefix=no
 
19197
      ;;
 
19198
    motorola)
 
19199
      need_lib_prefix=no
 
19200
      need_version=no
 
19201
      shlibpath_overrides_runpath=no
 
19202
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19203
      ;;
 
19204
  esac
 
19205
  ;;
 
19206
 
 
19207
sysv4*MP*)
 
19208
  if test -d /usr/nec ;then
 
19209
    version_type=linux
 
19210
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19211
    soname_spec='$libname${shared_ext}.$major'
 
19212
    shlibpath_var=LD_LIBRARY_PATH
 
19213
  fi
 
19214
  ;;
 
19215
 
 
19216
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19217
  version_type=freebsd-elf
 
19218
  need_lib_prefix=no
 
19219
  need_version=no
 
19220
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19221
  soname_spec='${libname}${release}${shared_ext}$major'
 
19222
  shlibpath_var=LD_LIBRARY_PATH
 
19223
  hardcode_into_libs=yes
 
19224
  if test "$with_gnu_ld" = yes; then
 
19225
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19226
    shlibpath_overrides_runpath=no
 
19227
  else
 
19228
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19229
    shlibpath_overrides_runpath=yes
 
19230
    case $host_os in
 
19231
      sco3.2v5*)
 
19232
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19233
        ;;
 
19234
    esac
 
19235
  fi
 
19236
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19237
  ;;
 
19238
 
 
19239
uts4*)
 
19240
  version_type=linux
 
19241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19242
  soname_spec='${libname}${release}${shared_ext}$major'
 
19243
  shlibpath_var=LD_LIBRARY_PATH
 
19244
  ;;
 
19245
 
 
19246
*)
 
19247
  dynamic_linker=no
 
19248
  ;;
 
19249
esac
 
19250
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19251
echo "${ECHO_T}$dynamic_linker" >&6; }
 
19252
test "$dynamic_linker" = no && can_build_shared=no
 
19253
 
 
19254
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19256
else
 
19257
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19258
fi
 
19259
 
 
19260
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19261
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19262
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19263
else
 
19264
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19265
fi
 
19266
 
 
19267
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19268
 
 
19269
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19270
if test "$GCC" = yes; then
 
19271
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19272
fi
 
19273
 
 
19274
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19275
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
19276
hardcode_action_GCJ=
 
19277
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19278
   test -n "$runpath_var_GCJ" || \
 
19279
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19280
 
 
19281
  # We can hardcode non-existant directories.
 
19282
  if test "$hardcode_direct_GCJ" != no &&
 
19283
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19284
     # have to relink, otherwise we might link with an installed library
 
19285
     # when we should be linking with a yet-to-be-installed one
 
19286
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19287
     test "$hardcode_minus_L_GCJ" != no; then
 
19288
    # Linking always hardcodes the temporary library directory.
 
19289
    hardcode_action_GCJ=relink
 
19290
  else
 
19291
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19292
    hardcode_action_GCJ=immediate
 
19293
  fi
 
19294
else
 
19295
  # We cannot hardcode anything, or else we can only hardcode existing
 
19296
  # directories.
 
19297
  hardcode_action_GCJ=unsupported
 
19298
fi
 
19299
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19300
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
19301
 
 
19302
if test "$hardcode_action_GCJ" = relink; then
 
19303
  # Fast installation is not supported
 
19304
  enable_fast_install=no
 
19305
elif test "$shlibpath_overrides_runpath" = yes ||
 
19306
     test "$enable_shared" = no; then
 
19307
  # Fast installation is not necessary
 
19308
  enable_fast_install=needless
 
19309
fi
 
19310
 
 
19311
 
 
19312
# The else clause should only fire when bootstrapping the
 
19313
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19314
# with your package, and you will get complaints that there are
 
19315
# no rules to generate ltmain.sh.
 
19316
if test -f "$ltmain"; then
 
19317
  # See if we are running on zsh, and set the options which allow our commands through
 
19318
  # without removal of \ escapes.
 
19319
  if test -n "${ZSH_VERSION+set}" ; then
 
19320
    setopt NO_GLOB_SUBST
 
19321
  fi
 
19322
  # Now quote all the things that may contain metacharacters while being
 
19323
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19324
  # variables and quote the copies for generation of the libtool script.
 
19325
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19326
    SED SHELL STRIP \
 
19327
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19328
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19329
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19330
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19331
    lt_cv_sys_global_symbol_to_c_name_address \
 
19332
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19333
    old_postinstall_cmds old_postuninstall_cmds \
 
19334
    compiler_GCJ \
 
19335
    CC_GCJ \
 
19336
    LD_GCJ \
 
19337
    lt_prog_compiler_wl_GCJ \
 
19338
    lt_prog_compiler_pic_GCJ \
 
19339
    lt_prog_compiler_static_GCJ \
 
19340
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19341
    export_dynamic_flag_spec_GCJ \
 
19342
    thread_safe_flag_spec_GCJ \
 
19343
    whole_archive_flag_spec_GCJ \
 
19344
    enable_shared_with_static_runtimes_GCJ \
 
19345
    old_archive_cmds_GCJ \
 
19346
    old_archive_from_new_cmds_GCJ \
 
19347
    predep_objects_GCJ \
 
19348
    postdep_objects_GCJ \
 
19349
    predeps_GCJ \
 
19350
    postdeps_GCJ \
 
19351
    compiler_lib_search_path_GCJ \
 
19352
    compiler_lib_search_dirs_GCJ \
 
19353
    archive_cmds_GCJ \
 
19354
    archive_expsym_cmds_GCJ \
 
19355
    postinstall_cmds_GCJ \
 
19356
    postuninstall_cmds_GCJ \
 
19357
    old_archive_from_expsyms_cmds_GCJ \
 
19358
    allow_undefined_flag_GCJ \
 
19359
    no_undefined_flag_GCJ \
 
19360
    export_symbols_cmds_GCJ \
 
19361
    hardcode_libdir_flag_spec_GCJ \
 
19362
    hardcode_libdir_flag_spec_ld_GCJ \
 
19363
    hardcode_libdir_separator_GCJ \
 
19364
    hardcode_automatic_GCJ \
 
19365
    module_cmds_GCJ \
 
19366
    module_expsym_cmds_GCJ \
 
19367
    lt_cv_prog_compiler_c_o_GCJ \
 
19368
    fix_srcfile_path_GCJ \
 
19369
    exclude_expsyms_GCJ \
 
19370
    include_expsyms_GCJ; do
 
19371
 
 
19372
    case $var in
 
19373
    old_archive_cmds_GCJ | \
 
19374
    old_archive_from_new_cmds_GCJ | \
 
19375
    archive_cmds_GCJ | \
 
19376
    archive_expsym_cmds_GCJ | \
 
19377
    module_cmds_GCJ | \
 
19378
    module_expsym_cmds_GCJ | \
 
19379
    old_archive_from_expsyms_cmds_GCJ | \
 
19380
    export_symbols_cmds_GCJ | \
 
19381
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19382
    postinstall_cmds | postuninstall_cmds | \
 
19383
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19384
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19385
      # Double-quote double-evaled strings.
 
19386
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19387
      ;;
 
19388
    *)
 
19389
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19390
      ;;
 
19391
    esac
 
19392
  done
 
19393
 
 
19394
  case $lt_echo in
 
19395
  *'\$0 --fallback-echo"')
 
19396
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19397
    ;;
 
19398
  esac
 
19399
 
 
19400
cfgfile="$ofile"
 
19401
 
 
19402
  cat <<__EOF__ >> "$cfgfile"
 
19403
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19404
 
 
19405
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19406
 
 
19407
# Shell to use when invoking shell scripts.
 
19408
SHELL=$lt_SHELL
 
19409
 
 
19410
# Whether or not to build shared libraries.
 
19411
build_libtool_libs=$enable_shared
 
19412
 
 
19413
# Whether or not to build static libraries.
 
19414
build_old_libs=$enable_static
 
19415
 
 
19416
# Whether or not to add -lc for building shared libraries.
 
19417
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19418
 
 
19419
# Whether or not to disallow shared libs when runtime libs are static
 
19420
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19421
 
 
19422
# Whether or not to optimize for fast installation.
 
19423
fast_install=$enable_fast_install
 
19424
 
 
19425
# The host system.
 
19426
host_alias=$host_alias
 
19427
host=$host
 
19428
host_os=$host_os
 
19429
 
 
19430
# The build system.
 
19431
build_alias=$build_alias
 
19432
build=$build
 
19433
build_os=$build_os
 
19434
 
 
19435
# An echo program that does not interpret backslashes.
 
19436
echo=$lt_echo
 
19437
 
 
19438
# The archiver.
 
19439
AR=$lt_AR
 
19440
AR_FLAGS=$lt_AR_FLAGS
 
19441
 
 
19442
# A C compiler.
 
19443
LTCC=$lt_LTCC
 
19444
 
 
19445
# LTCC compiler flags.
 
19446
LTCFLAGS=$lt_LTCFLAGS
 
19447
 
 
19448
# A language-specific compiler.
 
19449
CC=$lt_compiler_GCJ
 
19450
 
 
19451
# Is the compiler the GNU C compiler?
 
19452
with_gcc=$GCC_GCJ
 
19453
 
 
19454
# An ERE matcher.
 
19455
EGREP=$lt_EGREP
 
19456
 
 
19457
# The linker used to build libraries.
 
19458
LD=$lt_LD_GCJ
 
19459
 
 
19460
# Whether we need hard or soft links.
 
19461
LN_S=$lt_LN_S
 
19462
 
 
19463
# A BSD-compatible nm program.
 
19464
NM=$lt_NM
 
19465
 
 
19466
# A symbol stripping program
 
19467
STRIP=$lt_STRIP
 
19468
 
 
19469
# Used to examine libraries when file_magic_cmd begins "file"
 
19470
MAGIC_CMD=$MAGIC_CMD
 
19471
 
 
19472
# Used on cygwin: DLL creation program.
 
19473
DLLTOOL="$DLLTOOL"
 
19474
 
 
19475
# Used on cygwin: object dumper.
 
19476
OBJDUMP="$OBJDUMP"
 
19477
 
 
19478
# Used on cygwin: assembler.
 
19479
AS="$AS"
 
19480
 
 
19481
# The name of the directory that contains temporary libtool files.
 
19482
objdir=$objdir
 
19483
 
 
19484
# How to create reloadable object files.
 
19485
reload_flag=$lt_reload_flag
 
19486
reload_cmds=$lt_reload_cmds
 
19487
 
 
19488
# How to pass a linker flag through the compiler.
 
19489
wl=$lt_lt_prog_compiler_wl_GCJ
 
19490
 
 
19491
# Object file suffix (normally "o").
 
19492
objext="$ac_objext"
 
19493
 
 
19494
# Old archive suffix (normally "a").
 
19495
libext="$libext"
 
19496
 
 
19497
# Shared library suffix (normally ".so").
 
19498
shrext_cmds='$shrext_cmds'
 
19499
 
 
19500
# Executable file suffix (normally "").
 
19501
exeext="$exeext"
 
19502
 
 
19503
# Additional compiler flags for building library objects.
 
19504
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19505
pic_mode=$pic_mode
 
19506
 
 
19507
# What is the maximum length of a command?
 
19508
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19509
 
 
19510
# Does compiler simultaneously support -c and -o options?
 
19511
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19512
 
 
19513
# Must we lock files when doing compilation?
 
19514
need_locks=$lt_need_locks
 
19515
 
 
19516
# Do we need the lib prefix for modules?
 
19517
need_lib_prefix=$need_lib_prefix
 
19518
 
 
19519
# Do we need a version for libraries?
 
19520
need_version=$need_version
 
19521
 
 
19522
# Whether dlopen is supported.
 
19523
dlopen_support=$enable_dlopen
 
19524
 
 
19525
# Whether dlopen of programs is supported.
 
19526
dlopen_self=$enable_dlopen_self
 
19527
 
 
19528
# Whether dlopen of statically linked programs is supported.
 
19529
dlopen_self_static=$enable_dlopen_self_static
 
19530
 
 
19531
# Compiler flag to prevent dynamic linking.
 
19532
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19533
 
 
19534
# Compiler flag to turn off builtin functions.
 
19535
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19536
 
 
19537
# Compiler flag to allow reflexive dlopens.
 
19538
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19539
 
 
19540
# Compiler flag to generate shared objects directly from archives.
 
19541
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19542
 
 
19543
# Compiler flag to generate thread-safe objects.
 
19544
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19545
 
 
19546
# Library versioning type.
 
19547
version_type=$version_type
 
19548
 
 
19549
# Format of library name prefix.
 
19550
libname_spec=$lt_libname_spec
 
19551
 
 
19552
# List of archive names.  First name is the real one, the rest are links.
 
19553
# The last name is the one that the linker finds with -lNAME.
 
19554
library_names_spec=$lt_library_names_spec
 
19555
 
 
19556
# The coded name of the library, if different from the real name.
 
19557
soname_spec=$lt_soname_spec
 
19558
 
 
19559
# Commands used to build and install an old-style archive.
 
19560
RANLIB=$lt_RANLIB
 
19561
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19562
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19563
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19564
 
 
19565
# Create an old-style archive from a shared archive.
 
19566
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19567
 
 
19568
# Create a temporary old-style archive to link instead of a shared archive.
 
19569
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19570
 
 
19571
# Commands used to build and install a shared archive.
 
19572
archive_cmds=$lt_archive_cmds_GCJ
 
19573
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19574
postinstall_cmds=$lt_postinstall_cmds
 
19575
postuninstall_cmds=$lt_postuninstall_cmds
 
19576
 
 
19577
# Commands used to build a loadable module (assumed same as above if empty)
 
19578
module_cmds=$lt_module_cmds_GCJ
 
19579
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19580
 
 
19581
# Commands to strip libraries.
 
19582
old_striplib=$lt_old_striplib
 
19583
striplib=$lt_striplib
 
19584
 
 
19585
# Dependencies to place before the objects being linked to create a
 
19586
# shared library.
 
19587
predep_objects=$lt_predep_objects_GCJ
 
19588
 
 
19589
# Dependencies to place after the objects being linked to create a
 
19590
# shared library.
 
19591
postdep_objects=$lt_postdep_objects_GCJ
 
19592
 
 
19593
# Dependencies to place before the objects being linked to create a
 
19594
# shared library.
 
19595
predeps=$lt_predeps_GCJ
 
19596
 
 
19597
# Dependencies to place after the objects being linked to create a
 
19598
# shared library.
 
19599
postdeps=$lt_postdeps_GCJ
 
19600
 
 
19601
# The directories searched by this compiler when creating a shared
 
19602
# library
 
19603
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19604
 
 
19605
# The library search path used internally by the compiler when linking
 
19606
# a shared library.
 
19607
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19608
 
 
19609
# Method to check whether dependent libraries are shared objects.
 
19610
deplibs_check_method=$lt_deplibs_check_method
 
19611
 
 
19612
# Command to use when deplibs_check_method == file_magic.
 
19613
file_magic_cmd=$lt_file_magic_cmd
 
19614
 
 
19615
# Flag that allows shared libraries with undefined symbols to be built.
 
19616
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19617
 
 
19618
# Flag that forces no undefined symbols.
 
19619
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19620
 
 
19621
# Commands used to finish a libtool library installation in a directory.
 
19622
finish_cmds=$lt_finish_cmds
 
19623
 
 
19624
# Same as above, but a single script fragment to be evaled but not shown.
 
19625
finish_eval=$lt_finish_eval
 
19626
 
 
19627
# Take the output of nm and produce a listing of raw symbols and C names.
 
19628
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19629
 
 
19630
# Transform the output of nm in a proper C declaration
 
19631
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19632
 
 
19633
# Transform the output of nm in a C name address pair
 
19634
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19635
 
 
19636
# This is the shared library runtime path variable.
 
19637
runpath_var=$runpath_var
 
19638
 
 
19639
# This is the shared library path variable.
 
19640
shlibpath_var=$shlibpath_var
 
19641
 
 
19642
# Is shlibpath searched before the hard-coded library search path?
 
19643
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19644
 
 
19645
# How to hardcode a shared library path into an executable.
 
19646
hardcode_action=$hardcode_action_GCJ
 
19647
 
 
19648
# Whether we should hardcode library paths into libraries.
 
19649
hardcode_into_libs=$hardcode_into_libs
 
19650
 
 
19651
# Flag to hardcode \$libdir into a binary during linking.
 
19652
# This must work even if \$libdir does not exist.
 
19653
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19654
 
 
19655
# If ld is used when linking, flag to hardcode \$libdir into
 
19656
# a binary during linking. This must work even if \$libdir does
 
19657
# not exist.
 
19658
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19659
 
 
19660
# Whether we need a single -rpath flag with a separated argument.
 
19661
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19662
 
 
19663
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19664
# resulting binary.
 
19665
hardcode_direct=$hardcode_direct_GCJ
 
19666
 
 
19667
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19668
# resulting binary.
 
19669
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19670
 
 
19671
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19672
# the resulting binary.
 
19673
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19674
 
 
19675
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19676
# and all subsequent libraries and executables linked against it.
 
19677
hardcode_automatic=$hardcode_automatic_GCJ
 
19678
 
 
19679
# Variables whose values should be saved in libtool wrapper scripts and
 
19680
# restored at relink time.
 
19681
variables_saved_for_relink="$variables_saved_for_relink"
 
19682
 
 
19683
# Whether libtool must link a program against all its dependency libraries.
 
19684
link_all_deplibs=$link_all_deplibs_GCJ
 
19685
 
 
19686
# Compile-time system search path for libraries
 
19687
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19688
 
 
19689
# Run-time system search path for libraries
 
19690
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19691
 
 
19692
# Fix the shell variable \$srcfile for the compiler.
 
19693
fix_srcfile_path=$lt_fix_srcfile_path
 
19694
 
 
19695
# Set to yes if exported symbols are required.
 
19696
always_export_symbols=$always_export_symbols_GCJ
 
19697
 
 
19698
# The commands to list exported symbols.
 
19699
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19700
 
 
19701
# The commands to extract the exported symbol list from a shared archive.
 
19702
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19703
 
 
19704
# Symbols that should not be listed in the preloaded symbols.
 
19705
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19706
 
 
19707
# Symbols that must always be exported.
 
19708
include_expsyms=$lt_include_expsyms_GCJ
 
19709
 
 
19710
# ### END LIBTOOL TAG CONFIG: $tagname
 
19711
 
 
19712
__EOF__
 
19713
 
 
19714
 
 
19715
else
 
19716
  # If there is no Makefile yet, we rely on a make rule to execute
 
19717
  # `config.status --recheck' to rerun these tests and create the
 
19718
  # libtool script then.
 
19719
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19720
  if test -f "$ltmain_in"; then
 
19721
    test -f Makefile && make "$ltmain"
 
19722
  fi
 
19723
fi
 
19724
 
 
19725
 
 
19726
ac_ext=c
 
19727
ac_cpp='$CPP $CPPFLAGS'
 
19728
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19729
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19730
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19731
 
 
19732
CC="$lt_save_CC"
 
19733
 
 
19734
        else
 
19735
          tagname=""
 
19736
        fi
 
19737
        ;;
 
19738
 
 
19739
      RC)
 
19740
 
 
19741
 
 
19742
# Source file extension for RC test sources.
 
19743
ac_ext=rc
 
19744
 
 
19745
# Object file extension for compiled RC test sources.
 
19746
objext=o
 
19747
objext_RC=$objext
 
19748
 
 
19749
# Code to be used in simple compile tests
 
19750
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19751
 
 
19752
# Code to be used in simple link tests
 
19753
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19754
 
 
19755
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19756
 
 
19757
# If no C compiler was specified, use CC.
 
19758
LTCC=${LTCC-"$CC"}
 
19759
 
 
19760
# If no C compiler flags were specified, use CFLAGS.
 
19761
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19762
 
 
19763
# Allow CC to be a program name with arguments.
 
19764
compiler=$CC
 
19765
 
 
19766
 
 
19767
# save warnings/boilerplate of simple test code
 
19768
ac_outfile=conftest.$ac_objext
 
19769
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19770
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19771
_lt_compiler_boilerplate=`cat conftest.err`
 
19772
$rm conftest*
 
19773
 
 
19774
ac_outfile=conftest.$ac_objext
 
19775
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19776
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19777
_lt_linker_boilerplate=`cat conftest.err`
 
19778
$rm -r conftest*
 
19779
 
 
19780
 
 
19781
# Allow CC to be a program name with arguments.
 
19782
lt_save_CC="$CC"
 
19783
CC=${RC-"windres"}
 
19784
compiler=$CC
 
19785
compiler_RC=$CC
 
19786
for cc_temp in $compiler""; do
 
19787
  case $cc_temp in
 
19788
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19789
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19790
    \-*) ;;
 
19791
    *) break;;
 
19792
  esac
 
19793
done
 
19794
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19795
 
 
19796
lt_cv_prog_compiler_c_o_RC=yes
 
19797
 
 
19798
# The else clause should only fire when bootstrapping the
 
19799
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19800
# with your package, and you will get complaints that there are
 
19801
# no rules to generate ltmain.sh.
 
19802
if test -f "$ltmain"; then
 
19803
  # See if we are running on zsh, and set the options which allow our commands through
 
19804
  # without removal of \ escapes.
 
19805
  if test -n "${ZSH_VERSION+set}" ; then
 
19806
    setopt NO_GLOB_SUBST
 
19807
  fi
 
19808
  # Now quote all the things that may contain metacharacters while being
 
19809
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19810
  # variables and quote the copies for generation of the libtool script.
 
19811
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19812
    SED SHELL STRIP \
 
19813
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19814
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19815
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19816
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19817
    lt_cv_sys_global_symbol_to_c_name_address \
 
19818
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19819
    old_postinstall_cmds old_postuninstall_cmds \
 
19820
    compiler_RC \
 
19821
    CC_RC \
 
19822
    LD_RC \
 
19823
    lt_prog_compiler_wl_RC \
 
19824
    lt_prog_compiler_pic_RC \
 
19825
    lt_prog_compiler_static_RC \
 
19826
    lt_prog_compiler_no_builtin_flag_RC \
 
19827
    export_dynamic_flag_spec_RC \
 
19828
    thread_safe_flag_spec_RC \
 
19829
    whole_archive_flag_spec_RC \
 
19830
    enable_shared_with_static_runtimes_RC \
 
19831
    old_archive_cmds_RC \
 
19832
    old_archive_from_new_cmds_RC \
 
19833
    predep_objects_RC \
 
19834
    postdep_objects_RC \
 
19835
    predeps_RC \
 
19836
    postdeps_RC \
 
19837
    compiler_lib_search_path_RC \
 
19838
    compiler_lib_search_dirs_RC \
 
19839
    archive_cmds_RC \
 
19840
    archive_expsym_cmds_RC \
 
19841
    postinstall_cmds_RC \
 
19842
    postuninstall_cmds_RC \
 
19843
    old_archive_from_expsyms_cmds_RC \
 
19844
    allow_undefined_flag_RC \
 
19845
    no_undefined_flag_RC \
 
19846
    export_symbols_cmds_RC \
 
19847
    hardcode_libdir_flag_spec_RC \
 
19848
    hardcode_libdir_flag_spec_ld_RC \
 
19849
    hardcode_libdir_separator_RC \
 
19850
    hardcode_automatic_RC \
 
19851
    module_cmds_RC \
 
19852
    module_expsym_cmds_RC \
 
19853
    lt_cv_prog_compiler_c_o_RC \
 
19854
    fix_srcfile_path_RC \
 
19855
    exclude_expsyms_RC \
 
19856
    include_expsyms_RC; do
 
19857
 
 
19858
    case $var in
 
19859
    old_archive_cmds_RC | \
 
19860
    old_archive_from_new_cmds_RC | \
 
19861
    archive_cmds_RC | \
 
19862
    archive_expsym_cmds_RC | \
 
19863
    module_cmds_RC | \
 
19864
    module_expsym_cmds_RC | \
 
19865
    old_archive_from_expsyms_cmds_RC | \
 
19866
    export_symbols_cmds_RC | \
 
19867
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19868
    postinstall_cmds | postuninstall_cmds | \
 
19869
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19870
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19871
      # Double-quote double-evaled strings.
 
19872
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19873
      ;;
 
19874
    *)
 
19875
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19876
      ;;
 
19877
    esac
 
19878
  done
 
19879
 
 
19880
  case $lt_echo in
 
19881
  *'\$0 --fallback-echo"')
 
19882
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19883
    ;;
 
19884
  esac
 
19885
 
 
19886
cfgfile="$ofile"
 
19887
 
 
19888
  cat <<__EOF__ >> "$cfgfile"
 
19889
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19890
 
 
19891
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19892
 
 
19893
# Shell to use when invoking shell scripts.
 
19894
SHELL=$lt_SHELL
 
19895
 
 
19896
# Whether or not to build shared libraries.
 
19897
build_libtool_libs=$enable_shared
 
19898
 
 
19899
# Whether or not to build static libraries.
 
19900
build_old_libs=$enable_static
 
19901
 
 
19902
# Whether or not to add -lc for building shared libraries.
 
19903
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19904
 
 
19905
# Whether or not to disallow shared libs when runtime libs are static
 
19906
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19907
 
 
19908
# Whether or not to optimize for fast installation.
 
19909
fast_install=$enable_fast_install
 
19910
 
 
19911
# The host system.
 
19912
host_alias=$host_alias
 
19913
host=$host
 
19914
host_os=$host_os
 
19915
 
 
19916
# The build system.
 
19917
build_alias=$build_alias
 
19918
build=$build
 
19919
build_os=$build_os
 
19920
 
 
19921
# An echo program that does not interpret backslashes.
 
19922
echo=$lt_echo
 
19923
 
 
19924
# The archiver.
 
19925
AR=$lt_AR
 
19926
AR_FLAGS=$lt_AR_FLAGS
 
19927
 
 
19928
# A C compiler.
 
19929
LTCC=$lt_LTCC
 
19930
 
 
19931
# LTCC compiler flags.
 
19932
LTCFLAGS=$lt_LTCFLAGS
 
19933
 
 
19934
# A language-specific compiler.
 
19935
CC=$lt_compiler_RC
 
19936
 
 
19937
# Is the compiler the GNU C compiler?
 
19938
with_gcc=$GCC_RC
 
19939
 
 
19940
# An ERE matcher.
 
19941
EGREP=$lt_EGREP
 
19942
 
 
19943
# The linker used to build libraries.
 
19944
LD=$lt_LD_RC
 
19945
 
 
19946
# Whether we need hard or soft links.
 
19947
LN_S=$lt_LN_S
 
19948
 
 
19949
# A BSD-compatible nm program.
 
19950
NM=$lt_NM
 
19951
 
 
19952
# A symbol stripping program
 
19953
STRIP=$lt_STRIP
 
19954
 
 
19955
# Used to examine libraries when file_magic_cmd begins "file"
 
19956
MAGIC_CMD=$MAGIC_CMD
 
19957
 
 
19958
# Used on cygwin: DLL creation program.
 
19959
DLLTOOL="$DLLTOOL"
 
19960
 
 
19961
# Used on cygwin: object dumper.
 
19962
OBJDUMP="$OBJDUMP"
 
19963
 
 
19964
# Used on cygwin: assembler.
 
19965
AS="$AS"
 
19966
 
 
19967
# The name of the directory that contains temporary libtool files.
 
19968
objdir=$objdir
 
19969
 
 
19970
# How to create reloadable object files.
 
19971
reload_flag=$lt_reload_flag
 
19972
reload_cmds=$lt_reload_cmds
 
19973
 
 
19974
# How to pass a linker flag through the compiler.
 
19975
wl=$lt_lt_prog_compiler_wl_RC
 
19976
 
 
19977
# Object file suffix (normally "o").
 
19978
objext="$ac_objext"
 
19979
 
 
19980
# Old archive suffix (normally "a").
 
19981
libext="$libext"
 
19982
 
 
19983
# Shared library suffix (normally ".so").
 
19984
shrext_cmds='$shrext_cmds'
 
19985
 
 
19986
# Executable file suffix (normally "").
 
19987
exeext="$exeext"
 
19988
 
 
19989
# Additional compiler flags for building library objects.
 
19990
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19991
pic_mode=$pic_mode
 
19992
 
 
19993
# What is the maximum length of a command?
 
19994
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19995
 
 
19996
# Does compiler simultaneously support -c and -o options?
 
19997
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19998
 
 
19999
# Must we lock files when doing compilation?
 
20000
need_locks=$lt_need_locks
 
20001
 
 
20002
# Do we need the lib prefix for modules?
 
20003
need_lib_prefix=$need_lib_prefix
 
20004
 
 
20005
# Do we need a version for libraries?
 
20006
need_version=$need_version
 
20007
 
 
20008
# Whether dlopen is supported.
 
20009
dlopen_support=$enable_dlopen
 
20010
 
 
20011
# Whether dlopen of programs is supported.
 
20012
dlopen_self=$enable_dlopen_self
 
20013
 
 
20014
# Whether dlopen of statically linked programs is supported.
 
20015
dlopen_self_static=$enable_dlopen_self_static
 
20016
 
 
20017
# Compiler flag to prevent dynamic linking.
 
20018
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20019
 
 
20020
# Compiler flag to turn off builtin functions.
 
20021
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20022
 
 
20023
# Compiler flag to allow reflexive dlopens.
 
20024
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20025
 
 
20026
# Compiler flag to generate shared objects directly from archives.
 
20027
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20028
 
 
20029
# Compiler flag to generate thread-safe objects.
 
20030
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20031
 
 
20032
# Library versioning type.
 
20033
version_type=$version_type
 
20034
 
 
20035
# Format of library name prefix.
 
20036
libname_spec=$lt_libname_spec
 
20037
 
 
20038
# List of archive names.  First name is the real one, the rest are links.
 
20039
# The last name is the one that the linker finds with -lNAME.
 
20040
library_names_spec=$lt_library_names_spec
 
20041
 
 
20042
# The coded name of the library, if different from the real name.
 
20043
soname_spec=$lt_soname_spec
 
20044
 
 
20045
# Commands used to build and install an old-style archive.
 
20046
RANLIB=$lt_RANLIB
 
20047
old_archive_cmds=$lt_old_archive_cmds_RC
 
20048
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20049
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20050
 
 
20051
# Create an old-style archive from a shared archive.
 
20052
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20053
 
 
20054
# Create a temporary old-style archive to link instead of a shared archive.
 
20055
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20056
 
 
20057
# Commands used to build and install a shared archive.
 
20058
archive_cmds=$lt_archive_cmds_RC
 
20059
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20060
postinstall_cmds=$lt_postinstall_cmds
 
20061
postuninstall_cmds=$lt_postuninstall_cmds
 
20062
 
 
20063
# Commands used to build a loadable module (assumed same as above if empty)
 
20064
module_cmds=$lt_module_cmds_RC
 
20065
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20066
 
 
20067
# Commands to strip libraries.
 
20068
old_striplib=$lt_old_striplib
 
20069
striplib=$lt_striplib
 
20070
 
 
20071
# Dependencies to place before the objects being linked to create a
 
20072
# shared library.
 
20073
predep_objects=$lt_predep_objects_RC
 
20074
 
 
20075
# Dependencies to place after the objects being linked to create a
 
20076
# shared library.
 
20077
postdep_objects=$lt_postdep_objects_RC
 
20078
 
 
20079
# Dependencies to place before the objects being linked to create a
 
20080
# shared library.
 
20081
predeps=$lt_predeps_RC
 
20082
 
 
20083
# Dependencies to place after the objects being linked to create a
 
20084
# shared library.
 
20085
postdeps=$lt_postdeps_RC
 
20086
 
 
20087
# The directories searched by this compiler when creating a shared
 
20088
# library
 
20089
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
20090
 
 
20091
# The library search path used internally by the compiler when linking
 
20092
# a shared library.
 
20093
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20094
 
 
20095
# Method to check whether dependent libraries are shared objects.
 
20096
deplibs_check_method=$lt_deplibs_check_method
 
20097
 
 
20098
# Command to use when deplibs_check_method == file_magic.
 
20099
file_magic_cmd=$lt_file_magic_cmd
 
20100
 
 
20101
# Flag that allows shared libraries with undefined symbols to be built.
 
20102
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20103
 
 
20104
# Flag that forces no undefined symbols.
 
20105
no_undefined_flag=$lt_no_undefined_flag_RC
 
20106
 
 
20107
# Commands used to finish a libtool library installation in a directory.
 
20108
finish_cmds=$lt_finish_cmds
 
20109
 
 
20110
# Same as above, but a single script fragment to be evaled but not shown.
 
20111
finish_eval=$lt_finish_eval
 
20112
 
 
20113
# Take the output of nm and produce a listing of raw symbols and C names.
 
20114
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20115
 
 
20116
# Transform the output of nm in a proper C declaration
 
20117
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20118
 
 
20119
# Transform the output of nm in a C name address pair
 
20120
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20121
 
 
20122
# This is the shared library runtime path variable.
 
20123
runpath_var=$runpath_var
 
20124
 
 
20125
# This is the shared library path variable.
 
20126
shlibpath_var=$shlibpath_var
 
20127
 
 
20128
# Is shlibpath searched before the hard-coded library search path?
 
20129
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20130
 
 
20131
# How to hardcode a shared library path into an executable.
 
20132
hardcode_action=$hardcode_action_RC
 
20133
 
 
20134
# Whether we should hardcode library paths into libraries.
 
20135
hardcode_into_libs=$hardcode_into_libs
 
20136
 
 
20137
# Flag to hardcode \$libdir into a binary during linking.
 
20138
# This must work even if \$libdir does not exist.
 
20139
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20140
 
 
20141
# If ld is used when linking, flag to hardcode \$libdir into
 
20142
# a binary during linking. This must work even if \$libdir does
 
20143
# not exist.
 
20144
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20145
 
 
20146
# Whether we need a single -rpath flag with a separated argument.
 
20147
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20148
 
 
20149
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20150
# resulting binary.
 
20151
hardcode_direct=$hardcode_direct_RC
 
20152
 
 
20153
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20154
# resulting binary.
 
20155
hardcode_minus_L=$hardcode_minus_L_RC
 
20156
 
 
20157
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20158
# the resulting binary.
 
20159
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20160
 
 
20161
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20162
# and all subsequent libraries and executables linked against it.
 
20163
hardcode_automatic=$hardcode_automatic_RC
 
20164
 
 
20165
# Variables whose values should be saved in libtool wrapper scripts and
 
20166
# restored at relink time.
 
20167
variables_saved_for_relink="$variables_saved_for_relink"
 
20168
 
 
20169
# Whether libtool must link a program against all its dependency libraries.
 
20170
link_all_deplibs=$link_all_deplibs_RC
 
20171
 
 
20172
# Compile-time system search path for libraries
 
20173
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20174
 
 
20175
# Run-time system search path for libraries
 
20176
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20177
 
 
20178
# Fix the shell variable \$srcfile for the compiler.
 
20179
fix_srcfile_path=$lt_fix_srcfile_path
 
20180
 
 
20181
# Set to yes if exported symbols are required.
 
20182
always_export_symbols=$always_export_symbols_RC
 
20183
 
 
20184
# The commands to list exported symbols.
 
20185
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20186
 
 
20187
# The commands to extract the exported symbol list from a shared archive.
 
20188
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20189
 
 
20190
# Symbols that should not be listed in the preloaded symbols.
 
20191
exclude_expsyms=$lt_exclude_expsyms_RC
 
20192
 
 
20193
# Symbols that must always be exported.
 
20194
include_expsyms=$lt_include_expsyms_RC
 
20195
 
 
20196
# ### END LIBTOOL TAG CONFIG: $tagname
 
20197
 
 
20198
__EOF__
 
20199
 
 
20200
 
 
20201
else
 
20202
  # If there is no Makefile yet, we rely on a make rule to execute
 
20203
  # `config.status --recheck' to rerun these tests and create the
 
20204
  # libtool script then.
 
20205
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20206
  if test -f "$ltmain_in"; then
 
20207
    test -f Makefile && make "$ltmain"
 
20208
  fi
 
20209
fi
 
20210
 
 
20211
 
 
20212
ac_ext=c
 
20213
ac_cpp='$CPP $CPPFLAGS'
 
20214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20217
 
 
20218
CC="$lt_save_CC"
 
20219
 
 
20220
        ;;
 
20221
 
 
20222
      *)
 
20223
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20224
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20225
   { (exit 1); exit 1; }; }
 
20226
        ;;
 
20227
      esac
 
20228
 
 
20229
      # Append the new tag name to the list of available tags.
 
20230
      if test -n "$tagname" ; then
 
20231
      available_tags="$available_tags $tagname"
 
20232
    fi
 
20233
    fi
 
20234
  done
 
20235
  IFS="$lt_save_ifs"
 
20236
 
 
20237
  # Now substitute the updated list of available tags.
 
20238
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20239
    mv "${ofile}T" "$ofile"
 
20240
    chmod +x "$ofile"
 
20241
  else
 
20242
    rm -f "${ofile}T"
 
20243
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20244
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20245
   { (exit 1); exit 1; }; }
 
20246
  fi
 
20247
fi
 
20248
 
 
20249
 
 
20250
 
 
20251
# This can be used to rebuild libtool when needed
 
20252
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20253
 
 
20254
# Always use our own libtool.
 
20255
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20256
 
 
20257
# Prevent multiple expansion
 
20258
 
 
20259
 
 
20260
 
 
20261
 
 
20262
 
 
20263
 
 
20264
 
 
20265
 
 
20266
 
 
20267
 
 
20268
 
 
20269
 
 
20270
 
 
20271
 
 
20272
 
 
20273
 
 
20274
 
 
20275
 
 
20276
 
 
20277
 
 
20278
ac_ext=c
 
20279
ac_cpp='$CPP $CPPFLAGS'
 
20280
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20281
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20282
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20283
if test -n "$ac_tool_prefix"; then
 
20284
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
20285
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
20286
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20287
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20288
if test "${ac_cv_prog_CC+set}" = set; then
 
20289
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20290
else
 
20291
  if test -n "$CC"; then
 
20292
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20293
else
 
20294
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20295
for as_dir in $PATH
 
20296
do
 
20297
  IFS=$as_save_IFS
 
20298
  test -z "$as_dir" && as_dir=.
 
20299
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20300
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20301
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
20302
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20303
    break 2
 
20304
  fi
 
20305
done
 
20306
done
 
20307
IFS=$as_save_IFS
 
20308
 
 
20309
fi
 
20310
fi
 
20311
CC=$ac_cv_prog_CC
 
20312
if test -n "$CC"; then
 
20313
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20314
echo "${ECHO_T}$CC" >&6; }
 
20315
else
 
20316
  { echo "$as_me:$LINENO: result: no" >&5
 
20317
echo "${ECHO_T}no" >&6; }
 
20318
fi
 
20319
 
 
20320
 
 
20321
fi
 
20322
if test -z "$ac_cv_prog_CC"; then
 
20323
  ac_ct_CC=$CC
 
20324
  # Extract the first word of "gcc", so it can be a program name with args.
 
20325
set dummy gcc; ac_word=$2
 
20326
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20327
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20328
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20330
else
 
20331
  if test -n "$ac_ct_CC"; then
 
20332
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20333
else
 
20334
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20335
for as_dir in $PATH
 
20336
do
 
20337
  IFS=$as_save_IFS
 
20338
  test -z "$as_dir" && as_dir=.
 
20339
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20340
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20341
    ac_cv_prog_ac_ct_CC="gcc"
 
20342
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20343
    break 2
 
20344
  fi
 
20345
done
 
20346
done
 
20347
IFS=$as_save_IFS
 
20348
 
 
20349
fi
 
20350
fi
 
20351
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20352
if test -n "$ac_ct_CC"; then
 
20353
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20354
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
20355
else
 
20356
  { echo "$as_me:$LINENO: result: no" >&5
 
20357
echo "${ECHO_T}no" >&6; }
 
20358
fi
 
20359
 
 
20360
  if test "x$ac_ct_CC" = x; then
 
20361
    CC=""
 
20362
  else
 
20363
    case $cross_compiling:$ac_tool_warned in
 
20364
yes:)
 
20365
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20366
whose name does not start with the host triplet.  If you think this
 
20367
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20368
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20369
whose name does not start with the host triplet.  If you think this
 
20370
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20371
ac_tool_warned=yes ;;
 
20372
esac
 
20373
    CC=$ac_ct_CC
 
20374
  fi
 
20375
else
 
20376
  CC="$ac_cv_prog_CC"
 
20377
fi
 
20378
 
 
20379
if test -z "$CC"; then
 
20380
          if test -n "$ac_tool_prefix"; then
 
20381
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
20382
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
20383
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20385
if test "${ac_cv_prog_CC+set}" = set; then
 
20386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20387
else
 
20388
  if test -n "$CC"; then
 
20389
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20390
else
 
20391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20392
for as_dir in $PATH
 
20393
do
 
20394
  IFS=$as_save_IFS
 
20395
  test -z "$as_dir" && as_dir=.
 
20396
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20397
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20398
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
20399
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20400
    break 2
 
20401
  fi
 
20402
done
 
20403
done
 
20404
IFS=$as_save_IFS
 
20405
 
 
20406
fi
 
20407
fi
 
20408
CC=$ac_cv_prog_CC
 
20409
if test -n "$CC"; then
 
20410
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20411
echo "${ECHO_T}$CC" >&6; }
 
20412
else
 
20413
  { echo "$as_me:$LINENO: result: no" >&5
 
20414
echo "${ECHO_T}no" >&6; }
 
20415
fi
 
20416
 
 
20417
 
 
20418
  fi
 
20419
fi
 
20420
if test -z "$CC"; then
 
20421
  # Extract the first word of "cc", so it can be a program name with args.
 
20422
set dummy cc; ac_word=$2
 
20423
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20424
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20425
if test "${ac_cv_prog_CC+set}" = set; then
 
20426
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20427
else
 
20428
  if test -n "$CC"; then
 
20429
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20430
else
 
20431
  ac_prog_rejected=no
 
20432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20433
for as_dir in $PATH
 
20434
do
 
20435
  IFS=$as_save_IFS
 
20436
  test -z "$as_dir" && as_dir=.
 
20437
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20439
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
20440
       ac_prog_rejected=yes
 
20441
       continue
 
20442
     fi
 
20443
    ac_cv_prog_CC="cc"
 
20444
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20445
    break 2
 
20446
  fi
 
20447
done
 
20448
done
 
20449
IFS=$as_save_IFS
 
20450
 
 
20451
if test $ac_prog_rejected = yes; then
 
20452
  # We found a bogon in the path, so make sure we never use it.
 
20453
  set dummy $ac_cv_prog_CC
 
20454
  shift
 
20455
  if test $# != 0; then
 
20456
    # We chose a different compiler from the bogus one.
 
20457
    # However, it has the same basename, so the bogon will be chosen
 
20458
    # first if we set CC to just the basename; use the full file name.
 
20459
    shift
 
20460
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
20461
  fi
 
20462
fi
 
20463
fi
 
20464
fi
 
20465
CC=$ac_cv_prog_CC
 
20466
if test -n "$CC"; then
 
20467
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20468
echo "${ECHO_T}$CC" >&6; }
 
20469
else
 
20470
  { echo "$as_me:$LINENO: result: no" >&5
 
20471
echo "${ECHO_T}no" >&6; }
 
20472
fi
 
20473
 
 
20474
 
 
20475
fi
 
20476
if test -z "$CC"; then
 
20477
  if test -n "$ac_tool_prefix"; then
 
20478
  for ac_prog in cl.exe
 
20479
  do
 
20480
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
20481
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
20482
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20484
if test "${ac_cv_prog_CC+set}" = set; then
 
20485
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20486
else
 
20487
  if test -n "$CC"; then
 
20488
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20489
else
 
20490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20491
for as_dir in $PATH
 
20492
do
 
20493
  IFS=$as_save_IFS
 
20494
  test -z "$as_dir" && as_dir=.
 
20495
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20496
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20497
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
20498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20499
    break 2
 
20500
  fi
 
20501
done
 
20502
done
 
20503
IFS=$as_save_IFS
 
20504
 
 
20505
fi
 
20506
fi
 
20507
CC=$ac_cv_prog_CC
 
20508
if test -n "$CC"; then
 
20509
  { echo "$as_me:$LINENO: result: $CC" >&5
 
20510
echo "${ECHO_T}$CC" >&6; }
 
20511
else
 
20512
  { echo "$as_me:$LINENO: result: no" >&5
 
20513
echo "${ECHO_T}no" >&6; }
 
20514
fi
 
20515
 
 
20516
 
 
20517
    test -n "$CC" && break
 
20518
  done
 
20519
fi
 
20520
if test -z "$CC"; then
 
20521
  ac_ct_CC=$CC
 
20522
  for ac_prog in cl.exe
 
20523
do
 
20524
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20525
set dummy $ac_prog; ac_word=$2
 
20526
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20527
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20528
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20529
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20530
else
 
20531
  if test -n "$ac_ct_CC"; then
 
20532
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20533
else
 
20534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20535
for as_dir in $PATH
 
20536
do
 
20537
  IFS=$as_save_IFS
 
20538
  test -z "$as_dir" && as_dir=.
 
20539
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20541
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
20542
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20543
    break 2
 
20544
  fi
 
20545
done
 
20546
done
 
20547
IFS=$as_save_IFS
 
20548
 
 
20549
fi
 
20550
fi
 
20551
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20552
if test -n "$ac_ct_CC"; then
 
20553
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20554
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
20555
else
 
20556
  { echo "$as_me:$LINENO: result: no" >&5
 
20557
echo "${ECHO_T}no" >&6; }
 
20558
fi
 
20559
 
 
20560
 
 
20561
  test -n "$ac_ct_CC" && break
 
20562
done
 
20563
 
 
20564
  if test "x$ac_ct_CC" = x; then
 
20565
    CC=""
 
20566
  else
 
20567
    case $cross_compiling:$ac_tool_warned in
 
20568
yes:)
 
20569
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20570
whose name does not start with the host triplet.  If you think this
 
20571
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20572
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20573
whose name does not start with the host triplet.  If you think this
 
20574
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20575
ac_tool_warned=yes ;;
 
20576
esac
 
20577
    CC=$ac_ct_CC
 
20578
  fi
 
20579
fi
 
20580
 
 
20581
fi
 
20582
 
 
20583
 
 
20584
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
20585
See \`config.log' for more details." >&5
 
20586
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
20587
See \`config.log' for more details." >&2;}
 
20588
   { (exit 1); exit 1; }; }
 
20589
 
 
20590
# Provide some information about the compiler.
 
20591
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
20592
ac_compiler=`set X $ac_compile; echo $2`
 
20593
{ (ac_try="$ac_compiler --version >&5"
 
20594
case "(($ac_try" in
 
20595
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20596
  *) ac_try_echo=$ac_try;;
 
20597
esac
 
20598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20599
  (eval "$ac_compiler --version >&5") 2>&5
 
20600
  ac_status=$?
 
20601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20602
  (exit $ac_status); }
 
20603
{ (ac_try="$ac_compiler -v >&5"
 
20604
case "(($ac_try" in
 
20605
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20606
  *) ac_try_echo=$ac_try;;
 
20607
esac
 
20608
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20609
  (eval "$ac_compiler -v >&5") 2>&5
 
20610
  ac_status=$?
 
20611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20612
  (exit $ac_status); }
 
20613
{ (ac_try="$ac_compiler -V >&5"
 
20614
case "(($ac_try" in
 
20615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20616
  *) ac_try_echo=$ac_try;;
 
20617
esac
 
20618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20619
  (eval "$ac_compiler -V >&5") 2>&5
 
20620
  ac_status=$?
 
20621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20622
  (exit $ac_status); }
 
20623
 
 
20624
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
20625
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
20626
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
20627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20628
else
 
20629
  cat >conftest.$ac_ext <<_ACEOF
 
20630
/* confdefs.h.  */
 
20631
_ACEOF
 
20632
cat confdefs.h >>conftest.$ac_ext
 
20633
cat >>conftest.$ac_ext <<_ACEOF
 
20634
/* end confdefs.h.  */
 
20635
 
 
20636
int
 
20637
main ()
 
20638
{
 
20639
#ifndef __GNUC__
 
20640
       choke me
 
20641
#endif
 
20642
 
 
20643
  ;
 
20644
  return 0;
 
20645
}
 
20646
_ACEOF
 
20647
rm -f conftest.$ac_objext
 
20648
if { (ac_try="$ac_compile"
 
20649
case "(($ac_try" in
 
20650
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20651
  *) ac_try_echo=$ac_try;;
 
20652
esac
 
20653
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20654
  (eval "$ac_compile") 2>conftest.er1
 
20655
  ac_status=$?
 
20656
  grep -v '^ *+' conftest.er1 >conftest.err
 
20657
  rm -f conftest.er1
 
20658
  cat conftest.err >&5
 
20659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20660
  (exit $ac_status); } && {
 
20661
         test -z "$ac_c_werror_flag" ||
 
20662
         test ! -s conftest.err
 
20663
       } && test -s conftest.$ac_objext; then
 
20664
  ac_compiler_gnu=yes
 
20665
else
 
20666
  echo "$as_me: failed program was:" >&5
 
20667
sed 's/^/| /' conftest.$ac_ext >&5
 
20668
 
 
20669
        ac_compiler_gnu=no
 
20670
fi
 
20671
 
 
20672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20673
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
20674
 
 
20675
fi
 
20676
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
20677
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
20678
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
20679
ac_test_CFLAGS=${CFLAGS+set}
 
20680
ac_save_CFLAGS=$CFLAGS
 
20681
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
20682
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
20683
if test "${ac_cv_prog_cc_g+set}" = set; then
 
20684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20685
else
 
20686
  ac_save_c_werror_flag=$ac_c_werror_flag
 
20687
   ac_c_werror_flag=yes
 
20688
   ac_cv_prog_cc_g=no
 
20689
   CFLAGS="-g"
 
20690
   cat >conftest.$ac_ext <<_ACEOF
 
20691
/* confdefs.h.  */
 
20692
_ACEOF
 
20693
cat confdefs.h >>conftest.$ac_ext
 
20694
cat >>conftest.$ac_ext <<_ACEOF
 
20695
/* end confdefs.h.  */
 
20696
 
 
20697
int
 
20698
main ()
 
20699
{
 
20700
 
 
20701
  ;
 
20702
  return 0;
 
20703
}
 
20704
_ACEOF
 
20705
rm -f conftest.$ac_objext
 
20706
if { (ac_try="$ac_compile"
 
20707
case "(($ac_try" in
 
20708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20709
  *) ac_try_echo=$ac_try;;
 
20710
esac
 
20711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20712
  (eval "$ac_compile") 2>conftest.er1
 
20713
  ac_status=$?
 
20714
  grep -v '^ *+' conftest.er1 >conftest.err
 
20715
  rm -f conftest.er1
 
20716
  cat conftest.err >&5
 
20717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20718
  (exit $ac_status); } && {
 
20719
         test -z "$ac_c_werror_flag" ||
 
20720
         test ! -s conftest.err
 
20721
       } && test -s conftest.$ac_objext; then
 
20722
  ac_cv_prog_cc_g=yes
 
20723
else
 
20724
  echo "$as_me: failed program was:" >&5
 
20725
sed 's/^/| /' conftest.$ac_ext >&5
 
20726
 
 
20727
        CFLAGS=""
 
20728
      cat >conftest.$ac_ext <<_ACEOF
 
20729
/* confdefs.h.  */
 
20730
_ACEOF
 
20731
cat confdefs.h >>conftest.$ac_ext
 
20732
cat >>conftest.$ac_ext <<_ACEOF
 
20733
/* end confdefs.h.  */
 
20734
 
 
20735
int
 
20736
main ()
 
20737
{
 
20738
 
 
20739
  ;
 
20740
  return 0;
 
20741
}
 
20742
_ACEOF
 
20743
rm -f conftest.$ac_objext
 
20744
if { (ac_try="$ac_compile"
 
20745
case "(($ac_try" in
 
20746
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20747
  *) ac_try_echo=$ac_try;;
 
20748
esac
 
20749
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20750
  (eval "$ac_compile") 2>conftest.er1
 
20751
  ac_status=$?
 
20752
  grep -v '^ *+' conftest.er1 >conftest.err
 
20753
  rm -f conftest.er1
 
20754
  cat conftest.err >&5
 
20755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20756
  (exit $ac_status); } && {
 
20757
         test -z "$ac_c_werror_flag" ||
 
20758
         test ! -s conftest.err
 
20759
       } && test -s conftest.$ac_objext; then
 
20760
  :
 
20761
else
 
20762
  echo "$as_me: failed program was:" >&5
 
20763
sed 's/^/| /' conftest.$ac_ext >&5
 
20764
 
 
20765
        ac_c_werror_flag=$ac_save_c_werror_flag
 
20766
         CFLAGS="-g"
 
20767
         cat >conftest.$ac_ext <<_ACEOF
 
20768
/* confdefs.h.  */
 
20769
_ACEOF
 
20770
cat confdefs.h >>conftest.$ac_ext
 
20771
cat >>conftest.$ac_ext <<_ACEOF
 
20772
/* end confdefs.h.  */
 
20773
 
 
20774
int
 
20775
main ()
 
20776
{
 
20777
 
 
20778
  ;
 
20779
  return 0;
 
20780
}
 
20781
_ACEOF
 
20782
rm -f conftest.$ac_objext
 
20783
if { (ac_try="$ac_compile"
 
20784
case "(($ac_try" in
 
20785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20786
  *) ac_try_echo=$ac_try;;
 
20787
esac
 
20788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20789
  (eval "$ac_compile") 2>conftest.er1
 
20790
  ac_status=$?
 
20791
  grep -v '^ *+' conftest.er1 >conftest.err
 
20792
  rm -f conftest.er1
 
20793
  cat conftest.err >&5
 
20794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20795
  (exit $ac_status); } && {
 
20796
         test -z "$ac_c_werror_flag" ||
 
20797
         test ! -s conftest.err
 
20798
       } && test -s conftest.$ac_objext; then
 
20799
  ac_cv_prog_cc_g=yes
 
20800
else
 
20801
  echo "$as_me: failed program was:" >&5
 
20802
sed 's/^/| /' conftest.$ac_ext >&5
 
20803
 
 
20804
 
 
20805
fi
 
20806
 
 
20807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20808
fi
 
20809
 
 
20810
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20811
fi
 
20812
 
 
20813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20814
   ac_c_werror_flag=$ac_save_c_werror_flag
 
20815
fi
 
20816
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
20817
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
20818
if test "$ac_test_CFLAGS" = set; then
 
20819
  CFLAGS=$ac_save_CFLAGS
 
20820
elif test $ac_cv_prog_cc_g = yes; then
 
20821
  if test "$GCC" = yes; then
 
20822
    CFLAGS="-g -O2"
 
20823
  else
 
20824
    CFLAGS="-g"
 
20825
  fi
 
20826
else
 
20827
  if test "$GCC" = yes; then
 
20828
    CFLAGS="-O2"
 
20829
  else
 
20830
    CFLAGS=
 
20831
  fi
 
20832
fi
 
20833
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
20834
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
20835
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
20836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20837
else
 
20838
  ac_cv_prog_cc_c89=no
 
20839
ac_save_CC=$CC
 
20840
cat >conftest.$ac_ext <<_ACEOF
 
20841
/* confdefs.h.  */
 
20842
_ACEOF
 
20843
cat confdefs.h >>conftest.$ac_ext
 
20844
cat >>conftest.$ac_ext <<_ACEOF
 
20845
/* end confdefs.h.  */
 
20846
#include <stdarg.h>
 
20847
#include <stdio.h>
 
20848
#include <sys/types.h>
 
20849
#include <sys/stat.h>
 
20850
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
20851
struct buf { int x; };
 
20852
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
20853
static char *e (p, i)
 
20854
     char **p;
 
20855
     int i;
 
20856
{
 
20857
  return p[i];
 
20858
}
 
20859
static char *f (char * (*g) (char **, int), char **p, ...)
 
20860
{
 
20861
  char *s;
 
20862
  va_list v;
 
20863
  va_start (v,p);
 
20864
  s = g (p, va_arg (v,int));
 
20865
  va_end (v);
 
20866
  return s;
 
20867
}
 
20868
 
 
20869
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
20870
   function prototypes and stuff, but not '\xHH' hex character constants.
 
20871
   These don't provoke an error unfortunately, instead are silently treated
 
20872
   as 'x'.  The following induces an error, until -std is added to get
 
20873
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
20874
   array size at least.  It's necessary to write '\x00'==0 to get something
 
20875
   that's true only with -std.  */
 
20876
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
20877
 
 
20878
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
20879
   inside strings and character constants.  */
 
20880
#define FOO(x) 'x'
 
20881
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
20882
 
 
20883
int test (int i, double x);
 
20884
struct s1 {int (*f) (int a);};
 
20885
struct s2 {int (*f) (double a);};
 
20886
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
20887
int argc;
 
20888
char **argv;
 
20889
int
 
20890
main ()
 
20891
{
 
20892
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
20893
  ;
 
20894
  return 0;
 
20895
}
 
20896
_ACEOF
 
20897
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
20898
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
20899
do
 
20900
  CC="$ac_save_CC $ac_arg"
 
20901
  rm -f conftest.$ac_objext
 
20902
if { (ac_try="$ac_compile"
 
20903
case "(($ac_try" in
 
20904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20905
  *) ac_try_echo=$ac_try;;
 
20906
esac
 
20907
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20908
  (eval "$ac_compile") 2>conftest.er1
 
20909
  ac_status=$?
 
20910
  grep -v '^ *+' conftest.er1 >conftest.err
 
20911
  rm -f conftest.er1
 
20912
  cat conftest.err >&5
 
20913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20914
  (exit $ac_status); } && {
 
20915
         test -z "$ac_c_werror_flag" ||
 
20916
         test ! -s conftest.err
 
20917
       } && test -s conftest.$ac_objext; then
 
20918
  ac_cv_prog_cc_c89=$ac_arg
 
20919
else
 
20920
  echo "$as_me: failed program was:" >&5
 
20921
sed 's/^/| /' conftest.$ac_ext >&5
 
20922
 
 
20923
 
 
20924
fi
 
20925
 
 
20926
rm -f core conftest.err conftest.$ac_objext
 
20927
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
20928
done
 
20929
rm -f conftest.$ac_ext
 
20930
CC=$ac_save_CC
 
20931
 
 
20932
fi
 
20933
# AC_CACHE_VAL
 
20934
case "x$ac_cv_prog_cc_c89" in
 
20935
  x)
 
20936
    { echo "$as_me:$LINENO: result: none needed" >&5
 
20937
echo "${ECHO_T}none needed" >&6; } ;;
 
20938
  xno)
 
20939
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
20940
echo "${ECHO_T}unsupported" >&6; } ;;
 
20941
  *)
 
20942
    CC="$CC $ac_cv_prog_cc_c89"
 
20943
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
20944
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
20945
esac
 
20946
 
 
20947
 
 
20948
ac_ext=c
 
20949
ac_cpp='$CPP $CPPFLAGS'
 
20950
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20951
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20952
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20953
 
 
20954
depcc="$CC"   am_compiler_list=
 
20955
 
 
20956
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
20957
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
20958
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
20959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20960
else
 
20961
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
20962
  # We make a subdir and do the tests there.  Otherwise we can end up
 
20963
  # making bogus files that we don't know about and never remove.  For
 
20964
  # instance it was reported that on HP-UX the gcc test will end up
 
20965
  # making a dummy file named `D' -- because `-MD' means `put the output
 
20966
  # in D'.
 
20967
  mkdir conftest.dir
 
20968
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
20969
  # using a relative directory.
 
20970
  cp "$am_depcomp" conftest.dir
 
20971
  cd conftest.dir
 
20972
  # We will build objects and dependencies in a subdirectory because
 
20973
  # it helps to detect inapplicable dependency modes.  For instance
 
20974
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
20975
  # side effect of compilation, but ICC will put the dependencies in
 
20976
  # the current directory while Tru64 will put them in the object
 
20977
  # directory.
 
20978
  mkdir sub
 
20979
 
 
20980
  am_cv_CC_dependencies_compiler_type=none
 
20981
  if test "$am_compiler_list" = ""; then
 
20982
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
20983
  fi
 
20984
  for depmode in $am_compiler_list; do
 
20985
    # Setup a source with many dependencies, because some compilers
 
20986
    # like to wrap large dependency lists on column 80 (with \), and
 
20987
    # we should not choose a depcomp mode which is confused by this.
 
20988
    #
 
20989
    # We need to recreate these files for each test, as the compiler may
 
20990
    # overwrite some of them when testing with obscure command lines.
 
20991
    # This happens at least with the AIX C compiler.
 
20992
    : > sub/conftest.c
 
20993
    for i in 1 2 3 4 5 6; do
 
20994
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
20995
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
20996
      # Solaris 8's {/usr,}/bin/sh.
 
20997
      touch sub/conftst$i.h
 
20998
    done
 
20999
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
21000
 
 
21001
    case $depmode in
 
21002
    nosideeffect)
 
21003
      # after this tag, mechanisms are not by side-effect, so they'll
 
21004
      # only be used when explicitly requested
 
21005
      if test "x$enable_dependency_tracking" = xyes; then
 
21006
        continue
 
21007
      else
 
21008
        break
 
21009
      fi
 
21010
      ;;
 
21011
    none) break ;;
 
21012
    esac
 
21013
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
21014
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
21015
    # handle `-M -o', and we need to detect this.
 
21016
    if depmode=$depmode \
 
21017
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
21018
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
21019
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
21020
         >/dev/null 2>conftest.err &&
 
21021
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
21022
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
21023
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
21024
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
21025
      # icc doesn't choke on unknown options, it will just issue warnings
 
21026
      # or remarks (even with -Werror).  So we grep stderr for any message
 
21027
      # that says an option was ignored or not supported.
 
21028
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
21029
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
21030
      # The diagnosis changed in icc 8.0:
 
21031
      #   icc: Command line remark: option '-MP' not supported
 
21032
      if (grep 'ignoring option' conftest.err ||
 
21033
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
21034
        am_cv_CC_dependencies_compiler_type=$depmode
 
21035
        break
 
21036
      fi
 
21037
    fi
 
21038
  done
 
21039
 
 
21040
  cd ..
 
21041
  rm -rf conftest.dir
 
21042
else
 
21043
  am_cv_CC_dependencies_compiler_type=none
 
21044
fi
 
21045
 
 
21046
fi
 
21047
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
21048
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
21049
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
21050
 
 
21051
 if
 
21052
  test "x$enable_dependency_tracking" != xno \
 
21053
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
21054
  am__fastdepCC_TRUE=
 
21055
  am__fastdepCC_FALSE='#'
 
21056
else
 
21057
  am__fastdepCC_TRUE='#'
 
21058
  am__fastdepCC_FALSE=
 
21059
fi
 
21060
 
 
21061
 
 
21062
 
 
21063
# Extract the first word of "xsltproc", so it can be a program name with args.
 
21064
set dummy xsltproc; ac_word=$2
 
21065
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21066
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21067
if test "${ac_cv_path_XSLTPROC+set}" = set; then
 
21068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21069
else
 
21070
  case $XSLTPROC in
 
21071
  [\\/]* | ?:[\\/]*)
 
21072
  ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
 
21073
  ;;
 
21074
  *)
 
21075
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21076
for as_dir in $PATH
 
21077
do
 
21078
  IFS=$as_save_IFS
 
21079
  test -z "$as_dir" && as_dir=.
 
21080
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21081
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21082
    ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
 
21083
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21084
    break 2
 
21085
  fi
 
21086
done
 
21087
done
 
21088
IFS=$as_save_IFS
 
21089
 
 
21090
  test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
 
21091
  ;;
 
21092
esac
 
21093
fi
 
21094
XSLTPROC=$ac_cv_path_XSLTPROC
 
21095
if test -n "$XSLTPROC"; then
 
21096
  { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
 
21097
echo "${ECHO_T}$XSLTPROC" >&6; }
 
21098
else
 
21099
  { echo "$as_me:$LINENO: result: no" >&5
 
21100
echo "${ECHO_T}no" >&6; }
 
21101
fi
 
21102
 
 
21103
 
 
21104
if test "$XSLTPROC" = "no"; then
 
21105
   { { echo "$as_me:$LINENO: error: XCB requires xsltproc." >&5
 
21106
echo "$as_me: error: XCB requires xsltproc." >&2;}
 
21107
   { (exit 1); exit 1; }; }
 
21108
fi
 
21109
 
 
21110
HTML_CHECK_RESULT=false
 
21111
if test x"$HAVE_CHECK" = xyes; then
 
21112
        if test x"$XSLTPROC" != xno; then
 
21113
                HTML_CHECK_RESULT=true
 
21114
        fi
 
21115
fi
 
21116
 
 
21117
 
 
21118
# Checks for pkg-config packages
 
21119
 
 
21120
pkg_failed=no
 
21121
{ echo "$as_me:$LINENO: checking for XCBPROTO" >&5
 
21122
echo $ECHO_N "checking for XCBPROTO... $ECHO_C" >&6; }
 
21123
 
 
21124
if test -n "$PKG_CONFIG"; then
 
21125
    if test -n "$XCBPROTO_CFLAGS"; then
 
21126
        pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS"
 
21127
    else
 
21128
        if test -n "$PKG_CONFIG" && \
 
21129
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.1\"") >&5
 
21130
  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.1") 2>&5
 
21131
  ac_status=$?
 
21132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21133
  (exit $ac_status); }; then
 
21134
  pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.1" 2>/dev/null`
 
21135
else
 
21136
  pkg_failed=yes
 
21137
fi
 
21138
    fi
 
21139
else
 
21140
        pkg_failed=untried
 
21141
fi
 
21142
if test -n "$PKG_CONFIG"; then
 
21143
    if test -n "$XCBPROTO_LIBS"; then
 
21144
        pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS"
 
21145
    else
 
21146
        if test -n "$PKG_CONFIG" && \
 
21147
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.1\"") >&5
 
21148
  ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.1") 2>&5
 
21149
  ac_status=$?
 
21150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21151
  (exit $ac_status); }; then
 
21152
  pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.1" 2>/dev/null`
 
21153
else
 
21154
  pkg_failed=yes
 
21155
fi
 
21156
    fi
 
21157
else
 
21158
        pkg_failed=untried
 
21159
fi
 
21160
 
 
21161
 
 
21162
 
 
21163
if test $pkg_failed = yes; then
 
21164
 
 
21165
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21166
        _pkg_short_errors_supported=yes
 
21167
else
 
21168
        _pkg_short_errors_supported=no
 
21169
fi
 
21170
        if test $_pkg_short_errors_supported = yes; then
 
21171
                XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xcb-proto >= 1.1"`
 
21172
        else
 
21173
                XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xcb-proto >= 1.1"`
 
21174
        fi
 
21175
        # Put the nasty error message in config.log where it belongs
 
21176
        echo "$XCBPROTO_PKG_ERRORS" >&5
 
21177
 
 
21178
        { { echo "$as_me:$LINENO: error: Package requirements (xcb-proto >= 1.1) were not met:
 
21179
 
 
21180
$XCBPROTO_PKG_ERRORS
 
21181
 
 
21182
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21183
installed software in a non-standard prefix.
 
21184
 
 
21185
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
 
21186
and XCBPROTO_LIBS to avoid the need to call pkg-config.
 
21187
See the pkg-config man page for more details.
 
21188
" >&5
 
21189
echo "$as_me: error: Package requirements (xcb-proto >= 1.1) were not met:
 
21190
 
 
21191
$XCBPROTO_PKG_ERRORS
 
21192
 
 
21193
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21194
installed software in a non-standard prefix.
 
21195
 
 
21196
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
 
21197
and XCBPROTO_LIBS to avoid the need to call pkg-config.
 
21198
See the pkg-config man page for more details.
 
21199
" >&2;}
 
21200
   { (exit 1); exit 1; }; }
 
21201
elif test $pkg_failed = untried; then
 
21202
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21203
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21204
path to pkg-config.
 
21205
 
 
21206
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
 
21207
and XCBPROTO_LIBS to avoid the need to call pkg-config.
 
21208
See the pkg-config man page for more details.
 
21209
 
 
21210
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21211
See \`config.log' for more details." >&5
 
21212
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21213
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21214
path to pkg-config.
 
21215
 
 
21216
Alternatively, you may set the environment variables XCBPROTO_CFLAGS
 
21217
and XCBPROTO_LIBS to avoid the need to call pkg-config.
 
21218
See the pkg-config man page for more details.
 
21219
 
 
21220
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21221
See \`config.log' for more details." >&2;}
 
21222
   { (exit 1); exit 1; }; }
 
21223
else
 
21224
        XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS
 
21225
        XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS
 
21226
        { echo "$as_me:$LINENO: result: yes" >&5
 
21227
echo "${ECHO_T}yes" >&6; }
 
21228
        :
 
21229
fi
 
21230
NEEDED="pthread-stubs xau >= 0.99.2"
 
21231
 
 
21232
pkg_failed=no
 
21233
{ echo "$as_me:$LINENO: checking for NEEDED" >&5
 
21234
echo $ECHO_N "checking for NEEDED... $ECHO_C" >&6; }
 
21235
 
 
21236
if test -n "$PKG_CONFIG"; then
 
21237
    if test -n "$NEEDED_CFLAGS"; then
 
21238
        pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS"
 
21239
    else
 
21240
        if test -n "$PKG_CONFIG" && \
 
21241
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\"") >&5
 
21242
  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
 
21243
  ac_status=$?
 
21244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21245
  (exit $ac_status); }; then
 
21246
  pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null`
 
21247
else
 
21248
  pkg_failed=yes
 
21249
fi
 
21250
    fi
 
21251
else
 
21252
        pkg_failed=untried
 
21253
fi
 
21254
if test -n "$PKG_CONFIG"; then
 
21255
    if test -n "$NEEDED_LIBS"; then
 
21256
        pkg_cv_NEEDED_LIBS="$NEEDED_LIBS"
 
21257
    else
 
21258
        if test -n "$PKG_CONFIG" && \
 
21259
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\"") >&5
 
21260
  ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5
 
21261
  ac_status=$?
 
21262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21263
  (exit $ac_status); }; then
 
21264
  pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null`
 
21265
else
 
21266
  pkg_failed=yes
 
21267
fi
 
21268
    fi
 
21269
else
 
21270
        pkg_failed=untried
 
21271
fi
 
21272
 
 
21273
 
 
21274
 
 
21275
if test $pkg_failed = yes; then
 
21276
 
 
21277
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21278
        _pkg_short_errors_supported=yes
 
21279
else
 
21280
        _pkg_short_errors_supported=no
 
21281
fi
 
21282
        if test $_pkg_short_errors_supported = yes; then
 
21283
                NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$NEEDED"`
 
21284
        else
 
21285
                NEEDED_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$NEEDED"`
 
21286
        fi
 
21287
        # Put the nasty error message in config.log where it belongs
 
21288
        echo "$NEEDED_PKG_ERRORS" >&5
 
21289
 
 
21290
        { { echo "$as_me:$LINENO: error: Package requirements ($NEEDED) were not met:
 
21291
 
 
21292
$NEEDED_PKG_ERRORS
 
21293
 
 
21294
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21295
installed software in a non-standard prefix.
 
21296
 
 
21297
Alternatively, you may set the environment variables NEEDED_CFLAGS
 
21298
and NEEDED_LIBS to avoid the need to call pkg-config.
 
21299
See the pkg-config man page for more details.
 
21300
" >&5
 
21301
echo "$as_me: error: Package requirements ($NEEDED) were not met:
 
21302
 
 
21303
$NEEDED_PKG_ERRORS
 
21304
 
 
21305
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21306
installed software in a non-standard prefix.
 
21307
 
 
21308
Alternatively, you may set the environment variables NEEDED_CFLAGS
 
21309
and NEEDED_LIBS to avoid the need to call pkg-config.
 
21310
See the pkg-config man page for more details.
 
21311
" >&2;}
 
21312
   { (exit 1); exit 1; }; }
 
21313
elif test $pkg_failed = untried; then
 
21314
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21315
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21316
path to pkg-config.
 
21317
 
 
21318
Alternatively, you may set the environment variables NEEDED_CFLAGS
 
21319
and NEEDED_LIBS to avoid the need to call pkg-config.
 
21320
See the pkg-config man page for more details.
 
21321
 
 
21322
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21323
See \`config.log' for more details." >&5
 
21324
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21325
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21326
path to pkg-config.
 
21327
 
 
21328
Alternatively, you may set the environment variables NEEDED_CFLAGS
 
21329
and NEEDED_LIBS to avoid the need to call pkg-config.
 
21330
See the pkg-config man page for more details.
 
21331
 
 
21332
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21333
See \`config.log' for more details." >&2;}
 
21334
   { (exit 1); exit 1; }; }
 
21335
else
 
21336
        NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS
 
21337
        NEEDED_LIBS=$pkg_cv_NEEDED_LIBS
 
21338
        { echo "$as_me:$LINENO: result: yes" >&5
 
21339
echo "${ECHO_T}yes" >&6; }
 
21340
        :
 
21341
fi
 
21342
 
 
21343
have_xdmcp="no"
 
21344
 
 
21345
pkg_failed=no
 
21346
{ echo "$as_me:$LINENO: checking for XDMCP" >&5
 
21347
echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6; }
 
21348
 
 
21349
if test -n "$PKG_CONFIG"; then
 
21350
    if test -n "$XDMCP_CFLAGS"; then
 
21351
        pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS"
 
21352
    else
 
21353
        if test -n "$PKG_CONFIG" && \
 
21354
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
 
21355
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
 
21356
  ac_status=$?
 
21357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21358
  (exit $ac_status); }; then
 
21359
  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null`
 
21360
else
 
21361
  pkg_failed=yes
 
21362
fi
 
21363
    fi
 
21364
else
 
21365
        pkg_failed=untried
 
21366
fi
 
21367
if test -n "$PKG_CONFIG"; then
 
21368
    if test -n "$XDMCP_LIBS"; then
 
21369
        pkg_cv_XDMCP_LIBS="$XDMCP_LIBS"
 
21370
    else
 
21371
        if test -n "$PKG_CONFIG" && \
 
21372
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xdmcp\"") >&5
 
21373
  ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5
 
21374
  ac_status=$?
 
21375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21376
  (exit $ac_status); }; then
 
21377
  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null`
 
21378
else
 
21379
  pkg_failed=yes
 
21380
fi
 
21381
    fi
 
21382
else
 
21383
        pkg_failed=untried
 
21384
fi
 
21385
 
 
21386
 
 
21387
 
 
21388
if test $pkg_failed = yes; then
 
21389
 
 
21390
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21391
        _pkg_short_errors_supported=yes
 
21392
else
 
21393
        _pkg_short_errors_supported=no
 
21394
fi
 
21395
        if test $_pkg_short_errors_supported = yes; then
 
21396
                XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xdmcp"`
 
21397
        else
 
21398
                XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xdmcp"`
 
21399
        fi
 
21400
        # Put the nasty error message in config.log where it belongs
 
21401
        echo "$XDMCP_PKG_ERRORS" >&5
 
21402
 
 
21403
        { echo "$as_me:$LINENO: result: no" >&5
 
21404
echo "${ECHO_T}no" >&6; }
 
21405
                { echo "$as_me:$LINENO: result: no" >&5
 
21406
echo "${ECHO_T}no" >&6; }
 
21407
elif test $pkg_failed = untried; then
 
21408
        { echo "$as_me:$LINENO: result: no" >&5
 
21409
echo "${ECHO_T}no" >&6; }
 
21410
else
 
21411
        XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
 
21412
        XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
 
21413
        { echo "$as_me:$LINENO: result: yes" >&5
 
21414
echo "${ECHO_T}yes" >&6; }
 
21415
        { echo "$as_me:$LINENO: checking for XdmcpWrap in -lXdmcp" >&5
 
21416
echo $ECHO_N "checking for XdmcpWrap in -lXdmcp... $ECHO_C" >&6; }
 
21417
if test "${ac_cv_lib_Xdmcp_XdmcpWrap+set}" = set; then
 
21418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21419
else
 
21420
  ac_check_lib_save_LIBS=$LIBS
 
21421
LIBS="-lXdmcp $XDMCP_LIBS $LIBS"
 
21422
cat >conftest.$ac_ext <<_ACEOF
 
21423
/* confdefs.h.  */
 
21424
_ACEOF
 
21425
cat confdefs.h >>conftest.$ac_ext
 
21426
cat >>conftest.$ac_ext <<_ACEOF
 
21427
/* end confdefs.h.  */
 
21428
 
 
21429
/* Override any GCC internal prototype to avoid an error.
 
21430
   Use char because int might match the return type of a GCC
 
21431
   builtin and then its argument prototype would still apply.  */
 
21432
#ifdef __cplusplus
 
21433
extern "C"
 
21434
#endif
 
21435
char XdmcpWrap ();
 
21436
int
 
21437
main ()
 
21438
{
 
21439
return XdmcpWrap ();
 
21440
  ;
 
21441
  return 0;
 
21442
}
 
21443
_ACEOF
 
21444
rm -f conftest.$ac_objext conftest$ac_exeext
 
21445
if { (ac_try="$ac_link"
 
21446
case "(($ac_try" in
 
21447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21448
  *) ac_try_echo=$ac_try;;
 
21449
esac
 
21450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21451
  (eval "$ac_link") 2>conftest.er1
 
21452
  ac_status=$?
 
21453
  grep -v '^ *+' conftest.er1 >conftest.err
 
21454
  rm -f conftest.er1
 
21455
  cat conftest.err >&5
 
21456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21457
  (exit $ac_status); } && {
 
21458
         test -z "$ac_c_werror_flag" ||
 
21459
         test ! -s conftest.err
 
21460
       } && test -s conftest$ac_exeext &&
 
21461
       $as_test_x conftest$ac_exeext; then
 
21462
  ac_cv_lib_Xdmcp_XdmcpWrap=yes
 
21463
else
 
21464
  echo "$as_me: failed program was:" >&5
 
21465
sed 's/^/| /' conftest.$ac_ext >&5
 
21466
 
 
21467
        ac_cv_lib_Xdmcp_XdmcpWrap=no
 
21468
fi
 
21469
 
 
21470
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21471
      conftest$ac_exeext conftest.$ac_ext
 
21472
LIBS=$ac_check_lib_save_LIBS
 
21473
fi
 
21474
{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5
 
21475
echo "${ECHO_T}$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; }
 
21476
if test $ac_cv_lib_Xdmcp_XdmcpWrap = yes; then
 
21477
 
 
21478
 
 
21479
cat >>confdefs.h <<\_ACEOF
 
21480
#define HASXDMAUTH 1
 
21481
_ACEOF
 
21482
 
 
21483
                NEEDED="$NEEDED xdmcp"
 
21484
                have_xdmcp="yes"
 
21485
 
 
21486
else
 
21487
 
 
21488
                XDMCP_CFLAGS=
 
21489
                XDMCP_LIBS=
 
21490
 
 
21491
fi
 
21492
 
 
21493
fi
 
21494
 
 
21495
 
 
21496
 
 
21497
# Find the xcb-proto protocol descriptions
 
21498
{ echo "$as_me:$LINENO: checking XCBPROTO_XCBINCLUDEDIR" >&5
 
21499
echo $ECHO_N "checking XCBPROTO_XCBINCLUDEDIR... $ECHO_C" >&6; }
 
21500
XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto`
 
21501
{ echo "$as_me:$LINENO: result: $XCBPROTO_XCBINCLUDEDIR" >&5
 
21502
echo "${ECHO_T}$XCBPROTO_XCBINCLUDEDIR" >&6; }
 
21503
 
 
21504
 
 
21505
# Find the xcbgen Python package
 
21506
{ echo "$as_me:$LINENO: checking XCBPROTO_XCBPYTHONDIR" >&5
 
21507
echo $ECHO_N "checking XCBPROTO_XCBPYTHONDIR... $ECHO_C" >&6; }
 
21508
XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto`
 
21509
{ echo "$as_me:$LINENO: result: $XCBPROTO_XCBPYTHONDIR" >&5
 
21510
echo "${ECHO_T}$XCBPROTO_XCBPYTHONDIR" >&6; }
 
21511
 
 
21512
 
 
21513
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
21514
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
21515
if test "${ac_cv_header_stdc+set}" = set; then
 
21516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21517
else
 
21518
  cat >conftest.$ac_ext <<_ACEOF
 
21519
/* confdefs.h.  */
 
21520
_ACEOF
 
21521
cat confdefs.h >>conftest.$ac_ext
 
21522
cat >>conftest.$ac_ext <<_ACEOF
 
21523
/* end confdefs.h.  */
 
21524
#include <stdlib.h>
 
21525
#include <stdarg.h>
 
21526
#include <string.h>
 
21527
#include <float.h>
 
21528
 
 
21529
int
 
21530
main ()
 
21531
{
 
21532
 
 
21533
  ;
 
21534
  return 0;
 
21535
}
 
21536
_ACEOF
 
21537
rm -f conftest.$ac_objext
 
21538
if { (ac_try="$ac_compile"
 
21539
case "(($ac_try" in
 
21540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21541
  *) ac_try_echo=$ac_try;;
 
21542
esac
 
21543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21544
  (eval "$ac_compile") 2>conftest.er1
 
21545
  ac_status=$?
 
21546
  grep -v '^ *+' conftest.er1 >conftest.err
 
21547
  rm -f conftest.er1
 
21548
  cat conftest.err >&5
 
21549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21550
  (exit $ac_status); } && {
 
21551
         test -z "$ac_c_werror_flag" ||
 
21552
         test ! -s conftest.err
 
21553
       } && test -s conftest.$ac_objext; then
 
21554
  ac_cv_header_stdc=yes
 
21555
else
 
21556
  echo "$as_me: failed program was:" >&5
 
21557
sed 's/^/| /' conftest.$ac_ext >&5
 
21558
 
 
21559
        ac_cv_header_stdc=no
 
21560
fi
 
21561
 
 
21562
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21563
 
 
21564
if test $ac_cv_header_stdc = yes; then
 
21565
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
21566
  cat >conftest.$ac_ext <<_ACEOF
 
21567
/* confdefs.h.  */
 
21568
_ACEOF
 
21569
cat confdefs.h >>conftest.$ac_ext
 
21570
cat >>conftest.$ac_ext <<_ACEOF
 
21571
/* end confdefs.h.  */
 
21572
#include <string.h>
 
21573
 
 
21574
_ACEOF
 
21575
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21576
  $EGREP "memchr" >/dev/null 2>&1; then
 
21577
  :
 
21578
else
 
21579
  ac_cv_header_stdc=no
 
21580
fi
 
21581
rm -f conftest*
 
21582
 
 
21583
fi
 
21584
 
 
21585
if test $ac_cv_header_stdc = yes; then
 
21586
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
21587
  cat >conftest.$ac_ext <<_ACEOF
 
21588
/* confdefs.h.  */
 
21589
_ACEOF
 
21590
cat confdefs.h >>conftest.$ac_ext
 
21591
cat >>conftest.$ac_ext <<_ACEOF
 
21592
/* end confdefs.h.  */
 
21593
#include <stdlib.h>
 
21594
 
 
21595
_ACEOF
 
21596
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21597
  $EGREP "free" >/dev/null 2>&1; then
 
21598
  :
 
21599
else
 
21600
  ac_cv_header_stdc=no
 
21601
fi
 
21602
rm -f conftest*
 
21603
 
 
21604
fi
 
21605
 
 
21606
if test $ac_cv_header_stdc = yes; then
 
21607
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
21608
  if test "$cross_compiling" = yes; then
 
21609
  :
 
21610
else
 
21611
  cat >conftest.$ac_ext <<_ACEOF
 
21612
/* confdefs.h.  */
 
21613
_ACEOF
 
21614
cat confdefs.h >>conftest.$ac_ext
 
21615
cat >>conftest.$ac_ext <<_ACEOF
 
21616
/* end confdefs.h.  */
 
21617
#include <ctype.h>
 
21618
#include <stdlib.h>
 
21619
#if ((' ' & 0x0FF) == 0x020)
 
21620
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
21621
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
21622
#else
 
21623
# define ISLOWER(c) \
 
21624
                   (('a' <= (c) && (c) <= 'i') \
 
21625
                     || ('j' <= (c) && (c) <= 'r') \
 
21626
                     || ('s' <= (c) && (c) <= 'z'))
 
21627
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
21628
#endif
 
21629
 
 
21630
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
21631
int
 
21632
main ()
 
21633
{
 
21634
  int i;
 
21635
  for (i = 0; i < 256; i++)
 
21636
    if (XOR (islower (i), ISLOWER (i))
 
21637
        || toupper (i) != TOUPPER (i))
 
21638
      return 2;
 
21639
  return 0;
 
21640
}
 
21641
_ACEOF
 
21642
rm -f conftest$ac_exeext
 
21643
if { (ac_try="$ac_link"
 
21644
case "(($ac_try" in
 
21645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21646
  *) ac_try_echo=$ac_try;;
 
21647
esac
 
21648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21649
  (eval "$ac_link") 2>&5
 
21650
  ac_status=$?
 
21651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21652
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21653
  { (case "(($ac_try" in
 
21654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21655
  *) ac_try_echo=$ac_try;;
 
21656
esac
 
21657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21658
  (eval "$ac_try") 2>&5
 
21659
  ac_status=$?
 
21660
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21661
  (exit $ac_status); }; }; then
 
21662
  :
 
21663
else
 
21664
  echo "$as_me: program exited with status $ac_status" >&5
 
21665
echo "$as_me: failed program was:" >&5
 
21666
sed 's/^/| /' conftest.$ac_ext >&5
 
21667
 
 
21668
( exit $ac_status )
 
21669
ac_cv_header_stdc=no
 
21670
fi
 
21671
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21672
fi
 
21673
 
 
21674
 
 
21675
fi
 
21676
fi
 
21677
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
21678
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
21679
if test $ac_cv_header_stdc = yes; then
 
21680
 
 
21681
cat >>confdefs.h <<\_ACEOF
 
21682
#define STDC_HEADERS 1
 
21683
_ACEOF
 
21684
 
 
21685
fi
 
21686
 
 
21687
{ echo "$as_me:$LINENO: checking for library containing getaddrinfo" >&5
 
21688
echo $ECHO_N "checking for library containing getaddrinfo... $ECHO_C" >&6; }
 
21689
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
21690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21691
else
 
21692
  ac_func_search_save_LIBS=$LIBS
 
21693
cat >conftest.$ac_ext <<_ACEOF
 
21694
/* confdefs.h.  */
 
21695
_ACEOF
 
21696
cat confdefs.h >>conftest.$ac_ext
 
21697
cat >>conftest.$ac_ext <<_ACEOF
 
21698
/* end confdefs.h.  */
 
21699
 
 
21700
/* Override any GCC internal prototype to avoid an error.
 
21701
   Use char because int might match the return type of a GCC
 
21702
   builtin and then its argument prototype would still apply.  */
 
21703
#ifdef __cplusplus
 
21704
extern "C"
 
21705
#endif
 
21706
char getaddrinfo ();
 
21707
int
 
21708
main ()
 
21709
{
 
21710
return getaddrinfo ();
 
21711
  ;
 
21712
  return 0;
 
21713
}
 
21714
_ACEOF
 
21715
for ac_lib in '' socket; do
 
21716
  if test -z "$ac_lib"; then
 
21717
    ac_res="none required"
 
21718
  else
 
21719
    ac_res=-l$ac_lib
 
21720
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21721
  fi
 
21722
  rm -f conftest.$ac_objext conftest$ac_exeext
 
21723
if { (ac_try="$ac_link"
 
21724
case "(($ac_try" in
 
21725
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21726
  *) ac_try_echo=$ac_try;;
 
21727
esac
 
21728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21729
  (eval "$ac_link") 2>conftest.er1
 
21730
  ac_status=$?
 
21731
  grep -v '^ *+' conftest.er1 >conftest.err
 
21732
  rm -f conftest.er1
 
21733
  cat conftest.err >&5
 
21734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21735
  (exit $ac_status); } && {
 
21736
         test -z "$ac_c_werror_flag" ||
 
21737
         test ! -s conftest.err
 
21738
       } && test -s conftest$ac_exeext &&
 
21739
       $as_test_x conftest$ac_exeext; then
 
21740
  ac_cv_search_getaddrinfo=$ac_res
 
21741
else
 
21742
  echo "$as_me: failed program was:" >&5
 
21743
sed 's/^/| /' conftest.$ac_ext >&5
 
21744
 
 
21745
 
 
21746
fi
 
21747
 
 
21748
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21749
      conftest$ac_exeext
 
21750
  if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
21751
  break
 
21752
fi
 
21753
done
 
21754
if test "${ac_cv_search_getaddrinfo+set}" = set; then
 
21755
  :
 
21756
else
 
21757
  ac_cv_search_getaddrinfo=no
 
21758
fi
 
21759
rm conftest.$ac_ext
 
21760
LIBS=$ac_func_search_save_LIBS
 
21761
fi
 
21762
{ echo "$as_me:$LINENO: result: $ac_cv_search_getaddrinfo" >&5
 
21763
echo "${ECHO_T}$ac_cv_search_getaddrinfo" >&6; }
 
21764
ac_res=$ac_cv_search_getaddrinfo
 
21765
if test "$ac_res" != no; then
 
21766
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
21767
 
 
21768
fi
 
21769
 
 
21770
{ echo "$as_me:$LINENO: checking for library containing connect" >&5
 
21771
echo $ECHO_N "checking for library containing connect... $ECHO_C" >&6; }
 
21772
if test "${ac_cv_search_connect+set}" = set; then
 
21773
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21774
else
 
21775
  ac_func_search_save_LIBS=$LIBS
 
21776
cat >conftest.$ac_ext <<_ACEOF
 
21777
/* confdefs.h.  */
 
21778
_ACEOF
 
21779
cat confdefs.h >>conftest.$ac_ext
 
21780
cat >>conftest.$ac_ext <<_ACEOF
 
21781
/* end confdefs.h.  */
 
21782
 
 
21783
/* Override any GCC internal prototype to avoid an error.
 
21784
   Use char because int might match the return type of a GCC
 
21785
   builtin and then its argument prototype would still apply.  */
 
21786
#ifdef __cplusplus
 
21787
extern "C"
 
21788
#endif
 
21789
char connect ();
 
21790
int
 
21791
main ()
 
21792
{
 
21793
return connect ();
 
21794
  ;
 
21795
  return 0;
 
21796
}
 
21797
_ACEOF
 
21798
for ac_lib in '' socket; do
 
21799
  if test -z "$ac_lib"; then
 
21800
    ac_res="none required"
 
21801
  else
 
21802
    ac_res=-l$ac_lib
 
21803
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
21804
  fi
 
21805
  rm -f conftest.$ac_objext conftest$ac_exeext
 
21806
if { (ac_try="$ac_link"
 
21807
case "(($ac_try" in
 
21808
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21809
  *) ac_try_echo=$ac_try;;
 
21810
esac
 
21811
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21812
  (eval "$ac_link") 2>conftest.er1
 
21813
  ac_status=$?
 
21814
  grep -v '^ *+' conftest.er1 >conftest.err
 
21815
  rm -f conftest.er1
 
21816
  cat conftest.err >&5
 
21817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21818
  (exit $ac_status); } && {
 
21819
         test -z "$ac_c_werror_flag" ||
 
21820
         test ! -s conftest.err
 
21821
       } && test -s conftest$ac_exeext &&
 
21822
       $as_test_x conftest$ac_exeext; then
 
21823
  ac_cv_search_connect=$ac_res
 
21824
else
 
21825
  echo "$as_me: failed program was:" >&5
 
21826
sed 's/^/| /' conftest.$ac_ext >&5
 
21827
 
 
21828
 
 
21829
fi
 
21830
 
 
21831
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21832
      conftest$ac_exeext
 
21833
  if test "${ac_cv_search_connect+set}" = set; then
 
21834
  break
 
21835
fi
 
21836
done
 
21837
if test "${ac_cv_search_connect+set}" = set; then
 
21838
  :
 
21839
else
 
21840
  ac_cv_search_connect=no
 
21841
fi
 
21842
rm conftest.$ac_ext
 
21843
LIBS=$ac_func_search_save_LIBS
 
21844
fi
 
21845
{ echo "$as_me:$LINENO: result: $ac_cv_search_connect" >&5
 
21846
echo "${ECHO_T}$ac_cv_search_connect" >&6; }
 
21847
ac_res=$ac_cv_search_connect
 
21848
if test "$ac_res" != no; then
 
21849
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
21850
 
 
21851
fi
 
21852
 
 
21853
 
 
21854
case $host_os in
 
21855
linux*)
 
21856
 
 
21857
cat >>confdefs.h <<\_ACEOF
 
21858
#define HAVE_ABSTRACT_SOCKETS 1
 
21859
_ACEOF
 
21860
 
 
21861
        ;;
 
21862
esac
 
21863
 
 
21864
 
 
21865
# Check whether --with-queue-size was given.
 
21866
if test "${with_queue_size+set}" = set; then
 
21867
  withval=$with_queue_size; xcb_queue_buffer_size="$withval"
 
21868
else
 
21869
  xcb_queue_buffer_size=16384
 
21870
fi
 
21871
 
 
21872
 
 
21873
cat >>confdefs.h <<_ACEOF
 
21874
#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size
 
21875
_ACEOF
 
21876
 
 
21877
 
 
21878
{ echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
 
21879
echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6; }
 
21880
if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
 
21881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21882
else
 
21883
  cat >conftest.$ac_ext <<_ACEOF
 
21884
/* confdefs.h.  */
 
21885
_ACEOF
 
21886
cat confdefs.h >>conftest.$ac_ext
 
21887
cat >>conftest.$ac_ext <<_ACEOF
 
21888
/* end confdefs.h.  */
 
21889
 #include <sys/types.h>
 
21890
                  #include <sys/un.h>
 
21891
 
 
21892
 
 
21893
int
 
21894
main ()
 
21895
{
 
21896
static struct sockaddr_un ac_aggr;
 
21897
if (ac_aggr.sun_len)
 
21898
return 0;
 
21899
  ;
 
21900
  return 0;
 
21901
}
 
21902
_ACEOF
 
21903
rm -f conftest.$ac_objext
 
21904
if { (ac_try="$ac_compile"
 
21905
case "(($ac_try" in
 
21906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21907
  *) ac_try_echo=$ac_try;;
 
21908
esac
 
21909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21910
  (eval "$ac_compile") 2>conftest.er1
 
21911
  ac_status=$?
 
21912
  grep -v '^ *+' conftest.er1 >conftest.err
 
21913
  rm -f conftest.er1
 
21914
  cat conftest.err >&5
 
21915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21916
  (exit $ac_status); } && {
 
21917
         test -z "$ac_c_werror_flag" ||
 
21918
         test ! -s conftest.err
 
21919
       } && test -s conftest.$ac_objext; then
 
21920
  ac_cv_member_struct_sockaddr_un_sun_len=yes
 
21921
else
 
21922
  echo "$as_me: failed program was:" >&5
 
21923
sed 's/^/| /' conftest.$ac_ext >&5
 
21924
 
 
21925
        cat >conftest.$ac_ext <<_ACEOF
 
21926
/* confdefs.h.  */
 
21927
_ACEOF
 
21928
cat confdefs.h >>conftest.$ac_ext
 
21929
cat >>conftest.$ac_ext <<_ACEOF
 
21930
/* end confdefs.h.  */
 
21931
 #include <sys/types.h>
 
21932
                  #include <sys/un.h>
 
21933
 
 
21934
 
 
21935
int
 
21936
main ()
 
21937
{
 
21938
static struct sockaddr_un ac_aggr;
 
21939
if (sizeof ac_aggr.sun_len)
 
21940
return 0;
 
21941
  ;
 
21942
  return 0;
 
21943
}
 
21944
_ACEOF
 
21945
rm -f conftest.$ac_objext
 
21946
if { (ac_try="$ac_compile"
 
21947
case "(($ac_try" in
 
21948
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21949
  *) ac_try_echo=$ac_try;;
 
21950
esac
 
21951
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21952
  (eval "$ac_compile") 2>conftest.er1
 
21953
  ac_status=$?
 
21954
  grep -v '^ *+' conftest.er1 >conftest.err
 
21955
  rm -f conftest.er1
 
21956
  cat conftest.err >&5
 
21957
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21958
  (exit $ac_status); } && {
 
21959
         test -z "$ac_c_werror_flag" ||
 
21960
         test ! -s conftest.err
 
21961
       } && test -s conftest.$ac_objext; then
 
21962
  ac_cv_member_struct_sockaddr_un_sun_len=yes
 
21963
else
 
21964
  echo "$as_me: failed program was:" >&5
 
21965
sed 's/^/| /' conftest.$ac_ext >&5
 
21966
 
 
21967
        ac_cv_member_struct_sockaddr_un_sun_len=no
 
21968
fi
 
21969
 
 
21970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21971
fi
 
21972
 
 
21973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21974
fi
 
21975
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
 
21976
echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6; }
 
21977
if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
 
21978
 
 
21979
cat >>confdefs.h <<\_ACEOF
 
21980
#define HAVE_SOCKADDR_SUN_LEN 1
 
21981
_ACEOF
 
21982
 
 
21983
fi
 
21984
 
 
21985
 
 
21986
xcbincludedir='${includedir}/xcb'
 
21987
 
 
21988
 
 
21989
if  test "x$GCC" = xyes ; then
 
21990
    CWARNFLAGS="-Wall -pedantic -Wpointer-arith \
 
21991
                -Wstrict-prototypes -Wmissing-declarations -Wnested-externs"
 
21992
else
 
21993
    { echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
 
21994
echo $ECHO_N "checking whether __SUNPRO_C is declared... $ECHO_C" >&6; }
 
21995
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
 
21996
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21997
else
 
21998
  cat >conftest.$ac_ext <<_ACEOF
 
21999
/* confdefs.h.  */
 
22000
_ACEOF
 
22001
cat confdefs.h >>conftest.$ac_ext
 
22002
cat >>conftest.$ac_ext <<_ACEOF
 
22003
/* end confdefs.h.  */
 
22004
$ac_includes_default
 
22005
int
 
22006
main ()
 
22007
{
 
22008
#ifndef __SUNPRO_C
 
22009
  (void) __SUNPRO_C;
 
22010
#endif
 
22011
 
 
22012
  ;
 
22013
  return 0;
 
22014
}
 
22015
_ACEOF
 
22016
rm -f conftest.$ac_objext
 
22017
if { (ac_try="$ac_compile"
 
22018
case "(($ac_try" in
 
22019
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22020
  *) ac_try_echo=$ac_try;;
 
22021
esac
 
22022
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22023
  (eval "$ac_compile") 2>conftest.er1
 
22024
  ac_status=$?
 
22025
  grep -v '^ *+' conftest.er1 >conftest.err
 
22026
  rm -f conftest.er1
 
22027
  cat conftest.err >&5
 
22028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22029
  (exit $ac_status); } && {
 
22030
         test -z "$ac_c_werror_flag" ||
 
22031
         test ! -s conftest.err
 
22032
       } && test -s conftest.$ac_objext; then
 
22033
  ac_cv_have_decl___SUNPRO_C=yes
 
22034
else
 
22035
  echo "$as_me: failed program was:" >&5
 
22036
sed 's/^/| /' conftest.$ac_ext >&5
 
22037
 
 
22038
        ac_cv_have_decl___SUNPRO_C=no
 
22039
fi
 
22040
 
 
22041
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22042
fi
 
22043
{ echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
 
22044
echo "${ECHO_T}$ac_cv_have_decl___SUNPRO_C" >&6; }
 
22045
if test $ac_cv_have_decl___SUNPRO_C = yes; then
 
22046
  SUNCC="yes"
 
22047
else
 
22048
  SUNCC="no"
 
22049
fi
 
22050
 
 
22051
    if test "x$SUNCC" = "xyes"; then
 
22052
        CWARNFLAGS="-v"
 
22053
    fi
 
22054
fi
 
22055
 
 
22056
 
 
22057
 
 
22058
{ echo "$as_me:$LINENO: checking whether ${CC} supports symbol visibility" >&5
 
22059
echo $ECHO_N "checking whether ${CC} supports symbol visibility... $ECHO_C" >&6; }
 
22060
 
 
22061
save_CFLAGS=${CFLAGS}
 
22062
CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
 
22063
cat >conftest.$ac_ext <<_ACEOF
 
22064
/* confdefs.h.  */
 
22065
_ACEOF
 
22066
cat confdefs.h >>conftest.$ac_ext
 
22067
cat >>conftest.$ac_ext <<_ACEOF
 
22068
/* end confdefs.h.  */
 
22069
 
 
22070
#pragma GCC visibility push(hidden)
 
22071
extern void f(int);
 
22072
#pragma GCC visibility pop
 
22073
 
 
22074
int
 
22075
main ()
 
22076
{
 
22077
 
 
22078
 
 
22079
  ;
 
22080
  return 0;
 
22081
}
 
22082
_ACEOF
 
22083
rm -f conftest.$ac_objext
 
22084
if { (ac_try="$ac_compile"
 
22085
case "(($ac_try" in
 
22086
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22087
  *) ac_try_echo=$ac_try;;
 
22088
esac
 
22089
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22090
  (eval "$ac_compile") 2>conftest.er1
 
22091
  ac_status=$?
 
22092
  grep -v '^ *+' conftest.er1 >conftest.err
 
22093
  rm -f conftest.er1
 
22094
  cat conftest.err >&5
 
22095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22096
  (exit $ac_status); } && {
 
22097
         test -z "$ac_c_werror_flag" ||
 
22098
         test ! -s conftest.err
 
22099
       } && test -s conftest.$ac_objext; then
 
22100
 
 
22101
cat >>confdefs.h <<\_ACEOF
 
22102
#define GCC_HAS_VISIBILITY
 
22103
_ACEOF
 
22104
 
 
22105
    :
 
22106
    { echo "$as_me:$LINENO: result: yes" >&5
 
22107
echo "${ECHO_T}yes" >&6; }
 
22108
else
 
22109
  echo "$as_me: failed program was:" >&5
 
22110
sed 's/^/| /' conftest.$ac_ext >&5
 
22111
 
 
22112
        :
 
22113
    { echo "$as_me:$LINENO: result: no" >&5
 
22114
echo "${ECHO_T}no" >&6; }
 
22115
fi
 
22116
 
 
22117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22118
 
 
22119
CFLAGS=${save_CFLAGS}
 
22120
 
 
22121
 
 
22122
# htmldir is not defined prior to autoconf 2.59c, so on earlier versions
 
22123
# set an equivalent value.
 
22124
 
 
22125
 
 
22126
 
 
22127
DOXYGEN="doxygen"
 
22128
 
 
22129
# Check whether --enable-build_docs was given.
 
22130
if test "${enable_build_docs+set}" = set; then
 
22131
  enableval=$enable_build_docs; if test x"$enableval" != x"yes" ; then
 
22132
       enable_build_docs="no"
 
22133
    else
 
22134
       enable_build_docs="yes"
 
22135
    fi
 
22136
else
 
22137
  enable_build_docs="yes"
 
22138
fi
 
22139
 
 
22140
 
 
22141
if test "$enable_build_docs" = "no" ; then
 
22142
    BUILD_DOCS=no
 
22143
else
 
22144
 
 
22145
# Check whether --with-doxygen was given.
 
22146
if test "${with_doxygen+set}" = set; then
 
22147
  withval=$with_doxygen;          DOXYGEN=${withval}
 
22148
    # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
 
22149
set dummy ${DOXYGEN}; ac_word=$2
 
22150
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22151
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22152
if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then
 
22153
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22154
else
 
22155
  if test -n "$BUILD_DOCS"; then
 
22156
  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
 
22157
else
 
22158
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22159
for as_dir in $PATH
 
22160
do
 
22161
  IFS=$as_save_IFS
 
22162
  test -z "$as_dir" && as_dir=.
 
22163
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22164
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22165
    ac_cv_prog_BUILD_DOCS="yes"
 
22166
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22167
    break 2
 
22168
  fi
 
22169
done
 
22170
done
 
22171
IFS=$as_save_IFS
 
22172
 
 
22173
  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
 
22174
fi
 
22175
fi
 
22176
BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
 
22177
if test -n "$BUILD_DOCS"; then
 
22178
  { echo "$as_me:$LINENO: result: $BUILD_DOCS" >&5
 
22179
echo "${ECHO_T}$BUILD_DOCS" >&6; }
 
22180
else
 
22181
  { echo "$as_me:$LINENO: result: no" >&5
 
22182
echo "${ECHO_T}no" >&6; }
 
22183
fi
 
22184
 
 
22185
 
 
22186
    if test $BUILD_DOCS = no; then
 
22187
       echo "WARNING:"
 
22188
       echo "The doxygen program you specified:"
 
22189
       echo "$DOXYGEN"
 
22190
       echo "was not found.  Please check the path and make sure "
 
22191
       echo "the program exists and is executable."
 
22192
       { echo "$as_me:$LINENO: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
 
22193
echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
 
22194
    fi
 
22195
else
 
22196
  # Extract the first word of "${DOXYGEN}", so it can be a program name with args.
 
22197
set dummy ${DOXYGEN}; ac_word=$2
 
22198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22200
if test "${ac_cv_prog_BUILD_DOCS+set}" = set; then
 
22201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22202
else
 
22203
  if test -n "$BUILD_DOCS"; then
 
22204
  ac_cv_prog_BUILD_DOCS="$BUILD_DOCS" # Let the user override the test.
 
22205
else
 
22206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22207
for as_dir in $PATH
 
22208
do
 
22209
  IFS=$as_save_IFS
 
22210
  test -z "$as_dir" && as_dir=.
 
22211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22213
    ac_cv_prog_BUILD_DOCS="yes"
 
22214
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22215
    break 2
 
22216
  fi
 
22217
done
 
22218
done
 
22219
IFS=$as_save_IFS
 
22220
 
 
22221
  test -z "$ac_cv_prog_BUILD_DOCS" && ac_cv_prog_BUILD_DOCS="no"
 
22222
fi
 
22223
fi
 
22224
BUILD_DOCS=$ac_cv_prog_BUILD_DOCS
 
22225
if test -n "$BUILD_DOCS"; then
 
22226
  { echo "$as_me:$LINENO: result: $BUILD_DOCS" >&5
 
22227
echo "${ECHO_T}$BUILD_DOCS" >&6; }
 
22228
else
 
22229
  { echo "$as_me:$LINENO: result: no" >&5
 
22230
echo "${ECHO_T}no" >&6; }
 
22231
fi
 
22232
 
 
22233
 
 
22234
    if test ${BUILD_DOCS} = no; then
 
22235
       echo "WARNING:"
 
22236
       echo "The doxygen program was not found in your execute"
 
22237
       echo "You may have doxygen installed somewhere not covered by your path."
 
22238
       echo ""
 
22239
       echo "If this is the case make sure you have the packages installed, AND"
 
22240
       echo "that the doxygen program is in your execute path (see your"
 
22241
       echo "shell manual page on setting the \$PATH environment variable), OR"
 
22242
       echo "alternatively, specify the program to use with --with-doxygen."
 
22243
       { echo "$as_me:$LINENO: WARNING: Warning: no doxygen detected. Documentation will not be built" >&5
 
22244
echo "$as_me: WARNING: Warning: no doxygen detected. Documentation will not be built" >&2;}
 
22245
    fi
 
22246
fi
 
22247
 
 
22248
fi
 
22249
{ echo "$as_me:$LINENO: checking whether documentation is built" >&5
 
22250
echo $ECHO_N "checking whether documentation is built... $ECHO_C" >&6; }
 
22251
{ echo "$as_me:$LINENO: result: ${BUILD_DOCS}" >&5
 
22252
echo "${ECHO_T}${BUILD_DOCS}" >&6; }
 
22253
 
 
22254
 
 
22255
 
 
22256
 if test "x$BUILD_DOCS" = "xyes"; then
 
22257
  BUILD_DOCS_TRUE=
 
22258
  BUILD_DOCS_FALSE='#'
 
22259
else
 
22260
  BUILD_DOCS_TRUE='#'
 
22261
  BUILD_DOCS_FALSE=
 
22262
fi
 
22263
 
 
22264
 
 
22265
 
 
22266
 
 
22267
 
 
22268
 
 
22269
# Check whether --enable-composite was given.
 
22270
if test "${enable_composite+set}" = set; then
 
22271
  enableval=$enable_composite; BUILD_COMPOSITE=$enableval
 
22272
else
 
22273
  BUILD_COMPOSITE="yes"
 
22274
fi
 
22275
 
 
22276
 
 
22277
 if test "x$BUILD_COMPOSITE" = "xyes"; then
 
22278
  BUILD_COMPOSITE_TRUE=
 
22279
  BUILD_COMPOSITE_FALSE='#'
 
22280
else
 
22281
  BUILD_COMPOSITE_TRUE='#'
 
22282
  BUILD_COMPOSITE_FALSE=
 
22283
fi
 
22284
 
 
22285
 
 
22286
 
 
22287
 
 
22288
# Check whether --enable-damage was given.
 
22289
if test "${enable_damage+set}" = set; then
 
22290
  enableval=$enable_damage; BUILD_DAMAGE=$enableval
 
22291
else
 
22292
  BUILD_DAMAGE="yes"
 
22293
fi
 
22294
 
 
22295
 
 
22296
 if test "x$BUILD_DAMAGE" = "xyes"; then
 
22297
  BUILD_DAMAGE_TRUE=
 
22298
  BUILD_DAMAGE_FALSE='#'
 
22299
else
 
22300
  BUILD_DAMAGE_TRUE='#'
 
22301
  BUILD_DAMAGE_FALSE=
 
22302
fi
 
22303
 
 
22304
 
 
22305
 
 
22306
 
 
22307
# Check whether --enable-dpms was given.
 
22308
if test "${enable_dpms+set}" = set; then
 
22309
  enableval=$enable_dpms; BUILD_DPMS=$enableval
 
22310
else
 
22311
  BUILD_DPMS="yes"
 
22312
fi
 
22313
 
 
22314
 
 
22315
 if test "x$BUILD_DPMS" = "xyes"; then
 
22316
  BUILD_DPMS_TRUE=
 
22317
  BUILD_DPMS_FALSE='#'
 
22318
else
 
22319
  BUILD_DPMS_TRUE='#'
 
22320
  BUILD_DPMS_FALSE=
 
22321
fi
 
22322
 
 
22323
 
 
22324
 
 
22325
 
 
22326
# Check whether --enable-glx was given.
 
22327
if test "${enable_glx+set}" = set; then
 
22328
  enableval=$enable_glx; BUILD_GLX=$enableval
 
22329
else
 
22330
  BUILD_GLX="yes"
 
22331
fi
 
22332
 
 
22333
 
 
22334
 if test "x$BUILD_GLX" = "xyes"; then
 
22335
  BUILD_GLX_TRUE=
 
22336
  BUILD_GLX_FALSE='#'
 
22337
else
 
22338
  BUILD_GLX_TRUE='#'
 
22339
  BUILD_GLX_FALSE=
 
22340
fi
 
22341
 
 
22342
 
 
22343
 
 
22344
 
 
22345
# Check whether --enable-randr was given.
 
22346
if test "${enable_randr+set}" = set; then
 
22347
  enableval=$enable_randr; BUILD_RANDR=$enableval
 
22348
else
 
22349
  BUILD_RANDR="yes"
 
22350
fi
 
22351
 
 
22352
 
 
22353
 if test "x$BUILD_RANDR" = "xyes"; then
 
22354
  BUILD_RANDR_TRUE=
 
22355
  BUILD_RANDR_FALSE='#'
 
22356
else
 
22357
  BUILD_RANDR_TRUE='#'
 
22358
  BUILD_RANDR_FALSE=
 
22359
fi
 
22360
 
 
22361
 
 
22362
 
 
22363
 
 
22364
# Check whether --enable-record was given.
 
22365
if test "${enable_record+set}" = set; then
 
22366
  enableval=$enable_record; BUILD_RECORD=$enableval
 
22367
else
 
22368
  BUILD_RECORD="yes"
 
22369
fi
 
22370
 
 
22371
 
 
22372
 if test "x$BUILD_RECORD" = "xyes"; then
 
22373
  BUILD_RECORD_TRUE=
 
22374
  BUILD_RECORD_FALSE='#'
 
22375
else
 
22376
  BUILD_RECORD_TRUE='#'
 
22377
  BUILD_RECORD_FALSE=
 
22378
fi
 
22379
 
 
22380
 
 
22381
 
 
22382
 
 
22383
# Check whether --enable-render was given.
 
22384
if test "${enable_render+set}" = set; then
 
22385
  enableval=$enable_render; BUILD_RENDER=$enableval
 
22386
else
 
22387
  BUILD_RENDER="yes"
 
22388
fi
 
22389
 
 
22390
 
 
22391
 if test "x$BUILD_RENDER" = "xyes"; then
 
22392
  BUILD_RENDER_TRUE=
 
22393
  BUILD_RENDER_FALSE='#'
 
22394
else
 
22395
  BUILD_RENDER_TRUE='#'
 
22396
  BUILD_RENDER_FALSE=
 
22397
fi
 
22398
 
 
22399
 
 
22400
 
 
22401
 
 
22402
# Check whether --enable-resource was given.
 
22403
if test "${enable_resource+set}" = set; then
 
22404
  enableval=$enable_resource; BUILD_RESOURCE=$enableval
 
22405
else
 
22406
  BUILD_RESOURCE="yes"
 
22407
fi
 
22408
 
 
22409
 
 
22410
 if test "x$BUILD_RESOURCE" = "xyes"; then
 
22411
  BUILD_RESOURCE_TRUE=
 
22412
  BUILD_RESOURCE_FALSE='#'
 
22413
else
 
22414
  BUILD_RESOURCE_TRUE='#'
 
22415
  BUILD_RESOURCE_FALSE=
 
22416
fi
 
22417
 
 
22418
 
 
22419
 
 
22420
 
 
22421
# Check whether --enable-screensaver was given.
 
22422
if test "${enable_screensaver+set}" = set; then
 
22423
  enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval
 
22424
else
 
22425
  BUILD_SCREENSAVER="yes"
 
22426
fi
 
22427
 
 
22428
 
 
22429
 if test "x$BUILD_SCREENSAVER" = "xyes"; then
 
22430
  BUILD_SCREENSAVER_TRUE=
 
22431
  BUILD_SCREENSAVER_FALSE='#'
 
22432
else
 
22433
  BUILD_SCREENSAVER_TRUE='#'
 
22434
  BUILD_SCREENSAVER_FALSE=
 
22435
fi
 
22436
 
 
22437
 
 
22438
 
 
22439
 
 
22440
# Check whether --enable-shape was given.
 
22441
if test "${enable_shape+set}" = set; then
 
22442
  enableval=$enable_shape; BUILD_SHAPE=$enableval
 
22443
else
 
22444
  BUILD_SHAPE="yes"
 
22445
fi
 
22446
 
 
22447
 
 
22448
 if test "x$BUILD_SHAPE" = "xyes"; then
 
22449
  BUILD_SHAPE_TRUE=
 
22450
  BUILD_SHAPE_FALSE='#'
 
22451
else
 
22452
  BUILD_SHAPE_TRUE='#'
 
22453
  BUILD_SHAPE_FALSE=
 
22454
fi
 
22455
 
 
22456
 
 
22457
 
 
22458
 
 
22459
# Check whether --enable-shm was given.
 
22460
if test "${enable_shm+set}" = set; then
 
22461
  enableval=$enable_shm; BUILD_SHM=$enableval
 
22462
else
 
22463
  BUILD_SHM="yes"
 
22464
fi
 
22465
 
 
22466
 
 
22467
 if test "x$BUILD_SHM" = "xyes"; then
 
22468
  BUILD_SHM_TRUE=
 
22469
  BUILD_SHM_FALSE='#'
 
22470
else
 
22471
  BUILD_SHM_TRUE='#'
 
22472
  BUILD_SHM_FALSE=
 
22473
fi
 
22474
 
 
22475
 
 
22476
 
 
22477
 
 
22478
# Check whether --enable-sync was given.
 
22479
if test "${enable_sync+set}" = set; then
 
22480
  enableval=$enable_sync; BUILD_SYNC=$enableval
 
22481
else
 
22482
  BUILD_SYNC="yes"
 
22483
fi
 
22484
 
 
22485
 
 
22486
 if test "x$BUILD_SYNC" = "xyes"; then
 
22487
  BUILD_SYNC_TRUE=
 
22488
  BUILD_SYNC_FALSE='#'
 
22489
else
 
22490
  BUILD_SYNC_TRUE='#'
 
22491
  BUILD_SYNC_FALSE=
 
22492
fi
 
22493
 
 
22494
 
 
22495
 
 
22496
 
 
22497
# Check whether --enable-xevie was given.
 
22498
if test "${enable_xevie+set}" = set; then
 
22499
  enableval=$enable_xevie; BUILD_XEVIE=$enableval
 
22500
else
 
22501
  BUILD_XEVIE="yes"
 
22502
fi
 
22503
 
 
22504
 
 
22505
 if test "x$BUILD_XEVIE" = "xyes"; then
 
22506
  BUILD_XEVIE_TRUE=
 
22507
  BUILD_XEVIE_FALSE='#'
 
22508
else
 
22509
  BUILD_XEVIE_TRUE='#'
 
22510
  BUILD_XEVIE_FALSE=
 
22511
fi
 
22512
 
 
22513
 
 
22514
 
 
22515
 
 
22516
# Check whether --enable-xfixes was given.
 
22517
if test "${enable_xfixes+set}" = set; then
 
22518
  enableval=$enable_xfixes; BUILD_XFIXES=$enableval
 
22519
else
 
22520
  BUILD_XFIXES="yes"
 
22521
fi
 
22522
 
 
22523
 
 
22524
 if test "x$BUILD_XFIXES" = "xyes"; then
 
22525
  BUILD_XFIXES_TRUE=
 
22526
  BUILD_XFIXES_FALSE='#'
 
22527
else
 
22528
  BUILD_XFIXES_TRUE='#'
 
22529
  BUILD_XFIXES_FALSE=
 
22530
fi
 
22531
 
 
22532
 
 
22533
 
 
22534
 
 
22535
# Check whether --enable-xfree86-dri was given.
 
22536
if test "${enable_xfree86_dri+set}" = set; then
 
22537
  enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval
 
22538
else
 
22539
  BUILD_XFREE86_DRI="yes"
 
22540
fi
 
22541
 
 
22542
 
 
22543
 if test "x$BUILD_XFREE86_DRI" = "xyes"; then
 
22544
  BUILD_XFREE86_DRI_TRUE=
 
22545
  BUILD_XFREE86_DRI_FALSE='#'
 
22546
else
 
22547
  BUILD_XFREE86_DRI_TRUE='#'
 
22548
  BUILD_XFREE86_DRI_FALSE=
 
22549
fi
 
22550
 
 
22551
 
 
22552
 
 
22553
 
 
22554
# Check whether --enable-xinerama was given.
 
22555
if test "${enable_xinerama+set}" = set; then
 
22556
  enableval=$enable_xinerama; BUILD_XINERAMA=$enableval
 
22557
else
 
22558
  BUILD_XINERAMA="yes"
 
22559
fi
 
22560
 
 
22561
 
 
22562
 if test "x$BUILD_XINERAMA" = "xyes"; then
 
22563
  BUILD_XINERAMA_TRUE=
 
22564
  BUILD_XINERAMA_FALSE='#'
 
22565
else
 
22566
  BUILD_XINERAMA_TRUE='#'
 
22567
  BUILD_XINERAMA_FALSE=
 
22568
fi
 
22569
 
 
22570
 
 
22571
 
 
22572
 
 
22573
# Check whether --enable-xinput was given.
 
22574
if test "${enable_xinput+set}" = set; then
 
22575
  enableval=$enable_xinput; BUILD_XINPUT=$enableval
 
22576
else
 
22577
  BUILD_XINPUT="no"
 
22578
fi
 
22579
 
 
22580
 
 
22581
 if test "x$BUILD_XINPUT" = "xyes"; then
 
22582
  BUILD_XINPUT_TRUE=
 
22583
  BUILD_XINPUT_FALSE='#'
 
22584
else
 
22585
  BUILD_XINPUT_TRUE='#'
 
22586
  BUILD_XINPUT_FALSE=
 
22587
fi
 
22588
 
 
22589
 
 
22590
 
 
22591
 
 
22592
# Check whether --enable-xprint was given.
 
22593
if test "${enable_xprint+set}" = set; then
 
22594
  enableval=$enable_xprint; BUILD_XPRINT=$enableval
 
22595
else
 
22596
  BUILD_XPRINT="yes"
 
22597
fi
 
22598
 
 
22599
 
 
22600
 if test "x$BUILD_XPRINT" = "xyes"; then
 
22601
  BUILD_XPRINT_TRUE=
 
22602
  BUILD_XPRINT_FALSE='#'
 
22603
else
 
22604
  BUILD_XPRINT_TRUE='#'
 
22605
  BUILD_XPRINT_FALSE=
 
22606
fi
 
22607
 
 
22608
 
 
22609
 
 
22610
 
 
22611
# Check whether --enable-selinux was given.
 
22612
if test "${enable_selinux+set}" = set; then
 
22613
  enableval=$enable_selinux; BUILD_SELINUX=$enableval
 
22614
else
 
22615
  BUILD_SELINUX="no"
 
22616
fi
 
22617
 
 
22618
 
 
22619
 if test "x$BUILD_SELINUX" = "xyes"; then
 
22620
  BUILD_SELINUX_TRUE=
 
22621
  BUILD_SELINUX_FALSE='#'
 
22622
else
 
22623
  BUILD_SELINUX_TRUE='#'
 
22624
  BUILD_SELINUX_FALSE=
 
22625
fi
 
22626
 
 
22627
 
 
22628
 
 
22629
 
 
22630
# Check whether --enable-xtest was given.
 
22631
if test "${enable_xtest+set}" = set; then
 
22632
  enableval=$enable_xtest; BUILD_XTEST=$enableval
 
22633
else
 
22634
  BUILD_XTEST="yes"
 
22635
fi
 
22636
 
 
22637
 
 
22638
 if test "x$BUILD_XTEST" = "xyes"; then
 
22639
  BUILD_XTEST_TRUE=
 
22640
  BUILD_XTEST_FALSE='#'
 
22641
else
 
22642
  BUILD_XTEST_TRUE='#'
 
22643
  BUILD_XTEST_FALSE=
 
22644
fi
 
22645
 
 
22646
 
 
22647
 
 
22648
 
 
22649
# Check whether --enable-xv was given.
 
22650
if test "${enable_xv+set}" = set; then
 
22651
  enableval=$enable_xv; BUILD_XV=$enableval
 
22652
else
 
22653
  BUILD_XV="yes"
 
22654
fi
 
22655
 
 
22656
 
 
22657
 if test "x$BUILD_XV" = "xyes"; then
 
22658
  BUILD_XV_TRUE=
 
22659
  BUILD_XV_FALSE='#'
 
22660
else
 
22661
  BUILD_XV_TRUE='#'
 
22662
  BUILD_XV_FALSE=
 
22663
fi
 
22664
 
 
22665
 
 
22666
 
 
22667
 
 
22668
# Check whether --enable-xvmc was given.
 
22669
if test "${enable_xvmc+set}" = set; then
 
22670
  enableval=$enable_xvmc; BUILD_XVMC=$enableval
 
22671
else
 
22672
  BUILD_XVMC="yes"
 
22673
fi
 
22674
 
 
22675
 
 
22676
 if test "x$BUILD_XVMC" = "xyes"; then
 
22677
  BUILD_XVMC_TRUE=
 
22678
  BUILD_XVMC_FALSE='#'
 
22679
else
 
22680
  BUILD_XVMC_TRUE='#'
 
22681
  BUILD_XVMC_FALSE=
 
22682
fi
 
22683
 
 
22684
 
 
22685
 
 
22686
 
 
22687
# Check whether --with-launchd was given.
 
22688
if test "${with_launchd+set}" = set; then
 
22689
  withval=$with_launchd; LAUNCHD=$withval
 
22690
else
 
22691
  LAUNCHD=auto
 
22692
fi
 
22693
 
 
22694
if test "x$LAUNCHD" = xauto; then
 
22695
        unset LAUNCHD
 
22696
        # Extract the first word of "launchd", so it can be a program name with args.
 
22697
set dummy launchd; ac_word=$2
 
22698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22700
if test "${ac_cv_prog_LAUNCHD+set}" = set; then
 
22701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22702
else
 
22703
  if test -n "$LAUNCHD"; then
 
22704
  ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
 
22705
else
 
22706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22707
for as_dir in $PATH
 
22708
do
 
22709
  IFS=$as_save_IFS
 
22710
  test -z "$as_dir" && as_dir=.
 
22711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22712
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22713
    ac_cv_prog_LAUNCHD="yes"
 
22714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22715
    break 2
 
22716
  fi
 
22717
done
 
22718
done
 
22719
IFS=$as_save_IFS
 
22720
 
 
22721
  test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
 
22722
fi
 
22723
fi
 
22724
LAUNCHD=$ac_cv_prog_LAUNCHD
 
22725
if test -n "$LAUNCHD"; then
 
22726
  { echo "$as_me:$LINENO: result: $LAUNCHD" >&5
 
22727
echo "${ECHO_T}$LAUNCHD" >&6; }
 
22728
else
 
22729
  { echo "$as_me:$LINENO: result: no" >&5
 
22730
echo "${ECHO_T}no" >&6; }
 
22731
fi
 
22732
 
 
22733
 
 
22734
fi
 
22735
 
 
22736
if test "x$LAUNCHD" = xyes ; then
 
22737
 
 
22738
cat >>confdefs.h <<\_ACEOF
 
22739
#define HAVE_LAUNCHD 1
 
22740
_ACEOF
 
22741
 
 
22742
fi
 
22743
 
 
22744
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile tests/Makefile"
 
22745
 
 
22746
 
 
22747
ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-glx.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc"
 
22748
 
 
22749
 
 
22750
ac_config_files="$ac_config_files doc/xcb.doxygen"
 
22751
 
 
22752
 
 
22753
cat >confcache <<\_ACEOF
 
22754
# This file is a shell script that caches the results of configure
 
22755
# tests run on this system so they can be shared between configure
 
22756
# scripts and configure runs, see configure's option --config-cache.
 
22757
# It is not useful on other systems.  If it contains results you don't
 
22758
# want to keep, you may remove or edit it.
 
22759
#
 
22760
# config.status only pays attention to the cache file if you give it
 
22761
# the --recheck option to rerun configure.
 
22762
#
 
22763
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22764
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22765
# following values.
 
22766
 
 
22767
_ACEOF
 
22768
 
 
22769
# The following way of writing the cache mishandles newlines in values,
 
22770
# but we know of no workaround that is simple, portable, and efficient.
 
22771
# So, we kill variables containing newlines.
 
22772
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22773
# and sets the high bit in the cache file unless we assign to the vars.
 
22774
(
 
22775
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22776
    eval ac_val=\$$ac_var
 
22777
    case $ac_val in #(
 
22778
    *${as_nl}*)
 
22779
      case $ac_var in #(
 
22780
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
22781
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
22782
      esac
 
22783
      case $ac_var in #(
 
22784
      _ | IFS | as_nl) ;; #(
 
22785
      *) $as_unset $ac_var ;;
 
22786
      esac ;;
 
22787
    esac
 
22788
  done
 
22789
 
 
22790
  (set) 2>&1 |
 
22791
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22792
    *${as_nl}ac_space=\ *)
 
22793
      # `set' does not quote correctly, so add quotes (double-quote
 
22794
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22795
      sed -n \
 
22796
        "s/'/'\\\\''/g;
 
22797
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22798
      ;; #(
 
22799
    *)
 
22800
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22801
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22802
      ;;
 
22803
    esac |
 
22804
    sort
 
22805
) |
 
22806
  sed '
 
22807
     /^ac_cv_env_/b end
 
22808
     t clear
 
22809
     :clear
 
22810
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22811
     t end
 
22812
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22813
     :end' >>confcache
 
22814
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22815
  if test -w "$cache_file"; then
 
22816
    test "x$cache_file" != "x/dev/null" &&
 
22817
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22818
echo "$as_me: updating cache $cache_file" >&6;}
 
22819
    cat confcache >$cache_file
 
22820
  else
 
22821
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22822
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22823
  fi
 
22824
fi
 
22825
rm -f confcache
 
22826
 
 
22827
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22828
# Let make expand exec_prefix.
 
22829
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22830
 
 
22831
DEFS=-DHAVE_CONFIG_H
 
22832
 
 
22833
ac_libobjs=
 
22834
ac_ltlibobjs=
 
22835
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22836
  # 1. Remove the extension, and $U if already installed.
 
22837
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22838
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
22839
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22840
  #    will be set to the directory where LIBOBJS objects are built.
 
22841
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22842
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22843
done
 
22844
LIBOBJS=$ac_libobjs
 
22845
 
 
22846
LTLIBOBJS=$ac_ltlibobjs
 
22847
 
 
22848
 
 
22849
if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
 
22850
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_CHECK\" was never defined.
 
22851
Usually this means the macro was only invoked conditionally." >&5
 
22852
echo "$as_me: error: conditional \"HAVE_CHECK\" was never defined.
 
22853
Usually this means the macro was only invoked conditionally." >&2;}
 
22854
   { (exit 1); exit 1; }; }
 
22855
fi
 
22856
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
22857
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
22858
Usually this means the macro was only invoked conditionally." >&5
 
22859
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
22860
Usually this means the macro was only invoked conditionally." >&2;}
 
22861
   { (exit 1); exit 1; }; }
 
22862
fi
 
22863
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22864
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22865
Usually this means the macro was only invoked conditionally." >&5
 
22866
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22867
Usually this means the macro was only invoked conditionally." >&2;}
 
22868
   { (exit 1); exit 1; }; }
 
22869
fi
 
22870
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
22871
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
22872
Usually this means the macro was only invoked conditionally." >&5
 
22873
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
22874
Usually this means the macro was only invoked conditionally." >&2;}
 
22875
   { (exit 1); exit 1; }; }
 
22876
fi
 
22877
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
22878
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
22879
Usually this means the macro was only invoked conditionally." >&5
 
22880
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
22881
Usually this means the macro was only invoked conditionally." >&2;}
 
22882
   { (exit 1); exit 1; }; }
 
22883
fi
 
22884
if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
 
22885
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOCS\" was never defined.
 
22886
Usually this means the macro was only invoked conditionally." >&5
 
22887
echo "$as_me: error: conditional \"BUILD_DOCS\" was never defined.
 
22888
Usually this means the macro was only invoked conditionally." >&2;}
 
22889
   { (exit 1); exit 1; }; }
 
22890
fi
 
22891
if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then
 
22892
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_COMPOSITE\" was never defined.
 
22893
Usually this means the macro was only invoked conditionally." >&5
 
22894
echo "$as_me: error: conditional \"BUILD_COMPOSITE\" was never defined.
 
22895
Usually this means the macro was only invoked conditionally." >&2;}
 
22896
   { (exit 1); exit 1; }; }
 
22897
fi
 
22898
if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then
 
22899
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DAMAGE\" was never defined.
 
22900
Usually this means the macro was only invoked conditionally." >&5
 
22901
echo "$as_me: error: conditional \"BUILD_DAMAGE\" was never defined.
 
22902
Usually this means the macro was only invoked conditionally." >&2;}
 
22903
   { (exit 1); exit 1; }; }
 
22904
fi
 
22905
if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then
 
22906
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DPMS\" was never defined.
 
22907
Usually this means the macro was only invoked conditionally." >&5
 
22908
echo "$as_me: error: conditional \"BUILD_DPMS\" was never defined.
 
22909
Usually this means the macro was only invoked conditionally." >&2;}
 
22910
   { (exit 1); exit 1; }; }
 
22911
fi
 
22912
if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then
 
22913
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GLX\" was never defined.
 
22914
Usually this means the macro was only invoked conditionally." >&5
 
22915
echo "$as_me: error: conditional \"BUILD_GLX\" was never defined.
 
22916
Usually this means the macro was only invoked conditionally." >&2;}
 
22917
   { (exit 1); exit 1; }; }
 
22918
fi
 
22919
if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then
 
22920
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RANDR\" was never defined.
 
22921
Usually this means the macro was only invoked conditionally." >&5
 
22922
echo "$as_me: error: conditional \"BUILD_RANDR\" was never defined.
 
22923
Usually this means the macro was only invoked conditionally." >&2;}
 
22924
   { (exit 1); exit 1; }; }
 
22925
fi
 
22926
if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then
 
22927
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RECORD\" was never defined.
 
22928
Usually this means the macro was only invoked conditionally." >&5
 
22929
echo "$as_me: error: conditional \"BUILD_RECORD\" was never defined.
 
22930
Usually this means the macro was only invoked conditionally." >&2;}
 
22931
   { (exit 1); exit 1; }; }
 
22932
fi
 
22933
if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then
 
22934
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RENDER\" was never defined.
 
22935
Usually this means the macro was only invoked conditionally." >&5
 
22936
echo "$as_me: error: conditional \"BUILD_RENDER\" was never defined.
 
22937
Usually this means the macro was only invoked conditionally." >&2;}
 
22938
   { (exit 1); exit 1; }; }
 
22939
fi
 
22940
if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then
 
22941
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_RESOURCE\" was never defined.
 
22942
Usually this means the macro was only invoked conditionally." >&5
 
22943
echo "$as_me: error: conditional \"BUILD_RESOURCE\" was never defined.
 
22944
Usually this means the macro was only invoked conditionally." >&2;}
 
22945
   { (exit 1); exit 1; }; }
 
22946
fi
 
22947
if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then
 
22948
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SCREENSAVER\" was never defined.
 
22949
Usually this means the macro was only invoked conditionally." >&5
 
22950
echo "$as_me: error: conditional \"BUILD_SCREENSAVER\" was never defined.
 
22951
Usually this means the macro was only invoked conditionally." >&2;}
 
22952
   { (exit 1); exit 1; }; }
 
22953
fi
 
22954
if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then
 
22955
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHAPE\" was never defined.
 
22956
Usually this means the macro was only invoked conditionally." >&5
 
22957
echo "$as_me: error: conditional \"BUILD_SHAPE\" was never defined.
 
22958
Usually this means the macro was only invoked conditionally." >&2;}
 
22959
   { (exit 1); exit 1; }; }
 
22960
fi
 
22961
if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then
 
22962
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SHM\" was never defined.
 
22963
Usually this means the macro was only invoked conditionally." >&5
 
22964
echo "$as_me: error: conditional \"BUILD_SHM\" was never defined.
 
22965
Usually this means the macro was only invoked conditionally." >&2;}
 
22966
   { (exit 1); exit 1; }; }
 
22967
fi
 
22968
if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then
 
22969
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SYNC\" was never defined.
 
22970
Usually this means the macro was only invoked conditionally." >&5
 
22971
echo "$as_me: error: conditional \"BUILD_SYNC\" was never defined.
 
22972
Usually this means the macro was only invoked conditionally." >&2;}
 
22973
   { (exit 1); exit 1; }; }
 
22974
fi
 
22975
if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then
 
22976
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XEVIE\" was never defined.
 
22977
Usually this means the macro was only invoked conditionally." >&5
 
22978
echo "$as_me: error: conditional \"BUILD_XEVIE\" was never defined.
 
22979
Usually this means the macro was only invoked conditionally." >&2;}
 
22980
   { (exit 1); exit 1; }; }
 
22981
fi
 
22982
if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then
 
22983
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XFIXES\" was never defined.
 
22984
Usually this means the macro was only invoked conditionally." >&5
 
22985
echo "$as_me: error: conditional \"BUILD_XFIXES\" was never defined.
 
22986
Usually this means the macro was only invoked conditionally." >&2;}
 
22987
   { (exit 1); exit 1; }; }
 
22988
fi
 
22989
if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then
 
22990
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XFREE86_DRI\" was never defined.
 
22991
Usually this means the macro was only invoked conditionally." >&5
 
22992
echo "$as_me: error: conditional \"BUILD_XFREE86_DRI\" was never defined.
 
22993
Usually this means the macro was only invoked conditionally." >&2;}
 
22994
   { (exit 1); exit 1; }; }
 
22995
fi
 
22996
if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then
 
22997
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINERAMA\" was never defined.
 
22998
Usually this means the macro was only invoked conditionally." >&5
 
22999
echo "$as_me: error: conditional \"BUILD_XINERAMA\" was never defined.
 
23000
Usually this means the macro was only invoked conditionally." >&2;}
 
23001
   { (exit 1); exit 1; }; }
 
23002
fi
 
23003
if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then
 
23004
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XINPUT\" was never defined.
 
23005
Usually this means the macro was only invoked conditionally." >&5
 
23006
echo "$as_me: error: conditional \"BUILD_XINPUT\" was never defined.
 
23007
Usually this means the macro was only invoked conditionally." >&2;}
 
23008
   { (exit 1); exit 1; }; }
 
23009
fi
 
23010
if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then
 
23011
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XPRINT\" was never defined.
 
23012
Usually this means the macro was only invoked conditionally." >&5
 
23013
echo "$as_me: error: conditional \"BUILD_XPRINT\" was never defined.
 
23014
Usually this means the macro was only invoked conditionally." >&2;}
 
23015
   { (exit 1); exit 1; }; }
 
23016
fi
 
23017
if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then
 
23018
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SELINUX\" was never defined.
 
23019
Usually this means the macro was only invoked conditionally." >&5
 
23020
echo "$as_me: error: conditional \"BUILD_SELINUX\" was never defined.
 
23021
Usually this means the macro was only invoked conditionally." >&2;}
 
23022
   { (exit 1); exit 1; }; }
 
23023
fi
 
23024
if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then
 
23025
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XTEST\" was never defined.
 
23026
Usually this means the macro was only invoked conditionally." >&5
 
23027
echo "$as_me: error: conditional \"BUILD_XTEST\" was never defined.
 
23028
Usually this means the macro was only invoked conditionally." >&2;}
 
23029
   { (exit 1); exit 1; }; }
 
23030
fi
 
23031
if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then
 
23032
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XV\" was never defined.
 
23033
Usually this means the macro was only invoked conditionally." >&5
 
23034
echo "$as_me: error: conditional \"BUILD_XV\" was never defined.
 
23035
Usually this means the macro was only invoked conditionally." >&2;}
 
23036
   { (exit 1); exit 1; }; }
 
23037
fi
 
23038
if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then
 
23039
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_XVMC\" was never defined.
 
23040
Usually this means the macro was only invoked conditionally." >&5
 
23041
echo "$as_me: error: conditional \"BUILD_XVMC\" was never defined.
 
23042
Usually this means the macro was only invoked conditionally." >&2;}
 
23043
   { (exit 1); exit 1; }; }
 
23044
fi
 
23045
 
 
23046
: ${CONFIG_STATUS=./config.status}
 
23047
ac_clean_files_save=$ac_clean_files
 
23048
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
23049
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
23050
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
23051
cat >$CONFIG_STATUS <<_ACEOF
 
23052
#! $SHELL
 
23053
# Generated by $as_me.
 
23054
# Run this file to recreate the current configuration.
 
23055
# Compiler output produced by configure, useful for debugging
 
23056
# configure, is in config.log if it exists.
 
23057
 
 
23058
debug=false
 
23059
ac_cs_recheck=false
 
23060
ac_cs_silent=false
 
23061
SHELL=\${CONFIG_SHELL-$SHELL}
 
23062
_ACEOF
 
23063
 
 
23064
cat >>$CONFIG_STATUS <<\_ACEOF
 
23065
## --------------------- ##
 
23066
## M4sh Initialization.  ##
 
23067
## --------------------- ##
 
23068
 
 
23069
# Be more Bourne compatible
 
23070
DUALCASE=1; export DUALCASE # for MKS sh
 
23071
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
23072
  emulate sh
 
23073
  NULLCMD=:
 
23074
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
23075
  # is contrary to our usage.  Disable this feature.
 
23076
  alias -g '${1+"$@"}'='"$@"'
 
23077
  setopt NO_GLOB_SUBST
 
23078
else
 
23079
  case `(set -o) 2>/dev/null` in
 
23080
  *posix*) set -o posix ;;
 
23081
esac
 
23082
 
 
23083
fi
 
23084
 
 
23085
 
 
23086
 
 
23087
 
 
23088
# PATH needs CR
 
23089
# Avoid depending upon Character Ranges.
 
23090
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23091
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23092
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23093
as_cr_digits='0123456789'
 
23094
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23095
 
 
23096
# The user is always right.
 
23097
if test "${PATH_SEPARATOR+set}" != set; then
 
23098
  echo "#! /bin/sh" >conf$$.sh
 
23099
  echo  "exit 0"   >>conf$$.sh
 
23100
  chmod +x conf$$.sh
 
23101
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
23102
    PATH_SEPARATOR=';'
 
23103
  else
 
23104
    PATH_SEPARATOR=:
 
23105
  fi
 
23106
  rm -f conf$$.sh
 
23107
fi
 
23108
 
 
23109
# Support unset when possible.
 
23110
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
23111
  as_unset=unset
 
23112
else
 
23113
  as_unset=false
 
23114
fi
 
23115
 
 
23116
 
 
23117
# IFS
 
23118
# We need space, tab and new line, in precisely that order.  Quoting is
 
23119
# there to prevent editors from complaining about space-tab.
 
23120
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
23121
# splitting by setting IFS to empty value.)
 
23122
as_nl='
 
23123
'
 
23124
IFS=" ""        $as_nl"
 
23125
 
 
23126
# Find who we are.  Look in the path if we contain no directory separator.
 
23127
case $0 in
 
23128
  *[\\/]* ) as_myself=$0 ;;
 
23129
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23130
for as_dir in $PATH
 
23131
do
 
23132
  IFS=$as_save_IFS
 
23133
  test -z "$as_dir" && as_dir=.
 
23134
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23135
done
 
23136
IFS=$as_save_IFS
 
23137
 
 
23138
     ;;
 
23139
esac
 
23140
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
23141
# in which case we are not to be found in the path.
 
23142
if test "x$as_myself" = x; then
 
23143
  as_myself=$0
 
23144
fi
 
23145
if test ! -f "$as_myself"; then
 
23146
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
23147
  { (exit 1); exit 1; }
 
23148
fi
 
23149
 
 
23150
# Work around bugs in pre-3.0 UWIN ksh.
 
23151
for as_var in ENV MAIL MAILPATH
 
23152
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23153
done
 
23154
PS1='$ '
 
23155
PS2='> '
 
23156
PS4='+ '
 
23157
 
 
23158
# NLS nuisances.
 
23159
for as_var in \
 
23160
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
23161
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
23162
  LC_TELEPHONE LC_TIME
 
23163
do
 
23164
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
23165
    eval $as_var=C; export $as_var
 
23166
  else
 
23167
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23168
  fi
 
23169
done
 
23170
 
 
23171
# Required to use basename.
 
23172
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23173
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23174
  as_expr=expr
 
23175
else
 
23176
  as_expr=false
 
23177
fi
 
23178
 
 
23179
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
23180
  as_basename=basename
 
23181
else
 
23182
  as_basename=false
 
23183
fi
 
23184
 
 
23185
 
 
23186
# Name of the executable.
 
23187
as_me=`$as_basename -- "$0" ||
 
23188
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23189
         X"$0" : 'X\(//\)$' \| \
 
23190
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
23191
echo X/"$0" |
 
23192
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
23193
            s//\1/
 
23194
            q
 
23195
          }
 
23196
          /^X\/\(\/\/\)$/{
 
23197
            s//\1/
 
23198
            q
 
23199
          }
 
23200
          /^X\/\(\/\).*/{
 
23201
            s//\1/
 
23202
            q
 
23203
          }
 
23204
          s/.*/./; q'`
 
23205
 
 
23206
# CDPATH.
 
23207
$as_unset CDPATH
 
23208
 
 
23209
 
 
23210
 
 
23211
  as_lineno_1=$LINENO
 
23212
  as_lineno_2=$LINENO
 
23213
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23214
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
23215
 
 
23216
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23217
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23218
  # line-number line after each line using $LINENO; the second 'sed'
 
23219
  # does the real work.  The second script uses 'N' to pair each
 
23220
  # line-number line with the line containing $LINENO, and appends
 
23221
  # trailing '-' during substitution so that $LINENO is not a special
 
23222
  # case at line end.
 
23223
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23224
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
23225
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
23226
  sed -n '
 
23227
    p
 
23228
    /[$]LINENO/=
 
23229
  ' <$as_myself |
 
23230
    sed '
 
23231
      s/[$]LINENO.*/&-/
 
23232
      t lineno
 
23233
      b
 
23234
      :lineno
 
23235
      N
 
23236
      :loop
 
23237
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
23238
      t loop
 
23239
      s/-\n.*//
 
23240
    ' >$as_me.lineno &&
 
23241
  chmod +x "$as_me.lineno" ||
 
23242
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
23243
   { (exit 1); exit 1; }; }
 
23244
 
 
23245
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23246
  # (the dirname of $[0] is not the place where we might find the
 
23247
  # original and so on.  Autoconf is especially sensitive to this).
 
23248
  . "./$as_me.lineno"
 
23249
  # Exit status is that of the last command.
 
23250
  exit
 
23251
}
 
23252
 
 
23253
 
 
23254
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
23255
  as_dirname=dirname
 
23256
else
 
23257
  as_dirname=false
 
23258
fi
 
23259
 
 
23260
ECHO_C= ECHO_N= ECHO_T=
 
23261
case `echo -n x` in
 
23262
-n*)
 
23263
  case `echo 'x\c'` in
 
23264
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
23265
  *)   ECHO_C='\c';;
 
23266
  esac;;
 
23267
*)
 
23268
  ECHO_N='-n';;
 
23269
esac
 
23270
 
 
23271
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23272
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23273
  as_expr=expr
 
23274
else
 
23275
  as_expr=false
 
23276
fi
 
23277
 
 
23278
rm -f conf$$ conf$$.exe conf$$.file
 
23279
if test -d conf$$.dir; then
 
23280
  rm -f conf$$.dir/conf$$.file
 
23281
else
 
23282
  rm -f conf$$.dir
 
23283
  mkdir conf$$.dir
 
23284
fi
 
23285
echo >conf$$.file
 
23286
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
23287
  as_ln_s='ln -s'
 
23288
  # ... but there are two gotchas:
 
23289
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
23290
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
23291
  # In both cases, we have to default to `cp -p'.
 
23292
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
23293
    as_ln_s='cp -p'
 
23294
elif ln conf$$.file conf$$ 2>/dev/null; then
 
23295
  as_ln_s=ln
 
23296
else
 
23297
  as_ln_s='cp -p'
 
23298
fi
 
23299
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
23300
rmdir conf$$.dir 2>/dev/null
 
23301
 
 
23302
if mkdir -p . 2>/dev/null; then
 
23303
  as_mkdir_p=:
 
23304
else
 
23305
  test -d ./-p && rmdir ./-p
 
23306
  as_mkdir_p=false
 
23307
fi
 
23308
 
 
23309
if test -x / >/dev/null 2>&1; then
 
23310
  as_test_x='test -x'
 
23311
else
 
23312
  if ls -dL / >/dev/null 2>&1; then
 
23313
    as_ls_L_option=L
 
23314
  else
 
23315
    as_ls_L_option=
 
23316
  fi
 
23317
  as_test_x='
 
23318
    eval sh -c '\''
 
23319
      if test -d "$1"; then
 
23320
        test -d "$1/.";
 
23321
      else
 
23322
        case $1 in
 
23323
        -*)set "./$1";;
 
23324
        esac;
 
23325
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
23326
        ???[sx]*):;;*)false;;esac;fi
 
23327
    '\'' sh
 
23328
  '
 
23329
fi
 
23330
as_executable_p=$as_test_x
 
23331
 
 
23332
# Sed expression to map a string onto a valid CPP name.
 
23333
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23334
 
 
23335
# Sed expression to map a string onto a valid variable name.
 
23336
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23337
 
 
23338
 
 
23339
exec 6>&1
 
23340
 
 
23341
# Save the log message, to keep $[0] and so on meaningful, and to
 
23342
# report actual input values of CONFIG_FILES etc. instead of their
 
23343
# values after options handling.
 
23344
ac_log="
 
23345
This file was extended by libxcb $as_me 1.2, which was
 
23346
generated by GNU Autoconf 2.61.  Invocation command line was
 
23347
 
 
23348
  CONFIG_FILES    = $CONFIG_FILES
 
23349
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23350
  CONFIG_LINKS    = $CONFIG_LINKS
 
23351
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23352
  $ $0 $@
 
23353
 
 
23354
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
23355
"
 
23356
 
 
23357
_ACEOF
 
23358
 
 
23359
cat >>$CONFIG_STATUS <<_ACEOF
 
23360
# Files that config.status was made for.
 
23361
config_files="$ac_config_files"
 
23362
config_headers="$ac_config_headers"
 
23363
config_commands="$ac_config_commands"
 
23364
 
 
23365
_ACEOF
 
23366
 
 
23367
cat >>$CONFIG_STATUS <<\_ACEOF
 
23368
ac_cs_usage="\
 
23369
\`$as_me' instantiates files from templates according to the
 
23370
current configuration.
 
23371
 
 
23372
Usage: $0 [OPTIONS] [FILE]...
 
23373
 
 
23374
  -h, --help       print this help, then exit
 
23375
  -V, --version    print version number and configuration settings, then exit
 
23376
  -q, --quiet      do not print progress messages
 
23377
  -d, --debug      don't remove temporary files
 
23378
      --recheck    update $as_me by reconfiguring in the same conditions
 
23379
  --file=FILE[:TEMPLATE]
 
23380
                   instantiate the configuration file FILE
 
23381
  --header=FILE[:TEMPLATE]
 
23382
                   instantiate the configuration header FILE
 
23383
 
 
23384
Configuration files:
 
23385
$config_files
 
23386
 
 
23387
Configuration headers:
 
23388
$config_headers
 
23389
 
 
23390
Configuration commands:
 
23391
$config_commands
 
23392
 
 
23393
Report bugs to <bug-autoconf@gnu.org>."
 
23394
 
 
23395
_ACEOF
 
23396
cat >>$CONFIG_STATUS <<_ACEOF
 
23397
ac_cs_version="\\
 
23398
libxcb config.status 1.2
 
23399
configured by $0, generated by GNU Autoconf 2.61,
 
23400
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
23401
 
 
23402
Copyright (C) 2006 Free Software Foundation, Inc.
 
23403
This config.status script is free software; the Free Software Foundation
 
23404
gives unlimited permission to copy, distribute and modify it."
 
23405
 
 
23406
ac_pwd='$ac_pwd'
 
23407
srcdir='$srcdir'
 
23408
INSTALL='$INSTALL'
 
23409
MKDIR_P='$MKDIR_P'
 
23410
_ACEOF
 
23411
 
 
23412
cat >>$CONFIG_STATUS <<\_ACEOF
 
23413
# If no file are specified by the user, then we need to provide default
 
23414
# value.  By we need to know if files were specified by the user.
 
23415
ac_need_defaults=:
 
23416
while test $# != 0
 
23417
do
 
23418
  case $1 in
 
23419
  --*=*)
 
23420
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23421
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
23422
    ac_shift=:
 
23423
    ;;
 
23424
  *)
 
23425
    ac_option=$1
 
23426
    ac_optarg=$2
 
23427
    ac_shift=shift
 
23428
    ;;
 
23429
  esac
 
23430
 
 
23431
  case $ac_option in
 
23432
  # Handling of the options.
 
23433
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23434
    ac_cs_recheck=: ;;
 
23435
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
23436
    echo "$ac_cs_version"; exit ;;
 
23437
  --debug | --debu | --deb | --de | --d | -d )
 
23438
    debug=: ;;
 
23439
  --file | --fil | --fi | --f )
 
23440
    $ac_shift
 
23441
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
23442
    ac_need_defaults=false;;
 
23443
  --header | --heade | --head | --hea )
 
23444
    $ac_shift
 
23445
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
23446
    ac_need_defaults=false;;
 
23447
  --he | --h)
 
23448
    # Conflict between --help and --header
 
23449
    { echo "$as_me: error: ambiguous option: $1
 
23450
Try \`$0 --help' for more information." >&2
 
23451
   { (exit 1); exit 1; }; };;
 
23452
  --help | --hel | -h )
 
23453
    echo "$ac_cs_usage"; exit ;;
 
23454
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23455
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23456
    ac_cs_silent=: ;;
 
23457
 
 
23458
  # This is an error.
 
23459
  -*) { echo "$as_me: error: unrecognized option: $1
 
23460
Try \`$0 --help' for more information." >&2
 
23461
   { (exit 1); exit 1; }; } ;;
 
23462
 
 
23463
  *) ac_config_targets="$ac_config_targets $1"
 
23464
     ac_need_defaults=false ;;
 
23465
 
 
23466
  esac
 
23467
  shift
 
23468
done
 
23469
 
 
23470
ac_configure_extra_args=
 
23471
 
 
23472
if $ac_cs_silent; then
 
23473
  exec 6>/dev/null
 
23474
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23475
fi
 
23476
 
 
23477
_ACEOF
 
23478
cat >>$CONFIG_STATUS <<_ACEOF
 
23479
if \$ac_cs_recheck; then
 
23480
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
23481
  CONFIG_SHELL=$SHELL
 
23482
  export CONFIG_SHELL
 
23483
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23484
fi
 
23485
 
 
23486
_ACEOF
 
23487
cat >>$CONFIG_STATUS <<\_ACEOF
 
23488
exec 5>>config.log
 
23489
{
 
23490
  echo
 
23491
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23492
## Running $as_me. ##
 
23493
_ASBOX
 
23494
  echo "$ac_log"
 
23495
} >&5
 
23496
 
 
23497
_ACEOF
 
23498
cat >>$CONFIG_STATUS <<_ACEOF
 
23499
#
 
23500
# INIT-COMMANDS
 
23501
#
 
23502
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
23503
 
 
23504
_ACEOF
 
23505
 
 
23506
cat >>$CONFIG_STATUS <<\_ACEOF
 
23507
 
 
23508
# Handling of arguments.
 
23509
for ac_config_target in $ac_config_targets
 
23510
do
 
23511
  case $ac_config_target in
 
23512
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
23513
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
23514
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23515
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
23516
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
23517
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
23518
    "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;;
 
23519
    "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;;
 
23520
    "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;;
 
23521
    "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;;
 
23522
    "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;;
 
23523
    "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;;
 
23524
    "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;;
 
23525
    "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;;
 
23526
    "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;;
 
23527
    "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;;
 
23528
    "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;;
 
23529
    "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;;
 
23530
    "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;;
 
23531
    "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;;
 
23532
    "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;;
 
23533
    "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;;
 
23534
    "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;;
 
23535
    "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;;
 
23536
    "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;;
 
23537
    "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;;
 
23538
    "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;;
 
23539
    "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;;
 
23540
    "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;;
 
23541
    "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;;
 
23542
 
 
23543
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23544
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23545
   { (exit 1); exit 1; }; };;
 
23546
  esac
 
23547
done
 
23548
 
 
23549
 
 
23550
# If the user did not use the arguments to specify the items to instantiate,
 
23551
# then the envvar interface is used.  Set only those that are not.
 
23552
# We use the long form for the default assignment because of an extremely
 
23553
# bizarre bug on SunOS 4.1.3.
 
23554
if $ac_need_defaults; then
 
23555
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23556
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23557
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
23558
fi
 
23559
 
 
23560
# Have a temporary directory for convenience.  Make it in the build tree
 
23561
# simply because there is no reason against having it here, and in addition,
 
23562
# creating and moving files from /tmp can sometimes cause problems.
 
23563
# Hook for its removal unless debugging.
 
23564
# Note that there is a small window in which the directory will not be cleaned:
 
23565
# after its creation but before its name has been assigned to `$tmp'.
 
23566
$debug ||
 
23567
{
 
23568
  tmp=
 
23569
  trap 'exit_status=$?
 
23570
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23571
' 0
 
23572
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23573
}
 
23574
# Create a (secure) tmp directory for tmp files.
 
23575
 
 
23576
{
 
23577
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23578
  test -n "$tmp" && test -d "$tmp"
 
23579
}  ||
 
23580
{
 
23581
  tmp=./conf$$-$RANDOM
 
23582
  (umask 077 && mkdir "$tmp")
 
23583
} ||
 
23584
{
 
23585
   echo "$me: cannot create a temporary directory in ." >&2
 
23586
   { (exit 1); exit 1; }
 
23587
}
 
23588
 
 
23589
#
 
23590
# Set up the sed scripts for CONFIG_FILES section.
 
23591
#
 
23592
 
 
23593
# No need to generate the scripts if there are no CONFIG_FILES.
 
23594
# This happens for instance when ./config.status config.h
 
23595
if test -n "$CONFIG_FILES"; then
 
23596
 
 
23597
_ACEOF
 
23598
 
 
23599
 
 
23600
 
 
23601
ac_delim='%!_!# '
 
23602
for ac_last_try in false false false false false :; do
 
23603
  cat >conf$$subs.sed <<_ACEOF
 
23604
SHELL!$SHELL$ac_delim
 
23605
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
23606
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
23607
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
23608
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
23609
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
23610
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
23611
exec_prefix!$exec_prefix$ac_delim
 
23612
prefix!$prefix$ac_delim
 
23613
program_transform_name!$program_transform_name$ac_delim
 
23614
bindir!$bindir$ac_delim
 
23615
sbindir!$sbindir$ac_delim
 
23616
libexecdir!$libexecdir$ac_delim
 
23617
datarootdir!$datarootdir$ac_delim
 
23618
datadir!$datadir$ac_delim
 
23619
sysconfdir!$sysconfdir$ac_delim
 
23620
sharedstatedir!$sharedstatedir$ac_delim
 
23621
localstatedir!$localstatedir$ac_delim
 
23622
includedir!$includedir$ac_delim
 
23623
oldincludedir!$oldincludedir$ac_delim
 
23624
docdir!$docdir$ac_delim
 
23625
infodir!$infodir$ac_delim
 
23626
htmldir!$htmldir$ac_delim
 
23627
dvidir!$dvidir$ac_delim
 
23628
pdfdir!$pdfdir$ac_delim
 
23629
psdir!$psdir$ac_delim
 
23630
libdir!$libdir$ac_delim
 
23631
localedir!$localedir$ac_delim
 
23632
mandir!$mandir$ac_delim
 
23633
DEFS!$DEFS$ac_delim
 
23634
ECHO_C!$ECHO_C$ac_delim
 
23635
ECHO_N!$ECHO_N$ac_delim
 
23636
ECHO_T!$ECHO_T$ac_delim
 
23637
LIBS!$LIBS$ac_delim
 
23638
build_alias!$build_alias$ac_delim
 
23639
host_alias!$host_alias$ac_delim
 
23640
target_alias!$target_alias$ac_delim
 
23641
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
23642
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
23643
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
23644
am__isrc!$am__isrc$ac_delim
 
23645
CYGPATH_W!$CYGPATH_W$ac_delim
 
23646
PACKAGE!$PACKAGE$ac_delim
 
23647
VERSION!$VERSION$ac_delim
 
23648
ACLOCAL!$ACLOCAL$ac_delim
 
23649
AUTOCONF!$AUTOCONF$ac_delim
 
23650
AUTOMAKE!$AUTOMAKE$ac_delim
 
23651
AUTOHEADER!$AUTOHEADER$ac_delim
 
23652
MAKEINFO!$MAKEINFO$ac_delim
 
23653
install_sh!$install_sh$ac_delim
 
23654
STRIP!$STRIP$ac_delim
 
23655
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
23656
mkdir_p!$mkdir_p$ac_delim
 
23657
AWK!$AWK$ac_delim
 
23658
SET_MAKE!$SET_MAKE$ac_delim
 
23659
am__leading_dot!$am__leading_dot$ac_delim
 
23660
AMTAR!$AMTAR$ac_delim
 
23661
am__tar!$am__tar$ac_delim
 
23662
am__untar!$am__untar$ac_delim
 
23663
PYTHON!$PYTHON$ac_delim
 
23664
PYTHON_VERSION!$PYTHON_VERSION$ac_delim
 
23665
PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
 
23666
PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
 
23667
PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
 
23668
pythondir!$pythondir$ac_delim
 
23669
pkgpythondir!$pkgpythondir$ac_delim
 
23670
pyexecdir!$pyexecdir$ac_delim
 
23671
pkgpyexecdir!$pkgpyexecdir$ac_delim
 
23672
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
23673
CHECK_CFLAGS!$CHECK_CFLAGS$ac_delim
 
23674
CHECK_LIBS!$CHECK_LIBS$ac_delim
 
23675
HAVE_CHECK_TRUE!$HAVE_CHECK_TRUE$ac_delim
 
23676
HAVE_CHECK_FALSE!$HAVE_CHECK_FALSE$ac_delim
 
23677
build!$build$ac_delim
 
23678
build_cpu!$build_cpu$ac_delim
 
23679
build_vendor!$build_vendor$ac_delim
 
23680
build_os!$build_os$ac_delim
 
23681
host!$host$ac_delim
 
23682
host_cpu!$host_cpu$ac_delim
 
23683
host_vendor!$host_vendor$ac_delim
 
23684
host_os!$host_os$ac_delim
 
23685
CC!$CC$ac_delim
 
23686
CFLAGS!$CFLAGS$ac_delim
 
23687
LDFLAGS!$LDFLAGS$ac_delim
 
23688
CPPFLAGS!$CPPFLAGS$ac_delim
 
23689
ac_ct_CC!$ac_ct_CC$ac_delim
 
23690
EXEEXT!$EXEEXT$ac_delim
 
23691
OBJEXT!$OBJEXT$ac_delim
 
23692
DEPDIR!$DEPDIR$ac_delim
 
23693
am__include!$am__include$ac_delim
 
23694
am__quote!$am__quote$ac_delim
 
23695
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
23696
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
23697
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
23698
CCDEPMODE!$CCDEPMODE$ac_delim
 
23699
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
23700
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
23701
_ACEOF
 
23702
 
 
23703
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
23704
    break
 
23705
  elif $ac_last_try; then
 
23706
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23707
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23708
   { (exit 1); exit 1; }; }
 
23709
  else
 
23710
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23711
  fi
 
23712
done
 
23713
 
 
23714
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23715
if test -n "$ac_eof"; then
 
23716
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23717
  ac_eof=`expr $ac_eof + 1`
 
23718
fi
 
23719
 
 
23720
cat >>$CONFIG_STATUS <<_ACEOF
 
23721
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
23722
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
23723
_ACEOF
 
23724
sed '
 
23725
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23726
s/^/s,@/; s/!/@,|#_!!_#|/
 
23727
:n
 
23728
t n
 
23729
s/'"$ac_delim"'$/,g/; t
 
23730
s/$/\\/; p
 
23731
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23732
' >>$CONFIG_STATUS <conf$$subs.sed
 
23733
rm -f conf$$subs.sed
 
23734
cat >>$CONFIG_STATUS <<_ACEOF
 
23735
CEOF$ac_eof
 
23736
_ACEOF
 
23737
 
 
23738
 
 
23739
ac_delim='%!_!# '
 
23740
for ac_last_try in false false false false false :; do
 
23741
  cat >conf$$subs.sed <<_ACEOF
 
23742
SED!$SED$ac_delim
 
23743
GREP!$GREP$ac_delim
 
23744
EGREP!$EGREP$ac_delim
 
23745
LN_S!$LN_S$ac_delim
 
23746
ECHO!$ECHO$ac_delim
 
23747
AR!$AR$ac_delim
 
23748
RANLIB!$RANLIB$ac_delim
 
23749
DSYMUTIL!$DSYMUTIL$ac_delim
 
23750
NMEDIT!$NMEDIT$ac_delim
 
23751
CPP!$CPP$ac_delim
 
23752
CXX!$CXX$ac_delim
 
23753
CXXFLAGS!$CXXFLAGS$ac_delim
 
23754
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
23755
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
23756
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
23757
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
23758
CXXCPP!$CXXCPP$ac_delim
 
23759
F77!$F77$ac_delim
 
23760
FFLAGS!$FFLAGS$ac_delim
 
23761
ac_ct_F77!$ac_ct_F77$ac_delim
 
23762
LIBTOOL!$LIBTOOL$ac_delim
 
23763
XSLTPROC!$XSLTPROC$ac_delim
 
23764
HTML_CHECK_RESULT!$HTML_CHECK_RESULT$ac_delim
 
23765
XCBPROTO_CFLAGS!$XCBPROTO_CFLAGS$ac_delim
 
23766
XCBPROTO_LIBS!$XCBPROTO_LIBS$ac_delim
 
23767
NEEDED_CFLAGS!$NEEDED_CFLAGS$ac_delim
 
23768
NEEDED_LIBS!$NEEDED_LIBS$ac_delim
 
23769
XDMCP_CFLAGS!$XDMCP_CFLAGS$ac_delim
 
23770
XDMCP_LIBS!$XDMCP_LIBS$ac_delim
 
23771
NEEDED!$NEEDED$ac_delim
 
23772
XCBPROTO_XCBINCLUDEDIR!$XCBPROTO_XCBINCLUDEDIR$ac_delim
 
23773
XCBPROTO_XCBPYTHONDIR!$XCBPROTO_XCBPYTHONDIR$ac_delim
 
23774
xcbincludedir!$xcbincludedir$ac_delim
 
23775
CWARNFLAGS!$CWARNFLAGS$ac_delim
 
23776
BUILD_DOCS!$BUILD_DOCS$ac_delim
 
23777
DOXYGEN!$DOXYGEN$ac_delim
 
23778
BUILD_DOCS_TRUE!$BUILD_DOCS_TRUE$ac_delim
 
23779
BUILD_DOCS_FALSE!$BUILD_DOCS_FALSE$ac_delim
 
23780
BUILD_COMPOSITE_TRUE!$BUILD_COMPOSITE_TRUE$ac_delim
 
23781
BUILD_COMPOSITE_FALSE!$BUILD_COMPOSITE_FALSE$ac_delim
 
23782
BUILD_DAMAGE_TRUE!$BUILD_DAMAGE_TRUE$ac_delim
 
23783
BUILD_DAMAGE_FALSE!$BUILD_DAMAGE_FALSE$ac_delim
 
23784
BUILD_DPMS_TRUE!$BUILD_DPMS_TRUE$ac_delim
 
23785
BUILD_DPMS_FALSE!$BUILD_DPMS_FALSE$ac_delim
 
23786
BUILD_GLX_TRUE!$BUILD_GLX_TRUE$ac_delim
 
23787
BUILD_GLX_FALSE!$BUILD_GLX_FALSE$ac_delim
 
23788
BUILD_RANDR_TRUE!$BUILD_RANDR_TRUE$ac_delim
 
23789
BUILD_RANDR_FALSE!$BUILD_RANDR_FALSE$ac_delim
 
23790
BUILD_RECORD_TRUE!$BUILD_RECORD_TRUE$ac_delim
 
23791
BUILD_RECORD_FALSE!$BUILD_RECORD_FALSE$ac_delim
 
23792
BUILD_RENDER_TRUE!$BUILD_RENDER_TRUE$ac_delim
 
23793
BUILD_RENDER_FALSE!$BUILD_RENDER_FALSE$ac_delim
 
23794
BUILD_RESOURCE_TRUE!$BUILD_RESOURCE_TRUE$ac_delim
 
23795
BUILD_RESOURCE_FALSE!$BUILD_RESOURCE_FALSE$ac_delim
 
23796
BUILD_SCREENSAVER_TRUE!$BUILD_SCREENSAVER_TRUE$ac_delim
 
23797
BUILD_SCREENSAVER_FALSE!$BUILD_SCREENSAVER_FALSE$ac_delim
 
23798
BUILD_SHAPE_TRUE!$BUILD_SHAPE_TRUE$ac_delim
 
23799
BUILD_SHAPE_FALSE!$BUILD_SHAPE_FALSE$ac_delim
 
23800
BUILD_SHM_TRUE!$BUILD_SHM_TRUE$ac_delim
 
23801
BUILD_SHM_FALSE!$BUILD_SHM_FALSE$ac_delim
 
23802
BUILD_SYNC_TRUE!$BUILD_SYNC_TRUE$ac_delim
 
23803
BUILD_SYNC_FALSE!$BUILD_SYNC_FALSE$ac_delim
 
23804
BUILD_XEVIE_TRUE!$BUILD_XEVIE_TRUE$ac_delim
 
23805
BUILD_XEVIE_FALSE!$BUILD_XEVIE_FALSE$ac_delim
 
23806
BUILD_XFIXES_TRUE!$BUILD_XFIXES_TRUE$ac_delim
 
23807
BUILD_XFIXES_FALSE!$BUILD_XFIXES_FALSE$ac_delim
 
23808
BUILD_XFREE86_DRI_TRUE!$BUILD_XFREE86_DRI_TRUE$ac_delim
 
23809
BUILD_XFREE86_DRI_FALSE!$BUILD_XFREE86_DRI_FALSE$ac_delim
 
23810
BUILD_XINERAMA_TRUE!$BUILD_XINERAMA_TRUE$ac_delim
 
23811
BUILD_XINERAMA_FALSE!$BUILD_XINERAMA_FALSE$ac_delim
 
23812
BUILD_XINPUT_TRUE!$BUILD_XINPUT_TRUE$ac_delim
 
23813
BUILD_XINPUT_FALSE!$BUILD_XINPUT_FALSE$ac_delim
 
23814
BUILD_XPRINT_TRUE!$BUILD_XPRINT_TRUE$ac_delim
 
23815
BUILD_XPRINT_FALSE!$BUILD_XPRINT_FALSE$ac_delim
 
23816
BUILD_SELINUX_TRUE!$BUILD_SELINUX_TRUE$ac_delim
 
23817
BUILD_SELINUX_FALSE!$BUILD_SELINUX_FALSE$ac_delim
 
23818
BUILD_XTEST_TRUE!$BUILD_XTEST_TRUE$ac_delim
 
23819
BUILD_XTEST_FALSE!$BUILD_XTEST_FALSE$ac_delim
 
23820
BUILD_XV_TRUE!$BUILD_XV_TRUE$ac_delim
 
23821
BUILD_XV_FALSE!$BUILD_XV_FALSE$ac_delim
 
23822
BUILD_XVMC_TRUE!$BUILD_XVMC_TRUE$ac_delim
 
23823
BUILD_XVMC_FALSE!$BUILD_XVMC_FALSE$ac_delim
 
23824
LAUNCHD!$LAUNCHD$ac_delim
 
23825
LIBOBJS!$LIBOBJS$ac_delim
 
23826
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
23827
_ACEOF
 
23828
 
 
23829
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
 
23830
    break
 
23831
  elif $ac_last_try; then
 
23832
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23833
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23834
   { (exit 1); exit 1; }; }
 
23835
  else
 
23836
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23837
  fi
 
23838
done
 
23839
 
 
23840
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
23841
if test -n "$ac_eof"; then
 
23842
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
23843
  ac_eof=`expr $ac_eof + 1`
 
23844
fi
 
23845
 
 
23846
cat >>$CONFIG_STATUS <<_ACEOF
 
23847
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
23848
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
23849
_ACEOF
 
23850
sed '
 
23851
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
23852
s/^/s,@/; s/!/@,|#_!!_#|/
 
23853
:n
 
23854
t n
 
23855
s/'"$ac_delim"'$/,g/; t
 
23856
s/$/\\/; p
 
23857
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
23858
' >>$CONFIG_STATUS <conf$$subs.sed
 
23859
rm -f conf$$subs.sed
 
23860
cat >>$CONFIG_STATUS <<_ACEOF
 
23861
:end
 
23862
s/|#_!!_#|//g
 
23863
CEOF$ac_eof
 
23864
_ACEOF
 
23865
 
 
23866
 
 
23867
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
23868
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23869
# trailing colons and then remove the whole line if VPATH becomes empty
 
23870
# (actually we leave an empty line to preserve line numbers).
 
23871
if test "x$srcdir" = x.; then
 
23872
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
23873
s/:*\$(srcdir):*/:/
 
23874
s/:*\${srcdir}:*/:/
 
23875
s/:*@srcdir@:*/:/
 
23876
s/^\([^=]*=[     ]*\):*/\1/
 
23877
s/:*$//
 
23878
s/^[^=]*=[       ]*$//
 
23879
}'
 
23880
fi
 
23881
 
 
23882
cat >>$CONFIG_STATUS <<\_ACEOF
 
23883
fi # test -n "$CONFIG_FILES"
 
23884
 
 
23885
 
 
23886
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
23887
do
 
23888
  case $ac_tag in
 
23889
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23890
  esac
 
23891
  case $ac_mode$ac_tag in
 
23892
  :[FHL]*:*);;
 
23893
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
23894
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
23895
   { (exit 1); exit 1; }; };;
 
23896
  :[FH]-) ac_tag=-:-;;
 
23897
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23898
  esac
 
23899
  ac_save_IFS=$IFS
 
23900
  IFS=:
 
23901
  set x $ac_tag
 
23902
  IFS=$ac_save_IFS
 
23903
  shift
 
23904
  ac_file=$1
 
23905
  shift
 
23906
 
 
23907
  case $ac_mode in
 
23908
  :L) ac_source=$1;;
 
23909
  :[FH])
 
23910
    ac_file_inputs=
 
23911
    for ac_f
 
23912
    do
 
23913
      case $ac_f in
 
23914
      -) ac_f="$tmp/stdin";;
 
23915
      *) # Look for the file first in the build tree, then in the source tree
 
23916
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23917
         # because $ac_f cannot contain `:'.
 
23918
         test -f "$ac_f" ||
 
23919
           case $ac_f in
 
23920
           [\\/$]*) false;;
 
23921
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23922
           esac ||
 
23923
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
23924
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
23925
   { (exit 1); exit 1; }; };;
 
23926
      esac
 
23927
      ac_file_inputs="$ac_file_inputs $ac_f"
 
23928
    done
 
23929
 
 
23930
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23931
    # use $as_me), people would be surprised to read:
 
23932
    #    /* config.h.  Generated by config.status.  */
 
23933
    configure_input="Generated from "`IFS=:
 
23934
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
23935
    if test x"$ac_file" != x-; then
 
23936
      configure_input="$ac_file.  $configure_input"
 
23937
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
23938
echo "$as_me: creating $ac_file" >&6;}
 
23939
    fi
 
23940
 
 
23941
    case $ac_tag in
 
23942
    *:-:* | *:-) cat >"$tmp/stdin";;
 
23943
    esac
 
23944
    ;;
 
23945
  esac
 
23946
 
 
23947
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23948
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23949
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23950
         X"$ac_file" : 'X\(//\)$' \| \
 
23951
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23952
echo X"$ac_file" |
 
23953
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23954
            s//\1/
 
23955
            q
 
23956
          }
 
23957
          /^X\(\/\/\)[^/].*/{
 
23958
            s//\1/
 
23959
            q
 
23960
          }
 
23961
          /^X\(\/\/\)$/{
 
23962
            s//\1/
 
23963
            q
 
23964
          }
 
23965
          /^X\(\/\).*/{
 
23966
            s//\1/
 
23967
            q
 
23968
          }
 
23969
          s/.*/./; q'`
 
23970
  { as_dir="$ac_dir"
 
23971
  case $as_dir in #(
 
23972
  -*) as_dir=./$as_dir;;
 
23973
  esac
 
23974
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23975
    as_dirs=
 
23976
    while :; do
 
23977
      case $as_dir in #(
 
23978
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
23979
      *) as_qdir=$as_dir;;
 
23980
      esac
 
23981
      as_dirs="'$as_qdir' $as_dirs"
 
23982
      as_dir=`$as_dirname -- "$as_dir" ||
 
23983
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23984
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23985
         X"$as_dir" : 'X\(//\)$' \| \
 
23986
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23987
echo X"$as_dir" |
 
23988
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23989
            s//\1/
 
23990
            q
 
23991
          }
 
23992
          /^X\(\/\/\)[^/].*/{
 
23993
            s//\1/
 
23994
            q
 
23995
          }
 
23996
          /^X\(\/\/\)$/{
 
23997
            s//\1/
 
23998
            q
 
23999
          }
 
24000
          /^X\(\/\).*/{
 
24001
            s//\1/
 
24002
            q
 
24003
          }
 
24004
          s/.*/./; q'`
 
24005
      test -d "$as_dir" && break
 
24006
    done
 
24007
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24008
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
24009
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
24010
   { (exit 1); exit 1; }; }; }
 
24011
  ac_builddir=.
 
24012
 
 
24013
case "$ac_dir" in
 
24014
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
24015
*)
 
24016
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24017
  # A ".." for each directory in $ac_dir_suffix.
 
24018
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
24019
  case $ac_top_builddir_sub in
 
24020
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
24021
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
24022
  esac ;;
 
24023
esac
 
24024
ac_abs_top_builddir=$ac_pwd
 
24025
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
24026
# for backward compatibility:
 
24027
ac_top_builddir=$ac_top_build_prefix
 
24028
 
 
24029
case $srcdir in
 
24030
  .)  # We are building in place.
 
24031
    ac_srcdir=.
 
24032
    ac_top_srcdir=$ac_top_builddir_sub
 
24033
    ac_abs_top_srcdir=$ac_pwd ;;
 
24034
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
24035
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24036
    ac_top_srcdir=$srcdir
 
24037
    ac_abs_top_srcdir=$srcdir ;;
 
24038
  *) # Relative name.
 
24039
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
24040
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
24041
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
24042
esac
 
24043
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
24044
 
 
24045
 
 
24046
  case $ac_mode in
 
24047
  :F)
 
24048
  #
 
24049
  # CONFIG_FILE
 
24050
  #
 
24051
 
 
24052
  case $INSTALL in
 
24053
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
24054
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
24055
  esac
 
24056
  ac_MKDIR_P=$MKDIR_P
 
24057
  case $MKDIR_P in
 
24058
  [\\/$]* | ?:[\\/]* ) ;;
 
24059
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
24060
  esac
 
24061
_ACEOF
 
24062
 
 
24063
cat >>$CONFIG_STATUS <<\_ACEOF
 
24064
# If the template does not know about datarootdir, expand it.
 
24065
# FIXME: This hack should be removed a few years after 2.60.
 
24066
ac_datarootdir_hack=; ac_datarootdir_seen=
 
24067
 
 
24068
case `sed -n '/datarootdir/ {
 
24069
  p
 
24070
  q
 
24071
}
 
24072
/@datadir@/p
 
24073
/@docdir@/p
 
24074
/@infodir@/p
 
24075
/@localedir@/p
 
24076
/@mandir@/p
 
24077
' $ac_file_inputs` in
 
24078
*datarootdir*) ac_datarootdir_seen=yes;;
 
24079
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
24080
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
24081
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
24082
_ACEOF
 
24083
cat >>$CONFIG_STATUS <<_ACEOF
 
24084
  ac_datarootdir_hack='
 
24085
  s&@datadir@&$datadir&g
 
24086
  s&@docdir@&$docdir&g
 
24087
  s&@infodir@&$infodir&g
 
24088
  s&@localedir@&$localedir&g
 
24089
  s&@mandir@&$mandir&g
 
24090
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
24091
esac
 
24092
_ACEOF
 
24093
 
 
24094
# Neutralize VPATH when `$srcdir' = `.'.
 
24095
# Shell code in configure.ac might set extrasub.
 
24096
# FIXME: do we really want to maintain this feature?
 
24097
cat >>$CONFIG_STATUS <<_ACEOF
 
24098
  sed "$ac_vpsub
 
24099
$extrasub
 
24100
_ACEOF
 
24101
cat >>$CONFIG_STATUS <<\_ACEOF
 
24102
:t
 
24103
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
24104
s&@configure_input@&$configure_input&;t t
 
24105
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
24106
s&@srcdir@&$ac_srcdir&;t t
 
24107
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
24108
s&@top_srcdir@&$ac_top_srcdir&;t t
 
24109
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
24110
s&@builddir@&$ac_builddir&;t t
 
24111
s&@abs_builddir@&$ac_abs_builddir&;t t
 
24112
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
24113
s&@INSTALL@&$ac_INSTALL&;t t
 
24114
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
24115
$ac_datarootdir_hack
 
24116
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
24117
 
 
24118
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
24119
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
24120
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
24121
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24122
which seems to be undefined.  Please make sure it is defined." >&5
 
24123
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24124
which seems to be undefined.  Please make sure it is defined." >&2;}
 
24125
 
 
24126
  rm -f "$tmp/stdin"
 
24127
  case $ac_file in
 
24128
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
24129
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
24130
  esac
 
24131
 ;;
 
24132
  :H)
 
24133
  #
 
24134
  # CONFIG_HEADER
 
24135
  #
 
24136
_ACEOF
 
24137
 
 
24138
# Transform confdefs.h into a sed script `conftest.defines', that
 
24139
# substitutes the proper values into config.h.in to produce config.h.
 
24140
rm -f conftest.defines conftest.tail
 
24141
# First, append a space to every undef/define line, to ease matching.
 
24142
echo 's/$/ /' >conftest.defines
 
24143
# Then, protect against being on the right side of a sed subst, or in
 
24144
# an unquoted here document, in config.status.  If some macros were
 
24145
# called several times there might be several #defines for the same
 
24146
# symbol, which is useless.  But do not sort them, since the last
 
24147
# AC_DEFINE must be honored.
 
24148
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
24149
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
24150
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
24151
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
24152
# just an empty string.
 
24153
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
24154
ac_dB='\\)[      (].*,\\1define\\2'
 
24155
ac_dC=' '
 
24156
ac_dD=' ,'
 
24157
 
 
24158
uniq confdefs.h |
 
24159
  sed -n '
 
24160
        t rset
 
24161
        :rset
 
24162
        s/^[     ]*#[    ]*define[       ][      ]*//
 
24163
        t ok
 
24164
        d
 
24165
        :ok
 
24166
        s/[\\&,]/\\&/g
 
24167
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
24168
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
24169
  ' >>conftest.defines
 
24170
 
 
24171
# Remove the space that was appended to ease matching.
 
24172
# Then replace #undef with comments.  This is necessary, for
 
24173
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
24174
# on some systems where configure will not decide to define it.
 
24175
# (The regexp can be short, since the line contains either #define or #undef.)
 
24176
echo 's/ $//
 
24177
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
24178
 
 
24179
# Break up conftest.defines:
 
24180
ac_max_sed_lines=50
 
24181
 
 
24182
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
24183
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
24184
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
24185
# et cetera.
 
24186
ac_in='$ac_file_inputs'
 
24187
ac_out='"$tmp/out1"'
 
24188
ac_nxt='"$tmp/out2"'
 
24189
 
 
24190
while :
 
24191
do
 
24192
  # Write a here document:
 
24193
    cat >>$CONFIG_STATUS <<_ACEOF
 
24194
    # First, check the format of the line:
 
24195
    cat >"\$tmp/defines.sed" <<\\CEOF
 
24196
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
24197
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
24198
b
 
24199
:def
 
24200
_ACEOF
 
24201
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
24202
  echo 'CEOF
 
24203
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
24204
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
24205
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
24206
  grep . conftest.tail >/dev/null || break
 
24207
  rm -f conftest.defines
 
24208
  mv conftest.tail conftest.defines
 
24209
done
 
24210
rm -f conftest.defines conftest.tail
 
24211
 
 
24212
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
24213
cat >>$CONFIG_STATUS <<\_ACEOF
 
24214
  if test x"$ac_file" != x-; then
 
24215
    echo "/* $configure_input  */" >"$tmp/config.h"
 
24216
    cat "$ac_result" >>"$tmp/config.h"
 
24217
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
24218
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
24219
echo "$as_me: $ac_file is unchanged" >&6;}
 
24220
    else
 
24221
      rm -f $ac_file
 
24222
      mv "$tmp/config.h" $ac_file
 
24223
    fi
 
24224
  else
 
24225
    echo "/* $configure_input  */"
 
24226
    cat "$ac_result"
 
24227
  fi
 
24228
  rm -f "$tmp/out12"
 
24229
# Compute $ac_file's index in $config_headers.
 
24230
_am_arg=$ac_file
 
24231
_am_stamp_count=1
 
24232
for _am_header in $config_headers :; do
 
24233
  case $_am_header in
 
24234
    $_am_arg | $_am_arg:* )
 
24235
      break ;;
 
24236
    * )
 
24237
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
24238
  esac
 
24239
done
 
24240
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
24241
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24242
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
24243
         X"$_am_arg" : 'X\(//\)$' \| \
 
24244
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
24245
echo X"$_am_arg" |
 
24246
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24247
            s//\1/
 
24248
            q
 
24249
          }
 
24250
          /^X\(\/\/\)[^/].*/{
 
24251
            s//\1/
 
24252
            q
 
24253
          }
 
24254
          /^X\(\/\/\)$/{
 
24255
            s//\1/
 
24256
            q
 
24257
          }
 
24258
          /^X\(\/\).*/{
 
24259
            s//\1/
 
24260
            q
 
24261
          }
 
24262
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
24263
 ;;
 
24264
 
 
24265
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
24266
echo "$as_me: executing $ac_file commands" >&6;}
 
24267
 ;;
 
24268
  esac
 
24269
 
 
24270
 
 
24271
  case $ac_file$ac_mode in
 
24272
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
24273
  # Strip MF so we end up with the name of the file.
 
24274
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
24275
  # Check whether this is an Automake generated Makefile or not.
 
24276
  # We used to match only the files named `Makefile.in', but
 
24277
  # some people rename them; so instead we look at the file content.
 
24278
  # Grep'ing the first line is not enough: some people post-process
 
24279
  # each Makefile.in and add a new line on top of each file to say so.
 
24280
  # Grep'ing the whole file is not good either: AIX grep has a line
 
24281
  # limit of 2048, but all sed's we know have understand at least 4000.
 
24282
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
24283
    dirpart=`$as_dirname -- "$mf" ||
 
24284
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24285
         X"$mf" : 'X\(//\)[^/]' \| \
 
24286
         X"$mf" : 'X\(//\)$' \| \
 
24287
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
24288
echo X"$mf" |
 
24289
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24290
            s//\1/
 
24291
            q
 
24292
          }
 
24293
          /^X\(\/\/\)[^/].*/{
 
24294
            s//\1/
 
24295
            q
 
24296
          }
 
24297
          /^X\(\/\/\)$/{
 
24298
            s//\1/
 
24299
            q
 
24300
          }
 
24301
          /^X\(\/\).*/{
 
24302
            s//\1/
 
24303
            q
 
24304
          }
 
24305
          s/.*/./; q'`
 
24306
  else
 
24307
    continue
 
24308
  fi
 
24309
  # Extract the definition of DEPDIR, am__include, and am__quote
 
24310
  # from the Makefile without running `make'.
 
24311
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
24312
  test -z "$DEPDIR" && continue
 
24313
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
24314
  test -z "am__include" && continue
 
24315
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
24316
  # When using ansi2knr, U may be empty or an underscore; expand it
 
24317
  U=`sed -n 's/^U = //p' < "$mf"`
 
24318
  # Find all dependency output files, they are included files with
 
24319
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
24320
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
24321
  # expansion.
 
24322
  for file in `sed -n "
 
24323
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
24324
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
24325
    # Make sure the directory exists.
 
24326
    test -f "$dirpart/$file" && continue
 
24327
    fdir=`$as_dirname -- "$file" ||
 
24328
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24329
         X"$file" : 'X\(//\)[^/]' \| \
 
24330
         X"$file" : 'X\(//\)$' \| \
 
24331
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
24332
echo X"$file" |
 
24333
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24334
            s//\1/
 
24335
            q
 
24336
          }
 
24337
          /^X\(\/\/\)[^/].*/{
 
24338
            s//\1/
 
24339
            q
 
24340
          }
 
24341
          /^X\(\/\/\)$/{
 
24342
            s//\1/
 
24343
            q
 
24344
          }
 
24345
          /^X\(\/\).*/{
 
24346
            s//\1/
 
24347
            q
 
24348
          }
 
24349
          s/.*/./; q'`
 
24350
    { as_dir=$dirpart/$fdir
 
24351
  case $as_dir in #(
 
24352
  -*) as_dir=./$as_dir;;
 
24353
  esac
 
24354
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
24355
    as_dirs=
 
24356
    while :; do
 
24357
      case $as_dir in #(
 
24358
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
24359
      *) as_qdir=$as_dir;;
 
24360
      esac
 
24361
      as_dirs="'$as_qdir' $as_dirs"
 
24362
      as_dir=`$as_dirname -- "$as_dir" ||
 
24363
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24364
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24365
         X"$as_dir" : 'X\(//\)$' \| \
 
24366
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
24367
echo X"$as_dir" |
 
24368
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
24369
            s//\1/
 
24370
            q
 
24371
          }
 
24372
          /^X\(\/\/\)[^/].*/{
 
24373
            s//\1/
 
24374
            q
 
24375
          }
 
24376
          /^X\(\/\/\)$/{
 
24377
            s//\1/
 
24378
            q
 
24379
          }
 
24380
          /^X\(\/\).*/{
 
24381
            s//\1/
 
24382
            q
 
24383
          }
 
24384
          s/.*/./; q'`
 
24385
      test -d "$as_dir" && break
 
24386
    done
 
24387
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
24388
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
24389
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
24390
   { (exit 1); exit 1; }; }; }
 
24391
    # echo "creating $dirpart/$file"
 
24392
    echo '# dummy' > "$dirpart/$file"
 
24393
  done
 
24394
done
 
24395
 ;;
 
24396
 
 
24397
  esac
 
24398
done # for ac_tag
 
24399
 
 
24400
 
 
24401
{ (exit 0); exit 0; }
 
24402
_ACEOF
 
24403
chmod +x $CONFIG_STATUS
 
24404
ac_clean_files=$ac_clean_files_save
 
24405
 
 
24406
 
 
24407
# configure is writing to config.log, and then calls config.status.
 
24408
# config.status does its own redirection, appending to config.log.
 
24409
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24410
# by configure, so config.status won't be able to write to it; its
 
24411
# output is simply discarded.  So we exec the FD to /dev/null,
 
24412
# effectively closing config.log, so it can be properly (re)opened and
 
24413
# appended to by config.status.  When coming back to configure, we
 
24414
# need to make the FD available again.
 
24415
if test "$no_create" != yes; then
 
24416
  ac_cs_success=:
 
24417
  ac_config_status_args=
 
24418
  test "$silent" = yes &&
 
24419
    ac_config_status_args="$ac_config_status_args --quiet"
 
24420
  exec 5>/dev/null
 
24421
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24422
  exec 5>>config.log
 
24423
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24424
  # would make configure fail if this is the last instruction.
 
24425
  $ac_cs_success || { (exit 1); exit 1; }
 
24426
fi
 
24427
 
 
24428
 
 
24429
 
 
24430
echo ""
 
24431
echo "  Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}"
 
24432
echo ""
 
24433
echo "  Configuration"
 
24434
echo "    XDM support.........: ${have_xdmcp}"
 
24435
echo "    Build unit tests....: ${HAVE_CHECK}"
 
24436
echo "    XCB buffer size.....: ${xcb_queue_buffer_size}"
 
24437
echo ""
 
24438
echo "  Used CFLAGS:"
 
24439
echo "    CPPFLAGS............: ${CPPFLAGS}"
 
24440
echo "    CFLAGS..............: ${CFLAGS}"
 
24441
echo "    Warning CFLAGS......: ${CWARNFLAGS}"
 
24442
echo ""
 
24443
echo "  Installation:"
 
24444
echo "    Prefix..............: ${prefix}"
 
24445
echo ""