~ubuntu-branches/ubuntu/saucy/hplip/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/debian-changes/configure

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

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 HP Linux Imaging and Printing 3.12.4.
 
4
#
 
5
# Report bugs to <3.12.4>.
 
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='HP Linux Imaging and Printing'
 
752
PACKAGE_TARNAME='hplip'
 
753
PACKAGE_VERSION='3.12.4'
 
754
PACKAGE_STRING='HP Linux Imaging and Printing 3.12.4'
 
755
PACKAGE_BUGREPORT='3.12.4'
 
756
 
 
757
# Factoring default headers for most tests.
 
758
ac_includes_default="\
 
759
#include <stdio.h>
 
760
#ifdef HAVE_SYS_TYPES_H
 
761
# include <sys/types.h>
 
762
#endif
 
763
#ifdef HAVE_SYS_STAT_H
 
764
# include <sys/stat.h>
 
765
#endif
 
766
#ifdef STDC_HEADERS
 
767
# include <stdlib.h>
 
768
# include <stddef.h>
 
769
#else
 
770
# ifdef HAVE_STDLIB_H
 
771
#  include <stdlib.h>
 
772
# endif
 
773
#endif
 
774
#ifdef HAVE_STRING_H
 
775
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
776
#  include <memory.h>
 
777
# endif
 
778
# include <string.h>
 
779
#endif
 
780
#ifdef HAVE_STRINGS_H
 
781
# include <strings.h>
 
782
#endif
 
783
#ifdef HAVE_INTTYPES_H
 
784
# include <inttypes.h>
 
785
#endif
 
786
#ifdef HAVE_STDINT_H
 
787
# include <stdint.h>
 
788
#endif
 
789
#ifdef HAVE_UNISTD_H
 
790
# include <unistd.h>
 
791
#endif"
 
792
 
 
793
ac_subst_vars='am__EXEEXT_FALSE
 
794
am__EXEEXT_TRUE
 
795
LTLIBOBJS
 
796
LIBOBJS
 
797
udev_acl_rules
 
798
SNMPLIB
 
799
hpcups_only_build
 
800
lite_build
 
801
hpijs_only_build
 
802
policykit_dir
 
803
policykit
 
804
epm_scan
 
805
epm_print_only_exclude
 
806
epm_hpijs_only
 
807
epm_hpcups_only
 
808
epm_lite
 
809
epm_full
 
810
epm_qt3
 
811
epm_qt4
 
812
epm_hpcups_install
 
813
epm_hpijs_install
 
814
epm_cups_drv_install
 
815
epm_foomatic_drv_install
 
816
epm_cups_ppd_install
 
817
epm_foomatic_ppd_install
 
818
epm_foomatic_rip_hplip_install
 
819
qt4
 
820
qt3
 
821
platform
 
822
ui_toolkit
 
823
APDK_AUTO_INCLUDE_FLAG
 
824
APDK_ENDIAN_FLAG
 
825
shadow_build
 
826
doc_build
 
827
hpcups_install
 
828
hpijs_install
 
829
cups_drv_install
 
830
cups_ppd_install
 
831
foomatic_filter
 
832
foomatic_rip_hplip_install
 
833
foomatic_ppd_install
 
834
foomatic_drv_install
 
835
cups11_build
 
836
dbus_build
 
837
fax_build
 
838
scan_build
 
839
gui_build
 
840
pp_build
 
841
network_build
 
842
drvdir
 
843
hpdocdir
 
844
hpppddir
 
845
cupsfilterdir
 
846
cupsbackenddir
 
847
systraydir
 
848
icondir
 
849
mimedir
 
850
abs_mimedir
 
851
abs_drvdir
 
852
abs_ppddir
 
853
abs_docdir
 
854
abs_hpppddir
 
855
abs_sbindir
 
856
abs_datadir
 
857
DBUS_LIBS
 
858
DBUS_CFLAGS
 
859
PKG_CONFIG
 
860
PYTHONINCLUDEDIR
 
861
pkgpyexecdir
 
862
pyexecdir
 
863
pkgpythondir
 
864
pythondir
 
865
PYTHON_PLATFORM
 
866
PYTHON_EXEC_PREFIX
 
867
PYTHON_PREFIX
 
868
PYTHON_VERSION
 
869
PYTHON
 
870
POLICYKIT_INSTALL_FALSE
 
871
POLICYKIT_INSTALL_TRUE
 
872
QT3_INSTALL_FALSE
 
873
QT3_INSTALL_TRUE
 
874
QT4_INSTALL_FALSE
 
875
QT4_INSTALL_TRUE
 
876
RIP_INSTALL_FALSE
 
877
RIP_INSTALL_TRUE
 
878
CUPS_PPD_INSTALL_FALSE
 
879
CUPS_PPD_INSTALL_TRUE
 
880
CUPS_DRV_INSTALL_FALSE
 
881
CUPS_DRV_INSTALL_TRUE
 
882
FOOMATIC_DRV_INSTALL_FALSE
 
883
FOOMATIC_DRV_INSTALL_TRUE
 
884
FOOMATIC_PPD_INSTALL_FALSE
 
885
FOOMATIC_PPD_INSTALL_TRUE
 
886
SHADOW_BUILD_FALSE
 
887
SHADOW_BUILD_TRUE
 
888
UDEV_ACL_RULES_FALSE
 
889
UDEV_ACL_RULES_TRUE
 
890
FAX_BUILD_FALSE
 
891
FAX_BUILD_TRUE
 
892
GUI_BUILD_FALSE
 
893
GUI_BUILD_TRUE
 
894
SCAN_BUILD_FALSE
 
895
SCAN_BUILD_TRUE
 
896
NETWORK_BUILD_FALSE
 
897
NETWORK_BUILD_TRUE
 
898
NEW_HPCUPS_FALSE
 
899
NEW_HPCUPS_TRUE
 
900
HPCUPS_INSTALL_FALSE
 
901
HPCUPS_INSTALL_TRUE
 
902
HPIJS_INSTALL_FALSE
 
903
HPIJS_INSTALL_TRUE
 
904
FULL_BUILD_FALSE
 
905
FULL_BUILD_TRUE
 
906
HPLIP_BUILD_FALSE
 
907
HPLIP_BUILD_TRUE
 
908
HPCUPS_ONLY_BUILD_FALSE
 
909
HPCUPS_ONLY_BUILD_TRUE
 
910
LITE_BUILD_FALSE
 
911
LITE_BUILD_TRUE
 
912
HPIJS_ONLY_BUILD_FALSE
 
913
HPIJS_ONLY_BUILD_TRUE
 
914
DOC_BUILD_FALSE
 
915
DOC_BUILD_TRUE
 
916
DARWIN_BUILD_FALSE
 
917
DARWIN_BUILD_TRUE
 
918
LIBTOOL
 
919
ac_ct_F77
 
920
FFLAGS
 
921
F77
 
922
CXXCPP
 
923
CPP
 
924
NMEDIT
 
925
DSYMUTIL
 
926
RANLIB
 
927
AR
 
928
ECHO
 
929
LN_S
 
930
EGREP
 
931
GREP
 
932
SED
 
933
host_os
 
934
host_vendor
 
935
host_cpu
 
936
host
 
937
build_os
 
938
build_vendor
 
939
build_cpu
 
940
build
 
941
am__fastdepCC_FALSE
 
942
am__fastdepCC_TRUE
 
943
CCDEPMODE
 
944
ac_ct_CC
 
945
CFLAGS
 
946
CC
 
947
am__fastdepCXX_FALSE
 
948
am__fastdepCXX_TRUE
 
949
CXXDEPMODE
 
950
AMDEPBACKSLASH
 
951
AMDEP_FALSE
 
952
AMDEP_TRUE
 
953
am__quote
 
954
am__include
 
955
DEPDIR
 
956
OBJEXT
 
957
EXEEXT
 
958
ac_ct_CXX
 
959
CPPFLAGS
 
960
LDFLAGS
 
961
CXXFLAGS
 
962
CXX
 
963
am__untar
 
964
am__tar
 
965
AMTAR
 
966
am__leading_dot
 
967
SET_MAKE
 
968
AWK
 
969
mkdir_p
 
970
MKDIR_P
 
971
INSTALL_STRIP_PROGRAM
 
972
STRIP
 
973
install_sh
 
974
MAKEINFO
 
975
AUTOHEADER
 
976
AUTOMAKE
 
977
AUTOCONF
 
978
ACLOCAL
 
979
VERSION
 
980
PACKAGE
 
981
CYGPATH_W
 
982
am__isrc
 
983
INSTALL_DATA
 
984
INSTALL_SCRIPT
 
985
INSTALL_PROGRAM
 
986
target_alias
 
987
host_alias
 
988
build_alias
 
989
LIBS
 
990
ECHO_T
 
991
ECHO_N
 
992
ECHO_C
 
993
DEFS
 
994
mandir
 
995
localedir
 
996
libdir
 
997
psdir
 
998
pdfdir
 
999
dvidir
 
1000
htmldir
 
1001
infodir
 
1002
docdir
 
1003
oldincludedir
 
1004
includedir
 
1005
localstatedir
 
1006
sharedstatedir
 
1007
sysconfdir
 
1008
datadir
 
1009
datarootdir
 
1010
libexecdir
 
1011
sbindir
 
1012
bindir
 
1013
program_transform_name
 
1014
prefix
 
1015
exec_prefix
 
1016
PACKAGE_BUGREPORT
 
1017
PACKAGE_STRING
 
1018
PACKAGE_VERSION
 
1019
PACKAGE_TARNAME
 
1020
PACKAGE_NAME
 
1021
PATH_SEPARATOR
 
1022
SHELL'
 
1023
ac_subst_files=''
 
1024
ac_user_opts='
 
1025
enable_option_checking
 
1026
enable_static
 
1027
enable_dependency_tracking
 
1028
enable_shared
 
1029
enable_fast_install
 
1030
with_gnu_ld
 
1031
enable_libtool_lock
 
1032
with_pic
 
1033
with_tags
 
1034
enable_doc_build
 
1035
enable_hpijs_only_build
 
1036
enable_lite_build
 
1037
enable_hpcups_only_build
 
1038
enable_hpijs_install
 
1039
enable_hpcups_install
 
1040
enable_new_hpcups
 
1041
enable_network_build
 
1042
enable_pp_build
 
1043
enable_scan_build
 
1044
enable_gui_build
 
1045
enable_fax_build
 
1046
enable_dbus_build
 
1047
enable_cups11_build
 
1048
enable_udev_acl_rules
 
1049
enable_shadow_build
 
1050
with_cupsbackenddir
 
1051
with_cupsfilterdir
 
1052
with_icondir
 
1053
with_systraydir
 
1054
with_hpppddir
 
1055
with_mimedir
 
1056
with_docdir
 
1057
enable_foomatic_ppd_install
 
1058
with_drvdir
 
1059
enable_foomatic_drv_install
 
1060
enable_cups_drv_install
 
1061
enable_cups_ppd_install
 
1062
enable_foomatic_rip_hplip_install
 
1063
enable_qt4
 
1064
enable_qt3
 
1065
enable_policykit
 
1066
'
 
1067
      ac_precious_vars='build_alias
 
1068
host_alias
 
1069
target_alias
 
1070
CXX
 
1071
CXXFLAGS
 
1072
LDFLAGS
 
1073
LIBS
 
1074
CPPFLAGS
 
1075
CCC
 
1076
CC
 
1077
CFLAGS
 
1078
CPP
 
1079
CXXCPP
 
1080
F77
 
1081
FFLAGS
 
1082
PYTHON
 
1083
PYTHONINCLUDEDIR
 
1084
PKG_CONFIG
 
1085
DBUS_CFLAGS
 
1086
DBUS_LIBS'
 
1087
 
 
1088
 
 
1089
# Initialize some variables set by options.
 
1090
ac_init_help=
 
1091
ac_init_version=false
 
1092
ac_unrecognized_opts=
 
1093
ac_unrecognized_sep=
 
1094
# The variables have the same names as the options, with
 
1095
# dashes changed to underlines.
 
1096
cache_file=/dev/null
 
1097
exec_prefix=NONE
 
1098
no_create=
 
1099
no_recursion=
 
1100
prefix=NONE
 
1101
program_prefix=NONE
 
1102
program_suffix=NONE
 
1103
program_transform_name=s,x,x,
 
1104
silent=
 
1105
site=
 
1106
srcdir=
 
1107
verbose=
 
1108
x_includes=NONE
 
1109
x_libraries=NONE
 
1110
 
 
1111
# Installation directory options.
 
1112
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1113
# and all the variables that are supposed to be based on exec_prefix
 
1114
# by default will actually change.
 
1115
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1116
# (The list follows the same order as the GNU Coding Standards.)
 
1117
bindir='${exec_prefix}/bin'
 
1118
sbindir='${exec_prefix}/sbin'
 
1119
libexecdir='${exec_prefix}/libexec'
 
1120
datarootdir='${prefix}/share'
 
1121
datadir='${datarootdir}'
 
1122
sysconfdir='${prefix}/etc'
 
1123
sharedstatedir='${prefix}/com'
 
1124
localstatedir='${prefix}/var'
 
1125
includedir='${prefix}/include'
 
1126
oldincludedir='/usr/include'
 
1127
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1128
infodir='${datarootdir}/info'
 
1129
htmldir='${docdir}'
 
1130
dvidir='${docdir}'
 
1131
pdfdir='${docdir}'
 
1132
psdir='${docdir}'
 
1133
libdir='${exec_prefix}/lib'
 
1134
localedir='${datarootdir}/locale'
 
1135
mandir='${datarootdir}/man'
 
1136
 
 
1137
ac_prev=
 
1138
ac_dashdash=
 
1139
for ac_option
 
1140
do
 
1141
  # If the previous option needs an argument, assign it.
 
1142
  if test -n "$ac_prev"; then
 
1143
    eval $ac_prev=\$ac_option
 
1144
    ac_prev=
 
1145
    continue
 
1146
  fi
 
1147
 
 
1148
  case $ac_option in
 
1149
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1150
  *)    ac_optarg=yes ;;
 
1151
  esac
 
1152
 
 
1153
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1154
 
 
1155
  case $ac_dashdash$ac_option in
 
1156
  --)
 
1157
    ac_dashdash=yes ;;
 
1158
 
 
1159
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1160
    ac_prev=bindir ;;
 
1161
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1162
    bindir=$ac_optarg ;;
 
1163
 
 
1164
  -build | --build | --buil | --bui | --bu)
 
1165
    ac_prev=build_alias ;;
 
1166
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1167
    build_alias=$ac_optarg ;;
 
1168
 
 
1169
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1170
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1171
    ac_prev=cache_file ;;
 
1172
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1173
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1174
    cache_file=$ac_optarg ;;
 
1175
 
 
1176
  --config-cache | -C)
 
1177
    cache_file=config.cache ;;
 
1178
 
 
1179
  -datadir | --datadir | --datadi | --datad)
 
1180
    ac_prev=datadir ;;
 
1181
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1182
    datadir=$ac_optarg ;;
 
1183
 
 
1184
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1185
  | --dataroo | --dataro | --datar)
 
1186
    ac_prev=datarootdir ;;
 
1187
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1188
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1189
    datarootdir=$ac_optarg ;;
 
1190
 
 
1191
  -disable-* | --disable-*)
 
1192
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1193
    # Reject names that are not valid shell variable names.
 
1194
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1195
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1196
   { (exit 1); exit 1; }; }
 
1197
    ac_useropt_orig=$ac_useropt
 
1198
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1199
    case $ac_user_opts in
 
1200
      *"
 
1201
"enable_$ac_useropt"
 
1202
"*) ;;
 
1203
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1204
         ac_unrecognized_sep=', ';;
 
1205
    esac
 
1206
    eval enable_$ac_useropt=no ;;
 
1207
 
 
1208
  -docdir | --docdir | --docdi | --doc | --do)
 
1209
    ac_prev=docdir ;;
 
1210
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1211
    docdir=$ac_optarg ;;
 
1212
 
 
1213
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1214
    ac_prev=dvidir ;;
 
1215
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1216
    dvidir=$ac_optarg ;;
 
1217
 
 
1218
  -enable-* | --enable-*)
 
1219
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1220
    # Reject names that are not valid shell variable names.
 
1221
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1222
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1223
   { (exit 1); exit 1; }; }
 
1224
    ac_useropt_orig=$ac_useropt
 
1225
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1226
    case $ac_user_opts in
 
1227
      *"
 
1228
"enable_$ac_useropt"
 
1229
"*) ;;
 
1230
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1231
         ac_unrecognized_sep=', ';;
 
1232
    esac
 
1233
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1234
 
 
1235
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1236
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1237
  | --exec | --exe | --ex)
 
1238
    ac_prev=exec_prefix ;;
 
1239
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1240
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1241
  | --exec=* | --exe=* | --ex=*)
 
1242
    exec_prefix=$ac_optarg ;;
 
1243
 
 
1244
  -gas | --gas | --ga | --g)
 
1245
    # Obsolete; use --with-gas.
 
1246
    with_gas=yes ;;
 
1247
 
 
1248
  -help | --help | --hel | --he | -h)
 
1249
    ac_init_help=long ;;
 
1250
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1251
    ac_init_help=recursive ;;
 
1252
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1253
    ac_init_help=short ;;
 
1254
 
 
1255
  -host | --host | --hos | --ho)
 
1256
    ac_prev=host_alias ;;
 
1257
  -host=* | --host=* | --hos=* | --ho=*)
 
1258
    host_alias=$ac_optarg ;;
 
1259
 
 
1260
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1261
    ac_prev=htmldir ;;
 
1262
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1263
  | --ht=*)
 
1264
    htmldir=$ac_optarg ;;
 
1265
 
 
1266
  -includedir | --includedir | --includedi | --included | --include \
 
1267
  | --includ | --inclu | --incl | --inc)
 
1268
    ac_prev=includedir ;;
 
1269
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1270
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1271
    includedir=$ac_optarg ;;
 
1272
 
 
1273
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1274
    ac_prev=infodir ;;
 
1275
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1276
    infodir=$ac_optarg ;;
 
1277
 
 
1278
  -libdir | --libdir | --libdi | --libd)
 
1279
    ac_prev=libdir ;;
 
1280
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1281
    libdir=$ac_optarg ;;
 
1282
 
 
1283
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1284
  | --libexe | --libex | --libe)
 
1285
    ac_prev=libexecdir ;;
 
1286
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1287
  | --libexe=* | --libex=* | --libe=*)
 
1288
    libexecdir=$ac_optarg ;;
 
1289
 
 
1290
  -localedir | --localedir | --localedi | --localed | --locale)
 
1291
    ac_prev=localedir ;;
 
1292
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1293
    localedir=$ac_optarg ;;
 
1294
 
 
1295
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1296
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1297
    ac_prev=localstatedir ;;
 
1298
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1299
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1300
    localstatedir=$ac_optarg ;;
 
1301
 
 
1302
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1303
    ac_prev=mandir ;;
 
1304
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1305
    mandir=$ac_optarg ;;
 
1306
 
 
1307
  -nfp | --nfp | --nf)
 
1308
    # Obsolete; use --without-fp.
 
1309
    with_fp=no ;;
 
1310
 
 
1311
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1312
  | --no-cr | --no-c | -n)
 
1313
    no_create=yes ;;
 
1314
 
 
1315
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1316
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1317
    no_recursion=yes ;;
 
1318
 
 
1319
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1320
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1321
  | --oldin | --oldi | --old | --ol | --o)
 
1322
    ac_prev=oldincludedir ;;
 
1323
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1324
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1325
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1326
    oldincludedir=$ac_optarg ;;
 
1327
 
 
1328
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1329
    ac_prev=prefix ;;
 
1330
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1331
    prefix=$ac_optarg ;;
 
1332
 
 
1333
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1334
  | --program-pre | --program-pr | --program-p)
 
1335
    ac_prev=program_prefix ;;
 
1336
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1337
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1338
    program_prefix=$ac_optarg ;;
 
1339
 
 
1340
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1341
  | --program-suf | --program-su | --program-s)
 
1342
    ac_prev=program_suffix ;;
 
1343
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1344
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1345
    program_suffix=$ac_optarg ;;
 
1346
 
 
1347
  -program-transform-name | --program-transform-name \
 
1348
  | --program-transform-nam | --program-transform-na \
 
1349
  | --program-transform-n | --program-transform- \
 
1350
  | --program-transform | --program-transfor \
 
1351
  | --program-transfo | --program-transf \
 
1352
  | --program-trans | --program-tran \
 
1353
  | --progr-tra | --program-tr | --program-t)
 
1354
    ac_prev=program_transform_name ;;
 
1355
  -program-transform-name=* | --program-transform-name=* \
 
1356
  | --program-transform-nam=* | --program-transform-na=* \
 
1357
  | --program-transform-n=* | --program-transform-=* \
 
1358
  | --program-transform=* | --program-transfor=* \
 
1359
  | --program-transfo=* | --program-transf=* \
 
1360
  | --program-trans=* | --program-tran=* \
 
1361
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1362
    program_transform_name=$ac_optarg ;;
 
1363
 
 
1364
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1365
    ac_prev=pdfdir ;;
 
1366
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1367
    pdfdir=$ac_optarg ;;
 
1368
 
 
1369
  -psdir | --psdir | --psdi | --psd | --ps)
 
1370
    ac_prev=psdir ;;
 
1371
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1372
    psdir=$ac_optarg ;;
 
1373
 
 
1374
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1375
  | -silent | --silent | --silen | --sile | --sil)
 
1376
    silent=yes ;;
 
1377
 
 
1378
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1379
    ac_prev=sbindir ;;
 
1380
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1381
  | --sbi=* | --sb=*)
 
1382
    sbindir=$ac_optarg ;;
 
1383
 
 
1384
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1385
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1386
  | --sharedst | --shareds | --shared | --share | --shar \
 
1387
  | --sha | --sh)
 
1388
    ac_prev=sharedstatedir ;;
 
1389
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1390
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1391
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1392
  | --sha=* | --sh=*)
 
1393
    sharedstatedir=$ac_optarg ;;
 
1394
 
 
1395
  -site | --site | --sit)
 
1396
    ac_prev=site ;;
 
1397
  -site=* | --site=* | --sit=*)
 
1398
    site=$ac_optarg ;;
 
1399
 
 
1400
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1401
    ac_prev=srcdir ;;
 
1402
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1403
    srcdir=$ac_optarg ;;
 
1404
 
 
1405
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1406
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1407
    ac_prev=sysconfdir ;;
 
1408
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1409
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1410
    sysconfdir=$ac_optarg ;;
 
1411
 
 
1412
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1413
    ac_prev=target_alias ;;
 
1414
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1415
    target_alias=$ac_optarg ;;
 
1416
 
 
1417
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1418
    verbose=yes ;;
 
1419
 
 
1420
  -version | --version | --versio | --versi | --vers | -V)
 
1421
    ac_init_version=: ;;
 
1422
 
 
1423
  -with-* | --with-*)
 
1424
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1425
    # Reject names that are not valid shell variable names.
 
1426
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1427
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1428
   { (exit 1); exit 1; }; }
 
1429
    ac_useropt_orig=$ac_useropt
 
1430
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1431
    case $ac_user_opts in
 
1432
      *"
 
1433
"with_$ac_useropt"
 
1434
"*) ;;
 
1435
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1436
         ac_unrecognized_sep=', ';;
 
1437
    esac
 
1438
    eval with_$ac_useropt=\$ac_optarg ;;
 
1439
 
 
1440
  -without-* | --without-*)
 
1441
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1442
    # Reject names that are not valid shell variable names.
 
1443
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1444
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1445
   { (exit 1); exit 1; }; }
 
1446
    ac_useropt_orig=$ac_useropt
 
1447
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1448
    case $ac_user_opts in
 
1449
      *"
 
1450
"with_$ac_useropt"
 
1451
"*) ;;
 
1452
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1453
         ac_unrecognized_sep=', ';;
 
1454
    esac
 
1455
    eval with_$ac_useropt=no ;;
 
1456
 
 
1457
  --x)
 
1458
    # Obsolete; use --with-x.
 
1459
    with_x=yes ;;
 
1460
 
 
1461
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1462
  | --x-incl | --x-inc | --x-in | --x-i)
 
1463
    ac_prev=x_includes ;;
 
1464
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1465
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1466
    x_includes=$ac_optarg ;;
 
1467
 
 
1468
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1469
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1470
    ac_prev=x_libraries ;;
 
1471
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1472
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1473
    x_libraries=$ac_optarg ;;
 
1474
 
 
1475
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1476
Try \`$0 --help' for more information." >&2
 
1477
   { (exit 1); exit 1; }; }
 
1478
    ;;
 
1479
 
 
1480
  *=*)
 
1481
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1482
    # Reject names that are not valid shell variable names.
 
1483
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1484
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1485
   { (exit 1); exit 1; }; }
 
1486
    eval $ac_envvar=\$ac_optarg
 
1487
    export $ac_envvar ;;
 
1488
 
 
1489
  *)
 
1490
    # FIXME: should be removed in autoconf 3.0.
 
1491
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1492
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1493
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1494
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1495
    ;;
 
1496
 
 
1497
  esac
 
1498
done
 
1499
 
 
1500
if test -n "$ac_prev"; then
 
1501
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1502
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1503
   { (exit 1); exit 1; }; }
 
1504
fi
 
1505
 
 
1506
if test -n "$ac_unrecognized_opts"; then
 
1507
  case $enable_option_checking in
 
1508
    no) ;;
 
1509
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1510
   { (exit 1); exit 1; }; } ;;
 
1511
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1512
  esac
 
1513
fi
 
1514
 
 
1515
# Check all directory arguments for consistency.
 
1516
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1517
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1518
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1519
                libdir localedir mandir
 
1520
do
 
1521
  eval ac_val=\$$ac_var
 
1522
  # Remove trailing slashes.
 
1523
  case $ac_val in
 
1524
    */ )
 
1525
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1526
      eval $ac_var=\$ac_val;;
 
1527
  esac
 
1528
  # Be sure to have absolute directory names.
 
1529
  case $ac_val in
 
1530
    [\\/$]* | ?:[\\/]* )  continue;;
 
1531
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1532
  esac
 
1533
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1534
   { (exit 1); exit 1; }; }
 
1535
done
 
1536
 
 
1537
# There might be people who depend on the old broken behavior: `$host'
 
1538
# used to hold the argument of --host etc.
 
1539
# FIXME: To remove some day.
 
1540
build=$build_alias
 
1541
host=$host_alias
 
1542
target=$target_alias
 
1543
 
 
1544
# FIXME: To remove some day.
 
1545
if test "x$host_alias" != x; then
 
1546
  if test "x$build_alias" = x; then
 
1547
    cross_compiling=maybe
 
1548
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1549
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1550
  elif test "x$build_alias" != "x$host_alias"; then
 
1551
    cross_compiling=yes
 
1552
  fi
 
1553
fi
 
1554
 
 
1555
ac_tool_prefix=
 
1556
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1557
 
 
1558
test "$silent" = yes && exec 6>/dev/null
 
1559
 
 
1560
 
 
1561
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1562
ac_ls_di=`ls -di .` &&
 
1563
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1564
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1565
   { (exit 1); exit 1; }; }
 
1566
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1567
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1568
   { (exit 1); exit 1; }; }
 
1569
 
 
1570
 
 
1571
# Find the source files, if location was not specified.
 
1572
if test -z "$srcdir"; then
 
1573
  ac_srcdir_defaulted=yes
 
1574
  # Try the directory containing this script, then the parent directory.
 
1575
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1576
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1577
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1578
         X"$as_myself" : 'X\(//\)$' \| \
 
1579
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1580
$as_echo X"$as_myself" |
 
1581
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1582
            s//\1/
 
1583
            q
 
1584
          }
 
1585
          /^X\(\/\/\)[^/].*/{
 
1586
            s//\1/
 
1587
            q
 
1588
          }
 
1589
          /^X\(\/\/\)$/{
 
1590
            s//\1/
 
1591
            q
 
1592
          }
 
1593
          /^X\(\/\).*/{
 
1594
            s//\1/
 
1595
            q
 
1596
          }
 
1597
          s/.*/./; q'`
 
1598
  srcdir=$ac_confdir
 
1599
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1600
    srcdir=..
 
1601
  fi
 
1602
else
 
1603
  ac_srcdir_defaulted=no
 
1604
fi
 
1605
if test ! -r "$srcdir/$ac_unique_file"; then
 
1606
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1607
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1608
   { (exit 1); exit 1; }; }
 
1609
fi
 
1610
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1611
ac_abs_confdir=`(
 
1612
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1613
   { (exit 1); exit 1; }; }
 
1614
        pwd)`
 
1615
# When building in place, set srcdir=.
 
1616
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1617
  srcdir=.
 
1618
fi
 
1619
# Remove unnecessary trailing slashes from srcdir.
 
1620
# Double slashes in file names in object file debugging info
 
1621
# mess up M-x gdb in Emacs.
 
1622
case $srcdir in
 
1623
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1624
esac
 
1625
for ac_var in $ac_precious_vars; do
 
1626
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1627
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1628
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1629
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1630
done
 
1631
 
 
1632
#
 
1633
# Report the --help message.
 
1634
#
 
1635
if test "$ac_init_help" = "long"; then
 
1636
  # Omit some internal or obsolete options to make the list less imposing.
 
1637
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1638
  cat <<_ACEOF
 
1639
\`configure' configures HP Linux Imaging and Printing 3.12.4 to adapt to many kinds of systems.
 
1640
 
 
1641
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1642
 
 
1643
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1644
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1645
 
 
1646
Defaults for the options are specified in brackets.
 
1647
 
 
1648
Configuration:
 
1649
  -h, --help              display this help and exit
 
1650
      --help=short        display options specific to this package
 
1651
      --help=recursive    display the short help of all the included packages
 
1652
  -V, --version           display version information and exit
 
1653
  -q, --quiet, --silent   do not print \`checking...' messages
 
1654
      --cache-file=FILE   cache test results in FILE [disabled]
 
1655
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1656
  -n, --no-create         do not create output files
 
1657
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1658
 
 
1659
Installation directories:
 
1660
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1661
                          [$ac_default_prefix]
 
1662
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1663
                          [PREFIX]
 
1664
 
 
1665
By default, \`make install' will install all the files in
 
1666
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1667
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1668
for instance \`--prefix=\$HOME'.
 
1669
 
 
1670
For better control, use the options below.
 
1671
 
 
1672
Fine tuning of the installation directories:
 
1673
  --bindir=DIR            user executables [EPREFIX/bin]
 
1674
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1675
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1676
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1677
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1678
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1679
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1680
  --includedir=DIR        C header files [PREFIX/include]
 
1681
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1682
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1683
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1684
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1685
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1686
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1687
  --docdir=DIR            documentation root [DATAROOTDIR/doc/hplip]
 
1688
  --htmldir=DIR           html documentation [DOCDIR]
 
1689
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1690
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1691
  --psdir=DIR             ps documentation [DOCDIR]
 
1692
_ACEOF
 
1693
 
 
1694
  cat <<\_ACEOF
 
1695
 
 
1696
Program names:
 
1697
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1698
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1699
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1700
 
 
1701
System types:
 
1702
  --build=BUILD     configure for building on BUILD [guessed]
 
1703
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1704
_ACEOF
 
1705
fi
 
1706
 
 
1707
if test -n "$ac_init_help"; then
 
1708
  case $ac_init_help in
 
1709
     short | recursive ) echo "Configuration of HP Linux Imaging and Printing 3.12.4:";;
 
1710
   esac
 
1711
  cat <<\_ACEOF
 
1712
 
 
1713
Optional Features:
 
1714
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1715
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1716
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1717
  --enable-static[=PKGS]  build static libraries [default=no]
 
1718
  --disable-dependency-tracking  speeds up one-time build
 
1719
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1720
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1721
  --enable-fast-install[=PKGS]
 
1722
                          optimize for fast installation [default=yes]
 
1723
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1724
  --enable-doc-build     enable documentation build (default=yes)
 
1725
  --enable-hpijs-only-build     enable hpijs only build (default=yes)
 
1726
  --enable-lite-build     enable lite build, print & scan only (default=no)
 
1727
  --enable-hpcups-only-build     enable hpcups only build, print only (default=no)
 
1728
  --enable-hpijs-install     enable hpijs install (default=no)
 
1729
  --enable-hpcups-install     enable hpcups install (default=yes)
 
1730
  --enable-new-hpcups     enable new hpcups install (default=no)
 
1731
  --enable-network-build    enable network build (default=yes)
 
1732
  --enable-pp-build    enable parallel port build (default=no)
 
1733
  --enable-scan-build    enable scanner build (default=yes)
 
1734
  --enable-gui-build    enable gui build (default=yes)
 
1735
  --enable-fax-build    enable fax build (default=yes)
 
1736
  --enable-dbus-build    enable dbus build (default=yes)
 
1737
  --enable-cups11-build    enable cups 1.1.x build (default=no)
 
1738
  --enable-udev-acl-rules    enable udev acl rules (default=no)
 
1739
  --enable-shadow-build    enable shadow build (default=no)
 
1740
  --enable-foomatic-ppd-install    enable foomatic static ppd install (default=no), uses hpppddir
 
1741
  --enable-foomatic-drv-install    enable foomatic dynamic ppd install (default=no), uses drvdir and hpppddir
 
1742
  --enable-cups-drv-install    enable cups dynamic ppd install (default=yes), uses drvdir and hpppddir
 
1743
  --enable-cups-ppd-install    enable cups static ppd install (default=no), uses hpppddir
 
1744
  --enable-foomatic-rip-hplip-install    enable foomatic-rip-hplip install (default=no), uses cupsfilterdir
 
1745
  --enable-qt4    enable qt4 (default=yes)
 
1746
  --enable-qt3    enable qt3 (default=no)
 
1747
  --enable-policykit    enable PolicyKit (default=no)
 
1748
 
 
1749
Optional Packages:
 
1750
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1751
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1752
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1753
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1754
                          both]
 
1755
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1756
  --with-cupsbackenddir=DIR
 
1757
                          set cups backend install directory
 
1758
                          default=/usr/lib/cups/backend
 
1759
  --with-cupsfilterdir=DIR
 
1760
                          set cups filter install directory
 
1761
                          default=/usr/lib/cups/filter
 
1762
  --with-icondir=DIR      set hplip.desktop install directory
 
1763
                          default=/usr/share/applications
 
1764
  --with-systraydir=DIR   set hplip-systray.desktop install directory
 
1765
                          default=/etc/xdg/autostart
 
1766
  --with-hpppddir=DIR     set hp ppd install directory
 
1767
                          default=datadir/ppd/HP
 
1768
  --with-mimedir=DIR      set cups mime.types location default=abs_mimedir
 
1769
  --with-docdir=DIR       set hplip documentation directory
 
1770
                          default=datadir/doc
 
1771
  --with-drvdir=DIR       set cups drv install directory
 
1772
                          default=datadir/cups/drv/hp
 
1773
 
 
1774
Some influential environment variables:
 
1775
  CXX         C++ compiler command
 
1776
  CXXFLAGS    C++ compiler flags
 
1777
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1778
              nonstandard directory <lib dir>
 
1779
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1780
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1781
              you have headers in a nonstandard directory <include dir>
 
1782
  CC          C compiler command
 
1783
  CFLAGS      C compiler flags
 
1784
  CPP         C preprocessor
 
1785
  CXXCPP      C++ preprocessor
 
1786
  F77         Fortran 77 compiler command
 
1787
  FFLAGS      Fortran 77 compiler flags
 
1788
  PYTHON      Python interpreter/compiler command
 
1789
  PYTHONINCLUDEDIR
 
1790
              path to Python.h C header file
 
1791
  PKG_CONFIG  path to pkg-config utility
 
1792
  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
 
1793
  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
 
1794
 
 
1795
Use these variables to override the choices made by `configure' or to help
 
1796
it to find libraries and programs with nonstandard names/locations.
 
1797
 
 
1798
Report bugs to <3.12.4>.
 
1799
_ACEOF
 
1800
ac_status=$?
 
1801
fi
 
1802
 
 
1803
if test "$ac_init_help" = "recursive"; then
 
1804
  # If there are subdirs, report their specific --help.
 
1805
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1806
    test -d "$ac_dir" ||
 
1807
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1808
      continue
 
1809
    ac_builddir=.
 
1810
 
 
1811
case "$ac_dir" in
 
1812
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1813
*)
 
1814
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1815
  # A ".." for each directory in $ac_dir_suffix.
 
1816
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1817
  case $ac_top_builddir_sub in
 
1818
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1819
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1820
  esac ;;
 
1821
esac
 
1822
ac_abs_top_builddir=$ac_pwd
 
1823
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1824
# for backward compatibility:
 
1825
ac_top_builddir=$ac_top_build_prefix
 
1826
 
 
1827
case $srcdir in
 
1828
  .)  # We are building in place.
 
1829
    ac_srcdir=.
 
1830
    ac_top_srcdir=$ac_top_builddir_sub
 
1831
    ac_abs_top_srcdir=$ac_pwd ;;
 
1832
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1833
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1834
    ac_top_srcdir=$srcdir
 
1835
    ac_abs_top_srcdir=$srcdir ;;
 
1836
  *) # Relative name.
 
1837
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1838
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1839
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1840
esac
 
1841
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1842
 
 
1843
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1844
    # Check for guested configure.
 
1845
    if test -f "$ac_srcdir/configure.gnu"; then
 
1846
      echo &&
 
1847
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1848
    elif test -f "$ac_srcdir/configure"; then
 
1849
      echo &&
 
1850
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1851
    else
 
1852
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1853
    fi || ac_status=$?
 
1854
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1855
  done
 
1856
fi
 
1857
 
 
1858
test -n "$ac_init_help" && exit $ac_status
 
1859
if $ac_init_version; then
 
1860
  cat <<\_ACEOF
 
1861
HP Linux Imaging and Printing configure 3.12.4
 
1862
generated by GNU Autoconf 2.63
 
1863
 
 
1864
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1865
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1866
This configure script is free software; the Free Software Foundation
 
1867
gives unlimited permission to copy, distribute and modify it.
 
1868
_ACEOF
 
1869
  exit
 
1870
fi
 
1871
cat >config.log <<_ACEOF
 
1872
This file contains any messages produced by compilers while
 
1873
running configure, to aid debugging if configure makes a mistake.
 
1874
 
 
1875
It was created by HP Linux Imaging and Printing $as_me 3.12.4, which was
 
1876
generated by GNU Autoconf 2.63.  Invocation command line was
 
1877
 
 
1878
  $ $0 $@
 
1879
 
 
1880
_ACEOF
 
1881
exec 5>>config.log
 
1882
{
 
1883
cat <<_ASUNAME
 
1884
## --------- ##
 
1885
## Platform. ##
 
1886
## --------- ##
 
1887
 
 
1888
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1889
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1890
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1891
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1892
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1893
 
 
1894
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1895
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1896
 
 
1897
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1898
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1899
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1900
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1901
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1902
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1903
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1904
 
 
1905
_ASUNAME
 
1906
 
 
1907
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1908
for as_dir in $PATH
 
1909
do
 
1910
  IFS=$as_save_IFS
 
1911
  test -z "$as_dir" && as_dir=.
 
1912
  $as_echo "PATH: $as_dir"
 
1913
done
 
1914
IFS=$as_save_IFS
 
1915
 
 
1916
} >&5
 
1917
 
 
1918
cat >&5 <<_ACEOF
 
1919
 
 
1920
 
 
1921
## ----------- ##
 
1922
## Core tests. ##
 
1923
## ----------- ##
 
1924
 
 
1925
_ACEOF
 
1926
 
 
1927
 
 
1928
# Keep a trace of the command line.
 
1929
# Strip out --no-create and --no-recursion so they do not pile up.
 
1930
# Strip out --silent because we don't want to record it for future runs.
 
1931
# Also quote any args containing shell meta-characters.
 
1932
# Make two passes to allow for proper duplicate-argument suppression.
 
1933
ac_configure_args=
 
1934
ac_configure_args0=
 
1935
ac_configure_args1=
 
1936
ac_must_keep_next=false
 
1937
for ac_pass in 1 2
 
1938
do
 
1939
  for ac_arg
 
1940
  do
 
1941
    case $ac_arg in
 
1942
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1943
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1944
    | -silent | --silent | --silen | --sile | --sil)
 
1945
      continue ;;
 
1946
    *\'*)
 
1947
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1948
    esac
 
1949
    case $ac_pass in
 
1950
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1951
    2)
 
1952
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1953
      if test $ac_must_keep_next = true; then
 
1954
        ac_must_keep_next=false # Got value, back to normal.
 
1955
      else
 
1956
        case $ac_arg in
 
1957
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1958
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1959
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1960
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1961
            case "$ac_configure_args0 " in
 
1962
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1963
            esac
 
1964
            ;;
 
1965
          -* ) ac_must_keep_next=true ;;
 
1966
        esac
 
1967
      fi
 
1968
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1969
      ;;
 
1970
    esac
 
1971
  done
 
1972
done
 
1973
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1974
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1975
 
 
1976
# When interrupted or exit'd, cleanup temporary files, and complete
 
1977
# config.log.  We remove comments because anyway the quotes in there
 
1978
# would cause problems or look ugly.
 
1979
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1980
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1981
trap 'exit_status=$?
 
1982
  # Save into config.log some information that might help in debugging.
 
1983
  {
 
1984
    echo
 
1985
 
 
1986
    cat <<\_ASBOX
 
1987
## ---------------- ##
 
1988
## Cache variables. ##
 
1989
## ---------------- ##
 
1990
_ASBOX
 
1991
    echo
 
1992
    # The following way of writing the cache mishandles newlines in values,
 
1993
(
 
1994
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1995
    eval ac_val=\$$ac_var
 
1996
    case $ac_val in #(
 
1997
    *${as_nl}*)
 
1998
      case $ac_var in #(
 
1999
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
2000
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
2001
      esac
 
2002
      case $ac_var in #(
 
2003
      _ | IFS | as_nl) ;; #(
 
2004
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
2005
      *) $as_unset $ac_var ;;
 
2006
      esac ;;
 
2007
    esac
 
2008
  done
 
2009
  (set) 2>&1 |
 
2010
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
2011
    *${as_nl}ac_space=\ *)
 
2012
      sed -n \
 
2013
        "s/'\''/'\''\\\\'\'''\''/g;
 
2014
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
2015
      ;; #(
 
2016
    *)
 
2017
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
2018
      ;;
 
2019
    esac |
 
2020
    sort
 
2021
)
 
2022
    echo
 
2023
 
 
2024
    cat <<\_ASBOX
 
2025
## ----------------- ##
 
2026
## Output variables. ##
 
2027
## ----------------- ##
 
2028
_ASBOX
 
2029
    echo
 
2030
    for ac_var in $ac_subst_vars
 
2031
    do
 
2032
      eval ac_val=\$$ac_var
 
2033
      case $ac_val in
 
2034
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2035
      esac
 
2036
      $as_echo "$ac_var='\''$ac_val'\''"
 
2037
    done | sort
 
2038
    echo
 
2039
 
 
2040
    if test -n "$ac_subst_files"; then
 
2041
      cat <<\_ASBOX
 
2042
## ------------------- ##
 
2043
## File substitutions. ##
 
2044
## ------------------- ##
 
2045
_ASBOX
 
2046
      echo
 
2047
      for ac_var in $ac_subst_files
 
2048
      do
 
2049
        eval ac_val=\$$ac_var
 
2050
        case $ac_val in
 
2051
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
2052
        esac
 
2053
        $as_echo "$ac_var='\''$ac_val'\''"
 
2054
      done | sort
 
2055
      echo
 
2056
    fi
 
2057
 
 
2058
    if test -s confdefs.h; then
 
2059
      cat <<\_ASBOX
 
2060
## ----------- ##
 
2061
## confdefs.h. ##
 
2062
## ----------- ##
 
2063
_ASBOX
 
2064
      echo
 
2065
      cat confdefs.h
 
2066
      echo
 
2067
    fi
 
2068
    test "$ac_signal" != 0 &&
 
2069
      $as_echo "$as_me: caught signal $ac_signal"
 
2070
    $as_echo "$as_me: exit $exit_status"
 
2071
  } >&5
 
2072
  rm -f core *.core core.conftest.* &&
 
2073
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
2074
    exit $exit_status
 
2075
' 0
 
2076
for ac_signal in 1 2 13 15; do
 
2077
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
2078
done
 
2079
ac_signal=0
 
2080
 
 
2081
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
2082
rm -f -r conftest* confdefs.h
 
2083
 
 
2084
# Predefined preprocessor variables.
 
2085
 
 
2086
cat >>confdefs.h <<_ACEOF
 
2087
#define PACKAGE_NAME "$PACKAGE_NAME"
 
2088
_ACEOF
 
2089
 
 
2090
 
 
2091
cat >>confdefs.h <<_ACEOF
 
2092
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
2093
_ACEOF
 
2094
 
 
2095
 
 
2096
cat >>confdefs.h <<_ACEOF
 
2097
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
2098
_ACEOF
 
2099
 
 
2100
 
 
2101
cat >>confdefs.h <<_ACEOF
 
2102
#define PACKAGE_STRING "$PACKAGE_STRING"
 
2103
_ACEOF
 
2104
 
 
2105
 
 
2106
cat >>confdefs.h <<_ACEOF
 
2107
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
2108
_ACEOF
 
2109
 
 
2110
 
 
2111
# Let the site file select an alternate cache file if it wants to.
 
2112
# Prefer an explicitly selected file to automatically selected ones.
 
2113
ac_site_file1=NONE
 
2114
ac_site_file2=NONE
 
2115
if test -n "$CONFIG_SITE"; then
 
2116
  ac_site_file1=$CONFIG_SITE
 
2117
elif test "x$prefix" != xNONE; then
 
2118
  ac_site_file1=$prefix/share/config.site
 
2119
  ac_site_file2=$prefix/etc/config.site
 
2120
else
 
2121
  ac_site_file1=$ac_default_prefix/share/config.site
 
2122
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2123
fi
 
2124
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2125
do
 
2126
  test "x$ac_site_file" = xNONE && continue
 
2127
  if test -r "$ac_site_file"; then
 
2128
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2129
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2130
    sed 's/^/| /' "$ac_site_file" >&5
 
2131
    . "$ac_site_file"
 
2132
  fi
 
2133
done
 
2134
 
 
2135
if test -r "$cache_file"; then
 
2136
  # Some versions of bash will fail to source /dev/null (special
 
2137
  # files actually), so we avoid doing that.
 
2138
  if test -f "$cache_file"; then
 
2139
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2140
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2141
    case $cache_file in
 
2142
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2143
      *)                      . "./$cache_file";;
 
2144
    esac
 
2145
  fi
 
2146
else
 
2147
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2148
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2149
  >$cache_file
 
2150
fi
 
2151
 
 
2152
# Check that the precious variables saved in the cache have kept the same
 
2153
# value.
 
2154
ac_cache_corrupted=false
 
2155
for ac_var in $ac_precious_vars; do
 
2156
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2157
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2158
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2159
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2160
  case $ac_old_set,$ac_new_set in
 
2161
    set,)
 
2162
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2163
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2164
      ac_cache_corrupted=: ;;
 
2165
    ,set)
 
2166
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2167
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2168
      ac_cache_corrupted=: ;;
 
2169
    ,);;
 
2170
    *)
 
2171
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2172
        # differences in whitespace do not lead to failure.
 
2173
        ac_old_val_w=`echo x $ac_old_val`
 
2174
        ac_new_val_w=`echo x $ac_new_val`
 
2175
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2176
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2177
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2178
          ac_cache_corrupted=:
 
2179
        else
 
2180
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2181
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2182
          eval $ac_var=\$ac_old_val
 
2183
        fi
 
2184
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2185
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2186
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2187
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2188
      fi;;
 
2189
  esac
 
2190
  # Pass precious variables to config.status.
 
2191
  if test "$ac_new_set" = set; then
 
2192
    case $ac_new_val in
 
2193
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2194
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2195
    esac
 
2196
    case " $ac_configure_args " in
 
2197
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2198
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2199
    esac
 
2200
  fi
 
2201
done
 
2202
if $ac_cache_corrupted; then
 
2203
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2204
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2205
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2206
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2207
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2208
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2209
   { (exit 1); exit 1; }; }
 
2210
fi
 
2211
 
 
2212
 
 
2213
 
 
2214
 
 
2215
 
 
2216
 
 
2217
 
 
2218
 
 
2219
 
 
2220
 
 
2221
 
 
2222
 
 
2223
 
 
2224
 
 
2225
 
 
2226
 
 
2227
 
 
2228
 
 
2229
 
 
2230
 
 
2231
 
 
2232
 
 
2233
 
 
2234
 
 
2235
 
 
2236
ac_ext=c
 
2237
ac_cpp='$CPP $CPPFLAGS'
 
2238
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2239
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2240
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2241
 
 
2242
 
 
2243
#AM_INIT_AUTOMAKE([1.9 foreign])
 
2244
am__api_version='1.11'
 
2245
 
 
2246
ac_aux_dir=
 
2247
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2248
  if test -f "$ac_dir/install-sh"; then
 
2249
    ac_aux_dir=$ac_dir
 
2250
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2251
    break
 
2252
  elif test -f "$ac_dir/install.sh"; then
 
2253
    ac_aux_dir=$ac_dir
 
2254
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2255
    break
 
2256
  elif test -f "$ac_dir/shtool"; then
 
2257
    ac_aux_dir=$ac_dir
 
2258
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2259
    break
 
2260
  fi
 
2261
done
 
2262
if test -z "$ac_aux_dir"; then
 
2263
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2264
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2265
   { (exit 1); exit 1; }; }
 
2266
fi
 
2267
 
 
2268
# These three variables are undocumented and unsupported,
 
2269
# and are intended to be withdrawn in a future Autoconf release.
 
2270
# They can cause serious problems if a builder's source tree is in a directory
 
2271
# whose full name contains unusual characters.
 
2272
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2273
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2274
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2275
 
 
2276
 
 
2277
# Find a good install program.  We prefer a C program (faster),
 
2278
# so one script is as good as another.  But avoid the broken or
 
2279
# incompatible versions:
 
2280
# SysV /etc/install, /usr/sbin/install
 
2281
# SunOS /usr/etc/install
 
2282
# IRIX /sbin/install
 
2283
# AIX /bin/install
 
2284
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2285
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2286
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2287
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2288
# OS/2's system install, which has a completely different semantic
 
2289
# ./install, which can be erroneously created by make from ./install.sh.
 
2290
# Reject install programs that cannot install multiple files.
 
2291
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2292
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2293
if test -z "$INSTALL"; then
 
2294
if test "${ac_cv_path_install+set}" = set; then
 
2295
  $as_echo_n "(cached) " >&6
 
2296
else
 
2297
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2298
for as_dir in $PATH
 
2299
do
 
2300
  IFS=$as_save_IFS
 
2301
  test -z "$as_dir" && as_dir=.
 
2302
  # Account for people who put trailing slashes in PATH elements.
 
2303
case $as_dir/ in
 
2304
  ./ | .// | /cC/* | \
 
2305
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2306
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2307
  /usr/ucb/* ) ;;
 
2308
  *)
 
2309
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2310
    # Don't use installbsd from OSF since it installs stuff as root
 
2311
    # by default.
 
2312
    for ac_prog in ginstall scoinst install; do
 
2313
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2314
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2315
          if test $ac_prog = install &&
 
2316
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2317
            # AIX install.  It has an incompatible calling convention.
 
2318
            :
 
2319
          elif test $ac_prog = install &&
 
2320
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2321
            # program-specific install script used by HP pwplus--don't use.
 
2322
            :
 
2323
          else
 
2324
            rm -rf conftest.one conftest.two conftest.dir
 
2325
            echo one > conftest.one
 
2326
            echo two > conftest.two
 
2327
            mkdir conftest.dir
 
2328
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2329
              test -s conftest.one && test -s conftest.two &&
 
2330
              test -s conftest.dir/conftest.one &&
 
2331
              test -s conftest.dir/conftest.two
 
2332
            then
 
2333
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2334
              break 3
 
2335
            fi
 
2336
          fi
 
2337
        fi
 
2338
      done
 
2339
    done
 
2340
    ;;
 
2341
esac
 
2342
 
 
2343
done
 
2344
IFS=$as_save_IFS
 
2345
 
 
2346
rm -rf conftest.one conftest.two conftest.dir
 
2347
 
 
2348
fi
 
2349
  if test "${ac_cv_path_install+set}" = set; then
 
2350
    INSTALL=$ac_cv_path_install
 
2351
  else
 
2352
    # As a last resort, use the slow shell script.  Don't cache a
 
2353
    # value for INSTALL within a source directory, because that will
 
2354
    # break other packages using the cache if that directory is
 
2355
    # removed, or if the value is a relative name.
 
2356
    INSTALL=$ac_install_sh
 
2357
  fi
 
2358
fi
 
2359
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2360
$as_echo "$INSTALL" >&6; }
 
2361
 
 
2362
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2363
# It thinks the first close brace ends the variable substitution.
 
2364
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2365
 
 
2366
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2367
 
 
2368
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2369
 
 
2370
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2371
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2372
# Just in case
 
2373
sleep 1
 
2374
echo timestamp > conftest.file
 
2375
# Reject unsafe characters in $srcdir or the absolute working directory
 
2376
# name.  Accept space and tab only in the latter.
 
2377
am_lf='
 
2378
'
 
2379
case `pwd` in
 
2380
  *[\\\"\#\$\&\'\`$am_lf]*)
 
2381
    { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
 
2382
$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
 
2383
   { (exit 1); exit 1; }; };;
 
2384
esac
 
2385
case $srcdir in
 
2386
  *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
 
2387
    { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
 
2388
$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
 
2389
   { (exit 1); exit 1; }; };;
 
2390
esac
 
2391
 
 
2392
# Do `set' in a subshell so we don't clobber the current shell's
 
2393
# arguments.  Must try -L first in case configure is actually a
 
2394
# symlink; some systems play weird games with the mod time of symlinks
 
2395
# (eg FreeBSD returns the mod time of the symlink's containing
 
2396
# directory).
 
2397
if (
 
2398
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
 
2399
   if test "$*" = "X"; then
 
2400
      # -L didn't work.
 
2401
      set X `ls -t "$srcdir/configure" conftest.file`
 
2402
   fi
 
2403
   rm -f conftest.file
 
2404
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2405
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2406
 
 
2407
      # If neither matched, then we have a broken ls.  This can happen
 
2408
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2409
      # broken ls alias from the environment.  This has actually
 
2410
      # happened.  Such a system could not be considered "sane".
 
2411
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2412
alias in your environment" >&5
 
2413
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2414
alias in your environment" >&2;}
 
2415
   { (exit 1); exit 1; }; }
 
2416
   fi
 
2417
 
 
2418
   test "$2" = conftest.file
 
2419
   )
 
2420
then
 
2421
   # Ok.
 
2422
   :
 
2423
else
 
2424
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2425
Check your system clock" >&5
 
2426
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2427
Check your system clock" >&2;}
 
2428
   { (exit 1); exit 1; }; }
 
2429
fi
 
2430
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2431
$as_echo "yes" >&6; }
 
2432
test "$program_prefix" != NONE &&
 
2433
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2434
# Use a double $ so make ignores it.
 
2435
test "$program_suffix" != NONE &&
 
2436
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2437
# Double any \ or $.
 
2438
# By default was `s,x,x', remove it if useless.
 
2439
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2440
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2441
 
 
2442
# expand $ac_aux_dir to an absolute path
 
2443
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2444
 
 
2445
if test x"${MISSING+set}" != xset; then
 
2446
  case $am_aux_dir in
 
2447
  *\ * | *\     *)
 
2448
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
 
2449
  *)
 
2450
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
 
2451
  esac
 
2452
fi
 
2453
# Use eval to expand $SHELL
 
2454
if eval "$MISSING --run true"; then
 
2455
  am_missing_run="$MISSING --run "
 
2456
else
 
2457
  am_missing_run=
 
2458
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2459
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2460
fi
 
2461
 
 
2462
if test x"${install_sh}" != xset; then
 
2463
  case $am_aux_dir in
 
2464
  *\ * | *\     *)
 
2465
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
 
2466
  *)
 
2467
    install_sh="\${SHELL} $am_aux_dir/install-sh"
 
2468
  esac
 
2469
fi
 
2470
 
 
2471
# Installed binaries are usually stripped using `strip' when the user
 
2472
# run `make install-strip'.  However `strip' might not be the right
 
2473
# tool to use in cross-compilation environments, therefore Automake
 
2474
# will honor the `STRIP' environment variable to overrule this program.
 
2475
if test "$cross_compiling" != no; then
 
2476
  if test -n "$ac_tool_prefix"; then
 
2477
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2478
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2479
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2480
$as_echo_n "checking for $ac_word... " >&6; }
 
2481
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2482
  $as_echo_n "(cached) " >&6
 
2483
else
 
2484
  if test -n "$STRIP"; then
 
2485
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2486
else
 
2487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2488
for as_dir in $PATH
 
2489
do
 
2490
  IFS=$as_save_IFS
 
2491
  test -z "$as_dir" && as_dir=.
 
2492
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2493
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2494
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2495
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2496
    break 2
 
2497
  fi
 
2498
done
 
2499
done
 
2500
IFS=$as_save_IFS
 
2501
 
 
2502
fi
 
2503
fi
 
2504
STRIP=$ac_cv_prog_STRIP
 
2505
if test -n "$STRIP"; then
 
2506
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2507
$as_echo "$STRIP" >&6; }
 
2508
else
 
2509
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2510
$as_echo "no" >&6; }
 
2511
fi
 
2512
 
 
2513
 
 
2514
fi
 
2515
if test -z "$ac_cv_prog_STRIP"; then
 
2516
  ac_ct_STRIP=$STRIP
 
2517
  # Extract the first word of "strip", so it can be a program name with args.
 
2518
set dummy strip; ac_word=$2
 
2519
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2520
$as_echo_n "checking for $ac_word... " >&6; }
 
2521
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2522
  $as_echo_n "(cached) " >&6
 
2523
else
 
2524
  if test -n "$ac_ct_STRIP"; then
 
2525
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2526
else
 
2527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2528
for as_dir in $PATH
 
2529
do
 
2530
  IFS=$as_save_IFS
 
2531
  test -z "$as_dir" && as_dir=.
 
2532
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2533
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2534
    ac_cv_prog_ac_ct_STRIP="strip"
 
2535
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2536
    break 2
 
2537
  fi
 
2538
done
 
2539
done
 
2540
IFS=$as_save_IFS
 
2541
 
 
2542
fi
 
2543
fi
 
2544
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2545
if test -n "$ac_ct_STRIP"; then
 
2546
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2547
$as_echo "$ac_ct_STRIP" >&6; }
 
2548
else
 
2549
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2550
$as_echo "no" >&6; }
 
2551
fi
 
2552
 
 
2553
  if test "x$ac_ct_STRIP" = x; then
 
2554
    STRIP=":"
 
2555
  else
 
2556
    case $cross_compiling:$ac_tool_warned in
 
2557
yes:)
 
2558
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2559
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2560
ac_tool_warned=yes ;;
 
2561
esac
 
2562
    STRIP=$ac_ct_STRIP
 
2563
  fi
 
2564
else
 
2565
  STRIP="$ac_cv_prog_STRIP"
 
2566
fi
 
2567
 
 
2568
fi
 
2569
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2570
 
 
2571
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2572
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2573
if test -z "$MKDIR_P"; then
 
2574
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2575
  $as_echo_n "(cached) " >&6
 
2576
else
 
2577
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2578
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2579
do
 
2580
  IFS=$as_save_IFS
 
2581
  test -z "$as_dir" && as_dir=.
 
2582
  for ac_prog in mkdir gmkdir; do
 
2583
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2584
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2585
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2586
             'mkdir (GNU coreutils) '* | \
 
2587
             'mkdir (coreutils) '* | \
 
2588
             'mkdir (fileutils) '4.1*)
 
2589
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2590
               break 3;;
 
2591
           esac
 
2592
         done
 
2593
       done
 
2594
done
 
2595
IFS=$as_save_IFS
 
2596
 
 
2597
fi
 
2598
 
 
2599
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2600
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2601
  else
 
2602
    # As a last resort, use the slow shell script.  Don't cache a
 
2603
    # value for MKDIR_P within a source directory, because that will
 
2604
    # break other packages using the cache if that directory is
 
2605
    # removed, or if the value is a relative name.
 
2606
    test -d ./--version && rmdir ./--version
 
2607
    MKDIR_P="$ac_install_sh -d"
 
2608
  fi
 
2609
fi
 
2610
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2611
$as_echo "$MKDIR_P" >&6; }
 
2612
 
 
2613
mkdir_p="$MKDIR_P"
 
2614
case $mkdir_p in
 
2615
  [\\/$]* | ?:[\\/]*) ;;
 
2616
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2617
esac
 
2618
 
 
2619
for ac_prog in gawk mawk nawk awk
 
2620
do
 
2621
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2622
set dummy $ac_prog; ac_word=$2
 
2623
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2624
$as_echo_n "checking for $ac_word... " >&6; }
 
2625
if test "${ac_cv_prog_AWK+set}" = set; then
 
2626
  $as_echo_n "(cached) " >&6
 
2627
else
 
2628
  if test -n "$AWK"; then
 
2629
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2630
else
 
2631
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2632
for as_dir in $PATH
 
2633
do
 
2634
  IFS=$as_save_IFS
 
2635
  test -z "$as_dir" && as_dir=.
 
2636
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2637
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2638
    ac_cv_prog_AWK="$ac_prog"
 
2639
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2640
    break 2
 
2641
  fi
 
2642
done
 
2643
done
 
2644
IFS=$as_save_IFS
 
2645
 
 
2646
fi
 
2647
fi
 
2648
AWK=$ac_cv_prog_AWK
 
2649
if test -n "$AWK"; then
 
2650
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2651
$as_echo "$AWK" >&6; }
 
2652
else
 
2653
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2654
$as_echo "no" >&6; }
 
2655
fi
 
2656
 
 
2657
 
 
2658
  test -n "$AWK" && break
 
2659
done
 
2660
 
 
2661
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2662
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2663
set x ${MAKE-make}
 
2664
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2665
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2666
  $as_echo_n "(cached) " >&6
 
2667
else
 
2668
  cat >conftest.make <<\_ACEOF
 
2669
SHELL = /bin/sh
 
2670
all:
 
2671
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2672
_ACEOF
 
2673
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2674
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2675
  *@@@%%%=?*=@@@%%%*)
 
2676
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2677
  *)
 
2678
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2679
esac
 
2680
rm -f conftest.make
 
2681
fi
 
2682
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2683
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2684
$as_echo "yes" >&6; }
 
2685
  SET_MAKE=
 
2686
else
 
2687
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2688
$as_echo "no" >&6; }
 
2689
  SET_MAKE="MAKE=${MAKE-make}"
 
2690
fi
 
2691
 
 
2692
rm -rf .tst 2>/dev/null
 
2693
mkdir .tst 2>/dev/null
 
2694
if test -d .tst; then
 
2695
  am__leading_dot=.
 
2696
else
 
2697
  am__leading_dot=_
 
2698
fi
 
2699
rmdir .tst 2>/dev/null
 
2700
 
 
2701
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2702
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2703
  # is not polluted with repeated "-I."
 
2704
  am__isrc=' -I$(srcdir)'
 
2705
  # test to see if srcdir already configured
 
2706
  if test -f $srcdir/config.status; then
 
2707
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2708
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2709
   { (exit 1); exit 1; }; }
 
2710
  fi
 
2711
fi
 
2712
 
 
2713
# test whether we have cygpath
 
2714
if test -z "$CYGPATH_W"; then
 
2715
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2716
    CYGPATH_W='cygpath -w'
 
2717
  else
 
2718
    CYGPATH_W=echo
 
2719
  fi
 
2720
fi
 
2721
 
 
2722
 
 
2723
# Define the identity of the package.
 
2724
 PACKAGE='hplip'
 
2725
 VERSION='3.12.4'
 
2726
 
 
2727
 
 
2728
cat >>confdefs.h <<_ACEOF
 
2729
#define PACKAGE "$PACKAGE"
 
2730
_ACEOF
 
2731
 
 
2732
 
 
2733
cat >>confdefs.h <<_ACEOF
 
2734
#define VERSION "$VERSION"
 
2735
_ACEOF
 
2736
 
 
2737
# Some tools Automake needs.
 
2738
 
 
2739
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2740
 
 
2741
 
 
2742
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2743
 
 
2744
 
 
2745
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2746
 
 
2747
 
 
2748
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2749
 
 
2750
 
 
2751
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2752
 
 
2753
# We need awk for the "check" target.  The system "awk" is bad on
 
2754
# some platforms.
 
2755
# Always define AMTAR for backward compatibility.
 
2756
 
 
2757
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2758
 
 
2759
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2760
 
 
2761
 
 
2762
 
 
2763
 
 
2764
 
 
2765
# Check whether --enable-static was given.
 
2766
if test "${enable_static+set}" = set; then
 
2767
  enableval=$enable_static; p=${PACKAGE-default}
 
2768
    case $enableval in
 
2769
    yes) enable_static=yes ;;
 
2770
    no) enable_static=no ;;
 
2771
    *)
 
2772
     enable_static=no
 
2773
      # Look at the argument we got.  We use all the common list separators.
 
2774
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
2775
      for pkg in $enableval; do
 
2776
        IFS="$lt_save_ifs"
 
2777
        if test "X$pkg" = "X$p"; then
 
2778
          enable_static=yes
 
2779
        fi
 
2780
      done
 
2781
      IFS="$lt_save_ifs"
 
2782
      ;;
 
2783
    esac
 
2784
else
 
2785
  enable_static=no
 
2786
fi
 
2787
 
 
2788
 
 
2789
 
 
2790
 
 
2791
# Checks for programs.
 
2792
ac_ext=cpp
 
2793
ac_cpp='$CXXCPP $CPPFLAGS'
 
2794
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2795
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2796
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2797
if test -z "$CXX"; then
 
2798
  if test -n "$CCC"; then
 
2799
    CXX=$CCC
 
2800
  else
 
2801
    if test -n "$ac_tool_prefix"; then
 
2802
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2803
  do
 
2804
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2805
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2806
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2807
$as_echo_n "checking for $ac_word... " >&6; }
 
2808
if test "${ac_cv_prog_CXX+set}" = set; then
 
2809
  $as_echo_n "(cached) " >&6
 
2810
else
 
2811
  if test -n "$CXX"; then
 
2812
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2813
else
 
2814
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2815
for as_dir in $PATH
 
2816
do
 
2817
  IFS=$as_save_IFS
 
2818
  test -z "$as_dir" && as_dir=.
 
2819
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2820
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2821
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2822
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2823
    break 2
 
2824
  fi
 
2825
done
 
2826
done
 
2827
IFS=$as_save_IFS
 
2828
 
 
2829
fi
 
2830
fi
 
2831
CXX=$ac_cv_prog_CXX
 
2832
if test -n "$CXX"; then
 
2833
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
2834
$as_echo "$CXX" >&6; }
 
2835
else
 
2836
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2837
$as_echo "no" >&6; }
 
2838
fi
 
2839
 
 
2840
 
 
2841
    test -n "$CXX" && break
 
2842
  done
 
2843
fi
 
2844
if test -z "$CXX"; then
 
2845
  ac_ct_CXX=$CXX
 
2846
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2847
do
 
2848
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2849
set dummy $ac_prog; ac_word=$2
 
2850
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2851
$as_echo_n "checking for $ac_word... " >&6; }
 
2852
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2853
  $as_echo_n "(cached) " >&6
 
2854
else
 
2855
  if test -n "$ac_ct_CXX"; then
 
2856
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2857
else
 
2858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2859
for as_dir in $PATH
 
2860
do
 
2861
  IFS=$as_save_IFS
 
2862
  test -z "$as_dir" && as_dir=.
 
2863
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2864
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2865
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2866
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2867
    break 2
 
2868
  fi
 
2869
done
 
2870
done
 
2871
IFS=$as_save_IFS
 
2872
 
 
2873
fi
 
2874
fi
 
2875
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2876
if test -n "$ac_ct_CXX"; then
 
2877
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2878
$as_echo "$ac_ct_CXX" >&6; }
 
2879
else
 
2880
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2881
$as_echo "no" >&6; }
 
2882
fi
 
2883
 
 
2884
 
 
2885
  test -n "$ac_ct_CXX" && break
 
2886
done
 
2887
 
 
2888
  if test "x$ac_ct_CXX" = x; then
 
2889
    CXX="g++"
 
2890
  else
 
2891
    case $cross_compiling:$ac_tool_warned in
 
2892
yes:)
 
2893
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2894
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2895
ac_tool_warned=yes ;;
 
2896
esac
 
2897
    CXX=$ac_ct_CXX
 
2898
  fi
 
2899
fi
 
2900
 
 
2901
  fi
 
2902
fi
 
2903
# Provide some information about the compiler.
 
2904
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2905
set X $ac_compile
 
2906
ac_compiler=$2
 
2907
{ (ac_try="$ac_compiler --version >&5"
 
2908
case "(($ac_try" in
 
2909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2910
  *) ac_try_echo=$ac_try;;
 
2911
esac
 
2912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2913
$as_echo "$ac_try_echo") >&5
 
2914
  (eval "$ac_compiler --version >&5") 2>&5
 
2915
  ac_status=$?
 
2916
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2917
  (exit $ac_status); }
 
2918
{ (ac_try="$ac_compiler -v >&5"
 
2919
case "(($ac_try" in
 
2920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2921
  *) ac_try_echo=$ac_try;;
 
2922
esac
 
2923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2924
$as_echo "$ac_try_echo") >&5
 
2925
  (eval "$ac_compiler -v >&5") 2>&5
 
2926
  ac_status=$?
 
2927
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2928
  (exit $ac_status); }
 
2929
{ (ac_try="$ac_compiler -V >&5"
 
2930
case "(($ac_try" in
 
2931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2932
  *) ac_try_echo=$ac_try;;
 
2933
esac
 
2934
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2935
$as_echo "$ac_try_echo") >&5
 
2936
  (eval "$ac_compiler -V >&5") 2>&5
 
2937
  ac_status=$?
 
2938
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2939
  (exit $ac_status); }
 
2940
 
 
2941
cat >conftest.$ac_ext <<_ACEOF
 
2942
/* confdefs.h.  */
 
2943
_ACEOF
 
2944
cat confdefs.h >>conftest.$ac_ext
 
2945
cat >>conftest.$ac_ext <<_ACEOF
 
2946
/* end confdefs.h.  */
 
2947
 
 
2948
int
 
2949
main ()
 
2950
{
 
2951
 
 
2952
  ;
 
2953
  return 0;
 
2954
}
 
2955
_ACEOF
 
2956
ac_clean_files_save=$ac_clean_files
 
2957
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2958
# Try to create an executable without -o first, disregard a.out.
 
2959
# It will help us diagnose broken compilers, and finding out an intuition
 
2960
# of exeext.
 
2961
{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2962
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
2963
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2964
 
 
2965
# The possible output files:
 
2966
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2967
 
 
2968
ac_rmfiles=
 
2969
for ac_file in $ac_files
 
2970
do
 
2971
  case $ac_file in
 
2972
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2973
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2974
  esac
 
2975
done
 
2976
rm -f $ac_rmfiles
 
2977
 
 
2978
if { (ac_try="$ac_link_default"
 
2979
case "(($ac_try" in
 
2980
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2981
  *) ac_try_echo=$ac_try;;
 
2982
esac
 
2983
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2984
$as_echo "$ac_try_echo") >&5
 
2985
  (eval "$ac_link_default") 2>&5
 
2986
  ac_status=$?
 
2987
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2988
  (exit $ac_status); }; then
 
2989
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2990
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2991
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2992
# so that the user can short-circuit this test for compilers unknown to
 
2993
# Autoconf.
 
2994
for ac_file in $ac_files ''
 
2995
do
 
2996
  test -f "$ac_file" || continue
 
2997
  case $ac_file in
 
2998
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2999
        ;;
 
3000
    [ab].out )
 
3001
        # We found the default executable, but exeext='' is most
 
3002
        # certainly right.
 
3003
        break;;
 
3004
    *.* )
 
3005
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3006
        then :; else
 
3007
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3008
        fi
 
3009
        # We set ac_cv_exeext here because the later test for it is not
 
3010
        # safe: cross compilers may not add the suffix if given an `-o'
 
3011
        # argument, so we may need to know it at that point already.
 
3012
        # Even if this section looks crufty: it has the advantage of
 
3013
        # actually working.
 
3014
        break;;
 
3015
    * )
 
3016
        break;;
 
3017
  esac
 
3018
done
 
3019
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3020
 
 
3021
else
 
3022
  ac_file=''
 
3023
fi
 
3024
 
 
3025
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3026
$as_echo "$ac_file" >&6; }
 
3027
if test -z "$ac_file"; then
 
3028
  $as_echo "$as_me: failed program was:" >&5
 
3029
sed 's/^/| /' conftest.$ac_ext >&5
 
3030
 
 
3031
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3032
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3033
{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
3034
See \`config.log' for more details." >&5
 
3035
$as_echo "$as_me: error: C++ compiler cannot create executables
 
3036
See \`config.log' for more details." >&2;}
 
3037
   { (exit 77); exit 77; }; }; }
 
3038
fi
 
3039
 
 
3040
ac_exeext=$ac_cv_exeext
 
3041
 
 
3042
# Check that the compiler produces executables we can run.  If not, either
 
3043
# the compiler is broken, or we cross compile.
 
3044
{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
3045
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
3046
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3047
# If not cross compiling, check that we can run a simple program.
 
3048
if test "$cross_compiling" != yes; then
 
3049
  if { ac_try='./$ac_file'
 
3050
  { (case "(($ac_try" in
 
3051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3052
  *) ac_try_echo=$ac_try;;
 
3053
esac
 
3054
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3055
$as_echo "$ac_try_echo") >&5
 
3056
  (eval "$ac_try") 2>&5
 
3057
  ac_status=$?
 
3058
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3059
  (exit $ac_status); }; }; then
 
3060
    cross_compiling=no
 
3061
  else
 
3062
    if test "$cross_compiling" = maybe; then
 
3063
        cross_compiling=yes
 
3064
    else
 
3065
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3066
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3067
{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
3068
If you meant to cross compile, use \`--host'.
 
3069
See \`config.log' for more details." >&5
 
3070
$as_echo "$as_me: error: cannot run C++ compiled programs.
 
3071
If you meant to cross compile, use \`--host'.
 
3072
See \`config.log' for more details." >&2;}
 
3073
   { (exit 1); exit 1; }; }; }
 
3074
    fi
 
3075
  fi
 
3076
fi
 
3077
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3078
$as_echo "yes" >&6; }
 
3079
 
 
3080
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3081
ac_clean_files=$ac_clean_files_save
 
3082
# Check that the compiler produces executables we can run.  If not, either
 
3083
# the compiler is broken, or we cross compile.
 
3084
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3085
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3086
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3087
$as_echo "$cross_compiling" >&6; }
 
3088
 
 
3089
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3090
$as_echo_n "checking for suffix of executables... " >&6; }
 
3091
if { (ac_try="$ac_link"
 
3092
case "(($ac_try" in
 
3093
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3094
  *) ac_try_echo=$ac_try;;
 
3095
esac
 
3096
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3097
$as_echo "$ac_try_echo") >&5
 
3098
  (eval "$ac_link") 2>&5
 
3099
  ac_status=$?
 
3100
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3101
  (exit $ac_status); }; then
 
3102
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3103
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3104
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3105
# `rm'.
 
3106
for ac_file in conftest.exe conftest conftest.*; do
 
3107
  test -f "$ac_file" || continue
 
3108
  case $ac_file in
 
3109
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3110
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3111
          break;;
 
3112
    * ) break;;
 
3113
  esac
 
3114
done
 
3115
else
 
3116
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3117
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3118
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3119
See \`config.log' for more details." >&5
 
3120
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3121
See \`config.log' for more details." >&2;}
 
3122
   { (exit 1); exit 1; }; }; }
 
3123
fi
 
3124
 
 
3125
rm -f conftest$ac_cv_exeext
 
3126
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3127
$as_echo "$ac_cv_exeext" >&6; }
 
3128
 
 
3129
rm -f conftest.$ac_ext
 
3130
EXEEXT=$ac_cv_exeext
 
3131
ac_exeext=$EXEEXT
 
3132
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3133
$as_echo_n "checking for suffix of object files... " >&6; }
 
3134
if test "${ac_cv_objext+set}" = set; then
 
3135
  $as_echo_n "(cached) " >&6
 
3136
else
 
3137
  cat >conftest.$ac_ext <<_ACEOF
 
3138
/* confdefs.h.  */
 
3139
_ACEOF
 
3140
cat confdefs.h >>conftest.$ac_ext
 
3141
cat >>conftest.$ac_ext <<_ACEOF
 
3142
/* end confdefs.h.  */
 
3143
 
 
3144
int
 
3145
main ()
 
3146
{
 
3147
 
 
3148
  ;
 
3149
  return 0;
 
3150
}
 
3151
_ACEOF
 
3152
rm -f conftest.o conftest.obj
 
3153
if { (ac_try="$ac_compile"
 
3154
case "(($ac_try" in
 
3155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3156
  *) ac_try_echo=$ac_try;;
 
3157
esac
 
3158
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3159
$as_echo "$ac_try_echo") >&5
 
3160
  (eval "$ac_compile") 2>&5
 
3161
  ac_status=$?
 
3162
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3163
  (exit $ac_status); }; then
 
3164
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3165
  test -f "$ac_file" || continue;
 
3166
  case $ac_file in
 
3167
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3168
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3169
       break;;
 
3170
  esac
 
3171
done
 
3172
else
 
3173
  $as_echo "$as_me: failed program was:" >&5
 
3174
sed 's/^/| /' conftest.$ac_ext >&5
 
3175
 
 
3176
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3177
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3178
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3179
See \`config.log' for more details." >&5
 
3180
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3181
See \`config.log' for more details." >&2;}
 
3182
   { (exit 1); exit 1; }; }; }
 
3183
fi
 
3184
 
 
3185
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3186
fi
 
3187
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3188
$as_echo "$ac_cv_objext" >&6; }
 
3189
OBJEXT=$ac_cv_objext
 
3190
ac_objext=$OBJEXT
 
3191
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3192
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3193
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3194
  $as_echo_n "(cached) " >&6
 
3195
else
 
3196
  cat >conftest.$ac_ext <<_ACEOF
 
3197
/* confdefs.h.  */
 
3198
_ACEOF
 
3199
cat confdefs.h >>conftest.$ac_ext
 
3200
cat >>conftest.$ac_ext <<_ACEOF
 
3201
/* end confdefs.h.  */
 
3202
 
 
3203
int
 
3204
main ()
 
3205
{
 
3206
#ifndef __GNUC__
 
3207
       choke me
 
3208
#endif
 
3209
 
 
3210
  ;
 
3211
  return 0;
 
3212
}
 
3213
_ACEOF
 
3214
rm -f conftest.$ac_objext
 
3215
if { (ac_try="$ac_compile"
 
3216
case "(($ac_try" in
 
3217
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3218
  *) ac_try_echo=$ac_try;;
 
3219
esac
 
3220
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3221
$as_echo "$ac_try_echo") >&5
 
3222
  (eval "$ac_compile") 2>conftest.er1
 
3223
  ac_status=$?
 
3224
  grep -v '^ *+' conftest.er1 >conftest.err
 
3225
  rm -f conftest.er1
 
3226
  cat conftest.err >&5
 
3227
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3228
  (exit $ac_status); } && {
 
3229
         test -z "$ac_cxx_werror_flag" ||
 
3230
         test ! -s conftest.err
 
3231
       } && test -s conftest.$ac_objext; then
 
3232
  ac_compiler_gnu=yes
 
3233
else
 
3234
  $as_echo "$as_me: failed program was:" >&5
 
3235
sed 's/^/| /' conftest.$ac_ext >&5
 
3236
 
 
3237
        ac_compiler_gnu=no
 
3238
fi
 
3239
 
 
3240
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3241
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3242
 
 
3243
fi
 
3244
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3245
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3246
if test $ac_compiler_gnu = yes; then
 
3247
  GXX=yes
 
3248
else
 
3249
  GXX=
 
3250
fi
 
3251
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3252
ac_save_CXXFLAGS=$CXXFLAGS
 
3253
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3254
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3255
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3256
  $as_echo_n "(cached) " >&6
 
3257
else
 
3258
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3259
   ac_cxx_werror_flag=yes
 
3260
   ac_cv_prog_cxx_g=no
 
3261
   CXXFLAGS="-g"
 
3262
   cat >conftest.$ac_ext <<_ACEOF
 
3263
/* confdefs.h.  */
 
3264
_ACEOF
 
3265
cat confdefs.h >>conftest.$ac_ext
 
3266
cat >>conftest.$ac_ext <<_ACEOF
 
3267
/* end confdefs.h.  */
 
3268
 
 
3269
int
 
3270
main ()
 
3271
{
 
3272
 
 
3273
  ;
 
3274
  return 0;
 
3275
}
 
3276
_ACEOF
 
3277
rm -f conftest.$ac_objext
 
3278
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
3286
  ac_status=$?
 
3287
  grep -v '^ *+' conftest.er1 >conftest.err
 
3288
  rm -f conftest.er1
 
3289
  cat conftest.err >&5
 
3290
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3291
  (exit $ac_status); } && {
 
3292
         test -z "$ac_cxx_werror_flag" ||
 
3293
         test ! -s conftest.err
 
3294
       } && test -s conftest.$ac_objext; then
 
3295
  ac_cv_prog_cxx_g=yes
 
3296
else
 
3297
  $as_echo "$as_me: failed program was:" >&5
 
3298
sed 's/^/| /' conftest.$ac_ext >&5
 
3299
 
 
3300
        CXXFLAGS=""
 
3301
      cat >conftest.$ac_ext <<_ACEOF
 
3302
/* confdefs.h.  */
 
3303
_ACEOF
 
3304
cat confdefs.h >>conftest.$ac_ext
 
3305
cat >>conftest.$ac_ext <<_ACEOF
 
3306
/* end confdefs.h.  */
 
3307
 
 
3308
int
 
3309
main ()
 
3310
{
 
3311
 
 
3312
  ;
 
3313
  return 0;
 
3314
}
 
3315
_ACEOF
 
3316
rm -f conftest.$ac_objext
 
3317
if { (ac_try="$ac_compile"
 
3318
case "(($ac_try" in
 
3319
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3320
  *) ac_try_echo=$ac_try;;
 
3321
esac
 
3322
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3323
$as_echo "$ac_try_echo") >&5
 
3324
  (eval "$ac_compile") 2>conftest.er1
 
3325
  ac_status=$?
 
3326
  grep -v '^ *+' conftest.er1 >conftest.err
 
3327
  rm -f conftest.er1
 
3328
  cat conftest.err >&5
 
3329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3330
  (exit $ac_status); } && {
 
3331
         test -z "$ac_cxx_werror_flag" ||
 
3332
         test ! -s conftest.err
 
3333
       } && test -s conftest.$ac_objext; then
 
3334
  :
 
3335
else
 
3336
  $as_echo "$as_me: failed program was:" >&5
 
3337
sed 's/^/| /' conftest.$ac_ext >&5
 
3338
 
 
3339
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3340
         CXXFLAGS="-g"
 
3341
         cat >conftest.$ac_ext <<_ACEOF
 
3342
/* confdefs.h.  */
 
3343
_ACEOF
 
3344
cat confdefs.h >>conftest.$ac_ext
 
3345
cat >>conftest.$ac_ext <<_ACEOF
 
3346
/* end confdefs.h.  */
 
3347
 
 
3348
int
 
3349
main ()
 
3350
{
 
3351
 
 
3352
  ;
 
3353
  return 0;
 
3354
}
 
3355
_ACEOF
 
3356
rm -f conftest.$ac_objext
 
3357
if { (ac_try="$ac_compile"
 
3358
case "(($ac_try" in
 
3359
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3360
  *) ac_try_echo=$ac_try;;
 
3361
esac
 
3362
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3363
$as_echo "$ac_try_echo") >&5
 
3364
  (eval "$ac_compile") 2>conftest.er1
 
3365
  ac_status=$?
 
3366
  grep -v '^ *+' conftest.er1 >conftest.err
 
3367
  rm -f conftest.er1
 
3368
  cat conftest.err >&5
 
3369
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3370
  (exit $ac_status); } && {
 
3371
         test -z "$ac_cxx_werror_flag" ||
 
3372
         test ! -s conftest.err
 
3373
       } && test -s conftest.$ac_objext; then
 
3374
  ac_cv_prog_cxx_g=yes
 
3375
else
 
3376
  $as_echo "$as_me: failed program was:" >&5
 
3377
sed 's/^/| /' conftest.$ac_ext >&5
 
3378
 
 
3379
 
 
3380
fi
 
3381
 
 
3382
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3383
fi
 
3384
 
 
3385
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3386
fi
 
3387
 
 
3388
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3389
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3390
fi
 
3391
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3392
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3393
if test "$ac_test_CXXFLAGS" = set; then
 
3394
  CXXFLAGS=$ac_save_CXXFLAGS
 
3395
elif test $ac_cv_prog_cxx_g = yes; then
 
3396
  if test "$GXX" = yes; then
 
3397
    CXXFLAGS="-g -O2"
 
3398
  else
 
3399
    CXXFLAGS="-g"
 
3400
  fi
 
3401
else
 
3402
  if test "$GXX" = yes; then
 
3403
    CXXFLAGS="-O2"
 
3404
  else
 
3405
    CXXFLAGS=
 
3406
  fi
 
3407
fi
 
3408
ac_ext=c
 
3409
ac_cpp='$CPP $CPPFLAGS'
 
3410
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3411
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3412
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3413
DEPDIR="${am__leading_dot}deps"
 
3414
 
 
3415
ac_config_commands="$ac_config_commands depfiles"
 
3416
 
 
3417
 
 
3418
am_make=${MAKE-make}
 
3419
cat > confinc << 'END'
 
3420
am__doit:
 
3421
        @echo this is the am__doit target
 
3422
.PHONY: am__doit
 
3423
END
 
3424
# If we don't find an include directive, just comment out the code.
 
3425
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3426
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3427
am__include="#"
 
3428
am__quote=
 
3429
_am_result=none
 
3430
# First try GNU make style include.
 
3431
echo "include confinc" > confmf
 
3432
# Ignore all kinds of additional output from `make'.
 
3433
case `$am_make -s -f confmf 2> /dev/null` in #(
 
3434
*the\ am__doit\ target*)
 
3435
  am__include=include
 
3436
  am__quote=
 
3437
  _am_result=GNU
 
3438
  ;;
 
3439
esac
 
3440
# Now try BSD make style include.
 
3441
if test "$am__include" = "#"; then
 
3442
   echo '.include "confinc"' > confmf
 
3443
   case `$am_make -s -f confmf 2> /dev/null` in #(
 
3444
   *the\ am__doit\ target*)
 
3445
     am__include=.include
 
3446
     am__quote="\""
 
3447
     _am_result=BSD
 
3448
     ;;
 
3449
   esac
 
3450
fi
 
3451
 
 
3452
 
 
3453
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3454
$as_echo "$_am_result" >&6; }
 
3455
rm -f confinc confmf
 
3456
 
 
3457
# Check whether --enable-dependency-tracking was given.
 
3458
if test "${enable_dependency_tracking+set}" = set; then
 
3459
  enableval=$enable_dependency_tracking;
 
3460
fi
 
3461
 
 
3462
if test "x$enable_dependency_tracking" != xno; then
 
3463
  am_depcomp="$ac_aux_dir/depcomp"
 
3464
  AMDEPBACKSLASH='\'
 
3465
fi
 
3466
 if test "x$enable_dependency_tracking" != xno; then
 
3467
  AMDEP_TRUE=
 
3468
  AMDEP_FALSE='#'
 
3469
else
 
3470
  AMDEP_TRUE='#'
 
3471
  AMDEP_FALSE=
 
3472
fi
 
3473
 
 
3474
 
 
3475
 
 
3476
depcc="$CXX"  am_compiler_list=
 
3477
 
 
3478
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3479
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3480
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3481
  $as_echo_n "(cached) " >&6
 
3482
else
 
3483
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3484
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3485
  # making bogus files that we don't know about and never remove.  For
 
3486
  # instance it was reported that on HP-UX the gcc test will end up
 
3487
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3488
  # in D'.
 
3489
  mkdir conftest.dir
 
3490
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3491
  # using a relative directory.
 
3492
  cp "$am_depcomp" conftest.dir
 
3493
  cd conftest.dir
 
3494
  # We will build objects and dependencies in a subdirectory because
 
3495
  # it helps to detect inapplicable dependency modes.  For instance
 
3496
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3497
  # side effect of compilation, but ICC will put the dependencies in
 
3498
  # the current directory while Tru64 will put them in the object
 
3499
  # directory.
 
3500
  mkdir sub
 
3501
 
 
3502
  am_cv_CXX_dependencies_compiler_type=none
 
3503
  if test "$am_compiler_list" = ""; then
 
3504
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3505
  fi
 
3506
  am__universal=false
 
3507
  case " $depcc " in #(
 
3508
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
3509
     esac
 
3510
 
 
3511
  for depmode in $am_compiler_list; do
 
3512
    # Setup a source with many dependencies, because some compilers
 
3513
    # like to wrap large dependency lists on column 80 (with \), and
 
3514
    # we should not choose a depcomp mode which is confused by this.
 
3515
    #
 
3516
    # We need to recreate these files for each test, as the compiler may
 
3517
    # overwrite some of them when testing with obscure command lines.
 
3518
    # This happens at least with the AIX C compiler.
 
3519
    : > sub/conftest.c
 
3520
    for i in 1 2 3 4 5 6; do
 
3521
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3522
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3523
      # Solaris 8's {/usr,}/bin/sh.
 
3524
      touch sub/conftst$i.h
 
3525
    done
 
3526
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3527
 
 
3528
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3529
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3530
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
3531
    # versions had trouble with output in subdirs
 
3532
    am__obj=sub/conftest.${OBJEXT-o}
 
3533
    am__minus_obj="-o $am__obj"
 
3534
    case $depmode in
 
3535
    gcc)
 
3536
      # This depmode causes a compiler race in universal mode.
 
3537
      test "$am__universal" = false || continue
 
3538
      ;;
 
3539
    nosideeffect)
 
3540
      # after this tag, mechanisms are not by side-effect, so they'll
 
3541
      # only be used when explicitly requested
 
3542
      if test "x$enable_dependency_tracking" = xyes; then
 
3543
        continue
 
3544
      else
 
3545
        break
 
3546
      fi
 
3547
      ;;
 
3548
    msvisualcpp | msvcmsys)
 
3549
      # This compiler won't grok `-c -o', but also, the minuso test has
 
3550
      # not run yet.  These depmodes are late enough in the game, and
 
3551
      # so weak that their functioning should not be impacted.
 
3552
      am__obj=conftest.${OBJEXT-o}
 
3553
      am__minus_obj=
 
3554
      ;;
 
3555
    none) break ;;
 
3556
    esac
 
3557
    if depmode=$depmode \
 
3558
       source=sub/conftest.c object=$am__obj \
 
3559
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3560
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
3561
         >/dev/null 2>conftest.err &&
 
3562
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3563
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3564
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
3565
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3566
      # icc doesn't choke on unknown options, it will just issue warnings
 
3567
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3568
      # that says an option was ignored or not supported.
 
3569
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3570
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3571
      # The diagnosis changed in icc 8.0:
 
3572
      #   icc: Command line remark: option '-MP' not supported
 
3573
      if (grep 'ignoring option' conftest.err ||
 
3574
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3575
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3576
        break
 
3577
      fi
 
3578
    fi
 
3579
  done
 
3580
 
 
3581
  cd ..
 
3582
  rm -rf conftest.dir
 
3583
else
 
3584
  am_cv_CXX_dependencies_compiler_type=none
 
3585
fi
 
3586
 
 
3587
fi
 
3588
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3589
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3590
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3591
 
 
3592
 if
 
3593
  test "x$enable_dependency_tracking" != xno \
 
3594
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3595
  am__fastdepCXX_TRUE=
 
3596
  am__fastdepCXX_FALSE='#'
 
3597
else
 
3598
  am__fastdepCXX_TRUE='#'
 
3599
  am__fastdepCXX_FALSE=
 
3600
fi
 
3601
 
 
3602
 
 
3603
ac_ext=c
 
3604
ac_cpp='$CPP $CPPFLAGS'
 
3605
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3606
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3607
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3608
if test -n "$ac_tool_prefix"; then
 
3609
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3610
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3611
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3612
$as_echo_n "checking for $ac_word... " >&6; }
 
3613
if test "${ac_cv_prog_CC+set}" = set; then
 
3614
  $as_echo_n "(cached) " >&6
 
3615
else
 
3616
  if test -n "$CC"; then
 
3617
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3618
else
 
3619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3620
for as_dir in $PATH
 
3621
do
 
3622
  IFS=$as_save_IFS
 
3623
  test -z "$as_dir" && as_dir=.
 
3624
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3625
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3626
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3627
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3628
    break 2
 
3629
  fi
 
3630
done
 
3631
done
 
3632
IFS=$as_save_IFS
 
3633
 
 
3634
fi
 
3635
fi
 
3636
CC=$ac_cv_prog_CC
 
3637
if test -n "$CC"; then
 
3638
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3639
$as_echo "$CC" >&6; }
 
3640
else
 
3641
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3642
$as_echo "no" >&6; }
 
3643
fi
 
3644
 
 
3645
 
 
3646
fi
 
3647
if test -z "$ac_cv_prog_CC"; then
 
3648
  ac_ct_CC=$CC
 
3649
  # Extract the first word of "gcc", so it can be a program name with args.
 
3650
set dummy gcc; ac_word=$2
 
3651
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3652
$as_echo_n "checking for $ac_word... " >&6; }
 
3653
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3654
  $as_echo_n "(cached) " >&6
 
3655
else
 
3656
  if test -n "$ac_ct_CC"; then
 
3657
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3658
else
 
3659
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3660
for as_dir in $PATH
 
3661
do
 
3662
  IFS=$as_save_IFS
 
3663
  test -z "$as_dir" && as_dir=.
 
3664
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3665
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3666
    ac_cv_prog_ac_ct_CC="gcc"
 
3667
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3668
    break 2
 
3669
  fi
 
3670
done
 
3671
done
 
3672
IFS=$as_save_IFS
 
3673
 
 
3674
fi
 
3675
fi
 
3676
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3677
if test -n "$ac_ct_CC"; then
 
3678
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3679
$as_echo "$ac_ct_CC" >&6; }
 
3680
else
 
3681
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3682
$as_echo "no" >&6; }
 
3683
fi
 
3684
 
 
3685
  if test "x$ac_ct_CC" = x; then
 
3686
    CC=""
 
3687
  else
 
3688
    case $cross_compiling:$ac_tool_warned in
 
3689
yes:)
 
3690
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3691
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3692
ac_tool_warned=yes ;;
 
3693
esac
 
3694
    CC=$ac_ct_CC
 
3695
  fi
 
3696
else
 
3697
  CC="$ac_cv_prog_CC"
 
3698
fi
 
3699
 
 
3700
if test -z "$CC"; then
 
3701
          if test -n "$ac_tool_prefix"; then
 
3702
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3703
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3704
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3705
$as_echo_n "checking for $ac_word... " >&6; }
 
3706
if test "${ac_cv_prog_CC+set}" = set; then
 
3707
  $as_echo_n "(cached) " >&6
 
3708
else
 
3709
  if test -n "$CC"; then
 
3710
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3711
else
 
3712
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3713
for as_dir in $PATH
 
3714
do
 
3715
  IFS=$as_save_IFS
 
3716
  test -z "$as_dir" && as_dir=.
 
3717
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3718
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3719
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3720
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3721
    break 2
 
3722
  fi
 
3723
done
 
3724
done
 
3725
IFS=$as_save_IFS
 
3726
 
 
3727
fi
 
3728
fi
 
3729
CC=$ac_cv_prog_CC
 
3730
if test -n "$CC"; then
 
3731
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3732
$as_echo "$CC" >&6; }
 
3733
else
 
3734
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3735
$as_echo "no" >&6; }
 
3736
fi
 
3737
 
 
3738
 
 
3739
  fi
 
3740
fi
 
3741
if test -z "$CC"; then
 
3742
  # Extract the first word of "cc", so it can be a program name with args.
 
3743
set dummy cc; ac_word=$2
 
3744
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3745
$as_echo_n "checking for $ac_word... " >&6; }
 
3746
if test "${ac_cv_prog_CC+set}" = set; then
 
3747
  $as_echo_n "(cached) " >&6
 
3748
else
 
3749
  if test -n "$CC"; then
 
3750
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3751
else
 
3752
  ac_prog_rejected=no
 
3753
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3754
for as_dir in $PATH
 
3755
do
 
3756
  IFS=$as_save_IFS
 
3757
  test -z "$as_dir" && as_dir=.
 
3758
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3759
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3760
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3761
       ac_prog_rejected=yes
 
3762
       continue
 
3763
     fi
 
3764
    ac_cv_prog_CC="cc"
 
3765
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3766
    break 2
 
3767
  fi
 
3768
done
 
3769
done
 
3770
IFS=$as_save_IFS
 
3771
 
 
3772
if test $ac_prog_rejected = yes; then
 
3773
  # We found a bogon in the path, so make sure we never use it.
 
3774
  set dummy $ac_cv_prog_CC
 
3775
  shift
 
3776
  if test $# != 0; then
 
3777
    # We chose a different compiler from the bogus one.
 
3778
    # However, it has the same basename, so the bogon will be chosen
 
3779
    # first if we set CC to just the basename; use the full file name.
 
3780
    shift
 
3781
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3782
  fi
 
3783
fi
 
3784
fi
 
3785
fi
 
3786
CC=$ac_cv_prog_CC
 
3787
if test -n "$CC"; then
 
3788
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3789
$as_echo "$CC" >&6; }
 
3790
else
 
3791
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3792
$as_echo "no" >&6; }
 
3793
fi
 
3794
 
 
3795
 
 
3796
fi
 
3797
if test -z "$CC"; then
 
3798
  if test -n "$ac_tool_prefix"; then
 
3799
  for ac_prog in cl.exe
 
3800
  do
 
3801
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3802
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3803
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3804
$as_echo_n "checking for $ac_word... " >&6; }
 
3805
if test "${ac_cv_prog_CC+set}" = set; then
 
3806
  $as_echo_n "(cached) " >&6
 
3807
else
 
3808
  if test -n "$CC"; then
 
3809
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3810
else
 
3811
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3812
for as_dir in $PATH
 
3813
do
 
3814
  IFS=$as_save_IFS
 
3815
  test -z "$as_dir" && as_dir=.
 
3816
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3817
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3818
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3819
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3820
    break 2
 
3821
  fi
 
3822
done
 
3823
done
 
3824
IFS=$as_save_IFS
 
3825
 
 
3826
fi
 
3827
fi
 
3828
CC=$ac_cv_prog_CC
 
3829
if test -n "$CC"; then
 
3830
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3831
$as_echo "$CC" >&6; }
 
3832
else
 
3833
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3834
$as_echo "no" >&6; }
 
3835
fi
 
3836
 
 
3837
 
 
3838
    test -n "$CC" && break
 
3839
  done
 
3840
fi
 
3841
if test -z "$CC"; then
 
3842
  ac_ct_CC=$CC
 
3843
  for ac_prog in cl.exe
 
3844
do
 
3845
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3846
set dummy $ac_prog; ac_word=$2
 
3847
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3848
$as_echo_n "checking for $ac_word... " >&6; }
 
3849
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3850
  $as_echo_n "(cached) " >&6
 
3851
else
 
3852
  if test -n "$ac_ct_CC"; then
 
3853
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3854
else
 
3855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3856
for as_dir in $PATH
 
3857
do
 
3858
  IFS=$as_save_IFS
 
3859
  test -z "$as_dir" && as_dir=.
 
3860
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3862
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3863
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3864
    break 2
 
3865
  fi
 
3866
done
 
3867
done
 
3868
IFS=$as_save_IFS
 
3869
 
 
3870
fi
 
3871
fi
 
3872
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3873
if test -n "$ac_ct_CC"; then
 
3874
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3875
$as_echo "$ac_ct_CC" >&6; }
 
3876
else
 
3877
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3878
$as_echo "no" >&6; }
 
3879
fi
 
3880
 
 
3881
 
 
3882
  test -n "$ac_ct_CC" && break
 
3883
done
 
3884
 
 
3885
  if test "x$ac_ct_CC" = x; then
 
3886
    CC=""
 
3887
  else
 
3888
    case $cross_compiling:$ac_tool_warned in
 
3889
yes:)
 
3890
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3891
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3892
ac_tool_warned=yes ;;
 
3893
esac
 
3894
    CC=$ac_ct_CC
 
3895
  fi
 
3896
fi
 
3897
 
 
3898
fi
 
3899
 
 
3900
 
 
3901
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3902
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3903
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3904
See \`config.log' for more details." >&5
 
3905
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3906
See \`config.log' for more details." >&2;}
 
3907
   { (exit 1); exit 1; }; }; }
 
3908
 
 
3909
# Provide some information about the compiler.
 
3910
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3911
set X $ac_compile
 
3912
ac_compiler=$2
 
3913
{ (ac_try="$ac_compiler --version >&5"
 
3914
case "(($ac_try" in
 
3915
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3916
  *) ac_try_echo=$ac_try;;
 
3917
esac
 
3918
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3919
$as_echo "$ac_try_echo") >&5
 
3920
  (eval "$ac_compiler --version >&5") 2>&5
 
3921
  ac_status=$?
 
3922
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3923
  (exit $ac_status); }
 
3924
{ (ac_try="$ac_compiler -v >&5"
 
3925
case "(($ac_try" in
 
3926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3927
  *) ac_try_echo=$ac_try;;
 
3928
esac
 
3929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3930
$as_echo "$ac_try_echo") >&5
 
3931
  (eval "$ac_compiler -v >&5") 2>&5
 
3932
  ac_status=$?
 
3933
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3934
  (exit $ac_status); }
 
3935
{ (ac_try="$ac_compiler -V >&5"
 
3936
case "(($ac_try" in
 
3937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3938
  *) ac_try_echo=$ac_try;;
 
3939
esac
 
3940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3941
$as_echo "$ac_try_echo") >&5
 
3942
  (eval "$ac_compiler -V >&5") 2>&5
 
3943
  ac_status=$?
 
3944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3945
  (exit $ac_status); }
 
3946
 
 
3947
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3948
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
3949
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3950
  $as_echo_n "(cached) " >&6
 
3951
else
 
3952
  cat >conftest.$ac_ext <<_ACEOF
 
3953
/* confdefs.h.  */
 
3954
_ACEOF
 
3955
cat confdefs.h >>conftest.$ac_ext
 
3956
cat >>conftest.$ac_ext <<_ACEOF
 
3957
/* end confdefs.h.  */
 
3958
 
 
3959
int
 
3960
main ()
 
3961
{
 
3962
#ifndef __GNUC__
 
3963
       choke me
 
3964
#endif
 
3965
 
 
3966
  ;
 
3967
  return 0;
 
3968
}
 
3969
_ACEOF
 
3970
rm -f conftest.$ac_objext
 
3971
if { (ac_try="$ac_compile"
 
3972
case "(($ac_try" in
 
3973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3974
  *) ac_try_echo=$ac_try;;
 
3975
esac
 
3976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3977
$as_echo "$ac_try_echo") >&5
 
3978
  (eval "$ac_compile") 2>conftest.er1
 
3979
  ac_status=$?
 
3980
  grep -v '^ *+' conftest.er1 >conftest.err
 
3981
  rm -f conftest.er1
 
3982
  cat conftest.err >&5
 
3983
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3984
  (exit $ac_status); } && {
 
3985
         test -z "$ac_c_werror_flag" ||
 
3986
         test ! -s conftest.err
 
3987
       } && test -s conftest.$ac_objext; then
 
3988
  ac_compiler_gnu=yes
 
3989
else
 
3990
  $as_echo "$as_me: failed program was:" >&5
 
3991
sed 's/^/| /' conftest.$ac_ext >&5
 
3992
 
 
3993
        ac_compiler_gnu=no
 
3994
fi
 
3995
 
 
3996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3997
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3998
 
 
3999
fi
 
4000
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4001
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4002
if test $ac_compiler_gnu = yes; then
 
4003
  GCC=yes
 
4004
else
 
4005
  GCC=
 
4006
fi
 
4007
ac_test_CFLAGS=${CFLAGS+set}
 
4008
ac_save_CFLAGS=$CFLAGS
 
4009
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4010
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4011
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4012
  $as_echo_n "(cached) " >&6
 
4013
else
 
4014
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4015
   ac_c_werror_flag=yes
 
4016
   ac_cv_prog_cc_g=no
 
4017
   CFLAGS="-g"
 
4018
   cat >conftest.$ac_ext <<_ACEOF
 
4019
/* confdefs.h.  */
 
4020
_ACEOF
 
4021
cat confdefs.h >>conftest.$ac_ext
 
4022
cat >>conftest.$ac_ext <<_ACEOF
 
4023
/* end confdefs.h.  */
 
4024
 
 
4025
int
 
4026
main ()
 
4027
{
 
4028
 
 
4029
  ;
 
4030
  return 0;
 
4031
}
 
4032
_ACEOF
 
4033
rm -f conftest.$ac_objext
 
4034
if { (ac_try="$ac_compile"
 
4035
case "(($ac_try" in
 
4036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4037
  *) ac_try_echo=$ac_try;;
 
4038
esac
 
4039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4040
$as_echo "$ac_try_echo") >&5
 
4041
  (eval "$ac_compile") 2>conftest.er1
 
4042
  ac_status=$?
 
4043
  grep -v '^ *+' conftest.er1 >conftest.err
 
4044
  rm -f conftest.er1
 
4045
  cat conftest.err >&5
 
4046
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4047
  (exit $ac_status); } && {
 
4048
         test -z "$ac_c_werror_flag" ||
 
4049
         test ! -s conftest.err
 
4050
       } && test -s conftest.$ac_objext; then
 
4051
  ac_cv_prog_cc_g=yes
 
4052
else
 
4053
  $as_echo "$as_me: failed program was:" >&5
 
4054
sed 's/^/| /' conftest.$ac_ext >&5
 
4055
 
 
4056
        CFLAGS=""
 
4057
      cat >conftest.$ac_ext <<_ACEOF
 
4058
/* confdefs.h.  */
 
4059
_ACEOF
 
4060
cat confdefs.h >>conftest.$ac_ext
 
4061
cat >>conftest.$ac_ext <<_ACEOF
 
4062
/* end confdefs.h.  */
 
4063
 
 
4064
int
 
4065
main ()
 
4066
{
 
4067
 
 
4068
  ;
 
4069
  return 0;
 
4070
}
 
4071
_ACEOF
 
4072
rm -f conftest.$ac_objext
 
4073
if { (ac_try="$ac_compile"
 
4074
case "(($ac_try" in
 
4075
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4076
  *) ac_try_echo=$ac_try;;
 
4077
esac
 
4078
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4079
$as_echo "$ac_try_echo") >&5
 
4080
  (eval "$ac_compile") 2>conftest.er1
 
4081
  ac_status=$?
 
4082
  grep -v '^ *+' conftest.er1 >conftest.err
 
4083
  rm -f conftest.er1
 
4084
  cat conftest.err >&5
 
4085
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4086
  (exit $ac_status); } && {
 
4087
         test -z "$ac_c_werror_flag" ||
 
4088
         test ! -s conftest.err
 
4089
       } && test -s conftest.$ac_objext; then
 
4090
  :
 
4091
else
 
4092
  $as_echo "$as_me: failed program was:" >&5
 
4093
sed 's/^/| /' conftest.$ac_ext >&5
 
4094
 
 
4095
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4096
         CFLAGS="-g"
 
4097
         cat >conftest.$ac_ext <<_ACEOF
 
4098
/* confdefs.h.  */
 
4099
_ACEOF
 
4100
cat confdefs.h >>conftest.$ac_ext
 
4101
cat >>conftest.$ac_ext <<_ACEOF
 
4102
/* end confdefs.h.  */
 
4103
 
 
4104
int
 
4105
main ()
 
4106
{
 
4107
 
 
4108
  ;
 
4109
  return 0;
 
4110
}
 
4111
_ACEOF
 
4112
rm -f conftest.$ac_objext
 
4113
if { (ac_try="$ac_compile"
 
4114
case "(($ac_try" in
 
4115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4116
  *) ac_try_echo=$ac_try;;
 
4117
esac
 
4118
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4119
$as_echo "$ac_try_echo") >&5
 
4120
  (eval "$ac_compile") 2>conftest.er1
 
4121
  ac_status=$?
 
4122
  grep -v '^ *+' conftest.er1 >conftest.err
 
4123
  rm -f conftest.er1
 
4124
  cat conftest.err >&5
 
4125
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); } && {
 
4127
         test -z "$ac_c_werror_flag" ||
 
4128
         test ! -s conftest.err
 
4129
       } && test -s conftest.$ac_objext; then
 
4130
  ac_cv_prog_cc_g=yes
 
4131
else
 
4132
  $as_echo "$as_me: failed program was:" >&5
 
4133
sed 's/^/| /' conftest.$ac_ext >&5
 
4134
 
 
4135
 
 
4136
fi
 
4137
 
 
4138
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4139
fi
 
4140
 
 
4141
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4142
fi
 
4143
 
 
4144
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4145
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4146
fi
 
4147
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4148
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4149
if test "$ac_test_CFLAGS" = set; then
 
4150
  CFLAGS=$ac_save_CFLAGS
 
4151
elif test $ac_cv_prog_cc_g = yes; then
 
4152
  if test "$GCC" = yes; then
 
4153
    CFLAGS="-g -O2"
 
4154
  else
 
4155
    CFLAGS="-g"
 
4156
  fi
 
4157
else
 
4158
  if test "$GCC" = yes; then
 
4159
    CFLAGS="-O2"
 
4160
  else
 
4161
    CFLAGS=
 
4162
  fi
 
4163
fi
 
4164
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4165
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4166
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4167
  $as_echo_n "(cached) " >&6
 
4168
else
 
4169
  ac_cv_prog_cc_c89=no
 
4170
ac_save_CC=$CC
 
4171
cat >conftest.$ac_ext <<_ACEOF
 
4172
/* confdefs.h.  */
 
4173
_ACEOF
 
4174
cat confdefs.h >>conftest.$ac_ext
 
4175
cat >>conftest.$ac_ext <<_ACEOF
 
4176
/* end confdefs.h.  */
 
4177
#include <stdarg.h>
 
4178
#include <stdio.h>
 
4179
#include <sys/types.h>
 
4180
#include <sys/stat.h>
 
4181
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4182
struct buf { int x; };
 
4183
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4184
static char *e (p, i)
 
4185
     char **p;
 
4186
     int i;
 
4187
{
 
4188
  return p[i];
 
4189
}
 
4190
static char *f (char * (*g) (char **, int), char **p, ...)
 
4191
{
 
4192
  char *s;
 
4193
  va_list v;
 
4194
  va_start (v,p);
 
4195
  s = g (p, va_arg (v,int));
 
4196
  va_end (v);
 
4197
  return s;
 
4198
}
 
4199
 
 
4200
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4201
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4202
   These don't provoke an error unfortunately, instead are silently treated
 
4203
   as 'x'.  The following induces an error, until -std is added to get
 
4204
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4205
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4206
   that's true only with -std.  */
 
4207
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4208
 
 
4209
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4210
   inside strings and character constants.  */
 
4211
#define FOO(x) 'x'
 
4212
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4213
 
 
4214
int test (int i, double x);
 
4215
struct s1 {int (*f) (int a);};
 
4216
struct s2 {int (*f) (double a);};
 
4217
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4218
int argc;
 
4219
char **argv;
 
4220
int
 
4221
main ()
 
4222
{
 
4223
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4224
  ;
 
4225
  return 0;
 
4226
}
 
4227
_ACEOF
 
4228
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4229
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4230
do
 
4231
  CC="$ac_save_CC $ac_arg"
 
4232
  rm -f conftest.$ac_objext
 
4233
if { (ac_try="$ac_compile"
 
4234
case "(($ac_try" in
 
4235
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4236
  *) ac_try_echo=$ac_try;;
 
4237
esac
 
4238
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4239
$as_echo "$ac_try_echo") >&5
 
4240
  (eval "$ac_compile") 2>conftest.er1
 
4241
  ac_status=$?
 
4242
  grep -v '^ *+' conftest.er1 >conftest.err
 
4243
  rm -f conftest.er1
 
4244
  cat conftest.err >&5
 
4245
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4246
  (exit $ac_status); } && {
 
4247
         test -z "$ac_c_werror_flag" ||
 
4248
         test ! -s conftest.err
 
4249
       } && test -s conftest.$ac_objext; then
 
4250
  ac_cv_prog_cc_c89=$ac_arg
 
4251
else
 
4252
  $as_echo "$as_me: failed program was:" >&5
 
4253
sed 's/^/| /' conftest.$ac_ext >&5
 
4254
 
 
4255
 
 
4256
fi
 
4257
 
 
4258
rm -f core conftest.err conftest.$ac_objext
 
4259
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4260
done
 
4261
rm -f conftest.$ac_ext
 
4262
CC=$ac_save_CC
 
4263
 
 
4264
fi
 
4265
# AC_CACHE_VAL
 
4266
case "x$ac_cv_prog_cc_c89" in
 
4267
  x)
 
4268
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4269
$as_echo "none needed" >&6; } ;;
 
4270
  xno)
 
4271
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4272
$as_echo "unsupported" >&6; } ;;
 
4273
  *)
 
4274
    CC="$CC $ac_cv_prog_cc_c89"
 
4275
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4276
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4277
esac
 
4278
 
 
4279
 
 
4280
ac_ext=c
 
4281
ac_cpp='$CPP $CPPFLAGS'
 
4282
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4283
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4284
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4285
 
 
4286
depcc="$CC"   am_compiler_list=
 
4287
 
 
4288
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4289
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4290
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4291
  $as_echo_n "(cached) " >&6
 
4292
else
 
4293
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4294
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4295
  # making bogus files that we don't know about and never remove.  For
 
4296
  # instance it was reported that on HP-UX the gcc test will end up
 
4297
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4298
  # in D'.
 
4299
  mkdir conftest.dir
 
4300
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4301
  # using a relative directory.
 
4302
  cp "$am_depcomp" conftest.dir
 
4303
  cd conftest.dir
 
4304
  # We will build objects and dependencies in a subdirectory because
 
4305
  # it helps to detect inapplicable dependency modes.  For instance
 
4306
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4307
  # side effect of compilation, but ICC will put the dependencies in
 
4308
  # the current directory while Tru64 will put them in the object
 
4309
  # directory.
 
4310
  mkdir sub
 
4311
 
 
4312
  am_cv_CC_dependencies_compiler_type=none
 
4313
  if test "$am_compiler_list" = ""; then
 
4314
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4315
  fi
 
4316
  am__universal=false
 
4317
  case " $depcc " in #(
 
4318
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
 
4319
     esac
 
4320
 
 
4321
  for depmode in $am_compiler_list; do
 
4322
    # Setup a source with many dependencies, because some compilers
 
4323
    # like to wrap large dependency lists on column 80 (with \), and
 
4324
    # we should not choose a depcomp mode which is confused by this.
 
4325
    #
 
4326
    # We need to recreate these files for each test, as the compiler may
 
4327
    # overwrite some of them when testing with obscure command lines.
 
4328
    # This happens at least with the AIX C compiler.
 
4329
    : > sub/conftest.c
 
4330
    for i in 1 2 3 4 5 6; do
 
4331
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4332
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4333
      # Solaris 8's {/usr,}/bin/sh.
 
4334
      touch sub/conftst$i.h
 
4335
    done
 
4336
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4337
 
 
4338
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4339
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4340
    # handle `-M -o', and we need to detect this.  Also, some Intel
 
4341
    # versions had trouble with output in subdirs
 
4342
    am__obj=sub/conftest.${OBJEXT-o}
 
4343
    am__minus_obj="-o $am__obj"
 
4344
    case $depmode in
 
4345
    gcc)
 
4346
      # This depmode causes a compiler race in universal mode.
 
4347
      test "$am__universal" = false || continue
 
4348
      ;;
 
4349
    nosideeffect)
 
4350
      # after this tag, mechanisms are not by side-effect, so they'll
 
4351
      # only be used when explicitly requested
 
4352
      if test "x$enable_dependency_tracking" = xyes; then
 
4353
        continue
 
4354
      else
 
4355
        break
 
4356
      fi
 
4357
      ;;
 
4358
    msvisualcpp | msvcmsys)
 
4359
      # This compiler won't grok `-c -o', but also, the minuso test has
 
4360
      # not run yet.  These depmodes are late enough in the game, and
 
4361
      # so weak that their functioning should not be impacted.
 
4362
      am__obj=conftest.${OBJEXT-o}
 
4363
      am__minus_obj=
 
4364
      ;;
 
4365
    none) break ;;
 
4366
    esac
 
4367
    if depmode=$depmode \
 
4368
       source=sub/conftest.c object=$am__obj \
 
4369
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4370
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
 
4371
         >/dev/null 2>conftest.err &&
 
4372
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4373
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4374
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
 
4375
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4376
      # icc doesn't choke on unknown options, it will just issue warnings
 
4377
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4378
      # that says an option was ignored or not supported.
 
4379
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4380
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4381
      # The diagnosis changed in icc 8.0:
 
4382
      #   icc: Command line remark: option '-MP' not supported
 
4383
      if (grep 'ignoring option' conftest.err ||
 
4384
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4385
        am_cv_CC_dependencies_compiler_type=$depmode
 
4386
        break
 
4387
      fi
 
4388
    fi
 
4389
  done
 
4390
 
 
4391
  cd ..
 
4392
  rm -rf conftest.dir
 
4393
else
 
4394
  am_cv_CC_dependencies_compiler_type=none
 
4395
fi
 
4396
 
 
4397
fi
 
4398
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4399
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4400
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4401
 
 
4402
 if
 
4403
  test "x$enable_dependency_tracking" != xno \
 
4404
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4405
  am__fastdepCC_TRUE=
 
4406
  am__fastdepCC_FALSE='#'
 
4407
else
 
4408
  am__fastdepCC_TRUE='#'
 
4409
  am__fastdepCC_FALSE=
 
4410
fi
 
4411
 
 
4412
 
 
4413
# Find a good install program.  We prefer a C program (faster),
 
4414
# so one script is as good as another.  But avoid the broken or
 
4415
# incompatible versions:
 
4416
# SysV /etc/install, /usr/sbin/install
 
4417
# SunOS /usr/etc/install
 
4418
# IRIX /sbin/install
 
4419
# AIX /bin/install
 
4420
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4421
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4422
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4423
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4424
# OS/2's system install, which has a completely different semantic
 
4425
# ./install, which can be erroneously created by make from ./install.sh.
 
4426
# Reject install programs that cannot install multiple files.
 
4427
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4428
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
4429
if test -z "$INSTALL"; then
 
4430
if test "${ac_cv_path_install+set}" = set; then
 
4431
  $as_echo_n "(cached) " >&6
 
4432
else
 
4433
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4434
for as_dir in $PATH
 
4435
do
 
4436
  IFS=$as_save_IFS
 
4437
  test -z "$as_dir" && as_dir=.
 
4438
  # Account for people who put trailing slashes in PATH elements.
 
4439
case $as_dir/ in
 
4440
  ./ | .// | /cC/* | \
 
4441
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4442
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4443
  /usr/ucb/* ) ;;
 
4444
  *)
 
4445
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4446
    # Don't use installbsd from OSF since it installs stuff as root
 
4447
    # by default.
 
4448
    for ac_prog in ginstall scoinst install; do
 
4449
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4450
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
4451
          if test $ac_prog = install &&
 
4452
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4453
            # AIX install.  It has an incompatible calling convention.
 
4454
            :
 
4455
          elif test $ac_prog = install &&
 
4456
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4457
            # program-specific install script used by HP pwplus--don't use.
 
4458
            :
 
4459
          else
 
4460
            rm -rf conftest.one conftest.two conftest.dir
 
4461
            echo one > conftest.one
 
4462
            echo two > conftest.two
 
4463
            mkdir conftest.dir
 
4464
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
4465
              test -s conftest.one && test -s conftest.two &&
 
4466
              test -s conftest.dir/conftest.one &&
 
4467
              test -s conftest.dir/conftest.two
 
4468
            then
 
4469
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4470
              break 3
 
4471
            fi
 
4472
          fi
 
4473
        fi
 
4474
      done
 
4475
    done
 
4476
    ;;
 
4477
esac
 
4478
 
 
4479
done
 
4480
IFS=$as_save_IFS
 
4481
 
 
4482
rm -rf conftest.one conftest.two conftest.dir
 
4483
 
 
4484
fi
 
4485
  if test "${ac_cv_path_install+set}" = set; then
 
4486
    INSTALL=$ac_cv_path_install
 
4487
  else
 
4488
    # As a last resort, use the slow shell script.  Don't cache a
 
4489
    # value for INSTALL within a source directory, because that will
 
4490
    # break other packages using the cache if that directory is
 
4491
    # removed, or if the value is a relative name.
 
4492
    INSTALL=$ac_install_sh
 
4493
  fi
 
4494
fi
 
4495
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4496
$as_echo "$INSTALL" >&6; }
 
4497
 
 
4498
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4499
# It thinks the first close brace ends the variable substitution.
 
4500
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4501
 
 
4502
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4503
 
 
4504
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4505
 
 
4506
# Check whether --enable-shared was given.
 
4507
if test "${enable_shared+set}" = set; then
 
4508
  enableval=$enable_shared; p=${PACKAGE-default}
 
4509
    case $enableval in
 
4510
    yes) enable_shared=yes ;;
 
4511
    no) enable_shared=no ;;
 
4512
    *)
 
4513
      enable_shared=no
 
4514
      # Look at the argument we got.  We use all the common list separators.
 
4515
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4516
      for pkg in $enableval; do
 
4517
        IFS="$lt_save_ifs"
 
4518
        if test "X$pkg" = "X$p"; then
 
4519
          enable_shared=yes
 
4520
        fi
 
4521
      done
 
4522
      IFS="$lt_save_ifs"
 
4523
      ;;
 
4524
    esac
 
4525
else
 
4526
  enable_shared=yes
 
4527
fi
 
4528
 
 
4529
 
 
4530
# Check whether --enable-fast-install was given.
 
4531
if test "${enable_fast_install+set}" = set; then
 
4532
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4533
    case $enableval in
 
4534
    yes) enable_fast_install=yes ;;
 
4535
    no) enable_fast_install=no ;;
 
4536
    *)
 
4537
      enable_fast_install=no
 
4538
      # Look at the argument we got.  We use all the common list separators.
 
4539
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4540
      for pkg in $enableval; do
 
4541
        IFS="$lt_save_ifs"
 
4542
        if test "X$pkg" = "X$p"; then
 
4543
          enable_fast_install=yes
 
4544
        fi
 
4545
      done
 
4546
      IFS="$lt_save_ifs"
 
4547
      ;;
 
4548
    esac
 
4549
else
 
4550
  enable_fast_install=yes
 
4551
fi
 
4552
 
 
4553
 
 
4554
# Make sure we can run config.sub.
 
4555
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
4556
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
4557
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
4558
   { (exit 1); exit 1; }; }
 
4559
 
 
4560
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
4561
$as_echo_n "checking build system type... " >&6; }
 
4562
if test "${ac_cv_build+set}" = set; then
 
4563
  $as_echo_n "(cached) " >&6
 
4564
else
 
4565
  ac_build_alias=$build_alias
 
4566
test "x$ac_build_alias" = x &&
 
4567
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
4568
test "x$ac_build_alias" = x &&
 
4569
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4570
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4571
   { (exit 1); exit 1; }; }
 
4572
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
4573
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
4574
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
4575
   { (exit 1); exit 1; }; }
 
4576
 
 
4577
fi
 
4578
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4579
$as_echo "$ac_cv_build" >&6; }
 
4580
case $ac_cv_build in
 
4581
*-*-*) ;;
 
4582
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
4583
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
4584
   { (exit 1); exit 1; }; };;
 
4585
esac
 
4586
build=$ac_cv_build
 
4587
ac_save_IFS=$IFS; IFS='-'
 
4588
set x $ac_cv_build
 
4589
shift
 
4590
build_cpu=$1
 
4591
build_vendor=$2
 
4592
shift; shift
 
4593
# Remember, the first character of IFS is used to create $*,
 
4594
# except with old shells:
 
4595
build_os=$*
 
4596
IFS=$ac_save_IFS
 
4597
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
4598
 
 
4599
 
 
4600
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
4601
$as_echo_n "checking host system type... " >&6; }
 
4602
if test "${ac_cv_host+set}" = set; then
 
4603
  $as_echo_n "(cached) " >&6
 
4604
else
 
4605
  if test "x$host_alias" = x; then
 
4606
  ac_cv_host=$ac_cv_build
 
4607
else
 
4608
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
4609
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
4610
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
4611
   { (exit 1); exit 1; }; }
 
4612
fi
 
4613
 
 
4614
fi
 
4615
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4616
$as_echo "$ac_cv_host" >&6; }
 
4617
case $ac_cv_host in
 
4618
*-*-*) ;;
 
4619
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
4620
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
4621
   { (exit 1); exit 1; }; };;
 
4622
esac
 
4623
host=$ac_cv_host
 
4624
ac_save_IFS=$IFS; IFS='-'
 
4625
set x $ac_cv_host
 
4626
shift
 
4627
host_cpu=$1
 
4628
host_vendor=$2
 
4629
shift; shift
 
4630
# Remember, the first character of IFS is used to create $*,
 
4631
# except with old shells:
 
4632
host_os=$*
 
4633
IFS=$ac_save_IFS
 
4634
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
4635
 
 
4636
 
 
4637
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4638
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4639
if test "${lt_cv_path_SED+set}" = set; then
 
4640
  $as_echo_n "(cached) " >&6
 
4641
else
 
4642
  # Loop through the user's path and test for sed and gsed.
 
4643
# Then use that list of sed's as ones to test for truncation.
 
4644
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4645
for as_dir in $PATH
 
4646
do
 
4647
  IFS=$as_save_IFS
 
4648
  test -z "$as_dir" && as_dir=.
 
4649
  for lt_ac_prog in sed gsed; do
 
4650
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4651
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4652
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4653
      fi
 
4654
    done
 
4655
  done
 
4656
done
 
4657
IFS=$as_save_IFS
 
4658
lt_ac_max=0
 
4659
lt_ac_count=0
 
4660
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4661
# along with /bin/sed that truncates output.
 
4662
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4663
  test ! -f $lt_ac_sed && continue
 
4664
  cat /dev/null > conftest.in
 
4665
  lt_ac_count=0
 
4666
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4667
  # Check for GNU sed and select it if it is found.
 
4668
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4669
    lt_cv_path_SED=$lt_ac_sed
 
4670
    break
 
4671
  fi
 
4672
  while true; do
 
4673
    cat conftest.in conftest.in >conftest.tmp
 
4674
    mv conftest.tmp conftest.in
 
4675
    cp conftest.in conftest.nl
 
4676
    echo >>conftest.nl
 
4677
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4678
    cmp -s conftest.out conftest.nl || break
 
4679
    # 10000 chars as input seems more than enough
 
4680
    test $lt_ac_count -gt 10 && break
 
4681
    lt_ac_count=`expr $lt_ac_count + 1`
 
4682
    if test $lt_ac_count -gt $lt_ac_max; then
 
4683
      lt_ac_max=$lt_ac_count
 
4684
      lt_cv_path_SED=$lt_ac_sed
 
4685
    fi
 
4686
  done
 
4687
done
 
4688
 
 
4689
fi
 
4690
 
 
4691
SED=$lt_cv_path_SED
 
4692
 
 
4693
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4694
$as_echo "$SED" >&6; }
 
4695
 
 
4696
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4697
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4698
if test "${ac_cv_path_GREP+set}" = set; then
 
4699
  $as_echo_n "(cached) " >&6
 
4700
else
 
4701
  if test -z "$GREP"; then
 
4702
  ac_path_GREP_found=false
 
4703
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4704
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4705
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4706
do
 
4707
  IFS=$as_save_IFS
 
4708
  test -z "$as_dir" && as_dir=.
 
4709
  for ac_prog in grep ggrep; do
 
4710
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4711
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4712
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4713
# Check for GNU ac_path_GREP and select it if it is found.
 
4714
  # Check for GNU $ac_path_GREP
 
4715
case `"$ac_path_GREP" --version 2>&1` in
 
4716
*GNU*)
 
4717
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4718
*)
 
4719
  ac_count=0
 
4720
  $as_echo_n 0123456789 >"conftest.in"
 
4721
  while :
 
4722
  do
 
4723
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4724
    mv "conftest.tmp" "conftest.in"
 
4725
    cp "conftest.in" "conftest.nl"
 
4726
    $as_echo 'GREP' >> "conftest.nl"
 
4727
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4728
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4729
    ac_count=`expr $ac_count + 1`
 
4730
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4731
      # Best one so far, save it but keep looking for a better one
 
4732
      ac_cv_path_GREP="$ac_path_GREP"
 
4733
      ac_path_GREP_max=$ac_count
 
4734
    fi
 
4735
    # 10*(2^10) chars as input seems more than enough
 
4736
    test $ac_count -gt 10 && break
 
4737
  done
 
4738
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4739
esac
 
4740
 
 
4741
      $ac_path_GREP_found && break 3
 
4742
    done
 
4743
  done
 
4744
done
 
4745
IFS=$as_save_IFS
 
4746
  if test -z "$ac_cv_path_GREP"; then
 
4747
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4748
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4749
   { (exit 1); exit 1; }; }
 
4750
  fi
 
4751
else
 
4752
  ac_cv_path_GREP=$GREP
 
4753
fi
 
4754
 
 
4755
fi
 
4756
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4757
$as_echo "$ac_cv_path_GREP" >&6; }
 
4758
 GREP="$ac_cv_path_GREP"
 
4759
 
 
4760
 
 
4761
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
4762
$as_echo_n "checking for egrep... " >&6; }
 
4763
if test "${ac_cv_path_EGREP+set}" = set; then
 
4764
  $as_echo_n "(cached) " >&6
 
4765
else
 
4766
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4767
   then ac_cv_path_EGREP="$GREP -E"
 
4768
   else
 
4769
     if test -z "$EGREP"; then
 
4770
  ac_path_EGREP_found=false
 
4771
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4772
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4773
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4774
do
 
4775
  IFS=$as_save_IFS
 
4776
  test -z "$as_dir" && as_dir=.
 
4777
  for ac_prog in egrep; do
 
4778
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4779
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4780
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4781
# Check for GNU ac_path_EGREP and select it if it is found.
 
4782
  # Check for GNU $ac_path_EGREP
 
4783
case `"$ac_path_EGREP" --version 2>&1` in
 
4784
*GNU*)
 
4785
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4786
*)
 
4787
  ac_count=0
 
4788
  $as_echo_n 0123456789 >"conftest.in"
 
4789
  while :
 
4790
  do
 
4791
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4792
    mv "conftest.tmp" "conftest.in"
 
4793
    cp "conftest.in" "conftest.nl"
 
4794
    $as_echo 'EGREP' >> "conftest.nl"
 
4795
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4796
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4797
    ac_count=`expr $ac_count + 1`
 
4798
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4799
      # Best one so far, save it but keep looking for a better one
 
4800
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4801
      ac_path_EGREP_max=$ac_count
 
4802
    fi
 
4803
    # 10*(2^10) chars as input seems more than enough
 
4804
    test $ac_count -gt 10 && break
 
4805
  done
 
4806
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4807
esac
 
4808
 
 
4809
      $ac_path_EGREP_found && break 3
 
4810
    done
 
4811
  done
 
4812
done
 
4813
IFS=$as_save_IFS
 
4814
  if test -z "$ac_cv_path_EGREP"; then
 
4815
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4816
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4817
   { (exit 1); exit 1; }; }
 
4818
  fi
 
4819
else
 
4820
  ac_cv_path_EGREP=$EGREP
 
4821
fi
 
4822
 
 
4823
   fi
 
4824
fi
 
4825
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4826
$as_echo "$ac_cv_path_EGREP" >&6; }
 
4827
 EGREP="$ac_cv_path_EGREP"
 
4828
 
 
4829
 
 
4830
 
 
4831
# Check whether --with-gnu-ld was given.
 
4832
if test "${with_gnu_ld+set}" = set; then
 
4833
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4834
else
 
4835
  with_gnu_ld=no
 
4836
fi
 
4837
 
 
4838
ac_prog=ld
 
4839
if test "$GCC" = yes; then
 
4840
  # Check if gcc -print-prog-name=ld gives a path.
 
4841
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4842
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4843
  case $host in
 
4844
  *-*-mingw*)
 
4845
    # gcc leaves a trailing carriage return which upsets mingw
 
4846
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4847
  *)
 
4848
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4849
  esac
 
4850
  case $ac_prog in
 
4851
    # Accept absolute paths.
 
4852
    [\\/]* | ?:[\\/]*)
 
4853
      re_direlt='/[^/][^/]*/\.\./'
 
4854
      # Canonicalize the pathname of ld
 
4855
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4856
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4857
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4858
      done
 
4859
      test -z "$LD" && LD="$ac_prog"
 
4860
      ;;
 
4861
  "")
 
4862
    # If it fails, then pretend we aren't using GCC.
 
4863
    ac_prog=ld
 
4864
    ;;
 
4865
  *)
 
4866
    # If it is relative, then search for the first ld in PATH.
 
4867
    with_gnu_ld=unknown
 
4868
    ;;
 
4869
  esac
 
4870
elif test "$with_gnu_ld" = yes; then
 
4871
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4872
$as_echo_n "checking for GNU ld... " >&6; }
 
4873
else
 
4874
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4875
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4876
fi
 
4877
if test "${lt_cv_path_LD+set}" = set; then
 
4878
  $as_echo_n "(cached) " >&6
 
4879
else
 
4880
  if test -z "$LD"; then
 
4881
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4882
  for ac_dir in $PATH; do
 
4883
    IFS="$lt_save_ifs"
 
4884
    test -z "$ac_dir" && ac_dir=.
 
4885
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4886
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4887
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4888
      # but apparently some variants of GNU ld only accept -v.
 
4889
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4890
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4891
      *GNU* | *'with BFD'*)
 
4892
        test "$with_gnu_ld" != no && break
 
4893
        ;;
 
4894
      *)
 
4895
        test "$with_gnu_ld" != yes && break
 
4896
        ;;
 
4897
      esac
 
4898
    fi
 
4899
  done
 
4900
  IFS="$lt_save_ifs"
 
4901
else
 
4902
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4903
fi
 
4904
fi
 
4905
 
 
4906
LD="$lt_cv_path_LD"
 
4907
if test -n "$LD"; then
 
4908
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4909
$as_echo "$LD" >&6; }
 
4910
else
 
4911
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4912
$as_echo "no" >&6; }
 
4913
fi
 
4914
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4915
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4916
   { (exit 1); exit 1; }; }
 
4917
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4918
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4919
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4920
  $as_echo_n "(cached) " >&6
 
4921
else
 
4922
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4923
case `$LD -v 2>&1 </dev/null` in
 
4924
*GNU* | *'with BFD'*)
 
4925
  lt_cv_prog_gnu_ld=yes
 
4926
  ;;
 
4927
*)
 
4928
  lt_cv_prog_gnu_ld=no
 
4929
  ;;
 
4930
esac
 
4931
fi
 
4932
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4933
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4934
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4935
 
 
4936
 
 
4937
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4938
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4939
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4940
  $as_echo_n "(cached) " >&6
 
4941
else
 
4942
  lt_cv_ld_reload_flag='-r'
 
4943
fi
 
4944
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4945
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4946
reload_flag=$lt_cv_ld_reload_flag
 
4947
case $reload_flag in
 
4948
"" | " "*) ;;
 
4949
*) reload_flag=" $reload_flag" ;;
 
4950
esac
 
4951
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4952
case $host_os in
 
4953
  darwin*)
 
4954
    if test "$GCC" = yes; then
 
4955
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4956
    else
 
4957
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4958
    fi
 
4959
    ;;
 
4960
esac
 
4961
 
 
4962
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4963
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4964
if test "${lt_cv_path_NM+set}" = set; then
 
4965
  $as_echo_n "(cached) " >&6
 
4966
else
 
4967
  if test -n "$NM"; then
 
4968
  # Let the user override the test.
 
4969
  lt_cv_path_NM="$NM"
 
4970
else
 
4971
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4972
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4973
    lt_nm_to_check="$lt_nm_to_check nm"
 
4974
  fi
 
4975
  for lt_tmp_nm in $lt_nm_to_check; do
 
4976
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4977
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4978
      IFS="$lt_save_ifs"
 
4979
      test -z "$ac_dir" && ac_dir=.
 
4980
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4981
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4982
        # Check to see if the nm accepts a BSD-compat flag.
 
4983
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4984
        #   nm: unknown option "B" ignored
 
4985
        # Tru64's nm complains that /dev/null is an invalid object file
 
4986
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4987
        */dev/null* | *'Invalid file or object type'*)
 
4988
          lt_cv_path_NM="$tmp_nm -B"
 
4989
          break
 
4990
          ;;
 
4991
        *)
 
4992
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4993
          */dev/null*)
 
4994
            lt_cv_path_NM="$tmp_nm -p"
 
4995
            break
 
4996
            ;;
 
4997
          *)
 
4998
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4999
            continue # so that we can try to find one that supports BSD flags
 
5000
            ;;
 
5001
          esac
 
5002
          ;;
 
5003
        esac
 
5004
      fi
 
5005
    done
 
5006
    IFS="$lt_save_ifs"
 
5007
  done
 
5008
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5009
fi
 
5010
fi
 
5011
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5012
$as_echo "$lt_cv_path_NM" >&6; }
 
5013
NM="$lt_cv_path_NM"
 
5014
 
 
5015
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5016
$as_echo_n "checking whether ln -s works... " >&6; }
 
5017
LN_S=$as_ln_s
 
5018
if test "$LN_S" = "ln -s"; then
 
5019
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
5020
$as_echo "yes" >&6; }
 
5021
else
 
5022
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5023
$as_echo "no, using $LN_S" >&6; }
 
5024
fi
 
5025
 
 
5026
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5027
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5028
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5029
  $as_echo_n "(cached) " >&6
 
5030
else
 
5031
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5032
lt_cv_file_magic_test_file=
 
5033
lt_cv_deplibs_check_method='unknown'
 
5034
# Need to set the preceding variable on all platforms that support
 
5035
# interlibrary dependencies.
 
5036
# 'none' -- dependencies not supported.
 
5037
# `unknown' -- same as none, but documents that we really don't know.
 
5038
# 'pass_all' -- all dependencies passed with no checks.
 
5039
# 'test_compile' -- check by making test program.
 
5040
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5041
# which responds to the $file_magic_cmd with a given extended regex.
 
5042
# If you have `file' or equivalent on your system and you're not sure
 
5043
# whether `pass_all' will *always* work, you probably want this one.
 
5044
 
 
5045
case $host_os in
 
5046
aix[4-9]*)
 
5047
  lt_cv_deplibs_check_method=pass_all
 
5048
  ;;
 
5049
 
 
5050
beos*)
 
5051
  lt_cv_deplibs_check_method=pass_all
 
5052
  ;;
 
5053
 
 
5054
bsdi[45]*)
 
5055
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5056
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5057
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5058
  ;;
 
5059
 
 
5060
cygwin*)
 
5061
  # func_win32_libid is a shell function defined in ltmain.sh
 
5062
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5063
  lt_cv_file_magic_cmd='func_win32_libid'
 
5064
  ;;
 
5065
 
 
5066
mingw* | pw32*)
 
5067
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5068
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5069
  # unless we find 'file', for example because we are cross-compiling.
 
5070
  if ( file / ) >/dev/null 2>&1; then
 
5071
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5072
    lt_cv_file_magic_cmd='func_win32_libid'
 
5073
  else
 
5074
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5075
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5076
  fi
 
5077
  ;;
 
5078
 
 
5079
darwin* | rhapsody*)
 
5080
  lt_cv_deplibs_check_method=pass_all
 
5081
  ;;
 
5082
 
 
5083
freebsd* | dragonfly*)
 
5084
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5085
    case $host_cpu in
 
5086
    i*86 )
 
5087
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5088
      # Let's accept both of them until this is cleared up.
 
5089
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5090
      lt_cv_file_magic_cmd=/usr/bin/file
 
5091
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5092
      ;;
 
5093
    esac
 
5094
  else
 
5095
    lt_cv_deplibs_check_method=pass_all
 
5096
  fi
 
5097
  ;;
 
5098
 
 
5099
gnu*)
 
5100
  lt_cv_deplibs_check_method=pass_all
 
5101
  ;;
 
5102
 
 
5103
hpux10.20* | hpux11*)
 
5104
  lt_cv_file_magic_cmd=/usr/bin/file
 
5105
  case $host_cpu in
 
5106
  ia64*)
 
5107
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5108
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5109
    ;;
 
5110
  hppa*64*)
 
5111
    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]'
 
5112
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5113
    ;;
 
5114
  *)
 
5115
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5116
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5117
    ;;
 
5118
  esac
 
5119
  ;;
 
5120
 
 
5121
interix[3-9]*)
 
5122
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5123
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5124
  ;;
 
5125
 
 
5126
irix5* | irix6* | nonstopux*)
 
5127
  case $LD in
 
5128
  *-32|*"-32 ") libmagic=32-bit;;
 
5129
  *-n32|*"-n32 ") libmagic=N32;;
 
5130
  *-64|*"-64 ") libmagic=64-bit;;
 
5131
  *) libmagic=never-match;;
 
5132
  esac
 
5133
  lt_cv_deplibs_check_method=pass_all
 
5134
  ;;
 
5135
 
 
5136
# This must be Linux ELF.
 
5137
linux* | k*bsd*-gnu)
 
5138
  lt_cv_deplibs_check_method=pass_all
 
5139
  ;;
 
5140
 
 
5141
netbsd*)
 
5142
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5143
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5144
  else
 
5145
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5146
  fi
 
5147
  ;;
 
5148
 
 
5149
newos6*)
 
5150
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5151
  lt_cv_file_magic_cmd=/usr/bin/file
 
5152
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5153
  ;;
 
5154
 
 
5155
nto-qnx*)
 
5156
  lt_cv_deplibs_check_method=unknown
 
5157
  ;;
 
5158
 
 
5159
openbsd*)
 
5160
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5161
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5162
  else
 
5163
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5164
  fi
 
5165
  ;;
 
5166
 
 
5167
osf3* | osf4* | osf5*)
 
5168
  lt_cv_deplibs_check_method=pass_all
 
5169
  ;;
 
5170
 
 
5171
rdos*)
 
5172
  lt_cv_deplibs_check_method=pass_all
 
5173
  ;;
 
5174
 
 
5175
solaris*)
 
5176
  lt_cv_deplibs_check_method=pass_all
 
5177
  ;;
 
5178
 
 
5179
sysv4 | sysv4.3*)
 
5180
  case $host_vendor in
 
5181
  motorola)
 
5182
    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]'
 
5183
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5184
    ;;
 
5185
  ncr)
 
5186
    lt_cv_deplibs_check_method=pass_all
 
5187
    ;;
 
5188
  sequent)
 
5189
    lt_cv_file_magic_cmd='/bin/file'
 
5190
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5191
    ;;
 
5192
  sni)
 
5193
    lt_cv_file_magic_cmd='/bin/file'
 
5194
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5195
    lt_cv_file_magic_test_file=/lib/libc.so
 
5196
    ;;
 
5197
  siemens)
 
5198
    lt_cv_deplibs_check_method=pass_all
 
5199
    ;;
 
5200
  pc)
 
5201
    lt_cv_deplibs_check_method=pass_all
 
5202
    ;;
 
5203
  esac
 
5204
  ;;
 
5205
 
 
5206
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5207
  lt_cv_deplibs_check_method=pass_all
 
5208
  ;;
 
5209
esac
 
5210
 
 
5211
fi
 
5212
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5213
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5214
file_magic_cmd=$lt_cv_file_magic_cmd
 
5215
deplibs_check_method=$lt_cv_deplibs_check_method
 
5216
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5217
 
 
5218
 
 
5219
 
 
5220
 
 
5221
# If no C compiler was specified, use CC.
 
5222
LTCC=${LTCC-"$CC"}
 
5223
 
 
5224
# If no C compiler flags were specified, use CFLAGS.
 
5225
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5226
 
 
5227
# Allow CC to be a program name with arguments.
 
5228
compiler=$CC
 
5229
 
 
5230
 
 
5231
# Check whether --enable-libtool-lock was given.
 
5232
if test "${enable_libtool_lock+set}" = set; then
 
5233
  enableval=$enable_libtool_lock;
 
5234
fi
 
5235
 
 
5236
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5237
 
 
5238
# Some flags need to be propagated to the compiler or linker for good
 
5239
# libtool support.
 
5240
case $host in
 
5241
ia64-*-hpux*)
 
5242
  # Find out which ABI we are using.
 
5243
  echo 'int i;' > conftest.$ac_ext
 
5244
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5245
  (eval $ac_compile) 2>&5
 
5246
  ac_status=$?
 
5247
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5248
  (exit $ac_status); }; then
 
5249
    case `/usr/bin/file conftest.$ac_objext` in
 
5250
    *ELF-32*)
 
5251
      HPUX_IA64_MODE="32"
 
5252
      ;;
 
5253
    *ELF-64*)
 
5254
      HPUX_IA64_MODE="64"
 
5255
      ;;
 
5256
    esac
 
5257
  fi
 
5258
  rm -rf conftest*
 
5259
  ;;
 
5260
*-*-irix6*)
 
5261
  # Find out which ABI we are using.
 
5262
  echo '#line 5262 "configure"' > conftest.$ac_ext
 
5263
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5264
  (eval $ac_compile) 2>&5
 
5265
  ac_status=$?
 
5266
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5267
  (exit $ac_status); }; then
 
5268
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5269
    case `/usr/bin/file conftest.$ac_objext` in
 
5270
    *32-bit*)
 
5271
      LD="${LD-ld} -melf32bsmip"
 
5272
      ;;
 
5273
    *N32*)
 
5274
      LD="${LD-ld} -melf32bmipn32"
 
5275
      ;;
 
5276
    *64-bit*)
 
5277
      LD="${LD-ld} -melf64bmip"
 
5278
      ;;
 
5279
    esac
 
5280
   else
 
5281
    case `/usr/bin/file conftest.$ac_objext` in
 
5282
    *32-bit*)
 
5283
      LD="${LD-ld} -32"
 
5284
      ;;
 
5285
    *N32*)
 
5286
      LD="${LD-ld} -n32"
 
5287
      ;;
 
5288
    *64-bit*)
 
5289
      LD="${LD-ld} -64"
 
5290
      ;;
 
5291
    esac
 
5292
   fi
 
5293
  fi
 
5294
  rm -rf conftest*
 
5295
  ;;
 
5296
 
 
5297
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5298
s390*-*linux*|sparc*-*linux*)
 
5299
  # Find out which ABI we are using.
 
5300
  echo 'int i;' > conftest.$ac_ext
 
5301
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5302
  (eval $ac_compile) 2>&5
 
5303
  ac_status=$?
 
5304
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5305
  (exit $ac_status); }; then
 
5306
    case `/usr/bin/file conftest.o` in
 
5307
    *32-bit*)
 
5308
      case $host in
 
5309
        x86_64-*kfreebsd*-gnu)
 
5310
          LD="${LD-ld} -m elf_i386_fbsd"
 
5311
          ;;
 
5312
        x86_64-*linux*)
 
5313
          LD="${LD-ld} -m elf_i386"
 
5314
          ;;
 
5315
        ppc64-*linux*|powerpc64-*linux*)
 
5316
          LD="${LD-ld} -m elf32ppclinux"
 
5317
          ;;
 
5318
        s390x-*linux*)
 
5319
          LD="${LD-ld} -m elf_s390"
 
5320
          ;;
 
5321
        sparc64-*linux*)
 
5322
          LD="${LD-ld} -m elf32_sparc"
 
5323
          ;;
 
5324
      esac
 
5325
      ;;
 
5326
    *64-bit*)
 
5327
      libsuff=64
 
5328
      case $host in
 
5329
        x86_64-*kfreebsd*-gnu)
 
5330
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5331
          ;;
 
5332
        x86_64-*linux*)
 
5333
          LD="${LD-ld} -m elf_x86_64"
 
5334
          ;;
 
5335
        ppc*-*linux*|powerpc*-*linux*)
 
5336
          LD="${LD-ld} -m elf64ppc"
 
5337
          ;;
 
5338
        s390*-*linux*)
 
5339
          LD="${LD-ld} -m elf64_s390"
 
5340
          ;;
 
5341
        sparc*-*linux*)
 
5342
          LD="${LD-ld} -m elf64_sparc"
 
5343
          ;;
 
5344
      esac
 
5345
      ;;
 
5346
    esac
 
5347
  fi
 
5348
  rm -rf conftest*
 
5349
  ;;
 
5350
 
 
5351
*-*-sco3.2v5*)
 
5352
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5353
  SAVE_CFLAGS="$CFLAGS"
 
5354
  CFLAGS="$CFLAGS -belf"
 
5355
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5356
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5357
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5358
  $as_echo_n "(cached) " >&6
 
5359
else
 
5360
  ac_ext=c
 
5361
ac_cpp='$CPP $CPPFLAGS'
 
5362
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5363
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5364
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5365
 
 
5366
     cat >conftest.$ac_ext <<_ACEOF
 
5367
/* confdefs.h.  */
 
5368
_ACEOF
 
5369
cat confdefs.h >>conftest.$ac_ext
 
5370
cat >>conftest.$ac_ext <<_ACEOF
 
5371
/* end confdefs.h.  */
 
5372
 
 
5373
int
 
5374
main ()
 
5375
{
 
5376
 
 
5377
  ;
 
5378
  return 0;
 
5379
}
 
5380
_ACEOF
 
5381
rm -f conftest.$ac_objext conftest$ac_exeext
 
5382
if { (ac_try="$ac_link"
 
5383
case "(($ac_try" in
 
5384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5385
  *) ac_try_echo=$ac_try;;
 
5386
esac
 
5387
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5388
$as_echo "$ac_try_echo") >&5
 
5389
  (eval "$ac_link") 2>conftest.er1
 
5390
  ac_status=$?
 
5391
  grep -v '^ *+' conftest.er1 >conftest.err
 
5392
  rm -f conftest.er1
 
5393
  cat conftest.err >&5
 
5394
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5395
  (exit $ac_status); } && {
 
5396
         test -z "$ac_c_werror_flag" ||
 
5397
         test ! -s conftest.err
 
5398
       } && test -s conftest$ac_exeext && {
 
5399
         test "$cross_compiling" = yes ||
 
5400
         $as_test_x conftest$ac_exeext
 
5401
       }; then
 
5402
  lt_cv_cc_needs_belf=yes
 
5403
else
 
5404
  $as_echo "$as_me: failed program was:" >&5
 
5405
sed 's/^/| /' conftest.$ac_ext >&5
 
5406
 
 
5407
        lt_cv_cc_needs_belf=no
 
5408
fi
 
5409
 
 
5410
rm -rf conftest.dSYM
 
5411
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5412
      conftest$ac_exeext conftest.$ac_ext
 
5413
     ac_ext=c
 
5414
ac_cpp='$CPP $CPPFLAGS'
 
5415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5418
 
 
5419
fi
 
5420
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5421
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5422
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5423
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5424
    CFLAGS="$SAVE_CFLAGS"
 
5425
  fi
 
5426
  ;;
 
5427
sparc*-*solaris*)
 
5428
  # Find out which ABI we are using.
 
5429
  echo 'int i;' > conftest.$ac_ext
 
5430
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5431
  (eval $ac_compile) 2>&5
 
5432
  ac_status=$?
 
5433
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5434
  (exit $ac_status); }; then
 
5435
    case `/usr/bin/file conftest.o` in
 
5436
    *64-bit*)
 
5437
      case $lt_cv_prog_gnu_ld in
 
5438
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5439
      *)
 
5440
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5441
          LD="${LD-ld} -64"
 
5442
        fi
 
5443
        ;;
 
5444
      esac
 
5445
      ;;
 
5446
    esac
 
5447
  fi
 
5448
  rm -rf conftest*
 
5449
  ;;
 
5450
 
 
5451
 
 
5452
esac
 
5453
 
 
5454
need_locks="$enable_libtool_lock"
 
5455
 
 
5456
 
 
5457
ac_ext=c
 
5458
ac_cpp='$CPP $CPPFLAGS'
 
5459
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5460
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5461
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5462
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5463
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
5464
# On Suns, sometimes $CPP names a directory.
 
5465
if test -n "$CPP" && test -d "$CPP"; then
 
5466
  CPP=
 
5467
fi
 
5468
if test -z "$CPP"; then
 
5469
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5470
  $as_echo_n "(cached) " >&6
 
5471
else
 
5472
      # Double quotes because CPP needs to be expanded
 
5473
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5474
    do
 
5475
      ac_preproc_ok=false
 
5476
for ac_c_preproc_warn_flag in '' yes
 
5477
do
 
5478
  # Use a header file that comes with gcc, so configuring glibc
 
5479
  # with a fresh cross-compiler works.
 
5480
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5481
  # <limits.h> exists even on freestanding compilers.
 
5482
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5483
  # not just through cpp. "Syntax error" is here to catch this case.
 
5484
  cat >conftest.$ac_ext <<_ACEOF
 
5485
/* confdefs.h.  */
 
5486
_ACEOF
 
5487
cat confdefs.h >>conftest.$ac_ext
 
5488
cat >>conftest.$ac_ext <<_ACEOF
 
5489
/* end confdefs.h.  */
 
5490
#ifdef __STDC__
 
5491
# include <limits.h>
 
5492
#else
 
5493
# include <assert.h>
 
5494
#endif
 
5495
                     Syntax error
 
5496
_ACEOF
 
5497
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5498
case "(($ac_try" in
 
5499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5500
  *) ac_try_echo=$ac_try;;
 
5501
esac
 
5502
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5503
$as_echo "$ac_try_echo") >&5
 
5504
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5505
  ac_status=$?
 
5506
  grep -v '^ *+' conftest.er1 >conftest.err
 
5507
  rm -f conftest.er1
 
5508
  cat conftest.err >&5
 
5509
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5510
  (exit $ac_status); } >/dev/null && {
 
5511
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5512
         test ! -s conftest.err
 
5513
       }; then
 
5514
  :
 
5515
else
 
5516
  $as_echo "$as_me: failed program was:" >&5
 
5517
sed 's/^/| /' conftest.$ac_ext >&5
 
5518
 
 
5519
  # Broken: fails on valid input.
 
5520
continue
 
5521
fi
 
5522
 
 
5523
rm -f conftest.err conftest.$ac_ext
 
5524
 
 
5525
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5526
  # can be detected and how.
 
5527
  cat >conftest.$ac_ext <<_ACEOF
 
5528
/* confdefs.h.  */
 
5529
_ACEOF
 
5530
cat confdefs.h >>conftest.$ac_ext
 
5531
cat >>conftest.$ac_ext <<_ACEOF
 
5532
/* end confdefs.h.  */
 
5533
#include <ac_nonexistent.h>
 
5534
_ACEOF
 
5535
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5536
case "(($ac_try" in
 
5537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5538
  *) ac_try_echo=$ac_try;;
 
5539
esac
 
5540
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5541
$as_echo "$ac_try_echo") >&5
 
5542
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5543
  ac_status=$?
 
5544
  grep -v '^ *+' conftest.er1 >conftest.err
 
5545
  rm -f conftest.er1
 
5546
  cat conftest.err >&5
 
5547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5548
  (exit $ac_status); } >/dev/null && {
 
5549
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5550
         test ! -s conftest.err
 
5551
       }; then
 
5552
  # Broken: success on invalid input.
 
5553
continue
 
5554
else
 
5555
  $as_echo "$as_me: failed program was:" >&5
 
5556
sed 's/^/| /' conftest.$ac_ext >&5
 
5557
 
 
5558
  # Passes both tests.
 
5559
ac_preproc_ok=:
 
5560
break
 
5561
fi
 
5562
 
 
5563
rm -f conftest.err conftest.$ac_ext
 
5564
 
 
5565
done
 
5566
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5567
rm -f conftest.err conftest.$ac_ext
 
5568
if $ac_preproc_ok; then
 
5569
  break
 
5570
fi
 
5571
 
 
5572
    done
 
5573
    ac_cv_prog_CPP=$CPP
 
5574
 
 
5575
fi
 
5576
  CPP=$ac_cv_prog_CPP
 
5577
else
 
5578
  ac_cv_prog_CPP=$CPP
 
5579
fi
 
5580
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
5581
$as_echo "$CPP" >&6; }
 
5582
ac_preproc_ok=false
 
5583
for ac_c_preproc_warn_flag in '' yes
 
5584
do
 
5585
  # Use a header file that comes with gcc, so configuring glibc
 
5586
  # with a fresh cross-compiler works.
 
5587
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5588
  # <limits.h> exists even on freestanding compilers.
 
5589
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5590
  # not just through cpp. "Syntax error" is here to catch this case.
 
5591
  cat >conftest.$ac_ext <<_ACEOF
 
5592
/* confdefs.h.  */
 
5593
_ACEOF
 
5594
cat confdefs.h >>conftest.$ac_ext
 
5595
cat >>conftest.$ac_ext <<_ACEOF
 
5596
/* end confdefs.h.  */
 
5597
#ifdef __STDC__
 
5598
# include <limits.h>
 
5599
#else
 
5600
# include <assert.h>
 
5601
#endif
 
5602
                     Syntax error
 
5603
_ACEOF
 
5604
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5605
case "(($ac_try" in
 
5606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5607
  *) ac_try_echo=$ac_try;;
 
5608
esac
 
5609
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5610
$as_echo "$ac_try_echo") >&5
 
5611
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5612
  ac_status=$?
 
5613
  grep -v '^ *+' conftest.er1 >conftest.err
 
5614
  rm -f conftest.er1
 
5615
  cat conftest.err >&5
 
5616
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5617
  (exit $ac_status); } >/dev/null && {
 
5618
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5619
         test ! -s conftest.err
 
5620
       }; then
 
5621
  :
 
5622
else
 
5623
  $as_echo "$as_me: failed program was:" >&5
 
5624
sed 's/^/| /' conftest.$ac_ext >&5
 
5625
 
 
5626
  # Broken: fails on valid input.
 
5627
continue
 
5628
fi
 
5629
 
 
5630
rm -f conftest.err conftest.$ac_ext
 
5631
 
 
5632
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5633
  # can be detected and how.
 
5634
  cat >conftest.$ac_ext <<_ACEOF
 
5635
/* confdefs.h.  */
 
5636
_ACEOF
 
5637
cat confdefs.h >>conftest.$ac_ext
 
5638
cat >>conftest.$ac_ext <<_ACEOF
 
5639
/* end confdefs.h.  */
 
5640
#include <ac_nonexistent.h>
 
5641
_ACEOF
 
5642
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5643
case "(($ac_try" in
 
5644
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5645
  *) ac_try_echo=$ac_try;;
 
5646
esac
 
5647
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5648
$as_echo "$ac_try_echo") >&5
 
5649
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5650
  ac_status=$?
 
5651
  grep -v '^ *+' conftest.er1 >conftest.err
 
5652
  rm -f conftest.er1
 
5653
  cat conftest.err >&5
 
5654
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5655
  (exit $ac_status); } >/dev/null && {
 
5656
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5657
         test ! -s conftest.err
 
5658
       }; then
 
5659
  # Broken: success on invalid input.
 
5660
continue
 
5661
else
 
5662
  $as_echo "$as_me: failed program was:" >&5
 
5663
sed 's/^/| /' conftest.$ac_ext >&5
 
5664
 
 
5665
  # Passes both tests.
 
5666
ac_preproc_ok=:
 
5667
break
 
5668
fi
 
5669
 
 
5670
rm -f conftest.err conftest.$ac_ext
 
5671
 
 
5672
done
 
5673
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5674
rm -f conftest.err conftest.$ac_ext
 
5675
if $ac_preproc_ok; then
 
5676
  :
 
5677
else
 
5678
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5679
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5680
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5681
See \`config.log' for more details." >&5
 
5682
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5683
See \`config.log' for more details." >&2;}
 
5684
   { (exit 1); exit 1; }; }; }
 
5685
fi
 
5686
 
 
5687
ac_ext=c
 
5688
ac_cpp='$CPP $CPPFLAGS'
 
5689
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5690
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5691
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5692
 
 
5693
 
 
5694
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5695
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5696
if test "${ac_cv_header_stdc+set}" = set; then
 
5697
  $as_echo_n "(cached) " >&6
 
5698
else
 
5699
  cat >conftest.$ac_ext <<_ACEOF
 
5700
/* confdefs.h.  */
 
5701
_ACEOF
 
5702
cat confdefs.h >>conftest.$ac_ext
 
5703
cat >>conftest.$ac_ext <<_ACEOF
 
5704
/* end confdefs.h.  */
 
5705
#include <stdlib.h>
 
5706
#include <stdarg.h>
 
5707
#include <string.h>
 
5708
#include <float.h>
 
5709
 
 
5710
int
 
5711
main ()
 
5712
{
 
5713
 
 
5714
  ;
 
5715
  return 0;
 
5716
}
 
5717
_ACEOF
 
5718
rm -f conftest.$ac_objext
 
5719
if { (ac_try="$ac_compile"
 
5720
case "(($ac_try" in
 
5721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5722
  *) ac_try_echo=$ac_try;;
 
5723
esac
 
5724
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5725
$as_echo "$ac_try_echo") >&5
 
5726
  (eval "$ac_compile") 2>conftest.er1
 
5727
  ac_status=$?
 
5728
  grep -v '^ *+' conftest.er1 >conftest.err
 
5729
  rm -f conftest.er1
 
5730
  cat conftest.err >&5
 
5731
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5732
  (exit $ac_status); } && {
 
5733
         test -z "$ac_c_werror_flag" ||
 
5734
         test ! -s conftest.err
 
5735
       } && test -s conftest.$ac_objext; then
 
5736
  ac_cv_header_stdc=yes
 
5737
else
 
5738
  $as_echo "$as_me: failed program was:" >&5
 
5739
sed 's/^/| /' conftest.$ac_ext >&5
 
5740
 
 
5741
        ac_cv_header_stdc=no
 
5742
fi
 
5743
 
 
5744
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5745
 
 
5746
if test $ac_cv_header_stdc = yes; then
 
5747
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5748
  cat >conftest.$ac_ext <<_ACEOF
 
5749
/* confdefs.h.  */
 
5750
_ACEOF
 
5751
cat confdefs.h >>conftest.$ac_ext
 
5752
cat >>conftest.$ac_ext <<_ACEOF
 
5753
/* end confdefs.h.  */
 
5754
#include <string.h>
 
5755
 
 
5756
_ACEOF
 
5757
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5758
  $EGREP "memchr" >/dev/null 2>&1; then
 
5759
  :
 
5760
else
 
5761
  ac_cv_header_stdc=no
 
5762
fi
 
5763
rm -f conftest*
 
5764
 
 
5765
fi
 
5766
 
 
5767
if test $ac_cv_header_stdc = yes; then
 
5768
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5769
  cat >conftest.$ac_ext <<_ACEOF
 
5770
/* confdefs.h.  */
 
5771
_ACEOF
 
5772
cat confdefs.h >>conftest.$ac_ext
 
5773
cat >>conftest.$ac_ext <<_ACEOF
 
5774
/* end confdefs.h.  */
 
5775
#include <stdlib.h>
 
5776
 
 
5777
_ACEOF
 
5778
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5779
  $EGREP "free" >/dev/null 2>&1; then
 
5780
  :
 
5781
else
 
5782
  ac_cv_header_stdc=no
 
5783
fi
 
5784
rm -f conftest*
 
5785
 
 
5786
fi
 
5787
 
 
5788
if test $ac_cv_header_stdc = yes; then
 
5789
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5790
  if test "$cross_compiling" = yes; then
 
5791
  :
 
5792
else
 
5793
  cat >conftest.$ac_ext <<_ACEOF
 
5794
/* confdefs.h.  */
 
5795
_ACEOF
 
5796
cat confdefs.h >>conftest.$ac_ext
 
5797
cat >>conftest.$ac_ext <<_ACEOF
 
5798
/* end confdefs.h.  */
 
5799
#include <ctype.h>
 
5800
#include <stdlib.h>
 
5801
#if ((' ' & 0x0FF) == 0x020)
 
5802
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5803
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5804
#else
 
5805
# define ISLOWER(c) \
 
5806
                   (('a' <= (c) && (c) <= 'i') \
 
5807
                     || ('j' <= (c) && (c) <= 'r') \
 
5808
                     || ('s' <= (c) && (c) <= 'z'))
 
5809
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5810
#endif
 
5811
 
 
5812
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5813
int
 
5814
main ()
 
5815
{
 
5816
  int i;
 
5817
  for (i = 0; i < 256; i++)
 
5818
    if (XOR (islower (i), ISLOWER (i))
 
5819
        || toupper (i) != TOUPPER (i))
 
5820
      return 2;
 
5821
  return 0;
 
5822
}
 
5823
_ACEOF
 
5824
rm -f conftest$ac_exeext
 
5825
if { (ac_try="$ac_link"
 
5826
case "(($ac_try" in
 
5827
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5828
  *) ac_try_echo=$ac_try;;
 
5829
esac
 
5830
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5831
$as_echo "$ac_try_echo") >&5
 
5832
  (eval "$ac_link") 2>&5
 
5833
  ac_status=$?
 
5834
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5835
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5836
  { (case "(($ac_try" in
 
5837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5838
  *) ac_try_echo=$ac_try;;
 
5839
esac
 
5840
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5841
$as_echo "$ac_try_echo") >&5
 
5842
  (eval "$ac_try") 2>&5
 
5843
  ac_status=$?
 
5844
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5845
  (exit $ac_status); }; }; then
 
5846
  :
 
5847
else
 
5848
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5849
$as_echo "$as_me: failed program was:" >&5
 
5850
sed 's/^/| /' conftest.$ac_ext >&5
 
5851
 
 
5852
( exit $ac_status )
 
5853
ac_cv_header_stdc=no
 
5854
fi
 
5855
rm -rf conftest.dSYM
 
5856
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5857
fi
 
5858
 
 
5859
 
 
5860
fi
 
5861
fi
 
5862
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5863
$as_echo "$ac_cv_header_stdc" >&6; }
 
5864
if test $ac_cv_header_stdc = yes; then
 
5865
 
 
5866
cat >>confdefs.h <<\_ACEOF
 
5867
#define STDC_HEADERS 1
 
5868
_ACEOF
 
5869
 
 
5870
fi
 
5871
 
 
5872
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5873
 
 
5874
 
 
5875
 
 
5876
 
 
5877
 
 
5878
 
 
5879
 
 
5880
 
 
5881
 
 
5882
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5883
                  inttypes.h stdint.h unistd.h
 
5884
do
 
5885
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5886
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5887
$as_echo_n "checking for $ac_header... " >&6; }
 
5888
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5889
  $as_echo_n "(cached) " >&6
 
5890
else
 
5891
  cat >conftest.$ac_ext <<_ACEOF
 
5892
/* confdefs.h.  */
 
5893
_ACEOF
 
5894
cat confdefs.h >>conftest.$ac_ext
 
5895
cat >>conftest.$ac_ext <<_ACEOF
 
5896
/* end confdefs.h.  */
 
5897
$ac_includes_default
 
5898
 
 
5899
#include <$ac_header>
 
5900
_ACEOF
 
5901
rm -f conftest.$ac_objext
 
5902
if { (ac_try="$ac_compile"
 
5903
case "(($ac_try" in
 
5904
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5905
  *) ac_try_echo=$ac_try;;
 
5906
esac
 
5907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5908
$as_echo "$ac_try_echo") >&5
 
5909
  (eval "$ac_compile") 2>conftest.er1
 
5910
  ac_status=$?
 
5911
  grep -v '^ *+' conftest.er1 >conftest.err
 
5912
  rm -f conftest.er1
 
5913
  cat conftest.err >&5
 
5914
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5915
  (exit $ac_status); } && {
 
5916
         test -z "$ac_c_werror_flag" ||
 
5917
         test ! -s conftest.err
 
5918
       } && test -s conftest.$ac_objext; then
 
5919
  eval "$as_ac_Header=yes"
 
5920
else
 
5921
  $as_echo "$as_me: failed program was:" >&5
 
5922
sed 's/^/| /' conftest.$ac_ext >&5
 
5923
 
 
5924
        eval "$as_ac_Header=no"
 
5925
fi
 
5926
 
 
5927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5928
fi
 
5929
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5930
                 $as_echo "$as_val"'`
 
5931
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5932
$as_echo "$ac_res" >&6; }
 
5933
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5934
                 $as_echo "$as_val"'`
 
5935
   if test "x$as_val" = x""yes; then
 
5936
  cat >>confdefs.h <<_ACEOF
 
5937
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5938
_ACEOF
 
5939
 
 
5940
fi
 
5941
 
 
5942
done
 
5943
 
 
5944
 
 
5945
 
 
5946
for ac_header in dlfcn.h
 
5947
do
 
5948
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5949
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5950
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5951
$as_echo_n "checking for $ac_header... " >&6; }
 
5952
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5953
  $as_echo_n "(cached) " >&6
 
5954
fi
 
5955
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5956
                 $as_echo "$as_val"'`
 
5957
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5958
$as_echo "$ac_res" >&6; }
 
5959
else
 
5960
  # Is the header compilable?
 
5961
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5962
$as_echo_n "checking $ac_header usability... " >&6; }
 
5963
cat >conftest.$ac_ext <<_ACEOF
 
5964
/* confdefs.h.  */
 
5965
_ACEOF
 
5966
cat confdefs.h >>conftest.$ac_ext
 
5967
cat >>conftest.$ac_ext <<_ACEOF
 
5968
/* end confdefs.h.  */
 
5969
$ac_includes_default
 
5970
#include <$ac_header>
 
5971
_ACEOF
 
5972
rm -f conftest.$ac_objext
 
5973
if { (ac_try="$ac_compile"
 
5974
case "(($ac_try" in
 
5975
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5976
  *) ac_try_echo=$ac_try;;
 
5977
esac
 
5978
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5979
$as_echo "$ac_try_echo") >&5
 
5980
  (eval "$ac_compile") 2>conftest.er1
 
5981
  ac_status=$?
 
5982
  grep -v '^ *+' conftest.er1 >conftest.err
 
5983
  rm -f conftest.er1
 
5984
  cat conftest.err >&5
 
5985
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5986
  (exit $ac_status); } && {
 
5987
         test -z "$ac_c_werror_flag" ||
 
5988
         test ! -s conftest.err
 
5989
       } && test -s conftest.$ac_objext; then
 
5990
  ac_header_compiler=yes
 
5991
else
 
5992
  $as_echo "$as_me: failed program was:" >&5
 
5993
sed 's/^/| /' conftest.$ac_ext >&5
 
5994
 
 
5995
        ac_header_compiler=no
 
5996
fi
 
5997
 
 
5998
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5999
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6000
$as_echo "$ac_header_compiler" >&6; }
 
6001
 
 
6002
# Is the header present?
 
6003
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6004
$as_echo_n "checking $ac_header presence... " >&6; }
 
6005
cat >conftest.$ac_ext <<_ACEOF
 
6006
/* confdefs.h.  */
 
6007
_ACEOF
 
6008
cat confdefs.h >>conftest.$ac_ext
 
6009
cat >>conftest.$ac_ext <<_ACEOF
 
6010
/* end confdefs.h.  */
 
6011
#include <$ac_header>
 
6012
_ACEOF
 
6013
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6014
case "(($ac_try" in
 
6015
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6016
  *) ac_try_echo=$ac_try;;
 
6017
esac
 
6018
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6019
$as_echo "$ac_try_echo") >&5
 
6020
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6021
  ac_status=$?
 
6022
  grep -v '^ *+' conftest.er1 >conftest.err
 
6023
  rm -f conftest.er1
 
6024
  cat conftest.err >&5
 
6025
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6026
  (exit $ac_status); } >/dev/null && {
 
6027
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6028
         test ! -s conftest.err
 
6029
       }; then
 
6030
  ac_header_preproc=yes
 
6031
else
 
6032
  $as_echo "$as_me: failed program was:" >&5
 
6033
sed 's/^/| /' conftest.$ac_ext >&5
 
6034
 
 
6035
  ac_header_preproc=no
 
6036
fi
 
6037
 
 
6038
rm -f conftest.err conftest.$ac_ext
 
6039
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6040
$as_echo "$ac_header_preproc" >&6; }
 
6041
 
 
6042
# So?  What about this header?
 
6043
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6044
  yes:no: )
 
6045
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6046
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6047
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6048
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6049
    ac_header_preproc=yes
 
6050
    ;;
 
6051
  no:yes:* )
 
6052
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6053
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6054
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6055
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6056
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6057
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6058
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6059
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6060
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6061
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6062
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6063
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6064
    ( cat <<\_ASBOX
 
6065
## --------------------- ##
 
6066
## Report this to 3.12.4 ##
 
6067
## --------------------- ##
 
6068
_ASBOX
 
6069
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6070
    ;;
 
6071
esac
 
6072
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6073
$as_echo_n "checking for $ac_header... " >&6; }
 
6074
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6075
  $as_echo_n "(cached) " >&6
 
6076
else
 
6077
  eval "$as_ac_Header=\$ac_header_preproc"
 
6078
fi
 
6079
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6080
                 $as_echo "$as_val"'`
 
6081
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6082
$as_echo "$ac_res" >&6; }
 
6083
 
 
6084
fi
 
6085
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6086
                 $as_echo "$as_val"'`
 
6087
   if test "x$as_val" = x""yes; then
 
6088
  cat >>confdefs.h <<_ACEOF
 
6089
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6090
_ACEOF
 
6091
 
 
6092
fi
 
6093
 
 
6094
done
 
6095
 
 
6096
 
 
6097
 
 
6098
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6099
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6100
    (test "X$CXX" != "Xg++"))) ; then
 
6101
  ac_ext=cpp
 
6102
ac_cpp='$CXXCPP $CPPFLAGS'
 
6103
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6104
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6105
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6106
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6107
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
6108
if test -z "$CXXCPP"; then
 
6109
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6110
  $as_echo_n "(cached) " >&6
 
6111
else
 
6112
      # Double quotes because CXXCPP needs to be expanded
 
6113
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6114
    do
 
6115
      ac_preproc_ok=false
 
6116
for ac_cxx_preproc_warn_flag in '' yes
 
6117
do
 
6118
  # Use a header file that comes with gcc, so configuring glibc
 
6119
  # with a fresh cross-compiler works.
 
6120
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6121
  # <limits.h> exists even on freestanding compilers.
 
6122
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6123
  # not just through cpp. "Syntax error" is here to catch this case.
 
6124
  cat >conftest.$ac_ext <<_ACEOF
 
6125
/* confdefs.h.  */
 
6126
_ACEOF
 
6127
cat confdefs.h >>conftest.$ac_ext
 
6128
cat >>conftest.$ac_ext <<_ACEOF
 
6129
/* end confdefs.h.  */
 
6130
#ifdef __STDC__
 
6131
# include <limits.h>
 
6132
#else
 
6133
# include <assert.h>
 
6134
#endif
 
6135
                     Syntax error
 
6136
_ACEOF
 
6137
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6138
case "(($ac_try" in
 
6139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6140
  *) ac_try_echo=$ac_try;;
 
6141
esac
 
6142
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6143
$as_echo "$ac_try_echo") >&5
 
6144
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6145
  ac_status=$?
 
6146
  grep -v '^ *+' conftest.er1 >conftest.err
 
6147
  rm -f conftest.er1
 
6148
  cat conftest.err >&5
 
6149
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6150
  (exit $ac_status); } >/dev/null && {
 
6151
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6152
         test ! -s conftest.err
 
6153
       }; then
 
6154
  :
 
6155
else
 
6156
  $as_echo "$as_me: failed program was:" >&5
 
6157
sed 's/^/| /' conftest.$ac_ext >&5
 
6158
 
 
6159
  # Broken: fails on valid input.
 
6160
continue
 
6161
fi
 
6162
 
 
6163
rm -f conftest.err conftest.$ac_ext
 
6164
 
 
6165
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6166
  # can be detected and how.
 
6167
  cat >conftest.$ac_ext <<_ACEOF
 
6168
/* confdefs.h.  */
 
6169
_ACEOF
 
6170
cat confdefs.h >>conftest.$ac_ext
 
6171
cat >>conftest.$ac_ext <<_ACEOF
 
6172
/* end confdefs.h.  */
 
6173
#include <ac_nonexistent.h>
 
6174
_ACEOF
 
6175
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6176
case "(($ac_try" in
 
6177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6178
  *) ac_try_echo=$ac_try;;
 
6179
esac
 
6180
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6181
$as_echo "$ac_try_echo") >&5
 
6182
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6183
  ac_status=$?
 
6184
  grep -v '^ *+' conftest.er1 >conftest.err
 
6185
  rm -f conftest.er1
 
6186
  cat conftest.err >&5
 
6187
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6188
  (exit $ac_status); } >/dev/null && {
 
6189
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6190
         test ! -s conftest.err
 
6191
       }; then
 
6192
  # Broken: success on invalid input.
 
6193
continue
 
6194
else
 
6195
  $as_echo "$as_me: failed program was:" >&5
 
6196
sed 's/^/| /' conftest.$ac_ext >&5
 
6197
 
 
6198
  # Passes both tests.
 
6199
ac_preproc_ok=:
 
6200
break
 
6201
fi
 
6202
 
 
6203
rm -f conftest.err conftest.$ac_ext
 
6204
 
 
6205
done
 
6206
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6207
rm -f conftest.err conftest.$ac_ext
 
6208
if $ac_preproc_ok; then
 
6209
  break
 
6210
fi
 
6211
 
 
6212
    done
 
6213
    ac_cv_prog_CXXCPP=$CXXCPP
 
6214
 
 
6215
fi
 
6216
  CXXCPP=$ac_cv_prog_CXXCPP
 
6217
else
 
6218
  ac_cv_prog_CXXCPP=$CXXCPP
 
6219
fi
 
6220
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6221
$as_echo "$CXXCPP" >&6; }
 
6222
ac_preproc_ok=false
 
6223
for ac_cxx_preproc_warn_flag in '' yes
 
6224
do
 
6225
  # Use a header file that comes with gcc, so configuring glibc
 
6226
  # with a fresh cross-compiler works.
 
6227
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6228
  # <limits.h> exists even on freestanding compilers.
 
6229
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6230
  # not just through cpp. "Syntax error" is here to catch this case.
 
6231
  cat >conftest.$ac_ext <<_ACEOF
 
6232
/* confdefs.h.  */
 
6233
_ACEOF
 
6234
cat confdefs.h >>conftest.$ac_ext
 
6235
cat >>conftest.$ac_ext <<_ACEOF
 
6236
/* end confdefs.h.  */
 
6237
#ifdef __STDC__
 
6238
# include <limits.h>
 
6239
#else
 
6240
# include <assert.h>
 
6241
#endif
 
6242
                     Syntax error
 
6243
_ACEOF
 
6244
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6245
case "(($ac_try" in
 
6246
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6247
  *) ac_try_echo=$ac_try;;
 
6248
esac
 
6249
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6250
$as_echo "$ac_try_echo") >&5
 
6251
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6252
  ac_status=$?
 
6253
  grep -v '^ *+' conftest.er1 >conftest.err
 
6254
  rm -f conftest.er1
 
6255
  cat conftest.err >&5
 
6256
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6257
  (exit $ac_status); } >/dev/null && {
 
6258
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6259
         test ! -s conftest.err
 
6260
       }; then
 
6261
  :
 
6262
else
 
6263
  $as_echo "$as_me: failed program was:" >&5
 
6264
sed 's/^/| /' conftest.$ac_ext >&5
 
6265
 
 
6266
  # Broken: fails on valid input.
 
6267
continue
 
6268
fi
 
6269
 
 
6270
rm -f conftest.err conftest.$ac_ext
 
6271
 
 
6272
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6273
  # can be detected and how.
 
6274
  cat >conftest.$ac_ext <<_ACEOF
 
6275
/* confdefs.h.  */
 
6276
_ACEOF
 
6277
cat confdefs.h >>conftest.$ac_ext
 
6278
cat >>conftest.$ac_ext <<_ACEOF
 
6279
/* end confdefs.h.  */
 
6280
#include <ac_nonexistent.h>
 
6281
_ACEOF
 
6282
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6283
case "(($ac_try" in
 
6284
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6285
  *) ac_try_echo=$ac_try;;
 
6286
esac
 
6287
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6288
$as_echo "$ac_try_echo") >&5
 
6289
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6290
  ac_status=$?
 
6291
  grep -v '^ *+' conftest.er1 >conftest.err
 
6292
  rm -f conftest.er1
 
6293
  cat conftest.err >&5
 
6294
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6295
  (exit $ac_status); } >/dev/null && {
 
6296
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6297
         test ! -s conftest.err
 
6298
       }; then
 
6299
  # Broken: success on invalid input.
 
6300
continue
 
6301
else
 
6302
  $as_echo "$as_me: failed program was:" >&5
 
6303
sed 's/^/| /' conftest.$ac_ext >&5
 
6304
 
 
6305
  # Passes both tests.
 
6306
ac_preproc_ok=:
 
6307
break
 
6308
fi
 
6309
 
 
6310
rm -f conftest.err conftest.$ac_ext
 
6311
 
 
6312
done
 
6313
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6314
rm -f conftest.err conftest.$ac_ext
 
6315
if $ac_preproc_ok; then
 
6316
  :
 
6317
else
 
6318
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6319
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6320
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6321
See \`config.log' for more details." >&5
 
6322
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6323
See \`config.log' for more details." >&2;}
 
6324
   { (exit 1); exit 1; }; }; }
 
6325
fi
 
6326
 
 
6327
ac_ext=cpp
 
6328
ac_cpp='$CXXCPP $CPPFLAGS'
 
6329
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6330
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6331
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6332
 
 
6333
fi
 
6334
 
 
6335
 
 
6336
ac_ext=f
 
6337
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6338
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6339
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6340
if test -n "$ac_tool_prefix"; then
 
6341
  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
 
6342
  do
 
6343
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6344
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6345
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6346
$as_echo_n "checking for $ac_word... " >&6; }
 
6347
if test "${ac_cv_prog_F77+set}" = set; then
 
6348
  $as_echo_n "(cached) " >&6
 
6349
else
 
6350
  if test -n "$F77"; then
 
6351
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6352
else
 
6353
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6354
for as_dir in $PATH
 
6355
do
 
6356
  IFS=$as_save_IFS
 
6357
  test -z "$as_dir" && as_dir=.
 
6358
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6359
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6360
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6361
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6362
    break 2
 
6363
  fi
 
6364
done
 
6365
done
 
6366
IFS=$as_save_IFS
 
6367
 
 
6368
fi
 
6369
fi
 
6370
F77=$ac_cv_prog_F77
 
6371
if test -n "$F77"; then
 
6372
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6373
$as_echo "$F77" >&6; }
 
6374
else
 
6375
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6376
$as_echo "no" >&6; }
 
6377
fi
 
6378
 
 
6379
 
 
6380
    test -n "$F77" && break
 
6381
  done
 
6382
fi
 
6383
if test -z "$F77"; then
 
6384
  ac_ct_F77=$F77
 
6385
  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
 
6386
do
 
6387
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6388
set dummy $ac_prog; ac_word=$2
 
6389
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6390
$as_echo_n "checking for $ac_word... " >&6; }
 
6391
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6392
  $as_echo_n "(cached) " >&6
 
6393
else
 
6394
  if test -n "$ac_ct_F77"; then
 
6395
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6396
else
 
6397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6398
for as_dir in $PATH
 
6399
do
 
6400
  IFS=$as_save_IFS
 
6401
  test -z "$as_dir" && as_dir=.
 
6402
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6404
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6405
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6406
    break 2
 
6407
  fi
 
6408
done
 
6409
done
 
6410
IFS=$as_save_IFS
 
6411
 
 
6412
fi
 
6413
fi
 
6414
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6415
if test -n "$ac_ct_F77"; then
 
6416
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6417
$as_echo "$ac_ct_F77" >&6; }
 
6418
else
 
6419
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6420
$as_echo "no" >&6; }
 
6421
fi
 
6422
 
 
6423
 
 
6424
  test -n "$ac_ct_F77" && break
 
6425
done
 
6426
 
 
6427
  if test "x$ac_ct_F77" = x; then
 
6428
    F77=""
 
6429
  else
 
6430
    case $cross_compiling:$ac_tool_warned in
 
6431
yes:)
 
6432
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6433
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6434
ac_tool_warned=yes ;;
 
6435
esac
 
6436
    F77=$ac_ct_F77
 
6437
  fi
 
6438
fi
 
6439
 
 
6440
 
 
6441
# Provide some information about the compiler.
 
6442
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6443
set X $ac_compile
 
6444
ac_compiler=$2
 
6445
{ (ac_try="$ac_compiler --version >&5"
 
6446
case "(($ac_try" in
 
6447
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6448
  *) ac_try_echo=$ac_try;;
 
6449
esac
 
6450
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6451
$as_echo "$ac_try_echo") >&5
 
6452
  (eval "$ac_compiler --version >&5") 2>&5
 
6453
  ac_status=$?
 
6454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6455
  (exit $ac_status); }
 
6456
{ (ac_try="$ac_compiler -v >&5"
 
6457
case "(($ac_try" in
 
6458
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6459
  *) ac_try_echo=$ac_try;;
 
6460
esac
 
6461
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6462
$as_echo "$ac_try_echo") >&5
 
6463
  (eval "$ac_compiler -v >&5") 2>&5
 
6464
  ac_status=$?
 
6465
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6466
  (exit $ac_status); }
 
6467
{ (ac_try="$ac_compiler -V >&5"
 
6468
case "(($ac_try" in
 
6469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6470
  *) ac_try_echo=$ac_try;;
 
6471
esac
 
6472
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6473
$as_echo "$ac_try_echo") >&5
 
6474
  (eval "$ac_compiler -V >&5") 2>&5
 
6475
  ac_status=$?
 
6476
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6477
  (exit $ac_status); }
 
6478
rm -f a.out
 
6479
 
 
6480
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6481
# input file.  (Note that this only needs to work for GNU compilers.)
 
6482
ac_save_ext=$ac_ext
 
6483
ac_ext=F
 
6484
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6485
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6486
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6487
  $as_echo_n "(cached) " >&6
 
6488
else
 
6489
  cat >conftest.$ac_ext <<_ACEOF
 
6490
      program main
 
6491
#ifndef __GNUC__
 
6492
       choke me
 
6493
#endif
 
6494
 
 
6495
      end
 
6496
_ACEOF
 
6497
rm -f conftest.$ac_objext
 
6498
if { (ac_try="$ac_compile"
 
6499
case "(($ac_try" in
 
6500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6501
  *) ac_try_echo=$ac_try;;
 
6502
esac
 
6503
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6504
$as_echo "$ac_try_echo") >&5
 
6505
  (eval "$ac_compile") 2>conftest.er1
 
6506
  ac_status=$?
 
6507
  grep -v '^ *+' conftest.er1 >conftest.err
 
6508
  rm -f conftest.er1
 
6509
  cat conftest.err >&5
 
6510
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6511
  (exit $ac_status); } && {
 
6512
         test -z "$ac_f77_werror_flag" ||
 
6513
         test ! -s conftest.err
 
6514
       } && test -s conftest.$ac_objext; then
 
6515
  ac_compiler_gnu=yes
 
6516
else
 
6517
  $as_echo "$as_me: failed program was:" >&5
 
6518
sed 's/^/| /' conftest.$ac_ext >&5
 
6519
 
 
6520
        ac_compiler_gnu=no
 
6521
fi
 
6522
 
 
6523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6524
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6525
 
 
6526
fi
 
6527
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6528
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6529
ac_ext=$ac_save_ext
 
6530
ac_test_FFLAGS=${FFLAGS+set}
 
6531
ac_save_FFLAGS=$FFLAGS
 
6532
FFLAGS=
 
6533
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6534
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6535
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6536
  $as_echo_n "(cached) " >&6
 
6537
else
 
6538
  FFLAGS=-g
 
6539
cat >conftest.$ac_ext <<_ACEOF
 
6540
      program main
 
6541
 
 
6542
      end
 
6543
_ACEOF
 
6544
rm -f conftest.$ac_objext
 
6545
if { (ac_try="$ac_compile"
 
6546
case "(($ac_try" in
 
6547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6548
  *) ac_try_echo=$ac_try;;
 
6549
esac
 
6550
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6551
$as_echo "$ac_try_echo") >&5
 
6552
  (eval "$ac_compile") 2>conftest.er1
 
6553
  ac_status=$?
 
6554
  grep -v '^ *+' conftest.er1 >conftest.err
 
6555
  rm -f conftest.er1
 
6556
  cat conftest.err >&5
 
6557
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6558
  (exit $ac_status); } && {
 
6559
         test -z "$ac_f77_werror_flag" ||
 
6560
         test ! -s conftest.err
 
6561
       } && test -s conftest.$ac_objext; then
 
6562
  ac_cv_prog_f77_g=yes
 
6563
else
 
6564
  $as_echo "$as_me: failed program was:" >&5
 
6565
sed 's/^/| /' conftest.$ac_ext >&5
 
6566
 
 
6567
        ac_cv_prog_f77_g=no
 
6568
fi
 
6569
 
 
6570
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6571
 
 
6572
fi
 
6573
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6574
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6575
if test "$ac_test_FFLAGS" = set; then
 
6576
  FFLAGS=$ac_save_FFLAGS
 
6577
elif test $ac_cv_prog_f77_g = yes; then
 
6578
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6579
    FFLAGS="-g -O2"
 
6580
  else
 
6581
    FFLAGS="-g"
 
6582
  fi
 
6583
else
 
6584
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6585
    FFLAGS="-O2"
 
6586
  else
 
6587
    FFLAGS=
 
6588
  fi
 
6589
fi
 
6590
 
 
6591
if test $ac_compiler_gnu = yes; then
 
6592
  G77=yes
 
6593
else
 
6594
  G77=
 
6595
fi
 
6596
ac_ext=c
 
6597
ac_cpp='$CPP $CPPFLAGS'
 
6598
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6599
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6600
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6601
 
 
6602
 
 
6603
 
 
6604
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6605
# find the maximum length of command line arguments
 
6606
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6607
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6608
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6609
  $as_echo_n "(cached) " >&6
 
6610
else
 
6611
    i=0
 
6612
  teststring="ABCD"
 
6613
 
 
6614
  case $build_os in
 
6615
  msdosdjgpp*)
 
6616
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6617
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6618
    # during glob expansion).  Even if it were fixed, the result of this
 
6619
    # check would be larger than it should be.
 
6620
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6621
    ;;
 
6622
 
 
6623
  gnu*)
 
6624
    # Under GNU Hurd, this test is not required because there is
 
6625
    # no limit to the length of command line arguments.
 
6626
    # Libtool will interpret -1 as no limit whatsoever
 
6627
    lt_cv_sys_max_cmd_len=-1;
 
6628
    ;;
 
6629
 
 
6630
  cygwin* | mingw*)
 
6631
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6632
    # about 5 minutes as the teststring grows exponentially.
 
6633
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6634
    # you end up with a "frozen" computer, even though with patience
 
6635
    # the test eventually succeeds (with a max line length of 256k).
 
6636
    # Instead, let's just punt: use the minimum linelength reported by
 
6637
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6638
    lt_cv_sys_max_cmd_len=8192;
 
6639
    ;;
 
6640
 
 
6641
  amigaos*)
 
6642
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6643
    # So we just punt and use a minimum line length of 8192.
 
6644
    lt_cv_sys_max_cmd_len=8192;
 
6645
    ;;
 
6646
 
 
6647
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6648
    # This has been around since 386BSD, at least.  Likely further.
 
6649
    if test -x /sbin/sysctl; then
 
6650
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6651
    elif test -x /usr/sbin/sysctl; then
 
6652
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6653
    else
 
6654
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6655
    fi
 
6656
    # And add a safety zone
 
6657
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6658
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6659
    ;;
 
6660
 
 
6661
  interix*)
 
6662
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6663
    lt_cv_sys_max_cmd_len=196608
 
6664
    ;;
 
6665
 
 
6666
  osf*)
 
6667
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6668
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6669
    # nice to cause kernel panics so lets avoid the loop below.
 
6670
    # First set a reasonable default.
 
6671
    lt_cv_sys_max_cmd_len=16384
 
6672
    #
 
6673
    if test -x /sbin/sysconfig; then
 
6674
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6675
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6676
      esac
 
6677
    fi
 
6678
    ;;
 
6679
  sco3.2v5*)
 
6680
    lt_cv_sys_max_cmd_len=102400
 
6681
    ;;
 
6682
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6683
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6684
    if test -n "$kargmax"; then
 
6685
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6686
    else
 
6687
      lt_cv_sys_max_cmd_len=32768
 
6688
    fi
 
6689
    ;;
 
6690
  *)
 
6691
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6692
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6693
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6694
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6695
    else
 
6696
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6697
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6698
               = "XX$teststring") >/dev/null 2>&1 &&
 
6699
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6700
              lt_cv_sys_max_cmd_len=$new_result &&
 
6701
              test $i != 17 # 1/2 MB should be enough
 
6702
      do
 
6703
        i=`expr $i + 1`
 
6704
        teststring=$teststring$teststring
 
6705
      done
 
6706
      teststring=
 
6707
      # Add a significant safety factor because C++ compilers can tack on massive
 
6708
      # amounts of additional arguments before passing them to the linker.
 
6709
      # It appears as though 1/2 is a usable value.
 
6710
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6711
    fi
 
6712
    ;;
 
6713
  esac
 
6714
 
 
6715
fi
 
6716
 
 
6717
if test -n $lt_cv_sys_max_cmd_len ; then
 
6718
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6719
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6720
else
 
6721
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6722
$as_echo "none" >&6; }
 
6723
fi
 
6724
 
 
6725
 
 
6726
 
 
6727
 
 
6728
 
 
6729
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6730
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6731
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6732
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6733
  $as_echo_n "(cached) " >&6
 
6734
else
 
6735
 
 
6736
# These are sane defaults that work on at least a few old systems.
 
6737
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6738
 
 
6739
# Character class describing NM global symbol codes.
 
6740
symcode='[BCDEGRST]'
 
6741
 
 
6742
# Regexp to match symbols that can be accessed directly from C.
 
6743
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6744
 
 
6745
# Transform an extracted symbol line into a proper C declaration
 
6746
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6747
 
 
6748
# Transform an extracted symbol line into symbol name and symbol address
 
6749
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'"
 
6750
 
 
6751
# Define system-specific variables.
 
6752
case $host_os in
 
6753
aix*)
 
6754
  symcode='[BCDT]'
 
6755
  ;;
 
6756
cygwin* | mingw* | pw32*)
 
6757
  symcode='[ABCDGISTW]'
 
6758
  ;;
 
6759
hpux*) # Its linker distinguishes data from code symbols
 
6760
  if test "$host_cpu" = ia64; then
 
6761
    symcode='[ABCDEGRST]'
 
6762
  fi
 
6763
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6764
  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'"
 
6765
  ;;
 
6766
linux* | k*bsd*-gnu)
 
6767
  if test "$host_cpu" = ia64; then
 
6768
    symcode='[ABCDGIRSTW]'
 
6769
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6770
    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'"
 
6771
  fi
 
6772
  ;;
 
6773
irix* | nonstopux*)
 
6774
  symcode='[BCDEGRST]'
 
6775
  ;;
 
6776
osf*)
 
6777
  symcode='[BCDEGQRST]'
 
6778
  ;;
 
6779
solaris*)
 
6780
  symcode='[BDRT]'
 
6781
  ;;
 
6782
sco3.2v5*)
 
6783
  symcode='[DT]'
 
6784
  ;;
 
6785
sysv4.2uw2*)
 
6786
  symcode='[DT]'
 
6787
  ;;
 
6788
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6789
  symcode='[ABDT]'
 
6790
  ;;
 
6791
sysv4)
 
6792
  symcode='[DFNSTU]'
 
6793
  ;;
 
6794
esac
 
6795
 
 
6796
# Handle CRLF in mingw tool chain
 
6797
opt_cr=
 
6798
case $build_os in
 
6799
mingw*)
 
6800
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6801
  ;;
 
6802
esac
 
6803
 
 
6804
# If we're using GNU nm, then use its standard symbol codes.
 
6805
case `$NM -V 2>&1` in
 
6806
*GNU* | *'with BFD'*)
 
6807
  symcode='[ABCDGIRSTW]' ;;
 
6808
esac
 
6809
 
 
6810
# Try without a prefix undercore, then with it.
 
6811
for ac_symprfx in "" "_"; do
 
6812
 
 
6813
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6814
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6815
 
 
6816
  # Write the raw and C identifiers.
 
6817
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6818
 
 
6819
  # Check to see that the pipe works correctly.
 
6820
  pipe_works=no
 
6821
 
 
6822
  rm -f conftest*
 
6823
  cat > conftest.$ac_ext <<EOF
 
6824
#ifdef __cplusplus
 
6825
extern "C" {
 
6826
#endif
 
6827
char nm_test_var;
 
6828
void nm_test_func(){}
 
6829
#ifdef __cplusplus
 
6830
}
 
6831
#endif
 
6832
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6833
EOF
 
6834
 
 
6835
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6836
  (eval $ac_compile) 2>&5
 
6837
  ac_status=$?
 
6838
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6839
  (exit $ac_status); }; then
 
6840
    # Now try to grab the symbols.
 
6841
    nlist=conftest.nm
 
6842
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6843
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6844
  ac_status=$?
 
6845
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6846
  (exit $ac_status); } && test -s "$nlist"; then
 
6847
      # Try sorting and uniquifying the output.
 
6848
      if sort "$nlist" | uniq > "$nlist"T; then
 
6849
        mv -f "$nlist"T "$nlist"
 
6850
      else
 
6851
        rm -f "$nlist"T
 
6852
      fi
 
6853
 
 
6854
      # Make sure that we snagged all the symbols we need.
 
6855
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6856
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6857
          cat <<EOF > conftest.$ac_ext
 
6858
#ifdef __cplusplus
 
6859
extern "C" {
 
6860
#endif
 
6861
 
 
6862
EOF
 
6863
          # Now generate the symbol file.
 
6864
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6865
 
 
6866
          cat <<EOF >> conftest.$ac_ext
 
6867
#if defined (__STDC__) && __STDC__
 
6868
# define lt_ptr_t void *
 
6869
#else
 
6870
# define lt_ptr_t char *
 
6871
# define const
 
6872
#endif
 
6873
 
 
6874
/* The mapping between symbol names and symbols. */
 
6875
const struct {
 
6876
  const char *name;
 
6877
  lt_ptr_t address;
 
6878
}
 
6879
lt_preloaded_symbols[] =
 
6880
{
 
6881
EOF
 
6882
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6883
          cat <<\EOF >> conftest.$ac_ext
 
6884
  {0, (lt_ptr_t) 0}
 
6885
};
 
6886
 
 
6887
#ifdef __cplusplus
 
6888
}
 
6889
#endif
 
6890
EOF
 
6891
          # Now try linking the two files.
 
6892
          mv conftest.$ac_objext conftstm.$ac_objext
 
6893
          lt_save_LIBS="$LIBS"
 
6894
          lt_save_CFLAGS="$CFLAGS"
 
6895
          LIBS="conftstm.$ac_objext"
 
6896
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6897
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6898
  (eval $ac_link) 2>&5
 
6899
  ac_status=$?
 
6900
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6901
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6902
            pipe_works=yes
 
6903
          fi
 
6904
          LIBS="$lt_save_LIBS"
 
6905
          CFLAGS="$lt_save_CFLAGS"
 
6906
        else
 
6907
          echo "cannot find nm_test_func in $nlist" >&5
 
6908
        fi
 
6909
      else
 
6910
        echo "cannot find nm_test_var in $nlist" >&5
 
6911
      fi
 
6912
    else
 
6913
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6914
    fi
 
6915
  else
 
6916
    echo "$progname: failed program was:" >&5
 
6917
    cat conftest.$ac_ext >&5
 
6918
  fi
 
6919
  rm -rf conftest* conftst*
 
6920
 
 
6921
  # Do not use the global_symbol_pipe unless it works.
 
6922
  if test "$pipe_works" = yes; then
 
6923
    break
 
6924
  else
 
6925
    lt_cv_sys_global_symbol_pipe=
 
6926
  fi
 
6927
done
 
6928
 
 
6929
fi
 
6930
 
 
6931
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6932
  lt_cv_sys_global_symbol_to_cdecl=
 
6933
fi
 
6934
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6935
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6936
$as_echo "failed" >&6; }
 
6937
else
 
6938
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6939
$as_echo "ok" >&6; }
 
6940
fi
 
6941
 
 
6942
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6943
$as_echo_n "checking for objdir... " >&6; }
 
6944
if test "${lt_cv_objdir+set}" = set; then
 
6945
  $as_echo_n "(cached) " >&6
 
6946
else
 
6947
  rm -f .libs 2>/dev/null
 
6948
mkdir .libs 2>/dev/null
 
6949
if test -d .libs; then
 
6950
  lt_cv_objdir=.libs
 
6951
else
 
6952
  # MS-DOS does not allow filenames that begin with a dot.
 
6953
  lt_cv_objdir=_libs
 
6954
fi
 
6955
rmdir .libs 2>/dev/null
 
6956
fi
 
6957
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6958
$as_echo "$lt_cv_objdir" >&6; }
 
6959
objdir=$lt_cv_objdir
 
6960
 
 
6961
 
 
6962
 
 
6963
 
 
6964
 
 
6965
case $host_os in
 
6966
aix3*)
 
6967
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6968
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6969
  # vanish in a puff of smoke.
 
6970
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6971
    COLLECT_NAMES=
 
6972
    export COLLECT_NAMES
 
6973
  fi
 
6974
  ;;
 
6975
esac
 
6976
 
 
6977
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6978
# metacharacters that are still active within double-quoted strings.
 
6979
Xsed='sed -e 1s/^X//'
 
6980
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6981
 
 
6982
# Same as above, but do not quote variable references.
 
6983
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6984
 
 
6985
# Sed substitution to delay expansion of an escaped shell variable in a
 
6986
# double_quote_subst'ed string.
 
6987
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6988
 
 
6989
# Sed substitution to avoid accidental globbing in evaled expressions
 
6990
no_glob_subst='s/\*/\\\*/g'
 
6991
 
 
6992
# Constants:
 
6993
rm="rm -f"
 
6994
 
 
6995
# Global variables:
 
6996
default_ofile=libtool
 
6997
can_build_shared=yes
 
6998
 
 
6999
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7000
# which needs '.lib').
 
7001
libext=a
 
7002
ltmain="$ac_aux_dir/ltmain.sh"
 
7003
ofile="$default_ofile"
 
7004
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7005
 
 
7006
if test -n "$ac_tool_prefix"; then
 
7007
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7008
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7009
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7010
$as_echo_n "checking for $ac_word... " >&6; }
 
7011
if test "${ac_cv_prog_AR+set}" = set; then
 
7012
  $as_echo_n "(cached) " >&6
 
7013
else
 
7014
  if test -n "$AR"; then
 
7015
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7016
else
 
7017
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7018
for as_dir in $PATH
 
7019
do
 
7020
  IFS=$as_save_IFS
 
7021
  test -z "$as_dir" && as_dir=.
 
7022
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7023
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7024
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7025
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7026
    break 2
 
7027
  fi
 
7028
done
 
7029
done
 
7030
IFS=$as_save_IFS
 
7031
 
 
7032
fi
 
7033
fi
 
7034
AR=$ac_cv_prog_AR
 
7035
if test -n "$AR"; then
 
7036
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
7037
$as_echo "$AR" >&6; }
 
7038
else
 
7039
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7040
$as_echo "no" >&6; }
 
7041
fi
 
7042
 
 
7043
 
 
7044
fi
 
7045
if test -z "$ac_cv_prog_AR"; then
 
7046
  ac_ct_AR=$AR
 
7047
  # Extract the first word of "ar", so it can be a program name with args.
 
7048
set dummy ar; ac_word=$2
 
7049
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7050
$as_echo_n "checking for $ac_word... " >&6; }
 
7051
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7052
  $as_echo_n "(cached) " >&6
 
7053
else
 
7054
  if test -n "$ac_ct_AR"; then
 
7055
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7056
else
 
7057
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7058
for as_dir in $PATH
 
7059
do
 
7060
  IFS=$as_save_IFS
 
7061
  test -z "$as_dir" && as_dir=.
 
7062
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7063
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7064
    ac_cv_prog_ac_ct_AR="ar"
 
7065
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7066
    break 2
 
7067
  fi
 
7068
done
 
7069
done
 
7070
IFS=$as_save_IFS
 
7071
 
 
7072
fi
 
7073
fi
 
7074
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7075
if test -n "$ac_ct_AR"; then
 
7076
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7077
$as_echo "$ac_ct_AR" >&6; }
 
7078
else
 
7079
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7080
$as_echo "no" >&6; }
 
7081
fi
 
7082
 
 
7083
  if test "x$ac_ct_AR" = x; then
 
7084
    AR="false"
 
7085
  else
 
7086
    case $cross_compiling:$ac_tool_warned in
 
7087
yes:)
 
7088
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7089
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7090
ac_tool_warned=yes ;;
 
7091
esac
 
7092
    AR=$ac_ct_AR
 
7093
  fi
 
7094
else
 
7095
  AR="$ac_cv_prog_AR"
 
7096
fi
 
7097
 
 
7098
if test -n "$ac_tool_prefix"; then
 
7099
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7100
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7101
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7102
$as_echo_n "checking for $ac_word... " >&6; }
 
7103
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7104
  $as_echo_n "(cached) " >&6
 
7105
else
 
7106
  if test -n "$RANLIB"; then
 
7107
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7108
else
 
7109
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7110
for as_dir in $PATH
 
7111
do
 
7112
  IFS=$as_save_IFS
 
7113
  test -z "$as_dir" && as_dir=.
 
7114
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7115
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7116
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7117
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7118
    break 2
 
7119
  fi
 
7120
done
 
7121
done
 
7122
IFS=$as_save_IFS
 
7123
 
 
7124
fi
 
7125
fi
 
7126
RANLIB=$ac_cv_prog_RANLIB
 
7127
if test -n "$RANLIB"; then
 
7128
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7129
$as_echo "$RANLIB" >&6; }
 
7130
else
 
7131
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7132
$as_echo "no" >&6; }
 
7133
fi
 
7134
 
 
7135
 
 
7136
fi
 
7137
if test -z "$ac_cv_prog_RANLIB"; then
 
7138
  ac_ct_RANLIB=$RANLIB
 
7139
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7140
set dummy ranlib; ac_word=$2
 
7141
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7142
$as_echo_n "checking for $ac_word... " >&6; }
 
7143
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7144
  $as_echo_n "(cached) " >&6
 
7145
else
 
7146
  if test -n "$ac_ct_RANLIB"; then
 
7147
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7148
else
 
7149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7150
for as_dir in $PATH
 
7151
do
 
7152
  IFS=$as_save_IFS
 
7153
  test -z "$as_dir" && as_dir=.
 
7154
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7155
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7156
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7157
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7158
    break 2
 
7159
  fi
 
7160
done
 
7161
done
 
7162
IFS=$as_save_IFS
 
7163
 
 
7164
fi
 
7165
fi
 
7166
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7167
if test -n "$ac_ct_RANLIB"; then
 
7168
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7169
$as_echo "$ac_ct_RANLIB" >&6; }
 
7170
else
 
7171
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7172
$as_echo "no" >&6; }
 
7173
fi
 
7174
 
 
7175
  if test "x$ac_ct_RANLIB" = x; then
 
7176
    RANLIB=":"
 
7177
  else
 
7178
    case $cross_compiling:$ac_tool_warned in
 
7179
yes:)
 
7180
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7181
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7182
ac_tool_warned=yes ;;
 
7183
esac
 
7184
    RANLIB=$ac_ct_RANLIB
 
7185
  fi
 
7186
else
 
7187
  RANLIB="$ac_cv_prog_RANLIB"
 
7188
fi
 
7189
 
 
7190
if test -n "$ac_tool_prefix"; then
 
7191
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7192
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7193
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7194
$as_echo_n "checking for $ac_word... " >&6; }
 
7195
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7196
  $as_echo_n "(cached) " >&6
 
7197
else
 
7198
  if test -n "$STRIP"; then
 
7199
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7200
else
 
7201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7202
for as_dir in $PATH
 
7203
do
 
7204
  IFS=$as_save_IFS
 
7205
  test -z "$as_dir" && as_dir=.
 
7206
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7208
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7209
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7210
    break 2
 
7211
  fi
 
7212
done
 
7213
done
 
7214
IFS=$as_save_IFS
 
7215
 
 
7216
fi
 
7217
fi
 
7218
STRIP=$ac_cv_prog_STRIP
 
7219
if test -n "$STRIP"; then
 
7220
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
7221
$as_echo "$STRIP" >&6; }
 
7222
else
 
7223
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7224
$as_echo "no" >&6; }
 
7225
fi
 
7226
 
 
7227
 
 
7228
fi
 
7229
if test -z "$ac_cv_prog_STRIP"; then
 
7230
  ac_ct_STRIP=$STRIP
 
7231
  # Extract the first word of "strip", so it can be a program name with args.
 
7232
set dummy strip; ac_word=$2
 
7233
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7234
$as_echo_n "checking for $ac_word... " >&6; }
 
7235
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7236
  $as_echo_n "(cached) " >&6
 
7237
else
 
7238
  if test -n "$ac_ct_STRIP"; then
 
7239
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7240
else
 
7241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7242
for as_dir in $PATH
 
7243
do
 
7244
  IFS=$as_save_IFS
 
7245
  test -z "$as_dir" && as_dir=.
 
7246
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7247
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7248
    ac_cv_prog_ac_ct_STRIP="strip"
 
7249
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7250
    break 2
 
7251
  fi
 
7252
done
 
7253
done
 
7254
IFS=$as_save_IFS
 
7255
 
 
7256
fi
 
7257
fi
 
7258
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7259
if test -n "$ac_ct_STRIP"; then
 
7260
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7261
$as_echo "$ac_ct_STRIP" >&6; }
 
7262
else
 
7263
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7264
$as_echo "no" >&6; }
 
7265
fi
 
7266
 
 
7267
  if test "x$ac_ct_STRIP" = x; then
 
7268
    STRIP=":"
 
7269
  else
 
7270
    case $cross_compiling:$ac_tool_warned in
 
7271
yes:)
 
7272
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7273
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7274
ac_tool_warned=yes ;;
 
7275
esac
 
7276
    STRIP=$ac_ct_STRIP
 
7277
  fi
 
7278
else
 
7279
  STRIP="$ac_cv_prog_STRIP"
 
7280
fi
 
7281
 
 
7282
 
 
7283
old_CC="$CC"
 
7284
old_CFLAGS="$CFLAGS"
 
7285
 
 
7286
# Set sane defaults for various variables
 
7287
test -z "$AR" && AR=ar
 
7288
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7289
test -z "$AS" && AS=as
 
7290
test -z "$CC" && CC=cc
 
7291
test -z "$LTCC" && LTCC=$CC
 
7292
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7293
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7294
test -z "$LD" && LD=ld
 
7295
test -z "$LN_S" && LN_S="ln -s"
 
7296
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7297
test -z "$NM" && NM=nm
 
7298
test -z "$SED" && SED=sed
 
7299
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7300
test -z "$RANLIB" && RANLIB=:
 
7301
test -z "$STRIP" && STRIP=:
 
7302
test -z "$ac_objext" && ac_objext=o
 
7303
 
 
7304
# Determine commands to create old-style static archives.
 
7305
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7306
old_postinstall_cmds='chmod 644 $oldlib'
 
7307
old_postuninstall_cmds=
 
7308
 
 
7309
if test -n "$RANLIB"; then
 
7310
  case $host_os in
 
7311
  openbsd*)
 
7312
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7313
    ;;
 
7314
  *)
 
7315
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7316
    ;;
 
7317
  esac
 
7318
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7319
fi
 
7320
 
 
7321
for cc_temp in $compiler""; do
 
7322
  case $cc_temp in
 
7323
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7324
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7325
    \-*) ;;
 
7326
    *) break;;
 
7327
  esac
 
7328
done
 
7329
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7330
 
 
7331
 
 
7332
# Only perform the check for file, if the check method requires it
 
7333
case $deplibs_check_method in
 
7334
file_magic*)
 
7335
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7336
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7337
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7338
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7339
  $as_echo_n "(cached) " >&6
 
7340
else
 
7341
  case $MAGIC_CMD in
 
7342
[\\/*] |  ?:[\\/]*)
 
7343
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7344
  ;;
 
7345
*)
 
7346
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7347
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7348
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7349
  for ac_dir in $ac_dummy; do
 
7350
    IFS="$lt_save_ifs"
 
7351
    test -z "$ac_dir" && ac_dir=.
 
7352
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7353
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7354
      if test -n "$file_magic_test_file"; then
 
7355
        case $deplibs_check_method in
 
7356
        "file_magic "*)
 
7357
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7358
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7359
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7360
            $EGREP "$file_magic_regex" > /dev/null; then
 
7361
            :
 
7362
          else
 
7363
            cat <<EOF 1>&2
 
7364
 
 
7365
*** Warning: the command libtool uses to detect shared libraries,
 
7366
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7367
*** The result is that libtool may fail to recognize shared libraries
 
7368
*** as such.  This will affect the creation of libtool libraries that
 
7369
*** depend on shared libraries, but programs linked with such libtool
 
7370
*** libraries will work regardless of this problem.  Nevertheless, you
 
7371
*** may want to report the problem to your system manager and/or to
 
7372
*** bug-libtool@gnu.org
 
7373
 
 
7374
EOF
 
7375
          fi ;;
 
7376
        esac
 
7377
      fi
 
7378
      break
 
7379
    fi
 
7380
  done
 
7381
  IFS="$lt_save_ifs"
 
7382
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7383
  ;;
 
7384
esac
 
7385
fi
 
7386
 
 
7387
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7388
if test -n "$MAGIC_CMD"; then
 
7389
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7390
$as_echo "$MAGIC_CMD" >&6; }
 
7391
else
 
7392
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7393
$as_echo "no" >&6; }
 
7394
fi
 
7395
 
 
7396
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7397
  if test -n "$ac_tool_prefix"; then
 
7398
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7399
$as_echo_n "checking for file... " >&6; }
 
7400
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7401
  $as_echo_n "(cached) " >&6
 
7402
else
 
7403
  case $MAGIC_CMD in
 
7404
[\\/*] |  ?:[\\/]*)
 
7405
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7406
  ;;
 
7407
*)
 
7408
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7409
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7410
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7411
  for ac_dir in $ac_dummy; do
 
7412
    IFS="$lt_save_ifs"
 
7413
    test -z "$ac_dir" && ac_dir=.
 
7414
    if test -f $ac_dir/file; then
 
7415
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7416
      if test -n "$file_magic_test_file"; then
 
7417
        case $deplibs_check_method in
 
7418
        "file_magic "*)
 
7419
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7420
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7421
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7422
            $EGREP "$file_magic_regex" > /dev/null; then
 
7423
            :
 
7424
          else
 
7425
            cat <<EOF 1>&2
 
7426
 
 
7427
*** Warning: the command libtool uses to detect shared libraries,
 
7428
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7429
*** The result is that libtool may fail to recognize shared libraries
 
7430
*** as such.  This will affect the creation of libtool libraries that
 
7431
*** depend on shared libraries, but programs linked with such libtool
 
7432
*** libraries will work regardless of this problem.  Nevertheless, you
 
7433
*** may want to report the problem to your system manager and/or to
 
7434
*** bug-libtool@gnu.org
 
7435
 
 
7436
EOF
 
7437
          fi ;;
 
7438
        esac
 
7439
      fi
 
7440
      break
 
7441
    fi
 
7442
  done
 
7443
  IFS="$lt_save_ifs"
 
7444
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7445
  ;;
 
7446
esac
 
7447
fi
 
7448
 
 
7449
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7450
if test -n "$MAGIC_CMD"; then
 
7451
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7452
$as_echo "$MAGIC_CMD" >&6; }
 
7453
else
 
7454
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7455
$as_echo "no" >&6; }
 
7456
fi
 
7457
 
 
7458
  else
 
7459
    MAGIC_CMD=:
 
7460
  fi
 
7461
fi
 
7462
 
 
7463
  fi
 
7464
  ;;
 
7465
esac
 
7466
 
 
7467
 
 
7468
  case $host_os in
 
7469
    rhapsody* | darwin*)
 
7470
    if test -n "$ac_tool_prefix"; then
 
7471
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7472
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7473
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7474
$as_echo_n "checking for $ac_word... " >&6; }
 
7475
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7476
  $as_echo_n "(cached) " >&6
 
7477
else
 
7478
  if test -n "$DSYMUTIL"; then
 
7479
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7480
else
 
7481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7482
for as_dir in $PATH
 
7483
do
 
7484
  IFS=$as_save_IFS
 
7485
  test -z "$as_dir" && as_dir=.
 
7486
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7487
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7488
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7489
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7490
    break 2
 
7491
  fi
 
7492
done
 
7493
done
 
7494
IFS=$as_save_IFS
 
7495
 
 
7496
fi
 
7497
fi
 
7498
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7499
if test -n "$DSYMUTIL"; then
 
7500
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7501
$as_echo "$DSYMUTIL" >&6; }
 
7502
else
 
7503
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7504
$as_echo "no" >&6; }
 
7505
fi
 
7506
 
 
7507
 
 
7508
fi
 
7509
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7510
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7511
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7512
set dummy dsymutil; ac_word=$2
 
7513
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7514
$as_echo_n "checking for $ac_word... " >&6; }
 
7515
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7516
  $as_echo_n "(cached) " >&6
 
7517
else
 
7518
  if test -n "$ac_ct_DSYMUTIL"; then
 
7519
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7520
else
 
7521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7522
for as_dir in $PATH
 
7523
do
 
7524
  IFS=$as_save_IFS
 
7525
  test -z "$as_dir" && as_dir=.
 
7526
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7527
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7528
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7529
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7530
    break 2
 
7531
  fi
 
7532
done
 
7533
done
 
7534
IFS=$as_save_IFS
 
7535
 
 
7536
fi
 
7537
fi
 
7538
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7539
if test -n "$ac_ct_DSYMUTIL"; then
 
7540
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7541
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7542
else
 
7543
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7544
$as_echo "no" >&6; }
 
7545
fi
 
7546
 
 
7547
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7548
    DSYMUTIL=":"
 
7549
  else
 
7550
    case $cross_compiling:$ac_tool_warned in
 
7551
yes:)
 
7552
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7553
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7554
ac_tool_warned=yes ;;
 
7555
esac
 
7556
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7557
  fi
 
7558
else
 
7559
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7560
fi
 
7561
 
 
7562
    if test -n "$ac_tool_prefix"; then
 
7563
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7564
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7565
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7566
$as_echo_n "checking for $ac_word... " >&6; }
 
7567
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7568
  $as_echo_n "(cached) " >&6
 
7569
else
 
7570
  if test -n "$NMEDIT"; then
 
7571
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7572
else
 
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7574
for as_dir in $PATH
 
7575
do
 
7576
  IFS=$as_save_IFS
 
7577
  test -z "$as_dir" && as_dir=.
 
7578
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7579
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7580
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7581
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7582
    break 2
 
7583
  fi
 
7584
done
 
7585
done
 
7586
IFS=$as_save_IFS
 
7587
 
 
7588
fi
 
7589
fi
 
7590
NMEDIT=$ac_cv_prog_NMEDIT
 
7591
if test -n "$NMEDIT"; then
 
7592
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7593
$as_echo "$NMEDIT" >&6; }
 
7594
else
 
7595
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7596
$as_echo "no" >&6; }
 
7597
fi
 
7598
 
 
7599
 
 
7600
fi
 
7601
if test -z "$ac_cv_prog_NMEDIT"; then
 
7602
  ac_ct_NMEDIT=$NMEDIT
 
7603
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7604
set dummy nmedit; ac_word=$2
 
7605
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7606
$as_echo_n "checking for $ac_word... " >&6; }
 
7607
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7608
  $as_echo_n "(cached) " >&6
 
7609
else
 
7610
  if test -n "$ac_ct_NMEDIT"; then
 
7611
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7612
else
 
7613
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7614
for as_dir in $PATH
 
7615
do
 
7616
  IFS=$as_save_IFS
 
7617
  test -z "$as_dir" && as_dir=.
 
7618
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7619
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7620
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7621
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7622
    break 2
 
7623
  fi
 
7624
done
 
7625
done
 
7626
IFS=$as_save_IFS
 
7627
 
 
7628
fi
 
7629
fi
 
7630
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7631
if test -n "$ac_ct_NMEDIT"; then
 
7632
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7633
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7634
else
 
7635
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7636
$as_echo "no" >&6; }
 
7637
fi
 
7638
 
 
7639
  if test "x$ac_ct_NMEDIT" = x; then
 
7640
    NMEDIT=":"
 
7641
  else
 
7642
    case $cross_compiling:$ac_tool_warned in
 
7643
yes:)
 
7644
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7645
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7646
ac_tool_warned=yes ;;
 
7647
esac
 
7648
    NMEDIT=$ac_ct_NMEDIT
 
7649
  fi
 
7650
else
 
7651
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7652
fi
 
7653
 
 
7654
 
 
7655
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7656
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7657
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7658
  $as_echo_n "(cached) " >&6
 
7659
else
 
7660
  lt_cv_apple_cc_single_mod=no
 
7661
      if test -z "${LT_MULTI_MODULE}"; then
 
7662
   # By default we will add the -single_module flag. You can override
 
7663
   # by either setting the environment variable LT_MULTI_MODULE
 
7664
   # non-empty at configure time, or by adding -multi_module to the
 
7665
   # link flags.
 
7666
   echo "int foo(void){return 1;}" > conftest.c
 
7667
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7668
     -dynamiclib ${wl}-single_module conftest.c
 
7669
   if test -f libconftest.dylib; then
 
7670
     lt_cv_apple_cc_single_mod=yes
 
7671
     rm -rf libconftest.dylib*
 
7672
   fi
 
7673
   rm conftest.c
 
7674
      fi
 
7675
fi
 
7676
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7677
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7678
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7679
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7680
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7681
  $as_echo_n "(cached) " >&6
 
7682
else
 
7683
  lt_cv_ld_exported_symbols_list=no
 
7684
      save_LDFLAGS=$LDFLAGS
 
7685
      echo "_main" > conftest.sym
 
7686
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7687
      cat >conftest.$ac_ext <<_ACEOF
 
7688
/* confdefs.h.  */
 
7689
_ACEOF
 
7690
cat confdefs.h >>conftest.$ac_ext
 
7691
cat >>conftest.$ac_ext <<_ACEOF
 
7692
/* end confdefs.h.  */
 
7693
 
 
7694
int
 
7695
main ()
 
7696
{
 
7697
 
 
7698
  ;
 
7699
  return 0;
 
7700
}
 
7701
_ACEOF
 
7702
rm -f conftest.$ac_objext conftest$ac_exeext
 
7703
if { (ac_try="$ac_link"
 
7704
case "(($ac_try" in
 
7705
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7706
  *) ac_try_echo=$ac_try;;
 
7707
esac
 
7708
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7709
$as_echo "$ac_try_echo") >&5
 
7710
  (eval "$ac_link") 2>conftest.er1
 
7711
  ac_status=$?
 
7712
  grep -v '^ *+' conftest.er1 >conftest.err
 
7713
  rm -f conftest.er1
 
7714
  cat conftest.err >&5
 
7715
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7716
  (exit $ac_status); } && {
 
7717
         test -z "$ac_c_werror_flag" ||
 
7718
         test ! -s conftest.err
 
7719
       } && test -s conftest$ac_exeext && {
 
7720
         test "$cross_compiling" = yes ||
 
7721
         $as_test_x conftest$ac_exeext
 
7722
       }; then
 
7723
  lt_cv_ld_exported_symbols_list=yes
 
7724
else
 
7725
  $as_echo "$as_me: failed program was:" >&5
 
7726
sed 's/^/| /' conftest.$ac_ext >&5
 
7727
 
 
7728
        lt_cv_ld_exported_symbols_list=no
 
7729
fi
 
7730
 
 
7731
rm -rf conftest.dSYM
 
7732
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7733
      conftest$ac_exeext conftest.$ac_ext
 
7734
   LDFLAGS="$save_LDFLAGS"
 
7735
 
 
7736
fi
 
7737
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7738
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7739
    case $host_os in
 
7740
    rhapsody* | darwin1.[0123])
 
7741
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7742
    darwin1.*)
 
7743
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7744
    darwin*)
 
7745
      # if running on 10.5 or later, the deployment target defaults
 
7746
      # to the OS version, if on x86, and 10.4, the deployment
 
7747
      # target defaults to 10.4. Don't you love it?
 
7748
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7749
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7750
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7751
   10.[012]*)
 
7752
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7753
   10.*)
 
7754
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7755
      esac
 
7756
    ;;
 
7757
  esac
 
7758
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7759
      _lt_dar_single_mod='$single_module'
 
7760
    fi
 
7761
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7762
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7763
    else
 
7764
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7765
    fi
 
7766
    if test "$DSYMUTIL" != ":"; then
 
7767
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7768
    else
 
7769
      _lt_dsymutil=
 
7770
    fi
 
7771
    ;;
 
7772
  esac
 
7773
 
 
7774
 
 
7775
enable_dlopen=no
 
7776
enable_win32_dll=no
 
7777
 
 
7778
# Check whether --enable-libtool-lock was given.
 
7779
if test "${enable_libtool_lock+set}" = set; then
 
7780
  enableval=$enable_libtool_lock;
 
7781
fi
 
7782
 
 
7783
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7784
 
 
7785
 
 
7786
# Check whether --with-pic was given.
 
7787
if test "${with_pic+set}" = set; then
 
7788
  withval=$with_pic; pic_mode="$withval"
 
7789
else
 
7790
  pic_mode=default
 
7791
fi
 
7792
 
 
7793
test -z "$pic_mode" && pic_mode=default
 
7794
 
 
7795
# Use C for the default configuration in the libtool script
 
7796
tagname=
 
7797
lt_save_CC="$CC"
 
7798
ac_ext=c
 
7799
ac_cpp='$CPP $CPPFLAGS'
 
7800
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7803
 
 
7804
 
 
7805
# Source file extension for C test sources.
 
7806
ac_ext=c
 
7807
 
 
7808
# Object file extension for compiled C test sources.
 
7809
objext=o
 
7810
objext=$objext
 
7811
 
 
7812
# Code to be used in simple compile tests
 
7813
lt_simple_compile_test_code="int some_variable = 0;"
 
7814
 
 
7815
# Code to be used in simple link tests
 
7816
lt_simple_link_test_code='int main(){return(0);}'
 
7817
 
 
7818
 
 
7819
# If no C compiler was specified, use CC.
 
7820
LTCC=${LTCC-"$CC"}
 
7821
 
 
7822
# If no C compiler flags were specified, use CFLAGS.
 
7823
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7824
 
 
7825
# Allow CC to be a program name with arguments.
 
7826
compiler=$CC
 
7827
 
 
7828
 
 
7829
# save warnings/boilerplate of simple test code
 
7830
ac_outfile=conftest.$ac_objext
 
7831
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7832
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7833
_lt_compiler_boilerplate=`cat conftest.err`
 
7834
$rm conftest*
 
7835
 
 
7836
ac_outfile=conftest.$ac_objext
 
7837
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7838
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7839
_lt_linker_boilerplate=`cat conftest.err`
 
7840
$rm -r conftest*
 
7841
 
 
7842
 
 
7843
 
 
7844
lt_prog_compiler_no_builtin_flag=
 
7845
 
 
7846
if test "$GCC" = yes; then
 
7847
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7848
 
 
7849
 
 
7850
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7851
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7852
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7853
  $as_echo_n "(cached) " >&6
 
7854
else
 
7855
  lt_cv_prog_compiler_rtti_exceptions=no
 
7856
  ac_outfile=conftest.$ac_objext
 
7857
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7858
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
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_rtti_exceptions=yes
 
7880
     fi
 
7881
   fi
 
7882
   $rm conftest*
 
7883
 
 
7884
fi
 
7885
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7886
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7887
 
 
7888
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7889
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7890
else
 
7891
    :
 
7892
fi
 
7893
 
 
7894
fi
 
7895
 
 
7896
lt_prog_compiler_wl=
 
7897
lt_prog_compiler_pic=
 
7898
lt_prog_compiler_static=
 
7899
 
 
7900
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7901
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7902
 
 
7903
  if test "$GCC" = yes; then
 
7904
    lt_prog_compiler_wl='-Wl,'
 
7905
    lt_prog_compiler_static='-static'
 
7906
 
 
7907
    case $host_os in
 
7908
      aix*)
 
7909
      # All AIX code is PIC.
 
7910
      if test "$host_cpu" = ia64; then
 
7911
        # AIX 5 now supports IA64 processor
 
7912
        lt_prog_compiler_static='-Bstatic'
 
7913
      fi
 
7914
      ;;
 
7915
 
 
7916
    amigaos*)
 
7917
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7918
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7919
      # like `-m68040'.
 
7920
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7921
      ;;
 
7922
 
 
7923
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7924
      # PIC is the default for these OSes.
 
7925
      ;;
 
7926
 
 
7927
    mingw* | cygwin* | pw32* | os2*)
 
7928
      # This hack is so that the source file can tell whether it is being
 
7929
      # built for inclusion in a dll (and should export symbols for example).
 
7930
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7931
      # (--disable-auto-import) libraries
 
7932
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7933
      ;;
 
7934
 
 
7935
    darwin* | rhapsody*)
 
7936
      # PIC is the default on this platform
 
7937
      # Common symbols not allowed in MH_DYLIB files
 
7938
      lt_prog_compiler_pic='-fno-common'
 
7939
      ;;
 
7940
 
 
7941
    interix[3-9]*)
 
7942
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7943
      # Instead, we relocate shared libraries at runtime.
 
7944
      ;;
 
7945
 
 
7946
    msdosdjgpp*)
 
7947
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7948
      # on systems that don't support them.
 
7949
      lt_prog_compiler_can_build_shared=no
 
7950
      enable_shared=no
 
7951
      ;;
 
7952
 
 
7953
    sysv4*MP*)
 
7954
      if test -d /usr/nec; then
 
7955
        lt_prog_compiler_pic=-Kconform_pic
 
7956
      fi
 
7957
      ;;
 
7958
 
 
7959
    hpux*)
 
7960
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7961
      # not for PA HP-UX.
 
7962
      case $host_cpu in
 
7963
      hppa*64*|ia64*)
 
7964
        # +Z the default
 
7965
        ;;
 
7966
      *)
 
7967
        lt_prog_compiler_pic='-fPIC'
 
7968
        ;;
 
7969
      esac
 
7970
      ;;
 
7971
 
 
7972
    *)
 
7973
      lt_prog_compiler_pic='-fPIC'
 
7974
      ;;
 
7975
    esac
 
7976
  else
 
7977
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7978
    case $host_os in
 
7979
    aix*)
 
7980
      lt_prog_compiler_wl='-Wl,'
 
7981
      if test "$host_cpu" = ia64; then
 
7982
        # AIX 5 now supports IA64 processor
 
7983
        lt_prog_compiler_static='-Bstatic'
 
7984
      else
 
7985
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7986
      fi
 
7987
      ;;
 
7988
      darwin*)
 
7989
        # PIC is the default on this platform
 
7990
        # Common symbols not allowed in MH_DYLIB files
 
7991
       case $cc_basename in
 
7992
         xlc*)
 
7993
         lt_prog_compiler_pic='-qnocommon'
 
7994
         lt_prog_compiler_wl='-Wl,'
 
7995
         ;;
 
7996
       esac
 
7997
       ;;
 
7998
 
 
7999
    mingw* | cygwin* | pw32* | os2*)
 
8000
      # This hack is so that the source file can tell whether it is being
 
8001
      # built for inclusion in a dll (and should export symbols for example).
 
8002
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8003
      ;;
 
8004
 
 
8005
    hpux9* | hpux10* | hpux11*)
 
8006
      lt_prog_compiler_wl='-Wl,'
 
8007
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8008
      # not for PA HP-UX.
 
8009
      case $host_cpu in
 
8010
      hppa*64*|ia64*)
 
8011
        # +Z the default
 
8012
        ;;
 
8013
      *)
 
8014
        lt_prog_compiler_pic='+Z'
 
8015
        ;;
 
8016
      esac
 
8017
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8018
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8019
      ;;
 
8020
 
 
8021
    irix5* | irix6* | nonstopux*)
 
8022
      lt_prog_compiler_wl='-Wl,'
 
8023
      # PIC (with -KPIC) is the default.
 
8024
      lt_prog_compiler_static='-non_shared'
 
8025
      ;;
 
8026
 
 
8027
    newsos6)
 
8028
      lt_prog_compiler_pic='-KPIC'
 
8029
      lt_prog_compiler_static='-Bstatic'
 
8030
      ;;
 
8031
 
 
8032
    linux* | k*bsd*-gnu)
 
8033
      case $cc_basename in
 
8034
      icc* | ecc*)
 
8035
        lt_prog_compiler_wl='-Wl,'
 
8036
        lt_prog_compiler_pic='-KPIC'
 
8037
        lt_prog_compiler_static='-static'
 
8038
        ;;
 
8039
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8040
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8041
        # which looks to be a dead project)
 
8042
        lt_prog_compiler_wl='-Wl,'
 
8043
        lt_prog_compiler_pic='-fpic'
 
8044
        lt_prog_compiler_static='-Bstatic'
 
8045
        ;;
 
8046
      ccc*)
 
8047
        lt_prog_compiler_wl='-Wl,'
 
8048
        # All Alpha code is PIC.
 
8049
        lt_prog_compiler_static='-non_shared'
 
8050
        ;;
 
8051
      *)
 
8052
        case `$CC -V 2>&1 | sed 5q` in
 
8053
        *Sun\ C*)
 
8054
          # Sun C 5.9
 
8055
          lt_prog_compiler_pic='-KPIC'
 
8056
          lt_prog_compiler_static='-Bstatic'
 
8057
          lt_prog_compiler_wl='-Wl,'
 
8058
          ;;
 
8059
        *Sun\ F*)
 
8060
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8061
          lt_prog_compiler_pic='-KPIC'
 
8062
          lt_prog_compiler_static='-Bstatic'
 
8063
          lt_prog_compiler_wl=''
 
8064
          ;;
 
8065
        esac
 
8066
        ;;
 
8067
      esac
 
8068
      ;;
 
8069
 
 
8070
    osf3* | osf4* | osf5*)
 
8071
      lt_prog_compiler_wl='-Wl,'
 
8072
      # All OSF/1 code is PIC.
 
8073
      lt_prog_compiler_static='-non_shared'
 
8074
      ;;
 
8075
 
 
8076
    rdos*)
 
8077
      lt_prog_compiler_static='-non_shared'
 
8078
      ;;
 
8079
 
 
8080
    solaris*)
 
8081
      lt_prog_compiler_pic='-KPIC'
 
8082
      lt_prog_compiler_static='-Bstatic'
 
8083
      case $cc_basename in
 
8084
      f77* | f90* | f95*)
 
8085
        lt_prog_compiler_wl='-Qoption ld ';;
 
8086
      *)
 
8087
        lt_prog_compiler_wl='-Wl,';;
 
8088
      esac
 
8089
      ;;
 
8090
 
 
8091
    sunos4*)
 
8092
      lt_prog_compiler_wl='-Qoption ld '
 
8093
      lt_prog_compiler_pic='-PIC'
 
8094
      lt_prog_compiler_static='-Bstatic'
 
8095
      ;;
 
8096
 
 
8097
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8098
      lt_prog_compiler_wl='-Wl,'
 
8099
      lt_prog_compiler_pic='-KPIC'
 
8100
      lt_prog_compiler_static='-Bstatic'
 
8101
      ;;
 
8102
 
 
8103
    sysv4*MP*)
 
8104
      if test -d /usr/nec ;then
 
8105
        lt_prog_compiler_pic='-Kconform_pic'
 
8106
        lt_prog_compiler_static='-Bstatic'
 
8107
      fi
 
8108
      ;;
 
8109
 
 
8110
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8111
      lt_prog_compiler_wl='-Wl,'
 
8112
      lt_prog_compiler_pic='-KPIC'
 
8113
      lt_prog_compiler_static='-Bstatic'
 
8114
      ;;
 
8115
 
 
8116
    unicos*)
 
8117
      lt_prog_compiler_wl='-Wl,'
 
8118
      lt_prog_compiler_can_build_shared=no
 
8119
      ;;
 
8120
 
 
8121
    uts4*)
 
8122
      lt_prog_compiler_pic='-pic'
 
8123
      lt_prog_compiler_static='-Bstatic'
 
8124
      ;;
 
8125
 
 
8126
    *)
 
8127
      lt_prog_compiler_can_build_shared=no
 
8128
      ;;
 
8129
    esac
 
8130
  fi
 
8131
 
 
8132
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8133
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8134
 
 
8135
#
 
8136
# Check to make sure the PIC flag actually works.
 
8137
#
 
8138
if test -n "$lt_prog_compiler_pic"; then
 
8139
 
 
8140
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8141
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8142
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8143
  $as_echo_n "(cached) " >&6
 
8144
else
 
8145
  lt_cv_prog_compiler_pic_works=no
 
8146
  ac_outfile=conftest.$ac_objext
 
8147
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8148
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8149
   # Insert the option either (1) after the last *FLAGS variable, or
 
8150
   # (2) before a word containing "conftest.", or (3) at the end.
 
8151
   # Note that $ac_compile itself does not contain backslashes and begins
 
8152
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8153
   # The option is referenced via a variable to avoid confusing sed.
 
8154
   lt_compile=`echo "$ac_compile" | $SED \
 
8155
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8156
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8157
   -e 's:$: $lt_compiler_flag:'`
 
8158
   (eval echo "\"\$as_me:8158: $lt_compile\"" >&5)
 
8159
   (eval "$lt_compile" 2>conftest.err)
 
8160
   ac_status=$?
 
8161
   cat conftest.err >&5
 
8162
   echo "$as_me:8162: \$? = $ac_status" >&5
 
8163
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8164
     # The compiler can only warn and ignore the option if not recognized
 
8165
     # So say no if there are warnings other than the usual output.
 
8166
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8167
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8168
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8169
       lt_cv_prog_compiler_pic_works=yes
 
8170
     fi
 
8171
   fi
 
8172
   $rm conftest*
 
8173
 
 
8174
fi
 
8175
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8176
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8177
 
 
8178
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8179
    case $lt_prog_compiler_pic in
 
8180
     "" | " "*) ;;
 
8181
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8182
     esac
 
8183
else
 
8184
    lt_prog_compiler_pic=
 
8185
     lt_prog_compiler_can_build_shared=no
 
8186
fi
 
8187
 
 
8188
fi
 
8189
case $host_os in
 
8190
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8191
  *djgpp*)
 
8192
    lt_prog_compiler_pic=
 
8193
    ;;
 
8194
  *)
 
8195
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8196
    ;;
 
8197
esac
 
8198
 
 
8199
#
 
8200
# Check to make sure the static flag actually works.
 
8201
#
 
8202
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8203
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8204
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8205
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8206
  $as_echo_n "(cached) " >&6
 
8207
else
 
8208
  lt_cv_prog_compiler_static_works=no
 
8209
   save_LDFLAGS="$LDFLAGS"
 
8210
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8211
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8212
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8213
     # The linker can only warn and ignore the option if not recognized
 
8214
     # So say no if there are warnings
 
8215
     if test -s conftest.err; then
 
8216
       # Append any errors to the config.log.
 
8217
       cat conftest.err 1>&5
 
8218
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8219
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8220
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8221
         lt_cv_prog_compiler_static_works=yes
 
8222
       fi
 
8223
     else
 
8224
       lt_cv_prog_compiler_static_works=yes
 
8225
     fi
 
8226
   fi
 
8227
   $rm -r conftest*
 
8228
   LDFLAGS="$save_LDFLAGS"
 
8229
 
 
8230
fi
 
8231
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8232
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8233
 
 
8234
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8235
    :
 
8236
else
 
8237
    lt_prog_compiler_static=
 
8238
fi
 
8239
 
 
8240
 
 
8241
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8242
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8243
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8244
  $as_echo_n "(cached) " >&6
 
8245
else
 
8246
  lt_cv_prog_compiler_c_o=no
 
8247
   $rm -r conftest 2>/dev/null
 
8248
   mkdir conftest
 
8249
   cd conftest
 
8250
   mkdir out
 
8251
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8252
 
 
8253
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8254
   # Insert the option either (1) after the last *FLAGS variable, or
 
8255
   # (2) before a word containing "conftest.", or (3) at the end.
 
8256
   # Note that $ac_compile itself does not contain backslashes and begins
 
8257
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8258
   lt_compile=`echo "$ac_compile" | $SED \
 
8259
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8260
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8261
   -e 's:$: $lt_compiler_flag:'`
 
8262
   (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
 
8263
   (eval "$lt_compile" 2>out/conftest.err)
 
8264
   ac_status=$?
 
8265
   cat out/conftest.err >&5
 
8266
   echo "$as_me:8266: \$? = $ac_status" >&5
 
8267
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8268
   then
 
8269
     # The compiler can only warn and ignore the option if not recognized
 
8270
     # So say no if there are warnings
 
8271
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8272
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8273
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8274
       lt_cv_prog_compiler_c_o=yes
 
8275
     fi
 
8276
   fi
 
8277
   chmod u+w . 2>&5
 
8278
   $rm conftest*
 
8279
   # SGI C++ compiler will create directory out/ii_files/ for
 
8280
   # template instantiation
 
8281
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8282
   $rm out/* && rmdir out
 
8283
   cd ..
 
8284
   rmdir conftest
 
8285
   $rm conftest*
 
8286
 
 
8287
fi
 
8288
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8289
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8290
 
 
8291
 
 
8292
hard_links="nottested"
 
8293
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8294
  # do not overwrite the value of need_locks provided by the user
 
8295
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8296
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8297
  hard_links=yes
 
8298
  $rm conftest*
 
8299
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8300
  touch conftest.a
 
8301
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8302
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8303
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8304
$as_echo "$hard_links" >&6; }
 
8305
  if test "$hard_links" = no; then
 
8306
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8307
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8308
    need_locks=warn
 
8309
  fi
 
8310
else
 
8311
  need_locks=no
 
8312
fi
 
8313
 
 
8314
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8315
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8316
 
 
8317
  runpath_var=
 
8318
  allow_undefined_flag=
 
8319
  enable_shared_with_static_runtimes=no
 
8320
  archive_cmds=
 
8321
  archive_expsym_cmds=
 
8322
  old_archive_From_new_cmds=
 
8323
  old_archive_from_expsyms_cmds=
 
8324
  export_dynamic_flag_spec=
 
8325
  whole_archive_flag_spec=
 
8326
  thread_safe_flag_spec=
 
8327
  hardcode_libdir_flag_spec=
 
8328
  hardcode_libdir_flag_spec_ld=
 
8329
  hardcode_libdir_separator=
 
8330
  hardcode_direct=no
 
8331
  hardcode_minus_L=no
 
8332
  hardcode_shlibpath_var=unsupported
 
8333
  link_all_deplibs=unknown
 
8334
  hardcode_automatic=no
 
8335
  module_cmds=
 
8336
  module_expsym_cmds=
 
8337
  always_export_symbols=no
 
8338
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8339
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8340
  # included in the symbol list
 
8341
  include_expsyms=
 
8342
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8343
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8344
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8345
  # as well as any symbol that contains `d'.
 
8346
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8347
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8348
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8349
  # the symbol is explicitly referenced.  Since portable code cannot
 
8350
  # rely on this symbol name, it's probably fine to never include it in
 
8351
  # preloaded symbol tables.
 
8352
  # Exclude shared library initialization/finalization symbols.
 
8353
  extract_expsyms_cmds=
 
8354
  # Just being paranoid about ensuring that cc_basename is set.
 
8355
  for cc_temp in $compiler""; do
 
8356
  case $cc_temp in
 
8357
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8358
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8359
    \-*) ;;
 
8360
    *) break;;
 
8361
  esac
 
8362
done
 
8363
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8364
 
 
8365
  case $host_os in
 
8366
  cygwin* | mingw* | pw32*)
 
8367
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8368
    # When not using gcc, we currently assume that we are using
 
8369
    # Microsoft Visual C++.
 
8370
    if test "$GCC" != yes; then
 
8371
      with_gnu_ld=no
 
8372
    fi
 
8373
    ;;
 
8374
  interix*)
 
8375
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8376
    with_gnu_ld=yes
 
8377
    ;;
 
8378
  openbsd*)
 
8379
    with_gnu_ld=no
 
8380
    ;;
 
8381
  esac
 
8382
 
 
8383
  ld_shlibs=yes
 
8384
  if test "$with_gnu_ld" = yes; then
 
8385
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8386
    wlarc='${wl}'
 
8387
 
 
8388
    # Set some defaults for GNU ld with shared library support. These
 
8389
    # are reset later if shared libraries are not supported. Putting them
 
8390
    # here allows them to be overridden if necessary.
 
8391
    runpath_var=LD_RUN_PATH
 
8392
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8393
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8394
    # ancient GNU ld didn't support --whole-archive et. al.
 
8395
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8396
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8397
      else
 
8398
        whole_archive_flag_spec=
 
8399
    fi
 
8400
    supports_anon_versioning=no
 
8401
    case `$LD -v 2>/dev/null` in
 
8402
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8403
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8404
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8405
      *\ 2.11.*) ;; # other 2.11 versions
 
8406
      *) supports_anon_versioning=yes ;;
 
8407
    esac
 
8408
 
 
8409
    # See if GNU ld supports shared libraries.
 
8410
    case $host_os in
 
8411
    aix[3-9]*)
 
8412
      # On AIX/PPC, the GNU linker is very broken
 
8413
      if test "$host_cpu" != ia64; then
 
8414
        ld_shlibs=no
 
8415
        cat <<EOF 1>&2
 
8416
 
 
8417
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8418
*** to be unable to reliably create shared libraries on AIX.
 
8419
*** Therefore, libtool is disabling shared libraries support.  If you
 
8420
*** really care for shared libraries, you may want to modify your PATH
 
8421
*** so that a non-GNU linker is found, and then restart.
 
8422
 
 
8423
EOF
 
8424
      fi
 
8425
      ;;
 
8426
 
 
8427
    amigaos*)
 
8428
      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)'
 
8429
      hardcode_libdir_flag_spec='-L$libdir'
 
8430
      hardcode_minus_L=yes
 
8431
 
 
8432
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8433
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8434
      # to version 4, is to share data among multiple programs linked
 
8435
      # with the same dynamic library.  Since this doesn't match the
 
8436
      # behavior of shared libraries on other platforms, we can't use
 
8437
      # them.
 
8438
      ld_shlibs=no
 
8439
      ;;
 
8440
 
 
8441
    beos*)
 
8442
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8443
        allow_undefined_flag=unsupported
 
8444
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8445
        # support --undefined.  This deserves some investigation.  FIXME
 
8446
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8447
      else
 
8448
        ld_shlibs=no
 
8449
      fi
 
8450
      ;;
 
8451
 
 
8452
    cygwin* | mingw* | pw32*)
 
8453
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8454
      # as there is no search path for DLLs.
 
8455
      hardcode_libdir_flag_spec='-L$libdir'
 
8456
      allow_undefined_flag=unsupported
 
8457
      always_export_symbols=no
 
8458
      enable_shared_with_static_runtimes=yes
 
8459
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8460
 
 
8461
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8462
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8463
        # If the export-symbols file already is a .def file (1st line
 
8464
        # is EXPORTS), use it as is; otherwise, prepend...
 
8465
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8466
          cp $export_symbols $output_objdir/$soname.def;
 
8467
        else
 
8468
          echo EXPORTS > $output_objdir/$soname.def;
 
8469
          cat $export_symbols >> $output_objdir/$soname.def;
 
8470
        fi~
 
8471
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8472
      else
 
8473
        ld_shlibs=no
 
8474
      fi
 
8475
      ;;
 
8476
 
 
8477
    interix[3-9]*)
 
8478
      hardcode_direct=no
 
8479
      hardcode_shlibpath_var=no
 
8480
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8481
      export_dynamic_flag_spec='${wl}-E'
 
8482
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8483
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8484
      # default) and relocated if they conflict, which is a slow very memory
 
8485
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8486
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8487
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8488
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8489
      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'
 
8490
      ;;
 
8491
 
 
8492
    gnu* | linux* | k*bsd*-gnu)
 
8493
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8494
        tmp_addflag=
 
8495
        case $cc_basename,$host_cpu in
 
8496
        pgcc*)                          # Portland Group C compiler
 
8497
          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'
 
8498
          tmp_addflag=' $pic_flag'
 
8499
          ;;
 
8500
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8501
          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'
 
8502
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8503
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8504
          tmp_addflag=' -i_dynamic' ;;
 
8505
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8506
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8507
        ifc* | ifort*)                  # Intel Fortran compiler
 
8508
          tmp_addflag=' -nofor_main' ;;
 
8509
        esac
 
8510
        case `$CC -V 2>&1 | sed 5q` in
 
8511
        *Sun\ C*)                       # Sun C 5.9
 
8512
          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'
 
8513
          tmp_sharedflag='-G' ;;
 
8514
        *Sun\ F*)                       # Sun Fortran 8.3
 
8515
          tmp_sharedflag='-G' ;;
 
8516
        *)
 
8517
          tmp_sharedflag='-shared' ;;
 
8518
        esac
 
8519
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8520
 
 
8521
        if test $supports_anon_versioning = yes; then
 
8522
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8523
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8524
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8525
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8526
        fi
 
8527
      else
 
8528
        ld_shlibs=no
 
8529
      fi
 
8530
      ;;
 
8531
 
 
8532
    netbsd*)
 
8533
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8534
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8535
        wlarc=
 
8536
      else
 
8537
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8538
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8539
      fi
 
8540
      ;;
 
8541
 
 
8542
    solaris*)
 
8543
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8544
        ld_shlibs=no
 
8545
        cat <<EOF 1>&2
 
8546
 
 
8547
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8548
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8549
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8550
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8551
*** your PATH or compiler configuration so that the native linker is
 
8552
*** used, and then restart.
 
8553
 
 
8554
EOF
 
8555
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8556
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8557
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8558
      else
 
8559
        ld_shlibs=no
 
8560
      fi
 
8561
      ;;
 
8562
 
 
8563
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8564
      case `$LD -v 2>&1` in
 
8565
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8566
        ld_shlibs=no
 
8567
        cat <<_LT_EOF 1>&2
 
8568
 
 
8569
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8570
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8571
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8572
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8573
*** your PATH or compiler configuration so that the native linker is
 
8574
*** used, and then restart.
 
8575
 
 
8576
_LT_EOF
 
8577
        ;;
 
8578
        *)
 
8579
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8580
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8581
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8582
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8583
          else
 
8584
            ld_shlibs=no
 
8585
          fi
 
8586
        ;;
 
8587
      esac
 
8588
      ;;
 
8589
 
 
8590
    sunos4*)
 
8591
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8592
      wlarc=
 
8593
      hardcode_direct=yes
 
8594
      hardcode_shlibpath_var=no
 
8595
      ;;
 
8596
 
 
8597
    *)
 
8598
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8599
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8600
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8601
      else
 
8602
        ld_shlibs=no
 
8603
      fi
 
8604
      ;;
 
8605
    esac
 
8606
 
 
8607
    if test "$ld_shlibs" = no; then
 
8608
      runpath_var=
 
8609
      hardcode_libdir_flag_spec=
 
8610
      export_dynamic_flag_spec=
 
8611
      whole_archive_flag_spec=
 
8612
    fi
 
8613
  else
 
8614
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8615
    case $host_os in
 
8616
    aix3*)
 
8617
      allow_undefined_flag=unsupported
 
8618
      always_export_symbols=yes
 
8619
      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'
 
8620
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8621
      # are no directories specified by -L.
 
8622
      hardcode_minus_L=yes
 
8623
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8624
        # Neither direct hardcoding nor static linking is supported with a
 
8625
        # broken collect2.
 
8626
        hardcode_direct=unsupported
 
8627
      fi
 
8628
      ;;
 
8629
 
 
8630
    aix[4-9]*)
 
8631
      if test "$host_cpu" = ia64; then
 
8632
        # On IA64, the linker does run time linking by default, so we don't
 
8633
        # have to do anything special.
 
8634
        aix_use_runtimelinking=no
 
8635
        exp_sym_flag='-Bexport'
 
8636
        no_entry_flag=""
 
8637
      else
 
8638
        # If we're using GNU nm, then we don't want the "-C" option.
 
8639
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8640
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8641
          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'
 
8642
        else
 
8643
          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'
 
8644
        fi
 
8645
        aix_use_runtimelinking=no
 
8646
 
 
8647
        # Test if we are trying to use run time linking or normal
 
8648
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8649
        # need to do runtime linking.
 
8650
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8651
          for ld_flag in $LDFLAGS; do
 
8652
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8653
            aix_use_runtimelinking=yes
 
8654
            break
 
8655
          fi
 
8656
          done
 
8657
          ;;
 
8658
        esac
 
8659
 
 
8660
        exp_sym_flag='-bexport'
 
8661
        no_entry_flag='-bnoentry'
 
8662
      fi
 
8663
 
 
8664
      # When large executables or shared objects are built, AIX ld can
 
8665
      # have problems creating the table of contents.  If linking a library
 
8666
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8667
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8668
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8669
 
 
8670
      archive_cmds=''
 
8671
      hardcode_direct=yes
 
8672
      hardcode_libdir_separator=':'
 
8673
      link_all_deplibs=yes
 
8674
 
 
8675
      if test "$GCC" = yes; then
 
8676
        case $host_os in aix4.[012]|aix4.[012].*)
 
8677
        # We only want to do this on AIX 4.2 and lower, the check
 
8678
        # below for broken collect2 doesn't work under 4.3+
 
8679
          collect2name=`${CC} -print-prog-name=collect2`
 
8680
          if test -f "$collect2name" && \
 
8681
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8682
          then
 
8683
          # We have reworked collect2
 
8684
          :
 
8685
          else
 
8686
          # We have old collect2
 
8687
          hardcode_direct=unsupported
 
8688
          # It fails to find uninstalled libraries when the uninstalled
 
8689
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8690
          # to unsupported forces relinking
 
8691
          hardcode_minus_L=yes
 
8692
          hardcode_libdir_flag_spec='-L$libdir'
 
8693
          hardcode_libdir_separator=
 
8694
          fi
 
8695
          ;;
 
8696
        esac
 
8697
        shared_flag='-shared'
 
8698
        if test "$aix_use_runtimelinking" = yes; then
 
8699
          shared_flag="$shared_flag "'${wl}-G'
 
8700
        fi
 
8701
      else
 
8702
        # not using gcc
 
8703
        if test "$host_cpu" = ia64; then
 
8704
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8705
        # chokes on -Wl,-G. The following line is correct:
 
8706
          shared_flag='-G'
 
8707
        else
 
8708
          if test "$aix_use_runtimelinking" = yes; then
 
8709
            shared_flag='${wl}-G'
 
8710
          else
 
8711
            shared_flag='${wl}-bM:SRE'
 
8712
          fi
 
8713
        fi
 
8714
      fi
 
8715
 
 
8716
      # It seems that -bexpall does not export symbols beginning with
 
8717
      # underscore (_), so it is better to generate a list of symbols to export.
 
8718
      always_export_symbols=yes
 
8719
      if test "$aix_use_runtimelinking" = yes; then
 
8720
        # Warning - without using the other runtime loading flags (-brtl),
 
8721
        # -berok will link without error, but may produce a broken library.
 
8722
        allow_undefined_flag='-berok'
 
8723
       # Determine the default libpath from the value encoded in an empty executable.
 
8724
       cat >conftest.$ac_ext <<_ACEOF
 
8725
/* confdefs.h.  */
 
8726
_ACEOF
 
8727
cat confdefs.h >>conftest.$ac_ext
 
8728
cat >>conftest.$ac_ext <<_ACEOF
 
8729
/* end confdefs.h.  */
 
8730
 
 
8731
int
 
8732
main ()
 
8733
{
 
8734
 
 
8735
  ;
 
8736
  return 0;
 
8737
}
 
8738
_ACEOF
 
8739
rm -f conftest.$ac_objext conftest$ac_exeext
 
8740
if { (ac_try="$ac_link"
 
8741
case "(($ac_try" in
 
8742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8743
  *) ac_try_echo=$ac_try;;
 
8744
esac
 
8745
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8746
$as_echo "$ac_try_echo") >&5
 
8747
  (eval "$ac_link") 2>conftest.er1
 
8748
  ac_status=$?
 
8749
  grep -v '^ *+' conftest.er1 >conftest.err
 
8750
  rm -f conftest.er1
 
8751
  cat conftest.err >&5
 
8752
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8753
  (exit $ac_status); } && {
 
8754
         test -z "$ac_c_werror_flag" ||
 
8755
         test ! -s conftest.err
 
8756
       } && test -s conftest$ac_exeext && {
 
8757
         test "$cross_compiling" = yes ||
 
8758
         $as_test_x conftest$ac_exeext
 
8759
       }; then
 
8760
 
 
8761
lt_aix_libpath_sed='
 
8762
    /Import File Strings/,/^$/ {
 
8763
        /^0/ {
 
8764
            s/^0  *\(.*\)$/\1/
 
8765
            p
 
8766
        }
 
8767
    }'
 
8768
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8769
# Check for a 64-bit object if we didn't find anything.
 
8770
if test -z "$aix_libpath"; then
 
8771
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8772
fi
 
8773
else
 
8774
  $as_echo "$as_me: failed program was:" >&5
 
8775
sed 's/^/| /' conftest.$ac_ext >&5
 
8776
 
 
8777
 
 
8778
fi
 
8779
 
 
8780
rm -rf conftest.dSYM
 
8781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8782
      conftest$ac_exeext conftest.$ac_ext
 
8783
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8784
 
 
8785
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8786
        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"
 
8787
       else
 
8788
        if test "$host_cpu" = ia64; then
 
8789
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8790
          allow_undefined_flag="-z nodefs"
 
8791
          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"
 
8792
        else
 
8793
         # Determine the default libpath from the value encoded in an empty executable.
 
8794
         cat >conftest.$ac_ext <<_ACEOF
 
8795
/* confdefs.h.  */
 
8796
_ACEOF
 
8797
cat confdefs.h >>conftest.$ac_ext
 
8798
cat >>conftest.$ac_ext <<_ACEOF
 
8799
/* end confdefs.h.  */
 
8800
 
 
8801
int
 
8802
main ()
 
8803
{
 
8804
 
 
8805
  ;
 
8806
  return 0;
 
8807
}
 
8808
_ACEOF
 
8809
rm -f conftest.$ac_objext conftest$ac_exeext
 
8810
if { (ac_try="$ac_link"
 
8811
case "(($ac_try" in
 
8812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8813
  *) ac_try_echo=$ac_try;;
 
8814
esac
 
8815
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8816
$as_echo "$ac_try_echo") >&5
 
8817
  (eval "$ac_link") 2>conftest.er1
 
8818
  ac_status=$?
 
8819
  grep -v '^ *+' conftest.er1 >conftest.err
 
8820
  rm -f conftest.er1
 
8821
  cat conftest.err >&5
 
8822
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8823
  (exit $ac_status); } && {
 
8824
         test -z "$ac_c_werror_flag" ||
 
8825
         test ! -s conftest.err
 
8826
       } && test -s conftest$ac_exeext && {
 
8827
         test "$cross_compiling" = yes ||
 
8828
         $as_test_x conftest$ac_exeext
 
8829
       }; then
 
8830
 
 
8831
lt_aix_libpath_sed='
 
8832
    /Import File Strings/,/^$/ {
 
8833
        /^0/ {
 
8834
            s/^0  *\(.*\)$/\1/
 
8835
            p
 
8836
        }
 
8837
    }'
 
8838
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8839
# Check for a 64-bit object if we didn't find anything.
 
8840
if test -z "$aix_libpath"; then
 
8841
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8842
fi
 
8843
else
 
8844
  $as_echo "$as_me: failed program was:" >&5
 
8845
sed 's/^/| /' conftest.$ac_ext >&5
 
8846
 
 
8847
 
 
8848
fi
 
8849
 
 
8850
rm -rf conftest.dSYM
 
8851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8852
      conftest$ac_exeext conftest.$ac_ext
 
8853
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8854
 
 
8855
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8856
          # Warning - without using the other run time loading flags,
 
8857
          # -berok will link without error, but may produce a broken library.
 
8858
          no_undefined_flag=' ${wl}-bernotok'
 
8859
          allow_undefined_flag=' ${wl}-berok'
 
8860
          # Exported symbols can be pulled into shared objects from archives
 
8861
          whole_archive_flag_spec='$convenience'
 
8862
          archive_cmds_need_lc=yes
 
8863
          # This is similar to how AIX traditionally builds its shared libraries.
 
8864
          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'
 
8865
        fi
 
8866
      fi
 
8867
      ;;
 
8868
 
 
8869
    amigaos*)
 
8870
      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)'
 
8871
      hardcode_libdir_flag_spec='-L$libdir'
 
8872
      hardcode_minus_L=yes
 
8873
      # see comment about different semantics on the GNU ld section
 
8874
      ld_shlibs=no
 
8875
      ;;
 
8876
 
 
8877
    bsdi[45]*)
 
8878
      export_dynamic_flag_spec=-rdynamic
 
8879
      ;;
 
8880
 
 
8881
    cygwin* | mingw* | pw32*)
 
8882
      # When not using gcc, we currently assume that we are using
 
8883
      # Microsoft Visual C++.
 
8884
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8885
      # no search path for DLLs.
 
8886
      hardcode_libdir_flag_spec=' '
 
8887
      allow_undefined_flag=unsupported
 
8888
      # Tell ltmain to make .lib files, not .a files.
 
8889
      libext=lib
 
8890
      # Tell ltmain to make .dll files, not .so files.
 
8891
      shrext_cmds=".dll"
 
8892
      # FIXME: Setting linknames here is a bad hack.
 
8893
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8894
      # The linker will automatically build a .lib file if we build a DLL.
 
8895
      old_archive_From_new_cmds='true'
 
8896
      # FIXME: Should let the user specify the lib program.
 
8897
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8898
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8899
      enable_shared_with_static_runtimes=yes
 
8900
      ;;
 
8901
 
 
8902
    darwin* | rhapsody*)
 
8903
      case $host_os in
 
8904
        rhapsody* | darwin1.[012])
 
8905
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8906
         ;;
 
8907
       *) # Darwin 1.3 on
 
8908
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8909
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8910
         else
 
8911
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8912
             10.[012])
 
8913
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8914
               ;;
 
8915
             10.*)
 
8916
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8917
               ;;
 
8918
           esac
 
8919
         fi
 
8920
         ;;
 
8921
      esac
 
8922
      archive_cmds_need_lc=no
 
8923
      hardcode_direct=no
 
8924
      hardcode_automatic=yes
 
8925
      hardcode_shlibpath_var=unsupported
 
8926
      whole_archive_flag_spec=''
 
8927
      link_all_deplibs=yes
 
8928
    if test "$GCC" = yes ; then
 
8929
        output_verbose_link_cmd='echo'
 
8930
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8931
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8932
        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}"
 
8933
        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}"
 
8934
    else
 
8935
      case $cc_basename in
 
8936
        xlc*)
 
8937
         output_verbose_link_cmd='echo'
 
8938
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8939
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8940
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8941
         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}'
 
8942
          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}'
 
8943
          ;;
 
8944
       *)
 
8945
         ld_shlibs=no
 
8946
          ;;
 
8947
      esac
 
8948
    fi
 
8949
      ;;
 
8950
 
 
8951
    dgux*)
 
8952
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8953
      hardcode_libdir_flag_spec='-L$libdir'
 
8954
      hardcode_shlibpath_var=no
 
8955
      ;;
 
8956
 
 
8957
    freebsd1*)
 
8958
      ld_shlibs=no
 
8959
      ;;
 
8960
 
 
8961
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8962
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8963
    # does not break anything, and helps significantly (at the cost of a little
 
8964
    # extra space).
 
8965
    freebsd2.2*)
 
8966
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8967
      hardcode_libdir_flag_spec='-R$libdir'
 
8968
      hardcode_direct=yes
 
8969
      hardcode_shlibpath_var=no
 
8970
      ;;
 
8971
 
 
8972
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8973
    freebsd2*)
 
8974
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8975
      hardcode_direct=yes
 
8976
      hardcode_minus_L=yes
 
8977
      hardcode_shlibpath_var=no
 
8978
      ;;
 
8979
 
 
8980
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8981
    freebsd* | dragonfly*)
 
8982
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8983
      hardcode_libdir_flag_spec='-R$libdir'
 
8984
      hardcode_direct=yes
 
8985
      hardcode_shlibpath_var=no
 
8986
      ;;
 
8987
 
 
8988
    hpux9*)
 
8989
      if test "$GCC" = yes; then
 
8990
        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'
 
8991
      else
 
8992
        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'
 
8993
      fi
 
8994
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8995
      hardcode_libdir_separator=:
 
8996
      hardcode_direct=yes
 
8997
 
 
8998
      # hardcode_minus_L: Not really in the search PATH,
 
8999
      # but as the default location of the library.
 
9000
      hardcode_minus_L=yes
 
9001
      export_dynamic_flag_spec='${wl}-E'
 
9002
      ;;
 
9003
 
 
9004
    hpux10*)
 
9005
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9006
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9007
      else
 
9008
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9009
      fi
 
9010
      if test "$with_gnu_ld" = no; then
 
9011
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9012
        hardcode_libdir_separator=:
 
9013
 
 
9014
        hardcode_direct=yes
 
9015
        export_dynamic_flag_spec='${wl}-E'
 
9016
 
 
9017
        # hardcode_minus_L: Not really in the search PATH,
 
9018
        # but as the default location of the library.
 
9019
        hardcode_minus_L=yes
 
9020
      fi
 
9021
      ;;
 
9022
 
 
9023
    hpux11*)
 
9024
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9025
        case $host_cpu in
 
9026
        hppa*64*)
 
9027
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9028
          ;;
 
9029
        ia64*)
 
9030
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9031
          ;;
 
9032
        *)
 
9033
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9034
          ;;
 
9035
        esac
 
9036
      else
 
9037
        case $host_cpu in
 
9038
        hppa*64*)
 
9039
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9040
          ;;
 
9041
        ia64*)
 
9042
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9043
          ;;
 
9044
        *)
 
9045
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9046
          ;;
 
9047
        esac
 
9048
      fi
 
9049
      if test "$with_gnu_ld" = no; then
 
9050
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9051
        hardcode_libdir_separator=:
 
9052
 
 
9053
        case $host_cpu in
 
9054
        hppa*64*|ia64*)
 
9055
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9056
          hardcode_direct=no
 
9057
          hardcode_shlibpath_var=no
 
9058
          ;;
 
9059
        *)
 
9060
          hardcode_direct=yes
 
9061
          export_dynamic_flag_spec='${wl}-E'
 
9062
 
 
9063
          # hardcode_minus_L: Not really in the search PATH,
 
9064
          # but as the default location of the library.
 
9065
          hardcode_minus_L=yes
 
9066
          ;;
 
9067
        esac
 
9068
      fi
 
9069
      ;;
 
9070
 
 
9071
    irix5* | irix6* | nonstopux*)
 
9072
      if test "$GCC" = yes; then
 
9073
        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'
 
9074
      else
 
9075
        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'
 
9076
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9077
      fi
 
9078
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9079
      hardcode_libdir_separator=:
 
9080
      link_all_deplibs=yes
 
9081
      ;;
 
9082
 
 
9083
    netbsd*)
 
9084
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9085
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9086
      else
 
9087
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9088
      fi
 
9089
      hardcode_libdir_flag_spec='-R$libdir'
 
9090
      hardcode_direct=yes
 
9091
      hardcode_shlibpath_var=no
 
9092
      ;;
 
9093
 
 
9094
    newsos6)
 
9095
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9096
      hardcode_direct=yes
 
9097
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9098
      hardcode_libdir_separator=:
 
9099
      hardcode_shlibpath_var=no
 
9100
      ;;
 
9101
 
 
9102
    openbsd*)
 
9103
      if test -f /usr/libexec/ld.so; then
 
9104
        hardcode_direct=yes
 
9105
        hardcode_shlibpath_var=no
 
9106
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9107
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9108
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9109
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9110
          export_dynamic_flag_spec='${wl}-E'
 
9111
        else
 
9112
          case $host_os in
 
9113
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9114
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9115
             hardcode_libdir_flag_spec='-R$libdir'
 
9116
             ;;
 
9117
           *)
 
9118
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9119
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9120
             ;;
 
9121
          esac
 
9122
        fi
 
9123
      else
 
9124
        ld_shlibs=no
 
9125
      fi
 
9126
      ;;
 
9127
 
 
9128
    os2*)
 
9129
      hardcode_libdir_flag_spec='-L$libdir'
 
9130
      hardcode_minus_L=yes
 
9131
      allow_undefined_flag=unsupported
 
9132
      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'
 
9133
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9134
      ;;
 
9135
 
 
9136
    osf3*)
 
9137
      if test "$GCC" = yes; then
 
9138
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9139
        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'
 
9140
      else
 
9141
        allow_undefined_flag=' -expect_unresolved \*'
 
9142
        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'
 
9143
      fi
 
9144
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9145
      hardcode_libdir_separator=:
 
9146
      ;;
 
9147
 
 
9148
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9149
      if test "$GCC" = yes; then
 
9150
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9151
        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'
 
9152
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9153
      else
 
9154
        allow_undefined_flag=' -expect_unresolved \*'
 
9155
        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'
 
9156
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9157
        $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'
 
9158
 
 
9159
        # Both c and cxx compiler support -rpath directly
 
9160
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9161
      fi
 
9162
      hardcode_libdir_separator=:
 
9163
      ;;
 
9164
 
 
9165
    solaris*)
 
9166
      no_undefined_flag=' -z text'
 
9167
      if test "$GCC" = yes; then
 
9168
        wlarc='${wl}'
 
9169
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9170
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9171
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9172
      else
 
9173
        wlarc=''
 
9174
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9175
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9176
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9177
      fi
 
9178
      hardcode_libdir_flag_spec='-R$libdir'
 
9179
      hardcode_shlibpath_var=no
 
9180
      case $host_os in
 
9181
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9182
      *)
 
9183
        # The compiler driver will combine and reorder linker options,
 
9184
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9185
        # but is careful enough not to reorder.
 
9186
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9187
        if test "$GCC" = yes; then
 
9188
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9189
        else
 
9190
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9191
        fi
 
9192
        ;;
 
9193
      esac
 
9194
      link_all_deplibs=yes
 
9195
      ;;
 
9196
 
 
9197
    sunos4*)
 
9198
      if test "x$host_vendor" = xsequent; then
 
9199
        # Use $CC to link under sequent, because it throws in some extra .o
 
9200
        # files that make .init and .fini sections work.
 
9201
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9202
      else
 
9203
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9204
      fi
 
9205
      hardcode_libdir_flag_spec='-L$libdir'
 
9206
      hardcode_direct=yes
 
9207
      hardcode_minus_L=yes
 
9208
      hardcode_shlibpath_var=no
 
9209
      ;;
 
9210
 
 
9211
    sysv4)
 
9212
      case $host_vendor in
 
9213
        sni)
 
9214
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9215
          hardcode_direct=yes # is this really true???
 
9216
        ;;
 
9217
        siemens)
 
9218
          ## LD is ld it makes a PLAMLIB
 
9219
          ## CC just makes a GrossModule.
 
9220
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9221
          reload_cmds='$CC -r -o $output$reload_objs'
 
9222
          hardcode_direct=no
 
9223
        ;;
 
9224
        motorola)
 
9225
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9226
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9227
        ;;
 
9228
      esac
 
9229
      runpath_var='LD_RUN_PATH'
 
9230
      hardcode_shlibpath_var=no
 
9231
      ;;
 
9232
 
 
9233
    sysv4.3*)
 
9234
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9235
      hardcode_shlibpath_var=no
 
9236
      export_dynamic_flag_spec='-Bexport'
 
9237
      ;;
 
9238
 
 
9239
    sysv4*MP*)
 
9240
      if test -d /usr/nec; then
 
9241
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9242
        hardcode_shlibpath_var=no
 
9243
        runpath_var=LD_RUN_PATH
 
9244
        hardcode_runpath_var=yes
 
9245
        ld_shlibs=yes
 
9246
      fi
 
9247
      ;;
 
9248
 
 
9249
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9250
      no_undefined_flag='${wl}-z,text'
 
9251
      archive_cmds_need_lc=no
 
9252
      hardcode_shlibpath_var=no
 
9253
      runpath_var='LD_RUN_PATH'
 
9254
 
 
9255
      if test "$GCC" = yes; then
 
9256
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9257
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9258
      else
 
9259
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9260
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9261
      fi
 
9262
      ;;
 
9263
 
 
9264
    sysv5* | sco3.2v5* | sco5v6*)
 
9265
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9266
      # link with -lc, and that would cause any symbols used from libc to
 
9267
      # always be unresolved, which means just about no library would
 
9268
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9269
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9270
      # as -z defs.
 
9271
      no_undefined_flag='${wl}-z,text'
 
9272
      allow_undefined_flag='${wl}-z,nodefs'
 
9273
      archive_cmds_need_lc=no
 
9274
      hardcode_shlibpath_var=no
 
9275
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9276
      hardcode_libdir_separator=':'
 
9277
      link_all_deplibs=yes
 
9278
      export_dynamic_flag_spec='${wl}-Bexport'
 
9279
      runpath_var='LD_RUN_PATH'
 
9280
 
 
9281
      if test "$GCC" = yes; then
 
9282
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9283
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9284
      else
 
9285
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9286
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9287
      fi
 
9288
      ;;
 
9289
 
 
9290
    uts4*)
 
9291
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9292
      hardcode_libdir_flag_spec='-L$libdir'
 
9293
      hardcode_shlibpath_var=no
 
9294
      ;;
 
9295
 
 
9296
    *)
 
9297
      ld_shlibs=no
 
9298
      ;;
 
9299
    esac
 
9300
  fi
 
9301
 
 
9302
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9303
$as_echo "$ld_shlibs" >&6; }
 
9304
test "$ld_shlibs" = no && can_build_shared=no
 
9305
 
 
9306
#
 
9307
# Do we need to explicitly link libc?
 
9308
#
 
9309
case "x$archive_cmds_need_lc" in
 
9310
x|xyes)
 
9311
  # Assume -lc should be added
 
9312
  archive_cmds_need_lc=yes
 
9313
 
 
9314
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9315
    case $archive_cmds in
 
9316
    *'~'*)
 
9317
      # FIXME: we may have to deal with multi-command sequences.
 
9318
      ;;
 
9319
    '$CC '*)
 
9320
      # Test whether the compiler implicitly links with -lc since on some
 
9321
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9322
      # to ld, don't add -lc before -lgcc.
 
9323
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9324
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9325
      $rm conftest*
 
9326
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9327
 
 
9328
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9329
  (eval $ac_compile) 2>&5
 
9330
  ac_status=$?
 
9331
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9332
  (exit $ac_status); } 2>conftest.err; then
 
9333
        soname=conftest
 
9334
        lib=conftest
 
9335
        libobjs=conftest.$ac_objext
 
9336
        deplibs=
 
9337
        wl=$lt_prog_compiler_wl
 
9338
        pic_flag=$lt_prog_compiler_pic
 
9339
        compiler_flags=-v
 
9340
        linker_flags=-v
 
9341
        verstring=
 
9342
        output_objdir=.
 
9343
        libname=conftest
 
9344
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9345
        allow_undefined_flag=
 
9346
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9347
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9348
  ac_status=$?
 
9349
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9350
  (exit $ac_status); }
 
9351
        then
 
9352
          archive_cmds_need_lc=no
 
9353
        else
 
9354
          archive_cmds_need_lc=yes
 
9355
        fi
 
9356
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9357
      else
 
9358
        cat conftest.err 1>&5
 
9359
      fi
 
9360
      $rm conftest*
 
9361
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9362
$as_echo "$archive_cmds_need_lc" >&6; }
 
9363
      ;;
 
9364
    esac
 
9365
  fi
 
9366
  ;;
 
9367
esac
 
9368
 
 
9369
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9370
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9371
library_names_spec=
 
9372
libname_spec='lib$name'
 
9373
soname_spec=
 
9374
shrext_cmds=".so"
 
9375
postinstall_cmds=
 
9376
postuninstall_cmds=
 
9377
finish_cmds=
 
9378
finish_eval=
 
9379
shlibpath_var=
 
9380
shlibpath_overrides_runpath=unknown
 
9381
version_type=none
 
9382
dynamic_linker="$host_os ld.so"
 
9383
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9384
 
 
9385
if test "$GCC" = yes; then
 
9386
  case $host_os in
 
9387
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9388
    *) lt_awk_arg="/^libraries:/" ;;
 
9389
  esac
 
9390
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9391
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9392
    # if the path contains ";" then we assume it to be the separator
 
9393
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9394
    # assumed that no part of a normal pathname contains ";" but that should
 
9395
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9396
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9397
  else
 
9398
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9399
  fi
 
9400
  # Ok, now we have the path, separated by spaces, we can step through it
 
9401
  # and add multilib dir if necessary.
 
9402
  lt_tmp_lt_search_path_spec=
 
9403
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9404
  for lt_sys_path in $lt_search_path_spec; do
 
9405
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9406
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9407
    else
 
9408
      test -d "$lt_sys_path" && \
 
9409
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9410
    fi
 
9411
  done
 
9412
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9413
BEGIN {RS=" "; FS="/|\n";} {
 
9414
  lt_foo="";
 
9415
  lt_count=0;
 
9416
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9417
    if ($lt_i != "" && $lt_i != ".") {
 
9418
      if ($lt_i == "..") {
 
9419
        lt_count++;
 
9420
      } else {
 
9421
        if (lt_count == 0) {
 
9422
          lt_foo="/" $lt_i lt_foo;
 
9423
        } else {
 
9424
          lt_count--;
 
9425
        }
 
9426
      }
 
9427
    }
 
9428
  }
 
9429
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9430
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9431
}'`
 
9432
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9433
else
 
9434
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9435
fi
 
9436
need_lib_prefix=unknown
 
9437
hardcode_into_libs=no
 
9438
 
 
9439
# when you set need_version to no, make sure it does not cause -set_version
 
9440
# flags to be left without arguments
 
9441
need_version=unknown
 
9442
 
 
9443
case $host_os in
 
9444
aix3*)
 
9445
  version_type=linux
 
9446
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9447
  shlibpath_var=LIBPATH
 
9448
 
 
9449
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9450
  soname_spec='${libname}${release}${shared_ext}$major'
 
9451
  ;;
 
9452
 
 
9453
aix[4-9]*)
 
9454
  version_type=linux
 
9455
  need_lib_prefix=no
 
9456
  need_version=no
 
9457
  hardcode_into_libs=yes
 
9458
  if test "$host_cpu" = ia64; then
 
9459
    # AIX 5 supports IA64
 
9460
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9461
    shlibpath_var=LD_LIBRARY_PATH
 
9462
  else
 
9463
    # With GCC up to 2.95.x, collect2 would create an import file
 
9464
    # for dependence libraries.  The import file would start with
 
9465
    # the line `#! .'.  This would cause the generated library to
 
9466
    # depend on `.', always an invalid library.  This was fixed in
 
9467
    # development snapshots of GCC prior to 3.0.
 
9468
    case $host_os in
 
9469
      aix4 | aix4.[01] | aix4.[01].*)
 
9470
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9471
           echo ' yes '
 
9472
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9473
        :
 
9474
      else
 
9475
        can_build_shared=no
 
9476
      fi
 
9477
      ;;
 
9478
    esac
 
9479
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9480
    # soname into executable. Probably we can add versioning support to
 
9481
    # collect2, so additional links can be useful in future.
 
9482
    if test "$aix_use_runtimelinking" = yes; then
 
9483
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9484
      # instead of lib<name>.a to let people know that these are not
 
9485
      # typical AIX shared libraries.
 
9486
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9487
    else
 
9488
      # We preserve .a as extension for shared libraries through AIX4.2
 
9489
      # and later when we are not doing run time linking.
 
9490
      library_names_spec='${libname}${release}.a $libname.a'
 
9491
      soname_spec='${libname}${release}${shared_ext}$major'
 
9492
    fi
 
9493
    shlibpath_var=LIBPATH
 
9494
  fi
 
9495
  ;;
 
9496
 
 
9497
amigaos*)
 
9498
  library_names_spec='$libname.ixlibrary $libname.a'
 
9499
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9500
  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'
 
9501
  ;;
 
9502
 
 
9503
beos*)
 
9504
  library_names_spec='${libname}${shared_ext}'
 
9505
  dynamic_linker="$host_os ld.so"
 
9506
  shlibpath_var=LIBRARY_PATH
 
9507
  ;;
 
9508
 
 
9509
bsdi[45]*)
 
9510
  version_type=linux
 
9511
  need_version=no
 
9512
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9513
  soname_spec='${libname}${release}${shared_ext}$major'
 
9514
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9515
  shlibpath_var=LD_LIBRARY_PATH
 
9516
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9517
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9518
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9519
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9520
  # libtool to hard-code these into programs
 
9521
  ;;
 
9522
 
 
9523
cygwin* | mingw* | pw32*)
 
9524
  version_type=windows
 
9525
  shrext_cmds=".dll"
 
9526
  need_version=no
 
9527
  need_lib_prefix=no
 
9528
 
 
9529
  case $GCC,$host_os in
 
9530
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9531
    library_names_spec='$libname.dll.a'
 
9532
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9533
    postinstall_cmds='base_file=`basename \${file}`~
 
9534
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9535
      dldir=$destdir/`dirname \$dlpath`~
 
9536
      test -d \$dldir || mkdir -p \$dldir~
 
9537
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9538
      chmod a+x \$dldir/$dlname'
 
9539
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9540
      dlpath=$dir/\$dldll~
 
9541
       $rm \$dlpath'
 
9542
    shlibpath_overrides_runpath=yes
 
9543
 
 
9544
    case $host_os in
 
9545
    cygwin*)
 
9546
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9547
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9548
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9549
      ;;
 
9550
    mingw*)
 
9551
      # MinGW DLLs use traditional 'lib' prefix
 
9552
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9553
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9554
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9555
        # It is most probably a Windows format PATH printed by
 
9556
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9557
        # path with ; separators, and with drive letters. We can handle the
 
9558
        # drive letters (cygwin fileutils understands them), so leave them,
 
9559
        # especially as we might pass files found there to a mingw objdump,
 
9560
        # which wouldn't understand a cygwinified path. Ahh.
 
9561
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9562
      else
 
9563
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9564
      fi
 
9565
      ;;
 
9566
    pw32*)
 
9567
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9568
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9569
      ;;
 
9570
    esac
 
9571
    ;;
 
9572
 
 
9573
  *)
 
9574
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9575
    ;;
 
9576
  esac
 
9577
  dynamic_linker='Win32 ld.exe'
 
9578
  # FIXME: first we should search . and the directory the executable is in
 
9579
  shlibpath_var=PATH
 
9580
  ;;
 
9581
 
 
9582
darwin* | rhapsody*)
 
9583
  dynamic_linker="$host_os dyld"
 
9584
  version_type=darwin
 
9585
  need_lib_prefix=no
 
9586
  need_version=no
 
9587
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9588
  soname_spec='${libname}${release}${major}$shared_ext'
 
9589
  shlibpath_overrides_runpath=yes
 
9590
  shlibpath_var=DYLD_LIBRARY_PATH
 
9591
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9592
 
 
9593
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9594
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9595
  ;;
 
9596
 
 
9597
dgux*)
 
9598
  version_type=linux
 
9599
  need_lib_prefix=no
 
9600
  need_version=no
 
9601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9602
  soname_spec='${libname}${release}${shared_ext}$major'
 
9603
  shlibpath_var=LD_LIBRARY_PATH
 
9604
  ;;
 
9605
 
 
9606
freebsd1*)
 
9607
  dynamic_linker=no
 
9608
  ;;
 
9609
 
 
9610
freebsd* | dragonfly*)
 
9611
  # DragonFly does not have aout.  When/if they implement a new
 
9612
  # versioning mechanism, adjust this.
 
9613
  if test -x /usr/bin/objformat; then
 
9614
    objformat=`/usr/bin/objformat`
 
9615
  else
 
9616
    case $host_os in
 
9617
    freebsd[123]*) objformat=aout ;;
 
9618
    *) objformat=elf ;;
 
9619
    esac
 
9620
  fi
 
9621
  version_type=freebsd-$objformat
 
9622
  case $version_type in
 
9623
    freebsd-elf*)
 
9624
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9625
      need_version=no
 
9626
      need_lib_prefix=no
 
9627
      ;;
 
9628
    freebsd-*)
 
9629
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9630
      need_version=yes
 
9631
      ;;
 
9632
  esac
 
9633
  shlibpath_var=LD_LIBRARY_PATH
 
9634
  case $host_os in
 
9635
  freebsd2*)
 
9636
    shlibpath_overrides_runpath=yes
 
9637
    ;;
 
9638
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9639
    shlibpath_overrides_runpath=yes
 
9640
    hardcode_into_libs=yes
 
9641
    ;;
 
9642
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9643
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9644
    shlibpath_overrides_runpath=no
 
9645
    hardcode_into_libs=yes
 
9646
    ;;
 
9647
  *) # from 4.6 on, and DragonFly
 
9648
    shlibpath_overrides_runpath=yes
 
9649
    hardcode_into_libs=yes
 
9650
    ;;
 
9651
  esac
 
9652
  ;;
 
9653
 
 
9654
gnu*)
 
9655
  version_type=linux
 
9656
  need_lib_prefix=no
 
9657
  need_version=no
 
9658
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9659
  soname_spec='${libname}${release}${shared_ext}$major'
 
9660
  shlibpath_var=LD_LIBRARY_PATH
 
9661
  hardcode_into_libs=yes
 
9662
  ;;
 
9663
 
 
9664
hpux9* | hpux10* | hpux11*)
 
9665
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9666
  # link against other versions.
 
9667
  version_type=sunos
 
9668
  need_lib_prefix=no
 
9669
  need_version=no
 
9670
  case $host_cpu in
 
9671
  ia64*)
 
9672
    shrext_cmds='.so'
 
9673
    hardcode_into_libs=yes
 
9674
    dynamic_linker="$host_os dld.so"
 
9675
    shlibpath_var=LD_LIBRARY_PATH
 
9676
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9677
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9678
    soname_spec='${libname}${release}${shared_ext}$major'
 
9679
    if test "X$HPUX_IA64_MODE" = X32; then
 
9680
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9681
    else
 
9682
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9683
    fi
 
9684
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9685
    ;;
 
9686
   hppa*64*)
 
9687
     shrext_cmds='.sl'
 
9688
     hardcode_into_libs=yes
 
9689
     dynamic_linker="$host_os dld.sl"
 
9690
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9691
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9692
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9693
     soname_spec='${libname}${release}${shared_ext}$major'
 
9694
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9695
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9696
     ;;
 
9697
   *)
 
9698
    shrext_cmds='.sl'
 
9699
    dynamic_linker="$host_os dld.sl"
 
9700
    shlibpath_var=SHLIB_PATH
 
9701
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9702
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9703
    soname_spec='${libname}${release}${shared_ext}$major'
 
9704
    ;;
 
9705
  esac
 
9706
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9707
  postinstall_cmds='chmod 555 $lib'
 
9708
  ;;
 
9709
 
 
9710
interix[3-9]*)
 
9711
  version_type=linux
 
9712
  need_lib_prefix=no
 
9713
  need_version=no
 
9714
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9715
  soname_spec='${libname}${release}${shared_ext}$major'
 
9716
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9717
  shlibpath_var=LD_LIBRARY_PATH
 
9718
  shlibpath_overrides_runpath=no
 
9719
  hardcode_into_libs=yes
 
9720
  ;;
 
9721
 
 
9722
irix5* | irix6* | nonstopux*)
 
9723
  case $host_os in
 
9724
    nonstopux*) version_type=nonstopux ;;
 
9725
    *)
 
9726
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9727
                version_type=linux
 
9728
        else
 
9729
                version_type=irix
 
9730
        fi ;;
 
9731
  esac
 
9732
  need_lib_prefix=no
 
9733
  need_version=no
 
9734
  soname_spec='${libname}${release}${shared_ext}$major'
 
9735
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9736
  case $host_os in
 
9737
  irix5* | nonstopux*)
 
9738
    libsuff= shlibsuff=
 
9739
    ;;
 
9740
  *)
 
9741
    case $LD in # libtool.m4 will add one of these switches to LD
 
9742
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9743
      libsuff= shlibsuff= libmagic=32-bit;;
 
9744
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9745
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9746
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9747
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9748
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9749
    esac
 
9750
    ;;
 
9751
  esac
 
9752
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9753
  shlibpath_overrides_runpath=no
 
9754
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9755
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9756
  hardcode_into_libs=yes
 
9757
  ;;
 
9758
 
 
9759
# No shared lib support for Linux oldld, aout, or coff.
 
9760
linux*oldld* | linux*aout* | linux*coff*)
 
9761
  dynamic_linker=no
 
9762
  ;;
 
9763
 
 
9764
# This must be Linux ELF.
 
9765
linux* | k*bsd*-gnu)
 
9766
  version_type=linux
 
9767
  need_lib_prefix=no
 
9768
  need_version=no
 
9769
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9770
  soname_spec='${libname}${release}${shared_ext}$major'
 
9771
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9772
  shlibpath_var=LD_LIBRARY_PATH
 
9773
  shlibpath_overrides_runpath=no
 
9774
  # This implies no fast_install, which is unacceptable.
 
9775
  # Some rework will be needed to allow for fast_install
 
9776
  # before this can be enabled.
 
9777
  hardcode_into_libs=yes
 
9778
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9779
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9780
 
 
9781
  # Append ld.so.conf contents to the search path
 
9782
  if test -f /etc/ld.so.conf; then
 
9783
    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' ' '`
 
9784
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9785
  fi
 
9786
 
 
9787
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9788
  # powerpc, because MkLinux only supported shared libraries with the
 
9789
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9790
  # most powerpc-linux boxes support dynamic linking these days and
 
9791
  # people can always --disable-shared, the test was removed, and we
 
9792
  # assume the GNU/Linux dynamic linker is in use.
 
9793
  dynamic_linker='GNU/Linux ld.so'
 
9794
  ;;
 
9795
 
 
9796
netbsd*)
 
9797
  version_type=sunos
 
9798
  need_lib_prefix=no
 
9799
  need_version=no
 
9800
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9801
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9802
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9803
    dynamic_linker='NetBSD (a.out) ld.so'
 
9804
  else
 
9805
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9806
    soname_spec='${libname}${release}${shared_ext}$major'
 
9807
    dynamic_linker='NetBSD ld.elf_so'
 
9808
  fi
 
9809
  shlibpath_var=LD_LIBRARY_PATH
 
9810
  shlibpath_overrides_runpath=yes
 
9811
  hardcode_into_libs=yes
 
9812
  ;;
 
9813
 
 
9814
newsos6)
 
9815
  version_type=linux
 
9816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9817
  shlibpath_var=LD_LIBRARY_PATH
 
9818
  shlibpath_overrides_runpath=yes
 
9819
  ;;
 
9820
 
 
9821
nto-qnx*)
 
9822
  version_type=linux
 
9823
  need_lib_prefix=no
 
9824
  need_version=no
 
9825
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9826
  soname_spec='${libname}${release}${shared_ext}$major'
 
9827
  shlibpath_var=LD_LIBRARY_PATH
 
9828
  shlibpath_overrides_runpath=yes
 
9829
  ;;
 
9830
 
 
9831
openbsd*)
 
9832
  version_type=sunos
 
9833
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9834
  need_lib_prefix=no
 
9835
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9836
  case $host_os in
 
9837
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9838
    *)                         need_version=no  ;;
 
9839
  esac
 
9840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9841
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9842
  shlibpath_var=LD_LIBRARY_PATH
 
9843
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9844
    case $host_os in
 
9845
      openbsd2.[89] | openbsd2.[89].*)
 
9846
        shlibpath_overrides_runpath=no
 
9847
        ;;
 
9848
      *)
 
9849
        shlibpath_overrides_runpath=yes
 
9850
        ;;
 
9851
      esac
 
9852
  else
 
9853
    shlibpath_overrides_runpath=yes
 
9854
  fi
 
9855
  ;;
 
9856
 
 
9857
os2*)
 
9858
  libname_spec='$name'
 
9859
  shrext_cmds=".dll"
 
9860
  need_lib_prefix=no
 
9861
  library_names_spec='$libname${shared_ext} $libname.a'
 
9862
  dynamic_linker='OS/2 ld.exe'
 
9863
  shlibpath_var=LIBPATH
 
9864
  ;;
 
9865
 
 
9866
osf3* | osf4* | osf5*)
 
9867
  version_type=osf
 
9868
  need_lib_prefix=no
 
9869
  need_version=no
 
9870
  soname_spec='${libname}${release}${shared_ext}$major'
 
9871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9872
  shlibpath_var=LD_LIBRARY_PATH
 
9873
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9874
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9875
  ;;
 
9876
 
 
9877
rdos*)
 
9878
  dynamic_linker=no
 
9879
  ;;
 
9880
 
 
9881
solaris*)
 
9882
  version_type=linux
 
9883
  need_lib_prefix=no
 
9884
  need_version=no
 
9885
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9886
  soname_spec='${libname}${release}${shared_ext}$major'
 
9887
  shlibpath_var=LD_LIBRARY_PATH
 
9888
  shlibpath_overrides_runpath=yes
 
9889
  hardcode_into_libs=yes
 
9890
  # ldd complains unless libraries are executable
 
9891
  postinstall_cmds='chmod +x $lib'
 
9892
  ;;
 
9893
 
 
9894
sunos4*)
 
9895
  version_type=sunos
 
9896
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9897
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9898
  shlibpath_var=LD_LIBRARY_PATH
 
9899
  shlibpath_overrides_runpath=yes
 
9900
  if test "$with_gnu_ld" = yes; then
 
9901
    need_lib_prefix=no
 
9902
  fi
 
9903
  need_version=yes
 
9904
  ;;
 
9905
 
 
9906
sysv4 | sysv4.3*)
 
9907
  version_type=linux
 
9908
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9909
  soname_spec='${libname}${release}${shared_ext}$major'
 
9910
  shlibpath_var=LD_LIBRARY_PATH
 
9911
  case $host_vendor in
 
9912
    sni)
 
9913
      shlibpath_overrides_runpath=no
 
9914
      need_lib_prefix=no
 
9915
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9916
      runpath_var=LD_RUN_PATH
 
9917
      ;;
 
9918
    siemens)
 
9919
      need_lib_prefix=no
 
9920
      ;;
 
9921
    motorola)
 
9922
      need_lib_prefix=no
 
9923
      need_version=no
 
9924
      shlibpath_overrides_runpath=no
 
9925
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9926
      ;;
 
9927
  esac
 
9928
  ;;
 
9929
 
 
9930
sysv4*MP*)
 
9931
  if test -d /usr/nec ;then
 
9932
    version_type=linux
 
9933
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9934
    soname_spec='$libname${shared_ext}.$major'
 
9935
    shlibpath_var=LD_LIBRARY_PATH
 
9936
  fi
 
9937
  ;;
 
9938
 
 
9939
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9940
  version_type=freebsd-elf
 
9941
  need_lib_prefix=no
 
9942
  need_version=no
 
9943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9944
  soname_spec='${libname}${release}${shared_ext}$major'
 
9945
  shlibpath_var=LD_LIBRARY_PATH
 
9946
  hardcode_into_libs=yes
 
9947
  if test "$with_gnu_ld" = yes; then
 
9948
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9949
    shlibpath_overrides_runpath=no
 
9950
  else
 
9951
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9952
    shlibpath_overrides_runpath=yes
 
9953
    case $host_os in
 
9954
      sco3.2v5*)
 
9955
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9956
        ;;
 
9957
    esac
 
9958
  fi
 
9959
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9960
  ;;
 
9961
 
 
9962
uts4*)
 
9963
  version_type=linux
 
9964
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9965
  soname_spec='${libname}${release}${shared_ext}$major'
 
9966
  shlibpath_var=LD_LIBRARY_PATH
 
9967
  ;;
 
9968
 
 
9969
*)
 
9970
  dynamic_linker=no
 
9971
  ;;
 
9972
esac
 
9973
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9974
$as_echo "$dynamic_linker" >&6; }
 
9975
test "$dynamic_linker" = no && can_build_shared=no
 
9976
 
 
9977
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9978
  $as_echo_n "(cached) " >&6
 
9979
else
 
9980
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9981
fi
 
9982
 
 
9983
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9984
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9985
  $as_echo_n "(cached) " >&6
 
9986
else
 
9987
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9988
fi
 
9989
 
 
9990
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9991
 
 
9992
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9993
if test "$GCC" = yes; then
 
9994
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9995
fi
 
9996
 
 
9997
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9998
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9999
hardcode_action=
 
10000
if test -n "$hardcode_libdir_flag_spec" || \
 
10001
   test -n "$runpath_var" || \
 
10002
   test "X$hardcode_automatic" = "Xyes" ; then
 
10003
 
 
10004
  # We can hardcode non-existant directories.
 
10005
  if test "$hardcode_direct" != no &&
 
10006
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10007
     # have to relink, otherwise we might link with an installed library
 
10008
     # when we should be linking with a yet-to-be-installed one
 
10009
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10010
     test "$hardcode_minus_L" != no; then
 
10011
    # Linking always hardcodes the temporary library directory.
 
10012
    hardcode_action=relink
 
10013
  else
 
10014
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10015
    hardcode_action=immediate
 
10016
  fi
 
10017
else
 
10018
  # We cannot hardcode anything, or else we can only hardcode existing
 
10019
  # directories.
 
10020
  hardcode_action=unsupported
 
10021
fi
 
10022
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10023
$as_echo "$hardcode_action" >&6; }
 
10024
 
 
10025
if test "$hardcode_action" = relink; then
 
10026
  # Fast installation is not supported
 
10027
  enable_fast_install=no
 
10028
elif test "$shlibpath_overrides_runpath" = yes ||
 
10029
     test "$enable_shared" = no; then
 
10030
  # Fast installation is not necessary
 
10031
  enable_fast_install=needless
 
10032
fi
 
10033
 
 
10034
striplib=
 
10035
old_striplib=
 
10036
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10037
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10038
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10039
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10040
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10041
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10042
$as_echo "yes" >&6; }
 
10043
else
 
10044
# FIXME - insert some real tests, host_os isn't really good enough
 
10045
  case $host_os in
 
10046
   darwin*)
 
10047
       if test -n "$STRIP" ; then
 
10048
         striplib="$STRIP -x"
 
10049
         old_striplib="$STRIP -S"
 
10050
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10051
$as_echo "yes" >&6; }
 
10052
       else
 
10053
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10054
$as_echo "no" >&6; }
 
10055
fi
 
10056
       ;;
 
10057
   *)
 
10058
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10059
$as_echo "no" >&6; }
 
10060
    ;;
 
10061
  esac
 
10062
fi
 
10063
 
 
10064
if test "x$enable_dlopen" != xyes; then
 
10065
  enable_dlopen=unknown
 
10066
  enable_dlopen_self=unknown
 
10067
  enable_dlopen_self_static=unknown
 
10068
else
 
10069
  lt_cv_dlopen=no
 
10070
  lt_cv_dlopen_libs=
 
10071
 
 
10072
  case $host_os in
 
10073
  beos*)
 
10074
    lt_cv_dlopen="load_add_on"
 
10075
    lt_cv_dlopen_libs=
 
10076
    lt_cv_dlopen_self=yes
 
10077
    ;;
 
10078
 
 
10079
  mingw* | pw32*)
 
10080
    lt_cv_dlopen="LoadLibrary"
 
10081
    lt_cv_dlopen_libs=
 
10082
   ;;
 
10083
 
 
10084
  cygwin*)
 
10085
    lt_cv_dlopen="dlopen"
 
10086
    lt_cv_dlopen_libs=
 
10087
   ;;
 
10088
 
 
10089
  darwin*)
 
10090
  # if libdl is installed we need to link against it
 
10091
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10092
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10093
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10094
  $as_echo_n "(cached) " >&6
 
10095
else
 
10096
  ac_check_lib_save_LIBS=$LIBS
 
10097
LIBS="-ldl  $LIBS"
 
10098
cat >conftest.$ac_ext <<_ACEOF
 
10099
/* confdefs.h.  */
 
10100
_ACEOF
 
10101
cat confdefs.h >>conftest.$ac_ext
 
10102
cat >>conftest.$ac_ext <<_ACEOF
 
10103
/* end confdefs.h.  */
 
10104
 
 
10105
/* Override any GCC internal prototype to avoid an error.
 
10106
   Use char because int might match the return type of a GCC
 
10107
   builtin and then its argument prototype would still apply.  */
 
10108
#ifdef __cplusplus
 
10109
extern "C"
 
10110
#endif
 
10111
char dlopen ();
 
10112
int
 
10113
main ()
 
10114
{
 
10115
return dlopen ();
 
10116
  ;
 
10117
  return 0;
 
10118
}
 
10119
_ACEOF
 
10120
rm -f conftest.$ac_objext conftest$ac_exeext
 
10121
if { (ac_try="$ac_link"
 
10122
case "(($ac_try" in
 
10123
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10124
  *) ac_try_echo=$ac_try;;
 
10125
esac
 
10126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10127
$as_echo "$ac_try_echo") >&5
 
10128
  (eval "$ac_link") 2>conftest.er1
 
10129
  ac_status=$?
 
10130
  grep -v '^ *+' conftest.er1 >conftest.err
 
10131
  rm -f conftest.er1
 
10132
  cat conftest.err >&5
 
10133
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10134
  (exit $ac_status); } && {
 
10135
         test -z "$ac_c_werror_flag" ||
 
10136
         test ! -s conftest.err
 
10137
       } && test -s conftest$ac_exeext && {
 
10138
         test "$cross_compiling" = yes ||
 
10139
         $as_test_x conftest$ac_exeext
 
10140
       }; then
 
10141
  ac_cv_lib_dl_dlopen=yes
 
10142
else
 
10143
  $as_echo "$as_me: failed program was:" >&5
 
10144
sed 's/^/| /' conftest.$ac_ext >&5
 
10145
 
 
10146
        ac_cv_lib_dl_dlopen=no
 
10147
fi
 
10148
 
 
10149
rm -rf conftest.dSYM
 
10150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10151
      conftest$ac_exeext conftest.$ac_ext
 
10152
LIBS=$ac_check_lib_save_LIBS
 
10153
fi
 
10154
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10155
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10156
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10157
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10158
else
 
10159
 
 
10160
    lt_cv_dlopen="dyld"
 
10161
    lt_cv_dlopen_libs=
 
10162
    lt_cv_dlopen_self=yes
 
10163
 
 
10164
fi
 
10165
 
 
10166
   ;;
 
10167
 
 
10168
  *)
 
10169
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10170
$as_echo_n "checking for shl_load... " >&6; }
 
10171
if test "${ac_cv_func_shl_load+set}" = set; then
 
10172
  $as_echo_n "(cached) " >&6
 
10173
else
 
10174
  cat >conftest.$ac_ext <<_ACEOF
 
10175
/* confdefs.h.  */
 
10176
_ACEOF
 
10177
cat confdefs.h >>conftest.$ac_ext
 
10178
cat >>conftest.$ac_ext <<_ACEOF
 
10179
/* end confdefs.h.  */
 
10180
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10181
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10182
#define shl_load innocuous_shl_load
 
10183
 
 
10184
/* System header to define __stub macros and hopefully few prototypes,
 
10185
    which can conflict with char shl_load (); below.
 
10186
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10187
    <limits.h> exists even on freestanding compilers.  */
 
10188
 
 
10189
#ifdef __STDC__
 
10190
# include <limits.h>
 
10191
#else
 
10192
# include <assert.h>
 
10193
#endif
 
10194
 
 
10195
#undef shl_load
 
10196
 
 
10197
/* Override any GCC internal prototype to avoid an error.
 
10198
   Use char because int might match the return type of a GCC
 
10199
   builtin and then its argument prototype would still apply.  */
 
10200
#ifdef __cplusplus
 
10201
extern "C"
 
10202
#endif
 
10203
char shl_load ();
 
10204
/* The GNU C library defines this for functions which it implements
 
10205
    to always fail with ENOSYS.  Some functions are actually named
 
10206
    something starting with __ and the normal name is an alias.  */
 
10207
#if defined __stub_shl_load || defined __stub___shl_load
 
10208
choke me
 
10209
#endif
 
10210
 
 
10211
int
 
10212
main ()
 
10213
{
 
10214
return shl_load ();
 
10215
  ;
 
10216
  return 0;
 
10217
}
 
10218
_ACEOF
 
10219
rm -f conftest.$ac_objext conftest$ac_exeext
 
10220
if { (ac_try="$ac_link"
 
10221
case "(($ac_try" in
 
10222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10223
  *) ac_try_echo=$ac_try;;
 
10224
esac
 
10225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10226
$as_echo "$ac_try_echo") >&5
 
10227
  (eval "$ac_link") 2>conftest.er1
 
10228
  ac_status=$?
 
10229
  grep -v '^ *+' conftest.er1 >conftest.err
 
10230
  rm -f conftest.er1
 
10231
  cat conftest.err >&5
 
10232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10233
  (exit $ac_status); } && {
 
10234
         test -z "$ac_c_werror_flag" ||
 
10235
         test ! -s conftest.err
 
10236
       } && test -s conftest$ac_exeext && {
 
10237
         test "$cross_compiling" = yes ||
 
10238
         $as_test_x conftest$ac_exeext
 
10239
       }; then
 
10240
  ac_cv_func_shl_load=yes
 
10241
else
 
10242
  $as_echo "$as_me: failed program was:" >&5
 
10243
sed 's/^/| /' conftest.$ac_ext >&5
 
10244
 
 
10245
        ac_cv_func_shl_load=no
 
10246
fi
 
10247
 
 
10248
rm -rf conftest.dSYM
 
10249
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10250
      conftest$ac_exeext conftest.$ac_ext
 
10251
fi
 
10252
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10253
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10254
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10255
  lt_cv_dlopen="shl_load"
 
10256
else
 
10257
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10258
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10259
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10260
  $as_echo_n "(cached) " >&6
 
10261
else
 
10262
  ac_check_lib_save_LIBS=$LIBS
 
10263
LIBS="-ldld  $LIBS"
 
10264
cat >conftest.$ac_ext <<_ACEOF
 
10265
/* confdefs.h.  */
 
10266
_ACEOF
 
10267
cat confdefs.h >>conftest.$ac_ext
 
10268
cat >>conftest.$ac_ext <<_ACEOF
 
10269
/* end confdefs.h.  */
 
10270
 
 
10271
/* Override any GCC internal prototype to avoid an error.
 
10272
   Use char because int might match the return type of a GCC
 
10273
   builtin and then its argument prototype would still apply.  */
 
10274
#ifdef __cplusplus
 
10275
extern "C"
 
10276
#endif
 
10277
char shl_load ();
 
10278
int
 
10279
main ()
 
10280
{
 
10281
return shl_load ();
 
10282
  ;
 
10283
  return 0;
 
10284
}
 
10285
_ACEOF
 
10286
rm -f conftest.$ac_objext conftest$ac_exeext
 
10287
if { (ac_try="$ac_link"
 
10288
case "(($ac_try" in
 
10289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10290
  *) ac_try_echo=$ac_try;;
 
10291
esac
 
10292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10293
$as_echo "$ac_try_echo") >&5
 
10294
  (eval "$ac_link") 2>conftest.er1
 
10295
  ac_status=$?
 
10296
  grep -v '^ *+' conftest.er1 >conftest.err
 
10297
  rm -f conftest.er1
 
10298
  cat conftest.err >&5
 
10299
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10300
  (exit $ac_status); } && {
 
10301
         test -z "$ac_c_werror_flag" ||
 
10302
         test ! -s conftest.err
 
10303
       } && test -s conftest$ac_exeext && {
 
10304
         test "$cross_compiling" = yes ||
 
10305
         $as_test_x conftest$ac_exeext
 
10306
       }; then
 
10307
  ac_cv_lib_dld_shl_load=yes
 
10308
else
 
10309
  $as_echo "$as_me: failed program was:" >&5
 
10310
sed 's/^/| /' conftest.$ac_ext >&5
 
10311
 
 
10312
        ac_cv_lib_dld_shl_load=no
 
10313
fi
 
10314
 
 
10315
rm -rf conftest.dSYM
 
10316
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10317
      conftest$ac_exeext conftest.$ac_ext
 
10318
LIBS=$ac_check_lib_save_LIBS
 
10319
fi
 
10320
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10321
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10322
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10323
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10324
else
 
10325
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10326
$as_echo_n "checking for dlopen... " >&6; }
 
10327
if test "${ac_cv_func_dlopen+set}" = set; then
 
10328
  $as_echo_n "(cached) " >&6
 
10329
else
 
10330
  cat >conftest.$ac_ext <<_ACEOF
 
10331
/* confdefs.h.  */
 
10332
_ACEOF
 
10333
cat confdefs.h >>conftest.$ac_ext
 
10334
cat >>conftest.$ac_ext <<_ACEOF
 
10335
/* end confdefs.h.  */
 
10336
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10337
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10338
#define dlopen innocuous_dlopen
 
10339
 
 
10340
/* System header to define __stub macros and hopefully few prototypes,
 
10341
    which can conflict with char dlopen (); below.
 
10342
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10343
    <limits.h> exists even on freestanding compilers.  */
 
10344
 
 
10345
#ifdef __STDC__
 
10346
# include <limits.h>
 
10347
#else
 
10348
# include <assert.h>
 
10349
#endif
 
10350
 
 
10351
#undef dlopen
 
10352
 
 
10353
/* Override any GCC internal prototype to avoid an error.
 
10354
   Use char because int might match the return type of a GCC
 
10355
   builtin and then its argument prototype would still apply.  */
 
10356
#ifdef __cplusplus
 
10357
extern "C"
 
10358
#endif
 
10359
char dlopen ();
 
10360
/* The GNU C library defines this for functions which it implements
 
10361
    to always fail with ENOSYS.  Some functions are actually named
 
10362
    something starting with __ and the normal name is an alias.  */
 
10363
#if defined __stub_dlopen || defined __stub___dlopen
 
10364
choke me
 
10365
#endif
 
10366
 
 
10367
int
 
10368
main ()
 
10369
{
 
10370
return dlopen ();
 
10371
  ;
 
10372
  return 0;
 
10373
}
 
10374
_ACEOF
 
10375
rm -f conftest.$ac_objext conftest$ac_exeext
 
10376
if { (ac_try="$ac_link"
 
10377
case "(($ac_try" in
 
10378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10379
  *) ac_try_echo=$ac_try;;
 
10380
esac
 
10381
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10382
$as_echo "$ac_try_echo") >&5
 
10383
  (eval "$ac_link") 2>conftest.er1
 
10384
  ac_status=$?
 
10385
  grep -v '^ *+' conftest.er1 >conftest.err
 
10386
  rm -f conftest.er1
 
10387
  cat conftest.err >&5
 
10388
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10389
  (exit $ac_status); } && {
 
10390
         test -z "$ac_c_werror_flag" ||
 
10391
         test ! -s conftest.err
 
10392
       } && test -s conftest$ac_exeext && {
 
10393
         test "$cross_compiling" = yes ||
 
10394
         $as_test_x conftest$ac_exeext
 
10395
       }; then
 
10396
  ac_cv_func_dlopen=yes
 
10397
else
 
10398
  $as_echo "$as_me: failed program was:" >&5
 
10399
sed 's/^/| /' conftest.$ac_ext >&5
 
10400
 
 
10401
        ac_cv_func_dlopen=no
 
10402
fi
 
10403
 
 
10404
rm -rf conftest.dSYM
 
10405
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10406
      conftest$ac_exeext conftest.$ac_ext
 
10407
fi
 
10408
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10409
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10410
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10411
  lt_cv_dlopen="dlopen"
 
10412
else
 
10413
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10414
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10415
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10416
  $as_echo_n "(cached) " >&6
 
10417
else
 
10418
  ac_check_lib_save_LIBS=$LIBS
 
10419
LIBS="-ldl  $LIBS"
 
10420
cat >conftest.$ac_ext <<_ACEOF
 
10421
/* confdefs.h.  */
 
10422
_ACEOF
 
10423
cat confdefs.h >>conftest.$ac_ext
 
10424
cat >>conftest.$ac_ext <<_ACEOF
 
10425
/* end confdefs.h.  */
 
10426
 
 
10427
/* Override any GCC internal prototype to avoid an error.
 
10428
   Use char because int might match the return type of a GCC
 
10429
   builtin and then its argument prototype would still apply.  */
 
10430
#ifdef __cplusplus
 
10431
extern "C"
 
10432
#endif
 
10433
char dlopen ();
 
10434
int
 
10435
main ()
 
10436
{
 
10437
return dlopen ();
 
10438
  ;
 
10439
  return 0;
 
10440
}
 
10441
_ACEOF
 
10442
rm -f conftest.$ac_objext conftest$ac_exeext
 
10443
if { (ac_try="$ac_link"
 
10444
case "(($ac_try" in
 
10445
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10446
  *) ac_try_echo=$ac_try;;
 
10447
esac
 
10448
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10449
$as_echo "$ac_try_echo") >&5
 
10450
  (eval "$ac_link") 2>conftest.er1
 
10451
  ac_status=$?
 
10452
  grep -v '^ *+' conftest.er1 >conftest.err
 
10453
  rm -f conftest.er1
 
10454
  cat conftest.err >&5
 
10455
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10456
  (exit $ac_status); } && {
 
10457
         test -z "$ac_c_werror_flag" ||
 
10458
         test ! -s conftest.err
 
10459
       } && test -s conftest$ac_exeext && {
 
10460
         test "$cross_compiling" = yes ||
 
10461
         $as_test_x conftest$ac_exeext
 
10462
       }; then
 
10463
  ac_cv_lib_dl_dlopen=yes
 
10464
else
 
10465
  $as_echo "$as_me: failed program was:" >&5
 
10466
sed 's/^/| /' conftest.$ac_ext >&5
 
10467
 
 
10468
        ac_cv_lib_dl_dlopen=no
 
10469
fi
 
10470
 
 
10471
rm -rf conftest.dSYM
 
10472
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10473
      conftest$ac_exeext conftest.$ac_ext
 
10474
LIBS=$ac_check_lib_save_LIBS
 
10475
fi
 
10476
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10477
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10478
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10479
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10480
else
 
10481
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10482
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10483
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10484
  $as_echo_n "(cached) " >&6
 
10485
else
 
10486
  ac_check_lib_save_LIBS=$LIBS
 
10487
LIBS="-lsvld  $LIBS"
 
10488
cat >conftest.$ac_ext <<_ACEOF
 
10489
/* confdefs.h.  */
 
10490
_ACEOF
 
10491
cat confdefs.h >>conftest.$ac_ext
 
10492
cat >>conftest.$ac_ext <<_ACEOF
 
10493
/* end confdefs.h.  */
 
10494
 
 
10495
/* Override any GCC internal prototype to avoid an error.
 
10496
   Use char because int might match the return type of a GCC
 
10497
   builtin and then its argument prototype would still apply.  */
 
10498
#ifdef __cplusplus
 
10499
extern "C"
 
10500
#endif
 
10501
char dlopen ();
 
10502
int
 
10503
main ()
 
10504
{
 
10505
return dlopen ();
 
10506
  ;
 
10507
  return 0;
 
10508
}
 
10509
_ACEOF
 
10510
rm -f conftest.$ac_objext conftest$ac_exeext
 
10511
if { (ac_try="$ac_link"
 
10512
case "(($ac_try" in
 
10513
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10514
  *) ac_try_echo=$ac_try;;
 
10515
esac
 
10516
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10517
$as_echo "$ac_try_echo") >&5
 
10518
  (eval "$ac_link") 2>conftest.er1
 
10519
  ac_status=$?
 
10520
  grep -v '^ *+' conftest.er1 >conftest.err
 
10521
  rm -f conftest.er1
 
10522
  cat conftest.err >&5
 
10523
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10524
  (exit $ac_status); } && {
 
10525
         test -z "$ac_c_werror_flag" ||
 
10526
         test ! -s conftest.err
 
10527
       } && test -s conftest$ac_exeext && {
 
10528
         test "$cross_compiling" = yes ||
 
10529
         $as_test_x conftest$ac_exeext
 
10530
       }; then
 
10531
  ac_cv_lib_svld_dlopen=yes
 
10532
else
 
10533
  $as_echo "$as_me: failed program was:" >&5
 
10534
sed 's/^/| /' conftest.$ac_ext >&5
 
10535
 
 
10536
        ac_cv_lib_svld_dlopen=no
 
10537
fi
 
10538
 
 
10539
rm -rf conftest.dSYM
 
10540
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10541
      conftest$ac_exeext conftest.$ac_ext
 
10542
LIBS=$ac_check_lib_save_LIBS
 
10543
fi
 
10544
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10545
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10546
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10547
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10548
else
 
10549
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10550
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10551
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10552
  $as_echo_n "(cached) " >&6
 
10553
else
 
10554
  ac_check_lib_save_LIBS=$LIBS
 
10555
LIBS="-ldld  $LIBS"
 
10556
cat >conftest.$ac_ext <<_ACEOF
 
10557
/* confdefs.h.  */
 
10558
_ACEOF
 
10559
cat confdefs.h >>conftest.$ac_ext
 
10560
cat >>conftest.$ac_ext <<_ACEOF
 
10561
/* end confdefs.h.  */
 
10562
 
 
10563
/* Override any GCC internal prototype to avoid an error.
 
10564
   Use char because int might match the return type of a GCC
 
10565
   builtin and then its argument prototype would still apply.  */
 
10566
#ifdef __cplusplus
 
10567
extern "C"
 
10568
#endif
 
10569
char dld_link ();
 
10570
int
 
10571
main ()
 
10572
{
 
10573
return dld_link ();
 
10574
  ;
 
10575
  return 0;
 
10576
}
 
10577
_ACEOF
 
10578
rm -f conftest.$ac_objext conftest$ac_exeext
 
10579
if { (ac_try="$ac_link"
 
10580
case "(($ac_try" in
 
10581
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10582
  *) ac_try_echo=$ac_try;;
 
10583
esac
 
10584
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10585
$as_echo "$ac_try_echo") >&5
 
10586
  (eval "$ac_link") 2>conftest.er1
 
10587
  ac_status=$?
 
10588
  grep -v '^ *+' conftest.er1 >conftest.err
 
10589
  rm -f conftest.er1
 
10590
  cat conftest.err >&5
 
10591
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10592
  (exit $ac_status); } && {
 
10593
         test -z "$ac_c_werror_flag" ||
 
10594
         test ! -s conftest.err
 
10595
       } && test -s conftest$ac_exeext && {
 
10596
         test "$cross_compiling" = yes ||
 
10597
         $as_test_x conftest$ac_exeext
 
10598
       }; then
 
10599
  ac_cv_lib_dld_dld_link=yes
 
10600
else
 
10601
  $as_echo "$as_me: failed program was:" >&5
 
10602
sed 's/^/| /' conftest.$ac_ext >&5
 
10603
 
 
10604
        ac_cv_lib_dld_dld_link=no
 
10605
fi
 
10606
 
 
10607
rm -rf conftest.dSYM
 
10608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10609
      conftest$ac_exeext conftest.$ac_ext
 
10610
LIBS=$ac_check_lib_save_LIBS
 
10611
fi
 
10612
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10613
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10614
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10615
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10616
fi
 
10617
 
 
10618
 
 
10619
fi
 
10620
 
 
10621
 
 
10622
fi
 
10623
 
 
10624
 
 
10625
fi
 
10626
 
 
10627
 
 
10628
fi
 
10629
 
 
10630
 
 
10631
fi
 
10632
 
 
10633
    ;;
 
10634
  esac
 
10635
 
 
10636
  if test "x$lt_cv_dlopen" != xno; then
 
10637
    enable_dlopen=yes
 
10638
  else
 
10639
    enable_dlopen=no
 
10640
  fi
 
10641
 
 
10642
  case $lt_cv_dlopen in
 
10643
  dlopen)
 
10644
    save_CPPFLAGS="$CPPFLAGS"
 
10645
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10646
 
 
10647
    save_LDFLAGS="$LDFLAGS"
 
10648
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10649
 
 
10650
    save_LIBS="$LIBS"
 
10651
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10652
 
 
10653
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10654
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10655
if test "${lt_cv_dlopen_self+set}" = set; then
 
10656
  $as_echo_n "(cached) " >&6
 
10657
else
 
10658
          if test "$cross_compiling" = yes; then :
 
10659
  lt_cv_dlopen_self=cross
 
10660
else
 
10661
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10662
  lt_status=$lt_dlunknown
 
10663
  cat > conftest.$ac_ext <<EOF
 
10664
#line 10664 "configure"
 
10665
#include "confdefs.h"
 
10666
 
 
10667
#if HAVE_DLFCN_H
 
10668
#include <dlfcn.h>
 
10669
#endif
 
10670
 
 
10671
#include <stdio.h>
 
10672
 
 
10673
#ifdef RTLD_GLOBAL
 
10674
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10675
#else
 
10676
#  ifdef DL_GLOBAL
 
10677
#    define LT_DLGLOBAL         DL_GLOBAL
 
10678
#  else
 
10679
#    define LT_DLGLOBAL         0
 
10680
#  endif
 
10681
#endif
 
10682
 
 
10683
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10684
   find out it does not work in some platform. */
 
10685
#ifndef LT_DLLAZY_OR_NOW
 
10686
#  ifdef RTLD_LAZY
 
10687
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10688
#  else
 
10689
#    ifdef DL_LAZY
 
10690
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10691
#    else
 
10692
#      ifdef RTLD_NOW
 
10693
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10694
#      else
 
10695
#        ifdef DL_NOW
 
10696
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10697
#        else
 
10698
#          define LT_DLLAZY_OR_NOW      0
 
10699
#        endif
 
10700
#      endif
 
10701
#    endif
 
10702
#  endif
 
10703
#endif
 
10704
 
 
10705
#ifdef __cplusplus
 
10706
extern "C" void exit (int);
 
10707
#endif
 
10708
 
 
10709
void fnord() { int i=42;}
 
10710
int main ()
 
10711
{
 
10712
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10713
  int status = $lt_dlunknown;
 
10714
 
 
10715
  if (self)
 
10716
    {
 
10717
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10718
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10719
      /* dlclose (self); */
 
10720
    }
 
10721
  else
 
10722
    puts (dlerror ());
 
10723
 
 
10724
    exit (status);
 
10725
}
 
10726
EOF
 
10727
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10728
  (eval $ac_link) 2>&5
 
10729
  ac_status=$?
 
10730
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10731
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10732
    (./conftest; exit; ) >&5 2>/dev/null
 
10733
    lt_status=$?
 
10734
    case x$lt_status in
 
10735
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10736
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10737
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10738
    esac
 
10739
  else :
 
10740
    # compilation failed
 
10741
    lt_cv_dlopen_self=no
 
10742
  fi
 
10743
fi
 
10744
rm -fr conftest*
 
10745
 
 
10746
 
 
10747
fi
 
10748
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10749
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10750
 
 
10751
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10752
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10753
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10754
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10755
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10756
  $as_echo_n "(cached) " >&6
 
10757
else
 
10758
          if test "$cross_compiling" = yes; then :
 
10759
  lt_cv_dlopen_self_static=cross
 
10760
else
 
10761
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10762
  lt_status=$lt_dlunknown
 
10763
  cat > conftest.$ac_ext <<EOF
 
10764
#line 10764 "configure"
 
10765
#include "confdefs.h"
 
10766
 
 
10767
#if HAVE_DLFCN_H
 
10768
#include <dlfcn.h>
 
10769
#endif
 
10770
 
 
10771
#include <stdio.h>
 
10772
 
 
10773
#ifdef RTLD_GLOBAL
 
10774
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10775
#else
 
10776
#  ifdef DL_GLOBAL
 
10777
#    define LT_DLGLOBAL         DL_GLOBAL
 
10778
#  else
 
10779
#    define LT_DLGLOBAL         0
 
10780
#  endif
 
10781
#endif
 
10782
 
 
10783
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10784
   find out it does not work in some platform. */
 
10785
#ifndef LT_DLLAZY_OR_NOW
 
10786
#  ifdef RTLD_LAZY
 
10787
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10788
#  else
 
10789
#    ifdef DL_LAZY
 
10790
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10791
#    else
 
10792
#      ifdef RTLD_NOW
 
10793
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10794
#      else
 
10795
#        ifdef DL_NOW
 
10796
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10797
#        else
 
10798
#          define LT_DLLAZY_OR_NOW      0
 
10799
#        endif
 
10800
#      endif
 
10801
#    endif
 
10802
#  endif
 
10803
#endif
 
10804
 
 
10805
#ifdef __cplusplus
 
10806
extern "C" void exit (int);
 
10807
#endif
 
10808
 
 
10809
void fnord() { int i=42;}
 
10810
int main ()
 
10811
{
 
10812
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10813
  int status = $lt_dlunknown;
 
10814
 
 
10815
  if (self)
 
10816
    {
 
10817
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10818
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10819
      /* dlclose (self); */
 
10820
    }
 
10821
  else
 
10822
    puts (dlerror ());
 
10823
 
 
10824
    exit (status);
 
10825
}
 
10826
EOF
 
10827
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10828
  (eval $ac_link) 2>&5
 
10829
  ac_status=$?
 
10830
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10831
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10832
    (./conftest; exit; ) >&5 2>/dev/null
 
10833
    lt_status=$?
 
10834
    case x$lt_status in
 
10835
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10836
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10837
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10838
    esac
 
10839
  else :
 
10840
    # compilation failed
 
10841
    lt_cv_dlopen_self_static=no
 
10842
  fi
 
10843
fi
 
10844
rm -fr conftest*
 
10845
 
 
10846
 
 
10847
fi
 
10848
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10849
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10850
    fi
 
10851
 
 
10852
    CPPFLAGS="$save_CPPFLAGS"
 
10853
    LDFLAGS="$save_LDFLAGS"
 
10854
    LIBS="$save_LIBS"
 
10855
    ;;
 
10856
  esac
 
10857
 
 
10858
  case $lt_cv_dlopen_self in
 
10859
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10860
  *) enable_dlopen_self=unknown ;;
 
10861
  esac
 
10862
 
 
10863
  case $lt_cv_dlopen_self_static in
 
10864
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10865
  *) enable_dlopen_self_static=unknown ;;
 
10866
  esac
 
10867
fi
 
10868
 
 
10869
 
 
10870
# Report which library types will actually be built
 
10871
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10872
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10873
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10874
$as_echo "$can_build_shared" >&6; }
 
10875
 
 
10876
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10877
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10878
test "$can_build_shared" = "no" && enable_shared=no
 
10879
 
 
10880
# On AIX, shared libraries and static libraries use the same namespace, and
 
10881
# are all built from PIC.
 
10882
case $host_os in
 
10883
aix3*)
 
10884
  test "$enable_shared" = yes && enable_static=no
 
10885
  if test -n "$RANLIB"; then
 
10886
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10887
    postinstall_cmds='$RANLIB $lib'
 
10888
  fi
 
10889
  ;;
 
10890
 
 
10891
aix[4-9]*)
 
10892
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10893
    test "$enable_shared" = yes && enable_static=no
 
10894
  fi
 
10895
    ;;
 
10896
esac
 
10897
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10898
$as_echo "$enable_shared" >&6; }
 
10899
 
 
10900
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10901
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10902
# Make sure either enable_shared or enable_static is yes.
 
10903
test "$enable_shared" = yes || enable_static=yes
 
10904
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10905
$as_echo "$enable_static" >&6; }
 
10906
 
 
10907
# The else clause should only fire when bootstrapping the
 
10908
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10909
# with your package, and you will get complaints that there are
 
10910
# no rules to generate ltmain.sh.
 
10911
if test -f "$ltmain"; then
 
10912
  # See if we are running on zsh, and set the options which allow our commands through
 
10913
  # without removal of \ escapes.
 
10914
  if test -n "${ZSH_VERSION+set}" ; then
 
10915
    setopt NO_GLOB_SUBST
 
10916
  fi
 
10917
  # Now quote all the things that may contain metacharacters while being
 
10918
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10919
  # variables and quote the copies for generation of the libtool script.
 
10920
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10921
    SED SHELL STRIP \
 
10922
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10923
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10924
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10925
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10926
    lt_cv_sys_global_symbol_to_c_name_address \
 
10927
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10928
    old_postinstall_cmds old_postuninstall_cmds \
 
10929
    compiler \
 
10930
    CC \
 
10931
    LD \
 
10932
    lt_prog_compiler_wl \
 
10933
    lt_prog_compiler_pic \
 
10934
    lt_prog_compiler_static \
 
10935
    lt_prog_compiler_no_builtin_flag \
 
10936
    export_dynamic_flag_spec \
 
10937
    thread_safe_flag_spec \
 
10938
    whole_archive_flag_spec \
 
10939
    enable_shared_with_static_runtimes \
 
10940
    old_archive_cmds \
 
10941
    old_archive_from_new_cmds \
 
10942
    predep_objects \
 
10943
    postdep_objects \
 
10944
    predeps \
 
10945
    postdeps \
 
10946
    compiler_lib_search_path \
 
10947
    compiler_lib_search_dirs \
 
10948
    archive_cmds \
 
10949
    archive_expsym_cmds \
 
10950
    postinstall_cmds \
 
10951
    postuninstall_cmds \
 
10952
    old_archive_from_expsyms_cmds \
 
10953
    allow_undefined_flag \
 
10954
    no_undefined_flag \
 
10955
    export_symbols_cmds \
 
10956
    hardcode_libdir_flag_spec \
 
10957
    hardcode_libdir_flag_spec_ld \
 
10958
    hardcode_libdir_separator \
 
10959
    hardcode_automatic \
 
10960
    module_cmds \
 
10961
    module_expsym_cmds \
 
10962
    lt_cv_prog_compiler_c_o \
 
10963
    fix_srcfile_path \
 
10964
    exclude_expsyms \
 
10965
    include_expsyms; do
 
10966
 
 
10967
    case $var in
 
10968
    old_archive_cmds | \
 
10969
    old_archive_from_new_cmds | \
 
10970
    archive_cmds | \
 
10971
    archive_expsym_cmds | \
 
10972
    module_cmds | \
 
10973
    module_expsym_cmds | \
 
10974
    old_archive_from_expsyms_cmds | \
 
10975
    export_symbols_cmds | \
 
10976
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10977
    postinstall_cmds | postuninstall_cmds | \
 
10978
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10979
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10980
      # Double-quote double-evaled strings.
 
10981
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10982
      ;;
 
10983
    *)
 
10984
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10985
      ;;
 
10986
    esac
 
10987
  done
 
10988
 
 
10989
  case $lt_echo in
 
10990
  *'\$0 --fallback-echo"')
 
10991
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10992
    ;;
 
10993
  esac
 
10994
 
 
10995
cfgfile="${ofile}T"
 
10996
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10997
  $rm -f "$cfgfile"
 
10998
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10999
$as_echo "$as_me: creating $ofile" >&6;}
 
11000
 
 
11001
  cat <<__EOF__ >> "$cfgfile"
 
11002
#! $SHELL
 
11003
 
 
11004
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11005
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11006
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11007
#
 
11008
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
11009
# Free Software Foundation, Inc.
 
11010
#
 
11011
# This file is part of GNU Libtool:
 
11012
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11013
#
 
11014
# This program is free software; you can redistribute it and/or modify
 
11015
# it under the terms of the GNU General Public License as published by
 
11016
# the Free Software Foundation; either version 2 of the License, or
 
11017
# (at your option) any later version.
 
11018
#
 
11019
# This program is distributed in the hope that it will be useful, but
 
11020
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11021
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11022
# General Public License for more details.
 
11023
#
 
11024
# You should have received a copy of the GNU General Public License
 
11025
# along with this program; if not, write to the Free Software
 
11026
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11027
#
 
11028
# As a special exception to the GNU General Public License, if you
 
11029
# distribute this file as part of a program that contains a
 
11030
# configuration script generated by Autoconf, you may include it under
 
11031
# the same distribution terms that you use for the rest of that program.
 
11032
 
 
11033
# A sed program that does not truncate output.
 
11034
SED=$lt_SED
 
11035
 
 
11036
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11037
Xsed="$SED -e 1s/^X//"
 
11038
 
 
11039
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11040
# if CDPATH is set.
 
11041
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11042
 
 
11043
# The names of the tagged configurations supported by this script.
 
11044
available_tags=
 
11045
 
 
11046
# ### BEGIN LIBTOOL CONFIG
 
11047
 
 
11048
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11049
 
 
11050
# Shell to use when invoking shell scripts.
 
11051
SHELL=$lt_SHELL
 
11052
 
 
11053
# Whether or not to build shared libraries.
 
11054
build_libtool_libs=$enable_shared
 
11055
 
 
11056
# Whether or not to build static libraries.
 
11057
build_old_libs=$enable_static
 
11058
 
 
11059
# Whether or not to add -lc for building shared libraries.
 
11060
build_libtool_need_lc=$archive_cmds_need_lc
 
11061
 
 
11062
# Whether or not to disallow shared libs when runtime libs are static
 
11063
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11064
 
 
11065
# Whether or not to optimize for fast installation.
 
11066
fast_install=$enable_fast_install
 
11067
 
 
11068
# The host system.
 
11069
host_alias=$host_alias
 
11070
host=$host
 
11071
host_os=$host_os
 
11072
 
 
11073
# The build system.
 
11074
build_alias=$build_alias
 
11075
build=$build
 
11076
build_os=$build_os
 
11077
 
 
11078
# An echo program that does not interpret backslashes.
 
11079
echo=$lt_echo
 
11080
 
 
11081
# The archiver.
 
11082
AR=$lt_AR
 
11083
AR_FLAGS=$lt_AR_FLAGS
 
11084
 
 
11085
# A C compiler.
 
11086
LTCC=$lt_LTCC
 
11087
 
 
11088
# LTCC compiler flags.
 
11089
LTCFLAGS=$lt_LTCFLAGS
 
11090
 
 
11091
# A language-specific compiler.
 
11092
CC=$lt_compiler
 
11093
 
 
11094
# Is the compiler the GNU C compiler?
 
11095
with_gcc=$GCC
 
11096
 
 
11097
# An ERE matcher.
 
11098
EGREP=$lt_EGREP
 
11099
 
 
11100
# The linker used to build libraries.
 
11101
LD=$lt_LD
 
11102
 
 
11103
# Whether we need hard or soft links.
 
11104
LN_S=$lt_LN_S
 
11105
 
 
11106
# A BSD-compatible nm program.
 
11107
NM=$lt_NM
 
11108
 
 
11109
# A symbol stripping program
 
11110
STRIP=$lt_STRIP
 
11111
 
 
11112
# Used to examine libraries when file_magic_cmd begins "file"
 
11113
MAGIC_CMD=$MAGIC_CMD
 
11114
 
 
11115
# Used on cygwin: DLL creation program.
 
11116
DLLTOOL="$DLLTOOL"
 
11117
 
 
11118
# Used on cygwin: object dumper.
 
11119
OBJDUMP="$OBJDUMP"
 
11120
 
 
11121
# Used on cygwin: assembler.
 
11122
AS="$AS"
 
11123
 
 
11124
# The name of the directory that contains temporary libtool files.
 
11125
objdir=$objdir
 
11126
 
 
11127
# How to create reloadable object files.
 
11128
reload_flag=$lt_reload_flag
 
11129
reload_cmds=$lt_reload_cmds
 
11130
 
 
11131
# How to pass a linker flag through the compiler.
 
11132
wl=$lt_lt_prog_compiler_wl
 
11133
 
 
11134
# Object file suffix (normally "o").
 
11135
objext="$ac_objext"
 
11136
 
 
11137
# Old archive suffix (normally "a").
 
11138
libext="$libext"
 
11139
 
 
11140
# Shared library suffix (normally ".so").
 
11141
shrext_cmds='$shrext_cmds'
 
11142
 
 
11143
# Executable file suffix (normally "").
 
11144
exeext="$exeext"
 
11145
 
 
11146
# Additional compiler flags for building library objects.
 
11147
pic_flag=$lt_lt_prog_compiler_pic
 
11148
pic_mode=$pic_mode
 
11149
 
 
11150
# What is the maximum length of a command?
 
11151
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11152
 
 
11153
# Does compiler simultaneously support -c and -o options?
 
11154
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11155
 
 
11156
# Must we lock files when doing compilation?
 
11157
need_locks=$lt_need_locks
 
11158
 
 
11159
# Do we need the lib prefix for modules?
 
11160
need_lib_prefix=$need_lib_prefix
 
11161
 
 
11162
# Do we need a version for libraries?
 
11163
need_version=$need_version
 
11164
 
 
11165
# Whether dlopen is supported.
 
11166
dlopen_support=$enable_dlopen
 
11167
 
 
11168
# Whether dlopen of programs is supported.
 
11169
dlopen_self=$enable_dlopen_self
 
11170
 
 
11171
# Whether dlopen of statically linked programs is supported.
 
11172
dlopen_self_static=$enable_dlopen_self_static
 
11173
 
 
11174
# Compiler flag to prevent dynamic linking.
 
11175
link_static_flag=$lt_lt_prog_compiler_static
 
11176
 
 
11177
# Compiler flag to turn off builtin functions.
 
11178
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11179
 
 
11180
# Compiler flag to allow reflexive dlopens.
 
11181
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11182
 
 
11183
# Compiler flag to generate shared objects directly from archives.
 
11184
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11185
 
 
11186
# Compiler flag to generate thread-safe objects.
 
11187
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11188
 
 
11189
# Library versioning type.
 
11190
version_type=$version_type
 
11191
 
 
11192
# Format of library name prefix.
 
11193
libname_spec=$lt_libname_spec
 
11194
 
 
11195
# List of archive names.  First name is the real one, the rest are links.
 
11196
# The last name is the one that the linker finds with -lNAME.
 
11197
library_names_spec=$lt_library_names_spec
 
11198
 
 
11199
# The coded name of the library, if different from the real name.
 
11200
soname_spec=$lt_soname_spec
 
11201
 
 
11202
# Commands used to build and install an old-style archive.
 
11203
RANLIB=$lt_RANLIB
 
11204
old_archive_cmds=$lt_old_archive_cmds
 
11205
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11206
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11207
 
 
11208
# Create an old-style archive from a shared archive.
 
11209
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11210
 
 
11211
# Create a temporary old-style archive to link instead of a shared archive.
 
11212
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11213
 
 
11214
# Commands used to build and install a shared archive.
 
11215
archive_cmds=$lt_archive_cmds
 
11216
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11217
postinstall_cmds=$lt_postinstall_cmds
 
11218
postuninstall_cmds=$lt_postuninstall_cmds
 
11219
 
 
11220
# Commands used to build a loadable module (assumed same as above if empty)
 
11221
module_cmds=$lt_module_cmds
 
11222
module_expsym_cmds=$lt_module_expsym_cmds
 
11223
 
 
11224
# Commands to strip libraries.
 
11225
old_striplib=$lt_old_striplib
 
11226
striplib=$lt_striplib
 
11227
 
 
11228
# Dependencies to place before the objects being linked to create a
 
11229
# shared library.
 
11230
predep_objects=$lt_predep_objects
 
11231
 
 
11232
# Dependencies to place after the objects being linked to create a
 
11233
# shared library.
 
11234
postdep_objects=$lt_postdep_objects
 
11235
 
 
11236
# Dependencies to place before the objects being linked to create a
 
11237
# shared library.
 
11238
predeps=$lt_predeps
 
11239
 
 
11240
# Dependencies to place after the objects being linked to create a
 
11241
# shared library.
 
11242
postdeps=$lt_postdeps
 
11243
 
 
11244
# The directories searched by this compiler when creating a shared
 
11245
# library
 
11246
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11247
 
 
11248
# The library search path used internally by the compiler when linking
 
11249
# a shared library.
 
11250
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11251
 
 
11252
# Method to check whether dependent libraries are shared objects.
 
11253
deplibs_check_method=$lt_deplibs_check_method
 
11254
 
 
11255
# Command to use when deplibs_check_method == file_magic.
 
11256
file_magic_cmd=$lt_file_magic_cmd
 
11257
 
 
11258
# Flag that allows shared libraries with undefined symbols to be built.
 
11259
allow_undefined_flag=$lt_allow_undefined_flag
 
11260
 
 
11261
# Flag that forces no undefined symbols.
 
11262
no_undefined_flag=$lt_no_undefined_flag
 
11263
 
 
11264
# Commands used to finish a libtool library installation in a directory.
 
11265
finish_cmds=$lt_finish_cmds
 
11266
 
 
11267
# Same as above, but a single script fragment to be evaled but not shown.
 
11268
finish_eval=$lt_finish_eval
 
11269
 
 
11270
# Take the output of nm and produce a listing of raw symbols and C names.
 
11271
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11272
 
 
11273
# Transform the output of nm in a proper C declaration
 
11274
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11275
 
 
11276
# Transform the output of nm in a C name address pair
 
11277
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11278
 
 
11279
# This is the shared library runtime path variable.
 
11280
runpath_var=$runpath_var
 
11281
 
 
11282
# This is the shared library path variable.
 
11283
shlibpath_var=$shlibpath_var
 
11284
 
 
11285
# Is shlibpath searched before the hard-coded library search path?
 
11286
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11287
 
 
11288
# How to hardcode a shared library path into an executable.
 
11289
hardcode_action=$hardcode_action
 
11290
 
 
11291
# Whether we should hardcode library paths into libraries.
 
11292
hardcode_into_libs=$hardcode_into_libs
 
11293
 
 
11294
# Flag to hardcode \$libdir into a binary during linking.
 
11295
# This must work even if \$libdir does not exist.
 
11296
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11297
 
 
11298
# If ld is used when linking, flag to hardcode \$libdir into
 
11299
# a binary during linking. This must work even if \$libdir does
 
11300
# not exist.
 
11301
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11302
 
 
11303
# Whether we need a single -rpath flag with a separated argument.
 
11304
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11305
 
 
11306
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11307
# resulting binary.
 
11308
hardcode_direct=$hardcode_direct
 
11309
 
 
11310
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11311
# resulting binary.
 
11312
hardcode_minus_L=$hardcode_minus_L
 
11313
 
 
11314
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11315
# the resulting binary.
 
11316
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11317
 
 
11318
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11319
# and all subsequent libraries and executables linked against it.
 
11320
hardcode_automatic=$hardcode_automatic
 
11321
 
 
11322
# Variables whose values should be saved in libtool wrapper scripts and
 
11323
# restored at relink time.
 
11324
variables_saved_for_relink="$variables_saved_for_relink"
 
11325
 
 
11326
# Whether libtool must link a program against all its dependency libraries.
 
11327
link_all_deplibs=$link_all_deplibs
 
11328
 
 
11329
# Compile-time system search path for libraries
 
11330
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11331
 
 
11332
# Run-time system search path for libraries
 
11333
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11334
 
 
11335
# Fix the shell variable \$srcfile for the compiler.
 
11336
fix_srcfile_path=$lt_fix_srcfile_path
 
11337
 
 
11338
# Set to yes if exported symbols are required.
 
11339
always_export_symbols=$always_export_symbols
 
11340
 
 
11341
# The commands to list exported symbols.
 
11342
export_symbols_cmds=$lt_export_symbols_cmds
 
11343
 
 
11344
# The commands to extract the exported symbol list from a shared archive.
 
11345
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11346
 
 
11347
# Symbols that should not be listed in the preloaded symbols.
 
11348
exclude_expsyms=$lt_exclude_expsyms
 
11349
 
 
11350
# Symbols that must always be exported.
 
11351
include_expsyms=$lt_include_expsyms
 
11352
 
 
11353
# ### END LIBTOOL CONFIG
 
11354
 
 
11355
__EOF__
 
11356
 
 
11357
 
 
11358
  case $host_os in
 
11359
  aix3*)
 
11360
    cat <<\EOF >> "$cfgfile"
 
11361
 
 
11362
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11363
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11364
# vanish in a puff of smoke.
 
11365
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11366
  COLLECT_NAMES=
 
11367
  export COLLECT_NAMES
 
11368
fi
 
11369
EOF
 
11370
    ;;
 
11371
  esac
 
11372
 
 
11373
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11374
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11375
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11376
  # is reportedly fixed, but why not run on old versions too?
 
11377
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11378
 
 
11379
  mv -f "$cfgfile" "$ofile" || \
 
11380
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11381
  chmod +x "$ofile"
 
11382
 
 
11383
else
 
11384
  # If there is no Makefile yet, we rely on a make rule to execute
 
11385
  # `config.status --recheck' to rerun these tests and create the
 
11386
  # libtool script then.
 
11387
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11388
  if test -f "$ltmain_in"; then
 
11389
    test -f Makefile && make "$ltmain"
 
11390
  fi
 
11391
fi
 
11392
 
 
11393
 
 
11394
ac_ext=c
 
11395
ac_cpp='$CPP $CPPFLAGS'
 
11396
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11397
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11398
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11399
 
 
11400
CC="$lt_save_CC"
 
11401
 
 
11402
 
 
11403
# Check whether --with-tags was given.
 
11404
if test "${with_tags+set}" = set; then
 
11405
  withval=$with_tags; tagnames="$withval"
 
11406
fi
 
11407
 
 
11408
 
 
11409
if test -f "$ltmain" && test -n "$tagnames"; then
 
11410
  if test ! -f "${ofile}"; then
 
11411
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11412
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11413
  fi
 
11414
 
 
11415
  if test -z "$LTCC"; then
 
11416
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11417
    if test -z "$LTCC"; then
 
11418
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11419
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11420
    else
 
11421
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11422
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11423
    fi
 
11424
  fi
 
11425
  if test -z "$LTCFLAGS"; then
 
11426
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11427
  fi
 
11428
 
 
11429
  # Extract list of available tagged configurations in $ofile.
 
11430
  # Note that this assumes the entire list is on one line.
 
11431
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11432
 
 
11433
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11434
  for tagname in $tagnames; do
 
11435
    IFS="$lt_save_ifs"
 
11436
    # Check whether tagname contains only valid characters
 
11437
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11438
    "") ;;
 
11439
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11440
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11441
   { (exit 1); exit 1; }; }
 
11442
        ;;
 
11443
    esac
 
11444
 
 
11445
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11446
    then
 
11447
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11448
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11449
   { (exit 1); exit 1; }; }
 
11450
    fi
 
11451
 
 
11452
    # Update the list of available tags.
 
11453
    if test -n "$tagname"; then
 
11454
      echo appending configuration tag \"$tagname\" to $ofile
 
11455
 
 
11456
      case $tagname in
 
11457
      CXX)
 
11458
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11459
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11460
            (test "X$CXX" != "Xg++"))) ; then
 
11461
          ac_ext=cpp
 
11462
ac_cpp='$CXXCPP $CPPFLAGS'
 
11463
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11464
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11465
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11466
 
 
11467
 
 
11468
 
 
11469
 
 
11470
archive_cmds_need_lc_CXX=no
 
11471
allow_undefined_flag_CXX=
 
11472
always_export_symbols_CXX=no
 
11473
archive_expsym_cmds_CXX=
 
11474
export_dynamic_flag_spec_CXX=
 
11475
hardcode_direct_CXX=no
 
11476
hardcode_libdir_flag_spec_CXX=
 
11477
hardcode_libdir_flag_spec_ld_CXX=
 
11478
hardcode_libdir_separator_CXX=
 
11479
hardcode_minus_L_CXX=no
 
11480
hardcode_shlibpath_var_CXX=unsupported
 
11481
hardcode_automatic_CXX=no
 
11482
module_cmds_CXX=
 
11483
module_expsym_cmds_CXX=
 
11484
link_all_deplibs_CXX=unknown
 
11485
old_archive_cmds_CXX=$old_archive_cmds
 
11486
no_undefined_flag_CXX=
 
11487
whole_archive_flag_spec_CXX=
 
11488
enable_shared_with_static_runtimes_CXX=no
 
11489
 
 
11490
# Dependencies to place before and after the object being linked:
 
11491
predep_objects_CXX=
 
11492
postdep_objects_CXX=
 
11493
predeps_CXX=
 
11494
postdeps_CXX=
 
11495
compiler_lib_search_path_CXX=
 
11496
compiler_lib_search_dirs_CXX=
 
11497
 
 
11498
# Source file extension for C++ test sources.
 
11499
ac_ext=cpp
 
11500
 
 
11501
# Object file extension for compiled C++ test sources.
 
11502
objext=o
 
11503
objext_CXX=$objext
 
11504
 
 
11505
# Code to be used in simple compile tests
 
11506
lt_simple_compile_test_code="int some_variable = 0;"
 
11507
 
 
11508
# Code to be used in simple link tests
 
11509
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11510
 
 
11511
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11512
 
 
11513
# If no C compiler was specified, use CC.
 
11514
LTCC=${LTCC-"$CC"}
 
11515
 
 
11516
# If no C compiler flags were specified, use CFLAGS.
 
11517
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11518
 
 
11519
# Allow CC to be a program name with arguments.
 
11520
compiler=$CC
 
11521
 
 
11522
 
 
11523
# save warnings/boilerplate of simple test code
 
11524
ac_outfile=conftest.$ac_objext
 
11525
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11526
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11527
_lt_compiler_boilerplate=`cat conftest.err`
 
11528
$rm conftest*
 
11529
 
 
11530
ac_outfile=conftest.$ac_objext
 
11531
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11532
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11533
_lt_linker_boilerplate=`cat conftest.err`
 
11534
$rm -r conftest*
 
11535
 
 
11536
 
 
11537
# Allow CC to be a program name with arguments.
 
11538
lt_save_CC=$CC
 
11539
lt_save_LD=$LD
 
11540
lt_save_GCC=$GCC
 
11541
GCC=$GXX
 
11542
lt_save_with_gnu_ld=$with_gnu_ld
 
11543
lt_save_path_LD=$lt_cv_path_LD
 
11544
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11545
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11546
else
 
11547
  $as_unset lt_cv_prog_gnu_ld
 
11548
fi
 
11549
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11550
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11551
else
 
11552
  $as_unset lt_cv_path_LD
 
11553
fi
 
11554
test -z "${LDCXX+set}" || LD=$LDCXX
 
11555
CC=${CXX-"c++"}
 
11556
compiler=$CC
 
11557
compiler_CXX=$CC
 
11558
for cc_temp in $compiler""; do
 
11559
  case $cc_temp in
 
11560
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11561
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11562
    \-*) ;;
 
11563
    *) break;;
 
11564
  esac
 
11565
done
 
11566
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11567
 
 
11568
 
 
11569
# We don't want -fno-exception wen compiling C++ code, so set the
 
11570
# no_builtin_flag separately
 
11571
if test "$GXX" = yes; then
 
11572
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11573
else
 
11574
  lt_prog_compiler_no_builtin_flag_CXX=
 
11575
fi
 
11576
 
 
11577
if test "$GXX" = yes; then
 
11578
  # Set up default GNU C++ configuration
 
11579
 
 
11580
 
 
11581
# Check whether --with-gnu-ld was given.
 
11582
if test "${with_gnu_ld+set}" = set; then
 
11583
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11584
else
 
11585
  with_gnu_ld=no
 
11586
fi
 
11587
 
 
11588
ac_prog=ld
 
11589
if test "$GCC" = yes; then
 
11590
  # Check if gcc -print-prog-name=ld gives a path.
 
11591
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11592
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11593
  case $host in
 
11594
  *-*-mingw*)
 
11595
    # gcc leaves a trailing carriage return which upsets mingw
 
11596
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11597
  *)
 
11598
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11599
  esac
 
11600
  case $ac_prog in
 
11601
    # Accept absolute paths.
 
11602
    [\\/]* | ?:[\\/]*)
 
11603
      re_direlt='/[^/][^/]*/\.\./'
 
11604
      # Canonicalize the pathname of ld
 
11605
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11606
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11607
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11608
      done
 
11609
      test -z "$LD" && LD="$ac_prog"
 
11610
      ;;
 
11611
  "")
 
11612
    # If it fails, then pretend we aren't using GCC.
 
11613
    ac_prog=ld
 
11614
    ;;
 
11615
  *)
 
11616
    # If it is relative, then search for the first ld in PATH.
 
11617
    with_gnu_ld=unknown
 
11618
    ;;
 
11619
  esac
 
11620
elif test "$with_gnu_ld" = yes; then
 
11621
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11622
$as_echo_n "checking for GNU ld... " >&6; }
 
11623
else
 
11624
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11625
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11626
fi
 
11627
if test "${lt_cv_path_LD+set}" = set; then
 
11628
  $as_echo_n "(cached) " >&6
 
11629
else
 
11630
  if test -z "$LD"; then
 
11631
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11632
  for ac_dir in $PATH; do
 
11633
    IFS="$lt_save_ifs"
 
11634
    test -z "$ac_dir" && ac_dir=.
 
11635
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11636
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11637
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11638
      # but apparently some variants of GNU ld only accept -v.
 
11639
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11640
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11641
      *GNU* | *'with BFD'*)
 
11642
        test "$with_gnu_ld" != no && break
 
11643
        ;;
 
11644
      *)
 
11645
        test "$with_gnu_ld" != yes && break
 
11646
        ;;
 
11647
      esac
 
11648
    fi
 
11649
  done
 
11650
  IFS="$lt_save_ifs"
 
11651
else
 
11652
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11653
fi
 
11654
fi
 
11655
 
 
11656
LD="$lt_cv_path_LD"
 
11657
if test -n "$LD"; then
 
11658
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11659
$as_echo "$LD" >&6; }
 
11660
else
 
11661
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11662
$as_echo "no" >&6; }
 
11663
fi
 
11664
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11665
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11666
   { (exit 1); exit 1; }; }
 
11667
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11668
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11669
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11670
  $as_echo_n "(cached) " >&6
 
11671
else
 
11672
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11673
case `$LD -v 2>&1 </dev/null` in
 
11674
*GNU* | *'with BFD'*)
 
11675
  lt_cv_prog_gnu_ld=yes
 
11676
  ;;
 
11677
*)
 
11678
  lt_cv_prog_gnu_ld=no
 
11679
  ;;
 
11680
esac
 
11681
fi
 
11682
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11683
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11684
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11685
 
 
11686
 
 
11687
 
 
11688
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11689
  # archiving commands below assume that GNU ld is being used.
 
11690
  if test "$with_gnu_ld" = yes; then
 
11691
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11692
    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'
 
11693
 
 
11694
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11695
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11696
 
 
11697
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11698
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11699
    #     investigate it a little bit more. (MM)
 
11700
    wlarc='${wl}'
 
11701
 
 
11702
    # ancient GNU ld didn't support --whole-archive et. al.
 
11703
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11704
        grep 'no-whole-archive' > /dev/null; then
 
11705
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11706
    else
 
11707
      whole_archive_flag_spec_CXX=
 
11708
    fi
 
11709
  else
 
11710
    with_gnu_ld=no
 
11711
    wlarc=
 
11712
 
 
11713
    # A generic and very simple default shared library creation
 
11714
    # command for GNU C++ for the case where it uses the native
 
11715
    # linker, instead of GNU ld.  If possible, this setting should
 
11716
    # overridden to take advantage of the native linker features on
 
11717
    # the platform it is being used on.
 
11718
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11719
  fi
 
11720
 
 
11721
  # Commands to make compiler produce verbose output that lists
 
11722
  # what "hidden" libraries, object files and flags are used when
 
11723
  # linking a shared library.
 
11724
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11725
 
 
11726
else
 
11727
  GXX=no
 
11728
  with_gnu_ld=no
 
11729
  wlarc=
 
11730
fi
 
11731
 
 
11732
# PORTME: fill in a description of your system's C++ link characteristics
 
11733
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11734
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11735
ld_shlibs_CXX=yes
 
11736
case $host_os in
 
11737
  aix3*)
 
11738
    # FIXME: insert proper C++ library support
 
11739
    ld_shlibs_CXX=no
 
11740
    ;;
 
11741
  aix[4-9]*)
 
11742
    if test "$host_cpu" = ia64; then
 
11743
      # On IA64, the linker does run time linking by default, so we don't
 
11744
      # have to do anything special.
 
11745
      aix_use_runtimelinking=no
 
11746
      exp_sym_flag='-Bexport'
 
11747
      no_entry_flag=""
 
11748
    else
 
11749
      aix_use_runtimelinking=no
 
11750
 
 
11751
      # Test if we are trying to use run time linking or normal
 
11752
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11753
      # need to do runtime linking.
 
11754
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11755
        for ld_flag in $LDFLAGS; do
 
11756
          case $ld_flag in
 
11757
          *-brtl*)
 
11758
            aix_use_runtimelinking=yes
 
11759
            break
 
11760
            ;;
 
11761
          esac
 
11762
        done
 
11763
        ;;
 
11764
      esac
 
11765
 
 
11766
      exp_sym_flag='-bexport'
 
11767
      no_entry_flag='-bnoentry'
 
11768
    fi
 
11769
 
 
11770
    # When large executables or shared objects are built, AIX ld can
 
11771
    # have problems creating the table of contents.  If linking a library
 
11772
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11773
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11774
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11775
 
 
11776
    archive_cmds_CXX=''
 
11777
    hardcode_direct_CXX=yes
 
11778
    hardcode_libdir_separator_CXX=':'
 
11779
    link_all_deplibs_CXX=yes
 
11780
 
 
11781
    if test "$GXX" = yes; then
 
11782
      case $host_os in aix4.[012]|aix4.[012].*)
 
11783
      # We only want to do this on AIX 4.2 and lower, the check
 
11784
      # below for broken collect2 doesn't work under 4.3+
 
11785
        collect2name=`${CC} -print-prog-name=collect2`
 
11786
        if test -f "$collect2name" && \
 
11787
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11788
        then
 
11789
          # We have reworked collect2
 
11790
          :
 
11791
        else
 
11792
          # We have old collect2
 
11793
          hardcode_direct_CXX=unsupported
 
11794
          # It fails to find uninstalled libraries when the uninstalled
 
11795
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11796
          # to unsupported forces relinking
 
11797
          hardcode_minus_L_CXX=yes
 
11798
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11799
          hardcode_libdir_separator_CXX=
 
11800
        fi
 
11801
        ;;
 
11802
      esac
 
11803
      shared_flag='-shared'
 
11804
      if test "$aix_use_runtimelinking" = yes; then
 
11805
        shared_flag="$shared_flag "'${wl}-G'
 
11806
      fi
 
11807
    else
 
11808
      # not using gcc
 
11809
      if test "$host_cpu" = ia64; then
 
11810
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11811
        # chokes on -Wl,-G. The following line is correct:
 
11812
        shared_flag='-G'
 
11813
      else
 
11814
        if test "$aix_use_runtimelinking" = yes; then
 
11815
          shared_flag='${wl}-G'
 
11816
        else
 
11817
          shared_flag='${wl}-bM:SRE'
 
11818
        fi
 
11819
      fi
 
11820
    fi
 
11821
 
 
11822
    # It seems that -bexpall does not export symbols beginning with
 
11823
    # underscore (_), so it is better to generate a list of symbols to export.
 
11824
    always_export_symbols_CXX=yes
 
11825
    if test "$aix_use_runtimelinking" = yes; then
 
11826
      # Warning - without using the other runtime loading flags (-brtl),
 
11827
      # -berok will link without error, but may produce a broken library.
 
11828
      allow_undefined_flag_CXX='-berok'
 
11829
      # Determine the default libpath from the value encoded in an empty executable.
 
11830
      cat >conftest.$ac_ext <<_ACEOF
 
11831
/* confdefs.h.  */
 
11832
_ACEOF
 
11833
cat confdefs.h >>conftest.$ac_ext
 
11834
cat >>conftest.$ac_ext <<_ACEOF
 
11835
/* end confdefs.h.  */
 
11836
 
 
11837
int
 
11838
main ()
 
11839
{
 
11840
 
 
11841
  ;
 
11842
  return 0;
 
11843
}
 
11844
_ACEOF
 
11845
rm -f conftest.$ac_objext conftest$ac_exeext
 
11846
if { (ac_try="$ac_link"
 
11847
case "(($ac_try" in
 
11848
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11849
  *) ac_try_echo=$ac_try;;
 
11850
esac
 
11851
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11852
$as_echo "$ac_try_echo") >&5
 
11853
  (eval "$ac_link") 2>conftest.er1
 
11854
  ac_status=$?
 
11855
  grep -v '^ *+' conftest.er1 >conftest.err
 
11856
  rm -f conftest.er1
 
11857
  cat conftest.err >&5
 
11858
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11859
  (exit $ac_status); } && {
 
11860
         test -z "$ac_cxx_werror_flag" ||
 
11861
         test ! -s conftest.err
 
11862
       } && test -s conftest$ac_exeext && {
 
11863
         test "$cross_compiling" = yes ||
 
11864
         $as_test_x conftest$ac_exeext
 
11865
       }; then
 
11866
 
 
11867
lt_aix_libpath_sed='
 
11868
    /Import File Strings/,/^$/ {
 
11869
        /^0/ {
 
11870
            s/^0  *\(.*\)$/\1/
 
11871
            p
 
11872
        }
 
11873
    }'
 
11874
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11875
# Check for a 64-bit object if we didn't find anything.
 
11876
if test -z "$aix_libpath"; then
 
11877
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11878
fi
 
11879
else
 
11880
  $as_echo "$as_me: failed program was:" >&5
 
11881
sed 's/^/| /' conftest.$ac_ext >&5
 
11882
 
 
11883
 
 
11884
fi
 
11885
 
 
11886
rm -rf conftest.dSYM
 
11887
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11888
      conftest$ac_exeext conftest.$ac_ext
 
11889
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11890
 
 
11891
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11892
 
 
11893
      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"
 
11894
     else
 
11895
      if test "$host_cpu" = ia64; then
 
11896
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11897
        allow_undefined_flag_CXX="-z nodefs"
 
11898
        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"
 
11899
      else
 
11900
        # Determine the default libpath from the value encoded in an empty executable.
 
11901
        cat >conftest.$ac_ext <<_ACEOF
 
11902
/* confdefs.h.  */
 
11903
_ACEOF
 
11904
cat confdefs.h >>conftest.$ac_ext
 
11905
cat >>conftest.$ac_ext <<_ACEOF
 
11906
/* end confdefs.h.  */
 
11907
 
 
11908
int
 
11909
main ()
 
11910
{
 
11911
 
 
11912
  ;
 
11913
  return 0;
 
11914
}
 
11915
_ACEOF
 
11916
rm -f conftest.$ac_objext conftest$ac_exeext
 
11917
if { (ac_try="$ac_link"
 
11918
case "(($ac_try" in
 
11919
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11920
  *) ac_try_echo=$ac_try;;
 
11921
esac
 
11922
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11923
$as_echo "$ac_try_echo") >&5
 
11924
  (eval "$ac_link") 2>conftest.er1
 
11925
  ac_status=$?
 
11926
  grep -v '^ *+' conftest.er1 >conftest.err
 
11927
  rm -f conftest.er1
 
11928
  cat conftest.err >&5
 
11929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11930
  (exit $ac_status); } && {
 
11931
         test -z "$ac_cxx_werror_flag" ||
 
11932
         test ! -s conftest.err
 
11933
       } && test -s conftest$ac_exeext && {
 
11934
         test "$cross_compiling" = yes ||
 
11935
         $as_test_x conftest$ac_exeext
 
11936
       }; then
 
11937
 
 
11938
lt_aix_libpath_sed='
 
11939
    /Import File Strings/,/^$/ {
 
11940
        /^0/ {
 
11941
            s/^0  *\(.*\)$/\1/
 
11942
            p
 
11943
        }
 
11944
    }'
 
11945
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11946
# Check for a 64-bit object if we didn't find anything.
 
11947
if test -z "$aix_libpath"; then
 
11948
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11949
fi
 
11950
else
 
11951
  $as_echo "$as_me: failed program was:" >&5
 
11952
sed 's/^/| /' conftest.$ac_ext >&5
 
11953
 
 
11954
 
 
11955
fi
 
11956
 
 
11957
rm -rf conftest.dSYM
 
11958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11959
      conftest$ac_exeext conftest.$ac_ext
 
11960
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11961
 
 
11962
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11963
        # Warning - without using the other run time loading flags,
 
11964
        # -berok will link without error, but may produce a broken library.
 
11965
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11966
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11967
        # Exported symbols can be pulled into shared objects from archives
 
11968
        whole_archive_flag_spec_CXX='$convenience'
 
11969
        archive_cmds_need_lc_CXX=yes
 
11970
        # This is similar to how AIX traditionally builds its shared libraries.
 
11971
        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'
 
11972
      fi
 
11973
    fi
 
11974
    ;;
 
11975
 
 
11976
  beos*)
 
11977
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11978
      allow_undefined_flag_CXX=unsupported
 
11979
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11980
      # support --undefined.  This deserves some investigation.  FIXME
 
11981
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11982
    else
 
11983
      ld_shlibs_CXX=no
 
11984
    fi
 
11985
    ;;
 
11986
 
 
11987
  chorus*)
 
11988
    case $cc_basename in
 
11989
      *)
 
11990
        # FIXME: insert proper C++ library support
 
11991
        ld_shlibs_CXX=no
 
11992
        ;;
 
11993
    esac
 
11994
    ;;
 
11995
 
 
11996
  cygwin* | mingw* | pw32*)
 
11997
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11998
    # as there is no search path for DLLs.
 
11999
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12000
    allow_undefined_flag_CXX=unsupported
 
12001
    always_export_symbols_CXX=no
 
12002
    enable_shared_with_static_runtimes_CXX=yes
 
12003
 
 
12004
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12005
      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'
 
12006
      # If the export-symbols file already is a .def file (1st line
 
12007
      # is EXPORTS), use it as is; otherwise, prepend...
 
12008
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12009
        cp $export_symbols $output_objdir/$soname.def;
 
12010
      else
 
12011
        echo EXPORTS > $output_objdir/$soname.def;
 
12012
        cat $export_symbols >> $output_objdir/$soname.def;
 
12013
      fi~
 
12014
      $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'
 
12015
    else
 
12016
      ld_shlibs_CXX=no
 
12017
    fi
 
12018
  ;;
 
12019
      darwin* | rhapsody*)
 
12020
      archive_cmds_need_lc_CXX=no
 
12021
      hardcode_direct_CXX=no
 
12022
      hardcode_automatic_CXX=yes
 
12023
      hardcode_shlibpath_var_CXX=unsupported
 
12024
      whole_archive_flag_spec_CXX=''
 
12025
      link_all_deplibs_CXX=yes
 
12026
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12027
      if test "$GXX" = yes ; then
 
12028
      output_verbose_link_cmd='echo'
 
12029
      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}"
 
12030
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12031
      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}"
 
12032
      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}"
 
12033
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12034
        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}"
 
12035
        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}"
 
12036
      fi
 
12037
      else
 
12038
      case $cc_basename in
 
12039
        xlc*)
 
12040
         output_verbose_link_cmd='echo'
 
12041
          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'
 
12042
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12043
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12044
          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}'
 
12045
          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}'
 
12046
          ;;
 
12047
       *)
 
12048
         ld_shlibs_CXX=no
 
12049
          ;;
 
12050
      esac
 
12051
      fi
 
12052
        ;;
 
12053
 
 
12054
  dgux*)
 
12055
    case $cc_basename in
 
12056
      ec++*)
 
12057
        # FIXME: insert proper C++ library support
 
12058
        ld_shlibs_CXX=no
 
12059
        ;;
 
12060
      ghcx*)
 
12061
        # Green Hills C++ Compiler
 
12062
        # FIXME: insert proper C++ library support
 
12063
        ld_shlibs_CXX=no
 
12064
        ;;
 
12065
      *)
 
12066
        # FIXME: insert proper C++ library support
 
12067
        ld_shlibs_CXX=no
 
12068
        ;;
 
12069
    esac
 
12070
    ;;
 
12071
  freebsd[12]*)
 
12072
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12073
    ld_shlibs_CXX=no
 
12074
    ;;
 
12075
  freebsd-elf*)
 
12076
    archive_cmds_need_lc_CXX=no
 
12077
    ;;
 
12078
  freebsd* | dragonfly*)
 
12079
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12080
    # conventions
 
12081
    ld_shlibs_CXX=yes
 
12082
    ;;
 
12083
  gnu*)
 
12084
    ;;
 
12085
  hpux9*)
 
12086
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12087
    hardcode_libdir_separator_CXX=:
 
12088
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12089
    hardcode_direct_CXX=yes
 
12090
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12091
                                # but as the default
 
12092
                                # location of the library.
 
12093
 
 
12094
    case $cc_basename in
 
12095
    CC*)
 
12096
      # FIXME: insert proper C++ library support
 
12097
      ld_shlibs_CXX=no
 
12098
      ;;
 
12099
    aCC*)
 
12100
      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'
 
12101
      # Commands to make compiler produce verbose output that lists
 
12102
      # what "hidden" libraries, object files and flags are used when
 
12103
      # linking a shared library.
 
12104
      #
 
12105
      # There doesn't appear to be a way to prevent this compiler from
 
12106
      # explicitly linking system object files so we need to strip them
 
12107
      # from the output so that they don't get included in the library
 
12108
      # dependencies.
 
12109
      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'
 
12110
      ;;
 
12111
    *)
 
12112
      if test "$GXX" = yes; then
 
12113
        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'
 
12114
      else
 
12115
        # FIXME: insert proper C++ library support
 
12116
        ld_shlibs_CXX=no
 
12117
      fi
 
12118
      ;;
 
12119
    esac
 
12120
    ;;
 
12121
  hpux10*|hpux11*)
 
12122
    if test $with_gnu_ld = no; then
 
12123
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12124
      hardcode_libdir_separator_CXX=:
 
12125
 
 
12126
      case $host_cpu in
 
12127
      hppa*64*|ia64*) ;;
 
12128
      *)
 
12129
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12130
        ;;
 
12131
      esac
 
12132
    fi
 
12133
    case $host_cpu in
 
12134
    hppa*64*|ia64*)
 
12135
      hardcode_direct_CXX=no
 
12136
      hardcode_shlibpath_var_CXX=no
 
12137
      ;;
 
12138
    *)
 
12139
      hardcode_direct_CXX=yes
 
12140
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12141
                                              # but as the default
 
12142
                                              # location of the library.
 
12143
      ;;
 
12144
    esac
 
12145
 
 
12146
    case $cc_basename in
 
12147
      CC*)
 
12148
        # FIXME: insert proper C++ library support
 
12149
        ld_shlibs_CXX=no
 
12150
        ;;
 
12151
      aCC*)
 
12152
        case $host_cpu in
 
12153
        hppa*64*)
 
12154
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12155
          ;;
 
12156
        ia64*)
 
12157
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12158
          ;;
 
12159
        *)
 
12160
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12161
          ;;
 
12162
        esac
 
12163
        # Commands to make compiler produce verbose output that lists
 
12164
        # what "hidden" libraries, object files and flags are used when
 
12165
        # linking a shared library.
 
12166
        #
 
12167
        # There doesn't appear to be a way to prevent this compiler from
 
12168
        # explicitly linking system object files so we need to strip them
 
12169
        # from the output so that they don't get included in the library
 
12170
        # dependencies.
 
12171
        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'
 
12172
        ;;
 
12173
      *)
 
12174
        if test "$GXX" = yes; then
 
12175
          if test $with_gnu_ld = no; then
 
12176
            case $host_cpu in
 
12177
            hppa*64*)
 
12178
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12179
              ;;
 
12180
            ia64*)
 
12181
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12182
              ;;
 
12183
            *)
 
12184
              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'
 
12185
              ;;
 
12186
            esac
 
12187
          fi
 
12188
        else
 
12189
          # FIXME: insert proper C++ library support
 
12190
          ld_shlibs_CXX=no
 
12191
        fi
 
12192
        ;;
 
12193
    esac
 
12194
    ;;
 
12195
  interix[3-9]*)
 
12196
    hardcode_direct_CXX=no
 
12197
    hardcode_shlibpath_var_CXX=no
 
12198
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12199
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12200
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12201
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12202
    # default) and relocated if they conflict, which is a slow very memory
 
12203
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12204
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12205
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12206
    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'
 
12207
    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'
 
12208
    ;;
 
12209
  irix5* | irix6*)
 
12210
    case $cc_basename in
 
12211
      CC*)
 
12212
        # SGI C++
 
12213
        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'
 
12214
 
 
12215
        # Archives containing C++ object files must be created using
 
12216
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12217
        # necessary to make sure instantiated templates are included
 
12218
        # in the archive.
 
12219
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12220
        ;;
 
12221
      *)
 
12222
        if test "$GXX" = yes; then
 
12223
          if test "$with_gnu_ld" = no; then
 
12224
            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'
 
12225
          else
 
12226
            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'
 
12227
          fi
 
12228
        fi
 
12229
        link_all_deplibs_CXX=yes
 
12230
        ;;
 
12231
    esac
 
12232
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12233
    hardcode_libdir_separator_CXX=:
 
12234
    ;;
 
12235
  linux* | k*bsd*-gnu)
 
12236
    case $cc_basename in
 
12237
      KCC*)
 
12238
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12239
 
 
12240
        # KCC will only create a shared library if the output file
 
12241
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12242
        # to its proper name (with version) after linking.
 
12243
        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'
 
12244
        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'
 
12245
        # Commands to make compiler produce verbose output that lists
 
12246
        # what "hidden" libraries, object files and flags are used when
 
12247
        # linking a shared library.
 
12248
        #
 
12249
        # There doesn't appear to be a way to prevent this compiler from
 
12250
        # explicitly linking system object files so we need to strip them
 
12251
        # from the output so that they don't get included in the library
 
12252
        # dependencies.
 
12253
        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'
 
12254
 
 
12255
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12256
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12257
 
 
12258
        # Archives containing C++ object files must be created using
 
12259
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12260
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12261
        ;;
 
12262
      icpc*)
 
12263
        # Intel C++
 
12264
        with_gnu_ld=yes
 
12265
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12266
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12267
        # earlier do not add the objects themselves.
 
12268
        case `$CC -V 2>&1` in
 
12269
        *"Version 7."*)
 
12270
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12271
          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'
 
12272
          ;;
 
12273
        *)  # Version 8.0 or newer
 
12274
          tmp_idyn=
 
12275
          case $host_cpu in
 
12276
            ia64*) tmp_idyn=' -i_dynamic';;
 
12277
          esac
 
12278
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12279
          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'
 
12280
          ;;
 
12281
        esac
 
12282
        archive_cmds_need_lc_CXX=no
 
12283
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12284
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12285
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12286
        ;;
 
12287
      pgCC* | pgcpp*)
 
12288
        # Portland Group C++ compiler
 
12289
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12290
        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'
 
12291
 
 
12292
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12293
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12294
        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'
 
12295
        ;;
 
12296
      cxx*)
 
12297
        # Compaq C++
 
12298
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12299
        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'
 
12300
 
 
12301
        runpath_var=LD_RUN_PATH
 
12302
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12303
        hardcode_libdir_separator_CXX=:
 
12304
 
 
12305
        # Commands to make compiler produce verbose output that lists
 
12306
        # what "hidden" libraries, object files and flags are used when
 
12307
        # linking a shared library.
 
12308
        #
 
12309
        # There doesn't appear to be a way to prevent this compiler from
 
12310
        # explicitly linking system object files so we need to strip them
 
12311
        # from the output so that they don't get included in the library
 
12312
        # dependencies.
 
12313
        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'
 
12314
        ;;
 
12315
      *)
 
12316
        case `$CC -V 2>&1 | sed 5q` in
 
12317
        *Sun\ C*)
 
12318
          # Sun C++ 5.9
 
12319
          no_undefined_flag_CXX=' -zdefs'
 
12320
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12321
          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'
 
12322
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12323
          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'
 
12324
 
 
12325
          # Not sure whether something based on
 
12326
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12327
          # would be better.
 
12328
          output_verbose_link_cmd='echo'
 
12329
 
 
12330
          # Archives containing C++ object files must be created using
 
12331
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12332
          # necessary to make sure instantiated templates are included
 
12333
          # in the archive.
 
12334
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12335
          ;;
 
12336
        esac
 
12337
        ;;
 
12338
    esac
 
12339
    ;;
 
12340
  lynxos*)
 
12341
    # FIXME: insert proper C++ library support
 
12342
    ld_shlibs_CXX=no
 
12343
    ;;
 
12344
  m88k*)
 
12345
    # FIXME: insert proper C++ library support
 
12346
    ld_shlibs_CXX=no
 
12347
    ;;
 
12348
  mvs*)
 
12349
    case $cc_basename in
 
12350
      cxx*)
 
12351
        # FIXME: insert proper C++ library support
 
12352
        ld_shlibs_CXX=no
 
12353
        ;;
 
12354
      *)
 
12355
        # FIXME: insert proper C++ library support
 
12356
        ld_shlibs_CXX=no
 
12357
        ;;
 
12358
    esac
 
12359
    ;;
 
12360
  netbsd*)
 
12361
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12362
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12363
      wlarc=
 
12364
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12365
      hardcode_direct_CXX=yes
 
12366
      hardcode_shlibpath_var_CXX=no
 
12367
    fi
 
12368
    # Workaround some broken pre-1.5 toolchains
 
12369
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12370
    ;;
 
12371
  openbsd2*)
 
12372
    # C++ shared libraries are fairly broken
 
12373
    ld_shlibs_CXX=no
 
12374
    ;;
 
12375
  openbsd*)
 
12376
    if test -f /usr/libexec/ld.so; then
 
12377
      hardcode_direct_CXX=yes
 
12378
      hardcode_shlibpath_var_CXX=no
 
12379
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12380
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12381
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12382
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12383
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12384
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12385
      fi
 
12386
      output_verbose_link_cmd='echo'
 
12387
    else
 
12388
      ld_shlibs_CXX=no
 
12389
    fi
 
12390
    ;;
 
12391
  osf3*)
 
12392
    case $cc_basename in
 
12393
      KCC*)
 
12394
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12395
 
 
12396
        # KCC will only create a shared library if the output file
 
12397
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12398
        # to its proper name (with version) after linking.
 
12399
        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'
 
12400
 
 
12401
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12402
        hardcode_libdir_separator_CXX=:
 
12403
 
 
12404
        # Archives containing C++ object files must be created using
 
12405
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12406
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12407
 
 
12408
        ;;
 
12409
      RCC*)
 
12410
        # Rational C++ 2.4.1
 
12411
        # FIXME: insert proper C++ library support
 
12412
        ld_shlibs_CXX=no
 
12413
        ;;
 
12414
      cxx*)
 
12415
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12416
        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'
 
12417
 
 
12418
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12419
        hardcode_libdir_separator_CXX=:
 
12420
 
 
12421
        # Commands to make compiler produce verbose output that lists
 
12422
        # what "hidden" libraries, object files and flags are used when
 
12423
        # linking a shared library.
 
12424
        #
 
12425
        # There doesn't appear to be a way to prevent this compiler from
 
12426
        # explicitly linking system object files so we need to strip them
 
12427
        # from the output so that they don't get included in the library
 
12428
        # dependencies.
 
12429
        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'
 
12430
        ;;
 
12431
      *)
 
12432
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12433
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12434
          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'
 
12435
 
 
12436
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12437
          hardcode_libdir_separator_CXX=:
 
12438
 
 
12439
          # Commands to make compiler produce verbose output that lists
 
12440
          # what "hidden" libraries, object files and flags are used when
 
12441
          # linking a shared library.
 
12442
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12443
 
 
12444
        else
 
12445
          # FIXME: insert proper C++ library support
 
12446
          ld_shlibs_CXX=no
 
12447
        fi
 
12448
        ;;
 
12449
    esac
 
12450
    ;;
 
12451
  osf4* | osf5*)
 
12452
    case $cc_basename in
 
12453
      KCC*)
 
12454
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12455
 
 
12456
        # KCC will only create a shared library if the output file
 
12457
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12458
        # to its proper name (with version) after linking.
 
12459
        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'
 
12460
 
 
12461
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12462
        hardcode_libdir_separator_CXX=:
 
12463
 
 
12464
        # Archives containing C++ object files must be created using
 
12465
        # the KAI C++ compiler.
 
12466
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12467
        ;;
 
12468
      RCC*)
 
12469
        # Rational C++ 2.4.1
 
12470
        # FIXME: insert proper C++ library support
 
12471
        ld_shlibs_CXX=no
 
12472
        ;;
 
12473
      cxx*)
 
12474
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12475
        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'
 
12476
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12477
          echo "-hidden">> $lib.exp~
 
12478
          $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~
 
12479
          $rm $lib.exp'
 
12480
 
 
12481
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12482
        hardcode_libdir_separator_CXX=:
 
12483
 
 
12484
        # Commands to make compiler produce verbose output that lists
 
12485
        # what "hidden" libraries, object files and flags are used when
 
12486
        # linking a shared library.
 
12487
        #
 
12488
        # There doesn't appear to be a way to prevent this compiler from
 
12489
        # explicitly linking system object files so we need to strip them
 
12490
        # from the output so that they don't get included in the library
 
12491
        # dependencies.
 
12492
        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'
 
12493
        ;;
 
12494
      *)
 
12495
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12496
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12497
         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'
 
12498
 
 
12499
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12500
          hardcode_libdir_separator_CXX=:
 
12501
 
 
12502
          # Commands to make compiler produce verbose output that lists
 
12503
          # what "hidden" libraries, object files and flags are used when
 
12504
          # linking a shared library.
 
12505
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12506
 
 
12507
        else
 
12508
          # FIXME: insert proper C++ library support
 
12509
          ld_shlibs_CXX=no
 
12510
        fi
 
12511
        ;;
 
12512
    esac
 
12513
    ;;
 
12514
  psos*)
 
12515
    # FIXME: insert proper C++ library support
 
12516
    ld_shlibs_CXX=no
 
12517
    ;;
 
12518
  sunos4*)
 
12519
    case $cc_basename in
 
12520
      CC*)
 
12521
        # Sun C++ 4.x
 
12522
        # FIXME: insert proper C++ library support
 
12523
        ld_shlibs_CXX=no
 
12524
        ;;
 
12525
      lcc*)
 
12526
        # Lucid
 
12527
        # FIXME: insert proper C++ library support
 
12528
        ld_shlibs_CXX=no
 
12529
        ;;
 
12530
      *)
 
12531
        # FIXME: insert proper C++ library support
 
12532
        ld_shlibs_CXX=no
 
12533
        ;;
 
12534
    esac
 
12535
    ;;
 
12536
  solaris*)
 
12537
    case $cc_basename in
 
12538
      CC*)
 
12539
        # Sun C++ 4.2, 5.x and Centerline C++
 
12540
        archive_cmds_need_lc_CXX=yes
 
12541
        no_undefined_flag_CXX=' -zdefs'
 
12542
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12543
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12544
        $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'
 
12545
 
 
12546
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12547
        hardcode_shlibpath_var_CXX=no
 
12548
        case $host_os in
 
12549
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12550
          *)
 
12551
            # The compiler driver will combine and reorder linker options,
 
12552
            # but understands `-z linker_flag'.
 
12553
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12554
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12555
            ;;
 
12556
        esac
 
12557
        link_all_deplibs_CXX=yes
 
12558
 
 
12559
        output_verbose_link_cmd='echo'
 
12560
 
 
12561
        # Archives containing C++ object files must be created using
 
12562
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12563
        # necessary to make sure instantiated templates are included
 
12564
        # in the archive.
 
12565
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12566
        ;;
 
12567
      gcx*)
 
12568
        # Green Hills C++ Compiler
 
12569
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12570
 
 
12571
        # The C++ compiler must be used to create the archive.
 
12572
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12573
        ;;
 
12574
      *)
 
12575
        # GNU C++ compiler with Solaris linker
 
12576
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12577
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12578
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12579
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12580
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12581
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12582
 
 
12583
            # Commands to make compiler produce verbose output that lists
 
12584
            # what "hidden" libraries, object files and flags are used when
 
12585
            # linking a shared library.
 
12586
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12587
          else
 
12588
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12589
            # platform.
 
12590
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12591
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12592
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12593
 
 
12594
            # Commands to make compiler produce verbose output that lists
 
12595
            # what "hidden" libraries, object files and flags are used when
 
12596
            # linking a shared library.
 
12597
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12598
          fi
 
12599
 
 
12600
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12601
          case $host_os in
 
12602
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12603
          *)
 
12604
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12605
            ;;
 
12606
          esac
 
12607
        fi
 
12608
        ;;
 
12609
    esac
 
12610
    ;;
 
12611
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12612
    no_undefined_flag_CXX='${wl}-z,text'
 
12613
    archive_cmds_need_lc_CXX=no
 
12614
    hardcode_shlibpath_var_CXX=no
 
12615
    runpath_var='LD_RUN_PATH'
 
12616
 
 
12617
    case $cc_basename in
 
12618
      CC*)
 
12619
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12620
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12621
        ;;
 
12622
      *)
 
12623
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12624
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12625
        ;;
 
12626
    esac
 
12627
    ;;
 
12628
  sysv5* | sco3.2v5* | sco5v6*)
 
12629
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12630
    # link with -lc, and that would cause any symbols used from libc to
 
12631
    # always be unresolved, which means just about no library would
 
12632
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12633
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12634
    # as -z defs.
 
12635
    # For security reasons, it is highly recommended that you always
 
12636
    # use absolute paths for naming shared libraries, and exclude the
 
12637
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12638
    # requires that you compile everything twice, which is a pain.
 
12639
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12640
    # non-empty value in the environment.  Most likely only useful for
 
12641
    # creating official distributions of packages.
 
12642
    # This is a hack until libtool officially supports absolute path
 
12643
    # names for shared libraries.
 
12644
    no_undefined_flag_CXX='${wl}-z,text'
 
12645
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12646
    archive_cmds_need_lc_CXX=no
 
12647
    hardcode_shlibpath_var_CXX=no
 
12648
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12649
    hardcode_libdir_separator_CXX=':'
 
12650
    link_all_deplibs_CXX=yes
 
12651
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12652
    runpath_var='LD_RUN_PATH'
 
12653
 
 
12654
    case $cc_basename in
 
12655
      CC*)
 
12656
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12657
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12658
        ;;
 
12659
      *)
 
12660
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12661
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12662
        ;;
 
12663
    esac
 
12664
    ;;
 
12665
  tandem*)
 
12666
    case $cc_basename in
 
12667
      NCC*)
 
12668
        # NonStop-UX NCC 3.20
 
12669
        # FIXME: insert proper C++ library support
 
12670
        ld_shlibs_CXX=no
 
12671
        ;;
 
12672
      *)
 
12673
        # FIXME: insert proper C++ library support
 
12674
        ld_shlibs_CXX=no
 
12675
        ;;
 
12676
    esac
 
12677
    ;;
 
12678
  vxworks*)
 
12679
    # FIXME: insert proper C++ library support
 
12680
    ld_shlibs_CXX=no
 
12681
    ;;
 
12682
  *)
 
12683
    # FIXME: insert proper C++ library support
 
12684
    ld_shlibs_CXX=no
 
12685
    ;;
 
12686
esac
 
12687
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12688
$as_echo "$ld_shlibs_CXX" >&6; }
 
12689
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12690
 
 
12691
GCC_CXX="$GXX"
 
12692
LD_CXX="$LD"
 
12693
 
 
12694
cat > conftest.$ac_ext <<EOF
 
12695
class Foo
 
12696
{
 
12697
public:
 
12698
  Foo (void) { a = 0; }
 
12699
private:
 
12700
  int a;
 
12701
};
 
12702
EOF
 
12703
 
 
12704
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12705
  (eval $ac_compile) 2>&5
 
12706
  ac_status=$?
 
12707
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12708
  (exit $ac_status); }; then
 
12709
  # Parse the compiler output and extract the necessary
 
12710
  # objects, libraries and library flags.
 
12711
 
 
12712
  # Sentinel used to keep track of whether or not we are before
 
12713
  # the conftest object file.
 
12714
  pre_test_object_deps_done=no
 
12715
 
 
12716
  # The `*' in the case matches for architectures that use `case' in
 
12717
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12718
  # eval without this substitution.
 
12719
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12720
 
 
12721
  for p in `eval $output_verbose_link_cmd`; do
 
12722
    case $p in
 
12723
 
 
12724
    -L* | -R* | -l*)
 
12725
       # Some compilers place space between "-{L,R}" and the path.
 
12726
       # Remove the space.
 
12727
       if test $p = "-L" \
 
12728
          || test $p = "-R"; then
 
12729
         prev=$p
 
12730
         continue
 
12731
       else
 
12732
         prev=
 
12733
       fi
 
12734
 
 
12735
       if test "$pre_test_object_deps_done" = no; then
 
12736
         case $p in
 
12737
         -L* | -R*)
 
12738
           # Internal compiler library paths should come after those
 
12739
           # provided the user.  The postdeps already come after the
 
12740
           # user supplied libs so there is no need to process them.
 
12741
           if test -z "$compiler_lib_search_path_CXX"; then
 
12742
             compiler_lib_search_path_CXX="${prev}${p}"
 
12743
           else
 
12744
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12745
           fi
 
12746
           ;;
 
12747
         # The "-l" case would never come before the object being
 
12748
         # linked, so don't bother handling this case.
 
12749
         esac
 
12750
       else
 
12751
         if test -z "$postdeps_CXX"; then
 
12752
           postdeps_CXX="${prev}${p}"
 
12753
         else
 
12754
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12755
         fi
 
12756
       fi
 
12757
       ;;
 
12758
 
 
12759
    *.$objext)
 
12760
       # This assumes that the test object file only shows up
 
12761
       # once in the compiler output.
 
12762
       if test "$p" = "conftest.$objext"; then
 
12763
         pre_test_object_deps_done=yes
 
12764
         continue
 
12765
       fi
 
12766
 
 
12767
       if test "$pre_test_object_deps_done" = no; then
 
12768
         if test -z "$predep_objects_CXX"; then
 
12769
           predep_objects_CXX="$p"
 
12770
         else
 
12771
           predep_objects_CXX="$predep_objects_CXX $p"
 
12772
         fi
 
12773
       else
 
12774
         if test -z "$postdep_objects_CXX"; then
 
12775
           postdep_objects_CXX="$p"
 
12776
         else
 
12777
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12778
         fi
 
12779
       fi
 
12780
       ;;
 
12781
 
 
12782
    *) ;; # Ignore the rest.
 
12783
 
 
12784
    esac
 
12785
  done
 
12786
 
 
12787
  # Clean up.
 
12788
  rm -f a.out a.exe
 
12789
else
 
12790
  echo "libtool.m4: error: problem compiling CXX test program"
 
12791
fi
 
12792
 
 
12793
$rm -f confest.$objext
 
12794
 
 
12795
compiler_lib_search_dirs_CXX=
 
12796
if test -n "$compiler_lib_search_path_CXX"; then
 
12797
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12798
fi
 
12799
 
 
12800
# PORTME: override above test on systems where it is broken
 
12801
case $host_os in
 
12802
interix[3-9]*)
 
12803
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12804
  # hack all around it, let's just trust "g++" to DTRT.
 
12805
  predep_objects_CXX=
 
12806
  postdep_objects_CXX=
 
12807
  postdeps_CXX=
 
12808
  ;;
 
12809
 
 
12810
linux*)
 
12811
  case `$CC -V 2>&1 | sed 5q` in
 
12812
  *Sun\ C*)
 
12813
    # Sun C++ 5.9
 
12814
    #
 
12815
    # The more standards-conforming stlport4 library is
 
12816
    # incompatible with the Cstd library. Avoid specifying
 
12817
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12818
    # -library=stlport4 depends on it.
 
12819
    case " $CXX $CXXFLAGS " in
 
12820
    *" -library=stlport4 "*)
 
12821
      solaris_use_stlport4=yes
 
12822
      ;;
 
12823
    esac
 
12824
    if test "$solaris_use_stlport4" != yes; then
 
12825
      postdeps_CXX='-library=Cstd -library=Crun'
 
12826
    fi
 
12827
    ;;
 
12828
  esac
 
12829
  ;;
 
12830
 
 
12831
solaris*)
 
12832
  case $cc_basename in
 
12833
  CC*)
 
12834
    # The more standards-conforming stlport4 library is
 
12835
    # incompatible with the Cstd library. Avoid specifying
 
12836
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12837
    # -library=stlport4 depends on it.
 
12838
    case " $CXX $CXXFLAGS " in
 
12839
    *" -library=stlport4 "*)
 
12840
      solaris_use_stlport4=yes
 
12841
      ;;
 
12842
    esac
 
12843
 
 
12844
    # Adding this requires a known-good setup of shared libraries for
 
12845
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12846
    # archive will be linked into the output, leading to subtle bugs.
 
12847
    if test "$solaris_use_stlport4" != yes; then
 
12848
      postdeps_CXX='-library=Cstd -library=Crun'
 
12849
    fi
 
12850
    ;;
 
12851
  esac
 
12852
  ;;
 
12853
esac
 
12854
 
 
12855
case " $postdeps_CXX " in
 
12856
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12857
esac
 
12858
 
 
12859
lt_prog_compiler_wl_CXX=
 
12860
lt_prog_compiler_pic_CXX=
 
12861
lt_prog_compiler_static_CXX=
 
12862
 
 
12863
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12864
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12865
 
 
12866
  # C++ specific cases for pic, static, wl, etc.
 
12867
  if test "$GXX" = yes; then
 
12868
    lt_prog_compiler_wl_CXX='-Wl,'
 
12869
    lt_prog_compiler_static_CXX='-static'
 
12870
 
 
12871
    case $host_os in
 
12872
    aix*)
 
12873
      # All AIX code is PIC.
 
12874
      if test "$host_cpu" = ia64; then
 
12875
        # AIX 5 now supports IA64 processor
 
12876
        lt_prog_compiler_static_CXX='-Bstatic'
 
12877
      fi
 
12878
      ;;
 
12879
    amigaos*)
 
12880
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12881
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12882
      # like `-m68040'.
 
12883
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12884
      ;;
 
12885
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12886
      # PIC is the default for these OSes.
 
12887
      ;;
 
12888
    mingw* | cygwin* | os2* | pw32*)
 
12889
      # This hack is so that the source file can tell whether it is being
 
12890
      # built for inclusion in a dll (and should export symbols for example).
 
12891
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12892
      # (--disable-auto-import) libraries
 
12893
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12894
      ;;
 
12895
    darwin* | rhapsody*)
 
12896
      # PIC is the default on this platform
 
12897
      # Common symbols not allowed in MH_DYLIB files
 
12898
      lt_prog_compiler_pic_CXX='-fno-common'
 
12899
      ;;
 
12900
    *djgpp*)
 
12901
      # DJGPP does not support shared libraries at all
 
12902
      lt_prog_compiler_pic_CXX=
 
12903
      ;;
 
12904
    interix[3-9]*)
 
12905
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12906
      # Instead, we relocate shared libraries at runtime.
 
12907
      ;;
 
12908
    sysv4*MP*)
 
12909
      if test -d /usr/nec; then
 
12910
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12911
      fi
 
12912
      ;;
 
12913
    hpux*)
 
12914
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12915
      # not for PA HP-UX.
 
12916
      case $host_cpu in
 
12917
      hppa*64*|ia64*)
 
12918
        ;;
 
12919
      *)
 
12920
        lt_prog_compiler_pic_CXX='-fPIC'
 
12921
        ;;
 
12922
      esac
 
12923
      ;;
 
12924
    *)
 
12925
      lt_prog_compiler_pic_CXX='-fPIC'
 
12926
      ;;
 
12927
    esac
 
12928
  else
 
12929
    case $host_os in
 
12930
      aix[4-9]*)
 
12931
        # All AIX code is PIC.
 
12932
        if test "$host_cpu" = ia64; then
 
12933
          # AIX 5 now supports IA64 processor
 
12934
          lt_prog_compiler_static_CXX='-Bstatic'
 
12935
        else
 
12936
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12937
        fi
 
12938
        ;;
 
12939
      chorus*)
 
12940
        case $cc_basename in
 
12941
        cxch68*)
 
12942
          # Green Hills C++ Compiler
 
12943
          # _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"
 
12944
          ;;
 
12945
        esac
 
12946
        ;;
 
12947
       darwin*)
 
12948
         # PIC is the default on this platform
 
12949
         # Common symbols not allowed in MH_DYLIB files
 
12950
         case $cc_basename in
 
12951
           xlc*)
 
12952
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12953
           lt_prog_compiler_wl_CXX='-Wl,'
 
12954
           ;;
 
12955
         esac
 
12956
       ;;
 
12957
      dgux*)
 
12958
        case $cc_basename in
 
12959
          ec++*)
 
12960
            lt_prog_compiler_pic_CXX='-KPIC'
 
12961
            ;;
 
12962
          ghcx*)
 
12963
            # Green Hills C++ Compiler
 
12964
            lt_prog_compiler_pic_CXX='-pic'
 
12965
            ;;
 
12966
          *)
 
12967
            ;;
 
12968
        esac
 
12969
        ;;
 
12970
      freebsd* | dragonfly*)
 
12971
        # FreeBSD uses GNU C++
 
12972
        ;;
 
12973
      hpux9* | hpux10* | hpux11*)
 
12974
        case $cc_basename in
 
12975
          CC*)
 
12976
            lt_prog_compiler_wl_CXX='-Wl,'
 
12977
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12978
            if test "$host_cpu" != ia64; then
 
12979
              lt_prog_compiler_pic_CXX='+Z'
 
12980
            fi
 
12981
            ;;
 
12982
          aCC*)
 
12983
            lt_prog_compiler_wl_CXX='-Wl,'
 
12984
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12985
            case $host_cpu in
 
12986
            hppa*64*|ia64*)
 
12987
              # +Z the default
 
12988
              ;;
 
12989
            *)
 
12990
              lt_prog_compiler_pic_CXX='+Z'
 
12991
              ;;
 
12992
            esac
 
12993
            ;;
 
12994
          *)
 
12995
            ;;
 
12996
        esac
 
12997
        ;;
 
12998
      interix*)
 
12999
        # This is c89, which is MS Visual C++ (no shared libs)
 
13000
        # Anyone wants to do a port?
 
13001
        ;;
 
13002
      irix5* | irix6* | nonstopux*)
 
13003
        case $cc_basename in
 
13004
          CC*)
 
13005
            lt_prog_compiler_wl_CXX='-Wl,'
 
13006
            lt_prog_compiler_static_CXX='-non_shared'
 
13007
            # CC pic flag -KPIC is the default.
 
13008
            ;;
 
13009
          *)
 
13010
            ;;
 
13011
        esac
 
13012
        ;;
 
13013
      linux* | k*bsd*-gnu)
 
13014
        case $cc_basename in
 
13015
          KCC*)
 
13016
            # KAI C++ Compiler
 
13017
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13018
            lt_prog_compiler_pic_CXX='-fPIC'
 
13019
            ;;
 
13020
          icpc* | ecpc*)
 
13021
            # Intel C++
 
13022
            lt_prog_compiler_wl_CXX='-Wl,'
 
13023
            lt_prog_compiler_pic_CXX='-KPIC'
 
13024
            lt_prog_compiler_static_CXX='-static'
 
13025
            ;;
 
13026
          pgCC* | pgcpp*)
 
13027
            # Portland Group C++ compiler.
 
13028
            lt_prog_compiler_wl_CXX='-Wl,'
 
13029
            lt_prog_compiler_pic_CXX='-fpic'
 
13030
            lt_prog_compiler_static_CXX='-Bstatic'
 
13031
            ;;
 
13032
          cxx*)
 
13033
            # Compaq C++
 
13034
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13035
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13036
            lt_prog_compiler_pic_CXX=
 
13037
            lt_prog_compiler_static_CXX='-non_shared'
 
13038
            ;;
 
13039
          *)
 
13040
            case `$CC -V 2>&1 | sed 5q` in
 
13041
            *Sun\ C*)
 
13042
              # Sun C++ 5.9
 
13043
              lt_prog_compiler_pic_CXX='-KPIC'
 
13044
              lt_prog_compiler_static_CXX='-Bstatic'
 
13045
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13046
              ;;
 
13047
            esac
 
13048
            ;;
 
13049
        esac
 
13050
        ;;
 
13051
      lynxos*)
 
13052
        ;;
 
13053
      m88k*)
 
13054
        ;;
 
13055
      mvs*)
 
13056
        case $cc_basename in
 
13057
          cxx*)
 
13058
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13059
            ;;
 
13060
          *)
 
13061
            ;;
 
13062
        esac
 
13063
        ;;
 
13064
      netbsd*)
 
13065
        ;;
 
13066
      osf3* | osf4* | osf5*)
 
13067
        case $cc_basename in
 
13068
          KCC*)
 
13069
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13070
            ;;
 
13071
          RCC*)
 
13072
            # Rational C++ 2.4.1
 
13073
            lt_prog_compiler_pic_CXX='-pic'
 
13074
            ;;
 
13075
          cxx*)
 
13076
            # Digital/Compaq C++
 
13077
            lt_prog_compiler_wl_CXX='-Wl,'
 
13078
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13079
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13080
            lt_prog_compiler_pic_CXX=
 
13081
            lt_prog_compiler_static_CXX='-non_shared'
 
13082
            ;;
 
13083
          *)
 
13084
            ;;
 
13085
        esac
 
13086
        ;;
 
13087
      psos*)
 
13088
        ;;
 
13089
      solaris*)
 
13090
        case $cc_basename in
 
13091
          CC*)
 
13092
            # Sun C++ 4.2, 5.x and Centerline C++
 
13093
            lt_prog_compiler_pic_CXX='-KPIC'
 
13094
            lt_prog_compiler_static_CXX='-Bstatic'
 
13095
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13096
            ;;
 
13097
          gcx*)
 
13098
            # Green Hills C++ Compiler
 
13099
            lt_prog_compiler_pic_CXX='-PIC'
 
13100
            ;;
 
13101
          *)
 
13102
            ;;
 
13103
        esac
 
13104
        ;;
 
13105
      sunos4*)
 
13106
        case $cc_basename in
 
13107
          CC*)
 
13108
            # Sun C++ 4.x
 
13109
            lt_prog_compiler_pic_CXX='-pic'
 
13110
            lt_prog_compiler_static_CXX='-Bstatic'
 
13111
            ;;
 
13112
          lcc*)
 
13113
            # Lucid
 
13114
            lt_prog_compiler_pic_CXX='-pic'
 
13115
            ;;
 
13116
          *)
 
13117
            ;;
 
13118
        esac
 
13119
        ;;
 
13120
      tandem*)
 
13121
        case $cc_basename in
 
13122
          NCC*)
 
13123
            # NonStop-UX NCC 3.20
 
13124
            lt_prog_compiler_pic_CXX='-KPIC'
 
13125
            ;;
 
13126
          *)
 
13127
            ;;
 
13128
        esac
 
13129
        ;;
 
13130
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13131
        case $cc_basename in
 
13132
          CC*)
 
13133
            lt_prog_compiler_wl_CXX='-Wl,'
 
13134
            lt_prog_compiler_pic_CXX='-KPIC'
 
13135
            lt_prog_compiler_static_CXX='-Bstatic'
 
13136
            ;;
 
13137
        esac
 
13138
        ;;
 
13139
      vxworks*)
 
13140
        ;;
 
13141
      *)
 
13142
        lt_prog_compiler_can_build_shared_CXX=no
 
13143
        ;;
 
13144
    esac
 
13145
  fi
 
13146
 
 
13147
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13148
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13149
 
 
13150
#
 
13151
# Check to make sure the PIC flag actually works.
 
13152
#
 
13153
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13154
 
 
13155
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13156
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13157
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13158
  $as_echo_n "(cached) " >&6
 
13159
else
 
13160
  lt_cv_prog_compiler_pic_works_CXX=no
 
13161
  ac_outfile=conftest.$ac_objext
 
13162
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13163
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13164
   # Insert the option either (1) after the last *FLAGS variable, or
 
13165
   # (2) before a word containing "conftest.", or (3) at the end.
 
13166
   # Note that $ac_compile itself does not contain backslashes and begins
 
13167
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13168
   # The option is referenced via a variable to avoid confusing sed.
 
13169
   lt_compile=`echo "$ac_compile" | $SED \
 
13170
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13171
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13172
   -e 's:$: $lt_compiler_flag:'`
 
13173
   (eval echo "\"\$as_me:13173: $lt_compile\"" >&5)
 
13174
   (eval "$lt_compile" 2>conftest.err)
 
13175
   ac_status=$?
 
13176
   cat conftest.err >&5
 
13177
   echo "$as_me:13177: \$? = $ac_status" >&5
 
13178
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13179
     # The compiler can only warn and ignore the option if not recognized
 
13180
     # So say no if there are warnings other than the usual output.
 
13181
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13182
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13183
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13184
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13185
     fi
 
13186
   fi
 
13187
   $rm conftest*
 
13188
 
 
13189
fi
 
13190
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13191
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13192
 
 
13193
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13194
    case $lt_prog_compiler_pic_CXX in
 
13195
     "" | " "*) ;;
 
13196
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13197
     esac
 
13198
else
 
13199
    lt_prog_compiler_pic_CXX=
 
13200
     lt_prog_compiler_can_build_shared_CXX=no
 
13201
fi
 
13202
 
 
13203
fi
 
13204
case $host_os in
 
13205
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13206
  *djgpp*)
 
13207
    lt_prog_compiler_pic_CXX=
 
13208
    ;;
 
13209
  *)
 
13210
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13211
    ;;
 
13212
esac
 
13213
 
 
13214
#
 
13215
# Check to make sure the static flag actually works.
 
13216
#
 
13217
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13218
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13219
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13220
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13221
  $as_echo_n "(cached) " >&6
 
13222
else
 
13223
  lt_cv_prog_compiler_static_works_CXX=no
 
13224
   save_LDFLAGS="$LDFLAGS"
 
13225
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13226
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13227
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13228
     # The linker can only warn and ignore the option if not recognized
 
13229
     # So say no if there are warnings
 
13230
     if test -s conftest.err; then
 
13231
       # Append any errors to the config.log.
 
13232
       cat conftest.err 1>&5
 
13233
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13234
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13235
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13236
         lt_cv_prog_compiler_static_works_CXX=yes
 
13237
       fi
 
13238
     else
 
13239
       lt_cv_prog_compiler_static_works_CXX=yes
 
13240
     fi
 
13241
   fi
 
13242
   $rm -r conftest*
 
13243
   LDFLAGS="$save_LDFLAGS"
 
13244
 
 
13245
fi
 
13246
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13247
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13248
 
 
13249
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13250
    :
 
13251
else
 
13252
    lt_prog_compiler_static_CXX=
 
13253
fi
 
13254
 
 
13255
 
 
13256
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13257
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13258
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13259
  $as_echo_n "(cached) " >&6
 
13260
else
 
13261
  lt_cv_prog_compiler_c_o_CXX=no
 
13262
   $rm -r conftest 2>/dev/null
 
13263
   mkdir conftest
 
13264
   cd conftest
 
13265
   mkdir out
 
13266
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13267
 
 
13268
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13269
   # Insert the option either (1) after the last *FLAGS variable, or
 
13270
   # (2) before a word containing "conftest.", or (3) at the end.
 
13271
   # Note that $ac_compile itself does not contain backslashes and begins
 
13272
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13273
   lt_compile=`echo "$ac_compile" | $SED \
 
13274
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13275
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13276
   -e 's:$: $lt_compiler_flag:'`
 
13277
   (eval echo "\"\$as_me:13277: $lt_compile\"" >&5)
 
13278
   (eval "$lt_compile" 2>out/conftest.err)
 
13279
   ac_status=$?
 
13280
   cat out/conftest.err >&5
 
13281
   echo "$as_me:13281: \$? = $ac_status" >&5
 
13282
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13283
   then
 
13284
     # The compiler can only warn and ignore the option if not recognized
 
13285
     # So say no if there are warnings
 
13286
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13287
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13288
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13289
       lt_cv_prog_compiler_c_o_CXX=yes
 
13290
     fi
 
13291
   fi
 
13292
   chmod u+w . 2>&5
 
13293
   $rm conftest*
 
13294
   # SGI C++ compiler will create directory out/ii_files/ for
 
13295
   # template instantiation
 
13296
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13297
   $rm out/* && rmdir out
 
13298
   cd ..
 
13299
   rmdir conftest
 
13300
   $rm conftest*
 
13301
 
 
13302
fi
 
13303
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13304
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13305
 
 
13306
 
 
13307
hard_links="nottested"
 
13308
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13309
  # do not overwrite the value of need_locks provided by the user
 
13310
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13311
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13312
  hard_links=yes
 
13313
  $rm conftest*
 
13314
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13315
  touch conftest.a
 
13316
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13317
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13318
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13319
$as_echo "$hard_links" >&6; }
 
13320
  if test "$hard_links" = no; then
 
13321
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13322
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13323
    need_locks=warn
 
13324
  fi
 
13325
else
 
13326
  need_locks=no
 
13327
fi
 
13328
 
 
13329
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13330
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13331
 
 
13332
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13333
  case $host_os in
 
13334
  aix[4-9]*)
 
13335
    # If we're using GNU nm, then we don't want the "-C" option.
 
13336
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13337
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13338
      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'
 
13339
    else
 
13340
      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'
 
13341
    fi
 
13342
    ;;
 
13343
  pw32*)
 
13344
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13345
  ;;
 
13346
  cygwin* | mingw*)
 
13347
    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'
 
13348
  ;;
 
13349
  *)
 
13350
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13351
  ;;
 
13352
  esac
 
13353
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13354
 
 
13355
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13356
$as_echo "$ld_shlibs_CXX" >&6; }
 
13357
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13358
 
 
13359
#
 
13360
# Do we need to explicitly link libc?
 
13361
#
 
13362
case "x$archive_cmds_need_lc_CXX" in
 
13363
x|xyes)
 
13364
  # Assume -lc should be added
 
13365
  archive_cmds_need_lc_CXX=yes
 
13366
 
 
13367
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13368
    case $archive_cmds_CXX in
 
13369
    *'~'*)
 
13370
      # FIXME: we may have to deal with multi-command sequences.
 
13371
      ;;
 
13372
    '$CC '*)
 
13373
      # Test whether the compiler implicitly links with -lc since on some
 
13374
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13375
      # to ld, don't add -lc before -lgcc.
 
13376
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13377
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13378
      $rm conftest*
 
13379
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13380
 
 
13381
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13382
  (eval $ac_compile) 2>&5
 
13383
  ac_status=$?
 
13384
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13385
  (exit $ac_status); } 2>conftest.err; then
 
13386
        soname=conftest
 
13387
        lib=conftest
 
13388
        libobjs=conftest.$ac_objext
 
13389
        deplibs=
 
13390
        wl=$lt_prog_compiler_wl_CXX
 
13391
        pic_flag=$lt_prog_compiler_pic_CXX
 
13392
        compiler_flags=-v
 
13393
        linker_flags=-v
 
13394
        verstring=
 
13395
        output_objdir=.
 
13396
        libname=conftest
 
13397
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13398
        allow_undefined_flag_CXX=
 
13399
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13400
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13401
  ac_status=$?
 
13402
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13403
  (exit $ac_status); }
 
13404
        then
 
13405
          archive_cmds_need_lc_CXX=no
 
13406
        else
 
13407
          archive_cmds_need_lc_CXX=yes
 
13408
        fi
 
13409
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13410
      else
 
13411
        cat conftest.err 1>&5
 
13412
      fi
 
13413
      $rm conftest*
 
13414
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13415
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13416
      ;;
 
13417
    esac
 
13418
  fi
 
13419
  ;;
 
13420
esac
 
13421
 
 
13422
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13423
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13424
library_names_spec=
 
13425
libname_spec='lib$name'
 
13426
soname_spec=
 
13427
shrext_cmds=".so"
 
13428
postinstall_cmds=
 
13429
postuninstall_cmds=
 
13430
finish_cmds=
 
13431
finish_eval=
 
13432
shlibpath_var=
 
13433
shlibpath_overrides_runpath=unknown
 
13434
version_type=none
 
13435
dynamic_linker="$host_os ld.so"
 
13436
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13437
 
 
13438
need_lib_prefix=unknown
 
13439
hardcode_into_libs=no
 
13440
 
 
13441
# when you set need_version to no, make sure it does not cause -set_version
 
13442
# flags to be left without arguments
 
13443
need_version=unknown
 
13444
 
 
13445
case $host_os in
 
13446
aix3*)
 
13447
  version_type=linux
 
13448
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13449
  shlibpath_var=LIBPATH
 
13450
 
 
13451
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13452
  soname_spec='${libname}${release}${shared_ext}$major'
 
13453
  ;;
 
13454
 
 
13455
aix[4-9]*)
 
13456
  version_type=linux
 
13457
  need_lib_prefix=no
 
13458
  need_version=no
 
13459
  hardcode_into_libs=yes
 
13460
  if test "$host_cpu" = ia64; then
 
13461
    # AIX 5 supports IA64
 
13462
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13463
    shlibpath_var=LD_LIBRARY_PATH
 
13464
  else
 
13465
    # With GCC up to 2.95.x, collect2 would create an import file
 
13466
    # for dependence libraries.  The import file would start with
 
13467
    # the line `#! .'.  This would cause the generated library to
 
13468
    # depend on `.', always an invalid library.  This was fixed in
 
13469
    # development snapshots of GCC prior to 3.0.
 
13470
    case $host_os in
 
13471
      aix4 | aix4.[01] | aix4.[01].*)
 
13472
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13473
           echo ' yes '
 
13474
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13475
        :
 
13476
      else
 
13477
        can_build_shared=no
 
13478
      fi
 
13479
      ;;
 
13480
    esac
 
13481
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13482
    # soname into executable. Probably we can add versioning support to
 
13483
    # collect2, so additional links can be useful in future.
 
13484
    if test "$aix_use_runtimelinking" = yes; then
 
13485
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13486
      # instead of lib<name>.a to let people know that these are not
 
13487
      # typical AIX shared libraries.
 
13488
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13489
    else
 
13490
      # We preserve .a as extension for shared libraries through AIX4.2
 
13491
      # and later when we are not doing run time linking.
 
13492
      library_names_spec='${libname}${release}.a $libname.a'
 
13493
      soname_spec='${libname}${release}${shared_ext}$major'
 
13494
    fi
 
13495
    shlibpath_var=LIBPATH
 
13496
  fi
 
13497
  ;;
 
13498
 
 
13499
amigaos*)
 
13500
  library_names_spec='$libname.ixlibrary $libname.a'
 
13501
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13502
  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'
 
13503
  ;;
 
13504
 
 
13505
beos*)
 
13506
  library_names_spec='${libname}${shared_ext}'
 
13507
  dynamic_linker="$host_os ld.so"
 
13508
  shlibpath_var=LIBRARY_PATH
 
13509
  ;;
 
13510
 
 
13511
bsdi[45]*)
 
13512
  version_type=linux
 
13513
  need_version=no
 
13514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13515
  soname_spec='${libname}${release}${shared_ext}$major'
 
13516
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13517
  shlibpath_var=LD_LIBRARY_PATH
 
13518
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13519
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13520
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13521
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13522
  # libtool to hard-code these into programs
 
13523
  ;;
 
13524
 
 
13525
cygwin* | mingw* | pw32*)
 
13526
  version_type=windows
 
13527
  shrext_cmds=".dll"
 
13528
  need_version=no
 
13529
  need_lib_prefix=no
 
13530
 
 
13531
  case $GCC,$host_os in
 
13532
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13533
    library_names_spec='$libname.dll.a'
 
13534
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13535
    postinstall_cmds='base_file=`basename \${file}`~
 
13536
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13537
      dldir=$destdir/`dirname \$dlpath`~
 
13538
      test -d \$dldir || mkdir -p \$dldir~
 
13539
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13540
      chmod a+x \$dldir/$dlname'
 
13541
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13542
      dlpath=$dir/\$dldll~
 
13543
       $rm \$dlpath'
 
13544
    shlibpath_overrides_runpath=yes
 
13545
 
 
13546
    case $host_os in
 
13547
    cygwin*)
 
13548
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13549
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13550
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13551
      ;;
 
13552
    mingw*)
 
13553
      # MinGW DLLs use traditional 'lib' prefix
 
13554
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13555
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13556
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13557
        # It is most probably a Windows format PATH printed by
 
13558
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13559
        # path with ; separators, and with drive letters. We can handle the
 
13560
        # drive letters (cygwin fileutils understands them), so leave them,
 
13561
        # especially as we might pass files found there to a mingw objdump,
 
13562
        # which wouldn't understand a cygwinified path. Ahh.
 
13563
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13564
      else
 
13565
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13566
      fi
 
13567
      ;;
 
13568
    pw32*)
 
13569
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13570
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13571
      ;;
 
13572
    esac
 
13573
    ;;
 
13574
 
 
13575
  *)
 
13576
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13577
    ;;
 
13578
  esac
 
13579
  dynamic_linker='Win32 ld.exe'
 
13580
  # FIXME: first we should search . and the directory the executable is in
 
13581
  shlibpath_var=PATH
 
13582
  ;;
 
13583
 
 
13584
darwin* | rhapsody*)
 
13585
  dynamic_linker="$host_os dyld"
 
13586
  version_type=darwin
 
13587
  need_lib_prefix=no
 
13588
  need_version=no
 
13589
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13590
  soname_spec='${libname}${release}${major}$shared_ext'
 
13591
  shlibpath_overrides_runpath=yes
 
13592
  shlibpath_var=DYLD_LIBRARY_PATH
 
13593
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13594
 
 
13595
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13596
  ;;
 
13597
 
 
13598
dgux*)
 
13599
  version_type=linux
 
13600
  need_lib_prefix=no
 
13601
  need_version=no
 
13602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13603
  soname_spec='${libname}${release}${shared_ext}$major'
 
13604
  shlibpath_var=LD_LIBRARY_PATH
 
13605
  ;;
 
13606
 
 
13607
freebsd1*)
 
13608
  dynamic_linker=no
 
13609
  ;;
 
13610
 
 
13611
freebsd* | dragonfly*)
 
13612
  # DragonFly does not have aout.  When/if they implement a new
 
13613
  # versioning mechanism, adjust this.
 
13614
  if test -x /usr/bin/objformat; then
 
13615
    objformat=`/usr/bin/objformat`
 
13616
  else
 
13617
    case $host_os in
 
13618
    freebsd[123]*) objformat=aout ;;
 
13619
    *) objformat=elf ;;
 
13620
    esac
 
13621
  fi
 
13622
  version_type=freebsd-$objformat
 
13623
  case $version_type in
 
13624
    freebsd-elf*)
 
13625
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13626
      need_version=no
 
13627
      need_lib_prefix=no
 
13628
      ;;
 
13629
    freebsd-*)
 
13630
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13631
      need_version=yes
 
13632
      ;;
 
13633
  esac
 
13634
  shlibpath_var=LD_LIBRARY_PATH
 
13635
  case $host_os in
 
13636
  freebsd2*)
 
13637
    shlibpath_overrides_runpath=yes
 
13638
    ;;
 
13639
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13640
    shlibpath_overrides_runpath=yes
 
13641
    hardcode_into_libs=yes
 
13642
    ;;
 
13643
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13644
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13645
    shlibpath_overrides_runpath=no
 
13646
    hardcode_into_libs=yes
 
13647
    ;;
 
13648
  *) # from 4.6 on, and DragonFly
 
13649
    shlibpath_overrides_runpath=yes
 
13650
    hardcode_into_libs=yes
 
13651
    ;;
 
13652
  esac
 
13653
  ;;
 
13654
 
 
13655
gnu*)
 
13656
  version_type=linux
 
13657
  need_lib_prefix=no
 
13658
  need_version=no
 
13659
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13660
  soname_spec='${libname}${release}${shared_ext}$major'
 
13661
  shlibpath_var=LD_LIBRARY_PATH
 
13662
  hardcode_into_libs=yes
 
13663
  ;;
 
13664
 
 
13665
hpux9* | hpux10* | hpux11*)
 
13666
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13667
  # link against other versions.
 
13668
  version_type=sunos
 
13669
  need_lib_prefix=no
 
13670
  need_version=no
 
13671
  case $host_cpu in
 
13672
  ia64*)
 
13673
    shrext_cmds='.so'
 
13674
    hardcode_into_libs=yes
 
13675
    dynamic_linker="$host_os dld.so"
 
13676
    shlibpath_var=LD_LIBRARY_PATH
 
13677
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13678
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13679
    soname_spec='${libname}${release}${shared_ext}$major'
 
13680
    if test "X$HPUX_IA64_MODE" = X32; then
 
13681
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13682
    else
 
13683
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13684
    fi
 
13685
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13686
    ;;
 
13687
   hppa*64*)
 
13688
     shrext_cmds='.sl'
 
13689
     hardcode_into_libs=yes
 
13690
     dynamic_linker="$host_os dld.sl"
 
13691
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13692
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13693
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13694
     soname_spec='${libname}${release}${shared_ext}$major'
 
13695
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13696
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13697
     ;;
 
13698
   *)
 
13699
    shrext_cmds='.sl'
 
13700
    dynamic_linker="$host_os dld.sl"
 
13701
    shlibpath_var=SHLIB_PATH
 
13702
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13703
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13704
    soname_spec='${libname}${release}${shared_ext}$major'
 
13705
    ;;
 
13706
  esac
 
13707
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13708
  postinstall_cmds='chmod 555 $lib'
 
13709
  ;;
 
13710
 
 
13711
interix[3-9]*)
 
13712
  version_type=linux
 
13713
  need_lib_prefix=no
 
13714
  need_version=no
 
13715
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13716
  soname_spec='${libname}${release}${shared_ext}$major'
 
13717
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13718
  shlibpath_var=LD_LIBRARY_PATH
 
13719
  shlibpath_overrides_runpath=no
 
13720
  hardcode_into_libs=yes
 
13721
  ;;
 
13722
 
 
13723
irix5* | irix6* | nonstopux*)
 
13724
  case $host_os in
 
13725
    nonstopux*) version_type=nonstopux ;;
 
13726
    *)
 
13727
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13728
                version_type=linux
 
13729
        else
 
13730
                version_type=irix
 
13731
        fi ;;
 
13732
  esac
 
13733
  need_lib_prefix=no
 
13734
  need_version=no
 
13735
  soname_spec='${libname}${release}${shared_ext}$major'
 
13736
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13737
  case $host_os in
 
13738
  irix5* | nonstopux*)
 
13739
    libsuff= shlibsuff=
 
13740
    ;;
 
13741
  *)
 
13742
    case $LD in # libtool.m4 will add one of these switches to LD
 
13743
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13744
      libsuff= shlibsuff= libmagic=32-bit;;
 
13745
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13746
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13747
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13748
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13749
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13750
    esac
 
13751
    ;;
 
13752
  esac
 
13753
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13754
  shlibpath_overrides_runpath=no
 
13755
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13756
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13757
  hardcode_into_libs=yes
 
13758
  ;;
 
13759
 
 
13760
# No shared lib support for Linux oldld, aout, or coff.
 
13761
linux*oldld* | linux*aout* | linux*coff*)
 
13762
  dynamic_linker=no
 
13763
  ;;
 
13764
 
 
13765
# This must be Linux ELF.
 
13766
linux* | k*bsd*-gnu)
 
13767
  version_type=linux
 
13768
  need_lib_prefix=no
 
13769
  need_version=no
 
13770
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13771
  soname_spec='${libname}${release}${shared_ext}$major'
 
13772
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13773
  shlibpath_var=LD_LIBRARY_PATH
 
13774
  shlibpath_overrides_runpath=no
 
13775
  # This implies no fast_install, which is unacceptable.
 
13776
  # Some rework will be needed to allow for fast_install
 
13777
  # before this can be enabled.
 
13778
  hardcode_into_libs=yes
 
13779
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13780
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13781
 
 
13782
  # Append ld.so.conf contents to the search path
 
13783
  if test -f /etc/ld.so.conf; then
 
13784
    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' ' '`
 
13785
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13786
  fi
 
13787
 
 
13788
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13789
  # powerpc, because MkLinux only supported shared libraries with the
 
13790
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13791
  # most powerpc-linux boxes support dynamic linking these days and
 
13792
  # people can always --disable-shared, the test was removed, and we
 
13793
  # assume the GNU/Linux dynamic linker is in use.
 
13794
  dynamic_linker='GNU/Linux ld.so'
 
13795
  ;;
 
13796
 
 
13797
netbsd*)
 
13798
  version_type=sunos
 
13799
  need_lib_prefix=no
 
13800
  need_version=no
 
13801
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13802
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13803
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13804
    dynamic_linker='NetBSD (a.out) ld.so'
 
13805
  else
 
13806
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13807
    soname_spec='${libname}${release}${shared_ext}$major'
 
13808
    dynamic_linker='NetBSD ld.elf_so'
 
13809
  fi
 
13810
  shlibpath_var=LD_LIBRARY_PATH
 
13811
  shlibpath_overrides_runpath=yes
 
13812
  hardcode_into_libs=yes
 
13813
  ;;
 
13814
 
 
13815
newsos6)
 
13816
  version_type=linux
 
13817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13818
  shlibpath_var=LD_LIBRARY_PATH
 
13819
  shlibpath_overrides_runpath=yes
 
13820
  ;;
 
13821
 
 
13822
nto-qnx*)
 
13823
  version_type=linux
 
13824
  need_lib_prefix=no
 
13825
  need_version=no
 
13826
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13827
  soname_spec='${libname}${release}${shared_ext}$major'
 
13828
  shlibpath_var=LD_LIBRARY_PATH
 
13829
  shlibpath_overrides_runpath=yes
 
13830
  ;;
 
13831
 
 
13832
openbsd*)
 
13833
  version_type=sunos
 
13834
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13835
  need_lib_prefix=no
 
13836
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13837
  case $host_os in
 
13838
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13839
    *)                         need_version=no  ;;
 
13840
  esac
 
13841
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13842
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13843
  shlibpath_var=LD_LIBRARY_PATH
 
13844
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13845
    case $host_os in
 
13846
      openbsd2.[89] | openbsd2.[89].*)
 
13847
        shlibpath_overrides_runpath=no
 
13848
        ;;
 
13849
      *)
 
13850
        shlibpath_overrides_runpath=yes
 
13851
        ;;
 
13852
      esac
 
13853
  else
 
13854
    shlibpath_overrides_runpath=yes
 
13855
  fi
 
13856
  ;;
 
13857
 
 
13858
os2*)
 
13859
  libname_spec='$name'
 
13860
  shrext_cmds=".dll"
 
13861
  need_lib_prefix=no
 
13862
  library_names_spec='$libname${shared_ext} $libname.a'
 
13863
  dynamic_linker='OS/2 ld.exe'
 
13864
  shlibpath_var=LIBPATH
 
13865
  ;;
 
13866
 
 
13867
osf3* | osf4* | osf5*)
 
13868
  version_type=osf
 
13869
  need_lib_prefix=no
 
13870
  need_version=no
 
13871
  soname_spec='${libname}${release}${shared_ext}$major'
 
13872
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13873
  shlibpath_var=LD_LIBRARY_PATH
 
13874
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13875
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13876
  ;;
 
13877
 
 
13878
rdos*)
 
13879
  dynamic_linker=no
 
13880
  ;;
 
13881
 
 
13882
solaris*)
 
13883
  version_type=linux
 
13884
  need_lib_prefix=no
 
13885
  need_version=no
 
13886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13887
  soname_spec='${libname}${release}${shared_ext}$major'
 
13888
  shlibpath_var=LD_LIBRARY_PATH
 
13889
  shlibpath_overrides_runpath=yes
 
13890
  hardcode_into_libs=yes
 
13891
  # ldd complains unless libraries are executable
 
13892
  postinstall_cmds='chmod +x $lib'
 
13893
  ;;
 
13894
 
 
13895
sunos4*)
 
13896
  version_type=sunos
 
13897
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13898
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13899
  shlibpath_var=LD_LIBRARY_PATH
 
13900
  shlibpath_overrides_runpath=yes
 
13901
  if test "$with_gnu_ld" = yes; then
 
13902
    need_lib_prefix=no
 
13903
  fi
 
13904
  need_version=yes
 
13905
  ;;
 
13906
 
 
13907
sysv4 | sysv4.3*)
 
13908
  version_type=linux
 
13909
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13910
  soname_spec='${libname}${release}${shared_ext}$major'
 
13911
  shlibpath_var=LD_LIBRARY_PATH
 
13912
  case $host_vendor in
 
13913
    sni)
 
13914
      shlibpath_overrides_runpath=no
 
13915
      need_lib_prefix=no
 
13916
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13917
      runpath_var=LD_RUN_PATH
 
13918
      ;;
 
13919
    siemens)
 
13920
      need_lib_prefix=no
 
13921
      ;;
 
13922
    motorola)
 
13923
      need_lib_prefix=no
 
13924
      need_version=no
 
13925
      shlibpath_overrides_runpath=no
 
13926
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13927
      ;;
 
13928
  esac
 
13929
  ;;
 
13930
 
 
13931
sysv4*MP*)
 
13932
  if test -d /usr/nec ;then
 
13933
    version_type=linux
 
13934
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13935
    soname_spec='$libname${shared_ext}.$major'
 
13936
    shlibpath_var=LD_LIBRARY_PATH
 
13937
  fi
 
13938
  ;;
 
13939
 
 
13940
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13941
  version_type=freebsd-elf
 
13942
  need_lib_prefix=no
 
13943
  need_version=no
 
13944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13945
  soname_spec='${libname}${release}${shared_ext}$major'
 
13946
  shlibpath_var=LD_LIBRARY_PATH
 
13947
  hardcode_into_libs=yes
 
13948
  if test "$with_gnu_ld" = yes; then
 
13949
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13950
    shlibpath_overrides_runpath=no
 
13951
  else
 
13952
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13953
    shlibpath_overrides_runpath=yes
 
13954
    case $host_os in
 
13955
      sco3.2v5*)
 
13956
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13957
        ;;
 
13958
    esac
 
13959
  fi
 
13960
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13961
  ;;
 
13962
 
 
13963
uts4*)
 
13964
  version_type=linux
 
13965
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13966
  soname_spec='${libname}${release}${shared_ext}$major'
 
13967
  shlibpath_var=LD_LIBRARY_PATH
 
13968
  ;;
 
13969
 
 
13970
*)
 
13971
  dynamic_linker=no
 
13972
  ;;
 
13973
esac
 
13974
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13975
$as_echo "$dynamic_linker" >&6; }
 
13976
test "$dynamic_linker" = no && can_build_shared=no
 
13977
 
 
13978
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13979
  $as_echo_n "(cached) " >&6
 
13980
else
 
13981
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13982
fi
 
13983
 
 
13984
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13985
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13986
  $as_echo_n "(cached) " >&6
 
13987
else
 
13988
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13989
fi
 
13990
 
 
13991
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13992
 
 
13993
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13994
if test "$GCC" = yes; then
 
13995
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13996
fi
 
13997
 
 
13998
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13999
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14000
hardcode_action_CXX=
 
14001
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14002
   test -n "$runpath_var_CXX" || \
 
14003
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14004
 
 
14005
  # We can hardcode non-existant directories.
 
14006
  if test "$hardcode_direct_CXX" != no &&
 
14007
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14008
     # have to relink, otherwise we might link with an installed library
 
14009
     # when we should be linking with a yet-to-be-installed one
 
14010
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14011
     test "$hardcode_minus_L_CXX" != no; then
 
14012
    # Linking always hardcodes the temporary library directory.
 
14013
    hardcode_action_CXX=relink
 
14014
  else
 
14015
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14016
    hardcode_action_CXX=immediate
 
14017
  fi
 
14018
else
 
14019
  # We cannot hardcode anything, or else we can only hardcode existing
 
14020
  # directories.
 
14021
  hardcode_action_CXX=unsupported
 
14022
fi
 
14023
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14024
$as_echo "$hardcode_action_CXX" >&6; }
 
14025
 
 
14026
if test "$hardcode_action_CXX" = relink; then
 
14027
  # Fast installation is not supported
 
14028
  enable_fast_install=no
 
14029
elif test "$shlibpath_overrides_runpath" = yes ||
 
14030
     test "$enable_shared" = no; then
 
14031
  # Fast installation is not necessary
 
14032
  enable_fast_install=needless
 
14033
fi
 
14034
 
 
14035
 
 
14036
# The else clause should only fire when bootstrapping the
 
14037
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14038
# with your package, and you will get complaints that there are
 
14039
# no rules to generate ltmain.sh.
 
14040
if test -f "$ltmain"; then
 
14041
  # See if we are running on zsh, and set the options which allow our commands through
 
14042
  # without removal of \ escapes.
 
14043
  if test -n "${ZSH_VERSION+set}" ; then
 
14044
    setopt NO_GLOB_SUBST
 
14045
  fi
 
14046
  # Now quote all the things that may contain metacharacters while being
 
14047
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14048
  # variables and quote the copies for generation of the libtool script.
 
14049
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14050
    SED SHELL STRIP \
 
14051
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14052
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14053
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14054
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14055
    lt_cv_sys_global_symbol_to_c_name_address \
 
14056
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14057
    old_postinstall_cmds old_postuninstall_cmds \
 
14058
    compiler_CXX \
 
14059
    CC_CXX \
 
14060
    LD_CXX \
 
14061
    lt_prog_compiler_wl_CXX \
 
14062
    lt_prog_compiler_pic_CXX \
 
14063
    lt_prog_compiler_static_CXX \
 
14064
    lt_prog_compiler_no_builtin_flag_CXX \
 
14065
    export_dynamic_flag_spec_CXX \
 
14066
    thread_safe_flag_spec_CXX \
 
14067
    whole_archive_flag_spec_CXX \
 
14068
    enable_shared_with_static_runtimes_CXX \
 
14069
    old_archive_cmds_CXX \
 
14070
    old_archive_from_new_cmds_CXX \
 
14071
    predep_objects_CXX \
 
14072
    postdep_objects_CXX \
 
14073
    predeps_CXX \
 
14074
    postdeps_CXX \
 
14075
    compiler_lib_search_path_CXX \
 
14076
    compiler_lib_search_dirs_CXX \
 
14077
    archive_cmds_CXX \
 
14078
    archive_expsym_cmds_CXX \
 
14079
    postinstall_cmds_CXX \
 
14080
    postuninstall_cmds_CXX \
 
14081
    old_archive_from_expsyms_cmds_CXX \
 
14082
    allow_undefined_flag_CXX \
 
14083
    no_undefined_flag_CXX \
 
14084
    export_symbols_cmds_CXX \
 
14085
    hardcode_libdir_flag_spec_CXX \
 
14086
    hardcode_libdir_flag_spec_ld_CXX \
 
14087
    hardcode_libdir_separator_CXX \
 
14088
    hardcode_automatic_CXX \
 
14089
    module_cmds_CXX \
 
14090
    module_expsym_cmds_CXX \
 
14091
    lt_cv_prog_compiler_c_o_CXX \
 
14092
    fix_srcfile_path_CXX \
 
14093
    exclude_expsyms_CXX \
 
14094
    include_expsyms_CXX; do
 
14095
 
 
14096
    case $var in
 
14097
    old_archive_cmds_CXX | \
 
14098
    old_archive_from_new_cmds_CXX | \
 
14099
    archive_cmds_CXX | \
 
14100
    archive_expsym_cmds_CXX | \
 
14101
    module_cmds_CXX | \
 
14102
    module_expsym_cmds_CXX | \
 
14103
    old_archive_from_expsyms_cmds_CXX | \
 
14104
    export_symbols_cmds_CXX | \
 
14105
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14106
    postinstall_cmds | postuninstall_cmds | \
 
14107
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14108
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14109
      # Double-quote double-evaled strings.
 
14110
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14111
      ;;
 
14112
    *)
 
14113
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14114
      ;;
 
14115
    esac
 
14116
  done
 
14117
 
 
14118
  case $lt_echo in
 
14119
  *'\$0 --fallback-echo"')
 
14120
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14121
    ;;
 
14122
  esac
 
14123
 
 
14124
cfgfile="$ofile"
 
14125
 
 
14126
  cat <<__EOF__ >> "$cfgfile"
 
14127
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14128
 
 
14129
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14130
 
 
14131
# Shell to use when invoking shell scripts.
 
14132
SHELL=$lt_SHELL
 
14133
 
 
14134
# Whether or not to build shared libraries.
 
14135
build_libtool_libs=$enable_shared
 
14136
 
 
14137
# Whether or not to build static libraries.
 
14138
build_old_libs=$enable_static
 
14139
 
 
14140
# Whether or not to add -lc for building shared libraries.
 
14141
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14142
 
 
14143
# Whether or not to disallow shared libs when runtime libs are static
 
14144
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14145
 
 
14146
# Whether or not to optimize for fast installation.
 
14147
fast_install=$enable_fast_install
 
14148
 
 
14149
# The host system.
 
14150
host_alias=$host_alias
 
14151
host=$host
 
14152
host_os=$host_os
 
14153
 
 
14154
# The build system.
 
14155
build_alias=$build_alias
 
14156
build=$build
 
14157
build_os=$build_os
 
14158
 
 
14159
# An echo program that does not interpret backslashes.
 
14160
echo=$lt_echo
 
14161
 
 
14162
# The archiver.
 
14163
AR=$lt_AR
 
14164
AR_FLAGS=$lt_AR_FLAGS
 
14165
 
 
14166
# A C compiler.
 
14167
LTCC=$lt_LTCC
 
14168
 
 
14169
# LTCC compiler flags.
 
14170
LTCFLAGS=$lt_LTCFLAGS
 
14171
 
 
14172
# A language-specific compiler.
 
14173
CC=$lt_compiler_CXX
 
14174
 
 
14175
# Is the compiler the GNU C compiler?
 
14176
with_gcc=$GCC_CXX
 
14177
 
 
14178
# An ERE matcher.
 
14179
EGREP=$lt_EGREP
 
14180
 
 
14181
# The linker used to build libraries.
 
14182
LD=$lt_LD_CXX
 
14183
 
 
14184
# Whether we need hard or soft links.
 
14185
LN_S=$lt_LN_S
 
14186
 
 
14187
# A BSD-compatible nm program.
 
14188
NM=$lt_NM
 
14189
 
 
14190
# A symbol stripping program
 
14191
STRIP=$lt_STRIP
 
14192
 
 
14193
# Used to examine libraries when file_magic_cmd begins "file"
 
14194
MAGIC_CMD=$MAGIC_CMD
 
14195
 
 
14196
# Used on cygwin: DLL creation program.
 
14197
DLLTOOL="$DLLTOOL"
 
14198
 
 
14199
# Used on cygwin: object dumper.
 
14200
OBJDUMP="$OBJDUMP"
 
14201
 
 
14202
# Used on cygwin: assembler.
 
14203
AS="$AS"
 
14204
 
 
14205
# The name of the directory that contains temporary libtool files.
 
14206
objdir=$objdir
 
14207
 
 
14208
# How to create reloadable object files.
 
14209
reload_flag=$lt_reload_flag
 
14210
reload_cmds=$lt_reload_cmds
 
14211
 
 
14212
# How to pass a linker flag through the compiler.
 
14213
wl=$lt_lt_prog_compiler_wl_CXX
 
14214
 
 
14215
# Object file suffix (normally "o").
 
14216
objext="$ac_objext"
 
14217
 
 
14218
# Old archive suffix (normally "a").
 
14219
libext="$libext"
 
14220
 
 
14221
# Shared library suffix (normally ".so").
 
14222
shrext_cmds='$shrext_cmds'
 
14223
 
 
14224
# Executable file suffix (normally "").
 
14225
exeext="$exeext"
 
14226
 
 
14227
# Additional compiler flags for building library objects.
 
14228
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14229
pic_mode=$pic_mode
 
14230
 
 
14231
# What is the maximum length of a command?
 
14232
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14233
 
 
14234
# Does compiler simultaneously support -c and -o options?
 
14235
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14236
 
 
14237
# Must we lock files when doing compilation?
 
14238
need_locks=$lt_need_locks
 
14239
 
 
14240
# Do we need the lib prefix for modules?
 
14241
need_lib_prefix=$need_lib_prefix
 
14242
 
 
14243
# Do we need a version for libraries?
 
14244
need_version=$need_version
 
14245
 
 
14246
# Whether dlopen is supported.
 
14247
dlopen_support=$enable_dlopen
 
14248
 
 
14249
# Whether dlopen of programs is supported.
 
14250
dlopen_self=$enable_dlopen_self
 
14251
 
 
14252
# Whether dlopen of statically linked programs is supported.
 
14253
dlopen_self_static=$enable_dlopen_self_static
 
14254
 
 
14255
# Compiler flag to prevent dynamic linking.
 
14256
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14257
 
 
14258
# Compiler flag to turn off builtin functions.
 
14259
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14260
 
 
14261
# Compiler flag to allow reflexive dlopens.
 
14262
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14263
 
 
14264
# Compiler flag to generate shared objects directly from archives.
 
14265
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14266
 
 
14267
# Compiler flag to generate thread-safe objects.
 
14268
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14269
 
 
14270
# Library versioning type.
 
14271
version_type=$version_type
 
14272
 
 
14273
# Format of library name prefix.
 
14274
libname_spec=$lt_libname_spec
 
14275
 
 
14276
# List of archive names.  First name is the real one, the rest are links.
 
14277
# The last name is the one that the linker finds with -lNAME.
 
14278
library_names_spec=$lt_library_names_spec
 
14279
 
 
14280
# The coded name of the library, if different from the real name.
 
14281
soname_spec=$lt_soname_spec
 
14282
 
 
14283
# Commands used to build and install an old-style archive.
 
14284
RANLIB=$lt_RANLIB
 
14285
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14286
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14287
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14288
 
 
14289
# Create an old-style archive from a shared archive.
 
14290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14291
 
 
14292
# Create a temporary old-style archive to link instead of a shared archive.
 
14293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14294
 
 
14295
# Commands used to build and install a shared archive.
 
14296
archive_cmds=$lt_archive_cmds_CXX
 
14297
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14298
postinstall_cmds=$lt_postinstall_cmds
 
14299
postuninstall_cmds=$lt_postuninstall_cmds
 
14300
 
 
14301
# Commands used to build a loadable module (assumed same as above if empty)
 
14302
module_cmds=$lt_module_cmds_CXX
 
14303
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14304
 
 
14305
# Commands to strip libraries.
 
14306
old_striplib=$lt_old_striplib
 
14307
striplib=$lt_striplib
 
14308
 
 
14309
# Dependencies to place before the objects being linked to create a
 
14310
# shared library.
 
14311
predep_objects=$lt_predep_objects_CXX
 
14312
 
 
14313
# Dependencies to place after the objects being linked to create a
 
14314
# shared library.
 
14315
postdep_objects=$lt_postdep_objects_CXX
 
14316
 
 
14317
# Dependencies to place before the objects being linked to create a
 
14318
# shared library.
 
14319
predeps=$lt_predeps_CXX
 
14320
 
 
14321
# Dependencies to place after the objects being linked to create a
 
14322
# shared library.
 
14323
postdeps=$lt_postdeps_CXX
 
14324
 
 
14325
# The directories searched by this compiler when creating a shared
 
14326
# library
 
14327
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14328
 
 
14329
# The library search path used internally by the compiler when linking
 
14330
# a shared library.
 
14331
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14332
 
 
14333
# Method to check whether dependent libraries are shared objects.
 
14334
deplibs_check_method=$lt_deplibs_check_method
 
14335
 
 
14336
# Command to use when deplibs_check_method == file_magic.
 
14337
file_magic_cmd=$lt_file_magic_cmd
 
14338
 
 
14339
# Flag that allows shared libraries with undefined symbols to be built.
 
14340
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14341
 
 
14342
# Flag that forces no undefined symbols.
 
14343
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14344
 
 
14345
# Commands used to finish a libtool library installation in a directory.
 
14346
finish_cmds=$lt_finish_cmds
 
14347
 
 
14348
# Same as above, but a single script fragment to be evaled but not shown.
 
14349
finish_eval=$lt_finish_eval
 
14350
 
 
14351
# Take the output of nm and produce a listing of raw symbols and C names.
 
14352
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14353
 
 
14354
# Transform the output of nm in a proper C declaration
 
14355
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14356
 
 
14357
# Transform the output of nm in a C name address pair
 
14358
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14359
 
 
14360
# This is the shared library runtime path variable.
 
14361
runpath_var=$runpath_var
 
14362
 
 
14363
# This is the shared library path variable.
 
14364
shlibpath_var=$shlibpath_var
 
14365
 
 
14366
# Is shlibpath searched before the hard-coded library search path?
 
14367
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14368
 
 
14369
# How to hardcode a shared library path into an executable.
 
14370
hardcode_action=$hardcode_action_CXX
 
14371
 
 
14372
# Whether we should hardcode library paths into libraries.
 
14373
hardcode_into_libs=$hardcode_into_libs
 
14374
 
 
14375
# Flag to hardcode \$libdir into a binary during linking.
 
14376
# This must work even if \$libdir does not exist.
 
14377
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14378
 
 
14379
# If ld is used when linking, flag to hardcode \$libdir into
 
14380
# a binary during linking. This must work even if \$libdir does
 
14381
# not exist.
 
14382
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14383
 
 
14384
# Whether we need a single -rpath flag with a separated argument.
 
14385
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14386
 
 
14387
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14388
# resulting binary.
 
14389
hardcode_direct=$hardcode_direct_CXX
 
14390
 
 
14391
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14392
# resulting binary.
 
14393
hardcode_minus_L=$hardcode_minus_L_CXX
 
14394
 
 
14395
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14396
# the resulting binary.
 
14397
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14398
 
 
14399
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14400
# and all subsequent libraries and executables linked against it.
 
14401
hardcode_automatic=$hardcode_automatic_CXX
 
14402
 
 
14403
# Variables whose values should be saved in libtool wrapper scripts and
 
14404
# restored at relink time.
 
14405
variables_saved_for_relink="$variables_saved_for_relink"
 
14406
 
 
14407
# Whether libtool must link a program against all its dependency libraries.
 
14408
link_all_deplibs=$link_all_deplibs_CXX
 
14409
 
 
14410
# Compile-time system search path for libraries
 
14411
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14412
 
 
14413
# Run-time system search path for libraries
 
14414
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14415
 
 
14416
# Fix the shell variable \$srcfile for the compiler.
 
14417
fix_srcfile_path=$lt_fix_srcfile_path
 
14418
 
 
14419
# Set to yes if exported symbols are required.
 
14420
always_export_symbols=$always_export_symbols_CXX
 
14421
 
 
14422
# The commands to list exported symbols.
 
14423
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14424
 
 
14425
# The commands to extract the exported symbol list from a shared archive.
 
14426
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14427
 
 
14428
# Symbols that should not be listed in the preloaded symbols.
 
14429
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14430
 
 
14431
# Symbols that must always be exported.
 
14432
include_expsyms=$lt_include_expsyms_CXX
 
14433
 
 
14434
# ### END LIBTOOL TAG CONFIG: $tagname
 
14435
 
 
14436
__EOF__
 
14437
 
 
14438
 
 
14439
else
 
14440
  # If there is no Makefile yet, we rely on a make rule to execute
 
14441
  # `config.status --recheck' to rerun these tests and create the
 
14442
  # libtool script then.
 
14443
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14444
  if test -f "$ltmain_in"; then
 
14445
    test -f Makefile && make "$ltmain"
 
14446
  fi
 
14447
fi
 
14448
 
 
14449
 
 
14450
ac_ext=c
 
14451
ac_cpp='$CPP $CPPFLAGS'
 
14452
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14453
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14454
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14455
 
 
14456
CC=$lt_save_CC
 
14457
LDCXX=$LD
 
14458
LD=$lt_save_LD
 
14459
GCC=$lt_save_GCC
 
14460
with_gnu_ldcxx=$with_gnu_ld
 
14461
with_gnu_ld=$lt_save_with_gnu_ld
 
14462
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14463
lt_cv_path_LD=$lt_save_path_LD
 
14464
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14465
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14466
 
 
14467
        else
 
14468
          tagname=""
 
14469
        fi
 
14470
        ;;
 
14471
 
 
14472
      F77)
 
14473
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14474
 
 
14475
ac_ext=f
 
14476
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14477
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14478
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14479
 
 
14480
 
 
14481
archive_cmds_need_lc_F77=no
 
14482
allow_undefined_flag_F77=
 
14483
always_export_symbols_F77=no
 
14484
archive_expsym_cmds_F77=
 
14485
export_dynamic_flag_spec_F77=
 
14486
hardcode_direct_F77=no
 
14487
hardcode_libdir_flag_spec_F77=
 
14488
hardcode_libdir_flag_spec_ld_F77=
 
14489
hardcode_libdir_separator_F77=
 
14490
hardcode_minus_L_F77=no
 
14491
hardcode_automatic_F77=no
 
14492
module_cmds_F77=
 
14493
module_expsym_cmds_F77=
 
14494
link_all_deplibs_F77=unknown
 
14495
old_archive_cmds_F77=$old_archive_cmds
 
14496
no_undefined_flag_F77=
 
14497
whole_archive_flag_spec_F77=
 
14498
enable_shared_with_static_runtimes_F77=no
 
14499
 
 
14500
# Source file extension for f77 test sources.
 
14501
ac_ext=f
 
14502
 
 
14503
# Object file extension for compiled f77 test sources.
 
14504
objext=o
 
14505
objext_F77=$objext
 
14506
 
 
14507
# Code to be used in simple compile tests
 
14508
lt_simple_compile_test_code="\
 
14509
      subroutine t
 
14510
      return
 
14511
      end
 
14512
"
 
14513
 
 
14514
# Code to be used in simple link tests
 
14515
lt_simple_link_test_code="\
 
14516
      program t
 
14517
      end
 
14518
"
 
14519
 
 
14520
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14521
 
 
14522
# If no C compiler was specified, use CC.
 
14523
LTCC=${LTCC-"$CC"}
 
14524
 
 
14525
# If no C compiler flags were specified, use CFLAGS.
 
14526
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14527
 
 
14528
# Allow CC to be a program name with arguments.
 
14529
compiler=$CC
 
14530
 
 
14531
 
 
14532
# save warnings/boilerplate of simple test code
 
14533
ac_outfile=conftest.$ac_objext
 
14534
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14535
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14536
_lt_compiler_boilerplate=`cat conftest.err`
 
14537
$rm conftest*
 
14538
 
 
14539
ac_outfile=conftest.$ac_objext
 
14540
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14541
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14542
_lt_linker_boilerplate=`cat conftest.err`
 
14543
$rm -r conftest*
 
14544
 
 
14545
 
 
14546
# Allow CC to be a program name with arguments.
 
14547
lt_save_CC="$CC"
 
14548
CC=${F77-"f77"}
 
14549
compiler=$CC
 
14550
compiler_F77=$CC
 
14551
for cc_temp in $compiler""; do
 
14552
  case $cc_temp in
 
14553
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14554
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14555
    \-*) ;;
 
14556
    *) break;;
 
14557
  esac
 
14558
done
 
14559
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14560
 
 
14561
 
 
14562
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14563
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14564
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14565
$as_echo "$can_build_shared" >&6; }
 
14566
 
 
14567
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14568
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14569
test "$can_build_shared" = "no" && enable_shared=no
 
14570
 
 
14571
# On AIX, shared libraries and static libraries use the same namespace, and
 
14572
# are all built from PIC.
 
14573
case $host_os in
 
14574
aix3*)
 
14575
  test "$enable_shared" = yes && enable_static=no
 
14576
  if test -n "$RANLIB"; then
 
14577
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14578
    postinstall_cmds='$RANLIB $lib'
 
14579
  fi
 
14580
  ;;
 
14581
aix[4-9]*)
 
14582
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14583
    test "$enable_shared" = yes && enable_static=no
 
14584
  fi
 
14585
  ;;
 
14586
esac
 
14587
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14588
$as_echo "$enable_shared" >&6; }
 
14589
 
 
14590
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14591
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14592
# Make sure either enable_shared or enable_static is yes.
 
14593
test "$enable_shared" = yes || enable_static=yes
 
14594
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14595
$as_echo "$enable_static" >&6; }
 
14596
 
 
14597
GCC_F77="$G77"
 
14598
LD_F77="$LD"
 
14599
 
 
14600
lt_prog_compiler_wl_F77=
 
14601
lt_prog_compiler_pic_F77=
 
14602
lt_prog_compiler_static_F77=
 
14603
 
 
14604
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14605
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14606
 
 
14607
  if test "$GCC" = yes; then
 
14608
    lt_prog_compiler_wl_F77='-Wl,'
 
14609
    lt_prog_compiler_static_F77='-static'
 
14610
 
 
14611
    case $host_os in
 
14612
      aix*)
 
14613
      # All AIX code is PIC.
 
14614
      if test "$host_cpu" = ia64; then
 
14615
        # AIX 5 now supports IA64 processor
 
14616
        lt_prog_compiler_static_F77='-Bstatic'
 
14617
      fi
 
14618
      ;;
 
14619
 
 
14620
    amigaos*)
 
14621
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14622
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14623
      # like `-m68040'.
 
14624
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14625
      ;;
 
14626
 
 
14627
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14628
      # PIC is the default for these OSes.
 
14629
      ;;
 
14630
 
 
14631
    mingw* | cygwin* | pw32* | os2*)
 
14632
      # This hack is so that the source file can tell whether it is being
 
14633
      # built for inclusion in a dll (and should export symbols for example).
 
14634
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14635
      # (--disable-auto-import) libraries
 
14636
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14637
      ;;
 
14638
 
 
14639
    darwin* | rhapsody*)
 
14640
      # PIC is the default on this platform
 
14641
      # Common symbols not allowed in MH_DYLIB files
 
14642
      lt_prog_compiler_pic_F77='-fno-common'
 
14643
      ;;
 
14644
 
 
14645
    interix[3-9]*)
 
14646
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14647
      # Instead, we relocate shared libraries at runtime.
 
14648
      ;;
 
14649
 
 
14650
    msdosdjgpp*)
 
14651
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14652
      # on systems that don't support them.
 
14653
      lt_prog_compiler_can_build_shared_F77=no
 
14654
      enable_shared=no
 
14655
      ;;
 
14656
 
 
14657
    sysv4*MP*)
 
14658
      if test -d /usr/nec; then
 
14659
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14660
      fi
 
14661
      ;;
 
14662
 
 
14663
    hpux*)
 
14664
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14665
      # not for PA HP-UX.
 
14666
      case $host_cpu in
 
14667
      hppa*64*|ia64*)
 
14668
        # +Z the default
 
14669
        ;;
 
14670
      *)
 
14671
        lt_prog_compiler_pic_F77='-fPIC'
 
14672
        ;;
 
14673
      esac
 
14674
      ;;
 
14675
 
 
14676
    *)
 
14677
      lt_prog_compiler_pic_F77='-fPIC'
 
14678
      ;;
 
14679
    esac
 
14680
  else
 
14681
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14682
    case $host_os in
 
14683
    aix*)
 
14684
      lt_prog_compiler_wl_F77='-Wl,'
 
14685
      if test "$host_cpu" = ia64; then
 
14686
        # AIX 5 now supports IA64 processor
 
14687
        lt_prog_compiler_static_F77='-Bstatic'
 
14688
      else
 
14689
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14690
      fi
 
14691
      ;;
 
14692
      darwin*)
 
14693
        # PIC is the default on this platform
 
14694
        # Common symbols not allowed in MH_DYLIB files
 
14695
       case $cc_basename in
 
14696
         xlc*)
 
14697
         lt_prog_compiler_pic_F77='-qnocommon'
 
14698
         lt_prog_compiler_wl_F77='-Wl,'
 
14699
         ;;
 
14700
       esac
 
14701
       ;;
 
14702
 
 
14703
    mingw* | cygwin* | pw32* | os2*)
 
14704
      # This hack is so that the source file can tell whether it is being
 
14705
      # built for inclusion in a dll (and should export symbols for example).
 
14706
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14707
      ;;
 
14708
 
 
14709
    hpux9* | hpux10* | hpux11*)
 
14710
      lt_prog_compiler_wl_F77='-Wl,'
 
14711
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14712
      # not for PA HP-UX.
 
14713
      case $host_cpu in
 
14714
      hppa*64*|ia64*)
 
14715
        # +Z the default
 
14716
        ;;
 
14717
      *)
 
14718
        lt_prog_compiler_pic_F77='+Z'
 
14719
        ;;
 
14720
      esac
 
14721
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14722
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14723
      ;;
 
14724
 
 
14725
    irix5* | irix6* | nonstopux*)
 
14726
      lt_prog_compiler_wl_F77='-Wl,'
 
14727
      # PIC (with -KPIC) is the default.
 
14728
      lt_prog_compiler_static_F77='-non_shared'
 
14729
      ;;
 
14730
 
 
14731
    newsos6)
 
14732
      lt_prog_compiler_pic_F77='-KPIC'
 
14733
      lt_prog_compiler_static_F77='-Bstatic'
 
14734
      ;;
 
14735
 
 
14736
    linux* | k*bsd*-gnu)
 
14737
      case $cc_basename in
 
14738
      icc* | ecc*)
 
14739
        lt_prog_compiler_wl_F77='-Wl,'
 
14740
        lt_prog_compiler_pic_F77='-KPIC'
 
14741
        lt_prog_compiler_static_F77='-static'
 
14742
        ;;
 
14743
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14744
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14745
        # which looks to be a dead project)
 
14746
        lt_prog_compiler_wl_F77='-Wl,'
 
14747
        lt_prog_compiler_pic_F77='-fpic'
 
14748
        lt_prog_compiler_static_F77='-Bstatic'
 
14749
        ;;
 
14750
      ccc*)
 
14751
        lt_prog_compiler_wl_F77='-Wl,'
 
14752
        # All Alpha code is PIC.
 
14753
        lt_prog_compiler_static_F77='-non_shared'
 
14754
        ;;
 
14755
      *)
 
14756
        case `$CC -V 2>&1 | sed 5q` in
 
14757
        *Sun\ C*)
 
14758
          # Sun C 5.9
 
14759
          lt_prog_compiler_pic_F77='-KPIC'
 
14760
          lt_prog_compiler_static_F77='-Bstatic'
 
14761
          lt_prog_compiler_wl_F77='-Wl,'
 
14762
          ;;
 
14763
        *Sun\ F*)
 
14764
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14765
          lt_prog_compiler_pic_F77='-KPIC'
 
14766
          lt_prog_compiler_static_F77='-Bstatic'
 
14767
          lt_prog_compiler_wl_F77=''
 
14768
          ;;
 
14769
        esac
 
14770
        ;;
 
14771
      esac
 
14772
      ;;
 
14773
 
 
14774
    osf3* | osf4* | osf5*)
 
14775
      lt_prog_compiler_wl_F77='-Wl,'
 
14776
      # All OSF/1 code is PIC.
 
14777
      lt_prog_compiler_static_F77='-non_shared'
 
14778
      ;;
 
14779
 
 
14780
    rdos*)
 
14781
      lt_prog_compiler_static_F77='-non_shared'
 
14782
      ;;
 
14783
 
 
14784
    solaris*)
 
14785
      lt_prog_compiler_pic_F77='-KPIC'
 
14786
      lt_prog_compiler_static_F77='-Bstatic'
 
14787
      case $cc_basename in
 
14788
      f77* | f90* | f95*)
 
14789
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14790
      *)
 
14791
        lt_prog_compiler_wl_F77='-Wl,';;
 
14792
      esac
 
14793
      ;;
 
14794
 
 
14795
    sunos4*)
 
14796
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14797
      lt_prog_compiler_pic_F77='-PIC'
 
14798
      lt_prog_compiler_static_F77='-Bstatic'
 
14799
      ;;
 
14800
 
 
14801
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14802
      lt_prog_compiler_wl_F77='-Wl,'
 
14803
      lt_prog_compiler_pic_F77='-KPIC'
 
14804
      lt_prog_compiler_static_F77='-Bstatic'
 
14805
      ;;
 
14806
 
 
14807
    sysv4*MP*)
 
14808
      if test -d /usr/nec ;then
 
14809
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14810
        lt_prog_compiler_static_F77='-Bstatic'
 
14811
      fi
 
14812
      ;;
 
14813
 
 
14814
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14815
      lt_prog_compiler_wl_F77='-Wl,'
 
14816
      lt_prog_compiler_pic_F77='-KPIC'
 
14817
      lt_prog_compiler_static_F77='-Bstatic'
 
14818
      ;;
 
14819
 
 
14820
    unicos*)
 
14821
      lt_prog_compiler_wl_F77='-Wl,'
 
14822
      lt_prog_compiler_can_build_shared_F77=no
 
14823
      ;;
 
14824
 
 
14825
    uts4*)
 
14826
      lt_prog_compiler_pic_F77='-pic'
 
14827
      lt_prog_compiler_static_F77='-Bstatic'
 
14828
      ;;
 
14829
 
 
14830
    *)
 
14831
      lt_prog_compiler_can_build_shared_F77=no
 
14832
      ;;
 
14833
    esac
 
14834
  fi
 
14835
 
 
14836
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14837
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14838
 
 
14839
#
 
14840
# Check to make sure the PIC flag actually works.
 
14841
#
 
14842
if test -n "$lt_prog_compiler_pic_F77"; then
 
14843
 
 
14844
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14845
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14846
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14847
  $as_echo_n "(cached) " >&6
 
14848
else
 
14849
  lt_cv_prog_compiler_pic_works_F77=no
 
14850
  ac_outfile=conftest.$ac_objext
 
14851
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14852
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14853
   # Insert the option either (1) after the last *FLAGS variable, or
 
14854
   # (2) before a word containing "conftest.", or (3) at the end.
 
14855
   # Note that $ac_compile itself does not contain backslashes and begins
 
14856
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14857
   # The option is referenced via a variable to avoid confusing sed.
 
14858
   lt_compile=`echo "$ac_compile" | $SED \
 
14859
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14860
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14861
   -e 's:$: $lt_compiler_flag:'`
 
14862
   (eval echo "\"\$as_me:14862: $lt_compile\"" >&5)
 
14863
   (eval "$lt_compile" 2>conftest.err)
 
14864
   ac_status=$?
 
14865
   cat conftest.err >&5
 
14866
   echo "$as_me:14866: \$? = $ac_status" >&5
 
14867
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14868
     # The compiler can only warn and ignore the option if not recognized
 
14869
     # So say no if there are warnings other than the usual output.
 
14870
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14871
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14872
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14873
       lt_cv_prog_compiler_pic_works_F77=yes
 
14874
     fi
 
14875
   fi
 
14876
   $rm conftest*
 
14877
 
 
14878
fi
 
14879
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14880
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14881
 
 
14882
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14883
    case $lt_prog_compiler_pic_F77 in
 
14884
     "" | " "*) ;;
 
14885
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14886
     esac
 
14887
else
 
14888
    lt_prog_compiler_pic_F77=
 
14889
     lt_prog_compiler_can_build_shared_F77=no
 
14890
fi
 
14891
 
 
14892
fi
 
14893
case $host_os in
 
14894
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14895
  *djgpp*)
 
14896
    lt_prog_compiler_pic_F77=
 
14897
    ;;
 
14898
  *)
 
14899
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14900
    ;;
 
14901
esac
 
14902
 
 
14903
#
 
14904
# Check to make sure the static flag actually works.
 
14905
#
 
14906
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14907
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14908
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14909
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14910
  $as_echo_n "(cached) " >&6
 
14911
else
 
14912
  lt_cv_prog_compiler_static_works_F77=no
 
14913
   save_LDFLAGS="$LDFLAGS"
 
14914
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14915
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14916
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14917
     # The linker can only warn and ignore the option if not recognized
 
14918
     # So say no if there are warnings
 
14919
     if test -s conftest.err; then
 
14920
       # Append any errors to the config.log.
 
14921
       cat conftest.err 1>&5
 
14922
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14923
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14924
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14925
         lt_cv_prog_compiler_static_works_F77=yes
 
14926
       fi
 
14927
     else
 
14928
       lt_cv_prog_compiler_static_works_F77=yes
 
14929
     fi
 
14930
   fi
 
14931
   $rm -r conftest*
 
14932
   LDFLAGS="$save_LDFLAGS"
 
14933
 
 
14934
fi
 
14935
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14936
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14937
 
 
14938
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14939
    :
 
14940
else
 
14941
    lt_prog_compiler_static_F77=
 
14942
fi
 
14943
 
 
14944
 
 
14945
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14946
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14947
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14948
  $as_echo_n "(cached) " >&6
 
14949
else
 
14950
  lt_cv_prog_compiler_c_o_F77=no
 
14951
   $rm -r conftest 2>/dev/null
 
14952
   mkdir conftest
 
14953
   cd conftest
 
14954
   mkdir out
 
14955
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14956
 
 
14957
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14958
   # Insert the option either (1) after the last *FLAGS variable, or
 
14959
   # (2) before a word containing "conftest.", or (3) at the end.
 
14960
   # Note that $ac_compile itself does not contain backslashes and begins
 
14961
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14962
   lt_compile=`echo "$ac_compile" | $SED \
 
14963
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14964
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14965
   -e 's:$: $lt_compiler_flag:'`
 
14966
   (eval echo "\"\$as_me:14966: $lt_compile\"" >&5)
 
14967
   (eval "$lt_compile" 2>out/conftest.err)
 
14968
   ac_status=$?
 
14969
   cat out/conftest.err >&5
 
14970
   echo "$as_me:14970: \$? = $ac_status" >&5
 
14971
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14972
   then
 
14973
     # The compiler can only warn and ignore the option if not recognized
 
14974
     # So say no if there are warnings
 
14975
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14976
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14977
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14978
       lt_cv_prog_compiler_c_o_F77=yes
 
14979
     fi
 
14980
   fi
 
14981
   chmod u+w . 2>&5
 
14982
   $rm conftest*
 
14983
   # SGI C++ compiler will create directory out/ii_files/ for
 
14984
   # template instantiation
 
14985
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14986
   $rm out/* && rmdir out
 
14987
   cd ..
 
14988
   rmdir conftest
 
14989
   $rm conftest*
 
14990
 
 
14991
fi
 
14992
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14993
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14994
 
 
14995
 
 
14996
hard_links="nottested"
 
14997
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14998
  # do not overwrite the value of need_locks provided by the user
 
14999
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15000
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
15001
  hard_links=yes
 
15002
  $rm conftest*
 
15003
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15004
  touch conftest.a
 
15005
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15006
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15007
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
15008
$as_echo "$hard_links" >&6; }
 
15009
  if test "$hard_links" = no; then
 
15010
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15011
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15012
    need_locks=warn
 
15013
  fi
 
15014
else
 
15015
  need_locks=no
 
15016
fi
 
15017
 
 
15018
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15019
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
15020
 
 
15021
  runpath_var=
 
15022
  allow_undefined_flag_F77=
 
15023
  enable_shared_with_static_runtimes_F77=no
 
15024
  archive_cmds_F77=
 
15025
  archive_expsym_cmds_F77=
 
15026
  old_archive_From_new_cmds_F77=
 
15027
  old_archive_from_expsyms_cmds_F77=
 
15028
  export_dynamic_flag_spec_F77=
 
15029
  whole_archive_flag_spec_F77=
 
15030
  thread_safe_flag_spec_F77=
 
15031
  hardcode_libdir_flag_spec_F77=
 
15032
  hardcode_libdir_flag_spec_ld_F77=
 
15033
  hardcode_libdir_separator_F77=
 
15034
  hardcode_direct_F77=no
 
15035
  hardcode_minus_L_F77=no
 
15036
  hardcode_shlibpath_var_F77=unsupported
 
15037
  link_all_deplibs_F77=unknown
 
15038
  hardcode_automatic_F77=no
 
15039
  module_cmds_F77=
 
15040
  module_expsym_cmds_F77=
 
15041
  always_export_symbols_F77=no
 
15042
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15043
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15044
  # included in the symbol list
 
15045
  include_expsyms_F77=
 
15046
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15047
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15048
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15049
  # as well as any symbol that contains `d'.
 
15050
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15051
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15052
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15053
  # the symbol is explicitly referenced.  Since portable code cannot
 
15054
  # rely on this symbol name, it's probably fine to never include it in
 
15055
  # preloaded symbol tables.
 
15056
  # Exclude shared library initialization/finalization symbols.
 
15057
  extract_expsyms_cmds=
 
15058
  # Just being paranoid about ensuring that cc_basename is set.
 
15059
  for cc_temp in $compiler""; do
 
15060
  case $cc_temp in
 
15061
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15062
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15063
    \-*) ;;
 
15064
    *) break;;
 
15065
  esac
 
15066
done
 
15067
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15068
 
 
15069
  case $host_os in
 
15070
  cygwin* | mingw* | pw32*)
 
15071
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15072
    # When not using gcc, we currently assume that we are using
 
15073
    # Microsoft Visual C++.
 
15074
    if test "$GCC" != yes; then
 
15075
      with_gnu_ld=no
 
15076
    fi
 
15077
    ;;
 
15078
  interix*)
 
15079
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15080
    with_gnu_ld=yes
 
15081
    ;;
 
15082
  openbsd*)
 
15083
    with_gnu_ld=no
 
15084
    ;;
 
15085
  esac
 
15086
 
 
15087
  ld_shlibs_F77=yes
 
15088
  if test "$with_gnu_ld" = yes; then
 
15089
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15090
    wlarc='${wl}'
 
15091
 
 
15092
    # Set some defaults for GNU ld with shared library support. These
 
15093
    # are reset later if shared libraries are not supported. Putting them
 
15094
    # here allows them to be overridden if necessary.
 
15095
    runpath_var=LD_RUN_PATH
 
15096
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15097
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15098
    # ancient GNU ld didn't support --whole-archive et. al.
 
15099
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15100
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15101
      else
 
15102
        whole_archive_flag_spec_F77=
 
15103
    fi
 
15104
    supports_anon_versioning=no
 
15105
    case `$LD -v 2>/dev/null` in
 
15106
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15107
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15108
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15109
      *\ 2.11.*) ;; # other 2.11 versions
 
15110
      *) supports_anon_versioning=yes ;;
 
15111
    esac
 
15112
 
 
15113
    # See if GNU ld supports shared libraries.
 
15114
    case $host_os in
 
15115
    aix[3-9]*)
 
15116
      # On AIX/PPC, the GNU linker is very broken
 
15117
      if test "$host_cpu" != ia64; then
 
15118
        ld_shlibs_F77=no
 
15119
        cat <<EOF 1>&2
 
15120
 
 
15121
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15122
*** to be unable to reliably create shared libraries on AIX.
 
15123
*** Therefore, libtool is disabling shared libraries support.  If you
 
15124
*** really care for shared libraries, you may want to modify your PATH
 
15125
*** so that a non-GNU linker is found, and then restart.
 
15126
 
 
15127
EOF
 
15128
      fi
 
15129
      ;;
 
15130
 
 
15131
    amigaos*)
 
15132
      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)'
 
15133
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15134
      hardcode_minus_L_F77=yes
 
15135
 
 
15136
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15137
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15138
      # to version 4, is to share data among multiple programs linked
 
15139
      # with the same dynamic library.  Since this doesn't match the
 
15140
      # behavior of shared libraries on other platforms, we can't use
 
15141
      # them.
 
15142
      ld_shlibs_F77=no
 
15143
      ;;
 
15144
 
 
15145
    beos*)
 
15146
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15147
        allow_undefined_flag_F77=unsupported
 
15148
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15149
        # support --undefined.  This deserves some investigation.  FIXME
 
15150
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15151
      else
 
15152
        ld_shlibs_F77=no
 
15153
      fi
 
15154
      ;;
 
15155
 
 
15156
    cygwin* | mingw* | pw32*)
 
15157
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15158
      # as there is no search path for DLLs.
 
15159
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15160
      allow_undefined_flag_F77=unsupported
 
15161
      always_export_symbols_F77=no
 
15162
      enable_shared_with_static_runtimes_F77=yes
 
15163
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15164
 
 
15165
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15166
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15167
        # If the export-symbols file already is a .def file (1st line
 
15168
        # is EXPORTS), use it as is; otherwise, prepend...
 
15169
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15170
          cp $export_symbols $output_objdir/$soname.def;
 
15171
        else
 
15172
          echo EXPORTS > $output_objdir/$soname.def;
 
15173
          cat $export_symbols >> $output_objdir/$soname.def;
 
15174
        fi~
 
15175
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15176
      else
 
15177
        ld_shlibs_F77=no
 
15178
      fi
 
15179
      ;;
 
15180
 
 
15181
    interix[3-9]*)
 
15182
      hardcode_direct_F77=no
 
15183
      hardcode_shlibpath_var_F77=no
 
15184
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15185
      export_dynamic_flag_spec_F77='${wl}-E'
 
15186
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15187
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15188
      # default) and relocated if they conflict, which is a slow very memory
 
15189
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15190
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15191
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15192
      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'
 
15193
      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'
 
15194
      ;;
 
15195
 
 
15196
    gnu* | linux* | k*bsd*-gnu)
 
15197
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15198
        tmp_addflag=
 
15199
        case $cc_basename,$host_cpu in
 
15200
        pgcc*)                          # Portland Group C compiler
 
15201
          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'
 
15202
          tmp_addflag=' $pic_flag'
 
15203
          ;;
 
15204
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15205
          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'
 
15206
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15207
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15208
          tmp_addflag=' -i_dynamic' ;;
 
15209
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15210
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15211
        ifc* | ifort*)                  # Intel Fortran compiler
 
15212
          tmp_addflag=' -nofor_main' ;;
 
15213
        esac
 
15214
        case `$CC -V 2>&1 | sed 5q` in
 
15215
        *Sun\ C*)                       # Sun C 5.9
 
15216
          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'
 
15217
          tmp_sharedflag='-G' ;;
 
15218
        *Sun\ F*)                       # Sun Fortran 8.3
 
15219
          tmp_sharedflag='-G' ;;
 
15220
        *)
 
15221
          tmp_sharedflag='-shared' ;;
 
15222
        esac
 
15223
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15224
 
 
15225
        if test $supports_anon_versioning = yes; then
 
15226
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15227
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15228
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15229
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15230
        fi
 
15231
      else
 
15232
        ld_shlibs_F77=no
 
15233
      fi
 
15234
      ;;
 
15235
 
 
15236
    netbsd*)
 
15237
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15238
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15239
        wlarc=
 
15240
      else
 
15241
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15242
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15243
      fi
 
15244
      ;;
 
15245
 
 
15246
    solaris*)
 
15247
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15248
        ld_shlibs_F77=no
 
15249
        cat <<EOF 1>&2
 
15250
 
 
15251
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15252
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15253
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15254
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15255
*** your PATH or compiler configuration so that the native linker is
 
15256
*** used, and then restart.
 
15257
 
 
15258
EOF
 
15259
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15260
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15261
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15262
      else
 
15263
        ld_shlibs_F77=no
 
15264
      fi
 
15265
      ;;
 
15266
 
 
15267
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15268
      case `$LD -v 2>&1` in
 
15269
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15270
        ld_shlibs_F77=no
 
15271
        cat <<_LT_EOF 1>&2
 
15272
 
 
15273
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15274
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15275
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15276
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15277
*** your PATH or compiler configuration so that the native linker is
 
15278
*** used, and then restart.
 
15279
 
 
15280
_LT_EOF
 
15281
        ;;
 
15282
        *)
 
15283
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15284
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15285
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15286
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15287
          else
 
15288
            ld_shlibs_F77=no
 
15289
          fi
 
15290
        ;;
 
15291
      esac
 
15292
      ;;
 
15293
 
 
15294
    sunos4*)
 
15295
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15296
      wlarc=
 
15297
      hardcode_direct_F77=yes
 
15298
      hardcode_shlibpath_var_F77=no
 
15299
      ;;
 
15300
 
 
15301
    *)
 
15302
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15303
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15304
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15305
      else
 
15306
        ld_shlibs_F77=no
 
15307
      fi
 
15308
      ;;
 
15309
    esac
 
15310
 
 
15311
    if test "$ld_shlibs_F77" = no; then
 
15312
      runpath_var=
 
15313
      hardcode_libdir_flag_spec_F77=
 
15314
      export_dynamic_flag_spec_F77=
 
15315
      whole_archive_flag_spec_F77=
 
15316
    fi
 
15317
  else
 
15318
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15319
    case $host_os in
 
15320
    aix3*)
 
15321
      allow_undefined_flag_F77=unsupported
 
15322
      always_export_symbols_F77=yes
 
15323
      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'
 
15324
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15325
      # are no directories specified by -L.
 
15326
      hardcode_minus_L_F77=yes
 
15327
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15328
        # Neither direct hardcoding nor static linking is supported with a
 
15329
        # broken collect2.
 
15330
        hardcode_direct_F77=unsupported
 
15331
      fi
 
15332
      ;;
 
15333
 
 
15334
    aix[4-9]*)
 
15335
      if test "$host_cpu" = ia64; then
 
15336
        # On IA64, the linker does run time linking by default, so we don't
 
15337
        # have to do anything special.
 
15338
        aix_use_runtimelinking=no
 
15339
        exp_sym_flag='-Bexport'
 
15340
        no_entry_flag=""
 
15341
      else
 
15342
        # If we're using GNU nm, then we don't want the "-C" option.
 
15343
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15344
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15345
          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'
 
15346
        else
 
15347
          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'
 
15348
        fi
 
15349
        aix_use_runtimelinking=no
 
15350
 
 
15351
        # Test if we are trying to use run time linking or normal
 
15352
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15353
        # need to do runtime linking.
 
15354
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15355
          for ld_flag in $LDFLAGS; do
 
15356
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15357
            aix_use_runtimelinking=yes
 
15358
            break
 
15359
          fi
 
15360
          done
 
15361
          ;;
 
15362
        esac
 
15363
 
 
15364
        exp_sym_flag='-bexport'
 
15365
        no_entry_flag='-bnoentry'
 
15366
      fi
 
15367
 
 
15368
      # When large executables or shared objects are built, AIX ld can
 
15369
      # have problems creating the table of contents.  If linking a library
 
15370
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15371
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15372
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15373
 
 
15374
      archive_cmds_F77=''
 
15375
      hardcode_direct_F77=yes
 
15376
      hardcode_libdir_separator_F77=':'
 
15377
      link_all_deplibs_F77=yes
 
15378
 
 
15379
      if test "$GCC" = yes; then
 
15380
        case $host_os in aix4.[012]|aix4.[012].*)
 
15381
        # We only want to do this on AIX 4.2 and lower, the check
 
15382
        # below for broken collect2 doesn't work under 4.3+
 
15383
          collect2name=`${CC} -print-prog-name=collect2`
 
15384
          if test -f "$collect2name" && \
 
15385
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15386
          then
 
15387
          # We have reworked collect2
 
15388
          :
 
15389
          else
 
15390
          # We have old collect2
 
15391
          hardcode_direct_F77=unsupported
 
15392
          # It fails to find uninstalled libraries when the uninstalled
 
15393
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15394
          # to unsupported forces relinking
 
15395
          hardcode_minus_L_F77=yes
 
15396
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15397
          hardcode_libdir_separator_F77=
 
15398
          fi
 
15399
          ;;
 
15400
        esac
 
15401
        shared_flag='-shared'
 
15402
        if test "$aix_use_runtimelinking" = yes; then
 
15403
          shared_flag="$shared_flag "'${wl}-G'
 
15404
        fi
 
15405
      else
 
15406
        # not using gcc
 
15407
        if test "$host_cpu" = ia64; then
 
15408
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15409
        # chokes on -Wl,-G. The following line is correct:
 
15410
          shared_flag='-G'
 
15411
        else
 
15412
          if test "$aix_use_runtimelinking" = yes; then
 
15413
            shared_flag='${wl}-G'
 
15414
          else
 
15415
            shared_flag='${wl}-bM:SRE'
 
15416
          fi
 
15417
        fi
 
15418
      fi
 
15419
 
 
15420
      # It seems that -bexpall does not export symbols beginning with
 
15421
      # underscore (_), so it is better to generate a list of symbols to export.
 
15422
      always_export_symbols_F77=yes
 
15423
      if test "$aix_use_runtimelinking" = yes; then
 
15424
        # Warning - without using the other runtime loading flags (-brtl),
 
15425
        # -berok will link without error, but may produce a broken library.
 
15426
        allow_undefined_flag_F77='-berok'
 
15427
       # Determine the default libpath from the value encoded in an empty executable.
 
15428
       cat >conftest.$ac_ext <<_ACEOF
 
15429
      program main
 
15430
 
 
15431
      end
 
15432
_ACEOF
 
15433
rm -f conftest.$ac_objext conftest$ac_exeext
 
15434
if { (ac_try="$ac_link"
 
15435
case "(($ac_try" in
 
15436
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15437
  *) ac_try_echo=$ac_try;;
 
15438
esac
 
15439
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15440
$as_echo "$ac_try_echo") >&5
 
15441
  (eval "$ac_link") 2>conftest.er1
 
15442
  ac_status=$?
 
15443
  grep -v '^ *+' conftest.er1 >conftest.err
 
15444
  rm -f conftest.er1
 
15445
  cat conftest.err >&5
 
15446
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15447
  (exit $ac_status); } && {
 
15448
         test -z "$ac_f77_werror_flag" ||
 
15449
         test ! -s conftest.err
 
15450
       } && test -s conftest$ac_exeext && {
 
15451
         test "$cross_compiling" = yes ||
 
15452
         $as_test_x conftest$ac_exeext
 
15453
       }; then
 
15454
 
 
15455
lt_aix_libpath_sed='
 
15456
    /Import File Strings/,/^$/ {
 
15457
        /^0/ {
 
15458
            s/^0  *\(.*\)$/\1/
 
15459
            p
 
15460
        }
 
15461
    }'
 
15462
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15463
# Check for a 64-bit object if we didn't find anything.
 
15464
if test -z "$aix_libpath"; then
 
15465
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15466
fi
 
15467
else
 
15468
  $as_echo "$as_me: failed program was:" >&5
 
15469
sed 's/^/| /' conftest.$ac_ext >&5
 
15470
 
 
15471
 
 
15472
fi
 
15473
 
 
15474
rm -rf conftest.dSYM
 
15475
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15476
      conftest$ac_exeext conftest.$ac_ext
 
15477
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15478
 
 
15479
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15480
        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"
 
15481
       else
 
15482
        if test "$host_cpu" = ia64; then
 
15483
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15484
          allow_undefined_flag_F77="-z nodefs"
 
15485
          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"
 
15486
        else
 
15487
         # Determine the default libpath from the value encoded in an empty executable.
 
15488
         cat >conftest.$ac_ext <<_ACEOF
 
15489
      program main
 
15490
 
 
15491
      end
 
15492
_ACEOF
 
15493
rm -f conftest.$ac_objext conftest$ac_exeext
 
15494
if { (ac_try="$ac_link"
 
15495
case "(($ac_try" in
 
15496
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15497
  *) ac_try_echo=$ac_try;;
 
15498
esac
 
15499
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15500
$as_echo "$ac_try_echo") >&5
 
15501
  (eval "$ac_link") 2>conftest.er1
 
15502
  ac_status=$?
 
15503
  grep -v '^ *+' conftest.er1 >conftest.err
 
15504
  rm -f conftest.er1
 
15505
  cat conftest.err >&5
 
15506
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15507
  (exit $ac_status); } && {
 
15508
         test -z "$ac_f77_werror_flag" ||
 
15509
         test ! -s conftest.err
 
15510
       } && test -s conftest$ac_exeext && {
 
15511
         test "$cross_compiling" = yes ||
 
15512
         $as_test_x conftest$ac_exeext
 
15513
       }; then
 
15514
 
 
15515
lt_aix_libpath_sed='
 
15516
    /Import File Strings/,/^$/ {
 
15517
        /^0/ {
 
15518
            s/^0  *\(.*\)$/\1/
 
15519
            p
 
15520
        }
 
15521
    }'
 
15522
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15523
# Check for a 64-bit object if we didn't find anything.
 
15524
if test -z "$aix_libpath"; then
 
15525
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15526
fi
 
15527
else
 
15528
  $as_echo "$as_me: failed program was:" >&5
 
15529
sed 's/^/| /' conftest.$ac_ext >&5
 
15530
 
 
15531
 
 
15532
fi
 
15533
 
 
15534
rm -rf conftest.dSYM
 
15535
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15536
      conftest$ac_exeext conftest.$ac_ext
 
15537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15538
 
 
15539
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15540
          # Warning - without using the other run time loading flags,
 
15541
          # -berok will link without error, but may produce a broken library.
 
15542
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15543
          allow_undefined_flag_F77=' ${wl}-berok'
 
15544
          # Exported symbols can be pulled into shared objects from archives
 
15545
          whole_archive_flag_spec_F77='$convenience'
 
15546
          archive_cmds_need_lc_F77=yes
 
15547
          # This is similar to how AIX traditionally builds its shared libraries.
 
15548
          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'
 
15549
        fi
 
15550
      fi
 
15551
      ;;
 
15552
 
 
15553
    amigaos*)
 
15554
      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)'
 
15555
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15556
      hardcode_minus_L_F77=yes
 
15557
      # see comment about different semantics on the GNU ld section
 
15558
      ld_shlibs_F77=no
 
15559
      ;;
 
15560
 
 
15561
    bsdi[45]*)
 
15562
      export_dynamic_flag_spec_F77=-rdynamic
 
15563
      ;;
 
15564
 
 
15565
    cygwin* | mingw* | pw32*)
 
15566
      # When not using gcc, we currently assume that we are using
 
15567
      # Microsoft Visual C++.
 
15568
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15569
      # no search path for DLLs.
 
15570
      hardcode_libdir_flag_spec_F77=' '
 
15571
      allow_undefined_flag_F77=unsupported
 
15572
      # Tell ltmain to make .lib files, not .a files.
 
15573
      libext=lib
 
15574
      # Tell ltmain to make .dll files, not .so files.
 
15575
      shrext_cmds=".dll"
 
15576
      # FIXME: Setting linknames here is a bad hack.
 
15577
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15578
      # The linker will automatically build a .lib file if we build a DLL.
 
15579
      old_archive_From_new_cmds_F77='true'
 
15580
      # FIXME: Should let the user specify the lib program.
 
15581
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15582
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15583
      enable_shared_with_static_runtimes_F77=yes
 
15584
      ;;
 
15585
 
 
15586
    darwin* | rhapsody*)
 
15587
      case $host_os in
 
15588
        rhapsody* | darwin1.[012])
 
15589
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15590
         ;;
 
15591
       *) # Darwin 1.3 on
 
15592
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15593
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15594
         else
 
15595
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15596
             10.[012])
 
15597
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15598
               ;;
 
15599
             10.*)
 
15600
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15601
               ;;
 
15602
           esac
 
15603
         fi
 
15604
         ;;
 
15605
      esac
 
15606
      archive_cmds_need_lc_F77=no
 
15607
      hardcode_direct_F77=no
 
15608
      hardcode_automatic_F77=yes
 
15609
      hardcode_shlibpath_var_F77=unsupported
 
15610
      whole_archive_flag_spec_F77=''
 
15611
      link_all_deplibs_F77=yes
 
15612
    if test "$GCC" = yes ; then
 
15613
        output_verbose_link_cmd='echo'
 
15614
        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}"
 
15615
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15616
        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}"
 
15617
        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}"
 
15618
    else
 
15619
      case $cc_basename in
 
15620
        xlc*)
 
15621
         output_verbose_link_cmd='echo'
 
15622
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15623
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15624
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15625
         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}'
 
15626
          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}'
 
15627
          ;;
 
15628
       *)
 
15629
         ld_shlibs_F77=no
 
15630
          ;;
 
15631
      esac
 
15632
    fi
 
15633
      ;;
 
15634
 
 
15635
    dgux*)
 
15636
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15637
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15638
      hardcode_shlibpath_var_F77=no
 
15639
      ;;
 
15640
 
 
15641
    freebsd1*)
 
15642
      ld_shlibs_F77=no
 
15643
      ;;
 
15644
 
 
15645
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15646
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15647
    # does not break anything, and helps significantly (at the cost of a little
 
15648
    # extra space).
 
15649
    freebsd2.2*)
 
15650
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15651
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15652
      hardcode_direct_F77=yes
 
15653
      hardcode_shlibpath_var_F77=no
 
15654
      ;;
 
15655
 
 
15656
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15657
    freebsd2*)
 
15658
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15659
      hardcode_direct_F77=yes
 
15660
      hardcode_minus_L_F77=yes
 
15661
      hardcode_shlibpath_var_F77=no
 
15662
      ;;
 
15663
 
 
15664
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15665
    freebsd* | dragonfly*)
 
15666
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15667
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15668
      hardcode_direct_F77=yes
 
15669
      hardcode_shlibpath_var_F77=no
 
15670
      ;;
 
15671
 
 
15672
    hpux9*)
 
15673
      if test "$GCC" = yes; then
 
15674
        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'
 
15675
      else
 
15676
        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'
 
15677
      fi
 
15678
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15679
      hardcode_libdir_separator_F77=:
 
15680
      hardcode_direct_F77=yes
 
15681
 
 
15682
      # hardcode_minus_L: Not really in the search PATH,
 
15683
      # but as the default location of the library.
 
15684
      hardcode_minus_L_F77=yes
 
15685
      export_dynamic_flag_spec_F77='${wl}-E'
 
15686
      ;;
 
15687
 
 
15688
    hpux10*)
 
15689
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15690
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15691
      else
 
15692
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15693
      fi
 
15694
      if test "$with_gnu_ld" = no; then
 
15695
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15696
        hardcode_libdir_separator_F77=:
 
15697
 
 
15698
        hardcode_direct_F77=yes
 
15699
        export_dynamic_flag_spec_F77='${wl}-E'
 
15700
 
 
15701
        # hardcode_minus_L: Not really in the search PATH,
 
15702
        # but as the default location of the library.
 
15703
        hardcode_minus_L_F77=yes
 
15704
      fi
 
15705
      ;;
 
15706
 
 
15707
    hpux11*)
 
15708
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15709
        case $host_cpu in
 
15710
        hppa*64*)
 
15711
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15712
          ;;
 
15713
        ia64*)
 
15714
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15715
          ;;
 
15716
        *)
 
15717
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15718
          ;;
 
15719
        esac
 
15720
      else
 
15721
        case $host_cpu in
 
15722
        hppa*64*)
 
15723
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15724
          ;;
 
15725
        ia64*)
 
15726
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15727
          ;;
 
15728
        *)
 
15729
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15730
          ;;
 
15731
        esac
 
15732
      fi
 
15733
      if test "$with_gnu_ld" = no; then
 
15734
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15735
        hardcode_libdir_separator_F77=:
 
15736
 
 
15737
        case $host_cpu in
 
15738
        hppa*64*|ia64*)
 
15739
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15740
          hardcode_direct_F77=no
 
15741
          hardcode_shlibpath_var_F77=no
 
15742
          ;;
 
15743
        *)
 
15744
          hardcode_direct_F77=yes
 
15745
          export_dynamic_flag_spec_F77='${wl}-E'
 
15746
 
 
15747
          # hardcode_minus_L: Not really in the search PATH,
 
15748
          # but as the default location of the library.
 
15749
          hardcode_minus_L_F77=yes
 
15750
          ;;
 
15751
        esac
 
15752
      fi
 
15753
      ;;
 
15754
 
 
15755
    irix5* | irix6* | nonstopux*)
 
15756
      if test "$GCC" = yes; then
 
15757
        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'
 
15758
      else
 
15759
        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'
 
15760
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15761
      fi
 
15762
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15763
      hardcode_libdir_separator_F77=:
 
15764
      link_all_deplibs_F77=yes
 
15765
      ;;
 
15766
 
 
15767
    netbsd*)
 
15768
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15769
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15770
      else
 
15771
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15772
      fi
 
15773
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15774
      hardcode_direct_F77=yes
 
15775
      hardcode_shlibpath_var_F77=no
 
15776
      ;;
 
15777
 
 
15778
    newsos6)
 
15779
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15780
      hardcode_direct_F77=yes
 
15781
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15782
      hardcode_libdir_separator_F77=:
 
15783
      hardcode_shlibpath_var_F77=no
 
15784
      ;;
 
15785
 
 
15786
    openbsd*)
 
15787
      if test -f /usr/libexec/ld.so; then
 
15788
        hardcode_direct_F77=yes
 
15789
        hardcode_shlibpath_var_F77=no
 
15790
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15791
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15792
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15793
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15794
          export_dynamic_flag_spec_F77='${wl}-E'
 
15795
        else
 
15796
          case $host_os in
 
15797
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15798
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15799
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15800
             ;;
 
15801
           *)
 
15802
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15803
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15804
             ;;
 
15805
          esac
 
15806
        fi
 
15807
      else
 
15808
        ld_shlibs_F77=no
 
15809
      fi
 
15810
      ;;
 
15811
 
 
15812
    os2*)
 
15813
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15814
      hardcode_minus_L_F77=yes
 
15815
      allow_undefined_flag_F77=unsupported
 
15816
      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'
 
15817
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15818
      ;;
 
15819
 
 
15820
    osf3*)
 
15821
      if test "$GCC" = yes; then
 
15822
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15823
        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'
 
15824
      else
 
15825
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15826
        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'
 
15827
      fi
 
15828
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15829
      hardcode_libdir_separator_F77=:
 
15830
      ;;
 
15831
 
 
15832
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15833
      if test "$GCC" = yes; then
 
15834
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15835
        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'
 
15836
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15837
      else
 
15838
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15839
        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'
 
15840
        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~
 
15841
        $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'
 
15842
 
 
15843
        # Both c and cxx compiler support -rpath directly
 
15844
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15845
      fi
 
15846
      hardcode_libdir_separator_F77=:
 
15847
      ;;
 
15848
 
 
15849
    solaris*)
 
15850
      no_undefined_flag_F77=' -z text'
 
15851
      if test "$GCC" = yes; then
 
15852
        wlarc='${wl}'
 
15853
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15854
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15855
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15856
      else
 
15857
        wlarc=''
 
15858
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15859
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15860
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15861
      fi
 
15862
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15863
      hardcode_shlibpath_var_F77=no
 
15864
      case $host_os in
 
15865
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15866
      *)
 
15867
        # The compiler driver will combine and reorder linker options,
 
15868
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15869
        # but is careful enough not to reorder.
 
15870
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15871
        if test "$GCC" = yes; then
 
15872
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15873
        else
 
15874
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15875
        fi
 
15876
        ;;
 
15877
      esac
 
15878
      link_all_deplibs_F77=yes
 
15879
      ;;
 
15880
 
 
15881
    sunos4*)
 
15882
      if test "x$host_vendor" = xsequent; then
 
15883
        # Use $CC to link under sequent, because it throws in some extra .o
 
15884
        # files that make .init and .fini sections work.
 
15885
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15886
      else
 
15887
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15888
      fi
 
15889
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15890
      hardcode_direct_F77=yes
 
15891
      hardcode_minus_L_F77=yes
 
15892
      hardcode_shlibpath_var_F77=no
 
15893
      ;;
 
15894
 
 
15895
    sysv4)
 
15896
      case $host_vendor in
 
15897
        sni)
 
15898
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15899
          hardcode_direct_F77=yes # is this really true???
 
15900
        ;;
 
15901
        siemens)
 
15902
          ## LD is ld it makes a PLAMLIB
 
15903
          ## CC just makes a GrossModule.
 
15904
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15905
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15906
          hardcode_direct_F77=no
 
15907
        ;;
 
15908
        motorola)
 
15909
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15910
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15911
        ;;
 
15912
      esac
 
15913
      runpath_var='LD_RUN_PATH'
 
15914
      hardcode_shlibpath_var_F77=no
 
15915
      ;;
 
15916
 
 
15917
    sysv4.3*)
 
15918
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15919
      hardcode_shlibpath_var_F77=no
 
15920
      export_dynamic_flag_spec_F77='-Bexport'
 
15921
      ;;
 
15922
 
 
15923
    sysv4*MP*)
 
15924
      if test -d /usr/nec; then
 
15925
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15926
        hardcode_shlibpath_var_F77=no
 
15927
        runpath_var=LD_RUN_PATH
 
15928
        hardcode_runpath_var=yes
 
15929
        ld_shlibs_F77=yes
 
15930
      fi
 
15931
      ;;
 
15932
 
 
15933
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15934
      no_undefined_flag_F77='${wl}-z,text'
 
15935
      archive_cmds_need_lc_F77=no
 
15936
      hardcode_shlibpath_var_F77=no
 
15937
      runpath_var='LD_RUN_PATH'
 
15938
 
 
15939
      if test "$GCC" = yes; then
 
15940
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15941
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15942
      else
 
15943
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15944
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15945
      fi
 
15946
      ;;
 
15947
 
 
15948
    sysv5* | sco3.2v5* | sco5v6*)
 
15949
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15950
      # link with -lc, and that would cause any symbols used from libc to
 
15951
      # always be unresolved, which means just about no library would
 
15952
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15953
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15954
      # as -z defs.
 
15955
      no_undefined_flag_F77='${wl}-z,text'
 
15956
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15957
      archive_cmds_need_lc_F77=no
 
15958
      hardcode_shlibpath_var_F77=no
 
15959
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15960
      hardcode_libdir_separator_F77=':'
 
15961
      link_all_deplibs_F77=yes
 
15962
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15963
      runpath_var='LD_RUN_PATH'
 
15964
 
 
15965
      if test "$GCC" = yes; then
 
15966
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15967
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15968
      else
 
15969
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15970
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15971
      fi
 
15972
      ;;
 
15973
 
 
15974
    uts4*)
 
15975
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15976
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15977
      hardcode_shlibpath_var_F77=no
 
15978
      ;;
 
15979
 
 
15980
    *)
 
15981
      ld_shlibs_F77=no
 
15982
      ;;
 
15983
    esac
 
15984
  fi
 
15985
 
 
15986
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15987
$as_echo "$ld_shlibs_F77" >&6; }
 
15988
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15989
 
 
15990
#
 
15991
# Do we need to explicitly link libc?
 
15992
#
 
15993
case "x$archive_cmds_need_lc_F77" in
 
15994
x|xyes)
 
15995
  # Assume -lc should be added
 
15996
  archive_cmds_need_lc_F77=yes
 
15997
 
 
15998
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15999
    case $archive_cmds_F77 in
 
16000
    *'~'*)
 
16001
      # FIXME: we may have to deal with multi-command sequences.
 
16002
      ;;
 
16003
    '$CC '*)
 
16004
      # Test whether the compiler implicitly links with -lc since on some
 
16005
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16006
      # to ld, don't add -lc before -lgcc.
 
16007
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16008
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
16009
      $rm conftest*
 
16010
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16011
 
 
16012
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16013
  (eval $ac_compile) 2>&5
 
16014
  ac_status=$?
 
16015
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16016
  (exit $ac_status); } 2>conftest.err; then
 
16017
        soname=conftest
 
16018
        lib=conftest
 
16019
        libobjs=conftest.$ac_objext
 
16020
        deplibs=
 
16021
        wl=$lt_prog_compiler_wl_F77
 
16022
        pic_flag=$lt_prog_compiler_pic_F77
 
16023
        compiler_flags=-v
 
16024
        linker_flags=-v
 
16025
        verstring=
 
16026
        output_objdir=.
 
16027
        libname=conftest
 
16028
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16029
        allow_undefined_flag_F77=
 
16030
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16031
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16032
  ac_status=$?
 
16033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16034
  (exit $ac_status); }
 
16035
        then
 
16036
          archive_cmds_need_lc_F77=no
 
16037
        else
 
16038
          archive_cmds_need_lc_F77=yes
 
16039
        fi
 
16040
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16041
      else
 
16042
        cat conftest.err 1>&5
 
16043
      fi
 
16044
      $rm conftest*
 
16045
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16046
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
16047
      ;;
 
16048
    esac
 
16049
  fi
 
16050
  ;;
 
16051
esac
 
16052
 
 
16053
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16054
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
16055
library_names_spec=
 
16056
libname_spec='lib$name'
 
16057
soname_spec=
 
16058
shrext_cmds=".so"
 
16059
postinstall_cmds=
 
16060
postuninstall_cmds=
 
16061
finish_cmds=
 
16062
finish_eval=
 
16063
shlibpath_var=
 
16064
shlibpath_overrides_runpath=unknown
 
16065
version_type=none
 
16066
dynamic_linker="$host_os ld.so"
 
16067
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16068
 
 
16069
need_lib_prefix=unknown
 
16070
hardcode_into_libs=no
 
16071
 
 
16072
# when you set need_version to no, make sure it does not cause -set_version
 
16073
# flags to be left without arguments
 
16074
need_version=unknown
 
16075
 
 
16076
case $host_os in
 
16077
aix3*)
 
16078
  version_type=linux
 
16079
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16080
  shlibpath_var=LIBPATH
 
16081
 
 
16082
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16083
  soname_spec='${libname}${release}${shared_ext}$major'
 
16084
  ;;
 
16085
 
 
16086
aix[4-9]*)
 
16087
  version_type=linux
 
16088
  need_lib_prefix=no
 
16089
  need_version=no
 
16090
  hardcode_into_libs=yes
 
16091
  if test "$host_cpu" = ia64; then
 
16092
    # AIX 5 supports IA64
 
16093
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16094
    shlibpath_var=LD_LIBRARY_PATH
 
16095
  else
 
16096
    # With GCC up to 2.95.x, collect2 would create an import file
 
16097
    # for dependence libraries.  The import file would start with
 
16098
    # the line `#! .'.  This would cause the generated library to
 
16099
    # depend on `.', always an invalid library.  This was fixed in
 
16100
    # development snapshots of GCC prior to 3.0.
 
16101
    case $host_os in
 
16102
      aix4 | aix4.[01] | aix4.[01].*)
 
16103
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16104
           echo ' yes '
 
16105
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16106
        :
 
16107
      else
 
16108
        can_build_shared=no
 
16109
      fi
 
16110
      ;;
 
16111
    esac
 
16112
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16113
    # soname into executable. Probably we can add versioning support to
 
16114
    # collect2, so additional links can be useful in future.
 
16115
    if test "$aix_use_runtimelinking" = yes; then
 
16116
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16117
      # instead of lib<name>.a to let people know that these are not
 
16118
      # typical AIX shared libraries.
 
16119
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16120
    else
 
16121
      # We preserve .a as extension for shared libraries through AIX4.2
 
16122
      # and later when we are not doing run time linking.
 
16123
      library_names_spec='${libname}${release}.a $libname.a'
 
16124
      soname_spec='${libname}${release}${shared_ext}$major'
 
16125
    fi
 
16126
    shlibpath_var=LIBPATH
 
16127
  fi
 
16128
  ;;
 
16129
 
 
16130
amigaos*)
 
16131
  library_names_spec='$libname.ixlibrary $libname.a'
 
16132
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16133
  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'
 
16134
  ;;
 
16135
 
 
16136
beos*)
 
16137
  library_names_spec='${libname}${shared_ext}'
 
16138
  dynamic_linker="$host_os ld.so"
 
16139
  shlibpath_var=LIBRARY_PATH
 
16140
  ;;
 
16141
 
 
16142
bsdi[45]*)
 
16143
  version_type=linux
 
16144
  need_version=no
 
16145
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16146
  soname_spec='${libname}${release}${shared_ext}$major'
 
16147
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16148
  shlibpath_var=LD_LIBRARY_PATH
 
16149
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16150
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16151
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16152
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16153
  # libtool to hard-code these into programs
 
16154
  ;;
 
16155
 
 
16156
cygwin* | mingw* | pw32*)
 
16157
  version_type=windows
 
16158
  shrext_cmds=".dll"
 
16159
  need_version=no
 
16160
  need_lib_prefix=no
 
16161
 
 
16162
  case $GCC,$host_os in
 
16163
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16164
    library_names_spec='$libname.dll.a'
 
16165
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16166
    postinstall_cmds='base_file=`basename \${file}`~
 
16167
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16168
      dldir=$destdir/`dirname \$dlpath`~
 
16169
      test -d \$dldir || mkdir -p \$dldir~
 
16170
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16171
      chmod a+x \$dldir/$dlname'
 
16172
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16173
      dlpath=$dir/\$dldll~
 
16174
       $rm \$dlpath'
 
16175
    shlibpath_overrides_runpath=yes
 
16176
 
 
16177
    case $host_os in
 
16178
    cygwin*)
 
16179
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16180
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16181
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16182
      ;;
 
16183
    mingw*)
 
16184
      # MinGW DLLs use traditional 'lib' prefix
 
16185
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16186
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16187
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16188
        # It is most probably a Windows format PATH printed by
 
16189
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16190
        # path with ; separators, and with drive letters. We can handle the
 
16191
        # drive letters (cygwin fileutils understands them), so leave them,
 
16192
        # especially as we might pass files found there to a mingw objdump,
 
16193
        # which wouldn't understand a cygwinified path. Ahh.
 
16194
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16195
      else
 
16196
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16197
      fi
 
16198
      ;;
 
16199
    pw32*)
 
16200
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16201
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16202
      ;;
 
16203
    esac
 
16204
    ;;
 
16205
 
 
16206
  *)
 
16207
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16208
    ;;
 
16209
  esac
 
16210
  dynamic_linker='Win32 ld.exe'
 
16211
  # FIXME: first we should search . and the directory the executable is in
 
16212
  shlibpath_var=PATH
 
16213
  ;;
 
16214
 
 
16215
darwin* | rhapsody*)
 
16216
  dynamic_linker="$host_os dyld"
 
16217
  version_type=darwin
 
16218
  need_lib_prefix=no
 
16219
  need_version=no
 
16220
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16221
  soname_spec='${libname}${release}${major}$shared_ext'
 
16222
  shlibpath_overrides_runpath=yes
 
16223
  shlibpath_var=DYLD_LIBRARY_PATH
 
16224
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16225
 
 
16226
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16227
  ;;
 
16228
 
 
16229
dgux*)
 
16230
  version_type=linux
 
16231
  need_lib_prefix=no
 
16232
  need_version=no
 
16233
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16234
  soname_spec='${libname}${release}${shared_ext}$major'
 
16235
  shlibpath_var=LD_LIBRARY_PATH
 
16236
  ;;
 
16237
 
 
16238
freebsd1*)
 
16239
  dynamic_linker=no
 
16240
  ;;
 
16241
 
 
16242
freebsd* | dragonfly*)
 
16243
  # DragonFly does not have aout.  When/if they implement a new
 
16244
  # versioning mechanism, adjust this.
 
16245
  if test -x /usr/bin/objformat; then
 
16246
    objformat=`/usr/bin/objformat`
 
16247
  else
 
16248
    case $host_os in
 
16249
    freebsd[123]*) objformat=aout ;;
 
16250
    *) objformat=elf ;;
 
16251
    esac
 
16252
  fi
 
16253
  version_type=freebsd-$objformat
 
16254
  case $version_type in
 
16255
    freebsd-elf*)
 
16256
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16257
      need_version=no
 
16258
      need_lib_prefix=no
 
16259
      ;;
 
16260
    freebsd-*)
 
16261
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16262
      need_version=yes
 
16263
      ;;
 
16264
  esac
 
16265
  shlibpath_var=LD_LIBRARY_PATH
 
16266
  case $host_os in
 
16267
  freebsd2*)
 
16268
    shlibpath_overrides_runpath=yes
 
16269
    ;;
 
16270
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16271
    shlibpath_overrides_runpath=yes
 
16272
    hardcode_into_libs=yes
 
16273
    ;;
 
16274
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16275
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16276
    shlibpath_overrides_runpath=no
 
16277
    hardcode_into_libs=yes
 
16278
    ;;
 
16279
  *) # from 4.6 on, and DragonFly
 
16280
    shlibpath_overrides_runpath=yes
 
16281
    hardcode_into_libs=yes
 
16282
    ;;
 
16283
  esac
 
16284
  ;;
 
16285
 
 
16286
gnu*)
 
16287
  version_type=linux
 
16288
  need_lib_prefix=no
 
16289
  need_version=no
 
16290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16291
  soname_spec='${libname}${release}${shared_ext}$major'
 
16292
  shlibpath_var=LD_LIBRARY_PATH
 
16293
  hardcode_into_libs=yes
 
16294
  ;;
 
16295
 
 
16296
hpux9* | hpux10* | hpux11*)
 
16297
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16298
  # link against other versions.
 
16299
  version_type=sunos
 
16300
  need_lib_prefix=no
 
16301
  need_version=no
 
16302
  case $host_cpu in
 
16303
  ia64*)
 
16304
    shrext_cmds='.so'
 
16305
    hardcode_into_libs=yes
 
16306
    dynamic_linker="$host_os dld.so"
 
16307
    shlibpath_var=LD_LIBRARY_PATH
 
16308
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16309
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16310
    soname_spec='${libname}${release}${shared_ext}$major'
 
16311
    if test "X$HPUX_IA64_MODE" = X32; then
 
16312
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16313
    else
 
16314
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16315
    fi
 
16316
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16317
    ;;
 
16318
   hppa*64*)
 
16319
     shrext_cmds='.sl'
 
16320
     hardcode_into_libs=yes
 
16321
     dynamic_linker="$host_os dld.sl"
 
16322
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16323
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16324
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16325
     soname_spec='${libname}${release}${shared_ext}$major'
 
16326
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16327
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16328
     ;;
 
16329
   *)
 
16330
    shrext_cmds='.sl'
 
16331
    dynamic_linker="$host_os dld.sl"
 
16332
    shlibpath_var=SHLIB_PATH
 
16333
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16334
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16335
    soname_spec='${libname}${release}${shared_ext}$major'
 
16336
    ;;
 
16337
  esac
 
16338
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16339
  postinstall_cmds='chmod 555 $lib'
 
16340
  ;;
 
16341
 
 
16342
interix[3-9]*)
 
16343
  version_type=linux
 
16344
  need_lib_prefix=no
 
16345
  need_version=no
 
16346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16347
  soname_spec='${libname}${release}${shared_ext}$major'
 
16348
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16349
  shlibpath_var=LD_LIBRARY_PATH
 
16350
  shlibpath_overrides_runpath=no
 
16351
  hardcode_into_libs=yes
 
16352
  ;;
 
16353
 
 
16354
irix5* | irix6* | nonstopux*)
 
16355
  case $host_os in
 
16356
    nonstopux*) version_type=nonstopux ;;
 
16357
    *)
 
16358
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16359
                version_type=linux
 
16360
        else
 
16361
                version_type=irix
 
16362
        fi ;;
 
16363
  esac
 
16364
  need_lib_prefix=no
 
16365
  need_version=no
 
16366
  soname_spec='${libname}${release}${shared_ext}$major'
 
16367
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16368
  case $host_os in
 
16369
  irix5* | nonstopux*)
 
16370
    libsuff= shlibsuff=
 
16371
    ;;
 
16372
  *)
 
16373
    case $LD in # libtool.m4 will add one of these switches to LD
 
16374
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16375
      libsuff= shlibsuff= libmagic=32-bit;;
 
16376
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16377
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16378
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16379
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16380
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16381
    esac
 
16382
    ;;
 
16383
  esac
 
16384
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16385
  shlibpath_overrides_runpath=no
 
16386
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16387
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16388
  hardcode_into_libs=yes
 
16389
  ;;
 
16390
 
 
16391
# No shared lib support for Linux oldld, aout, or coff.
 
16392
linux*oldld* | linux*aout* | linux*coff*)
 
16393
  dynamic_linker=no
 
16394
  ;;
 
16395
 
 
16396
# This must be Linux ELF.
 
16397
linux* | k*bsd*-gnu)
 
16398
  version_type=linux
 
16399
  need_lib_prefix=no
 
16400
  need_version=no
 
16401
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16402
  soname_spec='${libname}${release}${shared_ext}$major'
 
16403
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16404
  shlibpath_var=LD_LIBRARY_PATH
 
16405
  shlibpath_overrides_runpath=no
 
16406
  # This implies no fast_install, which is unacceptable.
 
16407
  # Some rework will be needed to allow for fast_install
 
16408
  # before this can be enabled.
 
16409
  hardcode_into_libs=yes
 
16410
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16411
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16412
 
 
16413
  # Append ld.so.conf contents to the search path
 
16414
  if test -f /etc/ld.so.conf; then
 
16415
    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' ' '`
 
16416
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16417
  fi
 
16418
 
 
16419
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16420
  # powerpc, because MkLinux only supported shared libraries with the
 
16421
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16422
  # most powerpc-linux boxes support dynamic linking these days and
 
16423
  # people can always --disable-shared, the test was removed, and we
 
16424
  # assume the GNU/Linux dynamic linker is in use.
 
16425
  dynamic_linker='GNU/Linux ld.so'
 
16426
  ;;
 
16427
 
 
16428
netbsd*)
 
16429
  version_type=sunos
 
16430
  need_lib_prefix=no
 
16431
  need_version=no
 
16432
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16433
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16434
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16435
    dynamic_linker='NetBSD (a.out) ld.so'
 
16436
  else
 
16437
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16438
    soname_spec='${libname}${release}${shared_ext}$major'
 
16439
    dynamic_linker='NetBSD ld.elf_so'
 
16440
  fi
 
16441
  shlibpath_var=LD_LIBRARY_PATH
 
16442
  shlibpath_overrides_runpath=yes
 
16443
  hardcode_into_libs=yes
 
16444
  ;;
 
16445
 
 
16446
newsos6)
 
16447
  version_type=linux
 
16448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16449
  shlibpath_var=LD_LIBRARY_PATH
 
16450
  shlibpath_overrides_runpath=yes
 
16451
  ;;
 
16452
 
 
16453
nto-qnx*)
 
16454
  version_type=linux
 
16455
  need_lib_prefix=no
 
16456
  need_version=no
 
16457
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16458
  soname_spec='${libname}${release}${shared_ext}$major'
 
16459
  shlibpath_var=LD_LIBRARY_PATH
 
16460
  shlibpath_overrides_runpath=yes
 
16461
  ;;
 
16462
 
 
16463
openbsd*)
 
16464
  version_type=sunos
 
16465
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16466
  need_lib_prefix=no
 
16467
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16468
  case $host_os in
 
16469
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16470
    *)                         need_version=no  ;;
 
16471
  esac
 
16472
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16473
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16474
  shlibpath_var=LD_LIBRARY_PATH
 
16475
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16476
    case $host_os in
 
16477
      openbsd2.[89] | openbsd2.[89].*)
 
16478
        shlibpath_overrides_runpath=no
 
16479
        ;;
 
16480
      *)
 
16481
        shlibpath_overrides_runpath=yes
 
16482
        ;;
 
16483
      esac
 
16484
  else
 
16485
    shlibpath_overrides_runpath=yes
 
16486
  fi
 
16487
  ;;
 
16488
 
 
16489
os2*)
 
16490
  libname_spec='$name'
 
16491
  shrext_cmds=".dll"
 
16492
  need_lib_prefix=no
 
16493
  library_names_spec='$libname${shared_ext} $libname.a'
 
16494
  dynamic_linker='OS/2 ld.exe'
 
16495
  shlibpath_var=LIBPATH
 
16496
  ;;
 
16497
 
 
16498
osf3* | osf4* | osf5*)
 
16499
  version_type=osf
 
16500
  need_lib_prefix=no
 
16501
  need_version=no
 
16502
  soname_spec='${libname}${release}${shared_ext}$major'
 
16503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16504
  shlibpath_var=LD_LIBRARY_PATH
 
16505
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16506
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16507
  ;;
 
16508
 
 
16509
rdos*)
 
16510
  dynamic_linker=no
 
16511
  ;;
 
16512
 
 
16513
solaris*)
 
16514
  version_type=linux
 
16515
  need_lib_prefix=no
 
16516
  need_version=no
 
16517
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16518
  soname_spec='${libname}${release}${shared_ext}$major'
 
16519
  shlibpath_var=LD_LIBRARY_PATH
 
16520
  shlibpath_overrides_runpath=yes
 
16521
  hardcode_into_libs=yes
 
16522
  # ldd complains unless libraries are executable
 
16523
  postinstall_cmds='chmod +x $lib'
 
16524
  ;;
 
16525
 
 
16526
sunos4*)
 
16527
  version_type=sunos
 
16528
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16529
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16530
  shlibpath_var=LD_LIBRARY_PATH
 
16531
  shlibpath_overrides_runpath=yes
 
16532
  if test "$with_gnu_ld" = yes; then
 
16533
    need_lib_prefix=no
 
16534
  fi
 
16535
  need_version=yes
 
16536
  ;;
 
16537
 
 
16538
sysv4 | sysv4.3*)
 
16539
  version_type=linux
 
16540
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16541
  soname_spec='${libname}${release}${shared_ext}$major'
 
16542
  shlibpath_var=LD_LIBRARY_PATH
 
16543
  case $host_vendor in
 
16544
    sni)
 
16545
      shlibpath_overrides_runpath=no
 
16546
      need_lib_prefix=no
 
16547
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16548
      runpath_var=LD_RUN_PATH
 
16549
      ;;
 
16550
    siemens)
 
16551
      need_lib_prefix=no
 
16552
      ;;
 
16553
    motorola)
 
16554
      need_lib_prefix=no
 
16555
      need_version=no
 
16556
      shlibpath_overrides_runpath=no
 
16557
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16558
      ;;
 
16559
  esac
 
16560
  ;;
 
16561
 
 
16562
sysv4*MP*)
 
16563
  if test -d /usr/nec ;then
 
16564
    version_type=linux
 
16565
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16566
    soname_spec='$libname${shared_ext}.$major'
 
16567
    shlibpath_var=LD_LIBRARY_PATH
 
16568
  fi
 
16569
  ;;
 
16570
 
 
16571
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16572
  version_type=freebsd-elf
 
16573
  need_lib_prefix=no
 
16574
  need_version=no
 
16575
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16576
  soname_spec='${libname}${release}${shared_ext}$major'
 
16577
  shlibpath_var=LD_LIBRARY_PATH
 
16578
  hardcode_into_libs=yes
 
16579
  if test "$with_gnu_ld" = yes; then
 
16580
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16581
    shlibpath_overrides_runpath=no
 
16582
  else
 
16583
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16584
    shlibpath_overrides_runpath=yes
 
16585
    case $host_os in
 
16586
      sco3.2v5*)
 
16587
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16588
        ;;
 
16589
    esac
 
16590
  fi
 
16591
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16592
  ;;
 
16593
 
 
16594
uts4*)
 
16595
  version_type=linux
 
16596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16597
  soname_spec='${libname}${release}${shared_ext}$major'
 
16598
  shlibpath_var=LD_LIBRARY_PATH
 
16599
  ;;
 
16600
 
 
16601
*)
 
16602
  dynamic_linker=no
 
16603
  ;;
 
16604
esac
 
16605
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16606
$as_echo "$dynamic_linker" >&6; }
 
16607
test "$dynamic_linker" = no && can_build_shared=no
 
16608
 
 
16609
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16610
  $as_echo_n "(cached) " >&6
 
16611
else
 
16612
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16613
fi
 
16614
 
 
16615
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16616
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16617
  $as_echo_n "(cached) " >&6
 
16618
else
 
16619
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16620
fi
 
16621
 
 
16622
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16623
 
 
16624
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16625
if test "$GCC" = yes; then
 
16626
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16627
fi
 
16628
 
 
16629
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16630
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16631
hardcode_action_F77=
 
16632
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16633
   test -n "$runpath_var_F77" || \
 
16634
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16635
 
 
16636
  # We can hardcode non-existant directories.
 
16637
  if test "$hardcode_direct_F77" != no &&
 
16638
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16639
     # have to relink, otherwise we might link with an installed library
 
16640
     # when we should be linking with a yet-to-be-installed one
 
16641
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16642
     test "$hardcode_minus_L_F77" != no; then
 
16643
    # Linking always hardcodes the temporary library directory.
 
16644
    hardcode_action_F77=relink
 
16645
  else
 
16646
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16647
    hardcode_action_F77=immediate
 
16648
  fi
 
16649
else
 
16650
  # We cannot hardcode anything, or else we can only hardcode existing
 
16651
  # directories.
 
16652
  hardcode_action_F77=unsupported
 
16653
fi
 
16654
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16655
$as_echo "$hardcode_action_F77" >&6; }
 
16656
 
 
16657
if test "$hardcode_action_F77" = relink; then
 
16658
  # Fast installation is not supported
 
16659
  enable_fast_install=no
 
16660
elif test "$shlibpath_overrides_runpath" = yes ||
 
16661
     test "$enable_shared" = no; then
 
16662
  # Fast installation is not necessary
 
16663
  enable_fast_install=needless
 
16664
fi
 
16665
 
 
16666
 
 
16667
# The else clause should only fire when bootstrapping the
 
16668
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16669
# with your package, and you will get complaints that there are
 
16670
# no rules to generate ltmain.sh.
 
16671
if test -f "$ltmain"; then
 
16672
  # See if we are running on zsh, and set the options which allow our commands through
 
16673
  # without removal of \ escapes.
 
16674
  if test -n "${ZSH_VERSION+set}" ; then
 
16675
    setopt NO_GLOB_SUBST
 
16676
  fi
 
16677
  # Now quote all the things that may contain metacharacters while being
 
16678
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16679
  # variables and quote the copies for generation of the libtool script.
 
16680
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16681
    SED SHELL STRIP \
 
16682
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16683
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16684
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16685
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16686
    lt_cv_sys_global_symbol_to_c_name_address \
 
16687
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16688
    old_postinstall_cmds old_postuninstall_cmds \
 
16689
    compiler_F77 \
 
16690
    CC_F77 \
 
16691
    LD_F77 \
 
16692
    lt_prog_compiler_wl_F77 \
 
16693
    lt_prog_compiler_pic_F77 \
 
16694
    lt_prog_compiler_static_F77 \
 
16695
    lt_prog_compiler_no_builtin_flag_F77 \
 
16696
    export_dynamic_flag_spec_F77 \
 
16697
    thread_safe_flag_spec_F77 \
 
16698
    whole_archive_flag_spec_F77 \
 
16699
    enable_shared_with_static_runtimes_F77 \
 
16700
    old_archive_cmds_F77 \
 
16701
    old_archive_from_new_cmds_F77 \
 
16702
    predep_objects_F77 \
 
16703
    postdep_objects_F77 \
 
16704
    predeps_F77 \
 
16705
    postdeps_F77 \
 
16706
    compiler_lib_search_path_F77 \
 
16707
    compiler_lib_search_dirs_F77 \
 
16708
    archive_cmds_F77 \
 
16709
    archive_expsym_cmds_F77 \
 
16710
    postinstall_cmds_F77 \
 
16711
    postuninstall_cmds_F77 \
 
16712
    old_archive_from_expsyms_cmds_F77 \
 
16713
    allow_undefined_flag_F77 \
 
16714
    no_undefined_flag_F77 \
 
16715
    export_symbols_cmds_F77 \
 
16716
    hardcode_libdir_flag_spec_F77 \
 
16717
    hardcode_libdir_flag_spec_ld_F77 \
 
16718
    hardcode_libdir_separator_F77 \
 
16719
    hardcode_automatic_F77 \
 
16720
    module_cmds_F77 \
 
16721
    module_expsym_cmds_F77 \
 
16722
    lt_cv_prog_compiler_c_o_F77 \
 
16723
    fix_srcfile_path_F77 \
 
16724
    exclude_expsyms_F77 \
 
16725
    include_expsyms_F77; do
 
16726
 
 
16727
    case $var in
 
16728
    old_archive_cmds_F77 | \
 
16729
    old_archive_from_new_cmds_F77 | \
 
16730
    archive_cmds_F77 | \
 
16731
    archive_expsym_cmds_F77 | \
 
16732
    module_cmds_F77 | \
 
16733
    module_expsym_cmds_F77 | \
 
16734
    old_archive_from_expsyms_cmds_F77 | \
 
16735
    export_symbols_cmds_F77 | \
 
16736
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16737
    postinstall_cmds | postuninstall_cmds | \
 
16738
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16739
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16740
      # Double-quote double-evaled strings.
 
16741
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16742
      ;;
 
16743
    *)
 
16744
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16745
      ;;
 
16746
    esac
 
16747
  done
 
16748
 
 
16749
  case $lt_echo in
 
16750
  *'\$0 --fallback-echo"')
 
16751
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16752
    ;;
 
16753
  esac
 
16754
 
 
16755
cfgfile="$ofile"
 
16756
 
 
16757
  cat <<__EOF__ >> "$cfgfile"
 
16758
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16759
 
 
16760
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16761
 
 
16762
# Shell to use when invoking shell scripts.
 
16763
SHELL=$lt_SHELL
 
16764
 
 
16765
# Whether or not to build shared libraries.
 
16766
build_libtool_libs=$enable_shared
 
16767
 
 
16768
# Whether or not to build static libraries.
 
16769
build_old_libs=$enable_static
 
16770
 
 
16771
# Whether or not to add -lc for building shared libraries.
 
16772
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16773
 
 
16774
# Whether or not to disallow shared libs when runtime libs are static
 
16775
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16776
 
 
16777
# Whether or not to optimize for fast installation.
 
16778
fast_install=$enable_fast_install
 
16779
 
 
16780
# The host system.
 
16781
host_alias=$host_alias
 
16782
host=$host
 
16783
host_os=$host_os
 
16784
 
 
16785
# The build system.
 
16786
build_alias=$build_alias
 
16787
build=$build
 
16788
build_os=$build_os
 
16789
 
 
16790
# An echo program that does not interpret backslashes.
 
16791
echo=$lt_echo
 
16792
 
 
16793
# The archiver.
 
16794
AR=$lt_AR
 
16795
AR_FLAGS=$lt_AR_FLAGS
 
16796
 
 
16797
# A C compiler.
 
16798
LTCC=$lt_LTCC
 
16799
 
 
16800
# LTCC compiler flags.
 
16801
LTCFLAGS=$lt_LTCFLAGS
 
16802
 
 
16803
# A language-specific compiler.
 
16804
CC=$lt_compiler_F77
 
16805
 
 
16806
# Is the compiler the GNU C compiler?
 
16807
with_gcc=$GCC_F77
 
16808
 
 
16809
# An ERE matcher.
 
16810
EGREP=$lt_EGREP
 
16811
 
 
16812
# The linker used to build libraries.
 
16813
LD=$lt_LD_F77
 
16814
 
 
16815
# Whether we need hard or soft links.
 
16816
LN_S=$lt_LN_S
 
16817
 
 
16818
# A BSD-compatible nm program.
 
16819
NM=$lt_NM
 
16820
 
 
16821
# A symbol stripping program
 
16822
STRIP=$lt_STRIP
 
16823
 
 
16824
# Used to examine libraries when file_magic_cmd begins "file"
 
16825
MAGIC_CMD=$MAGIC_CMD
 
16826
 
 
16827
# Used on cygwin: DLL creation program.
 
16828
DLLTOOL="$DLLTOOL"
 
16829
 
 
16830
# Used on cygwin: object dumper.
 
16831
OBJDUMP="$OBJDUMP"
 
16832
 
 
16833
# Used on cygwin: assembler.
 
16834
AS="$AS"
 
16835
 
 
16836
# The name of the directory that contains temporary libtool files.
 
16837
objdir=$objdir
 
16838
 
 
16839
# How to create reloadable object files.
 
16840
reload_flag=$lt_reload_flag
 
16841
reload_cmds=$lt_reload_cmds
 
16842
 
 
16843
# How to pass a linker flag through the compiler.
 
16844
wl=$lt_lt_prog_compiler_wl_F77
 
16845
 
 
16846
# Object file suffix (normally "o").
 
16847
objext="$ac_objext"
 
16848
 
 
16849
# Old archive suffix (normally "a").
 
16850
libext="$libext"
 
16851
 
 
16852
# Shared library suffix (normally ".so").
 
16853
shrext_cmds='$shrext_cmds'
 
16854
 
 
16855
# Executable file suffix (normally "").
 
16856
exeext="$exeext"
 
16857
 
 
16858
# Additional compiler flags for building library objects.
 
16859
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16860
pic_mode=$pic_mode
 
16861
 
 
16862
# What is the maximum length of a command?
 
16863
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16864
 
 
16865
# Does compiler simultaneously support -c and -o options?
 
16866
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16867
 
 
16868
# Must we lock files when doing compilation?
 
16869
need_locks=$lt_need_locks
 
16870
 
 
16871
# Do we need the lib prefix for modules?
 
16872
need_lib_prefix=$need_lib_prefix
 
16873
 
 
16874
# Do we need a version for libraries?
 
16875
need_version=$need_version
 
16876
 
 
16877
# Whether dlopen is supported.
 
16878
dlopen_support=$enable_dlopen
 
16879
 
 
16880
# Whether dlopen of programs is supported.
 
16881
dlopen_self=$enable_dlopen_self
 
16882
 
 
16883
# Whether dlopen of statically linked programs is supported.
 
16884
dlopen_self_static=$enable_dlopen_self_static
 
16885
 
 
16886
# Compiler flag to prevent dynamic linking.
 
16887
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16888
 
 
16889
# Compiler flag to turn off builtin functions.
 
16890
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16891
 
 
16892
# Compiler flag to allow reflexive dlopens.
 
16893
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16894
 
 
16895
# Compiler flag to generate shared objects directly from archives.
 
16896
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16897
 
 
16898
# Compiler flag to generate thread-safe objects.
 
16899
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16900
 
 
16901
# Library versioning type.
 
16902
version_type=$version_type
 
16903
 
 
16904
# Format of library name prefix.
 
16905
libname_spec=$lt_libname_spec
 
16906
 
 
16907
# List of archive names.  First name is the real one, the rest are links.
 
16908
# The last name is the one that the linker finds with -lNAME.
 
16909
library_names_spec=$lt_library_names_spec
 
16910
 
 
16911
# The coded name of the library, if different from the real name.
 
16912
soname_spec=$lt_soname_spec
 
16913
 
 
16914
# Commands used to build and install an old-style archive.
 
16915
RANLIB=$lt_RANLIB
 
16916
old_archive_cmds=$lt_old_archive_cmds_F77
 
16917
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16918
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16919
 
 
16920
# Create an old-style archive from a shared archive.
 
16921
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16922
 
 
16923
# Create a temporary old-style archive to link instead of a shared archive.
 
16924
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16925
 
 
16926
# Commands used to build and install a shared archive.
 
16927
archive_cmds=$lt_archive_cmds_F77
 
16928
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16929
postinstall_cmds=$lt_postinstall_cmds
 
16930
postuninstall_cmds=$lt_postuninstall_cmds
 
16931
 
 
16932
# Commands used to build a loadable module (assumed same as above if empty)
 
16933
module_cmds=$lt_module_cmds_F77
 
16934
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16935
 
 
16936
# Commands to strip libraries.
 
16937
old_striplib=$lt_old_striplib
 
16938
striplib=$lt_striplib
 
16939
 
 
16940
# Dependencies to place before the objects being linked to create a
 
16941
# shared library.
 
16942
predep_objects=$lt_predep_objects_F77
 
16943
 
 
16944
# Dependencies to place after the objects being linked to create a
 
16945
# shared library.
 
16946
postdep_objects=$lt_postdep_objects_F77
 
16947
 
 
16948
# Dependencies to place before the objects being linked to create a
 
16949
# shared library.
 
16950
predeps=$lt_predeps_F77
 
16951
 
 
16952
# Dependencies to place after the objects being linked to create a
 
16953
# shared library.
 
16954
postdeps=$lt_postdeps_F77
 
16955
 
 
16956
# The directories searched by this compiler when creating a shared
 
16957
# library
 
16958
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16959
 
 
16960
# The library search path used internally by the compiler when linking
 
16961
# a shared library.
 
16962
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16963
 
 
16964
# Method to check whether dependent libraries are shared objects.
 
16965
deplibs_check_method=$lt_deplibs_check_method
 
16966
 
 
16967
# Command to use when deplibs_check_method == file_magic.
 
16968
file_magic_cmd=$lt_file_magic_cmd
 
16969
 
 
16970
# Flag that allows shared libraries with undefined symbols to be built.
 
16971
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16972
 
 
16973
# Flag that forces no undefined symbols.
 
16974
no_undefined_flag=$lt_no_undefined_flag_F77
 
16975
 
 
16976
# Commands used to finish a libtool library installation in a directory.
 
16977
finish_cmds=$lt_finish_cmds
 
16978
 
 
16979
# Same as above, but a single script fragment to be evaled but not shown.
 
16980
finish_eval=$lt_finish_eval
 
16981
 
 
16982
# Take the output of nm and produce a listing of raw symbols and C names.
 
16983
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16984
 
 
16985
# Transform the output of nm in a proper C declaration
 
16986
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16987
 
 
16988
# Transform the output of nm in a C name address pair
 
16989
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16990
 
 
16991
# This is the shared library runtime path variable.
 
16992
runpath_var=$runpath_var
 
16993
 
 
16994
# This is the shared library path variable.
 
16995
shlibpath_var=$shlibpath_var
 
16996
 
 
16997
# Is shlibpath searched before the hard-coded library search path?
 
16998
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16999
 
 
17000
# How to hardcode a shared library path into an executable.
 
17001
hardcode_action=$hardcode_action_F77
 
17002
 
 
17003
# Whether we should hardcode library paths into libraries.
 
17004
hardcode_into_libs=$hardcode_into_libs
 
17005
 
 
17006
# Flag to hardcode \$libdir into a binary during linking.
 
17007
# This must work even if \$libdir does not exist.
 
17008
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17009
 
 
17010
# If ld is used when linking, flag to hardcode \$libdir into
 
17011
# a binary during linking. This must work even if \$libdir does
 
17012
# not exist.
 
17013
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17014
 
 
17015
# Whether we need a single -rpath flag with a separated argument.
 
17016
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17017
 
 
17018
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17019
# resulting binary.
 
17020
hardcode_direct=$hardcode_direct_F77
 
17021
 
 
17022
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17023
# resulting binary.
 
17024
hardcode_minus_L=$hardcode_minus_L_F77
 
17025
 
 
17026
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17027
# the resulting binary.
 
17028
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17029
 
 
17030
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17031
# and all subsequent libraries and executables linked against it.
 
17032
hardcode_automatic=$hardcode_automatic_F77
 
17033
 
 
17034
# Variables whose values should be saved in libtool wrapper scripts and
 
17035
# restored at relink time.
 
17036
variables_saved_for_relink="$variables_saved_for_relink"
 
17037
 
 
17038
# Whether libtool must link a program against all its dependency libraries.
 
17039
link_all_deplibs=$link_all_deplibs_F77
 
17040
 
 
17041
# Compile-time system search path for libraries
 
17042
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17043
 
 
17044
# Run-time system search path for libraries
 
17045
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17046
 
 
17047
# Fix the shell variable \$srcfile for the compiler.
 
17048
fix_srcfile_path=$lt_fix_srcfile_path
 
17049
 
 
17050
# Set to yes if exported symbols are required.
 
17051
always_export_symbols=$always_export_symbols_F77
 
17052
 
 
17053
# The commands to list exported symbols.
 
17054
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17055
 
 
17056
# The commands to extract the exported symbol list from a shared archive.
 
17057
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17058
 
 
17059
# Symbols that should not be listed in the preloaded symbols.
 
17060
exclude_expsyms=$lt_exclude_expsyms_F77
 
17061
 
 
17062
# Symbols that must always be exported.
 
17063
include_expsyms=$lt_include_expsyms_F77
 
17064
 
 
17065
# ### END LIBTOOL TAG CONFIG: $tagname
 
17066
 
 
17067
__EOF__
 
17068
 
 
17069
 
 
17070
else
 
17071
  # If there is no Makefile yet, we rely on a make rule to execute
 
17072
  # `config.status --recheck' to rerun these tests and create the
 
17073
  # libtool script then.
 
17074
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17075
  if test -f "$ltmain_in"; then
 
17076
    test -f Makefile && make "$ltmain"
 
17077
  fi
 
17078
fi
 
17079
 
 
17080
 
 
17081
ac_ext=c
 
17082
ac_cpp='$CPP $CPPFLAGS'
 
17083
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17084
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17085
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17086
 
 
17087
CC="$lt_save_CC"
 
17088
 
 
17089
        else
 
17090
          tagname=""
 
17091
        fi
 
17092
        ;;
 
17093
 
 
17094
      GCJ)
 
17095
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17096
 
 
17097
 
 
17098
# Source file extension for Java test sources.
 
17099
ac_ext=java
 
17100
 
 
17101
# Object file extension for compiled Java test sources.
 
17102
objext=o
 
17103
objext_GCJ=$objext
 
17104
 
 
17105
# Code to be used in simple compile tests
 
17106
lt_simple_compile_test_code="class foo {}"
 
17107
 
 
17108
# Code to be used in simple link tests
 
17109
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17110
 
 
17111
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17112
 
 
17113
# If no C compiler was specified, use CC.
 
17114
LTCC=${LTCC-"$CC"}
 
17115
 
 
17116
# If no C compiler flags were specified, use CFLAGS.
 
17117
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17118
 
 
17119
# Allow CC to be a program name with arguments.
 
17120
compiler=$CC
 
17121
 
 
17122
 
 
17123
# save warnings/boilerplate of simple test code
 
17124
ac_outfile=conftest.$ac_objext
 
17125
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17126
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17127
_lt_compiler_boilerplate=`cat conftest.err`
 
17128
$rm conftest*
 
17129
 
 
17130
ac_outfile=conftest.$ac_objext
 
17131
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17132
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17133
_lt_linker_boilerplate=`cat conftest.err`
 
17134
$rm -r conftest*
 
17135
 
 
17136
 
 
17137
# Allow CC to be a program name with arguments.
 
17138
lt_save_CC="$CC"
 
17139
CC=${GCJ-"gcj"}
 
17140
compiler=$CC
 
17141
compiler_GCJ=$CC
 
17142
for cc_temp in $compiler""; do
 
17143
  case $cc_temp in
 
17144
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17145
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17146
    \-*) ;;
 
17147
    *) break;;
 
17148
  esac
 
17149
done
 
17150
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17151
 
 
17152
 
 
17153
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17154
archive_cmds_need_lc_GCJ=no
 
17155
 
 
17156
old_archive_cmds_GCJ=$old_archive_cmds
 
17157
 
 
17158
 
 
17159
lt_prog_compiler_no_builtin_flag_GCJ=
 
17160
 
 
17161
if test "$GCC" = yes; then
 
17162
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17163
 
 
17164
 
 
17165
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17166
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
17167
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17168
  $as_echo_n "(cached) " >&6
 
17169
else
 
17170
  lt_cv_prog_compiler_rtti_exceptions=no
 
17171
  ac_outfile=conftest.$ac_objext
 
17172
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17173
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
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_rtti_exceptions=yes
 
17195
     fi
 
17196
   fi
 
17197
   $rm conftest*
 
17198
 
 
17199
fi
 
17200
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17201
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17202
 
 
17203
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17204
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17205
else
 
17206
    :
 
17207
fi
 
17208
 
 
17209
fi
 
17210
 
 
17211
lt_prog_compiler_wl_GCJ=
 
17212
lt_prog_compiler_pic_GCJ=
 
17213
lt_prog_compiler_static_GCJ=
 
17214
 
 
17215
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17216
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
17217
 
 
17218
  if test "$GCC" = yes; then
 
17219
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17220
    lt_prog_compiler_static_GCJ='-static'
 
17221
 
 
17222
    case $host_os in
 
17223
      aix*)
 
17224
      # All AIX code is PIC.
 
17225
      if test "$host_cpu" = ia64; then
 
17226
        # AIX 5 now supports IA64 processor
 
17227
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17228
      fi
 
17229
      ;;
 
17230
 
 
17231
    amigaos*)
 
17232
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17233
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17234
      # like `-m68040'.
 
17235
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17236
      ;;
 
17237
 
 
17238
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17239
      # PIC is the default for these OSes.
 
17240
      ;;
 
17241
 
 
17242
    mingw* | cygwin* | pw32* | os2*)
 
17243
      # This hack is so that the source file can tell whether it is being
 
17244
      # built for inclusion in a dll (and should export symbols for example).
 
17245
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17246
      # (--disable-auto-import) libraries
 
17247
 
 
17248
      ;;
 
17249
 
 
17250
    darwin* | rhapsody*)
 
17251
      # PIC is the default on this platform
 
17252
      # Common symbols not allowed in MH_DYLIB files
 
17253
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17254
      ;;
 
17255
 
 
17256
    interix[3-9]*)
 
17257
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17258
      # Instead, we relocate shared libraries at runtime.
 
17259
      ;;
 
17260
 
 
17261
    msdosdjgpp*)
 
17262
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17263
      # on systems that don't support them.
 
17264
      lt_prog_compiler_can_build_shared_GCJ=no
 
17265
      enable_shared=no
 
17266
      ;;
 
17267
 
 
17268
    sysv4*MP*)
 
17269
      if test -d /usr/nec; then
 
17270
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17271
      fi
 
17272
      ;;
 
17273
 
 
17274
    hpux*)
 
17275
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17276
      # not for PA HP-UX.
 
17277
      case $host_cpu in
 
17278
      hppa*64*|ia64*)
 
17279
        # +Z the default
 
17280
        ;;
 
17281
      *)
 
17282
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17283
        ;;
 
17284
      esac
 
17285
      ;;
 
17286
 
 
17287
    *)
 
17288
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17289
      ;;
 
17290
    esac
 
17291
  else
 
17292
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17293
    case $host_os in
 
17294
    aix*)
 
17295
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17296
      if test "$host_cpu" = ia64; then
 
17297
        # AIX 5 now supports IA64 processor
 
17298
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17299
      else
 
17300
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17301
      fi
 
17302
      ;;
 
17303
      darwin*)
 
17304
        # PIC is the default on this platform
 
17305
        # Common symbols not allowed in MH_DYLIB files
 
17306
       case $cc_basename in
 
17307
         xlc*)
 
17308
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17309
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17310
         ;;
 
17311
       esac
 
17312
       ;;
 
17313
 
 
17314
    mingw* | cygwin* | pw32* | os2*)
 
17315
      # This hack is so that the source file can tell whether it is being
 
17316
      # built for inclusion in a dll (and should export symbols for example).
 
17317
 
 
17318
      ;;
 
17319
 
 
17320
    hpux9* | hpux10* | hpux11*)
 
17321
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17322
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17323
      # not for PA HP-UX.
 
17324
      case $host_cpu in
 
17325
      hppa*64*|ia64*)
 
17326
        # +Z the default
 
17327
        ;;
 
17328
      *)
 
17329
        lt_prog_compiler_pic_GCJ='+Z'
 
17330
        ;;
 
17331
      esac
 
17332
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17333
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17334
      ;;
 
17335
 
 
17336
    irix5* | irix6* | nonstopux*)
 
17337
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17338
      # PIC (with -KPIC) is the default.
 
17339
      lt_prog_compiler_static_GCJ='-non_shared'
 
17340
      ;;
 
17341
 
 
17342
    newsos6)
 
17343
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17344
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17345
      ;;
 
17346
 
 
17347
    linux* | k*bsd*-gnu)
 
17348
      case $cc_basename in
 
17349
      icc* | ecc*)
 
17350
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17351
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17352
        lt_prog_compiler_static_GCJ='-static'
 
17353
        ;;
 
17354
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17355
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17356
        # which looks to be a dead project)
 
17357
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17358
        lt_prog_compiler_pic_GCJ='-fpic'
 
17359
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17360
        ;;
 
17361
      ccc*)
 
17362
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17363
        # All Alpha code is PIC.
 
17364
        lt_prog_compiler_static_GCJ='-non_shared'
 
17365
        ;;
 
17366
      *)
 
17367
        case `$CC -V 2>&1 | sed 5q` in
 
17368
        *Sun\ C*)
 
17369
          # Sun C 5.9
 
17370
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17371
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17372
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17373
          ;;
 
17374
        *Sun\ F*)
 
17375
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17376
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17377
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17378
          lt_prog_compiler_wl_GCJ=''
 
17379
          ;;
 
17380
        esac
 
17381
        ;;
 
17382
      esac
 
17383
      ;;
 
17384
 
 
17385
    osf3* | osf4* | osf5*)
 
17386
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17387
      # All OSF/1 code is PIC.
 
17388
      lt_prog_compiler_static_GCJ='-non_shared'
 
17389
      ;;
 
17390
 
 
17391
    rdos*)
 
17392
      lt_prog_compiler_static_GCJ='-non_shared'
 
17393
      ;;
 
17394
 
 
17395
    solaris*)
 
17396
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17397
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17398
      case $cc_basename in
 
17399
      f77* | f90* | f95*)
 
17400
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17401
      *)
 
17402
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17403
      esac
 
17404
      ;;
 
17405
 
 
17406
    sunos4*)
 
17407
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17408
      lt_prog_compiler_pic_GCJ='-PIC'
 
17409
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17410
      ;;
 
17411
 
 
17412
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17413
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17414
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17415
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17416
      ;;
 
17417
 
 
17418
    sysv4*MP*)
 
17419
      if test -d /usr/nec ;then
 
17420
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17421
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17422
      fi
 
17423
      ;;
 
17424
 
 
17425
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17426
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17427
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17428
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17429
      ;;
 
17430
 
 
17431
    unicos*)
 
17432
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17433
      lt_prog_compiler_can_build_shared_GCJ=no
 
17434
      ;;
 
17435
 
 
17436
    uts4*)
 
17437
      lt_prog_compiler_pic_GCJ='-pic'
 
17438
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17439
      ;;
 
17440
 
 
17441
    *)
 
17442
      lt_prog_compiler_can_build_shared_GCJ=no
 
17443
      ;;
 
17444
    esac
 
17445
  fi
 
17446
 
 
17447
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17448
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17449
 
 
17450
#
 
17451
# Check to make sure the PIC flag actually works.
 
17452
#
 
17453
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17454
 
 
17455
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17456
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17457
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17458
  $as_echo_n "(cached) " >&6
 
17459
else
 
17460
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17461
  ac_outfile=conftest.$ac_objext
 
17462
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17463
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17464
   # Insert the option either (1) after the last *FLAGS variable, or
 
17465
   # (2) before a word containing "conftest.", or (3) at the end.
 
17466
   # Note that $ac_compile itself does not contain backslashes and begins
 
17467
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17468
   # The option is referenced via a variable to avoid confusing sed.
 
17469
   lt_compile=`echo "$ac_compile" | $SED \
 
17470
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17471
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17472
   -e 's:$: $lt_compiler_flag:'`
 
17473
   (eval echo "\"\$as_me:17473: $lt_compile\"" >&5)
 
17474
   (eval "$lt_compile" 2>conftest.err)
 
17475
   ac_status=$?
 
17476
   cat conftest.err >&5
 
17477
   echo "$as_me:17477: \$? = $ac_status" >&5
 
17478
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17479
     # The compiler can only warn and ignore the option if not recognized
 
17480
     # So say no if there are warnings other than the usual output.
 
17481
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17482
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17483
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17484
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17485
     fi
 
17486
   fi
 
17487
   $rm conftest*
 
17488
 
 
17489
fi
 
17490
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17491
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17492
 
 
17493
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17494
    case $lt_prog_compiler_pic_GCJ in
 
17495
     "" | " "*) ;;
 
17496
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17497
     esac
 
17498
else
 
17499
    lt_prog_compiler_pic_GCJ=
 
17500
     lt_prog_compiler_can_build_shared_GCJ=no
 
17501
fi
 
17502
 
 
17503
fi
 
17504
case $host_os in
 
17505
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17506
  *djgpp*)
 
17507
    lt_prog_compiler_pic_GCJ=
 
17508
    ;;
 
17509
  *)
 
17510
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17511
    ;;
 
17512
esac
 
17513
 
 
17514
#
 
17515
# Check to make sure the static flag actually works.
 
17516
#
 
17517
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17518
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17519
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17520
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17521
  $as_echo_n "(cached) " >&6
 
17522
else
 
17523
  lt_cv_prog_compiler_static_works_GCJ=no
 
17524
   save_LDFLAGS="$LDFLAGS"
 
17525
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17526
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17527
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17528
     # The linker can only warn and ignore the option if not recognized
 
17529
     # So say no if there are warnings
 
17530
     if test -s conftest.err; then
 
17531
       # Append any errors to the config.log.
 
17532
       cat conftest.err 1>&5
 
17533
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17534
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17535
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17536
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17537
       fi
 
17538
     else
 
17539
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17540
     fi
 
17541
   fi
 
17542
   $rm -r conftest*
 
17543
   LDFLAGS="$save_LDFLAGS"
 
17544
 
 
17545
fi
 
17546
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17547
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17548
 
 
17549
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17550
    :
 
17551
else
 
17552
    lt_prog_compiler_static_GCJ=
 
17553
fi
 
17554
 
 
17555
 
 
17556
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17557
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17558
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17559
  $as_echo_n "(cached) " >&6
 
17560
else
 
17561
  lt_cv_prog_compiler_c_o_GCJ=no
 
17562
   $rm -r conftest 2>/dev/null
 
17563
   mkdir conftest
 
17564
   cd conftest
 
17565
   mkdir out
 
17566
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17567
 
 
17568
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17569
   # Insert the option either (1) after the last *FLAGS variable, or
 
17570
   # (2) before a word containing "conftest.", or (3) at the end.
 
17571
   # Note that $ac_compile itself does not contain backslashes and begins
 
17572
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17573
   lt_compile=`echo "$ac_compile" | $SED \
 
17574
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17575
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17576
   -e 's:$: $lt_compiler_flag:'`
 
17577
   (eval echo "\"\$as_me:17577: $lt_compile\"" >&5)
 
17578
   (eval "$lt_compile" 2>out/conftest.err)
 
17579
   ac_status=$?
 
17580
   cat out/conftest.err >&5
 
17581
   echo "$as_me:17581: \$? = $ac_status" >&5
 
17582
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17583
   then
 
17584
     # The compiler can only warn and ignore the option if not recognized
 
17585
     # So say no if there are warnings
 
17586
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17587
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17588
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17589
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17590
     fi
 
17591
   fi
 
17592
   chmod u+w . 2>&5
 
17593
   $rm conftest*
 
17594
   # SGI C++ compiler will create directory out/ii_files/ for
 
17595
   # template instantiation
 
17596
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17597
   $rm out/* && rmdir out
 
17598
   cd ..
 
17599
   rmdir conftest
 
17600
   $rm conftest*
 
17601
 
 
17602
fi
 
17603
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17604
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17605
 
 
17606
 
 
17607
hard_links="nottested"
 
17608
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17609
  # do not overwrite the value of need_locks provided by the user
 
17610
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17611
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17612
  hard_links=yes
 
17613
  $rm conftest*
 
17614
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17615
  touch conftest.a
 
17616
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17617
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17618
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17619
$as_echo "$hard_links" >&6; }
 
17620
  if test "$hard_links" = no; then
 
17621
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17622
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17623
    need_locks=warn
 
17624
  fi
 
17625
else
 
17626
  need_locks=no
 
17627
fi
 
17628
 
 
17629
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17630
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17631
 
 
17632
  runpath_var=
 
17633
  allow_undefined_flag_GCJ=
 
17634
  enable_shared_with_static_runtimes_GCJ=no
 
17635
  archive_cmds_GCJ=
 
17636
  archive_expsym_cmds_GCJ=
 
17637
  old_archive_From_new_cmds_GCJ=
 
17638
  old_archive_from_expsyms_cmds_GCJ=
 
17639
  export_dynamic_flag_spec_GCJ=
 
17640
  whole_archive_flag_spec_GCJ=
 
17641
  thread_safe_flag_spec_GCJ=
 
17642
  hardcode_libdir_flag_spec_GCJ=
 
17643
  hardcode_libdir_flag_spec_ld_GCJ=
 
17644
  hardcode_libdir_separator_GCJ=
 
17645
  hardcode_direct_GCJ=no
 
17646
  hardcode_minus_L_GCJ=no
 
17647
  hardcode_shlibpath_var_GCJ=unsupported
 
17648
  link_all_deplibs_GCJ=unknown
 
17649
  hardcode_automatic_GCJ=no
 
17650
  module_cmds_GCJ=
 
17651
  module_expsym_cmds_GCJ=
 
17652
  always_export_symbols_GCJ=no
 
17653
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17654
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17655
  # included in the symbol list
 
17656
  include_expsyms_GCJ=
 
17657
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17658
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17659
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17660
  # as well as any symbol that contains `d'.
 
17661
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17662
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17663
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17664
  # the symbol is explicitly referenced.  Since portable code cannot
 
17665
  # rely on this symbol name, it's probably fine to never include it in
 
17666
  # preloaded symbol tables.
 
17667
  # Exclude shared library initialization/finalization symbols.
 
17668
  extract_expsyms_cmds=
 
17669
  # Just being paranoid about ensuring that cc_basename is set.
 
17670
  for cc_temp in $compiler""; do
 
17671
  case $cc_temp in
 
17672
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17673
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17674
    \-*) ;;
 
17675
    *) break;;
 
17676
  esac
 
17677
done
 
17678
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17679
 
 
17680
  case $host_os in
 
17681
  cygwin* | mingw* | pw32*)
 
17682
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17683
    # When not using gcc, we currently assume that we are using
 
17684
    # Microsoft Visual C++.
 
17685
    if test "$GCC" != yes; then
 
17686
      with_gnu_ld=no
 
17687
    fi
 
17688
    ;;
 
17689
  interix*)
 
17690
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17691
    with_gnu_ld=yes
 
17692
    ;;
 
17693
  openbsd*)
 
17694
    with_gnu_ld=no
 
17695
    ;;
 
17696
  esac
 
17697
 
 
17698
  ld_shlibs_GCJ=yes
 
17699
  if test "$with_gnu_ld" = yes; then
 
17700
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17701
    wlarc='${wl}'
 
17702
 
 
17703
    # Set some defaults for GNU ld with shared library support. These
 
17704
    # are reset later if shared libraries are not supported. Putting them
 
17705
    # here allows them to be overridden if necessary.
 
17706
    runpath_var=LD_RUN_PATH
 
17707
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17708
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17709
    # ancient GNU ld didn't support --whole-archive et. al.
 
17710
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17711
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17712
      else
 
17713
        whole_archive_flag_spec_GCJ=
 
17714
    fi
 
17715
    supports_anon_versioning=no
 
17716
    case `$LD -v 2>/dev/null` in
 
17717
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17718
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17719
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17720
      *\ 2.11.*) ;; # other 2.11 versions
 
17721
      *) supports_anon_versioning=yes ;;
 
17722
    esac
 
17723
 
 
17724
    # See if GNU ld supports shared libraries.
 
17725
    case $host_os in
 
17726
    aix[3-9]*)
 
17727
      # On AIX/PPC, the GNU linker is very broken
 
17728
      if test "$host_cpu" != ia64; then
 
17729
        ld_shlibs_GCJ=no
 
17730
        cat <<EOF 1>&2
 
17731
 
 
17732
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17733
*** to be unable to reliably create shared libraries on AIX.
 
17734
*** Therefore, libtool is disabling shared libraries support.  If you
 
17735
*** really care for shared libraries, you may want to modify your PATH
 
17736
*** so that a non-GNU linker is found, and then restart.
 
17737
 
 
17738
EOF
 
17739
      fi
 
17740
      ;;
 
17741
 
 
17742
    amigaos*)
 
17743
      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)'
 
17744
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17745
      hardcode_minus_L_GCJ=yes
 
17746
 
 
17747
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17748
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17749
      # to version 4, is to share data among multiple programs linked
 
17750
      # with the same dynamic library.  Since this doesn't match the
 
17751
      # behavior of shared libraries on other platforms, we can't use
 
17752
      # them.
 
17753
      ld_shlibs_GCJ=no
 
17754
      ;;
 
17755
 
 
17756
    beos*)
 
17757
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17758
        allow_undefined_flag_GCJ=unsupported
 
17759
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17760
        # support --undefined.  This deserves some investigation.  FIXME
 
17761
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17762
      else
 
17763
        ld_shlibs_GCJ=no
 
17764
      fi
 
17765
      ;;
 
17766
 
 
17767
    cygwin* | mingw* | pw32*)
 
17768
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17769
      # as there is no search path for DLLs.
 
17770
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17771
      allow_undefined_flag_GCJ=unsupported
 
17772
      always_export_symbols_GCJ=no
 
17773
      enable_shared_with_static_runtimes_GCJ=yes
 
17774
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17775
 
 
17776
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17777
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17778
        # If the export-symbols file already is a .def file (1st line
 
17779
        # is EXPORTS), use it as is; otherwise, prepend...
 
17780
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17781
          cp $export_symbols $output_objdir/$soname.def;
 
17782
        else
 
17783
          echo EXPORTS > $output_objdir/$soname.def;
 
17784
          cat $export_symbols >> $output_objdir/$soname.def;
 
17785
        fi~
 
17786
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17787
      else
 
17788
        ld_shlibs_GCJ=no
 
17789
      fi
 
17790
      ;;
 
17791
 
 
17792
    interix[3-9]*)
 
17793
      hardcode_direct_GCJ=no
 
17794
      hardcode_shlibpath_var_GCJ=no
 
17795
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17796
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17797
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17798
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17799
      # default) and relocated if they conflict, which is a slow very memory
 
17800
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17801
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17802
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17803
      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'
 
17804
      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'
 
17805
      ;;
 
17806
 
 
17807
    gnu* | linux* | k*bsd*-gnu)
 
17808
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17809
        tmp_addflag=
 
17810
        case $cc_basename,$host_cpu in
 
17811
        pgcc*)                          # Portland Group C compiler
 
17812
          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'
 
17813
          tmp_addflag=' $pic_flag'
 
17814
          ;;
 
17815
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17816
          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'
 
17817
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17818
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17819
          tmp_addflag=' -i_dynamic' ;;
 
17820
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17821
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17822
        ifc* | ifort*)                  # Intel Fortran compiler
 
17823
          tmp_addflag=' -nofor_main' ;;
 
17824
        esac
 
17825
        case `$CC -V 2>&1 | sed 5q` in
 
17826
        *Sun\ C*)                       # Sun C 5.9
 
17827
          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'
 
17828
          tmp_sharedflag='-G' ;;
 
17829
        *Sun\ F*)                       # Sun Fortran 8.3
 
17830
          tmp_sharedflag='-G' ;;
 
17831
        *)
 
17832
          tmp_sharedflag='-shared' ;;
 
17833
        esac
 
17834
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17835
 
 
17836
        if test $supports_anon_versioning = yes; then
 
17837
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17838
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17839
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17840
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17841
        fi
 
17842
      else
 
17843
        ld_shlibs_GCJ=no
 
17844
      fi
 
17845
      ;;
 
17846
 
 
17847
    netbsd*)
 
17848
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17849
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17850
        wlarc=
 
17851
      else
 
17852
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17853
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17854
      fi
 
17855
      ;;
 
17856
 
 
17857
    solaris*)
 
17858
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17859
        ld_shlibs_GCJ=no
 
17860
        cat <<EOF 1>&2
 
17861
 
 
17862
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17863
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17864
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17865
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17866
*** your PATH or compiler configuration so that the native linker is
 
17867
*** used, and then restart.
 
17868
 
 
17869
EOF
 
17870
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17871
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17872
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17873
      else
 
17874
        ld_shlibs_GCJ=no
 
17875
      fi
 
17876
      ;;
 
17877
 
 
17878
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17879
      case `$LD -v 2>&1` in
 
17880
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17881
        ld_shlibs_GCJ=no
 
17882
        cat <<_LT_EOF 1>&2
 
17883
 
 
17884
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17885
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17886
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17887
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17888
*** your PATH or compiler configuration so that the native linker is
 
17889
*** used, and then restart.
 
17890
 
 
17891
_LT_EOF
 
17892
        ;;
 
17893
        *)
 
17894
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17895
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17896
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17897
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17898
          else
 
17899
            ld_shlibs_GCJ=no
 
17900
          fi
 
17901
        ;;
 
17902
      esac
 
17903
      ;;
 
17904
 
 
17905
    sunos4*)
 
17906
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17907
      wlarc=
 
17908
      hardcode_direct_GCJ=yes
 
17909
      hardcode_shlibpath_var_GCJ=no
 
17910
      ;;
 
17911
 
 
17912
    *)
 
17913
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17914
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17915
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17916
      else
 
17917
        ld_shlibs_GCJ=no
 
17918
      fi
 
17919
      ;;
 
17920
    esac
 
17921
 
 
17922
    if test "$ld_shlibs_GCJ" = no; then
 
17923
      runpath_var=
 
17924
      hardcode_libdir_flag_spec_GCJ=
 
17925
      export_dynamic_flag_spec_GCJ=
 
17926
      whole_archive_flag_spec_GCJ=
 
17927
    fi
 
17928
  else
 
17929
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17930
    case $host_os in
 
17931
    aix3*)
 
17932
      allow_undefined_flag_GCJ=unsupported
 
17933
      always_export_symbols_GCJ=yes
 
17934
      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'
 
17935
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17936
      # are no directories specified by -L.
 
17937
      hardcode_minus_L_GCJ=yes
 
17938
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17939
        # Neither direct hardcoding nor static linking is supported with a
 
17940
        # broken collect2.
 
17941
        hardcode_direct_GCJ=unsupported
 
17942
      fi
 
17943
      ;;
 
17944
 
 
17945
    aix[4-9]*)
 
17946
      if test "$host_cpu" = ia64; then
 
17947
        # On IA64, the linker does run time linking by default, so we don't
 
17948
        # have to do anything special.
 
17949
        aix_use_runtimelinking=no
 
17950
        exp_sym_flag='-Bexport'
 
17951
        no_entry_flag=""
 
17952
      else
 
17953
        # If we're using GNU nm, then we don't want the "-C" option.
 
17954
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17955
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17956
          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'
 
17957
        else
 
17958
          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'
 
17959
        fi
 
17960
        aix_use_runtimelinking=no
 
17961
 
 
17962
        # Test if we are trying to use run time linking or normal
 
17963
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17964
        # need to do runtime linking.
 
17965
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17966
          for ld_flag in $LDFLAGS; do
 
17967
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17968
            aix_use_runtimelinking=yes
 
17969
            break
 
17970
          fi
 
17971
          done
 
17972
          ;;
 
17973
        esac
 
17974
 
 
17975
        exp_sym_flag='-bexport'
 
17976
        no_entry_flag='-bnoentry'
 
17977
      fi
 
17978
 
 
17979
      # When large executables or shared objects are built, AIX ld can
 
17980
      # have problems creating the table of contents.  If linking a library
 
17981
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17982
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17983
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17984
 
 
17985
      archive_cmds_GCJ=''
 
17986
      hardcode_direct_GCJ=yes
 
17987
      hardcode_libdir_separator_GCJ=':'
 
17988
      link_all_deplibs_GCJ=yes
 
17989
 
 
17990
      if test "$GCC" = yes; then
 
17991
        case $host_os in aix4.[012]|aix4.[012].*)
 
17992
        # We only want to do this on AIX 4.2 and lower, the check
 
17993
        # below for broken collect2 doesn't work under 4.3+
 
17994
          collect2name=`${CC} -print-prog-name=collect2`
 
17995
          if test -f "$collect2name" && \
 
17996
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17997
          then
 
17998
          # We have reworked collect2
 
17999
          :
 
18000
          else
 
18001
          # We have old collect2
 
18002
          hardcode_direct_GCJ=unsupported
 
18003
          # It fails to find uninstalled libraries when the uninstalled
 
18004
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18005
          # to unsupported forces relinking
 
18006
          hardcode_minus_L_GCJ=yes
 
18007
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18008
          hardcode_libdir_separator_GCJ=
 
18009
          fi
 
18010
          ;;
 
18011
        esac
 
18012
        shared_flag='-shared'
 
18013
        if test "$aix_use_runtimelinking" = yes; then
 
18014
          shared_flag="$shared_flag "'${wl}-G'
 
18015
        fi
 
18016
      else
 
18017
        # not using gcc
 
18018
        if test "$host_cpu" = ia64; then
 
18019
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18020
        # chokes on -Wl,-G. The following line is correct:
 
18021
          shared_flag='-G'
 
18022
        else
 
18023
          if test "$aix_use_runtimelinking" = yes; then
 
18024
            shared_flag='${wl}-G'
 
18025
          else
 
18026
            shared_flag='${wl}-bM:SRE'
 
18027
          fi
 
18028
        fi
 
18029
      fi
 
18030
 
 
18031
      # It seems that -bexpall does not export symbols beginning with
 
18032
      # underscore (_), so it is better to generate a list of symbols to export.
 
18033
      always_export_symbols_GCJ=yes
 
18034
      if test "$aix_use_runtimelinking" = yes; then
 
18035
        # Warning - without using the other runtime loading flags (-brtl),
 
18036
        # -berok will link without error, but may produce a broken library.
 
18037
        allow_undefined_flag_GCJ='-berok'
 
18038
       # Determine the default libpath from the value encoded in an empty executable.
 
18039
       cat >conftest.$ac_ext <<_ACEOF
 
18040
/* confdefs.h.  */
 
18041
_ACEOF
 
18042
cat confdefs.h >>conftest.$ac_ext
 
18043
cat >>conftest.$ac_ext <<_ACEOF
 
18044
/* end confdefs.h.  */
 
18045
 
 
18046
int
 
18047
main ()
 
18048
{
 
18049
 
 
18050
  ;
 
18051
  return 0;
 
18052
}
 
18053
_ACEOF
 
18054
rm -f conftest.$ac_objext conftest$ac_exeext
 
18055
if { (ac_try="$ac_link"
 
18056
case "(($ac_try" in
 
18057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18058
  *) ac_try_echo=$ac_try;;
 
18059
esac
 
18060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18061
$as_echo "$ac_try_echo") >&5
 
18062
  (eval "$ac_link") 2>conftest.er1
 
18063
  ac_status=$?
 
18064
  grep -v '^ *+' conftest.er1 >conftest.err
 
18065
  rm -f conftest.er1
 
18066
  cat conftest.err >&5
 
18067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18068
  (exit $ac_status); } && {
 
18069
         test -z "$ac_c_werror_flag" ||
 
18070
         test ! -s conftest.err
 
18071
       } && test -s conftest$ac_exeext && {
 
18072
         test "$cross_compiling" = yes ||
 
18073
         $as_test_x conftest$ac_exeext
 
18074
       }; then
 
18075
 
 
18076
lt_aix_libpath_sed='
 
18077
    /Import File Strings/,/^$/ {
 
18078
        /^0/ {
 
18079
            s/^0  *\(.*\)$/\1/
 
18080
            p
 
18081
        }
 
18082
    }'
 
18083
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18084
# Check for a 64-bit object if we didn't find anything.
 
18085
if test -z "$aix_libpath"; then
 
18086
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18087
fi
 
18088
else
 
18089
  $as_echo "$as_me: failed program was:" >&5
 
18090
sed 's/^/| /' conftest.$ac_ext >&5
 
18091
 
 
18092
 
 
18093
fi
 
18094
 
 
18095
rm -rf conftest.dSYM
 
18096
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18097
      conftest$ac_exeext conftest.$ac_ext
 
18098
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18099
 
 
18100
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18101
        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"
 
18102
       else
 
18103
        if test "$host_cpu" = ia64; then
 
18104
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18105
          allow_undefined_flag_GCJ="-z nodefs"
 
18106
          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"
 
18107
        else
 
18108
         # Determine the default libpath from the value encoded in an empty executable.
 
18109
         cat >conftest.$ac_ext <<_ACEOF
 
18110
/* confdefs.h.  */
 
18111
_ACEOF
 
18112
cat confdefs.h >>conftest.$ac_ext
 
18113
cat >>conftest.$ac_ext <<_ACEOF
 
18114
/* end confdefs.h.  */
 
18115
 
 
18116
int
 
18117
main ()
 
18118
{
 
18119
 
 
18120
  ;
 
18121
  return 0;
 
18122
}
 
18123
_ACEOF
 
18124
rm -f conftest.$ac_objext conftest$ac_exeext
 
18125
if { (ac_try="$ac_link"
 
18126
case "(($ac_try" in
 
18127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18128
  *) ac_try_echo=$ac_try;;
 
18129
esac
 
18130
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18131
$as_echo "$ac_try_echo") >&5
 
18132
  (eval "$ac_link") 2>conftest.er1
 
18133
  ac_status=$?
 
18134
  grep -v '^ *+' conftest.er1 >conftest.err
 
18135
  rm -f conftest.er1
 
18136
  cat conftest.err >&5
 
18137
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18138
  (exit $ac_status); } && {
 
18139
         test -z "$ac_c_werror_flag" ||
 
18140
         test ! -s conftest.err
 
18141
       } && test -s conftest$ac_exeext && {
 
18142
         test "$cross_compiling" = yes ||
 
18143
         $as_test_x conftest$ac_exeext
 
18144
       }; then
 
18145
 
 
18146
lt_aix_libpath_sed='
 
18147
    /Import File Strings/,/^$/ {
 
18148
        /^0/ {
 
18149
            s/^0  *\(.*\)$/\1/
 
18150
            p
 
18151
        }
 
18152
    }'
 
18153
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18154
# Check for a 64-bit object if we didn't find anything.
 
18155
if test -z "$aix_libpath"; then
 
18156
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18157
fi
 
18158
else
 
18159
  $as_echo "$as_me: failed program was:" >&5
 
18160
sed 's/^/| /' conftest.$ac_ext >&5
 
18161
 
 
18162
 
 
18163
fi
 
18164
 
 
18165
rm -rf conftest.dSYM
 
18166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18167
      conftest$ac_exeext conftest.$ac_ext
 
18168
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18169
 
 
18170
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18171
          # Warning - without using the other run time loading flags,
 
18172
          # -berok will link without error, but may produce a broken library.
 
18173
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18174
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18175
          # Exported symbols can be pulled into shared objects from archives
 
18176
          whole_archive_flag_spec_GCJ='$convenience'
 
18177
          archive_cmds_need_lc_GCJ=yes
 
18178
          # This is similar to how AIX traditionally builds its shared libraries.
 
18179
          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'
 
18180
        fi
 
18181
      fi
 
18182
      ;;
 
18183
 
 
18184
    amigaos*)
 
18185
      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)'
 
18186
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18187
      hardcode_minus_L_GCJ=yes
 
18188
      # see comment about different semantics on the GNU ld section
 
18189
      ld_shlibs_GCJ=no
 
18190
      ;;
 
18191
 
 
18192
    bsdi[45]*)
 
18193
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18194
      ;;
 
18195
 
 
18196
    cygwin* | mingw* | pw32*)
 
18197
      # When not using gcc, we currently assume that we are using
 
18198
      # Microsoft Visual C++.
 
18199
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18200
      # no search path for DLLs.
 
18201
      hardcode_libdir_flag_spec_GCJ=' '
 
18202
      allow_undefined_flag_GCJ=unsupported
 
18203
      # Tell ltmain to make .lib files, not .a files.
 
18204
      libext=lib
 
18205
      # Tell ltmain to make .dll files, not .so files.
 
18206
      shrext_cmds=".dll"
 
18207
      # FIXME: Setting linknames here is a bad hack.
 
18208
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18209
      # The linker will automatically build a .lib file if we build a DLL.
 
18210
      old_archive_From_new_cmds_GCJ='true'
 
18211
      # FIXME: Should let the user specify the lib program.
 
18212
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18213
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18214
      enable_shared_with_static_runtimes_GCJ=yes
 
18215
      ;;
 
18216
 
 
18217
    darwin* | rhapsody*)
 
18218
      case $host_os in
 
18219
        rhapsody* | darwin1.[012])
 
18220
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18221
         ;;
 
18222
       *) # Darwin 1.3 on
 
18223
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18224
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18225
         else
 
18226
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18227
             10.[012])
 
18228
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18229
               ;;
 
18230
             10.*)
 
18231
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18232
               ;;
 
18233
           esac
 
18234
         fi
 
18235
         ;;
 
18236
      esac
 
18237
      archive_cmds_need_lc_GCJ=no
 
18238
      hardcode_direct_GCJ=no
 
18239
      hardcode_automatic_GCJ=yes
 
18240
      hardcode_shlibpath_var_GCJ=unsupported
 
18241
      whole_archive_flag_spec_GCJ=''
 
18242
      link_all_deplibs_GCJ=yes
 
18243
    if test "$GCC" = yes ; then
 
18244
        output_verbose_link_cmd='echo'
 
18245
        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}"
 
18246
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18247
        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}"
 
18248
        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}"
 
18249
    else
 
18250
      case $cc_basename in
 
18251
        xlc*)
 
18252
         output_verbose_link_cmd='echo'
 
18253
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18254
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18255
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18256
         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}'
 
18257
          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}'
 
18258
          ;;
 
18259
       *)
 
18260
         ld_shlibs_GCJ=no
 
18261
          ;;
 
18262
      esac
 
18263
    fi
 
18264
      ;;
 
18265
 
 
18266
    dgux*)
 
18267
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18268
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18269
      hardcode_shlibpath_var_GCJ=no
 
18270
      ;;
 
18271
 
 
18272
    freebsd1*)
 
18273
      ld_shlibs_GCJ=no
 
18274
      ;;
 
18275
 
 
18276
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18277
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18278
    # does not break anything, and helps significantly (at the cost of a little
 
18279
    # extra space).
 
18280
    freebsd2.2*)
 
18281
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18282
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18283
      hardcode_direct_GCJ=yes
 
18284
      hardcode_shlibpath_var_GCJ=no
 
18285
      ;;
 
18286
 
 
18287
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18288
    freebsd2*)
 
18289
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18290
      hardcode_direct_GCJ=yes
 
18291
      hardcode_minus_L_GCJ=yes
 
18292
      hardcode_shlibpath_var_GCJ=no
 
18293
      ;;
 
18294
 
 
18295
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18296
    freebsd* | dragonfly*)
 
18297
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18298
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18299
      hardcode_direct_GCJ=yes
 
18300
      hardcode_shlibpath_var_GCJ=no
 
18301
      ;;
 
18302
 
 
18303
    hpux9*)
 
18304
      if test "$GCC" = yes; then
 
18305
        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'
 
18306
      else
 
18307
        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'
 
18308
      fi
 
18309
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18310
      hardcode_libdir_separator_GCJ=:
 
18311
      hardcode_direct_GCJ=yes
 
18312
 
 
18313
      # hardcode_minus_L: Not really in the search PATH,
 
18314
      # but as the default location of the library.
 
18315
      hardcode_minus_L_GCJ=yes
 
18316
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18317
      ;;
 
18318
 
 
18319
    hpux10*)
 
18320
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18321
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18322
      else
 
18323
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18324
      fi
 
18325
      if test "$with_gnu_ld" = no; then
 
18326
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18327
        hardcode_libdir_separator_GCJ=:
 
18328
 
 
18329
        hardcode_direct_GCJ=yes
 
18330
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18331
 
 
18332
        # hardcode_minus_L: Not really in the search PATH,
 
18333
        # but as the default location of the library.
 
18334
        hardcode_minus_L_GCJ=yes
 
18335
      fi
 
18336
      ;;
 
18337
 
 
18338
    hpux11*)
 
18339
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18340
        case $host_cpu in
 
18341
        hppa*64*)
 
18342
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18343
          ;;
 
18344
        ia64*)
 
18345
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18346
          ;;
 
18347
        *)
 
18348
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18349
          ;;
 
18350
        esac
 
18351
      else
 
18352
        case $host_cpu in
 
18353
        hppa*64*)
 
18354
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18355
          ;;
 
18356
        ia64*)
 
18357
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18358
          ;;
 
18359
        *)
 
18360
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18361
          ;;
 
18362
        esac
 
18363
      fi
 
18364
      if test "$with_gnu_ld" = no; then
 
18365
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18366
        hardcode_libdir_separator_GCJ=:
 
18367
 
 
18368
        case $host_cpu in
 
18369
        hppa*64*|ia64*)
 
18370
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18371
          hardcode_direct_GCJ=no
 
18372
          hardcode_shlibpath_var_GCJ=no
 
18373
          ;;
 
18374
        *)
 
18375
          hardcode_direct_GCJ=yes
 
18376
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18377
 
 
18378
          # hardcode_minus_L: Not really in the search PATH,
 
18379
          # but as the default location of the library.
 
18380
          hardcode_minus_L_GCJ=yes
 
18381
          ;;
 
18382
        esac
 
18383
      fi
 
18384
      ;;
 
18385
 
 
18386
    irix5* | irix6* | nonstopux*)
 
18387
      if test "$GCC" = yes; then
 
18388
        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'
 
18389
      else
 
18390
        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'
 
18391
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18392
      fi
 
18393
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18394
      hardcode_libdir_separator_GCJ=:
 
18395
      link_all_deplibs_GCJ=yes
 
18396
      ;;
 
18397
 
 
18398
    netbsd*)
 
18399
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18400
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18401
      else
 
18402
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18403
      fi
 
18404
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18405
      hardcode_direct_GCJ=yes
 
18406
      hardcode_shlibpath_var_GCJ=no
 
18407
      ;;
 
18408
 
 
18409
    newsos6)
 
18410
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18411
      hardcode_direct_GCJ=yes
 
18412
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18413
      hardcode_libdir_separator_GCJ=:
 
18414
      hardcode_shlibpath_var_GCJ=no
 
18415
      ;;
 
18416
 
 
18417
    openbsd*)
 
18418
      if test -f /usr/libexec/ld.so; then
 
18419
        hardcode_direct_GCJ=yes
 
18420
        hardcode_shlibpath_var_GCJ=no
 
18421
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18422
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18423
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18424
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18425
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18426
        else
 
18427
          case $host_os in
 
18428
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18429
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18430
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18431
             ;;
 
18432
           *)
 
18433
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18434
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18435
             ;;
 
18436
          esac
 
18437
        fi
 
18438
      else
 
18439
        ld_shlibs_GCJ=no
 
18440
      fi
 
18441
      ;;
 
18442
 
 
18443
    os2*)
 
18444
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18445
      hardcode_minus_L_GCJ=yes
 
18446
      allow_undefined_flag_GCJ=unsupported
 
18447
      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'
 
18448
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18449
      ;;
 
18450
 
 
18451
    osf3*)
 
18452
      if test "$GCC" = yes; then
 
18453
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18454
        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'
 
18455
      else
 
18456
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18457
        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'
 
18458
      fi
 
18459
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18460
      hardcode_libdir_separator_GCJ=:
 
18461
      ;;
 
18462
 
 
18463
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18464
      if test "$GCC" = yes; then
 
18465
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18466
        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'
 
18467
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18468
      else
 
18469
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18470
        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'
 
18471
        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~
 
18472
        $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'
 
18473
 
 
18474
        # Both c and cxx compiler support -rpath directly
 
18475
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18476
      fi
 
18477
      hardcode_libdir_separator_GCJ=:
 
18478
      ;;
 
18479
 
 
18480
    solaris*)
 
18481
      no_undefined_flag_GCJ=' -z text'
 
18482
      if test "$GCC" = yes; then
 
18483
        wlarc='${wl}'
 
18484
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18485
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18486
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18487
      else
 
18488
        wlarc=''
 
18489
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18490
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18491
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18492
      fi
 
18493
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18494
      hardcode_shlibpath_var_GCJ=no
 
18495
      case $host_os in
 
18496
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18497
      *)
 
18498
        # The compiler driver will combine and reorder linker options,
 
18499
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18500
        # but is careful enough not to reorder.
 
18501
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18502
        if test "$GCC" = yes; then
 
18503
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18504
        else
 
18505
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18506
        fi
 
18507
        ;;
 
18508
      esac
 
18509
      link_all_deplibs_GCJ=yes
 
18510
      ;;
 
18511
 
 
18512
    sunos4*)
 
18513
      if test "x$host_vendor" = xsequent; then
 
18514
        # Use $CC to link under sequent, because it throws in some extra .o
 
18515
        # files that make .init and .fini sections work.
 
18516
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18517
      else
 
18518
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18519
      fi
 
18520
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18521
      hardcode_direct_GCJ=yes
 
18522
      hardcode_minus_L_GCJ=yes
 
18523
      hardcode_shlibpath_var_GCJ=no
 
18524
      ;;
 
18525
 
 
18526
    sysv4)
 
18527
      case $host_vendor in
 
18528
        sni)
 
18529
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18530
          hardcode_direct_GCJ=yes # is this really true???
 
18531
        ;;
 
18532
        siemens)
 
18533
          ## LD is ld it makes a PLAMLIB
 
18534
          ## CC just makes a GrossModule.
 
18535
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18536
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18537
          hardcode_direct_GCJ=no
 
18538
        ;;
 
18539
        motorola)
 
18540
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18541
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18542
        ;;
 
18543
      esac
 
18544
      runpath_var='LD_RUN_PATH'
 
18545
      hardcode_shlibpath_var_GCJ=no
 
18546
      ;;
 
18547
 
 
18548
    sysv4.3*)
 
18549
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18550
      hardcode_shlibpath_var_GCJ=no
 
18551
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18552
      ;;
 
18553
 
 
18554
    sysv4*MP*)
 
18555
      if test -d /usr/nec; then
 
18556
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18557
        hardcode_shlibpath_var_GCJ=no
 
18558
        runpath_var=LD_RUN_PATH
 
18559
        hardcode_runpath_var=yes
 
18560
        ld_shlibs_GCJ=yes
 
18561
      fi
 
18562
      ;;
 
18563
 
 
18564
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18565
      no_undefined_flag_GCJ='${wl}-z,text'
 
18566
      archive_cmds_need_lc_GCJ=no
 
18567
      hardcode_shlibpath_var_GCJ=no
 
18568
      runpath_var='LD_RUN_PATH'
 
18569
 
 
18570
      if test "$GCC" = yes; then
 
18571
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18572
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18573
      else
 
18574
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18575
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18576
      fi
 
18577
      ;;
 
18578
 
 
18579
    sysv5* | sco3.2v5* | sco5v6*)
 
18580
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18581
      # link with -lc, and that would cause any symbols used from libc to
 
18582
      # always be unresolved, which means just about no library would
 
18583
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18584
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18585
      # as -z defs.
 
18586
      no_undefined_flag_GCJ='${wl}-z,text'
 
18587
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18588
      archive_cmds_need_lc_GCJ=no
 
18589
      hardcode_shlibpath_var_GCJ=no
 
18590
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18591
      hardcode_libdir_separator_GCJ=':'
 
18592
      link_all_deplibs_GCJ=yes
 
18593
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18594
      runpath_var='LD_RUN_PATH'
 
18595
 
 
18596
      if test "$GCC" = yes; then
 
18597
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18598
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18599
      else
 
18600
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18601
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18602
      fi
 
18603
      ;;
 
18604
 
 
18605
    uts4*)
 
18606
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18607
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18608
      hardcode_shlibpath_var_GCJ=no
 
18609
      ;;
 
18610
 
 
18611
    *)
 
18612
      ld_shlibs_GCJ=no
 
18613
      ;;
 
18614
    esac
 
18615
  fi
 
18616
 
 
18617
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18618
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18619
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18620
 
 
18621
#
 
18622
# Do we need to explicitly link libc?
 
18623
#
 
18624
case "x$archive_cmds_need_lc_GCJ" in
 
18625
x|xyes)
 
18626
  # Assume -lc should be added
 
18627
  archive_cmds_need_lc_GCJ=yes
 
18628
 
 
18629
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18630
    case $archive_cmds_GCJ in
 
18631
    *'~'*)
 
18632
      # FIXME: we may have to deal with multi-command sequences.
 
18633
      ;;
 
18634
    '$CC '*)
 
18635
      # Test whether the compiler implicitly links with -lc since on some
 
18636
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18637
      # to ld, don't add -lc before -lgcc.
 
18638
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18639
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18640
      $rm conftest*
 
18641
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18642
 
 
18643
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18644
  (eval $ac_compile) 2>&5
 
18645
  ac_status=$?
 
18646
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18647
  (exit $ac_status); } 2>conftest.err; then
 
18648
        soname=conftest
 
18649
        lib=conftest
 
18650
        libobjs=conftest.$ac_objext
 
18651
        deplibs=
 
18652
        wl=$lt_prog_compiler_wl_GCJ
 
18653
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18654
        compiler_flags=-v
 
18655
        linker_flags=-v
 
18656
        verstring=
 
18657
        output_objdir=.
 
18658
        libname=conftest
 
18659
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18660
        allow_undefined_flag_GCJ=
 
18661
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18662
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18663
  ac_status=$?
 
18664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18665
  (exit $ac_status); }
 
18666
        then
 
18667
          archive_cmds_need_lc_GCJ=no
 
18668
        else
 
18669
          archive_cmds_need_lc_GCJ=yes
 
18670
        fi
 
18671
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18672
      else
 
18673
        cat conftest.err 1>&5
 
18674
      fi
 
18675
      $rm conftest*
 
18676
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18677
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18678
      ;;
 
18679
    esac
 
18680
  fi
 
18681
  ;;
 
18682
esac
 
18683
 
 
18684
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18685
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18686
library_names_spec=
 
18687
libname_spec='lib$name'
 
18688
soname_spec=
 
18689
shrext_cmds=".so"
 
18690
postinstall_cmds=
 
18691
postuninstall_cmds=
 
18692
finish_cmds=
 
18693
finish_eval=
 
18694
shlibpath_var=
 
18695
shlibpath_overrides_runpath=unknown
 
18696
version_type=none
 
18697
dynamic_linker="$host_os ld.so"
 
18698
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18699
 
 
18700
need_lib_prefix=unknown
 
18701
hardcode_into_libs=no
 
18702
 
 
18703
# when you set need_version to no, make sure it does not cause -set_version
 
18704
# flags to be left without arguments
 
18705
need_version=unknown
 
18706
 
 
18707
case $host_os in
 
18708
aix3*)
 
18709
  version_type=linux
 
18710
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18711
  shlibpath_var=LIBPATH
 
18712
 
 
18713
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18714
  soname_spec='${libname}${release}${shared_ext}$major'
 
18715
  ;;
 
18716
 
 
18717
aix[4-9]*)
 
18718
  version_type=linux
 
18719
  need_lib_prefix=no
 
18720
  need_version=no
 
18721
  hardcode_into_libs=yes
 
18722
  if test "$host_cpu" = ia64; then
 
18723
    # AIX 5 supports IA64
 
18724
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18725
    shlibpath_var=LD_LIBRARY_PATH
 
18726
  else
 
18727
    # With GCC up to 2.95.x, collect2 would create an import file
 
18728
    # for dependence libraries.  The import file would start with
 
18729
    # the line `#! .'.  This would cause the generated library to
 
18730
    # depend on `.', always an invalid library.  This was fixed in
 
18731
    # development snapshots of GCC prior to 3.0.
 
18732
    case $host_os in
 
18733
      aix4 | aix4.[01] | aix4.[01].*)
 
18734
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18735
           echo ' yes '
 
18736
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18737
        :
 
18738
      else
 
18739
        can_build_shared=no
 
18740
      fi
 
18741
      ;;
 
18742
    esac
 
18743
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18744
    # soname into executable. Probably we can add versioning support to
 
18745
    # collect2, so additional links can be useful in future.
 
18746
    if test "$aix_use_runtimelinking" = yes; then
 
18747
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18748
      # instead of lib<name>.a to let people know that these are not
 
18749
      # typical AIX shared libraries.
 
18750
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18751
    else
 
18752
      # We preserve .a as extension for shared libraries through AIX4.2
 
18753
      # and later when we are not doing run time linking.
 
18754
      library_names_spec='${libname}${release}.a $libname.a'
 
18755
      soname_spec='${libname}${release}${shared_ext}$major'
 
18756
    fi
 
18757
    shlibpath_var=LIBPATH
 
18758
  fi
 
18759
  ;;
 
18760
 
 
18761
amigaos*)
 
18762
  library_names_spec='$libname.ixlibrary $libname.a'
 
18763
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18764
  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'
 
18765
  ;;
 
18766
 
 
18767
beos*)
 
18768
  library_names_spec='${libname}${shared_ext}'
 
18769
  dynamic_linker="$host_os ld.so"
 
18770
  shlibpath_var=LIBRARY_PATH
 
18771
  ;;
 
18772
 
 
18773
bsdi[45]*)
 
18774
  version_type=linux
 
18775
  need_version=no
 
18776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18777
  soname_spec='${libname}${release}${shared_ext}$major'
 
18778
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18779
  shlibpath_var=LD_LIBRARY_PATH
 
18780
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18781
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18782
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18783
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18784
  # libtool to hard-code these into programs
 
18785
  ;;
 
18786
 
 
18787
cygwin* | mingw* | pw32*)
 
18788
  version_type=windows
 
18789
  shrext_cmds=".dll"
 
18790
  need_version=no
 
18791
  need_lib_prefix=no
 
18792
 
 
18793
  case $GCC,$host_os in
 
18794
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18795
    library_names_spec='$libname.dll.a'
 
18796
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18797
    postinstall_cmds='base_file=`basename \${file}`~
 
18798
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18799
      dldir=$destdir/`dirname \$dlpath`~
 
18800
      test -d \$dldir || mkdir -p \$dldir~
 
18801
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18802
      chmod a+x \$dldir/$dlname'
 
18803
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18804
      dlpath=$dir/\$dldll~
 
18805
       $rm \$dlpath'
 
18806
    shlibpath_overrides_runpath=yes
 
18807
 
 
18808
    case $host_os in
 
18809
    cygwin*)
 
18810
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18811
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18812
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18813
      ;;
 
18814
    mingw*)
 
18815
      # MinGW DLLs use traditional 'lib' prefix
 
18816
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18817
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18818
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18819
        # It is most probably a Windows format PATH printed by
 
18820
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18821
        # path with ; separators, and with drive letters. We can handle the
 
18822
        # drive letters (cygwin fileutils understands them), so leave them,
 
18823
        # especially as we might pass files found there to a mingw objdump,
 
18824
        # which wouldn't understand a cygwinified path. Ahh.
 
18825
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18826
      else
 
18827
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18828
      fi
 
18829
      ;;
 
18830
    pw32*)
 
18831
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18832
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18833
      ;;
 
18834
    esac
 
18835
    ;;
 
18836
 
 
18837
  *)
 
18838
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18839
    ;;
 
18840
  esac
 
18841
  dynamic_linker='Win32 ld.exe'
 
18842
  # FIXME: first we should search . and the directory the executable is in
 
18843
  shlibpath_var=PATH
 
18844
  ;;
 
18845
 
 
18846
darwin* | rhapsody*)
 
18847
  dynamic_linker="$host_os dyld"
 
18848
  version_type=darwin
 
18849
  need_lib_prefix=no
 
18850
  need_version=no
 
18851
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18852
  soname_spec='${libname}${release}${major}$shared_ext'
 
18853
  shlibpath_overrides_runpath=yes
 
18854
  shlibpath_var=DYLD_LIBRARY_PATH
 
18855
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18856
 
 
18857
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18858
  ;;
 
18859
 
 
18860
dgux*)
 
18861
  version_type=linux
 
18862
  need_lib_prefix=no
 
18863
  need_version=no
 
18864
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18865
  soname_spec='${libname}${release}${shared_ext}$major'
 
18866
  shlibpath_var=LD_LIBRARY_PATH
 
18867
  ;;
 
18868
 
 
18869
freebsd1*)
 
18870
  dynamic_linker=no
 
18871
  ;;
 
18872
 
 
18873
freebsd* | dragonfly*)
 
18874
  # DragonFly does not have aout.  When/if they implement a new
 
18875
  # versioning mechanism, adjust this.
 
18876
  if test -x /usr/bin/objformat; then
 
18877
    objformat=`/usr/bin/objformat`
 
18878
  else
 
18879
    case $host_os in
 
18880
    freebsd[123]*) objformat=aout ;;
 
18881
    *) objformat=elf ;;
 
18882
    esac
 
18883
  fi
 
18884
  version_type=freebsd-$objformat
 
18885
  case $version_type in
 
18886
    freebsd-elf*)
 
18887
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18888
      need_version=no
 
18889
      need_lib_prefix=no
 
18890
      ;;
 
18891
    freebsd-*)
 
18892
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18893
      need_version=yes
 
18894
      ;;
 
18895
  esac
 
18896
  shlibpath_var=LD_LIBRARY_PATH
 
18897
  case $host_os in
 
18898
  freebsd2*)
 
18899
    shlibpath_overrides_runpath=yes
 
18900
    ;;
 
18901
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18902
    shlibpath_overrides_runpath=yes
 
18903
    hardcode_into_libs=yes
 
18904
    ;;
 
18905
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18906
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18907
    shlibpath_overrides_runpath=no
 
18908
    hardcode_into_libs=yes
 
18909
    ;;
 
18910
  *) # from 4.6 on, and DragonFly
 
18911
    shlibpath_overrides_runpath=yes
 
18912
    hardcode_into_libs=yes
 
18913
    ;;
 
18914
  esac
 
18915
  ;;
 
18916
 
 
18917
gnu*)
 
18918
  version_type=linux
 
18919
  need_lib_prefix=no
 
18920
  need_version=no
 
18921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18922
  soname_spec='${libname}${release}${shared_ext}$major'
 
18923
  shlibpath_var=LD_LIBRARY_PATH
 
18924
  hardcode_into_libs=yes
 
18925
  ;;
 
18926
 
 
18927
hpux9* | hpux10* | hpux11*)
 
18928
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18929
  # link against other versions.
 
18930
  version_type=sunos
 
18931
  need_lib_prefix=no
 
18932
  need_version=no
 
18933
  case $host_cpu in
 
18934
  ia64*)
 
18935
    shrext_cmds='.so'
 
18936
    hardcode_into_libs=yes
 
18937
    dynamic_linker="$host_os dld.so"
 
18938
    shlibpath_var=LD_LIBRARY_PATH
 
18939
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18940
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18941
    soname_spec='${libname}${release}${shared_ext}$major'
 
18942
    if test "X$HPUX_IA64_MODE" = X32; then
 
18943
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18944
    else
 
18945
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18946
    fi
 
18947
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18948
    ;;
 
18949
   hppa*64*)
 
18950
     shrext_cmds='.sl'
 
18951
     hardcode_into_libs=yes
 
18952
     dynamic_linker="$host_os dld.sl"
 
18953
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18954
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18955
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18956
     soname_spec='${libname}${release}${shared_ext}$major'
 
18957
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18958
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18959
     ;;
 
18960
   *)
 
18961
    shrext_cmds='.sl'
 
18962
    dynamic_linker="$host_os dld.sl"
 
18963
    shlibpath_var=SHLIB_PATH
 
18964
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18965
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18966
    soname_spec='${libname}${release}${shared_ext}$major'
 
18967
    ;;
 
18968
  esac
 
18969
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18970
  postinstall_cmds='chmod 555 $lib'
 
18971
  ;;
 
18972
 
 
18973
interix[3-9]*)
 
18974
  version_type=linux
 
18975
  need_lib_prefix=no
 
18976
  need_version=no
 
18977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18978
  soname_spec='${libname}${release}${shared_ext}$major'
 
18979
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18980
  shlibpath_var=LD_LIBRARY_PATH
 
18981
  shlibpath_overrides_runpath=no
 
18982
  hardcode_into_libs=yes
 
18983
  ;;
 
18984
 
 
18985
irix5* | irix6* | nonstopux*)
 
18986
  case $host_os in
 
18987
    nonstopux*) version_type=nonstopux ;;
 
18988
    *)
 
18989
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18990
                version_type=linux
 
18991
        else
 
18992
                version_type=irix
 
18993
        fi ;;
 
18994
  esac
 
18995
  need_lib_prefix=no
 
18996
  need_version=no
 
18997
  soname_spec='${libname}${release}${shared_ext}$major'
 
18998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18999
  case $host_os in
 
19000
  irix5* | nonstopux*)
 
19001
    libsuff= shlibsuff=
 
19002
    ;;
 
19003
  *)
 
19004
    case $LD in # libtool.m4 will add one of these switches to LD
 
19005
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19006
      libsuff= shlibsuff= libmagic=32-bit;;
 
19007
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19008
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19009
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19010
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19011
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19012
    esac
 
19013
    ;;
 
19014
  esac
 
19015
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19016
  shlibpath_overrides_runpath=no
 
19017
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19018
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19019
  hardcode_into_libs=yes
 
19020
  ;;
 
19021
 
 
19022
# No shared lib support for Linux oldld, aout, or coff.
 
19023
linux*oldld* | linux*aout* | linux*coff*)
 
19024
  dynamic_linker=no
 
19025
  ;;
 
19026
 
 
19027
# This must be Linux ELF.
 
19028
linux* | k*bsd*-gnu)
 
19029
  version_type=linux
 
19030
  need_lib_prefix=no
 
19031
  need_version=no
 
19032
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19033
  soname_spec='${libname}${release}${shared_ext}$major'
 
19034
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19035
  shlibpath_var=LD_LIBRARY_PATH
 
19036
  shlibpath_overrides_runpath=no
 
19037
  # This implies no fast_install, which is unacceptable.
 
19038
  # Some rework will be needed to allow for fast_install
 
19039
  # before this can be enabled.
 
19040
  hardcode_into_libs=yes
 
19041
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19042
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19043
 
 
19044
  # Append ld.so.conf contents to the search path
 
19045
  if test -f /etc/ld.so.conf; then
 
19046
    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' ' '`
 
19047
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
19048
  fi
 
19049
 
 
19050
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19051
  # powerpc, because MkLinux only supported shared libraries with the
 
19052
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19053
  # most powerpc-linux boxes support dynamic linking these days and
 
19054
  # people can always --disable-shared, the test was removed, and we
 
19055
  # assume the GNU/Linux dynamic linker is in use.
 
19056
  dynamic_linker='GNU/Linux ld.so'
 
19057
  ;;
 
19058
 
 
19059
netbsd*)
 
19060
  version_type=sunos
 
19061
  need_lib_prefix=no
 
19062
  need_version=no
 
19063
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19064
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19065
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19066
    dynamic_linker='NetBSD (a.out) ld.so'
 
19067
  else
 
19068
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19069
    soname_spec='${libname}${release}${shared_ext}$major'
 
19070
    dynamic_linker='NetBSD ld.elf_so'
 
19071
  fi
 
19072
  shlibpath_var=LD_LIBRARY_PATH
 
19073
  shlibpath_overrides_runpath=yes
 
19074
  hardcode_into_libs=yes
 
19075
  ;;
 
19076
 
 
19077
newsos6)
 
19078
  version_type=linux
 
19079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19080
  shlibpath_var=LD_LIBRARY_PATH
 
19081
  shlibpath_overrides_runpath=yes
 
19082
  ;;
 
19083
 
 
19084
nto-qnx*)
 
19085
  version_type=linux
 
19086
  need_lib_prefix=no
 
19087
  need_version=no
 
19088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19089
  soname_spec='${libname}${release}${shared_ext}$major'
 
19090
  shlibpath_var=LD_LIBRARY_PATH
 
19091
  shlibpath_overrides_runpath=yes
 
19092
  ;;
 
19093
 
 
19094
openbsd*)
 
19095
  version_type=sunos
 
19096
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19097
  need_lib_prefix=no
 
19098
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19099
  case $host_os in
 
19100
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19101
    *)                         need_version=no  ;;
 
19102
  esac
 
19103
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19104
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19105
  shlibpath_var=LD_LIBRARY_PATH
 
19106
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19107
    case $host_os in
 
19108
      openbsd2.[89] | openbsd2.[89].*)
 
19109
        shlibpath_overrides_runpath=no
 
19110
        ;;
 
19111
      *)
 
19112
        shlibpath_overrides_runpath=yes
 
19113
        ;;
 
19114
      esac
 
19115
  else
 
19116
    shlibpath_overrides_runpath=yes
 
19117
  fi
 
19118
  ;;
 
19119
 
 
19120
os2*)
 
19121
  libname_spec='$name'
 
19122
  shrext_cmds=".dll"
 
19123
  need_lib_prefix=no
 
19124
  library_names_spec='$libname${shared_ext} $libname.a'
 
19125
  dynamic_linker='OS/2 ld.exe'
 
19126
  shlibpath_var=LIBPATH
 
19127
  ;;
 
19128
 
 
19129
osf3* | osf4* | osf5*)
 
19130
  version_type=osf
 
19131
  need_lib_prefix=no
 
19132
  need_version=no
 
19133
  soname_spec='${libname}${release}${shared_ext}$major'
 
19134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19135
  shlibpath_var=LD_LIBRARY_PATH
 
19136
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19137
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19138
  ;;
 
19139
 
 
19140
rdos*)
 
19141
  dynamic_linker=no
 
19142
  ;;
 
19143
 
 
19144
solaris*)
 
19145
  version_type=linux
 
19146
  need_lib_prefix=no
 
19147
  need_version=no
 
19148
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19149
  soname_spec='${libname}${release}${shared_ext}$major'
 
19150
  shlibpath_var=LD_LIBRARY_PATH
 
19151
  shlibpath_overrides_runpath=yes
 
19152
  hardcode_into_libs=yes
 
19153
  # ldd complains unless libraries are executable
 
19154
  postinstall_cmds='chmod +x $lib'
 
19155
  ;;
 
19156
 
 
19157
sunos4*)
 
19158
  version_type=sunos
 
19159
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19160
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19161
  shlibpath_var=LD_LIBRARY_PATH
 
19162
  shlibpath_overrides_runpath=yes
 
19163
  if test "$with_gnu_ld" = yes; then
 
19164
    need_lib_prefix=no
 
19165
  fi
 
19166
  need_version=yes
 
19167
  ;;
 
19168
 
 
19169
sysv4 | sysv4.3*)
 
19170
  version_type=linux
 
19171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19172
  soname_spec='${libname}${release}${shared_ext}$major'
 
19173
  shlibpath_var=LD_LIBRARY_PATH
 
19174
  case $host_vendor in
 
19175
    sni)
 
19176
      shlibpath_overrides_runpath=no
 
19177
      need_lib_prefix=no
 
19178
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19179
      runpath_var=LD_RUN_PATH
 
19180
      ;;
 
19181
    siemens)
 
19182
      need_lib_prefix=no
 
19183
      ;;
 
19184
    motorola)
 
19185
      need_lib_prefix=no
 
19186
      need_version=no
 
19187
      shlibpath_overrides_runpath=no
 
19188
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19189
      ;;
 
19190
  esac
 
19191
  ;;
 
19192
 
 
19193
sysv4*MP*)
 
19194
  if test -d /usr/nec ;then
 
19195
    version_type=linux
 
19196
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19197
    soname_spec='$libname${shared_ext}.$major'
 
19198
    shlibpath_var=LD_LIBRARY_PATH
 
19199
  fi
 
19200
  ;;
 
19201
 
 
19202
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19203
  version_type=freebsd-elf
 
19204
  need_lib_prefix=no
 
19205
  need_version=no
 
19206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19207
  soname_spec='${libname}${release}${shared_ext}$major'
 
19208
  shlibpath_var=LD_LIBRARY_PATH
 
19209
  hardcode_into_libs=yes
 
19210
  if test "$with_gnu_ld" = yes; then
 
19211
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19212
    shlibpath_overrides_runpath=no
 
19213
  else
 
19214
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19215
    shlibpath_overrides_runpath=yes
 
19216
    case $host_os in
 
19217
      sco3.2v5*)
 
19218
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19219
        ;;
 
19220
    esac
 
19221
  fi
 
19222
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19223
  ;;
 
19224
 
 
19225
uts4*)
 
19226
  version_type=linux
 
19227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19228
  soname_spec='${libname}${release}${shared_ext}$major'
 
19229
  shlibpath_var=LD_LIBRARY_PATH
 
19230
  ;;
 
19231
 
 
19232
*)
 
19233
  dynamic_linker=no
 
19234
  ;;
 
19235
esac
 
19236
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19237
$as_echo "$dynamic_linker" >&6; }
 
19238
test "$dynamic_linker" = no && can_build_shared=no
 
19239
 
 
19240
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19241
  $as_echo_n "(cached) " >&6
 
19242
else
 
19243
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19244
fi
 
19245
 
 
19246
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19247
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19248
  $as_echo_n "(cached) " >&6
 
19249
else
 
19250
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19251
fi
 
19252
 
 
19253
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19254
 
 
19255
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19256
if test "$GCC" = yes; then
 
19257
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19258
fi
 
19259
 
 
19260
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19261
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
19262
hardcode_action_GCJ=
 
19263
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19264
   test -n "$runpath_var_GCJ" || \
 
19265
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19266
 
 
19267
  # We can hardcode non-existant directories.
 
19268
  if test "$hardcode_direct_GCJ" != no &&
 
19269
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19270
     # have to relink, otherwise we might link with an installed library
 
19271
     # when we should be linking with a yet-to-be-installed one
 
19272
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19273
     test "$hardcode_minus_L_GCJ" != no; then
 
19274
    # Linking always hardcodes the temporary library directory.
 
19275
    hardcode_action_GCJ=relink
 
19276
  else
 
19277
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19278
    hardcode_action_GCJ=immediate
 
19279
  fi
 
19280
else
 
19281
  # We cannot hardcode anything, or else we can only hardcode existing
 
19282
  # directories.
 
19283
  hardcode_action_GCJ=unsupported
 
19284
fi
 
19285
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19286
$as_echo "$hardcode_action_GCJ" >&6; }
 
19287
 
 
19288
if test "$hardcode_action_GCJ" = relink; then
 
19289
  # Fast installation is not supported
 
19290
  enable_fast_install=no
 
19291
elif test "$shlibpath_overrides_runpath" = yes ||
 
19292
     test "$enable_shared" = no; then
 
19293
  # Fast installation is not necessary
 
19294
  enable_fast_install=needless
 
19295
fi
 
19296
 
 
19297
 
 
19298
# The else clause should only fire when bootstrapping the
 
19299
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19300
# with your package, and you will get complaints that there are
 
19301
# no rules to generate ltmain.sh.
 
19302
if test -f "$ltmain"; then
 
19303
  # See if we are running on zsh, and set the options which allow our commands through
 
19304
  # without removal of \ escapes.
 
19305
  if test -n "${ZSH_VERSION+set}" ; then
 
19306
    setopt NO_GLOB_SUBST
 
19307
  fi
 
19308
  # Now quote all the things that may contain metacharacters while being
 
19309
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19310
  # variables and quote the copies for generation of the libtool script.
 
19311
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19312
    SED SHELL STRIP \
 
19313
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19314
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19315
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19316
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19317
    lt_cv_sys_global_symbol_to_c_name_address \
 
19318
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19319
    old_postinstall_cmds old_postuninstall_cmds \
 
19320
    compiler_GCJ \
 
19321
    CC_GCJ \
 
19322
    LD_GCJ \
 
19323
    lt_prog_compiler_wl_GCJ \
 
19324
    lt_prog_compiler_pic_GCJ \
 
19325
    lt_prog_compiler_static_GCJ \
 
19326
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19327
    export_dynamic_flag_spec_GCJ \
 
19328
    thread_safe_flag_spec_GCJ \
 
19329
    whole_archive_flag_spec_GCJ \
 
19330
    enable_shared_with_static_runtimes_GCJ \
 
19331
    old_archive_cmds_GCJ \
 
19332
    old_archive_from_new_cmds_GCJ \
 
19333
    predep_objects_GCJ \
 
19334
    postdep_objects_GCJ \
 
19335
    predeps_GCJ \
 
19336
    postdeps_GCJ \
 
19337
    compiler_lib_search_path_GCJ \
 
19338
    compiler_lib_search_dirs_GCJ \
 
19339
    archive_cmds_GCJ \
 
19340
    archive_expsym_cmds_GCJ \
 
19341
    postinstall_cmds_GCJ \
 
19342
    postuninstall_cmds_GCJ \
 
19343
    old_archive_from_expsyms_cmds_GCJ \
 
19344
    allow_undefined_flag_GCJ \
 
19345
    no_undefined_flag_GCJ \
 
19346
    export_symbols_cmds_GCJ \
 
19347
    hardcode_libdir_flag_spec_GCJ \
 
19348
    hardcode_libdir_flag_spec_ld_GCJ \
 
19349
    hardcode_libdir_separator_GCJ \
 
19350
    hardcode_automatic_GCJ \
 
19351
    module_cmds_GCJ \
 
19352
    module_expsym_cmds_GCJ \
 
19353
    lt_cv_prog_compiler_c_o_GCJ \
 
19354
    fix_srcfile_path_GCJ \
 
19355
    exclude_expsyms_GCJ \
 
19356
    include_expsyms_GCJ; do
 
19357
 
 
19358
    case $var in
 
19359
    old_archive_cmds_GCJ | \
 
19360
    old_archive_from_new_cmds_GCJ | \
 
19361
    archive_cmds_GCJ | \
 
19362
    archive_expsym_cmds_GCJ | \
 
19363
    module_cmds_GCJ | \
 
19364
    module_expsym_cmds_GCJ | \
 
19365
    old_archive_from_expsyms_cmds_GCJ | \
 
19366
    export_symbols_cmds_GCJ | \
 
19367
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19368
    postinstall_cmds | postuninstall_cmds | \
 
19369
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19370
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19371
      # Double-quote double-evaled strings.
 
19372
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19373
      ;;
 
19374
    *)
 
19375
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19376
      ;;
 
19377
    esac
 
19378
  done
 
19379
 
 
19380
  case $lt_echo in
 
19381
  *'\$0 --fallback-echo"')
 
19382
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19383
    ;;
 
19384
  esac
 
19385
 
 
19386
cfgfile="$ofile"
 
19387
 
 
19388
  cat <<__EOF__ >> "$cfgfile"
 
19389
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19390
 
 
19391
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19392
 
 
19393
# Shell to use when invoking shell scripts.
 
19394
SHELL=$lt_SHELL
 
19395
 
 
19396
# Whether or not to build shared libraries.
 
19397
build_libtool_libs=$enable_shared
 
19398
 
 
19399
# Whether or not to build static libraries.
 
19400
build_old_libs=$enable_static
 
19401
 
 
19402
# Whether or not to add -lc for building shared libraries.
 
19403
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19404
 
 
19405
# Whether or not to disallow shared libs when runtime libs are static
 
19406
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19407
 
 
19408
# Whether or not to optimize for fast installation.
 
19409
fast_install=$enable_fast_install
 
19410
 
 
19411
# The host system.
 
19412
host_alias=$host_alias
 
19413
host=$host
 
19414
host_os=$host_os
 
19415
 
 
19416
# The build system.
 
19417
build_alias=$build_alias
 
19418
build=$build
 
19419
build_os=$build_os
 
19420
 
 
19421
# An echo program that does not interpret backslashes.
 
19422
echo=$lt_echo
 
19423
 
 
19424
# The archiver.
 
19425
AR=$lt_AR
 
19426
AR_FLAGS=$lt_AR_FLAGS
 
19427
 
 
19428
# A C compiler.
 
19429
LTCC=$lt_LTCC
 
19430
 
 
19431
# LTCC compiler flags.
 
19432
LTCFLAGS=$lt_LTCFLAGS
 
19433
 
 
19434
# A language-specific compiler.
 
19435
CC=$lt_compiler_GCJ
 
19436
 
 
19437
# Is the compiler the GNU C compiler?
 
19438
with_gcc=$GCC_GCJ
 
19439
 
 
19440
# An ERE matcher.
 
19441
EGREP=$lt_EGREP
 
19442
 
 
19443
# The linker used to build libraries.
 
19444
LD=$lt_LD_GCJ
 
19445
 
 
19446
# Whether we need hard or soft links.
 
19447
LN_S=$lt_LN_S
 
19448
 
 
19449
# A BSD-compatible nm program.
 
19450
NM=$lt_NM
 
19451
 
 
19452
# A symbol stripping program
 
19453
STRIP=$lt_STRIP
 
19454
 
 
19455
# Used to examine libraries when file_magic_cmd begins "file"
 
19456
MAGIC_CMD=$MAGIC_CMD
 
19457
 
 
19458
# Used on cygwin: DLL creation program.
 
19459
DLLTOOL="$DLLTOOL"
 
19460
 
 
19461
# Used on cygwin: object dumper.
 
19462
OBJDUMP="$OBJDUMP"
 
19463
 
 
19464
# Used on cygwin: assembler.
 
19465
AS="$AS"
 
19466
 
 
19467
# The name of the directory that contains temporary libtool files.
 
19468
objdir=$objdir
 
19469
 
 
19470
# How to create reloadable object files.
 
19471
reload_flag=$lt_reload_flag
 
19472
reload_cmds=$lt_reload_cmds
 
19473
 
 
19474
# How to pass a linker flag through the compiler.
 
19475
wl=$lt_lt_prog_compiler_wl_GCJ
 
19476
 
 
19477
# Object file suffix (normally "o").
 
19478
objext="$ac_objext"
 
19479
 
 
19480
# Old archive suffix (normally "a").
 
19481
libext="$libext"
 
19482
 
 
19483
# Shared library suffix (normally ".so").
 
19484
shrext_cmds='$shrext_cmds'
 
19485
 
 
19486
# Executable file suffix (normally "").
 
19487
exeext="$exeext"
 
19488
 
 
19489
# Additional compiler flags for building library objects.
 
19490
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19491
pic_mode=$pic_mode
 
19492
 
 
19493
# What is the maximum length of a command?
 
19494
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19495
 
 
19496
# Does compiler simultaneously support -c and -o options?
 
19497
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19498
 
 
19499
# Must we lock files when doing compilation?
 
19500
need_locks=$lt_need_locks
 
19501
 
 
19502
# Do we need the lib prefix for modules?
 
19503
need_lib_prefix=$need_lib_prefix
 
19504
 
 
19505
# Do we need a version for libraries?
 
19506
need_version=$need_version
 
19507
 
 
19508
# Whether dlopen is supported.
 
19509
dlopen_support=$enable_dlopen
 
19510
 
 
19511
# Whether dlopen of programs is supported.
 
19512
dlopen_self=$enable_dlopen_self
 
19513
 
 
19514
# Whether dlopen of statically linked programs is supported.
 
19515
dlopen_self_static=$enable_dlopen_self_static
 
19516
 
 
19517
# Compiler flag to prevent dynamic linking.
 
19518
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19519
 
 
19520
# Compiler flag to turn off builtin functions.
 
19521
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19522
 
 
19523
# Compiler flag to allow reflexive dlopens.
 
19524
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19525
 
 
19526
# Compiler flag to generate shared objects directly from archives.
 
19527
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19528
 
 
19529
# Compiler flag to generate thread-safe objects.
 
19530
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19531
 
 
19532
# Library versioning type.
 
19533
version_type=$version_type
 
19534
 
 
19535
# Format of library name prefix.
 
19536
libname_spec=$lt_libname_spec
 
19537
 
 
19538
# List of archive names.  First name is the real one, the rest are links.
 
19539
# The last name is the one that the linker finds with -lNAME.
 
19540
library_names_spec=$lt_library_names_spec
 
19541
 
 
19542
# The coded name of the library, if different from the real name.
 
19543
soname_spec=$lt_soname_spec
 
19544
 
 
19545
# Commands used to build and install an old-style archive.
 
19546
RANLIB=$lt_RANLIB
 
19547
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19548
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19549
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19550
 
 
19551
# Create an old-style archive from a shared archive.
 
19552
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19553
 
 
19554
# Create a temporary old-style archive to link instead of a shared archive.
 
19555
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19556
 
 
19557
# Commands used to build and install a shared archive.
 
19558
archive_cmds=$lt_archive_cmds_GCJ
 
19559
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19560
postinstall_cmds=$lt_postinstall_cmds
 
19561
postuninstall_cmds=$lt_postuninstall_cmds
 
19562
 
 
19563
# Commands used to build a loadable module (assumed same as above if empty)
 
19564
module_cmds=$lt_module_cmds_GCJ
 
19565
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19566
 
 
19567
# Commands to strip libraries.
 
19568
old_striplib=$lt_old_striplib
 
19569
striplib=$lt_striplib
 
19570
 
 
19571
# Dependencies to place before the objects being linked to create a
 
19572
# shared library.
 
19573
predep_objects=$lt_predep_objects_GCJ
 
19574
 
 
19575
# Dependencies to place after the objects being linked to create a
 
19576
# shared library.
 
19577
postdep_objects=$lt_postdep_objects_GCJ
 
19578
 
 
19579
# Dependencies to place before the objects being linked to create a
 
19580
# shared library.
 
19581
predeps=$lt_predeps_GCJ
 
19582
 
 
19583
# Dependencies to place after the objects being linked to create a
 
19584
# shared library.
 
19585
postdeps=$lt_postdeps_GCJ
 
19586
 
 
19587
# The directories searched by this compiler when creating a shared
 
19588
# library
 
19589
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19590
 
 
19591
# The library search path used internally by the compiler when linking
 
19592
# a shared library.
 
19593
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19594
 
 
19595
# Method to check whether dependent libraries are shared objects.
 
19596
deplibs_check_method=$lt_deplibs_check_method
 
19597
 
 
19598
# Command to use when deplibs_check_method == file_magic.
 
19599
file_magic_cmd=$lt_file_magic_cmd
 
19600
 
 
19601
# Flag that allows shared libraries with undefined symbols to be built.
 
19602
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19603
 
 
19604
# Flag that forces no undefined symbols.
 
19605
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19606
 
 
19607
# Commands used to finish a libtool library installation in a directory.
 
19608
finish_cmds=$lt_finish_cmds
 
19609
 
 
19610
# Same as above, but a single script fragment to be evaled but not shown.
 
19611
finish_eval=$lt_finish_eval
 
19612
 
 
19613
# Take the output of nm and produce a listing of raw symbols and C names.
 
19614
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19615
 
 
19616
# Transform the output of nm in a proper C declaration
 
19617
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19618
 
 
19619
# Transform the output of nm in a C name address pair
 
19620
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19621
 
 
19622
# This is the shared library runtime path variable.
 
19623
runpath_var=$runpath_var
 
19624
 
 
19625
# This is the shared library path variable.
 
19626
shlibpath_var=$shlibpath_var
 
19627
 
 
19628
# Is shlibpath searched before the hard-coded library search path?
 
19629
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19630
 
 
19631
# How to hardcode a shared library path into an executable.
 
19632
hardcode_action=$hardcode_action_GCJ
 
19633
 
 
19634
# Whether we should hardcode library paths into libraries.
 
19635
hardcode_into_libs=$hardcode_into_libs
 
19636
 
 
19637
# Flag to hardcode \$libdir into a binary during linking.
 
19638
# This must work even if \$libdir does not exist.
 
19639
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19640
 
 
19641
# If ld is used when linking, flag to hardcode \$libdir into
 
19642
# a binary during linking. This must work even if \$libdir does
 
19643
# not exist.
 
19644
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19645
 
 
19646
# Whether we need a single -rpath flag with a separated argument.
 
19647
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19648
 
 
19649
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19650
# resulting binary.
 
19651
hardcode_direct=$hardcode_direct_GCJ
 
19652
 
 
19653
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19654
# resulting binary.
 
19655
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19656
 
 
19657
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19658
# the resulting binary.
 
19659
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19660
 
 
19661
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19662
# and all subsequent libraries and executables linked against it.
 
19663
hardcode_automatic=$hardcode_automatic_GCJ
 
19664
 
 
19665
# Variables whose values should be saved in libtool wrapper scripts and
 
19666
# restored at relink time.
 
19667
variables_saved_for_relink="$variables_saved_for_relink"
 
19668
 
 
19669
# Whether libtool must link a program against all its dependency libraries.
 
19670
link_all_deplibs=$link_all_deplibs_GCJ
 
19671
 
 
19672
# Compile-time system search path for libraries
 
19673
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19674
 
 
19675
# Run-time system search path for libraries
 
19676
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19677
 
 
19678
# Fix the shell variable \$srcfile for the compiler.
 
19679
fix_srcfile_path=$lt_fix_srcfile_path
 
19680
 
 
19681
# Set to yes if exported symbols are required.
 
19682
always_export_symbols=$always_export_symbols_GCJ
 
19683
 
 
19684
# The commands to list exported symbols.
 
19685
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19686
 
 
19687
# The commands to extract the exported symbol list from a shared archive.
 
19688
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19689
 
 
19690
# Symbols that should not be listed in the preloaded symbols.
 
19691
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19692
 
 
19693
# Symbols that must always be exported.
 
19694
include_expsyms=$lt_include_expsyms_GCJ
 
19695
 
 
19696
# ### END LIBTOOL TAG CONFIG: $tagname
 
19697
 
 
19698
__EOF__
 
19699
 
 
19700
 
 
19701
else
 
19702
  # If there is no Makefile yet, we rely on a make rule to execute
 
19703
  # `config.status --recheck' to rerun these tests and create the
 
19704
  # libtool script then.
 
19705
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19706
  if test -f "$ltmain_in"; then
 
19707
    test -f Makefile && make "$ltmain"
 
19708
  fi
 
19709
fi
 
19710
 
 
19711
 
 
19712
ac_ext=c
 
19713
ac_cpp='$CPP $CPPFLAGS'
 
19714
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19715
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19716
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19717
 
 
19718
CC="$lt_save_CC"
 
19719
 
 
19720
        else
 
19721
          tagname=""
 
19722
        fi
 
19723
        ;;
 
19724
 
 
19725
      RC)
 
19726
 
 
19727
 
 
19728
# Source file extension for RC test sources.
 
19729
ac_ext=rc
 
19730
 
 
19731
# Object file extension for compiled RC test sources.
 
19732
objext=o
 
19733
objext_RC=$objext
 
19734
 
 
19735
# Code to be used in simple compile tests
 
19736
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19737
 
 
19738
# Code to be used in simple link tests
 
19739
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19740
 
 
19741
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19742
 
 
19743
# If no C compiler was specified, use CC.
 
19744
LTCC=${LTCC-"$CC"}
 
19745
 
 
19746
# If no C compiler flags were specified, use CFLAGS.
 
19747
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19748
 
 
19749
# Allow CC to be a program name with arguments.
 
19750
compiler=$CC
 
19751
 
 
19752
 
 
19753
# save warnings/boilerplate of simple test code
 
19754
ac_outfile=conftest.$ac_objext
 
19755
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19756
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19757
_lt_compiler_boilerplate=`cat conftest.err`
 
19758
$rm conftest*
 
19759
 
 
19760
ac_outfile=conftest.$ac_objext
 
19761
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19762
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19763
_lt_linker_boilerplate=`cat conftest.err`
 
19764
$rm -r conftest*
 
19765
 
 
19766
 
 
19767
# Allow CC to be a program name with arguments.
 
19768
lt_save_CC="$CC"
 
19769
CC=${RC-"windres"}
 
19770
compiler=$CC
 
19771
compiler_RC=$CC
 
19772
for cc_temp in $compiler""; do
 
19773
  case $cc_temp in
 
19774
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19775
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19776
    \-*) ;;
 
19777
    *) break;;
 
19778
  esac
 
19779
done
 
19780
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19781
 
 
19782
lt_cv_prog_compiler_c_o_RC=yes
 
19783
 
 
19784
# The else clause should only fire when bootstrapping the
 
19785
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19786
# with your package, and you will get complaints that there are
 
19787
# no rules to generate ltmain.sh.
 
19788
if test -f "$ltmain"; then
 
19789
  # See if we are running on zsh, and set the options which allow our commands through
 
19790
  # without removal of \ escapes.
 
19791
  if test -n "${ZSH_VERSION+set}" ; then
 
19792
    setopt NO_GLOB_SUBST
 
19793
  fi
 
19794
  # Now quote all the things that may contain metacharacters while being
 
19795
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19796
  # variables and quote the copies for generation of the libtool script.
 
19797
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19798
    SED SHELL STRIP \
 
19799
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19800
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19801
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19802
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19803
    lt_cv_sys_global_symbol_to_c_name_address \
 
19804
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19805
    old_postinstall_cmds old_postuninstall_cmds \
 
19806
    compiler_RC \
 
19807
    CC_RC \
 
19808
    LD_RC \
 
19809
    lt_prog_compiler_wl_RC \
 
19810
    lt_prog_compiler_pic_RC \
 
19811
    lt_prog_compiler_static_RC \
 
19812
    lt_prog_compiler_no_builtin_flag_RC \
 
19813
    export_dynamic_flag_spec_RC \
 
19814
    thread_safe_flag_spec_RC \
 
19815
    whole_archive_flag_spec_RC \
 
19816
    enable_shared_with_static_runtimes_RC \
 
19817
    old_archive_cmds_RC \
 
19818
    old_archive_from_new_cmds_RC \
 
19819
    predep_objects_RC \
 
19820
    postdep_objects_RC \
 
19821
    predeps_RC \
 
19822
    postdeps_RC \
 
19823
    compiler_lib_search_path_RC \
 
19824
    compiler_lib_search_dirs_RC \
 
19825
    archive_cmds_RC \
 
19826
    archive_expsym_cmds_RC \
 
19827
    postinstall_cmds_RC \
 
19828
    postuninstall_cmds_RC \
 
19829
    old_archive_from_expsyms_cmds_RC \
 
19830
    allow_undefined_flag_RC \
 
19831
    no_undefined_flag_RC \
 
19832
    export_symbols_cmds_RC \
 
19833
    hardcode_libdir_flag_spec_RC \
 
19834
    hardcode_libdir_flag_spec_ld_RC \
 
19835
    hardcode_libdir_separator_RC \
 
19836
    hardcode_automatic_RC \
 
19837
    module_cmds_RC \
 
19838
    module_expsym_cmds_RC \
 
19839
    lt_cv_prog_compiler_c_o_RC \
 
19840
    fix_srcfile_path_RC \
 
19841
    exclude_expsyms_RC \
 
19842
    include_expsyms_RC; do
 
19843
 
 
19844
    case $var in
 
19845
    old_archive_cmds_RC | \
 
19846
    old_archive_from_new_cmds_RC | \
 
19847
    archive_cmds_RC | \
 
19848
    archive_expsym_cmds_RC | \
 
19849
    module_cmds_RC | \
 
19850
    module_expsym_cmds_RC | \
 
19851
    old_archive_from_expsyms_cmds_RC | \
 
19852
    export_symbols_cmds_RC | \
 
19853
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19854
    postinstall_cmds | postuninstall_cmds | \
 
19855
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19856
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19857
      # Double-quote double-evaled strings.
 
19858
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19859
      ;;
 
19860
    *)
 
19861
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19862
      ;;
 
19863
    esac
 
19864
  done
 
19865
 
 
19866
  case $lt_echo in
 
19867
  *'\$0 --fallback-echo"')
 
19868
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19869
    ;;
 
19870
  esac
 
19871
 
 
19872
cfgfile="$ofile"
 
19873
 
 
19874
  cat <<__EOF__ >> "$cfgfile"
 
19875
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19876
 
 
19877
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19878
 
 
19879
# Shell to use when invoking shell scripts.
 
19880
SHELL=$lt_SHELL
 
19881
 
 
19882
# Whether or not to build shared libraries.
 
19883
build_libtool_libs=$enable_shared
 
19884
 
 
19885
# Whether or not to build static libraries.
 
19886
build_old_libs=$enable_static
 
19887
 
 
19888
# Whether or not to add -lc for building shared libraries.
 
19889
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19890
 
 
19891
# Whether or not to disallow shared libs when runtime libs are static
 
19892
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19893
 
 
19894
# Whether or not to optimize for fast installation.
 
19895
fast_install=$enable_fast_install
 
19896
 
 
19897
# The host system.
 
19898
host_alias=$host_alias
 
19899
host=$host
 
19900
host_os=$host_os
 
19901
 
 
19902
# The build system.
 
19903
build_alias=$build_alias
 
19904
build=$build
 
19905
build_os=$build_os
 
19906
 
 
19907
# An echo program that does not interpret backslashes.
 
19908
echo=$lt_echo
 
19909
 
 
19910
# The archiver.
 
19911
AR=$lt_AR
 
19912
AR_FLAGS=$lt_AR_FLAGS
 
19913
 
 
19914
# A C compiler.
 
19915
LTCC=$lt_LTCC
 
19916
 
 
19917
# LTCC compiler flags.
 
19918
LTCFLAGS=$lt_LTCFLAGS
 
19919
 
 
19920
# A language-specific compiler.
 
19921
CC=$lt_compiler_RC
 
19922
 
 
19923
# Is the compiler the GNU C compiler?
 
19924
with_gcc=$GCC_RC
 
19925
 
 
19926
# An ERE matcher.
 
19927
EGREP=$lt_EGREP
 
19928
 
 
19929
# The linker used to build libraries.
 
19930
LD=$lt_LD_RC
 
19931
 
 
19932
# Whether we need hard or soft links.
 
19933
LN_S=$lt_LN_S
 
19934
 
 
19935
# A BSD-compatible nm program.
 
19936
NM=$lt_NM
 
19937
 
 
19938
# A symbol stripping program
 
19939
STRIP=$lt_STRIP
 
19940
 
 
19941
# Used to examine libraries when file_magic_cmd begins "file"
 
19942
MAGIC_CMD=$MAGIC_CMD
 
19943
 
 
19944
# Used on cygwin: DLL creation program.
 
19945
DLLTOOL="$DLLTOOL"
 
19946
 
 
19947
# Used on cygwin: object dumper.
 
19948
OBJDUMP="$OBJDUMP"
 
19949
 
 
19950
# Used on cygwin: assembler.
 
19951
AS="$AS"
 
19952
 
 
19953
# The name of the directory that contains temporary libtool files.
 
19954
objdir=$objdir
 
19955
 
 
19956
# How to create reloadable object files.
 
19957
reload_flag=$lt_reload_flag
 
19958
reload_cmds=$lt_reload_cmds
 
19959
 
 
19960
# How to pass a linker flag through the compiler.
 
19961
wl=$lt_lt_prog_compiler_wl_RC
 
19962
 
 
19963
# Object file suffix (normally "o").
 
19964
objext="$ac_objext"
 
19965
 
 
19966
# Old archive suffix (normally "a").
 
19967
libext="$libext"
 
19968
 
 
19969
# Shared library suffix (normally ".so").
 
19970
shrext_cmds='$shrext_cmds'
 
19971
 
 
19972
# Executable file suffix (normally "").
 
19973
exeext="$exeext"
 
19974
 
 
19975
# Additional compiler flags for building library objects.
 
19976
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19977
pic_mode=$pic_mode
 
19978
 
 
19979
# What is the maximum length of a command?
 
19980
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19981
 
 
19982
# Does compiler simultaneously support -c and -o options?
 
19983
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19984
 
 
19985
# Must we lock files when doing compilation?
 
19986
need_locks=$lt_need_locks
 
19987
 
 
19988
# Do we need the lib prefix for modules?
 
19989
need_lib_prefix=$need_lib_prefix
 
19990
 
 
19991
# Do we need a version for libraries?
 
19992
need_version=$need_version
 
19993
 
 
19994
# Whether dlopen is supported.
 
19995
dlopen_support=$enable_dlopen
 
19996
 
 
19997
# Whether dlopen of programs is supported.
 
19998
dlopen_self=$enable_dlopen_self
 
19999
 
 
20000
# Whether dlopen of statically linked programs is supported.
 
20001
dlopen_self_static=$enable_dlopen_self_static
 
20002
 
 
20003
# Compiler flag to prevent dynamic linking.
 
20004
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20005
 
 
20006
# Compiler flag to turn off builtin functions.
 
20007
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20008
 
 
20009
# Compiler flag to allow reflexive dlopens.
 
20010
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20011
 
 
20012
# Compiler flag to generate shared objects directly from archives.
 
20013
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20014
 
 
20015
# Compiler flag to generate thread-safe objects.
 
20016
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20017
 
 
20018
# Library versioning type.
 
20019
version_type=$version_type
 
20020
 
 
20021
# Format of library name prefix.
 
20022
libname_spec=$lt_libname_spec
 
20023
 
 
20024
# List of archive names.  First name is the real one, the rest are links.
 
20025
# The last name is the one that the linker finds with -lNAME.
 
20026
library_names_spec=$lt_library_names_spec
 
20027
 
 
20028
# The coded name of the library, if different from the real name.
 
20029
soname_spec=$lt_soname_spec
 
20030
 
 
20031
# Commands used to build and install an old-style archive.
 
20032
RANLIB=$lt_RANLIB
 
20033
old_archive_cmds=$lt_old_archive_cmds_RC
 
20034
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20035
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20036
 
 
20037
# Create an old-style archive from a shared archive.
 
20038
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20039
 
 
20040
# Create a temporary old-style archive to link instead of a shared archive.
 
20041
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20042
 
 
20043
# Commands used to build and install a shared archive.
 
20044
archive_cmds=$lt_archive_cmds_RC
 
20045
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20046
postinstall_cmds=$lt_postinstall_cmds
 
20047
postuninstall_cmds=$lt_postuninstall_cmds
 
20048
 
 
20049
# Commands used to build a loadable module (assumed same as above if empty)
 
20050
module_cmds=$lt_module_cmds_RC
 
20051
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20052
 
 
20053
# Commands to strip libraries.
 
20054
old_striplib=$lt_old_striplib
 
20055
striplib=$lt_striplib
 
20056
 
 
20057
# Dependencies to place before the objects being linked to create a
 
20058
# shared library.
 
20059
predep_objects=$lt_predep_objects_RC
 
20060
 
 
20061
# Dependencies to place after the objects being linked to create a
 
20062
# shared library.
 
20063
postdep_objects=$lt_postdep_objects_RC
 
20064
 
 
20065
# Dependencies to place before the objects being linked to create a
 
20066
# shared library.
 
20067
predeps=$lt_predeps_RC
 
20068
 
 
20069
# Dependencies to place after the objects being linked to create a
 
20070
# shared library.
 
20071
postdeps=$lt_postdeps_RC
 
20072
 
 
20073
# The directories searched by this compiler when creating a shared
 
20074
# library
 
20075
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
20076
 
 
20077
# The library search path used internally by the compiler when linking
 
20078
# a shared library.
 
20079
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20080
 
 
20081
# Method to check whether dependent libraries are shared objects.
 
20082
deplibs_check_method=$lt_deplibs_check_method
 
20083
 
 
20084
# Command to use when deplibs_check_method == file_magic.
 
20085
file_magic_cmd=$lt_file_magic_cmd
 
20086
 
 
20087
# Flag that allows shared libraries with undefined symbols to be built.
 
20088
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20089
 
 
20090
# Flag that forces no undefined symbols.
 
20091
no_undefined_flag=$lt_no_undefined_flag_RC
 
20092
 
 
20093
# Commands used to finish a libtool library installation in a directory.
 
20094
finish_cmds=$lt_finish_cmds
 
20095
 
 
20096
# Same as above, but a single script fragment to be evaled but not shown.
 
20097
finish_eval=$lt_finish_eval
 
20098
 
 
20099
# Take the output of nm and produce a listing of raw symbols and C names.
 
20100
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20101
 
 
20102
# Transform the output of nm in a proper C declaration
 
20103
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20104
 
 
20105
# Transform the output of nm in a C name address pair
 
20106
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20107
 
 
20108
# This is the shared library runtime path variable.
 
20109
runpath_var=$runpath_var
 
20110
 
 
20111
# This is the shared library path variable.
 
20112
shlibpath_var=$shlibpath_var
 
20113
 
 
20114
# Is shlibpath searched before the hard-coded library search path?
 
20115
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20116
 
 
20117
# How to hardcode a shared library path into an executable.
 
20118
hardcode_action=$hardcode_action_RC
 
20119
 
 
20120
# Whether we should hardcode library paths into libraries.
 
20121
hardcode_into_libs=$hardcode_into_libs
 
20122
 
 
20123
# Flag to hardcode \$libdir into a binary during linking.
 
20124
# This must work even if \$libdir does not exist.
 
20125
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20126
 
 
20127
# If ld is used when linking, flag to hardcode \$libdir into
 
20128
# a binary during linking. This must work even if \$libdir does
 
20129
# not exist.
 
20130
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20131
 
 
20132
# Whether we need a single -rpath flag with a separated argument.
 
20133
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20134
 
 
20135
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20136
# resulting binary.
 
20137
hardcode_direct=$hardcode_direct_RC
 
20138
 
 
20139
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20140
# resulting binary.
 
20141
hardcode_minus_L=$hardcode_minus_L_RC
 
20142
 
 
20143
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20144
# the resulting binary.
 
20145
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20146
 
 
20147
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20148
# and all subsequent libraries and executables linked against it.
 
20149
hardcode_automatic=$hardcode_automatic_RC
 
20150
 
 
20151
# Variables whose values should be saved in libtool wrapper scripts and
 
20152
# restored at relink time.
 
20153
variables_saved_for_relink="$variables_saved_for_relink"
 
20154
 
 
20155
# Whether libtool must link a program against all its dependency libraries.
 
20156
link_all_deplibs=$link_all_deplibs_RC
 
20157
 
 
20158
# Compile-time system search path for libraries
 
20159
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20160
 
 
20161
# Run-time system search path for libraries
 
20162
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20163
 
 
20164
# Fix the shell variable \$srcfile for the compiler.
 
20165
fix_srcfile_path=$lt_fix_srcfile_path
 
20166
 
 
20167
# Set to yes if exported symbols are required.
 
20168
always_export_symbols=$always_export_symbols_RC
 
20169
 
 
20170
# The commands to list exported symbols.
 
20171
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20172
 
 
20173
# The commands to extract the exported symbol list from a shared archive.
 
20174
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20175
 
 
20176
# Symbols that should not be listed in the preloaded symbols.
 
20177
exclude_expsyms=$lt_exclude_expsyms_RC
 
20178
 
 
20179
# Symbols that must always be exported.
 
20180
include_expsyms=$lt_include_expsyms_RC
 
20181
 
 
20182
# ### END LIBTOOL TAG CONFIG: $tagname
 
20183
 
 
20184
__EOF__
 
20185
 
 
20186
 
 
20187
else
 
20188
  # If there is no Makefile yet, we rely on a make rule to execute
 
20189
  # `config.status --recheck' to rerun these tests and create the
 
20190
  # libtool script then.
 
20191
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20192
  if test -f "$ltmain_in"; then
 
20193
    test -f Makefile && make "$ltmain"
 
20194
  fi
 
20195
fi
 
20196
 
 
20197
 
 
20198
ac_ext=c
 
20199
ac_cpp='$CPP $CPPFLAGS'
 
20200
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20201
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20202
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20203
 
 
20204
CC="$lt_save_CC"
 
20205
 
 
20206
        ;;
 
20207
 
 
20208
      *)
 
20209
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20210
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20211
   { (exit 1); exit 1; }; }
 
20212
        ;;
 
20213
      esac
 
20214
 
 
20215
      # Append the new tag name to the list of available tags.
 
20216
      if test -n "$tagname" ; then
 
20217
      available_tags="$available_tags $tagname"
 
20218
    fi
 
20219
    fi
 
20220
  done
 
20221
  IFS="$lt_save_ifs"
 
20222
 
 
20223
  # Now substitute the updated list of available tags.
 
20224
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20225
    mv "${ofile}T" "$ofile"
 
20226
    chmod +x "$ofile"
 
20227
  else
 
20228
    rm -f "${ofile}T"
 
20229
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20230
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20231
   { (exit 1); exit 1; }; }
 
20232
  fi
 
20233
fi
 
20234
 
 
20235
 
 
20236
 
 
20237
# This can be used to rebuild libtool when needed
 
20238
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20239
 
 
20240
# Always use our own libtool.
 
20241
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20242
 
 
20243
# Prevent multiple expansion
 
20244
 
 
20245
 
 
20246
 
 
20247
 
 
20248
 
 
20249
 
 
20250
 
 
20251
 
 
20252
 
 
20253
 
 
20254
 
 
20255
 
 
20256
 
 
20257
 
 
20258
 
 
20259
 
 
20260
 
 
20261
 
 
20262
 
 
20263
 
 
20264
 
 
20265
# Checks for required libraries, don't set global -lpthread, -lm, -ljpeg, ... here, set in Makefile.
 
20266
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
20267
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
 
20268
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
20269
  $as_echo_n "(cached) " >&6
 
20270
else
 
20271
  ac_check_lib_save_LIBS=$LIBS
 
20272
LIBS="-lpthread  $LIBS"
 
20273
cat >conftest.$ac_ext <<_ACEOF
 
20274
/* confdefs.h.  */
 
20275
_ACEOF
 
20276
cat confdefs.h >>conftest.$ac_ext
 
20277
cat >>conftest.$ac_ext <<_ACEOF
 
20278
/* end confdefs.h.  */
 
20279
 
 
20280
/* Override any GCC internal prototype to avoid an error.
 
20281
   Use char because int might match the return type of a GCC
 
20282
   builtin and then its argument prototype would still apply.  */
 
20283
#ifdef __cplusplus
 
20284
extern "C"
 
20285
#endif
 
20286
char pthread_create ();
 
20287
int
 
20288
main ()
 
20289
{
 
20290
return pthread_create ();
 
20291
  ;
 
20292
  return 0;
 
20293
}
 
20294
_ACEOF
 
20295
rm -f conftest.$ac_objext conftest$ac_exeext
 
20296
if { (ac_try="$ac_link"
 
20297
case "(($ac_try" in
 
20298
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20299
  *) ac_try_echo=$ac_try;;
 
20300
esac
 
20301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20302
$as_echo "$ac_try_echo") >&5
 
20303
  (eval "$ac_link") 2>conftest.er1
 
20304
  ac_status=$?
 
20305
  grep -v '^ *+' conftest.er1 >conftest.err
 
20306
  rm -f conftest.er1
 
20307
  cat conftest.err >&5
 
20308
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20309
  (exit $ac_status); } && {
 
20310
         test -z "$ac_c_werror_flag" ||
 
20311
         test ! -s conftest.err
 
20312
       } && test -s conftest$ac_exeext && {
 
20313
         test "$cross_compiling" = yes ||
 
20314
         $as_test_x conftest$ac_exeext
 
20315
       }; then
 
20316
  ac_cv_lib_pthread_pthread_create=yes
 
20317
else
 
20318
  $as_echo "$as_me: failed program was:" >&5
 
20319
sed 's/^/| /' conftest.$ac_ext >&5
 
20320
 
 
20321
        ac_cv_lib_pthread_pthread_create=no
 
20322
fi
 
20323
 
 
20324
rm -rf conftest.dSYM
 
20325
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20326
      conftest$ac_exeext conftest.$ac_ext
 
20327
LIBS=$ac_check_lib_save_LIBS
 
20328
fi
 
20329
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
20330
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
 
20331
if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
 
20332
  LIBS="$LIBS"
 
20333
else
 
20334
  { { $as_echo "$as_me:$LINENO: error: cannot find libpthread support" >&5
 
20335
$as_echo "$as_me: error: cannot find libpthread support" >&2;}
 
20336
   { (exit 7); exit 7; }; }
 
20337
fi
 
20338
 
 
20339
{ $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
 
20340
$as_echo_n "checking for pow in -lm... " >&6; }
 
20341
if test "${ac_cv_lib_m_pow+set}" = set; then
 
20342
  $as_echo_n "(cached) " >&6
 
20343
else
 
20344
  ac_check_lib_save_LIBS=$LIBS
 
20345
LIBS="-lm  $LIBS"
 
20346
cat >conftest.$ac_ext <<_ACEOF
 
20347
/* confdefs.h.  */
 
20348
_ACEOF
 
20349
cat confdefs.h >>conftest.$ac_ext
 
20350
cat >>conftest.$ac_ext <<_ACEOF
 
20351
/* end confdefs.h.  */
 
20352
 
 
20353
/* Override any GCC internal prototype to avoid an error.
 
20354
   Use char because int might match the return type of a GCC
 
20355
   builtin and then its argument prototype would still apply.  */
 
20356
#ifdef __cplusplus
 
20357
extern "C"
 
20358
#endif
 
20359
char pow ();
 
20360
int
 
20361
main ()
 
20362
{
 
20363
return pow ();
 
20364
  ;
 
20365
  return 0;
 
20366
}
 
20367
_ACEOF
 
20368
rm -f conftest.$ac_objext conftest$ac_exeext
 
20369
if { (ac_try="$ac_link"
 
20370
case "(($ac_try" in
 
20371
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20372
  *) ac_try_echo=$ac_try;;
 
20373
esac
 
20374
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20375
$as_echo "$ac_try_echo") >&5
 
20376
  (eval "$ac_link") 2>conftest.er1
 
20377
  ac_status=$?
 
20378
  grep -v '^ *+' conftest.er1 >conftest.err
 
20379
  rm -f conftest.er1
 
20380
  cat conftest.err >&5
 
20381
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20382
  (exit $ac_status); } && {
 
20383
         test -z "$ac_c_werror_flag" ||
 
20384
         test ! -s conftest.err
 
20385
       } && test -s conftest$ac_exeext && {
 
20386
         test "$cross_compiling" = yes ||
 
20387
         $as_test_x conftest$ac_exeext
 
20388
       }; then
 
20389
  ac_cv_lib_m_pow=yes
 
20390
else
 
20391
  $as_echo "$as_me: failed program was:" >&5
 
20392
sed 's/^/| /' conftest.$ac_ext >&5
 
20393
 
 
20394
        ac_cv_lib_m_pow=no
 
20395
fi
 
20396
 
 
20397
rm -rf conftest.dSYM
 
20398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20399
      conftest$ac_exeext conftest.$ac_ext
 
20400
LIBS=$ac_check_lib_save_LIBS
 
20401
fi
 
20402
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
 
20403
$as_echo "$ac_cv_lib_m_pow" >&6; }
 
20404
if test "x$ac_cv_lib_m_pow" = x""yes; then
 
20405
  LIBS="$LIBS"
 
20406
else
 
20407
  { { $as_echo "$as_me:$LINENO: error: cannot find libm math support" >&5
 
20408
$as_echo "$as_me: error: cannot find libm math support" >&2;}
 
20409
   { (exit 10); exit 10; }; }
 
20410
fi
 
20411
 
 
20412
{ $as_echo "$as_me:$LINENO: checking for jpeg_set_defaults in -ljpeg" >&5
 
20413
$as_echo_n "checking for jpeg_set_defaults in -ljpeg... " >&6; }
 
20414
if test "${ac_cv_lib_jpeg_jpeg_set_defaults+set}" = set; then
 
20415
  $as_echo_n "(cached) " >&6
 
20416
else
 
20417
  ac_check_lib_save_LIBS=$LIBS
 
20418
LIBS="-ljpeg  $LIBS"
 
20419
cat >conftest.$ac_ext <<_ACEOF
 
20420
/* confdefs.h.  */
 
20421
_ACEOF
 
20422
cat confdefs.h >>conftest.$ac_ext
 
20423
cat >>conftest.$ac_ext <<_ACEOF
 
20424
/* end confdefs.h.  */
 
20425
 
 
20426
/* Override any GCC internal prototype to avoid an error.
 
20427
   Use char because int might match the return type of a GCC
 
20428
   builtin and then its argument prototype would still apply.  */
 
20429
#ifdef __cplusplus
 
20430
extern "C"
 
20431
#endif
 
20432
char jpeg_set_defaults ();
 
20433
int
 
20434
main ()
 
20435
{
 
20436
return jpeg_set_defaults ();
 
20437
  ;
 
20438
  return 0;
 
20439
}
 
20440
_ACEOF
 
20441
rm -f conftest.$ac_objext conftest$ac_exeext
 
20442
if { (ac_try="$ac_link"
 
20443
case "(($ac_try" in
 
20444
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20445
  *) ac_try_echo=$ac_try;;
 
20446
esac
 
20447
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20448
$as_echo "$ac_try_echo") >&5
 
20449
  (eval "$ac_link") 2>conftest.er1
 
20450
  ac_status=$?
 
20451
  grep -v '^ *+' conftest.er1 >conftest.err
 
20452
  rm -f conftest.er1
 
20453
  cat conftest.err >&5
 
20454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20455
  (exit $ac_status); } && {
 
20456
         test -z "$ac_c_werror_flag" ||
 
20457
         test ! -s conftest.err
 
20458
       } && test -s conftest$ac_exeext && {
 
20459
         test "$cross_compiling" = yes ||
 
20460
         $as_test_x conftest$ac_exeext
 
20461
       }; then
 
20462
  ac_cv_lib_jpeg_jpeg_set_defaults=yes
 
20463
else
 
20464
  $as_echo "$as_me: failed program was:" >&5
 
20465
sed 's/^/| /' conftest.$ac_ext >&5
 
20466
 
 
20467
        ac_cv_lib_jpeg_jpeg_set_defaults=no
 
20468
fi
 
20469
 
 
20470
rm -rf conftest.dSYM
 
20471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20472
      conftest$ac_exeext conftest.$ac_ext
 
20473
LIBS=$ac_check_lib_save_LIBS
 
20474
fi
 
20475
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_set_defaults" >&5
 
20476
$as_echo "$ac_cv_lib_jpeg_jpeg_set_defaults" >&6; }
 
20477
if test "x$ac_cv_lib_jpeg_jpeg_set_defaults" = x""yes; then
 
20478
  LIBS="$LIBS"
 
20479
else
 
20480
  { { $as_echo "$as_me:$LINENO: error: \"cannot find libjpeg support\"" >&5
 
20481
$as_echo "$as_me: error: \"cannot find libjpeg support\"" >&2;}
 
20482
   { (exit 102); exit 102; }; }
 
20483
fi
 
20484
 
 
20485
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
20486
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
20487
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
20488
  $as_echo_n "(cached) " >&6
 
20489
else
 
20490
  ac_check_lib_save_LIBS=$LIBS
 
20491
LIBS="-ldl  $LIBS"
 
20492
cat >conftest.$ac_ext <<_ACEOF
 
20493
/* confdefs.h.  */
 
20494
_ACEOF
 
20495
cat confdefs.h >>conftest.$ac_ext
 
20496
cat >>conftest.$ac_ext <<_ACEOF
 
20497
/* end confdefs.h.  */
 
20498
 
 
20499
/* Override any GCC internal prototype to avoid an error.
 
20500
   Use char because int might match the return type of a GCC
 
20501
   builtin and then its argument prototype would still apply.  */
 
20502
#ifdef __cplusplus
 
20503
extern "C"
 
20504
#endif
 
20505
char dlopen ();
 
20506
int
 
20507
main ()
 
20508
{
 
20509
return dlopen ();
 
20510
  ;
 
20511
  return 0;
 
20512
}
 
20513
_ACEOF
 
20514
rm -f conftest.$ac_objext conftest$ac_exeext
 
20515
if { (ac_try="$ac_link"
 
20516
case "(($ac_try" in
 
20517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20518
  *) ac_try_echo=$ac_try;;
 
20519
esac
 
20520
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20521
$as_echo "$ac_try_echo") >&5
 
20522
  (eval "$ac_link") 2>conftest.er1
 
20523
  ac_status=$?
 
20524
  grep -v '^ *+' conftest.er1 >conftest.err
 
20525
  rm -f conftest.er1
 
20526
  cat conftest.err >&5
 
20527
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20528
  (exit $ac_status); } && {
 
20529
         test -z "$ac_c_werror_flag" ||
 
20530
         test ! -s conftest.err
 
20531
       } && test -s conftest$ac_exeext && {
 
20532
         test "$cross_compiling" = yes ||
 
20533
         $as_test_x conftest$ac_exeext
 
20534
       }; then
 
20535
  ac_cv_lib_dl_dlopen=yes
 
20536
else
 
20537
  $as_echo "$as_me: failed program was:" >&5
 
20538
sed 's/^/| /' conftest.$ac_ext >&5
 
20539
 
 
20540
        ac_cv_lib_dl_dlopen=no
 
20541
fi
 
20542
 
 
20543
rm -rf conftest.dSYM
 
20544
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20545
      conftest$ac_exeext conftest.$ac_ext
 
20546
LIBS=$ac_check_lib_save_LIBS
 
20547
fi
 
20548
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
20549
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
20550
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
20551
  LIBS="$LIBS" cat >>confdefs.h <<\_ACEOF
 
20552
#define HAVE_LIBDL 1
 
20553
_ACEOF
 
20554
 
 
20555
else
 
20556
  { { $as_echo "$as_me:$LINENO: error: \"cannot find libdl support\"" >&5
 
20557
$as_echo "$as_me: error: \"cannot find libdl support\"" >&2;}
 
20558
   { (exit 104); exit 104; }; }
 
20559
fi
 
20560
 
 
20561
 
 
20562
# Checks for required header files.
 
20563
 
 
20564
for ac_header in pthread.h
 
20565
do
 
20566
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20567
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20568
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20569
$as_echo_n "checking for $ac_header... " >&6; }
 
20570
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20571
  $as_echo_n "(cached) " >&6
 
20572
fi
 
20573
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20574
                 $as_echo "$as_val"'`
 
20575
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20576
$as_echo "$ac_res" >&6; }
 
20577
else
 
20578
  # Is the header compilable?
 
20579
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20580
$as_echo_n "checking $ac_header usability... " >&6; }
 
20581
cat >conftest.$ac_ext <<_ACEOF
 
20582
/* confdefs.h.  */
 
20583
_ACEOF
 
20584
cat confdefs.h >>conftest.$ac_ext
 
20585
cat >>conftest.$ac_ext <<_ACEOF
 
20586
/* end confdefs.h.  */
 
20587
$ac_includes_default
 
20588
#include <$ac_header>
 
20589
_ACEOF
 
20590
rm -f conftest.$ac_objext
 
20591
if { (ac_try="$ac_compile"
 
20592
case "(($ac_try" in
 
20593
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20594
  *) ac_try_echo=$ac_try;;
 
20595
esac
 
20596
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20597
$as_echo "$ac_try_echo") >&5
 
20598
  (eval "$ac_compile") 2>conftest.er1
 
20599
  ac_status=$?
 
20600
  grep -v '^ *+' conftest.er1 >conftest.err
 
20601
  rm -f conftest.er1
 
20602
  cat conftest.err >&5
 
20603
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20604
  (exit $ac_status); } && {
 
20605
         test -z "$ac_c_werror_flag" ||
 
20606
         test ! -s conftest.err
 
20607
       } && test -s conftest.$ac_objext; then
 
20608
  ac_header_compiler=yes
 
20609
else
 
20610
  $as_echo "$as_me: failed program was:" >&5
 
20611
sed 's/^/| /' conftest.$ac_ext >&5
 
20612
 
 
20613
        ac_header_compiler=no
 
20614
fi
 
20615
 
 
20616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20617
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20618
$as_echo "$ac_header_compiler" >&6; }
 
20619
 
 
20620
# Is the header present?
 
20621
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20622
$as_echo_n "checking $ac_header presence... " >&6; }
 
20623
cat >conftest.$ac_ext <<_ACEOF
 
20624
/* confdefs.h.  */
 
20625
_ACEOF
 
20626
cat confdefs.h >>conftest.$ac_ext
 
20627
cat >>conftest.$ac_ext <<_ACEOF
 
20628
/* end confdefs.h.  */
 
20629
#include <$ac_header>
 
20630
_ACEOF
 
20631
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20632
case "(($ac_try" in
 
20633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20634
  *) ac_try_echo=$ac_try;;
 
20635
esac
 
20636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20637
$as_echo "$ac_try_echo") >&5
 
20638
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20639
  ac_status=$?
 
20640
  grep -v '^ *+' conftest.er1 >conftest.err
 
20641
  rm -f conftest.er1
 
20642
  cat conftest.err >&5
 
20643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20644
  (exit $ac_status); } >/dev/null && {
 
20645
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20646
         test ! -s conftest.err
 
20647
       }; then
 
20648
  ac_header_preproc=yes
 
20649
else
 
20650
  $as_echo "$as_me: failed program was:" >&5
 
20651
sed 's/^/| /' conftest.$ac_ext >&5
 
20652
 
 
20653
  ac_header_preproc=no
 
20654
fi
 
20655
 
 
20656
rm -f conftest.err conftest.$ac_ext
 
20657
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20658
$as_echo "$ac_header_preproc" >&6; }
 
20659
 
 
20660
# So?  What about this header?
 
20661
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20662
  yes:no: )
 
20663
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20664
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20665
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20666
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20667
    ac_header_preproc=yes
 
20668
    ;;
 
20669
  no:yes:* )
 
20670
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20671
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20672
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20673
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20674
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20675
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20676
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20677
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20678
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20679
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20680
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20681
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20682
    ( cat <<\_ASBOX
 
20683
## --------------------- ##
 
20684
## Report this to 3.12.4 ##
 
20685
## --------------------- ##
 
20686
_ASBOX
 
20687
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20688
    ;;
 
20689
esac
 
20690
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20691
$as_echo_n "checking for $ac_header... " >&6; }
 
20692
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20693
  $as_echo_n "(cached) " >&6
 
20694
else
 
20695
  eval "$as_ac_Header=\$ac_header_preproc"
 
20696
fi
 
20697
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20698
                 $as_echo "$as_val"'`
 
20699
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20700
$as_echo "$ac_res" >&6; }
 
20701
 
 
20702
fi
 
20703
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20704
                 $as_echo "$as_val"'`
 
20705
   if test "x$as_val" = x""yes; then
 
20706
  cat >>confdefs.h <<_ACEOF
 
20707
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20708
_ACEOF
 
20709
 
 
20710
else
 
20711
  { { $as_echo "$as_me:$LINENO: error: cannot find pthread-devel support" >&5
 
20712
$as_echo "$as_me: error: cannot find pthread-devel support" >&2;}
 
20713
   { (exit 7); exit 7; }; }
 
20714
fi
 
20715
 
 
20716
done
 
20717
 
 
20718
 
 
20719
for ac_header in jpeglib.h
 
20720
do
 
20721
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20722
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20723
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20724
$as_echo_n "checking for $ac_header... " >&6; }
 
20725
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20726
  $as_echo_n "(cached) " >&6
 
20727
fi
 
20728
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20729
                 $as_echo "$as_val"'`
 
20730
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20731
$as_echo "$ac_res" >&6; }
 
20732
else
 
20733
  # Is the header compilable?
 
20734
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20735
$as_echo_n "checking $ac_header usability... " >&6; }
 
20736
cat >conftest.$ac_ext <<_ACEOF
 
20737
/* confdefs.h.  */
 
20738
_ACEOF
 
20739
cat confdefs.h >>conftest.$ac_ext
 
20740
cat >>conftest.$ac_ext <<_ACEOF
 
20741
/* end confdefs.h.  */
 
20742
$ac_includes_default
 
20743
#include <$ac_header>
 
20744
_ACEOF
 
20745
rm -f conftest.$ac_objext
 
20746
if { (ac_try="$ac_compile"
 
20747
case "(($ac_try" in
 
20748
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20749
  *) ac_try_echo=$ac_try;;
 
20750
esac
 
20751
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20752
$as_echo "$ac_try_echo") >&5
 
20753
  (eval "$ac_compile") 2>conftest.er1
 
20754
  ac_status=$?
 
20755
  grep -v '^ *+' conftest.er1 >conftest.err
 
20756
  rm -f conftest.er1
 
20757
  cat conftest.err >&5
 
20758
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20759
  (exit $ac_status); } && {
 
20760
         test -z "$ac_c_werror_flag" ||
 
20761
         test ! -s conftest.err
 
20762
       } && test -s conftest.$ac_objext; then
 
20763
  ac_header_compiler=yes
 
20764
else
 
20765
  $as_echo "$as_me: failed program was:" >&5
 
20766
sed 's/^/| /' conftest.$ac_ext >&5
 
20767
 
 
20768
        ac_header_compiler=no
 
20769
fi
 
20770
 
 
20771
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20772
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20773
$as_echo "$ac_header_compiler" >&6; }
 
20774
 
 
20775
# Is the header present?
 
20776
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20777
$as_echo_n "checking $ac_header presence... " >&6; }
 
20778
cat >conftest.$ac_ext <<_ACEOF
 
20779
/* confdefs.h.  */
 
20780
_ACEOF
 
20781
cat confdefs.h >>conftest.$ac_ext
 
20782
cat >>conftest.$ac_ext <<_ACEOF
 
20783
/* end confdefs.h.  */
 
20784
#include <$ac_header>
 
20785
_ACEOF
 
20786
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20787
case "(($ac_try" in
 
20788
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20789
  *) ac_try_echo=$ac_try;;
 
20790
esac
 
20791
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20792
$as_echo "$ac_try_echo") >&5
 
20793
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20794
  ac_status=$?
 
20795
  grep -v '^ *+' conftest.er1 >conftest.err
 
20796
  rm -f conftest.er1
 
20797
  cat conftest.err >&5
 
20798
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20799
  (exit $ac_status); } >/dev/null && {
 
20800
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20801
         test ! -s conftest.err
 
20802
       }; then
 
20803
  ac_header_preproc=yes
 
20804
else
 
20805
  $as_echo "$as_me: failed program was:" >&5
 
20806
sed 's/^/| /' conftest.$ac_ext >&5
 
20807
 
 
20808
  ac_header_preproc=no
 
20809
fi
 
20810
 
 
20811
rm -f conftest.err conftest.$ac_ext
 
20812
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20813
$as_echo "$ac_header_preproc" >&6; }
 
20814
 
 
20815
# So?  What about this header?
 
20816
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20817
  yes:no: )
 
20818
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20819
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20820
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20821
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20822
    ac_header_preproc=yes
 
20823
    ;;
 
20824
  no:yes:* )
 
20825
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20826
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20827
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20828
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20829
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20830
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20831
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20832
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20833
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20834
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20835
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20836
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20837
    ( cat <<\_ASBOX
 
20838
## --------------------- ##
 
20839
## Report this to 3.12.4 ##
 
20840
## --------------------- ##
 
20841
_ASBOX
 
20842
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20843
    ;;
 
20844
esac
 
20845
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20846
$as_echo_n "checking for $ac_header... " >&6; }
 
20847
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20848
  $as_echo_n "(cached) " >&6
 
20849
else
 
20850
  eval "$as_ac_Header=\$ac_header_preproc"
 
20851
fi
 
20852
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20853
                 $as_echo "$as_val"'`
 
20854
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20855
$as_echo "$ac_res" >&6; }
 
20856
 
 
20857
fi
 
20858
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20859
                 $as_echo "$as_val"'`
 
20860
   if test "x$as_val" = x""yes; then
 
20861
  cat >>confdefs.h <<_ACEOF
 
20862
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20863
_ACEOF
 
20864
 
 
20865
else
 
20866
  { { $as_echo "$as_me:$LINENO: error: cannot find libjpeg-devel support" >&5
 
20867
$as_echo "$as_me: error: cannot find libjpeg-devel support" >&2;}
 
20868
   { (exit 103); exit 103; }; }
 
20869
fi
 
20870
 
 
20871
done
 
20872
 
 
20873
 
 
20874
# Checks for typedefs, structures, and compiler characteristics.
 
20875
 
 
20876
 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20877
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
 
20878
if test "${ac_cv_c_bigendian+set}" = set; then
 
20879
  $as_echo_n "(cached) " >&6
 
20880
else
 
20881
  ac_cv_c_bigendian=unknown
 
20882
    # See if we're dealing with a universal compiler.
 
20883
    cat >conftest.$ac_ext <<_ACEOF
 
20884
/* confdefs.h.  */
 
20885
_ACEOF
 
20886
cat confdefs.h >>conftest.$ac_ext
 
20887
cat >>conftest.$ac_ext <<_ACEOF
 
20888
/* end confdefs.h.  */
 
20889
#ifndef __APPLE_CC__
 
20890
               not a universal capable compiler
 
20891
             #endif
 
20892
             typedef int dummy;
 
20893
 
 
20894
_ACEOF
 
20895
rm -f conftest.$ac_objext
 
20896
if { (ac_try="$ac_compile"
 
20897
case "(($ac_try" in
 
20898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20899
  *) ac_try_echo=$ac_try;;
 
20900
esac
 
20901
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20902
$as_echo "$ac_try_echo") >&5
 
20903
  (eval "$ac_compile") 2>conftest.er1
 
20904
  ac_status=$?
 
20905
  grep -v '^ *+' conftest.er1 >conftest.err
 
20906
  rm -f conftest.er1
 
20907
  cat conftest.err >&5
 
20908
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20909
  (exit $ac_status); } && {
 
20910
         test -z "$ac_c_werror_flag" ||
 
20911
         test ! -s conftest.err
 
20912
       } && test -s conftest.$ac_objext; then
 
20913
 
 
20914
        # Check for potential -arch flags.  It is not universal unless
 
20915
        # there are some -arch flags.  Note that *ppc* also matches
 
20916
        # ppc64.  This check is also rather less than ideal.
 
20917
        case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
 
20918
          *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
 
20919
        esac
 
20920
else
 
20921
  $as_echo "$as_me: failed program was:" >&5
 
20922
sed 's/^/| /' conftest.$ac_ext >&5
 
20923
 
 
20924
 
 
20925
fi
 
20926
 
 
20927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20928
    if test $ac_cv_c_bigendian = unknown; then
 
20929
      # See if sys/param.h defines the BYTE_ORDER macro.
 
20930
      cat >conftest.$ac_ext <<_ACEOF
 
20931
/* confdefs.h.  */
 
20932
_ACEOF
 
20933
cat confdefs.h >>conftest.$ac_ext
 
20934
cat >>conftest.$ac_ext <<_ACEOF
 
20935
/* end confdefs.h.  */
 
20936
#include <sys/types.h>
 
20937
             #include <sys/param.h>
 
20938
 
 
20939
int
 
20940
main ()
 
20941
{
 
20942
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
 
20943
                     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
 
20944
                     && LITTLE_ENDIAN)
 
20945
              bogus endian macros
 
20946
             #endif
 
20947
 
 
20948
  ;
 
20949
  return 0;
 
20950
}
 
20951
_ACEOF
 
20952
rm -f conftest.$ac_objext
 
20953
if { (ac_try="$ac_compile"
 
20954
case "(($ac_try" in
 
20955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20956
  *) ac_try_echo=$ac_try;;
 
20957
esac
 
20958
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20959
$as_echo "$ac_try_echo") >&5
 
20960
  (eval "$ac_compile") 2>conftest.er1
 
20961
  ac_status=$?
 
20962
  grep -v '^ *+' conftest.er1 >conftest.err
 
20963
  rm -f conftest.er1
 
20964
  cat conftest.err >&5
 
20965
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20966
  (exit $ac_status); } && {
 
20967
         test -z "$ac_c_werror_flag" ||
 
20968
         test ! -s conftest.err
 
20969
       } && test -s conftest.$ac_objext; then
 
20970
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
20971
         cat >conftest.$ac_ext <<_ACEOF
 
20972
/* confdefs.h.  */
 
20973
_ACEOF
 
20974
cat confdefs.h >>conftest.$ac_ext
 
20975
cat >>conftest.$ac_ext <<_ACEOF
 
20976
/* end confdefs.h.  */
 
20977
#include <sys/types.h>
 
20978
                #include <sys/param.h>
 
20979
 
 
20980
int
 
20981
main ()
 
20982
{
 
20983
#if BYTE_ORDER != BIG_ENDIAN
 
20984
                 not big endian
 
20985
                #endif
 
20986
 
 
20987
  ;
 
20988
  return 0;
 
20989
}
 
20990
_ACEOF
 
20991
rm -f conftest.$ac_objext
 
20992
if { (ac_try="$ac_compile"
 
20993
case "(($ac_try" in
 
20994
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20995
  *) ac_try_echo=$ac_try;;
 
20996
esac
 
20997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20998
$as_echo "$ac_try_echo") >&5
 
20999
  (eval "$ac_compile") 2>conftest.er1
 
21000
  ac_status=$?
 
21001
  grep -v '^ *+' conftest.er1 >conftest.err
 
21002
  rm -f conftest.er1
 
21003
  cat conftest.err >&5
 
21004
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21005
  (exit $ac_status); } && {
 
21006
         test -z "$ac_c_werror_flag" ||
 
21007
         test ! -s conftest.err
 
21008
       } && test -s conftest.$ac_objext; then
 
21009
  ac_cv_c_bigendian=yes
 
21010
else
 
21011
  $as_echo "$as_me: failed program was:" >&5
 
21012
sed 's/^/| /' conftest.$ac_ext >&5
 
21013
 
 
21014
        ac_cv_c_bigendian=no
 
21015
fi
 
21016
 
 
21017
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21018
else
 
21019
  $as_echo "$as_me: failed program was:" >&5
 
21020
sed 's/^/| /' conftest.$ac_ext >&5
 
21021
 
 
21022
 
 
21023
fi
 
21024
 
 
21025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21026
    fi
 
21027
    if test $ac_cv_c_bigendian = unknown; then
 
21028
      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
 
21029
      cat >conftest.$ac_ext <<_ACEOF
 
21030
/* confdefs.h.  */
 
21031
_ACEOF
 
21032
cat confdefs.h >>conftest.$ac_ext
 
21033
cat >>conftest.$ac_ext <<_ACEOF
 
21034
/* end confdefs.h.  */
 
21035
#include <limits.h>
 
21036
 
 
21037
int
 
21038
main ()
 
21039
{
 
21040
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
 
21041
              bogus endian macros
 
21042
             #endif
 
21043
 
 
21044
  ;
 
21045
  return 0;
 
21046
}
 
21047
_ACEOF
 
21048
rm -f conftest.$ac_objext
 
21049
if { (ac_try="$ac_compile"
 
21050
case "(($ac_try" in
 
21051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21052
  *) ac_try_echo=$ac_try;;
 
21053
esac
 
21054
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21055
$as_echo "$ac_try_echo") >&5
 
21056
  (eval "$ac_compile") 2>conftest.er1
 
21057
  ac_status=$?
 
21058
  grep -v '^ *+' conftest.er1 >conftest.err
 
21059
  rm -f conftest.er1
 
21060
  cat conftest.err >&5
 
21061
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21062
  (exit $ac_status); } && {
 
21063
         test -z "$ac_c_werror_flag" ||
 
21064
         test ! -s conftest.err
 
21065
       } && test -s conftest.$ac_objext; then
 
21066
  # It does; now see whether it defined to _BIG_ENDIAN or not.
 
21067
         cat >conftest.$ac_ext <<_ACEOF
 
21068
/* confdefs.h.  */
 
21069
_ACEOF
 
21070
cat confdefs.h >>conftest.$ac_ext
 
21071
cat >>conftest.$ac_ext <<_ACEOF
 
21072
/* end confdefs.h.  */
 
21073
#include <limits.h>
 
21074
 
 
21075
int
 
21076
main ()
 
21077
{
 
21078
#ifndef _BIG_ENDIAN
 
21079
                 not big endian
 
21080
                #endif
 
21081
 
 
21082
  ;
 
21083
  return 0;
 
21084
}
 
21085
_ACEOF
 
21086
rm -f conftest.$ac_objext
 
21087
if { (ac_try="$ac_compile"
 
21088
case "(($ac_try" in
 
21089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21090
  *) ac_try_echo=$ac_try;;
 
21091
esac
 
21092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21093
$as_echo "$ac_try_echo") >&5
 
21094
  (eval "$ac_compile") 2>conftest.er1
 
21095
  ac_status=$?
 
21096
  grep -v '^ *+' conftest.er1 >conftest.err
 
21097
  rm -f conftest.er1
 
21098
  cat conftest.err >&5
 
21099
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21100
  (exit $ac_status); } && {
 
21101
         test -z "$ac_c_werror_flag" ||
 
21102
         test ! -s conftest.err
 
21103
       } && test -s conftest.$ac_objext; then
 
21104
  ac_cv_c_bigendian=yes
 
21105
else
 
21106
  $as_echo "$as_me: failed program was:" >&5
 
21107
sed 's/^/| /' conftest.$ac_ext >&5
 
21108
 
 
21109
        ac_cv_c_bigendian=no
 
21110
fi
 
21111
 
 
21112
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21113
else
 
21114
  $as_echo "$as_me: failed program was:" >&5
 
21115
sed 's/^/| /' conftest.$ac_ext >&5
 
21116
 
 
21117
 
 
21118
fi
 
21119
 
 
21120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21121
    fi
 
21122
    if test $ac_cv_c_bigendian = unknown; then
 
21123
      # Compile a test program.
 
21124
      if test "$cross_compiling" = yes; then
 
21125
  # Try to guess by grepping values from an object file.
 
21126
         cat >conftest.$ac_ext <<_ACEOF
 
21127
/* confdefs.h.  */
 
21128
_ACEOF
 
21129
cat confdefs.h >>conftest.$ac_ext
 
21130
cat >>conftest.$ac_ext <<_ACEOF
 
21131
/* end confdefs.h.  */
 
21132
short int ascii_mm[] =
 
21133
                  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
21134
                short int ascii_ii[] =
 
21135
                  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
21136
                int use_ascii (int i) {
 
21137
                  return ascii_mm[i] + ascii_ii[i];
 
21138
                }
 
21139
                short int ebcdic_ii[] =
 
21140
                  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
21141
                short int ebcdic_mm[] =
 
21142
                  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
21143
                int use_ebcdic (int i) {
 
21144
                  return ebcdic_mm[i] + ebcdic_ii[i];
 
21145
                }
 
21146
                extern int foo;
 
21147
 
 
21148
int
 
21149
main ()
 
21150
{
 
21151
return use_ascii (foo) == use_ebcdic (foo);
 
21152
  ;
 
21153
  return 0;
 
21154
}
 
21155
_ACEOF
 
21156
rm -f conftest.$ac_objext
 
21157
if { (ac_try="$ac_compile"
 
21158
case "(($ac_try" in
 
21159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21160
  *) ac_try_echo=$ac_try;;
 
21161
esac
 
21162
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21163
$as_echo "$ac_try_echo") >&5
 
21164
  (eval "$ac_compile") 2>conftest.er1
 
21165
  ac_status=$?
 
21166
  grep -v '^ *+' conftest.er1 >conftest.err
 
21167
  rm -f conftest.er1
 
21168
  cat conftest.err >&5
 
21169
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21170
  (exit $ac_status); } && {
 
21171
         test -z "$ac_c_werror_flag" ||
 
21172
         test ! -s conftest.err
 
21173
       } && test -s conftest.$ac_objext; then
 
21174
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
 
21175
              ac_cv_c_bigendian=yes
 
21176
            fi
 
21177
            if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
21178
              if test "$ac_cv_c_bigendian" = unknown; then
 
21179
                ac_cv_c_bigendian=no
 
21180
              else
 
21181
                # finding both strings is unlikely to happen, but who knows?
 
21182
                ac_cv_c_bigendian=unknown
 
21183
              fi
 
21184
            fi
 
21185
else
 
21186
  $as_echo "$as_me: failed program was:" >&5
 
21187
sed 's/^/| /' conftest.$ac_ext >&5
 
21188
 
 
21189
 
 
21190
fi
 
21191
 
 
21192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21193
else
 
21194
  cat >conftest.$ac_ext <<_ACEOF
 
21195
/* confdefs.h.  */
 
21196
_ACEOF
 
21197
cat confdefs.h >>conftest.$ac_ext
 
21198
cat >>conftest.$ac_ext <<_ACEOF
 
21199
/* end confdefs.h.  */
 
21200
$ac_includes_default
 
21201
int
 
21202
main ()
 
21203
{
 
21204
 
 
21205
             /* Are we little or big endian?  From Harbison&Steele.  */
 
21206
             union
 
21207
             {
 
21208
               long int l;
 
21209
               char c[sizeof (long int)];
 
21210
             } u;
 
21211
             u.l = 1;
 
21212
             return u.c[sizeof (long int) - 1] == 1;
 
21213
 
 
21214
  ;
 
21215
  return 0;
 
21216
}
 
21217
_ACEOF
 
21218
rm -f conftest$ac_exeext
 
21219
if { (ac_try="$ac_link"
 
21220
case "(($ac_try" in
 
21221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21222
  *) ac_try_echo=$ac_try;;
 
21223
esac
 
21224
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21225
$as_echo "$ac_try_echo") >&5
 
21226
  (eval "$ac_link") 2>&5
 
21227
  ac_status=$?
 
21228
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21229
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21230
  { (case "(($ac_try" in
 
21231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21232
  *) ac_try_echo=$ac_try;;
 
21233
esac
 
21234
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21235
$as_echo "$ac_try_echo") >&5
 
21236
  (eval "$ac_try") 2>&5
 
21237
  ac_status=$?
 
21238
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21239
  (exit $ac_status); }; }; then
 
21240
  ac_cv_c_bigendian=no
 
21241
else
 
21242
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21243
$as_echo "$as_me: failed program was:" >&5
 
21244
sed 's/^/| /' conftest.$ac_ext >&5
 
21245
 
 
21246
( exit $ac_status )
 
21247
ac_cv_c_bigendian=yes
 
21248
fi
 
21249
rm -rf conftest.dSYM
 
21250
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21251
fi
 
21252
 
 
21253
 
 
21254
    fi
 
21255
fi
 
21256
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
21257
$as_echo "$ac_cv_c_bigendian" >&6; }
 
21258
 case $ac_cv_c_bigendian in #(
 
21259
   yes)
 
21260
     cat >>confdefs.h <<\_ACEOF
 
21261
#define WORDS_BIGENDIAN 1
 
21262
_ACEOF
 
21263
;; #(
 
21264
   no)
 
21265
     APDK_ENDIAN_FLAG="-DAPDK_LITTLE_ENDIAN" ;; #(
 
21266
   universal)
 
21267
 
 
21268
cat >>confdefs.h <<\_ACEOF
 
21269
#define AC_APPLE_UNIVERSAL_BUILD 1
 
21270
_ACEOF
 
21271
 
 
21272
     ;; #(
 
21273
   *)
 
21274
     { { $as_echo "$as_me:$LINENO: error: unknown endianness
 
21275
 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
21276
$as_echo "$as_me: error: unknown endianness
 
21277
 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
21278
   { (exit 1); exit 1; }; } ;;
 
21279
 esac
 
21280
 
 
21281
 
 
21282
# Autoconf-style header tests for APDK
 
21283
cat >prnt/hpijs/auto-include.h <<EOFH
 
21284
#ifdef HAVE_INTTYPES_H
 
21285
#include <inttypes.h>
 
21286
#endif
 
21287
#ifdef HAVE_STDINT_H
 
21288
#include <stdint.h>
 
21289
#endif
 
21290
#ifdef HAVE_MACHINE_TYPES_H
 
21291
#include <machine/types.h>
 
21292
#endif
 
21293
EOFH
 
21294
{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
 
21295
$as_echo_n "checking for uint32_t... " >&6; }
 
21296
if test "${ac_cv_type_uint32_t+set}" = set; then
 
21297
  $as_echo_n "(cached) " >&6
 
21298
else
 
21299
  ac_cv_type_uint32_t=no
 
21300
cat >conftest.$ac_ext <<_ACEOF
 
21301
/* confdefs.h.  */
 
21302
_ACEOF
 
21303
cat confdefs.h >>conftest.$ac_ext
 
21304
cat >>conftest.$ac_ext <<_ACEOF
 
21305
/* end confdefs.h.  */
 
21306
#include "prnt/hpijs/auto-include.h"
 
21307
 
 
21308
int
 
21309
main ()
 
21310
{
 
21311
if (sizeof (uint32_t))
 
21312
       return 0;
 
21313
  ;
 
21314
  return 0;
 
21315
}
 
21316
_ACEOF
 
21317
rm -f conftest.$ac_objext
 
21318
if { (ac_try="$ac_compile"
 
21319
case "(($ac_try" in
 
21320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21321
  *) ac_try_echo=$ac_try;;
 
21322
esac
 
21323
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21324
$as_echo "$ac_try_echo") >&5
 
21325
  (eval "$ac_compile") 2>conftest.er1
 
21326
  ac_status=$?
 
21327
  grep -v '^ *+' conftest.er1 >conftest.err
 
21328
  rm -f conftest.er1
 
21329
  cat conftest.err >&5
 
21330
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21331
  (exit $ac_status); } && {
 
21332
         test -z "$ac_c_werror_flag" ||
 
21333
         test ! -s conftest.err
 
21334
       } && test -s conftest.$ac_objext; then
 
21335
  cat >conftest.$ac_ext <<_ACEOF
 
21336
/* confdefs.h.  */
 
21337
_ACEOF
 
21338
cat confdefs.h >>conftest.$ac_ext
 
21339
cat >>conftest.$ac_ext <<_ACEOF
 
21340
/* end confdefs.h.  */
 
21341
#include "prnt/hpijs/auto-include.h"
 
21342
 
 
21343
int
 
21344
main ()
 
21345
{
 
21346
if (sizeof ((uint32_t)))
 
21347
          return 0;
 
21348
  ;
 
21349
  return 0;
 
21350
}
 
21351
_ACEOF
 
21352
rm -f conftest.$ac_objext
 
21353
if { (ac_try="$ac_compile"
 
21354
case "(($ac_try" in
 
21355
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21356
  *) ac_try_echo=$ac_try;;
 
21357
esac
 
21358
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21359
$as_echo "$ac_try_echo") >&5
 
21360
  (eval "$ac_compile") 2>conftest.er1
 
21361
  ac_status=$?
 
21362
  grep -v '^ *+' conftest.er1 >conftest.err
 
21363
  rm -f conftest.er1
 
21364
  cat conftest.err >&5
 
21365
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21366
  (exit $ac_status); } && {
 
21367
         test -z "$ac_c_werror_flag" ||
 
21368
         test ! -s conftest.err
 
21369
       } && test -s conftest.$ac_objext; then
 
21370
  :
 
21371
else
 
21372
  $as_echo "$as_me: failed program was:" >&5
 
21373
sed 's/^/| /' conftest.$ac_ext >&5
 
21374
 
 
21375
        ac_cv_type_uint32_t=yes
 
21376
fi
 
21377
 
 
21378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21379
else
 
21380
  $as_echo "$as_me: failed program was:" >&5
 
21381
sed 's/^/| /' conftest.$ac_ext >&5
 
21382
 
 
21383
 
 
21384
fi
 
21385
 
 
21386
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21387
fi
 
21388
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
 
21389
$as_echo "$ac_cv_type_uint32_t" >&6; }
 
21390
if test "x$ac_cv_type_uint32_t" = x""yes; then
 
21391
 
 
21392
cat >>confdefs.h <<_ACEOF
 
21393
#define HAVE_UINT32_T 1
 
21394
_ACEOF
 
21395
 
 
21396
APDK_AUTO_INCLUDE_FLAG="-DAPDK_AUTO_INCLUDE"
 
21397
fi
 
21398
 
 
21399
 
 
21400
{ $as_echo "$as_me:$LINENO: checking \"for platform-dependencies\"" >&5
 
21401
$as_echo_n "checking \"for platform-dependencies\"... " >&6; }
 
21402
darwin_build="no"
 
21403
case "$host" in
 
21404
   *-darwin*)
 
21405
      { $as_echo "$as_me:$LINENO: result: \"using Mac OS X platform.h\"" >&5
 
21406
$as_echo "\"using Mac OS X platform.h\"" >&6; }
 
21407
      cat >prnt/hpijs/platform.h <<EOF
 
21408
#include <stdlib.h>
 
21409
#include <sys/types.h>
 
21410
#include <sys/malloc.h>
 
21411
#include <memory.h>
 
21412
#include <string.h>
 
21413
#include <stdio.h>
 
21414
#include <math.h>
 
21415
EOF
 
21416
      darwin_build="yes"
 
21417
      ;;
 
21418
 
 
21419
     *)
 
21420
      { $as_echo "$as_me:$LINENO: result: \"using Default platform.h\"" >&5
 
21421
$as_echo "\"using Default platform.h\"" >&6; }
 
21422
      cat >prnt/hpijs/platform.h <<EOF
 
21423
#include <stdlib.h>
 
21424
#include <memory.h>
 
21425
#include <string.h>
 
21426
#include <stdio.h>
 
21427
#include <math.h>
 
21428
EOF
 
21429
      ;;
 
21430
esac
 
21431
 if test x$darwin_build = xyes; then
 
21432
  DARWIN_BUILD_TRUE=
 
21433
  DARWIN_BUILD_FALSE='#'
 
21434
else
 
21435
  DARWIN_BUILD_TRUE='#'
 
21436
  DARWIN_BUILD_FALSE=
 
21437
fi
 
21438
 
 
21439
 
 
21440
{ $as_echo "$as_me:$LINENO: checking for documentation build" >&5
 
21441
$as_echo_n "checking for documentation build... " >&6; }
 
21442
# Check whether --enable-doc_build was given.
 
21443
if test "${enable_doc_build+set}" = set; then
 
21444
  enableval=$enable_doc_build; doc_build=$enableval
 
21445
else
 
21446
  doc_build=yes
 
21447
fi
 
21448
 
 
21449
if test "$doc_build" = "yes"; then
 
21450
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21451
$as_echo "yes" >&6; }
 
21452
else
 
21453
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21454
$as_echo "no" >&6; }
 
21455
fi
 
21456
 if test x$doc_build = xyes; then
 
21457
  DOC_BUILD_TRUE=
 
21458
  DOC_BUILD_FALSE='#'
 
21459
else
 
21460
  DOC_BUILD_TRUE='#'
 
21461
  DOC_BUILD_FALSE=
 
21462
fi
 
21463
 
 
21464
 
 
21465
{ $as_echo "$as_me:$LINENO: checking for hpijs only build" >&5
 
21466
$as_echo_n "checking for hpijs only build... " >&6; }
 
21467
# Check whether --enable-hpijs_only_build was given.
 
21468
if test "${enable_hpijs_only_build+set}" = set; then
 
21469
  enableval=$enable_hpijs_only_build; hpijs_only_build=$enableval
 
21470
else
 
21471
  hpijs_only_build=no
 
21472
fi
 
21473
 
 
21474
if test "$hpijs_only_build" = "yes"; then
 
21475
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21476
$as_echo "yes" >&6; }
 
21477
   epm_full=\#
 
21478
   epm_lite=\#
 
21479
   epm_hpcups_only=\#
 
21480
   epm_print_only_exclude=\#
 
21481
   epm_hpijs_only=
 
21482
else
 
21483
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21484
$as_echo "no" >&6; }
 
21485
   epm_hpijs_only=\#
 
21486
   cat >>confdefs.h <<\_ACEOF
 
21487
#define HAVE_LIBHPIP 1
 
21488
_ACEOF
 
21489
 
 
21490
fi
 
21491
 if test x$hpijs_only_build = xyes; then
 
21492
  HPIJS_ONLY_BUILD_TRUE=
 
21493
  HPIJS_ONLY_BUILD_FALSE='#'
 
21494
else
 
21495
  HPIJS_ONLY_BUILD_TRUE='#'
 
21496
  HPIJS_ONLY_BUILD_FALSE=
 
21497
fi
 
21498
 
 
21499
 
 
21500
{ $as_echo "$as_me:$LINENO: checking for lite build" >&5
 
21501
$as_echo_n "checking for lite build... " >&6; }
 
21502
# Check whether --enable-lite_build was given.
 
21503
if test "${enable_lite_build+set}" = set; then
 
21504
  enableval=$enable_lite_build; lite_build=$enableval
 
21505
else
 
21506
  lite_build=no
 
21507
fi
 
21508
 
 
21509
if test "$lite_build" = "yes"; then
 
21510
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21511
$as_echo "yes" >&6; }
 
21512
   epm_full=\#
 
21513
   epm_hpcups_only=\#
 
21514
   epm_print_only_exclude=
 
21515
   epm_lite=
 
21516
else
 
21517
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21518
$as_echo "no" >&6; }
 
21519
fi
 
21520
 if test x$lite_build = xyes; then
 
21521
  LITE_BUILD_TRUE=
 
21522
  LITE_BUILD_FALSE='#'
 
21523
else
 
21524
  LITE_BUILD_TRUE='#'
 
21525
  LITE_BUILD_FALSE=
 
21526
fi
 
21527
 
 
21528
 
 
21529
{ $as_echo "$as_me:$LINENO: checking for hpcups only build" >&5
 
21530
$as_echo_n "checking for hpcups only build... " >&6; }
 
21531
# Check whether --enable-hpcups_only_build was given.
 
21532
if test "${enable_hpcups_only_build+set}" = set; then
 
21533
  enableval=$enable_hpcups_only_build; hpcups_only_build=$enableval
 
21534
else
 
21535
  hpcups_only_build=no
 
21536
fi
 
21537
 
 
21538
if test "$hpcups_only_build" = "yes"; then
 
21539
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21540
$as_echo "yes" >&6; }
 
21541
   epm_full=\#
 
21542
   epm_lite=\#
 
21543
   epm_hpcups_only=
 
21544
   epm_print_only_exclude=\#
 
21545
else
 
21546
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21547
$as_echo "no" >&6; }
 
21548
fi
 
21549
 if test x$hpcups_only_build = xyes; then
 
21550
  HPCUPS_ONLY_BUILD_TRUE=
 
21551
  HPCUPS_ONLY_BUILD_FALSE='#'
 
21552
else
 
21553
  HPCUPS_ONLY_BUILD_TRUE='#'
 
21554
  HPCUPS_ONLY_BUILD_FALSE=
 
21555
fi
 
21556
 
 
21557
 
 
21558
 if test x$hpcups_only_build = xno && test x$hpijs_only_build = xno; then
 
21559
  HPLIP_BUILD_TRUE=
 
21560
  HPLIP_BUILD_FALSE='#'
 
21561
else
 
21562
  HPLIP_BUILD_TRUE='#'
 
21563
  HPLIP_BUILD_FALSE=
 
21564
fi
 
21565
 
 
21566
if test "$hpijs_only_build" = "no" && test "$hpcups_only_build" = "no"; then
 
21567
   cat >>confdefs.h <<\_ACEOF
 
21568
#define HAVE_LIBHPIP 1
 
21569
_ACEOF
 
21570
 
 
21571
fi
 
21572
 
 
21573
if test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$hpijs_only_build" = "no"; then
 
21574
   epm_full=
 
21575
   epm_lite=\#
 
21576
   epm_hpcups_only=\#
 
21577
   epm_print_only_exclude=
 
21578
fi
 
21579
 if test x$hpcups_only_build = xno && test x$lite_build = xno && test x$hpijs_only_build = xno; then
 
21580
  FULL_BUILD_TRUE=
 
21581
  FULL_BUILD_FALSE='#'
 
21582
else
 
21583
  FULL_BUILD_TRUE='#'
 
21584
  FULL_BUILD_FALSE=
 
21585
fi
 
21586
 
 
21587
 
 
21588
{ $as_echo "$as_me:$LINENO: checking for hpijs install" >&5
 
21589
$as_echo_n "checking for hpijs install... " >&6; }
 
21590
# Check whether --enable-hpijs_install was given.
 
21591
if test "${enable_hpijs_install+set}" = set; then
 
21592
  enableval=$enable_hpijs_install; hpijs_install=$enableval
 
21593
else
 
21594
  hpijs_install=no
 
21595
fi
 
21596
 
 
21597
if test "$hpijs_install" = "yes"; then
 
21598
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21599
$as_echo "yes" >&6; }
 
21600
   epm_hpijs_install=yes
 
21601
else
 
21602
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21603
$as_echo "no" >&6; }
 
21604
fi
 
21605
 if test x$hpijs_install = xyes; then
 
21606
  HPIJS_INSTALL_TRUE=
 
21607
  HPIJS_INSTALL_FALSE='#'
 
21608
else
 
21609
  HPIJS_INSTALL_TRUE='#'
 
21610
  HPIJS_INSTALL_FALSE=
 
21611
fi
 
21612
 
 
21613
 
 
21614
{ $as_echo "$as_me:$LINENO: checking for hpcups install" >&5
 
21615
$as_echo_n "checking for hpcups install... " >&6; }
 
21616
# Check whether --enable-hpcups_install was given.
 
21617
if test "${enable_hpcups_install+set}" = set; then
 
21618
  enableval=$enable_hpcups_install; hpcups_install=$enableval
 
21619
else
 
21620
  hpcups_install=yes
 
21621
fi
 
21622
 
 
21623
if test "$hpcups_install" = "yes" && test "$hpijs_only_build" = "no"; then
 
21624
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21625
$as_echo "yes" >&6; }
 
21626
   epm_hpcups_install=yes
 
21627
else
 
21628
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21629
$as_echo "no" >&6; }
 
21630
fi
 
21631
 if test x$hpcups_install = xyes && test x$hpijs_only_build = xno; then
 
21632
  HPCUPS_INSTALL_TRUE=
 
21633
  HPCUPS_INSTALL_FALSE='#'
 
21634
else
 
21635
  HPCUPS_INSTALL_TRUE='#'
 
21636
  HPCUPS_INSTALL_FALSE=
 
21637
fi
 
21638
 
 
21639
 
 
21640
{ $as_echo "$as_me:$LINENO: checking for new hpcups install" >&5
 
21641
$as_echo_n "checking for new hpcups install... " >&6; }
 
21642
# Check whether --enable-new_hpcups was given.
 
21643
if test "${enable_new_hpcups+set}" = set; then
 
21644
  enableval=$enable_new_hpcups; new_hpcups=$enableval
 
21645
else
 
21646
  new_hpcups=no
 
21647
fi
 
21648
 
 
21649
if test "$new_hpcups" = "yes"; then
 
21650
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21651
$as_echo "yes" >&6; }
 
21652
else
 
21653
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21654
$as_echo "no" >&6; }
 
21655
fi
 
21656
 if test x$new_hpcups = xyes; then
 
21657
  NEW_HPCUPS_TRUE=
 
21658
  NEW_HPCUPS_FALSE='#'
 
21659
else
 
21660
  NEW_HPCUPS_TRUE='#'
 
21661
  NEW_HPCUPS_FALSE=
 
21662
fi
 
21663
 
 
21664
 
 
21665
{ $as_echo "$as_me:$LINENO: checking for network build" >&5
 
21666
$as_echo_n "checking for network build... " >&6; }
 
21667
# Check whether --enable-network_build was given.
 
21668
if test "${enable_network_build+set}" = set; then
 
21669
  enableval=$enable_network_build; network_build=$enableval
 
21670
else
 
21671
  network_build=yes
 
21672
fi
 
21673
 
 
21674
if test "$network_build" = "yes"; then
 
21675
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21676
$as_echo "yes" >&6; }
 
21677
else
 
21678
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21679
$as_echo "no" >&6; }
 
21680
fi
 
21681
 if test x$network_build = xyes; then
 
21682
  NETWORK_BUILD_TRUE=
 
21683
  NETWORK_BUILD_FALSE='#'
 
21684
else
 
21685
  NETWORK_BUILD_TRUE='#'
 
21686
  NETWORK_BUILD_FALSE=
 
21687
fi
 
21688
 
 
21689
 
 
21690
{ $as_echo "$as_me:$LINENO: checking for parallel port build" >&5
 
21691
$as_echo_n "checking for parallel port build... " >&6; }
 
21692
# Check whether --enable-pp_build was given.
 
21693
if test "${enable_pp_build+set}" = set; then
 
21694
  enableval=$enable_pp_build; pp_build=$enableval
 
21695
else
 
21696
  pp_build=no
 
21697
fi
 
21698
 
 
21699
if test "$pp_build" = "yes"; then
 
21700
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21701
$as_echo "yes" >&6; }
 
21702
   cat >>confdefs.h <<\_ACEOF
 
21703
#define HAVE_PPORT 1
 
21704
_ACEOF
 
21705
 
 
21706
else
 
21707
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21708
$as_echo "no" >&6; }
 
21709
fi
 
21710
 
 
21711
{ $as_echo "$as_me:$LINENO: checking for scanner build" >&5
 
21712
$as_echo_n "checking for scanner build... " >&6; }
 
21713
# Check whether --enable-scan_build was given.
 
21714
if test "${enable_scan_build+set}" = set; then
 
21715
  enableval=$enable_scan_build; scan_build=$enableval
 
21716
else
 
21717
  scan_build=yes
 
21718
fi
 
21719
 
 
21720
if test "$scan_build" = "yes"; then
 
21721
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21722
$as_echo "yes" >&6; }
 
21723
   epm_scan=
 
21724
else
 
21725
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21726
$as_echo "no" >&6; }
 
21727
   epm_scan=\#
 
21728
fi
 
21729
 if test x$scan_build = xyes; then
 
21730
  SCAN_BUILD_TRUE=
 
21731
  SCAN_BUILD_FALSE='#'
 
21732
else
 
21733
  SCAN_BUILD_TRUE='#'
 
21734
  SCAN_BUILD_FALSE=
 
21735
fi
 
21736
 
 
21737
 
 
21738
{ $as_echo "$as_me:$LINENO: checking for gui build" >&5
 
21739
$as_echo_n "checking for gui build... " >&6; }
 
21740
# Check whether --enable-gui_build was given.
 
21741
if test "${enable_gui_build+set}" = set; then
 
21742
  enableval=$enable_gui_build; gui_build=$enableval
 
21743
else
 
21744
  gui_build=yes
 
21745
fi
 
21746
 
 
21747
if test "$gui_build" = "yes"; then
 
21748
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21749
$as_echo "yes" >&6; }
 
21750
else
 
21751
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21752
$as_echo "no" >&6; }
 
21753
fi
 
21754
 if test x$gui_build = xyes; then
 
21755
  GUI_BUILD_TRUE=
 
21756
  GUI_BUILD_FALSE='#'
 
21757
else
 
21758
  GUI_BUILD_TRUE='#'
 
21759
  GUI_BUILD_FALSE=
 
21760
fi
 
21761
 
 
21762
 
 
21763
{ $as_echo "$as_me:$LINENO: checking for fax build" >&5
 
21764
$as_echo_n "checking for fax build... " >&6; }
 
21765
# Check whether --enable-fax_build was given.
 
21766
if test "${enable_fax_build+set}" = set; then
 
21767
  enableval=$enable_fax_build; fax_build=$enableval
 
21768
else
 
21769
  fax_build=yes
 
21770
fi
 
21771
 
 
21772
if test "$fax_build" = "yes"; then
 
21773
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21774
$as_echo "yes" >&6; }
 
21775
else
 
21776
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21777
$as_echo "no" >&6; }
 
21778
fi
 
21779
 if test x$fax_build = xyes; then
 
21780
  FAX_BUILD_TRUE=
 
21781
  FAX_BUILD_FALSE='#'
 
21782
else
 
21783
  FAX_BUILD_TRUE='#'
 
21784
  FAX_BUILD_FALSE=
 
21785
fi
 
21786
 
 
21787
 
 
21788
{ $as_echo "$as_me:$LINENO: checking for dbus build" >&5
 
21789
$as_echo_n "checking for dbus build... " >&6; }
 
21790
# Check whether --enable-dbus_build was given.
 
21791
if test "${enable_dbus_build+set}" = set; then
 
21792
  enableval=$enable_dbus_build; dbus_build=$enableval
 
21793
else
 
21794
  dbus_build=yes
 
21795
fi
 
21796
 
 
21797
if test "$dbus_build" = "yes"; then
 
21798
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21799
$as_echo "yes" >&6; }
 
21800
else
 
21801
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21802
$as_echo "no" >&6; }
 
21803
fi
 
21804
 
 
21805
{ $as_echo "$as_me:$LINENO: checking for cups 1.1.x build" >&5
 
21806
$as_echo_n "checking for cups 1.1.x build... " >&6; }
 
21807
# Check whether --enable-cups11_build was given.
 
21808
if test "${enable_cups11_build+set}" = set; then
 
21809
  enableval=$enable_cups11_build; cups11_build=$enableval
 
21810
else
 
21811
  cups11_build=no
 
21812
fi
 
21813
 
 
21814
if test "$cups11_build" = "yes"; then
 
21815
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21816
$as_echo "yes" >&6; }
 
21817
   cat >>confdefs.h <<\_ACEOF
 
21818
#define HAVE_CUPS11 1
 
21819
_ACEOF
 
21820
 
 
21821
else
 
21822
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21823
$as_echo "no" >&6; }
 
21824
fi
 
21825
 
 
21826
{ $as_echo "$as_me:$LINENO: checking for udev acl rules" >&5
 
21827
$as_echo_n "checking for udev acl rules... " >&6; }
 
21828
# Check whether --enable-udev_acl_rules was given.
 
21829
if test "${enable_udev_acl_rules+set}" = set; then
 
21830
  enableval=$enable_udev_acl_rules; udev_acl_rules=$enableval
 
21831
else
 
21832
  udev_acl_rules=no
 
21833
fi
 
21834
 
 
21835
if test "$udev_acl_rules" = "yes"; then
 
21836
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21837
$as_echo "yes" >&6; }
 
21838
else
 
21839
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21840
$as_echo "no" >&6; }
 
21841
fi
 
21842
 if test x$udev_acl_rules = xyes; then
 
21843
  UDEV_ACL_RULES_TRUE=
 
21844
  UDEV_ACL_RULES_FALSE='#'
 
21845
else
 
21846
  UDEV_ACL_RULES_TRUE='#'
 
21847
  UDEV_ACL_RULES_FALSE=
 
21848
fi
 
21849
 
 
21850
 
 
21851
{ $as_echo "$as_me:$LINENO: checking for shadow build" >&5
 
21852
$as_echo_n "checking for shadow build... " >&6; }
 
21853
# Check whether --enable-shadow_build was given.
 
21854
if test "${enable_shadow_build+set}" = set; then
 
21855
  enableval=$enable_shadow_build; shadow_build=$enableval
 
21856
else
 
21857
  shadow_build=no
 
21858
fi
 
21859
 
 
21860
if test "$shadow_build" = "yes"; then
 
21861
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21862
$as_echo "yes" >&6; }
 
21863
else
 
21864
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21865
$as_echo "no" >&6; }
 
21866
fi
 
21867
 if test x$shadow_build = xyes; then
 
21868
  SHADOW_BUILD_TRUE=
 
21869
  SHADOW_BUILD_FALSE='#'
 
21870
else
 
21871
  SHADOW_BUILD_TRUE='#'
 
21872
  SHADOW_BUILD_FALSE=
 
21873
fi
 
21874
 
 
21875
 
 
21876
 
 
21877
# Check whether --with-cupsbackenddir was given.
 
21878
if test "${with_cupsbackenddir+set}" = set; then
 
21879
  withval=$with_cupsbackenddir; cupsbackenddir=$withval
 
21880
else
 
21881
  cupsbackenddir="/usr/lib/cups/backend"
 
21882
fi
 
21883
 
 
21884
 
 
21885
 
 
21886
# Check whether --with-cupsfilterdir was given.
 
21887
if test "${with_cupsfilterdir+set}" = set; then
 
21888
  withval=$with_cupsfilterdir; cupsfilterdir=$withval
 
21889
else
 
21890
  cupsfilterdir="/usr/lib/cups/filter"
 
21891
fi
 
21892
 
 
21893
 
 
21894
 
 
21895
# Check whether --with-icondir was given.
 
21896
if test "${with_icondir+set}" = set; then
 
21897
  withval=$with_icondir; icondir=$withval
 
21898
else
 
21899
  icondir="/usr/share/applications"
 
21900
fi
 
21901
 
 
21902
 
 
21903
 
 
21904
# Check whether --with-systraydir was given.
 
21905
if test "${with_systraydir+set}" = set; then
 
21906
  withval=$with_systraydir; systraydir=$withval
 
21907
else
 
21908
  systraydir="/etc/xdg/autostart"
 
21909
fi
 
21910
 
 
21911
 
 
21912
 
 
21913
# Check whether --with-hpppddir was given.
 
21914
if test "${with_hpppddir+set}" = set; then
 
21915
  withval=$with_hpppddir; hpppddir=$withval
 
21916
else
 
21917
  hpppddir="$datadir/ppd/HP"
 
21918
fi
 
21919
 
 
21920
 
 
21921
if test -f "/usr/share/cups/mime/mime.types"; then
 
21922
   abs_mimedir="/usr/share/cups/mime/"
 
21923
else
 
21924
   abs_mimedir="/etc/cups/"
 
21925
fi
 
21926
 
 
21927
# Check whether --with-mimedir was given.
 
21928
if test "${with_mimedir+set}" = set; then
 
21929
  withval=$with_mimedir; mimedir=$withval
 
21930
else
 
21931
  mimedir="$abs_mimedir"
 
21932
fi
 
21933
 
 
21934
 
 
21935
 
 
21936
# Check whether --with-docdir was given.
 
21937
if test "${with_docdir+set}" = set; then
 
21938
  withval=$with_docdir; hpdocdir=$withval
 
21939
else
 
21940
  hpdocdir="$datadir/doc/hplip-$VERSION"
 
21941
fi
 
21942
 
 
21943
 
 
21944
{ $as_echo "$as_me:$LINENO: checking for foomatic ppd install" >&5
 
21945
$as_echo_n "checking for foomatic ppd install... " >&6; }
 
21946
# Check whether --enable-foomatic_ppd_install was given.
 
21947
if test "${enable_foomatic_ppd_install+set}" = set; then
 
21948
  enableval=$enable_foomatic_ppd_install; foomatic_ppd_install=$enableval
 
21949
else
 
21950
  foomatic_ppd_install=no
 
21951
fi
 
21952
 
 
21953
if test $foomatic_ppd_install = yes; then
 
21954
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21955
$as_echo "yes" >&6; }
 
21956
   epm_foomatic_ppd_install=yes
 
21957
else
 
21958
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21959
$as_echo "no" >&6; }
 
21960
fi
 
21961
 if test x$foomatic_ppd_install = xyes; then
 
21962
  FOOMATIC_PPD_INSTALL_TRUE=
 
21963
  FOOMATIC_PPD_INSTALL_FALSE='#'
 
21964
else
 
21965
  FOOMATIC_PPD_INSTALL_TRUE='#'
 
21966
  FOOMATIC_PPD_INSTALL_FALSE=
 
21967
fi
 
21968
 
 
21969
 
 
21970
 
 
21971
# Check whether --with-drvdir was given.
 
21972
if test "${with_drvdir+set}" = set; then
 
21973
  withval=$with_drvdir; drvdir=$withval
 
21974
else
 
21975
  drvdir="$datadir/cups/drv/hp"
 
21976
fi
 
21977
 
 
21978
 
 
21979
{ $as_echo "$as_me:$LINENO: checking for foomatic drv install" >&5
 
21980
$as_echo_n "checking for foomatic drv install... " >&6; }
 
21981
# Check whether --enable-foomatic_drv_install was given.
 
21982
if test "${enable_foomatic_drv_install+set}" = set; then
 
21983
  enableval=$enable_foomatic_drv_install; foomatic_drv_install=$enableval
 
21984
else
 
21985
  foomatic_drv_install=no
 
21986
fi
 
21987
 
 
21988
if test $foomatic_drv_install = yes; then
 
21989
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
21990
$as_echo "yes" >&6; }
 
21991
   epm_foomatic_drv_install=yes
 
21992
else
 
21993
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
21994
$as_echo "no" >&6; }
 
21995
fi
 
21996
 if test x$foomatic_drv_install = xyes; then
 
21997
  FOOMATIC_DRV_INSTALL_TRUE=
 
21998
  FOOMATIC_DRV_INSTALL_FALSE='#'
 
21999
else
 
22000
  FOOMATIC_DRV_INSTALL_TRUE='#'
 
22001
  FOOMATIC_DRV_INSTALL_FALSE=
 
22002
fi
 
22003
 
 
22004
 
 
22005
{ $as_echo "$as_me:$LINENO: checking for cups drv install" >&5
 
22006
$as_echo_n "checking for cups drv install... " >&6; }
 
22007
# Check whether --enable-cups_drv_install was given.
 
22008
if test "${enable_cups_drv_install+set}" = set; then
 
22009
  enableval=$enable_cups_drv_install; cups_drv_install=$enableval
 
22010
else
 
22011
  cups_drv_install=yes
 
22012
fi
 
22013
 
 
22014
if test $cups_drv_install = yes && test $hpijs_only_build = no; then
 
22015
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22016
$as_echo "yes" >&6; }
 
22017
   epm_cups_drv_install=yes
 
22018
else
 
22019
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22020
$as_echo "no" >&6; }
 
22021
fi
 
22022
 if test x$cups_drv_install = xyes && test x$hpijs_only_build = xno; then
 
22023
  CUPS_DRV_INSTALL_TRUE=
 
22024
  CUPS_DRV_INSTALL_FALSE='#'
 
22025
else
 
22026
  CUPS_DRV_INSTALL_TRUE='#'
 
22027
  CUPS_DRV_INSTALL_FALSE=
 
22028
fi
 
22029
 
 
22030
 
 
22031
{ $as_echo "$as_me:$LINENO: checking for cups ppd install" >&5
 
22032
$as_echo_n "checking for cups ppd install... " >&6; }
 
22033
# Check whether --enable-cups_ppd_install was given.
 
22034
if test "${enable_cups_ppd_install+set}" = set; then
 
22035
  enableval=$enable_cups_ppd_install; cups_ppd_install=$enableval
 
22036
else
 
22037
  cups_ppd_install=no
 
22038
fi
 
22039
 
 
22040
if test $cups_ppd_install = yes && test $hpijs_only_build = no; then
 
22041
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22042
$as_echo "yes" >&6; }
 
22043
   epm_cups_ppd_install=yes
 
22044
else
 
22045
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22046
$as_echo "no" >&6; }
 
22047
fi
 
22048
 if test x$cups_ppd_install = xyes && test x$hpijs_only_build = xno; then
 
22049
  CUPS_PPD_INSTALL_TRUE=
 
22050
  CUPS_PPD_INSTALL_FALSE='#'
 
22051
else
 
22052
  CUPS_PPD_INSTALL_TRUE='#'
 
22053
  CUPS_PPD_INSTALL_FALSE=
 
22054
fi
 
22055
 
 
22056
 
 
22057
{ $as_echo "$as_me:$LINENO: checking for foomatic-rip-hplip install" >&5
 
22058
$as_echo_n "checking for foomatic-rip-hplip install... " >&6; }
 
22059
# Check whether --enable-foomatic_rip_hplip_install was given.
 
22060
if test "${enable_foomatic_rip_hplip_install+set}" = set; then
 
22061
  enableval=$enable_foomatic_rip_hplip_install; foomatic_rip_hplip_install=$enableval
 
22062
else
 
22063
  foomatic_rip_hplip_install=no
 
22064
fi
 
22065
 
 
22066
if test "$foomatic_rip_hplip_install" = "yes"; then
 
22067
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22068
$as_echo "yes" >&6; }
 
22069
   foomatic_filter="foomatic-rip-hplip"
 
22070
   epm_foomatic_rip_hplip_install=yes
 
22071
else
 
22072
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22073
$as_echo "no" >&6; }
 
22074
   foomatic_filter="foomatic-rip"
 
22075
fi
 
22076
 if test x$foomatic_rip_hplip_install = xyes; then
 
22077
  RIP_INSTALL_TRUE=
 
22078
  RIP_INSTALL_FALSE='#'
 
22079
else
 
22080
  RIP_INSTALL_TRUE='#'
 
22081
  RIP_INSTALL_FALSE=
 
22082
fi
 
22083
 
 
22084
 
 
22085
{ $as_echo "$as_me:$LINENO: checking for qt4" >&5
 
22086
$as_echo_n "checking for qt4... " >&6; }
 
22087
# Check whether --enable-qt4 was given.
 
22088
if test "${enable_qt4+set}" = set; then
 
22089
  enableval=$enable_qt4; qt4=$enableval
 
22090
else
 
22091
  qt4=yes
 
22092
fi
 
22093
 
 
22094
if test "$qt4" = "yes"; then
 
22095
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22096
$as_echo "yes" >&6; }
 
22097
else
 
22098
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22099
$as_echo "no" >&6; }
 
22100
fi
 
22101
 if test x$qt4 = xyes; then
 
22102
  QT4_INSTALL_TRUE=
 
22103
  QT4_INSTALL_FALSE='#'
 
22104
else
 
22105
  QT4_INSTALL_TRUE='#'
 
22106
  QT4_INSTALL_FALSE=
 
22107
fi
 
22108
 
 
22109
 
 
22110
{ $as_echo "$as_me:$LINENO: checking for qt3" >&5
 
22111
$as_echo_n "checking for qt3... " >&6; }
 
22112
# Check whether --enable-qt3 was given.
 
22113
if test "${enable_qt3+set}" = set; then
 
22114
  enableval=$enable_qt3; qt3=$enableval
 
22115
else
 
22116
  qt3=no
 
22117
fi
 
22118
 
 
22119
if test "$qt3" = "yes"; then
 
22120
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22121
$as_echo "yes" >&6; }
 
22122
else
 
22123
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22124
$as_echo "no" >&6; }
 
22125
fi
 
22126
 if test x$qt3 = xyes; then
 
22127
  QT3_INSTALL_TRUE=
 
22128
  QT3_INSTALL_FALSE='#'
 
22129
else
 
22130
  QT3_INSTALL_TRUE='#'
 
22131
  QT3_INSTALL_FALSE=
 
22132
fi
 
22133
 
 
22134
 
 
22135
if test "$gui_build" = "no"; then
 
22136
   qt3=no
 
22137
   qt4=no
 
22138
fi
 
22139
 
 
22140
epm_qt3=\#
 
22141
epm_qt4=\#
 
22142
if test "$hpcups_only_build" = "no" && test "$hpijs_only_build" = "no"; then
 
22143
if test "$qt3" = "yes" && test "$qt4" = "no"; then
 
22144
   ui_toolkit=qt3
 
22145
   epm_qt3=
 
22146
elif test "$qt4" = "yes"; then
 
22147
   ui_toolkit=qt4
 
22148
   epm_qt4=
 
22149
else
 
22150
   ui_toolkit=no
 
22151
fi
 
22152
fi
 
22153
 
 
22154
{ $as_echo "$as_me:$LINENO: checking for policykit" >&5
 
22155
$as_echo_n "checking for policykit... " >&6; }
 
22156
# Check whether --enable-policykit was given.
 
22157
if test "${enable_policykit+set}" = set; then
 
22158
  enableval=$enable_policykit; policykit=$enableval
 
22159
else
 
22160
  policykit=no
 
22161
fi
 
22162
 
 
22163
if test "$policykit" = "yes"; then
 
22164
   { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22165
$as_echo "yes" >&6; }
 
22166
else
 
22167
   { $as_echo "$as_me:$LINENO: result: no" >&5
 
22168
$as_echo "no" >&6; }
 
22169
fi
 
22170
 if test x$policykit = xyes; then
 
22171
  POLICYKIT_INSTALL_TRUE=
 
22172
  POLICYKIT_INSTALL_FALSE='#'
 
22173
else
 
22174
  POLICYKIT_INSTALL_TRUE='#'
 
22175
  POLICYKIT_INSTALL_FALSE=
 
22176
fi
 
22177
 
 
22178
 
 
22179
# Determine where the PolicyKit policy file goes
 
22180
if test "$policykit" = "yes"; then
 
22181
   if test -d /usr/share/polkit-1; then
 
22182
      policykit_dir=/usr/share/polkit-1/actions
 
22183
   elif test -d /usr/share/PolicyKit; then
 
22184
      policykit_dir=/usr/share/PolicyKit/policy
 
22185
   else
 
22186
      policykit_dir=/usr/share/PolicyKit/policy
 
22187
   fi
 
22188
else
 
22189
   policykit_dir=
 
22190
fi
 
22191
 
 
22192
{ $as_echo "$as_me:$LINENO: checking for host machine platform" >&5
 
22193
$as_echo_n "checking for host machine platform... " >&6; }
 
22194
machine=`uname -m`
 
22195
if test "$machine" = "x86_32" || test "$machine" = "i686"; then
 
22196
    platform="x86_32"
 
22197
elif test "$machine" = "x86_64"; then
 
22198
    platform="x86_64"
 
22199
elif test "$machine" = "ppc"; then
 
22200
    platform="ppc"
 
22201
else
 
22202
    platform="unsupport"
 
22203
fi
 
22204
{ $as_echo "$as_me:$LINENO: result: $platform" >&5
 
22205
$as_echo "$platform" >&6; }
 
22206
 
 
22207
# Check conditional packages.
 
22208
 
 
22209
if test "$hpijs_only_build" = "no" && test "$network_build" = "yes"; then
 
22210
#   AC_CHECK_LIB([crypto], [CRYPTO_free], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find net-snmp support (or --disable-network-build)], 4)])
 
22211
#   AC_CHECK_LIB([netsnmp], [snmp_timeout], [LIBS="$LIBS" AC_DEFINE([HAVE_LIBNETSNMP])], [AC_MSG_ERROR([cannot find net-snmp support (or --disable-network-build)], 4)])
 
22212
#   AC_CHECK_HEADERS(net-snmp/net-snmp-config.h,, [AC_MSG_ERROR([cannot find net-snmp-devel support (or --disable-network-build)], 5)])
 
22213
 
 
22214
   old_LIBS="$LIBS"
 
22215
 
 
22216
{ $as_echo "$as_me:$LINENO: checking for CRYPTO_free in -lcrypto" >&5
 
22217
$as_echo_n "checking for CRYPTO_free in -lcrypto... " >&6; }
 
22218
if test "${ac_cv_lib_crypto_CRYPTO_free+set}" = set; then
 
22219
  $as_echo_n "(cached) " >&6
 
22220
else
 
22221
  ac_check_lib_save_LIBS=$LIBS
 
22222
LIBS="-lcrypto  $LIBS"
 
22223
cat >conftest.$ac_ext <<_ACEOF
 
22224
/* confdefs.h.  */
 
22225
_ACEOF
 
22226
cat confdefs.h >>conftest.$ac_ext
 
22227
cat >>conftest.$ac_ext <<_ACEOF
 
22228
/* end confdefs.h.  */
 
22229
 
 
22230
/* Override any GCC internal prototype to avoid an error.
 
22231
   Use char because int might match the return type of a GCC
 
22232
   builtin and then its argument prototype would still apply.  */
 
22233
#ifdef __cplusplus
 
22234
extern "C"
 
22235
#endif
 
22236
char CRYPTO_free ();
 
22237
int
 
22238
main ()
 
22239
{
 
22240
return CRYPTO_free ();
 
22241
  ;
 
22242
  return 0;
 
22243
}
 
22244
_ACEOF
 
22245
rm -f conftest.$ac_objext conftest$ac_exeext
 
22246
if { (ac_try="$ac_link"
 
22247
case "(($ac_try" in
 
22248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22249
  *) ac_try_echo=$ac_try;;
 
22250
esac
 
22251
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22252
$as_echo "$ac_try_echo") >&5
 
22253
  (eval "$ac_link") 2>conftest.er1
 
22254
  ac_status=$?
 
22255
  grep -v '^ *+' conftest.er1 >conftest.err
 
22256
  rm -f conftest.er1
 
22257
  cat conftest.err >&5
 
22258
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22259
  (exit $ac_status); } && {
 
22260
         test -z "$ac_c_werror_flag" ||
 
22261
         test ! -s conftest.err
 
22262
       } && test -s conftest$ac_exeext && {
 
22263
         test "$cross_compiling" = yes ||
 
22264
         $as_test_x conftest$ac_exeext
 
22265
       }; then
 
22266
  ac_cv_lib_crypto_CRYPTO_free=yes
 
22267
else
 
22268
  $as_echo "$as_me: failed program was:" >&5
 
22269
sed 's/^/| /' conftest.$ac_ext >&5
 
22270
 
 
22271
        ac_cv_lib_crypto_CRYPTO_free=no
 
22272
fi
 
22273
 
 
22274
rm -rf conftest.dSYM
 
22275
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22276
      conftest$ac_exeext conftest.$ac_ext
 
22277
LIBS=$ac_check_lib_save_LIBS
 
22278
fi
 
22279
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_CRYPTO_free" >&5
 
22280
$as_echo "$ac_cv_lib_crypto_CRYPTO_free" >&6; }
 
22281
if test "x$ac_cv_lib_crypto_CRYPTO_free" = x""yes; then
 
22282
  cat >>confdefs.h <<_ACEOF
 
22283
#define HAVE_LIBCRYPTO 1
 
22284
_ACEOF
 
22285
 
 
22286
  LIBS="-lcrypto $LIBS"
 
22287
 
 
22288
else
 
22289
  { { $as_echo "$as_me:$LINENO: error: cannot find net-snmp support (or --disable-network-build)" >&5
 
22290
$as_echo "$as_me: error: cannot find net-snmp support (or --disable-network-build)" >&2;}
 
22291
   { (exit 4); exit 4; }; }
 
22292
fi
 
22293
 
 
22294
   { $as_echo "$as_me:$LINENO: checking for snmp_timeout in -lnetsnmp" >&5
 
22295
$as_echo_n "checking for snmp_timeout in -lnetsnmp... " >&6; }
 
22296
if test "${ac_cv_lib_netsnmp_snmp_timeout+set}" = set; then
 
22297
  $as_echo_n "(cached) " >&6
 
22298
else
 
22299
  ac_check_lib_save_LIBS=$LIBS
 
22300
LIBS="-lnetsnmp  $LIBS"
 
22301
cat >conftest.$ac_ext <<_ACEOF
 
22302
/* confdefs.h.  */
 
22303
_ACEOF
 
22304
cat confdefs.h >>conftest.$ac_ext
 
22305
cat >>conftest.$ac_ext <<_ACEOF
 
22306
/* end confdefs.h.  */
 
22307
 
 
22308
/* Override any GCC internal prototype to avoid an error.
 
22309
   Use char because int might match the return type of a GCC
 
22310
   builtin and then its argument prototype would still apply.  */
 
22311
#ifdef __cplusplus
 
22312
extern "C"
 
22313
#endif
 
22314
char snmp_timeout ();
 
22315
int
 
22316
main ()
 
22317
{
 
22318
return snmp_timeout ();
 
22319
  ;
 
22320
  return 0;
 
22321
}
 
22322
_ACEOF
 
22323
rm -f conftest.$ac_objext conftest$ac_exeext
 
22324
if { (ac_try="$ac_link"
 
22325
case "(($ac_try" in
 
22326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22327
  *) ac_try_echo=$ac_try;;
 
22328
esac
 
22329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22330
$as_echo "$ac_try_echo") >&5
 
22331
  (eval "$ac_link") 2>conftest.er1
 
22332
  ac_status=$?
 
22333
  grep -v '^ *+' conftest.er1 >conftest.err
 
22334
  rm -f conftest.er1
 
22335
  cat conftest.err >&5
 
22336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22337
  (exit $ac_status); } && {
 
22338
         test -z "$ac_c_werror_flag" ||
 
22339
         test ! -s conftest.err
 
22340
       } && test -s conftest$ac_exeext && {
 
22341
         test "$cross_compiling" = yes ||
 
22342
         $as_test_x conftest$ac_exeext
 
22343
       }; then
 
22344
  ac_cv_lib_netsnmp_snmp_timeout=yes
 
22345
else
 
22346
  $as_echo "$as_me: failed program was:" >&5
 
22347
sed 's/^/| /' conftest.$ac_ext >&5
 
22348
 
 
22349
        ac_cv_lib_netsnmp_snmp_timeout=no
 
22350
fi
 
22351
 
 
22352
rm -rf conftest.dSYM
 
22353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22354
      conftest$ac_exeext conftest.$ac_ext
 
22355
LIBS=$ac_check_lib_save_LIBS
 
22356
fi
 
22357
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_netsnmp_snmp_timeout" >&5
 
22358
$as_echo "$ac_cv_lib_netsnmp_snmp_timeout" >&6; }
 
22359
if test "x$ac_cv_lib_netsnmp_snmp_timeout" = x""yes; then
 
22360
  LIBS="$old_LIBS" cat >>confdefs.h <<\_ACEOF
 
22361
#define HAVE_LIBNETSNMP 1
 
22362
_ACEOF
 
22363
 SNMPLIB="netsnmp"
 
22364
else
 
22365
  check_ucd=yes
 
22366
fi
 
22367
 
 
22368
if test "$check_ucd" = "yes"; then
 
22369
   { $as_echo "$as_me:$LINENO: checking for snmp_timeout in -lsnmp" >&5
 
22370
$as_echo_n "checking for snmp_timeout in -lsnmp... " >&6; }
 
22371
if test "${ac_cv_lib_snmp_snmp_timeout+set}" = set; then
 
22372
  $as_echo_n "(cached) " >&6
 
22373
else
 
22374
  ac_check_lib_save_LIBS=$LIBS
 
22375
LIBS="-lsnmp  $LIBS"
 
22376
cat >conftest.$ac_ext <<_ACEOF
 
22377
/* confdefs.h.  */
 
22378
_ACEOF
 
22379
cat confdefs.h >>conftest.$ac_ext
 
22380
cat >>conftest.$ac_ext <<_ACEOF
 
22381
/* end confdefs.h.  */
 
22382
 
 
22383
/* Override any GCC internal prototype to avoid an error.
 
22384
   Use char because int might match the return type of a GCC
 
22385
   builtin and then its argument prototype would still apply.  */
 
22386
#ifdef __cplusplus
 
22387
extern "C"
 
22388
#endif
 
22389
char snmp_timeout ();
 
22390
int
 
22391
main ()
 
22392
{
 
22393
return snmp_timeout ();
 
22394
  ;
 
22395
  return 0;
 
22396
}
 
22397
_ACEOF
 
22398
rm -f conftest.$ac_objext conftest$ac_exeext
 
22399
if { (ac_try="$ac_link"
 
22400
case "(($ac_try" in
 
22401
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22402
  *) ac_try_echo=$ac_try;;
 
22403
esac
 
22404
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22405
$as_echo "$ac_try_echo") >&5
 
22406
  (eval "$ac_link") 2>conftest.er1
 
22407
  ac_status=$?
 
22408
  grep -v '^ *+' conftest.er1 >conftest.err
 
22409
  rm -f conftest.er1
 
22410
  cat conftest.err >&5
 
22411
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22412
  (exit $ac_status); } && {
 
22413
         test -z "$ac_c_werror_flag" ||
 
22414
         test ! -s conftest.err
 
22415
       } && test -s conftest$ac_exeext && {
 
22416
         test "$cross_compiling" = yes ||
 
22417
         $as_test_x conftest$ac_exeext
 
22418
       }; then
 
22419
  ac_cv_lib_snmp_snmp_timeout=yes
 
22420
else
 
22421
  $as_echo "$as_me: failed program was:" >&5
 
22422
sed 's/^/| /' conftest.$ac_ext >&5
 
22423
 
 
22424
        ac_cv_lib_snmp_snmp_timeout=no
 
22425
fi
 
22426
 
 
22427
rm -rf conftest.dSYM
 
22428
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22429
      conftest$ac_exeext conftest.$ac_ext
 
22430
LIBS=$ac_check_lib_save_LIBS
 
22431
fi
 
22432
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_snmp_snmp_timeout" >&5
 
22433
$as_echo "$ac_cv_lib_snmp_snmp_timeout" >&6; }
 
22434
if test "x$ac_cv_lib_snmp_snmp_timeout" = x""yes; then
 
22435
  LIBS="$old_LIBS" cat >>confdefs.h <<\_ACEOF
 
22436
#define HAVE_LIBNETSNMP 1
 
22437
_ACEOF
 
22438
 cat >>confdefs.h <<\_ACEOF
 
22439
#define HAVE_UCDSNMP 1
 
22440
_ACEOF
 
22441
 SNMPLIB="snmp"
 
22442
else
 
22443
  { { $as_echo "$as_me:$LINENO: error: cannot find net/ucd-snmp support (or --disable-network-build)" >&5
 
22444
$as_echo "$as_me: error: cannot find net/ucd-snmp support (or --disable-network-build)" >&2;}
 
22445
   { (exit 4); exit 4; }; }
 
22446
fi
 
22447
 
 
22448
 
 
22449
for ac_header in ucd-snmp/ucd-snmp-config.h
 
22450
do
 
22451
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22452
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22453
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22454
$as_echo_n "checking for $ac_header... " >&6; }
 
22455
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22456
  $as_echo_n "(cached) " >&6
 
22457
fi
 
22458
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22459
                 $as_echo "$as_val"'`
 
22460
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22461
$as_echo "$ac_res" >&6; }
 
22462
else
 
22463
  # Is the header compilable?
 
22464
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22465
$as_echo_n "checking $ac_header usability... " >&6; }
 
22466
cat >conftest.$ac_ext <<_ACEOF
 
22467
/* confdefs.h.  */
 
22468
_ACEOF
 
22469
cat confdefs.h >>conftest.$ac_ext
 
22470
cat >>conftest.$ac_ext <<_ACEOF
 
22471
/* end confdefs.h.  */
 
22472
$ac_includes_default
 
22473
#include <$ac_header>
 
22474
_ACEOF
 
22475
rm -f conftest.$ac_objext
 
22476
if { (ac_try="$ac_compile"
 
22477
case "(($ac_try" in
 
22478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22479
  *) ac_try_echo=$ac_try;;
 
22480
esac
 
22481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22482
$as_echo "$ac_try_echo") >&5
 
22483
  (eval "$ac_compile") 2>conftest.er1
 
22484
  ac_status=$?
 
22485
  grep -v '^ *+' conftest.er1 >conftest.err
 
22486
  rm -f conftest.er1
 
22487
  cat conftest.err >&5
 
22488
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22489
  (exit $ac_status); } && {
 
22490
         test -z "$ac_c_werror_flag" ||
 
22491
         test ! -s conftest.err
 
22492
       } && test -s conftest.$ac_objext; then
 
22493
  ac_header_compiler=yes
 
22494
else
 
22495
  $as_echo "$as_me: failed program was:" >&5
 
22496
sed 's/^/| /' conftest.$ac_ext >&5
 
22497
 
 
22498
        ac_header_compiler=no
 
22499
fi
 
22500
 
 
22501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22502
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22503
$as_echo "$ac_header_compiler" >&6; }
 
22504
 
 
22505
# Is the header present?
 
22506
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22507
$as_echo_n "checking $ac_header presence... " >&6; }
 
22508
cat >conftest.$ac_ext <<_ACEOF
 
22509
/* confdefs.h.  */
 
22510
_ACEOF
 
22511
cat confdefs.h >>conftest.$ac_ext
 
22512
cat >>conftest.$ac_ext <<_ACEOF
 
22513
/* end confdefs.h.  */
 
22514
#include <$ac_header>
 
22515
_ACEOF
 
22516
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22517
case "(($ac_try" in
 
22518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22519
  *) ac_try_echo=$ac_try;;
 
22520
esac
 
22521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22522
$as_echo "$ac_try_echo") >&5
 
22523
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22524
  ac_status=$?
 
22525
  grep -v '^ *+' conftest.er1 >conftest.err
 
22526
  rm -f conftest.er1
 
22527
  cat conftest.err >&5
 
22528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22529
  (exit $ac_status); } >/dev/null && {
 
22530
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22531
         test ! -s conftest.err
 
22532
       }; then
 
22533
  ac_header_preproc=yes
 
22534
else
 
22535
  $as_echo "$as_me: failed program was:" >&5
 
22536
sed 's/^/| /' conftest.$ac_ext >&5
 
22537
 
 
22538
  ac_header_preproc=no
 
22539
fi
 
22540
 
 
22541
rm -f conftest.err conftest.$ac_ext
 
22542
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22543
$as_echo "$ac_header_preproc" >&6; }
 
22544
 
 
22545
# So?  What about this header?
 
22546
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22547
  yes:no: )
 
22548
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22549
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22550
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22551
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22552
    ac_header_preproc=yes
 
22553
    ;;
 
22554
  no:yes:* )
 
22555
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22556
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22557
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22558
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22559
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22560
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22561
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22562
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22563
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22564
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22565
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22566
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22567
    ( cat <<\_ASBOX
 
22568
## --------------------- ##
 
22569
## Report this to 3.12.4 ##
 
22570
## --------------------- ##
 
22571
_ASBOX
 
22572
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22573
    ;;
 
22574
esac
 
22575
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22576
$as_echo_n "checking for $ac_header... " >&6; }
 
22577
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22578
  $as_echo_n "(cached) " >&6
 
22579
else
 
22580
  eval "$as_ac_Header=\$ac_header_preproc"
 
22581
fi
 
22582
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22583
                 $as_echo "$as_val"'`
 
22584
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22585
$as_echo "$ac_res" >&6; }
 
22586
 
 
22587
fi
 
22588
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22589
                 $as_echo "$as_val"'`
 
22590
   if test "x$as_val" = x""yes; then
 
22591
  cat >>confdefs.h <<_ACEOF
 
22592
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22593
_ACEOF
 
22594
 
 
22595
else
 
22596
  { { $as_echo "$as_me:$LINENO: error: cannot find ucd-snmp-devel support (or --disable-network-build)" >&5
 
22597
$as_echo "$as_me: error: cannot find ucd-snmp-devel support (or --disable-network-build)" >&2;}
 
22598
   { (exit 5); exit 5; }; }
 
22599
fi
 
22600
 
 
22601
done
 
22602
 
 
22603
else
 
22604
 
 
22605
for ac_header in net-snmp/net-snmp-config.h
 
22606
do
 
22607
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22608
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22609
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22610
$as_echo_n "checking for $ac_header... " >&6; }
 
22611
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22612
  $as_echo_n "(cached) " >&6
 
22613
fi
 
22614
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22615
                 $as_echo "$as_val"'`
 
22616
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22617
$as_echo "$ac_res" >&6; }
 
22618
else
 
22619
  # Is the header compilable?
 
22620
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22621
$as_echo_n "checking $ac_header usability... " >&6; }
 
22622
cat >conftest.$ac_ext <<_ACEOF
 
22623
/* confdefs.h.  */
 
22624
_ACEOF
 
22625
cat confdefs.h >>conftest.$ac_ext
 
22626
cat >>conftest.$ac_ext <<_ACEOF
 
22627
/* end confdefs.h.  */
 
22628
$ac_includes_default
 
22629
#include <$ac_header>
 
22630
_ACEOF
 
22631
rm -f conftest.$ac_objext
 
22632
if { (ac_try="$ac_compile"
 
22633
case "(($ac_try" in
 
22634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22635
  *) ac_try_echo=$ac_try;;
 
22636
esac
 
22637
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22638
$as_echo "$ac_try_echo") >&5
 
22639
  (eval "$ac_compile") 2>conftest.er1
 
22640
  ac_status=$?
 
22641
  grep -v '^ *+' conftest.er1 >conftest.err
 
22642
  rm -f conftest.er1
 
22643
  cat conftest.err >&5
 
22644
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22645
  (exit $ac_status); } && {
 
22646
         test -z "$ac_c_werror_flag" ||
 
22647
         test ! -s conftest.err
 
22648
       } && test -s conftest.$ac_objext; then
 
22649
  ac_header_compiler=yes
 
22650
else
 
22651
  $as_echo "$as_me: failed program was:" >&5
 
22652
sed 's/^/| /' conftest.$ac_ext >&5
 
22653
 
 
22654
        ac_header_compiler=no
 
22655
fi
 
22656
 
 
22657
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22658
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22659
$as_echo "$ac_header_compiler" >&6; }
 
22660
 
 
22661
# Is the header present?
 
22662
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22663
$as_echo_n "checking $ac_header presence... " >&6; }
 
22664
cat >conftest.$ac_ext <<_ACEOF
 
22665
/* confdefs.h.  */
 
22666
_ACEOF
 
22667
cat confdefs.h >>conftest.$ac_ext
 
22668
cat >>conftest.$ac_ext <<_ACEOF
 
22669
/* end confdefs.h.  */
 
22670
#include <$ac_header>
 
22671
_ACEOF
 
22672
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22673
case "(($ac_try" in
 
22674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22675
  *) ac_try_echo=$ac_try;;
 
22676
esac
 
22677
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22678
$as_echo "$ac_try_echo") >&5
 
22679
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22680
  ac_status=$?
 
22681
  grep -v '^ *+' conftest.er1 >conftest.err
 
22682
  rm -f conftest.er1
 
22683
  cat conftest.err >&5
 
22684
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22685
  (exit $ac_status); } >/dev/null && {
 
22686
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22687
         test ! -s conftest.err
 
22688
       }; then
 
22689
  ac_header_preproc=yes
 
22690
else
 
22691
  $as_echo "$as_me: failed program was:" >&5
 
22692
sed 's/^/| /' conftest.$ac_ext >&5
 
22693
 
 
22694
  ac_header_preproc=no
 
22695
fi
 
22696
 
 
22697
rm -f conftest.err conftest.$ac_ext
 
22698
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22699
$as_echo "$ac_header_preproc" >&6; }
 
22700
 
 
22701
# So?  What about this header?
 
22702
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22703
  yes:no: )
 
22704
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22705
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22706
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22707
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22708
    ac_header_preproc=yes
 
22709
    ;;
 
22710
  no:yes:* )
 
22711
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22712
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22713
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22714
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22715
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22716
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22717
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22718
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22719
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22720
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22721
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22722
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22723
    ( cat <<\_ASBOX
 
22724
## --------------------- ##
 
22725
## Report this to 3.12.4 ##
 
22726
## --------------------- ##
 
22727
_ASBOX
 
22728
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22729
    ;;
 
22730
esac
 
22731
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22732
$as_echo_n "checking for $ac_header... " >&6; }
 
22733
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22734
  $as_echo_n "(cached) " >&6
 
22735
else
 
22736
  eval "$as_ac_Header=\$ac_header_preproc"
 
22737
fi
 
22738
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22739
                 $as_echo "$as_val"'`
 
22740
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22741
$as_echo "$ac_res" >&6; }
 
22742
 
 
22743
fi
 
22744
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22745
                 $as_echo "$as_val"'`
 
22746
   if test "x$as_val" = x""yes; then
 
22747
  cat >>confdefs.h <<_ACEOF
 
22748
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22749
_ACEOF
 
22750
 
 
22751
else
 
22752
  { { $as_echo "$as_me:$LINENO: error: cannot find net-snmp-devel support (or --disable-network-build)" >&5
 
22753
$as_echo "$as_me: error: cannot find net-snmp-devel support (or --disable-network-build)" >&2;}
 
22754
   { (exit 5); exit 5; }; }
 
22755
fi
 
22756
 
 
22757
done
 
22758
 
 
22759
fi
 
22760
fi
 
22761
 
 
22762
if test "$hpijs_only_build" = "no" && test "$pp_build" = "yes"; then
 
22763
 
 
22764
for ac_header in linux/ppdev.h
 
22765
do
 
22766
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22767
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22768
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22769
$as_echo_n "checking for $ac_header... " >&6; }
 
22770
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22771
  $as_echo_n "(cached) " >&6
 
22772
fi
 
22773
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22774
                 $as_echo "$as_val"'`
 
22775
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22776
$as_echo "$ac_res" >&6; }
 
22777
else
 
22778
  # Is the header compilable?
 
22779
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22780
$as_echo_n "checking $ac_header usability... " >&6; }
 
22781
cat >conftest.$ac_ext <<_ACEOF
 
22782
/* confdefs.h.  */
 
22783
_ACEOF
 
22784
cat confdefs.h >>conftest.$ac_ext
 
22785
cat >>conftest.$ac_ext <<_ACEOF
 
22786
/* end confdefs.h.  */
 
22787
$ac_includes_default
 
22788
#include <$ac_header>
 
22789
_ACEOF
 
22790
rm -f conftest.$ac_objext
 
22791
if { (ac_try="$ac_compile"
 
22792
case "(($ac_try" in
 
22793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22794
  *) ac_try_echo=$ac_try;;
 
22795
esac
 
22796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22797
$as_echo "$ac_try_echo") >&5
 
22798
  (eval "$ac_compile") 2>conftest.er1
 
22799
  ac_status=$?
 
22800
  grep -v '^ *+' conftest.er1 >conftest.err
 
22801
  rm -f conftest.er1
 
22802
  cat conftest.err >&5
 
22803
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22804
  (exit $ac_status); } && {
 
22805
         test -z "$ac_c_werror_flag" ||
 
22806
         test ! -s conftest.err
 
22807
       } && test -s conftest.$ac_objext; then
 
22808
  ac_header_compiler=yes
 
22809
else
 
22810
  $as_echo "$as_me: failed program was:" >&5
 
22811
sed 's/^/| /' conftest.$ac_ext >&5
 
22812
 
 
22813
        ac_header_compiler=no
 
22814
fi
 
22815
 
 
22816
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22817
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22818
$as_echo "$ac_header_compiler" >&6; }
 
22819
 
 
22820
# Is the header present?
 
22821
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22822
$as_echo_n "checking $ac_header presence... " >&6; }
 
22823
cat >conftest.$ac_ext <<_ACEOF
 
22824
/* confdefs.h.  */
 
22825
_ACEOF
 
22826
cat confdefs.h >>conftest.$ac_ext
 
22827
cat >>conftest.$ac_ext <<_ACEOF
 
22828
/* end confdefs.h.  */
 
22829
#include <$ac_header>
 
22830
_ACEOF
 
22831
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22832
case "(($ac_try" in
 
22833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22834
  *) ac_try_echo=$ac_try;;
 
22835
esac
 
22836
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22837
$as_echo "$ac_try_echo") >&5
 
22838
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22839
  ac_status=$?
 
22840
  grep -v '^ *+' conftest.er1 >conftest.err
 
22841
  rm -f conftest.er1
 
22842
  cat conftest.err >&5
 
22843
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22844
  (exit $ac_status); } >/dev/null && {
 
22845
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22846
         test ! -s conftest.err
 
22847
       }; then
 
22848
  ac_header_preproc=yes
 
22849
else
 
22850
  $as_echo "$as_me: failed program was:" >&5
 
22851
sed 's/^/| /' conftest.$ac_ext >&5
 
22852
 
 
22853
  ac_header_preproc=no
 
22854
fi
 
22855
 
 
22856
rm -f conftest.err conftest.$ac_ext
 
22857
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22858
$as_echo "$ac_header_preproc" >&6; }
 
22859
 
 
22860
# So?  What about this header?
 
22861
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22862
  yes:no: )
 
22863
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22864
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22865
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22866
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22867
    ac_header_preproc=yes
 
22868
    ;;
 
22869
  no:yes:* )
 
22870
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22871
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22872
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22873
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22874
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22875
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22876
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22877
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22878
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22879
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22880
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22881
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22882
    ( cat <<\_ASBOX
 
22883
## --------------------- ##
 
22884
## Report this to 3.12.4 ##
 
22885
## --------------------- ##
 
22886
_ASBOX
 
22887
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
22888
    ;;
 
22889
esac
 
22890
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22891
$as_echo_n "checking for $ac_header... " >&6; }
 
22892
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22893
  $as_echo_n "(cached) " >&6
 
22894
else
 
22895
  eval "$as_ac_Header=\$ac_header_preproc"
 
22896
fi
 
22897
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22898
                 $as_echo "$as_val"'`
 
22899
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22900
$as_echo "$ac_res" >&6; }
 
22901
 
 
22902
fi
 
22903
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22904
                 $as_echo "$as_val"'`
 
22905
   if test "x$as_val" = x""yes; then
 
22906
  cat >>confdefs.h <<_ACEOF
 
22907
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22908
_ACEOF
 
22909
 
 
22910
else
 
22911
  { { $as_echo "$as_me:$LINENO: error: cannot find ppdev-devel support (or --disable-pp-build)" >&5
 
22912
$as_echo "$as_me: error: cannot find ppdev-devel support (or --disable-pp-build)" >&2;}
 
22913
   { (exit 8); exit 8; }; }
 
22914
fi
 
22915
 
 
22916
done
 
22917
 
 
22918
fi
 
22919
 
 
22920
if test "$hpijs_only_build" = "no"; then
 
22921
   { $as_echo "$as_me:$LINENO: checking for cupsDoFileRequest in -lcups" >&5
 
22922
$as_echo_n "checking for cupsDoFileRequest in -lcups... " >&6; }
 
22923
if test "${ac_cv_lib_cups_cupsDoFileRequest+set}" = set; then
 
22924
  $as_echo_n "(cached) " >&6
 
22925
else
 
22926
  ac_check_lib_save_LIBS=$LIBS
 
22927
LIBS="-lcups  $LIBS"
 
22928
cat >conftest.$ac_ext <<_ACEOF
 
22929
/* confdefs.h.  */
 
22930
_ACEOF
 
22931
cat confdefs.h >>conftest.$ac_ext
 
22932
cat >>conftest.$ac_ext <<_ACEOF
 
22933
/* end confdefs.h.  */
 
22934
 
 
22935
/* Override any GCC internal prototype to avoid an error.
 
22936
   Use char because int might match the return type of a GCC
 
22937
   builtin and then its argument prototype would still apply.  */
 
22938
#ifdef __cplusplus
 
22939
extern "C"
 
22940
#endif
 
22941
char cupsDoFileRequest ();
 
22942
int
 
22943
main ()
 
22944
{
 
22945
return cupsDoFileRequest ();
 
22946
  ;
 
22947
  return 0;
 
22948
}
 
22949
_ACEOF
 
22950
rm -f conftest.$ac_objext conftest$ac_exeext
 
22951
if { (ac_try="$ac_link"
 
22952
case "(($ac_try" in
 
22953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22954
  *) ac_try_echo=$ac_try;;
 
22955
esac
 
22956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22957
$as_echo "$ac_try_echo") >&5
 
22958
  (eval "$ac_link") 2>conftest.er1
 
22959
  ac_status=$?
 
22960
  grep -v '^ *+' conftest.er1 >conftest.err
 
22961
  rm -f conftest.er1
 
22962
  cat conftest.err >&5
 
22963
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22964
  (exit $ac_status); } && {
 
22965
         test -z "$ac_c_werror_flag" ||
 
22966
         test ! -s conftest.err
 
22967
       } && test -s conftest$ac_exeext && {
 
22968
         test "$cross_compiling" = yes ||
 
22969
         $as_test_x conftest$ac_exeext
 
22970
       }; then
 
22971
  ac_cv_lib_cups_cupsDoFileRequest=yes
 
22972
else
 
22973
  $as_echo "$as_me: failed program was:" >&5
 
22974
sed 's/^/| /' conftest.$ac_ext >&5
 
22975
 
 
22976
        ac_cv_lib_cups_cupsDoFileRequest=no
 
22977
fi
 
22978
 
 
22979
rm -rf conftest.dSYM
 
22980
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22981
      conftest$ac_exeext conftest.$ac_ext
 
22982
LIBS=$ac_check_lib_save_LIBS
 
22983
fi
 
22984
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cups_cupsDoFileRequest" >&5
 
22985
$as_echo "$ac_cv_lib_cups_cupsDoFileRequest" >&6; }
 
22986
if test "x$ac_cv_lib_cups_cupsDoFileRequest" = x""yes; then
 
22987
  LIBS="$LIBS"
 
22988
else
 
22989
  { { $as_echo "$as_me:$LINENO: error: cannot find libcups support" >&5
 
22990
$as_echo "$as_me: error: cannot find libcups support" >&2;}
 
22991
   { (exit 9); exit 9; }; }
 
22992
fi
 
22993
 
 
22994
 
 
22995
for ac_header in cups/cups.h
 
22996
do
 
22997
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22999
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23000
$as_echo_n "checking for $ac_header... " >&6; }
 
23001
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23002
  $as_echo_n "(cached) " >&6
 
23003
fi
 
23004
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23005
                 $as_echo "$as_val"'`
 
23006
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23007
$as_echo "$ac_res" >&6; }
 
23008
else
 
23009
  # Is the header compilable?
 
23010
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23011
$as_echo_n "checking $ac_header usability... " >&6; }
 
23012
cat >conftest.$ac_ext <<_ACEOF
 
23013
/* confdefs.h.  */
 
23014
_ACEOF
 
23015
cat confdefs.h >>conftest.$ac_ext
 
23016
cat >>conftest.$ac_ext <<_ACEOF
 
23017
/* end confdefs.h.  */
 
23018
$ac_includes_default
 
23019
#include <$ac_header>
 
23020
_ACEOF
 
23021
rm -f conftest.$ac_objext
 
23022
if { (ac_try="$ac_compile"
 
23023
case "(($ac_try" in
 
23024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23025
  *) ac_try_echo=$ac_try;;
 
23026
esac
 
23027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23028
$as_echo "$ac_try_echo") >&5
 
23029
  (eval "$ac_compile") 2>conftest.er1
 
23030
  ac_status=$?
 
23031
  grep -v '^ *+' conftest.er1 >conftest.err
 
23032
  rm -f conftest.er1
 
23033
  cat conftest.err >&5
 
23034
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23035
  (exit $ac_status); } && {
 
23036
         test -z "$ac_c_werror_flag" ||
 
23037
         test ! -s conftest.err
 
23038
       } && test -s conftest.$ac_objext; then
 
23039
  ac_header_compiler=yes
 
23040
else
 
23041
  $as_echo "$as_me: failed program was:" >&5
 
23042
sed 's/^/| /' conftest.$ac_ext >&5
 
23043
 
 
23044
        ac_header_compiler=no
 
23045
fi
 
23046
 
 
23047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23048
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23049
$as_echo "$ac_header_compiler" >&6; }
 
23050
 
 
23051
# Is the header present?
 
23052
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23053
$as_echo_n "checking $ac_header presence... " >&6; }
 
23054
cat >conftest.$ac_ext <<_ACEOF
 
23055
/* confdefs.h.  */
 
23056
_ACEOF
 
23057
cat confdefs.h >>conftest.$ac_ext
 
23058
cat >>conftest.$ac_ext <<_ACEOF
 
23059
/* end confdefs.h.  */
 
23060
#include <$ac_header>
 
23061
_ACEOF
 
23062
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23063
case "(($ac_try" in
 
23064
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23065
  *) ac_try_echo=$ac_try;;
 
23066
esac
 
23067
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23068
$as_echo "$ac_try_echo") >&5
 
23069
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23070
  ac_status=$?
 
23071
  grep -v '^ *+' conftest.er1 >conftest.err
 
23072
  rm -f conftest.er1
 
23073
  cat conftest.err >&5
 
23074
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23075
  (exit $ac_status); } >/dev/null && {
 
23076
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23077
         test ! -s conftest.err
 
23078
       }; then
 
23079
  ac_header_preproc=yes
 
23080
else
 
23081
  $as_echo "$as_me: failed program was:" >&5
 
23082
sed 's/^/| /' conftest.$ac_ext >&5
 
23083
 
 
23084
  ac_header_preproc=no
 
23085
fi
 
23086
 
 
23087
rm -f conftest.err conftest.$ac_ext
 
23088
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23089
$as_echo "$ac_header_preproc" >&6; }
 
23090
 
 
23091
# So?  What about this header?
 
23092
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23093
  yes:no: )
 
23094
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23095
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23096
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23097
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23098
    ac_header_preproc=yes
 
23099
    ;;
 
23100
  no:yes:* )
 
23101
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23102
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23103
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23104
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23105
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23106
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23107
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23108
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23109
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23110
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23111
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23112
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23113
    ( cat <<\_ASBOX
 
23114
## --------------------- ##
 
23115
## Report this to 3.12.4 ##
 
23116
## --------------------- ##
 
23117
_ASBOX
 
23118
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23119
    ;;
 
23120
esac
 
23121
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23122
$as_echo_n "checking for $ac_header... " >&6; }
 
23123
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23124
  $as_echo_n "(cached) " >&6
 
23125
else
 
23126
  eval "$as_ac_Header=\$ac_header_preproc"
 
23127
fi
 
23128
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23129
                 $as_echo "$as_val"'`
 
23130
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23131
$as_echo "$ac_res" >&6; }
 
23132
 
 
23133
fi
 
23134
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23135
                 $as_echo "$as_val"'`
 
23136
   if test "x$as_val" = x""yes; then
 
23137
  cat >>confdefs.h <<_ACEOF
 
23138
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23139
_ACEOF
 
23140
 
 
23141
else
 
23142
  { { $as_echo "$as_me:$LINENO: error: cannot find cups-devel support" >&5
 
23143
$as_echo "$as_me: error: cannot find cups-devel support" >&2;}
 
23144
   { (exit 3); exit 3; }; }
 
23145
fi
 
23146
 
 
23147
done
 
23148
 
 
23149
   { $as_echo "$as_me:$LINENO: checking for usb_init in -lusb" >&5
 
23150
$as_echo_n "checking for usb_init in -lusb... " >&6; }
 
23151
if test "${ac_cv_lib_usb_usb_init+set}" = set; then
 
23152
  $as_echo_n "(cached) " >&6
 
23153
else
 
23154
  ac_check_lib_save_LIBS=$LIBS
 
23155
LIBS="-lusb  $LIBS"
 
23156
cat >conftest.$ac_ext <<_ACEOF
 
23157
/* confdefs.h.  */
 
23158
_ACEOF
 
23159
cat confdefs.h >>conftest.$ac_ext
 
23160
cat >>conftest.$ac_ext <<_ACEOF
 
23161
/* end confdefs.h.  */
 
23162
 
 
23163
/* Override any GCC internal prototype to avoid an error.
 
23164
   Use char because int might match the return type of a GCC
 
23165
   builtin and then its argument prototype would still apply.  */
 
23166
#ifdef __cplusplus
 
23167
extern "C"
 
23168
#endif
 
23169
char usb_init ();
 
23170
int
 
23171
main ()
 
23172
{
 
23173
return usb_init ();
 
23174
  ;
 
23175
  return 0;
 
23176
}
 
23177
_ACEOF
 
23178
rm -f conftest.$ac_objext conftest$ac_exeext
 
23179
if { (ac_try="$ac_link"
 
23180
case "(($ac_try" in
 
23181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23182
  *) ac_try_echo=$ac_try;;
 
23183
esac
 
23184
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23185
$as_echo "$ac_try_echo") >&5
 
23186
  (eval "$ac_link") 2>conftest.er1
 
23187
  ac_status=$?
 
23188
  grep -v '^ *+' conftest.er1 >conftest.err
 
23189
  rm -f conftest.er1
 
23190
  cat conftest.err >&5
 
23191
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23192
  (exit $ac_status); } && {
 
23193
         test -z "$ac_c_werror_flag" ||
 
23194
         test ! -s conftest.err
 
23195
       } && test -s conftest$ac_exeext && {
 
23196
         test "$cross_compiling" = yes ||
 
23197
         $as_test_x conftest$ac_exeext
 
23198
       }; then
 
23199
  ac_cv_lib_usb_usb_init=yes
 
23200
else
 
23201
  $as_echo "$as_me: failed program was:" >&5
 
23202
sed 's/^/| /' conftest.$ac_ext >&5
 
23203
 
 
23204
        ac_cv_lib_usb_usb_init=no
 
23205
fi
 
23206
 
 
23207
rm -rf conftest.dSYM
 
23208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23209
      conftest$ac_exeext conftest.$ac_ext
 
23210
LIBS=$ac_check_lib_save_LIBS
 
23211
fi
 
23212
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_usb_usb_init" >&5
 
23213
$as_echo "$ac_cv_lib_usb_usb_init" >&6; }
 
23214
if test "x$ac_cv_lib_usb_usb_init" = x""yes; then
 
23215
  LIBS="$LIBS"
 
23216
else
 
23217
  { { $as_echo "$as_me:$LINENO: error: cannot find libusb support" >&5
 
23218
$as_echo "$as_me: error: cannot find libusb support" >&2;}
 
23219
   { (exit 2); exit 2; }; }
 
23220
fi
 
23221
 
 
23222
 
 
23223
for ac_header in usb.h
 
23224
do
 
23225
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23226
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23227
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23228
$as_echo_n "checking for $ac_header... " >&6; }
 
23229
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23230
  $as_echo_n "(cached) " >&6
 
23231
fi
 
23232
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23233
                 $as_echo "$as_val"'`
 
23234
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23235
$as_echo "$ac_res" >&6; }
 
23236
else
 
23237
  # Is the header compilable?
 
23238
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23239
$as_echo_n "checking $ac_header usability... " >&6; }
 
23240
cat >conftest.$ac_ext <<_ACEOF
 
23241
/* confdefs.h.  */
 
23242
_ACEOF
 
23243
cat confdefs.h >>conftest.$ac_ext
 
23244
cat >>conftest.$ac_ext <<_ACEOF
 
23245
/* end confdefs.h.  */
 
23246
$ac_includes_default
 
23247
#include <$ac_header>
 
23248
_ACEOF
 
23249
rm -f conftest.$ac_objext
 
23250
if { (ac_try="$ac_compile"
 
23251
case "(($ac_try" in
 
23252
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23253
  *) ac_try_echo=$ac_try;;
 
23254
esac
 
23255
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23256
$as_echo "$ac_try_echo") >&5
 
23257
  (eval "$ac_compile") 2>conftest.er1
 
23258
  ac_status=$?
 
23259
  grep -v '^ *+' conftest.er1 >conftest.err
 
23260
  rm -f conftest.er1
 
23261
  cat conftest.err >&5
 
23262
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23263
  (exit $ac_status); } && {
 
23264
         test -z "$ac_c_werror_flag" ||
 
23265
         test ! -s conftest.err
 
23266
       } && test -s conftest.$ac_objext; then
 
23267
  ac_header_compiler=yes
 
23268
else
 
23269
  $as_echo "$as_me: failed program was:" >&5
 
23270
sed 's/^/| /' conftest.$ac_ext >&5
 
23271
 
 
23272
        ac_header_compiler=no
 
23273
fi
 
23274
 
 
23275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23276
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23277
$as_echo "$ac_header_compiler" >&6; }
 
23278
 
 
23279
# Is the header present?
 
23280
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23281
$as_echo_n "checking $ac_header presence... " >&6; }
 
23282
cat >conftest.$ac_ext <<_ACEOF
 
23283
/* confdefs.h.  */
 
23284
_ACEOF
 
23285
cat confdefs.h >>conftest.$ac_ext
 
23286
cat >>conftest.$ac_ext <<_ACEOF
 
23287
/* end confdefs.h.  */
 
23288
#include <$ac_header>
 
23289
_ACEOF
 
23290
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23291
case "(($ac_try" in
 
23292
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23293
  *) ac_try_echo=$ac_try;;
 
23294
esac
 
23295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23296
$as_echo "$ac_try_echo") >&5
 
23297
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23298
  ac_status=$?
 
23299
  grep -v '^ *+' conftest.er1 >conftest.err
 
23300
  rm -f conftest.er1
 
23301
  cat conftest.err >&5
 
23302
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23303
  (exit $ac_status); } >/dev/null && {
 
23304
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23305
         test ! -s conftest.err
 
23306
       }; then
 
23307
  ac_header_preproc=yes
 
23308
else
 
23309
  $as_echo "$as_me: failed program was:" >&5
 
23310
sed 's/^/| /' conftest.$ac_ext >&5
 
23311
 
 
23312
  ac_header_preproc=no
 
23313
fi
 
23314
 
 
23315
rm -f conftest.err conftest.$ac_ext
 
23316
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23317
$as_echo "$ac_header_preproc" >&6; }
 
23318
 
 
23319
# So?  What about this header?
 
23320
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23321
  yes:no: )
 
23322
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23323
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23324
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23325
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23326
    ac_header_preproc=yes
 
23327
    ;;
 
23328
  no:yes:* )
 
23329
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23330
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23331
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23332
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23333
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23334
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23335
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23336
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23337
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23338
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23339
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23340
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23341
    ( cat <<\_ASBOX
 
23342
## --------------------- ##
 
23343
## Report this to 3.12.4 ##
 
23344
## --------------------- ##
 
23345
_ASBOX
 
23346
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23347
    ;;
 
23348
esac
 
23349
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23350
$as_echo_n "checking for $ac_header... " >&6; }
 
23351
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23352
  $as_echo_n "(cached) " >&6
 
23353
else
 
23354
  eval "$as_ac_Header=\$ac_header_preproc"
 
23355
fi
 
23356
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23357
                 $as_echo "$as_val"'`
 
23358
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23359
$as_echo "$ac_res" >&6; }
 
23360
 
 
23361
fi
 
23362
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23363
                 $as_echo "$as_val"'`
 
23364
   if test "x$as_val" = x""yes; then
 
23365
  cat >>confdefs.h <<_ACEOF
 
23366
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23367
_ACEOF
 
23368
 
 
23369
else
 
23370
  { { $as_echo "$as_me:$LINENO: error: cannot find libusb-devel support" >&5
 
23371
$as_echo "$as_me: error: cannot find libusb-devel support" >&2;}
 
23372
   { (exit 11); exit 11; }; }
 
23373
fi
 
23374
 
 
23375
done
 
23376
 
 
23377
fi
 
23378
 
 
23379
if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no"; then
 
23380
 
 
23381
 
 
23382
 
 
23383
 
 
23384
 
 
23385
        if test -n "$PYTHON"; then
 
23386
      # If the user set $PYTHON, use it and don't search something else.
 
23387
      { $as_echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2" >&5
 
23388
$as_echo_n "checking whether $PYTHON version >= 2.2... " >&6; }
 
23389
      prog="import sys
 
23390
# split strings by '.' and convert to numeric.  Append some zeros
 
23391
# because we need at least 4 digits for the hex conversion.
 
23392
# map returns an iterator in Python 3.0 and a list in 2.x
 
23393
minver = list(map(int, '2.2'.split('.'))) + [0, 0, 0]
 
23394
minverhex = 0
 
23395
# xrange is not present in Python 3.0 and range returns an iterator
 
23396
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
23397
sys.exit(sys.hexversion < minverhex)"
 
23398
  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
 
23399
   ($PYTHON -c "$prog") >&5 2>&5
 
23400
   ac_status=$?
 
23401
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23402
   (exit $ac_status); }; then
 
23403
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23404
$as_echo "yes" >&6; }
 
23405
else
 
23406
  { { $as_echo "$as_me:$LINENO: error: too old" >&5
 
23407
$as_echo "$as_me: error: too old" >&2;}
 
23408
   { (exit 1); exit 1; }; }
 
23409
fi
 
23410
 
 
23411
      am_display_PYTHON=$PYTHON
 
23412
    else
 
23413
      # Otherwise, try each interpreter until we find one that satisfies
 
23414
      # VERSION.
 
23415
      { $as_echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2" >&5
 
23416
$as_echo_n "checking for a Python interpreter with version >= 2.2... " >&6; }
 
23417
if test "${am_cv_pathless_PYTHON+set}" = set; then
 
23418
  $as_echo_n "(cached) " >&6
 
23419
else
 
23420
 
 
23421
        for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
 
23422
          test "$am_cv_pathless_PYTHON" = none && break
 
23423
          prog="import sys
 
23424
# split strings by '.' and convert to numeric.  Append some zeros
 
23425
# because we need at least 4 digits for the hex conversion.
 
23426
# map returns an iterator in Python 3.0 and a list in 2.x
 
23427
minver = list(map(int, '2.2'.split('.'))) + [0, 0, 0]
 
23428
minverhex = 0
 
23429
# xrange is not present in Python 3.0 and range returns an iterator
 
23430
for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
 
23431
sys.exit(sys.hexversion < minverhex)"
 
23432
  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
 
23433
   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
 
23434
   ac_status=$?
 
23435
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23436
   (exit $ac_status); }; then
 
23437
  break
 
23438
fi
 
23439
 
 
23440
        done
 
23441
fi
 
23442
{ $as_echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
 
23443
$as_echo "$am_cv_pathless_PYTHON" >&6; }
 
23444
      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
 
23445
      if test "$am_cv_pathless_PYTHON" = none; then
 
23446
        PYTHON=:
 
23447
      else
 
23448
        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
 
23449
set dummy $am_cv_pathless_PYTHON; ac_word=$2
 
23450
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23451
$as_echo_n "checking for $ac_word... " >&6; }
 
23452
if test "${ac_cv_path_PYTHON+set}" = set; then
 
23453
  $as_echo_n "(cached) " >&6
 
23454
else
 
23455
  case $PYTHON in
 
23456
  [\\/]* | ?:[\\/]*)
 
23457
  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
 
23458
  ;;
 
23459
  *)
 
23460
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23461
for as_dir in $PATH
 
23462
do
 
23463
  IFS=$as_save_IFS
 
23464
  test -z "$as_dir" && as_dir=.
 
23465
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23466
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23467
    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
 
23468
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23469
    break 2
 
23470
  fi
 
23471
done
 
23472
done
 
23473
IFS=$as_save_IFS
 
23474
 
 
23475
  ;;
 
23476
esac
 
23477
fi
 
23478
PYTHON=$ac_cv_path_PYTHON
 
23479
if test -n "$PYTHON"; then
 
23480
  { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
 
23481
$as_echo "$PYTHON" >&6; }
 
23482
else
 
23483
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23484
$as_echo "no" >&6; }
 
23485
fi
 
23486
 
 
23487
 
 
23488
      fi
 
23489
      am_display_PYTHON=$am_cv_pathless_PYTHON
 
23490
    fi
 
23491
 
 
23492
 
 
23493
  if test "$PYTHON" = :; then
 
23494
      { { $as_echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
 
23495
$as_echo "$as_me: error: no suitable Python interpreter found" >&2;}
 
23496
   { (exit 1); exit 1; }; }
 
23497
  else
 
23498
 
 
23499
 
 
23500
  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
 
23501
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
 
23502
if test "${am_cv_python_version+set}" = set; then
 
23503
  $as_echo_n "(cached) " >&6
 
23504
else
 
23505
  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
 
23506
fi
 
23507
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
 
23508
$as_echo "$am_cv_python_version" >&6; }
 
23509
  PYTHON_VERSION=$am_cv_python_version
 
23510
 
 
23511
 
 
23512
 
 
23513
  PYTHON_PREFIX='${prefix}'
 
23514
 
 
23515
  PYTHON_EXEC_PREFIX='${exec_prefix}'
 
23516
 
 
23517
 
 
23518
 
 
23519
  { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
 
23520
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
 
23521
if test "${am_cv_python_platform+set}" = set; then
 
23522
  $as_echo_n "(cached) " >&6
 
23523
else
 
23524
  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
 
23525
fi
 
23526
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
 
23527
$as_echo "$am_cv_python_platform" >&6; }
 
23528
  PYTHON_PLATFORM=$am_cv_python_platform
 
23529
 
 
23530
 
 
23531
 
 
23532
 
 
23533
                { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
 
23534
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
 
23535
if test "${am_cv_python_pythondir+set}" = set; then
 
23536
  $as_echo_n "(cached) " >&6
 
23537
else
 
23538
  if test "x$prefix" = xNONE
 
23539
     then
 
23540
       am_py_prefix=$ac_default_prefix
 
23541
     else
 
23542
       am_py_prefix=$prefix
 
23543
     fi
 
23544
     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
 
23545
     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
23546
     case $am_cv_python_pythondir in
 
23547
     $am_py_prefix*)
 
23548
       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
 
23549
       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
 
23550
       ;;
 
23551
     esac
 
23552
 
 
23553
fi
 
23554
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
 
23555
$as_echo "$am_cv_python_pythondir" >&6; }
 
23556
  pythondir=$am_cv_python_pythondir
 
23557
 
 
23558
 
 
23559
 
 
23560
  pkgpythondir=\${pythondir}/$PACKAGE
 
23561
 
 
23562
 
 
23563
            { $as_echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
 
23564
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
 
23565
if test "${am_cv_python_pyexecdir+set}" = set; then
 
23566
  $as_echo_n "(cached) " >&6
 
23567
else
 
23568
  if test "x$exec_prefix" = xNONE
 
23569
     then
 
23570
       am_py_exec_prefix=$am_py_prefix
 
23571
     else
 
23572
       am_py_exec_prefix=$exec_prefix
 
23573
     fi
 
23574
     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
 
23575
     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
 
23576
     case $am_cv_python_pyexecdir in
 
23577
     $am_py_exec_prefix*)
 
23578
       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
 
23579
       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
 
23580
       ;;
 
23581
     esac
 
23582
 
 
23583
fi
 
23584
{ $as_echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
 
23585
$as_echo "$am_cv_python_pyexecdir" >&6; }
 
23586
  pyexecdir=$am_cv_python_pyexecdir
 
23587
 
 
23588
 
 
23589
 
 
23590
  pkgpyexecdir=\${pyexecdir}/$PACKAGE
 
23591
 
 
23592
 
 
23593
 
 
23594
  fi
 
23595
 
 
23596
 
 
23597
   { $as_echo "$as_me:$LINENO: checking for path to Python.h" >&5
 
23598
$as_echo_n "checking for path to Python.h... " >&6; }
 
23599
   PYTHONINCLUDEDIR=`$PYTHON -c "from distutils.sysconfig import get_python_inc; print get_python_inc();"`
 
23600
   { $as_echo "$as_me:$LINENO: result: \"using $PYTHONINCLUDEDIR\"" >&5
 
23601
$as_echo "\"using $PYTHONINCLUDEDIR\"" >&6; }
 
23602
 
 
23603
 
 
23604
for ac_header in python$PYTHON_VERSION/Python.h
 
23605
do
 
23606
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23607
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23608
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23609
$as_echo_n "checking for $ac_header... " >&6; }
 
23610
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23611
  $as_echo_n "(cached) " >&6
 
23612
fi
 
23613
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23614
                 $as_echo "$as_val"'`
 
23615
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23616
$as_echo "$ac_res" >&6; }
 
23617
else
 
23618
  # Is the header compilable?
 
23619
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23620
$as_echo_n "checking $ac_header usability... " >&6; }
 
23621
cat >conftest.$ac_ext <<_ACEOF
 
23622
/* confdefs.h.  */
 
23623
_ACEOF
 
23624
cat confdefs.h >>conftest.$ac_ext
 
23625
cat >>conftest.$ac_ext <<_ACEOF
 
23626
/* end confdefs.h.  */
 
23627
$ac_includes_default
 
23628
#include <$ac_header>
 
23629
_ACEOF
 
23630
rm -f conftest.$ac_objext
 
23631
if { (ac_try="$ac_compile"
 
23632
case "(($ac_try" in
 
23633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23634
  *) ac_try_echo=$ac_try;;
 
23635
esac
 
23636
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23637
$as_echo "$ac_try_echo") >&5
 
23638
  (eval "$ac_compile") 2>conftest.er1
 
23639
  ac_status=$?
 
23640
  grep -v '^ *+' conftest.er1 >conftest.err
 
23641
  rm -f conftest.er1
 
23642
  cat conftest.err >&5
 
23643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23644
  (exit $ac_status); } && {
 
23645
         test -z "$ac_c_werror_flag" ||
 
23646
         test ! -s conftest.err
 
23647
       } && test -s conftest.$ac_objext; then
 
23648
  ac_header_compiler=yes
 
23649
else
 
23650
  $as_echo "$as_me: failed program was:" >&5
 
23651
sed 's/^/| /' conftest.$ac_ext >&5
 
23652
 
 
23653
        ac_header_compiler=no
 
23654
fi
 
23655
 
 
23656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23657
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23658
$as_echo "$ac_header_compiler" >&6; }
 
23659
 
 
23660
# Is the header present?
 
23661
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23662
$as_echo_n "checking $ac_header presence... " >&6; }
 
23663
cat >conftest.$ac_ext <<_ACEOF
 
23664
/* confdefs.h.  */
 
23665
_ACEOF
 
23666
cat confdefs.h >>conftest.$ac_ext
 
23667
cat >>conftest.$ac_ext <<_ACEOF
 
23668
/* end confdefs.h.  */
 
23669
#include <$ac_header>
 
23670
_ACEOF
 
23671
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23672
case "(($ac_try" in
 
23673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23674
  *) ac_try_echo=$ac_try;;
 
23675
esac
 
23676
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23677
$as_echo "$ac_try_echo") >&5
 
23678
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23679
  ac_status=$?
 
23680
  grep -v '^ *+' conftest.er1 >conftest.err
 
23681
  rm -f conftest.er1
 
23682
  cat conftest.err >&5
 
23683
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23684
  (exit $ac_status); } >/dev/null && {
 
23685
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
23686
         test ! -s conftest.err
 
23687
       }; then
 
23688
  ac_header_preproc=yes
 
23689
else
 
23690
  $as_echo "$as_me: failed program was:" >&5
 
23691
sed 's/^/| /' conftest.$ac_ext >&5
 
23692
 
 
23693
  ac_header_preproc=no
 
23694
fi
 
23695
 
 
23696
rm -f conftest.err conftest.$ac_ext
 
23697
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23698
$as_echo "$ac_header_preproc" >&6; }
 
23699
 
 
23700
# So?  What about this header?
 
23701
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23702
  yes:no: )
 
23703
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23704
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23705
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23706
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23707
    ac_header_preproc=yes
 
23708
    ;;
 
23709
  no:yes:* )
 
23710
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23711
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23712
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23713
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23714
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23715
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23716
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23717
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23718
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23719
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23720
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23721
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23722
    ( cat <<\_ASBOX
 
23723
## --------------------- ##
 
23724
## Report this to 3.12.4 ##
 
23725
## --------------------- ##
 
23726
_ASBOX
 
23727
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23728
    ;;
 
23729
esac
 
23730
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23731
$as_echo_n "checking for $ac_header... " >&6; }
 
23732
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23733
  $as_echo_n "(cached) " >&6
 
23734
else
 
23735
  eval "$as_ac_Header=\$ac_header_preproc"
 
23736
fi
 
23737
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
23738
                 $as_echo "$as_val"'`
 
23739
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
23740
$as_echo "$ac_res" >&6; }
 
23741
 
 
23742
fi
 
23743
as_val=`eval 'as_val=${'$as_ac_Header'}
 
23744
                 $as_echo "$as_val"'`
 
23745
   if test "x$as_val" = x""yes; then
 
23746
  cat >>confdefs.h <<_ACEOF
 
23747
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23748
_ACEOF
 
23749
 
 
23750
else
 
23751
  { { $as_echo "$as_me:$LINENO: error: cannot find python-devel support" >&5
 
23752
$as_echo "$as_me: error: cannot find python-devel support" >&2;}
 
23753
   { (exit 6); exit 6; }; }
 
23754
fi
 
23755
 
 
23756
done
 
23757
 
 
23758
fi
 
23759
 
 
23760
if test "$hpijs_only_build" = "no" && test "$scan_build" = "yes" && test "$hpcups_only_build" = "no"; then
 
23761
   { $as_echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
 
23762
$as_echo_n "checking for sane_open in -lsane... " >&6; }
 
23763
if test "${ac_cv_lib_sane_sane_open+set}" = set; then
 
23764
  $as_echo_n "(cached) " >&6
 
23765
else
 
23766
  ac_check_lib_save_LIBS=$LIBS
 
23767
LIBS="-lsane  $LIBS"
 
23768
cat >conftest.$ac_ext <<_ACEOF
 
23769
/* confdefs.h.  */
 
23770
_ACEOF
 
23771
cat confdefs.h >>conftest.$ac_ext
 
23772
cat >>conftest.$ac_ext <<_ACEOF
 
23773
/* end confdefs.h.  */
 
23774
 
 
23775
/* Override any GCC internal prototype to avoid an error.
 
23776
   Use char because int might match the return type of a GCC
 
23777
   builtin and then its argument prototype would still apply.  */
 
23778
#ifdef __cplusplus
 
23779
extern "C"
 
23780
#endif
 
23781
char sane_open ();
 
23782
int
 
23783
main ()
 
23784
{
 
23785
return sane_open ();
 
23786
  ;
 
23787
  return 0;
 
23788
}
 
23789
_ACEOF
 
23790
rm -f conftest.$ac_objext conftest$ac_exeext
 
23791
if { (ac_try="$ac_link"
 
23792
case "(($ac_try" in
 
23793
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23794
  *) ac_try_echo=$ac_try;;
 
23795
esac
 
23796
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23797
$as_echo "$ac_try_echo") >&5
 
23798
  (eval "$ac_link") 2>conftest.er1
 
23799
  ac_status=$?
 
23800
  grep -v '^ *+' conftest.er1 >conftest.err
 
23801
  rm -f conftest.er1
 
23802
  cat conftest.err >&5
 
23803
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23804
  (exit $ac_status); } && {
 
23805
         test -z "$ac_c_werror_flag" ||
 
23806
         test ! -s conftest.err
 
23807
       } && test -s conftest$ac_exeext && {
 
23808
         test "$cross_compiling" = yes ||
 
23809
         $as_test_x conftest$ac_exeext
 
23810
       }; then
 
23811
  ac_cv_lib_sane_sane_open=yes
 
23812
else
 
23813
  $as_echo "$as_me: failed program was:" >&5
 
23814
sed 's/^/| /' conftest.$ac_ext >&5
 
23815
 
 
23816
        ac_cv_lib_sane_sane_open=no
 
23817
fi
 
23818
 
 
23819
rm -rf conftest.dSYM
 
23820
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23821
      conftest$ac_exeext conftest.$ac_ext
 
23822
LIBS=$ac_check_lib_save_LIBS
 
23823
fi
 
23824
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
 
23825
$as_echo "$ac_cv_lib_sane_sane_open" >&6; }
 
23826
if test "x$ac_cv_lib_sane_sane_open" = x""yes; then
 
23827
  LIBS="$LIBS"
 
23828
else
 
23829
  { { $as_echo "$as_me:$LINENO: error: cannot find sane-backends-devel support (or --disable-scan-build)" >&5
 
23830
$as_echo "$as_me: error: cannot find sane-backends-devel support (or --disable-scan-build)" >&2;}
 
23831
   { (exit 12); exit 12; }; }
 
23832
fi
 
23833
 
 
23834
fi
 
23835
 
 
23836
# The PKG_CHECK_MODULES macro requires the pkgconfig package (pkg-config). Otherwise you get a strange shell script error
 
23837
# "syntax error near upexpected token: DBUS".
 
23838
if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$dbus_build" = "yes"; then
 
23839
#   PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0.0, dbus-glib-1 >= 0.61],,[AC_MSG_ERROR([cannot find dbus-devel support: $DBUS_PKG_ERRORS], 14)])
 
23840
 
 
23841
 
 
23842
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
23843
        if test -n "$ac_tool_prefix"; then
 
23844
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
23845
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
23846
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23847
$as_echo_n "checking for $ac_word... " >&6; }
 
23848
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
23849
  $as_echo_n "(cached) " >&6
 
23850
else
 
23851
  case $PKG_CONFIG in
 
23852
  [\\/]* | ?:[\\/]*)
 
23853
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
23854
  ;;
 
23855
  *)
 
23856
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23857
for as_dir in $PATH
 
23858
do
 
23859
  IFS=$as_save_IFS
 
23860
  test -z "$as_dir" && as_dir=.
 
23861
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23863
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23864
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23865
    break 2
 
23866
  fi
 
23867
done
 
23868
done
 
23869
IFS=$as_save_IFS
 
23870
 
 
23871
  ;;
 
23872
esac
 
23873
fi
 
23874
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
23875
if test -n "$PKG_CONFIG"; then
 
23876
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
23877
$as_echo "$PKG_CONFIG" >&6; }
 
23878
else
 
23879
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23880
$as_echo "no" >&6; }
 
23881
fi
 
23882
 
 
23883
 
 
23884
fi
 
23885
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
23886
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
23887
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
23888
set dummy pkg-config; ac_word=$2
 
23889
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23890
$as_echo_n "checking for $ac_word... " >&6; }
 
23891
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
23892
  $as_echo_n "(cached) " >&6
 
23893
else
 
23894
  case $ac_pt_PKG_CONFIG in
 
23895
  [\\/]* | ?:[\\/]*)
 
23896
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
23897
  ;;
 
23898
  *)
 
23899
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23900
for as_dir in $PATH
 
23901
do
 
23902
  IFS=$as_save_IFS
 
23903
  test -z "$as_dir" && as_dir=.
 
23904
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23905
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23906
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23907
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23908
    break 2
 
23909
  fi
 
23910
done
 
23911
done
 
23912
IFS=$as_save_IFS
 
23913
 
 
23914
  ;;
 
23915
esac
 
23916
fi
 
23917
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
23918
if test -n "$ac_pt_PKG_CONFIG"; then
 
23919
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
23920
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
23921
else
 
23922
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23923
$as_echo "no" >&6; }
 
23924
fi
 
23925
 
 
23926
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
23927
    PKG_CONFIG=""
 
23928
  else
 
23929
    case $cross_compiling:$ac_tool_warned in
 
23930
yes:)
 
23931
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
23932
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
23933
ac_tool_warned=yes ;;
 
23934
esac
 
23935
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
23936
  fi
 
23937
else
 
23938
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
23939
fi
 
23940
 
 
23941
fi
 
23942
if test -n "$PKG_CONFIG"; then
 
23943
        _pkg_min_version=0.9.0
 
23944
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
23945
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
23946
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
23947
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23948
$as_echo "yes" >&6; }
 
23949
        else
 
23950
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
23951
$as_echo "no" >&6; }
 
23952
                PKG_CONFIG=""
 
23953
        fi
 
23954
 
 
23955
fi
 
23956
 
 
23957
pkg_failed=no
 
23958
{ $as_echo "$as_me:$LINENO: checking for DBUS" >&5
 
23959
$as_echo_n "checking for DBUS... " >&6; }
 
23960
 
 
23961
if test -n "$DBUS_CFLAGS"; then
 
23962
    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
 
23963
 elif test -n "$PKG_CONFIG"; then
 
23964
    if test -n "$PKG_CONFIG" && \
 
23965
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0.0\"") >&5
 
23966
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
 
23967
  ac_status=$?
 
23968
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23969
  (exit $ac_status); }; then
 
23970
  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0.0" 2>/dev/null`
 
23971
else
 
23972
  pkg_failed=yes
 
23973
fi
 
23974
 else
 
23975
    pkg_failed=untried
 
23976
fi
 
23977
if test -n "$DBUS_LIBS"; then
 
23978
    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
 
23979
 elif test -n "$PKG_CONFIG"; then
 
23980
    if test -n "$PKG_CONFIG" && \
 
23981
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.0.0\"") >&5
 
23982
  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.0.0") 2>&5
 
23983
  ac_status=$?
 
23984
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23985
  (exit $ac_status); }; then
 
23986
  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0.0" 2>/dev/null`
 
23987
else
 
23988
  pkg_failed=yes
 
23989
fi
 
23990
 else
 
23991
    pkg_failed=untried
 
23992
fi
 
23993
 
 
23994
 
 
23995
 
 
23996
if test $pkg_failed = yes; then
 
23997
 
 
23998
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23999
        _pkg_short_errors_supported=yes
 
24000
else
 
24001
        _pkg_short_errors_supported=no
 
24002
fi
 
24003
        if test $_pkg_short_errors_supported = yes; then
 
24004
                DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.0.0" 2>&1`
 
24005
        else
 
24006
                DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.0.0" 2>&1`
 
24007
        fi
 
24008
        # Put the nasty error message in config.log where it belongs
 
24009
        echo "$DBUS_PKG_ERRORS" >&5
 
24010
 
 
24011
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
24012
$as_echo "no" >&6; }
 
24013
                { { $as_echo "$as_me:$LINENO: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&5
 
24014
$as_echo "$as_me: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&2;}
 
24015
   { (exit 14); exit 14; }; }
 
24016
elif test $pkg_failed = untried; then
 
24017
        { { $as_echo "$as_me:$LINENO: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&5
 
24018
$as_echo "$as_me: error: cannot find dbus-devel support: $DBUS_PKG_ERRORS" >&2;}
 
24019
   { (exit 14); exit 14; }; }
 
24020
else
 
24021
        DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
 
24022
        DBUS_LIBS=$pkg_cv_DBUS_LIBS
 
24023
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
24024
$as_echo "yes" >&6; }
 
24025
        :
 
24026
fi
 
24027
   { $as_echo "$as_me:$LINENO: checking for dbus_connection_open in -ldbus-1" >&5
 
24028
$as_echo_n "checking for dbus_connection_open in -ldbus-1... " >&6; }
 
24029
if test "${ac_cv_lib_dbus_1_dbus_connection_open+set}" = set; then
 
24030
  $as_echo_n "(cached) " >&6
 
24031
else
 
24032
  ac_check_lib_save_LIBS=$LIBS
 
24033
LIBS="-ldbus-1  $LIBS"
 
24034
cat >conftest.$ac_ext <<_ACEOF
 
24035
/* confdefs.h.  */
 
24036
_ACEOF
 
24037
cat confdefs.h >>conftest.$ac_ext
 
24038
cat >>conftest.$ac_ext <<_ACEOF
 
24039
/* end confdefs.h.  */
 
24040
 
 
24041
/* Override any GCC internal prototype to avoid an error.
 
24042
   Use char because int might match the return type of a GCC
 
24043
   builtin and then its argument prototype would still apply.  */
 
24044
#ifdef __cplusplus
 
24045
extern "C"
 
24046
#endif
 
24047
char dbus_connection_open ();
 
24048
int
 
24049
main ()
 
24050
{
 
24051
return dbus_connection_open ();
 
24052
  ;
 
24053
  return 0;
 
24054
}
 
24055
_ACEOF
 
24056
rm -f conftest.$ac_objext conftest$ac_exeext
 
24057
if { (ac_try="$ac_link"
 
24058
case "(($ac_try" in
 
24059
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24060
  *) ac_try_echo=$ac_try;;
 
24061
esac
 
24062
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
24063
$as_echo "$ac_try_echo") >&5
 
24064
  (eval "$ac_link") 2>conftest.er1
 
24065
  ac_status=$?
 
24066
  grep -v '^ *+' conftest.er1 >conftest.err
 
24067
  rm -f conftest.er1
 
24068
  cat conftest.err >&5
 
24069
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24070
  (exit $ac_status); } && {
 
24071
         test -z "$ac_c_werror_flag" ||
 
24072
         test ! -s conftest.err
 
24073
       } && test -s conftest$ac_exeext && {
 
24074
         test "$cross_compiling" = yes ||
 
24075
         $as_test_x conftest$ac_exeext
 
24076
       }; then
 
24077
  ac_cv_lib_dbus_1_dbus_connection_open=yes
 
24078
else
 
24079
  $as_echo "$as_me: failed program was:" >&5
 
24080
sed 's/^/| /' conftest.$ac_ext >&5
 
24081
 
 
24082
        ac_cv_lib_dbus_1_dbus_connection_open=no
 
24083
fi
 
24084
 
 
24085
rm -rf conftest.dSYM
 
24086
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24087
      conftest$ac_exeext conftest.$ac_ext
 
24088
LIBS=$ac_check_lib_save_LIBS
 
24089
fi
 
24090
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dbus_1_dbus_connection_open" >&5
 
24091
$as_echo "$ac_cv_lib_dbus_1_dbus_connection_open" >&6; }
 
24092
if test "x$ac_cv_lib_dbus_1_dbus_connection_open" = x""yes; then
 
24093
  LIBS="$LIBS" cat >>confdefs.h <<\_ACEOF
 
24094
#define HAVE_DBUS 1
 
24095
_ACEOF
 
24096
 
 
24097
else
 
24098
  { { $as_echo "$as_me:$LINENO: error: cannot find libdbus support" >&5
 
24099
$as_echo "$as_me: error: cannot find libdbus support" >&2;}
 
24100
   { (exit 13); exit 13; }; }
 
24101
fi
 
24102
 
 
24103
fi
 
24104
 
 
24105
if test "$hpijs_only_build" = "no" && test "$lite_build" = "no" && test "$hpcups_only_build" = "no" && test "$fax_build" = "yes" && test "$dbus_build" = "no"; then
 
24106
   { { $as_echo "$as_me:$LINENO: error: fax requires dbus support" >&5
 
24107
$as_echo "$as_me: error: fax requires dbus support" >&2;}
 
24108
   { (exit 15); exit 15; }; }
 
24109
fi
 
24110
 
 
24111
# AC_DEFINE_DIR([DATADIR], [datadir])
 
24112
# Copyright © 2006 Stepan Kasal  <kasal@ucw.cz>
 
24113
# Copyright © 2006 Andreas Schwab <schwab@suse.de>
 
24114
# Copyright © 2006 Guido U. Draheim <guidod@gmx.de>
 
24115
# Copyright © 2006 Alexandre Oliva
 
24116
# Copying and distribution of this file, with or without modification, are permitted in any medium without
 
24117
# royalty provided the copyright notice and this notice are preserved.
 
24118
 
 
24119
 
 
24120
 
 
24121
  prefix_NONE=
 
24122
  exec_prefix_NONE=
 
24123
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
24124
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
24125
  eval ac_define_dir="\"$datadir\""
 
24126
  eval ac_define_dir="\"$ac_define_dir\""
 
24127
  abs_datadir="$ac_define_dir"
 
24128
  test "$prefix_NONE" && prefix=NONE
 
24129
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
24130
 
 
24131
 
 
24132
  prefix_NONE=
 
24133
  exec_prefix_NONE=
 
24134
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
24135
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
24136
  eval ac_define_dir="\"$sbindir\""
 
24137
  eval ac_define_dir="\"$ac_define_dir\""
 
24138
  abs_sbindir="$ac_define_dir"
 
24139
  test "$prefix_NONE" && prefix=NONE
 
24140
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
24141
 
 
24142
 
 
24143
  prefix_NONE=
 
24144
  exec_prefix_NONE=
 
24145
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
24146
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
24147
  eval ac_define_dir="\"$hpppddir\""
 
24148
  eval ac_define_dir="\"$ac_define_dir\""
 
24149
  abs_hpppddir="$ac_define_dir"
 
24150
  test "$prefix_NONE" && prefix=NONE
 
24151
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
24152
 
 
24153
 
 
24154
  prefix_NONE=
 
24155
  exec_prefix_NONE=
 
24156
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
24157
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
24158
  eval ac_define_dir="\"$hpdocdir\""
 
24159
  eval ac_define_dir="\"$ac_define_dir\""
 
24160
  abs_docdir="$ac_define_dir"
 
24161
  test "$prefix_NONE" && prefix=NONE
 
24162
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
24163
 
 
24164
abs_ppddir=${abs_hpppddir%/*}
 
24165
 
 
24166
  prefix_NONE=
 
24167
  exec_prefix_NONE=
 
24168
  test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
 
24169
  test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
 
24170
  eval ac_define_dir="\"$drvdir\""
 
24171
  eval ac_define_dir="\"$ac_define_dir\""
 
24172
  abs_drvdir="$ac_define_dir"
 
24173
  test "$prefix_NONE" && prefix=NONE
 
24174
  test "$exec_prefix_NONE" && exec_prefix=NONE
 
24175
 
 
24176
 
 
24177
 
 
24178
 
 
24179
 
 
24180
 
 
24181
 
 
24182
 
 
24183
 
 
24184
 
 
24185
 
 
24186
 
 
24187
 
 
24188
 
 
24189
 
 
24190
 
 
24191
 
 
24192
 
 
24193
 
 
24194
 
 
24195
 
 
24196
 
 
24197
 
 
24198
 
 
24199
 
 
24200
 
 
24201
 
 
24202
 
 
24203
 
 
24204
 
 
24205
 
 
24206
 
 
24207
 
 
24208
 
 
24209
 
 
24210
 
 
24211
 
 
24212
 
 
24213
 
 
24214
 
 
24215
 
 
24216
 
 
24217
 
 
24218
 
 
24219
 
 
24220
 
 
24221
 
 
24222
 
 
24223
 
 
24224
 
 
24225
 
 
24226
 
 
24227
 
 
24228
 
 
24229
 
 
24230
 
 
24231
 
 
24232
 
 
24233
 
 
24234
 
 
24235
 
 
24236
 
 
24237
 
 
24238
 
 
24239
ac_config_files="$ac_config_files Makefile hplip.conf hplip.desktop hplip-systray.desktop prnt/drv/hpijs.drv prnt/drv/hpcups.drv hplip.list data/policykit/com.hp.hplip.service"
 
24240
 
 
24241
cat >confcache <<\_ACEOF
 
24242
# This file is a shell script that caches the results of configure
 
24243
# tests run on this system so they can be shared between configure
 
24244
# scripts and configure runs, see configure's option --config-cache.
 
24245
# It is not useful on other systems.  If it contains results you don't
 
24246
# want to keep, you may remove or edit it.
 
24247
#
 
24248
# config.status only pays attention to the cache file if you give it
 
24249
# the --recheck option to rerun configure.
 
24250
#
 
24251
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24252
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24253
# following values.
 
24254
 
 
24255
_ACEOF
 
24256
 
 
24257
# The following way of writing the cache mishandles newlines in values,
 
24258
# but we know of no workaround that is simple, portable, and efficient.
 
24259
# So, we kill variables containing newlines.
 
24260
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24261
# and sets the high bit in the cache file unless we assign to the vars.
 
24262
(
 
24263
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24264
    eval ac_val=\$$ac_var
 
24265
    case $ac_val in #(
 
24266
    *${as_nl}*)
 
24267
      case $ac_var in #(
 
24268
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
24269
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
24270
      esac
 
24271
      case $ac_var in #(
 
24272
      _ | IFS | as_nl) ;; #(
 
24273
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
24274
      *) $as_unset $ac_var ;;
 
24275
      esac ;;
 
24276
    esac
 
24277
  done
 
24278
 
 
24279
  (set) 2>&1 |
 
24280
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24281
    *${as_nl}ac_space=\ *)
 
24282
      # `set' does not quote correctly, so add quotes (double-quote
 
24283
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24284
      sed -n \
 
24285
        "s/'/'\\\\''/g;
 
24286
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24287
      ;; #(
 
24288
    *)
 
24289
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24290
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24291
      ;;
 
24292
    esac |
 
24293
    sort
 
24294
) |
 
24295
  sed '
 
24296
     /^ac_cv_env_/b end
 
24297
     t clear
 
24298
     :clear
 
24299
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24300
     t end
 
24301
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24302
     :end' >>confcache
 
24303
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24304
  if test -w "$cache_file"; then
 
24305
    test "x$cache_file" != "x/dev/null" &&
 
24306
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24307
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
24308
    cat confcache >$cache_file
 
24309
  else
 
24310
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24311
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24312
  fi
 
24313
fi
 
24314
rm -f confcache
 
24315
 
 
24316
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24317
# Let make expand exec_prefix.
 
24318
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24319
 
 
24320
# Transform confdefs.h into DEFS.
 
24321
# Protect against shell expansion while executing Makefile rules.
 
24322
# Protect against Makefile macro expansion.
 
24323
#
 
24324
# If the first sed substitution is executed (which looks for macros that
 
24325
# take arguments), then branch to the quote section.  Otherwise,
 
24326
# look for a macro that doesn't take arguments.
 
24327
ac_script='
 
24328
:mline
 
24329
/\\$/{
 
24330
 N
 
24331
 s,\\\n,,
 
24332
 b mline
 
24333
}
 
24334
t clear
 
24335
:clear
 
24336
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
24337
t quote
 
24338
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
24339
t quote
 
24340
b any
 
24341
:quote
 
24342
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
24343
s/\[/\\&/g
 
24344
s/\]/\\&/g
 
24345
s/\$/$$/g
 
24346
H
 
24347
:any
 
24348
${
 
24349
        g
 
24350
        s/^\n//
 
24351
        s/\n/ /g
 
24352
        p
 
24353
}
 
24354
'
 
24355
DEFS=`sed -n "$ac_script" confdefs.h`
 
24356
 
 
24357
 
 
24358
ac_libobjs=
 
24359
ac_ltlibobjs=
 
24360
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24361
  # 1. Remove the extension, and $U if already installed.
 
24362
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24363
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
24364
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24365
  #    will be set to the directory where LIBOBJS objects are built.
 
24366
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24367
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24368
done
 
24369
LIBOBJS=$ac_libobjs
 
24370
 
 
24371
LTLIBOBJS=$ac_ltlibobjs
 
24372
 
 
24373
 
 
24374
 if test -n "$EXEEXT"; then
 
24375
  am__EXEEXT_TRUE=
 
24376
  am__EXEEXT_FALSE='#'
 
24377
else
 
24378
  am__EXEEXT_TRUE='#'
 
24379
  am__EXEEXT_FALSE=
 
24380
fi
 
24381
 
 
24382
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24383
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24384
Usually this means the macro was only invoked conditionally." >&5
 
24385
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24386
Usually this means the macro was only invoked conditionally." >&2;}
 
24387
   { (exit 1); exit 1; }; }
 
24388
fi
 
24389
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24390
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24391
Usually this means the macro was only invoked conditionally." >&5
 
24392
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24393
Usually this means the macro was only invoked conditionally." >&2;}
 
24394
   { (exit 1); exit 1; }; }
 
24395
fi
 
24396
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24397
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24398
Usually this means the macro was only invoked conditionally." >&5
 
24399
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24400
Usually this means the macro was only invoked conditionally." >&2;}
 
24401
   { (exit 1); exit 1; }; }
 
24402
fi
 
24403
 
 
24404
if test -z "${DARWIN_BUILD_TRUE}" && test -z "${DARWIN_BUILD_FALSE}"; then
 
24405
  { { $as_echo "$as_me:$LINENO: error: conditional \"DARWIN_BUILD\" was never defined.
 
24406
Usually this means the macro was only invoked conditionally." >&5
 
24407
$as_echo "$as_me: error: conditional \"DARWIN_BUILD\" was never defined.
 
24408
Usually this means the macro was only invoked conditionally." >&2;}
 
24409
   { (exit 1); exit 1; }; }
 
24410
fi
 
24411
if test -z "${DOC_BUILD_TRUE}" && test -z "${DOC_BUILD_FALSE}"; then
 
24412
  { { $as_echo "$as_me:$LINENO: error: conditional \"DOC_BUILD\" was never defined.
 
24413
Usually this means the macro was only invoked conditionally." >&5
 
24414
$as_echo "$as_me: error: conditional \"DOC_BUILD\" was never defined.
 
24415
Usually this means the macro was only invoked conditionally." >&2;}
 
24416
   { (exit 1); exit 1; }; }
 
24417
fi
 
24418
if test -z "${HPIJS_ONLY_BUILD_TRUE}" && test -z "${HPIJS_ONLY_BUILD_FALSE}"; then
 
24419
  { { $as_echo "$as_me:$LINENO: error: conditional \"HPIJS_ONLY_BUILD\" was never defined.
 
24420
Usually this means the macro was only invoked conditionally." >&5
 
24421
$as_echo "$as_me: error: conditional \"HPIJS_ONLY_BUILD\" was never defined.
 
24422
Usually this means the macro was only invoked conditionally." >&2;}
 
24423
   { (exit 1); exit 1; }; }
 
24424
fi
 
24425
if test -z "${LITE_BUILD_TRUE}" && test -z "${LITE_BUILD_FALSE}"; then
 
24426
  { { $as_echo "$as_me:$LINENO: error: conditional \"LITE_BUILD\" was never defined.
 
24427
Usually this means the macro was only invoked conditionally." >&5
 
24428
$as_echo "$as_me: error: conditional \"LITE_BUILD\" was never defined.
 
24429
Usually this means the macro was only invoked conditionally." >&2;}
 
24430
   { (exit 1); exit 1; }; }
 
24431
fi
 
24432
if test -z "${HPCUPS_ONLY_BUILD_TRUE}" && test -z "${HPCUPS_ONLY_BUILD_FALSE}"; then
 
24433
  { { $as_echo "$as_me:$LINENO: error: conditional \"HPCUPS_ONLY_BUILD\" was never defined.
 
24434
Usually this means the macro was only invoked conditionally." >&5
 
24435
$as_echo "$as_me: error: conditional \"HPCUPS_ONLY_BUILD\" was never defined.
 
24436
Usually this means the macro was only invoked conditionally." >&2;}
 
24437
   { (exit 1); exit 1; }; }
 
24438
fi
 
24439
if test -z "${HPLIP_BUILD_TRUE}" && test -z "${HPLIP_BUILD_FALSE}"; then
 
24440
  { { $as_echo "$as_me:$LINENO: error: conditional \"HPLIP_BUILD\" was never defined.
 
24441
Usually this means the macro was only invoked conditionally." >&5
 
24442
$as_echo "$as_me: error: conditional \"HPLIP_BUILD\" was never defined.
 
24443
Usually this means the macro was only invoked conditionally." >&2;}
 
24444
   { (exit 1); exit 1; }; }
 
24445
fi
 
24446
if test -z "${FULL_BUILD_TRUE}" && test -z "${FULL_BUILD_FALSE}"; then
 
24447
  { { $as_echo "$as_me:$LINENO: error: conditional \"FULL_BUILD\" was never defined.
 
24448
Usually this means the macro was only invoked conditionally." >&5
 
24449
$as_echo "$as_me: error: conditional \"FULL_BUILD\" was never defined.
 
24450
Usually this means the macro was only invoked conditionally." >&2;}
 
24451
   { (exit 1); exit 1; }; }
 
24452
fi
 
24453
if test -z "${HPIJS_INSTALL_TRUE}" && test -z "${HPIJS_INSTALL_FALSE}"; then
 
24454
  { { $as_echo "$as_me:$LINENO: error: conditional \"HPIJS_INSTALL\" was never defined.
 
24455
Usually this means the macro was only invoked conditionally." >&5
 
24456
$as_echo "$as_me: error: conditional \"HPIJS_INSTALL\" was never defined.
 
24457
Usually this means the macro was only invoked conditionally." >&2;}
 
24458
   { (exit 1); exit 1; }; }
 
24459
fi
 
24460
if test -z "${HPCUPS_INSTALL_TRUE}" && test -z "${HPCUPS_INSTALL_FALSE}"; then
 
24461
  { { $as_echo "$as_me:$LINENO: error: conditional \"HPCUPS_INSTALL\" was never defined.
 
24462
Usually this means the macro was only invoked conditionally." >&5
 
24463
$as_echo "$as_me: error: conditional \"HPCUPS_INSTALL\" was never defined.
 
24464
Usually this means the macro was only invoked conditionally." >&2;}
 
24465
   { (exit 1); exit 1; }; }
 
24466
fi
 
24467
if test -z "${NEW_HPCUPS_TRUE}" && test -z "${NEW_HPCUPS_FALSE}"; then
 
24468
  { { $as_echo "$as_me:$LINENO: error: conditional \"NEW_HPCUPS\" was never defined.
 
24469
Usually this means the macro was only invoked conditionally." >&5
 
24470
$as_echo "$as_me: error: conditional \"NEW_HPCUPS\" was never defined.
 
24471
Usually this means the macro was only invoked conditionally." >&2;}
 
24472
   { (exit 1); exit 1; }; }
 
24473
fi
 
24474
if test -z "${NETWORK_BUILD_TRUE}" && test -z "${NETWORK_BUILD_FALSE}"; then
 
24475
  { { $as_echo "$as_me:$LINENO: error: conditional \"NETWORK_BUILD\" was never defined.
 
24476
Usually this means the macro was only invoked conditionally." >&5
 
24477
$as_echo "$as_me: error: conditional \"NETWORK_BUILD\" was never defined.
 
24478
Usually this means the macro was only invoked conditionally." >&2;}
 
24479
   { (exit 1); exit 1; }; }
 
24480
fi
 
24481
if test -z "${SCAN_BUILD_TRUE}" && test -z "${SCAN_BUILD_FALSE}"; then
 
24482
  { { $as_echo "$as_me:$LINENO: error: conditional \"SCAN_BUILD\" was never defined.
 
24483
Usually this means the macro was only invoked conditionally." >&5
 
24484
$as_echo "$as_me: error: conditional \"SCAN_BUILD\" was never defined.
 
24485
Usually this means the macro was only invoked conditionally." >&2;}
 
24486
   { (exit 1); exit 1; }; }
 
24487
fi
 
24488
if test -z "${GUI_BUILD_TRUE}" && test -z "${GUI_BUILD_FALSE}"; then
 
24489
  { { $as_echo "$as_me:$LINENO: error: conditional \"GUI_BUILD\" was never defined.
 
24490
Usually this means the macro was only invoked conditionally." >&5
 
24491
$as_echo "$as_me: error: conditional \"GUI_BUILD\" was never defined.
 
24492
Usually this means the macro was only invoked conditionally." >&2;}
 
24493
   { (exit 1); exit 1; }; }
 
24494
fi
 
24495
if test -z "${FAX_BUILD_TRUE}" && test -z "${FAX_BUILD_FALSE}"; then
 
24496
  { { $as_echo "$as_me:$LINENO: error: conditional \"FAX_BUILD\" was never defined.
 
24497
Usually this means the macro was only invoked conditionally." >&5
 
24498
$as_echo "$as_me: error: conditional \"FAX_BUILD\" was never defined.
 
24499
Usually this means the macro was only invoked conditionally." >&2;}
 
24500
   { (exit 1); exit 1; }; }
 
24501
fi
 
24502
if test -z "${UDEV_ACL_RULES_TRUE}" && test -z "${UDEV_ACL_RULES_FALSE}"; then
 
24503
  { { $as_echo "$as_me:$LINENO: error: conditional \"UDEV_ACL_RULES\" was never defined.
 
24504
Usually this means the macro was only invoked conditionally." >&5
 
24505
$as_echo "$as_me: error: conditional \"UDEV_ACL_RULES\" was never defined.
 
24506
Usually this means the macro was only invoked conditionally." >&2;}
 
24507
   { (exit 1); exit 1; }; }
 
24508
fi
 
24509
if test -z "${SHADOW_BUILD_TRUE}" && test -z "${SHADOW_BUILD_FALSE}"; then
 
24510
  { { $as_echo "$as_me:$LINENO: error: conditional \"SHADOW_BUILD\" was never defined.
 
24511
Usually this means the macro was only invoked conditionally." >&5
 
24512
$as_echo "$as_me: error: conditional \"SHADOW_BUILD\" was never defined.
 
24513
Usually this means the macro was only invoked conditionally." >&2;}
 
24514
   { (exit 1); exit 1; }; }
 
24515
fi
 
24516
if test -z "${FOOMATIC_PPD_INSTALL_TRUE}" && test -z "${FOOMATIC_PPD_INSTALL_FALSE}"; then
 
24517
  { { $as_echo "$as_me:$LINENO: error: conditional \"FOOMATIC_PPD_INSTALL\" was never defined.
 
24518
Usually this means the macro was only invoked conditionally." >&5
 
24519
$as_echo "$as_me: error: conditional \"FOOMATIC_PPD_INSTALL\" was never defined.
 
24520
Usually this means the macro was only invoked conditionally." >&2;}
 
24521
   { (exit 1); exit 1; }; }
 
24522
fi
 
24523
if test -z "${FOOMATIC_DRV_INSTALL_TRUE}" && test -z "${FOOMATIC_DRV_INSTALL_FALSE}"; then
 
24524
  { { $as_echo "$as_me:$LINENO: error: conditional \"FOOMATIC_DRV_INSTALL\" was never defined.
 
24525
Usually this means the macro was only invoked conditionally." >&5
 
24526
$as_echo "$as_me: error: conditional \"FOOMATIC_DRV_INSTALL\" was never defined.
 
24527
Usually this means the macro was only invoked conditionally." >&2;}
 
24528
   { (exit 1); exit 1; }; }
 
24529
fi
 
24530
if test -z "${CUPS_DRV_INSTALL_TRUE}" && test -z "${CUPS_DRV_INSTALL_FALSE}"; then
 
24531
  { { $as_echo "$as_me:$LINENO: error: conditional \"CUPS_DRV_INSTALL\" was never defined.
 
24532
Usually this means the macro was only invoked conditionally." >&5
 
24533
$as_echo "$as_me: error: conditional \"CUPS_DRV_INSTALL\" was never defined.
 
24534
Usually this means the macro was only invoked conditionally." >&2;}
 
24535
   { (exit 1); exit 1; }; }
 
24536
fi
 
24537
if test -z "${CUPS_PPD_INSTALL_TRUE}" && test -z "${CUPS_PPD_INSTALL_FALSE}"; then
 
24538
  { { $as_echo "$as_me:$LINENO: error: conditional \"CUPS_PPD_INSTALL\" was never defined.
 
24539
Usually this means the macro was only invoked conditionally." >&5
 
24540
$as_echo "$as_me: error: conditional \"CUPS_PPD_INSTALL\" was never defined.
 
24541
Usually this means the macro was only invoked conditionally." >&2;}
 
24542
   { (exit 1); exit 1; }; }
 
24543
fi
 
24544
if test -z "${RIP_INSTALL_TRUE}" && test -z "${RIP_INSTALL_FALSE}"; then
 
24545
  { { $as_echo "$as_me:$LINENO: error: conditional \"RIP_INSTALL\" was never defined.
 
24546
Usually this means the macro was only invoked conditionally." >&5
 
24547
$as_echo "$as_me: error: conditional \"RIP_INSTALL\" was never defined.
 
24548
Usually this means the macro was only invoked conditionally." >&2;}
 
24549
   { (exit 1); exit 1; }; }
 
24550
fi
 
24551
if test -z "${QT4_INSTALL_TRUE}" && test -z "${QT4_INSTALL_FALSE}"; then
 
24552
  { { $as_echo "$as_me:$LINENO: error: conditional \"QT4_INSTALL\" was never defined.
 
24553
Usually this means the macro was only invoked conditionally." >&5
 
24554
$as_echo "$as_me: error: conditional \"QT4_INSTALL\" was never defined.
 
24555
Usually this means the macro was only invoked conditionally." >&2;}
 
24556
   { (exit 1); exit 1; }; }
 
24557
fi
 
24558
if test -z "${QT3_INSTALL_TRUE}" && test -z "${QT3_INSTALL_FALSE}"; then
 
24559
  { { $as_echo "$as_me:$LINENO: error: conditional \"QT3_INSTALL\" was never defined.
 
24560
Usually this means the macro was only invoked conditionally." >&5
 
24561
$as_echo "$as_me: error: conditional \"QT3_INSTALL\" was never defined.
 
24562
Usually this means the macro was only invoked conditionally." >&2;}
 
24563
   { (exit 1); exit 1; }; }
 
24564
fi
 
24565
if test -z "${POLICYKIT_INSTALL_TRUE}" && test -z "${POLICYKIT_INSTALL_FALSE}"; then
 
24566
  { { $as_echo "$as_me:$LINENO: error: conditional \"POLICYKIT_INSTALL\" was never defined.
 
24567
Usually this means the macro was only invoked conditionally." >&5
 
24568
$as_echo "$as_me: error: conditional \"POLICYKIT_INSTALL\" was never defined.
 
24569
Usually this means the macro was only invoked conditionally." >&2;}
 
24570
   { (exit 1); exit 1; }; }
 
24571
fi
 
24572
 
 
24573
: ${CONFIG_STATUS=./config.status}
 
24574
ac_write_fail=0
 
24575
ac_clean_files_save=$ac_clean_files
 
24576
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24577
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24578
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24579
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24580
#! $SHELL
 
24581
# Generated by $as_me.
 
24582
# Run this file to recreate the current configuration.
 
24583
# Compiler output produced by configure, useful for debugging
 
24584
# configure, is in config.log if it exists.
 
24585
 
 
24586
debug=false
 
24587
ac_cs_recheck=false
 
24588
ac_cs_silent=false
 
24589
SHELL=\${CONFIG_SHELL-$SHELL}
 
24590
_ACEOF
 
24591
 
 
24592
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24593
## --------------------- ##
 
24594
## M4sh Initialization.  ##
 
24595
## --------------------- ##
 
24596
 
 
24597
# Be more Bourne compatible
 
24598
DUALCASE=1; export DUALCASE # for MKS sh
 
24599
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24600
  emulate sh
 
24601
  NULLCMD=:
 
24602
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
24603
  # is contrary to our usage.  Disable this feature.
 
24604
  alias -g '${1+"$@"}'='"$@"'
 
24605
  setopt NO_GLOB_SUBST
 
24606
else
 
24607
  case `(set -o) 2>/dev/null` in
 
24608
  *posix*) set -o posix ;;
 
24609
esac
 
24610
 
 
24611
fi
 
24612
 
 
24613
 
 
24614
 
 
24615
 
 
24616
# PATH needs CR
 
24617
# Avoid depending upon Character Ranges.
 
24618
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24619
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24620
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24621
as_cr_digits='0123456789'
 
24622
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24623
 
 
24624
as_nl='
 
24625
'
 
24626
export as_nl
 
24627
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
24628
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
24629
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
24630
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
24631
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
24632
  as_echo='printf %s\n'
 
24633
  as_echo_n='printf %s'
 
24634
else
 
24635
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
24636
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
24637
    as_echo_n='/usr/ucb/echo -n'
 
24638
  else
 
24639
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
24640
    as_echo_n_body='eval
 
24641
      arg=$1;
 
24642
      case $arg in
 
24643
      *"$as_nl"*)
 
24644
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
24645
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
24646
      esac;
 
24647
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
24648
    '
 
24649
    export as_echo_n_body
 
24650
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
24651
  fi
 
24652
  export as_echo_body
 
24653
  as_echo='sh -c $as_echo_body as_echo'
 
24654
fi
 
24655
 
 
24656
# The user is always right.
 
24657
if test "${PATH_SEPARATOR+set}" != set; then
 
24658
  PATH_SEPARATOR=:
 
24659
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
24660
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
24661
      PATH_SEPARATOR=';'
 
24662
  }
 
24663
fi
 
24664
 
 
24665
# Support unset when possible.
 
24666
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24667
  as_unset=unset
 
24668
else
 
24669
  as_unset=false
 
24670
fi
 
24671
 
 
24672
 
 
24673
# IFS
 
24674
# We need space, tab and new line, in precisely that order.  Quoting is
 
24675
# there to prevent editors from complaining about space-tab.
 
24676
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24677
# splitting by setting IFS to empty value.)
 
24678
IFS=" ""        $as_nl"
 
24679
 
 
24680
# Find who we are.  Look in the path if we contain no directory separator.
 
24681
case $0 in
 
24682
  *[\\/]* ) as_myself=$0 ;;
 
24683
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24684
for as_dir in $PATH
 
24685
do
 
24686
  IFS=$as_save_IFS
 
24687
  test -z "$as_dir" && as_dir=.
 
24688
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24689
done
 
24690
IFS=$as_save_IFS
 
24691
 
 
24692
     ;;
 
24693
esac
 
24694
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24695
# in which case we are not to be found in the path.
 
24696
if test "x$as_myself" = x; then
 
24697
  as_myself=$0
 
24698
fi
 
24699
if test ! -f "$as_myself"; then
 
24700
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24701
  { (exit 1); exit 1; }
 
24702
fi
 
24703
 
 
24704
# Work around bugs in pre-3.0 UWIN ksh.
 
24705
for as_var in ENV MAIL MAILPATH
 
24706
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24707
done
 
24708
PS1='$ '
 
24709
PS2='> '
 
24710
PS4='+ '
 
24711
 
 
24712
# NLS nuisances.
 
24713
LC_ALL=C
 
24714
export LC_ALL
 
24715
LANGUAGE=C
 
24716
export LANGUAGE
 
24717
 
 
24718
# Required to use basename.
 
24719
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24720
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24721
  as_expr=expr
 
24722
else
 
24723
  as_expr=false
 
24724
fi
 
24725
 
 
24726
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24727
  as_basename=basename
 
24728
else
 
24729
  as_basename=false
 
24730
fi
 
24731
 
 
24732
 
 
24733
# Name of the executable.
 
24734
as_me=`$as_basename -- "$0" ||
 
24735
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24736
         X"$0" : 'X\(//\)$' \| \
 
24737
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24738
$as_echo X/"$0" |
 
24739
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24740
            s//\1/
 
24741
            q
 
24742
          }
 
24743
          /^X\/\(\/\/\)$/{
 
24744
            s//\1/
 
24745
            q
 
24746
          }
 
24747
          /^X\/\(\/\).*/{
 
24748
            s//\1/
 
24749
            q
 
24750
          }
 
24751
          s/.*/./; q'`
 
24752
 
 
24753
# CDPATH.
 
24754
$as_unset CDPATH
 
24755
 
 
24756
 
 
24757
 
 
24758
  as_lineno_1=$LINENO
 
24759
  as_lineno_2=$LINENO
 
24760
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24761
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24762
 
 
24763
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24764
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24765
  # line-number line after each line using $LINENO; the second 'sed'
 
24766
  # does the real work.  The second script uses 'N' to pair each
 
24767
  # line-number line with the line containing $LINENO, and appends
 
24768
  # trailing '-' during substitution so that $LINENO is not a special
 
24769
  # case at line end.
 
24770
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24771
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
24772
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
24773
  sed -n '
 
24774
    p
 
24775
    /[$]LINENO/=
 
24776
  ' <$as_myself |
 
24777
    sed '
 
24778
      s/[$]LINENO.*/&-/
 
24779
      t lineno
 
24780
      b
 
24781
      :lineno
 
24782
      N
 
24783
      :loop
 
24784
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
24785
      t loop
 
24786
      s/-\n.*//
 
24787
    ' >$as_me.lineno &&
 
24788
  chmod +x "$as_me.lineno" ||
 
24789
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
24790
   { (exit 1); exit 1; }; }
 
24791
 
 
24792
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24793
  # (the dirname of $[0] is not the place where we might find the
 
24794
  # original and so on.  Autoconf is especially sensitive to this).
 
24795
  . "./$as_me.lineno"
 
24796
  # Exit status is that of the last command.
 
24797
  exit
 
24798
}
 
24799
 
 
24800
 
 
24801
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
24802
  as_dirname=dirname
 
24803
else
 
24804
  as_dirname=false
 
24805
fi
 
24806
 
 
24807
ECHO_C= ECHO_N= ECHO_T=
 
24808
case `echo -n x` in
 
24809
-n*)
 
24810
  case `echo 'x\c'` in
 
24811
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
24812
  *)   ECHO_C='\c';;
 
24813
  esac;;
 
24814
*)
 
24815
  ECHO_N='-n';;
 
24816
esac
 
24817
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24818
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24819
  as_expr=expr
 
24820
else
 
24821
  as_expr=false
 
24822
fi
 
24823
 
 
24824
rm -f conf$$ conf$$.exe conf$$.file
 
24825
if test -d conf$$.dir; then
 
24826
  rm -f conf$$.dir/conf$$.file
 
24827
else
 
24828
  rm -f conf$$.dir
 
24829
  mkdir conf$$.dir 2>/dev/null
 
24830
fi
 
24831
if (echo >conf$$.file) 2>/dev/null; then
 
24832
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24833
    as_ln_s='ln -s'
 
24834
    # ... but there are two gotchas:
 
24835
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24836
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24837
    # In both cases, we have to default to `cp -p'.
 
24838
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24839
      as_ln_s='cp -p'
 
24840
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
24841
    as_ln_s=ln
 
24842
  else
 
24843
    as_ln_s='cp -p'
 
24844
  fi
 
24845
else
 
24846
  as_ln_s='cp -p'
 
24847
fi
 
24848
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24849
rmdir conf$$.dir 2>/dev/null
 
24850
 
 
24851
if mkdir -p . 2>/dev/null; then
 
24852
  as_mkdir_p=:
 
24853
else
 
24854
  test -d ./-p && rmdir ./-p
 
24855
  as_mkdir_p=false
 
24856
fi
 
24857
 
 
24858
if test -x / >/dev/null 2>&1; then
 
24859
  as_test_x='test -x'
 
24860
else
 
24861
  if ls -dL / >/dev/null 2>&1; then
 
24862
    as_ls_L_option=L
 
24863
  else
 
24864
    as_ls_L_option=
 
24865
  fi
 
24866
  as_test_x='
 
24867
    eval sh -c '\''
 
24868
      if test -d "$1"; then
 
24869
        test -d "$1/.";
 
24870
      else
 
24871
        case $1 in
 
24872
        -*)set "./$1";;
 
24873
        esac;
 
24874
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
24875
        ???[sx]*):;;*)false;;esac;fi
 
24876
    '\'' sh
 
24877
  '
 
24878
fi
 
24879
as_executable_p=$as_test_x
 
24880
 
 
24881
# Sed expression to map a string onto a valid CPP name.
 
24882
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24883
 
 
24884
# Sed expression to map a string onto a valid variable name.
 
24885
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24886
 
 
24887
 
 
24888
exec 6>&1
 
24889
 
 
24890
# Save the log message, to keep $[0] and so on meaningful, and to
 
24891
# report actual input values of CONFIG_FILES etc. instead of their
 
24892
# values after options handling.
 
24893
ac_log="
 
24894
This file was extended by HP Linux Imaging and Printing $as_me 3.12.4, which was
 
24895
generated by GNU Autoconf 2.63.  Invocation command line was
 
24896
 
 
24897
  CONFIG_FILES    = $CONFIG_FILES
 
24898
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24899
  CONFIG_LINKS    = $CONFIG_LINKS
 
24900
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24901
  $ $0 $@
 
24902
 
 
24903
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
24904
"
 
24905
 
 
24906
_ACEOF
 
24907
 
 
24908
case $ac_config_files in *"
 
24909
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
24910
esac
 
24911
 
 
24912
 
 
24913
 
 
24914
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24915
# Files that config.status was made for.
 
24916
config_files="$ac_config_files"
 
24917
config_commands="$ac_config_commands"
 
24918
 
 
24919
_ACEOF
 
24920
 
 
24921
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24922
ac_cs_usage="\
 
24923
\`$as_me' instantiates files from templates according to the
 
24924
current configuration.
 
24925
 
 
24926
Usage: $0 [OPTION]... [FILE]...
 
24927
 
 
24928
  -h, --help       print this help, then exit
 
24929
  -V, --version    print version number and configuration settings, then exit
 
24930
  -q, --quiet, --silent
 
24931
                   do not print progress messages
 
24932
  -d, --debug      don't remove temporary files
 
24933
      --recheck    update $as_me by reconfiguring in the same conditions
 
24934
      --file=FILE[:TEMPLATE]
 
24935
                   instantiate the configuration file FILE
 
24936
 
 
24937
Configuration files:
 
24938
$config_files
 
24939
 
 
24940
Configuration commands:
 
24941
$config_commands
 
24942
 
 
24943
Report bugs to <bug-autoconf@gnu.org>."
 
24944
 
 
24945
_ACEOF
 
24946
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24947
ac_cs_version="\\
 
24948
HP Linux Imaging and Printing config.status 3.12.4
 
24949
configured by $0, generated by GNU Autoconf 2.63,
 
24950
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
24951
 
 
24952
Copyright (C) 2008 Free Software Foundation, Inc.
 
24953
This config.status script is free software; the Free Software Foundation
 
24954
gives unlimited permission to copy, distribute and modify it."
 
24955
 
 
24956
ac_pwd='$ac_pwd'
 
24957
srcdir='$srcdir'
 
24958
INSTALL='$INSTALL'
 
24959
MKDIR_P='$MKDIR_P'
 
24960
AWK='$AWK'
 
24961
test -n "\$AWK" || AWK=awk
 
24962
_ACEOF
 
24963
 
 
24964
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24965
# The default lists apply if the user does not specify any file.
 
24966
ac_need_defaults=:
 
24967
while test $# != 0
 
24968
do
 
24969
  case $1 in
 
24970
  --*=*)
 
24971
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
24972
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
24973
    ac_shift=:
 
24974
    ;;
 
24975
  *)
 
24976
    ac_option=$1
 
24977
    ac_optarg=$2
 
24978
    ac_shift=shift
 
24979
    ;;
 
24980
  esac
 
24981
 
 
24982
  case $ac_option in
 
24983
  # Handling of the options.
 
24984
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24985
    ac_cs_recheck=: ;;
 
24986
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
24987
    $as_echo "$ac_cs_version"; exit ;;
 
24988
  --debug | --debu | --deb | --de | --d | -d )
 
24989
    debug=: ;;
 
24990
  --file | --fil | --fi | --f )
 
24991
    $ac_shift
 
24992
    case $ac_optarg in
 
24993
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
24994
    esac
 
24995
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
24996
    ac_need_defaults=false;;
 
24997
  --he | --h |  --help | --hel | -h )
 
24998
    $as_echo "$ac_cs_usage"; exit ;;
 
24999
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25000
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25001
    ac_cs_silent=: ;;
 
25002
 
 
25003
  # This is an error.
 
25004
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
25005
Try \`$0 --help' for more information." >&2
 
25006
   { (exit 1); exit 1; }; } ;;
 
25007
 
 
25008
  *) ac_config_targets="$ac_config_targets $1"
 
25009
     ac_need_defaults=false ;;
 
25010
 
 
25011
  esac
 
25012
  shift
 
25013
done
 
25014
 
 
25015
ac_configure_extra_args=
 
25016
 
 
25017
if $ac_cs_silent; then
 
25018
  exec 6>/dev/null
 
25019
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25020
fi
 
25021
 
 
25022
_ACEOF
 
25023
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25024
if \$ac_cs_recheck; then
 
25025
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25026
  shift
 
25027
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
25028
  CONFIG_SHELL='$SHELL'
 
25029
  export CONFIG_SHELL
 
25030
  exec "\$@"
 
25031
fi
 
25032
 
 
25033
_ACEOF
 
25034
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25035
exec 5>>config.log
 
25036
{
 
25037
  echo
 
25038
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25039
## Running $as_me. ##
 
25040
_ASBOX
 
25041
  $as_echo "$ac_log"
 
25042
} >&5
 
25043
 
 
25044
_ACEOF
 
25045
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25046
#
 
25047
# INIT-COMMANDS
 
25048
#
 
25049
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25050
 
 
25051
_ACEOF
 
25052
 
 
25053
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25054
 
 
25055
# Handling of arguments.
 
25056
for ac_config_target in $ac_config_targets
 
25057
do
 
25058
  case $ac_config_target in
 
25059
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25060
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25061
    "hplip.conf") CONFIG_FILES="$CONFIG_FILES hplip.conf" ;;
 
25062
    "hplip.desktop") CONFIG_FILES="$CONFIG_FILES hplip.desktop" ;;
 
25063
    "hplip-systray.desktop") CONFIG_FILES="$CONFIG_FILES hplip-systray.desktop" ;;
 
25064
    "prnt/drv/hpijs.drv") CONFIG_FILES="$CONFIG_FILES prnt/drv/hpijs.drv" ;;
 
25065
    "prnt/drv/hpcups.drv") CONFIG_FILES="$CONFIG_FILES prnt/drv/hpcups.drv" ;;
 
25066
    "hplip.list") CONFIG_FILES="$CONFIG_FILES hplip.list" ;;
 
25067
    "data/policykit/com.hp.hplip.service") CONFIG_FILES="$CONFIG_FILES data/policykit/com.hp.hplip.service" ;;
 
25068
 
 
25069
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25070
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25071
   { (exit 1); exit 1; }; };;
 
25072
  esac
 
25073
done
 
25074
 
 
25075
 
 
25076
# If the user did not use the arguments to specify the items to instantiate,
 
25077
# then the envvar interface is used.  Set only those that are not.
 
25078
# We use the long form for the default assignment because of an extremely
 
25079
# bizarre bug on SunOS 4.1.3.
 
25080
if $ac_need_defaults; then
 
25081
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25082
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25083
fi
 
25084
 
 
25085
# Have a temporary directory for convenience.  Make it in the build tree
 
25086
# simply because there is no reason against having it here, and in addition,
 
25087
# creating and moving files from /tmp can sometimes cause problems.
 
25088
# Hook for its removal unless debugging.
 
25089
# Note that there is a small window in which the directory will not be cleaned:
 
25090
# after its creation but before its name has been assigned to `$tmp'.
 
25091
$debug ||
 
25092
{
 
25093
  tmp=
 
25094
  trap 'exit_status=$?
 
25095
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25096
' 0
 
25097
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25098
}
 
25099
# Create a (secure) tmp directory for tmp files.
 
25100
 
 
25101
{
 
25102
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25103
  test -n "$tmp" && test -d "$tmp"
 
25104
}  ||
 
25105
{
 
25106
  tmp=./conf$$-$RANDOM
 
25107
  (umask 077 && mkdir "$tmp")
 
25108
} ||
 
25109
{
 
25110
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
25111
   { (exit 1); exit 1; }
 
25112
}
 
25113
 
 
25114
# Set up the scripts for CONFIG_FILES section.
 
25115
# No need to generate them if there are no CONFIG_FILES.
 
25116
# This happens for instance with `./config.status config.h'.
 
25117
if test -n "$CONFIG_FILES"; then
 
25118
 
 
25119
 
 
25120
ac_cr='
 
 
b"'"
 
25121
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
25122
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
25123
  ac_cs_awk_cr='\\r'
 
25124
else
 
25125
  ac_cs_awk_cr=$ac_cr
 
25126
fi
 
25127
 
 
25128
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
25129
_ACEOF
 
25130
 
 
25131
 
 
25132
{
 
25133
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
25134
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
25135
  echo "_ACEOF"
 
25136
} >conf$$subs.sh ||
 
25137
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25138
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25139
   { (exit 1); exit 1; }; }
 
25140
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
25141
ac_delim='%!_!# '
 
25142
for ac_last_try in false false false false false :; do
 
25143
  . ./conf$$subs.sh ||
 
25144
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25145
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25146
   { (exit 1); exit 1; }; }
 
25147
 
 
25148
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
25149
  if test $ac_delim_n = $ac_delim_num; then
 
25150
    break
 
25151
  elif $ac_last_try; then
 
25152
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25153
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25154
   { (exit 1); exit 1; }; }
 
25155
  else
 
25156
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25157
  fi
 
25158
done
 
25159
rm -f conf$$subs.sh
 
25160
 
 
25161
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25162
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
25163
_ACEOF
 
25164
sed -n '
 
25165
h
 
25166
s/^/S["/; s/!.*/"]=/
 
25167
p
 
25168
g
 
25169
s/^[^!]*!//
 
25170
:repl
 
25171
t repl
 
25172
s/'"$ac_delim"'$//
 
25173
t delim
 
25174
:nl
 
25175
h
 
25176
s/\(.\{148\}\).*/\1/
 
25177
t more1
 
25178
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
25179
p
 
25180
n
 
25181
b repl
 
25182
:more1
 
25183
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
25184
p
 
25185
g
 
25186
s/.\{148\}//
 
25187
t nl
 
25188
:delim
 
25189
h
 
25190
s/\(.\{148\}\).*/\1/
 
25191
t more2
 
25192
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
25193
p
 
25194
b
 
25195
:more2
 
25196
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
25197
p
 
25198
g
 
25199
s/.\{148\}//
 
25200
t delim
 
25201
' <conf$$subs.awk | sed '
 
25202
/^[^""]/{
 
25203
  N
 
25204
  s/\n//
 
25205
}
 
25206
' >>$CONFIG_STATUS || ac_write_fail=1
 
25207
rm -f conf$$subs.awk
 
25208
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25209
_ACAWK
 
25210
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
25211
  for (key in S) S_is_set[key] = 1
 
25212
  FS = ""
 
25213
 
 
25214
}
 
25215
{
 
25216
  line = $ 0
 
25217
  nfields = split(line, field, "@")
 
25218
  substed = 0
 
25219
  len = length(field[1])
 
25220
  for (i = 2; i < nfields; i++) {
 
25221
    key = field[i]
 
25222
    keylen = length(key)
 
25223
    if (S_is_set[key]) {
 
25224
      value = S[key]
 
25225
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
25226
      len += length(value) + length(field[++i])
 
25227
      substed = 1
 
25228
    } else
 
25229
      len += 1 + keylen
 
25230
  }
 
25231
 
 
25232
  print line
 
25233
}
 
25234
 
 
25235
_ACAWK
 
25236
_ACEOF
 
25237
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25238
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
25239
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
25240
else
 
25241
  cat
 
25242
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
25243
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
25244
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
25245
   { (exit 1); exit 1; }; }
 
25246
_ACEOF
 
25247
 
 
25248
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25249
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25250
# trailing colons and then remove the whole line if VPATH becomes empty
 
25251
# (actually we leave an empty line to preserve line numbers).
 
25252
if test "x$srcdir" = x.; then
 
25253
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25254
s/:*\$(srcdir):*/:/
 
25255
s/:*\${srcdir}:*/:/
 
25256
s/:*@srcdir@:*/:/
 
25257
s/^\([^=]*=[     ]*\):*/\1/
 
25258
s/:*$//
 
25259
s/^[^=]*=[       ]*$//
 
25260
}'
 
25261
fi
 
25262
 
 
25263
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25264
fi # test -n "$CONFIG_FILES"
 
25265
 
 
25266
 
 
25267
eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
 
25268
shift
 
25269
for ac_tag
 
25270
do
 
25271
  case $ac_tag in
 
25272
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25273
  esac
 
25274
  case $ac_mode$ac_tag in
 
25275
  :[FHL]*:*);;
 
25276
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
25277
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
25278
   { (exit 1); exit 1; }; };;
 
25279
  :[FH]-) ac_tag=-:-;;
 
25280
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25281
  esac
 
25282
  ac_save_IFS=$IFS
 
25283
  IFS=:
 
25284
  set x $ac_tag
 
25285
  IFS=$ac_save_IFS
 
25286
  shift
 
25287
  ac_file=$1
 
25288
  shift
 
25289
 
 
25290
  case $ac_mode in
 
25291
  :L) ac_source=$1;;
 
25292
  :[FH])
 
25293
    ac_file_inputs=
 
25294
    for ac_f
 
25295
    do
 
25296
      case $ac_f in
 
25297
      -) ac_f="$tmp/stdin";;
 
25298
      *) # Look for the file first in the build tree, then in the source tree
 
25299
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25300
         # because $ac_f cannot contain `:'.
 
25301
         test -f "$ac_f" ||
 
25302
           case $ac_f in
 
25303
           [\\/$]*) false;;
 
25304
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25305
           esac ||
 
25306
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25307
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25308
   { (exit 1); exit 1; }; };;
 
25309
      esac
 
25310
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
25311
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
25312
    done
 
25313
 
 
25314
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25315
    # use $as_me), people would be surprised to read:
 
25316
    #    /* config.h.  Generated by config.status.  */
 
25317
    configure_input='Generated from '`
 
25318
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
25319
        `' by configure.'
 
25320
    if test x"$ac_file" != x-; then
 
25321
      configure_input="$ac_file.  $configure_input"
 
25322
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
25323
$as_echo "$as_me: creating $ac_file" >&6;}
 
25324
    fi
 
25325
    # Neutralize special characters interpreted by sed in replacement strings.
 
25326
    case $configure_input in #(
 
25327
    *\&* | *\|* | *\\* )
 
25328
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
25329
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
25330
    *) ac_sed_conf_input=$configure_input;;
 
25331
    esac
 
25332
 
 
25333
    case $ac_tag in
 
25334
    *:-:* | *:-) cat >"$tmp/stdin" \
 
25335
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25336
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25337
   { (exit 1); exit 1; }; } ;;
 
25338
    esac
 
25339
    ;;
 
25340
  esac
 
25341
 
 
25342
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25343
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25344
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25345
         X"$ac_file" : 'X\(//\)$' \| \
 
25346
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25347
$as_echo X"$ac_file" |
 
25348
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25349
            s//\1/
 
25350
            q
 
25351
          }
 
25352
          /^X\(\/\/\)[^/].*/{
 
25353
            s//\1/
 
25354
            q
 
25355
          }
 
25356
          /^X\(\/\/\)$/{
 
25357
            s//\1/
 
25358
            q
 
25359
          }
 
25360
          /^X\(\/\).*/{
 
25361
            s//\1/
 
25362
            q
 
25363
          }
 
25364
          s/.*/./; q'`
 
25365
  { as_dir="$ac_dir"
 
25366
  case $as_dir in #(
 
25367
  -*) as_dir=./$as_dir;;
 
25368
  esac
 
25369
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25370
    as_dirs=
 
25371
    while :; do
 
25372
      case $as_dir in #(
 
25373
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
25374
      *) as_qdir=$as_dir;;
 
25375
      esac
 
25376
      as_dirs="'$as_qdir' $as_dirs"
 
25377
      as_dir=`$as_dirname -- "$as_dir" ||
 
25378
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25379
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25380
         X"$as_dir" : 'X\(//\)$' \| \
 
25381
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25382
$as_echo X"$as_dir" |
 
25383
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25384
            s//\1/
 
25385
            q
 
25386
          }
 
25387
          /^X\(\/\/\)[^/].*/{
 
25388
            s//\1/
 
25389
            q
 
25390
          }
 
25391
          /^X\(\/\/\)$/{
 
25392
            s//\1/
 
25393
            q
 
25394
          }
 
25395
          /^X\(\/\).*/{
 
25396
            s//\1/
 
25397
            q
 
25398
          }
 
25399
          s/.*/./; q'`
 
25400
      test -d "$as_dir" && break
 
25401
    done
 
25402
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25403
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25404
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25405
   { (exit 1); exit 1; }; }; }
 
25406
  ac_builddir=.
 
25407
 
 
25408
case "$ac_dir" in
 
25409
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25410
*)
 
25411
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
25412
  # A ".." for each directory in $ac_dir_suffix.
 
25413
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
25414
  case $ac_top_builddir_sub in
 
25415
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25416
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25417
  esac ;;
 
25418
esac
 
25419
ac_abs_top_builddir=$ac_pwd
 
25420
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25421
# for backward compatibility:
 
25422
ac_top_builddir=$ac_top_build_prefix
 
25423
 
 
25424
case $srcdir in
 
25425
  .)  # We are building in place.
 
25426
    ac_srcdir=.
 
25427
    ac_top_srcdir=$ac_top_builddir_sub
 
25428
    ac_abs_top_srcdir=$ac_pwd ;;
 
25429
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25430
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25431
    ac_top_srcdir=$srcdir
 
25432
    ac_abs_top_srcdir=$srcdir ;;
 
25433
  *) # Relative name.
 
25434
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25435
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25436
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25437
esac
 
25438
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25439
 
 
25440
 
 
25441
  case $ac_mode in
 
25442
  :F)
 
25443
  #
 
25444
  # CONFIG_FILE
 
25445
  #
 
25446
 
 
25447
  case $INSTALL in
 
25448
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25449
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25450
  esac
 
25451
  ac_MKDIR_P=$MKDIR_P
 
25452
  case $MKDIR_P in
 
25453
  [\\/$]* | ?:[\\/]* ) ;;
 
25454
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
25455
  esac
 
25456
_ACEOF
 
25457
 
 
25458
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25459
# If the template does not know about datarootdir, expand it.
 
25460
# FIXME: This hack should be removed a few years after 2.60.
 
25461
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25462
 
 
25463
ac_sed_dataroot='
 
25464
/datarootdir/ {
 
25465
  p
 
25466
  q
 
25467
}
 
25468
/@datadir@/p
 
25469
/@docdir@/p
 
25470
/@infodir@/p
 
25471
/@localedir@/p
 
25472
/@mandir@/p
 
25473
'
 
25474
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
25475
*datarootdir*) ac_datarootdir_seen=yes;;
 
25476
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25477
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25478
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25479
_ACEOF
 
25480
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25481
  ac_datarootdir_hack='
 
25482
  s&@datadir@&$datadir&g
 
25483
  s&@docdir@&$docdir&g
 
25484
  s&@infodir@&$infodir&g
 
25485
  s&@localedir@&$localedir&g
 
25486
  s&@mandir@&$mandir&g
 
25487
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25488
esac
 
25489
_ACEOF
 
25490
 
 
25491
# Neutralize VPATH when `$srcdir' = `.'.
 
25492
# Shell code in configure.ac might set extrasub.
 
25493
# FIXME: do we really want to maintain this feature?
 
25494
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25495
ac_sed_extra="$ac_vpsub
 
25496
$extrasub
 
25497
_ACEOF
 
25498
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25499
:t
 
25500
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25501
s|@configure_input@|$ac_sed_conf_input|;t t
 
25502
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25503
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
25504
s&@srcdir@&$ac_srcdir&;t t
 
25505
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25506
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25507
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25508
s&@builddir@&$ac_builddir&;t t
 
25509
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25510
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25511
s&@INSTALL@&$ac_INSTALL&;t t
 
25512
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
25513
$ac_datarootdir_hack
 
25514
"
 
25515
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
25516
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25517
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25518
   { (exit 1); exit 1; }; }
 
25519
 
 
25520
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25521
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25522
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25523
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25524
which seems to be undefined.  Please make sure it is defined." >&5
 
25525
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25526
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25527
 
 
25528
  rm -f "$tmp/stdin"
 
25529
  case $ac_file in
 
25530
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
25531
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
25532
  esac \
 
25533
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25534
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25535
   { (exit 1); exit 1; }; }
 
25536
 ;;
 
25537
 
 
25538
 
 
25539
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
25540
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
25541
 ;;
 
25542
  esac
 
25543
 
 
25544
 
 
25545
  case $ac_file$ac_mode in
 
25546
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
 
25547
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
 
25548
  # are listed without --file.  Let's play safe and only enable the eval
 
25549
  # if we detect the quoting.
 
25550
  case $CONFIG_FILES in
 
25551
  *\'*) eval set x "$CONFIG_FILES" ;;
 
25552
  *)   set x $CONFIG_FILES ;;
 
25553
  esac
 
25554
  shift
 
25555
  for mf
 
25556
  do
 
25557
    # Strip MF so we end up with the name of the file.
 
25558
    mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25559
    # Check whether this is an Automake generated Makefile or not.
 
25560
    # We used to match only the files named `Makefile.in', but
 
25561
    # some people rename them; so instead we look at the file content.
 
25562
    # Grep'ing the first line is not enough: some people post-process
 
25563
    # each Makefile.in and add a new line on top of each file to say so.
 
25564
    # Grep'ing the whole file is not good either: AIX grep has a line
 
25565
    # limit of 2048, but all sed's we know have understand at least 4000.
 
25566
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
25567
      dirpart=`$as_dirname -- "$mf" ||
 
25568
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25569
         X"$mf" : 'X\(//\)[^/]' \| \
 
25570
         X"$mf" : 'X\(//\)$' \| \
 
25571
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
25572
$as_echo X"$mf" |
 
25573
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25574
            s//\1/
 
25575
            q
 
25576
          }
 
25577
          /^X\(\/\/\)[^/].*/{
 
25578
            s//\1/
 
25579
            q
 
25580
          }
 
25581
          /^X\(\/\/\)$/{
 
25582
            s//\1/
 
25583
            q
 
25584
          }
 
25585
          /^X\(\/\).*/{
 
25586
            s//\1/
 
25587
            q
 
25588
          }
 
25589
          s/.*/./; q'`
 
25590
    else
 
25591
      continue
 
25592
    fi
 
25593
    # Extract the definition of DEPDIR, am__include, and am__quote
 
25594
    # from the Makefile without running `make'.
 
25595
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25596
    test -z "$DEPDIR" && continue
 
25597
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
25598
    test -z "am__include" && continue
 
25599
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
25600
    # When using ansi2knr, U may be empty or an underscore; expand it
 
25601
    U=`sed -n 's/^U = //p' < "$mf"`
 
25602
    # Find all dependency output files, they are included files with
 
25603
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
25604
    # simplest approach to changing $(DEPDIR) to its actual value in the
 
25605
    # expansion.
 
25606
    for file in `sed -n "
 
25607
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
25608
         sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25609
      # Make sure the directory exists.
 
25610
      test -f "$dirpart/$file" && continue
 
25611
      fdir=`$as_dirname -- "$file" ||
 
25612
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25613
         X"$file" : 'X\(//\)[^/]' \| \
 
25614
         X"$file" : 'X\(//\)$' \| \
 
25615
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
25616
$as_echo X"$file" |
 
25617
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25618
            s//\1/
 
25619
            q
 
25620
          }
 
25621
          /^X\(\/\/\)[^/].*/{
 
25622
            s//\1/
 
25623
            q
 
25624
          }
 
25625
          /^X\(\/\/\)$/{
 
25626
            s//\1/
 
25627
            q
 
25628
          }
 
25629
          /^X\(\/\).*/{
 
25630
            s//\1/
 
25631
            q
 
25632
          }
 
25633
          s/.*/./; q'`
 
25634
      { as_dir=$dirpart/$fdir
 
25635
  case $as_dir in #(
 
25636
  -*) as_dir=./$as_dir;;
 
25637
  esac
 
25638
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25639
    as_dirs=
 
25640
    while :; do
 
25641
      case $as_dir in #(
 
25642
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
25643
      *) as_qdir=$as_dir;;
 
25644
      esac
 
25645
      as_dirs="'$as_qdir' $as_dirs"
 
25646
      as_dir=`$as_dirname -- "$as_dir" ||
 
25647
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25648
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25649
         X"$as_dir" : 'X\(//\)$' \| \
 
25650
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25651
$as_echo X"$as_dir" |
 
25652
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25653
            s//\1/
 
25654
            q
 
25655
          }
 
25656
          /^X\(\/\/\)[^/].*/{
 
25657
            s//\1/
 
25658
            q
 
25659
          }
 
25660
          /^X\(\/\/\)$/{
 
25661
            s//\1/
 
25662
            q
 
25663
          }
 
25664
          /^X\(\/\).*/{
 
25665
            s//\1/
 
25666
            q
 
25667
          }
 
25668
          s/.*/./; q'`
 
25669
      test -d "$as_dir" && break
 
25670
    done
 
25671
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25672
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25673
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25674
   { (exit 1); exit 1; }; }; }
 
25675
      # echo "creating $dirpart/$file"
 
25676
      echo '# dummy' > "$dirpart/$file"
 
25677
    done
 
25678
  done
 
25679
}
 
25680
 ;;
 
25681
 
 
25682
  esac
 
25683
done # for ac_tag
 
25684
 
 
25685
 
 
25686
{ (exit 0); exit 0; }
 
25687
_ACEOF
 
25688
chmod +x $CONFIG_STATUS
 
25689
ac_clean_files=$ac_clean_files_save
 
25690
 
 
25691
test $ac_write_fail = 0 ||
 
25692
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
25693
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
25694
   { (exit 1); exit 1; }; }
 
25695
 
 
25696
 
 
25697
# configure is writing to config.log, and then calls config.status.
 
25698
# config.status does its own redirection, appending to config.log.
 
25699
# Unfortunately, on DOS this fails, as config.log is still kept open
 
25700
# by configure, so config.status won't be able to write to it; its
 
25701
# output is simply discarded.  So we exec the FD to /dev/null,
 
25702
# effectively closing config.log, so it can be properly (re)opened and
 
25703
# appended to by config.status.  When coming back to configure, we
 
25704
# need to make the FD available again.
 
25705
if test "$no_create" != yes; then
 
25706
  ac_cs_success=:
 
25707
  ac_config_status_args=
 
25708
  test "$silent" = yes &&
 
25709
    ac_config_status_args="$ac_config_status_args --quiet"
 
25710
  exec 5>/dev/null
 
25711
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
25712
  exec 5>>config.log
 
25713
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
25714
  # would make configure fail if this is the last instruction.
 
25715
  $ac_cs_success || { (exit 1); exit 1; }
 
25716
fi
 
25717
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
25718
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
25719
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
25720
fi
 
25721