~ubuntu-branches/ubuntu/karmic/xserver-xorg-input-synaptics/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2009-01-26 09:08:10 UTC
  • Revision ID: james.westby@ubuntu.com-20090126090810-w8o8kcse5zqwwzae
Tags: upstream-0.99.3
ImportĀ upstreamĀ versionĀ 0.99.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for xf86-input-synaptics 0.99.3.
 
4
#
 
5
# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
  # Pre-4.2 versions of Zsh do 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
as_nl='
 
43
'
 
44
export as_nl
 
45
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
46
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
47
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
48
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
49
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
50
  as_echo='printf %s\n'
 
51
  as_echo_n='printf %s'
 
52
else
 
53
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
54
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
55
    as_echo_n='/usr/ucb/echo -n'
 
56
  else
 
57
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
58
    as_echo_n_body='eval
 
59
      arg=$1;
 
60
      case $arg in
 
61
      *"$as_nl"*)
 
62
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
63
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
64
      esac;
 
65
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
66
    '
 
67
    export as_echo_n_body
 
68
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
69
  fi
 
70
  export as_echo_body
 
71
  as_echo='sh -c $as_echo_body as_echo'
 
72
fi
 
73
 
 
74
# The user is always right.
 
75
if test "${PATH_SEPARATOR+set}" != set; then
 
76
  PATH_SEPARATOR=:
 
77
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
78
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
79
      PATH_SEPARATOR=';'
 
80
  }
 
81
fi
 
82
 
 
83
# Support unset when possible.
 
84
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
85
  as_unset=unset
 
86
else
 
87
  as_unset=false
 
88
fi
 
89
 
 
90
 
 
91
# IFS
 
92
# We need space, tab and new line, in precisely that order.  Quoting is
 
93
# there to prevent editors from complaining about space-tab.
 
94
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
95
# splitting by setting IFS to empty value.)
 
96
IFS=" ""        $as_nl"
 
97
 
 
98
# Find who we are.  Look in the path if we contain no directory separator.
 
99
case $0 in
 
100
  *[\\/]* ) as_myself=$0 ;;
 
101
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
102
for as_dir in $PATH
 
103
do
 
104
  IFS=$as_save_IFS
 
105
  test -z "$as_dir" && as_dir=.
 
106
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
107
done
 
108
IFS=$as_save_IFS
 
109
 
 
110
     ;;
 
111
esac
 
112
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
113
# in which case we are not to be found in the path.
 
114
if test "x$as_myself" = x; then
 
115
  as_myself=$0
 
116
fi
 
117
if test ! -f "$as_myself"; then
 
118
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
119
  { (exit 1); exit 1; }
 
120
fi
 
121
 
 
122
# Work around bugs in pre-3.0 UWIN ksh.
 
123
for as_var in ENV MAIL MAILPATH
 
124
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
125
done
 
126
PS1='$ '
 
127
PS2='> '
 
128
PS4='+ '
 
129
 
 
130
# NLS nuisances.
 
131
LC_ALL=C
 
132
export LC_ALL
 
133
LANGUAGE=C
 
134
export LANGUAGE
 
135
 
 
136
# Required to use basename.
 
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
138
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
139
  as_expr=expr
 
140
else
 
141
  as_expr=false
 
142
fi
 
143
 
 
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
145
  as_basename=basename
 
146
else
 
147
  as_basename=false
 
148
fi
 
149
 
 
150
 
 
151
# Name of the executable.
 
152
as_me=`$as_basename -- "$0" ||
 
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
154
         X"$0" : 'X\(//\)$' \| \
 
155
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
156
$as_echo X/"$0" |
 
157
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
158
            s//\1/
 
159
            q
 
160
          }
 
161
          /^X\/\(\/\/\)$/{
 
162
            s//\1/
 
163
            q
 
164
          }
 
165
          /^X\/\(\/\).*/{
 
166
            s//\1/
 
167
            q
 
168
          }
 
169
          s/.*/./; q'`
 
170
 
 
171
# CDPATH.
 
172
$as_unset CDPATH
 
173
 
 
174
 
 
175
if test "x$CONFIG_SHELL" = x; then
 
176
  if (eval ":") 2>/dev/null; then
 
177
  as_have_required=yes
 
178
else
 
179
  as_have_required=no
 
180
fi
 
181
 
 
182
  if test $as_have_required = yes &&     (eval ":
 
183
(as_func_return () {
 
184
  (exit \$1)
 
185
}
 
186
as_func_success () {
 
187
  as_func_return 0
 
188
}
 
189
as_func_failure () {
 
190
  as_func_return 1
 
191
}
 
192
as_func_ret_success () {
 
193
  return 0
 
194
}
 
195
as_func_ret_failure () {
 
196
  return 1
 
197
}
 
198
 
 
199
exitcode=0
 
200
if as_func_success; then
 
201
  :
 
202
else
 
203
  exitcode=1
 
204
  echo as_func_success failed.
 
205
fi
 
206
 
 
207
if as_func_failure; then
 
208
  exitcode=1
 
209
  echo as_func_failure succeeded.
 
210
fi
 
211
 
 
212
if as_func_ret_success; then
 
213
  :
 
214
else
 
215
  exitcode=1
 
216
  echo as_func_ret_success failed.
 
217
fi
 
218
 
 
219
if as_func_ret_failure; then
 
220
  exitcode=1
 
221
  echo as_func_ret_failure succeeded.
 
222
fi
 
223
 
 
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
225
  :
 
226
else
 
227
  exitcode=1
 
228
  echo positional parameters were not saved.
 
229
fi
 
230
 
 
231
test \$exitcode = 0) || { (exit 1); exit 1; }
 
232
 
 
233
(
 
234
  as_lineno_1=\$LINENO
 
235
  as_lineno_2=\$LINENO
 
236
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
237
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
238
") 2> /dev/null; then
 
239
  :
 
240
else
 
241
  as_candidate_shells=
 
242
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
243
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
244
do
 
245
  IFS=$as_save_IFS
 
246
  test -z "$as_dir" && as_dir=.
 
247
  case $as_dir in
 
248
         /*)
 
249
           for as_base in sh bash ksh sh5; do
 
250
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
251
           done;;
 
252
       esac
 
253
done
 
254
IFS=$as_save_IFS
 
255
 
 
256
 
 
257
      for as_shell in $as_candidate_shells $SHELL; do
 
258
         # Try only shells that exist, to save several forks.
 
259
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
260
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
_ASEOF
 
278
}; then
 
279
  CONFIG_SHELL=$as_shell
 
280
               as_have_required=yes
 
281
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
283
  emulate sh
 
284
  NULLCMD=:
 
285
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
286
  # is contrary to our usage.  Disable this feature.
 
287
  alias -g '${1+"$@"}'='"$@"'
 
288
  setopt NO_GLOB_SUBST
 
289
else
 
290
  case `(set -o) 2>/dev/null` in
 
291
  *posix*) set -o posix ;;
 
292
esac
 
293
 
 
294
fi
 
295
 
 
296
 
 
297
:
 
298
(as_func_return () {
 
299
  (exit $1)
 
300
}
 
301
as_func_success () {
 
302
  as_func_return 0
 
303
}
 
304
as_func_failure () {
 
305
  as_func_return 1
 
306
}
 
307
as_func_ret_success () {
 
308
  return 0
 
309
}
 
310
as_func_ret_failure () {
 
311
  return 1
 
312
}
 
313
 
 
314
exitcode=0
 
315
if as_func_success; then
 
316
  :
 
317
else
 
318
  exitcode=1
 
319
  echo as_func_success failed.
 
320
fi
 
321
 
 
322
if as_func_failure; then
 
323
  exitcode=1
 
324
  echo as_func_failure succeeded.
 
325
fi
 
326
 
 
327
if as_func_ret_success; then
 
328
  :
 
329
else
 
330
  exitcode=1
 
331
  echo as_func_ret_success failed.
 
332
fi
 
333
 
 
334
if as_func_ret_failure; then
 
335
  exitcode=1
 
336
  echo as_func_ret_failure succeeded.
 
337
fi
 
338
 
 
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
340
  :
 
341
else
 
342
  exitcode=1
 
343
  echo positional parameters were not saved.
 
344
fi
 
345
 
 
346
test $exitcode = 0) || { (exit 1); exit 1; }
 
347
 
 
348
(
 
349
  as_lineno_1=$LINENO
 
350
  as_lineno_2=$LINENO
 
351
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
352
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
353
 
 
354
_ASEOF
 
355
}; then
 
356
  break
 
357
fi
 
358
 
 
359
fi
 
360
 
 
361
      done
 
362
 
 
363
      if test "x$CONFIG_SHELL" != x; then
 
364
  for as_var in BASH_ENV ENV
 
365
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
366
        done
 
367
        export CONFIG_SHELL
 
368
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
369
fi
 
370
 
 
371
 
 
372
    if test $as_have_required = no; then
 
373
  echo This script requires a shell more modern than all the
 
374
      echo shells that I found on your system.  Please install a
 
375
      echo modern shell, or manually run the script under such a
 
376
      echo shell if you do have one.
 
377
      { (exit 1); exit 1; }
 
378
fi
 
379
 
 
380
 
 
381
fi
 
382
 
 
383
fi
 
384
 
 
385
 
 
386
 
 
387
(eval "as_func_return () {
 
388
  (exit \$1)
 
389
}
 
390
as_func_success () {
 
391
  as_func_return 0
 
392
}
 
393
as_func_failure () {
 
394
  as_func_return 1
 
395
}
 
396
as_func_ret_success () {
 
397
  return 0
 
398
}
 
399
as_func_ret_failure () {
 
400
  return 1
 
401
}
 
402
 
 
403
exitcode=0
 
404
if as_func_success; then
 
405
  :
 
406
else
 
407
  exitcode=1
 
408
  echo as_func_success failed.
 
409
fi
 
410
 
 
411
if as_func_failure; then
 
412
  exitcode=1
 
413
  echo as_func_failure succeeded.
 
414
fi
 
415
 
 
416
if as_func_ret_success; then
 
417
  :
 
418
else
 
419
  exitcode=1
 
420
  echo as_func_ret_success failed.
 
421
fi
 
422
 
 
423
if as_func_ret_failure; then
 
424
  exitcode=1
 
425
  echo as_func_ret_failure succeeded.
 
426
fi
 
427
 
 
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
429
  :
 
430
else
 
431
  exitcode=1
 
432
  echo positional parameters were not saved.
 
433
fi
 
434
 
 
435
test \$exitcode = 0") || {
 
436
  echo No shell found that supports shell functions.
 
437
  echo Please tell bug-autoconf@gnu.org about your system,
 
438
  echo including any error possibly output before this message.
 
439
  echo This can help us improve future autoconf versions.
 
440
  echo Configuration will now proceed without shell functions.
 
441
}
 
442
 
 
443
 
 
444
 
 
445
  as_lineno_1=$LINENO
 
446
  as_lineno_2=$LINENO
 
447
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
448
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
449
 
 
450
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
451
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
452
  # line-number line after each line using $LINENO; the second 'sed'
 
453
  # does the real work.  The second script uses 'N' to pair each
 
454
  # line-number line with the line containing $LINENO, and appends
 
455
  # trailing '-' during substitution so that $LINENO is not a special
 
456
  # case at line end.
 
457
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
458
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
459
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
460
  sed -n '
 
461
    p
 
462
    /[$]LINENO/=
 
463
  ' <$as_myself |
 
464
    sed '
 
465
      s/[$]LINENO.*/&-/
 
466
      t lineno
 
467
      b
 
468
      :lineno
 
469
      N
 
470
      :loop
 
471
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
472
      t loop
 
473
      s/-\n.*//
 
474
    ' >$as_me.lineno &&
 
475
  chmod +x "$as_me.lineno" ||
 
476
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
477
   { (exit 1); exit 1; }; }
 
478
 
 
479
  # Don't try to exec as it changes $[0], causing all sort of problems
 
480
  # (the dirname of $[0] is not the place where we might find the
 
481
  # original and so on.  Autoconf is especially sensitive to this).
 
482
  . "./$as_me.lineno"
 
483
  # Exit status is that of the last command.
 
484
  exit
 
485
}
 
486
 
 
487
 
 
488
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
489
  as_dirname=dirname
 
490
else
 
491
  as_dirname=false
 
492
fi
 
493
 
 
494
ECHO_C= ECHO_N= ECHO_T=
 
495
case `echo -n x` in
 
496
-n*)
 
497
  case `echo 'x\c'` in
 
498
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
499
  *)   ECHO_C='\c';;
 
500
  esac;;
 
501
*)
 
502
  ECHO_N='-n';;
 
503
esac
 
504
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
505
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
506
  as_expr=expr
 
507
else
 
508
  as_expr=false
 
509
fi
 
510
 
 
511
rm -f conf$$ conf$$.exe conf$$.file
 
512
if test -d conf$$.dir; then
 
513
  rm -f conf$$.dir/conf$$.file
 
514
else
 
515
  rm -f conf$$.dir
 
516
  mkdir conf$$.dir 2>/dev/null
 
517
fi
 
518
if (echo >conf$$.file) 2>/dev/null; then
 
519
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
520
    as_ln_s='ln -s'
 
521
    # ... but there are two gotchas:
 
522
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
523
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
524
    # In both cases, we have to default to `cp -p'.
 
525
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
526
      as_ln_s='cp -p'
 
527
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
528
    as_ln_s=ln
 
529
  else
 
530
    as_ln_s='cp -p'
 
531
  fi
 
532
else
 
533
  as_ln_s='cp -p'
 
534
fi
 
535
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
536
rmdir conf$$.dir 2>/dev/null
 
537
 
 
538
if mkdir -p . 2>/dev/null; then
 
539
  as_mkdir_p=:
 
540
else
 
541
  test -d ./-p && rmdir ./-p
 
542
  as_mkdir_p=false
 
543
fi
 
544
 
 
545
if test -x / >/dev/null 2>&1; then
 
546
  as_test_x='test -x'
 
547
else
 
548
  if ls -dL / >/dev/null 2>&1; then
 
549
    as_ls_L_option=L
 
550
  else
 
551
    as_ls_L_option=
 
552
  fi
 
553
  as_test_x='
 
554
    eval sh -c '\''
 
555
      if test -d "$1"; then
 
556
        test -d "$1/.";
 
557
      else
 
558
        case $1 in
 
559
        -*)set "./$1";;
 
560
        esac;
 
561
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
562
        ???[sx]*):;;*)false;;esac;fi
 
563
    '\'' sh
 
564
  '
 
565
fi
 
566
as_executable_p=$as_test_x
 
567
 
 
568
# Sed expression to map a string onto a valid CPP name.
 
569
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
570
 
 
571
# Sed expression to map a string onto a valid variable name.
 
572
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
573
 
 
574
 
 
575
 
 
576
 
 
577
# Check that we are running under the correct shell.
 
578
SHELL=${CONFIG_SHELL-/bin/sh}
 
579
 
 
580
case X$ECHO in
 
581
X*--fallback-echo)
 
582
  # Remove one level of quotation (which was required for Make).
 
583
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
584
  ;;
 
585
esac
 
586
 
 
587
echo=${ECHO-echo}
 
588
if test "X$1" = X--no-reexec; then
 
589
  # Discard the --no-reexec flag, and continue.
 
590
  shift
 
591
elif test "X$1" = X--fallback-echo; then
 
592
  # Avoid inline document here, it may be left over
 
593
  :
 
594
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
595
  # Yippee, $echo works!
 
596
  :
 
597
else
 
598
  # Restart under the correct shell.
 
599
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
600
fi
 
601
 
 
602
if test "X$1" = X--fallback-echo; then
 
603
  # used as fallback echo
 
604
  shift
 
605
  cat <<EOF
 
606
$*
 
607
EOF
 
608
  exit 0
 
609
fi
 
610
 
 
611
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
612
# if CDPATH is set.
 
613
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
614
 
 
615
if test -z "$ECHO"; then
 
616
if test "X${echo_test_string+set}" != Xset; then
 
617
# find a string as large as possible, as long as the shell can cope with it
 
618
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
619
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
620
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
621
       echo_test_string=`eval $cmd` &&
 
622
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
623
    then
 
624
      break
 
625
    fi
 
626
  done
 
627
fi
 
628
 
 
629
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
630
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
631
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
632
  :
 
633
else
 
634
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
635
  # backslashes.  This makes it impossible to quote backslashes using
 
636
  #   echo "$something" | sed 's/\\/\\\\/g'
 
637
  #
 
638
  # So, first we look for a working echo in the user's PATH.
 
639
 
 
640
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
641
  for dir in $PATH /usr/ucb; do
 
642
    IFS="$lt_save_ifs"
 
643
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
644
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
645
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
646
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
647
      echo="$dir/echo"
 
648
      break
 
649
    fi
 
650
  done
 
651
  IFS="$lt_save_ifs"
 
652
 
 
653
  if test "X$echo" = Xecho; then
 
654
    # We didn't find a better echo, so look for alternatives.
 
655
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
656
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
657
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
      # This shell has a builtin print -r that does the trick.
 
659
      echo='print -r'
 
660
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
661
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
662
      # If we have ksh, try running configure again with it.
 
663
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
664
      export ORIGINAL_CONFIG_SHELL
 
665
      CONFIG_SHELL=/bin/ksh
 
666
      export CONFIG_SHELL
 
667
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
668
    else
 
669
      # Try using printf.
 
670
      echo='printf %s\n'
 
671
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
672
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
673
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
674
        # Cool, printf works
 
675
        :
 
676
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = 'X\t' &&
 
678
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
679
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
680
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
681
        export CONFIG_SHELL
 
682
        SHELL="$CONFIG_SHELL"
 
683
        export SHELL
 
684
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
685
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = 'X\t' &&
 
687
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
688
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
689
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
690
      else
 
691
        # maybe with a smaller string...
 
692
        prev=:
 
693
 
 
694
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
695
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
696
          then
 
697
            break
 
698
          fi
 
699
          prev="$cmd"
 
700
        done
 
701
 
 
702
        if test "$prev" != 'sed 50q "$0"'; then
 
703
          echo_test_string=`eval $prev`
 
704
          export echo_test_string
 
705
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
706
        else
 
707
          # Oops.  We lost completely, so just stick with echo.
 
708
          echo=echo
 
709
        fi
 
710
      fi
 
711
    fi
 
712
  fi
 
713
fi
 
714
fi
 
715
 
 
716
# Copy echo and quote the copy suitably for passing to libtool from
 
717
# the Makefile, instead of quoting the original, which is used later.
 
718
ECHO=$echo
 
719
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
720
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
721
fi
 
722
 
 
723
 
 
724
 
 
725
 
 
726
tagnames=${tagnames+${tagnames},}CXX
 
727
 
 
728
tagnames=${tagnames+${tagnames},}F77
 
729
 
 
730
exec 7<&0 </dev/null 6>&1
 
731
 
 
732
# Name of the host.
 
733
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
734
# so uname gets run too.
 
735
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
736
 
 
737
#
 
738
# Initializations.
 
739
#
 
740
ac_default_prefix=/usr/local
 
741
ac_clean_files=
 
742
ac_config_libobj_dir=.
 
743
LIBOBJS=
 
744
cross_compiling=no
 
745
subdirs=
 
746
MFLAGS=
 
747
MAKEFLAGS=
 
748
SHELL=${CONFIG_SHELL-/bin/sh}
 
749
 
 
750
# Identity of this package.
 
751
PACKAGE_NAME='xf86-input-synaptics'
 
752
PACKAGE_TARNAME='xf86-input-synaptics'
 
753
PACKAGE_VERSION='0.99.3'
 
754
PACKAGE_STRING='xf86-input-synaptics 0.99.3'
 
755
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
 
756
 
 
757
ac_unique_file="Makefile.am"
 
758
# Factoring default headers for most tests.
 
759
ac_includes_default="\
 
760
#include <stdio.h>
 
761
#ifdef HAVE_SYS_TYPES_H
 
762
# include <sys/types.h>
 
763
#endif
 
764
#ifdef HAVE_SYS_STAT_H
 
765
# include <sys/stat.h>
 
766
#endif
 
767
#ifdef STDC_HEADERS
 
768
# include <stdlib.h>
 
769
# include <stddef.h>
 
770
#else
 
771
# ifdef HAVE_STDLIB_H
 
772
#  include <stdlib.h>
 
773
# endif
 
774
#endif
 
775
#ifdef HAVE_STRING_H
 
776
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
777
#  include <memory.h>
 
778
# endif
 
779
# include <string.h>
 
780
#endif
 
781
#ifdef HAVE_STRINGS_H
 
782
# include <strings.h>
 
783
#endif
 
784
#ifdef HAVE_INTTYPES_H
 
785
# include <inttypes.h>
 
786
#endif
 
787
#ifdef HAVE_STDINT_H
 
788
# include <stdint.h>
 
789
#endif
 
790
#ifdef HAVE_UNISTD_H
 
791
# include <unistd.h>
 
792
#endif"
 
793
 
 
794
ac_subst_vars='LTLIBOBJS
 
795
LIBOBJS
 
796
ADMIN_MAN_DIR
 
797
DRIVER_MAN_DIR
 
798
MISC_MAN_DIR
 
799
FILE_MAN_DIR
 
800
LIB_MAN_DIR
 
801
APP_MAN_DIR
 
802
ADMIN_MAN_SUFFIX
 
803
DRIVER_MAN_SUFFIX
 
804
MISC_MAN_SUFFIX
 
805
FILE_MAN_SUFFIX
 
806
LIB_MAN_SUFFIX
 
807
APP_MAN_SUFFIX
 
808
XLIB_LIBS
 
809
XLIB_CFLAGS
 
810
sdkdir
 
811
XORG_LIBS
 
812
XORG_CFLAGS
 
813
PKG_CONFIG
 
814
inputdir
 
815
BUILD_PSMCOMM_FALSE
 
816
BUILD_PSMCOMM_TRUE
 
817
BUILD_EVENTCOMM_FALSE
 
818
BUILD_EVENTCOMM_TRUE
 
819
LIBTOOL
 
820
ac_ct_F77
 
821
FFLAGS
 
822
F77
 
823
CXXCPP
 
824
am__fastdepCXX_FALSE
 
825
am__fastdepCXX_TRUE
 
826
CXXDEPMODE
 
827
ac_ct_CXX
 
828
CXXFLAGS
 
829
CXX
 
830
CPP
 
831
NMEDIT
 
832
DSYMUTIL
 
833
RANLIB
 
834
AR
 
835
ECHO
 
836
LN_S
 
837
EGREP
 
838
GREP
 
839
SED
 
840
am__fastdepCC_FALSE
 
841
am__fastdepCC_TRUE
 
842
CCDEPMODE
 
843
AMDEPBACKSLASH
 
844
AMDEP_FALSE
 
845
AMDEP_TRUE
 
846
am__quote
 
847
am__include
 
848
DEPDIR
 
849
OBJEXT
 
850
EXEEXT
 
851
ac_ct_CC
 
852
CPPFLAGS
 
853
LDFLAGS
 
854
CFLAGS
 
855
CC
 
856
host_os
 
857
host_vendor
 
858
host_cpu
 
859
host
 
860
build_os
 
861
build_vendor
 
862
build_cpu
 
863
build
 
864
DRIVER_NAME
 
865
MAINT
 
866
MAINTAINER_MODE_FALSE
 
867
MAINTAINER_MODE_TRUE
 
868
am__untar
 
869
am__tar
 
870
AMTAR
 
871
am__leading_dot
 
872
SET_MAKE
 
873
AWK
 
874
mkdir_p
 
875
MKDIR_P
 
876
INSTALL_STRIP_PROGRAM
 
877
STRIP
 
878
install_sh
 
879
MAKEINFO
 
880
AUTOHEADER
 
881
AUTOMAKE
 
882
AUTOCONF
 
883
ACLOCAL
 
884
VERSION
 
885
PACKAGE
 
886
CYGPATH_W
 
887
am__isrc
 
888
INSTALL_DATA
 
889
INSTALL_SCRIPT
 
890
INSTALL_PROGRAM
 
891
target_alias
 
892
host_alias
 
893
build_alias
 
894
LIBS
 
895
ECHO_T
 
896
ECHO_N
 
897
ECHO_C
 
898
DEFS
 
899
mandir
 
900
localedir
 
901
libdir
 
902
psdir
 
903
pdfdir
 
904
dvidir
 
905
htmldir
 
906
infodir
 
907
docdir
 
908
oldincludedir
 
909
includedir
 
910
localstatedir
 
911
sharedstatedir
 
912
sysconfdir
 
913
datadir
 
914
datarootdir
 
915
libexecdir
 
916
sbindir
 
917
bindir
 
918
program_transform_name
 
919
prefix
 
920
exec_prefix
 
921
PACKAGE_BUGREPORT
 
922
PACKAGE_STRING
 
923
PACKAGE_VERSION
 
924
PACKAGE_TARNAME
 
925
PACKAGE_NAME
 
926
PATH_SEPARATOR
 
927
SHELL'
 
928
ac_subst_files=''
 
929
ac_user_opts='
 
930
enable_option_checking
 
931
enable_maintainer_mode
 
932
enable_static
 
933
enable_shared
 
934
enable_fast_install
 
935
enable_dependency_tracking
 
936
with_gnu_ld
 
937
enable_libtool_lock
 
938
with_pic
 
939
with_tags
 
940
with_xorg_module_dir
 
941
with_release_version
 
942
'
 
943
      ac_precious_vars='build_alias
 
944
host_alias
 
945
target_alias
 
946
CC
 
947
CFLAGS
 
948
LDFLAGS
 
949
LIBS
 
950
CPPFLAGS
 
951
CPP
 
952
CXX
 
953
CXXFLAGS
 
954
CCC
 
955
CXXCPP
 
956
F77
 
957
FFLAGS
 
958
PKG_CONFIG
 
959
XORG_CFLAGS
 
960
XORG_LIBS
 
961
XLIB_CFLAGS
 
962
XLIB_LIBS'
 
963
 
 
964
 
 
965
# Initialize some variables set by options.
 
966
ac_init_help=
 
967
ac_init_version=false
 
968
ac_unrecognized_opts=
 
969
ac_unrecognized_sep=
 
970
# The variables have the same names as the options, with
 
971
# dashes changed to underlines.
 
972
cache_file=/dev/null
 
973
exec_prefix=NONE
 
974
no_create=
 
975
no_recursion=
 
976
prefix=NONE
 
977
program_prefix=NONE
 
978
program_suffix=NONE
 
979
program_transform_name=s,x,x,
 
980
silent=
 
981
site=
 
982
srcdir=
 
983
verbose=
 
984
x_includes=NONE
 
985
x_libraries=NONE
 
986
 
 
987
# Installation directory options.
 
988
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
989
# and all the variables that are supposed to be based on exec_prefix
 
990
# by default will actually change.
 
991
# Use braces instead of parens because sh, perl, etc. also accept them.
 
992
# (The list follows the same order as the GNU Coding Standards.)
 
993
bindir='${exec_prefix}/bin'
 
994
sbindir='${exec_prefix}/sbin'
 
995
libexecdir='${exec_prefix}/libexec'
 
996
datarootdir='${prefix}/share'
 
997
datadir='${datarootdir}'
 
998
sysconfdir='${prefix}/etc'
 
999
sharedstatedir='${prefix}/com'
 
1000
localstatedir='${prefix}/var'
 
1001
includedir='${prefix}/include'
 
1002
oldincludedir='/usr/include'
 
1003
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1004
infodir='${datarootdir}/info'
 
1005
htmldir='${docdir}'
 
1006
dvidir='${docdir}'
 
1007
pdfdir='${docdir}'
 
1008
psdir='${docdir}'
 
1009
libdir='${exec_prefix}/lib'
 
1010
localedir='${datarootdir}/locale'
 
1011
mandir='${datarootdir}/man'
 
1012
 
 
1013
ac_prev=
 
1014
ac_dashdash=
 
1015
for ac_option
 
1016
do
 
1017
  # If the previous option needs an argument, assign it.
 
1018
  if test -n "$ac_prev"; then
 
1019
    eval $ac_prev=\$ac_option
 
1020
    ac_prev=
 
1021
    continue
 
1022
  fi
 
1023
 
 
1024
  case $ac_option in
 
1025
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1026
  *)    ac_optarg=yes ;;
 
1027
  esac
 
1028
 
 
1029
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1030
 
 
1031
  case $ac_dashdash$ac_option in
 
1032
  --)
 
1033
    ac_dashdash=yes ;;
 
1034
 
 
1035
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1036
    ac_prev=bindir ;;
 
1037
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1038
    bindir=$ac_optarg ;;
 
1039
 
 
1040
  -build | --build | --buil | --bui | --bu)
 
1041
    ac_prev=build_alias ;;
 
1042
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1043
    build_alias=$ac_optarg ;;
 
1044
 
 
1045
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1046
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1047
    ac_prev=cache_file ;;
 
1048
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1049
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1050
    cache_file=$ac_optarg ;;
 
1051
 
 
1052
  --config-cache | -C)
 
1053
    cache_file=config.cache ;;
 
1054
 
 
1055
  -datadir | --datadir | --datadi | --datad)
 
1056
    ac_prev=datadir ;;
 
1057
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1058
    datadir=$ac_optarg ;;
 
1059
 
 
1060
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1061
  | --dataroo | --dataro | --datar)
 
1062
    ac_prev=datarootdir ;;
 
1063
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1064
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1065
    datarootdir=$ac_optarg ;;
 
1066
 
 
1067
  -disable-* | --disable-*)
 
1068
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1069
    # Reject names that are not valid shell variable names.
 
1070
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1071
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1072
   { (exit 1); exit 1; }; }
 
1073
    ac_useropt_orig=$ac_useropt
 
1074
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1075
    case $ac_user_opts in
 
1076
      *"
 
1077
"enable_$ac_useropt"
 
1078
"*) ;;
 
1079
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1080
         ac_unrecognized_sep=', ';;
 
1081
    esac
 
1082
    eval enable_$ac_useropt=no ;;
 
1083
 
 
1084
  -docdir | --docdir | --docdi | --doc | --do)
 
1085
    ac_prev=docdir ;;
 
1086
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1087
    docdir=$ac_optarg ;;
 
1088
 
 
1089
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1090
    ac_prev=dvidir ;;
 
1091
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1092
    dvidir=$ac_optarg ;;
 
1093
 
 
1094
  -enable-* | --enable-*)
 
1095
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1096
    # Reject names that are not valid shell variable names.
 
1097
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1098
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1099
   { (exit 1); exit 1; }; }
 
1100
    ac_useropt_orig=$ac_useropt
 
1101
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1102
    case $ac_user_opts in
 
1103
      *"
 
1104
"enable_$ac_useropt"
 
1105
"*) ;;
 
1106
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1107
         ac_unrecognized_sep=', ';;
 
1108
    esac
 
1109
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1110
 
 
1111
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1112
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1113
  | --exec | --exe | --ex)
 
1114
    ac_prev=exec_prefix ;;
 
1115
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1116
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1117
  | --exec=* | --exe=* | --ex=*)
 
1118
    exec_prefix=$ac_optarg ;;
 
1119
 
 
1120
  -gas | --gas | --ga | --g)
 
1121
    # Obsolete; use --with-gas.
 
1122
    with_gas=yes ;;
 
1123
 
 
1124
  -help | --help | --hel | --he | -h)
 
1125
    ac_init_help=long ;;
 
1126
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1127
    ac_init_help=recursive ;;
 
1128
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1129
    ac_init_help=short ;;
 
1130
 
 
1131
  -host | --host | --hos | --ho)
 
1132
    ac_prev=host_alias ;;
 
1133
  -host=* | --host=* | --hos=* | --ho=*)
 
1134
    host_alias=$ac_optarg ;;
 
1135
 
 
1136
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1137
    ac_prev=htmldir ;;
 
1138
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1139
  | --ht=*)
 
1140
    htmldir=$ac_optarg ;;
 
1141
 
 
1142
  -includedir | --includedir | --includedi | --included | --include \
 
1143
  | --includ | --inclu | --incl | --inc)
 
1144
    ac_prev=includedir ;;
 
1145
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1146
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1147
    includedir=$ac_optarg ;;
 
1148
 
 
1149
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1150
    ac_prev=infodir ;;
 
1151
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1152
    infodir=$ac_optarg ;;
 
1153
 
 
1154
  -libdir | --libdir | --libdi | --libd)
 
1155
    ac_prev=libdir ;;
 
1156
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1157
    libdir=$ac_optarg ;;
 
1158
 
 
1159
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1160
  | --libexe | --libex | --libe)
 
1161
    ac_prev=libexecdir ;;
 
1162
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1163
  | --libexe=* | --libex=* | --libe=*)
 
1164
    libexecdir=$ac_optarg ;;
 
1165
 
 
1166
  -localedir | --localedir | --localedi | --localed | --locale)
 
1167
    ac_prev=localedir ;;
 
1168
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1169
    localedir=$ac_optarg ;;
 
1170
 
 
1171
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1172
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1173
    ac_prev=localstatedir ;;
 
1174
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1175
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1176
    localstatedir=$ac_optarg ;;
 
1177
 
 
1178
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1179
    ac_prev=mandir ;;
 
1180
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1181
    mandir=$ac_optarg ;;
 
1182
 
 
1183
  -nfp | --nfp | --nf)
 
1184
    # Obsolete; use --without-fp.
 
1185
    with_fp=no ;;
 
1186
 
 
1187
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1188
  | --no-cr | --no-c | -n)
 
1189
    no_create=yes ;;
 
1190
 
 
1191
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1192
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1193
    no_recursion=yes ;;
 
1194
 
 
1195
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1196
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1197
  | --oldin | --oldi | --old | --ol | --o)
 
1198
    ac_prev=oldincludedir ;;
 
1199
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1200
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1201
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1202
    oldincludedir=$ac_optarg ;;
 
1203
 
 
1204
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1205
    ac_prev=prefix ;;
 
1206
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1207
    prefix=$ac_optarg ;;
 
1208
 
 
1209
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1210
  | --program-pre | --program-pr | --program-p)
 
1211
    ac_prev=program_prefix ;;
 
1212
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1213
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1214
    program_prefix=$ac_optarg ;;
 
1215
 
 
1216
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1217
  | --program-suf | --program-su | --program-s)
 
1218
    ac_prev=program_suffix ;;
 
1219
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1220
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1221
    program_suffix=$ac_optarg ;;
 
1222
 
 
1223
  -program-transform-name | --program-transform-name \
 
1224
  | --program-transform-nam | --program-transform-na \
 
1225
  | --program-transform-n | --program-transform- \
 
1226
  | --program-transform | --program-transfor \
 
1227
  | --program-transfo | --program-transf \
 
1228
  | --program-trans | --program-tran \
 
1229
  | --progr-tra | --program-tr | --program-t)
 
1230
    ac_prev=program_transform_name ;;
 
1231
  -program-transform-name=* | --program-transform-name=* \
 
1232
  | --program-transform-nam=* | --program-transform-na=* \
 
1233
  | --program-transform-n=* | --program-transform-=* \
 
1234
  | --program-transform=* | --program-transfor=* \
 
1235
  | --program-transfo=* | --program-transf=* \
 
1236
  | --program-trans=* | --program-tran=* \
 
1237
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1238
    program_transform_name=$ac_optarg ;;
 
1239
 
 
1240
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1241
    ac_prev=pdfdir ;;
 
1242
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1243
    pdfdir=$ac_optarg ;;
 
1244
 
 
1245
  -psdir | --psdir | --psdi | --psd | --ps)
 
1246
    ac_prev=psdir ;;
 
1247
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1248
    psdir=$ac_optarg ;;
 
1249
 
 
1250
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1251
  | -silent | --silent | --silen | --sile | --sil)
 
1252
    silent=yes ;;
 
1253
 
 
1254
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1255
    ac_prev=sbindir ;;
 
1256
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1257
  | --sbi=* | --sb=*)
 
1258
    sbindir=$ac_optarg ;;
 
1259
 
 
1260
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1261
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1262
  | --sharedst | --shareds | --shared | --share | --shar \
 
1263
  | --sha | --sh)
 
1264
    ac_prev=sharedstatedir ;;
 
1265
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1266
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1267
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1268
  | --sha=* | --sh=*)
 
1269
    sharedstatedir=$ac_optarg ;;
 
1270
 
 
1271
  -site | --site | --sit)
 
1272
    ac_prev=site ;;
 
1273
  -site=* | --site=* | --sit=*)
 
1274
    site=$ac_optarg ;;
 
1275
 
 
1276
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1277
    ac_prev=srcdir ;;
 
1278
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1279
    srcdir=$ac_optarg ;;
 
1280
 
 
1281
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1282
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1283
    ac_prev=sysconfdir ;;
 
1284
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1285
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1286
    sysconfdir=$ac_optarg ;;
 
1287
 
 
1288
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1289
    ac_prev=target_alias ;;
 
1290
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1291
    target_alias=$ac_optarg ;;
 
1292
 
 
1293
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1294
    verbose=yes ;;
 
1295
 
 
1296
  -version | --version | --versio | --versi | --vers | -V)
 
1297
    ac_init_version=: ;;
 
1298
 
 
1299
  -with-* | --with-*)
 
1300
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1301
    # Reject names that are not valid shell variable names.
 
1302
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1303
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1304
   { (exit 1); exit 1; }; }
 
1305
    ac_useropt_orig=$ac_useropt
 
1306
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1307
    case $ac_user_opts in
 
1308
      *"
 
1309
"with_$ac_useropt"
 
1310
"*) ;;
 
1311
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1312
         ac_unrecognized_sep=', ';;
 
1313
    esac
 
1314
    eval with_$ac_useropt=\$ac_optarg ;;
 
1315
 
 
1316
  -without-* | --without-*)
 
1317
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1318
    # Reject names that are not valid shell variable names.
 
1319
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1320
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1321
   { (exit 1); exit 1; }; }
 
1322
    ac_useropt_orig=$ac_useropt
 
1323
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1324
    case $ac_user_opts in
 
1325
      *"
 
1326
"with_$ac_useropt"
 
1327
"*) ;;
 
1328
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1329
         ac_unrecognized_sep=', ';;
 
1330
    esac
 
1331
    eval with_$ac_useropt=no ;;
 
1332
 
 
1333
  --x)
 
1334
    # Obsolete; use --with-x.
 
1335
    with_x=yes ;;
 
1336
 
 
1337
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1338
  | --x-incl | --x-inc | --x-in | --x-i)
 
1339
    ac_prev=x_includes ;;
 
1340
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1341
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1342
    x_includes=$ac_optarg ;;
 
1343
 
 
1344
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1345
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1346
    ac_prev=x_libraries ;;
 
1347
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1348
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1349
    x_libraries=$ac_optarg ;;
 
1350
 
 
1351
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1352
Try \`$0 --help' for more information." >&2
 
1353
   { (exit 1); exit 1; }; }
 
1354
    ;;
 
1355
 
 
1356
  *=*)
 
1357
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1358
    # Reject names that are not valid shell variable names.
 
1359
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1360
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1361
   { (exit 1); exit 1; }; }
 
1362
    eval $ac_envvar=\$ac_optarg
 
1363
    export $ac_envvar ;;
 
1364
 
 
1365
  *)
 
1366
    # FIXME: should be removed in autoconf 3.0.
 
1367
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1368
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1369
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1370
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1371
    ;;
 
1372
 
 
1373
  esac
 
1374
done
 
1375
 
 
1376
if test -n "$ac_prev"; then
 
1377
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1378
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
fi
 
1381
 
 
1382
if test -n "$ac_unrecognized_opts"; then
 
1383
  case $enable_option_checking in
 
1384
    no) ;;
 
1385
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1386
   { (exit 1); exit 1; }; } ;;
 
1387
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1388
  esac
 
1389
fi
 
1390
 
 
1391
# Check all directory arguments for consistency.
 
1392
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1393
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1394
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1395
                libdir localedir mandir
 
1396
do
 
1397
  eval ac_val=\$$ac_var
 
1398
  # Remove trailing slashes.
 
1399
  case $ac_val in
 
1400
    */ )
 
1401
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1402
      eval $ac_var=\$ac_val;;
 
1403
  esac
 
1404
  # Be sure to have absolute directory names.
 
1405
  case $ac_val in
 
1406
    [\\/$]* | ?:[\\/]* )  continue;;
 
1407
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1408
  esac
 
1409
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1410
   { (exit 1); exit 1; }; }
 
1411
done
 
1412
 
 
1413
# There might be people who depend on the old broken behavior: `$host'
 
1414
# used to hold the argument of --host etc.
 
1415
# FIXME: To remove some day.
 
1416
build=$build_alias
 
1417
host=$host_alias
 
1418
target=$target_alias
 
1419
 
 
1420
# FIXME: To remove some day.
 
1421
if test "x$host_alias" != x; then
 
1422
  if test "x$build_alias" = x; then
 
1423
    cross_compiling=maybe
 
1424
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1425
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1426
  elif test "x$build_alias" != "x$host_alias"; then
 
1427
    cross_compiling=yes
 
1428
  fi
 
1429
fi
 
1430
 
 
1431
ac_tool_prefix=
 
1432
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1433
 
 
1434
test "$silent" = yes && exec 6>/dev/null
 
1435
 
 
1436
 
 
1437
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1438
ac_ls_di=`ls -di .` &&
 
1439
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1440
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1441
   { (exit 1); exit 1; }; }
 
1442
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1443
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1444
   { (exit 1); exit 1; }; }
 
1445
 
 
1446
 
 
1447
# Find the source files, if location was not specified.
 
1448
if test -z "$srcdir"; then
 
1449
  ac_srcdir_defaulted=yes
 
1450
  # Try the directory containing this script, then the parent directory.
 
1451
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1452
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1453
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1454
         X"$as_myself" : 'X\(//\)$' \| \
 
1455
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1456
$as_echo X"$as_myself" |
 
1457
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1458
            s//\1/
 
1459
            q
 
1460
          }
 
1461
          /^X\(\/\/\)[^/].*/{
 
1462
            s//\1/
 
1463
            q
 
1464
          }
 
1465
          /^X\(\/\/\)$/{
 
1466
            s//\1/
 
1467
            q
 
1468
          }
 
1469
          /^X\(\/\).*/{
 
1470
            s//\1/
 
1471
            q
 
1472
          }
 
1473
          s/.*/./; q'`
 
1474
  srcdir=$ac_confdir
 
1475
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1476
    srcdir=..
 
1477
  fi
 
1478
else
 
1479
  ac_srcdir_defaulted=no
 
1480
fi
 
1481
if test ! -r "$srcdir/$ac_unique_file"; then
 
1482
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1483
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1484
   { (exit 1); exit 1; }; }
 
1485
fi
 
1486
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1487
ac_abs_confdir=`(
 
1488
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1489
   { (exit 1); exit 1; }; }
 
1490
        pwd)`
 
1491
# When building in place, set srcdir=.
 
1492
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1493
  srcdir=.
 
1494
fi
 
1495
# Remove unnecessary trailing slashes from srcdir.
 
1496
# Double slashes in file names in object file debugging info
 
1497
# mess up M-x gdb in Emacs.
 
1498
case $srcdir in
 
1499
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1500
esac
 
1501
for ac_var in $ac_precious_vars; do
 
1502
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1503
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1504
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1505
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1506
done
 
1507
 
 
1508
#
 
1509
# Report the --help message.
 
1510
#
 
1511
if test "$ac_init_help" = "long"; then
 
1512
  # Omit some internal or obsolete options to make the list less imposing.
 
1513
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1514
  cat <<_ACEOF
 
1515
\`configure' configures xf86-input-synaptics 0.99.3 to adapt to many kinds of systems.
 
1516
 
 
1517
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1518
 
 
1519
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1520
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1521
 
 
1522
Defaults for the options are specified in brackets.
 
1523
 
 
1524
Configuration:
 
1525
  -h, --help              display this help and exit
 
1526
      --help=short        display options specific to this package
 
1527
      --help=recursive    display the short help of all the included packages
 
1528
  -V, --version           display version information and exit
 
1529
  -q, --quiet, --silent   do not print \`checking...' messages
 
1530
      --cache-file=FILE   cache test results in FILE [disabled]
 
1531
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1532
  -n, --no-create         do not create output files
 
1533
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1534
 
 
1535
Installation directories:
 
1536
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1537
                          [$ac_default_prefix]
 
1538
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1539
                          [PREFIX]
 
1540
 
 
1541
By default, \`make install' will install all the files in
 
1542
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1543
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1544
for instance \`--prefix=\$HOME'.
 
1545
 
 
1546
For better control, use the options below.
 
1547
 
 
1548
Fine tuning of the installation directories:
 
1549
  --bindir=DIR            user executables [EPREFIX/bin]
 
1550
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1551
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1552
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1553
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1554
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1555
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1556
  --includedir=DIR        C header files [PREFIX/include]
 
1557
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1558
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1559
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1560
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1561
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1562
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1563
  --docdir=DIR            documentation root
 
1564
                          [DATAROOTDIR/doc/xf86-input-synaptics]
 
1565
  --htmldir=DIR           html documentation [DOCDIR]
 
1566
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1567
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1568
  --psdir=DIR             ps documentation [DOCDIR]
 
1569
_ACEOF
 
1570
 
 
1571
  cat <<\_ACEOF
 
1572
 
 
1573
Program names:
 
1574
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1575
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1576
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1577
 
 
1578
System types:
 
1579
  --build=BUILD     configure for building on BUILD [guessed]
 
1580
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1581
_ACEOF
 
1582
fi
 
1583
 
 
1584
if test -n "$ac_init_help"; then
 
1585
  case $ac_init_help in
 
1586
     short | recursive ) echo "Configuration of xf86-input-synaptics 0.99.3:";;
 
1587
   esac
 
1588
  cat <<\_ACEOF
 
1589
 
 
1590
Optional Features:
 
1591
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1592
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1593
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1594
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1595
                          (and sometimes confusing) to the casual installer
 
1596
  --enable-static[=PKGS]  build static libraries [default=no]
 
1597
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1598
  --enable-fast-install[=PKGS]
 
1599
                          optimize for fast installation [default=yes]
 
1600
  --disable-dependency-tracking  speeds up one-time build
 
1601
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1602
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1603
 
 
1604
Optional Packages:
 
1605
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1606
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1607
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1608
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1609
                          both]
 
1610
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1611
  --with-xorg-module-dir=DIR
 
1612
                          Default xorg module directory
 
1613
                          [default=$libdir/xorg/modules]
 
1614
  --with-release-version=STRING
 
1615
                          Use release version string in package name
 
1616
 
 
1617
Some influential environment variables:
 
1618
  CC          C compiler command
 
1619
  CFLAGS      C compiler flags
 
1620
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1621
              nonstandard directory <lib dir>
 
1622
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1623
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1624
              you have headers in a nonstandard directory <include dir>
 
1625
  CPP         C preprocessor
 
1626
  CXX         C++ compiler command
 
1627
  CXXFLAGS    C++ compiler flags
 
1628
  CXXCPP      C++ preprocessor
 
1629
  F77         Fortran 77 compiler command
 
1630
  FFLAGS      Fortran 77 compiler flags
 
1631
  PKG_CONFIG  path to pkg-config utility
 
1632
  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
 
1633
  XORG_LIBS   linker flags for XORG, overriding pkg-config
 
1634
  XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
 
1635
  XLIB_LIBS   linker flags for XLIB, overriding pkg-config
 
1636
 
 
1637
Use these variables to override the choices made by `configure' or to help
 
1638
it to find libraries and programs with nonstandard names/locations.
 
1639
 
 
1640
Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
 
1641
_ACEOF
 
1642
ac_status=$?
 
1643
fi
 
1644
 
 
1645
if test "$ac_init_help" = "recursive"; then
 
1646
  # If there are subdirs, report their specific --help.
 
1647
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1648
    test -d "$ac_dir" ||
 
1649
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1650
      continue
 
1651
    ac_builddir=.
 
1652
 
 
1653
case "$ac_dir" in
 
1654
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1655
*)
 
1656
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1657
  # A ".." for each directory in $ac_dir_suffix.
 
1658
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1659
  case $ac_top_builddir_sub in
 
1660
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1661
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1662
  esac ;;
 
1663
esac
 
1664
ac_abs_top_builddir=$ac_pwd
 
1665
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1666
# for backward compatibility:
 
1667
ac_top_builddir=$ac_top_build_prefix
 
1668
 
 
1669
case $srcdir in
 
1670
  .)  # We are building in place.
 
1671
    ac_srcdir=.
 
1672
    ac_top_srcdir=$ac_top_builddir_sub
 
1673
    ac_abs_top_srcdir=$ac_pwd ;;
 
1674
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1675
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1676
    ac_top_srcdir=$srcdir
 
1677
    ac_abs_top_srcdir=$srcdir ;;
 
1678
  *) # Relative name.
 
1679
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1680
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1681
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1682
esac
 
1683
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1684
 
 
1685
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1686
    # Check for guested configure.
 
1687
    if test -f "$ac_srcdir/configure.gnu"; then
 
1688
      echo &&
 
1689
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1690
    elif test -f "$ac_srcdir/configure"; then
 
1691
      echo &&
 
1692
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1693
    else
 
1694
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1695
    fi || ac_status=$?
 
1696
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1697
  done
 
1698
fi
 
1699
 
 
1700
test -n "$ac_init_help" && exit $ac_status
 
1701
if $ac_init_version; then
 
1702
  cat <<\_ACEOF
 
1703
xf86-input-synaptics configure 0.99.3
 
1704
generated by GNU Autoconf 2.63
 
1705
 
 
1706
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1707
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1708
This configure script is free software; the Free Software Foundation
 
1709
gives unlimited permission to copy, distribute and modify it.
 
1710
_ACEOF
 
1711
  exit
 
1712
fi
 
1713
cat >config.log <<_ACEOF
 
1714
This file contains any messages produced by compilers while
 
1715
running configure, to aid debugging if configure makes a mistake.
 
1716
 
 
1717
It was created by xf86-input-synaptics $as_me 0.99.3, which was
 
1718
generated by GNU Autoconf 2.63.  Invocation command line was
 
1719
 
 
1720
  $ $0 $@
 
1721
 
 
1722
_ACEOF
 
1723
exec 5>>config.log
 
1724
{
 
1725
cat <<_ASUNAME
 
1726
## --------- ##
 
1727
## Platform. ##
 
1728
## --------- ##
 
1729
 
 
1730
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1731
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1732
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1733
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1734
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1735
 
 
1736
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1737
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1738
 
 
1739
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1740
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1741
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1742
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1743
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1744
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1745
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1746
 
 
1747
_ASUNAME
 
1748
 
 
1749
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1750
for as_dir in $PATH
 
1751
do
 
1752
  IFS=$as_save_IFS
 
1753
  test -z "$as_dir" && as_dir=.
 
1754
  $as_echo "PATH: $as_dir"
 
1755
done
 
1756
IFS=$as_save_IFS
 
1757
 
 
1758
} >&5
 
1759
 
 
1760
cat >&5 <<_ACEOF
 
1761
 
 
1762
 
 
1763
## ----------- ##
 
1764
## Core tests. ##
 
1765
## ----------- ##
 
1766
 
 
1767
_ACEOF
 
1768
 
 
1769
 
 
1770
# Keep a trace of the command line.
 
1771
# Strip out --no-create and --no-recursion so they do not pile up.
 
1772
# Strip out --silent because we don't want to record it for future runs.
 
1773
# Also quote any args containing shell meta-characters.
 
1774
# Make two passes to allow for proper duplicate-argument suppression.
 
1775
ac_configure_args=
 
1776
ac_configure_args0=
 
1777
ac_configure_args1=
 
1778
ac_must_keep_next=false
 
1779
for ac_pass in 1 2
 
1780
do
 
1781
  for ac_arg
 
1782
  do
 
1783
    case $ac_arg in
 
1784
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1785
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1786
    | -silent | --silent | --silen | --sile | --sil)
 
1787
      continue ;;
 
1788
    *\'*)
 
1789
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1790
    esac
 
1791
    case $ac_pass in
 
1792
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1793
    2)
 
1794
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1795
      if test $ac_must_keep_next = true; then
 
1796
        ac_must_keep_next=false # Got value, back to normal.
 
1797
      else
 
1798
        case $ac_arg in
 
1799
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1800
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1801
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1802
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1803
            case "$ac_configure_args0 " in
 
1804
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1805
            esac
 
1806
            ;;
 
1807
          -* ) ac_must_keep_next=true ;;
 
1808
        esac
 
1809
      fi
 
1810
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1811
      ;;
 
1812
    esac
 
1813
  done
 
1814
done
 
1815
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1816
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1817
 
 
1818
# When interrupted or exit'd, cleanup temporary files, and complete
 
1819
# config.log.  We remove comments because anyway the quotes in there
 
1820
# would cause problems or look ugly.
 
1821
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1822
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1823
trap 'exit_status=$?
 
1824
  # Save into config.log some information that might help in debugging.
 
1825
  {
 
1826
    echo
 
1827
 
 
1828
    cat <<\_ASBOX
 
1829
## ---------------- ##
 
1830
## Cache variables. ##
 
1831
## ---------------- ##
 
1832
_ASBOX
 
1833
    echo
 
1834
    # The following way of writing the cache mishandles newlines in values,
 
1835
(
 
1836
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1837
    eval ac_val=\$$ac_var
 
1838
    case $ac_val in #(
 
1839
    *${as_nl}*)
 
1840
      case $ac_var in #(
 
1841
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1842
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1843
      esac
 
1844
      case $ac_var in #(
 
1845
      _ | IFS | as_nl) ;; #(
 
1846
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1847
      *) $as_unset $ac_var ;;
 
1848
      esac ;;
 
1849
    esac
 
1850
  done
 
1851
  (set) 2>&1 |
 
1852
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1853
    *${as_nl}ac_space=\ *)
 
1854
      sed -n \
 
1855
        "s/'\''/'\''\\\\'\'''\''/g;
 
1856
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1857
      ;; #(
 
1858
    *)
 
1859
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1860
      ;;
 
1861
    esac |
 
1862
    sort
 
1863
)
 
1864
    echo
 
1865
 
 
1866
    cat <<\_ASBOX
 
1867
## ----------------- ##
 
1868
## Output variables. ##
 
1869
## ----------------- ##
 
1870
_ASBOX
 
1871
    echo
 
1872
    for ac_var in $ac_subst_vars
 
1873
    do
 
1874
      eval ac_val=\$$ac_var
 
1875
      case $ac_val in
 
1876
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1877
      esac
 
1878
      $as_echo "$ac_var='\''$ac_val'\''"
 
1879
    done | sort
 
1880
    echo
 
1881
 
 
1882
    if test -n "$ac_subst_files"; then
 
1883
      cat <<\_ASBOX
 
1884
## ------------------- ##
 
1885
## File substitutions. ##
 
1886
## ------------------- ##
 
1887
_ASBOX
 
1888
      echo
 
1889
      for ac_var in $ac_subst_files
 
1890
      do
 
1891
        eval ac_val=\$$ac_var
 
1892
        case $ac_val in
 
1893
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1894
        esac
 
1895
        $as_echo "$ac_var='\''$ac_val'\''"
 
1896
      done | sort
 
1897
      echo
 
1898
    fi
 
1899
 
 
1900
    if test -s confdefs.h; then
 
1901
      cat <<\_ASBOX
 
1902
## ----------- ##
 
1903
## confdefs.h. ##
 
1904
## ----------- ##
 
1905
_ASBOX
 
1906
      echo
 
1907
      cat confdefs.h
 
1908
      echo
 
1909
    fi
 
1910
    test "$ac_signal" != 0 &&
 
1911
      $as_echo "$as_me: caught signal $ac_signal"
 
1912
    $as_echo "$as_me: exit $exit_status"
 
1913
  } >&5
 
1914
  rm -f core *.core core.conftest.* &&
 
1915
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1916
    exit $exit_status
 
1917
' 0
 
1918
for ac_signal in 1 2 13 15; do
 
1919
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1920
done
 
1921
ac_signal=0
 
1922
 
 
1923
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1924
rm -f -r conftest* confdefs.h
 
1925
 
 
1926
# Predefined preprocessor variables.
 
1927
 
 
1928
cat >>confdefs.h <<_ACEOF
 
1929
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1930
_ACEOF
 
1931
 
 
1932
 
 
1933
cat >>confdefs.h <<_ACEOF
 
1934
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1935
_ACEOF
 
1936
 
 
1937
 
 
1938
cat >>confdefs.h <<_ACEOF
 
1939
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1940
_ACEOF
 
1941
 
 
1942
 
 
1943
cat >>confdefs.h <<_ACEOF
 
1944
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1945
_ACEOF
 
1946
 
 
1947
 
 
1948
cat >>confdefs.h <<_ACEOF
 
1949
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1950
_ACEOF
 
1951
 
 
1952
 
 
1953
# Let the site file select an alternate cache file if it wants to.
 
1954
# Prefer an explicitly selected file to automatically selected ones.
 
1955
ac_site_file1=NONE
 
1956
ac_site_file2=NONE
 
1957
if test -n "$CONFIG_SITE"; then
 
1958
  ac_site_file1=$CONFIG_SITE
 
1959
elif test "x$prefix" != xNONE; then
 
1960
  ac_site_file1=$prefix/share/config.site
 
1961
  ac_site_file2=$prefix/etc/config.site
 
1962
else
 
1963
  ac_site_file1=$ac_default_prefix/share/config.site
 
1964
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1965
fi
 
1966
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1967
do
 
1968
  test "x$ac_site_file" = xNONE && continue
 
1969
  if test -r "$ac_site_file"; then
 
1970
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1971
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1972
    sed 's/^/| /' "$ac_site_file" >&5
 
1973
    . "$ac_site_file"
 
1974
  fi
 
1975
done
 
1976
 
 
1977
if test -r "$cache_file"; then
 
1978
  # Some versions of bash will fail to source /dev/null (special
 
1979
  # files actually), so we avoid doing that.
 
1980
  if test -f "$cache_file"; then
 
1981
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1982
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1983
    case $cache_file in
 
1984
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1985
      *)                      . "./$cache_file";;
 
1986
    esac
 
1987
  fi
 
1988
else
 
1989
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1990
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1991
  >$cache_file
 
1992
fi
 
1993
 
 
1994
# Check that the precious variables saved in the cache have kept the same
 
1995
# value.
 
1996
ac_cache_corrupted=false
 
1997
for ac_var in $ac_precious_vars; do
 
1998
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1999
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2000
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2001
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2002
  case $ac_old_set,$ac_new_set in
 
2003
    set,)
 
2004
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2005
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2006
      ac_cache_corrupted=: ;;
 
2007
    ,set)
 
2008
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2009
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2010
      ac_cache_corrupted=: ;;
 
2011
    ,);;
 
2012
    *)
 
2013
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2014
        # differences in whitespace do not lead to failure.
 
2015
        ac_old_val_w=`echo x $ac_old_val`
 
2016
        ac_new_val_w=`echo x $ac_new_val`
 
2017
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2018
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2019
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2020
          ac_cache_corrupted=:
 
2021
        else
 
2022
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2023
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2024
          eval $ac_var=\$ac_old_val
 
2025
        fi
 
2026
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2027
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2028
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2029
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2030
      fi;;
 
2031
  esac
 
2032
  # Pass precious variables to config.status.
 
2033
  if test "$ac_new_set" = set; then
 
2034
    case $ac_new_val in
 
2035
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2036
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2037
    esac
 
2038
    case " $ac_configure_args " in
 
2039
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2040
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2041
    esac
 
2042
  fi
 
2043
done
 
2044
if $ac_cache_corrupted; then
 
2045
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2046
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2047
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2048
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2049
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2050
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2051
   { (exit 1); exit 1; }; }
 
2052
fi
 
2053
 
 
2054
 
 
2055
 
 
2056
 
 
2057
 
 
2058
 
 
2059
 
 
2060
 
 
2061
 
 
2062
 
 
2063
 
 
2064
 
 
2065
 
 
2066
 
 
2067
 
 
2068
 
 
2069
 
 
2070
 
 
2071
 
 
2072
 
 
2073
 
 
2074
 
 
2075
 
 
2076
 
 
2077
 
 
2078
ac_ext=c
 
2079
ac_cpp='$CPP $CPPFLAGS'
 
2080
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2081
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2082
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2083
 
 
2084
 
 
2085
 
 
2086
 
 
2087
ac_aux_dir=
 
2088
for ac_dir in . "$srcdir"/.; do
 
2089
  if test -f "$ac_dir/install-sh"; then
 
2090
    ac_aux_dir=$ac_dir
 
2091
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2092
    break
 
2093
  elif test -f "$ac_dir/install.sh"; then
 
2094
    ac_aux_dir=$ac_dir
 
2095
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2096
    break
 
2097
  elif test -f "$ac_dir/shtool"; then
 
2098
    ac_aux_dir=$ac_dir
 
2099
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2100
    break
 
2101
  fi
 
2102
done
 
2103
if test -z "$ac_aux_dir"; then
 
2104
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
 
2105
$as_echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
 
2106
   { (exit 1); exit 1; }; }
 
2107
fi
 
2108
 
 
2109
# These three variables are undocumented and unsupported,
 
2110
# and are intended to be withdrawn in a future Autoconf release.
 
2111
# They can cause serious problems if a builder's source tree is in a directory
 
2112
# whose full name contains unusual characters.
 
2113
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2114
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2115
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2116
 
 
2117
 
 
2118
am__api_version='1.10'
 
2119
 
 
2120
# Find a good install program.  We prefer a C program (faster),
 
2121
# so one script is as good as another.  But avoid the broken or
 
2122
# incompatible versions:
 
2123
# SysV /etc/install, /usr/sbin/install
 
2124
# SunOS /usr/etc/install
 
2125
# IRIX /sbin/install
 
2126
# AIX /bin/install
 
2127
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2128
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2129
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2130
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2131
# OS/2's system install, which has a completely different semantic
 
2132
# ./install, which can be erroneously created by make from ./install.sh.
 
2133
# Reject install programs that cannot install multiple files.
 
2134
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2135
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2136
if test -z "$INSTALL"; then
 
2137
if test "${ac_cv_path_install+set}" = set; then
 
2138
  $as_echo_n "(cached) " >&6
 
2139
else
 
2140
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2141
for as_dir in $PATH
 
2142
do
 
2143
  IFS=$as_save_IFS
 
2144
  test -z "$as_dir" && as_dir=.
 
2145
  # Account for people who put trailing slashes in PATH elements.
 
2146
case $as_dir/ in
 
2147
  ./ | .// | /cC/* | \
 
2148
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2149
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2150
  /usr/ucb/* ) ;;
 
2151
  *)
 
2152
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2153
    # Don't use installbsd from OSF since it installs stuff as root
 
2154
    # by default.
 
2155
    for ac_prog in ginstall scoinst install; do
 
2156
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2157
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2158
          if test $ac_prog = install &&
 
2159
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2160
            # AIX install.  It has an incompatible calling convention.
 
2161
            :
 
2162
          elif test $ac_prog = install &&
 
2163
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2164
            # program-specific install script used by HP pwplus--don't use.
 
2165
            :
 
2166
          else
 
2167
            rm -rf conftest.one conftest.two conftest.dir
 
2168
            echo one > conftest.one
 
2169
            echo two > conftest.two
 
2170
            mkdir conftest.dir
 
2171
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2172
              test -s conftest.one && test -s conftest.two &&
 
2173
              test -s conftest.dir/conftest.one &&
 
2174
              test -s conftest.dir/conftest.two
 
2175
            then
 
2176
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2177
              break 3
 
2178
            fi
 
2179
          fi
 
2180
        fi
 
2181
      done
 
2182
    done
 
2183
    ;;
 
2184
esac
 
2185
 
 
2186
done
 
2187
IFS=$as_save_IFS
 
2188
 
 
2189
rm -rf conftest.one conftest.two conftest.dir
 
2190
 
 
2191
fi
 
2192
  if test "${ac_cv_path_install+set}" = set; then
 
2193
    INSTALL=$ac_cv_path_install
 
2194
  else
 
2195
    # As a last resort, use the slow shell script.  Don't cache a
 
2196
    # value for INSTALL within a source directory, because that will
 
2197
    # break other packages using the cache if that directory is
 
2198
    # removed, or if the value is a relative name.
 
2199
    INSTALL=$ac_install_sh
 
2200
  fi
 
2201
fi
 
2202
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2203
$as_echo "$INSTALL" >&6; }
 
2204
 
 
2205
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2206
# It thinks the first close brace ends the variable substitution.
 
2207
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2208
 
 
2209
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2210
 
 
2211
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2212
 
 
2213
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2214
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2215
# Just in case
 
2216
sleep 1
 
2217
echo timestamp > conftest.file
 
2218
# Do `set' in a subshell so we don't clobber the current shell's
 
2219
# arguments.  Must try -L first in case configure is actually a
 
2220
# symlink; some systems play weird games with the mod time of symlinks
 
2221
# (eg FreeBSD returns the mod time of the symlink's containing
 
2222
# directory).
 
2223
if (
 
2224
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2225
   if test "$*" = "X"; then
 
2226
      # -L didn't work.
 
2227
      set X `ls -t $srcdir/configure conftest.file`
 
2228
   fi
 
2229
   rm -f conftest.file
 
2230
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2231
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2232
 
 
2233
      # If neither matched, then we have a broken ls.  This can happen
 
2234
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2235
      # broken ls alias from the environment.  This has actually
 
2236
      # happened.  Such a system could not be considered "sane".
 
2237
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2238
alias in your environment" >&5
 
2239
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2240
alias in your environment" >&2;}
 
2241
   { (exit 1); exit 1; }; }
 
2242
   fi
 
2243
 
 
2244
   test "$2" = conftest.file
 
2245
   )
 
2246
then
 
2247
   # Ok.
 
2248
   :
 
2249
else
 
2250
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2251
Check your system clock" >&5
 
2252
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2253
Check your system clock" >&2;}
 
2254
   { (exit 1); exit 1; }; }
 
2255
fi
 
2256
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2257
$as_echo "yes" >&6; }
 
2258
test "$program_prefix" != NONE &&
 
2259
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2260
# Use a double $ so make ignores it.
 
2261
test "$program_suffix" != NONE &&
 
2262
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2263
# Double any \ or $.
 
2264
# By default was `s,x,x', remove it if useless.
 
2265
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2266
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2267
 
 
2268
# expand $ac_aux_dir to an absolute path
 
2269
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2270
 
 
2271
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2272
# Use eval to expand $SHELL
 
2273
if eval "$MISSING --run true"; then
 
2274
  am_missing_run="$MISSING --run "
 
2275
else
 
2276
  am_missing_run=
 
2277
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2278
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2279
fi
 
2280
 
 
2281
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2282
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2283
if test -z "$MKDIR_P"; then
 
2284
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2285
  $as_echo_n "(cached) " >&6
 
2286
else
 
2287
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2288
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2289
do
 
2290
  IFS=$as_save_IFS
 
2291
  test -z "$as_dir" && as_dir=.
 
2292
  for ac_prog in mkdir gmkdir; do
 
2293
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2294
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2295
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2296
             'mkdir (GNU coreutils) '* | \
 
2297
             'mkdir (coreutils) '* | \
 
2298
             'mkdir (fileutils) '4.1*)
 
2299
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2300
               break 3;;
 
2301
           esac
 
2302
         done
 
2303
       done
 
2304
done
 
2305
IFS=$as_save_IFS
 
2306
 
 
2307
fi
 
2308
 
 
2309
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2310
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2311
  else
 
2312
    # As a last resort, use the slow shell script.  Don't cache a
 
2313
    # value for MKDIR_P within a source directory, because that will
 
2314
    # break other packages using the cache if that directory is
 
2315
    # removed, or if the value is a relative name.
 
2316
    test -d ./--version && rmdir ./--version
 
2317
    MKDIR_P="$ac_install_sh -d"
 
2318
  fi
 
2319
fi
 
2320
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2321
$as_echo "$MKDIR_P" >&6; }
 
2322
 
 
2323
mkdir_p="$MKDIR_P"
 
2324
case $mkdir_p in
 
2325
  [\\/$]* | ?:[\\/]*) ;;
 
2326
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2327
esac
 
2328
 
 
2329
for ac_prog in gawk mawk nawk awk
 
2330
do
 
2331
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2332
set dummy $ac_prog; ac_word=$2
 
2333
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2334
$as_echo_n "checking for $ac_word... " >&6; }
 
2335
if test "${ac_cv_prog_AWK+set}" = set; then
 
2336
  $as_echo_n "(cached) " >&6
 
2337
else
 
2338
  if test -n "$AWK"; then
 
2339
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2340
else
 
2341
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2342
for as_dir in $PATH
 
2343
do
 
2344
  IFS=$as_save_IFS
 
2345
  test -z "$as_dir" && as_dir=.
 
2346
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2347
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2348
    ac_cv_prog_AWK="$ac_prog"
 
2349
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2350
    break 2
 
2351
  fi
 
2352
done
 
2353
done
 
2354
IFS=$as_save_IFS
 
2355
 
 
2356
fi
 
2357
fi
 
2358
AWK=$ac_cv_prog_AWK
 
2359
if test -n "$AWK"; then
 
2360
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2361
$as_echo "$AWK" >&6; }
 
2362
else
 
2363
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2364
$as_echo "no" >&6; }
 
2365
fi
 
2366
 
 
2367
 
 
2368
  test -n "$AWK" && break
 
2369
done
 
2370
 
 
2371
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2372
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2373
set x ${MAKE-make}
 
2374
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2375
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2376
  $as_echo_n "(cached) " >&6
 
2377
else
 
2378
  cat >conftest.make <<\_ACEOF
 
2379
SHELL = /bin/sh
 
2380
all:
 
2381
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2382
_ACEOF
 
2383
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2384
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2385
  *@@@%%%=?*=@@@%%%*)
 
2386
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2387
  *)
 
2388
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2389
esac
 
2390
rm -f conftest.make
 
2391
fi
 
2392
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2393
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2394
$as_echo "yes" >&6; }
 
2395
  SET_MAKE=
 
2396
else
 
2397
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2398
$as_echo "no" >&6; }
 
2399
  SET_MAKE="MAKE=${MAKE-make}"
 
2400
fi
 
2401
 
 
2402
rm -rf .tst 2>/dev/null
 
2403
mkdir .tst 2>/dev/null
 
2404
if test -d .tst; then
 
2405
  am__leading_dot=.
 
2406
else
 
2407
  am__leading_dot=_
 
2408
fi
 
2409
rmdir .tst 2>/dev/null
 
2410
 
 
2411
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2412
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2413
  # is not polluted with repeated "-I."
 
2414
  am__isrc=' -I$(srcdir)'
 
2415
  # test to see if srcdir already configured
 
2416
  if test -f $srcdir/config.status; then
 
2417
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2418
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2419
   { (exit 1); exit 1; }; }
 
2420
  fi
 
2421
fi
 
2422
 
 
2423
# test whether we have cygpath
 
2424
if test -z "$CYGPATH_W"; then
 
2425
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2426
    CYGPATH_W='cygpath -w'
 
2427
  else
 
2428
    CYGPATH_W=echo
 
2429
  fi
 
2430
fi
 
2431
 
 
2432
 
 
2433
# Define the identity of the package.
 
2434
 PACKAGE='xf86-input-synaptics'
 
2435
 VERSION='0.99.3'
 
2436
 
 
2437
 
 
2438
cat >>confdefs.h <<_ACEOF
 
2439
#define PACKAGE "$PACKAGE"
 
2440
_ACEOF
 
2441
 
 
2442
 
 
2443
cat >>confdefs.h <<_ACEOF
 
2444
#define VERSION "$VERSION"
 
2445
_ACEOF
 
2446
 
 
2447
# Some tools Automake needs.
 
2448
 
 
2449
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2450
 
 
2451
 
 
2452
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2453
 
 
2454
 
 
2455
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2456
 
 
2457
 
 
2458
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2459
 
 
2460
 
 
2461
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2462
 
 
2463
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2464
 
 
2465
# Installed binaries are usually stripped using `strip' when the user
 
2466
# run `make install-strip'.  However `strip' might not be the right
 
2467
# tool to use in cross-compilation environments, therefore Automake
 
2468
# will honor the `STRIP' environment variable to overrule this program.
 
2469
if test "$cross_compiling" != no; then
 
2470
  if test -n "$ac_tool_prefix"; then
 
2471
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2472
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2473
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2474
$as_echo_n "checking for $ac_word... " >&6; }
 
2475
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2476
  $as_echo_n "(cached) " >&6
 
2477
else
 
2478
  if test -n "$STRIP"; then
 
2479
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2480
else
 
2481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2482
for as_dir in $PATH
 
2483
do
 
2484
  IFS=$as_save_IFS
 
2485
  test -z "$as_dir" && as_dir=.
 
2486
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2488
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2489
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2490
    break 2
 
2491
  fi
 
2492
done
 
2493
done
 
2494
IFS=$as_save_IFS
 
2495
 
 
2496
fi
 
2497
fi
 
2498
STRIP=$ac_cv_prog_STRIP
 
2499
if test -n "$STRIP"; then
 
2500
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2501
$as_echo "$STRIP" >&6; }
 
2502
else
 
2503
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2504
$as_echo "no" >&6; }
 
2505
fi
 
2506
 
 
2507
 
 
2508
fi
 
2509
if test -z "$ac_cv_prog_STRIP"; then
 
2510
  ac_ct_STRIP=$STRIP
 
2511
  # Extract the first word of "strip", so it can be a program name with args.
 
2512
set dummy strip; ac_word=$2
 
2513
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2514
$as_echo_n "checking for $ac_word... " >&6; }
 
2515
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2516
  $as_echo_n "(cached) " >&6
 
2517
else
 
2518
  if test -n "$ac_ct_STRIP"; then
 
2519
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2520
else
 
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2522
for as_dir in $PATH
 
2523
do
 
2524
  IFS=$as_save_IFS
 
2525
  test -z "$as_dir" && as_dir=.
 
2526
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2528
    ac_cv_prog_ac_ct_STRIP="strip"
 
2529
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2530
    break 2
 
2531
  fi
 
2532
done
 
2533
done
 
2534
IFS=$as_save_IFS
 
2535
 
 
2536
fi
 
2537
fi
 
2538
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2539
if test -n "$ac_ct_STRIP"; then
 
2540
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2541
$as_echo "$ac_ct_STRIP" >&6; }
 
2542
else
 
2543
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2544
$as_echo "no" >&6; }
 
2545
fi
 
2546
 
 
2547
  if test "x$ac_ct_STRIP" = x; then
 
2548
    STRIP=":"
 
2549
  else
 
2550
    case $cross_compiling:$ac_tool_warned in
 
2551
yes:)
 
2552
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2553
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2554
ac_tool_warned=yes ;;
 
2555
esac
 
2556
    STRIP=$ac_ct_STRIP
 
2557
  fi
 
2558
else
 
2559
  STRIP="$ac_cv_prog_STRIP"
 
2560
fi
 
2561
 
 
2562
fi
 
2563
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2564
 
 
2565
# We need awk for the "check" target.  The system "awk" is bad on
 
2566
# some platforms.
 
2567
# Always define AMTAR for backward compatibility.
 
2568
 
 
2569
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2570
 
 
2571
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2572
 
 
2573
 
 
2574
 
 
2575
 
 
2576
 
 
2577
 
 
2578
{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
2579
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
 
2580
    # Check whether --enable-maintainer-mode was given.
 
2581
if test "${enable_maintainer_mode+set}" = set; then
 
2582
  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
 
2583
else
 
2584
  USE_MAINTAINER_MODE=no
 
2585
fi
 
2586
 
 
2587
  { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
2588
$as_echo "$USE_MAINTAINER_MODE" >&6; }
 
2589
   if test $USE_MAINTAINER_MODE = yes; then
 
2590
  MAINTAINER_MODE_TRUE=
 
2591
  MAINTAINER_MODE_FALSE='#'
 
2592
else
 
2593
  MAINTAINER_MODE_TRUE='#'
 
2594
  MAINTAINER_MODE_FALSE=
 
2595
fi
 
2596
 
 
2597
  MAINT=$MAINTAINER_MODE_TRUE
 
2598
 
 
2599
 
 
2600
 
 
2601
DRIVER_NAME=synaptics
 
2602
 
 
2603
 
 
2604
ac_config_headers="$ac_config_headers config.h"
 
2605
 
 
2606
 
 
2607
# Checks for programs.
 
2608
# Check whether --enable-static was given.
 
2609
if test "${enable_static+set}" = set; then
 
2610
  enableval=$enable_static; p=${PACKAGE-default}
 
2611
    case $enableval in
 
2612
    yes) enable_static=yes ;;
 
2613
    no) enable_static=no ;;
 
2614
    *)
 
2615
     enable_static=no
 
2616
      # Look at the argument we got.  We use all the common list separators.
 
2617
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2618
      for pkg in $enableval; do
 
2619
        IFS="$lt_save_ifs"
 
2620
        if test "X$pkg" = "X$p"; then
 
2621
          enable_static=yes
 
2622
        fi
 
2623
      done
 
2624
      IFS="$lt_save_ifs"
 
2625
      ;;
 
2626
    esac
 
2627
else
 
2628
  enable_static=no
 
2629
fi
 
2630
 
 
2631
 
 
2632
 
 
2633
# Check whether --enable-shared was given.
 
2634
if test "${enable_shared+set}" = set; then
 
2635
  enableval=$enable_shared; p=${PACKAGE-default}
 
2636
    case $enableval in
 
2637
    yes) enable_shared=yes ;;
 
2638
    no) enable_shared=no ;;
 
2639
    *)
 
2640
      enable_shared=no
 
2641
      # Look at the argument we got.  We use all the common list separators.
 
2642
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2643
      for pkg in $enableval; do
 
2644
        IFS="$lt_save_ifs"
 
2645
        if test "X$pkg" = "X$p"; then
 
2646
          enable_shared=yes
 
2647
        fi
 
2648
      done
 
2649
      IFS="$lt_save_ifs"
 
2650
      ;;
 
2651
    esac
 
2652
else
 
2653
  enable_shared=yes
 
2654
fi
 
2655
 
 
2656
 
 
2657
# Check whether --enable-fast-install was given.
 
2658
if test "${enable_fast_install+set}" = set; then
 
2659
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
2660
    case $enableval in
 
2661
    yes) enable_fast_install=yes ;;
 
2662
    no) enable_fast_install=no ;;
 
2663
    *)
 
2664
      enable_fast_install=no
 
2665
      # Look at the argument we got.  We use all the common list separators.
 
2666
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2667
      for pkg in $enableval; do
 
2668
        IFS="$lt_save_ifs"
 
2669
        if test "X$pkg" = "X$p"; then
 
2670
          enable_fast_install=yes
 
2671
        fi
 
2672
      done
 
2673
      IFS="$lt_save_ifs"
 
2674
      ;;
 
2675
    esac
 
2676
else
 
2677
  enable_fast_install=yes
 
2678
fi
 
2679
 
 
2680
 
 
2681
# Make sure we can run config.sub.
 
2682
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2683
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2684
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2685
   { (exit 1); exit 1; }; }
 
2686
 
 
2687
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2688
$as_echo_n "checking build system type... " >&6; }
 
2689
if test "${ac_cv_build+set}" = set; then
 
2690
  $as_echo_n "(cached) " >&6
 
2691
else
 
2692
  ac_build_alias=$build_alias
 
2693
test "x$ac_build_alias" = x &&
 
2694
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2695
test "x$ac_build_alias" = x &&
 
2696
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2697
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2698
   { (exit 1); exit 1; }; }
 
2699
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2700
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2701
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2702
   { (exit 1); exit 1; }; }
 
2703
 
 
2704
fi
 
2705
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2706
$as_echo "$ac_cv_build" >&6; }
 
2707
case $ac_cv_build in
 
2708
*-*-*) ;;
 
2709
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2710
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2711
   { (exit 1); exit 1; }; };;
 
2712
esac
 
2713
build=$ac_cv_build
 
2714
ac_save_IFS=$IFS; IFS='-'
 
2715
set x $ac_cv_build
 
2716
shift
 
2717
build_cpu=$1
 
2718
build_vendor=$2
 
2719
shift; shift
 
2720
# Remember, the first character of IFS is used to create $*,
 
2721
# except with old shells:
 
2722
build_os=$*
 
2723
IFS=$ac_save_IFS
 
2724
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2725
 
 
2726
 
 
2727
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2728
$as_echo_n "checking host system type... " >&6; }
 
2729
if test "${ac_cv_host+set}" = set; then
 
2730
  $as_echo_n "(cached) " >&6
 
2731
else
 
2732
  if test "x$host_alias" = x; then
 
2733
  ac_cv_host=$ac_cv_build
 
2734
else
 
2735
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2736
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2737
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2738
   { (exit 1); exit 1; }; }
 
2739
fi
 
2740
 
 
2741
fi
 
2742
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2743
$as_echo "$ac_cv_host" >&6; }
 
2744
case $ac_cv_host in
 
2745
*-*-*) ;;
 
2746
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2747
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2748
   { (exit 1); exit 1; }; };;
 
2749
esac
 
2750
host=$ac_cv_host
 
2751
ac_save_IFS=$IFS; IFS='-'
 
2752
set x $ac_cv_host
 
2753
shift
 
2754
host_cpu=$1
 
2755
host_vendor=$2
 
2756
shift; shift
 
2757
# Remember, the first character of IFS is used to create $*,
 
2758
# except with old shells:
 
2759
host_os=$*
 
2760
IFS=$ac_save_IFS
 
2761
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2762
 
 
2763
 
 
2764
DEPDIR="${am__leading_dot}deps"
 
2765
 
 
2766
ac_config_commands="$ac_config_commands depfiles"
 
2767
 
 
2768
 
 
2769
am_make=${MAKE-make}
 
2770
cat > confinc << 'END'
 
2771
am__doit:
 
2772
        @echo done
 
2773
.PHONY: am__doit
 
2774
END
 
2775
# If we don't find an include directive, just comment out the code.
 
2776
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2777
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
2778
am__include="#"
 
2779
am__quote=
 
2780
_am_result=none
 
2781
# First try GNU make style include.
 
2782
echo "include confinc" > confmf
 
2783
# We grep out `Entering directory' and `Leaving directory'
 
2784
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2785
# In particular we don't look at `^make:' because GNU make might
 
2786
# be invoked under some other name (usually "gmake"), in which
 
2787
# case it prints its new name instead of `make'.
 
2788
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2789
   am__include=include
 
2790
   am__quote=
 
2791
   _am_result=GNU
 
2792
fi
 
2793
# Now try BSD make style include.
 
2794
if test "$am__include" = "#"; then
 
2795
   echo '.include "confinc"' > confmf
 
2796
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2797
      am__include=.include
 
2798
      am__quote="\""
 
2799
      _am_result=BSD
 
2800
   fi
 
2801
fi
 
2802
 
 
2803
 
 
2804
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
2805
$as_echo "$_am_result" >&6; }
 
2806
rm -f confinc confmf
 
2807
 
 
2808
# Check whether --enable-dependency-tracking was given.
 
2809
if test "${enable_dependency_tracking+set}" = set; then
 
2810
  enableval=$enable_dependency_tracking;
 
2811
fi
 
2812
 
 
2813
if test "x$enable_dependency_tracking" != xno; then
 
2814
  am_depcomp="$ac_aux_dir/depcomp"
 
2815
  AMDEPBACKSLASH='\'
 
2816
fi
 
2817
 if test "x$enable_dependency_tracking" != xno; then
 
2818
  AMDEP_TRUE=
 
2819
  AMDEP_FALSE='#'
 
2820
else
 
2821
  AMDEP_TRUE='#'
 
2822
  AMDEP_FALSE=
 
2823
fi
 
2824
 
 
2825
 
 
2826
ac_ext=c
 
2827
ac_cpp='$CPP $CPPFLAGS'
 
2828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2831
if test -n "$ac_tool_prefix"; then
 
2832
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2833
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2834
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2835
$as_echo_n "checking for $ac_word... " >&6; }
 
2836
if test "${ac_cv_prog_CC+set}" = set; then
 
2837
  $as_echo_n "(cached) " >&6
 
2838
else
 
2839
  if test -n "$CC"; then
 
2840
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2841
else
 
2842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2843
for as_dir in $PATH
 
2844
do
 
2845
  IFS=$as_save_IFS
 
2846
  test -z "$as_dir" && as_dir=.
 
2847
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2848
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2849
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2850
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2851
    break 2
 
2852
  fi
 
2853
done
 
2854
done
 
2855
IFS=$as_save_IFS
 
2856
 
 
2857
fi
 
2858
fi
 
2859
CC=$ac_cv_prog_CC
 
2860
if test -n "$CC"; then
 
2861
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2862
$as_echo "$CC" >&6; }
 
2863
else
 
2864
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2865
$as_echo "no" >&6; }
 
2866
fi
 
2867
 
 
2868
 
 
2869
fi
 
2870
if test -z "$ac_cv_prog_CC"; then
 
2871
  ac_ct_CC=$CC
 
2872
  # Extract the first word of "gcc", so it can be a program name with args.
 
2873
set dummy gcc; ac_word=$2
 
2874
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2875
$as_echo_n "checking for $ac_word... " >&6; }
 
2876
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2877
  $as_echo_n "(cached) " >&6
 
2878
else
 
2879
  if test -n "$ac_ct_CC"; then
 
2880
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2881
else
 
2882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2883
for as_dir in $PATH
 
2884
do
 
2885
  IFS=$as_save_IFS
 
2886
  test -z "$as_dir" && as_dir=.
 
2887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2888
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2889
    ac_cv_prog_ac_ct_CC="gcc"
 
2890
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2891
    break 2
 
2892
  fi
 
2893
done
 
2894
done
 
2895
IFS=$as_save_IFS
 
2896
 
 
2897
fi
 
2898
fi
 
2899
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2900
if test -n "$ac_ct_CC"; then
 
2901
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2902
$as_echo "$ac_ct_CC" >&6; }
 
2903
else
 
2904
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2905
$as_echo "no" >&6; }
 
2906
fi
 
2907
 
 
2908
  if test "x$ac_ct_CC" = x; then
 
2909
    CC=""
 
2910
  else
 
2911
    case $cross_compiling:$ac_tool_warned in
 
2912
yes:)
 
2913
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2914
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2915
ac_tool_warned=yes ;;
 
2916
esac
 
2917
    CC=$ac_ct_CC
 
2918
  fi
 
2919
else
 
2920
  CC="$ac_cv_prog_CC"
 
2921
fi
 
2922
 
 
2923
if test -z "$CC"; then
 
2924
          if test -n "$ac_tool_prefix"; then
 
2925
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2926
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2928
$as_echo_n "checking for $ac_word... " >&6; }
 
2929
if test "${ac_cv_prog_CC+set}" = set; then
 
2930
  $as_echo_n "(cached) " >&6
 
2931
else
 
2932
  if test -n "$CC"; then
 
2933
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2934
else
 
2935
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2936
for as_dir in $PATH
 
2937
do
 
2938
  IFS=$as_save_IFS
 
2939
  test -z "$as_dir" && as_dir=.
 
2940
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2941
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2942
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2943
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2944
    break 2
 
2945
  fi
 
2946
done
 
2947
done
 
2948
IFS=$as_save_IFS
 
2949
 
 
2950
fi
 
2951
fi
 
2952
CC=$ac_cv_prog_CC
 
2953
if test -n "$CC"; then
 
2954
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2955
$as_echo "$CC" >&6; }
 
2956
else
 
2957
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2958
$as_echo "no" >&6; }
 
2959
fi
 
2960
 
 
2961
 
 
2962
  fi
 
2963
fi
 
2964
if test -z "$CC"; then
 
2965
  # Extract the first word of "cc", so it can be a program name with args.
 
2966
set dummy cc; ac_word=$2
 
2967
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2968
$as_echo_n "checking for $ac_word... " >&6; }
 
2969
if test "${ac_cv_prog_CC+set}" = set; then
 
2970
  $as_echo_n "(cached) " >&6
 
2971
else
 
2972
  if test -n "$CC"; then
 
2973
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2974
else
 
2975
  ac_prog_rejected=no
 
2976
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2977
for as_dir in $PATH
 
2978
do
 
2979
  IFS=$as_save_IFS
 
2980
  test -z "$as_dir" && as_dir=.
 
2981
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2982
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2983
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2984
       ac_prog_rejected=yes
 
2985
       continue
 
2986
     fi
 
2987
    ac_cv_prog_CC="cc"
 
2988
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2989
    break 2
 
2990
  fi
 
2991
done
 
2992
done
 
2993
IFS=$as_save_IFS
 
2994
 
 
2995
if test $ac_prog_rejected = yes; then
 
2996
  # We found a bogon in the path, so make sure we never use it.
 
2997
  set dummy $ac_cv_prog_CC
 
2998
  shift
 
2999
  if test $# != 0; then
 
3000
    # We chose a different compiler from the bogus one.
 
3001
    # However, it has the same basename, so the bogon will be chosen
 
3002
    # first if we set CC to just the basename; use the full file name.
 
3003
    shift
 
3004
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3005
  fi
 
3006
fi
 
3007
fi
 
3008
fi
 
3009
CC=$ac_cv_prog_CC
 
3010
if test -n "$CC"; then
 
3011
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3012
$as_echo "$CC" >&6; }
 
3013
else
 
3014
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3015
$as_echo "no" >&6; }
 
3016
fi
 
3017
 
 
3018
 
 
3019
fi
 
3020
if test -z "$CC"; then
 
3021
  if test -n "$ac_tool_prefix"; then
 
3022
  for ac_prog in cl.exe
 
3023
  do
 
3024
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3025
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3026
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3027
$as_echo_n "checking for $ac_word... " >&6; }
 
3028
if test "${ac_cv_prog_CC+set}" = set; then
 
3029
  $as_echo_n "(cached) " >&6
 
3030
else
 
3031
  if test -n "$CC"; then
 
3032
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3033
else
 
3034
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3035
for as_dir in $PATH
 
3036
do
 
3037
  IFS=$as_save_IFS
 
3038
  test -z "$as_dir" && as_dir=.
 
3039
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3040
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3041
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3042
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3043
    break 2
 
3044
  fi
 
3045
done
 
3046
done
 
3047
IFS=$as_save_IFS
 
3048
 
 
3049
fi
 
3050
fi
 
3051
CC=$ac_cv_prog_CC
 
3052
if test -n "$CC"; then
 
3053
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3054
$as_echo "$CC" >&6; }
 
3055
else
 
3056
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3057
$as_echo "no" >&6; }
 
3058
fi
 
3059
 
 
3060
 
 
3061
    test -n "$CC" && break
 
3062
  done
 
3063
fi
 
3064
if test -z "$CC"; then
 
3065
  ac_ct_CC=$CC
 
3066
  for ac_prog in cl.exe
 
3067
do
 
3068
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3069
set dummy $ac_prog; ac_word=$2
 
3070
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3071
$as_echo_n "checking for $ac_word... " >&6; }
 
3072
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3073
  $as_echo_n "(cached) " >&6
 
3074
else
 
3075
  if test -n "$ac_ct_CC"; then
 
3076
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3077
else
 
3078
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3079
for as_dir in $PATH
 
3080
do
 
3081
  IFS=$as_save_IFS
 
3082
  test -z "$as_dir" && as_dir=.
 
3083
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3084
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3085
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3086
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3087
    break 2
 
3088
  fi
 
3089
done
 
3090
done
 
3091
IFS=$as_save_IFS
 
3092
 
 
3093
fi
 
3094
fi
 
3095
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3096
if test -n "$ac_ct_CC"; then
 
3097
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3098
$as_echo "$ac_ct_CC" >&6; }
 
3099
else
 
3100
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3101
$as_echo "no" >&6; }
 
3102
fi
 
3103
 
 
3104
 
 
3105
  test -n "$ac_ct_CC" && break
 
3106
done
 
3107
 
 
3108
  if test "x$ac_ct_CC" = x; then
 
3109
    CC=""
 
3110
  else
 
3111
    case $cross_compiling:$ac_tool_warned in
 
3112
yes:)
 
3113
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3114
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3115
ac_tool_warned=yes ;;
 
3116
esac
 
3117
    CC=$ac_ct_CC
 
3118
  fi
 
3119
fi
 
3120
 
 
3121
fi
 
3122
 
 
3123
 
 
3124
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3125
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3126
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3127
See \`config.log' for more details." >&5
 
3128
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3129
See \`config.log' for more details." >&2;}
 
3130
   { (exit 1); exit 1; }; }; }
 
3131
 
 
3132
# Provide some information about the compiler.
 
3133
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3134
set X $ac_compile
 
3135
ac_compiler=$2
 
3136
{ (ac_try="$ac_compiler --version >&5"
 
3137
case "(($ac_try" in
 
3138
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3139
  *) ac_try_echo=$ac_try;;
 
3140
esac
 
3141
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3142
$as_echo "$ac_try_echo") >&5
 
3143
  (eval "$ac_compiler --version >&5") 2>&5
 
3144
  ac_status=$?
 
3145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3146
  (exit $ac_status); }
 
3147
{ (ac_try="$ac_compiler -v >&5"
 
3148
case "(($ac_try" in
 
3149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3150
  *) ac_try_echo=$ac_try;;
 
3151
esac
 
3152
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3153
$as_echo "$ac_try_echo") >&5
 
3154
  (eval "$ac_compiler -v >&5") 2>&5
 
3155
  ac_status=$?
 
3156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3157
  (exit $ac_status); }
 
3158
{ (ac_try="$ac_compiler -V >&5"
 
3159
case "(($ac_try" in
 
3160
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3161
  *) ac_try_echo=$ac_try;;
 
3162
esac
 
3163
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3164
$as_echo "$ac_try_echo") >&5
 
3165
  (eval "$ac_compiler -V >&5") 2>&5
 
3166
  ac_status=$?
 
3167
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3168
  (exit $ac_status); }
 
3169
 
 
3170
cat >conftest.$ac_ext <<_ACEOF
 
3171
/* confdefs.h.  */
 
3172
_ACEOF
 
3173
cat confdefs.h >>conftest.$ac_ext
 
3174
cat >>conftest.$ac_ext <<_ACEOF
 
3175
/* end confdefs.h.  */
 
3176
 
 
3177
int
 
3178
main ()
 
3179
{
 
3180
 
 
3181
  ;
 
3182
  return 0;
 
3183
}
 
3184
_ACEOF
 
3185
ac_clean_files_save=$ac_clean_files
 
3186
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3187
# Try to create an executable without -o first, disregard a.out.
 
3188
# It will help us diagnose broken compilers, and finding out an intuition
 
3189
# of exeext.
 
3190
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3191
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
3192
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3193
 
 
3194
# The possible output files:
 
3195
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3196
 
 
3197
ac_rmfiles=
 
3198
for ac_file in $ac_files
 
3199
do
 
3200
  case $ac_file in
 
3201
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3202
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3203
  esac
 
3204
done
 
3205
rm -f $ac_rmfiles
 
3206
 
 
3207
if { (ac_try="$ac_link_default"
 
3208
case "(($ac_try" in
 
3209
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3210
  *) ac_try_echo=$ac_try;;
 
3211
esac
 
3212
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3213
$as_echo "$ac_try_echo") >&5
 
3214
  (eval "$ac_link_default") 2>&5
 
3215
  ac_status=$?
 
3216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3217
  (exit $ac_status); }; then
 
3218
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3219
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3220
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3221
# so that the user can short-circuit this test for compilers unknown to
 
3222
# Autoconf.
 
3223
for ac_file in $ac_files ''
 
3224
do
 
3225
  test -f "$ac_file" || continue
 
3226
  case $ac_file in
 
3227
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3228
        ;;
 
3229
    [ab].out )
 
3230
        # We found the default executable, but exeext='' is most
 
3231
        # certainly right.
 
3232
        break;;
 
3233
    *.* )
 
3234
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3235
        then :; else
 
3236
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3237
        fi
 
3238
        # We set ac_cv_exeext here because the later test for it is not
 
3239
        # safe: cross compilers may not add the suffix if given an `-o'
 
3240
        # argument, so we may need to know it at that point already.
 
3241
        # Even if this section looks crufty: it has the advantage of
 
3242
        # actually working.
 
3243
        break;;
 
3244
    * )
 
3245
        break;;
 
3246
  esac
 
3247
done
 
3248
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3249
 
 
3250
else
 
3251
  ac_file=''
 
3252
fi
 
3253
 
 
3254
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3255
$as_echo "$ac_file" >&6; }
 
3256
if test -z "$ac_file"; then
 
3257
  $as_echo "$as_me: failed program was:" >&5
 
3258
sed 's/^/| /' conftest.$ac_ext >&5
 
3259
 
 
3260
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3261
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3262
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3263
See \`config.log' for more details." >&5
 
3264
$as_echo "$as_me: error: C compiler cannot create executables
 
3265
See \`config.log' for more details." >&2;}
 
3266
   { (exit 77); exit 77; }; }; }
 
3267
fi
 
3268
 
 
3269
ac_exeext=$ac_cv_exeext
 
3270
 
 
3271
# Check that the compiler produces executables we can run.  If not, either
 
3272
# the compiler is broken, or we cross compile.
 
3273
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3274
$as_echo_n "checking whether the C compiler works... " >&6; }
 
3275
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3276
# If not cross compiling, check that we can run a simple program.
 
3277
if test "$cross_compiling" != yes; then
 
3278
  if { ac_try='./$ac_file'
 
3279
  { (case "(($ac_try" in
 
3280
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3281
  *) ac_try_echo=$ac_try;;
 
3282
esac
 
3283
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3284
$as_echo "$ac_try_echo") >&5
 
3285
  (eval "$ac_try") 2>&5
 
3286
  ac_status=$?
 
3287
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3288
  (exit $ac_status); }; }; then
 
3289
    cross_compiling=no
 
3290
  else
 
3291
    if test "$cross_compiling" = maybe; then
 
3292
        cross_compiling=yes
 
3293
    else
 
3294
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3295
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3296
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3297
If you meant to cross compile, use \`--host'.
 
3298
See \`config.log' for more details." >&5
 
3299
$as_echo "$as_me: error: cannot run C compiled programs.
 
3300
If you meant to cross compile, use \`--host'.
 
3301
See \`config.log' for more details." >&2;}
 
3302
   { (exit 1); exit 1; }; }; }
 
3303
    fi
 
3304
  fi
 
3305
fi
 
3306
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3307
$as_echo "yes" >&6; }
 
3308
 
 
3309
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3310
ac_clean_files=$ac_clean_files_save
 
3311
# Check that the compiler produces executables we can run.  If not, either
 
3312
# the compiler is broken, or we cross compile.
 
3313
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3314
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3315
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3316
$as_echo "$cross_compiling" >&6; }
 
3317
 
 
3318
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3319
$as_echo_n "checking for suffix of executables... " >&6; }
 
3320
if { (ac_try="$ac_link"
 
3321
case "(($ac_try" in
 
3322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3323
  *) ac_try_echo=$ac_try;;
 
3324
esac
 
3325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3326
$as_echo "$ac_try_echo") >&5
 
3327
  (eval "$ac_link") 2>&5
 
3328
  ac_status=$?
 
3329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3330
  (exit $ac_status); }; then
 
3331
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3332
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3333
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3334
# `rm'.
 
3335
for ac_file in conftest.exe conftest conftest.*; do
 
3336
  test -f "$ac_file" || continue
 
3337
  case $ac_file in
 
3338
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3339
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3340
          break;;
 
3341
    * ) break;;
 
3342
  esac
 
3343
done
 
3344
else
 
3345
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3346
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3347
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3348
See \`config.log' for more details." >&5
 
3349
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3350
See \`config.log' for more details." >&2;}
 
3351
   { (exit 1); exit 1; }; }; }
 
3352
fi
 
3353
 
 
3354
rm -f conftest$ac_cv_exeext
 
3355
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3356
$as_echo "$ac_cv_exeext" >&6; }
 
3357
 
 
3358
rm -f conftest.$ac_ext
 
3359
EXEEXT=$ac_cv_exeext
 
3360
ac_exeext=$EXEEXT
 
3361
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3362
$as_echo_n "checking for suffix of object files... " >&6; }
 
3363
if test "${ac_cv_objext+set}" = set; then
 
3364
  $as_echo_n "(cached) " >&6
 
3365
else
 
3366
  cat >conftest.$ac_ext <<_ACEOF
 
3367
/* confdefs.h.  */
 
3368
_ACEOF
 
3369
cat confdefs.h >>conftest.$ac_ext
 
3370
cat >>conftest.$ac_ext <<_ACEOF
 
3371
/* end confdefs.h.  */
 
3372
 
 
3373
int
 
3374
main ()
 
3375
{
 
3376
 
 
3377
  ;
 
3378
  return 0;
 
3379
}
 
3380
_ACEOF
 
3381
rm -f conftest.o conftest.obj
 
3382
if { (ac_try="$ac_compile"
 
3383
case "(($ac_try" in
 
3384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3385
  *) ac_try_echo=$ac_try;;
 
3386
esac
 
3387
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3388
$as_echo "$ac_try_echo") >&5
 
3389
  (eval "$ac_compile") 2>&5
 
3390
  ac_status=$?
 
3391
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3392
  (exit $ac_status); }; then
 
3393
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3394
  test -f "$ac_file" || continue;
 
3395
  case $ac_file in
 
3396
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3397
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3398
       break;;
 
3399
  esac
 
3400
done
 
3401
else
 
3402
  $as_echo "$as_me: failed program was:" >&5
 
3403
sed 's/^/| /' conftest.$ac_ext >&5
 
3404
 
 
3405
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3406
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3407
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3408
See \`config.log' for more details." >&5
 
3409
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3410
See \`config.log' for more details." >&2;}
 
3411
   { (exit 1); exit 1; }; }; }
 
3412
fi
 
3413
 
 
3414
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3415
fi
 
3416
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3417
$as_echo "$ac_cv_objext" >&6; }
 
3418
OBJEXT=$ac_cv_objext
 
3419
ac_objext=$OBJEXT
 
3420
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3421
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3422
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3423
  $as_echo_n "(cached) " >&6
 
3424
else
 
3425
  cat >conftest.$ac_ext <<_ACEOF
 
3426
/* confdefs.h.  */
 
3427
_ACEOF
 
3428
cat confdefs.h >>conftest.$ac_ext
 
3429
cat >>conftest.$ac_ext <<_ACEOF
 
3430
/* end confdefs.h.  */
 
3431
 
 
3432
int
 
3433
main ()
 
3434
{
 
3435
#ifndef __GNUC__
 
3436
       choke me
 
3437
#endif
 
3438
 
 
3439
  ;
 
3440
  return 0;
 
3441
}
 
3442
_ACEOF
 
3443
rm -f conftest.$ac_objext
 
3444
if { (ac_try="$ac_compile"
 
3445
case "(($ac_try" in
 
3446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3447
  *) ac_try_echo=$ac_try;;
 
3448
esac
 
3449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3450
$as_echo "$ac_try_echo") >&5
 
3451
  (eval "$ac_compile") 2>conftest.er1
 
3452
  ac_status=$?
 
3453
  grep -v '^ *+' conftest.er1 >conftest.err
 
3454
  rm -f conftest.er1
 
3455
  cat conftest.err >&5
 
3456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3457
  (exit $ac_status); } && {
 
3458
         test -z "$ac_c_werror_flag" ||
 
3459
         test ! -s conftest.err
 
3460
       } && test -s conftest.$ac_objext; then
 
3461
  ac_compiler_gnu=yes
 
3462
else
 
3463
  $as_echo "$as_me: failed program was:" >&5
 
3464
sed 's/^/| /' conftest.$ac_ext >&5
 
3465
 
 
3466
        ac_compiler_gnu=no
 
3467
fi
 
3468
 
 
3469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3470
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3471
 
 
3472
fi
 
3473
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3474
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
3475
if test $ac_compiler_gnu = yes; then
 
3476
  GCC=yes
 
3477
else
 
3478
  GCC=
 
3479
fi
 
3480
ac_test_CFLAGS=${CFLAGS+set}
 
3481
ac_save_CFLAGS=$CFLAGS
 
3482
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3483
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
3484
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3485
  $as_echo_n "(cached) " >&6
 
3486
else
 
3487
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3488
   ac_c_werror_flag=yes
 
3489
   ac_cv_prog_cc_g=no
 
3490
   CFLAGS="-g"
 
3491
   cat >conftest.$ac_ext <<_ACEOF
 
3492
/* confdefs.h.  */
 
3493
_ACEOF
 
3494
cat confdefs.h >>conftest.$ac_ext
 
3495
cat >>conftest.$ac_ext <<_ACEOF
 
3496
/* end confdefs.h.  */
 
3497
 
 
3498
int
 
3499
main ()
 
3500
{
 
3501
 
 
3502
  ;
 
3503
  return 0;
 
3504
}
 
3505
_ACEOF
 
3506
rm -f conftest.$ac_objext
 
3507
if { (ac_try="$ac_compile"
 
3508
case "(($ac_try" in
 
3509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3510
  *) ac_try_echo=$ac_try;;
 
3511
esac
 
3512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3513
$as_echo "$ac_try_echo") >&5
 
3514
  (eval "$ac_compile") 2>conftest.er1
 
3515
  ac_status=$?
 
3516
  grep -v '^ *+' conftest.er1 >conftest.err
 
3517
  rm -f conftest.er1
 
3518
  cat conftest.err >&5
 
3519
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3520
  (exit $ac_status); } && {
 
3521
         test -z "$ac_c_werror_flag" ||
 
3522
         test ! -s conftest.err
 
3523
       } && test -s conftest.$ac_objext; then
 
3524
  ac_cv_prog_cc_g=yes
 
3525
else
 
3526
  $as_echo "$as_me: failed program was:" >&5
 
3527
sed 's/^/| /' conftest.$ac_ext >&5
 
3528
 
 
3529
        CFLAGS=""
 
3530
      cat >conftest.$ac_ext <<_ACEOF
 
3531
/* confdefs.h.  */
 
3532
_ACEOF
 
3533
cat confdefs.h >>conftest.$ac_ext
 
3534
cat >>conftest.$ac_ext <<_ACEOF
 
3535
/* end confdefs.h.  */
 
3536
 
 
3537
int
 
3538
main ()
 
3539
{
 
3540
 
 
3541
  ;
 
3542
  return 0;
 
3543
}
 
3544
_ACEOF
 
3545
rm -f conftest.$ac_objext
 
3546
if { (ac_try="$ac_compile"
 
3547
case "(($ac_try" in
 
3548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3549
  *) ac_try_echo=$ac_try;;
 
3550
esac
 
3551
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3552
$as_echo "$ac_try_echo") >&5
 
3553
  (eval "$ac_compile") 2>conftest.er1
 
3554
  ac_status=$?
 
3555
  grep -v '^ *+' conftest.er1 >conftest.err
 
3556
  rm -f conftest.er1
 
3557
  cat conftest.err >&5
 
3558
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3559
  (exit $ac_status); } && {
 
3560
         test -z "$ac_c_werror_flag" ||
 
3561
         test ! -s conftest.err
 
3562
       } && test -s conftest.$ac_objext; then
 
3563
  :
 
3564
else
 
3565
  $as_echo "$as_me: failed program was:" >&5
 
3566
sed 's/^/| /' conftest.$ac_ext >&5
 
3567
 
 
3568
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3569
         CFLAGS="-g"
 
3570
         cat >conftest.$ac_ext <<_ACEOF
 
3571
/* confdefs.h.  */
 
3572
_ACEOF
 
3573
cat confdefs.h >>conftest.$ac_ext
 
3574
cat >>conftest.$ac_ext <<_ACEOF
 
3575
/* end confdefs.h.  */
 
3576
 
 
3577
int
 
3578
main ()
 
3579
{
 
3580
 
 
3581
  ;
 
3582
  return 0;
 
3583
}
 
3584
_ACEOF
 
3585
rm -f conftest.$ac_objext
 
3586
if { (ac_try="$ac_compile"
 
3587
case "(($ac_try" in
 
3588
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3589
  *) ac_try_echo=$ac_try;;
 
3590
esac
 
3591
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3592
$as_echo "$ac_try_echo") >&5
 
3593
  (eval "$ac_compile") 2>conftest.er1
 
3594
  ac_status=$?
 
3595
  grep -v '^ *+' conftest.er1 >conftest.err
 
3596
  rm -f conftest.er1
 
3597
  cat conftest.err >&5
 
3598
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3599
  (exit $ac_status); } && {
 
3600
         test -z "$ac_c_werror_flag" ||
 
3601
         test ! -s conftest.err
 
3602
       } && test -s conftest.$ac_objext; then
 
3603
  ac_cv_prog_cc_g=yes
 
3604
else
 
3605
  $as_echo "$as_me: failed program was:" >&5
 
3606
sed 's/^/| /' conftest.$ac_ext >&5
 
3607
 
 
3608
 
 
3609
fi
 
3610
 
 
3611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3612
fi
 
3613
 
 
3614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3615
fi
 
3616
 
 
3617
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3618
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3619
fi
 
3620
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3621
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
3622
if test "$ac_test_CFLAGS" = set; then
 
3623
  CFLAGS=$ac_save_CFLAGS
 
3624
elif test $ac_cv_prog_cc_g = yes; then
 
3625
  if test "$GCC" = yes; then
 
3626
    CFLAGS="-g -O2"
 
3627
  else
 
3628
    CFLAGS="-g"
 
3629
  fi
 
3630
else
 
3631
  if test "$GCC" = yes; then
 
3632
    CFLAGS="-O2"
 
3633
  else
 
3634
    CFLAGS=
 
3635
  fi
 
3636
fi
 
3637
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3638
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
3639
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3640
  $as_echo_n "(cached) " >&6
 
3641
else
 
3642
  ac_cv_prog_cc_c89=no
 
3643
ac_save_CC=$CC
 
3644
cat >conftest.$ac_ext <<_ACEOF
 
3645
/* confdefs.h.  */
 
3646
_ACEOF
 
3647
cat confdefs.h >>conftest.$ac_ext
 
3648
cat >>conftest.$ac_ext <<_ACEOF
 
3649
/* end confdefs.h.  */
 
3650
#include <stdarg.h>
 
3651
#include <stdio.h>
 
3652
#include <sys/types.h>
 
3653
#include <sys/stat.h>
 
3654
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3655
struct buf { int x; };
 
3656
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3657
static char *e (p, i)
 
3658
     char **p;
 
3659
     int i;
 
3660
{
 
3661
  return p[i];
 
3662
}
 
3663
static char *f (char * (*g) (char **, int), char **p, ...)
 
3664
{
 
3665
  char *s;
 
3666
  va_list v;
 
3667
  va_start (v,p);
 
3668
  s = g (p, va_arg (v,int));
 
3669
  va_end (v);
 
3670
  return s;
 
3671
}
 
3672
 
 
3673
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3674
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3675
   These don't provoke an error unfortunately, instead are silently treated
 
3676
   as 'x'.  The following induces an error, until -std is added to get
 
3677
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3678
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3679
   that's true only with -std.  */
 
3680
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3681
 
 
3682
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3683
   inside strings and character constants.  */
 
3684
#define FOO(x) 'x'
 
3685
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3686
 
 
3687
int test (int i, double x);
 
3688
struct s1 {int (*f) (int a);};
 
3689
struct s2 {int (*f) (double a);};
 
3690
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3691
int argc;
 
3692
char **argv;
 
3693
int
 
3694
main ()
 
3695
{
 
3696
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3697
  ;
 
3698
  return 0;
 
3699
}
 
3700
_ACEOF
 
3701
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3702
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3703
do
 
3704
  CC="$ac_save_CC $ac_arg"
 
3705
  rm -f conftest.$ac_objext
 
3706
if { (ac_try="$ac_compile"
 
3707
case "(($ac_try" in
 
3708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3709
  *) ac_try_echo=$ac_try;;
 
3710
esac
 
3711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3712
$as_echo "$ac_try_echo") >&5
 
3713
  (eval "$ac_compile") 2>conftest.er1
 
3714
  ac_status=$?
 
3715
  grep -v '^ *+' conftest.er1 >conftest.err
 
3716
  rm -f conftest.er1
 
3717
  cat conftest.err >&5
 
3718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3719
  (exit $ac_status); } && {
 
3720
         test -z "$ac_c_werror_flag" ||
 
3721
         test ! -s conftest.err
 
3722
       } && test -s conftest.$ac_objext; then
 
3723
  ac_cv_prog_cc_c89=$ac_arg
 
3724
else
 
3725
  $as_echo "$as_me: failed program was:" >&5
 
3726
sed 's/^/| /' conftest.$ac_ext >&5
 
3727
 
 
3728
 
 
3729
fi
 
3730
 
 
3731
rm -f core conftest.err conftest.$ac_objext
 
3732
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3733
done
 
3734
rm -f conftest.$ac_ext
 
3735
CC=$ac_save_CC
 
3736
 
 
3737
fi
 
3738
# AC_CACHE_VAL
 
3739
case "x$ac_cv_prog_cc_c89" in
 
3740
  x)
 
3741
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
3742
$as_echo "none needed" >&6; } ;;
 
3743
  xno)
 
3744
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
3745
$as_echo "unsupported" >&6; } ;;
 
3746
  *)
 
3747
    CC="$CC $ac_cv_prog_cc_c89"
 
3748
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3749
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
3750
esac
 
3751
 
 
3752
 
 
3753
ac_ext=c
 
3754
ac_cpp='$CPP $CPPFLAGS'
 
3755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3756
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3757
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3758
 
 
3759
depcc="$CC"   am_compiler_list=
 
3760
 
 
3761
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3762
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3763
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3764
  $as_echo_n "(cached) " >&6
 
3765
else
 
3766
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3767
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3768
  # making bogus files that we don't know about and never remove.  For
 
3769
  # instance it was reported that on HP-UX the gcc test will end up
 
3770
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3771
  # in D'.
 
3772
  mkdir conftest.dir
 
3773
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3774
  # using a relative directory.
 
3775
  cp "$am_depcomp" conftest.dir
 
3776
  cd conftest.dir
 
3777
  # We will build objects and dependencies in a subdirectory because
 
3778
  # it helps to detect inapplicable dependency modes.  For instance
 
3779
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3780
  # side effect of compilation, but ICC will put the dependencies in
 
3781
  # the current directory while Tru64 will put them in the object
 
3782
  # directory.
 
3783
  mkdir sub
 
3784
 
 
3785
  am_cv_CC_dependencies_compiler_type=none
 
3786
  if test "$am_compiler_list" = ""; then
 
3787
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3788
  fi
 
3789
  for depmode in $am_compiler_list; do
 
3790
    # Setup a source with many dependencies, because some compilers
 
3791
    # like to wrap large dependency lists on column 80 (with \), and
 
3792
    # we should not choose a depcomp mode which is confused by this.
 
3793
    #
 
3794
    # We need to recreate these files for each test, as the compiler may
 
3795
    # overwrite some of them when testing with obscure command lines.
 
3796
    # This happens at least with the AIX C compiler.
 
3797
    : > sub/conftest.c
 
3798
    for i in 1 2 3 4 5 6; do
 
3799
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3800
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3801
      # Solaris 8's {/usr,}/bin/sh.
 
3802
      touch sub/conftst$i.h
 
3803
    done
 
3804
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3805
 
 
3806
    case $depmode in
 
3807
    nosideeffect)
 
3808
      # after this tag, mechanisms are not by side-effect, so they'll
 
3809
      # only be used when explicitly requested
 
3810
      if test "x$enable_dependency_tracking" = xyes; then
 
3811
        continue
 
3812
      else
 
3813
        break
 
3814
      fi
 
3815
      ;;
 
3816
    none) break ;;
 
3817
    esac
 
3818
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3819
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3820
    # handle `-M -o', and we need to detect this.
 
3821
    if depmode=$depmode \
 
3822
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3823
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3824
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3825
         >/dev/null 2>conftest.err &&
 
3826
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3827
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3828
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3829
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3830
      # icc doesn't choke on unknown options, it will just issue warnings
 
3831
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3832
      # that says an option was ignored or not supported.
 
3833
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3834
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3835
      # The diagnosis changed in icc 8.0:
 
3836
      #   icc: Command line remark: option '-MP' not supported
 
3837
      if (grep 'ignoring option' conftest.err ||
 
3838
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3839
        am_cv_CC_dependencies_compiler_type=$depmode
 
3840
        break
 
3841
      fi
 
3842
    fi
 
3843
  done
 
3844
 
 
3845
  cd ..
 
3846
  rm -rf conftest.dir
 
3847
else
 
3848
  am_cv_CC_dependencies_compiler_type=none
 
3849
fi
 
3850
 
 
3851
fi
 
3852
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3853
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
3854
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3855
 
 
3856
 if
 
3857
  test "x$enable_dependency_tracking" != xno \
 
3858
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3859
  am__fastdepCC_TRUE=
 
3860
  am__fastdepCC_FALSE='#'
 
3861
else
 
3862
  am__fastdepCC_TRUE='#'
 
3863
  am__fastdepCC_FALSE=
 
3864
fi
 
3865
 
 
3866
 
 
3867
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3868
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
3869
if test "${lt_cv_path_SED+set}" = set; then
 
3870
  $as_echo_n "(cached) " >&6
 
3871
else
 
3872
  # Loop through the user's path and test for sed and gsed.
 
3873
# Then use that list of sed's as ones to test for truncation.
 
3874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3875
for as_dir in $PATH
 
3876
do
 
3877
  IFS=$as_save_IFS
 
3878
  test -z "$as_dir" && as_dir=.
 
3879
  for lt_ac_prog in sed gsed; do
 
3880
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3881
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
3882
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3883
      fi
 
3884
    done
 
3885
  done
 
3886
done
 
3887
IFS=$as_save_IFS
 
3888
lt_ac_max=0
 
3889
lt_ac_count=0
 
3890
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3891
# along with /bin/sed that truncates output.
 
3892
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3893
  test ! -f $lt_ac_sed && continue
 
3894
  cat /dev/null > conftest.in
 
3895
  lt_ac_count=0
 
3896
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3897
  # Check for GNU sed and select it if it is found.
 
3898
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3899
    lt_cv_path_SED=$lt_ac_sed
 
3900
    break
 
3901
  fi
 
3902
  while true; do
 
3903
    cat conftest.in conftest.in >conftest.tmp
 
3904
    mv conftest.tmp conftest.in
 
3905
    cp conftest.in conftest.nl
 
3906
    echo >>conftest.nl
 
3907
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3908
    cmp -s conftest.out conftest.nl || break
 
3909
    # 10000 chars as input seems more than enough
 
3910
    test $lt_ac_count -gt 10 && break
 
3911
    lt_ac_count=`expr $lt_ac_count + 1`
 
3912
    if test $lt_ac_count -gt $lt_ac_max; then
 
3913
      lt_ac_max=$lt_ac_count
 
3914
      lt_cv_path_SED=$lt_ac_sed
 
3915
    fi
 
3916
  done
 
3917
done
 
3918
 
 
3919
fi
 
3920
 
 
3921
SED=$lt_cv_path_SED
 
3922
 
 
3923
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
3924
$as_echo "$SED" >&6; }
 
3925
 
 
3926
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3927
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3928
if test "${ac_cv_path_GREP+set}" = set; then
 
3929
  $as_echo_n "(cached) " >&6
 
3930
else
 
3931
  if test -z "$GREP"; then
 
3932
  ac_path_GREP_found=false
 
3933
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3934
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3935
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3936
do
 
3937
  IFS=$as_save_IFS
 
3938
  test -z "$as_dir" && as_dir=.
 
3939
  for ac_prog in grep ggrep; do
 
3940
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3941
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3942
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3943
# Check for GNU ac_path_GREP and select it if it is found.
 
3944
  # Check for GNU $ac_path_GREP
 
3945
case `"$ac_path_GREP" --version 2>&1` in
 
3946
*GNU*)
 
3947
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3948
*)
 
3949
  ac_count=0
 
3950
  $as_echo_n 0123456789 >"conftest.in"
 
3951
  while :
 
3952
  do
 
3953
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3954
    mv "conftest.tmp" "conftest.in"
 
3955
    cp "conftest.in" "conftest.nl"
 
3956
    $as_echo 'GREP' >> "conftest.nl"
 
3957
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3958
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3959
    ac_count=`expr $ac_count + 1`
 
3960
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3961
      # Best one so far, save it but keep looking for a better one
 
3962
      ac_cv_path_GREP="$ac_path_GREP"
 
3963
      ac_path_GREP_max=$ac_count
 
3964
    fi
 
3965
    # 10*(2^10) chars as input seems more than enough
 
3966
    test $ac_count -gt 10 && break
 
3967
  done
 
3968
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3969
esac
 
3970
 
 
3971
      $ac_path_GREP_found && break 3
 
3972
    done
 
3973
  done
 
3974
done
 
3975
IFS=$as_save_IFS
 
3976
  if test -z "$ac_cv_path_GREP"; then
 
3977
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3978
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3979
   { (exit 1); exit 1; }; }
 
3980
  fi
 
3981
else
 
3982
  ac_cv_path_GREP=$GREP
 
3983
fi
 
3984
 
 
3985
fi
 
3986
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3987
$as_echo "$ac_cv_path_GREP" >&6; }
 
3988
 GREP="$ac_cv_path_GREP"
 
3989
 
 
3990
 
 
3991
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3992
$as_echo_n "checking for egrep... " >&6; }
 
3993
if test "${ac_cv_path_EGREP+set}" = set; then
 
3994
  $as_echo_n "(cached) " >&6
 
3995
else
 
3996
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3997
   then ac_cv_path_EGREP="$GREP -E"
 
3998
   else
 
3999
     if test -z "$EGREP"; then
 
4000
  ac_path_EGREP_found=false
 
4001
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4002
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4003
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4004
do
 
4005
  IFS=$as_save_IFS
 
4006
  test -z "$as_dir" && as_dir=.
 
4007
  for ac_prog in egrep; do
 
4008
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4009
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4010
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4011
# Check for GNU ac_path_EGREP and select it if it is found.
 
4012
  # Check for GNU $ac_path_EGREP
 
4013
case `"$ac_path_EGREP" --version 2>&1` in
 
4014
*GNU*)
 
4015
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4016
*)
 
4017
  ac_count=0
 
4018
  $as_echo_n 0123456789 >"conftest.in"
 
4019
  while :
 
4020
  do
 
4021
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4022
    mv "conftest.tmp" "conftest.in"
 
4023
    cp "conftest.in" "conftest.nl"
 
4024
    $as_echo 'EGREP' >> "conftest.nl"
 
4025
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4026
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4027
    ac_count=`expr $ac_count + 1`
 
4028
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4029
      # Best one so far, save it but keep looking for a better one
 
4030
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4031
      ac_path_EGREP_max=$ac_count
 
4032
    fi
 
4033
    # 10*(2^10) chars as input seems more than enough
 
4034
    test $ac_count -gt 10 && break
 
4035
  done
 
4036
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4037
esac
 
4038
 
 
4039
      $ac_path_EGREP_found && break 3
 
4040
    done
 
4041
  done
 
4042
done
 
4043
IFS=$as_save_IFS
 
4044
  if test -z "$ac_cv_path_EGREP"; then
 
4045
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4046
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4047
   { (exit 1); exit 1; }; }
 
4048
  fi
 
4049
else
 
4050
  ac_cv_path_EGREP=$EGREP
 
4051
fi
 
4052
 
 
4053
   fi
 
4054
fi
 
4055
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4056
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4057
 EGREP="$ac_cv_path_EGREP"
 
4058
 
 
4059
 
 
4060
 
 
4061
# Check whether --with-gnu-ld was given.
 
4062
if test "${with_gnu_ld+set}" = set; then
 
4063
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4064
else
 
4065
  with_gnu_ld=no
 
4066
fi
 
4067
 
 
4068
ac_prog=ld
 
4069
if test "$GCC" = yes; then
 
4070
  # Check if gcc -print-prog-name=ld gives a path.
 
4071
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4072
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4073
  case $host in
 
4074
  *-*-mingw*)
 
4075
    # gcc leaves a trailing carriage return which upsets mingw
 
4076
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4077
  *)
 
4078
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4079
  esac
 
4080
  case $ac_prog in
 
4081
    # Accept absolute paths.
 
4082
    [\\/]* | ?:[\\/]*)
 
4083
      re_direlt='/[^/][^/]*/\.\./'
 
4084
      # Canonicalize the pathname of ld
 
4085
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4086
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4087
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4088
      done
 
4089
      test -z "$LD" && LD="$ac_prog"
 
4090
      ;;
 
4091
  "")
 
4092
    # If it fails, then pretend we aren't using GCC.
 
4093
    ac_prog=ld
 
4094
    ;;
 
4095
  *)
 
4096
    # If it is relative, then search for the first ld in PATH.
 
4097
    with_gnu_ld=unknown
 
4098
    ;;
 
4099
  esac
 
4100
elif test "$with_gnu_ld" = yes; then
 
4101
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4102
$as_echo_n "checking for GNU ld... " >&6; }
 
4103
else
 
4104
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4105
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4106
fi
 
4107
if test "${lt_cv_path_LD+set}" = set; then
 
4108
  $as_echo_n "(cached) " >&6
 
4109
else
 
4110
  if test -z "$LD"; then
 
4111
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4112
  for ac_dir in $PATH; do
 
4113
    IFS="$lt_save_ifs"
 
4114
    test -z "$ac_dir" && ac_dir=.
 
4115
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4116
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4117
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4118
      # but apparently some variants of GNU ld only accept -v.
 
4119
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4120
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4121
      *GNU* | *'with BFD'*)
 
4122
        test "$with_gnu_ld" != no && break
 
4123
        ;;
 
4124
      *)
 
4125
        test "$with_gnu_ld" != yes && break
 
4126
        ;;
 
4127
      esac
 
4128
    fi
 
4129
  done
 
4130
  IFS="$lt_save_ifs"
 
4131
else
 
4132
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4133
fi
 
4134
fi
 
4135
 
 
4136
LD="$lt_cv_path_LD"
 
4137
if test -n "$LD"; then
 
4138
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4139
$as_echo "$LD" >&6; }
 
4140
else
 
4141
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4142
$as_echo "no" >&6; }
 
4143
fi
 
4144
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4145
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4146
   { (exit 1); exit 1; }; }
 
4147
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4148
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4149
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4150
  $as_echo_n "(cached) " >&6
 
4151
else
 
4152
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4153
case `$LD -v 2>&1 </dev/null` in
 
4154
*GNU* | *'with BFD'*)
 
4155
  lt_cv_prog_gnu_ld=yes
 
4156
  ;;
 
4157
*)
 
4158
  lt_cv_prog_gnu_ld=no
 
4159
  ;;
 
4160
esac
 
4161
fi
 
4162
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4163
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4164
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4165
 
 
4166
 
 
4167
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4168
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4169
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4170
  $as_echo_n "(cached) " >&6
 
4171
else
 
4172
  lt_cv_ld_reload_flag='-r'
 
4173
fi
 
4174
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4175
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4176
reload_flag=$lt_cv_ld_reload_flag
 
4177
case $reload_flag in
 
4178
"" | " "*) ;;
 
4179
*) reload_flag=" $reload_flag" ;;
 
4180
esac
 
4181
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4182
case $host_os in
 
4183
  darwin*)
 
4184
    if test "$GCC" = yes; then
 
4185
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4186
    else
 
4187
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4188
    fi
 
4189
    ;;
 
4190
esac
 
4191
 
 
4192
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4193
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4194
if test "${lt_cv_path_NM+set}" = set; then
 
4195
  $as_echo_n "(cached) " >&6
 
4196
else
 
4197
  if test -n "$NM"; then
 
4198
  # Let the user override the test.
 
4199
  lt_cv_path_NM="$NM"
 
4200
else
 
4201
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4202
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4203
    lt_nm_to_check="$lt_nm_to_check nm"
 
4204
  fi
 
4205
  for lt_tmp_nm in $lt_nm_to_check; do
 
4206
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4207
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4208
      IFS="$lt_save_ifs"
 
4209
      test -z "$ac_dir" && ac_dir=.
 
4210
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4211
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4212
        # Check to see if the nm accepts a BSD-compat flag.
 
4213
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4214
        #   nm: unknown option "B" ignored
 
4215
        # Tru64's nm complains that /dev/null is an invalid object file
 
4216
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4217
        */dev/null* | *'Invalid file or object type'*)
 
4218
          lt_cv_path_NM="$tmp_nm -B"
 
4219
          break
 
4220
          ;;
 
4221
        *)
 
4222
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4223
          */dev/null*)
 
4224
            lt_cv_path_NM="$tmp_nm -p"
 
4225
            break
 
4226
            ;;
 
4227
          *)
 
4228
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4229
            continue # so that we can try to find one that supports BSD flags
 
4230
            ;;
 
4231
          esac
 
4232
          ;;
 
4233
        esac
 
4234
      fi
 
4235
    done
 
4236
    IFS="$lt_save_ifs"
 
4237
  done
 
4238
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4239
fi
 
4240
fi
 
4241
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4242
$as_echo "$lt_cv_path_NM" >&6; }
 
4243
NM="$lt_cv_path_NM"
 
4244
 
 
4245
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4246
$as_echo_n "checking whether ln -s works... " >&6; }
 
4247
LN_S=$as_ln_s
 
4248
if test "$LN_S" = "ln -s"; then
 
4249
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4250
$as_echo "yes" >&6; }
 
4251
else
 
4252
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4253
$as_echo "no, using $LN_S" >&6; }
 
4254
fi
 
4255
 
 
4256
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4257
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4258
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4259
  $as_echo_n "(cached) " >&6
 
4260
else
 
4261
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4262
lt_cv_file_magic_test_file=
 
4263
lt_cv_deplibs_check_method='unknown'
 
4264
# Need to set the preceding variable on all platforms that support
 
4265
# interlibrary dependencies.
 
4266
# 'none' -- dependencies not supported.
 
4267
# `unknown' -- same as none, but documents that we really don't know.
 
4268
# 'pass_all' -- all dependencies passed with no checks.
 
4269
# 'test_compile' -- check by making test program.
 
4270
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4271
# which responds to the $file_magic_cmd with a given extended regex.
 
4272
# If you have `file' or equivalent on your system and you're not sure
 
4273
# whether `pass_all' will *always* work, you probably want this one.
 
4274
 
 
4275
case $host_os in
 
4276
aix[4-9]*)
 
4277
  lt_cv_deplibs_check_method=pass_all
 
4278
  ;;
 
4279
 
 
4280
beos*)
 
4281
  lt_cv_deplibs_check_method=pass_all
 
4282
  ;;
 
4283
 
 
4284
bsdi[45]*)
 
4285
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4286
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4287
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4288
  ;;
 
4289
 
 
4290
cygwin*)
 
4291
  # func_win32_libid is a shell function defined in ltmain.sh
 
4292
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4293
  lt_cv_file_magic_cmd='func_win32_libid'
 
4294
  ;;
 
4295
 
 
4296
mingw* | pw32*)
 
4297
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4298
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4299
  # unless we find 'file', for example because we are cross-compiling.
 
4300
  if ( file / ) >/dev/null 2>&1; then
 
4301
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4302
    lt_cv_file_magic_cmd='func_win32_libid'
 
4303
  else
 
4304
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4305
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4306
  fi
 
4307
  ;;
 
4308
 
 
4309
darwin* | rhapsody*)
 
4310
  lt_cv_deplibs_check_method=pass_all
 
4311
  ;;
 
4312
 
 
4313
freebsd* | dragonfly*)
 
4314
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4315
    case $host_cpu in
 
4316
    i*86 )
 
4317
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4318
      # Let's accept both of them until this is cleared up.
 
4319
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4320
      lt_cv_file_magic_cmd=/usr/bin/file
 
4321
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4322
      ;;
 
4323
    esac
 
4324
  else
 
4325
    lt_cv_deplibs_check_method=pass_all
 
4326
  fi
 
4327
  ;;
 
4328
 
 
4329
gnu*)
 
4330
  lt_cv_deplibs_check_method=pass_all
 
4331
  ;;
 
4332
 
 
4333
hpux10.20* | hpux11*)
 
4334
  lt_cv_file_magic_cmd=/usr/bin/file
 
4335
  case $host_cpu in
 
4336
  ia64*)
 
4337
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4338
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4339
    ;;
 
4340
  hppa*64*)
 
4341
    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]'
 
4342
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4343
    ;;
 
4344
  *)
 
4345
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4346
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4347
    ;;
 
4348
  esac
 
4349
  ;;
 
4350
 
 
4351
interix[3-9]*)
 
4352
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4353
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4354
  ;;
 
4355
 
 
4356
irix5* | irix6* | nonstopux*)
 
4357
  case $LD in
 
4358
  *-32|*"-32 ") libmagic=32-bit;;
 
4359
  *-n32|*"-n32 ") libmagic=N32;;
 
4360
  *-64|*"-64 ") libmagic=64-bit;;
 
4361
  *) libmagic=never-match;;
 
4362
  esac
 
4363
  lt_cv_deplibs_check_method=pass_all
 
4364
  ;;
 
4365
 
 
4366
# This must be Linux ELF.
 
4367
linux* | k*bsd*-gnu)
 
4368
  lt_cv_deplibs_check_method=pass_all
 
4369
  ;;
 
4370
 
 
4371
netbsd*)
 
4372
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4373
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4374
  else
 
4375
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4376
  fi
 
4377
  ;;
 
4378
 
 
4379
newos6*)
 
4380
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4381
  lt_cv_file_magic_cmd=/usr/bin/file
 
4382
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4383
  ;;
 
4384
 
 
4385
nto-qnx*)
 
4386
  lt_cv_deplibs_check_method=unknown
 
4387
  ;;
 
4388
 
 
4389
openbsd*)
 
4390
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4391
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4392
  else
 
4393
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4394
  fi
 
4395
  ;;
 
4396
 
 
4397
osf3* | osf4* | osf5*)
 
4398
  lt_cv_deplibs_check_method=pass_all
 
4399
  ;;
 
4400
 
 
4401
rdos*)
 
4402
  lt_cv_deplibs_check_method=pass_all
 
4403
  ;;
 
4404
 
 
4405
solaris*)
 
4406
  lt_cv_deplibs_check_method=pass_all
 
4407
  ;;
 
4408
 
 
4409
sysv4 | sysv4.3*)
 
4410
  case $host_vendor in
 
4411
  motorola)
 
4412
    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]'
 
4413
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4414
    ;;
 
4415
  ncr)
 
4416
    lt_cv_deplibs_check_method=pass_all
 
4417
    ;;
 
4418
  sequent)
 
4419
    lt_cv_file_magic_cmd='/bin/file'
 
4420
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4421
    ;;
 
4422
  sni)
 
4423
    lt_cv_file_magic_cmd='/bin/file'
 
4424
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4425
    lt_cv_file_magic_test_file=/lib/libc.so
 
4426
    ;;
 
4427
  siemens)
 
4428
    lt_cv_deplibs_check_method=pass_all
 
4429
    ;;
 
4430
  pc)
 
4431
    lt_cv_deplibs_check_method=pass_all
 
4432
    ;;
 
4433
  esac
 
4434
  ;;
 
4435
 
 
4436
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4437
  lt_cv_deplibs_check_method=pass_all
 
4438
  ;;
 
4439
esac
 
4440
 
 
4441
fi
 
4442
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4443
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4444
file_magic_cmd=$lt_cv_file_magic_cmd
 
4445
deplibs_check_method=$lt_cv_deplibs_check_method
 
4446
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4447
 
 
4448
 
 
4449
 
 
4450
 
 
4451
# If no C compiler was specified, use CC.
 
4452
LTCC=${LTCC-"$CC"}
 
4453
 
 
4454
# If no C compiler flags were specified, use CFLAGS.
 
4455
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4456
 
 
4457
# Allow CC to be a program name with arguments.
 
4458
compiler=$CC
 
4459
 
 
4460
 
 
4461
# Check whether --enable-libtool-lock was given.
 
4462
if test "${enable_libtool_lock+set}" = set; then
 
4463
  enableval=$enable_libtool_lock;
 
4464
fi
 
4465
 
 
4466
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4467
 
 
4468
# Some flags need to be propagated to the compiler or linker for good
 
4469
# libtool support.
 
4470
case $host in
 
4471
ia64-*-hpux*)
 
4472
  # Find out which ABI we are using.
 
4473
  echo 'int i;' > conftest.$ac_ext
 
4474
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4475
  (eval $ac_compile) 2>&5
 
4476
  ac_status=$?
 
4477
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4478
  (exit $ac_status); }; then
 
4479
    case `/usr/bin/file conftest.$ac_objext` in
 
4480
    *ELF-32*)
 
4481
      HPUX_IA64_MODE="32"
 
4482
      ;;
 
4483
    *ELF-64*)
 
4484
      HPUX_IA64_MODE="64"
 
4485
      ;;
 
4486
    esac
 
4487
  fi
 
4488
  rm -rf conftest*
 
4489
  ;;
 
4490
*-*-irix6*)
 
4491
  # Find out which ABI we are using.
 
4492
  echo '#line 4492 "configure"' > conftest.$ac_ext
 
4493
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4494
  (eval $ac_compile) 2>&5
 
4495
  ac_status=$?
 
4496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4497
  (exit $ac_status); }; then
 
4498
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4499
    case `/usr/bin/file conftest.$ac_objext` in
 
4500
    *32-bit*)
 
4501
      LD="${LD-ld} -melf32bsmip"
 
4502
      ;;
 
4503
    *N32*)
 
4504
      LD="${LD-ld} -melf32bmipn32"
 
4505
      ;;
 
4506
    *64-bit*)
 
4507
      LD="${LD-ld} -melf64bmip"
 
4508
      ;;
 
4509
    esac
 
4510
   else
 
4511
    case `/usr/bin/file conftest.$ac_objext` in
 
4512
    *32-bit*)
 
4513
      LD="${LD-ld} -32"
 
4514
      ;;
 
4515
    *N32*)
 
4516
      LD="${LD-ld} -n32"
 
4517
      ;;
 
4518
    *64-bit*)
 
4519
      LD="${LD-ld} -64"
 
4520
      ;;
 
4521
    esac
 
4522
   fi
 
4523
  fi
 
4524
  rm -rf conftest*
 
4525
  ;;
 
4526
 
 
4527
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4528
s390*-*linux*|sparc*-*linux*)
 
4529
  # Find out which ABI we are using.
 
4530
  echo 'int i;' > conftest.$ac_ext
 
4531
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4532
  (eval $ac_compile) 2>&5
 
4533
  ac_status=$?
 
4534
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4535
  (exit $ac_status); }; then
 
4536
    case `/usr/bin/file conftest.o` in
 
4537
    *32-bit*)
 
4538
      case $host in
 
4539
        x86_64-*kfreebsd*-gnu)
 
4540
          LD="${LD-ld} -m elf_i386_fbsd"
 
4541
          ;;
 
4542
        x86_64-*linux*)
 
4543
          LD="${LD-ld} -m elf_i386"
 
4544
          ;;
 
4545
        ppc64-*linux*|powerpc64-*linux*)
 
4546
          LD="${LD-ld} -m elf32ppclinux"
 
4547
          ;;
 
4548
        s390x-*linux*)
 
4549
          LD="${LD-ld} -m elf_s390"
 
4550
          ;;
 
4551
        sparc64-*linux*)
 
4552
          LD="${LD-ld} -m elf32_sparc"
 
4553
          ;;
 
4554
      esac
 
4555
      ;;
 
4556
    *64-bit*)
 
4557
      libsuff=64
 
4558
      case $host in
 
4559
        x86_64-*kfreebsd*-gnu)
 
4560
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4561
          ;;
 
4562
        x86_64-*linux*)
 
4563
          LD="${LD-ld} -m elf_x86_64"
 
4564
          ;;
 
4565
        ppc*-*linux*|powerpc*-*linux*)
 
4566
          LD="${LD-ld} -m elf64ppc"
 
4567
          ;;
 
4568
        s390*-*linux*)
 
4569
          LD="${LD-ld} -m elf64_s390"
 
4570
          ;;
 
4571
        sparc*-*linux*)
 
4572
          LD="${LD-ld} -m elf64_sparc"
 
4573
          ;;
 
4574
      esac
 
4575
      ;;
 
4576
    esac
 
4577
  fi
 
4578
  rm -rf conftest*
 
4579
  ;;
 
4580
 
 
4581
*-*-sco3.2v5*)
 
4582
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4583
  SAVE_CFLAGS="$CFLAGS"
 
4584
  CFLAGS="$CFLAGS -belf"
 
4585
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4586
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
4587
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4588
  $as_echo_n "(cached) " >&6
 
4589
else
 
4590
  ac_ext=c
 
4591
ac_cpp='$CPP $CPPFLAGS'
 
4592
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4593
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4594
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4595
 
 
4596
     cat >conftest.$ac_ext <<_ACEOF
 
4597
/* confdefs.h.  */
 
4598
_ACEOF
 
4599
cat confdefs.h >>conftest.$ac_ext
 
4600
cat >>conftest.$ac_ext <<_ACEOF
 
4601
/* end confdefs.h.  */
 
4602
 
 
4603
int
 
4604
main ()
 
4605
{
 
4606
 
 
4607
  ;
 
4608
  return 0;
 
4609
}
 
4610
_ACEOF
 
4611
rm -f conftest.$ac_objext conftest$ac_exeext
 
4612
if { (ac_try="$ac_link"
 
4613
case "(($ac_try" in
 
4614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4615
  *) ac_try_echo=$ac_try;;
 
4616
esac
 
4617
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4618
$as_echo "$ac_try_echo") >&5
 
4619
  (eval "$ac_link") 2>conftest.er1
 
4620
  ac_status=$?
 
4621
  grep -v '^ *+' conftest.er1 >conftest.err
 
4622
  rm -f conftest.er1
 
4623
  cat conftest.err >&5
 
4624
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4625
  (exit $ac_status); } && {
 
4626
         test -z "$ac_c_werror_flag" ||
 
4627
         test ! -s conftest.err
 
4628
       } && test -s conftest$ac_exeext && {
 
4629
         test "$cross_compiling" = yes ||
 
4630
         $as_test_x conftest$ac_exeext
 
4631
       }; then
 
4632
  lt_cv_cc_needs_belf=yes
 
4633
else
 
4634
  $as_echo "$as_me: failed program was:" >&5
 
4635
sed 's/^/| /' conftest.$ac_ext >&5
 
4636
 
 
4637
        lt_cv_cc_needs_belf=no
 
4638
fi
 
4639
 
 
4640
rm -rf conftest.dSYM
 
4641
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4642
      conftest$ac_exeext conftest.$ac_ext
 
4643
     ac_ext=c
 
4644
ac_cpp='$CPP $CPPFLAGS'
 
4645
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4646
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4647
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4648
 
 
4649
fi
 
4650
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4651
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
4652
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4653
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4654
    CFLAGS="$SAVE_CFLAGS"
 
4655
  fi
 
4656
  ;;
 
4657
sparc*-*solaris*)
 
4658
  # Find out which ABI we are using.
 
4659
  echo 'int i;' > conftest.$ac_ext
 
4660
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4661
  (eval $ac_compile) 2>&5
 
4662
  ac_status=$?
 
4663
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4664
  (exit $ac_status); }; then
 
4665
    case `/usr/bin/file conftest.o` in
 
4666
    *64-bit*)
 
4667
      case $lt_cv_prog_gnu_ld in
 
4668
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4669
      *)
 
4670
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4671
          LD="${LD-ld} -64"
 
4672
        fi
 
4673
        ;;
 
4674
      esac
 
4675
      ;;
 
4676
    esac
 
4677
  fi
 
4678
  rm -rf conftest*
 
4679
  ;;
 
4680
 
 
4681
 
 
4682
esac
 
4683
 
 
4684
need_locks="$enable_libtool_lock"
 
4685
 
 
4686
 
 
4687
ac_ext=c
 
4688
ac_cpp='$CPP $CPPFLAGS'
 
4689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4692
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4693
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4694
# On Suns, sometimes $CPP names a directory.
 
4695
if test -n "$CPP" && test -d "$CPP"; then
 
4696
  CPP=
 
4697
fi
 
4698
if test -z "$CPP"; then
 
4699
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4700
  $as_echo_n "(cached) " >&6
 
4701
else
 
4702
      # Double quotes because CPP needs to be expanded
 
4703
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4704
    do
 
4705
      ac_preproc_ok=false
 
4706
for ac_c_preproc_warn_flag in '' yes
 
4707
do
 
4708
  # Use a header file that comes with gcc, so configuring glibc
 
4709
  # with a fresh cross-compiler works.
 
4710
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4711
  # <limits.h> exists even on freestanding compilers.
 
4712
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4713
  # not just through cpp. "Syntax error" is here to catch this case.
 
4714
  cat >conftest.$ac_ext <<_ACEOF
 
4715
/* confdefs.h.  */
 
4716
_ACEOF
 
4717
cat confdefs.h >>conftest.$ac_ext
 
4718
cat >>conftest.$ac_ext <<_ACEOF
 
4719
/* end confdefs.h.  */
 
4720
#ifdef __STDC__
 
4721
# include <limits.h>
 
4722
#else
 
4723
# include <assert.h>
 
4724
#endif
 
4725
                     Syntax error
 
4726
_ACEOF
 
4727
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4728
case "(($ac_try" in
 
4729
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4730
  *) ac_try_echo=$ac_try;;
 
4731
esac
 
4732
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4733
$as_echo "$ac_try_echo") >&5
 
4734
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4735
  ac_status=$?
 
4736
  grep -v '^ *+' conftest.er1 >conftest.err
 
4737
  rm -f conftest.er1
 
4738
  cat conftest.err >&5
 
4739
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4740
  (exit $ac_status); } >/dev/null && {
 
4741
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4742
         test ! -s conftest.err
 
4743
       }; then
 
4744
  :
 
4745
else
 
4746
  $as_echo "$as_me: failed program was:" >&5
 
4747
sed 's/^/| /' conftest.$ac_ext >&5
 
4748
 
 
4749
  # Broken: fails on valid input.
 
4750
continue
 
4751
fi
 
4752
 
 
4753
rm -f conftest.err conftest.$ac_ext
 
4754
 
 
4755
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4756
  # can be detected and how.
 
4757
  cat >conftest.$ac_ext <<_ACEOF
 
4758
/* confdefs.h.  */
 
4759
_ACEOF
 
4760
cat confdefs.h >>conftest.$ac_ext
 
4761
cat >>conftest.$ac_ext <<_ACEOF
 
4762
/* end confdefs.h.  */
 
4763
#include <ac_nonexistent.h>
 
4764
_ACEOF
 
4765
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4766
case "(($ac_try" in
 
4767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4768
  *) ac_try_echo=$ac_try;;
 
4769
esac
 
4770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4771
$as_echo "$ac_try_echo") >&5
 
4772
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4773
  ac_status=$?
 
4774
  grep -v '^ *+' conftest.er1 >conftest.err
 
4775
  rm -f conftest.er1
 
4776
  cat conftest.err >&5
 
4777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4778
  (exit $ac_status); } >/dev/null && {
 
4779
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4780
         test ! -s conftest.err
 
4781
       }; then
 
4782
  # Broken: success on invalid input.
 
4783
continue
 
4784
else
 
4785
  $as_echo "$as_me: failed program was:" >&5
 
4786
sed 's/^/| /' conftest.$ac_ext >&5
 
4787
 
 
4788
  # Passes both tests.
 
4789
ac_preproc_ok=:
 
4790
break
 
4791
fi
 
4792
 
 
4793
rm -f conftest.err conftest.$ac_ext
 
4794
 
 
4795
done
 
4796
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4797
rm -f conftest.err conftest.$ac_ext
 
4798
if $ac_preproc_ok; then
 
4799
  break
 
4800
fi
 
4801
 
 
4802
    done
 
4803
    ac_cv_prog_CPP=$CPP
 
4804
 
 
4805
fi
 
4806
  CPP=$ac_cv_prog_CPP
 
4807
else
 
4808
  ac_cv_prog_CPP=$CPP
 
4809
fi
 
4810
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4811
$as_echo "$CPP" >&6; }
 
4812
ac_preproc_ok=false
 
4813
for ac_c_preproc_warn_flag in '' yes
 
4814
do
 
4815
  # Use a header file that comes with gcc, so configuring glibc
 
4816
  # with a fresh cross-compiler works.
 
4817
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4818
  # <limits.h> exists even on freestanding compilers.
 
4819
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4820
  # not just through cpp. "Syntax error" is here to catch this case.
 
4821
  cat >conftest.$ac_ext <<_ACEOF
 
4822
/* confdefs.h.  */
 
4823
_ACEOF
 
4824
cat confdefs.h >>conftest.$ac_ext
 
4825
cat >>conftest.$ac_ext <<_ACEOF
 
4826
/* end confdefs.h.  */
 
4827
#ifdef __STDC__
 
4828
# include <limits.h>
 
4829
#else
 
4830
# include <assert.h>
 
4831
#endif
 
4832
                     Syntax error
 
4833
_ACEOF
 
4834
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4835
case "(($ac_try" in
 
4836
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4837
  *) ac_try_echo=$ac_try;;
 
4838
esac
 
4839
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4840
$as_echo "$ac_try_echo") >&5
 
4841
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4842
  ac_status=$?
 
4843
  grep -v '^ *+' conftest.er1 >conftest.err
 
4844
  rm -f conftest.er1
 
4845
  cat conftest.err >&5
 
4846
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4847
  (exit $ac_status); } >/dev/null && {
 
4848
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4849
         test ! -s conftest.err
 
4850
       }; then
 
4851
  :
 
4852
else
 
4853
  $as_echo "$as_me: failed program was:" >&5
 
4854
sed 's/^/| /' conftest.$ac_ext >&5
 
4855
 
 
4856
  # Broken: fails on valid input.
 
4857
continue
 
4858
fi
 
4859
 
 
4860
rm -f conftest.err conftest.$ac_ext
 
4861
 
 
4862
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4863
  # can be detected and how.
 
4864
  cat >conftest.$ac_ext <<_ACEOF
 
4865
/* confdefs.h.  */
 
4866
_ACEOF
 
4867
cat confdefs.h >>conftest.$ac_ext
 
4868
cat >>conftest.$ac_ext <<_ACEOF
 
4869
/* end confdefs.h.  */
 
4870
#include <ac_nonexistent.h>
 
4871
_ACEOF
 
4872
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4873
case "(($ac_try" in
 
4874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4875
  *) ac_try_echo=$ac_try;;
 
4876
esac
 
4877
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4878
$as_echo "$ac_try_echo") >&5
 
4879
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4880
  ac_status=$?
 
4881
  grep -v '^ *+' conftest.er1 >conftest.err
 
4882
  rm -f conftest.er1
 
4883
  cat conftest.err >&5
 
4884
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4885
  (exit $ac_status); } >/dev/null && {
 
4886
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4887
         test ! -s conftest.err
 
4888
       }; then
 
4889
  # Broken: success on invalid input.
 
4890
continue
 
4891
else
 
4892
  $as_echo "$as_me: failed program was:" >&5
 
4893
sed 's/^/| /' conftest.$ac_ext >&5
 
4894
 
 
4895
  # Passes both tests.
 
4896
ac_preproc_ok=:
 
4897
break
 
4898
fi
 
4899
 
 
4900
rm -f conftest.err conftest.$ac_ext
 
4901
 
 
4902
done
 
4903
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4904
rm -f conftest.err conftest.$ac_ext
 
4905
if $ac_preproc_ok; then
 
4906
  :
 
4907
else
 
4908
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4909
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4910
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4911
See \`config.log' for more details." >&5
 
4912
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4913
See \`config.log' for more details." >&2;}
 
4914
   { (exit 1); exit 1; }; }; }
 
4915
fi
 
4916
 
 
4917
ac_ext=c
 
4918
ac_cpp='$CPP $CPPFLAGS'
 
4919
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4920
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4921
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4922
 
 
4923
 
 
4924
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4925
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4926
if test "${ac_cv_header_stdc+set}" = set; then
 
4927
  $as_echo_n "(cached) " >&6
 
4928
else
 
4929
  cat >conftest.$ac_ext <<_ACEOF
 
4930
/* confdefs.h.  */
 
4931
_ACEOF
 
4932
cat confdefs.h >>conftest.$ac_ext
 
4933
cat >>conftest.$ac_ext <<_ACEOF
 
4934
/* end confdefs.h.  */
 
4935
#include <stdlib.h>
 
4936
#include <stdarg.h>
 
4937
#include <string.h>
 
4938
#include <float.h>
 
4939
 
 
4940
int
 
4941
main ()
 
4942
{
 
4943
 
 
4944
  ;
 
4945
  return 0;
 
4946
}
 
4947
_ACEOF
 
4948
rm -f conftest.$ac_objext
 
4949
if { (ac_try="$ac_compile"
 
4950
case "(($ac_try" in
 
4951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4952
  *) ac_try_echo=$ac_try;;
 
4953
esac
 
4954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4955
$as_echo "$ac_try_echo") >&5
 
4956
  (eval "$ac_compile") 2>conftest.er1
 
4957
  ac_status=$?
 
4958
  grep -v '^ *+' conftest.er1 >conftest.err
 
4959
  rm -f conftest.er1
 
4960
  cat conftest.err >&5
 
4961
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4962
  (exit $ac_status); } && {
 
4963
         test -z "$ac_c_werror_flag" ||
 
4964
         test ! -s conftest.err
 
4965
       } && test -s conftest.$ac_objext; then
 
4966
  ac_cv_header_stdc=yes
 
4967
else
 
4968
  $as_echo "$as_me: failed program was:" >&5
 
4969
sed 's/^/| /' conftest.$ac_ext >&5
 
4970
 
 
4971
        ac_cv_header_stdc=no
 
4972
fi
 
4973
 
 
4974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4975
 
 
4976
if test $ac_cv_header_stdc = yes; then
 
4977
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4978
  cat >conftest.$ac_ext <<_ACEOF
 
4979
/* confdefs.h.  */
 
4980
_ACEOF
 
4981
cat confdefs.h >>conftest.$ac_ext
 
4982
cat >>conftest.$ac_ext <<_ACEOF
 
4983
/* end confdefs.h.  */
 
4984
#include <string.h>
 
4985
 
 
4986
_ACEOF
 
4987
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4988
  $EGREP "memchr" >/dev/null 2>&1; then
 
4989
  :
 
4990
else
 
4991
  ac_cv_header_stdc=no
 
4992
fi
 
4993
rm -f conftest*
 
4994
 
 
4995
fi
 
4996
 
 
4997
if test $ac_cv_header_stdc = yes; then
 
4998
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4999
  cat >conftest.$ac_ext <<_ACEOF
 
5000
/* confdefs.h.  */
 
5001
_ACEOF
 
5002
cat confdefs.h >>conftest.$ac_ext
 
5003
cat >>conftest.$ac_ext <<_ACEOF
 
5004
/* end confdefs.h.  */
 
5005
#include <stdlib.h>
 
5006
 
 
5007
_ACEOF
 
5008
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5009
  $EGREP "free" >/dev/null 2>&1; then
 
5010
  :
 
5011
else
 
5012
  ac_cv_header_stdc=no
 
5013
fi
 
5014
rm -f conftest*
 
5015
 
 
5016
fi
 
5017
 
 
5018
if test $ac_cv_header_stdc = yes; then
 
5019
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5020
  if test "$cross_compiling" = yes; then
 
5021
  :
 
5022
else
 
5023
  cat >conftest.$ac_ext <<_ACEOF
 
5024
/* confdefs.h.  */
 
5025
_ACEOF
 
5026
cat confdefs.h >>conftest.$ac_ext
 
5027
cat >>conftest.$ac_ext <<_ACEOF
 
5028
/* end confdefs.h.  */
 
5029
#include <ctype.h>
 
5030
#include <stdlib.h>
 
5031
#if ((' ' & 0x0FF) == 0x020)
 
5032
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5033
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5034
#else
 
5035
# define ISLOWER(c) \
 
5036
                   (('a' <= (c) && (c) <= 'i') \
 
5037
                     || ('j' <= (c) && (c) <= 'r') \
 
5038
                     || ('s' <= (c) && (c) <= 'z'))
 
5039
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5040
#endif
 
5041
 
 
5042
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5043
int
 
5044
main ()
 
5045
{
 
5046
  int i;
 
5047
  for (i = 0; i < 256; i++)
 
5048
    if (XOR (islower (i), ISLOWER (i))
 
5049
        || toupper (i) != TOUPPER (i))
 
5050
      return 2;
 
5051
  return 0;
 
5052
}
 
5053
_ACEOF
 
5054
rm -f conftest$ac_exeext
 
5055
if { (ac_try="$ac_link"
 
5056
case "(($ac_try" in
 
5057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5058
  *) ac_try_echo=$ac_try;;
 
5059
esac
 
5060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5061
$as_echo "$ac_try_echo") >&5
 
5062
  (eval "$ac_link") 2>&5
 
5063
  ac_status=$?
 
5064
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5065
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5066
  { (case "(($ac_try" in
 
5067
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5068
  *) ac_try_echo=$ac_try;;
 
5069
esac
 
5070
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5071
$as_echo "$ac_try_echo") >&5
 
5072
  (eval "$ac_try") 2>&5
 
5073
  ac_status=$?
 
5074
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5075
  (exit $ac_status); }; }; then
 
5076
  :
 
5077
else
 
5078
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5079
$as_echo "$as_me: failed program was:" >&5
 
5080
sed 's/^/| /' conftest.$ac_ext >&5
 
5081
 
 
5082
( exit $ac_status )
 
5083
ac_cv_header_stdc=no
 
5084
fi
 
5085
rm -rf conftest.dSYM
 
5086
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5087
fi
 
5088
 
 
5089
 
 
5090
fi
 
5091
fi
 
5092
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5093
$as_echo "$ac_cv_header_stdc" >&6; }
 
5094
if test $ac_cv_header_stdc = yes; then
 
5095
 
 
5096
cat >>confdefs.h <<\_ACEOF
 
5097
#define STDC_HEADERS 1
 
5098
_ACEOF
 
5099
 
 
5100
fi
 
5101
 
 
5102
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5103
 
 
5104
 
 
5105
 
 
5106
 
 
5107
 
 
5108
 
 
5109
 
 
5110
 
 
5111
 
 
5112
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5113
                  inttypes.h stdint.h unistd.h
 
5114
do
 
5115
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5116
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5117
$as_echo_n "checking for $ac_header... " >&6; }
 
5118
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5119
  $as_echo_n "(cached) " >&6
 
5120
else
 
5121
  cat >conftest.$ac_ext <<_ACEOF
 
5122
/* confdefs.h.  */
 
5123
_ACEOF
 
5124
cat confdefs.h >>conftest.$ac_ext
 
5125
cat >>conftest.$ac_ext <<_ACEOF
 
5126
/* end confdefs.h.  */
 
5127
$ac_includes_default
 
5128
 
 
5129
#include <$ac_header>
 
5130
_ACEOF
 
5131
rm -f conftest.$ac_objext
 
5132
if { (ac_try="$ac_compile"
 
5133
case "(($ac_try" in
 
5134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5135
  *) ac_try_echo=$ac_try;;
 
5136
esac
 
5137
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5138
$as_echo "$ac_try_echo") >&5
 
5139
  (eval "$ac_compile") 2>conftest.er1
 
5140
  ac_status=$?
 
5141
  grep -v '^ *+' conftest.er1 >conftest.err
 
5142
  rm -f conftest.er1
 
5143
  cat conftest.err >&5
 
5144
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5145
  (exit $ac_status); } && {
 
5146
         test -z "$ac_c_werror_flag" ||
 
5147
         test ! -s conftest.err
 
5148
       } && test -s conftest.$ac_objext; then
 
5149
  eval "$as_ac_Header=yes"
 
5150
else
 
5151
  $as_echo "$as_me: failed program was:" >&5
 
5152
sed 's/^/| /' conftest.$ac_ext >&5
 
5153
 
 
5154
        eval "$as_ac_Header=no"
 
5155
fi
 
5156
 
 
5157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5158
fi
 
5159
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5160
                 $as_echo "$as_val"'`
 
5161
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5162
$as_echo "$ac_res" >&6; }
 
5163
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5164
                 $as_echo "$as_val"'`
 
5165
   if test "x$as_val" = x""yes; then
 
5166
  cat >>confdefs.h <<_ACEOF
 
5167
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5168
_ACEOF
 
5169
 
 
5170
fi
 
5171
 
 
5172
done
 
5173
 
 
5174
 
 
5175
 
 
5176
for ac_header in dlfcn.h
 
5177
do
 
5178
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5180
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5181
$as_echo_n "checking for $ac_header... " >&6; }
 
5182
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5183
  $as_echo_n "(cached) " >&6
 
5184
fi
 
5185
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5186
                 $as_echo "$as_val"'`
 
5187
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5188
$as_echo "$ac_res" >&6; }
 
5189
else
 
5190
  # Is the header compilable?
 
5191
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5192
$as_echo_n "checking $ac_header usability... " >&6; }
 
5193
cat >conftest.$ac_ext <<_ACEOF
 
5194
/* confdefs.h.  */
 
5195
_ACEOF
 
5196
cat confdefs.h >>conftest.$ac_ext
 
5197
cat >>conftest.$ac_ext <<_ACEOF
 
5198
/* end confdefs.h.  */
 
5199
$ac_includes_default
 
5200
#include <$ac_header>
 
5201
_ACEOF
 
5202
rm -f conftest.$ac_objext
 
5203
if { (ac_try="$ac_compile"
 
5204
case "(($ac_try" in
 
5205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5206
  *) ac_try_echo=$ac_try;;
 
5207
esac
 
5208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5209
$as_echo "$ac_try_echo") >&5
 
5210
  (eval "$ac_compile") 2>conftest.er1
 
5211
  ac_status=$?
 
5212
  grep -v '^ *+' conftest.er1 >conftest.err
 
5213
  rm -f conftest.er1
 
5214
  cat conftest.err >&5
 
5215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5216
  (exit $ac_status); } && {
 
5217
         test -z "$ac_c_werror_flag" ||
 
5218
         test ! -s conftest.err
 
5219
       } && test -s conftest.$ac_objext; then
 
5220
  ac_header_compiler=yes
 
5221
else
 
5222
  $as_echo "$as_me: failed program was:" >&5
 
5223
sed 's/^/| /' conftest.$ac_ext >&5
 
5224
 
 
5225
        ac_header_compiler=no
 
5226
fi
 
5227
 
 
5228
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5229
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5230
$as_echo "$ac_header_compiler" >&6; }
 
5231
 
 
5232
# Is the header present?
 
5233
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5234
$as_echo_n "checking $ac_header presence... " >&6; }
 
5235
cat >conftest.$ac_ext <<_ACEOF
 
5236
/* confdefs.h.  */
 
5237
_ACEOF
 
5238
cat confdefs.h >>conftest.$ac_ext
 
5239
cat >>conftest.$ac_ext <<_ACEOF
 
5240
/* end confdefs.h.  */
 
5241
#include <$ac_header>
 
5242
_ACEOF
 
5243
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5244
case "(($ac_try" in
 
5245
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5246
  *) ac_try_echo=$ac_try;;
 
5247
esac
 
5248
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5249
$as_echo "$ac_try_echo") >&5
 
5250
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5251
  ac_status=$?
 
5252
  grep -v '^ *+' conftest.er1 >conftest.err
 
5253
  rm -f conftest.er1
 
5254
  cat conftest.err >&5
 
5255
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5256
  (exit $ac_status); } >/dev/null && {
 
5257
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5258
         test ! -s conftest.err
 
5259
       }; then
 
5260
  ac_header_preproc=yes
 
5261
else
 
5262
  $as_echo "$as_me: failed program was:" >&5
 
5263
sed 's/^/| /' conftest.$ac_ext >&5
 
5264
 
 
5265
  ac_header_preproc=no
 
5266
fi
 
5267
 
 
5268
rm -f conftest.err conftest.$ac_ext
 
5269
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5270
$as_echo "$ac_header_preproc" >&6; }
 
5271
 
 
5272
# So?  What about this header?
 
5273
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5274
  yes:no: )
 
5275
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5276
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5277
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5278
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5279
    ac_header_preproc=yes
 
5280
    ;;
 
5281
  no:yes:* )
 
5282
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5283
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5284
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5285
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5286
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5287
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5288
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5289
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5290
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5291
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5292
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5293
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5294
    ( cat <<\_ASBOX
 
5295
## ---------------------------------------------------------------------- ##
 
5296
## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
 
5297
## ---------------------------------------------------------------------- ##
 
5298
_ASBOX
 
5299
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5300
    ;;
 
5301
esac
 
5302
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5303
$as_echo_n "checking for $ac_header... " >&6; }
 
5304
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5305
  $as_echo_n "(cached) " >&6
 
5306
else
 
5307
  eval "$as_ac_Header=\$ac_header_preproc"
 
5308
fi
 
5309
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5310
                 $as_echo "$as_val"'`
 
5311
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5312
$as_echo "$ac_res" >&6; }
 
5313
 
 
5314
fi
 
5315
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5316
                 $as_echo "$as_val"'`
 
5317
   if test "x$as_val" = x""yes; then
 
5318
  cat >>confdefs.h <<_ACEOF
 
5319
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5320
_ACEOF
 
5321
 
 
5322
fi
 
5323
 
 
5324
done
 
5325
 
 
5326
ac_ext=cpp
 
5327
ac_cpp='$CXXCPP $CPPFLAGS'
 
5328
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5329
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5330
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5331
if test -z "$CXX"; then
 
5332
  if test -n "$CCC"; then
 
5333
    CXX=$CCC
 
5334
  else
 
5335
    if test -n "$ac_tool_prefix"; then
 
5336
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5337
  do
 
5338
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5339
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5340
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5341
$as_echo_n "checking for $ac_word... " >&6; }
 
5342
if test "${ac_cv_prog_CXX+set}" = set; then
 
5343
  $as_echo_n "(cached) " >&6
 
5344
else
 
5345
  if test -n "$CXX"; then
 
5346
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5347
else
 
5348
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5349
for as_dir in $PATH
 
5350
do
 
5351
  IFS=$as_save_IFS
 
5352
  test -z "$as_dir" && as_dir=.
 
5353
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5354
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5355
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5356
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5357
    break 2
 
5358
  fi
 
5359
done
 
5360
done
 
5361
IFS=$as_save_IFS
 
5362
 
 
5363
fi
 
5364
fi
 
5365
CXX=$ac_cv_prog_CXX
 
5366
if test -n "$CXX"; then
 
5367
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5368
$as_echo "$CXX" >&6; }
 
5369
else
 
5370
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5371
$as_echo "no" >&6; }
 
5372
fi
 
5373
 
 
5374
 
 
5375
    test -n "$CXX" && break
 
5376
  done
 
5377
fi
 
5378
if test -z "$CXX"; then
 
5379
  ac_ct_CXX=$CXX
 
5380
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5381
do
 
5382
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5383
set dummy $ac_prog; ac_word=$2
 
5384
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5385
$as_echo_n "checking for $ac_word... " >&6; }
 
5386
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5387
  $as_echo_n "(cached) " >&6
 
5388
else
 
5389
  if test -n "$ac_ct_CXX"; then
 
5390
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5391
else
 
5392
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5393
for as_dir in $PATH
 
5394
do
 
5395
  IFS=$as_save_IFS
 
5396
  test -z "$as_dir" && as_dir=.
 
5397
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5399
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5400
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5401
    break 2
 
5402
  fi
 
5403
done
 
5404
done
 
5405
IFS=$as_save_IFS
 
5406
 
 
5407
fi
 
5408
fi
 
5409
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5410
if test -n "$ac_ct_CXX"; then
 
5411
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5412
$as_echo "$ac_ct_CXX" >&6; }
 
5413
else
 
5414
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5415
$as_echo "no" >&6; }
 
5416
fi
 
5417
 
 
5418
 
 
5419
  test -n "$ac_ct_CXX" && break
 
5420
done
 
5421
 
 
5422
  if test "x$ac_ct_CXX" = x; then
 
5423
    CXX="g++"
 
5424
  else
 
5425
    case $cross_compiling:$ac_tool_warned in
 
5426
yes:)
 
5427
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5428
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5429
ac_tool_warned=yes ;;
 
5430
esac
 
5431
    CXX=$ac_ct_CXX
 
5432
  fi
 
5433
fi
 
5434
 
 
5435
  fi
 
5436
fi
 
5437
# Provide some information about the compiler.
 
5438
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5439
set X $ac_compile
 
5440
ac_compiler=$2
 
5441
{ (ac_try="$ac_compiler --version >&5"
 
5442
case "(($ac_try" in
 
5443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5444
  *) ac_try_echo=$ac_try;;
 
5445
esac
 
5446
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5447
$as_echo "$ac_try_echo") >&5
 
5448
  (eval "$ac_compiler --version >&5") 2>&5
 
5449
  ac_status=$?
 
5450
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5451
  (exit $ac_status); }
 
5452
{ (ac_try="$ac_compiler -v >&5"
 
5453
case "(($ac_try" in
 
5454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5455
  *) ac_try_echo=$ac_try;;
 
5456
esac
 
5457
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5458
$as_echo "$ac_try_echo") >&5
 
5459
  (eval "$ac_compiler -v >&5") 2>&5
 
5460
  ac_status=$?
 
5461
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5462
  (exit $ac_status); }
 
5463
{ (ac_try="$ac_compiler -V >&5"
 
5464
case "(($ac_try" in
 
5465
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5466
  *) ac_try_echo=$ac_try;;
 
5467
esac
 
5468
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5469
$as_echo "$ac_try_echo") >&5
 
5470
  (eval "$ac_compiler -V >&5") 2>&5
 
5471
  ac_status=$?
 
5472
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5473
  (exit $ac_status); }
 
5474
 
 
5475
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5476
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5477
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5478
  $as_echo_n "(cached) " >&6
 
5479
else
 
5480
  cat >conftest.$ac_ext <<_ACEOF
 
5481
/* confdefs.h.  */
 
5482
_ACEOF
 
5483
cat confdefs.h >>conftest.$ac_ext
 
5484
cat >>conftest.$ac_ext <<_ACEOF
 
5485
/* end confdefs.h.  */
 
5486
 
 
5487
int
 
5488
main ()
 
5489
{
 
5490
#ifndef __GNUC__
 
5491
       choke me
 
5492
#endif
 
5493
 
 
5494
  ;
 
5495
  return 0;
 
5496
}
 
5497
_ACEOF
 
5498
rm -f conftest.$ac_objext
 
5499
if { (ac_try="$ac_compile"
 
5500
case "(($ac_try" in
 
5501
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5502
  *) ac_try_echo=$ac_try;;
 
5503
esac
 
5504
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5505
$as_echo "$ac_try_echo") >&5
 
5506
  (eval "$ac_compile") 2>conftest.er1
 
5507
  ac_status=$?
 
5508
  grep -v '^ *+' conftest.er1 >conftest.err
 
5509
  rm -f conftest.er1
 
5510
  cat conftest.err >&5
 
5511
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5512
  (exit $ac_status); } && {
 
5513
         test -z "$ac_cxx_werror_flag" ||
 
5514
         test ! -s conftest.err
 
5515
       } && test -s conftest.$ac_objext; then
 
5516
  ac_compiler_gnu=yes
 
5517
else
 
5518
  $as_echo "$as_me: failed program was:" >&5
 
5519
sed 's/^/| /' conftest.$ac_ext >&5
 
5520
 
 
5521
        ac_compiler_gnu=no
 
5522
fi
 
5523
 
 
5524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5525
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5526
 
 
5527
fi
 
5528
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5529
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5530
if test $ac_compiler_gnu = yes; then
 
5531
  GXX=yes
 
5532
else
 
5533
  GXX=
 
5534
fi
 
5535
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5536
ac_save_CXXFLAGS=$CXXFLAGS
 
5537
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5538
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5539
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5540
  $as_echo_n "(cached) " >&6
 
5541
else
 
5542
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5543
   ac_cxx_werror_flag=yes
 
5544
   ac_cv_prog_cxx_g=no
 
5545
   CXXFLAGS="-g"
 
5546
   cat >conftest.$ac_ext <<_ACEOF
 
5547
/* confdefs.h.  */
 
5548
_ACEOF
 
5549
cat confdefs.h >>conftest.$ac_ext
 
5550
cat >>conftest.$ac_ext <<_ACEOF
 
5551
/* end confdefs.h.  */
 
5552
 
 
5553
int
 
5554
main ()
 
5555
{
 
5556
 
 
5557
  ;
 
5558
  return 0;
 
5559
}
 
5560
_ACEOF
 
5561
rm -f conftest.$ac_objext
 
5562
if { (ac_try="$ac_compile"
 
5563
case "(($ac_try" in
 
5564
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5565
  *) ac_try_echo=$ac_try;;
 
5566
esac
 
5567
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5568
$as_echo "$ac_try_echo") >&5
 
5569
  (eval "$ac_compile") 2>conftest.er1
 
5570
  ac_status=$?
 
5571
  grep -v '^ *+' conftest.er1 >conftest.err
 
5572
  rm -f conftest.er1
 
5573
  cat conftest.err >&5
 
5574
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5575
  (exit $ac_status); } && {
 
5576
         test -z "$ac_cxx_werror_flag" ||
 
5577
         test ! -s conftest.err
 
5578
       } && test -s conftest.$ac_objext; then
 
5579
  ac_cv_prog_cxx_g=yes
 
5580
else
 
5581
  $as_echo "$as_me: failed program was:" >&5
 
5582
sed 's/^/| /' conftest.$ac_ext >&5
 
5583
 
 
5584
        CXXFLAGS=""
 
5585
      cat >conftest.$ac_ext <<_ACEOF
 
5586
/* confdefs.h.  */
 
5587
_ACEOF
 
5588
cat confdefs.h >>conftest.$ac_ext
 
5589
cat >>conftest.$ac_ext <<_ACEOF
 
5590
/* end confdefs.h.  */
 
5591
 
 
5592
int
 
5593
main ()
 
5594
{
 
5595
 
 
5596
  ;
 
5597
  return 0;
 
5598
}
 
5599
_ACEOF
 
5600
rm -f conftest.$ac_objext
 
5601
if { (ac_try="$ac_compile"
 
5602
case "(($ac_try" in
 
5603
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5604
  *) ac_try_echo=$ac_try;;
 
5605
esac
 
5606
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5607
$as_echo "$ac_try_echo") >&5
 
5608
  (eval "$ac_compile") 2>conftest.er1
 
5609
  ac_status=$?
 
5610
  grep -v '^ *+' conftest.er1 >conftest.err
 
5611
  rm -f conftest.er1
 
5612
  cat conftest.err >&5
 
5613
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5614
  (exit $ac_status); } && {
 
5615
         test -z "$ac_cxx_werror_flag" ||
 
5616
         test ! -s conftest.err
 
5617
       } && test -s conftest.$ac_objext; then
 
5618
  :
 
5619
else
 
5620
  $as_echo "$as_me: failed program was:" >&5
 
5621
sed 's/^/| /' conftest.$ac_ext >&5
 
5622
 
 
5623
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5624
         CXXFLAGS="-g"
 
5625
         cat >conftest.$ac_ext <<_ACEOF
 
5626
/* confdefs.h.  */
 
5627
_ACEOF
 
5628
cat confdefs.h >>conftest.$ac_ext
 
5629
cat >>conftest.$ac_ext <<_ACEOF
 
5630
/* end confdefs.h.  */
 
5631
 
 
5632
int
 
5633
main ()
 
5634
{
 
5635
 
 
5636
  ;
 
5637
  return 0;
 
5638
}
 
5639
_ACEOF
 
5640
rm -f conftest.$ac_objext
 
5641
if { (ac_try="$ac_compile"
 
5642
case "(($ac_try" in
 
5643
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5644
  *) ac_try_echo=$ac_try;;
 
5645
esac
 
5646
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5647
$as_echo "$ac_try_echo") >&5
 
5648
  (eval "$ac_compile") 2>conftest.er1
 
5649
  ac_status=$?
 
5650
  grep -v '^ *+' conftest.er1 >conftest.err
 
5651
  rm -f conftest.er1
 
5652
  cat conftest.err >&5
 
5653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5654
  (exit $ac_status); } && {
 
5655
         test -z "$ac_cxx_werror_flag" ||
 
5656
         test ! -s conftest.err
 
5657
       } && test -s conftest.$ac_objext; then
 
5658
  ac_cv_prog_cxx_g=yes
 
5659
else
 
5660
  $as_echo "$as_me: failed program was:" >&5
 
5661
sed 's/^/| /' conftest.$ac_ext >&5
 
5662
 
 
5663
 
 
5664
fi
 
5665
 
 
5666
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5667
fi
 
5668
 
 
5669
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5670
fi
 
5671
 
 
5672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5673
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5674
fi
 
5675
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5676
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
5677
if test "$ac_test_CXXFLAGS" = set; then
 
5678
  CXXFLAGS=$ac_save_CXXFLAGS
 
5679
elif test $ac_cv_prog_cxx_g = yes; then
 
5680
  if test "$GXX" = yes; then
 
5681
    CXXFLAGS="-g -O2"
 
5682
  else
 
5683
    CXXFLAGS="-g"
 
5684
  fi
 
5685
else
 
5686
  if test "$GXX" = yes; then
 
5687
    CXXFLAGS="-O2"
 
5688
  else
 
5689
    CXXFLAGS=
 
5690
  fi
 
5691
fi
 
5692
ac_ext=cpp
 
5693
ac_cpp='$CXXCPP $CPPFLAGS'
 
5694
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5695
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5696
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5697
 
 
5698
depcc="$CXX"  am_compiler_list=
 
5699
 
 
5700
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5701
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
5702
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5703
  $as_echo_n "(cached) " >&6
 
5704
else
 
5705
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5706
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5707
  # making bogus files that we don't know about and never remove.  For
 
5708
  # instance it was reported that on HP-UX the gcc test will end up
 
5709
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5710
  # in D'.
 
5711
  mkdir conftest.dir
 
5712
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5713
  # using a relative directory.
 
5714
  cp "$am_depcomp" conftest.dir
 
5715
  cd conftest.dir
 
5716
  # We will build objects and dependencies in a subdirectory because
 
5717
  # it helps to detect inapplicable dependency modes.  For instance
 
5718
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5719
  # side effect of compilation, but ICC will put the dependencies in
 
5720
  # the current directory while Tru64 will put them in the object
 
5721
  # directory.
 
5722
  mkdir sub
 
5723
 
 
5724
  am_cv_CXX_dependencies_compiler_type=none
 
5725
  if test "$am_compiler_list" = ""; then
 
5726
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5727
  fi
 
5728
  for depmode in $am_compiler_list; do
 
5729
    # Setup a source with many dependencies, because some compilers
 
5730
    # like to wrap large dependency lists on column 80 (with \), and
 
5731
    # we should not choose a depcomp mode which is confused by this.
 
5732
    #
 
5733
    # We need to recreate these files for each test, as the compiler may
 
5734
    # overwrite some of them when testing with obscure command lines.
 
5735
    # This happens at least with the AIX C compiler.
 
5736
    : > sub/conftest.c
 
5737
    for i in 1 2 3 4 5 6; do
 
5738
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5739
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5740
      # Solaris 8's {/usr,}/bin/sh.
 
5741
      touch sub/conftst$i.h
 
5742
    done
 
5743
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5744
 
 
5745
    case $depmode in
 
5746
    nosideeffect)
 
5747
      # after this tag, mechanisms are not by side-effect, so they'll
 
5748
      # only be used when explicitly requested
 
5749
      if test "x$enable_dependency_tracking" = xyes; then
 
5750
        continue
 
5751
      else
 
5752
        break
 
5753
      fi
 
5754
      ;;
 
5755
    none) break ;;
 
5756
    esac
 
5757
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5758
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5759
    # handle `-M -o', and we need to detect this.
 
5760
    if depmode=$depmode \
 
5761
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5762
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5763
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5764
         >/dev/null 2>conftest.err &&
 
5765
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5766
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5767
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5768
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5769
      # icc doesn't choke on unknown options, it will just issue warnings
 
5770
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5771
      # that says an option was ignored or not supported.
 
5772
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5773
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5774
      # The diagnosis changed in icc 8.0:
 
5775
      #   icc: Command line remark: option '-MP' not supported
 
5776
      if (grep 'ignoring option' conftest.err ||
 
5777
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5778
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5779
        break
 
5780
      fi
 
5781
    fi
 
5782
  done
 
5783
 
 
5784
  cd ..
 
5785
  rm -rf conftest.dir
 
5786
else
 
5787
  am_cv_CXX_dependencies_compiler_type=none
 
5788
fi
 
5789
 
 
5790
fi
 
5791
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5792
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5793
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5794
 
 
5795
 if
 
5796
  test "x$enable_dependency_tracking" != xno \
 
5797
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5798
  am__fastdepCXX_TRUE=
 
5799
  am__fastdepCXX_FALSE='#'
 
5800
else
 
5801
  am__fastdepCXX_TRUE='#'
 
5802
  am__fastdepCXX_FALSE=
 
5803
fi
 
5804
 
 
5805
 
 
5806
 
 
5807
 
 
5808
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5809
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5810
    (test "X$CXX" != "Xg++"))) ; then
 
5811
  ac_ext=cpp
 
5812
ac_cpp='$CXXCPP $CPPFLAGS'
 
5813
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5814
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5815
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5816
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5817
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
5818
if test -z "$CXXCPP"; then
 
5819
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5820
  $as_echo_n "(cached) " >&6
 
5821
else
 
5822
      # Double quotes because CXXCPP needs to be expanded
 
5823
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5824
    do
 
5825
      ac_preproc_ok=false
 
5826
for ac_cxx_preproc_warn_flag in '' yes
 
5827
do
 
5828
  # Use a header file that comes with gcc, so configuring glibc
 
5829
  # with a fresh cross-compiler works.
 
5830
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5831
  # <limits.h> exists even on freestanding compilers.
 
5832
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5833
  # not just through cpp. "Syntax error" is here to catch this case.
 
5834
  cat >conftest.$ac_ext <<_ACEOF
 
5835
/* confdefs.h.  */
 
5836
_ACEOF
 
5837
cat confdefs.h >>conftest.$ac_ext
 
5838
cat >>conftest.$ac_ext <<_ACEOF
 
5839
/* end confdefs.h.  */
 
5840
#ifdef __STDC__
 
5841
# include <limits.h>
 
5842
#else
 
5843
# include <assert.h>
 
5844
#endif
 
5845
                     Syntax error
 
5846
_ACEOF
 
5847
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5848
case "(($ac_try" in
 
5849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5850
  *) ac_try_echo=$ac_try;;
 
5851
esac
 
5852
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5853
$as_echo "$ac_try_echo") >&5
 
5854
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5855
  ac_status=$?
 
5856
  grep -v '^ *+' conftest.er1 >conftest.err
 
5857
  rm -f conftest.er1
 
5858
  cat conftest.err >&5
 
5859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5860
  (exit $ac_status); } >/dev/null && {
 
5861
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5862
         test ! -s conftest.err
 
5863
       }; then
 
5864
  :
 
5865
else
 
5866
  $as_echo "$as_me: failed program was:" >&5
 
5867
sed 's/^/| /' conftest.$ac_ext >&5
 
5868
 
 
5869
  # Broken: fails on valid input.
 
5870
continue
 
5871
fi
 
5872
 
 
5873
rm -f conftest.err conftest.$ac_ext
 
5874
 
 
5875
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5876
  # can be detected and how.
 
5877
  cat >conftest.$ac_ext <<_ACEOF
 
5878
/* confdefs.h.  */
 
5879
_ACEOF
 
5880
cat confdefs.h >>conftest.$ac_ext
 
5881
cat >>conftest.$ac_ext <<_ACEOF
 
5882
/* end confdefs.h.  */
 
5883
#include <ac_nonexistent.h>
 
5884
_ACEOF
 
5885
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5886
case "(($ac_try" in
 
5887
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5888
  *) ac_try_echo=$ac_try;;
 
5889
esac
 
5890
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5891
$as_echo "$ac_try_echo") >&5
 
5892
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5893
  ac_status=$?
 
5894
  grep -v '^ *+' conftest.er1 >conftest.err
 
5895
  rm -f conftest.er1
 
5896
  cat conftest.err >&5
 
5897
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5898
  (exit $ac_status); } >/dev/null && {
 
5899
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5900
         test ! -s conftest.err
 
5901
       }; then
 
5902
  # Broken: success on invalid input.
 
5903
continue
 
5904
else
 
5905
  $as_echo "$as_me: failed program was:" >&5
 
5906
sed 's/^/| /' conftest.$ac_ext >&5
 
5907
 
 
5908
  # Passes both tests.
 
5909
ac_preproc_ok=:
 
5910
break
 
5911
fi
 
5912
 
 
5913
rm -f conftest.err conftest.$ac_ext
 
5914
 
 
5915
done
 
5916
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5917
rm -f conftest.err conftest.$ac_ext
 
5918
if $ac_preproc_ok; then
 
5919
  break
 
5920
fi
 
5921
 
 
5922
    done
 
5923
    ac_cv_prog_CXXCPP=$CXXCPP
 
5924
 
 
5925
fi
 
5926
  CXXCPP=$ac_cv_prog_CXXCPP
 
5927
else
 
5928
  ac_cv_prog_CXXCPP=$CXXCPP
 
5929
fi
 
5930
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5931
$as_echo "$CXXCPP" >&6; }
 
5932
ac_preproc_ok=false
 
5933
for ac_cxx_preproc_warn_flag in '' yes
 
5934
do
 
5935
  # Use a header file that comes with gcc, so configuring glibc
 
5936
  # with a fresh cross-compiler works.
 
5937
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5938
  # <limits.h> exists even on freestanding compilers.
 
5939
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5940
  # not just through cpp. "Syntax error" is here to catch this case.
 
5941
  cat >conftest.$ac_ext <<_ACEOF
 
5942
/* confdefs.h.  */
 
5943
_ACEOF
 
5944
cat confdefs.h >>conftest.$ac_ext
 
5945
cat >>conftest.$ac_ext <<_ACEOF
 
5946
/* end confdefs.h.  */
 
5947
#ifdef __STDC__
 
5948
# include <limits.h>
 
5949
#else
 
5950
# include <assert.h>
 
5951
#endif
 
5952
                     Syntax error
 
5953
_ACEOF
 
5954
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5955
case "(($ac_try" in
 
5956
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5957
  *) ac_try_echo=$ac_try;;
 
5958
esac
 
5959
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5960
$as_echo "$ac_try_echo") >&5
 
5961
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5962
  ac_status=$?
 
5963
  grep -v '^ *+' conftest.er1 >conftest.err
 
5964
  rm -f conftest.er1
 
5965
  cat conftest.err >&5
 
5966
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5967
  (exit $ac_status); } >/dev/null && {
 
5968
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5969
         test ! -s conftest.err
 
5970
       }; then
 
5971
  :
 
5972
else
 
5973
  $as_echo "$as_me: failed program was:" >&5
 
5974
sed 's/^/| /' conftest.$ac_ext >&5
 
5975
 
 
5976
  # Broken: fails on valid input.
 
5977
continue
 
5978
fi
 
5979
 
 
5980
rm -f conftest.err conftest.$ac_ext
 
5981
 
 
5982
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5983
  # can be detected and how.
 
5984
  cat >conftest.$ac_ext <<_ACEOF
 
5985
/* confdefs.h.  */
 
5986
_ACEOF
 
5987
cat confdefs.h >>conftest.$ac_ext
 
5988
cat >>conftest.$ac_ext <<_ACEOF
 
5989
/* end confdefs.h.  */
 
5990
#include <ac_nonexistent.h>
 
5991
_ACEOF
 
5992
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5993
case "(($ac_try" in
 
5994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5995
  *) ac_try_echo=$ac_try;;
 
5996
esac
 
5997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5998
$as_echo "$ac_try_echo") >&5
 
5999
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6000
  ac_status=$?
 
6001
  grep -v '^ *+' conftest.er1 >conftest.err
 
6002
  rm -f conftest.er1
 
6003
  cat conftest.err >&5
 
6004
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6005
  (exit $ac_status); } >/dev/null && {
 
6006
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6007
         test ! -s conftest.err
 
6008
       }; then
 
6009
  # Broken: success on invalid input.
 
6010
continue
 
6011
else
 
6012
  $as_echo "$as_me: failed program was:" >&5
 
6013
sed 's/^/| /' conftest.$ac_ext >&5
 
6014
 
 
6015
  # Passes both tests.
 
6016
ac_preproc_ok=:
 
6017
break
 
6018
fi
 
6019
 
 
6020
rm -f conftest.err conftest.$ac_ext
 
6021
 
 
6022
done
 
6023
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6024
rm -f conftest.err conftest.$ac_ext
 
6025
if $ac_preproc_ok; then
 
6026
  :
 
6027
else
 
6028
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6029
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6030
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6031
See \`config.log' for more details." >&5
 
6032
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6033
See \`config.log' for more details." >&2;}
 
6034
   { (exit 1); exit 1; }; }; }
 
6035
fi
 
6036
 
 
6037
ac_ext=cpp
 
6038
ac_cpp='$CXXCPP $CPPFLAGS'
 
6039
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6040
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6041
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6042
 
 
6043
fi
 
6044
 
 
6045
 
 
6046
ac_ext=f
 
6047
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6048
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6049
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6050
if test -n "$ac_tool_prefix"; then
 
6051
  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
 
6052
  do
 
6053
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6054
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6055
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6056
$as_echo_n "checking for $ac_word... " >&6; }
 
6057
if test "${ac_cv_prog_F77+set}" = set; then
 
6058
  $as_echo_n "(cached) " >&6
 
6059
else
 
6060
  if test -n "$F77"; then
 
6061
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6062
else
 
6063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6064
for as_dir in $PATH
 
6065
do
 
6066
  IFS=$as_save_IFS
 
6067
  test -z "$as_dir" && as_dir=.
 
6068
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6070
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6071
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6072
    break 2
 
6073
  fi
 
6074
done
 
6075
done
 
6076
IFS=$as_save_IFS
 
6077
 
 
6078
fi
 
6079
fi
 
6080
F77=$ac_cv_prog_F77
 
6081
if test -n "$F77"; then
 
6082
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6083
$as_echo "$F77" >&6; }
 
6084
else
 
6085
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6086
$as_echo "no" >&6; }
 
6087
fi
 
6088
 
 
6089
 
 
6090
    test -n "$F77" && break
 
6091
  done
 
6092
fi
 
6093
if test -z "$F77"; then
 
6094
  ac_ct_F77=$F77
 
6095
  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
 
6096
do
 
6097
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6098
set dummy $ac_prog; ac_word=$2
 
6099
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6100
$as_echo_n "checking for $ac_word... " >&6; }
 
6101
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6102
  $as_echo_n "(cached) " >&6
 
6103
else
 
6104
  if test -n "$ac_ct_F77"; then
 
6105
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6106
else
 
6107
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6108
for as_dir in $PATH
 
6109
do
 
6110
  IFS=$as_save_IFS
 
6111
  test -z "$as_dir" && as_dir=.
 
6112
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6113
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6114
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6115
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6116
    break 2
 
6117
  fi
 
6118
done
 
6119
done
 
6120
IFS=$as_save_IFS
 
6121
 
 
6122
fi
 
6123
fi
 
6124
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6125
if test -n "$ac_ct_F77"; then
 
6126
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6127
$as_echo "$ac_ct_F77" >&6; }
 
6128
else
 
6129
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6130
$as_echo "no" >&6; }
 
6131
fi
 
6132
 
 
6133
 
 
6134
  test -n "$ac_ct_F77" && break
 
6135
done
 
6136
 
 
6137
  if test "x$ac_ct_F77" = x; then
 
6138
    F77=""
 
6139
  else
 
6140
    case $cross_compiling:$ac_tool_warned in
 
6141
yes:)
 
6142
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6143
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6144
ac_tool_warned=yes ;;
 
6145
esac
 
6146
    F77=$ac_ct_F77
 
6147
  fi
 
6148
fi
 
6149
 
 
6150
 
 
6151
# Provide some information about the compiler.
 
6152
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6153
set X $ac_compile
 
6154
ac_compiler=$2
 
6155
{ (ac_try="$ac_compiler --version >&5"
 
6156
case "(($ac_try" in
 
6157
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6158
  *) ac_try_echo=$ac_try;;
 
6159
esac
 
6160
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6161
$as_echo "$ac_try_echo") >&5
 
6162
  (eval "$ac_compiler --version >&5") 2>&5
 
6163
  ac_status=$?
 
6164
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6165
  (exit $ac_status); }
 
6166
{ (ac_try="$ac_compiler -v >&5"
 
6167
case "(($ac_try" in
 
6168
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6169
  *) ac_try_echo=$ac_try;;
 
6170
esac
 
6171
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6172
$as_echo "$ac_try_echo") >&5
 
6173
  (eval "$ac_compiler -v >&5") 2>&5
 
6174
  ac_status=$?
 
6175
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6176
  (exit $ac_status); }
 
6177
{ (ac_try="$ac_compiler -V >&5"
 
6178
case "(($ac_try" in
 
6179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6180
  *) ac_try_echo=$ac_try;;
 
6181
esac
 
6182
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6183
$as_echo "$ac_try_echo") >&5
 
6184
  (eval "$ac_compiler -V >&5") 2>&5
 
6185
  ac_status=$?
 
6186
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6187
  (exit $ac_status); }
 
6188
rm -f a.out
 
6189
 
 
6190
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6191
# input file.  (Note that this only needs to work for GNU compilers.)
 
6192
ac_save_ext=$ac_ext
 
6193
ac_ext=F
 
6194
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6195
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6196
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6197
  $as_echo_n "(cached) " >&6
 
6198
else
 
6199
  cat >conftest.$ac_ext <<_ACEOF
 
6200
      program main
 
6201
#ifndef __GNUC__
 
6202
       choke me
 
6203
#endif
 
6204
 
 
6205
      end
 
6206
_ACEOF
 
6207
rm -f conftest.$ac_objext
 
6208
if { (ac_try="$ac_compile"
 
6209
case "(($ac_try" in
 
6210
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6211
  *) ac_try_echo=$ac_try;;
 
6212
esac
 
6213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6214
$as_echo "$ac_try_echo") >&5
 
6215
  (eval "$ac_compile") 2>conftest.er1
 
6216
  ac_status=$?
 
6217
  grep -v '^ *+' conftest.er1 >conftest.err
 
6218
  rm -f conftest.er1
 
6219
  cat conftest.err >&5
 
6220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6221
  (exit $ac_status); } && {
 
6222
         test -z "$ac_f77_werror_flag" ||
 
6223
         test ! -s conftest.err
 
6224
       } && test -s conftest.$ac_objext; then
 
6225
  ac_compiler_gnu=yes
 
6226
else
 
6227
  $as_echo "$as_me: failed program was:" >&5
 
6228
sed 's/^/| /' conftest.$ac_ext >&5
 
6229
 
 
6230
        ac_compiler_gnu=no
 
6231
fi
 
6232
 
 
6233
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6234
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6235
 
 
6236
fi
 
6237
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6238
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6239
ac_ext=$ac_save_ext
 
6240
ac_test_FFLAGS=${FFLAGS+set}
 
6241
ac_save_FFLAGS=$FFLAGS
 
6242
FFLAGS=
 
6243
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6244
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6245
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6246
  $as_echo_n "(cached) " >&6
 
6247
else
 
6248
  FFLAGS=-g
 
6249
cat >conftest.$ac_ext <<_ACEOF
 
6250
      program main
 
6251
 
 
6252
      end
 
6253
_ACEOF
 
6254
rm -f conftest.$ac_objext
 
6255
if { (ac_try="$ac_compile"
 
6256
case "(($ac_try" in
 
6257
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6258
  *) ac_try_echo=$ac_try;;
 
6259
esac
 
6260
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6261
$as_echo "$ac_try_echo") >&5
 
6262
  (eval "$ac_compile") 2>conftest.er1
 
6263
  ac_status=$?
 
6264
  grep -v '^ *+' conftest.er1 >conftest.err
 
6265
  rm -f conftest.er1
 
6266
  cat conftest.err >&5
 
6267
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6268
  (exit $ac_status); } && {
 
6269
         test -z "$ac_f77_werror_flag" ||
 
6270
         test ! -s conftest.err
 
6271
       } && test -s conftest.$ac_objext; then
 
6272
  ac_cv_prog_f77_g=yes
 
6273
else
 
6274
  $as_echo "$as_me: failed program was:" >&5
 
6275
sed 's/^/| /' conftest.$ac_ext >&5
 
6276
 
 
6277
        ac_cv_prog_f77_g=no
 
6278
fi
 
6279
 
 
6280
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6281
 
 
6282
fi
 
6283
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6284
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6285
if test "$ac_test_FFLAGS" = set; then
 
6286
  FFLAGS=$ac_save_FFLAGS
 
6287
elif test $ac_cv_prog_f77_g = yes; then
 
6288
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6289
    FFLAGS="-g -O2"
 
6290
  else
 
6291
    FFLAGS="-g"
 
6292
  fi
 
6293
else
 
6294
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6295
    FFLAGS="-O2"
 
6296
  else
 
6297
    FFLAGS=
 
6298
  fi
 
6299
fi
 
6300
 
 
6301
if test $ac_compiler_gnu = yes; then
 
6302
  G77=yes
 
6303
else
 
6304
  G77=
 
6305
fi
 
6306
ac_ext=c
 
6307
ac_cpp='$CPP $CPPFLAGS'
 
6308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6311
 
 
6312
 
 
6313
 
 
6314
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6315
# find the maximum length of command line arguments
 
6316
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6317
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6318
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6319
  $as_echo_n "(cached) " >&6
 
6320
else
 
6321
    i=0
 
6322
  teststring="ABCD"
 
6323
 
 
6324
  case $build_os in
 
6325
  msdosdjgpp*)
 
6326
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6327
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6328
    # during glob expansion).  Even if it were fixed, the result of this
 
6329
    # check would be larger than it should be.
 
6330
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6331
    ;;
 
6332
 
 
6333
  gnu*)
 
6334
    # Under GNU Hurd, this test is not required because there is
 
6335
    # no limit to the length of command line arguments.
 
6336
    # Libtool will interpret -1 as no limit whatsoever
 
6337
    lt_cv_sys_max_cmd_len=-1;
 
6338
    ;;
 
6339
 
 
6340
  cygwin* | mingw*)
 
6341
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6342
    # about 5 minutes as the teststring grows exponentially.
 
6343
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6344
    # you end up with a "frozen" computer, even though with patience
 
6345
    # the test eventually succeeds (with a max line length of 256k).
 
6346
    # Instead, let's just punt: use the minimum linelength reported by
 
6347
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6348
    lt_cv_sys_max_cmd_len=8192;
 
6349
    ;;
 
6350
 
 
6351
  amigaos*)
 
6352
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6353
    # So we just punt and use a minimum line length of 8192.
 
6354
    lt_cv_sys_max_cmd_len=8192;
 
6355
    ;;
 
6356
 
 
6357
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6358
    # This has been around since 386BSD, at least.  Likely further.
 
6359
    if test -x /sbin/sysctl; then
 
6360
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6361
    elif test -x /usr/sbin/sysctl; then
 
6362
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6363
    else
 
6364
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6365
    fi
 
6366
    # And add a safety zone
 
6367
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6368
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6369
    ;;
 
6370
 
 
6371
  interix*)
 
6372
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6373
    lt_cv_sys_max_cmd_len=196608
 
6374
    ;;
 
6375
 
 
6376
  osf*)
 
6377
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6378
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6379
    # nice to cause kernel panics so lets avoid the loop below.
 
6380
    # First set a reasonable default.
 
6381
    lt_cv_sys_max_cmd_len=16384
 
6382
    #
 
6383
    if test -x /sbin/sysconfig; then
 
6384
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6385
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6386
      esac
 
6387
    fi
 
6388
    ;;
 
6389
  sco3.2v5*)
 
6390
    lt_cv_sys_max_cmd_len=102400
 
6391
    ;;
 
6392
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6393
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6394
    if test -n "$kargmax"; then
 
6395
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6396
    else
 
6397
      lt_cv_sys_max_cmd_len=32768
 
6398
    fi
 
6399
    ;;
 
6400
  *)
 
6401
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6402
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6403
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6404
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6405
    else
 
6406
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6407
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6408
               = "XX$teststring") >/dev/null 2>&1 &&
 
6409
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6410
              lt_cv_sys_max_cmd_len=$new_result &&
 
6411
              test $i != 17 # 1/2 MB should be enough
 
6412
      do
 
6413
        i=`expr $i + 1`
 
6414
        teststring=$teststring$teststring
 
6415
      done
 
6416
      teststring=
 
6417
      # Add a significant safety factor because C++ compilers can tack on massive
 
6418
      # amounts of additional arguments before passing them to the linker.
 
6419
      # It appears as though 1/2 is a usable value.
 
6420
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6421
    fi
 
6422
    ;;
 
6423
  esac
 
6424
 
 
6425
fi
 
6426
 
 
6427
if test -n $lt_cv_sys_max_cmd_len ; then
 
6428
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6429
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6430
else
 
6431
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6432
$as_echo "none" >&6; }
 
6433
fi
 
6434
 
 
6435
 
 
6436
 
 
6437
 
 
6438
 
 
6439
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6440
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6441
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6442
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6443
  $as_echo_n "(cached) " >&6
 
6444
else
 
6445
 
 
6446
# These are sane defaults that work on at least a few old systems.
 
6447
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6448
 
 
6449
# Character class describing NM global symbol codes.
 
6450
symcode='[BCDEGRST]'
 
6451
 
 
6452
# Regexp to match symbols that can be accessed directly from C.
 
6453
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6454
 
 
6455
# Transform an extracted symbol line into a proper C declaration
 
6456
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6457
 
 
6458
# Transform an extracted symbol line into symbol name and symbol address
 
6459
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'"
 
6460
 
 
6461
# Define system-specific variables.
 
6462
case $host_os in
 
6463
aix*)
 
6464
  symcode='[BCDT]'
 
6465
  ;;
 
6466
cygwin* | mingw* | pw32*)
 
6467
  symcode='[ABCDGISTW]'
 
6468
  ;;
 
6469
hpux*) # Its linker distinguishes data from code symbols
 
6470
  if test "$host_cpu" = ia64; then
 
6471
    symcode='[ABCDEGRST]'
 
6472
  fi
 
6473
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6474
  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'"
 
6475
  ;;
 
6476
linux* | k*bsd*-gnu)
 
6477
  if test "$host_cpu" = ia64; then
 
6478
    symcode='[ABCDGIRSTW]'
 
6479
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6480
    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'"
 
6481
  fi
 
6482
  ;;
 
6483
irix* | nonstopux*)
 
6484
  symcode='[BCDEGRST]'
 
6485
  ;;
 
6486
osf*)
 
6487
  symcode='[BCDEGQRST]'
 
6488
  ;;
 
6489
solaris*)
 
6490
  symcode='[BDRT]'
 
6491
  ;;
 
6492
sco3.2v5*)
 
6493
  symcode='[DT]'
 
6494
  ;;
 
6495
sysv4.2uw2*)
 
6496
  symcode='[DT]'
 
6497
  ;;
 
6498
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6499
  symcode='[ABDT]'
 
6500
  ;;
 
6501
sysv4)
 
6502
  symcode='[DFNSTU]'
 
6503
  ;;
 
6504
esac
 
6505
 
 
6506
# Handle CRLF in mingw tool chain
 
6507
opt_cr=
 
6508
case $build_os in
 
6509
mingw*)
 
6510
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6511
  ;;
 
6512
esac
 
6513
 
 
6514
# If we're using GNU nm, then use its standard symbol codes.
 
6515
case `$NM -V 2>&1` in
 
6516
*GNU* | *'with BFD'*)
 
6517
  symcode='[ABCDGIRSTW]' ;;
 
6518
esac
 
6519
 
 
6520
# Try without a prefix undercore, then with it.
 
6521
for ac_symprfx in "" "_"; do
 
6522
 
 
6523
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6524
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6525
 
 
6526
  # Write the raw and C identifiers.
 
6527
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6528
 
 
6529
  # Check to see that the pipe works correctly.
 
6530
  pipe_works=no
 
6531
 
 
6532
  rm -f conftest*
 
6533
  cat > conftest.$ac_ext <<EOF
 
6534
#ifdef __cplusplus
 
6535
extern "C" {
 
6536
#endif
 
6537
char nm_test_var;
 
6538
void nm_test_func(){}
 
6539
#ifdef __cplusplus
 
6540
}
 
6541
#endif
 
6542
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6543
EOF
 
6544
 
 
6545
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6546
  (eval $ac_compile) 2>&5
 
6547
  ac_status=$?
 
6548
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6549
  (exit $ac_status); }; then
 
6550
    # Now try to grab the symbols.
 
6551
    nlist=conftest.nm
 
6552
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6553
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6554
  ac_status=$?
 
6555
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6556
  (exit $ac_status); } && test -s "$nlist"; then
 
6557
      # Try sorting and uniquifying the output.
 
6558
      if sort "$nlist" | uniq > "$nlist"T; then
 
6559
        mv -f "$nlist"T "$nlist"
 
6560
      else
 
6561
        rm -f "$nlist"T
 
6562
      fi
 
6563
 
 
6564
      # Make sure that we snagged all the symbols we need.
 
6565
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6566
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6567
          cat <<EOF > conftest.$ac_ext
 
6568
#ifdef __cplusplus
 
6569
extern "C" {
 
6570
#endif
 
6571
 
 
6572
EOF
 
6573
          # Now generate the symbol file.
 
6574
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6575
 
 
6576
          cat <<EOF >> conftest.$ac_ext
 
6577
#if defined (__STDC__) && __STDC__
 
6578
# define lt_ptr_t void *
 
6579
#else
 
6580
# define lt_ptr_t char *
 
6581
# define const
 
6582
#endif
 
6583
 
 
6584
/* The mapping between symbol names and symbols. */
 
6585
const struct {
 
6586
  const char *name;
 
6587
  lt_ptr_t address;
 
6588
}
 
6589
lt_preloaded_symbols[] =
 
6590
{
 
6591
EOF
 
6592
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6593
          cat <<\EOF >> conftest.$ac_ext
 
6594
  {0, (lt_ptr_t) 0}
 
6595
};
 
6596
 
 
6597
#ifdef __cplusplus
 
6598
}
 
6599
#endif
 
6600
EOF
 
6601
          # Now try linking the two files.
 
6602
          mv conftest.$ac_objext conftstm.$ac_objext
 
6603
          lt_save_LIBS="$LIBS"
 
6604
          lt_save_CFLAGS="$CFLAGS"
 
6605
          LIBS="conftstm.$ac_objext"
 
6606
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6607
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6608
  (eval $ac_link) 2>&5
 
6609
  ac_status=$?
 
6610
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6611
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6612
            pipe_works=yes
 
6613
          fi
 
6614
          LIBS="$lt_save_LIBS"
 
6615
          CFLAGS="$lt_save_CFLAGS"
 
6616
        else
 
6617
          echo "cannot find nm_test_func in $nlist" >&5
 
6618
        fi
 
6619
      else
 
6620
        echo "cannot find nm_test_var in $nlist" >&5
 
6621
      fi
 
6622
    else
 
6623
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6624
    fi
 
6625
  else
 
6626
    echo "$progname: failed program was:" >&5
 
6627
    cat conftest.$ac_ext >&5
 
6628
  fi
 
6629
  rm -rf conftest* conftst*
 
6630
 
 
6631
  # Do not use the global_symbol_pipe unless it works.
 
6632
  if test "$pipe_works" = yes; then
 
6633
    break
 
6634
  else
 
6635
    lt_cv_sys_global_symbol_pipe=
 
6636
  fi
 
6637
done
 
6638
 
 
6639
fi
 
6640
 
 
6641
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6642
  lt_cv_sys_global_symbol_to_cdecl=
 
6643
fi
 
6644
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6645
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6646
$as_echo "failed" >&6; }
 
6647
else
 
6648
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6649
$as_echo "ok" >&6; }
 
6650
fi
 
6651
 
 
6652
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6653
$as_echo_n "checking for objdir... " >&6; }
 
6654
if test "${lt_cv_objdir+set}" = set; then
 
6655
  $as_echo_n "(cached) " >&6
 
6656
else
 
6657
  rm -f .libs 2>/dev/null
 
6658
mkdir .libs 2>/dev/null
 
6659
if test -d .libs; then
 
6660
  lt_cv_objdir=.libs
 
6661
else
 
6662
  # MS-DOS does not allow filenames that begin with a dot.
 
6663
  lt_cv_objdir=_libs
 
6664
fi
 
6665
rmdir .libs 2>/dev/null
 
6666
fi
 
6667
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6668
$as_echo "$lt_cv_objdir" >&6; }
 
6669
objdir=$lt_cv_objdir
 
6670
 
 
6671
 
 
6672
 
 
6673
 
 
6674
 
 
6675
case $host_os in
 
6676
aix3*)
 
6677
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6678
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6679
  # vanish in a puff of smoke.
 
6680
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6681
    COLLECT_NAMES=
 
6682
    export COLLECT_NAMES
 
6683
  fi
 
6684
  ;;
 
6685
esac
 
6686
 
 
6687
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6688
# metacharacters that are still active within double-quoted strings.
 
6689
Xsed='sed -e 1s/^X//'
 
6690
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6691
 
 
6692
# Same as above, but do not quote variable references.
 
6693
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6694
 
 
6695
# Sed substitution to delay expansion of an escaped shell variable in a
 
6696
# double_quote_subst'ed string.
 
6697
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6698
 
 
6699
# Sed substitution to avoid accidental globbing in evaled expressions
 
6700
no_glob_subst='s/\*/\\\*/g'
 
6701
 
 
6702
# Constants:
 
6703
rm="rm -f"
 
6704
 
 
6705
# Global variables:
 
6706
default_ofile=libtool
 
6707
can_build_shared=yes
 
6708
 
 
6709
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6710
# which needs '.lib').
 
6711
libext=a
 
6712
ltmain="$ac_aux_dir/ltmain.sh"
 
6713
ofile="$default_ofile"
 
6714
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6715
 
 
6716
if test -n "$ac_tool_prefix"; then
 
6717
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6718
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6720
$as_echo_n "checking for $ac_word... " >&6; }
 
6721
if test "${ac_cv_prog_AR+set}" = set; then
 
6722
  $as_echo_n "(cached) " >&6
 
6723
else
 
6724
  if test -n "$AR"; then
 
6725
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6726
else
 
6727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6728
for as_dir in $PATH
 
6729
do
 
6730
  IFS=$as_save_IFS
 
6731
  test -z "$as_dir" && as_dir=.
 
6732
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6733
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6734
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6735
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6736
    break 2
 
6737
  fi
 
6738
done
 
6739
done
 
6740
IFS=$as_save_IFS
 
6741
 
 
6742
fi
 
6743
fi
 
6744
AR=$ac_cv_prog_AR
 
6745
if test -n "$AR"; then
 
6746
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
6747
$as_echo "$AR" >&6; }
 
6748
else
 
6749
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6750
$as_echo "no" >&6; }
 
6751
fi
 
6752
 
 
6753
 
 
6754
fi
 
6755
if test -z "$ac_cv_prog_AR"; then
 
6756
  ac_ct_AR=$AR
 
6757
  # Extract the first word of "ar", so it can be a program name with args.
 
6758
set dummy ar; ac_word=$2
 
6759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6760
$as_echo_n "checking for $ac_word... " >&6; }
 
6761
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6762
  $as_echo_n "(cached) " >&6
 
6763
else
 
6764
  if test -n "$ac_ct_AR"; then
 
6765
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6766
else
 
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6768
for as_dir in $PATH
 
6769
do
 
6770
  IFS=$as_save_IFS
 
6771
  test -z "$as_dir" && as_dir=.
 
6772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6773
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6774
    ac_cv_prog_ac_ct_AR="ar"
 
6775
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6776
    break 2
 
6777
  fi
 
6778
done
 
6779
done
 
6780
IFS=$as_save_IFS
 
6781
 
 
6782
fi
 
6783
fi
 
6784
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6785
if test -n "$ac_ct_AR"; then
 
6786
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6787
$as_echo "$ac_ct_AR" >&6; }
 
6788
else
 
6789
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6790
$as_echo "no" >&6; }
 
6791
fi
 
6792
 
 
6793
  if test "x$ac_ct_AR" = x; then
 
6794
    AR="false"
 
6795
  else
 
6796
    case $cross_compiling:$ac_tool_warned in
 
6797
yes:)
 
6798
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6799
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6800
ac_tool_warned=yes ;;
 
6801
esac
 
6802
    AR=$ac_ct_AR
 
6803
  fi
 
6804
else
 
6805
  AR="$ac_cv_prog_AR"
 
6806
fi
 
6807
 
 
6808
if test -n "$ac_tool_prefix"; then
 
6809
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6810
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6811
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6812
$as_echo_n "checking for $ac_word... " >&6; }
 
6813
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6814
  $as_echo_n "(cached) " >&6
 
6815
else
 
6816
  if test -n "$RANLIB"; then
 
6817
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6818
else
 
6819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6820
for as_dir in $PATH
 
6821
do
 
6822
  IFS=$as_save_IFS
 
6823
  test -z "$as_dir" && as_dir=.
 
6824
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6825
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6826
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6827
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6828
    break 2
 
6829
  fi
 
6830
done
 
6831
done
 
6832
IFS=$as_save_IFS
 
6833
 
 
6834
fi
 
6835
fi
 
6836
RANLIB=$ac_cv_prog_RANLIB
 
6837
if test -n "$RANLIB"; then
 
6838
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6839
$as_echo "$RANLIB" >&6; }
 
6840
else
 
6841
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6842
$as_echo "no" >&6; }
 
6843
fi
 
6844
 
 
6845
 
 
6846
fi
 
6847
if test -z "$ac_cv_prog_RANLIB"; then
 
6848
  ac_ct_RANLIB=$RANLIB
 
6849
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6850
set dummy ranlib; ac_word=$2
 
6851
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6852
$as_echo_n "checking for $ac_word... " >&6; }
 
6853
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6854
  $as_echo_n "(cached) " >&6
 
6855
else
 
6856
  if test -n "$ac_ct_RANLIB"; then
 
6857
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6858
else
 
6859
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6860
for as_dir in $PATH
 
6861
do
 
6862
  IFS=$as_save_IFS
 
6863
  test -z "$as_dir" && as_dir=.
 
6864
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6865
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6866
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6867
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6868
    break 2
 
6869
  fi
 
6870
done
 
6871
done
 
6872
IFS=$as_save_IFS
 
6873
 
 
6874
fi
 
6875
fi
 
6876
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6877
if test -n "$ac_ct_RANLIB"; then
 
6878
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6879
$as_echo "$ac_ct_RANLIB" >&6; }
 
6880
else
 
6881
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6882
$as_echo "no" >&6; }
 
6883
fi
 
6884
 
 
6885
  if test "x$ac_ct_RANLIB" = x; then
 
6886
    RANLIB=":"
 
6887
  else
 
6888
    case $cross_compiling:$ac_tool_warned in
 
6889
yes:)
 
6890
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6892
ac_tool_warned=yes ;;
 
6893
esac
 
6894
    RANLIB=$ac_ct_RANLIB
 
6895
  fi
 
6896
else
 
6897
  RANLIB="$ac_cv_prog_RANLIB"
 
6898
fi
 
6899
 
 
6900
if test -n "$ac_tool_prefix"; then
 
6901
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6902
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6904
$as_echo_n "checking for $ac_word... " >&6; }
 
6905
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6906
  $as_echo_n "(cached) " >&6
 
6907
else
 
6908
  if test -n "$STRIP"; then
 
6909
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6910
else
 
6911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6912
for as_dir in $PATH
 
6913
do
 
6914
  IFS=$as_save_IFS
 
6915
  test -z "$as_dir" && as_dir=.
 
6916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6918
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6919
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6920
    break 2
 
6921
  fi
 
6922
done
 
6923
done
 
6924
IFS=$as_save_IFS
 
6925
 
 
6926
fi
 
6927
fi
 
6928
STRIP=$ac_cv_prog_STRIP
 
6929
if test -n "$STRIP"; then
 
6930
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
6931
$as_echo "$STRIP" >&6; }
 
6932
else
 
6933
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6934
$as_echo "no" >&6; }
 
6935
fi
 
6936
 
 
6937
 
 
6938
fi
 
6939
if test -z "$ac_cv_prog_STRIP"; then
 
6940
  ac_ct_STRIP=$STRIP
 
6941
  # Extract the first word of "strip", so it can be a program name with args.
 
6942
set dummy strip; ac_word=$2
 
6943
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6944
$as_echo_n "checking for $ac_word... " >&6; }
 
6945
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6946
  $as_echo_n "(cached) " >&6
 
6947
else
 
6948
  if test -n "$ac_ct_STRIP"; then
 
6949
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6950
else
 
6951
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6952
for as_dir in $PATH
 
6953
do
 
6954
  IFS=$as_save_IFS
 
6955
  test -z "$as_dir" && as_dir=.
 
6956
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6957
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6958
    ac_cv_prog_ac_ct_STRIP="strip"
 
6959
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6960
    break 2
 
6961
  fi
 
6962
done
 
6963
done
 
6964
IFS=$as_save_IFS
 
6965
 
 
6966
fi
 
6967
fi
 
6968
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6969
if test -n "$ac_ct_STRIP"; then
 
6970
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6971
$as_echo "$ac_ct_STRIP" >&6; }
 
6972
else
 
6973
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6974
$as_echo "no" >&6; }
 
6975
fi
 
6976
 
 
6977
  if test "x$ac_ct_STRIP" = x; then
 
6978
    STRIP=":"
 
6979
  else
 
6980
    case $cross_compiling:$ac_tool_warned in
 
6981
yes:)
 
6982
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6983
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6984
ac_tool_warned=yes ;;
 
6985
esac
 
6986
    STRIP=$ac_ct_STRIP
 
6987
  fi
 
6988
else
 
6989
  STRIP="$ac_cv_prog_STRIP"
 
6990
fi
 
6991
 
 
6992
 
 
6993
old_CC="$CC"
 
6994
old_CFLAGS="$CFLAGS"
 
6995
 
 
6996
# Set sane defaults for various variables
 
6997
test -z "$AR" && AR=ar
 
6998
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6999
test -z "$AS" && AS=as
 
7000
test -z "$CC" && CC=cc
 
7001
test -z "$LTCC" && LTCC=$CC
 
7002
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7003
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7004
test -z "$LD" && LD=ld
 
7005
test -z "$LN_S" && LN_S="ln -s"
 
7006
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7007
test -z "$NM" && NM=nm
 
7008
test -z "$SED" && SED=sed
 
7009
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7010
test -z "$RANLIB" && RANLIB=:
 
7011
test -z "$STRIP" && STRIP=:
 
7012
test -z "$ac_objext" && ac_objext=o
 
7013
 
 
7014
# Determine commands to create old-style static archives.
 
7015
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7016
old_postinstall_cmds='chmod 644 $oldlib'
 
7017
old_postuninstall_cmds=
 
7018
 
 
7019
if test -n "$RANLIB"; then
 
7020
  case $host_os in
 
7021
  openbsd*)
 
7022
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7023
    ;;
 
7024
  *)
 
7025
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7026
    ;;
 
7027
  esac
 
7028
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7029
fi
 
7030
 
 
7031
for cc_temp in $compiler""; do
 
7032
  case $cc_temp in
 
7033
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7034
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7035
    \-*) ;;
 
7036
    *) break;;
 
7037
  esac
 
7038
done
 
7039
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7040
 
 
7041
 
 
7042
# Only perform the check for file, if the check method requires it
 
7043
case $deplibs_check_method in
 
7044
file_magic*)
 
7045
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7046
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7047
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7048
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7049
  $as_echo_n "(cached) " >&6
 
7050
else
 
7051
  case $MAGIC_CMD in
 
7052
[\\/*] |  ?:[\\/]*)
 
7053
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7054
  ;;
 
7055
*)
 
7056
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7057
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7058
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7059
  for ac_dir in $ac_dummy; do
 
7060
    IFS="$lt_save_ifs"
 
7061
    test -z "$ac_dir" && ac_dir=.
 
7062
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7063
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7064
      if test -n "$file_magic_test_file"; then
 
7065
        case $deplibs_check_method in
 
7066
        "file_magic "*)
 
7067
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7068
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7069
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7070
            $EGREP "$file_magic_regex" > /dev/null; then
 
7071
            :
 
7072
          else
 
7073
            cat <<EOF 1>&2
 
7074
 
 
7075
*** Warning: the command libtool uses to detect shared libraries,
 
7076
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7077
*** The result is that libtool may fail to recognize shared libraries
 
7078
*** as such.  This will affect the creation of libtool libraries that
 
7079
*** depend on shared libraries, but programs linked with such libtool
 
7080
*** libraries will work regardless of this problem.  Nevertheless, you
 
7081
*** may want to report the problem to your system manager and/or to
 
7082
*** bug-libtool@gnu.org
 
7083
 
 
7084
EOF
 
7085
          fi ;;
 
7086
        esac
 
7087
      fi
 
7088
      break
 
7089
    fi
 
7090
  done
 
7091
  IFS="$lt_save_ifs"
 
7092
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7093
  ;;
 
7094
esac
 
7095
fi
 
7096
 
 
7097
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7098
if test -n "$MAGIC_CMD"; then
 
7099
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7100
$as_echo "$MAGIC_CMD" >&6; }
 
7101
else
 
7102
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7103
$as_echo "no" >&6; }
 
7104
fi
 
7105
 
 
7106
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7107
  if test -n "$ac_tool_prefix"; then
 
7108
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7109
$as_echo_n "checking for file... " >&6; }
 
7110
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7111
  $as_echo_n "(cached) " >&6
 
7112
else
 
7113
  case $MAGIC_CMD in
 
7114
[\\/*] |  ?:[\\/]*)
 
7115
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7116
  ;;
 
7117
*)
 
7118
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7119
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7120
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7121
  for ac_dir in $ac_dummy; do
 
7122
    IFS="$lt_save_ifs"
 
7123
    test -z "$ac_dir" && ac_dir=.
 
7124
    if test -f $ac_dir/file; then
 
7125
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7126
      if test -n "$file_magic_test_file"; then
 
7127
        case $deplibs_check_method in
 
7128
        "file_magic "*)
 
7129
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7130
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7131
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7132
            $EGREP "$file_magic_regex" > /dev/null; then
 
7133
            :
 
7134
          else
 
7135
            cat <<EOF 1>&2
 
7136
 
 
7137
*** Warning: the command libtool uses to detect shared libraries,
 
7138
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7139
*** The result is that libtool may fail to recognize shared libraries
 
7140
*** as such.  This will affect the creation of libtool libraries that
 
7141
*** depend on shared libraries, but programs linked with such libtool
 
7142
*** libraries will work regardless of this problem.  Nevertheless, you
 
7143
*** may want to report the problem to your system manager and/or to
 
7144
*** bug-libtool@gnu.org
 
7145
 
 
7146
EOF
 
7147
          fi ;;
 
7148
        esac
 
7149
      fi
 
7150
      break
 
7151
    fi
 
7152
  done
 
7153
  IFS="$lt_save_ifs"
 
7154
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7155
  ;;
 
7156
esac
 
7157
fi
 
7158
 
 
7159
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7160
if test -n "$MAGIC_CMD"; then
 
7161
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7162
$as_echo "$MAGIC_CMD" >&6; }
 
7163
else
 
7164
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7165
$as_echo "no" >&6; }
 
7166
fi
 
7167
 
 
7168
  else
 
7169
    MAGIC_CMD=:
 
7170
  fi
 
7171
fi
 
7172
 
 
7173
  fi
 
7174
  ;;
 
7175
esac
 
7176
 
 
7177
 
 
7178
  case $host_os in
 
7179
    rhapsody* | darwin*)
 
7180
    if test -n "$ac_tool_prefix"; then
 
7181
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7182
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7183
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7184
$as_echo_n "checking for $ac_word... " >&6; }
 
7185
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7186
  $as_echo_n "(cached) " >&6
 
7187
else
 
7188
  if test -n "$DSYMUTIL"; then
 
7189
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7190
else
 
7191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7192
for as_dir in $PATH
 
7193
do
 
7194
  IFS=$as_save_IFS
 
7195
  test -z "$as_dir" && as_dir=.
 
7196
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7197
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7198
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7199
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7200
    break 2
 
7201
  fi
 
7202
done
 
7203
done
 
7204
IFS=$as_save_IFS
 
7205
 
 
7206
fi
 
7207
fi
 
7208
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7209
if test -n "$DSYMUTIL"; then
 
7210
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7211
$as_echo "$DSYMUTIL" >&6; }
 
7212
else
 
7213
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7214
$as_echo "no" >&6; }
 
7215
fi
 
7216
 
 
7217
 
 
7218
fi
 
7219
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7220
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7221
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7222
set dummy dsymutil; ac_word=$2
 
7223
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7224
$as_echo_n "checking for $ac_word... " >&6; }
 
7225
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7226
  $as_echo_n "(cached) " >&6
 
7227
else
 
7228
  if test -n "$ac_ct_DSYMUTIL"; then
 
7229
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7230
else
 
7231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7232
for as_dir in $PATH
 
7233
do
 
7234
  IFS=$as_save_IFS
 
7235
  test -z "$as_dir" && as_dir=.
 
7236
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7237
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7238
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7239
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7240
    break 2
 
7241
  fi
 
7242
done
 
7243
done
 
7244
IFS=$as_save_IFS
 
7245
 
 
7246
fi
 
7247
fi
 
7248
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7249
if test -n "$ac_ct_DSYMUTIL"; then
 
7250
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7251
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7252
else
 
7253
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7254
$as_echo "no" >&6; }
 
7255
fi
 
7256
 
 
7257
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7258
    DSYMUTIL=":"
 
7259
  else
 
7260
    case $cross_compiling:$ac_tool_warned in
 
7261
yes:)
 
7262
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7263
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7264
ac_tool_warned=yes ;;
 
7265
esac
 
7266
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7267
  fi
 
7268
else
 
7269
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7270
fi
 
7271
 
 
7272
    if test -n "$ac_tool_prefix"; then
 
7273
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7274
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7275
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7276
$as_echo_n "checking for $ac_word... " >&6; }
 
7277
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7278
  $as_echo_n "(cached) " >&6
 
7279
else
 
7280
  if test -n "$NMEDIT"; then
 
7281
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7282
else
 
7283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7284
for as_dir in $PATH
 
7285
do
 
7286
  IFS=$as_save_IFS
 
7287
  test -z "$as_dir" && as_dir=.
 
7288
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7289
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7290
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7291
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7292
    break 2
 
7293
  fi
 
7294
done
 
7295
done
 
7296
IFS=$as_save_IFS
 
7297
 
 
7298
fi
 
7299
fi
 
7300
NMEDIT=$ac_cv_prog_NMEDIT
 
7301
if test -n "$NMEDIT"; then
 
7302
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7303
$as_echo "$NMEDIT" >&6; }
 
7304
else
 
7305
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7306
$as_echo "no" >&6; }
 
7307
fi
 
7308
 
 
7309
 
 
7310
fi
 
7311
if test -z "$ac_cv_prog_NMEDIT"; then
 
7312
  ac_ct_NMEDIT=$NMEDIT
 
7313
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7314
set dummy nmedit; ac_word=$2
 
7315
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7316
$as_echo_n "checking for $ac_word... " >&6; }
 
7317
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7318
  $as_echo_n "(cached) " >&6
 
7319
else
 
7320
  if test -n "$ac_ct_NMEDIT"; then
 
7321
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7322
else
 
7323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7324
for as_dir in $PATH
 
7325
do
 
7326
  IFS=$as_save_IFS
 
7327
  test -z "$as_dir" && as_dir=.
 
7328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7329
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7330
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7331
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7332
    break 2
 
7333
  fi
 
7334
done
 
7335
done
 
7336
IFS=$as_save_IFS
 
7337
 
 
7338
fi
 
7339
fi
 
7340
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7341
if test -n "$ac_ct_NMEDIT"; then
 
7342
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7343
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7344
else
 
7345
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7346
$as_echo "no" >&6; }
 
7347
fi
 
7348
 
 
7349
  if test "x$ac_ct_NMEDIT" = x; then
 
7350
    NMEDIT=":"
 
7351
  else
 
7352
    case $cross_compiling:$ac_tool_warned in
 
7353
yes:)
 
7354
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7355
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7356
ac_tool_warned=yes ;;
 
7357
esac
 
7358
    NMEDIT=$ac_ct_NMEDIT
 
7359
  fi
 
7360
else
 
7361
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7362
fi
 
7363
 
 
7364
 
 
7365
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7366
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7367
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7368
  $as_echo_n "(cached) " >&6
 
7369
else
 
7370
  lt_cv_apple_cc_single_mod=no
 
7371
      if test -z "${LT_MULTI_MODULE}"; then
 
7372
   # By default we will add the -single_module flag. You can override
 
7373
   # by either setting the environment variable LT_MULTI_MODULE
 
7374
   # non-empty at configure time, or by adding -multi_module to the
 
7375
   # link flags.
 
7376
   echo "int foo(void){return 1;}" > conftest.c
 
7377
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7378
     -dynamiclib ${wl}-single_module conftest.c
 
7379
   if test -f libconftest.dylib; then
 
7380
     lt_cv_apple_cc_single_mod=yes
 
7381
     rm -rf libconftest.dylib*
 
7382
   fi
 
7383
   rm conftest.c
 
7384
      fi
 
7385
fi
 
7386
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7387
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7388
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7389
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7390
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7391
  $as_echo_n "(cached) " >&6
 
7392
else
 
7393
  lt_cv_ld_exported_symbols_list=no
 
7394
      save_LDFLAGS=$LDFLAGS
 
7395
      echo "_main" > conftest.sym
 
7396
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7397
      cat >conftest.$ac_ext <<_ACEOF
 
7398
/* confdefs.h.  */
 
7399
_ACEOF
 
7400
cat confdefs.h >>conftest.$ac_ext
 
7401
cat >>conftest.$ac_ext <<_ACEOF
 
7402
/* end confdefs.h.  */
 
7403
 
 
7404
int
 
7405
main ()
 
7406
{
 
7407
 
 
7408
  ;
 
7409
  return 0;
 
7410
}
 
7411
_ACEOF
 
7412
rm -f conftest.$ac_objext conftest$ac_exeext
 
7413
if { (ac_try="$ac_link"
 
7414
case "(($ac_try" in
 
7415
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7416
  *) ac_try_echo=$ac_try;;
 
7417
esac
 
7418
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7419
$as_echo "$ac_try_echo") >&5
 
7420
  (eval "$ac_link") 2>conftest.er1
 
7421
  ac_status=$?
 
7422
  grep -v '^ *+' conftest.er1 >conftest.err
 
7423
  rm -f conftest.er1
 
7424
  cat conftest.err >&5
 
7425
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7426
  (exit $ac_status); } && {
 
7427
         test -z "$ac_c_werror_flag" ||
 
7428
         test ! -s conftest.err
 
7429
       } && test -s conftest$ac_exeext && {
 
7430
         test "$cross_compiling" = yes ||
 
7431
         $as_test_x conftest$ac_exeext
 
7432
       }; then
 
7433
  lt_cv_ld_exported_symbols_list=yes
 
7434
else
 
7435
  $as_echo "$as_me: failed program was:" >&5
 
7436
sed 's/^/| /' conftest.$ac_ext >&5
 
7437
 
 
7438
        lt_cv_ld_exported_symbols_list=no
 
7439
fi
 
7440
 
 
7441
rm -rf conftest.dSYM
 
7442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7443
      conftest$ac_exeext conftest.$ac_ext
 
7444
   LDFLAGS="$save_LDFLAGS"
 
7445
 
 
7446
fi
 
7447
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7448
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7449
    case $host_os in
 
7450
    rhapsody* | darwin1.[0123])
 
7451
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7452
    darwin1.*)
 
7453
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7454
    darwin*)
 
7455
      # if running on 10.5 or later, the deployment target defaults
 
7456
      # to the OS version, if on x86, and 10.4, the deployment
 
7457
      # target defaults to 10.4. Don't you love it?
 
7458
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7459
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7460
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7461
   10.[012]*)
 
7462
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7463
   10.*)
 
7464
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7465
      esac
 
7466
    ;;
 
7467
  esac
 
7468
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7469
      _lt_dar_single_mod='$single_module'
 
7470
    fi
 
7471
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7472
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7473
    else
 
7474
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7475
    fi
 
7476
    if test "$DSYMUTIL" != ":"; then
 
7477
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7478
    else
 
7479
      _lt_dsymutil=
 
7480
    fi
 
7481
    ;;
 
7482
  esac
 
7483
 
 
7484
 
 
7485
enable_dlopen=no
 
7486
enable_win32_dll=no
 
7487
 
 
7488
# Check whether --enable-libtool-lock was given.
 
7489
if test "${enable_libtool_lock+set}" = set; then
 
7490
  enableval=$enable_libtool_lock;
 
7491
fi
 
7492
 
 
7493
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7494
 
 
7495
 
 
7496
# Check whether --with-pic was given.
 
7497
if test "${with_pic+set}" = set; then
 
7498
  withval=$with_pic; pic_mode="$withval"
 
7499
else
 
7500
  pic_mode=default
 
7501
fi
 
7502
 
 
7503
test -z "$pic_mode" && pic_mode=default
 
7504
 
 
7505
# Use C for the default configuration in the libtool script
 
7506
tagname=
 
7507
lt_save_CC="$CC"
 
7508
ac_ext=c
 
7509
ac_cpp='$CPP $CPPFLAGS'
 
7510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7513
 
 
7514
 
 
7515
# Source file extension for C test sources.
 
7516
ac_ext=c
 
7517
 
 
7518
# Object file extension for compiled C test sources.
 
7519
objext=o
 
7520
objext=$objext
 
7521
 
 
7522
# Code to be used in simple compile tests
 
7523
lt_simple_compile_test_code="int some_variable = 0;"
 
7524
 
 
7525
# Code to be used in simple link tests
 
7526
lt_simple_link_test_code='int main(){return(0);}'
 
7527
 
 
7528
 
 
7529
# If no C compiler was specified, use CC.
 
7530
LTCC=${LTCC-"$CC"}
 
7531
 
 
7532
# If no C compiler flags were specified, use CFLAGS.
 
7533
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7534
 
 
7535
# Allow CC to be a program name with arguments.
 
7536
compiler=$CC
 
7537
 
 
7538
 
 
7539
# save warnings/boilerplate of simple test code
 
7540
ac_outfile=conftest.$ac_objext
 
7541
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7542
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7543
_lt_compiler_boilerplate=`cat conftest.err`
 
7544
$rm conftest*
 
7545
 
 
7546
ac_outfile=conftest.$ac_objext
 
7547
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7548
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7549
_lt_linker_boilerplate=`cat conftest.err`
 
7550
$rm -r conftest*
 
7551
 
 
7552
 
 
7553
 
 
7554
lt_prog_compiler_no_builtin_flag=
 
7555
 
 
7556
if test "$GCC" = yes; then
 
7557
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7558
 
 
7559
 
 
7560
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7561
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7562
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7563
  $as_echo_n "(cached) " >&6
 
7564
else
 
7565
  lt_cv_prog_compiler_rtti_exceptions=no
 
7566
  ac_outfile=conftest.$ac_objext
 
7567
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7568
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7569
   # Insert the option either (1) after the last *FLAGS variable, or
 
7570
   # (2) before a word containing "conftest.", or (3) at the end.
 
7571
   # Note that $ac_compile itself does not contain backslashes and begins
 
7572
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7573
   # The option is referenced via a variable to avoid confusing sed.
 
7574
   lt_compile=`echo "$ac_compile" | $SED \
 
7575
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7576
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7577
   -e 's:$: $lt_compiler_flag:'`
 
7578
   (eval echo "\"\$as_me:7578: $lt_compile\"" >&5)
 
7579
   (eval "$lt_compile" 2>conftest.err)
 
7580
   ac_status=$?
 
7581
   cat conftest.err >&5
 
7582
   echo "$as_me:7582: \$? = $ac_status" >&5
 
7583
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7584
     # The compiler can only warn and ignore the option if not recognized
 
7585
     # So say no if there are warnings other than the usual output.
 
7586
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7587
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7588
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7589
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7590
     fi
 
7591
   fi
 
7592
   $rm conftest*
 
7593
 
 
7594
fi
 
7595
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7596
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7597
 
 
7598
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7599
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7600
else
 
7601
    :
 
7602
fi
 
7603
 
 
7604
fi
 
7605
 
 
7606
lt_prog_compiler_wl=
 
7607
lt_prog_compiler_pic=
 
7608
lt_prog_compiler_static=
 
7609
 
 
7610
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7611
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7612
 
 
7613
  if test "$GCC" = yes; then
 
7614
    lt_prog_compiler_wl='-Wl,'
 
7615
    lt_prog_compiler_static='-static'
 
7616
 
 
7617
    case $host_os in
 
7618
      aix*)
 
7619
      # All AIX code is PIC.
 
7620
      if test "$host_cpu" = ia64; then
 
7621
        # AIX 5 now supports IA64 processor
 
7622
        lt_prog_compiler_static='-Bstatic'
 
7623
      fi
 
7624
      ;;
 
7625
 
 
7626
    amigaos*)
 
7627
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7628
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7629
      # like `-m68040'.
 
7630
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7631
      ;;
 
7632
 
 
7633
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7634
      # PIC is the default for these OSes.
 
7635
      ;;
 
7636
 
 
7637
    mingw* | cygwin* | pw32* | os2*)
 
7638
      # This hack is so that the source file can tell whether it is being
 
7639
      # built for inclusion in a dll (and should export symbols for example).
 
7640
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7641
      # (--disable-auto-import) libraries
 
7642
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7643
      ;;
 
7644
 
 
7645
    darwin* | rhapsody*)
 
7646
      # PIC is the default on this platform
 
7647
      # Common symbols not allowed in MH_DYLIB files
 
7648
      lt_prog_compiler_pic='-fno-common'
 
7649
      ;;
 
7650
 
 
7651
    interix[3-9]*)
 
7652
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7653
      # Instead, we relocate shared libraries at runtime.
 
7654
      ;;
 
7655
 
 
7656
    msdosdjgpp*)
 
7657
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7658
      # on systems that don't support them.
 
7659
      lt_prog_compiler_can_build_shared=no
 
7660
      enable_shared=no
 
7661
      ;;
 
7662
 
 
7663
    sysv4*MP*)
 
7664
      if test -d /usr/nec; then
 
7665
        lt_prog_compiler_pic=-Kconform_pic
 
7666
      fi
 
7667
      ;;
 
7668
 
 
7669
    hpux*)
 
7670
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7671
      # not for PA HP-UX.
 
7672
      case $host_cpu in
 
7673
      hppa*64*|ia64*)
 
7674
        # +Z the default
 
7675
        ;;
 
7676
      *)
 
7677
        lt_prog_compiler_pic='-fPIC'
 
7678
        ;;
 
7679
      esac
 
7680
      ;;
 
7681
 
 
7682
    *)
 
7683
      lt_prog_compiler_pic='-fPIC'
 
7684
      ;;
 
7685
    esac
 
7686
  else
 
7687
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7688
    case $host_os in
 
7689
    aix*)
 
7690
      lt_prog_compiler_wl='-Wl,'
 
7691
      if test "$host_cpu" = ia64; then
 
7692
        # AIX 5 now supports IA64 processor
 
7693
        lt_prog_compiler_static='-Bstatic'
 
7694
      else
 
7695
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7696
      fi
 
7697
      ;;
 
7698
      darwin*)
 
7699
        # PIC is the default on this platform
 
7700
        # Common symbols not allowed in MH_DYLIB files
 
7701
       case $cc_basename in
 
7702
         xlc*)
 
7703
         lt_prog_compiler_pic='-qnocommon'
 
7704
         lt_prog_compiler_wl='-Wl,'
 
7705
         ;;
 
7706
       esac
 
7707
       ;;
 
7708
 
 
7709
    mingw* | cygwin* | pw32* | os2*)
 
7710
      # This hack is so that the source file can tell whether it is being
 
7711
      # built for inclusion in a dll (and should export symbols for example).
 
7712
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7713
      ;;
 
7714
 
 
7715
    hpux9* | hpux10* | hpux11*)
 
7716
      lt_prog_compiler_wl='-Wl,'
 
7717
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7718
      # not for PA HP-UX.
 
7719
      case $host_cpu in
 
7720
      hppa*64*|ia64*)
 
7721
        # +Z the default
 
7722
        ;;
 
7723
      *)
 
7724
        lt_prog_compiler_pic='+Z'
 
7725
        ;;
 
7726
      esac
 
7727
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7728
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7729
      ;;
 
7730
 
 
7731
    irix5* | irix6* | nonstopux*)
 
7732
      lt_prog_compiler_wl='-Wl,'
 
7733
      # PIC (with -KPIC) is the default.
 
7734
      lt_prog_compiler_static='-non_shared'
 
7735
      ;;
 
7736
 
 
7737
    newsos6)
 
7738
      lt_prog_compiler_pic='-KPIC'
 
7739
      lt_prog_compiler_static='-Bstatic'
 
7740
      ;;
 
7741
 
 
7742
    linux* | k*bsd*-gnu)
 
7743
      case $cc_basename in
 
7744
      icc* | ecc*)
 
7745
        lt_prog_compiler_wl='-Wl,'
 
7746
        lt_prog_compiler_pic='-KPIC'
 
7747
        lt_prog_compiler_static='-static'
 
7748
        ;;
 
7749
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7750
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7751
        # which looks to be a dead project)
 
7752
        lt_prog_compiler_wl='-Wl,'
 
7753
        lt_prog_compiler_pic='-fpic'
 
7754
        lt_prog_compiler_static='-Bstatic'
 
7755
        ;;
 
7756
      ccc*)
 
7757
        lt_prog_compiler_wl='-Wl,'
 
7758
        # All Alpha code is PIC.
 
7759
        lt_prog_compiler_static='-non_shared'
 
7760
        ;;
 
7761
      *)
 
7762
        case `$CC -V 2>&1 | sed 5q` in
 
7763
        *Sun\ C*)
 
7764
          # Sun C 5.9
 
7765
          lt_prog_compiler_pic='-KPIC'
 
7766
          lt_prog_compiler_static='-Bstatic'
 
7767
          lt_prog_compiler_wl='-Wl,'
 
7768
          ;;
 
7769
        *Sun\ F*)
 
7770
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7771
          lt_prog_compiler_pic='-KPIC'
 
7772
          lt_prog_compiler_static='-Bstatic'
 
7773
          lt_prog_compiler_wl=''
 
7774
          ;;
 
7775
        esac
 
7776
        ;;
 
7777
      esac
 
7778
      ;;
 
7779
 
 
7780
    osf3* | osf4* | osf5*)
 
7781
      lt_prog_compiler_wl='-Wl,'
 
7782
      # All OSF/1 code is PIC.
 
7783
      lt_prog_compiler_static='-non_shared'
 
7784
      ;;
 
7785
 
 
7786
    rdos*)
 
7787
      lt_prog_compiler_static='-non_shared'
 
7788
      ;;
 
7789
 
 
7790
    solaris*)
 
7791
      lt_prog_compiler_pic='-KPIC'
 
7792
      lt_prog_compiler_static='-Bstatic'
 
7793
      case $cc_basename in
 
7794
      f77* | f90* | f95*)
 
7795
        lt_prog_compiler_wl='-Qoption ld ';;
 
7796
      *)
 
7797
        lt_prog_compiler_wl='-Wl,';;
 
7798
      esac
 
7799
      ;;
 
7800
 
 
7801
    sunos4*)
 
7802
      lt_prog_compiler_wl='-Qoption ld '
 
7803
      lt_prog_compiler_pic='-PIC'
 
7804
      lt_prog_compiler_static='-Bstatic'
 
7805
      ;;
 
7806
 
 
7807
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7808
      lt_prog_compiler_wl='-Wl,'
 
7809
      lt_prog_compiler_pic='-KPIC'
 
7810
      lt_prog_compiler_static='-Bstatic'
 
7811
      ;;
 
7812
 
 
7813
    sysv4*MP*)
 
7814
      if test -d /usr/nec ;then
 
7815
        lt_prog_compiler_pic='-Kconform_pic'
 
7816
        lt_prog_compiler_static='-Bstatic'
 
7817
      fi
 
7818
      ;;
 
7819
 
 
7820
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7821
      lt_prog_compiler_wl='-Wl,'
 
7822
      lt_prog_compiler_pic='-KPIC'
 
7823
      lt_prog_compiler_static='-Bstatic'
 
7824
      ;;
 
7825
 
 
7826
    unicos*)
 
7827
      lt_prog_compiler_wl='-Wl,'
 
7828
      lt_prog_compiler_can_build_shared=no
 
7829
      ;;
 
7830
 
 
7831
    uts4*)
 
7832
      lt_prog_compiler_pic='-pic'
 
7833
      lt_prog_compiler_static='-Bstatic'
 
7834
      ;;
 
7835
 
 
7836
    *)
 
7837
      lt_prog_compiler_can_build_shared=no
 
7838
      ;;
 
7839
    esac
 
7840
  fi
 
7841
 
 
7842
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7843
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7844
 
 
7845
#
 
7846
# Check to make sure the PIC flag actually works.
 
7847
#
 
7848
if test -n "$lt_prog_compiler_pic"; then
 
7849
 
 
7850
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7851
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7852
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7853
  $as_echo_n "(cached) " >&6
 
7854
else
 
7855
  lt_cv_prog_compiler_pic_works=no
 
7856
  ac_outfile=conftest.$ac_objext
 
7857
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7858
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7859
   # Insert the option either (1) after the last *FLAGS variable, or
 
7860
   # (2) before a word containing "conftest.", or (3) at the end.
 
7861
   # Note that $ac_compile itself does not contain backslashes and begins
 
7862
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7863
   # The option is referenced via a variable to avoid confusing sed.
 
7864
   lt_compile=`echo "$ac_compile" | $SED \
 
7865
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7866
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7867
   -e 's:$: $lt_compiler_flag:'`
 
7868
   (eval echo "\"\$as_me:7868: $lt_compile\"" >&5)
 
7869
   (eval "$lt_compile" 2>conftest.err)
 
7870
   ac_status=$?
 
7871
   cat conftest.err >&5
 
7872
   echo "$as_me:7872: \$? = $ac_status" >&5
 
7873
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7874
     # The compiler can only warn and ignore the option if not recognized
 
7875
     # So say no if there are warnings other than the usual output.
 
7876
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7877
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7878
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7879
       lt_cv_prog_compiler_pic_works=yes
 
7880
     fi
 
7881
   fi
 
7882
   $rm conftest*
 
7883
 
 
7884
fi
 
7885
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7886
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7887
 
 
7888
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7889
    case $lt_prog_compiler_pic in
 
7890
     "" | " "*) ;;
 
7891
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7892
     esac
 
7893
else
 
7894
    lt_prog_compiler_pic=
 
7895
     lt_prog_compiler_can_build_shared=no
 
7896
fi
 
7897
 
 
7898
fi
 
7899
case $host_os in
 
7900
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7901
  *djgpp*)
 
7902
    lt_prog_compiler_pic=
 
7903
    ;;
 
7904
  *)
 
7905
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7906
    ;;
 
7907
esac
 
7908
 
 
7909
#
 
7910
# Check to make sure the static flag actually works.
 
7911
#
 
7912
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7913
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7914
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7915
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7916
  $as_echo_n "(cached) " >&6
 
7917
else
 
7918
  lt_cv_prog_compiler_static_works=no
 
7919
   save_LDFLAGS="$LDFLAGS"
 
7920
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7921
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7922
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7923
     # The linker can only warn and ignore the option if not recognized
 
7924
     # So say no if there are warnings
 
7925
     if test -s conftest.err; then
 
7926
       # Append any errors to the config.log.
 
7927
       cat conftest.err 1>&5
 
7928
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7929
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7930
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7931
         lt_cv_prog_compiler_static_works=yes
 
7932
       fi
 
7933
     else
 
7934
       lt_cv_prog_compiler_static_works=yes
 
7935
     fi
 
7936
   fi
 
7937
   $rm -r conftest*
 
7938
   LDFLAGS="$save_LDFLAGS"
 
7939
 
 
7940
fi
 
7941
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7942
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7943
 
 
7944
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7945
    :
 
7946
else
 
7947
    lt_prog_compiler_static=
 
7948
fi
 
7949
 
 
7950
 
 
7951
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7952
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7953
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7954
  $as_echo_n "(cached) " >&6
 
7955
else
 
7956
  lt_cv_prog_compiler_c_o=no
 
7957
   $rm -r conftest 2>/dev/null
 
7958
   mkdir conftest
 
7959
   cd conftest
 
7960
   mkdir out
 
7961
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7962
 
 
7963
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7964
   # Insert the option either (1) after the last *FLAGS variable, or
 
7965
   # (2) before a word containing "conftest.", or (3) at the end.
 
7966
   # Note that $ac_compile itself does not contain backslashes and begins
 
7967
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7968
   lt_compile=`echo "$ac_compile" | $SED \
 
7969
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7970
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7971
   -e 's:$: $lt_compiler_flag:'`
 
7972
   (eval echo "\"\$as_me:7972: $lt_compile\"" >&5)
 
7973
   (eval "$lt_compile" 2>out/conftest.err)
 
7974
   ac_status=$?
 
7975
   cat out/conftest.err >&5
 
7976
   echo "$as_me:7976: \$? = $ac_status" >&5
 
7977
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7978
   then
 
7979
     # The compiler can only warn and ignore the option if not recognized
 
7980
     # So say no if there are warnings
 
7981
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7982
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7983
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7984
       lt_cv_prog_compiler_c_o=yes
 
7985
     fi
 
7986
   fi
 
7987
   chmod u+w . 2>&5
 
7988
   $rm conftest*
 
7989
   # SGI C++ compiler will create directory out/ii_files/ for
 
7990
   # template instantiation
 
7991
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7992
   $rm out/* && rmdir out
 
7993
   cd ..
 
7994
   rmdir conftest
 
7995
   $rm conftest*
 
7996
 
 
7997
fi
 
7998
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7999
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8000
 
 
8001
 
 
8002
hard_links="nottested"
 
8003
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8004
  # do not overwrite the value of need_locks provided by the user
 
8005
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8006
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8007
  hard_links=yes
 
8008
  $rm conftest*
 
8009
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8010
  touch conftest.a
 
8011
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8012
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8013
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8014
$as_echo "$hard_links" >&6; }
 
8015
  if test "$hard_links" = no; then
 
8016
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8017
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8018
    need_locks=warn
 
8019
  fi
 
8020
else
 
8021
  need_locks=no
 
8022
fi
 
8023
 
 
8024
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8025
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8026
 
 
8027
  runpath_var=
 
8028
  allow_undefined_flag=
 
8029
  enable_shared_with_static_runtimes=no
 
8030
  archive_cmds=
 
8031
  archive_expsym_cmds=
 
8032
  old_archive_From_new_cmds=
 
8033
  old_archive_from_expsyms_cmds=
 
8034
  export_dynamic_flag_spec=
 
8035
  whole_archive_flag_spec=
 
8036
  thread_safe_flag_spec=
 
8037
  hardcode_libdir_flag_spec=
 
8038
  hardcode_libdir_flag_spec_ld=
 
8039
  hardcode_libdir_separator=
 
8040
  hardcode_direct=no
 
8041
  hardcode_minus_L=no
 
8042
  hardcode_shlibpath_var=unsupported
 
8043
  link_all_deplibs=unknown
 
8044
  hardcode_automatic=no
 
8045
  module_cmds=
 
8046
  module_expsym_cmds=
 
8047
  always_export_symbols=no
 
8048
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8049
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8050
  # included in the symbol list
 
8051
  include_expsyms=
 
8052
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8053
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8054
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8055
  # as well as any symbol that contains `d'.
 
8056
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8057
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8058
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8059
  # the symbol is explicitly referenced.  Since portable code cannot
 
8060
  # rely on this symbol name, it's probably fine to never include it in
 
8061
  # preloaded symbol tables.
 
8062
  # Exclude shared library initialization/finalization symbols.
 
8063
  extract_expsyms_cmds=
 
8064
  # Just being paranoid about ensuring that cc_basename is set.
 
8065
  for cc_temp in $compiler""; do
 
8066
  case $cc_temp in
 
8067
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8068
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8069
    \-*) ;;
 
8070
    *) break;;
 
8071
  esac
 
8072
done
 
8073
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8074
 
 
8075
  case $host_os in
 
8076
  cygwin* | mingw* | pw32*)
 
8077
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8078
    # When not using gcc, we currently assume that we are using
 
8079
    # Microsoft Visual C++.
 
8080
    if test "$GCC" != yes; then
 
8081
      with_gnu_ld=no
 
8082
    fi
 
8083
    ;;
 
8084
  interix*)
 
8085
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8086
    with_gnu_ld=yes
 
8087
    ;;
 
8088
  openbsd*)
 
8089
    with_gnu_ld=no
 
8090
    ;;
 
8091
  esac
 
8092
 
 
8093
  ld_shlibs=yes
 
8094
  if test "$with_gnu_ld" = yes; then
 
8095
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8096
    wlarc='${wl}'
 
8097
 
 
8098
    # Set some defaults for GNU ld with shared library support. These
 
8099
    # are reset later if shared libraries are not supported. Putting them
 
8100
    # here allows them to be overridden if necessary.
 
8101
    runpath_var=LD_RUN_PATH
 
8102
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8103
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8104
    # ancient GNU ld didn't support --whole-archive et. al.
 
8105
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8106
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8107
      else
 
8108
        whole_archive_flag_spec=
 
8109
    fi
 
8110
    supports_anon_versioning=no
 
8111
    case `$LD -v 2>/dev/null` in
 
8112
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8113
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8114
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8115
      *\ 2.11.*) ;; # other 2.11 versions
 
8116
      *) supports_anon_versioning=yes ;;
 
8117
    esac
 
8118
 
 
8119
    # See if GNU ld supports shared libraries.
 
8120
    case $host_os in
 
8121
    aix[3-9]*)
 
8122
      # On AIX/PPC, the GNU linker is very broken
 
8123
      if test "$host_cpu" != ia64; then
 
8124
        ld_shlibs=no
 
8125
        cat <<EOF 1>&2
 
8126
 
 
8127
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8128
*** to be unable to reliably create shared libraries on AIX.
 
8129
*** Therefore, libtool is disabling shared libraries support.  If you
 
8130
*** really care for shared libraries, you may want to modify your PATH
 
8131
*** so that a non-GNU linker is found, and then restart.
 
8132
 
 
8133
EOF
 
8134
      fi
 
8135
      ;;
 
8136
 
 
8137
    amigaos*)
 
8138
      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)'
 
8139
      hardcode_libdir_flag_spec='-L$libdir'
 
8140
      hardcode_minus_L=yes
 
8141
 
 
8142
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8143
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8144
      # to version 4, is to share data among multiple programs linked
 
8145
      # with the same dynamic library.  Since this doesn't match the
 
8146
      # behavior of shared libraries on other platforms, we can't use
 
8147
      # them.
 
8148
      ld_shlibs=no
 
8149
      ;;
 
8150
 
 
8151
    beos*)
 
8152
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8153
        allow_undefined_flag=unsupported
 
8154
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8155
        # support --undefined.  This deserves some investigation.  FIXME
 
8156
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8157
      else
 
8158
        ld_shlibs=no
 
8159
      fi
 
8160
      ;;
 
8161
 
 
8162
    cygwin* | mingw* | pw32*)
 
8163
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8164
      # as there is no search path for DLLs.
 
8165
      hardcode_libdir_flag_spec='-L$libdir'
 
8166
      allow_undefined_flag=unsupported
 
8167
      always_export_symbols=no
 
8168
      enable_shared_with_static_runtimes=yes
 
8169
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8170
 
 
8171
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8172
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8173
        # If the export-symbols file already is a .def file (1st line
 
8174
        # is EXPORTS), use it as is; otherwise, prepend...
 
8175
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8176
          cp $export_symbols $output_objdir/$soname.def;
 
8177
        else
 
8178
          echo EXPORTS > $output_objdir/$soname.def;
 
8179
          cat $export_symbols >> $output_objdir/$soname.def;
 
8180
        fi~
 
8181
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8182
      else
 
8183
        ld_shlibs=no
 
8184
      fi
 
8185
      ;;
 
8186
 
 
8187
    interix[3-9]*)
 
8188
      hardcode_direct=no
 
8189
      hardcode_shlibpath_var=no
 
8190
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8191
      export_dynamic_flag_spec='${wl}-E'
 
8192
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8193
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8194
      # default) and relocated if they conflict, which is a slow very memory
 
8195
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8196
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8197
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8198
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8199
      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'
 
8200
      ;;
 
8201
 
 
8202
    gnu* | linux* | k*bsd*-gnu)
 
8203
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8204
        tmp_addflag=
 
8205
        case $cc_basename,$host_cpu in
 
8206
        pgcc*)                          # Portland Group C compiler
 
8207
          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'
 
8208
          tmp_addflag=' $pic_flag'
 
8209
          ;;
 
8210
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8211
          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'
 
8212
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8213
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8214
          tmp_addflag=' -i_dynamic' ;;
 
8215
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8216
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8217
        ifc* | ifort*)                  # Intel Fortran compiler
 
8218
          tmp_addflag=' -nofor_main' ;;
 
8219
        esac
 
8220
        case `$CC -V 2>&1 | sed 5q` in
 
8221
        *Sun\ C*)                       # Sun C 5.9
 
8222
          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'
 
8223
          tmp_sharedflag='-G' ;;
 
8224
        *Sun\ F*)                       # Sun Fortran 8.3
 
8225
          tmp_sharedflag='-G' ;;
 
8226
        *)
 
8227
          tmp_sharedflag='-shared' ;;
 
8228
        esac
 
8229
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8230
 
 
8231
        if test $supports_anon_versioning = yes; then
 
8232
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8233
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8234
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8235
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8236
        fi
 
8237
      else
 
8238
        ld_shlibs=no
 
8239
      fi
 
8240
      ;;
 
8241
 
 
8242
    netbsd*)
 
8243
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8244
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8245
        wlarc=
 
8246
      else
 
8247
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8248
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8249
      fi
 
8250
      ;;
 
8251
 
 
8252
    solaris*)
 
8253
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8254
        ld_shlibs=no
 
8255
        cat <<EOF 1>&2
 
8256
 
 
8257
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8258
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8259
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8260
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8261
*** your PATH or compiler configuration so that the native linker is
 
8262
*** used, and then restart.
 
8263
 
 
8264
EOF
 
8265
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8266
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8267
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8268
      else
 
8269
        ld_shlibs=no
 
8270
      fi
 
8271
      ;;
 
8272
 
 
8273
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8274
      case `$LD -v 2>&1` in
 
8275
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8276
        ld_shlibs=no
 
8277
        cat <<_LT_EOF 1>&2
 
8278
 
 
8279
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8280
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8281
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8282
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8283
*** your PATH or compiler configuration so that the native linker is
 
8284
*** used, and then restart.
 
8285
 
 
8286
_LT_EOF
 
8287
        ;;
 
8288
        *)
 
8289
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8290
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8291
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8292
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8293
          else
 
8294
            ld_shlibs=no
 
8295
          fi
 
8296
        ;;
 
8297
      esac
 
8298
      ;;
 
8299
 
 
8300
    sunos4*)
 
8301
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8302
      wlarc=
 
8303
      hardcode_direct=yes
 
8304
      hardcode_shlibpath_var=no
 
8305
      ;;
 
8306
 
 
8307
    *)
 
8308
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8309
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8310
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8311
      else
 
8312
        ld_shlibs=no
 
8313
      fi
 
8314
      ;;
 
8315
    esac
 
8316
 
 
8317
    if test "$ld_shlibs" = no; then
 
8318
      runpath_var=
 
8319
      hardcode_libdir_flag_spec=
 
8320
      export_dynamic_flag_spec=
 
8321
      whole_archive_flag_spec=
 
8322
    fi
 
8323
  else
 
8324
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8325
    case $host_os in
 
8326
    aix3*)
 
8327
      allow_undefined_flag=unsupported
 
8328
      always_export_symbols=yes
 
8329
      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'
 
8330
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8331
      # are no directories specified by -L.
 
8332
      hardcode_minus_L=yes
 
8333
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8334
        # Neither direct hardcoding nor static linking is supported with a
 
8335
        # broken collect2.
 
8336
        hardcode_direct=unsupported
 
8337
      fi
 
8338
      ;;
 
8339
 
 
8340
    aix[4-9]*)
 
8341
      if test "$host_cpu" = ia64; then
 
8342
        # On IA64, the linker does run time linking by default, so we don't
 
8343
        # have to do anything special.
 
8344
        aix_use_runtimelinking=no
 
8345
        exp_sym_flag='-Bexport'
 
8346
        no_entry_flag=""
 
8347
      else
 
8348
        # If we're using GNU nm, then we don't want the "-C" option.
 
8349
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8350
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8351
          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'
 
8352
        else
 
8353
          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'
 
8354
        fi
 
8355
        aix_use_runtimelinking=no
 
8356
 
 
8357
        # Test if we are trying to use run time linking or normal
 
8358
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8359
        # need to do runtime linking.
 
8360
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8361
          for ld_flag in $LDFLAGS; do
 
8362
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8363
            aix_use_runtimelinking=yes
 
8364
            break
 
8365
          fi
 
8366
          done
 
8367
          ;;
 
8368
        esac
 
8369
 
 
8370
        exp_sym_flag='-bexport'
 
8371
        no_entry_flag='-bnoentry'
 
8372
      fi
 
8373
 
 
8374
      # When large executables or shared objects are built, AIX ld can
 
8375
      # have problems creating the table of contents.  If linking a library
 
8376
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8377
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8378
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8379
 
 
8380
      archive_cmds=''
 
8381
      hardcode_direct=yes
 
8382
      hardcode_libdir_separator=':'
 
8383
      link_all_deplibs=yes
 
8384
 
 
8385
      if test "$GCC" = yes; then
 
8386
        case $host_os in aix4.[012]|aix4.[012].*)
 
8387
        # We only want to do this on AIX 4.2 and lower, the check
 
8388
        # below for broken collect2 doesn't work under 4.3+
 
8389
          collect2name=`${CC} -print-prog-name=collect2`
 
8390
          if test -f "$collect2name" && \
 
8391
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8392
          then
 
8393
          # We have reworked collect2
 
8394
          :
 
8395
          else
 
8396
          # We have old collect2
 
8397
          hardcode_direct=unsupported
 
8398
          # It fails to find uninstalled libraries when the uninstalled
 
8399
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8400
          # to unsupported forces relinking
 
8401
          hardcode_minus_L=yes
 
8402
          hardcode_libdir_flag_spec='-L$libdir'
 
8403
          hardcode_libdir_separator=
 
8404
          fi
 
8405
          ;;
 
8406
        esac
 
8407
        shared_flag='-shared'
 
8408
        if test "$aix_use_runtimelinking" = yes; then
 
8409
          shared_flag="$shared_flag "'${wl}-G'
 
8410
        fi
 
8411
      else
 
8412
        # not using gcc
 
8413
        if test "$host_cpu" = ia64; then
 
8414
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8415
        # chokes on -Wl,-G. The following line is correct:
 
8416
          shared_flag='-G'
 
8417
        else
 
8418
          if test "$aix_use_runtimelinking" = yes; then
 
8419
            shared_flag='${wl}-G'
 
8420
          else
 
8421
            shared_flag='${wl}-bM:SRE'
 
8422
          fi
 
8423
        fi
 
8424
      fi
 
8425
 
 
8426
      # It seems that -bexpall does not export symbols beginning with
 
8427
      # underscore (_), so it is better to generate a list of symbols to export.
 
8428
      always_export_symbols=yes
 
8429
      if test "$aix_use_runtimelinking" = yes; then
 
8430
        # Warning - without using the other runtime loading flags (-brtl),
 
8431
        # -berok will link without error, but may produce a broken library.
 
8432
        allow_undefined_flag='-berok'
 
8433
       # Determine the default libpath from the value encoded in an empty executable.
 
8434
       cat >conftest.$ac_ext <<_ACEOF
 
8435
/* confdefs.h.  */
 
8436
_ACEOF
 
8437
cat confdefs.h >>conftest.$ac_ext
 
8438
cat >>conftest.$ac_ext <<_ACEOF
 
8439
/* end confdefs.h.  */
 
8440
 
 
8441
int
 
8442
main ()
 
8443
{
 
8444
 
 
8445
  ;
 
8446
  return 0;
 
8447
}
 
8448
_ACEOF
 
8449
rm -f conftest.$ac_objext conftest$ac_exeext
 
8450
if { (ac_try="$ac_link"
 
8451
case "(($ac_try" in
 
8452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8453
  *) ac_try_echo=$ac_try;;
 
8454
esac
 
8455
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8456
$as_echo "$ac_try_echo") >&5
 
8457
  (eval "$ac_link") 2>conftest.er1
 
8458
  ac_status=$?
 
8459
  grep -v '^ *+' conftest.er1 >conftest.err
 
8460
  rm -f conftest.er1
 
8461
  cat conftest.err >&5
 
8462
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8463
  (exit $ac_status); } && {
 
8464
         test -z "$ac_c_werror_flag" ||
 
8465
         test ! -s conftest.err
 
8466
       } && test -s conftest$ac_exeext && {
 
8467
         test "$cross_compiling" = yes ||
 
8468
         $as_test_x conftest$ac_exeext
 
8469
       }; then
 
8470
 
 
8471
lt_aix_libpath_sed='
 
8472
    /Import File Strings/,/^$/ {
 
8473
        /^0/ {
 
8474
            s/^0  *\(.*\)$/\1/
 
8475
            p
 
8476
        }
 
8477
    }'
 
8478
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8479
# Check for a 64-bit object if we didn't find anything.
 
8480
if test -z "$aix_libpath"; then
 
8481
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8482
fi
 
8483
else
 
8484
  $as_echo "$as_me: failed program was:" >&5
 
8485
sed 's/^/| /' conftest.$ac_ext >&5
 
8486
 
 
8487
 
 
8488
fi
 
8489
 
 
8490
rm -rf conftest.dSYM
 
8491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8492
      conftest$ac_exeext conftest.$ac_ext
 
8493
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8494
 
 
8495
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8496
        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"
 
8497
       else
 
8498
        if test "$host_cpu" = ia64; then
 
8499
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8500
          allow_undefined_flag="-z nodefs"
 
8501
          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"
 
8502
        else
 
8503
         # Determine the default libpath from the value encoded in an empty executable.
 
8504
         cat >conftest.$ac_ext <<_ACEOF
 
8505
/* confdefs.h.  */
 
8506
_ACEOF
 
8507
cat confdefs.h >>conftest.$ac_ext
 
8508
cat >>conftest.$ac_ext <<_ACEOF
 
8509
/* end confdefs.h.  */
 
8510
 
 
8511
int
 
8512
main ()
 
8513
{
 
8514
 
 
8515
  ;
 
8516
  return 0;
 
8517
}
 
8518
_ACEOF
 
8519
rm -f conftest.$ac_objext conftest$ac_exeext
 
8520
if { (ac_try="$ac_link"
 
8521
case "(($ac_try" in
 
8522
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8523
  *) ac_try_echo=$ac_try;;
 
8524
esac
 
8525
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8526
$as_echo "$ac_try_echo") >&5
 
8527
  (eval "$ac_link") 2>conftest.er1
 
8528
  ac_status=$?
 
8529
  grep -v '^ *+' conftest.er1 >conftest.err
 
8530
  rm -f conftest.er1
 
8531
  cat conftest.err >&5
 
8532
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8533
  (exit $ac_status); } && {
 
8534
         test -z "$ac_c_werror_flag" ||
 
8535
         test ! -s conftest.err
 
8536
       } && test -s conftest$ac_exeext && {
 
8537
         test "$cross_compiling" = yes ||
 
8538
         $as_test_x conftest$ac_exeext
 
8539
       }; then
 
8540
 
 
8541
lt_aix_libpath_sed='
 
8542
    /Import File Strings/,/^$/ {
 
8543
        /^0/ {
 
8544
            s/^0  *\(.*\)$/\1/
 
8545
            p
 
8546
        }
 
8547
    }'
 
8548
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8549
# Check for a 64-bit object if we didn't find anything.
 
8550
if test -z "$aix_libpath"; then
 
8551
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8552
fi
 
8553
else
 
8554
  $as_echo "$as_me: failed program was:" >&5
 
8555
sed 's/^/| /' conftest.$ac_ext >&5
 
8556
 
 
8557
 
 
8558
fi
 
8559
 
 
8560
rm -rf conftest.dSYM
 
8561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8562
      conftest$ac_exeext conftest.$ac_ext
 
8563
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8564
 
 
8565
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8566
          # Warning - without using the other run time loading flags,
 
8567
          # -berok will link without error, but may produce a broken library.
 
8568
          no_undefined_flag=' ${wl}-bernotok'
 
8569
          allow_undefined_flag=' ${wl}-berok'
 
8570
          # Exported symbols can be pulled into shared objects from archives
 
8571
          whole_archive_flag_spec='$convenience'
 
8572
          archive_cmds_need_lc=yes
 
8573
          # This is similar to how AIX traditionally builds its shared libraries.
 
8574
          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'
 
8575
        fi
 
8576
      fi
 
8577
      ;;
 
8578
 
 
8579
    amigaos*)
 
8580
      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)'
 
8581
      hardcode_libdir_flag_spec='-L$libdir'
 
8582
      hardcode_minus_L=yes
 
8583
      # see comment about different semantics on the GNU ld section
 
8584
      ld_shlibs=no
 
8585
      ;;
 
8586
 
 
8587
    bsdi[45]*)
 
8588
      export_dynamic_flag_spec=-rdynamic
 
8589
      ;;
 
8590
 
 
8591
    cygwin* | mingw* | pw32*)
 
8592
      # When not using gcc, we currently assume that we are using
 
8593
      # Microsoft Visual C++.
 
8594
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8595
      # no search path for DLLs.
 
8596
      hardcode_libdir_flag_spec=' '
 
8597
      allow_undefined_flag=unsupported
 
8598
      # Tell ltmain to make .lib files, not .a files.
 
8599
      libext=lib
 
8600
      # Tell ltmain to make .dll files, not .so files.
 
8601
      shrext_cmds=".dll"
 
8602
      # FIXME: Setting linknames here is a bad hack.
 
8603
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8604
      # The linker will automatically build a .lib file if we build a DLL.
 
8605
      old_archive_From_new_cmds='true'
 
8606
      # FIXME: Should let the user specify the lib program.
 
8607
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8608
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8609
      enable_shared_with_static_runtimes=yes
 
8610
      ;;
 
8611
 
 
8612
    darwin* | rhapsody*)
 
8613
      case $host_os in
 
8614
        rhapsody* | darwin1.[012])
 
8615
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8616
         ;;
 
8617
       *) # Darwin 1.3 on
 
8618
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8619
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8620
         else
 
8621
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8622
             10.[012])
 
8623
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8624
               ;;
 
8625
             10.*)
 
8626
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8627
               ;;
 
8628
           esac
 
8629
         fi
 
8630
         ;;
 
8631
      esac
 
8632
      archive_cmds_need_lc=no
 
8633
      hardcode_direct=no
 
8634
      hardcode_automatic=yes
 
8635
      hardcode_shlibpath_var=unsupported
 
8636
      whole_archive_flag_spec=''
 
8637
      link_all_deplibs=yes
 
8638
    if test "$GCC" = yes ; then
 
8639
        output_verbose_link_cmd='echo'
 
8640
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8641
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8642
        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}"
 
8643
        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}"
 
8644
    else
 
8645
      case $cc_basename in
 
8646
        xlc*)
 
8647
         output_verbose_link_cmd='echo'
 
8648
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8649
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8650
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8651
         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}'
 
8652
          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}'
 
8653
          ;;
 
8654
       *)
 
8655
         ld_shlibs=no
 
8656
          ;;
 
8657
      esac
 
8658
    fi
 
8659
      ;;
 
8660
 
 
8661
    dgux*)
 
8662
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8663
      hardcode_libdir_flag_spec='-L$libdir'
 
8664
      hardcode_shlibpath_var=no
 
8665
      ;;
 
8666
 
 
8667
    freebsd1*)
 
8668
      ld_shlibs=no
 
8669
      ;;
 
8670
 
 
8671
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8672
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8673
    # does not break anything, and helps significantly (at the cost of a little
 
8674
    # extra space).
 
8675
    freebsd2.2*)
 
8676
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8677
      hardcode_libdir_flag_spec='-R$libdir'
 
8678
      hardcode_direct=yes
 
8679
      hardcode_shlibpath_var=no
 
8680
      ;;
 
8681
 
 
8682
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8683
    freebsd2*)
 
8684
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8685
      hardcode_direct=yes
 
8686
      hardcode_minus_L=yes
 
8687
      hardcode_shlibpath_var=no
 
8688
      ;;
 
8689
 
 
8690
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8691
    freebsd* | dragonfly*)
 
8692
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8693
      hardcode_libdir_flag_spec='-R$libdir'
 
8694
      hardcode_direct=yes
 
8695
      hardcode_shlibpath_var=no
 
8696
      ;;
 
8697
 
 
8698
    hpux9*)
 
8699
      if test "$GCC" = yes; then
 
8700
        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'
 
8701
      else
 
8702
        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'
 
8703
      fi
 
8704
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8705
      hardcode_libdir_separator=:
 
8706
      hardcode_direct=yes
 
8707
 
 
8708
      # hardcode_minus_L: Not really in the search PATH,
 
8709
      # but as the default location of the library.
 
8710
      hardcode_minus_L=yes
 
8711
      export_dynamic_flag_spec='${wl}-E'
 
8712
      ;;
 
8713
 
 
8714
    hpux10*)
 
8715
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8716
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8717
      else
 
8718
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8719
      fi
 
8720
      if test "$with_gnu_ld" = no; then
 
8721
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8722
        hardcode_libdir_separator=:
 
8723
 
 
8724
        hardcode_direct=yes
 
8725
        export_dynamic_flag_spec='${wl}-E'
 
8726
 
 
8727
        # hardcode_minus_L: Not really in the search PATH,
 
8728
        # but as the default location of the library.
 
8729
        hardcode_minus_L=yes
 
8730
      fi
 
8731
      ;;
 
8732
 
 
8733
    hpux11*)
 
8734
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8735
        case $host_cpu in
 
8736
        hppa*64*)
 
8737
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8738
          ;;
 
8739
        ia64*)
 
8740
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8741
          ;;
 
8742
        *)
 
8743
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8744
          ;;
 
8745
        esac
 
8746
      else
 
8747
        case $host_cpu in
 
8748
        hppa*64*)
 
8749
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8750
          ;;
 
8751
        ia64*)
 
8752
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8753
          ;;
 
8754
        *)
 
8755
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8756
          ;;
 
8757
        esac
 
8758
      fi
 
8759
      if test "$with_gnu_ld" = no; then
 
8760
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8761
        hardcode_libdir_separator=:
 
8762
 
 
8763
        case $host_cpu in
 
8764
        hppa*64*|ia64*)
 
8765
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8766
          hardcode_direct=no
 
8767
          hardcode_shlibpath_var=no
 
8768
          ;;
 
8769
        *)
 
8770
          hardcode_direct=yes
 
8771
          export_dynamic_flag_spec='${wl}-E'
 
8772
 
 
8773
          # hardcode_minus_L: Not really in the search PATH,
 
8774
          # but as the default location of the library.
 
8775
          hardcode_minus_L=yes
 
8776
          ;;
 
8777
        esac
 
8778
      fi
 
8779
      ;;
 
8780
 
 
8781
    irix5* | irix6* | nonstopux*)
 
8782
      if test "$GCC" = yes; then
 
8783
        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'
 
8784
      else
 
8785
        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'
 
8786
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8787
      fi
 
8788
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8789
      hardcode_libdir_separator=:
 
8790
      link_all_deplibs=yes
 
8791
      ;;
 
8792
 
 
8793
    netbsd*)
 
8794
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8795
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8796
      else
 
8797
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8798
      fi
 
8799
      hardcode_libdir_flag_spec='-R$libdir'
 
8800
      hardcode_direct=yes
 
8801
      hardcode_shlibpath_var=no
 
8802
      ;;
 
8803
 
 
8804
    newsos6)
 
8805
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8806
      hardcode_direct=yes
 
8807
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8808
      hardcode_libdir_separator=:
 
8809
      hardcode_shlibpath_var=no
 
8810
      ;;
 
8811
 
 
8812
    openbsd*)
 
8813
      if test -f /usr/libexec/ld.so; then
 
8814
        hardcode_direct=yes
 
8815
        hardcode_shlibpath_var=no
 
8816
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8817
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8818
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8819
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8820
          export_dynamic_flag_spec='${wl}-E'
 
8821
        else
 
8822
          case $host_os in
 
8823
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8824
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8825
             hardcode_libdir_flag_spec='-R$libdir'
 
8826
             ;;
 
8827
           *)
 
8828
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8829
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8830
             ;;
 
8831
          esac
 
8832
        fi
 
8833
      else
 
8834
        ld_shlibs=no
 
8835
      fi
 
8836
      ;;
 
8837
 
 
8838
    os2*)
 
8839
      hardcode_libdir_flag_spec='-L$libdir'
 
8840
      hardcode_minus_L=yes
 
8841
      allow_undefined_flag=unsupported
 
8842
      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'
 
8843
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8844
      ;;
 
8845
 
 
8846
    osf3*)
 
8847
      if test "$GCC" = yes; then
 
8848
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8849
        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'
 
8850
      else
 
8851
        allow_undefined_flag=' -expect_unresolved \*'
 
8852
        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'
 
8853
      fi
 
8854
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8855
      hardcode_libdir_separator=:
 
8856
      ;;
 
8857
 
 
8858
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8859
      if test "$GCC" = yes; then
 
8860
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8861
        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'
 
8862
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8863
      else
 
8864
        allow_undefined_flag=' -expect_unresolved \*'
 
8865
        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'
 
8866
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8867
        $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'
 
8868
 
 
8869
        # Both c and cxx compiler support -rpath directly
 
8870
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8871
      fi
 
8872
      hardcode_libdir_separator=:
 
8873
      ;;
 
8874
 
 
8875
    solaris*)
 
8876
      no_undefined_flag=' -z text'
 
8877
      if test "$GCC" = yes; then
 
8878
        wlarc='${wl}'
 
8879
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8880
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8881
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8882
      else
 
8883
        wlarc=''
 
8884
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8885
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8886
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8887
      fi
 
8888
      hardcode_libdir_flag_spec='-R$libdir'
 
8889
      hardcode_shlibpath_var=no
 
8890
      case $host_os in
 
8891
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8892
      *)
 
8893
        # The compiler driver will combine and reorder linker options,
 
8894
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8895
        # but is careful enough not to reorder.
 
8896
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8897
        if test "$GCC" = yes; then
 
8898
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8899
        else
 
8900
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8901
        fi
 
8902
        ;;
 
8903
      esac
 
8904
      link_all_deplibs=yes
 
8905
      ;;
 
8906
 
 
8907
    sunos4*)
 
8908
      if test "x$host_vendor" = xsequent; then
 
8909
        # Use $CC to link under sequent, because it throws in some extra .o
 
8910
        # files that make .init and .fini sections work.
 
8911
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8912
      else
 
8913
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8914
      fi
 
8915
      hardcode_libdir_flag_spec='-L$libdir'
 
8916
      hardcode_direct=yes
 
8917
      hardcode_minus_L=yes
 
8918
      hardcode_shlibpath_var=no
 
8919
      ;;
 
8920
 
 
8921
    sysv4)
 
8922
      case $host_vendor in
 
8923
        sni)
 
8924
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8925
          hardcode_direct=yes # is this really true???
 
8926
        ;;
 
8927
        siemens)
 
8928
          ## LD is ld it makes a PLAMLIB
 
8929
          ## CC just makes a GrossModule.
 
8930
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8931
          reload_cmds='$CC -r -o $output$reload_objs'
 
8932
          hardcode_direct=no
 
8933
        ;;
 
8934
        motorola)
 
8935
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8936
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8937
        ;;
 
8938
      esac
 
8939
      runpath_var='LD_RUN_PATH'
 
8940
      hardcode_shlibpath_var=no
 
8941
      ;;
 
8942
 
 
8943
    sysv4.3*)
 
8944
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8945
      hardcode_shlibpath_var=no
 
8946
      export_dynamic_flag_spec='-Bexport'
 
8947
      ;;
 
8948
 
 
8949
    sysv4*MP*)
 
8950
      if test -d /usr/nec; then
 
8951
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8952
        hardcode_shlibpath_var=no
 
8953
        runpath_var=LD_RUN_PATH
 
8954
        hardcode_runpath_var=yes
 
8955
        ld_shlibs=yes
 
8956
      fi
 
8957
      ;;
 
8958
 
 
8959
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8960
      no_undefined_flag='${wl}-z,text'
 
8961
      archive_cmds_need_lc=no
 
8962
      hardcode_shlibpath_var=no
 
8963
      runpath_var='LD_RUN_PATH'
 
8964
 
 
8965
      if test "$GCC" = yes; then
 
8966
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8967
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8968
      else
 
8969
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8970
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8971
      fi
 
8972
      ;;
 
8973
 
 
8974
    sysv5* | sco3.2v5* | sco5v6*)
 
8975
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8976
      # link with -lc, and that would cause any symbols used from libc to
 
8977
      # always be unresolved, which means just about no library would
 
8978
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8979
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8980
      # as -z defs.
 
8981
      no_undefined_flag='${wl}-z,text'
 
8982
      allow_undefined_flag='${wl}-z,nodefs'
 
8983
      archive_cmds_need_lc=no
 
8984
      hardcode_shlibpath_var=no
 
8985
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8986
      hardcode_libdir_separator=':'
 
8987
      link_all_deplibs=yes
 
8988
      export_dynamic_flag_spec='${wl}-Bexport'
 
8989
      runpath_var='LD_RUN_PATH'
 
8990
 
 
8991
      if test "$GCC" = yes; then
 
8992
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8993
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8994
      else
 
8995
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8996
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8997
      fi
 
8998
      ;;
 
8999
 
 
9000
    uts4*)
 
9001
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9002
      hardcode_libdir_flag_spec='-L$libdir'
 
9003
      hardcode_shlibpath_var=no
 
9004
      ;;
 
9005
 
 
9006
    *)
 
9007
      ld_shlibs=no
 
9008
      ;;
 
9009
    esac
 
9010
  fi
 
9011
 
 
9012
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9013
$as_echo "$ld_shlibs" >&6; }
 
9014
test "$ld_shlibs" = no && can_build_shared=no
 
9015
 
 
9016
#
 
9017
# Do we need to explicitly link libc?
 
9018
#
 
9019
case "x$archive_cmds_need_lc" in
 
9020
x|xyes)
 
9021
  # Assume -lc should be added
 
9022
  archive_cmds_need_lc=yes
 
9023
 
 
9024
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9025
    case $archive_cmds in
 
9026
    *'~'*)
 
9027
      # FIXME: we may have to deal with multi-command sequences.
 
9028
      ;;
 
9029
    '$CC '*)
 
9030
      # Test whether the compiler implicitly links with -lc since on some
 
9031
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9032
      # to ld, don't add -lc before -lgcc.
 
9033
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9034
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9035
      $rm conftest*
 
9036
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9037
 
 
9038
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9039
  (eval $ac_compile) 2>&5
 
9040
  ac_status=$?
 
9041
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9042
  (exit $ac_status); } 2>conftest.err; then
 
9043
        soname=conftest
 
9044
        lib=conftest
 
9045
        libobjs=conftest.$ac_objext
 
9046
        deplibs=
 
9047
        wl=$lt_prog_compiler_wl
 
9048
        pic_flag=$lt_prog_compiler_pic
 
9049
        compiler_flags=-v
 
9050
        linker_flags=-v
 
9051
        verstring=
 
9052
        output_objdir=.
 
9053
        libname=conftest
 
9054
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9055
        allow_undefined_flag=
 
9056
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9057
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9058
  ac_status=$?
 
9059
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9060
  (exit $ac_status); }
 
9061
        then
 
9062
          archive_cmds_need_lc=no
 
9063
        else
 
9064
          archive_cmds_need_lc=yes
 
9065
        fi
 
9066
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9067
      else
 
9068
        cat conftest.err 1>&5
 
9069
      fi
 
9070
      $rm conftest*
 
9071
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9072
$as_echo "$archive_cmds_need_lc" >&6; }
 
9073
      ;;
 
9074
    esac
 
9075
  fi
 
9076
  ;;
 
9077
esac
 
9078
 
 
9079
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9080
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9081
library_names_spec=
 
9082
libname_spec='lib$name'
 
9083
soname_spec=
 
9084
shrext_cmds=".so"
 
9085
postinstall_cmds=
 
9086
postuninstall_cmds=
 
9087
finish_cmds=
 
9088
finish_eval=
 
9089
shlibpath_var=
 
9090
shlibpath_overrides_runpath=unknown
 
9091
version_type=none
 
9092
dynamic_linker="$host_os ld.so"
 
9093
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9094
 
 
9095
if test "$GCC" = yes; then
 
9096
  case $host_os in
 
9097
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9098
    *) lt_awk_arg="/^libraries:/" ;;
 
9099
  esac
 
9100
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9101
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9102
    # if the path contains ";" then we assume it to be the separator
 
9103
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9104
    # assumed that no part of a normal pathname contains ";" but that should
 
9105
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9106
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9107
  else
 
9108
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9109
  fi
 
9110
  # Ok, now we have the path, separated by spaces, we can step through it
 
9111
  # and add multilib dir if necessary.
 
9112
  lt_tmp_lt_search_path_spec=
 
9113
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9114
  for lt_sys_path in $lt_search_path_spec; do
 
9115
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9116
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9117
    else
 
9118
      test -d "$lt_sys_path" && \
 
9119
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9120
    fi
 
9121
  done
 
9122
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9123
BEGIN {RS=" "; FS="/|\n";} {
 
9124
  lt_foo="";
 
9125
  lt_count=0;
 
9126
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9127
    if ($lt_i != "" && $lt_i != ".") {
 
9128
      if ($lt_i == "..") {
 
9129
        lt_count++;
 
9130
      } else {
 
9131
        if (lt_count == 0) {
 
9132
          lt_foo="/" $lt_i lt_foo;
 
9133
        } else {
 
9134
          lt_count--;
 
9135
        }
 
9136
      }
 
9137
    }
 
9138
  }
 
9139
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9140
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9141
}'`
 
9142
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9143
else
 
9144
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9145
fi
 
9146
need_lib_prefix=unknown
 
9147
hardcode_into_libs=no
 
9148
 
 
9149
# when you set need_version to no, make sure it does not cause -set_version
 
9150
# flags to be left without arguments
 
9151
need_version=unknown
 
9152
 
 
9153
case $host_os in
 
9154
aix3*)
 
9155
  version_type=linux
 
9156
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9157
  shlibpath_var=LIBPATH
 
9158
 
 
9159
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9160
  soname_spec='${libname}${release}${shared_ext}$major'
 
9161
  ;;
 
9162
 
 
9163
aix[4-9]*)
 
9164
  version_type=linux
 
9165
  need_lib_prefix=no
 
9166
  need_version=no
 
9167
  hardcode_into_libs=yes
 
9168
  if test "$host_cpu" = ia64; then
 
9169
    # AIX 5 supports IA64
 
9170
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9171
    shlibpath_var=LD_LIBRARY_PATH
 
9172
  else
 
9173
    # With GCC up to 2.95.x, collect2 would create an import file
 
9174
    # for dependence libraries.  The import file would start with
 
9175
    # the line `#! .'.  This would cause the generated library to
 
9176
    # depend on `.', always an invalid library.  This was fixed in
 
9177
    # development snapshots of GCC prior to 3.0.
 
9178
    case $host_os in
 
9179
      aix4 | aix4.[01] | aix4.[01].*)
 
9180
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9181
           echo ' yes '
 
9182
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9183
        :
 
9184
      else
 
9185
        can_build_shared=no
 
9186
      fi
 
9187
      ;;
 
9188
    esac
 
9189
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9190
    # soname into executable. Probably we can add versioning support to
 
9191
    # collect2, so additional links can be useful in future.
 
9192
    if test "$aix_use_runtimelinking" = yes; then
 
9193
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9194
      # instead of lib<name>.a to let people know that these are not
 
9195
      # typical AIX shared libraries.
 
9196
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9197
    else
 
9198
      # We preserve .a as extension for shared libraries through AIX4.2
 
9199
      # and later when we are not doing run time linking.
 
9200
      library_names_spec='${libname}${release}.a $libname.a'
 
9201
      soname_spec='${libname}${release}${shared_ext}$major'
 
9202
    fi
 
9203
    shlibpath_var=LIBPATH
 
9204
  fi
 
9205
  ;;
 
9206
 
 
9207
amigaos*)
 
9208
  library_names_spec='$libname.ixlibrary $libname.a'
 
9209
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9210
  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'
 
9211
  ;;
 
9212
 
 
9213
beos*)
 
9214
  library_names_spec='${libname}${shared_ext}'
 
9215
  dynamic_linker="$host_os ld.so"
 
9216
  shlibpath_var=LIBRARY_PATH
 
9217
  ;;
 
9218
 
 
9219
bsdi[45]*)
 
9220
  version_type=linux
 
9221
  need_version=no
 
9222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9223
  soname_spec='${libname}${release}${shared_ext}$major'
 
9224
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9225
  shlibpath_var=LD_LIBRARY_PATH
 
9226
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9227
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9228
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9229
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9230
  # libtool to hard-code these into programs
 
9231
  ;;
 
9232
 
 
9233
cygwin* | mingw* | pw32*)
 
9234
  version_type=windows
 
9235
  shrext_cmds=".dll"
 
9236
  need_version=no
 
9237
  need_lib_prefix=no
 
9238
 
 
9239
  case $GCC,$host_os in
 
9240
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9241
    library_names_spec='$libname.dll.a'
 
9242
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9243
    postinstall_cmds='base_file=`basename \${file}`~
 
9244
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9245
      dldir=$destdir/`dirname \$dlpath`~
 
9246
      test -d \$dldir || mkdir -p \$dldir~
 
9247
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9248
      chmod a+x \$dldir/$dlname'
 
9249
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9250
      dlpath=$dir/\$dldll~
 
9251
       $rm \$dlpath'
 
9252
    shlibpath_overrides_runpath=yes
 
9253
 
 
9254
    case $host_os in
 
9255
    cygwin*)
 
9256
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9257
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9258
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9259
      ;;
 
9260
    mingw*)
 
9261
      # MinGW DLLs use traditional 'lib' prefix
 
9262
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9263
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9264
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9265
        # It is most probably a Windows format PATH printed by
 
9266
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9267
        # path with ; separators, and with drive letters. We can handle the
 
9268
        # drive letters (cygwin fileutils understands them), so leave them,
 
9269
        # especially as we might pass files found there to a mingw objdump,
 
9270
        # which wouldn't understand a cygwinified path. Ahh.
 
9271
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9272
      else
 
9273
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9274
      fi
 
9275
      ;;
 
9276
    pw32*)
 
9277
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9278
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9279
      ;;
 
9280
    esac
 
9281
    ;;
 
9282
 
 
9283
  *)
 
9284
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9285
    ;;
 
9286
  esac
 
9287
  dynamic_linker='Win32 ld.exe'
 
9288
  # FIXME: first we should search . and the directory the executable is in
 
9289
  shlibpath_var=PATH
 
9290
  ;;
 
9291
 
 
9292
darwin* | rhapsody*)
 
9293
  dynamic_linker="$host_os dyld"
 
9294
  version_type=darwin
 
9295
  need_lib_prefix=no
 
9296
  need_version=no
 
9297
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9298
  soname_spec='${libname}${release}${major}$shared_ext'
 
9299
  shlibpath_overrides_runpath=yes
 
9300
  shlibpath_var=DYLD_LIBRARY_PATH
 
9301
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9302
 
 
9303
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9304
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9305
  ;;
 
9306
 
 
9307
dgux*)
 
9308
  version_type=linux
 
9309
  need_lib_prefix=no
 
9310
  need_version=no
 
9311
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9312
  soname_spec='${libname}${release}${shared_ext}$major'
 
9313
  shlibpath_var=LD_LIBRARY_PATH
 
9314
  ;;
 
9315
 
 
9316
freebsd1*)
 
9317
  dynamic_linker=no
 
9318
  ;;
 
9319
 
 
9320
freebsd* | dragonfly*)
 
9321
  # DragonFly does not have aout.  When/if they implement a new
 
9322
  # versioning mechanism, adjust this.
 
9323
  if test -x /usr/bin/objformat; then
 
9324
    objformat=`/usr/bin/objformat`
 
9325
  else
 
9326
    case $host_os in
 
9327
    freebsd[123]*) objformat=aout ;;
 
9328
    *) objformat=elf ;;
 
9329
    esac
 
9330
  fi
 
9331
  version_type=freebsd-$objformat
 
9332
  case $version_type in
 
9333
    freebsd-elf*)
 
9334
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9335
      need_version=no
 
9336
      need_lib_prefix=no
 
9337
      ;;
 
9338
    freebsd-*)
 
9339
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9340
      need_version=yes
 
9341
      ;;
 
9342
  esac
 
9343
  shlibpath_var=LD_LIBRARY_PATH
 
9344
  case $host_os in
 
9345
  freebsd2*)
 
9346
    shlibpath_overrides_runpath=yes
 
9347
    ;;
 
9348
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9349
    shlibpath_overrides_runpath=yes
 
9350
    hardcode_into_libs=yes
 
9351
    ;;
 
9352
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9353
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9354
    shlibpath_overrides_runpath=no
 
9355
    hardcode_into_libs=yes
 
9356
    ;;
 
9357
  *) # from 4.6 on, and DragonFly
 
9358
    shlibpath_overrides_runpath=yes
 
9359
    hardcode_into_libs=yes
 
9360
    ;;
 
9361
  esac
 
9362
  ;;
 
9363
 
 
9364
gnu*)
 
9365
  version_type=linux
 
9366
  need_lib_prefix=no
 
9367
  need_version=no
 
9368
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9369
  soname_spec='${libname}${release}${shared_ext}$major'
 
9370
  shlibpath_var=LD_LIBRARY_PATH
 
9371
  hardcode_into_libs=yes
 
9372
  ;;
 
9373
 
 
9374
hpux9* | hpux10* | hpux11*)
 
9375
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9376
  # link against other versions.
 
9377
  version_type=sunos
 
9378
  need_lib_prefix=no
 
9379
  need_version=no
 
9380
  case $host_cpu in
 
9381
  ia64*)
 
9382
    shrext_cmds='.so'
 
9383
    hardcode_into_libs=yes
 
9384
    dynamic_linker="$host_os dld.so"
 
9385
    shlibpath_var=LD_LIBRARY_PATH
 
9386
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9387
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9388
    soname_spec='${libname}${release}${shared_ext}$major'
 
9389
    if test "X$HPUX_IA64_MODE" = X32; then
 
9390
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9391
    else
 
9392
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9393
    fi
 
9394
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9395
    ;;
 
9396
   hppa*64*)
 
9397
     shrext_cmds='.sl'
 
9398
     hardcode_into_libs=yes
 
9399
     dynamic_linker="$host_os dld.sl"
 
9400
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9401
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9402
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9403
     soname_spec='${libname}${release}${shared_ext}$major'
 
9404
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9405
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9406
     ;;
 
9407
   *)
 
9408
    shrext_cmds='.sl'
 
9409
    dynamic_linker="$host_os dld.sl"
 
9410
    shlibpath_var=SHLIB_PATH
 
9411
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9412
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9413
    soname_spec='${libname}${release}${shared_ext}$major'
 
9414
    ;;
 
9415
  esac
 
9416
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9417
  postinstall_cmds='chmod 555 $lib'
 
9418
  ;;
 
9419
 
 
9420
interix[3-9]*)
 
9421
  version_type=linux
 
9422
  need_lib_prefix=no
 
9423
  need_version=no
 
9424
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9425
  soname_spec='${libname}${release}${shared_ext}$major'
 
9426
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9427
  shlibpath_var=LD_LIBRARY_PATH
 
9428
  shlibpath_overrides_runpath=no
 
9429
  hardcode_into_libs=yes
 
9430
  ;;
 
9431
 
 
9432
irix5* | irix6* | nonstopux*)
 
9433
  case $host_os in
 
9434
    nonstopux*) version_type=nonstopux ;;
 
9435
    *)
 
9436
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9437
                version_type=linux
 
9438
        else
 
9439
                version_type=irix
 
9440
        fi ;;
 
9441
  esac
 
9442
  need_lib_prefix=no
 
9443
  need_version=no
 
9444
  soname_spec='${libname}${release}${shared_ext}$major'
 
9445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9446
  case $host_os in
 
9447
  irix5* | nonstopux*)
 
9448
    libsuff= shlibsuff=
 
9449
    ;;
 
9450
  *)
 
9451
    case $LD in # libtool.m4 will add one of these switches to LD
 
9452
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9453
      libsuff= shlibsuff= libmagic=32-bit;;
 
9454
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9455
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9456
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9457
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9458
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9459
    esac
 
9460
    ;;
 
9461
  esac
 
9462
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9463
  shlibpath_overrides_runpath=no
 
9464
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9465
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9466
  hardcode_into_libs=yes
 
9467
  ;;
 
9468
 
 
9469
# No shared lib support for Linux oldld, aout, or coff.
 
9470
linux*oldld* | linux*aout* | linux*coff*)
 
9471
  dynamic_linker=no
 
9472
  ;;
 
9473
 
 
9474
# This must be Linux ELF.
 
9475
linux* | k*bsd*-gnu)
 
9476
  version_type=linux
 
9477
  need_lib_prefix=no
 
9478
  need_version=no
 
9479
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9480
  soname_spec='${libname}${release}${shared_ext}$major'
 
9481
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9482
  shlibpath_var=LD_LIBRARY_PATH
 
9483
  shlibpath_overrides_runpath=no
 
9484
  # This implies no fast_install, which is unacceptable.
 
9485
  # Some rework will be needed to allow for fast_install
 
9486
  # before this can be enabled.
 
9487
  hardcode_into_libs=yes
 
9488
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9489
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9490
 
 
9491
  # Append ld.so.conf contents to the search path
 
9492
  if test -f /etc/ld.so.conf; then
 
9493
    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' ' '`
 
9494
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9495
  fi
 
9496
 
 
9497
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9498
  # powerpc, because MkLinux only supported shared libraries with the
 
9499
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9500
  # most powerpc-linux boxes support dynamic linking these days and
 
9501
  # people can always --disable-shared, the test was removed, and we
 
9502
  # assume the GNU/Linux dynamic linker is in use.
 
9503
  dynamic_linker='GNU/Linux ld.so'
 
9504
  ;;
 
9505
 
 
9506
netbsd*)
 
9507
  version_type=sunos
 
9508
  need_lib_prefix=no
 
9509
  need_version=no
 
9510
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9511
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9512
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9513
    dynamic_linker='NetBSD (a.out) ld.so'
 
9514
  else
 
9515
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9516
    soname_spec='${libname}${release}${shared_ext}$major'
 
9517
    dynamic_linker='NetBSD ld.elf_so'
 
9518
  fi
 
9519
  shlibpath_var=LD_LIBRARY_PATH
 
9520
  shlibpath_overrides_runpath=yes
 
9521
  hardcode_into_libs=yes
 
9522
  ;;
 
9523
 
 
9524
newsos6)
 
9525
  version_type=linux
 
9526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9527
  shlibpath_var=LD_LIBRARY_PATH
 
9528
  shlibpath_overrides_runpath=yes
 
9529
  ;;
 
9530
 
 
9531
nto-qnx*)
 
9532
  version_type=linux
 
9533
  need_lib_prefix=no
 
9534
  need_version=no
 
9535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9536
  soname_spec='${libname}${release}${shared_ext}$major'
 
9537
  shlibpath_var=LD_LIBRARY_PATH
 
9538
  shlibpath_overrides_runpath=yes
 
9539
  ;;
 
9540
 
 
9541
openbsd*)
 
9542
  version_type=sunos
 
9543
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9544
  need_lib_prefix=no
 
9545
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9546
  case $host_os in
 
9547
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9548
    *)                         need_version=no  ;;
 
9549
  esac
 
9550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9551
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9552
  shlibpath_var=LD_LIBRARY_PATH
 
9553
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9554
    case $host_os in
 
9555
      openbsd2.[89] | openbsd2.[89].*)
 
9556
        shlibpath_overrides_runpath=no
 
9557
        ;;
 
9558
      *)
 
9559
        shlibpath_overrides_runpath=yes
 
9560
        ;;
 
9561
      esac
 
9562
  else
 
9563
    shlibpath_overrides_runpath=yes
 
9564
  fi
 
9565
  ;;
 
9566
 
 
9567
os2*)
 
9568
  libname_spec='$name'
 
9569
  shrext_cmds=".dll"
 
9570
  need_lib_prefix=no
 
9571
  library_names_spec='$libname${shared_ext} $libname.a'
 
9572
  dynamic_linker='OS/2 ld.exe'
 
9573
  shlibpath_var=LIBPATH
 
9574
  ;;
 
9575
 
 
9576
osf3* | osf4* | osf5*)
 
9577
  version_type=osf
 
9578
  need_lib_prefix=no
 
9579
  need_version=no
 
9580
  soname_spec='${libname}${release}${shared_ext}$major'
 
9581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9582
  shlibpath_var=LD_LIBRARY_PATH
 
9583
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9584
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9585
  ;;
 
9586
 
 
9587
rdos*)
 
9588
  dynamic_linker=no
 
9589
  ;;
 
9590
 
 
9591
solaris*)
 
9592
  version_type=linux
 
9593
  need_lib_prefix=no
 
9594
  need_version=no
 
9595
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9596
  soname_spec='${libname}${release}${shared_ext}$major'
 
9597
  shlibpath_var=LD_LIBRARY_PATH
 
9598
  shlibpath_overrides_runpath=yes
 
9599
  hardcode_into_libs=yes
 
9600
  # ldd complains unless libraries are executable
 
9601
  postinstall_cmds='chmod +x $lib'
 
9602
  ;;
 
9603
 
 
9604
sunos4*)
 
9605
  version_type=sunos
 
9606
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9607
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9608
  shlibpath_var=LD_LIBRARY_PATH
 
9609
  shlibpath_overrides_runpath=yes
 
9610
  if test "$with_gnu_ld" = yes; then
 
9611
    need_lib_prefix=no
 
9612
  fi
 
9613
  need_version=yes
 
9614
  ;;
 
9615
 
 
9616
sysv4 | sysv4.3*)
 
9617
  version_type=linux
 
9618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9619
  soname_spec='${libname}${release}${shared_ext}$major'
 
9620
  shlibpath_var=LD_LIBRARY_PATH
 
9621
  case $host_vendor in
 
9622
    sni)
 
9623
      shlibpath_overrides_runpath=no
 
9624
      need_lib_prefix=no
 
9625
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9626
      runpath_var=LD_RUN_PATH
 
9627
      ;;
 
9628
    siemens)
 
9629
      need_lib_prefix=no
 
9630
      ;;
 
9631
    motorola)
 
9632
      need_lib_prefix=no
 
9633
      need_version=no
 
9634
      shlibpath_overrides_runpath=no
 
9635
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9636
      ;;
 
9637
  esac
 
9638
  ;;
 
9639
 
 
9640
sysv4*MP*)
 
9641
  if test -d /usr/nec ;then
 
9642
    version_type=linux
 
9643
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9644
    soname_spec='$libname${shared_ext}.$major'
 
9645
    shlibpath_var=LD_LIBRARY_PATH
 
9646
  fi
 
9647
  ;;
 
9648
 
 
9649
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9650
  version_type=freebsd-elf
 
9651
  need_lib_prefix=no
 
9652
  need_version=no
 
9653
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9654
  soname_spec='${libname}${release}${shared_ext}$major'
 
9655
  shlibpath_var=LD_LIBRARY_PATH
 
9656
  hardcode_into_libs=yes
 
9657
  if test "$with_gnu_ld" = yes; then
 
9658
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9659
    shlibpath_overrides_runpath=no
 
9660
  else
 
9661
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9662
    shlibpath_overrides_runpath=yes
 
9663
    case $host_os in
 
9664
      sco3.2v5*)
 
9665
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9666
        ;;
 
9667
    esac
 
9668
  fi
 
9669
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9670
  ;;
 
9671
 
 
9672
uts4*)
 
9673
  version_type=linux
 
9674
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9675
  soname_spec='${libname}${release}${shared_ext}$major'
 
9676
  shlibpath_var=LD_LIBRARY_PATH
 
9677
  ;;
 
9678
 
 
9679
*)
 
9680
  dynamic_linker=no
 
9681
  ;;
 
9682
esac
 
9683
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9684
$as_echo "$dynamic_linker" >&6; }
 
9685
test "$dynamic_linker" = no && can_build_shared=no
 
9686
 
 
9687
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9688
  $as_echo_n "(cached) " >&6
 
9689
else
 
9690
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9691
fi
 
9692
 
 
9693
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9694
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9695
  $as_echo_n "(cached) " >&6
 
9696
else
 
9697
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9698
fi
 
9699
 
 
9700
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9701
 
 
9702
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9703
if test "$GCC" = yes; then
 
9704
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9705
fi
 
9706
 
 
9707
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9708
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9709
hardcode_action=
 
9710
if test -n "$hardcode_libdir_flag_spec" || \
 
9711
   test -n "$runpath_var" || \
 
9712
   test "X$hardcode_automatic" = "Xyes" ; then
 
9713
 
 
9714
  # We can hardcode non-existant directories.
 
9715
  if test "$hardcode_direct" != no &&
 
9716
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9717
     # have to relink, otherwise we might link with an installed library
 
9718
     # when we should be linking with a yet-to-be-installed one
 
9719
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9720
     test "$hardcode_minus_L" != no; then
 
9721
    # Linking always hardcodes the temporary library directory.
 
9722
    hardcode_action=relink
 
9723
  else
 
9724
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9725
    hardcode_action=immediate
 
9726
  fi
 
9727
else
 
9728
  # We cannot hardcode anything, or else we can only hardcode existing
 
9729
  # directories.
 
9730
  hardcode_action=unsupported
 
9731
fi
 
9732
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9733
$as_echo "$hardcode_action" >&6; }
 
9734
 
 
9735
if test "$hardcode_action" = relink; then
 
9736
  # Fast installation is not supported
 
9737
  enable_fast_install=no
 
9738
elif test "$shlibpath_overrides_runpath" = yes ||
 
9739
     test "$enable_shared" = no; then
 
9740
  # Fast installation is not necessary
 
9741
  enable_fast_install=needless
 
9742
fi
 
9743
 
 
9744
striplib=
 
9745
old_striplib=
 
9746
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9747
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
9748
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9749
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9750
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9751
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9752
$as_echo "yes" >&6; }
 
9753
else
 
9754
# FIXME - insert some real tests, host_os isn't really good enough
 
9755
  case $host_os in
 
9756
   darwin*)
 
9757
       if test -n "$STRIP" ; then
 
9758
         striplib="$STRIP -x"
 
9759
         old_striplib="$STRIP -S"
 
9760
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9761
$as_echo "yes" >&6; }
 
9762
       else
 
9763
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9764
$as_echo "no" >&6; }
 
9765
fi
 
9766
       ;;
 
9767
   *)
 
9768
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9769
$as_echo "no" >&6; }
 
9770
    ;;
 
9771
  esac
 
9772
fi
 
9773
 
 
9774
if test "x$enable_dlopen" != xyes; then
 
9775
  enable_dlopen=unknown
 
9776
  enable_dlopen_self=unknown
 
9777
  enable_dlopen_self_static=unknown
 
9778
else
 
9779
  lt_cv_dlopen=no
 
9780
  lt_cv_dlopen_libs=
 
9781
 
 
9782
  case $host_os in
 
9783
  beos*)
 
9784
    lt_cv_dlopen="load_add_on"
 
9785
    lt_cv_dlopen_libs=
 
9786
    lt_cv_dlopen_self=yes
 
9787
    ;;
 
9788
 
 
9789
  mingw* | pw32*)
 
9790
    lt_cv_dlopen="LoadLibrary"
 
9791
    lt_cv_dlopen_libs=
 
9792
   ;;
 
9793
 
 
9794
  cygwin*)
 
9795
    lt_cv_dlopen="dlopen"
 
9796
    lt_cv_dlopen_libs=
 
9797
   ;;
 
9798
 
 
9799
  darwin*)
 
9800
  # if libdl is installed we need to link against it
 
9801
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9802
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9804
  $as_echo_n "(cached) " >&6
 
9805
else
 
9806
  ac_check_lib_save_LIBS=$LIBS
 
9807
LIBS="-ldl  $LIBS"
 
9808
cat >conftest.$ac_ext <<_ACEOF
 
9809
/* confdefs.h.  */
 
9810
_ACEOF
 
9811
cat confdefs.h >>conftest.$ac_ext
 
9812
cat >>conftest.$ac_ext <<_ACEOF
 
9813
/* end confdefs.h.  */
 
9814
 
 
9815
/* Override any GCC internal prototype to avoid an error.
 
9816
   Use char because int might match the return type of a GCC
 
9817
   builtin and then its argument prototype would still apply.  */
 
9818
#ifdef __cplusplus
 
9819
extern "C"
 
9820
#endif
 
9821
char dlopen ();
 
9822
int
 
9823
main ()
 
9824
{
 
9825
return dlopen ();
 
9826
  ;
 
9827
  return 0;
 
9828
}
 
9829
_ACEOF
 
9830
rm -f conftest.$ac_objext conftest$ac_exeext
 
9831
if { (ac_try="$ac_link"
 
9832
case "(($ac_try" in
 
9833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9834
  *) ac_try_echo=$ac_try;;
 
9835
esac
 
9836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9837
$as_echo "$ac_try_echo") >&5
 
9838
  (eval "$ac_link") 2>conftest.er1
 
9839
  ac_status=$?
 
9840
  grep -v '^ *+' conftest.er1 >conftest.err
 
9841
  rm -f conftest.er1
 
9842
  cat conftest.err >&5
 
9843
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9844
  (exit $ac_status); } && {
 
9845
         test -z "$ac_c_werror_flag" ||
 
9846
         test ! -s conftest.err
 
9847
       } && test -s conftest$ac_exeext && {
 
9848
         test "$cross_compiling" = yes ||
 
9849
         $as_test_x conftest$ac_exeext
 
9850
       }; then
 
9851
  ac_cv_lib_dl_dlopen=yes
 
9852
else
 
9853
  $as_echo "$as_me: failed program was:" >&5
 
9854
sed 's/^/| /' conftest.$ac_ext >&5
 
9855
 
 
9856
        ac_cv_lib_dl_dlopen=no
 
9857
fi
 
9858
 
 
9859
rm -rf conftest.dSYM
 
9860
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9861
      conftest$ac_exeext conftest.$ac_ext
 
9862
LIBS=$ac_check_lib_save_LIBS
 
9863
fi
 
9864
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9865
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9866
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9867
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9868
else
 
9869
 
 
9870
    lt_cv_dlopen="dyld"
 
9871
    lt_cv_dlopen_libs=
 
9872
    lt_cv_dlopen_self=yes
 
9873
 
 
9874
fi
 
9875
 
 
9876
   ;;
 
9877
 
 
9878
  *)
 
9879
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
9880
$as_echo_n "checking for shl_load... " >&6; }
 
9881
if test "${ac_cv_func_shl_load+set}" = set; then
 
9882
  $as_echo_n "(cached) " >&6
 
9883
else
 
9884
  cat >conftest.$ac_ext <<_ACEOF
 
9885
/* confdefs.h.  */
 
9886
_ACEOF
 
9887
cat confdefs.h >>conftest.$ac_ext
 
9888
cat >>conftest.$ac_ext <<_ACEOF
 
9889
/* end confdefs.h.  */
 
9890
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9891
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9892
#define shl_load innocuous_shl_load
 
9893
 
 
9894
/* System header to define __stub macros and hopefully few prototypes,
 
9895
    which can conflict with char shl_load (); below.
 
9896
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9897
    <limits.h> exists even on freestanding compilers.  */
 
9898
 
 
9899
#ifdef __STDC__
 
9900
# include <limits.h>
 
9901
#else
 
9902
# include <assert.h>
 
9903
#endif
 
9904
 
 
9905
#undef shl_load
 
9906
 
 
9907
/* Override any GCC internal prototype to avoid an error.
 
9908
   Use char because int might match the return type of a GCC
 
9909
   builtin and then its argument prototype would still apply.  */
 
9910
#ifdef __cplusplus
 
9911
extern "C"
 
9912
#endif
 
9913
char shl_load ();
 
9914
/* The GNU C library defines this for functions which it implements
 
9915
    to always fail with ENOSYS.  Some functions are actually named
 
9916
    something starting with __ and the normal name is an alias.  */
 
9917
#if defined __stub_shl_load || defined __stub___shl_load
 
9918
choke me
 
9919
#endif
 
9920
 
 
9921
int
 
9922
main ()
 
9923
{
 
9924
return shl_load ();
 
9925
  ;
 
9926
  return 0;
 
9927
}
 
9928
_ACEOF
 
9929
rm -f conftest.$ac_objext conftest$ac_exeext
 
9930
if { (ac_try="$ac_link"
 
9931
case "(($ac_try" in
 
9932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9933
  *) ac_try_echo=$ac_try;;
 
9934
esac
 
9935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9936
$as_echo "$ac_try_echo") >&5
 
9937
  (eval "$ac_link") 2>conftest.er1
 
9938
  ac_status=$?
 
9939
  grep -v '^ *+' conftest.er1 >conftest.err
 
9940
  rm -f conftest.er1
 
9941
  cat conftest.err >&5
 
9942
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9943
  (exit $ac_status); } && {
 
9944
         test -z "$ac_c_werror_flag" ||
 
9945
         test ! -s conftest.err
 
9946
       } && test -s conftest$ac_exeext && {
 
9947
         test "$cross_compiling" = yes ||
 
9948
         $as_test_x conftest$ac_exeext
 
9949
       }; then
 
9950
  ac_cv_func_shl_load=yes
 
9951
else
 
9952
  $as_echo "$as_me: failed program was:" >&5
 
9953
sed 's/^/| /' conftest.$ac_ext >&5
 
9954
 
 
9955
        ac_cv_func_shl_load=no
 
9956
fi
 
9957
 
 
9958
rm -rf conftest.dSYM
 
9959
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9960
      conftest$ac_exeext conftest.$ac_ext
 
9961
fi
 
9962
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9963
$as_echo "$ac_cv_func_shl_load" >&6; }
 
9964
if test "x$ac_cv_func_shl_load" = x""yes; then
 
9965
  lt_cv_dlopen="shl_load"
 
9966
else
 
9967
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9968
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
9969
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9970
  $as_echo_n "(cached) " >&6
 
9971
else
 
9972
  ac_check_lib_save_LIBS=$LIBS
 
9973
LIBS="-ldld  $LIBS"
 
9974
cat >conftest.$ac_ext <<_ACEOF
 
9975
/* confdefs.h.  */
 
9976
_ACEOF
 
9977
cat confdefs.h >>conftest.$ac_ext
 
9978
cat >>conftest.$ac_ext <<_ACEOF
 
9979
/* end confdefs.h.  */
 
9980
 
 
9981
/* Override any GCC internal prototype to avoid an error.
 
9982
   Use char because int might match the return type of a GCC
 
9983
   builtin and then its argument prototype would still apply.  */
 
9984
#ifdef __cplusplus
 
9985
extern "C"
 
9986
#endif
 
9987
char shl_load ();
 
9988
int
 
9989
main ()
 
9990
{
 
9991
return shl_load ();
 
9992
  ;
 
9993
  return 0;
 
9994
}
 
9995
_ACEOF
 
9996
rm -f conftest.$ac_objext conftest$ac_exeext
 
9997
if { (ac_try="$ac_link"
 
9998
case "(($ac_try" in
 
9999
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10000
  *) ac_try_echo=$ac_try;;
 
10001
esac
 
10002
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10003
$as_echo "$ac_try_echo") >&5
 
10004
  (eval "$ac_link") 2>conftest.er1
 
10005
  ac_status=$?
 
10006
  grep -v '^ *+' conftest.er1 >conftest.err
 
10007
  rm -f conftest.er1
 
10008
  cat conftest.err >&5
 
10009
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10010
  (exit $ac_status); } && {
 
10011
         test -z "$ac_c_werror_flag" ||
 
10012
         test ! -s conftest.err
 
10013
       } && test -s conftest$ac_exeext && {
 
10014
         test "$cross_compiling" = yes ||
 
10015
         $as_test_x conftest$ac_exeext
 
10016
       }; then
 
10017
  ac_cv_lib_dld_shl_load=yes
 
10018
else
 
10019
  $as_echo "$as_me: failed program was:" >&5
 
10020
sed 's/^/| /' conftest.$ac_ext >&5
 
10021
 
 
10022
        ac_cv_lib_dld_shl_load=no
 
10023
fi
 
10024
 
 
10025
rm -rf conftest.dSYM
 
10026
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10027
      conftest$ac_exeext conftest.$ac_ext
 
10028
LIBS=$ac_check_lib_save_LIBS
 
10029
fi
 
10030
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10031
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10032
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10033
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10034
else
 
10035
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10036
$as_echo_n "checking for dlopen... " >&6; }
 
10037
if test "${ac_cv_func_dlopen+set}" = set; then
 
10038
  $as_echo_n "(cached) " >&6
 
10039
else
 
10040
  cat >conftest.$ac_ext <<_ACEOF
 
10041
/* confdefs.h.  */
 
10042
_ACEOF
 
10043
cat confdefs.h >>conftest.$ac_ext
 
10044
cat >>conftest.$ac_ext <<_ACEOF
 
10045
/* end confdefs.h.  */
 
10046
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10047
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10048
#define dlopen innocuous_dlopen
 
10049
 
 
10050
/* System header to define __stub macros and hopefully few prototypes,
 
10051
    which can conflict with char dlopen (); below.
 
10052
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10053
    <limits.h> exists even on freestanding compilers.  */
 
10054
 
 
10055
#ifdef __STDC__
 
10056
# include <limits.h>
 
10057
#else
 
10058
# include <assert.h>
 
10059
#endif
 
10060
 
 
10061
#undef dlopen
 
10062
 
 
10063
/* Override any GCC internal prototype to avoid an error.
 
10064
   Use char because int might match the return type of a GCC
 
10065
   builtin and then its argument prototype would still apply.  */
 
10066
#ifdef __cplusplus
 
10067
extern "C"
 
10068
#endif
 
10069
char dlopen ();
 
10070
/* The GNU C library defines this for functions which it implements
 
10071
    to always fail with ENOSYS.  Some functions are actually named
 
10072
    something starting with __ and the normal name is an alias.  */
 
10073
#if defined __stub_dlopen || defined __stub___dlopen
 
10074
choke me
 
10075
#endif
 
10076
 
 
10077
int
 
10078
main ()
 
10079
{
 
10080
return dlopen ();
 
10081
  ;
 
10082
  return 0;
 
10083
}
 
10084
_ACEOF
 
10085
rm -f conftest.$ac_objext conftest$ac_exeext
 
10086
if { (ac_try="$ac_link"
 
10087
case "(($ac_try" in
 
10088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10089
  *) ac_try_echo=$ac_try;;
 
10090
esac
 
10091
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10092
$as_echo "$ac_try_echo") >&5
 
10093
  (eval "$ac_link") 2>conftest.er1
 
10094
  ac_status=$?
 
10095
  grep -v '^ *+' conftest.er1 >conftest.err
 
10096
  rm -f conftest.er1
 
10097
  cat conftest.err >&5
 
10098
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10099
  (exit $ac_status); } && {
 
10100
         test -z "$ac_c_werror_flag" ||
 
10101
         test ! -s conftest.err
 
10102
       } && test -s conftest$ac_exeext && {
 
10103
         test "$cross_compiling" = yes ||
 
10104
         $as_test_x conftest$ac_exeext
 
10105
       }; then
 
10106
  ac_cv_func_dlopen=yes
 
10107
else
 
10108
  $as_echo "$as_me: failed program was:" >&5
 
10109
sed 's/^/| /' conftest.$ac_ext >&5
 
10110
 
 
10111
        ac_cv_func_dlopen=no
 
10112
fi
 
10113
 
 
10114
rm -rf conftest.dSYM
 
10115
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10116
      conftest$ac_exeext conftest.$ac_ext
 
10117
fi
 
10118
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10119
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10120
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10121
  lt_cv_dlopen="dlopen"
 
10122
else
 
10123
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10124
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10125
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10126
  $as_echo_n "(cached) " >&6
 
10127
else
 
10128
  ac_check_lib_save_LIBS=$LIBS
 
10129
LIBS="-ldl  $LIBS"
 
10130
cat >conftest.$ac_ext <<_ACEOF
 
10131
/* confdefs.h.  */
 
10132
_ACEOF
 
10133
cat confdefs.h >>conftest.$ac_ext
 
10134
cat >>conftest.$ac_ext <<_ACEOF
 
10135
/* end confdefs.h.  */
 
10136
 
 
10137
/* Override any GCC internal prototype to avoid an error.
 
10138
   Use char because int might match the return type of a GCC
 
10139
   builtin and then its argument prototype would still apply.  */
 
10140
#ifdef __cplusplus
 
10141
extern "C"
 
10142
#endif
 
10143
char dlopen ();
 
10144
int
 
10145
main ()
 
10146
{
 
10147
return dlopen ();
 
10148
  ;
 
10149
  return 0;
 
10150
}
 
10151
_ACEOF
 
10152
rm -f conftest.$ac_objext conftest$ac_exeext
 
10153
if { (ac_try="$ac_link"
 
10154
case "(($ac_try" in
 
10155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10156
  *) ac_try_echo=$ac_try;;
 
10157
esac
 
10158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10159
$as_echo "$ac_try_echo") >&5
 
10160
  (eval "$ac_link") 2>conftest.er1
 
10161
  ac_status=$?
 
10162
  grep -v '^ *+' conftest.er1 >conftest.err
 
10163
  rm -f conftest.er1
 
10164
  cat conftest.err >&5
 
10165
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10166
  (exit $ac_status); } && {
 
10167
         test -z "$ac_c_werror_flag" ||
 
10168
         test ! -s conftest.err
 
10169
       } && test -s conftest$ac_exeext && {
 
10170
         test "$cross_compiling" = yes ||
 
10171
         $as_test_x conftest$ac_exeext
 
10172
       }; then
 
10173
  ac_cv_lib_dl_dlopen=yes
 
10174
else
 
10175
  $as_echo "$as_me: failed program was:" >&5
 
10176
sed 's/^/| /' conftest.$ac_ext >&5
 
10177
 
 
10178
        ac_cv_lib_dl_dlopen=no
 
10179
fi
 
10180
 
 
10181
rm -rf conftest.dSYM
 
10182
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10183
      conftest$ac_exeext conftest.$ac_ext
 
10184
LIBS=$ac_check_lib_save_LIBS
 
10185
fi
 
10186
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10187
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10188
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10189
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10190
else
 
10191
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10192
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10193
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10194
  $as_echo_n "(cached) " >&6
 
10195
else
 
10196
  ac_check_lib_save_LIBS=$LIBS
 
10197
LIBS="-lsvld  $LIBS"
 
10198
cat >conftest.$ac_ext <<_ACEOF
 
10199
/* confdefs.h.  */
 
10200
_ACEOF
 
10201
cat confdefs.h >>conftest.$ac_ext
 
10202
cat >>conftest.$ac_ext <<_ACEOF
 
10203
/* end confdefs.h.  */
 
10204
 
 
10205
/* Override any GCC internal prototype to avoid an error.
 
10206
   Use char because int might match the return type of a GCC
 
10207
   builtin and then its argument prototype would still apply.  */
 
10208
#ifdef __cplusplus
 
10209
extern "C"
 
10210
#endif
 
10211
char dlopen ();
 
10212
int
 
10213
main ()
 
10214
{
 
10215
return dlopen ();
 
10216
  ;
 
10217
  return 0;
 
10218
}
 
10219
_ACEOF
 
10220
rm -f conftest.$ac_objext conftest$ac_exeext
 
10221
if { (ac_try="$ac_link"
 
10222
case "(($ac_try" in
 
10223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10224
  *) ac_try_echo=$ac_try;;
 
10225
esac
 
10226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10227
$as_echo "$ac_try_echo") >&5
 
10228
  (eval "$ac_link") 2>conftest.er1
 
10229
  ac_status=$?
 
10230
  grep -v '^ *+' conftest.er1 >conftest.err
 
10231
  rm -f conftest.er1
 
10232
  cat conftest.err >&5
 
10233
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10234
  (exit $ac_status); } && {
 
10235
         test -z "$ac_c_werror_flag" ||
 
10236
         test ! -s conftest.err
 
10237
       } && test -s conftest$ac_exeext && {
 
10238
         test "$cross_compiling" = yes ||
 
10239
         $as_test_x conftest$ac_exeext
 
10240
       }; then
 
10241
  ac_cv_lib_svld_dlopen=yes
 
10242
else
 
10243
  $as_echo "$as_me: failed program was:" >&5
 
10244
sed 's/^/| /' conftest.$ac_ext >&5
 
10245
 
 
10246
        ac_cv_lib_svld_dlopen=no
 
10247
fi
 
10248
 
 
10249
rm -rf conftest.dSYM
 
10250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10251
      conftest$ac_exeext conftest.$ac_ext
 
10252
LIBS=$ac_check_lib_save_LIBS
 
10253
fi
 
10254
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10255
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10256
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10257
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10258
else
 
10259
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10260
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10261
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10262
  $as_echo_n "(cached) " >&6
 
10263
else
 
10264
  ac_check_lib_save_LIBS=$LIBS
 
10265
LIBS="-ldld  $LIBS"
 
10266
cat >conftest.$ac_ext <<_ACEOF
 
10267
/* confdefs.h.  */
 
10268
_ACEOF
 
10269
cat confdefs.h >>conftest.$ac_ext
 
10270
cat >>conftest.$ac_ext <<_ACEOF
 
10271
/* end confdefs.h.  */
 
10272
 
 
10273
/* Override any GCC internal prototype to avoid an error.
 
10274
   Use char because int might match the return type of a GCC
 
10275
   builtin and then its argument prototype would still apply.  */
 
10276
#ifdef __cplusplus
 
10277
extern "C"
 
10278
#endif
 
10279
char dld_link ();
 
10280
int
 
10281
main ()
 
10282
{
 
10283
return dld_link ();
 
10284
  ;
 
10285
  return 0;
 
10286
}
 
10287
_ACEOF
 
10288
rm -f conftest.$ac_objext conftest$ac_exeext
 
10289
if { (ac_try="$ac_link"
 
10290
case "(($ac_try" in
 
10291
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10292
  *) ac_try_echo=$ac_try;;
 
10293
esac
 
10294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10295
$as_echo "$ac_try_echo") >&5
 
10296
  (eval "$ac_link") 2>conftest.er1
 
10297
  ac_status=$?
 
10298
  grep -v '^ *+' conftest.er1 >conftest.err
 
10299
  rm -f conftest.er1
 
10300
  cat conftest.err >&5
 
10301
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10302
  (exit $ac_status); } && {
 
10303
         test -z "$ac_c_werror_flag" ||
 
10304
         test ! -s conftest.err
 
10305
       } && test -s conftest$ac_exeext && {
 
10306
         test "$cross_compiling" = yes ||
 
10307
         $as_test_x conftest$ac_exeext
 
10308
       }; then
 
10309
  ac_cv_lib_dld_dld_link=yes
 
10310
else
 
10311
  $as_echo "$as_me: failed program was:" >&5
 
10312
sed 's/^/| /' conftest.$ac_ext >&5
 
10313
 
 
10314
        ac_cv_lib_dld_dld_link=no
 
10315
fi
 
10316
 
 
10317
rm -rf conftest.dSYM
 
10318
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10319
      conftest$ac_exeext conftest.$ac_ext
 
10320
LIBS=$ac_check_lib_save_LIBS
 
10321
fi
 
10322
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10323
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10324
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10325
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10326
fi
 
10327
 
 
10328
 
 
10329
fi
 
10330
 
 
10331
 
 
10332
fi
 
10333
 
 
10334
 
 
10335
fi
 
10336
 
 
10337
 
 
10338
fi
 
10339
 
 
10340
 
 
10341
fi
 
10342
 
 
10343
    ;;
 
10344
  esac
 
10345
 
 
10346
  if test "x$lt_cv_dlopen" != xno; then
 
10347
    enable_dlopen=yes
 
10348
  else
 
10349
    enable_dlopen=no
 
10350
  fi
 
10351
 
 
10352
  case $lt_cv_dlopen in
 
10353
  dlopen)
 
10354
    save_CPPFLAGS="$CPPFLAGS"
 
10355
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10356
 
 
10357
    save_LDFLAGS="$LDFLAGS"
 
10358
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10359
 
 
10360
    save_LIBS="$LIBS"
 
10361
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10362
 
 
10363
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10364
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10365
if test "${lt_cv_dlopen_self+set}" = set; then
 
10366
  $as_echo_n "(cached) " >&6
 
10367
else
 
10368
          if test "$cross_compiling" = yes; then :
 
10369
  lt_cv_dlopen_self=cross
 
10370
else
 
10371
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10372
  lt_status=$lt_dlunknown
 
10373
  cat > conftest.$ac_ext <<EOF
 
10374
#line 10374 "configure"
 
10375
#include "confdefs.h"
 
10376
 
 
10377
#if HAVE_DLFCN_H
 
10378
#include <dlfcn.h>
 
10379
#endif
 
10380
 
 
10381
#include <stdio.h>
 
10382
 
 
10383
#ifdef RTLD_GLOBAL
 
10384
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10385
#else
 
10386
#  ifdef DL_GLOBAL
 
10387
#    define LT_DLGLOBAL         DL_GLOBAL
 
10388
#  else
 
10389
#    define LT_DLGLOBAL         0
 
10390
#  endif
 
10391
#endif
 
10392
 
 
10393
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10394
   find out it does not work in some platform. */
 
10395
#ifndef LT_DLLAZY_OR_NOW
 
10396
#  ifdef RTLD_LAZY
 
10397
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10398
#  else
 
10399
#    ifdef DL_LAZY
 
10400
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10401
#    else
 
10402
#      ifdef RTLD_NOW
 
10403
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10404
#      else
 
10405
#        ifdef DL_NOW
 
10406
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10407
#        else
 
10408
#          define LT_DLLAZY_OR_NOW      0
 
10409
#        endif
 
10410
#      endif
 
10411
#    endif
 
10412
#  endif
 
10413
#endif
 
10414
 
 
10415
#ifdef __cplusplus
 
10416
extern "C" void exit (int);
 
10417
#endif
 
10418
 
 
10419
void fnord() { int i=42;}
 
10420
int main ()
 
10421
{
 
10422
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10423
  int status = $lt_dlunknown;
 
10424
 
 
10425
  if (self)
 
10426
    {
 
10427
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10428
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10429
      /* dlclose (self); */
 
10430
    }
 
10431
  else
 
10432
    puts (dlerror ());
 
10433
 
 
10434
    exit (status);
 
10435
}
 
10436
EOF
 
10437
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10438
  (eval $ac_link) 2>&5
 
10439
  ac_status=$?
 
10440
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10441
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10442
    (./conftest; exit; ) >&5 2>/dev/null
 
10443
    lt_status=$?
 
10444
    case x$lt_status in
 
10445
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10446
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10447
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10448
    esac
 
10449
  else :
 
10450
    # compilation failed
 
10451
    lt_cv_dlopen_self=no
 
10452
  fi
 
10453
fi
 
10454
rm -fr conftest*
 
10455
 
 
10456
 
 
10457
fi
 
10458
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10459
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10460
 
 
10461
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10462
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10463
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10464
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10465
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10466
  $as_echo_n "(cached) " >&6
 
10467
else
 
10468
          if test "$cross_compiling" = yes; then :
 
10469
  lt_cv_dlopen_self_static=cross
 
10470
else
 
10471
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10472
  lt_status=$lt_dlunknown
 
10473
  cat > conftest.$ac_ext <<EOF
 
10474
#line 10474 "configure"
 
10475
#include "confdefs.h"
 
10476
 
 
10477
#if HAVE_DLFCN_H
 
10478
#include <dlfcn.h>
 
10479
#endif
 
10480
 
 
10481
#include <stdio.h>
 
10482
 
 
10483
#ifdef RTLD_GLOBAL
 
10484
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10485
#else
 
10486
#  ifdef DL_GLOBAL
 
10487
#    define LT_DLGLOBAL         DL_GLOBAL
 
10488
#  else
 
10489
#    define LT_DLGLOBAL         0
 
10490
#  endif
 
10491
#endif
 
10492
 
 
10493
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10494
   find out it does not work in some platform. */
 
10495
#ifndef LT_DLLAZY_OR_NOW
 
10496
#  ifdef RTLD_LAZY
 
10497
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10498
#  else
 
10499
#    ifdef DL_LAZY
 
10500
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10501
#    else
 
10502
#      ifdef RTLD_NOW
 
10503
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10504
#      else
 
10505
#        ifdef DL_NOW
 
10506
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10507
#        else
 
10508
#          define LT_DLLAZY_OR_NOW      0
 
10509
#        endif
 
10510
#      endif
 
10511
#    endif
 
10512
#  endif
 
10513
#endif
 
10514
 
 
10515
#ifdef __cplusplus
 
10516
extern "C" void exit (int);
 
10517
#endif
 
10518
 
 
10519
void fnord() { int i=42;}
 
10520
int main ()
 
10521
{
 
10522
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10523
  int status = $lt_dlunknown;
 
10524
 
 
10525
  if (self)
 
10526
    {
 
10527
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10528
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10529
      /* dlclose (self); */
 
10530
    }
 
10531
  else
 
10532
    puts (dlerror ());
 
10533
 
 
10534
    exit (status);
 
10535
}
 
10536
EOF
 
10537
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10538
  (eval $ac_link) 2>&5
 
10539
  ac_status=$?
 
10540
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10541
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10542
    (./conftest; exit; ) >&5 2>/dev/null
 
10543
    lt_status=$?
 
10544
    case x$lt_status in
 
10545
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10546
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10547
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10548
    esac
 
10549
  else :
 
10550
    # compilation failed
 
10551
    lt_cv_dlopen_self_static=no
 
10552
  fi
 
10553
fi
 
10554
rm -fr conftest*
 
10555
 
 
10556
 
 
10557
fi
 
10558
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10559
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10560
    fi
 
10561
 
 
10562
    CPPFLAGS="$save_CPPFLAGS"
 
10563
    LDFLAGS="$save_LDFLAGS"
 
10564
    LIBS="$save_LIBS"
 
10565
    ;;
 
10566
  esac
 
10567
 
 
10568
  case $lt_cv_dlopen_self in
 
10569
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10570
  *) enable_dlopen_self=unknown ;;
 
10571
  esac
 
10572
 
 
10573
  case $lt_cv_dlopen_self_static in
 
10574
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10575
  *) enable_dlopen_self_static=unknown ;;
 
10576
  esac
 
10577
fi
 
10578
 
 
10579
 
 
10580
# Report which library types will actually be built
 
10581
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10582
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10583
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10584
$as_echo "$can_build_shared" >&6; }
 
10585
 
 
10586
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10587
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10588
test "$can_build_shared" = "no" && enable_shared=no
 
10589
 
 
10590
# On AIX, shared libraries and static libraries use the same namespace, and
 
10591
# are all built from PIC.
 
10592
case $host_os in
 
10593
aix3*)
 
10594
  test "$enable_shared" = yes && enable_static=no
 
10595
  if test -n "$RANLIB"; then
 
10596
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10597
    postinstall_cmds='$RANLIB $lib'
 
10598
  fi
 
10599
  ;;
 
10600
 
 
10601
aix[4-9]*)
 
10602
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10603
    test "$enable_shared" = yes && enable_static=no
 
10604
  fi
 
10605
    ;;
 
10606
esac
 
10607
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10608
$as_echo "$enable_shared" >&6; }
 
10609
 
 
10610
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10611
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10612
# Make sure either enable_shared or enable_static is yes.
 
10613
test "$enable_shared" = yes || enable_static=yes
 
10614
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10615
$as_echo "$enable_static" >&6; }
 
10616
 
 
10617
# The else clause should only fire when bootstrapping the
 
10618
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10619
# with your package, and you will get complaints that there are
 
10620
# no rules to generate ltmain.sh.
 
10621
if test -f "$ltmain"; then
 
10622
  # See if we are running on zsh, and set the options which allow our commands through
 
10623
  # without removal of \ escapes.
 
10624
  if test -n "${ZSH_VERSION+set}" ; then
 
10625
    setopt NO_GLOB_SUBST
 
10626
  fi
 
10627
  # Now quote all the things that may contain metacharacters while being
 
10628
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10629
  # variables and quote the copies for generation of the libtool script.
 
10630
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10631
    SED SHELL STRIP \
 
10632
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10633
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10634
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10635
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10636
    lt_cv_sys_global_symbol_to_c_name_address \
 
10637
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10638
    old_postinstall_cmds old_postuninstall_cmds \
 
10639
    compiler \
 
10640
    CC \
 
10641
    LD \
 
10642
    lt_prog_compiler_wl \
 
10643
    lt_prog_compiler_pic \
 
10644
    lt_prog_compiler_static \
 
10645
    lt_prog_compiler_no_builtin_flag \
 
10646
    export_dynamic_flag_spec \
 
10647
    thread_safe_flag_spec \
 
10648
    whole_archive_flag_spec \
 
10649
    enable_shared_with_static_runtimes \
 
10650
    old_archive_cmds \
 
10651
    old_archive_from_new_cmds \
 
10652
    predep_objects \
 
10653
    postdep_objects \
 
10654
    predeps \
 
10655
    postdeps \
 
10656
    compiler_lib_search_path \
 
10657
    compiler_lib_search_dirs \
 
10658
    archive_cmds \
 
10659
    archive_expsym_cmds \
 
10660
    postinstall_cmds \
 
10661
    postuninstall_cmds \
 
10662
    old_archive_from_expsyms_cmds \
 
10663
    allow_undefined_flag \
 
10664
    no_undefined_flag \
 
10665
    export_symbols_cmds \
 
10666
    hardcode_libdir_flag_spec \
 
10667
    hardcode_libdir_flag_spec_ld \
 
10668
    hardcode_libdir_separator \
 
10669
    hardcode_automatic \
 
10670
    module_cmds \
 
10671
    module_expsym_cmds \
 
10672
    lt_cv_prog_compiler_c_o \
 
10673
    fix_srcfile_path \
 
10674
    exclude_expsyms \
 
10675
    include_expsyms; do
 
10676
 
 
10677
    case $var in
 
10678
    old_archive_cmds | \
 
10679
    old_archive_from_new_cmds | \
 
10680
    archive_cmds | \
 
10681
    archive_expsym_cmds | \
 
10682
    module_cmds | \
 
10683
    module_expsym_cmds | \
 
10684
    old_archive_from_expsyms_cmds | \
 
10685
    export_symbols_cmds | \
 
10686
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10687
    postinstall_cmds | postuninstall_cmds | \
 
10688
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10689
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10690
      # Double-quote double-evaled strings.
 
10691
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10692
      ;;
 
10693
    *)
 
10694
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10695
      ;;
 
10696
    esac
 
10697
  done
 
10698
 
 
10699
  case $lt_echo in
 
10700
  *'\$0 --fallback-echo"')
 
10701
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10702
    ;;
 
10703
  esac
 
10704
 
 
10705
cfgfile="${ofile}T"
 
10706
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10707
  $rm -f "$cfgfile"
 
10708
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10709
$as_echo "$as_me: creating $ofile" >&6;}
 
10710
 
 
10711
  cat <<__EOF__ >> "$cfgfile"
 
10712
#! $SHELL
 
10713
 
 
10714
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10715
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10716
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10717
#
 
10718
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10719
# Free Software Foundation, Inc.
 
10720
#
 
10721
# This file is part of GNU Libtool:
 
10722
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10723
#
 
10724
# This program is free software; you can redistribute it and/or modify
 
10725
# it under the terms of the GNU General Public License as published by
 
10726
# the Free Software Foundation; either version 2 of the License, or
 
10727
# (at your option) any later version.
 
10728
#
 
10729
# This program is distributed in the hope that it will be useful, but
 
10730
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10731
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10732
# General Public License for more details.
 
10733
#
 
10734
# You should have received a copy of the GNU General Public License
 
10735
# along with this program; if not, write to the Free Software
 
10736
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10737
#
 
10738
# As a special exception to the GNU General Public License, if you
 
10739
# distribute this file as part of a program that contains a
 
10740
# configuration script generated by Autoconf, you may include it under
 
10741
# the same distribution terms that you use for the rest of that program.
 
10742
 
 
10743
# A sed program that does not truncate output.
 
10744
SED=$lt_SED
 
10745
 
 
10746
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10747
Xsed="$SED -e 1s/^X//"
 
10748
 
 
10749
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10750
# if CDPATH is set.
 
10751
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10752
 
 
10753
# The names of the tagged configurations supported by this script.
 
10754
available_tags=
 
10755
 
 
10756
# ### BEGIN LIBTOOL CONFIG
 
10757
 
 
10758
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10759
 
 
10760
# Shell to use when invoking shell scripts.
 
10761
SHELL=$lt_SHELL
 
10762
 
 
10763
# Whether or not to build shared libraries.
 
10764
build_libtool_libs=$enable_shared
 
10765
 
 
10766
# Whether or not to build static libraries.
 
10767
build_old_libs=$enable_static
 
10768
 
 
10769
# Whether or not to add -lc for building shared libraries.
 
10770
build_libtool_need_lc=$archive_cmds_need_lc
 
10771
 
 
10772
# Whether or not to disallow shared libs when runtime libs are static
 
10773
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10774
 
 
10775
# Whether or not to optimize for fast installation.
 
10776
fast_install=$enable_fast_install
 
10777
 
 
10778
# The host system.
 
10779
host_alias=$host_alias
 
10780
host=$host
 
10781
host_os=$host_os
 
10782
 
 
10783
# The build system.
 
10784
build_alias=$build_alias
 
10785
build=$build
 
10786
build_os=$build_os
 
10787
 
 
10788
# An echo program that does not interpret backslashes.
 
10789
echo=$lt_echo
 
10790
 
 
10791
# The archiver.
 
10792
AR=$lt_AR
 
10793
AR_FLAGS=$lt_AR_FLAGS
 
10794
 
 
10795
# A C compiler.
 
10796
LTCC=$lt_LTCC
 
10797
 
 
10798
# LTCC compiler flags.
 
10799
LTCFLAGS=$lt_LTCFLAGS
 
10800
 
 
10801
# A language-specific compiler.
 
10802
CC=$lt_compiler
 
10803
 
 
10804
# Is the compiler the GNU C compiler?
 
10805
with_gcc=$GCC
 
10806
 
 
10807
# An ERE matcher.
 
10808
EGREP=$lt_EGREP
 
10809
 
 
10810
# The linker used to build libraries.
 
10811
LD=$lt_LD
 
10812
 
 
10813
# Whether we need hard or soft links.
 
10814
LN_S=$lt_LN_S
 
10815
 
 
10816
# A BSD-compatible nm program.
 
10817
NM=$lt_NM
 
10818
 
 
10819
# A symbol stripping program
 
10820
STRIP=$lt_STRIP
 
10821
 
 
10822
# Used to examine libraries when file_magic_cmd begins "file"
 
10823
MAGIC_CMD=$MAGIC_CMD
 
10824
 
 
10825
# Used on cygwin: DLL creation program.
 
10826
DLLTOOL="$DLLTOOL"
 
10827
 
 
10828
# Used on cygwin: object dumper.
 
10829
OBJDUMP="$OBJDUMP"
 
10830
 
 
10831
# Used on cygwin: assembler.
 
10832
AS="$AS"
 
10833
 
 
10834
# The name of the directory that contains temporary libtool files.
 
10835
objdir=$objdir
 
10836
 
 
10837
# How to create reloadable object files.
 
10838
reload_flag=$lt_reload_flag
 
10839
reload_cmds=$lt_reload_cmds
 
10840
 
 
10841
# How to pass a linker flag through the compiler.
 
10842
wl=$lt_lt_prog_compiler_wl
 
10843
 
 
10844
# Object file suffix (normally "o").
 
10845
objext="$ac_objext"
 
10846
 
 
10847
# Old archive suffix (normally "a").
 
10848
libext="$libext"
 
10849
 
 
10850
# Shared library suffix (normally ".so").
 
10851
shrext_cmds='$shrext_cmds'
 
10852
 
 
10853
# Executable file suffix (normally "").
 
10854
exeext="$exeext"
 
10855
 
 
10856
# Additional compiler flags for building library objects.
 
10857
pic_flag=$lt_lt_prog_compiler_pic
 
10858
pic_mode=$pic_mode
 
10859
 
 
10860
# What is the maximum length of a command?
 
10861
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10862
 
 
10863
# Does compiler simultaneously support -c and -o options?
 
10864
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10865
 
 
10866
# Must we lock files when doing compilation?
 
10867
need_locks=$lt_need_locks
 
10868
 
 
10869
# Do we need the lib prefix for modules?
 
10870
need_lib_prefix=$need_lib_prefix
 
10871
 
 
10872
# Do we need a version for libraries?
 
10873
need_version=$need_version
 
10874
 
 
10875
# Whether dlopen is supported.
 
10876
dlopen_support=$enable_dlopen
 
10877
 
 
10878
# Whether dlopen of programs is supported.
 
10879
dlopen_self=$enable_dlopen_self
 
10880
 
 
10881
# Whether dlopen of statically linked programs is supported.
 
10882
dlopen_self_static=$enable_dlopen_self_static
 
10883
 
 
10884
# Compiler flag to prevent dynamic linking.
 
10885
link_static_flag=$lt_lt_prog_compiler_static
 
10886
 
 
10887
# Compiler flag to turn off builtin functions.
 
10888
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10889
 
 
10890
# Compiler flag to allow reflexive dlopens.
 
10891
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10892
 
 
10893
# Compiler flag to generate shared objects directly from archives.
 
10894
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10895
 
 
10896
# Compiler flag to generate thread-safe objects.
 
10897
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10898
 
 
10899
# Library versioning type.
 
10900
version_type=$version_type
 
10901
 
 
10902
# Format of library name prefix.
 
10903
libname_spec=$lt_libname_spec
 
10904
 
 
10905
# List of archive names.  First name is the real one, the rest are links.
 
10906
# The last name is the one that the linker finds with -lNAME.
 
10907
library_names_spec=$lt_library_names_spec
 
10908
 
 
10909
# The coded name of the library, if different from the real name.
 
10910
soname_spec=$lt_soname_spec
 
10911
 
 
10912
# Commands used to build and install an old-style archive.
 
10913
RANLIB=$lt_RANLIB
 
10914
old_archive_cmds=$lt_old_archive_cmds
 
10915
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10916
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10917
 
 
10918
# Create an old-style archive from a shared archive.
 
10919
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10920
 
 
10921
# Create a temporary old-style archive to link instead of a shared archive.
 
10922
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10923
 
 
10924
# Commands used to build and install a shared archive.
 
10925
archive_cmds=$lt_archive_cmds
 
10926
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10927
postinstall_cmds=$lt_postinstall_cmds
 
10928
postuninstall_cmds=$lt_postuninstall_cmds
 
10929
 
 
10930
# Commands used to build a loadable module (assumed same as above if empty)
 
10931
module_cmds=$lt_module_cmds
 
10932
module_expsym_cmds=$lt_module_expsym_cmds
 
10933
 
 
10934
# Commands to strip libraries.
 
10935
old_striplib=$lt_old_striplib
 
10936
striplib=$lt_striplib
 
10937
 
 
10938
# Dependencies to place before the objects being linked to create a
 
10939
# shared library.
 
10940
predep_objects=$lt_predep_objects
 
10941
 
 
10942
# Dependencies to place after the objects being linked to create a
 
10943
# shared library.
 
10944
postdep_objects=$lt_postdep_objects
 
10945
 
 
10946
# Dependencies to place before the objects being linked to create a
 
10947
# shared library.
 
10948
predeps=$lt_predeps
 
10949
 
 
10950
# Dependencies to place after the objects being linked to create a
 
10951
# shared library.
 
10952
postdeps=$lt_postdeps
 
10953
 
 
10954
# The directories searched by this compiler when creating a shared
 
10955
# library
 
10956
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10957
 
 
10958
# The library search path used internally by the compiler when linking
 
10959
# a shared library.
 
10960
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10961
 
 
10962
# Method to check whether dependent libraries are shared objects.
 
10963
deplibs_check_method=$lt_deplibs_check_method
 
10964
 
 
10965
# Command to use when deplibs_check_method == file_magic.
 
10966
file_magic_cmd=$lt_file_magic_cmd
 
10967
 
 
10968
# Flag that allows shared libraries with undefined symbols to be built.
 
10969
allow_undefined_flag=$lt_allow_undefined_flag
 
10970
 
 
10971
# Flag that forces no undefined symbols.
 
10972
no_undefined_flag=$lt_no_undefined_flag
 
10973
 
 
10974
# Commands used to finish a libtool library installation in a directory.
 
10975
finish_cmds=$lt_finish_cmds
 
10976
 
 
10977
# Same as above, but a single script fragment to be evaled but not shown.
 
10978
finish_eval=$lt_finish_eval
 
10979
 
 
10980
# Take the output of nm and produce a listing of raw symbols and C names.
 
10981
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10982
 
 
10983
# Transform the output of nm in a proper C declaration
 
10984
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10985
 
 
10986
# Transform the output of nm in a C name address pair
 
10987
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10988
 
 
10989
# This is the shared library runtime path variable.
 
10990
runpath_var=$runpath_var
 
10991
 
 
10992
# This is the shared library path variable.
 
10993
shlibpath_var=$shlibpath_var
 
10994
 
 
10995
# Is shlibpath searched before the hard-coded library search path?
 
10996
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10997
 
 
10998
# How to hardcode a shared library path into an executable.
 
10999
hardcode_action=$hardcode_action
 
11000
 
 
11001
# Whether we should hardcode library paths into libraries.
 
11002
hardcode_into_libs=$hardcode_into_libs
 
11003
 
 
11004
# Flag to hardcode \$libdir into a binary during linking.
 
11005
# This must work even if \$libdir does not exist.
 
11006
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11007
 
 
11008
# If ld is used when linking, flag to hardcode \$libdir into
 
11009
# a binary during linking. This must work even if \$libdir does
 
11010
# not exist.
 
11011
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11012
 
 
11013
# Whether we need a single -rpath flag with a separated argument.
 
11014
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11015
 
 
11016
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11017
# resulting binary.
 
11018
hardcode_direct=$hardcode_direct
 
11019
 
 
11020
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11021
# resulting binary.
 
11022
hardcode_minus_L=$hardcode_minus_L
 
11023
 
 
11024
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11025
# the resulting binary.
 
11026
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11027
 
 
11028
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11029
# and all subsequent libraries and executables linked against it.
 
11030
hardcode_automatic=$hardcode_automatic
 
11031
 
 
11032
# Variables whose values should be saved in libtool wrapper scripts and
 
11033
# restored at relink time.
 
11034
variables_saved_for_relink="$variables_saved_for_relink"
 
11035
 
 
11036
# Whether libtool must link a program against all its dependency libraries.
 
11037
link_all_deplibs=$link_all_deplibs
 
11038
 
 
11039
# Compile-time system search path for libraries
 
11040
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11041
 
 
11042
# Run-time system search path for libraries
 
11043
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11044
 
 
11045
# Fix the shell variable \$srcfile for the compiler.
 
11046
fix_srcfile_path=$lt_fix_srcfile_path
 
11047
 
 
11048
# Set to yes if exported symbols are required.
 
11049
always_export_symbols=$always_export_symbols
 
11050
 
 
11051
# The commands to list exported symbols.
 
11052
export_symbols_cmds=$lt_export_symbols_cmds
 
11053
 
 
11054
# The commands to extract the exported symbol list from a shared archive.
 
11055
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11056
 
 
11057
# Symbols that should not be listed in the preloaded symbols.
 
11058
exclude_expsyms=$lt_exclude_expsyms
 
11059
 
 
11060
# Symbols that must always be exported.
 
11061
include_expsyms=$lt_include_expsyms
 
11062
 
 
11063
# ### END LIBTOOL CONFIG
 
11064
 
 
11065
__EOF__
 
11066
 
 
11067
 
 
11068
  case $host_os in
 
11069
  aix3*)
 
11070
    cat <<\EOF >> "$cfgfile"
 
11071
 
 
11072
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11073
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11074
# vanish in a puff of smoke.
 
11075
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11076
  COLLECT_NAMES=
 
11077
  export COLLECT_NAMES
 
11078
fi
 
11079
EOF
 
11080
    ;;
 
11081
  esac
 
11082
 
 
11083
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11084
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11085
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11086
  # is reportedly fixed, but why not run on old versions too?
 
11087
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11088
 
 
11089
  mv -f "$cfgfile" "$ofile" || \
 
11090
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11091
  chmod +x "$ofile"
 
11092
 
 
11093
else
 
11094
  # If there is no Makefile yet, we rely on a make rule to execute
 
11095
  # `config.status --recheck' to rerun these tests and create the
 
11096
  # libtool script then.
 
11097
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11098
  if test -f "$ltmain_in"; then
 
11099
    test -f Makefile && make "$ltmain"
 
11100
  fi
 
11101
fi
 
11102
 
 
11103
 
 
11104
ac_ext=c
 
11105
ac_cpp='$CPP $CPPFLAGS'
 
11106
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11107
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11108
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11109
 
 
11110
CC="$lt_save_CC"
 
11111
 
 
11112
 
 
11113
# Check whether --with-tags was given.
 
11114
if test "${with_tags+set}" = set; then
 
11115
  withval=$with_tags; tagnames="$withval"
 
11116
fi
 
11117
 
 
11118
 
 
11119
if test -f "$ltmain" && test -n "$tagnames"; then
 
11120
  if test ! -f "${ofile}"; then
 
11121
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11122
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11123
  fi
 
11124
 
 
11125
  if test -z "$LTCC"; then
 
11126
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11127
    if test -z "$LTCC"; then
 
11128
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11129
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11130
    else
 
11131
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11132
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11133
    fi
 
11134
  fi
 
11135
  if test -z "$LTCFLAGS"; then
 
11136
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11137
  fi
 
11138
 
 
11139
  # Extract list of available tagged configurations in $ofile.
 
11140
  # Note that this assumes the entire list is on one line.
 
11141
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11142
 
 
11143
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11144
  for tagname in $tagnames; do
 
11145
    IFS="$lt_save_ifs"
 
11146
    # Check whether tagname contains only valid characters
 
11147
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11148
    "") ;;
 
11149
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11150
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11151
   { (exit 1); exit 1; }; }
 
11152
        ;;
 
11153
    esac
 
11154
 
 
11155
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11156
    then
 
11157
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11158
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11159
   { (exit 1); exit 1; }; }
 
11160
    fi
 
11161
 
 
11162
    # Update the list of available tags.
 
11163
    if test -n "$tagname"; then
 
11164
      echo appending configuration tag \"$tagname\" to $ofile
 
11165
 
 
11166
      case $tagname in
 
11167
      CXX)
 
11168
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11169
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11170
            (test "X$CXX" != "Xg++"))) ; then
 
11171
          ac_ext=cpp
 
11172
ac_cpp='$CXXCPP $CPPFLAGS'
 
11173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11176
 
 
11177
 
 
11178
 
 
11179
 
 
11180
archive_cmds_need_lc_CXX=no
 
11181
allow_undefined_flag_CXX=
 
11182
always_export_symbols_CXX=no
 
11183
archive_expsym_cmds_CXX=
 
11184
export_dynamic_flag_spec_CXX=
 
11185
hardcode_direct_CXX=no
 
11186
hardcode_libdir_flag_spec_CXX=
 
11187
hardcode_libdir_flag_spec_ld_CXX=
 
11188
hardcode_libdir_separator_CXX=
 
11189
hardcode_minus_L_CXX=no
 
11190
hardcode_shlibpath_var_CXX=unsupported
 
11191
hardcode_automatic_CXX=no
 
11192
module_cmds_CXX=
 
11193
module_expsym_cmds_CXX=
 
11194
link_all_deplibs_CXX=unknown
 
11195
old_archive_cmds_CXX=$old_archive_cmds
 
11196
no_undefined_flag_CXX=
 
11197
whole_archive_flag_spec_CXX=
 
11198
enable_shared_with_static_runtimes_CXX=no
 
11199
 
 
11200
# Dependencies to place before and after the object being linked:
 
11201
predep_objects_CXX=
 
11202
postdep_objects_CXX=
 
11203
predeps_CXX=
 
11204
postdeps_CXX=
 
11205
compiler_lib_search_path_CXX=
 
11206
compiler_lib_search_dirs_CXX=
 
11207
 
 
11208
# Source file extension for C++ test sources.
 
11209
ac_ext=cpp
 
11210
 
 
11211
# Object file extension for compiled C++ test sources.
 
11212
objext=o
 
11213
objext_CXX=$objext
 
11214
 
 
11215
# Code to be used in simple compile tests
 
11216
lt_simple_compile_test_code="int some_variable = 0;"
 
11217
 
 
11218
# Code to be used in simple link tests
 
11219
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11220
 
 
11221
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11222
 
 
11223
# If no C compiler was specified, use CC.
 
11224
LTCC=${LTCC-"$CC"}
 
11225
 
 
11226
# If no C compiler flags were specified, use CFLAGS.
 
11227
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11228
 
 
11229
# Allow CC to be a program name with arguments.
 
11230
compiler=$CC
 
11231
 
 
11232
 
 
11233
# save warnings/boilerplate of simple test code
 
11234
ac_outfile=conftest.$ac_objext
 
11235
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11236
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11237
_lt_compiler_boilerplate=`cat conftest.err`
 
11238
$rm conftest*
 
11239
 
 
11240
ac_outfile=conftest.$ac_objext
 
11241
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11242
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11243
_lt_linker_boilerplate=`cat conftest.err`
 
11244
$rm -r conftest*
 
11245
 
 
11246
 
 
11247
# Allow CC to be a program name with arguments.
 
11248
lt_save_CC=$CC
 
11249
lt_save_LD=$LD
 
11250
lt_save_GCC=$GCC
 
11251
GCC=$GXX
 
11252
lt_save_with_gnu_ld=$with_gnu_ld
 
11253
lt_save_path_LD=$lt_cv_path_LD
 
11254
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11255
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11256
else
 
11257
  $as_unset lt_cv_prog_gnu_ld
 
11258
fi
 
11259
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11260
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11261
else
 
11262
  $as_unset lt_cv_path_LD
 
11263
fi
 
11264
test -z "${LDCXX+set}" || LD=$LDCXX
 
11265
CC=${CXX-"c++"}
 
11266
compiler=$CC
 
11267
compiler_CXX=$CC
 
11268
for cc_temp in $compiler""; do
 
11269
  case $cc_temp in
 
11270
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11271
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11272
    \-*) ;;
 
11273
    *) break;;
 
11274
  esac
 
11275
done
 
11276
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11277
 
 
11278
 
 
11279
# We don't want -fno-exception wen compiling C++ code, so set the
 
11280
# no_builtin_flag separately
 
11281
if test "$GXX" = yes; then
 
11282
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11283
else
 
11284
  lt_prog_compiler_no_builtin_flag_CXX=
 
11285
fi
 
11286
 
 
11287
if test "$GXX" = yes; then
 
11288
  # Set up default GNU C++ configuration
 
11289
 
 
11290
 
 
11291
# Check whether --with-gnu-ld was given.
 
11292
if test "${with_gnu_ld+set}" = set; then
 
11293
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11294
else
 
11295
  with_gnu_ld=no
 
11296
fi
 
11297
 
 
11298
ac_prog=ld
 
11299
if test "$GCC" = yes; then
 
11300
  # Check if gcc -print-prog-name=ld gives a path.
 
11301
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11302
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11303
  case $host in
 
11304
  *-*-mingw*)
 
11305
    # gcc leaves a trailing carriage return which upsets mingw
 
11306
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11307
  *)
 
11308
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11309
  esac
 
11310
  case $ac_prog in
 
11311
    # Accept absolute paths.
 
11312
    [\\/]* | ?:[\\/]*)
 
11313
      re_direlt='/[^/][^/]*/\.\./'
 
11314
      # Canonicalize the pathname of ld
 
11315
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11316
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11317
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11318
      done
 
11319
      test -z "$LD" && LD="$ac_prog"
 
11320
      ;;
 
11321
  "")
 
11322
    # If it fails, then pretend we aren't using GCC.
 
11323
    ac_prog=ld
 
11324
    ;;
 
11325
  *)
 
11326
    # If it is relative, then search for the first ld in PATH.
 
11327
    with_gnu_ld=unknown
 
11328
    ;;
 
11329
  esac
 
11330
elif test "$with_gnu_ld" = yes; then
 
11331
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11332
$as_echo_n "checking for GNU ld... " >&6; }
 
11333
else
 
11334
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11335
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11336
fi
 
11337
if test "${lt_cv_path_LD+set}" = set; then
 
11338
  $as_echo_n "(cached) " >&6
 
11339
else
 
11340
  if test -z "$LD"; then
 
11341
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11342
  for ac_dir in $PATH; do
 
11343
    IFS="$lt_save_ifs"
 
11344
    test -z "$ac_dir" && ac_dir=.
 
11345
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11346
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11347
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11348
      # but apparently some variants of GNU ld only accept -v.
 
11349
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11350
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11351
      *GNU* | *'with BFD'*)
 
11352
        test "$with_gnu_ld" != no && break
 
11353
        ;;
 
11354
      *)
 
11355
        test "$with_gnu_ld" != yes && break
 
11356
        ;;
 
11357
      esac
 
11358
    fi
 
11359
  done
 
11360
  IFS="$lt_save_ifs"
 
11361
else
 
11362
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11363
fi
 
11364
fi
 
11365
 
 
11366
LD="$lt_cv_path_LD"
 
11367
if test -n "$LD"; then
 
11368
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11369
$as_echo "$LD" >&6; }
 
11370
else
 
11371
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11372
$as_echo "no" >&6; }
 
11373
fi
 
11374
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11375
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11376
   { (exit 1); exit 1; }; }
 
11377
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11378
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11379
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11380
  $as_echo_n "(cached) " >&6
 
11381
else
 
11382
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11383
case `$LD -v 2>&1 </dev/null` in
 
11384
*GNU* | *'with BFD'*)
 
11385
  lt_cv_prog_gnu_ld=yes
 
11386
  ;;
 
11387
*)
 
11388
  lt_cv_prog_gnu_ld=no
 
11389
  ;;
 
11390
esac
 
11391
fi
 
11392
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11393
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11394
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11395
 
 
11396
 
 
11397
 
 
11398
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11399
  # archiving commands below assume that GNU ld is being used.
 
11400
  if test "$with_gnu_ld" = yes; then
 
11401
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11402
    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'
 
11403
 
 
11404
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11405
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11406
 
 
11407
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11408
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11409
    #     investigate it a little bit more. (MM)
 
11410
    wlarc='${wl}'
 
11411
 
 
11412
    # ancient GNU ld didn't support --whole-archive et. al.
 
11413
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11414
        grep 'no-whole-archive' > /dev/null; then
 
11415
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11416
    else
 
11417
      whole_archive_flag_spec_CXX=
 
11418
    fi
 
11419
  else
 
11420
    with_gnu_ld=no
 
11421
    wlarc=
 
11422
 
 
11423
    # A generic and very simple default shared library creation
 
11424
    # command for GNU C++ for the case where it uses the native
 
11425
    # linker, instead of GNU ld.  If possible, this setting should
 
11426
    # overridden to take advantage of the native linker features on
 
11427
    # the platform it is being used on.
 
11428
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11429
  fi
 
11430
 
 
11431
  # Commands to make compiler produce verbose output that lists
 
11432
  # what "hidden" libraries, object files and flags are used when
 
11433
  # linking a shared library.
 
11434
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11435
 
 
11436
else
 
11437
  GXX=no
 
11438
  with_gnu_ld=no
 
11439
  wlarc=
 
11440
fi
 
11441
 
 
11442
# PORTME: fill in a description of your system's C++ link characteristics
 
11443
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11444
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11445
ld_shlibs_CXX=yes
 
11446
case $host_os in
 
11447
  aix3*)
 
11448
    # FIXME: insert proper C++ library support
 
11449
    ld_shlibs_CXX=no
 
11450
    ;;
 
11451
  aix[4-9]*)
 
11452
    if test "$host_cpu" = ia64; then
 
11453
      # On IA64, the linker does run time linking by default, so we don't
 
11454
      # have to do anything special.
 
11455
      aix_use_runtimelinking=no
 
11456
      exp_sym_flag='-Bexport'
 
11457
      no_entry_flag=""
 
11458
    else
 
11459
      aix_use_runtimelinking=no
 
11460
 
 
11461
      # Test if we are trying to use run time linking or normal
 
11462
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11463
      # need to do runtime linking.
 
11464
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11465
        for ld_flag in $LDFLAGS; do
 
11466
          case $ld_flag in
 
11467
          *-brtl*)
 
11468
            aix_use_runtimelinking=yes
 
11469
            break
 
11470
            ;;
 
11471
          esac
 
11472
        done
 
11473
        ;;
 
11474
      esac
 
11475
 
 
11476
      exp_sym_flag='-bexport'
 
11477
      no_entry_flag='-bnoentry'
 
11478
    fi
 
11479
 
 
11480
    # When large executables or shared objects are built, AIX ld can
 
11481
    # have problems creating the table of contents.  If linking a library
 
11482
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11483
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11484
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11485
 
 
11486
    archive_cmds_CXX=''
 
11487
    hardcode_direct_CXX=yes
 
11488
    hardcode_libdir_separator_CXX=':'
 
11489
    link_all_deplibs_CXX=yes
 
11490
 
 
11491
    if test "$GXX" = yes; then
 
11492
      case $host_os in aix4.[012]|aix4.[012].*)
 
11493
      # We only want to do this on AIX 4.2 and lower, the check
 
11494
      # below for broken collect2 doesn't work under 4.3+
 
11495
        collect2name=`${CC} -print-prog-name=collect2`
 
11496
        if test -f "$collect2name" && \
 
11497
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11498
        then
 
11499
          # We have reworked collect2
 
11500
          :
 
11501
        else
 
11502
          # We have old collect2
 
11503
          hardcode_direct_CXX=unsupported
 
11504
          # It fails to find uninstalled libraries when the uninstalled
 
11505
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11506
          # to unsupported forces relinking
 
11507
          hardcode_minus_L_CXX=yes
 
11508
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11509
          hardcode_libdir_separator_CXX=
 
11510
        fi
 
11511
        ;;
 
11512
      esac
 
11513
      shared_flag='-shared'
 
11514
      if test "$aix_use_runtimelinking" = yes; then
 
11515
        shared_flag="$shared_flag "'${wl}-G'
 
11516
      fi
 
11517
    else
 
11518
      # not using gcc
 
11519
      if test "$host_cpu" = ia64; then
 
11520
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11521
        # chokes on -Wl,-G. The following line is correct:
 
11522
        shared_flag='-G'
 
11523
      else
 
11524
        if test "$aix_use_runtimelinking" = yes; then
 
11525
          shared_flag='${wl}-G'
 
11526
        else
 
11527
          shared_flag='${wl}-bM:SRE'
 
11528
        fi
 
11529
      fi
 
11530
    fi
 
11531
 
 
11532
    # It seems that -bexpall does not export symbols beginning with
 
11533
    # underscore (_), so it is better to generate a list of symbols to export.
 
11534
    always_export_symbols_CXX=yes
 
11535
    if test "$aix_use_runtimelinking" = yes; then
 
11536
      # Warning - without using the other runtime loading flags (-brtl),
 
11537
      # -berok will link without error, but may produce a broken library.
 
11538
      allow_undefined_flag_CXX='-berok'
 
11539
      # Determine the default libpath from the value encoded in an empty executable.
 
11540
      cat >conftest.$ac_ext <<_ACEOF
 
11541
/* confdefs.h.  */
 
11542
_ACEOF
 
11543
cat confdefs.h >>conftest.$ac_ext
 
11544
cat >>conftest.$ac_ext <<_ACEOF
 
11545
/* end confdefs.h.  */
 
11546
 
 
11547
int
 
11548
main ()
 
11549
{
 
11550
 
 
11551
  ;
 
11552
  return 0;
 
11553
}
 
11554
_ACEOF
 
11555
rm -f conftest.$ac_objext conftest$ac_exeext
 
11556
if { (ac_try="$ac_link"
 
11557
case "(($ac_try" in
 
11558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11559
  *) ac_try_echo=$ac_try;;
 
11560
esac
 
11561
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11562
$as_echo "$ac_try_echo") >&5
 
11563
  (eval "$ac_link") 2>conftest.er1
 
11564
  ac_status=$?
 
11565
  grep -v '^ *+' conftest.er1 >conftest.err
 
11566
  rm -f conftest.er1
 
11567
  cat conftest.err >&5
 
11568
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11569
  (exit $ac_status); } && {
 
11570
         test -z "$ac_cxx_werror_flag" ||
 
11571
         test ! -s conftest.err
 
11572
       } && test -s conftest$ac_exeext && {
 
11573
         test "$cross_compiling" = yes ||
 
11574
         $as_test_x conftest$ac_exeext
 
11575
       }; then
 
11576
 
 
11577
lt_aix_libpath_sed='
 
11578
    /Import File Strings/,/^$/ {
 
11579
        /^0/ {
 
11580
            s/^0  *\(.*\)$/\1/
 
11581
            p
 
11582
        }
 
11583
    }'
 
11584
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11585
# Check for a 64-bit object if we didn't find anything.
 
11586
if test -z "$aix_libpath"; then
 
11587
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11588
fi
 
11589
else
 
11590
  $as_echo "$as_me: failed program was:" >&5
 
11591
sed 's/^/| /' conftest.$ac_ext >&5
 
11592
 
 
11593
 
 
11594
fi
 
11595
 
 
11596
rm -rf conftest.dSYM
 
11597
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11598
      conftest$ac_exeext conftest.$ac_ext
 
11599
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11600
 
 
11601
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11602
 
 
11603
      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"
 
11604
     else
 
11605
      if test "$host_cpu" = ia64; then
 
11606
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11607
        allow_undefined_flag_CXX="-z nodefs"
 
11608
        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"
 
11609
      else
 
11610
        # Determine the default libpath from the value encoded in an empty executable.
 
11611
        cat >conftest.$ac_ext <<_ACEOF
 
11612
/* confdefs.h.  */
 
11613
_ACEOF
 
11614
cat confdefs.h >>conftest.$ac_ext
 
11615
cat >>conftest.$ac_ext <<_ACEOF
 
11616
/* end confdefs.h.  */
 
11617
 
 
11618
int
 
11619
main ()
 
11620
{
 
11621
 
 
11622
  ;
 
11623
  return 0;
 
11624
}
 
11625
_ACEOF
 
11626
rm -f conftest.$ac_objext conftest$ac_exeext
 
11627
if { (ac_try="$ac_link"
 
11628
case "(($ac_try" in
 
11629
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11630
  *) ac_try_echo=$ac_try;;
 
11631
esac
 
11632
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11633
$as_echo "$ac_try_echo") >&5
 
11634
  (eval "$ac_link") 2>conftest.er1
 
11635
  ac_status=$?
 
11636
  grep -v '^ *+' conftest.er1 >conftest.err
 
11637
  rm -f conftest.er1
 
11638
  cat conftest.err >&5
 
11639
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11640
  (exit $ac_status); } && {
 
11641
         test -z "$ac_cxx_werror_flag" ||
 
11642
         test ! -s conftest.err
 
11643
       } && test -s conftest$ac_exeext && {
 
11644
         test "$cross_compiling" = yes ||
 
11645
         $as_test_x conftest$ac_exeext
 
11646
       }; then
 
11647
 
 
11648
lt_aix_libpath_sed='
 
11649
    /Import File Strings/,/^$/ {
 
11650
        /^0/ {
 
11651
            s/^0  *\(.*\)$/\1/
 
11652
            p
 
11653
        }
 
11654
    }'
 
11655
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11656
# Check for a 64-bit object if we didn't find anything.
 
11657
if test -z "$aix_libpath"; then
 
11658
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11659
fi
 
11660
else
 
11661
  $as_echo "$as_me: failed program was:" >&5
 
11662
sed 's/^/| /' conftest.$ac_ext >&5
 
11663
 
 
11664
 
 
11665
fi
 
11666
 
 
11667
rm -rf conftest.dSYM
 
11668
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11669
      conftest$ac_exeext conftest.$ac_ext
 
11670
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11671
 
 
11672
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11673
        # Warning - without using the other run time loading flags,
 
11674
        # -berok will link without error, but may produce a broken library.
 
11675
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11676
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11677
        # Exported symbols can be pulled into shared objects from archives
 
11678
        whole_archive_flag_spec_CXX='$convenience'
 
11679
        archive_cmds_need_lc_CXX=yes
 
11680
        # This is similar to how AIX traditionally builds its shared libraries.
 
11681
        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'
 
11682
      fi
 
11683
    fi
 
11684
    ;;
 
11685
 
 
11686
  beos*)
 
11687
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11688
      allow_undefined_flag_CXX=unsupported
 
11689
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11690
      # support --undefined.  This deserves some investigation.  FIXME
 
11691
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11692
    else
 
11693
      ld_shlibs_CXX=no
 
11694
    fi
 
11695
    ;;
 
11696
 
 
11697
  chorus*)
 
11698
    case $cc_basename in
 
11699
      *)
 
11700
        # FIXME: insert proper C++ library support
 
11701
        ld_shlibs_CXX=no
 
11702
        ;;
 
11703
    esac
 
11704
    ;;
 
11705
 
 
11706
  cygwin* | mingw* | pw32*)
 
11707
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11708
    # as there is no search path for DLLs.
 
11709
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11710
    allow_undefined_flag_CXX=unsupported
 
11711
    always_export_symbols_CXX=no
 
11712
    enable_shared_with_static_runtimes_CXX=yes
 
11713
 
 
11714
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11715
      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'
 
11716
      # If the export-symbols file already is a .def file (1st line
 
11717
      # is EXPORTS), use it as is; otherwise, prepend...
 
11718
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11719
        cp $export_symbols $output_objdir/$soname.def;
 
11720
      else
 
11721
        echo EXPORTS > $output_objdir/$soname.def;
 
11722
        cat $export_symbols >> $output_objdir/$soname.def;
 
11723
      fi~
 
11724
      $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'
 
11725
    else
 
11726
      ld_shlibs_CXX=no
 
11727
    fi
 
11728
  ;;
 
11729
      darwin* | rhapsody*)
 
11730
      archive_cmds_need_lc_CXX=no
 
11731
      hardcode_direct_CXX=no
 
11732
      hardcode_automatic_CXX=yes
 
11733
      hardcode_shlibpath_var_CXX=unsupported
 
11734
      whole_archive_flag_spec_CXX=''
 
11735
      link_all_deplibs_CXX=yes
 
11736
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11737
      if test "$GXX" = yes ; then
 
11738
      output_verbose_link_cmd='echo'
 
11739
      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}"
 
11740
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11741
      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}"
 
11742
      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}"
 
11743
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11744
        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}"
 
11745
        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}"
 
11746
      fi
 
11747
      else
 
11748
      case $cc_basename in
 
11749
        xlc*)
 
11750
         output_verbose_link_cmd='echo'
 
11751
          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'
 
11752
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11753
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11754
          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}'
 
11755
          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}'
 
11756
          ;;
 
11757
       *)
 
11758
         ld_shlibs_CXX=no
 
11759
          ;;
 
11760
      esac
 
11761
      fi
 
11762
        ;;
 
11763
 
 
11764
  dgux*)
 
11765
    case $cc_basename in
 
11766
      ec++*)
 
11767
        # FIXME: insert proper C++ library support
 
11768
        ld_shlibs_CXX=no
 
11769
        ;;
 
11770
      ghcx*)
 
11771
        # Green Hills C++ Compiler
 
11772
        # FIXME: insert proper C++ library support
 
11773
        ld_shlibs_CXX=no
 
11774
        ;;
 
11775
      *)
 
11776
        # FIXME: insert proper C++ library support
 
11777
        ld_shlibs_CXX=no
 
11778
        ;;
 
11779
    esac
 
11780
    ;;
 
11781
  freebsd[12]*)
 
11782
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11783
    ld_shlibs_CXX=no
 
11784
    ;;
 
11785
  freebsd-elf*)
 
11786
    archive_cmds_need_lc_CXX=no
 
11787
    ;;
 
11788
  freebsd* | dragonfly*)
 
11789
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11790
    # conventions
 
11791
    ld_shlibs_CXX=yes
 
11792
    ;;
 
11793
  gnu*)
 
11794
    ;;
 
11795
  hpux9*)
 
11796
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11797
    hardcode_libdir_separator_CXX=:
 
11798
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11799
    hardcode_direct_CXX=yes
 
11800
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11801
                                # but as the default
 
11802
                                # location of the library.
 
11803
 
 
11804
    case $cc_basename in
 
11805
    CC*)
 
11806
      # FIXME: insert proper C++ library support
 
11807
      ld_shlibs_CXX=no
 
11808
      ;;
 
11809
    aCC*)
 
11810
      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'
 
11811
      # Commands to make compiler produce verbose output that lists
 
11812
      # what "hidden" libraries, object files and flags are used when
 
11813
      # linking a shared library.
 
11814
      #
 
11815
      # There doesn't appear to be a way to prevent this compiler from
 
11816
      # explicitly linking system object files so we need to strip them
 
11817
      # from the output so that they don't get included in the library
 
11818
      # dependencies.
 
11819
      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'
 
11820
      ;;
 
11821
    *)
 
11822
      if test "$GXX" = yes; then
 
11823
        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'
 
11824
      else
 
11825
        # FIXME: insert proper C++ library support
 
11826
        ld_shlibs_CXX=no
 
11827
      fi
 
11828
      ;;
 
11829
    esac
 
11830
    ;;
 
11831
  hpux10*|hpux11*)
 
11832
    if test $with_gnu_ld = no; then
 
11833
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11834
      hardcode_libdir_separator_CXX=:
 
11835
 
 
11836
      case $host_cpu in
 
11837
      hppa*64*|ia64*) ;;
 
11838
      *)
 
11839
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11840
        ;;
 
11841
      esac
 
11842
    fi
 
11843
    case $host_cpu in
 
11844
    hppa*64*|ia64*)
 
11845
      hardcode_direct_CXX=no
 
11846
      hardcode_shlibpath_var_CXX=no
 
11847
      ;;
 
11848
    *)
 
11849
      hardcode_direct_CXX=yes
 
11850
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11851
                                              # but as the default
 
11852
                                              # location of the library.
 
11853
      ;;
 
11854
    esac
 
11855
 
 
11856
    case $cc_basename in
 
11857
      CC*)
 
11858
        # FIXME: insert proper C++ library support
 
11859
        ld_shlibs_CXX=no
 
11860
        ;;
 
11861
      aCC*)
 
11862
        case $host_cpu in
 
11863
        hppa*64*)
 
11864
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11865
          ;;
 
11866
        ia64*)
 
11867
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11868
          ;;
 
11869
        *)
 
11870
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11871
          ;;
 
11872
        esac
 
11873
        # Commands to make compiler produce verbose output that lists
 
11874
        # what "hidden" libraries, object files and flags are used when
 
11875
        # linking a shared library.
 
11876
        #
 
11877
        # There doesn't appear to be a way to prevent this compiler from
 
11878
        # explicitly linking system object files so we need to strip them
 
11879
        # from the output so that they don't get included in the library
 
11880
        # dependencies.
 
11881
        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'
 
11882
        ;;
 
11883
      *)
 
11884
        if test "$GXX" = yes; then
 
11885
          if test $with_gnu_ld = no; then
 
11886
            case $host_cpu in
 
11887
            hppa*64*)
 
11888
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11889
              ;;
 
11890
            ia64*)
 
11891
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11892
              ;;
 
11893
            *)
 
11894
              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'
 
11895
              ;;
 
11896
            esac
 
11897
          fi
 
11898
        else
 
11899
          # FIXME: insert proper C++ library support
 
11900
          ld_shlibs_CXX=no
 
11901
        fi
 
11902
        ;;
 
11903
    esac
 
11904
    ;;
 
11905
  interix[3-9]*)
 
11906
    hardcode_direct_CXX=no
 
11907
    hardcode_shlibpath_var_CXX=no
 
11908
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11909
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11910
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11911
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11912
    # default) and relocated if they conflict, which is a slow very memory
 
11913
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11914
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11915
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11916
    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'
 
11917
    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'
 
11918
    ;;
 
11919
  irix5* | irix6*)
 
11920
    case $cc_basename in
 
11921
      CC*)
 
11922
        # SGI C++
 
11923
        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'
 
11924
 
 
11925
        # Archives containing C++ object files must be created using
 
11926
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11927
        # necessary to make sure instantiated templates are included
 
11928
        # in the archive.
 
11929
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11930
        ;;
 
11931
      *)
 
11932
        if test "$GXX" = yes; then
 
11933
          if test "$with_gnu_ld" = no; then
 
11934
            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'
 
11935
          else
 
11936
            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'
 
11937
          fi
 
11938
        fi
 
11939
        link_all_deplibs_CXX=yes
 
11940
        ;;
 
11941
    esac
 
11942
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11943
    hardcode_libdir_separator_CXX=:
 
11944
    ;;
 
11945
  linux* | k*bsd*-gnu)
 
11946
    case $cc_basename in
 
11947
      KCC*)
 
11948
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11949
 
 
11950
        # KCC will only create a shared library if the output file
 
11951
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11952
        # to its proper name (with version) after linking.
 
11953
        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'
 
11954
        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'
 
11955
        # Commands to make compiler produce verbose output that lists
 
11956
        # what "hidden" libraries, object files and flags are used when
 
11957
        # linking a shared library.
 
11958
        #
 
11959
        # There doesn't appear to be a way to prevent this compiler from
 
11960
        # explicitly linking system object files so we need to strip them
 
11961
        # from the output so that they don't get included in the library
 
11962
        # dependencies.
 
11963
        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'
 
11964
 
 
11965
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11966
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11967
 
 
11968
        # Archives containing C++ object files must be created using
 
11969
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11970
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11971
        ;;
 
11972
      icpc*)
 
11973
        # Intel C++
 
11974
        with_gnu_ld=yes
 
11975
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11976
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11977
        # earlier do not add the objects themselves.
 
11978
        case `$CC -V 2>&1` in
 
11979
        *"Version 7."*)
 
11980
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11981
          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'
 
11982
          ;;
 
11983
        *)  # Version 8.0 or newer
 
11984
          tmp_idyn=
 
11985
          case $host_cpu in
 
11986
            ia64*) tmp_idyn=' -i_dynamic';;
 
11987
          esac
 
11988
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11989
          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'
 
11990
          ;;
 
11991
        esac
 
11992
        archive_cmds_need_lc_CXX=no
 
11993
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11994
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11995
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11996
        ;;
 
11997
      pgCC* | pgcpp*)
 
11998
        # Portland Group C++ compiler
 
11999
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12000
        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'
 
12001
 
 
12002
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12003
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12004
        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'
 
12005
        ;;
 
12006
      cxx*)
 
12007
        # Compaq C++
 
12008
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12009
        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'
 
12010
 
 
12011
        runpath_var=LD_RUN_PATH
 
12012
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12013
        hardcode_libdir_separator_CXX=:
 
12014
 
 
12015
        # Commands to make compiler produce verbose output that lists
 
12016
        # what "hidden" libraries, object files and flags are used when
 
12017
        # linking a shared library.
 
12018
        #
 
12019
        # There doesn't appear to be a way to prevent this compiler from
 
12020
        # explicitly linking system object files so we need to strip them
 
12021
        # from the output so that they don't get included in the library
 
12022
        # dependencies.
 
12023
        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'
 
12024
        ;;
 
12025
      *)
 
12026
        case `$CC -V 2>&1 | sed 5q` in
 
12027
        *Sun\ C*)
 
12028
          # Sun C++ 5.9
 
12029
          no_undefined_flag_CXX=' -zdefs'
 
12030
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12031
          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'
 
12032
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12033
          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'
 
12034
 
 
12035
          # Not sure whether something based on
 
12036
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12037
          # would be better.
 
12038
          output_verbose_link_cmd='echo'
 
12039
 
 
12040
          # Archives containing C++ object files must be created using
 
12041
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12042
          # necessary to make sure instantiated templates are included
 
12043
          # in the archive.
 
12044
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12045
          ;;
 
12046
        esac
 
12047
        ;;
 
12048
    esac
 
12049
    ;;
 
12050
  lynxos*)
 
12051
    # FIXME: insert proper C++ library support
 
12052
    ld_shlibs_CXX=no
 
12053
    ;;
 
12054
  m88k*)
 
12055
    # FIXME: insert proper C++ library support
 
12056
    ld_shlibs_CXX=no
 
12057
    ;;
 
12058
  mvs*)
 
12059
    case $cc_basename in
 
12060
      cxx*)
 
12061
        # FIXME: insert proper C++ library support
 
12062
        ld_shlibs_CXX=no
 
12063
        ;;
 
12064
      *)
 
12065
        # FIXME: insert proper C++ library support
 
12066
        ld_shlibs_CXX=no
 
12067
        ;;
 
12068
    esac
 
12069
    ;;
 
12070
  netbsd*)
 
12071
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12072
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12073
      wlarc=
 
12074
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12075
      hardcode_direct_CXX=yes
 
12076
      hardcode_shlibpath_var_CXX=no
 
12077
    fi
 
12078
    # Workaround some broken pre-1.5 toolchains
 
12079
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12080
    ;;
 
12081
  openbsd2*)
 
12082
    # C++ shared libraries are fairly broken
 
12083
    ld_shlibs_CXX=no
 
12084
    ;;
 
12085
  openbsd*)
 
12086
    if test -f /usr/libexec/ld.so; then
 
12087
      hardcode_direct_CXX=yes
 
12088
      hardcode_shlibpath_var_CXX=no
 
12089
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12090
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12091
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12092
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12093
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12094
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12095
      fi
 
12096
      output_verbose_link_cmd='echo'
 
12097
    else
 
12098
      ld_shlibs_CXX=no
 
12099
    fi
 
12100
    ;;
 
12101
  osf3*)
 
12102
    case $cc_basename in
 
12103
      KCC*)
 
12104
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12105
 
 
12106
        # KCC will only create a shared library if the output file
 
12107
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12108
        # to its proper name (with version) after linking.
 
12109
        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'
 
12110
 
 
12111
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12112
        hardcode_libdir_separator_CXX=:
 
12113
 
 
12114
        # Archives containing C++ object files must be created using
 
12115
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12116
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12117
 
 
12118
        ;;
 
12119
      RCC*)
 
12120
        # Rational C++ 2.4.1
 
12121
        # FIXME: insert proper C++ library support
 
12122
        ld_shlibs_CXX=no
 
12123
        ;;
 
12124
      cxx*)
 
12125
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12126
        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'
 
12127
 
 
12128
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12129
        hardcode_libdir_separator_CXX=:
 
12130
 
 
12131
        # Commands to make compiler produce verbose output that lists
 
12132
        # what "hidden" libraries, object files and flags are used when
 
12133
        # linking a shared library.
 
12134
        #
 
12135
        # There doesn't appear to be a way to prevent this compiler from
 
12136
        # explicitly linking system object files so we need to strip them
 
12137
        # from the output so that they don't get included in the library
 
12138
        # dependencies.
 
12139
        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'
 
12140
        ;;
 
12141
      *)
 
12142
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12143
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12144
          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'
 
12145
 
 
12146
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12147
          hardcode_libdir_separator_CXX=:
 
12148
 
 
12149
          # Commands to make compiler produce verbose output that lists
 
12150
          # what "hidden" libraries, object files and flags are used when
 
12151
          # linking a shared library.
 
12152
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12153
 
 
12154
        else
 
12155
          # FIXME: insert proper C++ library support
 
12156
          ld_shlibs_CXX=no
 
12157
        fi
 
12158
        ;;
 
12159
    esac
 
12160
    ;;
 
12161
  osf4* | osf5*)
 
12162
    case $cc_basename in
 
12163
      KCC*)
 
12164
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12165
 
 
12166
        # KCC will only create a shared library if the output file
 
12167
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12168
        # to its proper name (with version) after linking.
 
12169
        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'
 
12170
 
 
12171
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12172
        hardcode_libdir_separator_CXX=:
 
12173
 
 
12174
        # Archives containing C++ object files must be created using
 
12175
        # the KAI C++ compiler.
 
12176
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12177
        ;;
 
12178
      RCC*)
 
12179
        # Rational C++ 2.4.1
 
12180
        # FIXME: insert proper C++ library support
 
12181
        ld_shlibs_CXX=no
 
12182
        ;;
 
12183
      cxx*)
 
12184
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12185
        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'
 
12186
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12187
          echo "-hidden">> $lib.exp~
 
12188
          $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~
 
12189
          $rm $lib.exp'
 
12190
 
 
12191
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12192
        hardcode_libdir_separator_CXX=:
 
12193
 
 
12194
        # Commands to make compiler produce verbose output that lists
 
12195
        # what "hidden" libraries, object files and flags are used when
 
12196
        # linking a shared library.
 
12197
        #
 
12198
        # There doesn't appear to be a way to prevent this compiler from
 
12199
        # explicitly linking system object files so we need to strip them
 
12200
        # from the output so that they don't get included in the library
 
12201
        # dependencies.
 
12202
        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'
 
12203
        ;;
 
12204
      *)
 
12205
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12206
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12207
         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'
 
12208
 
 
12209
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12210
          hardcode_libdir_separator_CXX=:
 
12211
 
 
12212
          # Commands to make compiler produce verbose output that lists
 
12213
          # what "hidden" libraries, object files and flags are used when
 
12214
          # linking a shared library.
 
12215
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12216
 
 
12217
        else
 
12218
          # FIXME: insert proper C++ library support
 
12219
          ld_shlibs_CXX=no
 
12220
        fi
 
12221
        ;;
 
12222
    esac
 
12223
    ;;
 
12224
  psos*)
 
12225
    # FIXME: insert proper C++ library support
 
12226
    ld_shlibs_CXX=no
 
12227
    ;;
 
12228
  sunos4*)
 
12229
    case $cc_basename in
 
12230
      CC*)
 
12231
        # Sun C++ 4.x
 
12232
        # FIXME: insert proper C++ library support
 
12233
        ld_shlibs_CXX=no
 
12234
        ;;
 
12235
      lcc*)
 
12236
        # Lucid
 
12237
        # FIXME: insert proper C++ library support
 
12238
        ld_shlibs_CXX=no
 
12239
        ;;
 
12240
      *)
 
12241
        # FIXME: insert proper C++ library support
 
12242
        ld_shlibs_CXX=no
 
12243
        ;;
 
12244
    esac
 
12245
    ;;
 
12246
  solaris*)
 
12247
    case $cc_basename in
 
12248
      CC*)
 
12249
        # Sun C++ 4.2, 5.x and Centerline C++
 
12250
        archive_cmds_need_lc_CXX=yes
 
12251
        no_undefined_flag_CXX=' -zdefs'
 
12252
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12253
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12254
        $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'
 
12255
 
 
12256
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12257
        hardcode_shlibpath_var_CXX=no
 
12258
        case $host_os in
 
12259
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12260
          *)
 
12261
            # The compiler driver will combine and reorder linker options,
 
12262
            # but understands `-z linker_flag'.
 
12263
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12264
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12265
            ;;
 
12266
        esac
 
12267
        link_all_deplibs_CXX=yes
 
12268
 
 
12269
        output_verbose_link_cmd='echo'
 
12270
 
 
12271
        # Archives containing C++ object files must be created using
 
12272
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12273
        # necessary to make sure instantiated templates are included
 
12274
        # in the archive.
 
12275
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12276
        ;;
 
12277
      gcx*)
 
12278
        # Green Hills C++ Compiler
 
12279
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12280
 
 
12281
        # The C++ compiler must be used to create the archive.
 
12282
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12283
        ;;
 
12284
      *)
 
12285
        # GNU C++ compiler with Solaris linker
 
12286
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12287
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12288
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12289
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12290
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12291
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12292
 
 
12293
            # Commands to make compiler produce verbose output that lists
 
12294
            # what "hidden" libraries, object files and flags are used when
 
12295
            # linking a shared library.
 
12296
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12297
          else
 
12298
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12299
            # platform.
 
12300
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12301
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12302
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12303
 
 
12304
            # Commands to make compiler produce verbose output that lists
 
12305
            # what "hidden" libraries, object files and flags are used when
 
12306
            # linking a shared library.
 
12307
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12308
          fi
 
12309
 
 
12310
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12311
          case $host_os in
 
12312
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12313
          *)
 
12314
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12315
            ;;
 
12316
          esac
 
12317
        fi
 
12318
        ;;
 
12319
    esac
 
12320
    ;;
 
12321
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12322
    no_undefined_flag_CXX='${wl}-z,text'
 
12323
    archive_cmds_need_lc_CXX=no
 
12324
    hardcode_shlibpath_var_CXX=no
 
12325
    runpath_var='LD_RUN_PATH'
 
12326
 
 
12327
    case $cc_basename in
 
12328
      CC*)
 
12329
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12330
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12331
        ;;
 
12332
      *)
 
12333
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12334
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12335
        ;;
 
12336
    esac
 
12337
    ;;
 
12338
  sysv5* | sco3.2v5* | sco5v6*)
 
12339
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12340
    # link with -lc, and that would cause any symbols used from libc to
 
12341
    # always be unresolved, which means just about no library would
 
12342
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12343
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12344
    # as -z defs.
 
12345
    # For security reasons, it is highly recommended that you always
 
12346
    # use absolute paths for naming shared libraries, and exclude the
 
12347
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12348
    # requires that you compile everything twice, which is a pain.
 
12349
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12350
    # non-empty value in the environment.  Most likely only useful for
 
12351
    # creating official distributions of packages.
 
12352
    # This is a hack until libtool officially supports absolute path
 
12353
    # names for shared libraries.
 
12354
    no_undefined_flag_CXX='${wl}-z,text'
 
12355
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12356
    archive_cmds_need_lc_CXX=no
 
12357
    hardcode_shlibpath_var_CXX=no
 
12358
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12359
    hardcode_libdir_separator_CXX=':'
 
12360
    link_all_deplibs_CXX=yes
 
12361
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12362
    runpath_var='LD_RUN_PATH'
 
12363
 
 
12364
    case $cc_basename in
 
12365
      CC*)
 
12366
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12367
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12368
        ;;
 
12369
      *)
 
12370
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12371
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12372
        ;;
 
12373
    esac
 
12374
    ;;
 
12375
  tandem*)
 
12376
    case $cc_basename in
 
12377
      NCC*)
 
12378
        # NonStop-UX NCC 3.20
 
12379
        # FIXME: insert proper C++ library support
 
12380
        ld_shlibs_CXX=no
 
12381
        ;;
 
12382
      *)
 
12383
        # FIXME: insert proper C++ library support
 
12384
        ld_shlibs_CXX=no
 
12385
        ;;
 
12386
    esac
 
12387
    ;;
 
12388
  vxworks*)
 
12389
    # FIXME: insert proper C++ library support
 
12390
    ld_shlibs_CXX=no
 
12391
    ;;
 
12392
  *)
 
12393
    # FIXME: insert proper C++ library support
 
12394
    ld_shlibs_CXX=no
 
12395
    ;;
 
12396
esac
 
12397
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12398
$as_echo "$ld_shlibs_CXX" >&6; }
 
12399
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12400
 
 
12401
GCC_CXX="$GXX"
 
12402
LD_CXX="$LD"
 
12403
 
 
12404
cat > conftest.$ac_ext <<EOF
 
12405
class Foo
 
12406
{
 
12407
public:
 
12408
  Foo (void) { a = 0; }
 
12409
private:
 
12410
  int a;
 
12411
};
 
12412
EOF
 
12413
 
 
12414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12415
  (eval $ac_compile) 2>&5
 
12416
  ac_status=$?
 
12417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12418
  (exit $ac_status); }; then
 
12419
  # Parse the compiler output and extract the necessary
 
12420
  # objects, libraries and library flags.
 
12421
 
 
12422
  # Sentinel used to keep track of whether or not we are before
 
12423
  # the conftest object file.
 
12424
  pre_test_object_deps_done=no
 
12425
 
 
12426
  # The `*' in the case matches for architectures that use `case' in
 
12427
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12428
  # eval without this substitution.
 
12429
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12430
 
 
12431
  for p in `eval $output_verbose_link_cmd`; do
 
12432
    case $p in
 
12433
 
 
12434
    -L* | -R* | -l*)
 
12435
       # Some compilers place space between "-{L,R}" and the path.
 
12436
       # Remove the space.
 
12437
       if test $p = "-L" \
 
12438
          || test $p = "-R"; then
 
12439
         prev=$p
 
12440
         continue
 
12441
       else
 
12442
         prev=
 
12443
       fi
 
12444
 
 
12445
       if test "$pre_test_object_deps_done" = no; then
 
12446
         case $p in
 
12447
         -L* | -R*)
 
12448
           # Internal compiler library paths should come after those
 
12449
           # provided the user.  The postdeps already come after the
 
12450
           # user supplied libs so there is no need to process them.
 
12451
           if test -z "$compiler_lib_search_path_CXX"; then
 
12452
             compiler_lib_search_path_CXX="${prev}${p}"
 
12453
           else
 
12454
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12455
           fi
 
12456
           ;;
 
12457
         # The "-l" case would never come before the object being
 
12458
         # linked, so don't bother handling this case.
 
12459
         esac
 
12460
       else
 
12461
         if test -z "$postdeps_CXX"; then
 
12462
           postdeps_CXX="${prev}${p}"
 
12463
         else
 
12464
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12465
         fi
 
12466
       fi
 
12467
       ;;
 
12468
 
 
12469
    *.$objext)
 
12470
       # This assumes that the test object file only shows up
 
12471
       # once in the compiler output.
 
12472
       if test "$p" = "conftest.$objext"; then
 
12473
         pre_test_object_deps_done=yes
 
12474
         continue
 
12475
       fi
 
12476
 
 
12477
       if test "$pre_test_object_deps_done" = no; then
 
12478
         if test -z "$predep_objects_CXX"; then
 
12479
           predep_objects_CXX="$p"
 
12480
         else
 
12481
           predep_objects_CXX="$predep_objects_CXX $p"
 
12482
         fi
 
12483
       else
 
12484
         if test -z "$postdep_objects_CXX"; then
 
12485
           postdep_objects_CXX="$p"
 
12486
         else
 
12487
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12488
         fi
 
12489
       fi
 
12490
       ;;
 
12491
 
 
12492
    *) ;; # Ignore the rest.
 
12493
 
 
12494
    esac
 
12495
  done
 
12496
 
 
12497
  # Clean up.
 
12498
  rm -f a.out a.exe
 
12499
else
 
12500
  echo "libtool.m4: error: problem compiling CXX test program"
 
12501
fi
 
12502
 
 
12503
$rm -f confest.$objext
 
12504
 
 
12505
compiler_lib_search_dirs_CXX=
 
12506
if test -n "$compiler_lib_search_path_CXX"; then
 
12507
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12508
fi
 
12509
 
 
12510
# PORTME: override above test on systems where it is broken
 
12511
case $host_os in
 
12512
interix[3-9]*)
 
12513
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12514
  # hack all around it, let's just trust "g++" to DTRT.
 
12515
  predep_objects_CXX=
 
12516
  postdep_objects_CXX=
 
12517
  postdeps_CXX=
 
12518
  ;;
 
12519
 
 
12520
linux*)
 
12521
  case `$CC -V 2>&1 | sed 5q` in
 
12522
  *Sun\ C*)
 
12523
    # Sun C++ 5.9
 
12524
    #
 
12525
    # The more standards-conforming stlport4 library is
 
12526
    # incompatible with the Cstd library. Avoid specifying
 
12527
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12528
    # -library=stlport4 depends on it.
 
12529
    case " $CXX $CXXFLAGS " in
 
12530
    *" -library=stlport4 "*)
 
12531
      solaris_use_stlport4=yes
 
12532
      ;;
 
12533
    esac
 
12534
    if test "$solaris_use_stlport4" != yes; then
 
12535
      postdeps_CXX='-library=Cstd -library=Crun'
 
12536
    fi
 
12537
    ;;
 
12538
  esac
 
12539
  ;;
 
12540
 
 
12541
solaris*)
 
12542
  case $cc_basename in
 
12543
  CC*)
 
12544
    # The more standards-conforming stlport4 library is
 
12545
    # incompatible with the Cstd library. Avoid specifying
 
12546
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12547
    # -library=stlport4 depends on it.
 
12548
    case " $CXX $CXXFLAGS " in
 
12549
    *" -library=stlport4 "*)
 
12550
      solaris_use_stlport4=yes
 
12551
      ;;
 
12552
    esac
 
12553
 
 
12554
    # Adding this requires a known-good setup of shared libraries for
 
12555
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12556
    # archive will be linked into the output, leading to subtle bugs.
 
12557
    if test "$solaris_use_stlport4" != yes; then
 
12558
      postdeps_CXX='-library=Cstd -library=Crun'
 
12559
    fi
 
12560
    ;;
 
12561
  esac
 
12562
  ;;
 
12563
esac
 
12564
 
 
12565
case " $postdeps_CXX " in
 
12566
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12567
esac
 
12568
 
 
12569
lt_prog_compiler_wl_CXX=
 
12570
lt_prog_compiler_pic_CXX=
 
12571
lt_prog_compiler_static_CXX=
 
12572
 
 
12573
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12574
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12575
 
 
12576
  # C++ specific cases for pic, static, wl, etc.
 
12577
  if test "$GXX" = yes; then
 
12578
    lt_prog_compiler_wl_CXX='-Wl,'
 
12579
    lt_prog_compiler_static_CXX='-static'
 
12580
 
 
12581
    case $host_os in
 
12582
    aix*)
 
12583
      # All AIX code is PIC.
 
12584
      if test "$host_cpu" = ia64; then
 
12585
        # AIX 5 now supports IA64 processor
 
12586
        lt_prog_compiler_static_CXX='-Bstatic'
 
12587
      fi
 
12588
      ;;
 
12589
    amigaos*)
 
12590
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12591
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12592
      # like `-m68040'.
 
12593
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12594
      ;;
 
12595
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12596
      # PIC is the default for these OSes.
 
12597
      ;;
 
12598
    mingw* | cygwin* | os2* | pw32*)
 
12599
      # This hack is so that the source file can tell whether it is being
 
12600
      # built for inclusion in a dll (and should export symbols for example).
 
12601
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12602
      # (--disable-auto-import) libraries
 
12603
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12604
      ;;
 
12605
    darwin* | rhapsody*)
 
12606
      # PIC is the default on this platform
 
12607
      # Common symbols not allowed in MH_DYLIB files
 
12608
      lt_prog_compiler_pic_CXX='-fno-common'
 
12609
      ;;
 
12610
    *djgpp*)
 
12611
      # DJGPP does not support shared libraries at all
 
12612
      lt_prog_compiler_pic_CXX=
 
12613
      ;;
 
12614
    interix[3-9]*)
 
12615
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12616
      # Instead, we relocate shared libraries at runtime.
 
12617
      ;;
 
12618
    sysv4*MP*)
 
12619
      if test -d /usr/nec; then
 
12620
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12621
      fi
 
12622
      ;;
 
12623
    hpux*)
 
12624
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12625
      # not for PA HP-UX.
 
12626
      case $host_cpu in
 
12627
      hppa*64*|ia64*)
 
12628
        ;;
 
12629
      *)
 
12630
        lt_prog_compiler_pic_CXX='-fPIC'
 
12631
        ;;
 
12632
      esac
 
12633
      ;;
 
12634
    *)
 
12635
      lt_prog_compiler_pic_CXX='-fPIC'
 
12636
      ;;
 
12637
    esac
 
12638
  else
 
12639
    case $host_os in
 
12640
      aix[4-9]*)
 
12641
        # All AIX code is PIC.
 
12642
        if test "$host_cpu" = ia64; then
 
12643
          # AIX 5 now supports IA64 processor
 
12644
          lt_prog_compiler_static_CXX='-Bstatic'
 
12645
        else
 
12646
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12647
        fi
 
12648
        ;;
 
12649
      chorus*)
 
12650
        case $cc_basename in
 
12651
        cxch68*)
 
12652
          # Green Hills C++ Compiler
 
12653
          # _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"
 
12654
          ;;
 
12655
        esac
 
12656
        ;;
 
12657
       darwin*)
 
12658
         # PIC is the default on this platform
 
12659
         # Common symbols not allowed in MH_DYLIB files
 
12660
         case $cc_basename in
 
12661
           xlc*)
 
12662
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12663
           lt_prog_compiler_wl_CXX='-Wl,'
 
12664
           ;;
 
12665
         esac
 
12666
       ;;
 
12667
      dgux*)
 
12668
        case $cc_basename in
 
12669
          ec++*)
 
12670
            lt_prog_compiler_pic_CXX='-KPIC'
 
12671
            ;;
 
12672
          ghcx*)
 
12673
            # Green Hills C++ Compiler
 
12674
            lt_prog_compiler_pic_CXX='-pic'
 
12675
            ;;
 
12676
          *)
 
12677
            ;;
 
12678
        esac
 
12679
        ;;
 
12680
      freebsd* | dragonfly*)
 
12681
        # FreeBSD uses GNU C++
 
12682
        ;;
 
12683
      hpux9* | hpux10* | hpux11*)
 
12684
        case $cc_basename in
 
12685
          CC*)
 
12686
            lt_prog_compiler_wl_CXX='-Wl,'
 
12687
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12688
            if test "$host_cpu" != ia64; then
 
12689
              lt_prog_compiler_pic_CXX='+Z'
 
12690
            fi
 
12691
            ;;
 
12692
          aCC*)
 
12693
            lt_prog_compiler_wl_CXX='-Wl,'
 
12694
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12695
            case $host_cpu in
 
12696
            hppa*64*|ia64*)
 
12697
              # +Z the default
 
12698
              ;;
 
12699
            *)
 
12700
              lt_prog_compiler_pic_CXX='+Z'
 
12701
              ;;
 
12702
            esac
 
12703
            ;;
 
12704
          *)
 
12705
            ;;
 
12706
        esac
 
12707
        ;;
 
12708
      interix*)
 
12709
        # This is c89, which is MS Visual C++ (no shared libs)
 
12710
        # Anyone wants to do a port?
 
12711
        ;;
 
12712
      irix5* | irix6* | nonstopux*)
 
12713
        case $cc_basename in
 
12714
          CC*)
 
12715
            lt_prog_compiler_wl_CXX='-Wl,'
 
12716
            lt_prog_compiler_static_CXX='-non_shared'
 
12717
            # CC pic flag -KPIC is the default.
 
12718
            ;;
 
12719
          *)
 
12720
            ;;
 
12721
        esac
 
12722
        ;;
 
12723
      linux* | k*bsd*-gnu)
 
12724
        case $cc_basename in
 
12725
          KCC*)
 
12726
            # KAI C++ Compiler
 
12727
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12728
            lt_prog_compiler_pic_CXX='-fPIC'
 
12729
            ;;
 
12730
          icpc* | ecpc*)
 
12731
            # Intel C++
 
12732
            lt_prog_compiler_wl_CXX='-Wl,'
 
12733
            lt_prog_compiler_pic_CXX='-KPIC'
 
12734
            lt_prog_compiler_static_CXX='-static'
 
12735
            ;;
 
12736
          pgCC* | pgcpp*)
 
12737
            # Portland Group C++ compiler.
 
12738
            lt_prog_compiler_wl_CXX='-Wl,'
 
12739
            lt_prog_compiler_pic_CXX='-fpic'
 
12740
            lt_prog_compiler_static_CXX='-Bstatic'
 
12741
            ;;
 
12742
          cxx*)
 
12743
            # Compaq C++
 
12744
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12745
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12746
            lt_prog_compiler_pic_CXX=
 
12747
            lt_prog_compiler_static_CXX='-non_shared'
 
12748
            ;;
 
12749
          *)
 
12750
            case `$CC -V 2>&1 | sed 5q` in
 
12751
            *Sun\ C*)
 
12752
              # Sun C++ 5.9
 
12753
              lt_prog_compiler_pic_CXX='-KPIC'
 
12754
              lt_prog_compiler_static_CXX='-Bstatic'
 
12755
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12756
              ;;
 
12757
            esac
 
12758
            ;;
 
12759
        esac
 
12760
        ;;
 
12761
      lynxos*)
 
12762
        ;;
 
12763
      m88k*)
 
12764
        ;;
 
12765
      mvs*)
 
12766
        case $cc_basename in
 
12767
          cxx*)
 
12768
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12769
            ;;
 
12770
          *)
 
12771
            ;;
 
12772
        esac
 
12773
        ;;
 
12774
      netbsd*)
 
12775
        ;;
 
12776
      osf3* | osf4* | osf5*)
 
12777
        case $cc_basename in
 
12778
          KCC*)
 
12779
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12780
            ;;
 
12781
          RCC*)
 
12782
            # Rational C++ 2.4.1
 
12783
            lt_prog_compiler_pic_CXX='-pic'
 
12784
            ;;
 
12785
          cxx*)
 
12786
            # Digital/Compaq C++
 
12787
            lt_prog_compiler_wl_CXX='-Wl,'
 
12788
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12789
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12790
            lt_prog_compiler_pic_CXX=
 
12791
            lt_prog_compiler_static_CXX='-non_shared'
 
12792
            ;;
 
12793
          *)
 
12794
            ;;
 
12795
        esac
 
12796
        ;;
 
12797
      psos*)
 
12798
        ;;
 
12799
      solaris*)
 
12800
        case $cc_basename in
 
12801
          CC*)
 
12802
            # Sun C++ 4.2, 5.x and Centerline C++
 
12803
            lt_prog_compiler_pic_CXX='-KPIC'
 
12804
            lt_prog_compiler_static_CXX='-Bstatic'
 
12805
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12806
            ;;
 
12807
          gcx*)
 
12808
            # Green Hills C++ Compiler
 
12809
            lt_prog_compiler_pic_CXX='-PIC'
 
12810
            ;;
 
12811
          *)
 
12812
            ;;
 
12813
        esac
 
12814
        ;;
 
12815
      sunos4*)
 
12816
        case $cc_basename in
 
12817
          CC*)
 
12818
            # Sun C++ 4.x
 
12819
            lt_prog_compiler_pic_CXX='-pic'
 
12820
            lt_prog_compiler_static_CXX='-Bstatic'
 
12821
            ;;
 
12822
          lcc*)
 
12823
            # Lucid
 
12824
            lt_prog_compiler_pic_CXX='-pic'
 
12825
            ;;
 
12826
          *)
 
12827
            ;;
 
12828
        esac
 
12829
        ;;
 
12830
      tandem*)
 
12831
        case $cc_basename in
 
12832
          NCC*)
 
12833
            # NonStop-UX NCC 3.20
 
12834
            lt_prog_compiler_pic_CXX='-KPIC'
 
12835
            ;;
 
12836
          *)
 
12837
            ;;
 
12838
        esac
 
12839
        ;;
 
12840
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12841
        case $cc_basename in
 
12842
          CC*)
 
12843
            lt_prog_compiler_wl_CXX='-Wl,'
 
12844
            lt_prog_compiler_pic_CXX='-KPIC'
 
12845
            lt_prog_compiler_static_CXX='-Bstatic'
 
12846
            ;;
 
12847
        esac
 
12848
        ;;
 
12849
      vxworks*)
 
12850
        ;;
 
12851
      *)
 
12852
        lt_prog_compiler_can_build_shared_CXX=no
 
12853
        ;;
 
12854
    esac
 
12855
  fi
 
12856
 
 
12857
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12858
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
12859
 
 
12860
#
 
12861
# Check to make sure the PIC flag actually works.
 
12862
#
 
12863
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12864
 
 
12865
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12866
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
12867
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12868
  $as_echo_n "(cached) " >&6
 
12869
else
 
12870
  lt_cv_prog_compiler_pic_works_CXX=no
 
12871
  ac_outfile=conftest.$ac_objext
 
12872
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12873
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12874
   # Insert the option either (1) after the last *FLAGS variable, or
 
12875
   # (2) before a word containing "conftest.", or (3) at the end.
 
12876
   # Note that $ac_compile itself does not contain backslashes and begins
 
12877
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12878
   # The option is referenced via a variable to avoid confusing sed.
 
12879
   lt_compile=`echo "$ac_compile" | $SED \
 
12880
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12881
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12882
   -e 's:$: $lt_compiler_flag:'`
 
12883
   (eval echo "\"\$as_me:12883: $lt_compile\"" >&5)
 
12884
   (eval "$lt_compile" 2>conftest.err)
 
12885
   ac_status=$?
 
12886
   cat conftest.err >&5
 
12887
   echo "$as_me:12887: \$? = $ac_status" >&5
 
12888
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12889
     # The compiler can only warn and ignore the option if not recognized
 
12890
     # So say no if there are warnings other than the usual output.
 
12891
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12892
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12893
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12894
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12895
     fi
 
12896
   fi
 
12897
   $rm conftest*
 
12898
 
 
12899
fi
 
12900
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12901
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12902
 
 
12903
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12904
    case $lt_prog_compiler_pic_CXX in
 
12905
     "" | " "*) ;;
 
12906
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12907
     esac
 
12908
else
 
12909
    lt_prog_compiler_pic_CXX=
 
12910
     lt_prog_compiler_can_build_shared_CXX=no
 
12911
fi
 
12912
 
 
12913
fi
 
12914
case $host_os in
 
12915
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12916
  *djgpp*)
 
12917
    lt_prog_compiler_pic_CXX=
 
12918
    ;;
 
12919
  *)
 
12920
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12921
    ;;
 
12922
esac
 
12923
 
 
12924
#
 
12925
# Check to make sure the static flag actually works.
 
12926
#
 
12927
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12928
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12929
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
12930
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
12931
  $as_echo_n "(cached) " >&6
 
12932
else
 
12933
  lt_cv_prog_compiler_static_works_CXX=no
 
12934
   save_LDFLAGS="$LDFLAGS"
 
12935
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12936
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12937
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12938
     # The linker can only warn and ignore the option if not recognized
 
12939
     # So say no if there are warnings
 
12940
     if test -s conftest.err; then
 
12941
       # Append any errors to the config.log.
 
12942
       cat conftest.err 1>&5
 
12943
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12944
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12945
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12946
         lt_cv_prog_compiler_static_works_CXX=yes
 
12947
       fi
 
12948
     else
 
12949
       lt_cv_prog_compiler_static_works_CXX=yes
 
12950
     fi
 
12951
   fi
 
12952
   $rm -r conftest*
 
12953
   LDFLAGS="$save_LDFLAGS"
 
12954
 
 
12955
fi
 
12956
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12957
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
12958
 
 
12959
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
12960
    :
 
12961
else
 
12962
    lt_prog_compiler_static_CXX=
 
12963
fi
 
12964
 
 
12965
 
 
12966
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12967
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
12968
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12969
  $as_echo_n "(cached) " >&6
 
12970
else
 
12971
  lt_cv_prog_compiler_c_o_CXX=no
 
12972
   $rm -r conftest 2>/dev/null
 
12973
   mkdir conftest
 
12974
   cd conftest
 
12975
   mkdir out
 
12976
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12977
 
 
12978
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12979
   # Insert the option either (1) after the last *FLAGS variable, or
 
12980
   # (2) before a word containing "conftest.", or (3) at the end.
 
12981
   # Note that $ac_compile itself does not contain backslashes and begins
 
12982
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12983
   lt_compile=`echo "$ac_compile" | $SED \
 
12984
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12985
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12986
   -e 's:$: $lt_compiler_flag:'`
 
12987
   (eval echo "\"\$as_me:12987: $lt_compile\"" >&5)
 
12988
   (eval "$lt_compile" 2>out/conftest.err)
 
12989
   ac_status=$?
 
12990
   cat out/conftest.err >&5
 
12991
   echo "$as_me:12991: \$? = $ac_status" >&5
 
12992
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12993
   then
 
12994
     # The compiler can only warn and ignore the option if not recognized
 
12995
     # So say no if there are warnings
 
12996
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12997
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12998
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12999
       lt_cv_prog_compiler_c_o_CXX=yes
 
13000
     fi
 
13001
   fi
 
13002
   chmod u+w . 2>&5
 
13003
   $rm conftest*
 
13004
   # SGI C++ compiler will create directory out/ii_files/ for
 
13005
   # template instantiation
 
13006
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13007
   $rm out/* && rmdir out
 
13008
   cd ..
 
13009
   rmdir conftest
 
13010
   $rm conftest*
 
13011
 
 
13012
fi
 
13013
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13014
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13015
 
 
13016
 
 
13017
hard_links="nottested"
 
13018
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13019
  # do not overwrite the value of need_locks provided by the user
 
13020
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13021
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13022
  hard_links=yes
 
13023
  $rm conftest*
 
13024
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13025
  touch conftest.a
 
13026
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13027
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13028
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13029
$as_echo "$hard_links" >&6; }
 
13030
  if test "$hard_links" = no; then
 
13031
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13032
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13033
    need_locks=warn
 
13034
  fi
 
13035
else
 
13036
  need_locks=no
 
13037
fi
 
13038
 
 
13039
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13040
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13041
 
 
13042
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13043
  case $host_os in
 
13044
  aix[4-9]*)
 
13045
    # If we're using GNU nm, then we don't want the "-C" option.
 
13046
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13047
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13048
      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'
 
13049
    else
 
13050
      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'
 
13051
    fi
 
13052
    ;;
 
13053
  pw32*)
 
13054
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13055
  ;;
 
13056
  cygwin* | mingw*)
 
13057
    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'
 
13058
  ;;
 
13059
  *)
 
13060
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13061
  ;;
 
13062
  esac
 
13063
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13064
 
 
13065
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13066
$as_echo "$ld_shlibs_CXX" >&6; }
 
13067
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13068
 
 
13069
#
 
13070
# Do we need to explicitly link libc?
 
13071
#
 
13072
case "x$archive_cmds_need_lc_CXX" in
 
13073
x|xyes)
 
13074
  # Assume -lc should be added
 
13075
  archive_cmds_need_lc_CXX=yes
 
13076
 
 
13077
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13078
    case $archive_cmds_CXX in
 
13079
    *'~'*)
 
13080
      # FIXME: we may have to deal with multi-command sequences.
 
13081
      ;;
 
13082
    '$CC '*)
 
13083
      # Test whether the compiler implicitly links with -lc since on some
 
13084
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13085
      # to ld, don't add -lc before -lgcc.
 
13086
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13087
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13088
      $rm conftest*
 
13089
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13090
 
 
13091
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13092
  (eval $ac_compile) 2>&5
 
13093
  ac_status=$?
 
13094
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13095
  (exit $ac_status); } 2>conftest.err; then
 
13096
        soname=conftest
 
13097
        lib=conftest
 
13098
        libobjs=conftest.$ac_objext
 
13099
        deplibs=
 
13100
        wl=$lt_prog_compiler_wl_CXX
 
13101
        pic_flag=$lt_prog_compiler_pic_CXX
 
13102
        compiler_flags=-v
 
13103
        linker_flags=-v
 
13104
        verstring=
 
13105
        output_objdir=.
 
13106
        libname=conftest
 
13107
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13108
        allow_undefined_flag_CXX=
 
13109
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13110
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13111
  ac_status=$?
 
13112
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13113
  (exit $ac_status); }
 
13114
        then
 
13115
          archive_cmds_need_lc_CXX=no
 
13116
        else
 
13117
          archive_cmds_need_lc_CXX=yes
 
13118
        fi
 
13119
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13120
      else
 
13121
        cat conftest.err 1>&5
 
13122
      fi
 
13123
      $rm conftest*
 
13124
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13125
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13126
      ;;
 
13127
    esac
 
13128
  fi
 
13129
  ;;
 
13130
esac
 
13131
 
 
13132
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13133
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13134
library_names_spec=
 
13135
libname_spec='lib$name'
 
13136
soname_spec=
 
13137
shrext_cmds=".so"
 
13138
postinstall_cmds=
 
13139
postuninstall_cmds=
 
13140
finish_cmds=
 
13141
finish_eval=
 
13142
shlibpath_var=
 
13143
shlibpath_overrides_runpath=unknown
 
13144
version_type=none
 
13145
dynamic_linker="$host_os ld.so"
 
13146
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13147
 
 
13148
need_lib_prefix=unknown
 
13149
hardcode_into_libs=no
 
13150
 
 
13151
# when you set need_version to no, make sure it does not cause -set_version
 
13152
# flags to be left without arguments
 
13153
need_version=unknown
 
13154
 
 
13155
case $host_os in
 
13156
aix3*)
 
13157
  version_type=linux
 
13158
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13159
  shlibpath_var=LIBPATH
 
13160
 
 
13161
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13162
  soname_spec='${libname}${release}${shared_ext}$major'
 
13163
  ;;
 
13164
 
 
13165
aix[4-9]*)
 
13166
  version_type=linux
 
13167
  need_lib_prefix=no
 
13168
  need_version=no
 
13169
  hardcode_into_libs=yes
 
13170
  if test "$host_cpu" = ia64; then
 
13171
    # AIX 5 supports IA64
 
13172
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13173
    shlibpath_var=LD_LIBRARY_PATH
 
13174
  else
 
13175
    # With GCC up to 2.95.x, collect2 would create an import file
 
13176
    # for dependence libraries.  The import file would start with
 
13177
    # the line `#! .'.  This would cause the generated library to
 
13178
    # depend on `.', always an invalid library.  This was fixed in
 
13179
    # development snapshots of GCC prior to 3.0.
 
13180
    case $host_os in
 
13181
      aix4 | aix4.[01] | aix4.[01].*)
 
13182
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13183
           echo ' yes '
 
13184
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13185
        :
 
13186
      else
 
13187
        can_build_shared=no
 
13188
      fi
 
13189
      ;;
 
13190
    esac
 
13191
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13192
    # soname into executable. Probably we can add versioning support to
 
13193
    # collect2, so additional links can be useful in future.
 
13194
    if test "$aix_use_runtimelinking" = yes; then
 
13195
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13196
      # instead of lib<name>.a to let people know that these are not
 
13197
      # typical AIX shared libraries.
 
13198
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13199
    else
 
13200
      # We preserve .a as extension for shared libraries through AIX4.2
 
13201
      # and later when we are not doing run time linking.
 
13202
      library_names_spec='${libname}${release}.a $libname.a'
 
13203
      soname_spec='${libname}${release}${shared_ext}$major'
 
13204
    fi
 
13205
    shlibpath_var=LIBPATH
 
13206
  fi
 
13207
  ;;
 
13208
 
 
13209
amigaos*)
 
13210
  library_names_spec='$libname.ixlibrary $libname.a'
 
13211
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13212
  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'
 
13213
  ;;
 
13214
 
 
13215
beos*)
 
13216
  library_names_spec='${libname}${shared_ext}'
 
13217
  dynamic_linker="$host_os ld.so"
 
13218
  shlibpath_var=LIBRARY_PATH
 
13219
  ;;
 
13220
 
 
13221
bsdi[45]*)
 
13222
  version_type=linux
 
13223
  need_version=no
 
13224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13225
  soname_spec='${libname}${release}${shared_ext}$major'
 
13226
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13227
  shlibpath_var=LD_LIBRARY_PATH
 
13228
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13229
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13230
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13231
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13232
  # libtool to hard-code these into programs
 
13233
  ;;
 
13234
 
 
13235
cygwin* | mingw* | pw32*)
 
13236
  version_type=windows
 
13237
  shrext_cmds=".dll"
 
13238
  need_version=no
 
13239
  need_lib_prefix=no
 
13240
 
 
13241
  case $GCC,$host_os in
 
13242
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13243
    library_names_spec='$libname.dll.a'
 
13244
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13245
    postinstall_cmds='base_file=`basename \${file}`~
 
13246
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13247
      dldir=$destdir/`dirname \$dlpath`~
 
13248
      test -d \$dldir || mkdir -p \$dldir~
 
13249
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13250
      chmod a+x \$dldir/$dlname'
 
13251
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13252
      dlpath=$dir/\$dldll~
 
13253
       $rm \$dlpath'
 
13254
    shlibpath_overrides_runpath=yes
 
13255
 
 
13256
    case $host_os in
 
13257
    cygwin*)
 
13258
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13259
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13260
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13261
      ;;
 
13262
    mingw*)
 
13263
      # MinGW DLLs use traditional 'lib' prefix
 
13264
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13265
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13266
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13267
        # It is most probably a Windows format PATH printed by
 
13268
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13269
        # path with ; separators, and with drive letters. We can handle the
 
13270
        # drive letters (cygwin fileutils understands them), so leave them,
 
13271
        # especially as we might pass files found there to a mingw objdump,
 
13272
        # which wouldn't understand a cygwinified path. Ahh.
 
13273
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13274
      else
 
13275
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13276
      fi
 
13277
      ;;
 
13278
    pw32*)
 
13279
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13280
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13281
      ;;
 
13282
    esac
 
13283
    ;;
 
13284
 
 
13285
  *)
 
13286
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13287
    ;;
 
13288
  esac
 
13289
  dynamic_linker='Win32 ld.exe'
 
13290
  # FIXME: first we should search . and the directory the executable is in
 
13291
  shlibpath_var=PATH
 
13292
  ;;
 
13293
 
 
13294
darwin* | rhapsody*)
 
13295
  dynamic_linker="$host_os dyld"
 
13296
  version_type=darwin
 
13297
  need_lib_prefix=no
 
13298
  need_version=no
 
13299
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13300
  soname_spec='${libname}${release}${major}$shared_ext'
 
13301
  shlibpath_overrides_runpath=yes
 
13302
  shlibpath_var=DYLD_LIBRARY_PATH
 
13303
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13304
 
 
13305
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13306
  ;;
 
13307
 
 
13308
dgux*)
 
13309
  version_type=linux
 
13310
  need_lib_prefix=no
 
13311
  need_version=no
 
13312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13313
  soname_spec='${libname}${release}${shared_ext}$major'
 
13314
  shlibpath_var=LD_LIBRARY_PATH
 
13315
  ;;
 
13316
 
 
13317
freebsd1*)
 
13318
  dynamic_linker=no
 
13319
  ;;
 
13320
 
 
13321
freebsd* | dragonfly*)
 
13322
  # DragonFly does not have aout.  When/if they implement a new
 
13323
  # versioning mechanism, adjust this.
 
13324
  if test -x /usr/bin/objformat; then
 
13325
    objformat=`/usr/bin/objformat`
 
13326
  else
 
13327
    case $host_os in
 
13328
    freebsd[123]*) objformat=aout ;;
 
13329
    *) objformat=elf ;;
 
13330
    esac
 
13331
  fi
 
13332
  version_type=freebsd-$objformat
 
13333
  case $version_type in
 
13334
    freebsd-elf*)
 
13335
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13336
      need_version=no
 
13337
      need_lib_prefix=no
 
13338
      ;;
 
13339
    freebsd-*)
 
13340
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13341
      need_version=yes
 
13342
      ;;
 
13343
  esac
 
13344
  shlibpath_var=LD_LIBRARY_PATH
 
13345
  case $host_os in
 
13346
  freebsd2*)
 
13347
    shlibpath_overrides_runpath=yes
 
13348
    ;;
 
13349
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13350
    shlibpath_overrides_runpath=yes
 
13351
    hardcode_into_libs=yes
 
13352
    ;;
 
13353
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13354
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13355
    shlibpath_overrides_runpath=no
 
13356
    hardcode_into_libs=yes
 
13357
    ;;
 
13358
  *) # from 4.6 on, and DragonFly
 
13359
    shlibpath_overrides_runpath=yes
 
13360
    hardcode_into_libs=yes
 
13361
    ;;
 
13362
  esac
 
13363
  ;;
 
13364
 
 
13365
gnu*)
 
13366
  version_type=linux
 
13367
  need_lib_prefix=no
 
13368
  need_version=no
 
13369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13370
  soname_spec='${libname}${release}${shared_ext}$major'
 
13371
  shlibpath_var=LD_LIBRARY_PATH
 
13372
  hardcode_into_libs=yes
 
13373
  ;;
 
13374
 
 
13375
hpux9* | hpux10* | hpux11*)
 
13376
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13377
  # link against other versions.
 
13378
  version_type=sunos
 
13379
  need_lib_prefix=no
 
13380
  need_version=no
 
13381
  case $host_cpu in
 
13382
  ia64*)
 
13383
    shrext_cmds='.so'
 
13384
    hardcode_into_libs=yes
 
13385
    dynamic_linker="$host_os dld.so"
 
13386
    shlibpath_var=LD_LIBRARY_PATH
 
13387
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13388
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13389
    soname_spec='${libname}${release}${shared_ext}$major'
 
13390
    if test "X$HPUX_IA64_MODE" = X32; then
 
13391
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13392
    else
 
13393
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13394
    fi
 
13395
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13396
    ;;
 
13397
   hppa*64*)
 
13398
     shrext_cmds='.sl'
 
13399
     hardcode_into_libs=yes
 
13400
     dynamic_linker="$host_os dld.sl"
 
13401
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13402
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13403
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13404
     soname_spec='${libname}${release}${shared_ext}$major'
 
13405
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13406
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13407
     ;;
 
13408
   *)
 
13409
    shrext_cmds='.sl'
 
13410
    dynamic_linker="$host_os dld.sl"
 
13411
    shlibpath_var=SHLIB_PATH
 
13412
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13413
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13414
    soname_spec='${libname}${release}${shared_ext}$major'
 
13415
    ;;
 
13416
  esac
 
13417
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13418
  postinstall_cmds='chmod 555 $lib'
 
13419
  ;;
 
13420
 
 
13421
interix[3-9]*)
 
13422
  version_type=linux
 
13423
  need_lib_prefix=no
 
13424
  need_version=no
 
13425
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13426
  soname_spec='${libname}${release}${shared_ext}$major'
 
13427
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13428
  shlibpath_var=LD_LIBRARY_PATH
 
13429
  shlibpath_overrides_runpath=no
 
13430
  hardcode_into_libs=yes
 
13431
  ;;
 
13432
 
 
13433
irix5* | irix6* | nonstopux*)
 
13434
  case $host_os in
 
13435
    nonstopux*) version_type=nonstopux ;;
 
13436
    *)
 
13437
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13438
                version_type=linux
 
13439
        else
 
13440
                version_type=irix
 
13441
        fi ;;
 
13442
  esac
 
13443
  need_lib_prefix=no
 
13444
  need_version=no
 
13445
  soname_spec='${libname}${release}${shared_ext}$major'
 
13446
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13447
  case $host_os in
 
13448
  irix5* | nonstopux*)
 
13449
    libsuff= shlibsuff=
 
13450
    ;;
 
13451
  *)
 
13452
    case $LD in # libtool.m4 will add one of these switches to LD
 
13453
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13454
      libsuff= shlibsuff= libmagic=32-bit;;
 
13455
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13456
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13457
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13458
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13459
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13460
    esac
 
13461
    ;;
 
13462
  esac
 
13463
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13464
  shlibpath_overrides_runpath=no
 
13465
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13466
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13467
  hardcode_into_libs=yes
 
13468
  ;;
 
13469
 
 
13470
# No shared lib support for Linux oldld, aout, or coff.
 
13471
linux*oldld* | linux*aout* | linux*coff*)
 
13472
  dynamic_linker=no
 
13473
  ;;
 
13474
 
 
13475
# This must be Linux ELF.
 
13476
linux* | k*bsd*-gnu)
 
13477
  version_type=linux
 
13478
  need_lib_prefix=no
 
13479
  need_version=no
 
13480
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13481
  soname_spec='${libname}${release}${shared_ext}$major'
 
13482
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13483
  shlibpath_var=LD_LIBRARY_PATH
 
13484
  shlibpath_overrides_runpath=no
 
13485
  # This implies no fast_install, which is unacceptable.
 
13486
  # Some rework will be needed to allow for fast_install
 
13487
  # before this can be enabled.
 
13488
  hardcode_into_libs=yes
 
13489
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13490
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13491
 
 
13492
  # Append ld.so.conf contents to the search path
 
13493
  if test -f /etc/ld.so.conf; then
 
13494
    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' ' '`
 
13495
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13496
  fi
 
13497
 
 
13498
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13499
  # powerpc, because MkLinux only supported shared libraries with the
 
13500
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13501
  # most powerpc-linux boxes support dynamic linking these days and
 
13502
  # people can always --disable-shared, the test was removed, and we
 
13503
  # assume the GNU/Linux dynamic linker is in use.
 
13504
  dynamic_linker='GNU/Linux ld.so'
 
13505
  ;;
 
13506
 
 
13507
netbsd*)
 
13508
  version_type=sunos
 
13509
  need_lib_prefix=no
 
13510
  need_version=no
 
13511
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13512
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13513
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13514
    dynamic_linker='NetBSD (a.out) ld.so'
 
13515
  else
 
13516
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13517
    soname_spec='${libname}${release}${shared_ext}$major'
 
13518
    dynamic_linker='NetBSD ld.elf_so'
 
13519
  fi
 
13520
  shlibpath_var=LD_LIBRARY_PATH
 
13521
  shlibpath_overrides_runpath=yes
 
13522
  hardcode_into_libs=yes
 
13523
  ;;
 
13524
 
 
13525
newsos6)
 
13526
  version_type=linux
 
13527
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13528
  shlibpath_var=LD_LIBRARY_PATH
 
13529
  shlibpath_overrides_runpath=yes
 
13530
  ;;
 
13531
 
 
13532
nto-qnx*)
 
13533
  version_type=linux
 
13534
  need_lib_prefix=no
 
13535
  need_version=no
 
13536
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13537
  soname_spec='${libname}${release}${shared_ext}$major'
 
13538
  shlibpath_var=LD_LIBRARY_PATH
 
13539
  shlibpath_overrides_runpath=yes
 
13540
  ;;
 
13541
 
 
13542
openbsd*)
 
13543
  version_type=sunos
 
13544
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13545
  need_lib_prefix=no
 
13546
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13547
  case $host_os in
 
13548
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13549
    *)                         need_version=no  ;;
 
13550
  esac
 
13551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13552
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13553
  shlibpath_var=LD_LIBRARY_PATH
 
13554
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13555
    case $host_os in
 
13556
      openbsd2.[89] | openbsd2.[89].*)
 
13557
        shlibpath_overrides_runpath=no
 
13558
        ;;
 
13559
      *)
 
13560
        shlibpath_overrides_runpath=yes
 
13561
        ;;
 
13562
      esac
 
13563
  else
 
13564
    shlibpath_overrides_runpath=yes
 
13565
  fi
 
13566
  ;;
 
13567
 
 
13568
os2*)
 
13569
  libname_spec='$name'
 
13570
  shrext_cmds=".dll"
 
13571
  need_lib_prefix=no
 
13572
  library_names_spec='$libname${shared_ext} $libname.a'
 
13573
  dynamic_linker='OS/2 ld.exe'
 
13574
  shlibpath_var=LIBPATH
 
13575
  ;;
 
13576
 
 
13577
osf3* | osf4* | osf5*)
 
13578
  version_type=osf
 
13579
  need_lib_prefix=no
 
13580
  need_version=no
 
13581
  soname_spec='${libname}${release}${shared_ext}$major'
 
13582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13583
  shlibpath_var=LD_LIBRARY_PATH
 
13584
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13585
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13586
  ;;
 
13587
 
 
13588
rdos*)
 
13589
  dynamic_linker=no
 
13590
  ;;
 
13591
 
 
13592
solaris*)
 
13593
  version_type=linux
 
13594
  need_lib_prefix=no
 
13595
  need_version=no
 
13596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13597
  soname_spec='${libname}${release}${shared_ext}$major'
 
13598
  shlibpath_var=LD_LIBRARY_PATH
 
13599
  shlibpath_overrides_runpath=yes
 
13600
  hardcode_into_libs=yes
 
13601
  # ldd complains unless libraries are executable
 
13602
  postinstall_cmds='chmod +x $lib'
 
13603
  ;;
 
13604
 
 
13605
sunos4*)
 
13606
  version_type=sunos
 
13607
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13608
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13609
  shlibpath_var=LD_LIBRARY_PATH
 
13610
  shlibpath_overrides_runpath=yes
 
13611
  if test "$with_gnu_ld" = yes; then
 
13612
    need_lib_prefix=no
 
13613
  fi
 
13614
  need_version=yes
 
13615
  ;;
 
13616
 
 
13617
sysv4 | sysv4.3*)
 
13618
  version_type=linux
 
13619
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13620
  soname_spec='${libname}${release}${shared_ext}$major'
 
13621
  shlibpath_var=LD_LIBRARY_PATH
 
13622
  case $host_vendor in
 
13623
    sni)
 
13624
      shlibpath_overrides_runpath=no
 
13625
      need_lib_prefix=no
 
13626
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13627
      runpath_var=LD_RUN_PATH
 
13628
      ;;
 
13629
    siemens)
 
13630
      need_lib_prefix=no
 
13631
      ;;
 
13632
    motorola)
 
13633
      need_lib_prefix=no
 
13634
      need_version=no
 
13635
      shlibpath_overrides_runpath=no
 
13636
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13637
      ;;
 
13638
  esac
 
13639
  ;;
 
13640
 
 
13641
sysv4*MP*)
 
13642
  if test -d /usr/nec ;then
 
13643
    version_type=linux
 
13644
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13645
    soname_spec='$libname${shared_ext}.$major'
 
13646
    shlibpath_var=LD_LIBRARY_PATH
 
13647
  fi
 
13648
  ;;
 
13649
 
 
13650
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13651
  version_type=freebsd-elf
 
13652
  need_lib_prefix=no
 
13653
  need_version=no
 
13654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13655
  soname_spec='${libname}${release}${shared_ext}$major'
 
13656
  shlibpath_var=LD_LIBRARY_PATH
 
13657
  hardcode_into_libs=yes
 
13658
  if test "$with_gnu_ld" = yes; then
 
13659
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13660
    shlibpath_overrides_runpath=no
 
13661
  else
 
13662
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13663
    shlibpath_overrides_runpath=yes
 
13664
    case $host_os in
 
13665
      sco3.2v5*)
 
13666
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13667
        ;;
 
13668
    esac
 
13669
  fi
 
13670
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13671
  ;;
 
13672
 
 
13673
uts4*)
 
13674
  version_type=linux
 
13675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13676
  soname_spec='${libname}${release}${shared_ext}$major'
 
13677
  shlibpath_var=LD_LIBRARY_PATH
 
13678
  ;;
 
13679
 
 
13680
*)
 
13681
  dynamic_linker=no
 
13682
  ;;
 
13683
esac
 
13684
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13685
$as_echo "$dynamic_linker" >&6; }
 
13686
test "$dynamic_linker" = no && can_build_shared=no
 
13687
 
 
13688
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13689
  $as_echo_n "(cached) " >&6
 
13690
else
 
13691
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13692
fi
 
13693
 
 
13694
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13695
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13696
  $as_echo_n "(cached) " >&6
 
13697
else
 
13698
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13699
fi
 
13700
 
 
13701
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13702
 
 
13703
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13704
if test "$GCC" = yes; then
 
13705
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13706
fi
 
13707
 
 
13708
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13709
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
13710
hardcode_action_CXX=
 
13711
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13712
   test -n "$runpath_var_CXX" || \
 
13713
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13714
 
 
13715
  # We can hardcode non-existant directories.
 
13716
  if test "$hardcode_direct_CXX" != no &&
 
13717
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13718
     # have to relink, otherwise we might link with an installed library
 
13719
     # when we should be linking with a yet-to-be-installed one
 
13720
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13721
     test "$hardcode_minus_L_CXX" != no; then
 
13722
    # Linking always hardcodes the temporary library directory.
 
13723
    hardcode_action_CXX=relink
 
13724
  else
 
13725
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13726
    hardcode_action_CXX=immediate
 
13727
  fi
 
13728
else
 
13729
  # We cannot hardcode anything, or else we can only hardcode existing
 
13730
  # directories.
 
13731
  hardcode_action_CXX=unsupported
 
13732
fi
 
13733
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13734
$as_echo "$hardcode_action_CXX" >&6; }
 
13735
 
 
13736
if test "$hardcode_action_CXX" = relink; then
 
13737
  # Fast installation is not supported
 
13738
  enable_fast_install=no
 
13739
elif test "$shlibpath_overrides_runpath" = yes ||
 
13740
     test "$enable_shared" = no; then
 
13741
  # Fast installation is not necessary
 
13742
  enable_fast_install=needless
 
13743
fi
 
13744
 
 
13745
 
 
13746
# The else clause should only fire when bootstrapping the
 
13747
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13748
# with your package, and you will get complaints that there are
 
13749
# no rules to generate ltmain.sh.
 
13750
if test -f "$ltmain"; then
 
13751
  # See if we are running on zsh, and set the options which allow our commands through
 
13752
  # without removal of \ escapes.
 
13753
  if test -n "${ZSH_VERSION+set}" ; then
 
13754
    setopt NO_GLOB_SUBST
 
13755
  fi
 
13756
  # Now quote all the things that may contain metacharacters while being
 
13757
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13758
  # variables and quote the copies for generation of the libtool script.
 
13759
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13760
    SED SHELL STRIP \
 
13761
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13762
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13763
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13764
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13765
    lt_cv_sys_global_symbol_to_c_name_address \
 
13766
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13767
    old_postinstall_cmds old_postuninstall_cmds \
 
13768
    compiler_CXX \
 
13769
    CC_CXX \
 
13770
    LD_CXX \
 
13771
    lt_prog_compiler_wl_CXX \
 
13772
    lt_prog_compiler_pic_CXX \
 
13773
    lt_prog_compiler_static_CXX \
 
13774
    lt_prog_compiler_no_builtin_flag_CXX \
 
13775
    export_dynamic_flag_spec_CXX \
 
13776
    thread_safe_flag_spec_CXX \
 
13777
    whole_archive_flag_spec_CXX \
 
13778
    enable_shared_with_static_runtimes_CXX \
 
13779
    old_archive_cmds_CXX \
 
13780
    old_archive_from_new_cmds_CXX \
 
13781
    predep_objects_CXX \
 
13782
    postdep_objects_CXX \
 
13783
    predeps_CXX \
 
13784
    postdeps_CXX \
 
13785
    compiler_lib_search_path_CXX \
 
13786
    compiler_lib_search_dirs_CXX \
 
13787
    archive_cmds_CXX \
 
13788
    archive_expsym_cmds_CXX \
 
13789
    postinstall_cmds_CXX \
 
13790
    postuninstall_cmds_CXX \
 
13791
    old_archive_from_expsyms_cmds_CXX \
 
13792
    allow_undefined_flag_CXX \
 
13793
    no_undefined_flag_CXX \
 
13794
    export_symbols_cmds_CXX \
 
13795
    hardcode_libdir_flag_spec_CXX \
 
13796
    hardcode_libdir_flag_spec_ld_CXX \
 
13797
    hardcode_libdir_separator_CXX \
 
13798
    hardcode_automatic_CXX \
 
13799
    module_cmds_CXX \
 
13800
    module_expsym_cmds_CXX \
 
13801
    lt_cv_prog_compiler_c_o_CXX \
 
13802
    fix_srcfile_path_CXX \
 
13803
    exclude_expsyms_CXX \
 
13804
    include_expsyms_CXX; do
 
13805
 
 
13806
    case $var in
 
13807
    old_archive_cmds_CXX | \
 
13808
    old_archive_from_new_cmds_CXX | \
 
13809
    archive_cmds_CXX | \
 
13810
    archive_expsym_cmds_CXX | \
 
13811
    module_cmds_CXX | \
 
13812
    module_expsym_cmds_CXX | \
 
13813
    old_archive_from_expsyms_cmds_CXX | \
 
13814
    export_symbols_cmds_CXX | \
 
13815
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13816
    postinstall_cmds | postuninstall_cmds | \
 
13817
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13818
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13819
      # Double-quote double-evaled strings.
 
13820
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13821
      ;;
 
13822
    *)
 
13823
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13824
      ;;
 
13825
    esac
 
13826
  done
 
13827
 
 
13828
  case $lt_echo in
 
13829
  *'\$0 --fallback-echo"')
 
13830
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13831
    ;;
 
13832
  esac
 
13833
 
 
13834
cfgfile="$ofile"
 
13835
 
 
13836
  cat <<__EOF__ >> "$cfgfile"
 
13837
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13838
 
 
13839
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13840
 
 
13841
# Shell to use when invoking shell scripts.
 
13842
SHELL=$lt_SHELL
 
13843
 
 
13844
# Whether or not to build shared libraries.
 
13845
build_libtool_libs=$enable_shared
 
13846
 
 
13847
# Whether or not to build static libraries.
 
13848
build_old_libs=$enable_static
 
13849
 
 
13850
# Whether or not to add -lc for building shared libraries.
 
13851
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13852
 
 
13853
# Whether or not to disallow shared libs when runtime libs are static
 
13854
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13855
 
 
13856
# Whether or not to optimize for fast installation.
 
13857
fast_install=$enable_fast_install
 
13858
 
 
13859
# The host system.
 
13860
host_alias=$host_alias
 
13861
host=$host
 
13862
host_os=$host_os
 
13863
 
 
13864
# The build system.
 
13865
build_alias=$build_alias
 
13866
build=$build
 
13867
build_os=$build_os
 
13868
 
 
13869
# An echo program that does not interpret backslashes.
 
13870
echo=$lt_echo
 
13871
 
 
13872
# The archiver.
 
13873
AR=$lt_AR
 
13874
AR_FLAGS=$lt_AR_FLAGS
 
13875
 
 
13876
# A C compiler.
 
13877
LTCC=$lt_LTCC
 
13878
 
 
13879
# LTCC compiler flags.
 
13880
LTCFLAGS=$lt_LTCFLAGS
 
13881
 
 
13882
# A language-specific compiler.
 
13883
CC=$lt_compiler_CXX
 
13884
 
 
13885
# Is the compiler the GNU C compiler?
 
13886
with_gcc=$GCC_CXX
 
13887
 
 
13888
# An ERE matcher.
 
13889
EGREP=$lt_EGREP
 
13890
 
 
13891
# The linker used to build libraries.
 
13892
LD=$lt_LD_CXX
 
13893
 
 
13894
# Whether we need hard or soft links.
 
13895
LN_S=$lt_LN_S
 
13896
 
 
13897
# A BSD-compatible nm program.
 
13898
NM=$lt_NM
 
13899
 
 
13900
# A symbol stripping program
 
13901
STRIP=$lt_STRIP
 
13902
 
 
13903
# Used to examine libraries when file_magic_cmd begins "file"
 
13904
MAGIC_CMD=$MAGIC_CMD
 
13905
 
 
13906
# Used on cygwin: DLL creation program.
 
13907
DLLTOOL="$DLLTOOL"
 
13908
 
 
13909
# Used on cygwin: object dumper.
 
13910
OBJDUMP="$OBJDUMP"
 
13911
 
 
13912
# Used on cygwin: assembler.
 
13913
AS="$AS"
 
13914
 
 
13915
# The name of the directory that contains temporary libtool files.
 
13916
objdir=$objdir
 
13917
 
 
13918
# How to create reloadable object files.
 
13919
reload_flag=$lt_reload_flag
 
13920
reload_cmds=$lt_reload_cmds
 
13921
 
 
13922
# How to pass a linker flag through the compiler.
 
13923
wl=$lt_lt_prog_compiler_wl_CXX
 
13924
 
 
13925
# Object file suffix (normally "o").
 
13926
objext="$ac_objext"
 
13927
 
 
13928
# Old archive suffix (normally "a").
 
13929
libext="$libext"
 
13930
 
 
13931
# Shared library suffix (normally ".so").
 
13932
shrext_cmds='$shrext_cmds'
 
13933
 
 
13934
# Executable file suffix (normally "").
 
13935
exeext="$exeext"
 
13936
 
 
13937
# Additional compiler flags for building library objects.
 
13938
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13939
pic_mode=$pic_mode
 
13940
 
 
13941
# What is the maximum length of a command?
 
13942
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13943
 
 
13944
# Does compiler simultaneously support -c and -o options?
 
13945
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13946
 
 
13947
# Must we lock files when doing compilation?
 
13948
need_locks=$lt_need_locks
 
13949
 
 
13950
# Do we need the lib prefix for modules?
 
13951
need_lib_prefix=$need_lib_prefix
 
13952
 
 
13953
# Do we need a version for libraries?
 
13954
need_version=$need_version
 
13955
 
 
13956
# Whether dlopen is supported.
 
13957
dlopen_support=$enable_dlopen
 
13958
 
 
13959
# Whether dlopen of programs is supported.
 
13960
dlopen_self=$enable_dlopen_self
 
13961
 
 
13962
# Whether dlopen of statically linked programs is supported.
 
13963
dlopen_self_static=$enable_dlopen_self_static
 
13964
 
 
13965
# Compiler flag to prevent dynamic linking.
 
13966
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13967
 
 
13968
# Compiler flag to turn off builtin functions.
 
13969
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13970
 
 
13971
# Compiler flag to allow reflexive dlopens.
 
13972
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13973
 
 
13974
# Compiler flag to generate shared objects directly from archives.
 
13975
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13976
 
 
13977
# Compiler flag to generate thread-safe objects.
 
13978
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13979
 
 
13980
# Library versioning type.
 
13981
version_type=$version_type
 
13982
 
 
13983
# Format of library name prefix.
 
13984
libname_spec=$lt_libname_spec
 
13985
 
 
13986
# List of archive names.  First name is the real one, the rest are links.
 
13987
# The last name is the one that the linker finds with -lNAME.
 
13988
library_names_spec=$lt_library_names_spec
 
13989
 
 
13990
# The coded name of the library, if different from the real name.
 
13991
soname_spec=$lt_soname_spec
 
13992
 
 
13993
# Commands used to build and install an old-style archive.
 
13994
RANLIB=$lt_RANLIB
 
13995
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13996
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13997
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13998
 
 
13999
# Create an old-style archive from a shared archive.
 
14000
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14001
 
 
14002
# Create a temporary old-style archive to link instead of a shared archive.
 
14003
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14004
 
 
14005
# Commands used to build and install a shared archive.
 
14006
archive_cmds=$lt_archive_cmds_CXX
 
14007
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14008
postinstall_cmds=$lt_postinstall_cmds
 
14009
postuninstall_cmds=$lt_postuninstall_cmds
 
14010
 
 
14011
# Commands used to build a loadable module (assumed same as above if empty)
 
14012
module_cmds=$lt_module_cmds_CXX
 
14013
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14014
 
 
14015
# Commands to strip libraries.
 
14016
old_striplib=$lt_old_striplib
 
14017
striplib=$lt_striplib
 
14018
 
 
14019
# Dependencies to place before the objects being linked to create a
 
14020
# shared library.
 
14021
predep_objects=$lt_predep_objects_CXX
 
14022
 
 
14023
# Dependencies to place after the objects being linked to create a
 
14024
# shared library.
 
14025
postdep_objects=$lt_postdep_objects_CXX
 
14026
 
 
14027
# Dependencies to place before the objects being linked to create a
 
14028
# shared library.
 
14029
predeps=$lt_predeps_CXX
 
14030
 
 
14031
# Dependencies to place after the objects being linked to create a
 
14032
# shared library.
 
14033
postdeps=$lt_postdeps_CXX
 
14034
 
 
14035
# The directories searched by this compiler when creating a shared
 
14036
# library
 
14037
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14038
 
 
14039
# The library search path used internally by the compiler when linking
 
14040
# a shared library.
 
14041
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14042
 
 
14043
# Method to check whether dependent libraries are shared objects.
 
14044
deplibs_check_method=$lt_deplibs_check_method
 
14045
 
 
14046
# Command to use when deplibs_check_method == file_magic.
 
14047
file_magic_cmd=$lt_file_magic_cmd
 
14048
 
 
14049
# Flag that allows shared libraries with undefined symbols to be built.
 
14050
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14051
 
 
14052
# Flag that forces no undefined symbols.
 
14053
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14054
 
 
14055
# Commands used to finish a libtool library installation in a directory.
 
14056
finish_cmds=$lt_finish_cmds
 
14057
 
 
14058
# Same as above, but a single script fragment to be evaled but not shown.
 
14059
finish_eval=$lt_finish_eval
 
14060
 
 
14061
# Take the output of nm and produce a listing of raw symbols and C names.
 
14062
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14063
 
 
14064
# Transform the output of nm in a proper C declaration
 
14065
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14066
 
 
14067
# Transform the output of nm in a C name address pair
 
14068
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14069
 
 
14070
# This is the shared library runtime path variable.
 
14071
runpath_var=$runpath_var
 
14072
 
 
14073
# This is the shared library path variable.
 
14074
shlibpath_var=$shlibpath_var
 
14075
 
 
14076
# Is shlibpath searched before the hard-coded library search path?
 
14077
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14078
 
 
14079
# How to hardcode a shared library path into an executable.
 
14080
hardcode_action=$hardcode_action_CXX
 
14081
 
 
14082
# Whether we should hardcode library paths into libraries.
 
14083
hardcode_into_libs=$hardcode_into_libs
 
14084
 
 
14085
# Flag to hardcode \$libdir into a binary during linking.
 
14086
# This must work even if \$libdir does not exist.
 
14087
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14088
 
 
14089
# If ld is used when linking, flag to hardcode \$libdir into
 
14090
# a binary during linking. This must work even if \$libdir does
 
14091
# not exist.
 
14092
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14093
 
 
14094
# Whether we need a single -rpath flag with a separated argument.
 
14095
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14096
 
 
14097
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14098
# resulting binary.
 
14099
hardcode_direct=$hardcode_direct_CXX
 
14100
 
 
14101
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14102
# resulting binary.
 
14103
hardcode_minus_L=$hardcode_minus_L_CXX
 
14104
 
 
14105
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14106
# the resulting binary.
 
14107
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14108
 
 
14109
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14110
# and all subsequent libraries and executables linked against it.
 
14111
hardcode_automatic=$hardcode_automatic_CXX
 
14112
 
 
14113
# Variables whose values should be saved in libtool wrapper scripts and
 
14114
# restored at relink time.
 
14115
variables_saved_for_relink="$variables_saved_for_relink"
 
14116
 
 
14117
# Whether libtool must link a program against all its dependency libraries.
 
14118
link_all_deplibs=$link_all_deplibs_CXX
 
14119
 
 
14120
# Compile-time system search path for libraries
 
14121
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14122
 
 
14123
# Run-time system search path for libraries
 
14124
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14125
 
 
14126
# Fix the shell variable \$srcfile for the compiler.
 
14127
fix_srcfile_path=$lt_fix_srcfile_path
 
14128
 
 
14129
# Set to yes if exported symbols are required.
 
14130
always_export_symbols=$always_export_symbols_CXX
 
14131
 
 
14132
# The commands to list exported symbols.
 
14133
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14134
 
 
14135
# The commands to extract the exported symbol list from a shared archive.
 
14136
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14137
 
 
14138
# Symbols that should not be listed in the preloaded symbols.
 
14139
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14140
 
 
14141
# Symbols that must always be exported.
 
14142
include_expsyms=$lt_include_expsyms_CXX
 
14143
 
 
14144
# ### END LIBTOOL TAG CONFIG: $tagname
 
14145
 
 
14146
__EOF__
 
14147
 
 
14148
 
 
14149
else
 
14150
  # If there is no Makefile yet, we rely on a make rule to execute
 
14151
  # `config.status --recheck' to rerun these tests and create the
 
14152
  # libtool script then.
 
14153
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14154
  if test -f "$ltmain_in"; then
 
14155
    test -f Makefile && make "$ltmain"
 
14156
  fi
 
14157
fi
 
14158
 
 
14159
 
 
14160
ac_ext=c
 
14161
ac_cpp='$CPP $CPPFLAGS'
 
14162
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14163
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14164
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14165
 
 
14166
CC=$lt_save_CC
 
14167
LDCXX=$LD
 
14168
LD=$lt_save_LD
 
14169
GCC=$lt_save_GCC
 
14170
with_gnu_ldcxx=$with_gnu_ld
 
14171
with_gnu_ld=$lt_save_with_gnu_ld
 
14172
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14173
lt_cv_path_LD=$lt_save_path_LD
 
14174
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14175
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14176
 
 
14177
        else
 
14178
          tagname=""
 
14179
        fi
 
14180
        ;;
 
14181
 
 
14182
      F77)
 
14183
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14184
 
 
14185
ac_ext=f
 
14186
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14187
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14188
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14189
 
 
14190
 
 
14191
archive_cmds_need_lc_F77=no
 
14192
allow_undefined_flag_F77=
 
14193
always_export_symbols_F77=no
 
14194
archive_expsym_cmds_F77=
 
14195
export_dynamic_flag_spec_F77=
 
14196
hardcode_direct_F77=no
 
14197
hardcode_libdir_flag_spec_F77=
 
14198
hardcode_libdir_flag_spec_ld_F77=
 
14199
hardcode_libdir_separator_F77=
 
14200
hardcode_minus_L_F77=no
 
14201
hardcode_automatic_F77=no
 
14202
module_cmds_F77=
 
14203
module_expsym_cmds_F77=
 
14204
link_all_deplibs_F77=unknown
 
14205
old_archive_cmds_F77=$old_archive_cmds
 
14206
no_undefined_flag_F77=
 
14207
whole_archive_flag_spec_F77=
 
14208
enable_shared_with_static_runtimes_F77=no
 
14209
 
 
14210
# Source file extension for f77 test sources.
 
14211
ac_ext=f
 
14212
 
 
14213
# Object file extension for compiled f77 test sources.
 
14214
objext=o
 
14215
objext_F77=$objext
 
14216
 
 
14217
# Code to be used in simple compile tests
 
14218
lt_simple_compile_test_code="\
 
14219
      subroutine t
 
14220
      return
 
14221
      end
 
14222
"
 
14223
 
 
14224
# Code to be used in simple link tests
 
14225
lt_simple_link_test_code="\
 
14226
      program t
 
14227
      end
 
14228
"
 
14229
 
 
14230
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14231
 
 
14232
# If no C compiler was specified, use CC.
 
14233
LTCC=${LTCC-"$CC"}
 
14234
 
 
14235
# If no C compiler flags were specified, use CFLAGS.
 
14236
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14237
 
 
14238
# Allow CC to be a program name with arguments.
 
14239
compiler=$CC
 
14240
 
 
14241
 
 
14242
# save warnings/boilerplate of simple test code
 
14243
ac_outfile=conftest.$ac_objext
 
14244
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14245
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14246
_lt_compiler_boilerplate=`cat conftest.err`
 
14247
$rm conftest*
 
14248
 
 
14249
ac_outfile=conftest.$ac_objext
 
14250
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14251
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14252
_lt_linker_boilerplate=`cat conftest.err`
 
14253
$rm -r conftest*
 
14254
 
 
14255
 
 
14256
# Allow CC to be a program name with arguments.
 
14257
lt_save_CC="$CC"
 
14258
CC=${F77-"f77"}
 
14259
compiler=$CC
 
14260
compiler_F77=$CC
 
14261
for cc_temp in $compiler""; do
 
14262
  case $cc_temp in
 
14263
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14264
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14265
    \-*) ;;
 
14266
    *) break;;
 
14267
  esac
 
14268
done
 
14269
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14270
 
 
14271
 
 
14272
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14273
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14274
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14275
$as_echo "$can_build_shared" >&6; }
 
14276
 
 
14277
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14278
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14279
test "$can_build_shared" = "no" && enable_shared=no
 
14280
 
 
14281
# On AIX, shared libraries and static libraries use the same namespace, and
 
14282
# are all built from PIC.
 
14283
case $host_os in
 
14284
aix3*)
 
14285
  test "$enable_shared" = yes && enable_static=no
 
14286
  if test -n "$RANLIB"; then
 
14287
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14288
    postinstall_cmds='$RANLIB $lib'
 
14289
  fi
 
14290
  ;;
 
14291
aix[4-9]*)
 
14292
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14293
    test "$enable_shared" = yes && enable_static=no
 
14294
  fi
 
14295
  ;;
 
14296
esac
 
14297
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14298
$as_echo "$enable_shared" >&6; }
 
14299
 
 
14300
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14301
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14302
# Make sure either enable_shared or enable_static is yes.
 
14303
test "$enable_shared" = yes || enable_static=yes
 
14304
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14305
$as_echo "$enable_static" >&6; }
 
14306
 
 
14307
GCC_F77="$G77"
 
14308
LD_F77="$LD"
 
14309
 
 
14310
lt_prog_compiler_wl_F77=
 
14311
lt_prog_compiler_pic_F77=
 
14312
lt_prog_compiler_static_F77=
 
14313
 
 
14314
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14315
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14316
 
 
14317
  if test "$GCC" = yes; then
 
14318
    lt_prog_compiler_wl_F77='-Wl,'
 
14319
    lt_prog_compiler_static_F77='-static'
 
14320
 
 
14321
    case $host_os in
 
14322
      aix*)
 
14323
      # All AIX code is PIC.
 
14324
      if test "$host_cpu" = ia64; then
 
14325
        # AIX 5 now supports IA64 processor
 
14326
        lt_prog_compiler_static_F77='-Bstatic'
 
14327
      fi
 
14328
      ;;
 
14329
 
 
14330
    amigaos*)
 
14331
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14332
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14333
      # like `-m68040'.
 
14334
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14335
      ;;
 
14336
 
 
14337
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14338
      # PIC is the default for these OSes.
 
14339
      ;;
 
14340
 
 
14341
    mingw* | cygwin* | pw32* | os2*)
 
14342
      # This hack is so that the source file can tell whether it is being
 
14343
      # built for inclusion in a dll (and should export symbols for example).
 
14344
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14345
      # (--disable-auto-import) libraries
 
14346
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14347
      ;;
 
14348
 
 
14349
    darwin* | rhapsody*)
 
14350
      # PIC is the default on this platform
 
14351
      # Common symbols not allowed in MH_DYLIB files
 
14352
      lt_prog_compiler_pic_F77='-fno-common'
 
14353
      ;;
 
14354
 
 
14355
    interix[3-9]*)
 
14356
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14357
      # Instead, we relocate shared libraries at runtime.
 
14358
      ;;
 
14359
 
 
14360
    msdosdjgpp*)
 
14361
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14362
      # on systems that don't support them.
 
14363
      lt_prog_compiler_can_build_shared_F77=no
 
14364
      enable_shared=no
 
14365
      ;;
 
14366
 
 
14367
    sysv4*MP*)
 
14368
      if test -d /usr/nec; then
 
14369
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14370
      fi
 
14371
      ;;
 
14372
 
 
14373
    hpux*)
 
14374
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14375
      # not for PA HP-UX.
 
14376
      case $host_cpu in
 
14377
      hppa*64*|ia64*)
 
14378
        # +Z the default
 
14379
        ;;
 
14380
      *)
 
14381
        lt_prog_compiler_pic_F77='-fPIC'
 
14382
        ;;
 
14383
      esac
 
14384
      ;;
 
14385
 
 
14386
    *)
 
14387
      lt_prog_compiler_pic_F77='-fPIC'
 
14388
      ;;
 
14389
    esac
 
14390
  else
 
14391
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14392
    case $host_os in
 
14393
    aix*)
 
14394
      lt_prog_compiler_wl_F77='-Wl,'
 
14395
      if test "$host_cpu" = ia64; then
 
14396
        # AIX 5 now supports IA64 processor
 
14397
        lt_prog_compiler_static_F77='-Bstatic'
 
14398
      else
 
14399
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14400
      fi
 
14401
      ;;
 
14402
      darwin*)
 
14403
        # PIC is the default on this platform
 
14404
        # Common symbols not allowed in MH_DYLIB files
 
14405
       case $cc_basename in
 
14406
         xlc*)
 
14407
         lt_prog_compiler_pic_F77='-qnocommon'
 
14408
         lt_prog_compiler_wl_F77='-Wl,'
 
14409
         ;;
 
14410
       esac
 
14411
       ;;
 
14412
 
 
14413
    mingw* | cygwin* | pw32* | os2*)
 
14414
      # This hack is so that the source file can tell whether it is being
 
14415
      # built for inclusion in a dll (and should export symbols for example).
 
14416
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14417
      ;;
 
14418
 
 
14419
    hpux9* | hpux10* | hpux11*)
 
14420
      lt_prog_compiler_wl_F77='-Wl,'
 
14421
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14422
      # not for PA HP-UX.
 
14423
      case $host_cpu in
 
14424
      hppa*64*|ia64*)
 
14425
        # +Z the default
 
14426
        ;;
 
14427
      *)
 
14428
        lt_prog_compiler_pic_F77='+Z'
 
14429
        ;;
 
14430
      esac
 
14431
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14432
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14433
      ;;
 
14434
 
 
14435
    irix5* | irix6* | nonstopux*)
 
14436
      lt_prog_compiler_wl_F77='-Wl,'
 
14437
      # PIC (with -KPIC) is the default.
 
14438
      lt_prog_compiler_static_F77='-non_shared'
 
14439
      ;;
 
14440
 
 
14441
    newsos6)
 
14442
      lt_prog_compiler_pic_F77='-KPIC'
 
14443
      lt_prog_compiler_static_F77='-Bstatic'
 
14444
      ;;
 
14445
 
 
14446
    linux* | k*bsd*-gnu)
 
14447
      case $cc_basename in
 
14448
      icc* | ecc*)
 
14449
        lt_prog_compiler_wl_F77='-Wl,'
 
14450
        lt_prog_compiler_pic_F77='-KPIC'
 
14451
        lt_prog_compiler_static_F77='-static'
 
14452
        ;;
 
14453
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14454
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14455
        # which looks to be a dead project)
 
14456
        lt_prog_compiler_wl_F77='-Wl,'
 
14457
        lt_prog_compiler_pic_F77='-fpic'
 
14458
        lt_prog_compiler_static_F77='-Bstatic'
 
14459
        ;;
 
14460
      ccc*)
 
14461
        lt_prog_compiler_wl_F77='-Wl,'
 
14462
        # All Alpha code is PIC.
 
14463
        lt_prog_compiler_static_F77='-non_shared'
 
14464
        ;;
 
14465
      *)
 
14466
        case `$CC -V 2>&1 | sed 5q` in
 
14467
        *Sun\ C*)
 
14468
          # Sun C 5.9
 
14469
          lt_prog_compiler_pic_F77='-KPIC'
 
14470
          lt_prog_compiler_static_F77='-Bstatic'
 
14471
          lt_prog_compiler_wl_F77='-Wl,'
 
14472
          ;;
 
14473
        *Sun\ F*)
 
14474
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14475
          lt_prog_compiler_pic_F77='-KPIC'
 
14476
          lt_prog_compiler_static_F77='-Bstatic'
 
14477
          lt_prog_compiler_wl_F77=''
 
14478
          ;;
 
14479
        esac
 
14480
        ;;
 
14481
      esac
 
14482
      ;;
 
14483
 
 
14484
    osf3* | osf4* | osf5*)
 
14485
      lt_prog_compiler_wl_F77='-Wl,'
 
14486
      # All OSF/1 code is PIC.
 
14487
      lt_prog_compiler_static_F77='-non_shared'
 
14488
      ;;
 
14489
 
 
14490
    rdos*)
 
14491
      lt_prog_compiler_static_F77='-non_shared'
 
14492
      ;;
 
14493
 
 
14494
    solaris*)
 
14495
      lt_prog_compiler_pic_F77='-KPIC'
 
14496
      lt_prog_compiler_static_F77='-Bstatic'
 
14497
      case $cc_basename in
 
14498
      f77* | f90* | f95*)
 
14499
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14500
      *)
 
14501
        lt_prog_compiler_wl_F77='-Wl,';;
 
14502
      esac
 
14503
      ;;
 
14504
 
 
14505
    sunos4*)
 
14506
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14507
      lt_prog_compiler_pic_F77='-PIC'
 
14508
      lt_prog_compiler_static_F77='-Bstatic'
 
14509
      ;;
 
14510
 
 
14511
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14512
      lt_prog_compiler_wl_F77='-Wl,'
 
14513
      lt_prog_compiler_pic_F77='-KPIC'
 
14514
      lt_prog_compiler_static_F77='-Bstatic'
 
14515
      ;;
 
14516
 
 
14517
    sysv4*MP*)
 
14518
      if test -d /usr/nec ;then
 
14519
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14520
        lt_prog_compiler_static_F77='-Bstatic'
 
14521
      fi
 
14522
      ;;
 
14523
 
 
14524
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14525
      lt_prog_compiler_wl_F77='-Wl,'
 
14526
      lt_prog_compiler_pic_F77='-KPIC'
 
14527
      lt_prog_compiler_static_F77='-Bstatic'
 
14528
      ;;
 
14529
 
 
14530
    unicos*)
 
14531
      lt_prog_compiler_wl_F77='-Wl,'
 
14532
      lt_prog_compiler_can_build_shared_F77=no
 
14533
      ;;
 
14534
 
 
14535
    uts4*)
 
14536
      lt_prog_compiler_pic_F77='-pic'
 
14537
      lt_prog_compiler_static_F77='-Bstatic'
 
14538
      ;;
 
14539
 
 
14540
    *)
 
14541
      lt_prog_compiler_can_build_shared_F77=no
 
14542
      ;;
 
14543
    esac
 
14544
  fi
 
14545
 
 
14546
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14547
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14548
 
 
14549
#
 
14550
# Check to make sure the PIC flag actually works.
 
14551
#
 
14552
if test -n "$lt_prog_compiler_pic_F77"; then
 
14553
 
 
14554
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14555
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14556
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14557
  $as_echo_n "(cached) " >&6
 
14558
else
 
14559
  lt_cv_prog_compiler_pic_works_F77=no
 
14560
  ac_outfile=conftest.$ac_objext
 
14561
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14562
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14563
   # Insert the option either (1) after the last *FLAGS variable, or
 
14564
   # (2) before a word containing "conftest.", or (3) at the end.
 
14565
   # Note that $ac_compile itself does not contain backslashes and begins
 
14566
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14567
   # The option is referenced via a variable to avoid confusing sed.
 
14568
   lt_compile=`echo "$ac_compile" | $SED \
 
14569
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14570
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14571
   -e 's:$: $lt_compiler_flag:'`
 
14572
   (eval echo "\"\$as_me:14572: $lt_compile\"" >&5)
 
14573
   (eval "$lt_compile" 2>conftest.err)
 
14574
   ac_status=$?
 
14575
   cat conftest.err >&5
 
14576
   echo "$as_me:14576: \$? = $ac_status" >&5
 
14577
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14578
     # The compiler can only warn and ignore the option if not recognized
 
14579
     # So say no if there are warnings other than the usual output.
 
14580
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14581
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14582
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14583
       lt_cv_prog_compiler_pic_works_F77=yes
 
14584
     fi
 
14585
   fi
 
14586
   $rm conftest*
 
14587
 
 
14588
fi
 
14589
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14590
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14591
 
 
14592
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14593
    case $lt_prog_compiler_pic_F77 in
 
14594
     "" | " "*) ;;
 
14595
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14596
     esac
 
14597
else
 
14598
    lt_prog_compiler_pic_F77=
 
14599
     lt_prog_compiler_can_build_shared_F77=no
 
14600
fi
 
14601
 
 
14602
fi
 
14603
case $host_os in
 
14604
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14605
  *djgpp*)
 
14606
    lt_prog_compiler_pic_F77=
 
14607
    ;;
 
14608
  *)
 
14609
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14610
    ;;
 
14611
esac
 
14612
 
 
14613
#
 
14614
# Check to make sure the static flag actually works.
 
14615
#
 
14616
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14617
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14618
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14619
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14620
  $as_echo_n "(cached) " >&6
 
14621
else
 
14622
  lt_cv_prog_compiler_static_works_F77=no
 
14623
   save_LDFLAGS="$LDFLAGS"
 
14624
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14625
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14626
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14627
     # The linker can only warn and ignore the option if not recognized
 
14628
     # So say no if there are warnings
 
14629
     if test -s conftest.err; then
 
14630
       # Append any errors to the config.log.
 
14631
       cat conftest.err 1>&5
 
14632
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14633
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14634
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14635
         lt_cv_prog_compiler_static_works_F77=yes
 
14636
       fi
 
14637
     else
 
14638
       lt_cv_prog_compiler_static_works_F77=yes
 
14639
     fi
 
14640
   fi
 
14641
   $rm -r conftest*
 
14642
   LDFLAGS="$save_LDFLAGS"
 
14643
 
 
14644
fi
 
14645
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14646
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14647
 
 
14648
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14649
    :
 
14650
else
 
14651
    lt_prog_compiler_static_F77=
 
14652
fi
 
14653
 
 
14654
 
 
14655
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14656
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14657
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14658
  $as_echo_n "(cached) " >&6
 
14659
else
 
14660
  lt_cv_prog_compiler_c_o_F77=no
 
14661
   $rm -r conftest 2>/dev/null
 
14662
   mkdir conftest
 
14663
   cd conftest
 
14664
   mkdir out
 
14665
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14666
 
 
14667
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14668
   # Insert the option either (1) after the last *FLAGS variable, or
 
14669
   # (2) before a word containing "conftest.", or (3) at the end.
 
14670
   # Note that $ac_compile itself does not contain backslashes and begins
 
14671
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14672
   lt_compile=`echo "$ac_compile" | $SED \
 
14673
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14674
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14675
   -e 's:$: $lt_compiler_flag:'`
 
14676
   (eval echo "\"\$as_me:14676: $lt_compile\"" >&5)
 
14677
   (eval "$lt_compile" 2>out/conftest.err)
 
14678
   ac_status=$?
 
14679
   cat out/conftest.err >&5
 
14680
   echo "$as_me:14680: \$? = $ac_status" >&5
 
14681
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14682
   then
 
14683
     # The compiler can only warn and ignore the option if not recognized
 
14684
     # So say no if there are warnings
 
14685
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14686
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14687
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14688
       lt_cv_prog_compiler_c_o_F77=yes
 
14689
     fi
 
14690
   fi
 
14691
   chmod u+w . 2>&5
 
14692
   $rm conftest*
 
14693
   # SGI C++ compiler will create directory out/ii_files/ for
 
14694
   # template instantiation
 
14695
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14696
   $rm out/* && rmdir out
 
14697
   cd ..
 
14698
   rmdir conftest
 
14699
   $rm conftest*
 
14700
 
 
14701
fi
 
14702
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14703
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14704
 
 
14705
 
 
14706
hard_links="nottested"
 
14707
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14708
  # do not overwrite the value of need_locks provided by the user
 
14709
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14710
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14711
  hard_links=yes
 
14712
  $rm conftest*
 
14713
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14714
  touch conftest.a
 
14715
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14716
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14717
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14718
$as_echo "$hard_links" >&6; }
 
14719
  if test "$hard_links" = no; then
 
14720
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14721
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14722
    need_locks=warn
 
14723
  fi
 
14724
else
 
14725
  need_locks=no
 
14726
fi
 
14727
 
 
14728
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14729
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14730
 
 
14731
  runpath_var=
 
14732
  allow_undefined_flag_F77=
 
14733
  enable_shared_with_static_runtimes_F77=no
 
14734
  archive_cmds_F77=
 
14735
  archive_expsym_cmds_F77=
 
14736
  old_archive_From_new_cmds_F77=
 
14737
  old_archive_from_expsyms_cmds_F77=
 
14738
  export_dynamic_flag_spec_F77=
 
14739
  whole_archive_flag_spec_F77=
 
14740
  thread_safe_flag_spec_F77=
 
14741
  hardcode_libdir_flag_spec_F77=
 
14742
  hardcode_libdir_flag_spec_ld_F77=
 
14743
  hardcode_libdir_separator_F77=
 
14744
  hardcode_direct_F77=no
 
14745
  hardcode_minus_L_F77=no
 
14746
  hardcode_shlibpath_var_F77=unsupported
 
14747
  link_all_deplibs_F77=unknown
 
14748
  hardcode_automatic_F77=no
 
14749
  module_cmds_F77=
 
14750
  module_expsym_cmds_F77=
 
14751
  always_export_symbols_F77=no
 
14752
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14753
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14754
  # included in the symbol list
 
14755
  include_expsyms_F77=
 
14756
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14757
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14758
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14759
  # as well as any symbol that contains `d'.
 
14760
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14761
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14762
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14763
  # the symbol is explicitly referenced.  Since portable code cannot
 
14764
  # rely on this symbol name, it's probably fine to never include it in
 
14765
  # preloaded symbol tables.
 
14766
  # Exclude shared library initialization/finalization symbols.
 
14767
  extract_expsyms_cmds=
 
14768
  # Just being paranoid about ensuring that cc_basename is set.
 
14769
  for cc_temp in $compiler""; do
 
14770
  case $cc_temp in
 
14771
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14772
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14773
    \-*) ;;
 
14774
    *) break;;
 
14775
  esac
 
14776
done
 
14777
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14778
 
 
14779
  case $host_os in
 
14780
  cygwin* | mingw* | pw32*)
 
14781
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14782
    # When not using gcc, we currently assume that we are using
 
14783
    # Microsoft Visual C++.
 
14784
    if test "$GCC" != yes; then
 
14785
      with_gnu_ld=no
 
14786
    fi
 
14787
    ;;
 
14788
  interix*)
 
14789
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14790
    with_gnu_ld=yes
 
14791
    ;;
 
14792
  openbsd*)
 
14793
    with_gnu_ld=no
 
14794
    ;;
 
14795
  esac
 
14796
 
 
14797
  ld_shlibs_F77=yes
 
14798
  if test "$with_gnu_ld" = yes; then
 
14799
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14800
    wlarc='${wl}'
 
14801
 
 
14802
    # Set some defaults for GNU ld with shared library support. These
 
14803
    # are reset later if shared libraries are not supported. Putting them
 
14804
    # here allows them to be overridden if necessary.
 
14805
    runpath_var=LD_RUN_PATH
 
14806
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14807
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14808
    # ancient GNU ld didn't support --whole-archive et. al.
 
14809
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14810
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14811
      else
 
14812
        whole_archive_flag_spec_F77=
 
14813
    fi
 
14814
    supports_anon_versioning=no
 
14815
    case `$LD -v 2>/dev/null` in
 
14816
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14817
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14818
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14819
      *\ 2.11.*) ;; # other 2.11 versions
 
14820
      *) supports_anon_versioning=yes ;;
 
14821
    esac
 
14822
 
 
14823
    # See if GNU ld supports shared libraries.
 
14824
    case $host_os in
 
14825
    aix[3-9]*)
 
14826
      # On AIX/PPC, the GNU linker is very broken
 
14827
      if test "$host_cpu" != ia64; then
 
14828
        ld_shlibs_F77=no
 
14829
        cat <<EOF 1>&2
 
14830
 
 
14831
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14832
*** to be unable to reliably create shared libraries on AIX.
 
14833
*** Therefore, libtool is disabling shared libraries support.  If you
 
14834
*** really care for shared libraries, you may want to modify your PATH
 
14835
*** so that a non-GNU linker is found, and then restart.
 
14836
 
 
14837
EOF
 
14838
      fi
 
14839
      ;;
 
14840
 
 
14841
    amigaos*)
 
14842
      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)'
 
14843
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14844
      hardcode_minus_L_F77=yes
 
14845
 
 
14846
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14847
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14848
      # to version 4, is to share data among multiple programs linked
 
14849
      # with the same dynamic library.  Since this doesn't match the
 
14850
      # behavior of shared libraries on other platforms, we can't use
 
14851
      # them.
 
14852
      ld_shlibs_F77=no
 
14853
      ;;
 
14854
 
 
14855
    beos*)
 
14856
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14857
        allow_undefined_flag_F77=unsupported
 
14858
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14859
        # support --undefined.  This deserves some investigation.  FIXME
 
14860
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14861
      else
 
14862
        ld_shlibs_F77=no
 
14863
      fi
 
14864
      ;;
 
14865
 
 
14866
    cygwin* | mingw* | pw32*)
 
14867
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14868
      # as there is no search path for DLLs.
 
14869
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14870
      allow_undefined_flag_F77=unsupported
 
14871
      always_export_symbols_F77=no
 
14872
      enable_shared_with_static_runtimes_F77=yes
 
14873
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14874
 
 
14875
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14876
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14877
        # If the export-symbols file already is a .def file (1st line
 
14878
        # is EXPORTS), use it as is; otherwise, prepend...
 
14879
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14880
          cp $export_symbols $output_objdir/$soname.def;
 
14881
        else
 
14882
          echo EXPORTS > $output_objdir/$soname.def;
 
14883
          cat $export_symbols >> $output_objdir/$soname.def;
 
14884
        fi~
 
14885
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14886
      else
 
14887
        ld_shlibs_F77=no
 
14888
      fi
 
14889
      ;;
 
14890
 
 
14891
    interix[3-9]*)
 
14892
      hardcode_direct_F77=no
 
14893
      hardcode_shlibpath_var_F77=no
 
14894
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14895
      export_dynamic_flag_spec_F77='${wl}-E'
 
14896
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14897
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14898
      # default) and relocated if they conflict, which is a slow very memory
 
14899
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14900
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14901
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14902
      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'
 
14903
      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'
 
14904
      ;;
 
14905
 
 
14906
    gnu* | linux* | k*bsd*-gnu)
 
14907
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14908
        tmp_addflag=
 
14909
        case $cc_basename,$host_cpu in
 
14910
        pgcc*)                          # Portland Group C compiler
 
14911
          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'
 
14912
          tmp_addflag=' $pic_flag'
 
14913
          ;;
 
14914
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14915
          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'
 
14916
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14917
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14918
          tmp_addflag=' -i_dynamic' ;;
 
14919
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14920
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14921
        ifc* | ifort*)                  # Intel Fortran compiler
 
14922
          tmp_addflag=' -nofor_main' ;;
 
14923
        esac
 
14924
        case `$CC -V 2>&1 | sed 5q` in
 
14925
        *Sun\ C*)                       # Sun C 5.9
 
14926
          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'
 
14927
          tmp_sharedflag='-G' ;;
 
14928
        *Sun\ F*)                       # Sun Fortran 8.3
 
14929
          tmp_sharedflag='-G' ;;
 
14930
        *)
 
14931
          tmp_sharedflag='-shared' ;;
 
14932
        esac
 
14933
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14934
 
 
14935
        if test $supports_anon_versioning = yes; then
 
14936
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14937
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14938
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14939
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14940
        fi
 
14941
      else
 
14942
        ld_shlibs_F77=no
 
14943
      fi
 
14944
      ;;
 
14945
 
 
14946
    netbsd*)
 
14947
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14948
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14949
        wlarc=
 
14950
      else
 
14951
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14952
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14953
      fi
 
14954
      ;;
 
14955
 
 
14956
    solaris*)
 
14957
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14958
        ld_shlibs_F77=no
 
14959
        cat <<EOF 1>&2
 
14960
 
 
14961
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14962
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14963
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14964
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14965
*** your PATH or compiler configuration so that the native linker is
 
14966
*** used, and then restart.
 
14967
 
 
14968
EOF
 
14969
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14970
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14971
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14972
      else
 
14973
        ld_shlibs_F77=no
 
14974
      fi
 
14975
      ;;
 
14976
 
 
14977
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14978
      case `$LD -v 2>&1` in
 
14979
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14980
        ld_shlibs_F77=no
 
14981
        cat <<_LT_EOF 1>&2
 
14982
 
 
14983
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14984
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14985
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14986
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14987
*** your PATH or compiler configuration so that the native linker is
 
14988
*** used, and then restart.
 
14989
 
 
14990
_LT_EOF
 
14991
        ;;
 
14992
        *)
 
14993
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14994
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14995
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14996
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14997
          else
 
14998
            ld_shlibs_F77=no
 
14999
          fi
 
15000
        ;;
 
15001
      esac
 
15002
      ;;
 
15003
 
 
15004
    sunos4*)
 
15005
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15006
      wlarc=
 
15007
      hardcode_direct_F77=yes
 
15008
      hardcode_shlibpath_var_F77=no
 
15009
      ;;
 
15010
 
 
15011
    *)
 
15012
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15013
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15014
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15015
      else
 
15016
        ld_shlibs_F77=no
 
15017
      fi
 
15018
      ;;
 
15019
    esac
 
15020
 
 
15021
    if test "$ld_shlibs_F77" = no; then
 
15022
      runpath_var=
 
15023
      hardcode_libdir_flag_spec_F77=
 
15024
      export_dynamic_flag_spec_F77=
 
15025
      whole_archive_flag_spec_F77=
 
15026
    fi
 
15027
  else
 
15028
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15029
    case $host_os in
 
15030
    aix3*)
 
15031
      allow_undefined_flag_F77=unsupported
 
15032
      always_export_symbols_F77=yes
 
15033
      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'
 
15034
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15035
      # are no directories specified by -L.
 
15036
      hardcode_minus_L_F77=yes
 
15037
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15038
        # Neither direct hardcoding nor static linking is supported with a
 
15039
        # broken collect2.
 
15040
        hardcode_direct_F77=unsupported
 
15041
      fi
 
15042
      ;;
 
15043
 
 
15044
    aix[4-9]*)
 
15045
      if test "$host_cpu" = ia64; then
 
15046
        # On IA64, the linker does run time linking by default, so we don't
 
15047
        # have to do anything special.
 
15048
        aix_use_runtimelinking=no
 
15049
        exp_sym_flag='-Bexport'
 
15050
        no_entry_flag=""
 
15051
      else
 
15052
        # If we're using GNU nm, then we don't want the "-C" option.
 
15053
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15054
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15055
          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'
 
15056
        else
 
15057
          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'
 
15058
        fi
 
15059
        aix_use_runtimelinking=no
 
15060
 
 
15061
        # Test if we are trying to use run time linking or normal
 
15062
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15063
        # need to do runtime linking.
 
15064
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15065
          for ld_flag in $LDFLAGS; do
 
15066
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15067
            aix_use_runtimelinking=yes
 
15068
            break
 
15069
          fi
 
15070
          done
 
15071
          ;;
 
15072
        esac
 
15073
 
 
15074
        exp_sym_flag='-bexport'
 
15075
        no_entry_flag='-bnoentry'
 
15076
      fi
 
15077
 
 
15078
      # When large executables or shared objects are built, AIX ld can
 
15079
      # have problems creating the table of contents.  If linking a library
 
15080
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15081
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15082
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15083
 
 
15084
      archive_cmds_F77=''
 
15085
      hardcode_direct_F77=yes
 
15086
      hardcode_libdir_separator_F77=':'
 
15087
      link_all_deplibs_F77=yes
 
15088
 
 
15089
      if test "$GCC" = yes; then
 
15090
        case $host_os in aix4.[012]|aix4.[012].*)
 
15091
        # We only want to do this on AIX 4.2 and lower, the check
 
15092
        # below for broken collect2 doesn't work under 4.3+
 
15093
          collect2name=`${CC} -print-prog-name=collect2`
 
15094
          if test -f "$collect2name" && \
 
15095
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15096
          then
 
15097
          # We have reworked collect2
 
15098
          :
 
15099
          else
 
15100
          # We have old collect2
 
15101
          hardcode_direct_F77=unsupported
 
15102
          # It fails to find uninstalled libraries when the uninstalled
 
15103
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15104
          # to unsupported forces relinking
 
15105
          hardcode_minus_L_F77=yes
 
15106
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15107
          hardcode_libdir_separator_F77=
 
15108
          fi
 
15109
          ;;
 
15110
        esac
 
15111
        shared_flag='-shared'
 
15112
        if test "$aix_use_runtimelinking" = yes; then
 
15113
          shared_flag="$shared_flag "'${wl}-G'
 
15114
        fi
 
15115
      else
 
15116
        # not using gcc
 
15117
        if test "$host_cpu" = ia64; then
 
15118
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15119
        # chokes on -Wl,-G. The following line is correct:
 
15120
          shared_flag='-G'
 
15121
        else
 
15122
          if test "$aix_use_runtimelinking" = yes; then
 
15123
            shared_flag='${wl}-G'
 
15124
          else
 
15125
            shared_flag='${wl}-bM:SRE'
 
15126
          fi
 
15127
        fi
 
15128
      fi
 
15129
 
 
15130
      # It seems that -bexpall does not export symbols beginning with
 
15131
      # underscore (_), so it is better to generate a list of symbols to export.
 
15132
      always_export_symbols_F77=yes
 
15133
      if test "$aix_use_runtimelinking" = yes; then
 
15134
        # Warning - without using the other runtime loading flags (-brtl),
 
15135
        # -berok will link without error, but may produce a broken library.
 
15136
        allow_undefined_flag_F77='-berok'
 
15137
       # Determine the default libpath from the value encoded in an empty executable.
 
15138
       cat >conftest.$ac_ext <<_ACEOF
 
15139
      program main
 
15140
 
 
15141
      end
 
15142
_ACEOF
 
15143
rm -f conftest.$ac_objext conftest$ac_exeext
 
15144
if { (ac_try="$ac_link"
 
15145
case "(($ac_try" in
 
15146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15147
  *) ac_try_echo=$ac_try;;
 
15148
esac
 
15149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15150
$as_echo "$ac_try_echo") >&5
 
15151
  (eval "$ac_link") 2>conftest.er1
 
15152
  ac_status=$?
 
15153
  grep -v '^ *+' conftest.er1 >conftest.err
 
15154
  rm -f conftest.er1
 
15155
  cat conftest.err >&5
 
15156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15157
  (exit $ac_status); } && {
 
15158
         test -z "$ac_f77_werror_flag" ||
 
15159
         test ! -s conftest.err
 
15160
       } && test -s conftest$ac_exeext && {
 
15161
         test "$cross_compiling" = yes ||
 
15162
         $as_test_x conftest$ac_exeext
 
15163
       }; then
 
15164
 
 
15165
lt_aix_libpath_sed='
 
15166
    /Import File Strings/,/^$/ {
 
15167
        /^0/ {
 
15168
            s/^0  *\(.*\)$/\1/
 
15169
            p
 
15170
        }
 
15171
    }'
 
15172
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15173
# Check for a 64-bit object if we didn't find anything.
 
15174
if test -z "$aix_libpath"; then
 
15175
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15176
fi
 
15177
else
 
15178
  $as_echo "$as_me: failed program was:" >&5
 
15179
sed 's/^/| /' conftest.$ac_ext >&5
 
15180
 
 
15181
 
 
15182
fi
 
15183
 
 
15184
rm -rf conftest.dSYM
 
15185
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15186
      conftest$ac_exeext conftest.$ac_ext
 
15187
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15188
 
 
15189
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15190
        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"
 
15191
       else
 
15192
        if test "$host_cpu" = ia64; then
 
15193
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15194
          allow_undefined_flag_F77="-z nodefs"
 
15195
          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"
 
15196
        else
 
15197
         # Determine the default libpath from the value encoded in an empty executable.
 
15198
         cat >conftest.$ac_ext <<_ACEOF
 
15199
      program main
 
15200
 
 
15201
      end
 
15202
_ACEOF
 
15203
rm -f conftest.$ac_objext conftest$ac_exeext
 
15204
if { (ac_try="$ac_link"
 
15205
case "(($ac_try" in
 
15206
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15207
  *) ac_try_echo=$ac_try;;
 
15208
esac
 
15209
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15210
$as_echo "$ac_try_echo") >&5
 
15211
  (eval "$ac_link") 2>conftest.er1
 
15212
  ac_status=$?
 
15213
  grep -v '^ *+' conftest.er1 >conftest.err
 
15214
  rm -f conftest.er1
 
15215
  cat conftest.err >&5
 
15216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15217
  (exit $ac_status); } && {
 
15218
         test -z "$ac_f77_werror_flag" ||
 
15219
         test ! -s conftest.err
 
15220
       } && test -s conftest$ac_exeext && {
 
15221
         test "$cross_compiling" = yes ||
 
15222
         $as_test_x conftest$ac_exeext
 
15223
       }; then
 
15224
 
 
15225
lt_aix_libpath_sed='
 
15226
    /Import File Strings/,/^$/ {
 
15227
        /^0/ {
 
15228
            s/^0  *\(.*\)$/\1/
 
15229
            p
 
15230
        }
 
15231
    }'
 
15232
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15233
# Check for a 64-bit object if we didn't find anything.
 
15234
if test -z "$aix_libpath"; then
 
15235
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15236
fi
 
15237
else
 
15238
  $as_echo "$as_me: failed program was:" >&5
 
15239
sed 's/^/| /' conftest.$ac_ext >&5
 
15240
 
 
15241
 
 
15242
fi
 
15243
 
 
15244
rm -rf conftest.dSYM
 
15245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15246
      conftest$ac_exeext conftest.$ac_ext
 
15247
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15248
 
 
15249
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15250
          # Warning - without using the other run time loading flags,
 
15251
          # -berok will link without error, but may produce a broken library.
 
15252
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15253
          allow_undefined_flag_F77=' ${wl}-berok'
 
15254
          # Exported symbols can be pulled into shared objects from archives
 
15255
          whole_archive_flag_spec_F77='$convenience'
 
15256
          archive_cmds_need_lc_F77=yes
 
15257
          # This is similar to how AIX traditionally builds its shared libraries.
 
15258
          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'
 
15259
        fi
 
15260
      fi
 
15261
      ;;
 
15262
 
 
15263
    amigaos*)
 
15264
      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)'
 
15265
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15266
      hardcode_minus_L_F77=yes
 
15267
      # see comment about different semantics on the GNU ld section
 
15268
      ld_shlibs_F77=no
 
15269
      ;;
 
15270
 
 
15271
    bsdi[45]*)
 
15272
      export_dynamic_flag_spec_F77=-rdynamic
 
15273
      ;;
 
15274
 
 
15275
    cygwin* | mingw* | pw32*)
 
15276
      # When not using gcc, we currently assume that we are using
 
15277
      # Microsoft Visual C++.
 
15278
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15279
      # no search path for DLLs.
 
15280
      hardcode_libdir_flag_spec_F77=' '
 
15281
      allow_undefined_flag_F77=unsupported
 
15282
      # Tell ltmain to make .lib files, not .a files.
 
15283
      libext=lib
 
15284
      # Tell ltmain to make .dll files, not .so files.
 
15285
      shrext_cmds=".dll"
 
15286
      # FIXME: Setting linknames here is a bad hack.
 
15287
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15288
      # The linker will automatically build a .lib file if we build a DLL.
 
15289
      old_archive_From_new_cmds_F77='true'
 
15290
      # FIXME: Should let the user specify the lib program.
 
15291
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15292
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15293
      enable_shared_with_static_runtimes_F77=yes
 
15294
      ;;
 
15295
 
 
15296
    darwin* | rhapsody*)
 
15297
      case $host_os in
 
15298
        rhapsody* | darwin1.[012])
 
15299
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15300
         ;;
 
15301
       *) # Darwin 1.3 on
 
15302
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15303
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15304
         else
 
15305
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15306
             10.[012])
 
15307
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15308
               ;;
 
15309
             10.*)
 
15310
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15311
               ;;
 
15312
           esac
 
15313
         fi
 
15314
         ;;
 
15315
      esac
 
15316
      archive_cmds_need_lc_F77=no
 
15317
      hardcode_direct_F77=no
 
15318
      hardcode_automatic_F77=yes
 
15319
      hardcode_shlibpath_var_F77=unsupported
 
15320
      whole_archive_flag_spec_F77=''
 
15321
      link_all_deplibs_F77=yes
 
15322
    if test "$GCC" = yes ; then
 
15323
        output_verbose_link_cmd='echo'
 
15324
        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}"
 
15325
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15326
        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}"
 
15327
        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}"
 
15328
    else
 
15329
      case $cc_basename in
 
15330
        xlc*)
 
15331
         output_verbose_link_cmd='echo'
 
15332
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15333
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15334
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15335
         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}'
 
15336
          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}'
 
15337
          ;;
 
15338
       *)
 
15339
         ld_shlibs_F77=no
 
15340
          ;;
 
15341
      esac
 
15342
    fi
 
15343
      ;;
 
15344
 
 
15345
    dgux*)
 
15346
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15347
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15348
      hardcode_shlibpath_var_F77=no
 
15349
      ;;
 
15350
 
 
15351
    freebsd1*)
 
15352
      ld_shlibs_F77=no
 
15353
      ;;
 
15354
 
 
15355
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15356
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15357
    # does not break anything, and helps significantly (at the cost of a little
 
15358
    # extra space).
 
15359
    freebsd2.2*)
 
15360
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15361
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15362
      hardcode_direct_F77=yes
 
15363
      hardcode_shlibpath_var_F77=no
 
15364
      ;;
 
15365
 
 
15366
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15367
    freebsd2*)
 
15368
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15369
      hardcode_direct_F77=yes
 
15370
      hardcode_minus_L_F77=yes
 
15371
      hardcode_shlibpath_var_F77=no
 
15372
      ;;
 
15373
 
 
15374
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15375
    freebsd* | dragonfly*)
 
15376
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15377
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15378
      hardcode_direct_F77=yes
 
15379
      hardcode_shlibpath_var_F77=no
 
15380
      ;;
 
15381
 
 
15382
    hpux9*)
 
15383
      if test "$GCC" = yes; then
 
15384
        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'
 
15385
      else
 
15386
        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'
 
15387
      fi
 
15388
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15389
      hardcode_libdir_separator_F77=:
 
15390
      hardcode_direct_F77=yes
 
15391
 
 
15392
      # hardcode_minus_L: Not really in the search PATH,
 
15393
      # but as the default location of the library.
 
15394
      hardcode_minus_L_F77=yes
 
15395
      export_dynamic_flag_spec_F77='${wl}-E'
 
15396
      ;;
 
15397
 
 
15398
    hpux10*)
 
15399
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15400
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15401
      else
 
15402
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15403
      fi
 
15404
      if test "$with_gnu_ld" = no; then
 
15405
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15406
        hardcode_libdir_separator_F77=:
 
15407
 
 
15408
        hardcode_direct_F77=yes
 
15409
        export_dynamic_flag_spec_F77='${wl}-E'
 
15410
 
 
15411
        # hardcode_minus_L: Not really in the search PATH,
 
15412
        # but as the default location of the library.
 
15413
        hardcode_minus_L_F77=yes
 
15414
      fi
 
15415
      ;;
 
15416
 
 
15417
    hpux11*)
 
15418
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15419
        case $host_cpu in
 
15420
        hppa*64*)
 
15421
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15422
          ;;
 
15423
        ia64*)
 
15424
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15425
          ;;
 
15426
        *)
 
15427
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15428
          ;;
 
15429
        esac
 
15430
      else
 
15431
        case $host_cpu in
 
15432
        hppa*64*)
 
15433
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15434
          ;;
 
15435
        ia64*)
 
15436
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15437
          ;;
 
15438
        *)
 
15439
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15440
          ;;
 
15441
        esac
 
15442
      fi
 
15443
      if test "$with_gnu_ld" = no; then
 
15444
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15445
        hardcode_libdir_separator_F77=:
 
15446
 
 
15447
        case $host_cpu in
 
15448
        hppa*64*|ia64*)
 
15449
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15450
          hardcode_direct_F77=no
 
15451
          hardcode_shlibpath_var_F77=no
 
15452
          ;;
 
15453
        *)
 
15454
          hardcode_direct_F77=yes
 
15455
          export_dynamic_flag_spec_F77='${wl}-E'
 
15456
 
 
15457
          # hardcode_minus_L: Not really in the search PATH,
 
15458
          # but as the default location of the library.
 
15459
          hardcode_minus_L_F77=yes
 
15460
          ;;
 
15461
        esac
 
15462
      fi
 
15463
      ;;
 
15464
 
 
15465
    irix5* | irix6* | nonstopux*)
 
15466
      if test "$GCC" = yes; then
 
15467
        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'
 
15468
      else
 
15469
        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'
 
15470
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15471
      fi
 
15472
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15473
      hardcode_libdir_separator_F77=:
 
15474
      link_all_deplibs_F77=yes
 
15475
      ;;
 
15476
 
 
15477
    netbsd*)
 
15478
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15479
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15480
      else
 
15481
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15482
      fi
 
15483
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15484
      hardcode_direct_F77=yes
 
15485
      hardcode_shlibpath_var_F77=no
 
15486
      ;;
 
15487
 
 
15488
    newsos6)
 
15489
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15490
      hardcode_direct_F77=yes
 
15491
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15492
      hardcode_libdir_separator_F77=:
 
15493
      hardcode_shlibpath_var_F77=no
 
15494
      ;;
 
15495
 
 
15496
    openbsd*)
 
15497
      if test -f /usr/libexec/ld.so; then
 
15498
        hardcode_direct_F77=yes
 
15499
        hardcode_shlibpath_var_F77=no
 
15500
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15501
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15502
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15503
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15504
          export_dynamic_flag_spec_F77='${wl}-E'
 
15505
        else
 
15506
          case $host_os in
 
15507
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15508
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15509
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15510
             ;;
 
15511
           *)
 
15512
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15513
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15514
             ;;
 
15515
          esac
 
15516
        fi
 
15517
      else
 
15518
        ld_shlibs_F77=no
 
15519
      fi
 
15520
      ;;
 
15521
 
 
15522
    os2*)
 
15523
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15524
      hardcode_minus_L_F77=yes
 
15525
      allow_undefined_flag_F77=unsupported
 
15526
      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'
 
15527
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15528
      ;;
 
15529
 
 
15530
    osf3*)
 
15531
      if test "$GCC" = yes; then
 
15532
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15533
        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'
 
15534
      else
 
15535
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15536
        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'
 
15537
      fi
 
15538
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15539
      hardcode_libdir_separator_F77=:
 
15540
      ;;
 
15541
 
 
15542
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15543
      if test "$GCC" = yes; then
 
15544
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15545
        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'
 
15546
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15547
      else
 
15548
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15549
        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'
 
15550
        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~
 
15551
        $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'
 
15552
 
 
15553
        # Both c and cxx compiler support -rpath directly
 
15554
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15555
      fi
 
15556
      hardcode_libdir_separator_F77=:
 
15557
      ;;
 
15558
 
 
15559
    solaris*)
 
15560
      no_undefined_flag_F77=' -z text'
 
15561
      if test "$GCC" = yes; then
 
15562
        wlarc='${wl}'
 
15563
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15564
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15565
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15566
      else
 
15567
        wlarc=''
 
15568
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15569
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15570
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15571
      fi
 
15572
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15573
      hardcode_shlibpath_var_F77=no
 
15574
      case $host_os in
 
15575
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15576
      *)
 
15577
        # The compiler driver will combine and reorder linker options,
 
15578
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15579
        # but is careful enough not to reorder.
 
15580
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15581
        if test "$GCC" = yes; then
 
15582
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15583
        else
 
15584
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15585
        fi
 
15586
        ;;
 
15587
      esac
 
15588
      link_all_deplibs_F77=yes
 
15589
      ;;
 
15590
 
 
15591
    sunos4*)
 
15592
      if test "x$host_vendor" = xsequent; then
 
15593
        # Use $CC to link under sequent, because it throws in some extra .o
 
15594
        # files that make .init and .fini sections work.
 
15595
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15596
      else
 
15597
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15598
      fi
 
15599
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15600
      hardcode_direct_F77=yes
 
15601
      hardcode_minus_L_F77=yes
 
15602
      hardcode_shlibpath_var_F77=no
 
15603
      ;;
 
15604
 
 
15605
    sysv4)
 
15606
      case $host_vendor in
 
15607
        sni)
 
15608
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15609
          hardcode_direct_F77=yes # is this really true???
 
15610
        ;;
 
15611
        siemens)
 
15612
          ## LD is ld it makes a PLAMLIB
 
15613
          ## CC just makes a GrossModule.
 
15614
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15615
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15616
          hardcode_direct_F77=no
 
15617
        ;;
 
15618
        motorola)
 
15619
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15620
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15621
        ;;
 
15622
      esac
 
15623
      runpath_var='LD_RUN_PATH'
 
15624
      hardcode_shlibpath_var_F77=no
 
15625
      ;;
 
15626
 
 
15627
    sysv4.3*)
 
15628
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15629
      hardcode_shlibpath_var_F77=no
 
15630
      export_dynamic_flag_spec_F77='-Bexport'
 
15631
      ;;
 
15632
 
 
15633
    sysv4*MP*)
 
15634
      if test -d /usr/nec; then
 
15635
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15636
        hardcode_shlibpath_var_F77=no
 
15637
        runpath_var=LD_RUN_PATH
 
15638
        hardcode_runpath_var=yes
 
15639
        ld_shlibs_F77=yes
 
15640
      fi
 
15641
      ;;
 
15642
 
 
15643
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15644
      no_undefined_flag_F77='${wl}-z,text'
 
15645
      archive_cmds_need_lc_F77=no
 
15646
      hardcode_shlibpath_var_F77=no
 
15647
      runpath_var='LD_RUN_PATH'
 
15648
 
 
15649
      if test "$GCC" = yes; then
 
15650
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15651
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15652
      else
 
15653
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15654
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15655
      fi
 
15656
      ;;
 
15657
 
 
15658
    sysv5* | sco3.2v5* | sco5v6*)
 
15659
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15660
      # link with -lc, and that would cause any symbols used from libc to
 
15661
      # always be unresolved, which means just about no library would
 
15662
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15663
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15664
      # as -z defs.
 
15665
      no_undefined_flag_F77='${wl}-z,text'
 
15666
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15667
      archive_cmds_need_lc_F77=no
 
15668
      hardcode_shlibpath_var_F77=no
 
15669
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15670
      hardcode_libdir_separator_F77=':'
 
15671
      link_all_deplibs_F77=yes
 
15672
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15673
      runpath_var='LD_RUN_PATH'
 
15674
 
 
15675
      if test "$GCC" = yes; then
 
15676
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15677
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15678
      else
 
15679
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15680
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15681
      fi
 
15682
      ;;
 
15683
 
 
15684
    uts4*)
 
15685
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15686
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15687
      hardcode_shlibpath_var_F77=no
 
15688
      ;;
 
15689
 
 
15690
    *)
 
15691
      ld_shlibs_F77=no
 
15692
      ;;
 
15693
    esac
 
15694
  fi
 
15695
 
 
15696
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15697
$as_echo "$ld_shlibs_F77" >&6; }
 
15698
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15699
 
 
15700
#
 
15701
# Do we need to explicitly link libc?
 
15702
#
 
15703
case "x$archive_cmds_need_lc_F77" in
 
15704
x|xyes)
 
15705
  # Assume -lc should be added
 
15706
  archive_cmds_need_lc_F77=yes
 
15707
 
 
15708
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15709
    case $archive_cmds_F77 in
 
15710
    *'~'*)
 
15711
      # FIXME: we may have to deal with multi-command sequences.
 
15712
      ;;
 
15713
    '$CC '*)
 
15714
      # Test whether the compiler implicitly links with -lc since on some
 
15715
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15716
      # to ld, don't add -lc before -lgcc.
 
15717
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15718
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15719
      $rm conftest*
 
15720
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15721
 
 
15722
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15723
  (eval $ac_compile) 2>&5
 
15724
  ac_status=$?
 
15725
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15726
  (exit $ac_status); } 2>conftest.err; then
 
15727
        soname=conftest
 
15728
        lib=conftest
 
15729
        libobjs=conftest.$ac_objext
 
15730
        deplibs=
 
15731
        wl=$lt_prog_compiler_wl_F77
 
15732
        pic_flag=$lt_prog_compiler_pic_F77
 
15733
        compiler_flags=-v
 
15734
        linker_flags=-v
 
15735
        verstring=
 
15736
        output_objdir=.
 
15737
        libname=conftest
 
15738
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15739
        allow_undefined_flag_F77=
 
15740
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15741
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15742
  ac_status=$?
 
15743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15744
  (exit $ac_status); }
 
15745
        then
 
15746
          archive_cmds_need_lc_F77=no
 
15747
        else
 
15748
          archive_cmds_need_lc_F77=yes
 
15749
        fi
 
15750
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15751
      else
 
15752
        cat conftest.err 1>&5
 
15753
      fi
 
15754
      $rm conftest*
 
15755
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15756
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
15757
      ;;
 
15758
    esac
 
15759
  fi
 
15760
  ;;
 
15761
esac
 
15762
 
 
15763
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15764
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15765
library_names_spec=
 
15766
libname_spec='lib$name'
 
15767
soname_spec=
 
15768
shrext_cmds=".so"
 
15769
postinstall_cmds=
 
15770
postuninstall_cmds=
 
15771
finish_cmds=
 
15772
finish_eval=
 
15773
shlibpath_var=
 
15774
shlibpath_overrides_runpath=unknown
 
15775
version_type=none
 
15776
dynamic_linker="$host_os ld.so"
 
15777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15778
 
 
15779
need_lib_prefix=unknown
 
15780
hardcode_into_libs=no
 
15781
 
 
15782
# when you set need_version to no, make sure it does not cause -set_version
 
15783
# flags to be left without arguments
 
15784
need_version=unknown
 
15785
 
 
15786
case $host_os in
 
15787
aix3*)
 
15788
  version_type=linux
 
15789
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15790
  shlibpath_var=LIBPATH
 
15791
 
 
15792
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15793
  soname_spec='${libname}${release}${shared_ext}$major'
 
15794
  ;;
 
15795
 
 
15796
aix[4-9]*)
 
15797
  version_type=linux
 
15798
  need_lib_prefix=no
 
15799
  need_version=no
 
15800
  hardcode_into_libs=yes
 
15801
  if test "$host_cpu" = ia64; then
 
15802
    # AIX 5 supports IA64
 
15803
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15804
    shlibpath_var=LD_LIBRARY_PATH
 
15805
  else
 
15806
    # With GCC up to 2.95.x, collect2 would create an import file
 
15807
    # for dependence libraries.  The import file would start with
 
15808
    # the line `#! .'.  This would cause the generated library to
 
15809
    # depend on `.', always an invalid library.  This was fixed in
 
15810
    # development snapshots of GCC prior to 3.0.
 
15811
    case $host_os in
 
15812
      aix4 | aix4.[01] | aix4.[01].*)
 
15813
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15814
           echo ' yes '
 
15815
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15816
        :
 
15817
      else
 
15818
        can_build_shared=no
 
15819
      fi
 
15820
      ;;
 
15821
    esac
 
15822
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15823
    # soname into executable. Probably we can add versioning support to
 
15824
    # collect2, so additional links can be useful in future.
 
15825
    if test "$aix_use_runtimelinking" = yes; then
 
15826
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15827
      # instead of lib<name>.a to let people know that these are not
 
15828
      # typical AIX shared libraries.
 
15829
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15830
    else
 
15831
      # We preserve .a as extension for shared libraries through AIX4.2
 
15832
      # and later when we are not doing run time linking.
 
15833
      library_names_spec='${libname}${release}.a $libname.a'
 
15834
      soname_spec='${libname}${release}${shared_ext}$major'
 
15835
    fi
 
15836
    shlibpath_var=LIBPATH
 
15837
  fi
 
15838
  ;;
 
15839
 
 
15840
amigaos*)
 
15841
  library_names_spec='$libname.ixlibrary $libname.a'
 
15842
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15843
  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'
 
15844
  ;;
 
15845
 
 
15846
beos*)
 
15847
  library_names_spec='${libname}${shared_ext}'
 
15848
  dynamic_linker="$host_os ld.so"
 
15849
  shlibpath_var=LIBRARY_PATH
 
15850
  ;;
 
15851
 
 
15852
bsdi[45]*)
 
15853
  version_type=linux
 
15854
  need_version=no
 
15855
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15856
  soname_spec='${libname}${release}${shared_ext}$major'
 
15857
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15858
  shlibpath_var=LD_LIBRARY_PATH
 
15859
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15860
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15861
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15862
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15863
  # libtool to hard-code these into programs
 
15864
  ;;
 
15865
 
 
15866
cygwin* | mingw* | pw32*)
 
15867
  version_type=windows
 
15868
  shrext_cmds=".dll"
 
15869
  need_version=no
 
15870
  need_lib_prefix=no
 
15871
 
 
15872
  case $GCC,$host_os in
 
15873
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15874
    library_names_spec='$libname.dll.a'
 
15875
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15876
    postinstall_cmds='base_file=`basename \${file}`~
 
15877
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15878
      dldir=$destdir/`dirname \$dlpath`~
 
15879
      test -d \$dldir || mkdir -p \$dldir~
 
15880
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15881
      chmod a+x \$dldir/$dlname'
 
15882
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15883
      dlpath=$dir/\$dldll~
 
15884
       $rm \$dlpath'
 
15885
    shlibpath_overrides_runpath=yes
 
15886
 
 
15887
    case $host_os in
 
15888
    cygwin*)
 
15889
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15890
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15891
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15892
      ;;
 
15893
    mingw*)
 
15894
      # MinGW DLLs use traditional 'lib' prefix
 
15895
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15896
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15897
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15898
        # It is most probably a Windows format PATH printed by
 
15899
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15900
        # path with ; separators, and with drive letters. We can handle the
 
15901
        # drive letters (cygwin fileutils understands them), so leave them,
 
15902
        # especially as we might pass files found there to a mingw objdump,
 
15903
        # which wouldn't understand a cygwinified path. Ahh.
 
15904
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15905
      else
 
15906
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15907
      fi
 
15908
      ;;
 
15909
    pw32*)
 
15910
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15911
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15912
      ;;
 
15913
    esac
 
15914
    ;;
 
15915
 
 
15916
  *)
 
15917
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15918
    ;;
 
15919
  esac
 
15920
  dynamic_linker='Win32 ld.exe'
 
15921
  # FIXME: first we should search . and the directory the executable is in
 
15922
  shlibpath_var=PATH
 
15923
  ;;
 
15924
 
 
15925
darwin* | rhapsody*)
 
15926
  dynamic_linker="$host_os dyld"
 
15927
  version_type=darwin
 
15928
  need_lib_prefix=no
 
15929
  need_version=no
 
15930
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15931
  soname_spec='${libname}${release}${major}$shared_ext'
 
15932
  shlibpath_overrides_runpath=yes
 
15933
  shlibpath_var=DYLD_LIBRARY_PATH
 
15934
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15935
 
 
15936
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15937
  ;;
 
15938
 
 
15939
dgux*)
 
15940
  version_type=linux
 
15941
  need_lib_prefix=no
 
15942
  need_version=no
 
15943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15944
  soname_spec='${libname}${release}${shared_ext}$major'
 
15945
  shlibpath_var=LD_LIBRARY_PATH
 
15946
  ;;
 
15947
 
 
15948
freebsd1*)
 
15949
  dynamic_linker=no
 
15950
  ;;
 
15951
 
 
15952
freebsd* | dragonfly*)
 
15953
  # DragonFly does not have aout.  When/if they implement a new
 
15954
  # versioning mechanism, adjust this.
 
15955
  if test -x /usr/bin/objformat; then
 
15956
    objformat=`/usr/bin/objformat`
 
15957
  else
 
15958
    case $host_os in
 
15959
    freebsd[123]*) objformat=aout ;;
 
15960
    *) objformat=elf ;;
 
15961
    esac
 
15962
  fi
 
15963
  version_type=freebsd-$objformat
 
15964
  case $version_type in
 
15965
    freebsd-elf*)
 
15966
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15967
      need_version=no
 
15968
      need_lib_prefix=no
 
15969
      ;;
 
15970
    freebsd-*)
 
15971
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15972
      need_version=yes
 
15973
      ;;
 
15974
  esac
 
15975
  shlibpath_var=LD_LIBRARY_PATH
 
15976
  case $host_os in
 
15977
  freebsd2*)
 
15978
    shlibpath_overrides_runpath=yes
 
15979
    ;;
 
15980
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15981
    shlibpath_overrides_runpath=yes
 
15982
    hardcode_into_libs=yes
 
15983
    ;;
 
15984
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15985
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15986
    shlibpath_overrides_runpath=no
 
15987
    hardcode_into_libs=yes
 
15988
    ;;
 
15989
  *) # from 4.6 on, and DragonFly
 
15990
    shlibpath_overrides_runpath=yes
 
15991
    hardcode_into_libs=yes
 
15992
    ;;
 
15993
  esac
 
15994
  ;;
 
15995
 
 
15996
gnu*)
 
15997
  version_type=linux
 
15998
  need_lib_prefix=no
 
15999
  need_version=no
 
16000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16001
  soname_spec='${libname}${release}${shared_ext}$major'
 
16002
  shlibpath_var=LD_LIBRARY_PATH
 
16003
  hardcode_into_libs=yes
 
16004
  ;;
 
16005
 
 
16006
hpux9* | hpux10* | hpux11*)
 
16007
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16008
  # link against other versions.
 
16009
  version_type=sunos
 
16010
  need_lib_prefix=no
 
16011
  need_version=no
 
16012
  case $host_cpu in
 
16013
  ia64*)
 
16014
    shrext_cmds='.so'
 
16015
    hardcode_into_libs=yes
 
16016
    dynamic_linker="$host_os dld.so"
 
16017
    shlibpath_var=LD_LIBRARY_PATH
 
16018
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16019
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16020
    soname_spec='${libname}${release}${shared_ext}$major'
 
16021
    if test "X$HPUX_IA64_MODE" = X32; then
 
16022
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16023
    else
 
16024
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16025
    fi
 
16026
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16027
    ;;
 
16028
   hppa*64*)
 
16029
     shrext_cmds='.sl'
 
16030
     hardcode_into_libs=yes
 
16031
     dynamic_linker="$host_os dld.sl"
 
16032
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16033
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16034
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16035
     soname_spec='${libname}${release}${shared_ext}$major'
 
16036
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16037
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16038
     ;;
 
16039
   *)
 
16040
    shrext_cmds='.sl'
 
16041
    dynamic_linker="$host_os dld.sl"
 
16042
    shlibpath_var=SHLIB_PATH
 
16043
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16044
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16045
    soname_spec='${libname}${release}${shared_ext}$major'
 
16046
    ;;
 
16047
  esac
 
16048
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16049
  postinstall_cmds='chmod 555 $lib'
 
16050
  ;;
 
16051
 
 
16052
interix[3-9]*)
 
16053
  version_type=linux
 
16054
  need_lib_prefix=no
 
16055
  need_version=no
 
16056
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16057
  soname_spec='${libname}${release}${shared_ext}$major'
 
16058
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16059
  shlibpath_var=LD_LIBRARY_PATH
 
16060
  shlibpath_overrides_runpath=no
 
16061
  hardcode_into_libs=yes
 
16062
  ;;
 
16063
 
 
16064
irix5* | irix6* | nonstopux*)
 
16065
  case $host_os in
 
16066
    nonstopux*) version_type=nonstopux ;;
 
16067
    *)
 
16068
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16069
                version_type=linux
 
16070
        else
 
16071
                version_type=irix
 
16072
        fi ;;
 
16073
  esac
 
16074
  need_lib_prefix=no
 
16075
  need_version=no
 
16076
  soname_spec='${libname}${release}${shared_ext}$major'
 
16077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16078
  case $host_os in
 
16079
  irix5* | nonstopux*)
 
16080
    libsuff= shlibsuff=
 
16081
    ;;
 
16082
  *)
 
16083
    case $LD in # libtool.m4 will add one of these switches to LD
 
16084
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16085
      libsuff= shlibsuff= libmagic=32-bit;;
 
16086
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16087
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16088
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16089
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16090
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16091
    esac
 
16092
    ;;
 
16093
  esac
 
16094
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16095
  shlibpath_overrides_runpath=no
 
16096
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16097
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16098
  hardcode_into_libs=yes
 
16099
  ;;
 
16100
 
 
16101
# No shared lib support for Linux oldld, aout, or coff.
 
16102
linux*oldld* | linux*aout* | linux*coff*)
 
16103
  dynamic_linker=no
 
16104
  ;;
 
16105
 
 
16106
# This must be Linux ELF.
 
16107
linux* | k*bsd*-gnu)
 
16108
  version_type=linux
 
16109
  need_lib_prefix=no
 
16110
  need_version=no
 
16111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16112
  soname_spec='${libname}${release}${shared_ext}$major'
 
16113
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16114
  shlibpath_var=LD_LIBRARY_PATH
 
16115
  shlibpath_overrides_runpath=no
 
16116
  # This implies no fast_install, which is unacceptable.
 
16117
  # Some rework will be needed to allow for fast_install
 
16118
  # before this can be enabled.
 
16119
  hardcode_into_libs=yes
 
16120
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16121
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16122
 
 
16123
  # Append ld.so.conf contents to the search path
 
16124
  if test -f /etc/ld.so.conf; then
 
16125
    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' ' '`
 
16126
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16127
  fi
 
16128
 
 
16129
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16130
  # powerpc, because MkLinux only supported shared libraries with the
 
16131
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16132
  # most powerpc-linux boxes support dynamic linking these days and
 
16133
  # people can always --disable-shared, the test was removed, and we
 
16134
  # assume the GNU/Linux dynamic linker is in use.
 
16135
  dynamic_linker='GNU/Linux ld.so'
 
16136
  ;;
 
16137
 
 
16138
netbsd*)
 
16139
  version_type=sunos
 
16140
  need_lib_prefix=no
 
16141
  need_version=no
 
16142
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16143
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16144
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16145
    dynamic_linker='NetBSD (a.out) ld.so'
 
16146
  else
 
16147
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16148
    soname_spec='${libname}${release}${shared_ext}$major'
 
16149
    dynamic_linker='NetBSD ld.elf_so'
 
16150
  fi
 
16151
  shlibpath_var=LD_LIBRARY_PATH
 
16152
  shlibpath_overrides_runpath=yes
 
16153
  hardcode_into_libs=yes
 
16154
  ;;
 
16155
 
 
16156
newsos6)
 
16157
  version_type=linux
 
16158
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16159
  shlibpath_var=LD_LIBRARY_PATH
 
16160
  shlibpath_overrides_runpath=yes
 
16161
  ;;
 
16162
 
 
16163
nto-qnx*)
 
16164
  version_type=linux
 
16165
  need_lib_prefix=no
 
16166
  need_version=no
 
16167
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16168
  soname_spec='${libname}${release}${shared_ext}$major'
 
16169
  shlibpath_var=LD_LIBRARY_PATH
 
16170
  shlibpath_overrides_runpath=yes
 
16171
  ;;
 
16172
 
 
16173
openbsd*)
 
16174
  version_type=sunos
 
16175
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16176
  need_lib_prefix=no
 
16177
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16178
  case $host_os in
 
16179
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16180
    *)                         need_version=no  ;;
 
16181
  esac
 
16182
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16183
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16184
  shlibpath_var=LD_LIBRARY_PATH
 
16185
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16186
    case $host_os in
 
16187
      openbsd2.[89] | openbsd2.[89].*)
 
16188
        shlibpath_overrides_runpath=no
 
16189
        ;;
 
16190
      *)
 
16191
        shlibpath_overrides_runpath=yes
 
16192
        ;;
 
16193
      esac
 
16194
  else
 
16195
    shlibpath_overrides_runpath=yes
 
16196
  fi
 
16197
  ;;
 
16198
 
 
16199
os2*)
 
16200
  libname_spec='$name'
 
16201
  shrext_cmds=".dll"
 
16202
  need_lib_prefix=no
 
16203
  library_names_spec='$libname${shared_ext} $libname.a'
 
16204
  dynamic_linker='OS/2 ld.exe'
 
16205
  shlibpath_var=LIBPATH
 
16206
  ;;
 
16207
 
 
16208
osf3* | osf4* | osf5*)
 
16209
  version_type=osf
 
16210
  need_lib_prefix=no
 
16211
  need_version=no
 
16212
  soname_spec='${libname}${release}${shared_ext}$major'
 
16213
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16214
  shlibpath_var=LD_LIBRARY_PATH
 
16215
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16216
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16217
  ;;
 
16218
 
 
16219
rdos*)
 
16220
  dynamic_linker=no
 
16221
  ;;
 
16222
 
 
16223
solaris*)
 
16224
  version_type=linux
 
16225
  need_lib_prefix=no
 
16226
  need_version=no
 
16227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16228
  soname_spec='${libname}${release}${shared_ext}$major'
 
16229
  shlibpath_var=LD_LIBRARY_PATH
 
16230
  shlibpath_overrides_runpath=yes
 
16231
  hardcode_into_libs=yes
 
16232
  # ldd complains unless libraries are executable
 
16233
  postinstall_cmds='chmod +x $lib'
 
16234
  ;;
 
16235
 
 
16236
sunos4*)
 
16237
  version_type=sunos
 
16238
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16239
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16240
  shlibpath_var=LD_LIBRARY_PATH
 
16241
  shlibpath_overrides_runpath=yes
 
16242
  if test "$with_gnu_ld" = yes; then
 
16243
    need_lib_prefix=no
 
16244
  fi
 
16245
  need_version=yes
 
16246
  ;;
 
16247
 
 
16248
sysv4 | sysv4.3*)
 
16249
  version_type=linux
 
16250
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16251
  soname_spec='${libname}${release}${shared_ext}$major'
 
16252
  shlibpath_var=LD_LIBRARY_PATH
 
16253
  case $host_vendor in
 
16254
    sni)
 
16255
      shlibpath_overrides_runpath=no
 
16256
      need_lib_prefix=no
 
16257
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16258
      runpath_var=LD_RUN_PATH
 
16259
      ;;
 
16260
    siemens)
 
16261
      need_lib_prefix=no
 
16262
      ;;
 
16263
    motorola)
 
16264
      need_lib_prefix=no
 
16265
      need_version=no
 
16266
      shlibpath_overrides_runpath=no
 
16267
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16268
      ;;
 
16269
  esac
 
16270
  ;;
 
16271
 
 
16272
sysv4*MP*)
 
16273
  if test -d /usr/nec ;then
 
16274
    version_type=linux
 
16275
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16276
    soname_spec='$libname${shared_ext}.$major'
 
16277
    shlibpath_var=LD_LIBRARY_PATH
 
16278
  fi
 
16279
  ;;
 
16280
 
 
16281
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16282
  version_type=freebsd-elf
 
16283
  need_lib_prefix=no
 
16284
  need_version=no
 
16285
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16286
  soname_spec='${libname}${release}${shared_ext}$major'
 
16287
  shlibpath_var=LD_LIBRARY_PATH
 
16288
  hardcode_into_libs=yes
 
16289
  if test "$with_gnu_ld" = yes; then
 
16290
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16291
    shlibpath_overrides_runpath=no
 
16292
  else
 
16293
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16294
    shlibpath_overrides_runpath=yes
 
16295
    case $host_os in
 
16296
      sco3.2v5*)
 
16297
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16298
        ;;
 
16299
    esac
 
16300
  fi
 
16301
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16302
  ;;
 
16303
 
 
16304
uts4*)
 
16305
  version_type=linux
 
16306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16307
  soname_spec='${libname}${release}${shared_ext}$major'
 
16308
  shlibpath_var=LD_LIBRARY_PATH
 
16309
  ;;
 
16310
 
 
16311
*)
 
16312
  dynamic_linker=no
 
16313
  ;;
 
16314
esac
 
16315
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16316
$as_echo "$dynamic_linker" >&6; }
 
16317
test "$dynamic_linker" = no && can_build_shared=no
 
16318
 
 
16319
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16320
  $as_echo_n "(cached) " >&6
 
16321
else
 
16322
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16323
fi
 
16324
 
 
16325
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16326
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16327
  $as_echo_n "(cached) " >&6
 
16328
else
 
16329
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16330
fi
 
16331
 
 
16332
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16333
 
 
16334
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16335
if test "$GCC" = yes; then
 
16336
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16337
fi
 
16338
 
 
16339
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16340
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16341
hardcode_action_F77=
 
16342
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16343
   test -n "$runpath_var_F77" || \
 
16344
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16345
 
 
16346
  # We can hardcode non-existant directories.
 
16347
  if test "$hardcode_direct_F77" != no &&
 
16348
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16349
     # have to relink, otherwise we might link with an installed library
 
16350
     # when we should be linking with a yet-to-be-installed one
 
16351
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16352
     test "$hardcode_minus_L_F77" != no; then
 
16353
    # Linking always hardcodes the temporary library directory.
 
16354
    hardcode_action_F77=relink
 
16355
  else
 
16356
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16357
    hardcode_action_F77=immediate
 
16358
  fi
 
16359
else
 
16360
  # We cannot hardcode anything, or else we can only hardcode existing
 
16361
  # directories.
 
16362
  hardcode_action_F77=unsupported
 
16363
fi
 
16364
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16365
$as_echo "$hardcode_action_F77" >&6; }
 
16366
 
 
16367
if test "$hardcode_action_F77" = relink; then
 
16368
  # Fast installation is not supported
 
16369
  enable_fast_install=no
 
16370
elif test "$shlibpath_overrides_runpath" = yes ||
 
16371
     test "$enable_shared" = no; then
 
16372
  # Fast installation is not necessary
 
16373
  enable_fast_install=needless
 
16374
fi
 
16375
 
 
16376
 
 
16377
# The else clause should only fire when bootstrapping the
 
16378
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16379
# with your package, and you will get complaints that there are
 
16380
# no rules to generate ltmain.sh.
 
16381
if test -f "$ltmain"; then
 
16382
  # See if we are running on zsh, and set the options which allow our commands through
 
16383
  # without removal of \ escapes.
 
16384
  if test -n "${ZSH_VERSION+set}" ; then
 
16385
    setopt NO_GLOB_SUBST
 
16386
  fi
 
16387
  # Now quote all the things that may contain metacharacters while being
 
16388
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16389
  # variables and quote the copies for generation of the libtool script.
 
16390
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16391
    SED SHELL STRIP \
 
16392
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16393
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16394
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16395
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16396
    lt_cv_sys_global_symbol_to_c_name_address \
 
16397
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16398
    old_postinstall_cmds old_postuninstall_cmds \
 
16399
    compiler_F77 \
 
16400
    CC_F77 \
 
16401
    LD_F77 \
 
16402
    lt_prog_compiler_wl_F77 \
 
16403
    lt_prog_compiler_pic_F77 \
 
16404
    lt_prog_compiler_static_F77 \
 
16405
    lt_prog_compiler_no_builtin_flag_F77 \
 
16406
    export_dynamic_flag_spec_F77 \
 
16407
    thread_safe_flag_spec_F77 \
 
16408
    whole_archive_flag_spec_F77 \
 
16409
    enable_shared_with_static_runtimes_F77 \
 
16410
    old_archive_cmds_F77 \
 
16411
    old_archive_from_new_cmds_F77 \
 
16412
    predep_objects_F77 \
 
16413
    postdep_objects_F77 \
 
16414
    predeps_F77 \
 
16415
    postdeps_F77 \
 
16416
    compiler_lib_search_path_F77 \
 
16417
    compiler_lib_search_dirs_F77 \
 
16418
    archive_cmds_F77 \
 
16419
    archive_expsym_cmds_F77 \
 
16420
    postinstall_cmds_F77 \
 
16421
    postuninstall_cmds_F77 \
 
16422
    old_archive_from_expsyms_cmds_F77 \
 
16423
    allow_undefined_flag_F77 \
 
16424
    no_undefined_flag_F77 \
 
16425
    export_symbols_cmds_F77 \
 
16426
    hardcode_libdir_flag_spec_F77 \
 
16427
    hardcode_libdir_flag_spec_ld_F77 \
 
16428
    hardcode_libdir_separator_F77 \
 
16429
    hardcode_automatic_F77 \
 
16430
    module_cmds_F77 \
 
16431
    module_expsym_cmds_F77 \
 
16432
    lt_cv_prog_compiler_c_o_F77 \
 
16433
    fix_srcfile_path_F77 \
 
16434
    exclude_expsyms_F77 \
 
16435
    include_expsyms_F77; do
 
16436
 
 
16437
    case $var in
 
16438
    old_archive_cmds_F77 | \
 
16439
    old_archive_from_new_cmds_F77 | \
 
16440
    archive_cmds_F77 | \
 
16441
    archive_expsym_cmds_F77 | \
 
16442
    module_cmds_F77 | \
 
16443
    module_expsym_cmds_F77 | \
 
16444
    old_archive_from_expsyms_cmds_F77 | \
 
16445
    export_symbols_cmds_F77 | \
 
16446
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16447
    postinstall_cmds | postuninstall_cmds | \
 
16448
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16449
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16450
      # Double-quote double-evaled strings.
 
16451
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16452
      ;;
 
16453
    *)
 
16454
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16455
      ;;
 
16456
    esac
 
16457
  done
 
16458
 
 
16459
  case $lt_echo in
 
16460
  *'\$0 --fallback-echo"')
 
16461
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16462
    ;;
 
16463
  esac
 
16464
 
 
16465
cfgfile="$ofile"
 
16466
 
 
16467
  cat <<__EOF__ >> "$cfgfile"
 
16468
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16469
 
 
16470
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16471
 
 
16472
# Shell to use when invoking shell scripts.
 
16473
SHELL=$lt_SHELL
 
16474
 
 
16475
# Whether or not to build shared libraries.
 
16476
build_libtool_libs=$enable_shared
 
16477
 
 
16478
# Whether or not to build static libraries.
 
16479
build_old_libs=$enable_static
 
16480
 
 
16481
# Whether or not to add -lc for building shared libraries.
 
16482
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16483
 
 
16484
# Whether or not to disallow shared libs when runtime libs are static
 
16485
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16486
 
 
16487
# Whether or not to optimize for fast installation.
 
16488
fast_install=$enable_fast_install
 
16489
 
 
16490
# The host system.
 
16491
host_alias=$host_alias
 
16492
host=$host
 
16493
host_os=$host_os
 
16494
 
 
16495
# The build system.
 
16496
build_alias=$build_alias
 
16497
build=$build
 
16498
build_os=$build_os
 
16499
 
 
16500
# An echo program that does not interpret backslashes.
 
16501
echo=$lt_echo
 
16502
 
 
16503
# The archiver.
 
16504
AR=$lt_AR
 
16505
AR_FLAGS=$lt_AR_FLAGS
 
16506
 
 
16507
# A C compiler.
 
16508
LTCC=$lt_LTCC
 
16509
 
 
16510
# LTCC compiler flags.
 
16511
LTCFLAGS=$lt_LTCFLAGS
 
16512
 
 
16513
# A language-specific compiler.
 
16514
CC=$lt_compiler_F77
 
16515
 
 
16516
# Is the compiler the GNU C compiler?
 
16517
with_gcc=$GCC_F77
 
16518
 
 
16519
# An ERE matcher.
 
16520
EGREP=$lt_EGREP
 
16521
 
 
16522
# The linker used to build libraries.
 
16523
LD=$lt_LD_F77
 
16524
 
 
16525
# Whether we need hard or soft links.
 
16526
LN_S=$lt_LN_S
 
16527
 
 
16528
# A BSD-compatible nm program.
 
16529
NM=$lt_NM
 
16530
 
 
16531
# A symbol stripping program
 
16532
STRIP=$lt_STRIP
 
16533
 
 
16534
# Used to examine libraries when file_magic_cmd begins "file"
 
16535
MAGIC_CMD=$MAGIC_CMD
 
16536
 
 
16537
# Used on cygwin: DLL creation program.
 
16538
DLLTOOL="$DLLTOOL"
 
16539
 
 
16540
# Used on cygwin: object dumper.
 
16541
OBJDUMP="$OBJDUMP"
 
16542
 
 
16543
# Used on cygwin: assembler.
 
16544
AS="$AS"
 
16545
 
 
16546
# The name of the directory that contains temporary libtool files.
 
16547
objdir=$objdir
 
16548
 
 
16549
# How to create reloadable object files.
 
16550
reload_flag=$lt_reload_flag
 
16551
reload_cmds=$lt_reload_cmds
 
16552
 
 
16553
# How to pass a linker flag through the compiler.
 
16554
wl=$lt_lt_prog_compiler_wl_F77
 
16555
 
 
16556
# Object file suffix (normally "o").
 
16557
objext="$ac_objext"
 
16558
 
 
16559
# Old archive suffix (normally "a").
 
16560
libext="$libext"
 
16561
 
 
16562
# Shared library suffix (normally ".so").
 
16563
shrext_cmds='$shrext_cmds'
 
16564
 
 
16565
# Executable file suffix (normally "").
 
16566
exeext="$exeext"
 
16567
 
 
16568
# Additional compiler flags for building library objects.
 
16569
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16570
pic_mode=$pic_mode
 
16571
 
 
16572
# What is the maximum length of a command?
 
16573
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16574
 
 
16575
# Does compiler simultaneously support -c and -o options?
 
16576
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16577
 
 
16578
# Must we lock files when doing compilation?
 
16579
need_locks=$lt_need_locks
 
16580
 
 
16581
# Do we need the lib prefix for modules?
 
16582
need_lib_prefix=$need_lib_prefix
 
16583
 
 
16584
# Do we need a version for libraries?
 
16585
need_version=$need_version
 
16586
 
 
16587
# Whether dlopen is supported.
 
16588
dlopen_support=$enable_dlopen
 
16589
 
 
16590
# Whether dlopen of programs is supported.
 
16591
dlopen_self=$enable_dlopen_self
 
16592
 
 
16593
# Whether dlopen of statically linked programs is supported.
 
16594
dlopen_self_static=$enable_dlopen_self_static
 
16595
 
 
16596
# Compiler flag to prevent dynamic linking.
 
16597
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16598
 
 
16599
# Compiler flag to turn off builtin functions.
 
16600
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16601
 
 
16602
# Compiler flag to allow reflexive dlopens.
 
16603
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16604
 
 
16605
# Compiler flag to generate shared objects directly from archives.
 
16606
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16607
 
 
16608
# Compiler flag to generate thread-safe objects.
 
16609
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16610
 
 
16611
# Library versioning type.
 
16612
version_type=$version_type
 
16613
 
 
16614
# Format of library name prefix.
 
16615
libname_spec=$lt_libname_spec
 
16616
 
 
16617
# List of archive names.  First name is the real one, the rest are links.
 
16618
# The last name is the one that the linker finds with -lNAME.
 
16619
library_names_spec=$lt_library_names_spec
 
16620
 
 
16621
# The coded name of the library, if different from the real name.
 
16622
soname_spec=$lt_soname_spec
 
16623
 
 
16624
# Commands used to build and install an old-style archive.
 
16625
RANLIB=$lt_RANLIB
 
16626
old_archive_cmds=$lt_old_archive_cmds_F77
 
16627
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16628
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16629
 
 
16630
# Create an old-style archive from a shared archive.
 
16631
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16632
 
 
16633
# Create a temporary old-style archive to link instead of a shared archive.
 
16634
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16635
 
 
16636
# Commands used to build and install a shared archive.
 
16637
archive_cmds=$lt_archive_cmds_F77
 
16638
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16639
postinstall_cmds=$lt_postinstall_cmds
 
16640
postuninstall_cmds=$lt_postuninstall_cmds
 
16641
 
 
16642
# Commands used to build a loadable module (assumed same as above if empty)
 
16643
module_cmds=$lt_module_cmds_F77
 
16644
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16645
 
 
16646
# Commands to strip libraries.
 
16647
old_striplib=$lt_old_striplib
 
16648
striplib=$lt_striplib
 
16649
 
 
16650
# Dependencies to place before the objects being linked to create a
 
16651
# shared library.
 
16652
predep_objects=$lt_predep_objects_F77
 
16653
 
 
16654
# Dependencies to place after the objects being linked to create a
 
16655
# shared library.
 
16656
postdep_objects=$lt_postdep_objects_F77
 
16657
 
 
16658
# Dependencies to place before the objects being linked to create a
 
16659
# shared library.
 
16660
predeps=$lt_predeps_F77
 
16661
 
 
16662
# Dependencies to place after the objects being linked to create a
 
16663
# shared library.
 
16664
postdeps=$lt_postdeps_F77
 
16665
 
 
16666
# The directories searched by this compiler when creating a shared
 
16667
# library
 
16668
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16669
 
 
16670
# The library search path used internally by the compiler when linking
 
16671
# a shared library.
 
16672
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16673
 
 
16674
# Method to check whether dependent libraries are shared objects.
 
16675
deplibs_check_method=$lt_deplibs_check_method
 
16676
 
 
16677
# Command to use when deplibs_check_method == file_magic.
 
16678
file_magic_cmd=$lt_file_magic_cmd
 
16679
 
 
16680
# Flag that allows shared libraries with undefined symbols to be built.
 
16681
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16682
 
 
16683
# Flag that forces no undefined symbols.
 
16684
no_undefined_flag=$lt_no_undefined_flag_F77
 
16685
 
 
16686
# Commands used to finish a libtool library installation in a directory.
 
16687
finish_cmds=$lt_finish_cmds
 
16688
 
 
16689
# Same as above, but a single script fragment to be evaled but not shown.
 
16690
finish_eval=$lt_finish_eval
 
16691
 
 
16692
# Take the output of nm and produce a listing of raw symbols and C names.
 
16693
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16694
 
 
16695
# Transform the output of nm in a proper C declaration
 
16696
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16697
 
 
16698
# Transform the output of nm in a C name address pair
 
16699
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16700
 
 
16701
# This is the shared library runtime path variable.
 
16702
runpath_var=$runpath_var
 
16703
 
 
16704
# This is the shared library path variable.
 
16705
shlibpath_var=$shlibpath_var
 
16706
 
 
16707
# Is shlibpath searched before the hard-coded library search path?
 
16708
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16709
 
 
16710
# How to hardcode a shared library path into an executable.
 
16711
hardcode_action=$hardcode_action_F77
 
16712
 
 
16713
# Whether we should hardcode library paths into libraries.
 
16714
hardcode_into_libs=$hardcode_into_libs
 
16715
 
 
16716
# Flag to hardcode \$libdir into a binary during linking.
 
16717
# This must work even if \$libdir does not exist.
 
16718
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16719
 
 
16720
# If ld is used when linking, flag to hardcode \$libdir into
 
16721
# a binary during linking. This must work even if \$libdir does
 
16722
# not exist.
 
16723
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16724
 
 
16725
# Whether we need a single -rpath flag with a separated argument.
 
16726
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16727
 
 
16728
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16729
# resulting binary.
 
16730
hardcode_direct=$hardcode_direct_F77
 
16731
 
 
16732
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16733
# resulting binary.
 
16734
hardcode_minus_L=$hardcode_minus_L_F77
 
16735
 
 
16736
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16737
# the resulting binary.
 
16738
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16739
 
 
16740
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16741
# and all subsequent libraries and executables linked against it.
 
16742
hardcode_automatic=$hardcode_automatic_F77
 
16743
 
 
16744
# Variables whose values should be saved in libtool wrapper scripts and
 
16745
# restored at relink time.
 
16746
variables_saved_for_relink="$variables_saved_for_relink"
 
16747
 
 
16748
# Whether libtool must link a program against all its dependency libraries.
 
16749
link_all_deplibs=$link_all_deplibs_F77
 
16750
 
 
16751
# Compile-time system search path for libraries
 
16752
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16753
 
 
16754
# Run-time system search path for libraries
 
16755
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16756
 
 
16757
# Fix the shell variable \$srcfile for the compiler.
 
16758
fix_srcfile_path=$lt_fix_srcfile_path
 
16759
 
 
16760
# Set to yes if exported symbols are required.
 
16761
always_export_symbols=$always_export_symbols_F77
 
16762
 
 
16763
# The commands to list exported symbols.
 
16764
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16765
 
 
16766
# The commands to extract the exported symbol list from a shared archive.
 
16767
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16768
 
 
16769
# Symbols that should not be listed in the preloaded symbols.
 
16770
exclude_expsyms=$lt_exclude_expsyms_F77
 
16771
 
 
16772
# Symbols that must always be exported.
 
16773
include_expsyms=$lt_include_expsyms_F77
 
16774
 
 
16775
# ### END LIBTOOL TAG CONFIG: $tagname
 
16776
 
 
16777
__EOF__
 
16778
 
 
16779
 
 
16780
else
 
16781
  # If there is no Makefile yet, we rely on a make rule to execute
 
16782
  # `config.status --recheck' to rerun these tests and create the
 
16783
  # libtool script then.
 
16784
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16785
  if test -f "$ltmain_in"; then
 
16786
    test -f Makefile && make "$ltmain"
 
16787
  fi
 
16788
fi
 
16789
 
 
16790
 
 
16791
ac_ext=c
 
16792
ac_cpp='$CPP $CPPFLAGS'
 
16793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16796
 
 
16797
CC="$lt_save_CC"
 
16798
 
 
16799
        else
 
16800
          tagname=""
 
16801
        fi
 
16802
        ;;
 
16803
 
 
16804
      GCJ)
 
16805
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16806
 
 
16807
 
 
16808
# Source file extension for Java test sources.
 
16809
ac_ext=java
 
16810
 
 
16811
# Object file extension for compiled Java test sources.
 
16812
objext=o
 
16813
objext_GCJ=$objext
 
16814
 
 
16815
# Code to be used in simple compile tests
 
16816
lt_simple_compile_test_code="class foo {}"
 
16817
 
 
16818
# Code to be used in simple link tests
 
16819
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16820
 
 
16821
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16822
 
 
16823
# If no C compiler was specified, use CC.
 
16824
LTCC=${LTCC-"$CC"}
 
16825
 
 
16826
# If no C compiler flags were specified, use CFLAGS.
 
16827
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16828
 
 
16829
# Allow CC to be a program name with arguments.
 
16830
compiler=$CC
 
16831
 
 
16832
 
 
16833
# save warnings/boilerplate of simple test code
 
16834
ac_outfile=conftest.$ac_objext
 
16835
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16836
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16837
_lt_compiler_boilerplate=`cat conftest.err`
 
16838
$rm conftest*
 
16839
 
 
16840
ac_outfile=conftest.$ac_objext
 
16841
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16842
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16843
_lt_linker_boilerplate=`cat conftest.err`
 
16844
$rm -r conftest*
 
16845
 
 
16846
 
 
16847
# Allow CC to be a program name with arguments.
 
16848
lt_save_CC="$CC"
 
16849
CC=${GCJ-"gcj"}
 
16850
compiler=$CC
 
16851
compiler_GCJ=$CC
 
16852
for cc_temp in $compiler""; do
 
16853
  case $cc_temp in
 
16854
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16855
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16856
    \-*) ;;
 
16857
    *) break;;
 
16858
  esac
 
16859
done
 
16860
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16861
 
 
16862
 
 
16863
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16864
archive_cmds_need_lc_GCJ=no
 
16865
 
 
16866
old_archive_cmds_GCJ=$old_archive_cmds
 
16867
 
 
16868
 
 
16869
lt_prog_compiler_no_builtin_flag_GCJ=
 
16870
 
 
16871
if test "$GCC" = yes; then
 
16872
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16873
 
 
16874
 
 
16875
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16876
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
16877
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16878
  $as_echo_n "(cached) " >&6
 
16879
else
 
16880
  lt_cv_prog_compiler_rtti_exceptions=no
 
16881
  ac_outfile=conftest.$ac_objext
 
16882
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16883
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16884
   # Insert the option either (1) after the last *FLAGS variable, or
 
16885
   # (2) before a word containing "conftest.", or (3) at the end.
 
16886
   # Note that $ac_compile itself does not contain backslashes and begins
 
16887
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16888
   # The option is referenced via a variable to avoid confusing sed.
 
16889
   lt_compile=`echo "$ac_compile" | $SED \
 
16890
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16891
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16892
   -e 's:$: $lt_compiler_flag:'`
 
16893
   (eval echo "\"\$as_me:16893: $lt_compile\"" >&5)
 
16894
   (eval "$lt_compile" 2>conftest.err)
 
16895
   ac_status=$?
 
16896
   cat conftest.err >&5
 
16897
   echo "$as_me:16897: \$? = $ac_status" >&5
 
16898
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16899
     # The compiler can only warn and ignore the option if not recognized
 
16900
     # So say no if there are warnings other than the usual output.
 
16901
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16902
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16903
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16904
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16905
     fi
 
16906
   fi
 
16907
   $rm conftest*
 
16908
 
 
16909
fi
 
16910
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16911
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16912
 
 
16913
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16914
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16915
else
 
16916
    :
 
16917
fi
 
16918
 
 
16919
fi
 
16920
 
 
16921
lt_prog_compiler_wl_GCJ=
 
16922
lt_prog_compiler_pic_GCJ=
 
16923
lt_prog_compiler_static_GCJ=
 
16924
 
 
16925
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16926
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
16927
 
 
16928
  if test "$GCC" = yes; then
 
16929
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16930
    lt_prog_compiler_static_GCJ='-static'
 
16931
 
 
16932
    case $host_os in
 
16933
      aix*)
 
16934
      # All AIX code is PIC.
 
16935
      if test "$host_cpu" = ia64; then
 
16936
        # AIX 5 now supports IA64 processor
 
16937
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16938
      fi
 
16939
      ;;
 
16940
 
 
16941
    amigaos*)
 
16942
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16943
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16944
      # like `-m68040'.
 
16945
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16946
      ;;
 
16947
 
 
16948
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16949
      # PIC is the default for these OSes.
 
16950
      ;;
 
16951
 
 
16952
    mingw* | cygwin* | pw32* | os2*)
 
16953
      # This hack is so that the source file can tell whether it is being
 
16954
      # built for inclusion in a dll (and should export symbols for example).
 
16955
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16956
      # (--disable-auto-import) libraries
 
16957
 
 
16958
      ;;
 
16959
 
 
16960
    darwin* | rhapsody*)
 
16961
      # PIC is the default on this platform
 
16962
      # Common symbols not allowed in MH_DYLIB files
 
16963
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16964
      ;;
 
16965
 
 
16966
    interix[3-9]*)
 
16967
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16968
      # Instead, we relocate shared libraries at runtime.
 
16969
      ;;
 
16970
 
 
16971
    msdosdjgpp*)
 
16972
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16973
      # on systems that don't support them.
 
16974
      lt_prog_compiler_can_build_shared_GCJ=no
 
16975
      enable_shared=no
 
16976
      ;;
 
16977
 
 
16978
    sysv4*MP*)
 
16979
      if test -d /usr/nec; then
 
16980
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16981
      fi
 
16982
      ;;
 
16983
 
 
16984
    hpux*)
 
16985
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16986
      # not for PA HP-UX.
 
16987
      case $host_cpu in
 
16988
      hppa*64*|ia64*)
 
16989
        # +Z the default
 
16990
        ;;
 
16991
      *)
 
16992
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16993
        ;;
 
16994
      esac
 
16995
      ;;
 
16996
 
 
16997
    *)
 
16998
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16999
      ;;
 
17000
    esac
 
17001
  else
 
17002
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17003
    case $host_os in
 
17004
    aix*)
 
17005
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17006
      if test "$host_cpu" = ia64; then
 
17007
        # AIX 5 now supports IA64 processor
 
17008
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17009
      else
 
17010
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17011
      fi
 
17012
      ;;
 
17013
      darwin*)
 
17014
        # PIC is the default on this platform
 
17015
        # Common symbols not allowed in MH_DYLIB files
 
17016
       case $cc_basename in
 
17017
         xlc*)
 
17018
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17019
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17020
         ;;
 
17021
       esac
 
17022
       ;;
 
17023
 
 
17024
    mingw* | cygwin* | pw32* | os2*)
 
17025
      # This hack is so that the source file can tell whether it is being
 
17026
      # built for inclusion in a dll (and should export symbols for example).
 
17027
 
 
17028
      ;;
 
17029
 
 
17030
    hpux9* | hpux10* | hpux11*)
 
17031
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17032
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17033
      # not for PA HP-UX.
 
17034
      case $host_cpu in
 
17035
      hppa*64*|ia64*)
 
17036
        # +Z the default
 
17037
        ;;
 
17038
      *)
 
17039
        lt_prog_compiler_pic_GCJ='+Z'
 
17040
        ;;
 
17041
      esac
 
17042
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17043
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17044
      ;;
 
17045
 
 
17046
    irix5* | irix6* | nonstopux*)
 
17047
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17048
      # PIC (with -KPIC) is the default.
 
17049
      lt_prog_compiler_static_GCJ='-non_shared'
 
17050
      ;;
 
17051
 
 
17052
    newsos6)
 
17053
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17054
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17055
      ;;
 
17056
 
 
17057
    linux* | k*bsd*-gnu)
 
17058
      case $cc_basename in
 
17059
      icc* | ecc*)
 
17060
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17061
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17062
        lt_prog_compiler_static_GCJ='-static'
 
17063
        ;;
 
17064
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17065
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17066
        # which looks to be a dead project)
 
17067
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17068
        lt_prog_compiler_pic_GCJ='-fpic'
 
17069
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17070
        ;;
 
17071
      ccc*)
 
17072
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17073
        # All Alpha code is PIC.
 
17074
        lt_prog_compiler_static_GCJ='-non_shared'
 
17075
        ;;
 
17076
      *)
 
17077
        case `$CC -V 2>&1 | sed 5q` in
 
17078
        *Sun\ C*)
 
17079
          # Sun C 5.9
 
17080
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17081
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17082
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17083
          ;;
 
17084
        *Sun\ F*)
 
17085
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17086
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17087
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17088
          lt_prog_compiler_wl_GCJ=''
 
17089
          ;;
 
17090
        esac
 
17091
        ;;
 
17092
      esac
 
17093
      ;;
 
17094
 
 
17095
    osf3* | osf4* | osf5*)
 
17096
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17097
      # All OSF/1 code is PIC.
 
17098
      lt_prog_compiler_static_GCJ='-non_shared'
 
17099
      ;;
 
17100
 
 
17101
    rdos*)
 
17102
      lt_prog_compiler_static_GCJ='-non_shared'
 
17103
      ;;
 
17104
 
 
17105
    solaris*)
 
17106
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17107
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17108
      case $cc_basename in
 
17109
      f77* | f90* | f95*)
 
17110
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17111
      *)
 
17112
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17113
      esac
 
17114
      ;;
 
17115
 
 
17116
    sunos4*)
 
17117
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17118
      lt_prog_compiler_pic_GCJ='-PIC'
 
17119
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17120
      ;;
 
17121
 
 
17122
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17123
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17124
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17125
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17126
      ;;
 
17127
 
 
17128
    sysv4*MP*)
 
17129
      if test -d /usr/nec ;then
 
17130
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17131
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17132
      fi
 
17133
      ;;
 
17134
 
 
17135
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17136
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17137
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17138
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17139
      ;;
 
17140
 
 
17141
    unicos*)
 
17142
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17143
      lt_prog_compiler_can_build_shared_GCJ=no
 
17144
      ;;
 
17145
 
 
17146
    uts4*)
 
17147
      lt_prog_compiler_pic_GCJ='-pic'
 
17148
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17149
      ;;
 
17150
 
 
17151
    *)
 
17152
      lt_prog_compiler_can_build_shared_GCJ=no
 
17153
      ;;
 
17154
    esac
 
17155
  fi
 
17156
 
 
17157
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17158
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17159
 
 
17160
#
 
17161
# Check to make sure the PIC flag actually works.
 
17162
#
 
17163
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17164
 
 
17165
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17166
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17167
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17168
  $as_echo_n "(cached) " >&6
 
17169
else
 
17170
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17171
  ac_outfile=conftest.$ac_objext
 
17172
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17173
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17174
   # Insert the option either (1) after the last *FLAGS variable, or
 
17175
   # (2) before a word containing "conftest.", or (3) at the end.
 
17176
   # Note that $ac_compile itself does not contain backslashes and begins
 
17177
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17178
   # The option is referenced via a variable to avoid confusing sed.
 
17179
   lt_compile=`echo "$ac_compile" | $SED \
 
17180
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17181
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17182
   -e 's:$: $lt_compiler_flag:'`
 
17183
   (eval echo "\"\$as_me:17183: $lt_compile\"" >&5)
 
17184
   (eval "$lt_compile" 2>conftest.err)
 
17185
   ac_status=$?
 
17186
   cat conftest.err >&5
 
17187
   echo "$as_me:17187: \$? = $ac_status" >&5
 
17188
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17189
     # The compiler can only warn and ignore the option if not recognized
 
17190
     # So say no if there are warnings other than the usual output.
 
17191
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17192
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17193
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17194
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17195
     fi
 
17196
   fi
 
17197
   $rm conftest*
 
17198
 
 
17199
fi
 
17200
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17201
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17202
 
 
17203
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17204
    case $lt_prog_compiler_pic_GCJ in
 
17205
     "" | " "*) ;;
 
17206
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17207
     esac
 
17208
else
 
17209
    lt_prog_compiler_pic_GCJ=
 
17210
     lt_prog_compiler_can_build_shared_GCJ=no
 
17211
fi
 
17212
 
 
17213
fi
 
17214
case $host_os in
 
17215
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17216
  *djgpp*)
 
17217
    lt_prog_compiler_pic_GCJ=
 
17218
    ;;
 
17219
  *)
 
17220
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17221
    ;;
 
17222
esac
 
17223
 
 
17224
#
 
17225
# Check to make sure the static flag actually works.
 
17226
#
 
17227
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17228
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17229
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17230
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17231
  $as_echo_n "(cached) " >&6
 
17232
else
 
17233
  lt_cv_prog_compiler_static_works_GCJ=no
 
17234
   save_LDFLAGS="$LDFLAGS"
 
17235
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17236
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17237
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17238
     # The linker can only warn and ignore the option if not recognized
 
17239
     # So say no if there are warnings
 
17240
     if test -s conftest.err; then
 
17241
       # Append any errors to the config.log.
 
17242
       cat conftest.err 1>&5
 
17243
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17244
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17245
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17246
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17247
       fi
 
17248
     else
 
17249
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17250
     fi
 
17251
   fi
 
17252
   $rm -r conftest*
 
17253
   LDFLAGS="$save_LDFLAGS"
 
17254
 
 
17255
fi
 
17256
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17257
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17258
 
 
17259
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17260
    :
 
17261
else
 
17262
    lt_prog_compiler_static_GCJ=
 
17263
fi
 
17264
 
 
17265
 
 
17266
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17267
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17268
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17269
  $as_echo_n "(cached) " >&6
 
17270
else
 
17271
  lt_cv_prog_compiler_c_o_GCJ=no
 
17272
   $rm -r conftest 2>/dev/null
 
17273
   mkdir conftest
 
17274
   cd conftest
 
17275
   mkdir out
 
17276
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17277
 
 
17278
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17279
   # Insert the option either (1) after the last *FLAGS variable, or
 
17280
   # (2) before a word containing "conftest.", or (3) at the end.
 
17281
   # Note that $ac_compile itself does not contain backslashes and begins
 
17282
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17283
   lt_compile=`echo "$ac_compile" | $SED \
 
17284
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17285
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17286
   -e 's:$: $lt_compiler_flag:'`
 
17287
   (eval echo "\"\$as_me:17287: $lt_compile\"" >&5)
 
17288
   (eval "$lt_compile" 2>out/conftest.err)
 
17289
   ac_status=$?
 
17290
   cat out/conftest.err >&5
 
17291
   echo "$as_me:17291: \$? = $ac_status" >&5
 
17292
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17293
   then
 
17294
     # The compiler can only warn and ignore the option if not recognized
 
17295
     # So say no if there are warnings
 
17296
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17297
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17298
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17299
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17300
     fi
 
17301
   fi
 
17302
   chmod u+w . 2>&5
 
17303
   $rm conftest*
 
17304
   # SGI C++ compiler will create directory out/ii_files/ for
 
17305
   # template instantiation
 
17306
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17307
   $rm out/* && rmdir out
 
17308
   cd ..
 
17309
   rmdir conftest
 
17310
   $rm conftest*
 
17311
 
 
17312
fi
 
17313
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17314
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17315
 
 
17316
 
 
17317
hard_links="nottested"
 
17318
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17319
  # do not overwrite the value of need_locks provided by the user
 
17320
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17321
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17322
  hard_links=yes
 
17323
  $rm conftest*
 
17324
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17325
  touch conftest.a
 
17326
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17327
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17328
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17329
$as_echo "$hard_links" >&6; }
 
17330
  if test "$hard_links" = no; then
 
17331
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17332
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17333
    need_locks=warn
 
17334
  fi
 
17335
else
 
17336
  need_locks=no
 
17337
fi
 
17338
 
 
17339
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17340
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17341
 
 
17342
  runpath_var=
 
17343
  allow_undefined_flag_GCJ=
 
17344
  enable_shared_with_static_runtimes_GCJ=no
 
17345
  archive_cmds_GCJ=
 
17346
  archive_expsym_cmds_GCJ=
 
17347
  old_archive_From_new_cmds_GCJ=
 
17348
  old_archive_from_expsyms_cmds_GCJ=
 
17349
  export_dynamic_flag_spec_GCJ=
 
17350
  whole_archive_flag_spec_GCJ=
 
17351
  thread_safe_flag_spec_GCJ=
 
17352
  hardcode_libdir_flag_spec_GCJ=
 
17353
  hardcode_libdir_flag_spec_ld_GCJ=
 
17354
  hardcode_libdir_separator_GCJ=
 
17355
  hardcode_direct_GCJ=no
 
17356
  hardcode_minus_L_GCJ=no
 
17357
  hardcode_shlibpath_var_GCJ=unsupported
 
17358
  link_all_deplibs_GCJ=unknown
 
17359
  hardcode_automatic_GCJ=no
 
17360
  module_cmds_GCJ=
 
17361
  module_expsym_cmds_GCJ=
 
17362
  always_export_symbols_GCJ=no
 
17363
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17364
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17365
  # included in the symbol list
 
17366
  include_expsyms_GCJ=
 
17367
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17368
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17369
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17370
  # as well as any symbol that contains `d'.
 
17371
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17372
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17373
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17374
  # the symbol is explicitly referenced.  Since portable code cannot
 
17375
  # rely on this symbol name, it's probably fine to never include it in
 
17376
  # preloaded symbol tables.
 
17377
  # Exclude shared library initialization/finalization symbols.
 
17378
  extract_expsyms_cmds=
 
17379
  # Just being paranoid about ensuring that cc_basename is set.
 
17380
  for cc_temp in $compiler""; do
 
17381
  case $cc_temp in
 
17382
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17383
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17384
    \-*) ;;
 
17385
    *) break;;
 
17386
  esac
 
17387
done
 
17388
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17389
 
 
17390
  case $host_os in
 
17391
  cygwin* | mingw* | pw32*)
 
17392
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17393
    # When not using gcc, we currently assume that we are using
 
17394
    # Microsoft Visual C++.
 
17395
    if test "$GCC" != yes; then
 
17396
      with_gnu_ld=no
 
17397
    fi
 
17398
    ;;
 
17399
  interix*)
 
17400
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17401
    with_gnu_ld=yes
 
17402
    ;;
 
17403
  openbsd*)
 
17404
    with_gnu_ld=no
 
17405
    ;;
 
17406
  esac
 
17407
 
 
17408
  ld_shlibs_GCJ=yes
 
17409
  if test "$with_gnu_ld" = yes; then
 
17410
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17411
    wlarc='${wl}'
 
17412
 
 
17413
    # Set some defaults for GNU ld with shared library support. These
 
17414
    # are reset later if shared libraries are not supported. Putting them
 
17415
    # here allows them to be overridden if necessary.
 
17416
    runpath_var=LD_RUN_PATH
 
17417
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17418
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17419
    # ancient GNU ld didn't support --whole-archive et. al.
 
17420
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17421
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17422
      else
 
17423
        whole_archive_flag_spec_GCJ=
 
17424
    fi
 
17425
    supports_anon_versioning=no
 
17426
    case `$LD -v 2>/dev/null` in
 
17427
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17428
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17429
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17430
      *\ 2.11.*) ;; # other 2.11 versions
 
17431
      *) supports_anon_versioning=yes ;;
 
17432
    esac
 
17433
 
 
17434
    # See if GNU ld supports shared libraries.
 
17435
    case $host_os in
 
17436
    aix[3-9]*)
 
17437
      # On AIX/PPC, the GNU linker is very broken
 
17438
      if test "$host_cpu" != ia64; then
 
17439
        ld_shlibs_GCJ=no
 
17440
        cat <<EOF 1>&2
 
17441
 
 
17442
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17443
*** to be unable to reliably create shared libraries on AIX.
 
17444
*** Therefore, libtool is disabling shared libraries support.  If you
 
17445
*** really care for shared libraries, you may want to modify your PATH
 
17446
*** so that a non-GNU linker is found, and then restart.
 
17447
 
 
17448
EOF
 
17449
      fi
 
17450
      ;;
 
17451
 
 
17452
    amigaos*)
 
17453
      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)'
 
17454
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17455
      hardcode_minus_L_GCJ=yes
 
17456
 
 
17457
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17458
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17459
      # to version 4, is to share data among multiple programs linked
 
17460
      # with the same dynamic library.  Since this doesn't match the
 
17461
      # behavior of shared libraries on other platforms, we can't use
 
17462
      # them.
 
17463
      ld_shlibs_GCJ=no
 
17464
      ;;
 
17465
 
 
17466
    beos*)
 
17467
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17468
        allow_undefined_flag_GCJ=unsupported
 
17469
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17470
        # support --undefined.  This deserves some investigation.  FIXME
 
17471
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17472
      else
 
17473
        ld_shlibs_GCJ=no
 
17474
      fi
 
17475
      ;;
 
17476
 
 
17477
    cygwin* | mingw* | pw32*)
 
17478
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17479
      # as there is no search path for DLLs.
 
17480
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17481
      allow_undefined_flag_GCJ=unsupported
 
17482
      always_export_symbols_GCJ=no
 
17483
      enable_shared_with_static_runtimes_GCJ=yes
 
17484
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17485
 
 
17486
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17487
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17488
        # If the export-symbols file already is a .def file (1st line
 
17489
        # is EXPORTS), use it as is; otherwise, prepend...
 
17490
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17491
          cp $export_symbols $output_objdir/$soname.def;
 
17492
        else
 
17493
          echo EXPORTS > $output_objdir/$soname.def;
 
17494
          cat $export_symbols >> $output_objdir/$soname.def;
 
17495
        fi~
 
17496
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17497
      else
 
17498
        ld_shlibs_GCJ=no
 
17499
      fi
 
17500
      ;;
 
17501
 
 
17502
    interix[3-9]*)
 
17503
      hardcode_direct_GCJ=no
 
17504
      hardcode_shlibpath_var_GCJ=no
 
17505
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17506
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17507
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17508
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17509
      # default) and relocated if they conflict, which is a slow very memory
 
17510
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17511
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17512
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17513
      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'
 
17514
      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'
 
17515
      ;;
 
17516
 
 
17517
    gnu* | linux* | k*bsd*-gnu)
 
17518
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17519
        tmp_addflag=
 
17520
        case $cc_basename,$host_cpu in
 
17521
        pgcc*)                          # Portland Group C compiler
 
17522
          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'
 
17523
          tmp_addflag=' $pic_flag'
 
17524
          ;;
 
17525
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17526
          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'
 
17527
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17528
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17529
          tmp_addflag=' -i_dynamic' ;;
 
17530
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17531
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17532
        ifc* | ifort*)                  # Intel Fortran compiler
 
17533
          tmp_addflag=' -nofor_main' ;;
 
17534
        esac
 
17535
        case `$CC -V 2>&1 | sed 5q` in
 
17536
        *Sun\ C*)                       # Sun C 5.9
 
17537
          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'
 
17538
          tmp_sharedflag='-G' ;;
 
17539
        *Sun\ F*)                       # Sun Fortran 8.3
 
17540
          tmp_sharedflag='-G' ;;
 
17541
        *)
 
17542
          tmp_sharedflag='-shared' ;;
 
17543
        esac
 
17544
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17545
 
 
17546
        if test $supports_anon_versioning = yes; then
 
17547
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17548
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17549
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17550
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17551
        fi
 
17552
      else
 
17553
        ld_shlibs_GCJ=no
 
17554
      fi
 
17555
      ;;
 
17556
 
 
17557
    netbsd*)
 
17558
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17559
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17560
        wlarc=
 
17561
      else
 
17562
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17563
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17564
      fi
 
17565
      ;;
 
17566
 
 
17567
    solaris*)
 
17568
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17569
        ld_shlibs_GCJ=no
 
17570
        cat <<EOF 1>&2
 
17571
 
 
17572
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17573
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17574
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17575
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17576
*** your PATH or compiler configuration so that the native linker is
 
17577
*** used, and then restart.
 
17578
 
 
17579
EOF
 
17580
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17581
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17582
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17583
      else
 
17584
        ld_shlibs_GCJ=no
 
17585
      fi
 
17586
      ;;
 
17587
 
 
17588
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17589
      case `$LD -v 2>&1` in
 
17590
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17591
        ld_shlibs_GCJ=no
 
17592
        cat <<_LT_EOF 1>&2
 
17593
 
 
17594
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17595
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17596
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17597
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17598
*** your PATH or compiler configuration so that the native linker is
 
17599
*** used, and then restart.
 
17600
 
 
17601
_LT_EOF
 
17602
        ;;
 
17603
        *)
 
17604
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17605
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17606
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17607
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17608
          else
 
17609
            ld_shlibs_GCJ=no
 
17610
          fi
 
17611
        ;;
 
17612
      esac
 
17613
      ;;
 
17614
 
 
17615
    sunos4*)
 
17616
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17617
      wlarc=
 
17618
      hardcode_direct_GCJ=yes
 
17619
      hardcode_shlibpath_var_GCJ=no
 
17620
      ;;
 
17621
 
 
17622
    *)
 
17623
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17624
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17625
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17626
      else
 
17627
        ld_shlibs_GCJ=no
 
17628
      fi
 
17629
      ;;
 
17630
    esac
 
17631
 
 
17632
    if test "$ld_shlibs_GCJ" = no; then
 
17633
      runpath_var=
 
17634
      hardcode_libdir_flag_spec_GCJ=
 
17635
      export_dynamic_flag_spec_GCJ=
 
17636
      whole_archive_flag_spec_GCJ=
 
17637
    fi
 
17638
  else
 
17639
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17640
    case $host_os in
 
17641
    aix3*)
 
17642
      allow_undefined_flag_GCJ=unsupported
 
17643
      always_export_symbols_GCJ=yes
 
17644
      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'
 
17645
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17646
      # are no directories specified by -L.
 
17647
      hardcode_minus_L_GCJ=yes
 
17648
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17649
        # Neither direct hardcoding nor static linking is supported with a
 
17650
        # broken collect2.
 
17651
        hardcode_direct_GCJ=unsupported
 
17652
      fi
 
17653
      ;;
 
17654
 
 
17655
    aix[4-9]*)
 
17656
      if test "$host_cpu" = ia64; then
 
17657
        # On IA64, the linker does run time linking by default, so we don't
 
17658
        # have to do anything special.
 
17659
        aix_use_runtimelinking=no
 
17660
        exp_sym_flag='-Bexport'
 
17661
        no_entry_flag=""
 
17662
      else
 
17663
        # If we're using GNU nm, then we don't want the "-C" option.
 
17664
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17665
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17666
          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'
 
17667
        else
 
17668
          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'
 
17669
        fi
 
17670
        aix_use_runtimelinking=no
 
17671
 
 
17672
        # Test if we are trying to use run time linking or normal
 
17673
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17674
        # need to do runtime linking.
 
17675
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17676
          for ld_flag in $LDFLAGS; do
 
17677
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17678
            aix_use_runtimelinking=yes
 
17679
            break
 
17680
          fi
 
17681
          done
 
17682
          ;;
 
17683
        esac
 
17684
 
 
17685
        exp_sym_flag='-bexport'
 
17686
        no_entry_flag='-bnoentry'
 
17687
      fi
 
17688
 
 
17689
      # When large executables or shared objects are built, AIX ld can
 
17690
      # have problems creating the table of contents.  If linking a library
 
17691
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17692
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17693
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17694
 
 
17695
      archive_cmds_GCJ=''
 
17696
      hardcode_direct_GCJ=yes
 
17697
      hardcode_libdir_separator_GCJ=':'
 
17698
      link_all_deplibs_GCJ=yes
 
17699
 
 
17700
      if test "$GCC" = yes; then
 
17701
        case $host_os in aix4.[012]|aix4.[012].*)
 
17702
        # We only want to do this on AIX 4.2 and lower, the check
 
17703
        # below for broken collect2 doesn't work under 4.3+
 
17704
          collect2name=`${CC} -print-prog-name=collect2`
 
17705
          if test -f "$collect2name" && \
 
17706
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17707
          then
 
17708
          # We have reworked collect2
 
17709
          :
 
17710
          else
 
17711
          # We have old collect2
 
17712
          hardcode_direct_GCJ=unsupported
 
17713
          # It fails to find uninstalled libraries when the uninstalled
 
17714
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17715
          # to unsupported forces relinking
 
17716
          hardcode_minus_L_GCJ=yes
 
17717
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17718
          hardcode_libdir_separator_GCJ=
 
17719
          fi
 
17720
          ;;
 
17721
        esac
 
17722
        shared_flag='-shared'
 
17723
        if test "$aix_use_runtimelinking" = yes; then
 
17724
          shared_flag="$shared_flag "'${wl}-G'
 
17725
        fi
 
17726
      else
 
17727
        # not using gcc
 
17728
        if test "$host_cpu" = ia64; then
 
17729
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17730
        # chokes on -Wl,-G. The following line is correct:
 
17731
          shared_flag='-G'
 
17732
        else
 
17733
          if test "$aix_use_runtimelinking" = yes; then
 
17734
            shared_flag='${wl}-G'
 
17735
          else
 
17736
            shared_flag='${wl}-bM:SRE'
 
17737
          fi
 
17738
        fi
 
17739
      fi
 
17740
 
 
17741
      # It seems that -bexpall does not export symbols beginning with
 
17742
      # underscore (_), so it is better to generate a list of symbols to export.
 
17743
      always_export_symbols_GCJ=yes
 
17744
      if test "$aix_use_runtimelinking" = yes; then
 
17745
        # Warning - without using the other runtime loading flags (-brtl),
 
17746
        # -berok will link without error, but may produce a broken library.
 
17747
        allow_undefined_flag_GCJ='-berok'
 
17748
       # Determine the default libpath from the value encoded in an empty executable.
 
17749
       cat >conftest.$ac_ext <<_ACEOF
 
17750
/* confdefs.h.  */
 
17751
_ACEOF
 
17752
cat confdefs.h >>conftest.$ac_ext
 
17753
cat >>conftest.$ac_ext <<_ACEOF
 
17754
/* end confdefs.h.  */
 
17755
 
 
17756
int
 
17757
main ()
 
17758
{
 
17759
 
 
17760
  ;
 
17761
  return 0;
 
17762
}
 
17763
_ACEOF
 
17764
rm -f conftest.$ac_objext conftest$ac_exeext
 
17765
if { (ac_try="$ac_link"
 
17766
case "(($ac_try" in
 
17767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17768
  *) ac_try_echo=$ac_try;;
 
17769
esac
 
17770
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17771
$as_echo "$ac_try_echo") >&5
 
17772
  (eval "$ac_link") 2>conftest.er1
 
17773
  ac_status=$?
 
17774
  grep -v '^ *+' conftest.er1 >conftest.err
 
17775
  rm -f conftest.er1
 
17776
  cat conftest.err >&5
 
17777
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17778
  (exit $ac_status); } && {
 
17779
         test -z "$ac_c_werror_flag" ||
 
17780
         test ! -s conftest.err
 
17781
       } && test -s conftest$ac_exeext && {
 
17782
         test "$cross_compiling" = yes ||
 
17783
         $as_test_x conftest$ac_exeext
 
17784
       }; then
 
17785
 
 
17786
lt_aix_libpath_sed='
 
17787
    /Import File Strings/,/^$/ {
 
17788
        /^0/ {
 
17789
            s/^0  *\(.*\)$/\1/
 
17790
            p
 
17791
        }
 
17792
    }'
 
17793
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17794
# Check for a 64-bit object if we didn't find anything.
 
17795
if test -z "$aix_libpath"; then
 
17796
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17797
fi
 
17798
else
 
17799
  $as_echo "$as_me: failed program was:" >&5
 
17800
sed 's/^/| /' conftest.$ac_ext >&5
 
17801
 
 
17802
 
 
17803
fi
 
17804
 
 
17805
rm -rf conftest.dSYM
 
17806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17807
      conftest$ac_exeext conftest.$ac_ext
 
17808
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17809
 
 
17810
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17811
        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"
 
17812
       else
 
17813
        if test "$host_cpu" = ia64; then
 
17814
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17815
          allow_undefined_flag_GCJ="-z nodefs"
 
17816
          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"
 
17817
        else
 
17818
         # Determine the default libpath from the value encoded in an empty executable.
 
17819
         cat >conftest.$ac_ext <<_ACEOF
 
17820
/* confdefs.h.  */
 
17821
_ACEOF
 
17822
cat confdefs.h >>conftest.$ac_ext
 
17823
cat >>conftest.$ac_ext <<_ACEOF
 
17824
/* end confdefs.h.  */
 
17825
 
 
17826
int
 
17827
main ()
 
17828
{
 
17829
 
 
17830
  ;
 
17831
  return 0;
 
17832
}
 
17833
_ACEOF
 
17834
rm -f conftest.$ac_objext conftest$ac_exeext
 
17835
if { (ac_try="$ac_link"
 
17836
case "(($ac_try" in
 
17837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17838
  *) ac_try_echo=$ac_try;;
 
17839
esac
 
17840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17841
$as_echo "$ac_try_echo") >&5
 
17842
  (eval "$ac_link") 2>conftest.er1
 
17843
  ac_status=$?
 
17844
  grep -v '^ *+' conftest.er1 >conftest.err
 
17845
  rm -f conftest.er1
 
17846
  cat conftest.err >&5
 
17847
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17848
  (exit $ac_status); } && {
 
17849
         test -z "$ac_c_werror_flag" ||
 
17850
         test ! -s conftest.err
 
17851
       } && test -s conftest$ac_exeext && {
 
17852
         test "$cross_compiling" = yes ||
 
17853
         $as_test_x conftest$ac_exeext
 
17854
       }; then
 
17855
 
 
17856
lt_aix_libpath_sed='
 
17857
    /Import File Strings/,/^$/ {
 
17858
        /^0/ {
 
17859
            s/^0  *\(.*\)$/\1/
 
17860
            p
 
17861
        }
 
17862
    }'
 
17863
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17864
# Check for a 64-bit object if we didn't find anything.
 
17865
if test -z "$aix_libpath"; then
 
17866
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17867
fi
 
17868
else
 
17869
  $as_echo "$as_me: failed program was:" >&5
 
17870
sed 's/^/| /' conftest.$ac_ext >&5
 
17871
 
 
17872
 
 
17873
fi
 
17874
 
 
17875
rm -rf conftest.dSYM
 
17876
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17877
      conftest$ac_exeext conftest.$ac_ext
 
17878
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17879
 
 
17880
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17881
          # Warning - without using the other run time loading flags,
 
17882
          # -berok will link without error, but may produce a broken library.
 
17883
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17884
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17885
          # Exported symbols can be pulled into shared objects from archives
 
17886
          whole_archive_flag_spec_GCJ='$convenience'
 
17887
          archive_cmds_need_lc_GCJ=yes
 
17888
          # This is similar to how AIX traditionally builds its shared libraries.
 
17889
          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'
 
17890
        fi
 
17891
      fi
 
17892
      ;;
 
17893
 
 
17894
    amigaos*)
 
17895
      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)'
 
17896
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17897
      hardcode_minus_L_GCJ=yes
 
17898
      # see comment about different semantics on the GNU ld section
 
17899
      ld_shlibs_GCJ=no
 
17900
      ;;
 
17901
 
 
17902
    bsdi[45]*)
 
17903
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17904
      ;;
 
17905
 
 
17906
    cygwin* | mingw* | pw32*)
 
17907
      # When not using gcc, we currently assume that we are using
 
17908
      # Microsoft Visual C++.
 
17909
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17910
      # no search path for DLLs.
 
17911
      hardcode_libdir_flag_spec_GCJ=' '
 
17912
      allow_undefined_flag_GCJ=unsupported
 
17913
      # Tell ltmain to make .lib files, not .a files.
 
17914
      libext=lib
 
17915
      # Tell ltmain to make .dll files, not .so files.
 
17916
      shrext_cmds=".dll"
 
17917
      # FIXME: Setting linknames here is a bad hack.
 
17918
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17919
      # The linker will automatically build a .lib file if we build a DLL.
 
17920
      old_archive_From_new_cmds_GCJ='true'
 
17921
      # FIXME: Should let the user specify the lib program.
 
17922
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17923
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17924
      enable_shared_with_static_runtimes_GCJ=yes
 
17925
      ;;
 
17926
 
 
17927
    darwin* | rhapsody*)
 
17928
      case $host_os in
 
17929
        rhapsody* | darwin1.[012])
 
17930
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17931
         ;;
 
17932
       *) # Darwin 1.3 on
 
17933
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17934
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17935
         else
 
17936
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17937
             10.[012])
 
17938
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17939
               ;;
 
17940
             10.*)
 
17941
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17942
               ;;
 
17943
           esac
 
17944
         fi
 
17945
         ;;
 
17946
      esac
 
17947
      archive_cmds_need_lc_GCJ=no
 
17948
      hardcode_direct_GCJ=no
 
17949
      hardcode_automatic_GCJ=yes
 
17950
      hardcode_shlibpath_var_GCJ=unsupported
 
17951
      whole_archive_flag_spec_GCJ=''
 
17952
      link_all_deplibs_GCJ=yes
 
17953
    if test "$GCC" = yes ; then
 
17954
        output_verbose_link_cmd='echo'
 
17955
        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}"
 
17956
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17957
        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}"
 
17958
        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}"
 
17959
    else
 
17960
      case $cc_basename in
 
17961
        xlc*)
 
17962
         output_verbose_link_cmd='echo'
 
17963
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17964
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17965
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17966
         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}'
 
17967
          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}'
 
17968
          ;;
 
17969
       *)
 
17970
         ld_shlibs_GCJ=no
 
17971
          ;;
 
17972
      esac
 
17973
    fi
 
17974
      ;;
 
17975
 
 
17976
    dgux*)
 
17977
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17978
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17979
      hardcode_shlibpath_var_GCJ=no
 
17980
      ;;
 
17981
 
 
17982
    freebsd1*)
 
17983
      ld_shlibs_GCJ=no
 
17984
      ;;
 
17985
 
 
17986
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17987
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17988
    # does not break anything, and helps significantly (at the cost of a little
 
17989
    # extra space).
 
17990
    freebsd2.2*)
 
17991
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17992
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17993
      hardcode_direct_GCJ=yes
 
17994
      hardcode_shlibpath_var_GCJ=no
 
17995
      ;;
 
17996
 
 
17997
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17998
    freebsd2*)
 
17999
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18000
      hardcode_direct_GCJ=yes
 
18001
      hardcode_minus_L_GCJ=yes
 
18002
      hardcode_shlibpath_var_GCJ=no
 
18003
      ;;
 
18004
 
 
18005
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18006
    freebsd* | dragonfly*)
 
18007
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18008
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18009
      hardcode_direct_GCJ=yes
 
18010
      hardcode_shlibpath_var_GCJ=no
 
18011
      ;;
 
18012
 
 
18013
    hpux9*)
 
18014
      if test "$GCC" = yes; then
 
18015
        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'
 
18016
      else
 
18017
        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'
 
18018
      fi
 
18019
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18020
      hardcode_libdir_separator_GCJ=:
 
18021
      hardcode_direct_GCJ=yes
 
18022
 
 
18023
      # hardcode_minus_L: Not really in the search PATH,
 
18024
      # but as the default location of the library.
 
18025
      hardcode_minus_L_GCJ=yes
 
18026
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18027
      ;;
 
18028
 
 
18029
    hpux10*)
 
18030
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18031
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18032
      else
 
18033
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18034
      fi
 
18035
      if test "$with_gnu_ld" = no; then
 
18036
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18037
        hardcode_libdir_separator_GCJ=:
 
18038
 
 
18039
        hardcode_direct_GCJ=yes
 
18040
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18041
 
 
18042
        # hardcode_minus_L: Not really in the search PATH,
 
18043
        # but as the default location of the library.
 
18044
        hardcode_minus_L_GCJ=yes
 
18045
      fi
 
18046
      ;;
 
18047
 
 
18048
    hpux11*)
 
18049
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18050
        case $host_cpu in
 
18051
        hppa*64*)
 
18052
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18053
          ;;
 
18054
        ia64*)
 
18055
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18056
          ;;
 
18057
        *)
 
18058
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18059
          ;;
 
18060
        esac
 
18061
      else
 
18062
        case $host_cpu in
 
18063
        hppa*64*)
 
18064
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18065
          ;;
 
18066
        ia64*)
 
18067
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18068
          ;;
 
18069
        *)
 
18070
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18071
          ;;
 
18072
        esac
 
18073
      fi
 
18074
      if test "$with_gnu_ld" = no; then
 
18075
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18076
        hardcode_libdir_separator_GCJ=:
 
18077
 
 
18078
        case $host_cpu in
 
18079
        hppa*64*|ia64*)
 
18080
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18081
          hardcode_direct_GCJ=no
 
18082
          hardcode_shlibpath_var_GCJ=no
 
18083
          ;;
 
18084
        *)
 
18085
          hardcode_direct_GCJ=yes
 
18086
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18087
 
 
18088
          # hardcode_minus_L: Not really in the search PATH,
 
18089
          # but as the default location of the library.
 
18090
          hardcode_minus_L_GCJ=yes
 
18091
          ;;
 
18092
        esac
 
18093
      fi
 
18094
      ;;
 
18095
 
 
18096
    irix5* | irix6* | nonstopux*)
 
18097
      if test "$GCC" = yes; then
 
18098
        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'
 
18099
      else
 
18100
        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'
 
18101
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18102
      fi
 
18103
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18104
      hardcode_libdir_separator_GCJ=:
 
18105
      link_all_deplibs_GCJ=yes
 
18106
      ;;
 
18107
 
 
18108
    netbsd*)
 
18109
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18110
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18111
      else
 
18112
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18113
      fi
 
18114
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18115
      hardcode_direct_GCJ=yes
 
18116
      hardcode_shlibpath_var_GCJ=no
 
18117
      ;;
 
18118
 
 
18119
    newsos6)
 
18120
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18121
      hardcode_direct_GCJ=yes
 
18122
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18123
      hardcode_libdir_separator_GCJ=:
 
18124
      hardcode_shlibpath_var_GCJ=no
 
18125
      ;;
 
18126
 
 
18127
    openbsd*)
 
18128
      if test -f /usr/libexec/ld.so; then
 
18129
        hardcode_direct_GCJ=yes
 
18130
        hardcode_shlibpath_var_GCJ=no
 
18131
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18132
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18133
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18134
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18135
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18136
        else
 
18137
          case $host_os in
 
18138
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18139
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18140
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18141
             ;;
 
18142
           *)
 
18143
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18144
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18145
             ;;
 
18146
          esac
 
18147
        fi
 
18148
      else
 
18149
        ld_shlibs_GCJ=no
 
18150
      fi
 
18151
      ;;
 
18152
 
 
18153
    os2*)
 
18154
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18155
      hardcode_minus_L_GCJ=yes
 
18156
      allow_undefined_flag_GCJ=unsupported
 
18157
      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'
 
18158
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18159
      ;;
 
18160
 
 
18161
    osf3*)
 
18162
      if test "$GCC" = yes; then
 
18163
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18164
        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'
 
18165
      else
 
18166
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18167
        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'
 
18168
      fi
 
18169
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18170
      hardcode_libdir_separator_GCJ=:
 
18171
      ;;
 
18172
 
 
18173
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18174
      if test "$GCC" = yes; then
 
18175
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18176
        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'
 
18177
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18178
      else
 
18179
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18180
        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'
 
18181
        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~
 
18182
        $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'
 
18183
 
 
18184
        # Both c and cxx compiler support -rpath directly
 
18185
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18186
      fi
 
18187
      hardcode_libdir_separator_GCJ=:
 
18188
      ;;
 
18189
 
 
18190
    solaris*)
 
18191
      no_undefined_flag_GCJ=' -z text'
 
18192
      if test "$GCC" = yes; then
 
18193
        wlarc='${wl}'
 
18194
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18195
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18196
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18197
      else
 
18198
        wlarc=''
 
18199
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18200
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18201
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18202
      fi
 
18203
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18204
      hardcode_shlibpath_var_GCJ=no
 
18205
      case $host_os in
 
18206
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18207
      *)
 
18208
        # The compiler driver will combine and reorder linker options,
 
18209
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18210
        # but is careful enough not to reorder.
 
18211
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18212
        if test "$GCC" = yes; then
 
18213
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18214
        else
 
18215
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18216
        fi
 
18217
        ;;
 
18218
      esac
 
18219
      link_all_deplibs_GCJ=yes
 
18220
      ;;
 
18221
 
 
18222
    sunos4*)
 
18223
      if test "x$host_vendor" = xsequent; then
 
18224
        # Use $CC to link under sequent, because it throws in some extra .o
 
18225
        # files that make .init and .fini sections work.
 
18226
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18227
      else
 
18228
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18229
      fi
 
18230
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18231
      hardcode_direct_GCJ=yes
 
18232
      hardcode_minus_L_GCJ=yes
 
18233
      hardcode_shlibpath_var_GCJ=no
 
18234
      ;;
 
18235
 
 
18236
    sysv4)
 
18237
      case $host_vendor in
 
18238
        sni)
 
18239
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18240
          hardcode_direct_GCJ=yes # is this really true???
 
18241
        ;;
 
18242
        siemens)
 
18243
          ## LD is ld it makes a PLAMLIB
 
18244
          ## CC just makes a GrossModule.
 
18245
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18246
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18247
          hardcode_direct_GCJ=no
 
18248
        ;;
 
18249
        motorola)
 
18250
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18251
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18252
        ;;
 
18253
      esac
 
18254
      runpath_var='LD_RUN_PATH'
 
18255
      hardcode_shlibpath_var_GCJ=no
 
18256
      ;;
 
18257
 
 
18258
    sysv4.3*)
 
18259
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18260
      hardcode_shlibpath_var_GCJ=no
 
18261
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18262
      ;;
 
18263
 
 
18264
    sysv4*MP*)
 
18265
      if test -d /usr/nec; then
 
18266
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18267
        hardcode_shlibpath_var_GCJ=no
 
18268
        runpath_var=LD_RUN_PATH
 
18269
        hardcode_runpath_var=yes
 
18270
        ld_shlibs_GCJ=yes
 
18271
      fi
 
18272
      ;;
 
18273
 
 
18274
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18275
      no_undefined_flag_GCJ='${wl}-z,text'
 
18276
      archive_cmds_need_lc_GCJ=no
 
18277
      hardcode_shlibpath_var_GCJ=no
 
18278
      runpath_var='LD_RUN_PATH'
 
18279
 
 
18280
      if test "$GCC" = yes; then
 
18281
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18282
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18283
      else
 
18284
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18285
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18286
      fi
 
18287
      ;;
 
18288
 
 
18289
    sysv5* | sco3.2v5* | sco5v6*)
 
18290
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18291
      # link with -lc, and that would cause any symbols used from libc to
 
18292
      # always be unresolved, which means just about no library would
 
18293
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18294
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18295
      # as -z defs.
 
18296
      no_undefined_flag_GCJ='${wl}-z,text'
 
18297
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18298
      archive_cmds_need_lc_GCJ=no
 
18299
      hardcode_shlibpath_var_GCJ=no
 
18300
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18301
      hardcode_libdir_separator_GCJ=':'
 
18302
      link_all_deplibs_GCJ=yes
 
18303
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18304
      runpath_var='LD_RUN_PATH'
 
18305
 
 
18306
      if test "$GCC" = yes; then
 
18307
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18308
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18309
      else
 
18310
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18311
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18312
      fi
 
18313
      ;;
 
18314
 
 
18315
    uts4*)
 
18316
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18317
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18318
      hardcode_shlibpath_var_GCJ=no
 
18319
      ;;
 
18320
 
 
18321
    *)
 
18322
      ld_shlibs_GCJ=no
 
18323
      ;;
 
18324
    esac
 
18325
  fi
 
18326
 
 
18327
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18328
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18329
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18330
 
 
18331
#
 
18332
# Do we need to explicitly link libc?
 
18333
#
 
18334
case "x$archive_cmds_need_lc_GCJ" in
 
18335
x|xyes)
 
18336
  # Assume -lc should be added
 
18337
  archive_cmds_need_lc_GCJ=yes
 
18338
 
 
18339
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18340
    case $archive_cmds_GCJ in
 
18341
    *'~'*)
 
18342
      # FIXME: we may have to deal with multi-command sequences.
 
18343
      ;;
 
18344
    '$CC '*)
 
18345
      # Test whether the compiler implicitly links with -lc since on some
 
18346
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18347
      # to ld, don't add -lc before -lgcc.
 
18348
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18349
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18350
      $rm conftest*
 
18351
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18352
 
 
18353
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18354
  (eval $ac_compile) 2>&5
 
18355
  ac_status=$?
 
18356
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18357
  (exit $ac_status); } 2>conftest.err; then
 
18358
        soname=conftest
 
18359
        lib=conftest
 
18360
        libobjs=conftest.$ac_objext
 
18361
        deplibs=
 
18362
        wl=$lt_prog_compiler_wl_GCJ
 
18363
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18364
        compiler_flags=-v
 
18365
        linker_flags=-v
 
18366
        verstring=
 
18367
        output_objdir=.
 
18368
        libname=conftest
 
18369
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18370
        allow_undefined_flag_GCJ=
 
18371
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18372
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18373
  ac_status=$?
 
18374
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18375
  (exit $ac_status); }
 
18376
        then
 
18377
          archive_cmds_need_lc_GCJ=no
 
18378
        else
 
18379
          archive_cmds_need_lc_GCJ=yes
 
18380
        fi
 
18381
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18382
      else
 
18383
        cat conftest.err 1>&5
 
18384
      fi
 
18385
      $rm conftest*
 
18386
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18387
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18388
      ;;
 
18389
    esac
 
18390
  fi
 
18391
  ;;
 
18392
esac
 
18393
 
 
18394
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18395
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18396
library_names_spec=
 
18397
libname_spec='lib$name'
 
18398
soname_spec=
 
18399
shrext_cmds=".so"
 
18400
postinstall_cmds=
 
18401
postuninstall_cmds=
 
18402
finish_cmds=
 
18403
finish_eval=
 
18404
shlibpath_var=
 
18405
shlibpath_overrides_runpath=unknown
 
18406
version_type=none
 
18407
dynamic_linker="$host_os ld.so"
 
18408
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18409
 
 
18410
need_lib_prefix=unknown
 
18411
hardcode_into_libs=no
 
18412
 
 
18413
# when you set need_version to no, make sure it does not cause -set_version
 
18414
# flags to be left without arguments
 
18415
need_version=unknown
 
18416
 
 
18417
case $host_os in
 
18418
aix3*)
 
18419
  version_type=linux
 
18420
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18421
  shlibpath_var=LIBPATH
 
18422
 
 
18423
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18424
  soname_spec='${libname}${release}${shared_ext}$major'
 
18425
  ;;
 
18426
 
 
18427
aix[4-9]*)
 
18428
  version_type=linux
 
18429
  need_lib_prefix=no
 
18430
  need_version=no
 
18431
  hardcode_into_libs=yes
 
18432
  if test "$host_cpu" = ia64; then
 
18433
    # AIX 5 supports IA64
 
18434
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18435
    shlibpath_var=LD_LIBRARY_PATH
 
18436
  else
 
18437
    # With GCC up to 2.95.x, collect2 would create an import file
 
18438
    # for dependence libraries.  The import file would start with
 
18439
    # the line `#! .'.  This would cause the generated library to
 
18440
    # depend on `.', always an invalid library.  This was fixed in
 
18441
    # development snapshots of GCC prior to 3.0.
 
18442
    case $host_os in
 
18443
      aix4 | aix4.[01] | aix4.[01].*)
 
18444
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18445
           echo ' yes '
 
18446
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18447
        :
 
18448
      else
 
18449
        can_build_shared=no
 
18450
      fi
 
18451
      ;;
 
18452
    esac
 
18453
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18454
    # soname into executable. Probably we can add versioning support to
 
18455
    # collect2, so additional links can be useful in future.
 
18456
    if test "$aix_use_runtimelinking" = yes; then
 
18457
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18458
      # instead of lib<name>.a to let people know that these are not
 
18459
      # typical AIX shared libraries.
 
18460
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18461
    else
 
18462
      # We preserve .a as extension for shared libraries through AIX4.2
 
18463
      # and later when we are not doing run time linking.
 
18464
      library_names_spec='${libname}${release}.a $libname.a'
 
18465
      soname_spec='${libname}${release}${shared_ext}$major'
 
18466
    fi
 
18467
    shlibpath_var=LIBPATH
 
18468
  fi
 
18469
  ;;
 
18470
 
 
18471
amigaos*)
 
18472
  library_names_spec='$libname.ixlibrary $libname.a'
 
18473
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18474
  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'
 
18475
  ;;
 
18476
 
 
18477
beos*)
 
18478
  library_names_spec='${libname}${shared_ext}'
 
18479
  dynamic_linker="$host_os ld.so"
 
18480
  shlibpath_var=LIBRARY_PATH
 
18481
  ;;
 
18482
 
 
18483
bsdi[45]*)
 
18484
  version_type=linux
 
18485
  need_version=no
 
18486
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18487
  soname_spec='${libname}${release}${shared_ext}$major'
 
18488
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18489
  shlibpath_var=LD_LIBRARY_PATH
 
18490
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18491
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18492
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18493
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18494
  # libtool to hard-code these into programs
 
18495
  ;;
 
18496
 
 
18497
cygwin* | mingw* | pw32*)
 
18498
  version_type=windows
 
18499
  shrext_cmds=".dll"
 
18500
  need_version=no
 
18501
  need_lib_prefix=no
 
18502
 
 
18503
  case $GCC,$host_os in
 
18504
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18505
    library_names_spec='$libname.dll.a'
 
18506
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18507
    postinstall_cmds='base_file=`basename \${file}`~
 
18508
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18509
      dldir=$destdir/`dirname \$dlpath`~
 
18510
      test -d \$dldir || mkdir -p \$dldir~
 
18511
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18512
      chmod a+x \$dldir/$dlname'
 
18513
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18514
      dlpath=$dir/\$dldll~
 
18515
       $rm \$dlpath'
 
18516
    shlibpath_overrides_runpath=yes
 
18517
 
 
18518
    case $host_os in
 
18519
    cygwin*)
 
18520
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18521
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18522
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18523
      ;;
 
18524
    mingw*)
 
18525
      # MinGW DLLs use traditional 'lib' prefix
 
18526
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18527
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18528
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18529
        # It is most probably a Windows format PATH printed by
 
18530
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18531
        # path with ; separators, and with drive letters. We can handle the
 
18532
        # drive letters (cygwin fileutils understands them), so leave them,
 
18533
        # especially as we might pass files found there to a mingw objdump,
 
18534
        # which wouldn't understand a cygwinified path. Ahh.
 
18535
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18536
      else
 
18537
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18538
      fi
 
18539
      ;;
 
18540
    pw32*)
 
18541
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18542
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18543
      ;;
 
18544
    esac
 
18545
    ;;
 
18546
 
 
18547
  *)
 
18548
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18549
    ;;
 
18550
  esac
 
18551
  dynamic_linker='Win32 ld.exe'
 
18552
  # FIXME: first we should search . and the directory the executable is in
 
18553
  shlibpath_var=PATH
 
18554
  ;;
 
18555
 
 
18556
darwin* | rhapsody*)
 
18557
  dynamic_linker="$host_os dyld"
 
18558
  version_type=darwin
 
18559
  need_lib_prefix=no
 
18560
  need_version=no
 
18561
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18562
  soname_spec='${libname}${release}${major}$shared_ext'
 
18563
  shlibpath_overrides_runpath=yes
 
18564
  shlibpath_var=DYLD_LIBRARY_PATH
 
18565
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18566
 
 
18567
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18568
  ;;
 
18569
 
 
18570
dgux*)
 
18571
  version_type=linux
 
18572
  need_lib_prefix=no
 
18573
  need_version=no
 
18574
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18575
  soname_spec='${libname}${release}${shared_ext}$major'
 
18576
  shlibpath_var=LD_LIBRARY_PATH
 
18577
  ;;
 
18578
 
 
18579
freebsd1*)
 
18580
  dynamic_linker=no
 
18581
  ;;
 
18582
 
 
18583
freebsd* | dragonfly*)
 
18584
  # DragonFly does not have aout.  When/if they implement a new
 
18585
  # versioning mechanism, adjust this.
 
18586
  if test -x /usr/bin/objformat; then
 
18587
    objformat=`/usr/bin/objformat`
 
18588
  else
 
18589
    case $host_os in
 
18590
    freebsd[123]*) objformat=aout ;;
 
18591
    *) objformat=elf ;;
 
18592
    esac
 
18593
  fi
 
18594
  version_type=freebsd-$objformat
 
18595
  case $version_type in
 
18596
    freebsd-elf*)
 
18597
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18598
      need_version=no
 
18599
      need_lib_prefix=no
 
18600
      ;;
 
18601
    freebsd-*)
 
18602
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18603
      need_version=yes
 
18604
      ;;
 
18605
  esac
 
18606
  shlibpath_var=LD_LIBRARY_PATH
 
18607
  case $host_os in
 
18608
  freebsd2*)
 
18609
    shlibpath_overrides_runpath=yes
 
18610
    ;;
 
18611
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18612
    shlibpath_overrides_runpath=yes
 
18613
    hardcode_into_libs=yes
 
18614
    ;;
 
18615
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18616
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18617
    shlibpath_overrides_runpath=no
 
18618
    hardcode_into_libs=yes
 
18619
    ;;
 
18620
  *) # from 4.6 on, and DragonFly
 
18621
    shlibpath_overrides_runpath=yes
 
18622
    hardcode_into_libs=yes
 
18623
    ;;
 
18624
  esac
 
18625
  ;;
 
18626
 
 
18627
gnu*)
 
18628
  version_type=linux
 
18629
  need_lib_prefix=no
 
18630
  need_version=no
 
18631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18632
  soname_spec='${libname}${release}${shared_ext}$major'
 
18633
  shlibpath_var=LD_LIBRARY_PATH
 
18634
  hardcode_into_libs=yes
 
18635
  ;;
 
18636
 
 
18637
hpux9* | hpux10* | hpux11*)
 
18638
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18639
  # link against other versions.
 
18640
  version_type=sunos
 
18641
  need_lib_prefix=no
 
18642
  need_version=no
 
18643
  case $host_cpu in
 
18644
  ia64*)
 
18645
    shrext_cmds='.so'
 
18646
    hardcode_into_libs=yes
 
18647
    dynamic_linker="$host_os dld.so"
 
18648
    shlibpath_var=LD_LIBRARY_PATH
 
18649
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18650
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18651
    soname_spec='${libname}${release}${shared_ext}$major'
 
18652
    if test "X$HPUX_IA64_MODE" = X32; then
 
18653
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18654
    else
 
18655
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18656
    fi
 
18657
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18658
    ;;
 
18659
   hppa*64*)
 
18660
     shrext_cmds='.sl'
 
18661
     hardcode_into_libs=yes
 
18662
     dynamic_linker="$host_os dld.sl"
 
18663
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18664
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18665
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18666
     soname_spec='${libname}${release}${shared_ext}$major'
 
18667
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18668
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18669
     ;;
 
18670
   *)
 
18671
    shrext_cmds='.sl'
 
18672
    dynamic_linker="$host_os dld.sl"
 
18673
    shlibpath_var=SHLIB_PATH
 
18674
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18675
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18676
    soname_spec='${libname}${release}${shared_ext}$major'
 
18677
    ;;
 
18678
  esac
 
18679
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18680
  postinstall_cmds='chmod 555 $lib'
 
18681
  ;;
 
18682
 
 
18683
interix[3-9]*)
 
18684
  version_type=linux
 
18685
  need_lib_prefix=no
 
18686
  need_version=no
 
18687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18688
  soname_spec='${libname}${release}${shared_ext}$major'
 
18689
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18690
  shlibpath_var=LD_LIBRARY_PATH
 
18691
  shlibpath_overrides_runpath=no
 
18692
  hardcode_into_libs=yes
 
18693
  ;;
 
18694
 
 
18695
irix5* | irix6* | nonstopux*)
 
18696
  case $host_os in
 
18697
    nonstopux*) version_type=nonstopux ;;
 
18698
    *)
 
18699
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18700
                version_type=linux
 
18701
        else
 
18702
                version_type=irix
 
18703
        fi ;;
 
18704
  esac
 
18705
  need_lib_prefix=no
 
18706
  need_version=no
 
18707
  soname_spec='${libname}${release}${shared_ext}$major'
 
18708
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18709
  case $host_os in
 
18710
  irix5* | nonstopux*)
 
18711
    libsuff= shlibsuff=
 
18712
    ;;
 
18713
  *)
 
18714
    case $LD in # libtool.m4 will add one of these switches to LD
 
18715
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18716
      libsuff= shlibsuff= libmagic=32-bit;;
 
18717
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18718
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18719
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18720
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18721
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18722
    esac
 
18723
    ;;
 
18724
  esac
 
18725
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18726
  shlibpath_overrides_runpath=no
 
18727
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18728
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18729
  hardcode_into_libs=yes
 
18730
  ;;
 
18731
 
 
18732
# No shared lib support for Linux oldld, aout, or coff.
 
18733
linux*oldld* | linux*aout* | linux*coff*)
 
18734
  dynamic_linker=no
 
18735
  ;;
 
18736
 
 
18737
# This must be Linux ELF.
 
18738
linux* | k*bsd*-gnu)
 
18739
  version_type=linux
 
18740
  need_lib_prefix=no
 
18741
  need_version=no
 
18742
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18743
  soname_spec='${libname}${release}${shared_ext}$major'
 
18744
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18745
  shlibpath_var=LD_LIBRARY_PATH
 
18746
  shlibpath_overrides_runpath=no
 
18747
  # This implies no fast_install, which is unacceptable.
 
18748
  # Some rework will be needed to allow for fast_install
 
18749
  # before this can be enabled.
 
18750
  hardcode_into_libs=yes
 
18751
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18752
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18753
 
 
18754
  # Append ld.so.conf contents to the search path
 
18755
  if test -f /etc/ld.so.conf; then
 
18756
    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' ' '`
 
18757
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
18758
  fi
 
18759
 
 
18760
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18761
  # powerpc, because MkLinux only supported shared libraries with the
 
18762
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18763
  # most powerpc-linux boxes support dynamic linking these days and
 
18764
  # people can always --disable-shared, the test was removed, and we
 
18765
  # assume the GNU/Linux dynamic linker is in use.
 
18766
  dynamic_linker='GNU/Linux ld.so'
 
18767
  ;;
 
18768
 
 
18769
netbsd*)
 
18770
  version_type=sunos
 
18771
  need_lib_prefix=no
 
18772
  need_version=no
 
18773
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18774
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18775
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18776
    dynamic_linker='NetBSD (a.out) ld.so'
 
18777
  else
 
18778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18779
    soname_spec='${libname}${release}${shared_ext}$major'
 
18780
    dynamic_linker='NetBSD ld.elf_so'
 
18781
  fi
 
18782
  shlibpath_var=LD_LIBRARY_PATH
 
18783
  shlibpath_overrides_runpath=yes
 
18784
  hardcode_into_libs=yes
 
18785
  ;;
 
18786
 
 
18787
newsos6)
 
18788
  version_type=linux
 
18789
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18790
  shlibpath_var=LD_LIBRARY_PATH
 
18791
  shlibpath_overrides_runpath=yes
 
18792
  ;;
 
18793
 
 
18794
nto-qnx*)
 
18795
  version_type=linux
 
18796
  need_lib_prefix=no
 
18797
  need_version=no
 
18798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18799
  soname_spec='${libname}${release}${shared_ext}$major'
 
18800
  shlibpath_var=LD_LIBRARY_PATH
 
18801
  shlibpath_overrides_runpath=yes
 
18802
  ;;
 
18803
 
 
18804
openbsd*)
 
18805
  version_type=sunos
 
18806
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18807
  need_lib_prefix=no
 
18808
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18809
  case $host_os in
 
18810
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18811
    *)                         need_version=no  ;;
 
18812
  esac
 
18813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18814
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18815
  shlibpath_var=LD_LIBRARY_PATH
 
18816
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18817
    case $host_os in
 
18818
      openbsd2.[89] | openbsd2.[89].*)
 
18819
        shlibpath_overrides_runpath=no
 
18820
        ;;
 
18821
      *)
 
18822
        shlibpath_overrides_runpath=yes
 
18823
        ;;
 
18824
      esac
 
18825
  else
 
18826
    shlibpath_overrides_runpath=yes
 
18827
  fi
 
18828
  ;;
 
18829
 
 
18830
os2*)
 
18831
  libname_spec='$name'
 
18832
  shrext_cmds=".dll"
 
18833
  need_lib_prefix=no
 
18834
  library_names_spec='$libname${shared_ext} $libname.a'
 
18835
  dynamic_linker='OS/2 ld.exe'
 
18836
  shlibpath_var=LIBPATH
 
18837
  ;;
 
18838
 
 
18839
osf3* | osf4* | osf5*)
 
18840
  version_type=osf
 
18841
  need_lib_prefix=no
 
18842
  need_version=no
 
18843
  soname_spec='${libname}${release}${shared_ext}$major'
 
18844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18845
  shlibpath_var=LD_LIBRARY_PATH
 
18846
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18847
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18848
  ;;
 
18849
 
 
18850
rdos*)
 
18851
  dynamic_linker=no
 
18852
  ;;
 
18853
 
 
18854
solaris*)
 
18855
  version_type=linux
 
18856
  need_lib_prefix=no
 
18857
  need_version=no
 
18858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18859
  soname_spec='${libname}${release}${shared_ext}$major'
 
18860
  shlibpath_var=LD_LIBRARY_PATH
 
18861
  shlibpath_overrides_runpath=yes
 
18862
  hardcode_into_libs=yes
 
18863
  # ldd complains unless libraries are executable
 
18864
  postinstall_cmds='chmod +x $lib'
 
18865
  ;;
 
18866
 
 
18867
sunos4*)
 
18868
  version_type=sunos
 
18869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18870
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18871
  shlibpath_var=LD_LIBRARY_PATH
 
18872
  shlibpath_overrides_runpath=yes
 
18873
  if test "$with_gnu_ld" = yes; then
 
18874
    need_lib_prefix=no
 
18875
  fi
 
18876
  need_version=yes
 
18877
  ;;
 
18878
 
 
18879
sysv4 | sysv4.3*)
 
18880
  version_type=linux
 
18881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18882
  soname_spec='${libname}${release}${shared_ext}$major'
 
18883
  shlibpath_var=LD_LIBRARY_PATH
 
18884
  case $host_vendor in
 
18885
    sni)
 
18886
      shlibpath_overrides_runpath=no
 
18887
      need_lib_prefix=no
 
18888
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18889
      runpath_var=LD_RUN_PATH
 
18890
      ;;
 
18891
    siemens)
 
18892
      need_lib_prefix=no
 
18893
      ;;
 
18894
    motorola)
 
18895
      need_lib_prefix=no
 
18896
      need_version=no
 
18897
      shlibpath_overrides_runpath=no
 
18898
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18899
      ;;
 
18900
  esac
 
18901
  ;;
 
18902
 
 
18903
sysv4*MP*)
 
18904
  if test -d /usr/nec ;then
 
18905
    version_type=linux
 
18906
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18907
    soname_spec='$libname${shared_ext}.$major'
 
18908
    shlibpath_var=LD_LIBRARY_PATH
 
18909
  fi
 
18910
  ;;
 
18911
 
 
18912
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18913
  version_type=freebsd-elf
 
18914
  need_lib_prefix=no
 
18915
  need_version=no
 
18916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18917
  soname_spec='${libname}${release}${shared_ext}$major'
 
18918
  shlibpath_var=LD_LIBRARY_PATH
 
18919
  hardcode_into_libs=yes
 
18920
  if test "$with_gnu_ld" = yes; then
 
18921
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18922
    shlibpath_overrides_runpath=no
 
18923
  else
 
18924
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18925
    shlibpath_overrides_runpath=yes
 
18926
    case $host_os in
 
18927
      sco3.2v5*)
 
18928
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18929
        ;;
 
18930
    esac
 
18931
  fi
 
18932
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18933
  ;;
 
18934
 
 
18935
uts4*)
 
18936
  version_type=linux
 
18937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18938
  soname_spec='${libname}${release}${shared_ext}$major'
 
18939
  shlibpath_var=LD_LIBRARY_PATH
 
18940
  ;;
 
18941
 
 
18942
*)
 
18943
  dynamic_linker=no
 
18944
  ;;
 
18945
esac
 
18946
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18947
$as_echo "$dynamic_linker" >&6; }
 
18948
test "$dynamic_linker" = no && can_build_shared=no
 
18949
 
 
18950
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18951
  $as_echo_n "(cached) " >&6
 
18952
else
 
18953
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18954
fi
 
18955
 
 
18956
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18957
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18958
  $as_echo_n "(cached) " >&6
 
18959
else
 
18960
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18961
fi
 
18962
 
 
18963
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18964
 
 
18965
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18966
if test "$GCC" = yes; then
 
18967
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18968
fi
 
18969
 
 
18970
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18971
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
18972
hardcode_action_GCJ=
 
18973
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18974
   test -n "$runpath_var_GCJ" || \
 
18975
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18976
 
 
18977
  # We can hardcode non-existant directories.
 
18978
  if test "$hardcode_direct_GCJ" != no &&
 
18979
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18980
     # have to relink, otherwise we might link with an installed library
 
18981
     # when we should be linking with a yet-to-be-installed one
 
18982
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18983
     test "$hardcode_minus_L_GCJ" != no; then
 
18984
    # Linking always hardcodes the temporary library directory.
 
18985
    hardcode_action_GCJ=relink
 
18986
  else
 
18987
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18988
    hardcode_action_GCJ=immediate
 
18989
  fi
 
18990
else
 
18991
  # We cannot hardcode anything, or else we can only hardcode existing
 
18992
  # directories.
 
18993
  hardcode_action_GCJ=unsupported
 
18994
fi
 
18995
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18996
$as_echo "$hardcode_action_GCJ" >&6; }
 
18997
 
 
18998
if test "$hardcode_action_GCJ" = relink; then
 
18999
  # Fast installation is not supported
 
19000
  enable_fast_install=no
 
19001
elif test "$shlibpath_overrides_runpath" = yes ||
 
19002
     test "$enable_shared" = no; then
 
19003
  # Fast installation is not necessary
 
19004
  enable_fast_install=needless
 
19005
fi
 
19006
 
 
19007
 
 
19008
# The else clause should only fire when bootstrapping the
 
19009
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19010
# with your package, and you will get complaints that there are
 
19011
# no rules to generate ltmain.sh.
 
19012
if test -f "$ltmain"; then
 
19013
  # See if we are running on zsh, and set the options which allow our commands through
 
19014
  # without removal of \ escapes.
 
19015
  if test -n "${ZSH_VERSION+set}" ; then
 
19016
    setopt NO_GLOB_SUBST
 
19017
  fi
 
19018
  # Now quote all the things that may contain metacharacters while being
 
19019
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19020
  # variables and quote the copies for generation of the libtool script.
 
19021
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19022
    SED SHELL STRIP \
 
19023
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19024
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19025
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19026
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19027
    lt_cv_sys_global_symbol_to_c_name_address \
 
19028
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19029
    old_postinstall_cmds old_postuninstall_cmds \
 
19030
    compiler_GCJ \
 
19031
    CC_GCJ \
 
19032
    LD_GCJ \
 
19033
    lt_prog_compiler_wl_GCJ \
 
19034
    lt_prog_compiler_pic_GCJ \
 
19035
    lt_prog_compiler_static_GCJ \
 
19036
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19037
    export_dynamic_flag_spec_GCJ \
 
19038
    thread_safe_flag_spec_GCJ \
 
19039
    whole_archive_flag_spec_GCJ \
 
19040
    enable_shared_with_static_runtimes_GCJ \
 
19041
    old_archive_cmds_GCJ \
 
19042
    old_archive_from_new_cmds_GCJ \
 
19043
    predep_objects_GCJ \
 
19044
    postdep_objects_GCJ \
 
19045
    predeps_GCJ \
 
19046
    postdeps_GCJ \
 
19047
    compiler_lib_search_path_GCJ \
 
19048
    compiler_lib_search_dirs_GCJ \
 
19049
    archive_cmds_GCJ \
 
19050
    archive_expsym_cmds_GCJ \
 
19051
    postinstall_cmds_GCJ \
 
19052
    postuninstall_cmds_GCJ \
 
19053
    old_archive_from_expsyms_cmds_GCJ \
 
19054
    allow_undefined_flag_GCJ \
 
19055
    no_undefined_flag_GCJ \
 
19056
    export_symbols_cmds_GCJ \
 
19057
    hardcode_libdir_flag_spec_GCJ \
 
19058
    hardcode_libdir_flag_spec_ld_GCJ \
 
19059
    hardcode_libdir_separator_GCJ \
 
19060
    hardcode_automatic_GCJ \
 
19061
    module_cmds_GCJ \
 
19062
    module_expsym_cmds_GCJ \
 
19063
    lt_cv_prog_compiler_c_o_GCJ \
 
19064
    fix_srcfile_path_GCJ \
 
19065
    exclude_expsyms_GCJ \
 
19066
    include_expsyms_GCJ; do
 
19067
 
 
19068
    case $var in
 
19069
    old_archive_cmds_GCJ | \
 
19070
    old_archive_from_new_cmds_GCJ | \
 
19071
    archive_cmds_GCJ | \
 
19072
    archive_expsym_cmds_GCJ | \
 
19073
    module_cmds_GCJ | \
 
19074
    module_expsym_cmds_GCJ | \
 
19075
    old_archive_from_expsyms_cmds_GCJ | \
 
19076
    export_symbols_cmds_GCJ | \
 
19077
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19078
    postinstall_cmds | postuninstall_cmds | \
 
19079
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19080
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19081
      # Double-quote double-evaled strings.
 
19082
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19083
      ;;
 
19084
    *)
 
19085
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19086
      ;;
 
19087
    esac
 
19088
  done
 
19089
 
 
19090
  case $lt_echo in
 
19091
  *'\$0 --fallback-echo"')
 
19092
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19093
    ;;
 
19094
  esac
 
19095
 
 
19096
cfgfile="$ofile"
 
19097
 
 
19098
  cat <<__EOF__ >> "$cfgfile"
 
19099
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19100
 
 
19101
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19102
 
 
19103
# Shell to use when invoking shell scripts.
 
19104
SHELL=$lt_SHELL
 
19105
 
 
19106
# Whether or not to build shared libraries.
 
19107
build_libtool_libs=$enable_shared
 
19108
 
 
19109
# Whether or not to build static libraries.
 
19110
build_old_libs=$enable_static
 
19111
 
 
19112
# Whether or not to add -lc for building shared libraries.
 
19113
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19114
 
 
19115
# Whether or not to disallow shared libs when runtime libs are static
 
19116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19117
 
 
19118
# Whether or not to optimize for fast installation.
 
19119
fast_install=$enable_fast_install
 
19120
 
 
19121
# The host system.
 
19122
host_alias=$host_alias
 
19123
host=$host
 
19124
host_os=$host_os
 
19125
 
 
19126
# The build system.
 
19127
build_alias=$build_alias
 
19128
build=$build
 
19129
build_os=$build_os
 
19130
 
 
19131
# An echo program that does not interpret backslashes.
 
19132
echo=$lt_echo
 
19133
 
 
19134
# The archiver.
 
19135
AR=$lt_AR
 
19136
AR_FLAGS=$lt_AR_FLAGS
 
19137
 
 
19138
# A C compiler.
 
19139
LTCC=$lt_LTCC
 
19140
 
 
19141
# LTCC compiler flags.
 
19142
LTCFLAGS=$lt_LTCFLAGS
 
19143
 
 
19144
# A language-specific compiler.
 
19145
CC=$lt_compiler_GCJ
 
19146
 
 
19147
# Is the compiler the GNU C compiler?
 
19148
with_gcc=$GCC_GCJ
 
19149
 
 
19150
# An ERE matcher.
 
19151
EGREP=$lt_EGREP
 
19152
 
 
19153
# The linker used to build libraries.
 
19154
LD=$lt_LD_GCJ
 
19155
 
 
19156
# Whether we need hard or soft links.
 
19157
LN_S=$lt_LN_S
 
19158
 
 
19159
# A BSD-compatible nm program.
 
19160
NM=$lt_NM
 
19161
 
 
19162
# A symbol stripping program
 
19163
STRIP=$lt_STRIP
 
19164
 
 
19165
# Used to examine libraries when file_magic_cmd begins "file"
 
19166
MAGIC_CMD=$MAGIC_CMD
 
19167
 
 
19168
# Used on cygwin: DLL creation program.
 
19169
DLLTOOL="$DLLTOOL"
 
19170
 
 
19171
# Used on cygwin: object dumper.
 
19172
OBJDUMP="$OBJDUMP"
 
19173
 
 
19174
# Used on cygwin: assembler.
 
19175
AS="$AS"
 
19176
 
 
19177
# The name of the directory that contains temporary libtool files.
 
19178
objdir=$objdir
 
19179
 
 
19180
# How to create reloadable object files.
 
19181
reload_flag=$lt_reload_flag
 
19182
reload_cmds=$lt_reload_cmds
 
19183
 
 
19184
# How to pass a linker flag through the compiler.
 
19185
wl=$lt_lt_prog_compiler_wl_GCJ
 
19186
 
 
19187
# Object file suffix (normally "o").
 
19188
objext="$ac_objext"
 
19189
 
 
19190
# Old archive suffix (normally "a").
 
19191
libext="$libext"
 
19192
 
 
19193
# Shared library suffix (normally ".so").
 
19194
shrext_cmds='$shrext_cmds'
 
19195
 
 
19196
# Executable file suffix (normally "").
 
19197
exeext="$exeext"
 
19198
 
 
19199
# Additional compiler flags for building library objects.
 
19200
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19201
pic_mode=$pic_mode
 
19202
 
 
19203
# What is the maximum length of a command?
 
19204
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19205
 
 
19206
# Does compiler simultaneously support -c and -o options?
 
19207
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19208
 
 
19209
# Must we lock files when doing compilation?
 
19210
need_locks=$lt_need_locks
 
19211
 
 
19212
# Do we need the lib prefix for modules?
 
19213
need_lib_prefix=$need_lib_prefix
 
19214
 
 
19215
# Do we need a version for libraries?
 
19216
need_version=$need_version
 
19217
 
 
19218
# Whether dlopen is supported.
 
19219
dlopen_support=$enable_dlopen
 
19220
 
 
19221
# Whether dlopen of programs is supported.
 
19222
dlopen_self=$enable_dlopen_self
 
19223
 
 
19224
# Whether dlopen of statically linked programs is supported.
 
19225
dlopen_self_static=$enable_dlopen_self_static
 
19226
 
 
19227
# Compiler flag to prevent dynamic linking.
 
19228
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19229
 
 
19230
# Compiler flag to turn off builtin functions.
 
19231
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19232
 
 
19233
# Compiler flag to allow reflexive dlopens.
 
19234
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19235
 
 
19236
# Compiler flag to generate shared objects directly from archives.
 
19237
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19238
 
 
19239
# Compiler flag to generate thread-safe objects.
 
19240
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19241
 
 
19242
# Library versioning type.
 
19243
version_type=$version_type
 
19244
 
 
19245
# Format of library name prefix.
 
19246
libname_spec=$lt_libname_spec
 
19247
 
 
19248
# List of archive names.  First name is the real one, the rest are links.
 
19249
# The last name is the one that the linker finds with -lNAME.
 
19250
library_names_spec=$lt_library_names_spec
 
19251
 
 
19252
# The coded name of the library, if different from the real name.
 
19253
soname_spec=$lt_soname_spec
 
19254
 
 
19255
# Commands used to build and install an old-style archive.
 
19256
RANLIB=$lt_RANLIB
 
19257
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19258
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19259
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19260
 
 
19261
# Create an old-style archive from a shared archive.
 
19262
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19263
 
 
19264
# Create a temporary old-style archive to link instead of a shared archive.
 
19265
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19266
 
 
19267
# Commands used to build and install a shared archive.
 
19268
archive_cmds=$lt_archive_cmds_GCJ
 
19269
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19270
postinstall_cmds=$lt_postinstall_cmds
 
19271
postuninstall_cmds=$lt_postuninstall_cmds
 
19272
 
 
19273
# Commands used to build a loadable module (assumed same as above if empty)
 
19274
module_cmds=$lt_module_cmds_GCJ
 
19275
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19276
 
 
19277
# Commands to strip libraries.
 
19278
old_striplib=$lt_old_striplib
 
19279
striplib=$lt_striplib
 
19280
 
 
19281
# Dependencies to place before the objects being linked to create a
 
19282
# shared library.
 
19283
predep_objects=$lt_predep_objects_GCJ
 
19284
 
 
19285
# Dependencies to place after the objects being linked to create a
 
19286
# shared library.
 
19287
postdep_objects=$lt_postdep_objects_GCJ
 
19288
 
 
19289
# Dependencies to place before the objects being linked to create a
 
19290
# shared library.
 
19291
predeps=$lt_predeps_GCJ
 
19292
 
 
19293
# Dependencies to place after the objects being linked to create a
 
19294
# shared library.
 
19295
postdeps=$lt_postdeps_GCJ
 
19296
 
 
19297
# The directories searched by this compiler when creating a shared
 
19298
# library
 
19299
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19300
 
 
19301
# The library search path used internally by the compiler when linking
 
19302
# a shared library.
 
19303
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19304
 
 
19305
# Method to check whether dependent libraries are shared objects.
 
19306
deplibs_check_method=$lt_deplibs_check_method
 
19307
 
 
19308
# Command to use when deplibs_check_method == file_magic.
 
19309
file_magic_cmd=$lt_file_magic_cmd
 
19310
 
 
19311
# Flag that allows shared libraries with undefined symbols to be built.
 
19312
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19313
 
 
19314
# Flag that forces no undefined symbols.
 
19315
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19316
 
 
19317
# Commands used to finish a libtool library installation in a directory.
 
19318
finish_cmds=$lt_finish_cmds
 
19319
 
 
19320
# Same as above, but a single script fragment to be evaled but not shown.
 
19321
finish_eval=$lt_finish_eval
 
19322
 
 
19323
# Take the output of nm and produce a listing of raw symbols and C names.
 
19324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19325
 
 
19326
# Transform the output of nm in a proper C declaration
 
19327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19328
 
 
19329
# Transform the output of nm in a C name address pair
 
19330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19331
 
 
19332
# This is the shared library runtime path variable.
 
19333
runpath_var=$runpath_var
 
19334
 
 
19335
# This is the shared library path variable.
 
19336
shlibpath_var=$shlibpath_var
 
19337
 
 
19338
# Is shlibpath searched before the hard-coded library search path?
 
19339
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19340
 
 
19341
# How to hardcode a shared library path into an executable.
 
19342
hardcode_action=$hardcode_action_GCJ
 
19343
 
 
19344
# Whether we should hardcode library paths into libraries.
 
19345
hardcode_into_libs=$hardcode_into_libs
 
19346
 
 
19347
# Flag to hardcode \$libdir into a binary during linking.
 
19348
# This must work even if \$libdir does not exist.
 
19349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19350
 
 
19351
# If ld is used when linking, flag to hardcode \$libdir into
 
19352
# a binary during linking. This must work even if \$libdir does
 
19353
# not exist.
 
19354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19355
 
 
19356
# Whether we need a single -rpath flag with a separated argument.
 
19357
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19358
 
 
19359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19360
# resulting binary.
 
19361
hardcode_direct=$hardcode_direct_GCJ
 
19362
 
 
19363
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19364
# resulting binary.
 
19365
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19366
 
 
19367
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19368
# the resulting binary.
 
19369
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19370
 
 
19371
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19372
# and all subsequent libraries and executables linked against it.
 
19373
hardcode_automatic=$hardcode_automatic_GCJ
 
19374
 
 
19375
# Variables whose values should be saved in libtool wrapper scripts and
 
19376
# restored at relink time.
 
19377
variables_saved_for_relink="$variables_saved_for_relink"
 
19378
 
 
19379
# Whether libtool must link a program against all its dependency libraries.
 
19380
link_all_deplibs=$link_all_deplibs_GCJ
 
19381
 
 
19382
# Compile-time system search path for libraries
 
19383
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19384
 
 
19385
# Run-time system search path for libraries
 
19386
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19387
 
 
19388
# Fix the shell variable \$srcfile for the compiler.
 
19389
fix_srcfile_path=$lt_fix_srcfile_path
 
19390
 
 
19391
# Set to yes if exported symbols are required.
 
19392
always_export_symbols=$always_export_symbols_GCJ
 
19393
 
 
19394
# The commands to list exported symbols.
 
19395
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19396
 
 
19397
# The commands to extract the exported symbol list from a shared archive.
 
19398
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19399
 
 
19400
# Symbols that should not be listed in the preloaded symbols.
 
19401
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19402
 
 
19403
# Symbols that must always be exported.
 
19404
include_expsyms=$lt_include_expsyms_GCJ
 
19405
 
 
19406
# ### END LIBTOOL TAG CONFIG: $tagname
 
19407
 
 
19408
__EOF__
 
19409
 
 
19410
 
 
19411
else
 
19412
  # If there is no Makefile yet, we rely on a make rule to execute
 
19413
  # `config.status --recheck' to rerun these tests and create the
 
19414
  # libtool script then.
 
19415
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19416
  if test -f "$ltmain_in"; then
 
19417
    test -f Makefile && make "$ltmain"
 
19418
  fi
 
19419
fi
 
19420
 
 
19421
 
 
19422
ac_ext=c
 
19423
ac_cpp='$CPP $CPPFLAGS'
 
19424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19427
 
 
19428
CC="$lt_save_CC"
 
19429
 
 
19430
        else
 
19431
          tagname=""
 
19432
        fi
 
19433
        ;;
 
19434
 
 
19435
      RC)
 
19436
 
 
19437
 
 
19438
# Source file extension for RC test sources.
 
19439
ac_ext=rc
 
19440
 
 
19441
# Object file extension for compiled RC test sources.
 
19442
objext=o
 
19443
objext_RC=$objext
 
19444
 
 
19445
# Code to be used in simple compile tests
 
19446
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19447
 
 
19448
# Code to be used in simple link tests
 
19449
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19450
 
 
19451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19452
 
 
19453
# If no C compiler was specified, use CC.
 
19454
LTCC=${LTCC-"$CC"}
 
19455
 
 
19456
# If no C compiler flags were specified, use CFLAGS.
 
19457
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19458
 
 
19459
# Allow CC to be a program name with arguments.
 
19460
compiler=$CC
 
19461
 
 
19462
 
 
19463
# save warnings/boilerplate of simple test code
 
19464
ac_outfile=conftest.$ac_objext
 
19465
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19466
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19467
_lt_compiler_boilerplate=`cat conftest.err`
 
19468
$rm conftest*
 
19469
 
 
19470
ac_outfile=conftest.$ac_objext
 
19471
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19472
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19473
_lt_linker_boilerplate=`cat conftest.err`
 
19474
$rm -r conftest*
 
19475
 
 
19476
 
 
19477
# Allow CC to be a program name with arguments.
 
19478
lt_save_CC="$CC"
 
19479
CC=${RC-"windres"}
 
19480
compiler=$CC
 
19481
compiler_RC=$CC
 
19482
for cc_temp in $compiler""; do
 
19483
  case $cc_temp in
 
19484
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19485
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19486
    \-*) ;;
 
19487
    *) break;;
 
19488
  esac
 
19489
done
 
19490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19491
 
 
19492
lt_cv_prog_compiler_c_o_RC=yes
 
19493
 
 
19494
# The else clause should only fire when bootstrapping the
 
19495
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19496
# with your package, and you will get complaints that there are
 
19497
# no rules to generate ltmain.sh.
 
19498
if test -f "$ltmain"; then
 
19499
  # See if we are running on zsh, and set the options which allow our commands through
 
19500
  # without removal of \ escapes.
 
19501
  if test -n "${ZSH_VERSION+set}" ; then
 
19502
    setopt NO_GLOB_SUBST
 
19503
  fi
 
19504
  # Now quote all the things that may contain metacharacters while being
 
19505
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19506
  # variables and quote the copies for generation of the libtool script.
 
19507
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19508
    SED SHELL STRIP \
 
19509
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19510
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19511
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19512
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19513
    lt_cv_sys_global_symbol_to_c_name_address \
 
19514
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19515
    old_postinstall_cmds old_postuninstall_cmds \
 
19516
    compiler_RC \
 
19517
    CC_RC \
 
19518
    LD_RC \
 
19519
    lt_prog_compiler_wl_RC \
 
19520
    lt_prog_compiler_pic_RC \
 
19521
    lt_prog_compiler_static_RC \
 
19522
    lt_prog_compiler_no_builtin_flag_RC \
 
19523
    export_dynamic_flag_spec_RC \
 
19524
    thread_safe_flag_spec_RC \
 
19525
    whole_archive_flag_spec_RC \
 
19526
    enable_shared_with_static_runtimes_RC \
 
19527
    old_archive_cmds_RC \
 
19528
    old_archive_from_new_cmds_RC \
 
19529
    predep_objects_RC \
 
19530
    postdep_objects_RC \
 
19531
    predeps_RC \
 
19532
    postdeps_RC \
 
19533
    compiler_lib_search_path_RC \
 
19534
    compiler_lib_search_dirs_RC \
 
19535
    archive_cmds_RC \
 
19536
    archive_expsym_cmds_RC \
 
19537
    postinstall_cmds_RC \
 
19538
    postuninstall_cmds_RC \
 
19539
    old_archive_from_expsyms_cmds_RC \
 
19540
    allow_undefined_flag_RC \
 
19541
    no_undefined_flag_RC \
 
19542
    export_symbols_cmds_RC \
 
19543
    hardcode_libdir_flag_spec_RC \
 
19544
    hardcode_libdir_flag_spec_ld_RC \
 
19545
    hardcode_libdir_separator_RC \
 
19546
    hardcode_automatic_RC \
 
19547
    module_cmds_RC \
 
19548
    module_expsym_cmds_RC \
 
19549
    lt_cv_prog_compiler_c_o_RC \
 
19550
    fix_srcfile_path_RC \
 
19551
    exclude_expsyms_RC \
 
19552
    include_expsyms_RC; do
 
19553
 
 
19554
    case $var in
 
19555
    old_archive_cmds_RC | \
 
19556
    old_archive_from_new_cmds_RC | \
 
19557
    archive_cmds_RC | \
 
19558
    archive_expsym_cmds_RC | \
 
19559
    module_cmds_RC | \
 
19560
    module_expsym_cmds_RC | \
 
19561
    old_archive_from_expsyms_cmds_RC | \
 
19562
    export_symbols_cmds_RC | \
 
19563
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19564
    postinstall_cmds | postuninstall_cmds | \
 
19565
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19566
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19567
      # Double-quote double-evaled strings.
 
19568
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19569
      ;;
 
19570
    *)
 
19571
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19572
      ;;
 
19573
    esac
 
19574
  done
 
19575
 
 
19576
  case $lt_echo in
 
19577
  *'\$0 --fallback-echo"')
 
19578
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19579
    ;;
 
19580
  esac
 
19581
 
 
19582
cfgfile="$ofile"
 
19583
 
 
19584
  cat <<__EOF__ >> "$cfgfile"
 
19585
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19586
 
 
19587
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19588
 
 
19589
# Shell to use when invoking shell scripts.
 
19590
SHELL=$lt_SHELL
 
19591
 
 
19592
# Whether or not to build shared libraries.
 
19593
build_libtool_libs=$enable_shared
 
19594
 
 
19595
# Whether or not to build static libraries.
 
19596
build_old_libs=$enable_static
 
19597
 
 
19598
# Whether or not to add -lc for building shared libraries.
 
19599
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19600
 
 
19601
# Whether or not to disallow shared libs when runtime libs are static
 
19602
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19603
 
 
19604
# Whether or not to optimize for fast installation.
 
19605
fast_install=$enable_fast_install
 
19606
 
 
19607
# The host system.
 
19608
host_alias=$host_alias
 
19609
host=$host
 
19610
host_os=$host_os
 
19611
 
 
19612
# The build system.
 
19613
build_alias=$build_alias
 
19614
build=$build
 
19615
build_os=$build_os
 
19616
 
 
19617
# An echo program that does not interpret backslashes.
 
19618
echo=$lt_echo
 
19619
 
 
19620
# The archiver.
 
19621
AR=$lt_AR
 
19622
AR_FLAGS=$lt_AR_FLAGS
 
19623
 
 
19624
# A C compiler.
 
19625
LTCC=$lt_LTCC
 
19626
 
 
19627
# LTCC compiler flags.
 
19628
LTCFLAGS=$lt_LTCFLAGS
 
19629
 
 
19630
# A language-specific compiler.
 
19631
CC=$lt_compiler_RC
 
19632
 
 
19633
# Is the compiler the GNU C compiler?
 
19634
with_gcc=$GCC_RC
 
19635
 
 
19636
# An ERE matcher.
 
19637
EGREP=$lt_EGREP
 
19638
 
 
19639
# The linker used to build libraries.
 
19640
LD=$lt_LD_RC
 
19641
 
 
19642
# Whether we need hard or soft links.
 
19643
LN_S=$lt_LN_S
 
19644
 
 
19645
# A BSD-compatible nm program.
 
19646
NM=$lt_NM
 
19647
 
 
19648
# A symbol stripping program
 
19649
STRIP=$lt_STRIP
 
19650
 
 
19651
# Used to examine libraries when file_magic_cmd begins "file"
 
19652
MAGIC_CMD=$MAGIC_CMD
 
19653
 
 
19654
# Used on cygwin: DLL creation program.
 
19655
DLLTOOL="$DLLTOOL"
 
19656
 
 
19657
# Used on cygwin: object dumper.
 
19658
OBJDUMP="$OBJDUMP"
 
19659
 
 
19660
# Used on cygwin: assembler.
 
19661
AS="$AS"
 
19662
 
 
19663
# The name of the directory that contains temporary libtool files.
 
19664
objdir=$objdir
 
19665
 
 
19666
# How to create reloadable object files.
 
19667
reload_flag=$lt_reload_flag
 
19668
reload_cmds=$lt_reload_cmds
 
19669
 
 
19670
# How to pass a linker flag through the compiler.
 
19671
wl=$lt_lt_prog_compiler_wl_RC
 
19672
 
 
19673
# Object file suffix (normally "o").
 
19674
objext="$ac_objext"
 
19675
 
 
19676
# Old archive suffix (normally "a").
 
19677
libext="$libext"
 
19678
 
 
19679
# Shared library suffix (normally ".so").
 
19680
shrext_cmds='$shrext_cmds'
 
19681
 
 
19682
# Executable file suffix (normally "").
 
19683
exeext="$exeext"
 
19684
 
 
19685
# Additional compiler flags for building library objects.
 
19686
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19687
pic_mode=$pic_mode
 
19688
 
 
19689
# What is the maximum length of a command?
 
19690
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19691
 
 
19692
# Does compiler simultaneously support -c and -o options?
 
19693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19694
 
 
19695
# Must we lock files when doing compilation?
 
19696
need_locks=$lt_need_locks
 
19697
 
 
19698
# Do we need the lib prefix for modules?
 
19699
need_lib_prefix=$need_lib_prefix
 
19700
 
 
19701
# Do we need a version for libraries?
 
19702
need_version=$need_version
 
19703
 
 
19704
# Whether dlopen is supported.
 
19705
dlopen_support=$enable_dlopen
 
19706
 
 
19707
# Whether dlopen of programs is supported.
 
19708
dlopen_self=$enable_dlopen_self
 
19709
 
 
19710
# Whether dlopen of statically linked programs is supported.
 
19711
dlopen_self_static=$enable_dlopen_self_static
 
19712
 
 
19713
# Compiler flag to prevent dynamic linking.
 
19714
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19715
 
 
19716
# Compiler flag to turn off builtin functions.
 
19717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19718
 
 
19719
# Compiler flag to allow reflexive dlopens.
 
19720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19721
 
 
19722
# Compiler flag to generate shared objects directly from archives.
 
19723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19724
 
 
19725
# Compiler flag to generate thread-safe objects.
 
19726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19727
 
 
19728
# Library versioning type.
 
19729
version_type=$version_type
 
19730
 
 
19731
# Format of library name prefix.
 
19732
libname_spec=$lt_libname_spec
 
19733
 
 
19734
# List of archive names.  First name is the real one, the rest are links.
 
19735
# The last name is the one that the linker finds with -lNAME.
 
19736
library_names_spec=$lt_library_names_spec
 
19737
 
 
19738
# The coded name of the library, if different from the real name.
 
19739
soname_spec=$lt_soname_spec
 
19740
 
 
19741
# Commands used to build and install an old-style archive.
 
19742
RANLIB=$lt_RANLIB
 
19743
old_archive_cmds=$lt_old_archive_cmds_RC
 
19744
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19746
 
 
19747
# Create an old-style archive from a shared archive.
 
19748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19749
 
 
19750
# Create a temporary old-style archive to link instead of a shared archive.
 
19751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19752
 
 
19753
# Commands used to build and install a shared archive.
 
19754
archive_cmds=$lt_archive_cmds_RC
 
19755
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19756
postinstall_cmds=$lt_postinstall_cmds
 
19757
postuninstall_cmds=$lt_postuninstall_cmds
 
19758
 
 
19759
# Commands used to build a loadable module (assumed same as above if empty)
 
19760
module_cmds=$lt_module_cmds_RC
 
19761
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19762
 
 
19763
# Commands to strip libraries.
 
19764
old_striplib=$lt_old_striplib
 
19765
striplib=$lt_striplib
 
19766
 
 
19767
# Dependencies to place before the objects being linked to create a
 
19768
# shared library.
 
19769
predep_objects=$lt_predep_objects_RC
 
19770
 
 
19771
# Dependencies to place after the objects being linked to create a
 
19772
# shared library.
 
19773
postdep_objects=$lt_postdep_objects_RC
 
19774
 
 
19775
# Dependencies to place before the objects being linked to create a
 
19776
# shared library.
 
19777
predeps=$lt_predeps_RC
 
19778
 
 
19779
# Dependencies to place after the objects being linked to create a
 
19780
# shared library.
 
19781
postdeps=$lt_postdeps_RC
 
19782
 
 
19783
# The directories searched by this compiler when creating a shared
 
19784
# library
 
19785
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19786
 
 
19787
# The library search path used internally by the compiler when linking
 
19788
# a shared library.
 
19789
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19790
 
 
19791
# Method to check whether dependent libraries are shared objects.
 
19792
deplibs_check_method=$lt_deplibs_check_method
 
19793
 
 
19794
# Command to use when deplibs_check_method == file_magic.
 
19795
file_magic_cmd=$lt_file_magic_cmd
 
19796
 
 
19797
# Flag that allows shared libraries with undefined symbols to be built.
 
19798
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19799
 
 
19800
# Flag that forces no undefined symbols.
 
19801
no_undefined_flag=$lt_no_undefined_flag_RC
 
19802
 
 
19803
# Commands used to finish a libtool library installation in a directory.
 
19804
finish_cmds=$lt_finish_cmds
 
19805
 
 
19806
# Same as above, but a single script fragment to be evaled but not shown.
 
19807
finish_eval=$lt_finish_eval
 
19808
 
 
19809
# Take the output of nm and produce a listing of raw symbols and C names.
 
19810
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19811
 
 
19812
# Transform the output of nm in a proper C declaration
 
19813
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19814
 
 
19815
# Transform the output of nm in a C name address pair
 
19816
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19817
 
 
19818
# This is the shared library runtime path variable.
 
19819
runpath_var=$runpath_var
 
19820
 
 
19821
# This is the shared library path variable.
 
19822
shlibpath_var=$shlibpath_var
 
19823
 
 
19824
# Is shlibpath searched before the hard-coded library search path?
 
19825
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19826
 
 
19827
# How to hardcode a shared library path into an executable.
 
19828
hardcode_action=$hardcode_action_RC
 
19829
 
 
19830
# Whether we should hardcode library paths into libraries.
 
19831
hardcode_into_libs=$hardcode_into_libs
 
19832
 
 
19833
# Flag to hardcode \$libdir into a binary during linking.
 
19834
# This must work even if \$libdir does not exist.
 
19835
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19836
 
 
19837
# If ld is used when linking, flag to hardcode \$libdir into
 
19838
# a binary during linking. This must work even if \$libdir does
 
19839
# not exist.
 
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19841
 
 
19842
# Whether we need a single -rpath flag with a separated argument.
 
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19844
 
 
19845
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19846
# resulting binary.
 
19847
hardcode_direct=$hardcode_direct_RC
 
19848
 
 
19849
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19850
# resulting binary.
 
19851
hardcode_minus_L=$hardcode_minus_L_RC
 
19852
 
 
19853
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19854
# the resulting binary.
 
19855
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19856
 
 
19857
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19858
# and all subsequent libraries and executables linked against it.
 
19859
hardcode_automatic=$hardcode_automatic_RC
 
19860
 
 
19861
# Variables whose values should be saved in libtool wrapper scripts and
 
19862
# restored at relink time.
 
19863
variables_saved_for_relink="$variables_saved_for_relink"
 
19864
 
 
19865
# Whether libtool must link a program against all its dependency libraries.
 
19866
link_all_deplibs=$link_all_deplibs_RC
 
19867
 
 
19868
# Compile-time system search path for libraries
 
19869
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19870
 
 
19871
# Run-time system search path for libraries
 
19872
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19873
 
 
19874
# Fix the shell variable \$srcfile for the compiler.
 
19875
fix_srcfile_path=$lt_fix_srcfile_path
 
19876
 
 
19877
# Set to yes if exported symbols are required.
 
19878
always_export_symbols=$always_export_symbols_RC
 
19879
 
 
19880
# The commands to list exported symbols.
 
19881
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19882
 
 
19883
# The commands to extract the exported symbol list from a shared archive.
 
19884
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19885
 
 
19886
# Symbols that should not be listed in the preloaded symbols.
 
19887
exclude_expsyms=$lt_exclude_expsyms_RC
 
19888
 
 
19889
# Symbols that must always be exported.
 
19890
include_expsyms=$lt_include_expsyms_RC
 
19891
 
 
19892
# ### END LIBTOOL TAG CONFIG: $tagname
 
19893
 
 
19894
__EOF__
 
19895
 
 
19896
 
 
19897
else
 
19898
  # If there is no Makefile yet, we rely on a make rule to execute
 
19899
  # `config.status --recheck' to rerun these tests and create the
 
19900
  # libtool script then.
 
19901
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19902
  if test -f "$ltmain_in"; then
 
19903
    test -f Makefile && make "$ltmain"
 
19904
  fi
 
19905
fi
 
19906
 
 
19907
 
 
19908
ac_ext=c
 
19909
ac_cpp='$CPP $CPPFLAGS'
 
19910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19913
 
 
19914
CC="$lt_save_CC"
 
19915
 
 
19916
        ;;
 
19917
 
 
19918
      *)
 
19919
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19920
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19921
   { (exit 1); exit 1; }; }
 
19922
        ;;
 
19923
      esac
 
19924
 
 
19925
      # Append the new tag name to the list of available tags.
 
19926
      if test -n "$tagname" ; then
 
19927
      available_tags="$available_tags $tagname"
 
19928
    fi
 
19929
    fi
 
19930
  done
 
19931
  IFS="$lt_save_ifs"
 
19932
 
 
19933
  # Now substitute the updated list of available tags.
 
19934
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19935
    mv "${ofile}T" "$ofile"
 
19936
    chmod +x "$ofile"
 
19937
  else
 
19938
    rm -f "${ofile}T"
 
19939
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19940
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19941
   { (exit 1); exit 1; }; }
 
19942
  fi
 
19943
fi
 
19944
 
 
19945
 
 
19946
 
 
19947
# This can be used to rebuild libtool when needed
 
19948
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19949
 
 
19950
# Always use our own libtool.
 
19951
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19952
 
 
19953
# Prevent multiple expansion
 
19954
 
 
19955
 
 
19956
 
 
19957
 
 
19958
 
 
19959
 
 
19960
 
 
19961
 
 
19962
 
 
19963
 
 
19964
 
 
19965
 
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
ac_ext=c
 
19975
ac_cpp='$CPP $CPPFLAGS'
 
19976
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19977
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19978
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19979
if test -n "$ac_tool_prefix"; then
 
19980
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
19981
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
19982
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19983
$as_echo_n "checking for $ac_word... " >&6; }
 
19984
if test "${ac_cv_prog_CC+set}" = set; then
 
19985
  $as_echo_n "(cached) " >&6
 
19986
else
 
19987
  if test -n "$CC"; then
 
19988
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
19989
else
 
19990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19991
for as_dir in $PATH
 
19992
do
 
19993
  IFS=$as_save_IFS
 
19994
  test -z "$as_dir" && as_dir=.
 
19995
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19996
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19997
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
19998
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19999
    break 2
 
20000
  fi
 
20001
done
 
20002
done
 
20003
IFS=$as_save_IFS
 
20004
 
 
20005
fi
 
20006
fi
 
20007
CC=$ac_cv_prog_CC
 
20008
if test -n "$CC"; then
 
20009
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
20010
$as_echo "$CC" >&6; }
 
20011
else
 
20012
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20013
$as_echo "no" >&6; }
 
20014
fi
 
20015
 
 
20016
 
 
20017
fi
 
20018
if test -z "$ac_cv_prog_CC"; then
 
20019
  ac_ct_CC=$CC
 
20020
  # Extract the first word of "gcc", so it can be a program name with args.
 
20021
set dummy gcc; ac_word=$2
 
20022
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20023
$as_echo_n "checking for $ac_word... " >&6; }
 
20024
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20025
  $as_echo_n "(cached) " >&6
 
20026
else
 
20027
  if test -n "$ac_ct_CC"; then
 
20028
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20029
else
 
20030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20031
for as_dir in $PATH
 
20032
do
 
20033
  IFS=$as_save_IFS
 
20034
  test -z "$as_dir" && as_dir=.
 
20035
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20036
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20037
    ac_cv_prog_ac_ct_CC="gcc"
 
20038
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20039
    break 2
 
20040
  fi
 
20041
done
 
20042
done
 
20043
IFS=$as_save_IFS
 
20044
 
 
20045
fi
 
20046
fi
 
20047
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20048
if test -n "$ac_ct_CC"; then
 
20049
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20050
$as_echo "$ac_ct_CC" >&6; }
 
20051
else
 
20052
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20053
$as_echo "no" >&6; }
 
20054
fi
 
20055
 
 
20056
  if test "x$ac_ct_CC" = x; then
 
20057
    CC=""
 
20058
  else
 
20059
    case $cross_compiling:$ac_tool_warned in
 
20060
yes:)
 
20061
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
20062
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
20063
ac_tool_warned=yes ;;
 
20064
esac
 
20065
    CC=$ac_ct_CC
 
20066
  fi
 
20067
else
 
20068
  CC="$ac_cv_prog_CC"
 
20069
fi
 
20070
 
 
20071
if test -z "$CC"; then
 
20072
          if test -n "$ac_tool_prefix"; then
 
20073
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
20074
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
20075
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20076
$as_echo_n "checking for $ac_word... " >&6; }
 
20077
if test "${ac_cv_prog_CC+set}" = set; then
 
20078
  $as_echo_n "(cached) " >&6
 
20079
else
 
20080
  if test -n "$CC"; then
 
20081
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20082
else
 
20083
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20084
for as_dir in $PATH
 
20085
do
 
20086
  IFS=$as_save_IFS
 
20087
  test -z "$as_dir" && as_dir=.
 
20088
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20089
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20090
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
20091
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20092
    break 2
 
20093
  fi
 
20094
done
 
20095
done
 
20096
IFS=$as_save_IFS
 
20097
 
 
20098
fi
 
20099
fi
 
20100
CC=$ac_cv_prog_CC
 
20101
if test -n "$CC"; then
 
20102
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
20103
$as_echo "$CC" >&6; }
 
20104
else
 
20105
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20106
$as_echo "no" >&6; }
 
20107
fi
 
20108
 
 
20109
 
 
20110
  fi
 
20111
fi
 
20112
if test -z "$CC"; then
 
20113
  # Extract the first word of "cc", so it can be a program name with args.
 
20114
set dummy cc; ac_word=$2
 
20115
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20116
$as_echo_n "checking for $ac_word... " >&6; }
 
20117
if test "${ac_cv_prog_CC+set}" = set; then
 
20118
  $as_echo_n "(cached) " >&6
 
20119
else
 
20120
  if test -n "$CC"; then
 
20121
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20122
else
 
20123
  ac_prog_rejected=no
 
20124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20125
for as_dir in $PATH
 
20126
do
 
20127
  IFS=$as_save_IFS
 
20128
  test -z "$as_dir" && as_dir=.
 
20129
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20130
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20131
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
20132
       ac_prog_rejected=yes
 
20133
       continue
 
20134
     fi
 
20135
    ac_cv_prog_CC="cc"
 
20136
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20137
    break 2
 
20138
  fi
 
20139
done
 
20140
done
 
20141
IFS=$as_save_IFS
 
20142
 
 
20143
if test $ac_prog_rejected = yes; then
 
20144
  # We found a bogon in the path, so make sure we never use it.
 
20145
  set dummy $ac_cv_prog_CC
 
20146
  shift
 
20147
  if test $# != 0; then
 
20148
    # We chose a different compiler from the bogus one.
 
20149
    # However, it has the same basename, so the bogon will be chosen
 
20150
    # first if we set CC to just the basename; use the full file name.
 
20151
    shift
 
20152
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
20153
  fi
 
20154
fi
 
20155
fi
 
20156
fi
 
20157
CC=$ac_cv_prog_CC
 
20158
if test -n "$CC"; then
 
20159
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
20160
$as_echo "$CC" >&6; }
 
20161
else
 
20162
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20163
$as_echo "no" >&6; }
 
20164
fi
 
20165
 
 
20166
 
 
20167
fi
 
20168
if test -z "$CC"; then
 
20169
  if test -n "$ac_tool_prefix"; then
 
20170
  for ac_prog in cl.exe
 
20171
  do
 
20172
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
20173
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
20174
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20175
$as_echo_n "checking for $ac_word... " >&6; }
 
20176
if test "${ac_cv_prog_CC+set}" = set; then
 
20177
  $as_echo_n "(cached) " >&6
 
20178
else
 
20179
  if test -n "$CC"; then
 
20180
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
20181
else
 
20182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20183
for as_dir in $PATH
 
20184
do
 
20185
  IFS=$as_save_IFS
 
20186
  test -z "$as_dir" && as_dir=.
 
20187
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20189
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
20190
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20191
    break 2
 
20192
  fi
 
20193
done
 
20194
done
 
20195
IFS=$as_save_IFS
 
20196
 
 
20197
fi
 
20198
fi
 
20199
CC=$ac_cv_prog_CC
 
20200
if test -n "$CC"; then
 
20201
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
20202
$as_echo "$CC" >&6; }
 
20203
else
 
20204
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20205
$as_echo "no" >&6; }
 
20206
fi
 
20207
 
 
20208
 
 
20209
    test -n "$CC" && break
 
20210
  done
 
20211
fi
 
20212
if test -z "$CC"; then
 
20213
  ac_ct_CC=$CC
 
20214
  for ac_prog in cl.exe
 
20215
do
 
20216
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
20217
set dummy $ac_prog; ac_word=$2
 
20218
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20219
$as_echo_n "checking for $ac_word... " >&6; }
 
20220
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
20221
  $as_echo_n "(cached) " >&6
 
20222
else
 
20223
  if test -n "$ac_ct_CC"; then
 
20224
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
20225
else
 
20226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20227
for as_dir in $PATH
 
20228
do
 
20229
  IFS=$as_save_IFS
 
20230
  test -z "$as_dir" && as_dir=.
 
20231
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20232
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20233
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
20234
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20235
    break 2
 
20236
  fi
 
20237
done
 
20238
done
 
20239
IFS=$as_save_IFS
 
20240
 
 
20241
fi
 
20242
fi
 
20243
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
20244
if test -n "$ac_ct_CC"; then
 
20245
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
20246
$as_echo "$ac_ct_CC" >&6; }
 
20247
else
 
20248
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20249
$as_echo "no" >&6; }
 
20250
fi
 
20251
 
 
20252
 
 
20253
  test -n "$ac_ct_CC" && break
 
20254
done
 
20255
 
 
20256
  if test "x$ac_ct_CC" = x; then
 
20257
    CC=""
 
20258
  else
 
20259
    case $cross_compiling:$ac_tool_warned in
 
20260
yes:)
 
20261
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
20262
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
20263
ac_tool_warned=yes ;;
 
20264
esac
 
20265
    CC=$ac_ct_CC
 
20266
  fi
 
20267
fi
 
20268
 
 
20269
fi
 
20270
 
 
20271
 
 
20272
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
20273
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
20274
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
20275
See \`config.log' for more details." >&5
 
20276
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
20277
See \`config.log' for more details." >&2;}
 
20278
   { (exit 1); exit 1; }; }; }
 
20279
 
 
20280
# Provide some information about the compiler.
 
20281
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
20282
set X $ac_compile
 
20283
ac_compiler=$2
 
20284
{ (ac_try="$ac_compiler --version >&5"
 
20285
case "(($ac_try" in
 
20286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20287
  *) ac_try_echo=$ac_try;;
 
20288
esac
 
20289
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20290
$as_echo "$ac_try_echo") >&5
 
20291
  (eval "$ac_compiler --version >&5") 2>&5
 
20292
  ac_status=$?
 
20293
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20294
  (exit $ac_status); }
 
20295
{ (ac_try="$ac_compiler -v >&5"
 
20296
case "(($ac_try" in
 
20297
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20298
  *) ac_try_echo=$ac_try;;
 
20299
esac
 
20300
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20301
$as_echo "$ac_try_echo") >&5
 
20302
  (eval "$ac_compiler -v >&5") 2>&5
 
20303
  ac_status=$?
 
20304
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20305
  (exit $ac_status); }
 
20306
{ (ac_try="$ac_compiler -V >&5"
 
20307
case "(($ac_try" in
 
20308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20309
  *) ac_try_echo=$ac_try;;
 
20310
esac
 
20311
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20312
$as_echo "$ac_try_echo") >&5
 
20313
  (eval "$ac_compiler -V >&5") 2>&5
 
20314
  ac_status=$?
 
20315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20316
  (exit $ac_status); }
 
20317
 
 
20318
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
20319
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
20320
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
20321
  $as_echo_n "(cached) " >&6
 
20322
else
 
20323
  cat >conftest.$ac_ext <<_ACEOF
 
20324
/* confdefs.h.  */
 
20325
_ACEOF
 
20326
cat confdefs.h >>conftest.$ac_ext
 
20327
cat >>conftest.$ac_ext <<_ACEOF
 
20328
/* end confdefs.h.  */
 
20329
 
 
20330
int
 
20331
main ()
 
20332
{
 
20333
#ifndef __GNUC__
 
20334
       choke me
 
20335
#endif
 
20336
 
 
20337
  ;
 
20338
  return 0;
 
20339
}
 
20340
_ACEOF
 
20341
rm -f conftest.$ac_objext
 
20342
if { (ac_try="$ac_compile"
 
20343
case "(($ac_try" in
 
20344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20345
  *) ac_try_echo=$ac_try;;
 
20346
esac
 
20347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20348
$as_echo "$ac_try_echo") >&5
 
20349
  (eval "$ac_compile") 2>conftest.er1
 
20350
  ac_status=$?
 
20351
  grep -v '^ *+' conftest.er1 >conftest.err
 
20352
  rm -f conftest.er1
 
20353
  cat conftest.err >&5
 
20354
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20355
  (exit $ac_status); } && {
 
20356
         test -z "$ac_c_werror_flag" ||
 
20357
         test ! -s conftest.err
 
20358
       } && test -s conftest.$ac_objext; then
 
20359
  ac_compiler_gnu=yes
 
20360
else
 
20361
  $as_echo "$as_me: failed program was:" >&5
 
20362
sed 's/^/| /' conftest.$ac_ext >&5
 
20363
 
 
20364
        ac_compiler_gnu=no
 
20365
fi
 
20366
 
 
20367
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20368
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
20369
 
 
20370
fi
 
20371
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
20372
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
20373
if test $ac_compiler_gnu = yes; then
 
20374
  GCC=yes
 
20375
else
 
20376
  GCC=
 
20377
fi
 
20378
ac_test_CFLAGS=${CFLAGS+set}
 
20379
ac_save_CFLAGS=$CFLAGS
 
20380
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
20381
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
20382
if test "${ac_cv_prog_cc_g+set}" = set; then
 
20383
  $as_echo_n "(cached) " >&6
 
20384
else
 
20385
  ac_save_c_werror_flag=$ac_c_werror_flag
 
20386
   ac_c_werror_flag=yes
 
20387
   ac_cv_prog_cc_g=no
 
20388
   CFLAGS="-g"
 
20389
   cat >conftest.$ac_ext <<_ACEOF
 
20390
/* confdefs.h.  */
 
20391
_ACEOF
 
20392
cat confdefs.h >>conftest.$ac_ext
 
20393
cat >>conftest.$ac_ext <<_ACEOF
 
20394
/* end confdefs.h.  */
 
20395
 
 
20396
int
 
20397
main ()
 
20398
{
 
20399
 
 
20400
  ;
 
20401
  return 0;
 
20402
}
 
20403
_ACEOF
 
20404
rm -f conftest.$ac_objext
 
20405
if { (ac_try="$ac_compile"
 
20406
case "(($ac_try" in
 
20407
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20408
  *) ac_try_echo=$ac_try;;
 
20409
esac
 
20410
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20411
$as_echo "$ac_try_echo") >&5
 
20412
  (eval "$ac_compile") 2>conftest.er1
 
20413
  ac_status=$?
 
20414
  grep -v '^ *+' conftest.er1 >conftest.err
 
20415
  rm -f conftest.er1
 
20416
  cat conftest.err >&5
 
20417
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20418
  (exit $ac_status); } && {
 
20419
         test -z "$ac_c_werror_flag" ||
 
20420
         test ! -s conftest.err
 
20421
       } && test -s conftest.$ac_objext; then
 
20422
  ac_cv_prog_cc_g=yes
 
20423
else
 
20424
  $as_echo "$as_me: failed program was:" >&5
 
20425
sed 's/^/| /' conftest.$ac_ext >&5
 
20426
 
 
20427
        CFLAGS=""
 
20428
      cat >conftest.$ac_ext <<_ACEOF
 
20429
/* confdefs.h.  */
 
20430
_ACEOF
 
20431
cat confdefs.h >>conftest.$ac_ext
 
20432
cat >>conftest.$ac_ext <<_ACEOF
 
20433
/* end confdefs.h.  */
 
20434
 
 
20435
int
 
20436
main ()
 
20437
{
 
20438
 
 
20439
  ;
 
20440
  return 0;
 
20441
}
 
20442
_ACEOF
 
20443
rm -f conftest.$ac_objext
 
20444
if { (ac_try="$ac_compile"
 
20445
case "(($ac_try" in
 
20446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20447
  *) ac_try_echo=$ac_try;;
 
20448
esac
 
20449
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20450
$as_echo "$ac_try_echo") >&5
 
20451
  (eval "$ac_compile") 2>conftest.er1
 
20452
  ac_status=$?
 
20453
  grep -v '^ *+' conftest.er1 >conftest.err
 
20454
  rm -f conftest.er1
 
20455
  cat conftest.err >&5
 
20456
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20457
  (exit $ac_status); } && {
 
20458
         test -z "$ac_c_werror_flag" ||
 
20459
         test ! -s conftest.err
 
20460
       } && test -s conftest.$ac_objext; then
 
20461
  :
 
20462
else
 
20463
  $as_echo "$as_me: failed program was:" >&5
 
20464
sed 's/^/| /' conftest.$ac_ext >&5
 
20465
 
 
20466
        ac_c_werror_flag=$ac_save_c_werror_flag
 
20467
         CFLAGS="-g"
 
20468
         cat >conftest.$ac_ext <<_ACEOF
 
20469
/* confdefs.h.  */
 
20470
_ACEOF
 
20471
cat confdefs.h >>conftest.$ac_ext
 
20472
cat >>conftest.$ac_ext <<_ACEOF
 
20473
/* end confdefs.h.  */
 
20474
 
 
20475
int
 
20476
main ()
 
20477
{
 
20478
 
 
20479
  ;
 
20480
  return 0;
 
20481
}
 
20482
_ACEOF
 
20483
rm -f conftest.$ac_objext
 
20484
if { (ac_try="$ac_compile"
 
20485
case "(($ac_try" in
 
20486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20487
  *) ac_try_echo=$ac_try;;
 
20488
esac
 
20489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20490
$as_echo "$ac_try_echo") >&5
 
20491
  (eval "$ac_compile") 2>conftest.er1
 
20492
  ac_status=$?
 
20493
  grep -v '^ *+' conftest.er1 >conftest.err
 
20494
  rm -f conftest.er1
 
20495
  cat conftest.err >&5
 
20496
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20497
  (exit $ac_status); } && {
 
20498
         test -z "$ac_c_werror_flag" ||
 
20499
         test ! -s conftest.err
 
20500
       } && test -s conftest.$ac_objext; then
 
20501
  ac_cv_prog_cc_g=yes
 
20502
else
 
20503
  $as_echo "$as_me: failed program was:" >&5
 
20504
sed 's/^/| /' conftest.$ac_ext >&5
 
20505
 
 
20506
 
 
20507
fi
 
20508
 
 
20509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20510
fi
 
20511
 
 
20512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20513
fi
 
20514
 
 
20515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20516
   ac_c_werror_flag=$ac_save_c_werror_flag
 
20517
fi
 
20518
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
20519
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
20520
if test "$ac_test_CFLAGS" = set; then
 
20521
  CFLAGS=$ac_save_CFLAGS
 
20522
elif test $ac_cv_prog_cc_g = yes; then
 
20523
  if test "$GCC" = yes; then
 
20524
    CFLAGS="-g -O2"
 
20525
  else
 
20526
    CFLAGS="-g"
 
20527
  fi
 
20528
else
 
20529
  if test "$GCC" = yes; then
 
20530
    CFLAGS="-O2"
 
20531
  else
 
20532
    CFLAGS=
 
20533
  fi
 
20534
fi
 
20535
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
20536
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
20537
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
20538
  $as_echo_n "(cached) " >&6
 
20539
else
 
20540
  ac_cv_prog_cc_c89=no
 
20541
ac_save_CC=$CC
 
20542
cat >conftest.$ac_ext <<_ACEOF
 
20543
/* confdefs.h.  */
 
20544
_ACEOF
 
20545
cat confdefs.h >>conftest.$ac_ext
 
20546
cat >>conftest.$ac_ext <<_ACEOF
 
20547
/* end confdefs.h.  */
 
20548
#include <stdarg.h>
 
20549
#include <stdio.h>
 
20550
#include <sys/types.h>
 
20551
#include <sys/stat.h>
 
20552
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
20553
struct buf { int x; };
 
20554
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
20555
static char *e (p, i)
 
20556
     char **p;
 
20557
     int i;
 
20558
{
 
20559
  return p[i];
 
20560
}
 
20561
static char *f (char * (*g) (char **, int), char **p, ...)
 
20562
{
 
20563
  char *s;
 
20564
  va_list v;
 
20565
  va_start (v,p);
 
20566
  s = g (p, va_arg (v,int));
 
20567
  va_end (v);
 
20568
  return s;
 
20569
}
 
20570
 
 
20571
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
20572
   function prototypes and stuff, but not '\xHH' hex character constants.
 
20573
   These don't provoke an error unfortunately, instead are silently treated
 
20574
   as 'x'.  The following induces an error, until -std is added to get
 
20575
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
20576
   array size at least.  It's necessary to write '\x00'==0 to get something
 
20577
   that's true only with -std.  */
 
20578
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
20579
 
 
20580
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
20581
   inside strings and character constants.  */
 
20582
#define FOO(x) 'x'
 
20583
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
20584
 
 
20585
int test (int i, double x);
 
20586
struct s1 {int (*f) (int a);};
 
20587
struct s2 {int (*f) (double a);};
 
20588
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
20589
int argc;
 
20590
char **argv;
 
20591
int
 
20592
main ()
 
20593
{
 
20594
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
20595
  ;
 
20596
  return 0;
 
20597
}
 
20598
_ACEOF
 
20599
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
20600
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
20601
do
 
20602
  CC="$ac_save_CC $ac_arg"
 
20603
  rm -f conftest.$ac_objext
 
20604
if { (ac_try="$ac_compile"
 
20605
case "(($ac_try" in
 
20606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20607
  *) ac_try_echo=$ac_try;;
 
20608
esac
 
20609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20610
$as_echo "$ac_try_echo") >&5
 
20611
  (eval "$ac_compile") 2>conftest.er1
 
20612
  ac_status=$?
 
20613
  grep -v '^ *+' conftest.er1 >conftest.err
 
20614
  rm -f conftest.er1
 
20615
  cat conftest.err >&5
 
20616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20617
  (exit $ac_status); } && {
 
20618
         test -z "$ac_c_werror_flag" ||
 
20619
         test ! -s conftest.err
 
20620
       } && test -s conftest.$ac_objext; then
 
20621
  ac_cv_prog_cc_c89=$ac_arg
 
20622
else
 
20623
  $as_echo "$as_me: failed program was:" >&5
 
20624
sed 's/^/| /' conftest.$ac_ext >&5
 
20625
 
 
20626
 
 
20627
fi
 
20628
 
 
20629
rm -f core conftest.err conftest.$ac_objext
 
20630
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
20631
done
 
20632
rm -f conftest.$ac_ext
 
20633
CC=$ac_save_CC
 
20634
 
 
20635
fi
 
20636
# AC_CACHE_VAL
 
20637
case "x$ac_cv_prog_cc_c89" in
 
20638
  x)
 
20639
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
20640
$as_echo "none needed" >&6; } ;;
 
20641
  xno)
 
20642
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
20643
$as_echo "unsupported" >&6; } ;;
 
20644
  *)
 
20645
    CC="$CC $ac_cv_prog_cc_c89"
 
20646
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
20647
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
20648
esac
 
20649
 
 
20650
 
 
20651
ac_ext=c
 
20652
ac_cpp='$CPP $CPPFLAGS'
 
20653
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20654
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20655
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20656
 
 
20657
depcc="$CC"   am_compiler_list=
 
20658
 
 
20659
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
20660
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
20661
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
20662
  $as_echo_n "(cached) " >&6
 
20663
else
 
20664
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
20665
  # We make a subdir and do the tests there.  Otherwise we can end up
 
20666
  # making bogus files that we don't know about and never remove.  For
 
20667
  # instance it was reported that on HP-UX the gcc test will end up
 
20668
  # making a dummy file named `D' -- because `-MD' means `put the output
 
20669
  # in D'.
 
20670
  mkdir conftest.dir
 
20671
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
20672
  # using a relative directory.
 
20673
  cp "$am_depcomp" conftest.dir
 
20674
  cd conftest.dir
 
20675
  # We will build objects and dependencies in a subdirectory because
 
20676
  # it helps to detect inapplicable dependency modes.  For instance
 
20677
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
20678
  # side effect of compilation, but ICC will put the dependencies in
 
20679
  # the current directory while Tru64 will put them in the object
 
20680
  # directory.
 
20681
  mkdir sub
 
20682
 
 
20683
  am_cv_CC_dependencies_compiler_type=none
 
20684
  if test "$am_compiler_list" = ""; then
 
20685
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
20686
  fi
 
20687
  for depmode in $am_compiler_list; do
 
20688
    # Setup a source with many dependencies, because some compilers
 
20689
    # like to wrap large dependency lists on column 80 (with \), and
 
20690
    # we should not choose a depcomp mode which is confused by this.
 
20691
    #
 
20692
    # We need to recreate these files for each test, as the compiler may
 
20693
    # overwrite some of them when testing with obscure command lines.
 
20694
    # This happens at least with the AIX C compiler.
 
20695
    : > sub/conftest.c
 
20696
    for i in 1 2 3 4 5 6; do
 
20697
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
20698
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
20699
      # Solaris 8's {/usr,}/bin/sh.
 
20700
      touch sub/conftst$i.h
 
20701
    done
 
20702
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
20703
 
 
20704
    case $depmode in
 
20705
    nosideeffect)
 
20706
      # after this tag, mechanisms are not by side-effect, so they'll
 
20707
      # only be used when explicitly requested
 
20708
      if test "x$enable_dependency_tracking" = xyes; then
 
20709
        continue
 
20710
      else
 
20711
        break
 
20712
      fi
 
20713
      ;;
 
20714
    none) break ;;
 
20715
    esac
 
20716
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
20717
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
20718
    # handle `-M -o', and we need to detect this.
 
20719
    if depmode=$depmode \
 
20720
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
20721
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
20722
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
20723
         >/dev/null 2>conftest.err &&
 
20724
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
20725
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
20726
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
20727
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
20728
      # icc doesn't choke on unknown options, it will just issue warnings
 
20729
      # or remarks (even with -Werror).  So we grep stderr for any message
 
20730
      # that says an option was ignored or not supported.
 
20731
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
20732
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
20733
      # The diagnosis changed in icc 8.0:
 
20734
      #   icc: Command line remark: option '-MP' not supported
 
20735
      if (grep 'ignoring option' conftest.err ||
 
20736
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
20737
        am_cv_CC_dependencies_compiler_type=$depmode
 
20738
        break
 
20739
      fi
 
20740
    fi
 
20741
  done
 
20742
 
 
20743
  cd ..
 
20744
  rm -rf conftest.dir
 
20745
else
 
20746
  am_cv_CC_dependencies_compiler_type=none
 
20747
fi
 
20748
 
 
20749
fi
 
20750
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
20751
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
20752
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
20753
 
 
20754
 if
 
20755
  test "x$enable_dependency_tracking" != xno \
 
20756
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
20757
  am__fastdepCC_TRUE=
 
20758
  am__fastdepCC_FALSE='#'
 
20759
else
 
20760
  am__fastdepCC_TRUE='#'
 
20761
  am__fastdepCC_FALSE=
 
20762
fi
 
20763
 
 
20764
 
 
20765
 
 
20766
 
 
20767
 
 
20768
 
 
20769
{ $as_echo "$as_me:$LINENO: checking which optional backends will be build" >&5
 
20770
$as_echo_n "checking which optional backends will be build... " >&6; }
 
20771
case "${host}" in
 
20772
*linux*)
 
20773
        { $as_echo "$as_me:$LINENO: result: eventcomm" >&5
 
20774
$as_echo "eventcomm" >&6; }
 
20775
        BUILD_EVENTCOMM="yes"
 
20776
        BUILD_PSMCOMM="no"
 
20777
        ;;
 
20778
*freebsd* | *openbsd* | *netbsd* | *dragonfly*)
 
20779
        { $as_echo "$as_me:$LINENO: result: psmcomm" >&5
 
20780
$as_echo "psmcomm" >&6; }
 
20781
        BUILD_EVENTCOMM="no"
 
20782
        BUILD_PSMCOMM="yes"
 
20783
        ;;
 
20784
*)
 
20785
        { $as_echo "$as_me:$LINENO: result: none" >&5
 
20786
$as_echo "none" >&6; }
 
20787
        BUILD_EVENTCOMM="no"
 
20788
        BUILD_PSMCOMM="no"
 
20789
        ;;
 
20790
esac
 
20791
 if test "x${BUILD_EVENTCOMM}" = "xyes"; then
 
20792
  BUILD_EVENTCOMM_TRUE=
 
20793
  BUILD_EVENTCOMM_FALSE='#'
 
20794
else
 
20795
  BUILD_EVENTCOMM_TRUE='#'
 
20796
  BUILD_EVENTCOMM_FALSE=
 
20797
fi
 
20798
 
 
20799
if test "x${BUILD_EVENTCOMM}" = "xyes" ; then
 
20800
 
 
20801
cat >>confdefs.h <<\_ACEOF
 
20802
#define BUILD_EVENTCOMM 1
 
20803
_ACEOF
 
20804
 
 
20805
fi
 
20806
 if test "x${BUILD_PSMCOMM}" = "xyes"; then
 
20807
  BUILD_PSMCOMM_TRUE=
 
20808
  BUILD_PSMCOMM_FALSE='#'
 
20809
else
 
20810
  BUILD_PSMCOMM_TRUE='#'
 
20811
  BUILD_PSMCOMM_FALSE=
 
20812
fi
 
20813
 
 
20814
if test "x${BUILD_PSMCOMM}" = "xyes" ; then
 
20815
 
 
20816
cat >>confdefs.h <<\_ACEOF
 
20817
#define BUILD_PSMCOMM 1
 
20818
_ACEOF
 
20819
 
 
20820
fi
 
20821
 
 
20822
#AC_DEFINE(XFree86LOADER,1,[Stub define for loadable drivers])
 
20823
#
 
20824
#AC_ARG_ENABLE(XINPUT, AS_HELP_STRING([--enable-xinput],
 
20825
#              [Build XInput support (default: yes)]),
 
20826
#              [XINPUT=$enableval],[XINPUT=yes])
 
20827
#AM_CONDITIONAL(XINPUT, test "x$XINPUT" = "xyes")
 
20828
#if test "x$XINPUT" = "xyes" ; then
 
20829
#    AC_DEFINE(XINPUT,1,[Enable XInput support])
 
20830
#fi
 
20831
#
 
20832
#AC_ARG_ENABLE(XKB, AS_HELP_STRING([--enable-xkb],
 
20833
#              [Build XKB support (default: yes)]),
 
20834
#              [XKB=$enableval],[XKB=yes])
 
20835
#AM_CONDITIONAL(XKB, test "x$XKB" = "xyes")
 
20836
#if test "x$XKB" = "xyes" ; then
 
20837
#    AC_DEFINE(XKB,1,[Enable XKB support])
 
20838
#fi
 
20839
 
 
20840
 
 
20841
# Check whether --with-xorg-module-dir was given.
 
20842
if test "${with_xorg_module_dir+set}" = set; then
 
20843
  withval=$with_xorg_module_dir; moduledir="$withval"
 
20844
else
 
20845
  moduledir="$libdir/xorg/modules"
 
20846
fi
 
20847
 
 
20848
inputdir=${moduledir}/input
 
20849
 
 
20850
 
 
20851
# Checks for extensions
 
20852
 
 
20853
        SAVE_CFLAGS="$CFLAGS"
 
20854
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
20855
        cat >conftest.$ac_ext <<_ACEOF
 
20856
/* confdefs.h.  */
 
20857
_ACEOF
 
20858
cat confdefs.h >>conftest.$ac_ext
 
20859
cat >>conftest.$ac_ext <<_ACEOF
 
20860
/* end confdefs.h.  */
 
20861
 
 
20862
#include "xorg-server.h"
 
20863
#if !defined RANDR
 
20864
#error RANDR not defined
 
20865
#endif
 
20866
 
 
20867
int
 
20868
main ()
 
20869
{
 
20870
 
 
20871
  ;
 
20872
  return 0;
 
20873
}
 
20874
_ACEOF
 
20875
rm -f conftest.$ac_objext
 
20876
if { (ac_try="$ac_compile"
 
20877
case "(($ac_try" in
 
20878
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20879
  *) ac_try_echo=$ac_try;;
 
20880
esac
 
20881
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20882
$as_echo "$ac_try_echo") >&5
 
20883
  (eval "$ac_compile") 2>conftest.er1
 
20884
  ac_status=$?
 
20885
  grep -v '^ *+' conftest.er1 >conftest.err
 
20886
  rm -f conftest.er1
 
20887
  cat conftest.err >&5
 
20888
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20889
  (exit $ac_status); } && {
 
20890
         test -z "$ac_c_werror_flag" ||
 
20891
         test ! -s conftest.err
 
20892
       } && test -s conftest.$ac_objext; then
 
20893
  _EXT_CHECK=yes
 
20894
else
 
20895
  $as_echo "$as_me: failed program was:" >&5
 
20896
sed 's/^/| /' conftest.$ac_ext >&5
 
20897
 
 
20898
        _EXT_CHECK=no
 
20899
fi
 
20900
 
 
20901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20902
        CFLAGS="$SAVE_CFLAGS"
 
20903
        { $as_echo "$as_me:$LINENO: checking if RANDR is defined" >&5
 
20904
$as_echo_n "checking if RANDR is defined... " >&6; }
 
20905
        { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
 
20906
$as_echo "$_EXT_CHECK" >&6; }
 
20907
        if test "$_EXT_CHECK" != no; then
 
20908
                REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
 
20909
        fi
 
20910
 
 
20911
 
 
20912
        SAVE_CFLAGS="$CFLAGS"
 
20913
        CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
 
20914
        cat >conftest.$ac_ext <<_ACEOF
 
20915
/* confdefs.h.  */
 
20916
_ACEOF
 
20917
cat confdefs.h >>conftest.$ac_ext
 
20918
cat >>conftest.$ac_ext <<_ACEOF
 
20919
/* end confdefs.h.  */
 
20920
 
 
20921
#include "xorg-server.h"
 
20922
#if !defined XINPUT
 
20923
#error XINPUT not defined
 
20924
#endif
 
20925
 
 
20926
int
 
20927
main ()
 
20928
{
 
20929
 
 
20930
  ;
 
20931
  return 0;
 
20932
}
 
20933
_ACEOF
 
20934
rm -f conftest.$ac_objext
 
20935
if { (ac_try="$ac_compile"
 
20936
case "(($ac_try" in
 
20937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20938
  *) ac_try_echo=$ac_try;;
 
20939
esac
 
20940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20941
$as_echo "$ac_try_echo") >&5
 
20942
  (eval "$ac_compile") 2>conftest.er1
 
20943
  ac_status=$?
 
20944
  grep -v '^ *+' conftest.er1 >conftest.err
 
20945
  rm -f conftest.er1
 
20946
  cat conftest.err >&5
 
20947
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20948
  (exit $ac_status); } && {
 
20949
         test -z "$ac_c_werror_flag" ||
 
20950
         test ! -s conftest.err
 
20951
       } && test -s conftest.$ac_objext; then
 
20952
  _EXT_CHECK=yes
 
20953
else
 
20954
  $as_echo "$as_me: failed program was:" >&5
 
20955
sed 's/^/| /' conftest.$ac_ext >&5
 
20956
 
 
20957
        _EXT_CHECK=no
 
20958
fi
 
20959
 
 
20960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20961
        CFLAGS="$SAVE_CFLAGS"
 
20962
        { $as_echo "$as_me:$LINENO: checking if XINPUT is defined" >&5
 
20963
$as_echo_n "checking if XINPUT is defined... " >&6; }
 
20964
        { $as_echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
 
20965
$as_echo "$_EXT_CHECK" >&6; }
 
20966
        if test "$_EXT_CHECK" != no; then
 
20967
                REQUIRED_MODULES="$REQUIRED_MODULES inputproto"
 
20968
        fi
 
20969
 
 
20970
 
 
20971
# Checks for pkg-config packages
 
20972
 
 
20973
 
 
20974
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20975
        if test -n "$ac_tool_prefix"; then
 
20976
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20977
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
20978
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20979
$as_echo_n "checking for $ac_word... " >&6; }
 
20980
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
20981
  $as_echo_n "(cached) " >&6
 
20982
else
 
20983
  case $PKG_CONFIG in
 
20984
  [\\/]* | ?:[\\/]*)
 
20985
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
20986
  ;;
 
20987
  *)
 
20988
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20989
for as_dir in $PATH
 
20990
do
 
20991
  IFS=$as_save_IFS
 
20992
  test -z "$as_dir" && as_dir=.
 
20993
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20994
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20995
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20996
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20997
    break 2
 
20998
  fi
 
20999
done
 
21000
done
 
21001
IFS=$as_save_IFS
 
21002
 
 
21003
  ;;
 
21004
esac
 
21005
fi
 
21006
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21007
if test -n "$PKG_CONFIG"; then
 
21008
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21009
$as_echo "$PKG_CONFIG" >&6; }
 
21010
else
 
21011
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
21012
$as_echo "no" >&6; }
 
21013
fi
 
21014
 
 
21015
 
 
21016
fi
 
21017
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
21018
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
21019
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
21020
set dummy pkg-config; ac_word=$2
 
21021
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21022
$as_echo_n "checking for $ac_word... " >&6; }
 
21023
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
21024
  $as_echo_n "(cached) " >&6
 
21025
else
 
21026
  case $ac_pt_PKG_CONFIG in
 
21027
  [\\/]* | ?:[\\/]*)
 
21028
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
21029
  ;;
 
21030
  *)
 
21031
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21032
for as_dir in $PATH
 
21033
do
 
21034
  IFS=$as_save_IFS
 
21035
  test -z "$as_dir" && as_dir=.
 
21036
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21037
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21038
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21039
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21040
    break 2
 
21041
  fi
 
21042
done
 
21043
done
 
21044
IFS=$as_save_IFS
 
21045
 
 
21046
  ;;
 
21047
esac
 
21048
fi
 
21049
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
21050
if test -n "$ac_pt_PKG_CONFIG"; then
 
21051
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
21052
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
21053
else
 
21054
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
21055
$as_echo "no" >&6; }
 
21056
fi
 
21057
 
 
21058
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
21059
    PKG_CONFIG=""
 
21060
  else
 
21061
    case $cross_compiling:$ac_tool_warned in
 
21062
yes:)
 
21063
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
21064
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
21065
ac_tool_warned=yes ;;
 
21066
esac
 
21067
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
21068
  fi
 
21069
else
 
21070
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
21071
fi
 
21072
 
 
21073
fi
 
21074
if test -n "$PKG_CONFIG"; then
 
21075
        _pkg_min_version=0.9.0
 
21076
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
21077
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
21078
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
21079
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21080
$as_echo "yes" >&6; }
 
21081
        else
 
21082
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
21083
$as_echo "no" >&6; }
 
21084
                PKG_CONFIG=""
 
21085
        fi
 
21086
 
 
21087
fi
 
21088
 
 
21089
pkg_failed=no
 
21090
{ $as_echo "$as_me:$LINENO: checking for XORG" >&5
 
21091
$as_echo_n "checking for XORG... " >&6; }
 
21092
 
 
21093
if test -n "$XORG_CFLAGS"; then
 
21094
    pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
 
21095
 elif test -n "$PKG_CONFIG"; then
 
21096
    if test -n "$PKG_CONFIG" && \
 
21097
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
 
21098
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
 
21099
  ac_status=$?
 
21100
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21101
  (exit $ac_status); }; then
 
21102
  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
 
21103
else
 
21104
  pkg_failed=yes
 
21105
fi
 
21106
 else
 
21107
    pkg_failed=untried
 
21108
fi
 
21109
if test -n "$XORG_LIBS"; then
 
21110
    pkg_cv_XORG_LIBS="$XORG_LIBS"
 
21111
 elif test -n "$PKG_CONFIG"; then
 
21112
    if test -n "$PKG_CONFIG" && \
 
21113
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server xproto \$REQUIRED_MODULES\"") >&5
 
21114
  ($PKG_CONFIG --exists --print-errors "xorg-server xproto $REQUIRED_MODULES") 2>&5
 
21115
  ac_status=$?
 
21116
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21117
  (exit $ac_status); }; then
 
21118
  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server xproto $REQUIRED_MODULES" 2>/dev/null`
 
21119
else
 
21120
  pkg_failed=yes
 
21121
fi
 
21122
 else
 
21123
    pkg_failed=untried
 
21124
fi
 
21125
 
 
21126
 
 
21127
 
 
21128
if test $pkg_failed = yes; then
 
21129
 
 
21130
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21131
        _pkg_short_errors_supported=yes
 
21132
else
 
21133
        _pkg_short_errors_supported=no
 
21134
fi
 
21135
        if test $_pkg_short_errors_supported = yes; then
 
21136
                XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
 
21137
        else
 
21138
                XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server xproto $REQUIRED_MODULES" 2>&1`
 
21139
        fi
 
21140
        # Put the nasty error message in config.log where it belongs
 
21141
        echo "$XORG_PKG_ERRORS" >&5
 
21142
 
 
21143
        { { $as_echo "$as_me:$LINENO: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
 
21144
 
 
21145
$XORG_PKG_ERRORS
 
21146
 
 
21147
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21148
installed software in a non-standard prefix.
 
21149
 
 
21150
Alternatively, you may set the environment variables XORG_CFLAGS
 
21151
and XORG_LIBS to avoid the need to call pkg-config.
 
21152
See the pkg-config man page for more details.
 
21153
" >&5
 
21154
$as_echo "$as_me: error: Package requirements (xorg-server xproto $REQUIRED_MODULES) were not met:
 
21155
 
 
21156
$XORG_PKG_ERRORS
 
21157
 
 
21158
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21159
installed software in a non-standard prefix.
 
21160
 
 
21161
Alternatively, you may set the environment variables XORG_CFLAGS
 
21162
and XORG_LIBS to avoid the need to call pkg-config.
 
21163
See the pkg-config man page for more details.
 
21164
" >&2;}
 
21165
   { (exit 1); exit 1; }; }
 
21166
elif test $pkg_failed = untried; then
 
21167
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21168
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21169
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21170
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21171
path to pkg-config.
 
21172
 
 
21173
Alternatively, you may set the environment variables XORG_CFLAGS
 
21174
and XORG_LIBS to avoid the need to call pkg-config.
 
21175
See the pkg-config man page for more details.
 
21176
 
 
21177
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21178
See \`config.log' for more details." >&5
 
21179
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21180
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21181
path to pkg-config.
 
21182
 
 
21183
Alternatively, you may set the environment variables XORG_CFLAGS
 
21184
and XORG_LIBS to avoid the need to call pkg-config.
 
21185
See the pkg-config man page for more details.
 
21186
 
 
21187
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21188
See \`config.log' for more details." >&2;}
 
21189
   { (exit 1); exit 1; }; }; }
 
21190
else
 
21191
        XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
 
21192
        XORG_LIBS=$pkg_cv_XORG_LIBS
 
21193
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21194
$as_echo "yes" >&6; }
 
21195
        :
 
21196
fi
 
21197
sdkdir=$(pkg-config --variable=sdkdir xorg-server)
 
21198
 
 
21199
 
 
21200
CFLAGS="$CFLAGS $XORG_CFLAGS "' -I$(top_srcdir)/src'
 
21201
 
 
21202
 
 
21203
# Checks for libraries.
 
21204
 
 
21205
pkg_failed=no
 
21206
{ $as_echo "$as_me:$LINENO: checking for XLIB" >&5
 
21207
$as_echo_n "checking for XLIB... " >&6; }
 
21208
 
 
21209
if test -n "$XLIB_CFLAGS"; then
 
21210
    pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
 
21211
 elif test -n "$PKG_CONFIG"; then
 
21212
    if test -n "$PKG_CONFIG" && \
 
21213
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
21214
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
21215
  ac_status=$?
 
21216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21217
  (exit $ac_status); }; then
 
21218
  pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
 
21219
else
 
21220
  pkg_failed=yes
 
21221
fi
 
21222
 else
 
21223
    pkg_failed=untried
 
21224
fi
 
21225
if test -n "$XLIB_LIBS"; then
 
21226
    pkg_cv_XLIB_LIBS="$XLIB_LIBS"
 
21227
 elif test -n "$PKG_CONFIG"; then
 
21228
    if test -n "$PKG_CONFIG" && \
 
21229
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11\"") >&5
 
21230
  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
 
21231
  ac_status=$?
 
21232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21233
  (exit $ac_status); }; then
 
21234
  pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
 
21235
else
 
21236
  pkg_failed=yes
 
21237
fi
 
21238
 else
 
21239
    pkg_failed=untried
 
21240
fi
 
21241
 
 
21242
 
 
21243
 
 
21244
if test $pkg_failed = yes; then
 
21245
 
 
21246
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
21247
        _pkg_short_errors_supported=yes
 
21248
else
 
21249
        _pkg_short_errors_supported=no
 
21250
fi
 
21251
        if test $_pkg_short_errors_supported = yes; then
 
21252
                XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11" 2>&1`
 
21253
        else
 
21254
                XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11" 2>&1`
 
21255
        fi
 
21256
        # Put the nasty error message in config.log where it belongs
 
21257
        echo "$XLIB_PKG_ERRORS" >&5
 
21258
 
 
21259
        { { $as_echo "$as_me:$LINENO: error: Package requirements (x11) were not met:
 
21260
 
 
21261
$XLIB_PKG_ERRORS
 
21262
 
 
21263
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21264
installed software in a non-standard prefix.
 
21265
 
 
21266
Alternatively, you may set the environment variables XLIB_CFLAGS
 
21267
and XLIB_LIBS to avoid the need to call pkg-config.
 
21268
See the pkg-config man page for more details.
 
21269
" >&5
 
21270
$as_echo "$as_me: error: Package requirements (x11) were not met:
 
21271
 
 
21272
$XLIB_PKG_ERRORS
 
21273
 
 
21274
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
21275
installed software in a non-standard prefix.
 
21276
 
 
21277
Alternatively, you may set the environment variables XLIB_CFLAGS
 
21278
and XLIB_LIBS to avoid the need to call pkg-config.
 
21279
See the pkg-config man page for more details.
 
21280
" >&2;}
 
21281
   { (exit 1); exit 1; }; }
 
21282
elif test $pkg_failed = untried; then
 
21283
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
21284
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
21285
{ { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
21286
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21287
path to pkg-config.
 
21288
 
 
21289
Alternatively, you may set the environment variables XLIB_CFLAGS
 
21290
and XLIB_LIBS to avoid the need to call pkg-config.
 
21291
See the pkg-config man page for more details.
 
21292
 
 
21293
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21294
See \`config.log' for more details." >&5
 
21295
$as_echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
21296
is in your PATH or set the PKG_CONFIG environment variable to the full
 
21297
path to pkg-config.
 
21298
 
 
21299
Alternatively, you may set the environment variables XLIB_CFLAGS
 
21300
and XLIB_LIBS to avoid the need to call pkg-config.
 
21301
See the pkg-config man page for more details.
 
21302
 
 
21303
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
 
21304
See \`config.log' for more details." >&2;}
 
21305
   { (exit 1); exit 1; }; }; }
 
21306
else
 
21307
        XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
 
21308
        XLIB_LIBS=$pkg_cv_XLIB_LIBS
 
21309
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21310
$as_echo "yes" >&6; }
 
21311
        :
 
21312
fi # needed for syndaemon
 
21313
 
 
21314
# Checks for header files.
 
21315
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
21316
$as_echo_n "checking for ANSI C header files... " >&6; }
 
21317
if test "${ac_cv_header_stdc+set}" = set; then
 
21318
  $as_echo_n "(cached) " >&6
 
21319
else
 
21320
  cat >conftest.$ac_ext <<_ACEOF
 
21321
/* confdefs.h.  */
 
21322
_ACEOF
 
21323
cat confdefs.h >>conftest.$ac_ext
 
21324
cat >>conftest.$ac_ext <<_ACEOF
 
21325
/* end confdefs.h.  */
 
21326
#include <stdlib.h>
 
21327
#include <stdarg.h>
 
21328
#include <string.h>
 
21329
#include <float.h>
 
21330
 
 
21331
int
 
21332
main ()
 
21333
{
 
21334
 
 
21335
  ;
 
21336
  return 0;
 
21337
}
 
21338
_ACEOF
 
21339
rm -f conftest.$ac_objext
 
21340
if { (ac_try="$ac_compile"
 
21341
case "(($ac_try" in
 
21342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21343
  *) ac_try_echo=$ac_try;;
 
21344
esac
 
21345
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21346
$as_echo "$ac_try_echo") >&5
 
21347
  (eval "$ac_compile") 2>conftest.er1
 
21348
  ac_status=$?
 
21349
  grep -v '^ *+' conftest.er1 >conftest.err
 
21350
  rm -f conftest.er1
 
21351
  cat conftest.err >&5
 
21352
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21353
  (exit $ac_status); } && {
 
21354
         test -z "$ac_c_werror_flag" ||
 
21355
         test ! -s conftest.err
 
21356
       } && test -s conftest.$ac_objext; then
 
21357
  ac_cv_header_stdc=yes
 
21358
else
 
21359
  $as_echo "$as_me: failed program was:" >&5
 
21360
sed 's/^/| /' conftest.$ac_ext >&5
 
21361
 
 
21362
        ac_cv_header_stdc=no
 
21363
fi
 
21364
 
 
21365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21366
 
 
21367
if test $ac_cv_header_stdc = yes; then
 
21368
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
21369
  cat >conftest.$ac_ext <<_ACEOF
 
21370
/* confdefs.h.  */
 
21371
_ACEOF
 
21372
cat confdefs.h >>conftest.$ac_ext
 
21373
cat >>conftest.$ac_ext <<_ACEOF
 
21374
/* end confdefs.h.  */
 
21375
#include <string.h>
 
21376
 
 
21377
_ACEOF
 
21378
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21379
  $EGREP "memchr" >/dev/null 2>&1; then
 
21380
  :
 
21381
else
 
21382
  ac_cv_header_stdc=no
 
21383
fi
 
21384
rm -f conftest*
 
21385
 
 
21386
fi
 
21387
 
 
21388
if test $ac_cv_header_stdc = yes; then
 
21389
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
21390
  cat >conftest.$ac_ext <<_ACEOF
 
21391
/* confdefs.h.  */
 
21392
_ACEOF
 
21393
cat confdefs.h >>conftest.$ac_ext
 
21394
cat >>conftest.$ac_ext <<_ACEOF
 
21395
/* end confdefs.h.  */
 
21396
#include <stdlib.h>
 
21397
 
 
21398
_ACEOF
 
21399
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21400
  $EGREP "free" >/dev/null 2>&1; then
 
21401
  :
 
21402
else
 
21403
  ac_cv_header_stdc=no
 
21404
fi
 
21405
rm -f conftest*
 
21406
 
 
21407
fi
 
21408
 
 
21409
if test $ac_cv_header_stdc = yes; then
 
21410
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
21411
  if test "$cross_compiling" = yes; then
 
21412
  :
 
21413
else
 
21414
  cat >conftest.$ac_ext <<_ACEOF
 
21415
/* confdefs.h.  */
 
21416
_ACEOF
 
21417
cat confdefs.h >>conftest.$ac_ext
 
21418
cat >>conftest.$ac_ext <<_ACEOF
 
21419
/* end confdefs.h.  */
 
21420
#include <ctype.h>
 
21421
#include <stdlib.h>
 
21422
#if ((' ' & 0x0FF) == 0x020)
 
21423
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
21424
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
21425
#else
 
21426
# define ISLOWER(c) \
 
21427
                   (('a' <= (c) && (c) <= 'i') \
 
21428
                     || ('j' <= (c) && (c) <= 'r') \
 
21429
                     || ('s' <= (c) && (c) <= 'z'))
 
21430
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
21431
#endif
 
21432
 
 
21433
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
21434
int
 
21435
main ()
 
21436
{
 
21437
  int i;
 
21438
  for (i = 0; i < 256; i++)
 
21439
    if (XOR (islower (i), ISLOWER (i))
 
21440
        || toupper (i) != TOUPPER (i))
 
21441
      return 2;
 
21442
  return 0;
 
21443
}
 
21444
_ACEOF
 
21445
rm -f conftest$ac_exeext
 
21446
if { (ac_try="$ac_link"
 
21447
case "(($ac_try" in
 
21448
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21449
  *) ac_try_echo=$ac_try;;
 
21450
esac
 
21451
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21452
$as_echo "$ac_try_echo") >&5
 
21453
  (eval "$ac_link") 2>&5
 
21454
  ac_status=$?
 
21455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21456
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21457
  { (case "(($ac_try" in
 
21458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21459
  *) ac_try_echo=$ac_try;;
 
21460
esac
 
21461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21462
$as_echo "$ac_try_echo") >&5
 
21463
  (eval "$ac_try") 2>&5
 
21464
  ac_status=$?
 
21465
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21466
  (exit $ac_status); }; }; then
 
21467
  :
 
21468
else
 
21469
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21470
$as_echo "$as_me: failed program was:" >&5
 
21471
sed 's/^/| /' conftest.$ac_ext >&5
 
21472
 
 
21473
( exit $ac_status )
 
21474
ac_cv_header_stdc=no
 
21475
fi
 
21476
rm -rf conftest.dSYM
 
21477
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21478
fi
 
21479
 
 
21480
 
 
21481
fi
 
21482
fi
 
21483
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
21484
$as_echo "$ac_cv_header_stdc" >&6; }
 
21485
if test $ac_cv_header_stdc = yes; then
 
21486
 
 
21487
cat >>confdefs.h <<\_ACEOF
 
21488
#define STDC_HEADERS 1
 
21489
_ACEOF
 
21490
 
 
21491
fi
 
21492
 
 
21493
 
 
21494
 
 
21495
 
 
21496
 
 
21497
if test x$APP_MAN_SUFFIX = x    ; then
 
21498
    APP_MAN_SUFFIX=1
 
21499
fi
 
21500
if test x$APP_MAN_DIR = x    ; then
 
21501
    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
 
21502
fi
 
21503
 
 
21504
if test x$LIB_MAN_SUFFIX = x    ; then
 
21505
    LIB_MAN_SUFFIX=3
 
21506
fi
 
21507
if test x$LIB_MAN_DIR = x    ; then
 
21508
    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
 
21509
fi
 
21510
 
 
21511
if test x$FILE_MAN_SUFFIX = x    ; then
 
21512
    case $host_os in
 
21513
        solaris*)       FILE_MAN_SUFFIX=4  ;;
 
21514
        *)              FILE_MAN_SUFFIX=5  ;;
 
21515
    esac
 
21516
fi
 
21517
if test x$FILE_MAN_DIR = x    ; then
 
21518
    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
 
21519
fi
 
21520
 
 
21521
if test x$MISC_MAN_SUFFIX = x    ; then
 
21522
    case $host_os in
 
21523
        solaris*)       MISC_MAN_SUFFIX=5  ;;
 
21524
        *)              MISC_MAN_SUFFIX=7  ;;
 
21525
    esac
 
21526
fi
 
21527
if test x$MISC_MAN_DIR = x    ; then
 
21528
    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
 
21529
fi
 
21530
 
 
21531
if test x$DRIVER_MAN_SUFFIX = x    ; then
 
21532
    case $host_os in
 
21533
        solaris*)       DRIVER_MAN_SUFFIX=7  ;;
 
21534
        *)              DRIVER_MAN_SUFFIX=4  ;;
 
21535
    esac
 
21536
fi
 
21537
if test x$DRIVER_MAN_DIR = x    ; then
 
21538
    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
 
21539
fi
 
21540
 
 
21541
if test x$ADMIN_MAN_SUFFIX = x    ; then
 
21542
    case $host_os in
 
21543
        solaris*)       ADMIN_MAN_SUFFIX=1m ;;
 
21544
        *)              ADMIN_MAN_SUFFIX=8  ;;
 
21545
    esac
 
21546
fi
 
21547
if test x$ADMIN_MAN_DIR = x    ; then
 
21548
    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
 
21549
fi
 
21550
 
 
21551
 
 
21552
 
 
21553
 
 
21554
 
 
21555
 
 
21556
 
 
21557
 
 
21558
 
 
21559
 
 
21560
 
 
21561
 
 
21562
 
 
21563
 
 
21564
 
 
21565
 
 
21566
 
 
21567
# Check whether --with-release-version was given.
 
21568
if test "${with_release_version+set}" = set; then
 
21569
  withval=$with_release_version; RELEASE_VERSION="$withval"
 
21570
else
 
21571
  RELEASE_VERSION=""
 
21572
fi
 
21573
 
 
21574
        if test "x$RELEASE_VERSION" != "x"; then
 
21575
                PACKAGE="$PACKAGE-$RELEASE_VERSION"
 
21576
                PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
 
21577
                { $as_echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
 
21578
$as_echo "$as_me: Building with package name set to $PACKAGE" >&6;}
 
21579
        fi
 
21580
 
 
21581
cat >>confdefs.h <<_ACEOF
 
21582
#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
 
21583
_ACEOF
 
21584
 
 
21585
        PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
 
21586
        if test "x$PVM" = "x"; then
 
21587
                PVM="0"
 
21588
        fi
 
21589
 
 
21590
cat >>confdefs.h <<_ACEOF
 
21591
#define PACKAGE_VERSION_MINOR $PVM
 
21592
_ACEOF
 
21593
 
 
21594
        PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
 
21595
        if test "x$PVP" = "x"; then
 
21596
                PVP="0"
 
21597
        fi
 
21598
 
 
21599
cat >>confdefs.h <<_ACEOF
 
21600
#define PACKAGE_VERSION_PATCHLEVEL $PVP
 
21601
_ACEOF
 
21602
 
 
21603
 
 
21604
 
 
21605
ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile tools/Makefile fdi/Makefile include/Makefile xorg-synaptics.pc"
 
21606
 
 
21607
cat >confcache <<\_ACEOF
 
21608
# This file is a shell script that caches the results of configure
 
21609
# tests run on this system so they can be shared between configure
 
21610
# scripts and configure runs, see configure's option --config-cache.
 
21611
# It is not useful on other systems.  If it contains results you don't
 
21612
# want to keep, you may remove or edit it.
 
21613
#
 
21614
# config.status only pays attention to the cache file if you give it
 
21615
# the --recheck option to rerun configure.
 
21616
#
 
21617
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21618
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21619
# following values.
 
21620
 
 
21621
_ACEOF
 
21622
 
 
21623
# The following way of writing the cache mishandles newlines in values,
 
21624
# but we know of no workaround that is simple, portable, and efficient.
 
21625
# So, we kill variables containing newlines.
 
21626
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21627
# and sets the high bit in the cache file unless we assign to the vars.
 
21628
(
 
21629
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
21630
    eval ac_val=\$$ac_var
 
21631
    case $ac_val in #(
 
21632
    *${as_nl}*)
 
21633
      case $ac_var in #(
 
21634
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
21635
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
21636
      esac
 
21637
      case $ac_var in #(
 
21638
      _ | IFS | as_nl) ;; #(
 
21639
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
21640
      *) $as_unset $ac_var ;;
 
21641
      esac ;;
 
21642
    esac
 
21643
  done
 
21644
 
 
21645
  (set) 2>&1 |
 
21646
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
21647
    *${as_nl}ac_space=\ *)
 
21648
      # `set' does not quote correctly, so add quotes (double-quote
 
21649
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21650
      sed -n \
 
21651
        "s/'/'\\\\''/g;
 
21652
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21653
      ;; #(
 
21654
    *)
 
21655
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21656
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
21657
      ;;
 
21658
    esac |
 
21659
    sort
 
21660
) |
 
21661
  sed '
 
21662
     /^ac_cv_env_/b end
 
21663
     t clear
 
21664
     :clear
 
21665
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21666
     t end
 
21667
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21668
     :end' >>confcache
 
21669
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
21670
  if test -w "$cache_file"; then
 
21671
    test "x$cache_file" != "x/dev/null" &&
 
21672
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
21673
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
21674
    cat confcache >$cache_file
 
21675
  else
 
21676
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
21677
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
21678
  fi
 
21679
fi
 
21680
rm -f confcache
 
21681
 
 
21682
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21683
# Let make expand exec_prefix.
 
21684
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21685
 
 
21686
DEFS=-DHAVE_CONFIG_H
 
21687
 
 
21688
ac_libobjs=
 
21689
ac_ltlibobjs=
 
21690
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
21691
  # 1. Remove the extension, and $U if already installed.
 
21692
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
21693
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
21694
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
21695
  #    will be set to the directory where LIBOBJS objects are built.
 
21696
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
21697
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
21698
done
 
21699
LIBOBJS=$ac_libobjs
 
21700
 
 
21701
LTLIBOBJS=$ac_ltlibobjs
 
21702
 
 
21703
 
 
21704
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21705
  { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21706
Usually this means the macro was only invoked conditionally." >&5
 
21707
$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21708
Usually this means the macro was only invoked conditionally." >&2;}
 
21709
   { (exit 1); exit 1; }; }
 
21710
fi
 
21711
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21712
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21713
Usually this means the macro was only invoked conditionally." >&5
 
21714
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21715
Usually this means the macro was only invoked conditionally." >&2;}
 
21716
   { (exit 1); exit 1; }; }
 
21717
fi
 
21718
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21719
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21720
Usually this means the macro was only invoked conditionally." >&5
 
21721
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21722
Usually this means the macro was only invoked conditionally." >&2;}
 
21723
   { (exit 1); exit 1; }; }
 
21724
fi
 
21725
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21726
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21727
Usually this means the macro was only invoked conditionally." >&5
 
21728
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21729
Usually this means the macro was only invoked conditionally." >&2;}
 
21730
   { (exit 1); exit 1; }; }
 
21731
fi
 
21732
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21733
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21734
Usually this means the macro was only invoked conditionally." >&5
 
21735
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21736
Usually this means the macro was only invoked conditionally." >&2;}
 
21737
   { (exit 1); exit 1; }; }
 
21738
fi
 
21739
if test -z "${BUILD_EVENTCOMM_TRUE}" && test -z "${BUILD_EVENTCOMM_FALSE}"; then
 
21740
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_EVENTCOMM\" was never defined.
 
21741
Usually this means the macro was only invoked conditionally." >&5
 
21742
$as_echo "$as_me: error: conditional \"BUILD_EVENTCOMM\" was never defined.
 
21743
Usually this means the macro was only invoked conditionally." >&2;}
 
21744
   { (exit 1); exit 1; }; }
 
21745
fi
 
21746
if test -z "${BUILD_PSMCOMM_TRUE}" && test -z "${BUILD_PSMCOMM_FALSE}"; then
 
21747
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_PSMCOMM\" was never defined.
 
21748
Usually this means the macro was only invoked conditionally." >&5
 
21749
$as_echo "$as_me: error: conditional \"BUILD_PSMCOMM\" was never defined.
 
21750
Usually this means the macro was only invoked conditionally." >&2;}
 
21751
   { (exit 1); exit 1; }; }
 
21752
fi
 
21753
 
 
21754
: ${CONFIG_STATUS=./config.status}
 
21755
ac_write_fail=0
 
21756
ac_clean_files_save=$ac_clean_files
 
21757
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21758
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21759
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21760
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
21761
#! $SHELL
 
21762
# Generated by $as_me.
 
21763
# Run this file to recreate the current configuration.
 
21764
# Compiler output produced by configure, useful for debugging
 
21765
# configure, is in config.log if it exists.
 
21766
 
 
21767
debug=false
 
21768
ac_cs_recheck=false
 
21769
ac_cs_silent=false
 
21770
SHELL=\${CONFIG_SHELL-$SHELL}
 
21771
_ACEOF
 
21772
 
 
21773
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
21774
## --------------------- ##
 
21775
## M4sh Initialization.  ##
 
21776
## --------------------- ##
 
21777
 
 
21778
# Be more Bourne compatible
 
21779
DUALCASE=1; export DUALCASE # for MKS sh
 
21780
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21781
  emulate sh
 
21782
  NULLCMD=:
 
21783
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
21784
  # is contrary to our usage.  Disable this feature.
 
21785
  alias -g '${1+"$@"}'='"$@"'
 
21786
  setopt NO_GLOB_SUBST
 
21787
else
 
21788
  case `(set -o) 2>/dev/null` in
 
21789
  *posix*) set -o posix ;;
 
21790
esac
 
21791
 
 
21792
fi
 
21793
 
 
21794
 
 
21795
 
 
21796
 
 
21797
# PATH needs CR
 
21798
# Avoid depending upon Character Ranges.
 
21799
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21800
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21801
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21802
as_cr_digits='0123456789'
 
21803
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21804
 
 
21805
as_nl='
 
21806
'
 
21807
export as_nl
 
21808
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
21809
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
21810
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
21811
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
21812
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
21813
  as_echo='printf %s\n'
 
21814
  as_echo_n='printf %s'
 
21815
else
 
21816
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
21817
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
21818
    as_echo_n='/usr/ucb/echo -n'
 
21819
  else
 
21820
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
21821
    as_echo_n_body='eval
 
21822
      arg=$1;
 
21823
      case $arg in
 
21824
      *"$as_nl"*)
 
21825
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
21826
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
21827
      esac;
 
21828
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
21829
    '
 
21830
    export as_echo_n_body
 
21831
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
21832
  fi
 
21833
  export as_echo_body
 
21834
  as_echo='sh -c $as_echo_body as_echo'
 
21835
fi
 
21836
 
 
21837
# The user is always right.
 
21838
if test "${PATH_SEPARATOR+set}" != set; then
 
21839
  PATH_SEPARATOR=:
 
21840
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
21841
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
21842
      PATH_SEPARATOR=';'
 
21843
  }
 
21844
fi
 
21845
 
 
21846
# Support unset when possible.
 
21847
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21848
  as_unset=unset
 
21849
else
 
21850
  as_unset=false
 
21851
fi
 
21852
 
 
21853
 
 
21854
# IFS
 
21855
# We need space, tab and new line, in precisely that order.  Quoting is
 
21856
# there to prevent editors from complaining about space-tab.
 
21857
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
21858
# splitting by setting IFS to empty value.)
 
21859
IFS=" ""        $as_nl"
 
21860
 
 
21861
# Find who we are.  Look in the path if we contain no directory separator.
 
21862
case $0 in
 
21863
  *[\\/]* ) as_myself=$0 ;;
 
21864
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21865
for as_dir in $PATH
 
21866
do
 
21867
  IFS=$as_save_IFS
 
21868
  test -z "$as_dir" && as_dir=.
 
21869
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21870
done
 
21871
IFS=$as_save_IFS
 
21872
 
 
21873
     ;;
 
21874
esac
 
21875
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
21876
# in which case we are not to be found in the path.
 
21877
if test "x$as_myself" = x; then
 
21878
  as_myself=$0
 
21879
fi
 
21880
if test ! -f "$as_myself"; then
 
21881
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
21882
  { (exit 1); exit 1; }
 
21883
fi
 
21884
 
 
21885
# Work around bugs in pre-3.0 UWIN ksh.
 
21886
for as_var in ENV MAIL MAILPATH
 
21887
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
21888
done
 
21889
PS1='$ '
 
21890
PS2='> '
 
21891
PS4='+ '
 
21892
 
 
21893
# NLS nuisances.
 
21894
LC_ALL=C
 
21895
export LC_ALL
 
21896
LANGUAGE=C
 
21897
export LANGUAGE
 
21898
 
 
21899
# Required to use basename.
 
21900
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21901
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
21902
  as_expr=expr
 
21903
else
 
21904
  as_expr=false
 
21905
fi
 
21906
 
 
21907
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
21908
  as_basename=basename
 
21909
else
 
21910
  as_basename=false
 
21911
fi
 
21912
 
 
21913
 
 
21914
# Name of the executable.
 
21915
as_me=`$as_basename -- "$0" ||
 
21916
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21917
         X"$0" : 'X\(//\)$' \| \
 
21918
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
21919
$as_echo X/"$0" |
 
21920
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
21921
            s//\1/
 
21922
            q
 
21923
          }
 
21924
          /^X\/\(\/\/\)$/{
 
21925
            s//\1/
 
21926
            q
 
21927
          }
 
21928
          /^X\/\(\/\).*/{
 
21929
            s//\1/
 
21930
            q
 
21931
          }
 
21932
          s/.*/./; q'`
 
21933
 
 
21934
# CDPATH.
 
21935
$as_unset CDPATH
 
21936
 
 
21937
 
 
21938
 
 
21939
  as_lineno_1=$LINENO
 
21940
  as_lineno_2=$LINENO
 
21941
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21942
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
21943
 
 
21944
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
21945
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
21946
  # line-number line after each line using $LINENO; the second 'sed'
 
21947
  # does the real work.  The second script uses 'N' to pair each
 
21948
  # line-number line with the line containing $LINENO, and appends
 
21949
  # trailing '-' during substitution so that $LINENO is not a special
 
21950
  # case at line end.
 
21951
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
21952
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
21953
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
21954
  sed -n '
 
21955
    p
 
21956
    /[$]LINENO/=
 
21957
  ' <$as_myself |
 
21958
    sed '
 
21959
      s/[$]LINENO.*/&-/
 
21960
      t lineno
 
21961
      b
 
21962
      :lineno
 
21963
      N
 
21964
      :loop
 
21965
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
21966
      t loop
 
21967
      s/-\n.*//
 
21968
    ' >$as_me.lineno &&
 
21969
  chmod +x "$as_me.lineno" ||
 
21970
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
21971
   { (exit 1); exit 1; }; }
 
21972
 
 
21973
  # Don't try to exec as it changes $[0], causing all sort of problems
 
21974
  # (the dirname of $[0] is not the place where we might find the
 
21975
  # original and so on.  Autoconf is especially sensitive to this).
 
21976
  . "./$as_me.lineno"
 
21977
  # Exit status is that of the last command.
 
21978
  exit
 
21979
}
 
21980
 
 
21981
 
 
21982
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
21983
  as_dirname=dirname
 
21984
else
 
21985
  as_dirname=false
 
21986
fi
 
21987
 
 
21988
ECHO_C= ECHO_N= ECHO_T=
 
21989
case `echo -n x` in
 
21990
-n*)
 
21991
  case `echo 'x\c'` in
 
21992
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
21993
  *)   ECHO_C='\c';;
 
21994
  esac;;
 
21995
*)
 
21996
  ECHO_N='-n';;
 
21997
esac
 
21998
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
21999
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22000
  as_expr=expr
 
22001
else
 
22002
  as_expr=false
 
22003
fi
 
22004
 
 
22005
rm -f conf$$ conf$$.exe conf$$.file
 
22006
if test -d conf$$.dir; then
 
22007
  rm -f conf$$.dir/conf$$.file
 
22008
else
 
22009
  rm -f conf$$.dir
 
22010
  mkdir conf$$.dir 2>/dev/null
 
22011
fi
 
22012
if (echo >conf$$.file) 2>/dev/null; then
 
22013
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
22014
    as_ln_s='ln -s'
 
22015
    # ... but there are two gotchas:
 
22016
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
22017
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
22018
    # In both cases, we have to default to `cp -p'.
 
22019
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22020
      as_ln_s='cp -p'
 
22021
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
22022
    as_ln_s=ln
 
22023
  else
 
22024
    as_ln_s='cp -p'
 
22025
  fi
 
22026
else
 
22027
  as_ln_s='cp -p'
 
22028
fi
 
22029
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
22030
rmdir conf$$.dir 2>/dev/null
 
22031
 
 
22032
if mkdir -p . 2>/dev/null; then
 
22033
  as_mkdir_p=:
 
22034
else
 
22035
  test -d ./-p && rmdir ./-p
 
22036
  as_mkdir_p=false
 
22037
fi
 
22038
 
 
22039
if test -x / >/dev/null 2>&1; then
 
22040
  as_test_x='test -x'
 
22041
else
 
22042
  if ls -dL / >/dev/null 2>&1; then
 
22043
    as_ls_L_option=L
 
22044
  else
 
22045
    as_ls_L_option=
 
22046
  fi
 
22047
  as_test_x='
 
22048
    eval sh -c '\''
 
22049
      if test -d "$1"; then
 
22050
        test -d "$1/.";
 
22051
      else
 
22052
        case $1 in
 
22053
        -*)set "./$1";;
 
22054
        esac;
 
22055
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
22056
        ???[sx]*):;;*)false;;esac;fi
 
22057
    '\'' sh
 
22058
  '
 
22059
fi
 
22060
as_executable_p=$as_test_x
 
22061
 
 
22062
# Sed expression to map a string onto a valid CPP name.
 
22063
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
22064
 
 
22065
# Sed expression to map a string onto a valid variable name.
 
22066
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
22067
 
 
22068
 
 
22069
exec 6>&1
 
22070
 
 
22071
# Save the log message, to keep $[0] and so on meaningful, and to
 
22072
# report actual input values of CONFIG_FILES etc. instead of their
 
22073
# values after options handling.
 
22074
ac_log="
 
22075
This file was extended by xf86-input-synaptics $as_me 0.99.3, which was
 
22076
generated by GNU Autoconf 2.63.  Invocation command line was
 
22077
 
 
22078
  CONFIG_FILES    = $CONFIG_FILES
 
22079
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
22080
  CONFIG_LINKS    = $CONFIG_LINKS
 
22081
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
22082
  $ $0 $@
 
22083
 
 
22084
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
22085
"
 
22086
 
 
22087
_ACEOF
 
22088
 
 
22089
case $ac_config_files in *"
 
22090
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
22091
esac
 
22092
 
 
22093
case $ac_config_headers in *"
 
22094
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
22095
esac
 
22096
 
 
22097
 
 
22098
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22099
# Files that config.status was made for.
 
22100
config_files="$ac_config_files"
 
22101
config_headers="$ac_config_headers"
 
22102
config_commands="$ac_config_commands"
 
22103
 
 
22104
_ACEOF
 
22105
 
 
22106
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22107
ac_cs_usage="\
 
22108
\`$as_me' instantiates files from templates according to the
 
22109
current configuration.
 
22110
 
 
22111
Usage: $0 [OPTION]... [FILE]...
 
22112
 
 
22113
  -h, --help       print this help, then exit
 
22114
  -V, --version    print version number and configuration settings, then exit
 
22115
  -q, --quiet, --silent
 
22116
                   do not print progress messages
 
22117
  -d, --debug      don't remove temporary files
 
22118
      --recheck    update $as_me by reconfiguring in the same conditions
 
22119
      --file=FILE[:TEMPLATE]
 
22120
                   instantiate the configuration file FILE
 
22121
      --header=FILE[:TEMPLATE]
 
22122
                   instantiate the configuration header FILE
 
22123
 
 
22124
Configuration files:
 
22125
$config_files
 
22126
 
 
22127
Configuration headers:
 
22128
$config_headers
 
22129
 
 
22130
Configuration commands:
 
22131
$config_commands
 
22132
 
 
22133
Report bugs to <bug-autoconf@gnu.org>."
 
22134
 
 
22135
_ACEOF
 
22136
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22137
ac_cs_version="\\
 
22138
xf86-input-synaptics config.status 0.99.3
 
22139
configured by $0, generated by GNU Autoconf 2.63,
 
22140
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22141
 
 
22142
Copyright (C) 2008 Free Software Foundation, Inc.
 
22143
This config.status script is free software; the Free Software Foundation
 
22144
gives unlimited permission to copy, distribute and modify it."
 
22145
 
 
22146
ac_pwd='$ac_pwd'
 
22147
srcdir='$srcdir'
 
22148
INSTALL='$INSTALL'
 
22149
MKDIR_P='$MKDIR_P'
 
22150
AWK='$AWK'
 
22151
test -n "\$AWK" || AWK=awk
 
22152
_ACEOF
 
22153
 
 
22154
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22155
# The default lists apply if the user does not specify any file.
 
22156
ac_need_defaults=:
 
22157
while test $# != 0
 
22158
do
 
22159
  case $1 in
 
22160
  --*=*)
 
22161
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
22162
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22163
    ac_shift=:
 
22164
    ;;
 
22165
  *)
 
22166
    ac_option=$1
 
22167
    ac_optarg=$2
 
22168
    ac_shift=shift
 
22169
    ;;
 
22170
  esac
 
22171
 
 
22172
  case $ac_option in
 
22173
  # Handling of the options.
 
22174
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
22175
    ac_cs_recheck=: ;;
 
22176
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
22177
    $as_echo "$ac_cs_version"; exit ;;
 
22178
  --debug | --debu | --deb | --de | --d | -d )
 
22179
    debug=: ;;
 
22180
  --file | --fil | --fi | --f )
 
22181
    $ac_shift
 
22182
    case $ac_optarg in
 
22183
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22184
    esac
 
22185
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
22186
    ac_need_defaults=false;;
 
22187
  --header | --heade | --head | --hea )
 
22188
    $ac_shift
 
22189
    case $ac_optarg in
 
22190
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
22191
    esac
 
22192
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
22193
    ac_need_defaults=false;;
 
22194
  --he | --h)
 
22195
    # Conflict between --help and --header
 
22196
    { $as_echo "$as_me: error: ambiguous option: $1
 
22197
Try \`$0 --help' for more information." >&2
 
22198
   { (exit 1); exit 1; }; };;
 
22199
  --help | --hel | -h )
 
22200
    $as_echo "$ac_cs_usage"; exit ;;
 
22201
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
22202
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
22203
    ac_cs_silent=: ;;
 
22204
 
 
22205
  # This is an error.
 
22206
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
22207
Try \`$0 --help' for more information." >&2
 
22208
   { (exit 1); exit 1; }; } ;;
 
22209
 
 
22210
  *) ac_config_targets="$ac_config_targets $1"
 
22211
     ac_need_defaults=false ;;
 
22212
 
 
22213
  esac
 
22214
  shift
 
22215
done
 
22216
 
 
22217
ac_configure_extra_args=
 
22218
 
 
22219
if $ac_cs_silent; then
 
22220
  exec 6>/dev/null
 
22221
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
22222
fi
 
22223
 
 
22224
_ACEOF
 
22225
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22226
if \$ac_cs_recheck; then
 
22227
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22228
  shift
 
22229
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
22230
  CONFIG_SHELL='$SHELL'
 
22231
  export CONFIG_SHELL
 
22232
  exec "\$@"
 
22233
fi
 
22234
 
 
22235
_ACEOF
 
22236
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22237
exec 5>>config.log
 
22238
{
 
22239
  echo
 
22240
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22241
## Running $as_me. ##
 
22242
_ASBOX
 
22243
  $as_echo "$ac_log"
 
22244
} >&5
 
22245
 
 
22246
_ACEOF
 
22247
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22248
#
 
22249
# INIT-COMMANDS
 
22250
#
 
22251
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
22252
 
 
22253
_ACEOF
 
22254
 
 
22255
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22256
 
 
22257
# Handling of arguments.
 
22258
for ac_config_target in $ac_config_targets
 
22259
do
 
22260
  case $ac_config_target in
 
22261
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
22262
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
22263
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
22264
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
22265
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
22266
    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
 
22267
    "fdi/Makefile") CONFIG_FILES="$CONFIG_FILES fdi/Makefile" ;;
 
22268
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
22269
    "xorg-synaptics.pc") CONFIG_FILES="$CONFIG_FILES xorg-synaptics.pc" ;;
 
22270
 
 
22271
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
22272
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
22273
   { (exit 1); exit 1; }; };;
 
22274
  esac
 
22275
done
 
22276
 
 
22277
 
 
22278
# If the user did not use the arguments to specify the items to instantiate,
 
22279
# then the envvar interface is used.  Set only those that are not.
 
22280
# We use the long form for the default assignment because of an extremely
 
22281
# bizarre bug on SunOS 4.1.3.
 
22282
if $ac_need_defaults; then
 
22283
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
22284
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
22285
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
22286
fi
 
22287
 
 
22288
# Have a temporary directory for convenience.  Make it in the build tree
 
22289
# simply because there is no reason against having it here, and in addition,
 
22290
# creating and moving files from /tmp can sometimes cause problems.
 
22291
# Hook for its removal unless debugging.
 
22292
# Note that there is a small window in which the directory will not be cleaned:
 
22293
# after its creation but before its name has been assigned to `$tmp'.
 
22294
$debug ||
 
22295
{
 
22296
  tmp=
 
22297
  trap 'exit_status=$?
 
22298
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
22299
' 0
 
22300
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
22301
}
 
22302
# Create a (secure) tmp directory for tmp files.
 
22303
 
 
22304
{
 
22305
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22306
  test -n "$tmp" && test -d "$tmp"
 
22307
}  ||
 
22308
{
 
22309
  tmp=./conf$$-$RANDOM
 
22310
  (umask 077 && mkdir "$tmp")
 
22311
} ||
 
22312
{
 
22313
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
22314
   { (exit 1); exit 1; }
 
22315
}
 
22316
 
 
22317
# Set up the scripts for CONFIG_FILES section.
 
22318
# No need to generate them if there are no CONFIG_FILES.
 
22319
# This happens for instance with `./config.status config.h'.
 
22320
if test -n "$CONFIG_FILES"; then
 
22321
 
 
22322
 
 
22323
ac_cr='
 
 
b"'"
 
22324
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
22325
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
22326
  ac_cs_awk_cr='\\r'
 
22327
else
 
22328
  ac_cs_awk_cr=$ac_cr
 
22329
fi
 
22330
 
 
22331
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
22332
_ACEOF
 
22333
 
 
22334
 
 
22335
{
 
22336
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
22337
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
22338
  echo "_ACEOF"
 
22339
} >conf$$subs.sh ||
 
22340
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22341
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22342
   { (exit 1); exit 1; }; }
 
22343
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
22344
ac_delim='%!_!# '
 
22345
for ac_last_try in false false false false false :; do
 
22346
  . ./conf$$subs.sh ||
 
22347
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22348
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22349
   { (exit 1); exit 1; }; }
 
22350
 
 
22351
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
22352
  if test $ac_delim_n = $ac_delim_num; then
 
22353
    break
 
22354
  elif $ac_last_try; then
 
22355
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
22356
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
22357
   { (exit 1); exit 1; }; }
 
22358
  else
 
22359
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22360
  fi
 
22361
done
 
22362
rm -f conf$$subs.sh
 
22363
 
 
22364
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22365
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
22366
_ACEOF
 
22367
sed -n '
 
22368
h
 
22369
s/^/S["/; s/!.*/"]=/
 
22370
p
 
22371
g
 
22372
s/^[^!]*!//
 
22373
:repl
 
22374
t repl
 
22375
s/'"$ac_delim"'$//
 
22376
t delim
 
22377
:nl
 
22378
h
 
22379
s/\(.\{148\}\).*/\1/
 
22380
t more1
 
22381
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
22382
p
 
22383
n
 
22384
b repl
 
22385
:more1
 
22386
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22387
p
 
22388
g
 
22389
s/.\{148\}//
 
22390
t nl
 
22391
:delim
 
22392
h
 
22393
s/\(.\{148\}\).*/\1/
 
22394
t more2
 
22395
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
22396
p
 
22397
b
 
22398
:more2
 
22399
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
22400
p
 
22401
g
 
22402
s/.\{148\}//
 
22403
t delim
 
22404
' <conf$$subs.awk | sed '
 
22405
/^[^""]/{
 
22406
  N
 
22407
  s/\n//
 
22408
}
 
22409
' >>$CONFIG_STATUS || ac_write_fail=1
 
22410
rm -f conf$$subs.awk
 
22411
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22412
_ACAWK
 
22413
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
22414
  for (key in S) S_is_set[key] = 1
 
22415
  FS = ""
 
22416
 
 
22417
}
 
22418
{
 
22419
  line = $ 0
 
22420
  nfields = split(line, field, "@")
 
22421
  substed = 0
 
22422
  len = length(field[1])
 
22423
  for (i = 2; i < nfields; i++) {
 
22424
    key = field[i]
 
22425
    keylen = length(key)
 
22426
    if (S_is_set[key]) {
 
22427
      value = S[key]
 
22428
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
22429
      len += length(value) + length(field[++i])
 
22430
      substed = 1
 
22431
    } else
 
22432
      len += 1 + keylen
 
22433
  }
 
22434
 
 
22435
  print line
 
22436
}
 
22437
 
 
22438
_ACAWK
 
22439
_ACEOF
 
22440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22441
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
22442
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
22443
else
 
22444
  cat
 
22445
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
22446
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
22447
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
22448
   { (exit 1); exit 1; }; }
 
22449
_ACEOF
 
22450
 
 
22451
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22452
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22453
# trailing colons and then remove the whole line if VPATH becomes empty
 
22454
# (actually we leave an empty line to preserve line numbers).
 
22455
if test "x$srcdir" = x.; then
 
22456
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22457
s/:*\$(srcdir):*/:/
 
22458
s/:*\${srcdir}:*/:/
 
22459
s/:*@srcdir@:*/:/
 
22460
s/^\([^=]*=[     ]*\):*/\1/
 
22461
s/:*$//
 
22462
s/^[^=]*=[       ]*$//
 
22463
}'
 
22464
fi
 
22465
 
 
22466
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22467
fi # test -n "$CONFIG_FILES"
 
22468
 
 
22469
# Set up the scripts for CONFIG_HEADERS section.
 
22470
# No need to generate them if there are no CONFIG_HEADERS.
 
22471
# This happens for instance with `./config.status Makefile'.
 
22472
if test -n "$CONFIG_HEADERS"; then
 
22473
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
22474
BEGIN {
 
22475
_ACEOF
 
22476
 
 
22477
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
22478
# here-document in config.status, that substitutes the proper values into
 
22479
# config.h.in to produce config.h.
 
22480
 
 
22481
# Create a delimiter string that does not exist in confdefs.h, to ease
 
22482
# handling of long lines.
 
22483
ac_delim='%!_!# '
 
22484
for ac_last_try in false false :; do
 
22485
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
22486
  if test -z "$ac_t"; then
 
22487
    break
 
22488
  elif $ac_last_try; then
 
22489
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
22490
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
22491
   { (exit 1); exit 1; }; }
 
22492
  else
 
22493
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
22494
  fi
 
22495
done
 
22496
 
 
22497
# For the awk script, D is an array of macro values keyed by name,
 
22498
# likewise P contains macro parameters if any.  Preserve backslash
 
22499
# newline sequences.
 
22500
 
 
22501
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
22502
sed -n '
 
22503
s/.\{148\}/&'"$ac_delim"'/g
 
22504
t rset
 
22505
:rset
 
22506
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
22507
t def
 
22508
d
 
22509
:def
 
22510
s/\\$//
 
22511
t bsnl
 
22512
s/["\\]/\\&/g
 
22513
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
22514
D["\1"]=" \3"/p
 
22515
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
22516
d
 
22517
:bsnl
 
22518
s/["\\]/\\&/g
 
22519
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
22520
D["\1"]=" \3\\\\\\n"\\/p
 
22521
t cont
 
22522
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
22523
t cont
 
22524
d
 
22525
:cont
 
22526
n
 
22527
s/.\{148\}/&'"$ac_delim"'/g
 
22528
t clear
 
22529
:clear
 
22530
s/\\$//
 
22531
t bsnlc
 
22532
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
22533
d
 
22534
:bsnlc
 
22535
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
22536
b cont
 
22537
' <confdefs.h | sed '
 
22538
s/'"$ac_delim"'/"\\\
 
22539
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
22540
 
 
22541
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22542
  for (key in D) D_is_set[key] = 1
 
22543
  FS = ""
 
22544
}
 
22545
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
22546
  line = \$ 0
 
22547
  split(line, arg, " ")
 
22548
  if (arg[1] == "#") {
 
22549
    defundef = arg[2]
 
22550
    mac1 = arg[3]
 
22551
  } else {
 
22552
    defundef = substr(arg[1], 2)
 
22553
    mac1 = arg[2]
 
22554
  }
 
22555
  split(mac1, mac2, "(") #)
 
22556
  macro = mac2[1]
 
22557
  prefix = substr(line, 1, index(line, defundef) - 1)
 
22558
  if (D_is_set[macro]) {
 
22559
    # Preserve the white space surrounding the "#".
 
22560
    print prefix "define", macro P[macro] D[macro]
 
22561
    next
 
22562
  } else {
 
22563
    # Replace #undef with comments.  This is necessary, for example,
 
22564
    # in the case of _POSIX_SOURCE, which is predefined and required
 
22565
    # on some systems where configure will not decide to define it.
 
22566
    if (defundef == "undef") {
 
22567
      print "/*", prefix defundef, macro, "*/"
 
22568
      next
 
22569
    }
 
22570
  }
 
22571
}
 
22572
{ print }
 
22573
_ACAWK
 
22574
_ACEOF
 
22575
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22576
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
22577
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
22578
   { (exit 1); exit 1; }; }
 
22579
fi # test -n "$CONFIG_HEADERS"
 
22580
 
 
22581
 
 
22582
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
22583
shift
 
22584
for ac_tag
 
22585
do
 
22586
  case $ac_tag in
 
22587
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
22588
  esac
 
22589
  case $ac_mode$ac_tag in
 
22590
  :[FHL]*:*);;
 
22591
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
22592
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
22593
   { (exit 1); exit 1; }; };;
 
22594
  :[FH]-) ac_tag=-:-;;
 
22595
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
22596
  esac
 
22597
  ac_save_IFS=$IFS
 
22598
  IFS=:
 
22599
  set x $ac_tag
 
22600
  IFS=$ac_save_IFS
 
22601
  shift
 
22602
  ac_file=$1
 
22603
  shift
 
22604
 
 
22605
  case $ac_mode in
 
22606
  :L) ac_source=$1;;
 
22607
  :[FH])
 
22608
    ac_file_inputs=
 
22609
    for ac_f
 
22610
    do
 
22611
      case $ac_f in
 
22612
      -) ac_f="$tmp/stdin";;
 
22613
      *) # Look for the file first in the build tree, then in the source tree
 
22614
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
22615
         # because $ac_f cannot contain `:'.
 
22616
         test -f "$ac_f" ||
 
22617
           case $ac_f in
 
22618
           [\\/$]*) false;;
 
22619
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
22620
           esac ||
 
22621
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
22622
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
22623
   { (exit 1); exit 1; }; };;
 
22624
      esac
 
22625
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
22626
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
22627
    done
 
22628
 
 
22629
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22630
    # use $as_me), people would be surprised to read:
 
22631
    #    /* config.h.  Generated by config.status.  */
 
22632
    configure_input='Generated from '`
 
22633
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
22634
        `' by configure.'
 
22635
    if test x"$ac_file" != x-; then
 
22636
      configure_input="$ac_file.  $configure_input"
 
22637
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
22638
$as_echo "$as_me: creating $ac_file" >&6;}
 
22639
    fi
 
22640
    # Neutralize special characters interpreted by sed in replacement strings.
 
22641
    case $configure_input in #(
 
22642
    *\&* | *\|* | *\\* )
 
22643
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
22644
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
22645
    *) ac_sed_conf_input=$configure_input;;
 
22646
    esac
 
22647
 
 
22648
    case $ac_tag in
 
22649
    *:-:* | *:-) cat >"$tmp/stdin" \
 
22650
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22651
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22652
   { (exit 1); exit 1; }; } ;;
 
22653
    esac
 
22654
    ;;
 
22655
  esac
 
22656
 
 
22657
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22658
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22659
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22660
         X"$ac_file" : 'X\(//\)$' \| \
 
22661
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
22662
$as_echo X"$ac_file" |
 
22663
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22664
            s//\1/
 
22665
            q
 
22666
          }
 
22667
          /^X\(\/\/\)[^/].*/{
 
22668
            s//\1/
 
22669
            q
 
22670
          }
 
22671
          /^X\(\/\/\)$/{
 
22672
            s//\1/
 
22673
            q
 
22674
          }
 
22675
          /^X\(\/\).*/{
 
22676
            s//\1/
 
22677
            q
 
22678
          }
 
22679
          s/.*/./; q'`
 
22680
  { as_dir="$ac_dir"
 
22681
  case $as_dir in #(
 
22682
  -*) as_dir=./$as_dir;;
 
22683
  esac
 
22684
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
22685
    as_dirs=
 
22686
    while :; do
 
22687
      case $as_dir in #(
 
22688
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
22689
      *) as_qdir=$as_dir;;
 
22690
      esac
 
22691
      as_dirs="'$as_qdir' $as_dirs"
 
22692
      as_dir=`$as_dirname -- "$as_dir" ||
 
22693
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22694
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22695
         X"$as_dir" : 'X\(//\)$' \| \
 
22696
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
22697
$as_echo X"$as_dir" |
 
22698
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22699
            s//\1/
 
22700
            q
 
22701
          }
 
22702
          /^X\(\/\/\)[^/].*/{
 
22703
            s//\1/
 
22704
            q
 
22705
          }
 
22706
          /^X\(\/\/\)$/{
 
22707
            s//\1/
 
22708
            q
 
22709
          }
 
22710
          /^X\(\/\).*/{
 
22711
            s//\1/
 
22712
            q
 
22713
          }
 
22714
          s/.*/./; q'`
 
22715
      test -d "$as_dir" && break
 
22716
    done
 
22717
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
22718
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
22719
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
22720
   { (exit 1); exit 1; }; }; }
 
22721
  ac_builddir=.
 
22722
 
 
22723
case "$ac_dir" in
 
22724
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22725
*)
 
22726
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
22727
  # A ".." for each directory in $ac_dir_suffix.
 
22728
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
22729
  case $ac_top_builddir_sub in
 
22730
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
22731
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
22732
  esac ;;
 
22733
esac
 
22734
ac_abs_top_builddir=$ac_pwd
 
22735
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
22736
# for backward compatibility:
 
22737
ac_top_builddir=$ac_top_build_prefix
 
22738
 
 
22739
case $srcdir in
 
22740
  .)  # We are building in place.
 
22741
    ac_srcdir=.
 
22742
    ac_top_srcdir=$ac_top_builddir_sub
 
22743
    ac_abs_top_srcdir=$ac_pwd ;;
 
22744
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
22745
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22746
    ac_top_srcdir=$srcdir
 
22747
    ac_abs_top_srcdir=$srcdir ;;
 
22748
  *) # Relative name.
 
22749
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
22750
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
22751
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
22752
esac
 
22753
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
22754
 
 
22755
 
 
22756
  case $ac_mode in
 
22757
  :F)
 
22758
  #
 
22759
  # CONFIG_FILE
 
22760
  #
 
22761
 
 
22762
  case $INSTALL in
 
22763
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22764
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
22765
  esac
 
22766
  ac_MKDIR_P=$MKDIR_P
 
22767
  case $MKDIR_P in
 
22768
  [\\/$]* | ?:[\\/]* ) ;;
 
22769
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
22770
  esac
 
22771
_ACEOF
 
22772
 
 
22773
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22774
# If the template does not know about datarootdir, expand it.
 
22775
# FIXME: This hack should be removed a few years after 2.60.
 
22776
ac_datarootdir_hack=; ac_datarootdir_seen=
 
22777
 
 
22778
ac_sed_dataroot='
 
22779
/datarootdir/ {
 
22780
  p
 
22781
  q
 
22782
}
 
22783
/@datadir@/p
 
22784
/@docdir@/p
 
22785
/@infodir@/p
 
22786
/@localedir@/p
 
22787
/@mandir@/p
 
22788
'
 
22789
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
22790
*datarootdir*) ac_datarootdir_seen=yes;;
 
22791
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
22792
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
22793
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
22794
_ACEOF
 
22795
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22796
  ac_datarootdir_hack='
 
22797
  s&@datadir@&$datadir&g
 
22798
  s&@docdir@&$docdir&g
 
22799
  s&@infodir@&$infodir&g
 
22800
  s&@localedir@&$localedir&g
 
22801
  s&@mandir@&$mandir&g
 
22802
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
22803
esac
 
22804
_ACEOF
 
22805
 
 
22806
# Neutralize VPATH when `$srcdir' = `.'.
 
22807
# Shell code in configure.ac might set extrasub.
 
22808
# FIXME: do we really want to maintain this feature?
 
22809
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
22810
ac_sed_extra="$ac_vpsub
 
22811
$extrasub
 
22812
_ACEOF
 
22813
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
22814
:t
 
22815
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22816
s|@configure_input@|$ac_sed_conf_input|;t t
 
22817
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
22818
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
22819
s&@srcdir@&$ac_srcdir&;t t
 
22820
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
22821
s&@top_srcdir@&$ac_top_srcdir&;t t
 
22822
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
22823
s&@builddir@&$ac_builddir&;t t
 
22824
s&@abs_builddir@&$ac_abs_builddir&;t t
 
22825
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
22826
s&@INSTALL@&$ac_INSTALL&;t t
 
22827
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
22828
$ac_datarootdir_hack
 
22829
"
 
22830
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
22831
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22832
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22833
   { (exit 1); exit 1; }; }
 
22834
 
 
22835
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
22836
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
22837
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
22838
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22839
which seems to be undefined.  Please make sure it is defined." >&5
 
22840
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
22841
which seems to be undefined.  Please make sure it is defined." >&2;}
 
22842
 
 
22843
  rm -f "$tmp/stdin"
 
22844
  case $ac_file in
 
22845
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
22846
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
22847
  esac \
 
22848
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22849
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22850
   { (exit 1); exit 1; }; }
 
22851
 ;;
 
22852
  :H)
 
22853
  #
 
22854
  # CONFIG_HEADER
 
22855
  #
 
22856
  if test x"$ac_file" != x-; then
 
22857
    {
 
22858
      $as_echo "/* $configure_input  */" \
 
22859
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
22860
    } >"$tmp/config.h" \
 
22861
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22862
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22863
   { (exit 1); exit 1; }; }
 
22864
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
22865
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22866
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
22867
    else
 
22868
      rm -f "$ac_file"
 
22869
      mv "$tmp/config.h" "$ac_file" \
 
22870
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
22871
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
22872
   { (exit 1); exit 1; }; }
 
22873
    fi
 
22874
  else
 
22875
    $as_echo "/* $configure_input  */" \
 
22876
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
22877
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
22878
$as_echo "$as_me: error: could not create -" >&2;}
 
22879
   { (exit 1); exit 1; }; }
 
22880
  fi
 
22881
# Compute "$ac_file"'s index in $config_headers.
 
22882
_am_arg="$ac_file"
 
22883
_am_stamp_count=1
 
22884
for _am_header in $config_headers :; do
 
22885
  case $_am_header in
 
22886
    $_am_arg | $_am_arg:* )
 
22887
      break ;;
 
22888
    * )
 
22889
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
22890
  esac
 
22891
done
 
22892
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
22893
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22894
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
22895
         X"$_am_arg" : 'X\(//\)$' \| \
 
22896
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
22897
$as_echo X"$_am_arg" |
 
22898
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22899
            s//\1/
 
22900
            q
 
22901
          }
 
22902
          /^X\(\/\/\)[^/].*/{
 
22903
            s//\1/
 
22904
            q
 
22905
          }
 
22906
          /^X\(\/\/\)$/{
 
22907
            s//\1/
 
22908
            q
 
22909
          }
 
22910
          /^X\(\/\).*/{
 
22911
            s//\1/
 
22912
            q
 
22913
          }
 
22914
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22915
 ;;
 
22916
 
 
22917
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
22918
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
22919
 ;;
 
22920
  esac
 
22921
 
 
22922
 
 
22923
  case $ac_file$ac_mode in
 
22924
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22925
  # Strip MF so we end up with the name of the file.
 
22926
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
22927
  # Check whether this is an Automake generated Makefile or not.
 
22928
  # We used to match only the files named `Makefile.in', but
 
22929
  # some people rename them; so instead we look at the file content.
 
22930
  # Grep'ing the first line is not enough: some people post-process
 
22931
  # each Makefile.in and add a new line on top of each file to say so.
 
22932
  # Grep'ing the whole file is not good either: AIX grep has a line
 
22933
  # limit of 2048, but all sed's we know have understand at least 4000.
 
22934
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
22935
    dirpart=`$as_dirname -- "$mf" ||
 
22936
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22937
         X"$mf" : 'X\(//\)[^/]' \| \
 
22938
         X"$mf" : 'X\(//\)$' \| \
 
22939
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
22940
$as_echo X"$mf" |
 
22941
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22942
            s//\1/
 
22943
            q
 
22944
          }
 
22945
          /^X\(\/\/\)[^/].*/{
 
22946
            s//\1/
 
22947
            q
 
22948
          }
 
22949
          /^X\(\/\/\)$/{
 
22950
            s//\1/
 
22951
            q
 
22952
          }
 
22953
          /^X\(\/\).*/{
 
22954
            s//\1/
 
22955
            q
 
22956
          }
 
22957
          s/.*/./; q'`
 
22958
  else
 
22959
    continue
 
22960
  fi
 
22961
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22962
  # from the Makefile without running `make'.
 
22963
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
22964
  test -z "$DEPDIR" && continue
 
22965
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22966
  test -z "am__include" && continue
 
22967
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
22968
  # When using ansi2knr, U may be empty or an underscore; expand it
 
22969
  U=`sed -n 's/^U = //p' < "$mf"`
 
22970
  # Find all dependency output files, they are included files with
 
22971
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22972
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22973
  # expansion.
 
22974
  for file in `sed -n "
 
22975
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
22976
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
22977
    # Make sure the directory exists.
 
22978
    test -f "$dirpart/$file" && continue
 
22979
    fdir=`$as_dirname -- "$file" ||
 
22980
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22981
         X"$file" : 'X\(//\)[^/]' \| \
 
22982
         X"$file" : 'X\(//\)$' \| \
 
22983
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
22984
$as_echo X"$file" |
 
22985
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
22986
            s//\1/
 
22987
            q
 
22988
          }
 
22989
          /^X\(\/\/\)[^/].*/{
 
22990
            s//\1/
 
22991
            q
 
22992
          }
 
22993
          /^X\(\/\/\)$/{
 
22994
            s//\1/
 
22995
            q
 
22996
          }
 
22997
          /^X\(\/\).*/{
 
22998
            s//\1/
 
22999
            q
 
23000
          }
 
23001
          s/.*/./; q'`
 
23002
    { as_dir=$dirpart/$fdir
 
23003
  case $as_dir in #(
 
23004
  -*) as_dir=./$as_dir;;
 
23005
  esac
 
23006
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23007
    as_dirs=
 
23008
    while :; do
 
23009
      case $as_dir in #(
 
23010
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
23011
      *) as_qdir=$as_dir;;
 
23012
      esac
 
23013
      as_dirs="'$as_qdir' $as_dirs"
 
23014
      as_dir=`$as_dirname -- "$as_dir" ||
 
23015
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23016
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23017
         X"$as_dir" : 'X\(//\)$' \| \
 
23018
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23019
$as_echo X"$as_dir" |
 
23020
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23021
            s//\1/
 
23022
            q
 
23023
          }
 
23024
          /^X\(\/\/\)[^/].*/{
 
23025
            s//\1/
 
23026
            q
 
23027
          }
 
23028
          /^X\(\/\/\)$/{
 
23029
            s//\1/
 
23030
            q
 
23031
          }
 
23032
          /^X\(\/\).*/{
 
23033
            s//\1/
 
23034
            q
 
23035
          }
 
23036
          s/.*/./; q'`
 
23037
      test -d "$as_dir" && break
 
23038
    done
 
23039
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23040
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23041
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23042
   { (exit 1); exit 1; }; }; }
 
23043
    # echo "creating $dirpart/$file"
 
23044
    echo '# dummy' > "$dirpart/$file"
 
23045
  done
 
23046
done
 
23047
 ;;
 
23048
 
 
23049
  esac
 
23050
done # for ac_tag
 
23051
 
 
23052
 
 
23053
{ (exit 0); exit 0; }
 
23054
_ACEOF
 
23055
chmod +x $CONFIG_STATUS
 
23056
ac_clean_files=$ac_clean_files_save
 
23057
 
 
23058
test $ac_write_fail = 0 ||
 
23059
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
23060
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
23061
   { (exit 1); exit 1; }; }
 
23062
 
 
23063
 
 
23064
# configure is writing to config.log, and then calls config.status.
 
23065
# config.status does its own redirection, appending to config.log.
 
23066
# Unfortunately, on DOS this fails, as config.log is still kept open
 
23067
# by configure, so config.status won't be able to write to it; its
 
23068
# output is simply discarded.  So we exec the FD to /dev/null,
 
23069
# effectively closing config.log, so it can be properly (re)opened and
 
23070
# appended to by config.status.  When coming back to configure, we
 
23071
# need to make the FD available again.
 
23072
if test "$no_create" != yes; then
 
23073
  ac_cs_success=:
 
23074
  ac_config_status_args=
 
23075
  test "$silent" = yes &&
 
23076
    ac_config_status_args="$ac_config_status_args --quiet"
 
23077
  exec 5>/dev/null
 
23078
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
23079
  exec 5>>config.log
 
23080
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
23081
  # would make configure fail if this is the last instruction.
 
23082
  $ac_cs_success || { (exit 1); exit 1; }
 
23083
fi
 
23084
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
23085
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
23086
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
23087
fi
 
23088