~cldunlap1/ubuntu/quantal/buffy/typo-fix

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Enrico Zini
  • Date: 2004-10-31 14:50:26 UTC
  • Revision ID: james.westby@ubuntu.com-20041031145026-9z3xr78y8j3o5uis
Tags: upstream-0.5
ImportĀ upstreamĀ versionĀ 0.5

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.59 for buffy 0.5.
 
4
#
 
5
# Report bugs to <enrico@debian.org>.
 
6
#
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
 
8
# This configure script is free software; the Free Software Foundation
 
9
# gives unlimited permission to copy, distribute and modify it.
 
10
## --------------------- ##
 
11
## M4sh Initialization.  ##
 
12
## --------------------- ##
 
13
 
 
14
# Be Bourne compatible
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
 
23
fi
 
24
DUALCASE=1; export DUALCASE # for MKS sh
 
25
 
 
26
# Support unset when possible.
 
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
28
  as_unset=unset
 
29
else
 
30
  as_unset=false
 
31
fi
 
32
 
 
33
 
 
34
# Work around bugs in pre-3.0 UWIN ksh.
 
35
$as_unset ENV MAIL MAILPATH
 
36
PS1='$ '
 
37
PS2='> '
 
38
PS4='+ '
 
39
 
 
40
# NLS nuisances.
 
41
for as_var in \
 
42
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
43
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
44
  LC_TELEPHONE LC_TIME
 
45
do
 
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
47
    eval $as_var=C; export $as_var
 
48
  else
 
49
    $as_unset $as_var
 
50
  fi
 
51
done
 
52
 
 
53
# Required to use basename.
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
 
55
  as_expr=expr
 
56
else
 
57
  as_expr=false
 
58
fi
 
59
 
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
61
  as_basename=basename
 
62
else
 
63
  as_basename=false
 
64
fi
 
65
 
 
66
 
 
67
# Name of the executable.
 
68
as_me=`$as_basename "$0" ||
 
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
70
         X"$0" : 'X\(//\)$' \| \
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
 
73
echo X/"$0" |
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
 
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
134
do
 
135
  IFS=$as_save_IFS
 
136
  test -z "$as_dir" && as_dir=.
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
 
139
         /*)
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
 
154
done
 
155
;;
 
156
  esac
 
157
 
 
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
 
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
 
167
    sed '
 
168
      N
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
172
      t loop
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
 
175
    ' >$as_me.lineno &&
 
176
  chmod +x $as_me.lineno ||
 
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
178
   { (exit 1); exit 1; }; }
 
179
 
 
180
  # Don't try to exec as it changes $[0], causing all sort of problems
 
181
  # (the dirname of $[0] is not the place where we might find the
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
 
184
  # Exit status is that of the last command.
 
185
  exit
 
186
}
 
187
 
 
188
 
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
194
esac
 
195
 
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
 
197
  as_expr=expr
 
198
else
 
199
  as_expr=false
 
200
fi
 
201
 
 
202
rm -f conf$$ conf$$.exe conf$$.file
 
203
echo >conf$$.file
 
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
 
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
 
213
elif ln conf$$.file conf$$ 2>/dev/null; then
 
214
  as_ln_s=ln
 
215
else
 
216
  as_ln_s='cp -p'
 
217
fi
 
218
rm -f conf$$ conf$$.exe conf$$.file
 
219
 
 
220
if mkdir -p . 2>/dev/null; then
 
221
  as_mkdir_p=:
 
222
else
 
223
  test -d ./-p && rmdir ./-p
 
224
  as_mkdir_p=false
 
225
fi
 
226
 
 
227
as_executable_p="test -f"
 
228
 
 
229
# Sed expression to map a string onto a valid CPP name.
 
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
231
 
 
232
# Sed expression to map a string onto a valid variable name.
 
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
234
 
 
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
 
245
 
 
246
 
 
247
# Check that we are running under the correct shell.
 
248
SHELL=${CONFIG_SHELL-/bin/sh}
 
249
 
 
250
case X$ECHO in
 
251
X*--fallback-echo)
 
252
  # Remove one level of quotation (which was required for Make).
 
253
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
254
  ;;
 
255
esac
 
256
 
 
257
echo=${ECHO-echo}
 
258
if test "X$1" = X--no-reexec; then
 
259
  # Discard the --no-reexec flag, and continue.
 
260
  shift
 
261
elif test "X$1" = X--fallback-echo; then
 
262
  # Avoid inline document here, it may be left over
 
263
  :
 
264
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
265
  # Yippee, $echo works!
 
266
  :
 
267
else
 
268
  # Restart under the correct shell.
 
269
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
270
fi
 
271
 
 
272
if test "X$1" = X--fallback-echo; then
 
273
  # used as fallback echo
 
274
  shift
 
275
  cat <<EOF
 
276
$*
 
277
EOF
 
278
  exit 0
 
279
fi
 
280
 
 
281
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
282
# if CDPATH is set.
 
283
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
284
 
 
285
if test -z "$ECHO"; then
 
286
if test "X${echo_test_string+set}" != Xset; then
 
287
# find a string as large as possible, as long as the shell can cope with it
 
288
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
289
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
290
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
291
       echo_test_string="`eval $cmd`" &&
 
292
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
293
    then
 
294
      break
 
295
    fi
 
296
  done
 
297
fi
 
298
 
 
299
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
300
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
301
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
302
  :
 
303
else
 
304
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
305
  # backslashes.  This makes it impossible to quote backslashes using
 
306
  #   echo "$something" | sed 's/\\/\\\\/g'
 
307
  #
 
308
  # So, first we look for a working echo in the user's PATH.
 
309
 
 
310
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
311
  for dir in $PATH /usr/ucb; do
 
312
    IFS="$lt_save_ifs"
 
313
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
314
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
315
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
316
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
317
      echo="$dir/echo"
 
318
      break
 
319
    fi
 
320
  done
 
321
  IFS="$lt_save_ifs"
 
322
 
 
323
  if test "X$echo" = Xecho; then
 
324
    # We didn't find a better echo, so look for alternatives.
 
325
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
326
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
327
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
328
      # This shell has a builtin print -r that does the trick.
 
329
      echo='print -r'
 
330
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
331
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
332
      # If we have ksh, try running configure again with it.
 
333
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
334
      export ORIGINAL_CONFIG_SHELL
 
335
      CONFIG_SHELL=/bin/ksh
 
336
      export CONFIG_SHELL
 
337
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
338
    else
 
339
      # Try using printf.
 
340
      echo='printf %s\n'
 
341
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
342
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
343
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
344
        # Cool, printf works
 
345
        :
 
346
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = 'X\t' &&
 
348
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
349
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
350
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
351
        export CONFIG_SHELL
 
352
        SHELL="$CONFIG_SHELL"
 
353
        export SHELL
 
354
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
355
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = 'X\t' &&
 
357
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
358
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
359
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
360
      else
 
361
        # maybe with a smaller string...
 
362
        prev=:
 
363
 
 
364
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
365
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
366
          then
 
367
            break
 
368
          fi
 
369
          prev="$cmd"
 
370
        done
 
371
 
 
372
        if test "$prev" != 'sed 50q "$0"'; then
 
373
          echo_test_string=`eval $prev`
 
374
          export echo_test_string
 
375
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
376
        else
 
377
          # Oops.  We lost completely, so just stick with echo.
 
378
          echo=echo
 
379
        fi
 
380
      fi
 
381
    fi
 
382
  fi
 
383
fi
 
384
fi
 
385
 
 
386
# Copy echo and quote the copy suitably for passing to libtool from
 
387
# the Makefile, instead of quoting the original, which is used later.
 
388
ECHO=$echo
 
389
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
390
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
391
fi
 
392
 
 
393
 
 
394
 
 
395
 
 
396
tagnames=${tagnames+${tagnames},}CXX
 
397
 
 
398
tagnames=${tagnames+${tagnames},}F77
 
399
 
 
400
# Name of the host.
 
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
402
# so uname gets run too.
 
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
404
 
 
405
exec 6>&1
 
406
 
 
407
#
 
408
# Initializations.
 
409
#
 
410
ac_default_prefix=/usr/local
 
411
ac_config_libobj_dir=.
 
412
cross_compiling=no
 
413
subdirs=
 
414
MFLAGS=
 
415
MAKEFLAGS=
 
416
SHELL=${CONFIG_SHELL-/bin/sh}
 
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
 
423
# Identity of this package.
 
424
PACKAGE_NAME='buffy'
 
425
PACKAGE_TARNAME='buffy'
 
426
PACKAGE_VERSION='0.5'
 
427
PACKAGE_STRING='buffy 0.5'
 
428
PACKAGE_BUGREPORT='enrico@debian.org'
 
429
 
 
430
ac_unique_file="configure.ac"
 
431
# Factoring default headers for most tests.
 
432
ac_includes_default="\
 
433
#include <stdio.h>
 
434
#if HAVE_SYS_TYPES_H
 
435
# include <sys/types.h>
 
436
#endif
 
437
#if HAVE_SYS_STAT_H
 
438
# include <sys/stat.h>
 
439
#endif
 
440
#if STDC_HEADERS
 
441
# include <stdlib.h>
 
442
# include <stddef.h>
 
443
#else
 
444
# if HAVE_STDLIB_H
 
445
#  include <stdlib.h>
 
446
# endif
 
447
#endif
 
448
#if HAVE_STRING_H
 
449
# if !STDC_HEADERS && HAVE_MEMORY_H
 
450
#  include <memory.h>
 
451
# endif
 
452
# include <string.h>
 
453
#endif
 
454
#if HAVE_STRINGS_H
 
455
# include <strings.h>
 
456
#endif
 
457
#if HAVE_INTTYPES_H
 
458
# include <inttypes.h>
 
459
#else
 
460
# if HAVE_STDINT_H
 
461
#  include <stdint.h>
 
462
# endif
 
463
#endif
 
464
#if HAVE_UNISTD_H
 
465
# include <unistd.h>
 
466
#endif"
 
467
 
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG GTKMM_CFLAGS GTKMM_LIBS XMLPP_CFLAGS XMLPP_LIBS LIBOBJS LTLIBOBJS'
 
469
ac_subst_files=''
 
470
 
 
471
# Initialize some variables set by options.
 
472
ac_init_help=
 
473
ac_init_version=false
 
474
# The variables have the same names as the options, with
 
475
# dashes changed to underlines.
 
476
cache_file=/dev/null
 
477
exec_prefix=NONE
 
478
no_create=
 
479
no_recursion=
 
480
prefix=NONE
 
481
program_prefix=NONE
 
482
program_suffix=NONE
 
483
program_transform_name=s,x,x,
 
484
silent=
 
485
site=
 
486
srcdir=
 
487
verbose=
 
488
x_includes=NONE
 
489
x_libraries=NONE
 
490
 
 
491
# Installation directory options.
 
492
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
493
# and all the variables that are supposed to be based on exec_prefix
 
494
# by default will actually change.
 
495
# Use braces instead of parens because sh, perl, etc. also accept them.
 
496
bindir='${exec_prefix}/bin'
 
497
sbindir='${exec_prefix}/sbin'
 
498
libexecdir='${exec_prefix}/libexec'
 
499
datadir='${prefix}/share'
 
500
sysconfdir='${prefix}/etc'
 
501
sharedstatedir='${prefix}/com'
 
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
 
504
includedir='${prefix}/include'
 
505
oldincludedir='/usr/include'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
 
508
 
 
509
ac_prev=
 
510
for ac_option
 
511
do
 
512
  # If the previous option needs an argument, assign it.
 
513
  if test -n "$ac_prev"; then
 
514
    eval "$ac_prev=\$ac_option"
 
515
    ac_prev=
 
516
    continue
 
517
  fi
 
518
 
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
520
 
 
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
522
 
 
523
  case $ac_option in
 
524
 
 
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
526
    ac_prev=bindir ;;
 
527
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
528
    bindir=$ac_optarg ;;
 
529
 
 
530
  -build | --build | --buil | --bui | --bu)
 
531
    ac_prev=build_alias ;;
 
532
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
533
    build_alias=$ac_optarg ;;
 
534
 
 
535
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
536
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
537
    ac_prev=cache_file ;;
 
538
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
539
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
540
    cache_file=$ac_optarg ;;
 
541
 
 
542
  --config-cache | -C)
 
543
    cache_file=config.cache ;;
 
544
 
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
546
    ac_prev=datadir ;;
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
 
549
    datadir=$ac_optarg ;;
 
550
 
 
551
  -disable-* | --disable-*)
 
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
553
    # Reject names that are not valid shell variable names.
 
554
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
556
   { (exit 1); exit 1; }; }
 
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
558
    eval "enable_$ac_feature=no" ;;
 
559
 
 
560
  -enable-* | --enable-*)
 
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
562
    # Reject names that are not valid shell variable names.
 
563
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
565
   { (exit 1); exit 1; }; }
 
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
572
 
 
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
575
  | --exec | --exe | --ex)
 
576
    ac_prev=exec_prefix ;;
 
577
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
578
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
579
  | --exec=* | --exe=* | --ex=*)
 
580
    exec_prefix=$ac_optarg ;;
 
581
 
 
582
  -gas | --gas | --ga | --g)
 
583
    # Obsolete; use --with-gas.
 
584
    with_gas=yes ;;
 
585
 
 
586
  -help | --help | --hel | --he | -h)
 
587
    ac_init_help=long ;;
 
588
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
589
    ac_init_help=recursive ;;
 
590
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
591
    ac_init_help=short ;;
 
592
 
 
593
  -host | --host | --hos | --ho)
 
594
    ac_prev=host_alias ;;
 
595
  -host=* | --host=* | --hos=* | --ho=*)
 
596
    host_alias=$ac_optarg ;;
 
597
 
 
598
  -includedir | --includedir | --includedi | --included | --include \
 
599
  | --includ | --inclu | --incl | --inc)
 
600
    ac_prev=includedir ;;
 
601
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
602
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
603
    includedir=$ac_optarg ;;
 
604
 
 
605
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
606
    ac_prev=infodir ;;
 
607
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
608
    infodir=$ac_optarg ;;
 
609
 
 
610
  -libdir | --libdir | --libdi | --libd)
 
611
    ac_prev=libdir ;;
 
612
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
613
    libdir=$ac_optarg ;;
 
614
 
 
615
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
616
  | --libexe | --libex | --libe)
 
617
    ac_prev=libexecdir ;;
 
618
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
619
  | --libexe=* | --libex=* | --libe=*)
 
620
    libexecdir=$ac_optarg ;;
 
621
 
 
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
 
625
    ac_prev=localstatedir ;;
 
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
629
    localstatedir=$ac_optarg ;;
 
630
 
 
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
632
    ac_prev=mandir ;;
 
633
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
634
    mandir=$ac_optarg ;;
 
635
 
 
636
  -nfp | --nfp | --nf)
 
637
    # Obsolete; use --without-fp.
 
638
    with_fp=no ;;
 
639
 
 
640
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
641
  | --no-cr | --no-c | -n)
 
642
    no_create=yes ;;
 
643
 
 
644
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
645
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
646
    no_recursion=yes ;;
 
647
 
 
648
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
649
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
650
  | --oldin | --oldi | --old | --ol | --o)
 
651
    ac_prev=oldincludedir ;;
 
652
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
653
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
654
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
655
    oldincludedir=$ac_optarg ;;
 
656
 
 
657
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
658
    ac_prev=prefix ;;
 
659
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
660
    prefix=$ac_optarg ;;
 
661
 
 
662
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
663
  | --program-pre | --program-pr | --program-p)
 
664
    ac_prev=program_prefix ;;
 
665
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
666
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
667
    program_prefix=$ac_optarg ;;
 
668
 
 
669
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
670
  | --program-suf | --program-su | --program-s)
 
671
    ac_prev=program_suffix ;;
 
672
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
673
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
674
    program_suffix=$ac_optarg ;;
 
675
 
 
676
  -program-transform-name | --program-transform-name \
 
677
  | --program-transform-nam | --program-transform-na \
 
678
  | --program-transform-n | --program-transform- \
 
679
  | --program-transform | --program-transfor \
 
680
  | --program-transfo | --program-transf \
 
681
  | --program-trans | --program-tran \
 
682
  | --progr-tra | --program-tr | --program-t)
 
683
    ac_prev=program_transform_name ;;
 
684
  -program-transform-name=* | --program-transform-name=* \
 
685
  | --program-transform-nam=* | --program-transform-na=* \
 
686
  | --program-transform-n=* | --program-transform-=* \
 
687
  | --program-transform=* | --program-transfor=* \
 
688
  | --program-transfo=* | --program-transf=* \
 
689
  | --program-trans=* | --program-tran=* \
 
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
691
    program_transform_name=$ac_optarg ;;
 
692
 
 
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
694
  | -silent | --silent | --silen | --sile | --sil)
 
695
    silent=yes ;;
 
696
 
 
697
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
698
    ac_prev=sbindir ;;
 
699
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
700
  | --sbi=* | --sb=*)
 
701
    sbindir=$ac_optarg ;;
 
702
 
 
703
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
704
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
705
  | --sharedst | --shareds | --shared | --share | --shar \
 
706
  | --sha | --sh)
 
707
    ac_prev=sharedstatedir ;;
 
708
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
709
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
710
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
711
  | --sha=* | --sh=*)
 
712
    sharedstatedir=$ac_optarg ;;
 
713
 
 
714
  -site | --site | --sit)
 
715
    ac_prev=site ;;
 
716
  -site=* | --site=* | --sit=*)
 
717
    site=$ac_optarg ;;
 
718
 
 
719
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
720
    ac_prev=srcdir ;;
 
721
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
722
    srcdir=$ac_optarg ;;
 
723
 
 
724
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
725
  | --syscon | --sysco | --sysc | --sys | --sy)
 
726
    ac_prev=sysconfdir ;;
 
727
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
728
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
729
    sysconfdir=$ac_optarg ;;
 
730
 
 
731
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
732
    ac_prev=target_alias ;;
 
733
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
734
    target_alias=$ac_optarg ;;
 
735
 
 
736
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
737
    verbose=yes ;;
 
738
 
 
739
  -version | --version | --versio | --versi | --vers | -V)
 
740
    ac_init_version=: ;;
 
741
 
 
742
  -with-* | --with-*)
 
743
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
744
    # Reject names that are not valid shell variable names.
 
745
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
747
   { (exit 1); exit 1; }; }
 
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
 
754
 
 
755
  -without-* | --without-*)
 
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
757
    # Reject names that are not valid shell variable names.
 
758
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
760
   { (exit 1); exit 1; }; }
 
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
762
    eval "with_$ac_package=no" ;;
 
763
 
 
764
  --x)
 
765
    # Obsolete; use --with-x.
 
766
    with_x=yes ;;
 
767
 
 
768
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
769
  | --x-incl | --x-inc | --x-in | --x-i)
 
770
    ac_prev=x_includes ;;
 
771
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
772
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
773
    x_includes=$ac_optarg ;;
 
774
 
 
775
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
776
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
777
    ac_prev=x_libraries ;;
 
778
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
779
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
780
    x_libraries=$ac_optarg ;;
 
781
 
 
782
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
783
Try \`$0 --help' for more information." >&2
 
784
   { (exit 1); exit 1; }; }
 
785
    ;;
 
786
 
 
787
  *=*)
 
788
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
789
    # Reject names that are not valid shell variable names.
 
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
792
   { (exit 1); exit 1; }; }
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
 
795
    export $ac_envvar ;;
 
796
 
 
797
  *)
 
798
    # FIXME: should be removed in autoconf 3.0.
 
799
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
800
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
801
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
802
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
803
    ;;
 
804
 
 
805
  esac
 
806
done
 
807
 
 
808
if test -n "$ac_prev"; then
 
809
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
810
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
811
   { (exit 1); exit 1; }; }
 
812
fi
 
813
 
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
 
835
done
 
836
 
 
837
# There might be people who depend on the old broken behavior: `$host'
 
838
# used to hold the argument of --host etc.
 
839
# FIXME: To remove some day.
 
840
build=$build_alias
 
841
host=$host_alias
 
842
target=$target_alias
 
843
 
 
844
# FIXME: To remove some day.
 
845
if test "x$host_alias" != x; then
 
846
  if test "x$build_alias" = x; then
 
847
    cross_compiling=maybe
 
848
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
849
    If a cross compiler is detected then cross compile mode will be used." >&2
 
850
  elif test "x$build_alias" != "x$host_alias"; then
 
851
    cross_compiling=yes
 
852
  fi
 
853
fi
 
854
 
 
855
ac_tool_prefix=
 
856
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
857
 
 
858
test "$silent" = yes && exec 6>/dev/null
 
859
 
 
860
 
 
861
# Find the source files, if location was not specified.
 
862
if test -z "$srcdir"; then
 
863
  ac_srcdir_defaulted=yes
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
867
         X"$0" : 'X\(//\)[^/]' \| \
 
868
         X"$0" : 'X\(//\)$' \| \
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
 
871
echo X"$0" |
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
 
877
  srcdir=$ac_confdir
 
878
  if test ! -r $srcdir/$ac_unique_file; then
 
879
    srcdir=..
 
880
  fi
 
881
else
 
882
  ac_srcdir_defaulted=no
 
883
fi
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CXX_set=${CXX+set}
 
910
ac_env_CXX_value=$CXX
 
911
ac_cv_env_CXX_set=${CXX+set}
 
912
ac_cv_env_CXX_value=$CXX
 
913
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
914
ac_env_CXXFLAGS_value=$CXXFLAGS
 
915
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
916
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CXXCPP_set=${CXXCPP+set}
 
926
ac_env_CXXCPP_value=$CXXCPP
 
927
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
928
ac_cv_env_CXXCPP_value=$CXXCPP
 
929
ac_env_CC_set=${CC+set}
 
930
ac_env_CC_value=$CC
 
931
ac_cv_env_CC_set=${CC+set}
 
932
ac_cv_env_CC_value=$CC
 
933
ac_env_CFLAGS_set=${CFLAGS+set}
 
934
ac_env_CFLAGS_value=$CFLAGS
 
935
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
936
ac_cv_env_CFLAGS_value=$CFLAGS
 
937
ac_env_CPP_set=${CPP+set}
 
938
ac_env_CPP_value=$CPP
 
939
ac_cv_env_CPP_set=${CPP+set}
 
940
ac_cv_env_CPP_value=$CPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
 
949
 
 
950
#
 
951
# Report the --help message.
 
952
#
 
953
if test "$ac_init_help" = "long"; then
 
954
  # Omit some internal or obsolete options to make the list less imposing.
 
955
  # This message is too long to be a string in the A/UX 3.1 sh.
 
956
  cat <<_ACEOF
 
957
\`configure' configures buffy 0.5 to adapt to many kinds of systems.
 
958
 
 
959
Usage: $0 [OPTION]... [VAR=VALUE]...
 
960
 
 
961
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
962
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
963
 
 
964
Defaults for the options are specified in brackets.
 
965
 
 
966
Configuration:
 
967
  -h, --help              display this help and exit
 
968
      --help=short        display options specific to this package
 
969
      --help=recursive    display the short help of all the included packages
 
970
  -V, --version           display version information and exit
 
971
  -q, --quiet, --silent   do not print \`checking...' messages
 
972
      --cache-file=FILE   cache test results in FILE [disabled]
 
973
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
974
  -n, --no-create         do not create output files
 
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
 
980
Installation directories:
 
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
982
                          [$ac_default_prefix]
 
983
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
984
                          [PREFIX]
 
985
 
 
986
By default, \`make install' will install all the files in
 
987
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
988
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
989
for instance \`--prefix=\$HOME'.
 
990
 
 
991
For better control, use the options below.
 
992
 
 
993
Fine tuning of the installation directories:
 
994
  --bindir=DIR           user executables [EPREFIX/bin]
 
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1002
  --includedir=DIR       C header files [PREFIX/include]
 
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
 
1006
_ACEOF
 
1007
 
 
1008
  cat <<\_ACEOF
 
1009
 
 
1010
Program names:
 
1011
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1012
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1013
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1014
 
 
1015
System types:
 
1016
  --build=BUILD     configure for building on BUILD [guessed]
 
1017
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1018
_ACEOF
 
1019
fi
 
1020
 
 
1021
if test -n "$ac_init_help"; then
 
1022
  case $ac_init_help in
 
1023
     short | recursive ) echo "Configuration of buffy 0.5:";;
 
1024
   esac
 
1025
  cat <<\_ACEOF
 
1026
 
 
1027
Optional Features:
 
1028
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1029
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1030
  --disable-dependency-tracking  speeds up one-time build
 
1031
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1032
  --enable-shared[=PKGS]
 
1033
                          build shared libraries [default=yes]
 
1034
  --enable-static[=PKGS]
 
1035
                          build static libraries [default=yes]
 
1036
  --enable-fast-install[=PKGS]
 
1037
                          optimize for fast installation [default=yes]
 
1038
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1039
 
 
1040
Optional Packages:
 
1041
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1042
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1043
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1044
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1045
                          both]
 
1046
  --with-tags[=TAGS]
 
1047
                          include additional configurations [automatic]
 
1048
 
 
1049
Some influential environment variables:
 
1050
  CXX         C++ compiler command
 
1051
  CXXFLAGS    C++ compiler flags
 
1052
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1053
              nonstandard directory <lib dir>
 
1054
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1055
              headers in a nonstandard directory <include dir>
 
1056
  CXXCPP      C++ preprocessor
 
1057
  CC          C compiler command
 
1058
  CFLAGS      C compiler flags
 
1059
  CPP         C preprocessor
 
1060
  F77         Fortran 77 compiler command
 
1061
  FFLAGS      Fortran 77 compiler flags
 
1062
 
 
1063
Use these variables to override the choices made by `configure' or to help
 
1064
it to find libraries and programs with nonstandard names/locations.
 
1065
 
 
1066
Report bugs to <enrico@debian.org>.
 
1067
_ACEOF
 
1068
fi
 
1069
 
 
1070
if test "$ac_init_help" = "recursive"; then
 
1071
  # If there are subdirs, report their specific --help.
 
1072
  ac_popdir=`pwd`
 
1073
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1074
    test -d $ac_dir || continue
 
1075
    ac_builddir=.
 
1076
 
 
1077
if test "$ac_dir" != .; then
 
1078
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1079
  # A "../" for each directory in $ac_dir_suffix.
 
1080
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1081
else
 
1082
  ac_dir_suffix= ac_top_builddir=
 
1083
fi
 
1084
 
 
1085
case $srcdir in
 
1086
  .)  # No --srcdir option.  We are building in place.
 
1087
    ac_srcdir=.
 
1088
    if test -z "$ac_top_builddir"; then
 
1089
       ac_top_srcdir=.
 
1090
    else
 
1091
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1092
    fi ;;
 
1093
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1094
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1095
    ac_top_srcdir=$srcdir ;;
 
1096
  *) # Relative path.
 
1097
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1098
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1099
esac
 
1100
 
 
1101
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1102
# the directories may not exist.
 
1103
case `pwd` in
 
1104
.) ac_abs_builddir="$ac_dir";;
 
1105
*)
 
1106
  case "$ac_dir" in
 
1107
  .) ac_abs_builddir=`pwd`;;
 
1108
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1109
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1110
  esac;;
 
1111
esac
 
1112
case $ac_abs_builddir in
 
1113
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1114
*)
 
1115
  case ${ac_top_builddir}. in
 
1116
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1117
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1118
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1119
  esac;;
 
1120
esac
 
1121
case $ac_abs_builddir in
 
1122
.) ac_abs_srcdir=$ac_srcdir;;
 
1123
*)
 
1124
  case $ac_srcdir in
 
1125
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1126
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1127
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1128
  esac;;
 
1129
esac
 
1130
case $ac_abs_builddir in
 
1131
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1132
*)
 
1133
  case $ac_top_srcdir in
 
1134
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1135
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1136
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1137
  esac;;
 
1138
esac
 
1139
 
 
1140
    cd $ac_dir
 
1141
    # Check for guested configure; otherwise get Cygnus style configure.
 
1142
    if test -f $ac_srcdir/configure.gnu; then
 
1143
      echo
 
1144
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1145
    elif test -f $ac_srcdir/configure; then
 
1146
      echo
 
1147
      $SHELL $ac_srcdir/configure  --help=recursive
 
1148
    elif test -f $ac_srcdir/configure.ac ||
 
1149
           test -f $ac_srcdir/configure.in; then
 
1150
      echo
 
1151
      $ac_configure --help
 
1152
    else
 
1153
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1154
    fi
 
1155
    cd "$ac_popdir"
 
1156
  done
 
1157
fi
 
1158
 
 
1159
test -n "$ac_init_help" && exit 0
 
1160
if $ac_init_version; then
 
1161
  cat <<\_ACEOF
 
1162
buffy configure 0.5
 
1163
generated by GNU Autoconf 2.59
 
1164
 
 
1165
Copyright (C) 2003 Free Software Foundation, Inc.
 
1166
This configure script is free software; the Free Software Foundation
 
1167
gives unlimited permission to copy, distribute and modify it.
 
1168
_ACEOF
 
1169
  exit 0
 
1170
fi
 
1171
exec 5>config.log
 
1172
cat >&5 <<_ACEOF
 
1173
This file contains any messages produced by compilers while
 
1174
running configure, to aid debugging if configure makes a mistake.
 
1175
 
 
1176
It was created by buffy $as_me 0.5, which was
 
1177
generated by GNU Autoconf 2.59.  Invocation command line was
 
1178
 
 
1179
  $ $0 $@
 
1180
 
 
1181
_ACEOF
 
1182
{
 
1183
cat <<_ASUNAME
 
1184
## --------- ##
 
1185
## Platform. ##
 
1186
## --------- ##
 
1187
 
 
1188
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1189
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1190
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1191
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1192
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1193
 
 
1194
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1195
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1196
 
 
1197
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1198
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1199
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1200
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1201
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1202
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1203
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1204
 
 
1205
_ASUNAME
 
1206
 
 
1207
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1208
for as_dir in $PATH
 
1209
do
 
1210
  IFS=$as_save_IFS
 
1211
  test -z "$as_dir" && as_dir=.
 
1212
  echo "PATH: $as_dir"
 
1213
done
 
1214
 
 
1215
} >&5
 
1216
 
 
1217
cat >&5 <<_ACEOF
 
1218
 
 
1219
 
 
1220
## ----------- ##
 
1221
## Core tests. ##
 
1222
## ----------- ##
 
1223
 
 
1224
_ACEOF
 
1225
 
 
1226
 
 
1227
# Keep a trace of the command line.
 
1228
# Strip out --no-create and --no-recursion so they do not pile up.
 
1229
# Strip out --silent because we don't want to record it for future runs.
 
1230
# Also quote any args containing shell meta-characters.
 
1231
# Make two passes to allow for proper duplicate-argument suppression.
 
1232
ac_configure_args=
 
1233
ac_configure_args0=
 
1234
ac_configure_args1=
 
1235
ac_sep=
 
1236
ac_must_keep_next=false
 
1237
for ac_pass in 1 2
 
1238
do
 
1239
  for ac_arg
 
1240
  do
 
1241
    case $ac_arg in
 
1242
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1243
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1244
    | -silent | --silent | --silen | --sile | --sil)
 
1245
      continue ;;
 
1246
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1247
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1248
    esac
 
1249
    case $ac_pass in
 
1250
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1251
    2)
 
1252
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1253
      if test $ac_must_keep_next = true; then
 
1254
        ac_must_keep_next=false # Got value, back to normal.
 
1255
      else
 
1256
        case $ac_arg in
 
1257
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1258
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1259
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1260
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1261
            case "$ac_configure_args0 " in
 
1262
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1263
            esac
 
1264
            ;;
 
1265
          -* ) ac_must_keep_next=true ;;
 
1266
        esac
 
1267
      fi
 
1268
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1269
      # Get rid of the leading space.
 
1270
      ac_sep=" "
 
1271
      ;;
 
1272
    esac
 
1273
  done
 
1274
done
 
1275
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1276
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1277
 
 
1278
# When interrupted or exit'd, cleanup temporary files, and complete
 
1279
# config.log.  We remove comments because anyway the quotes in there
 
1280
# would cause problems or look ugly.
 
1281
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1282
# such as our DU 5.0 friend, will then `close' the trap.
 
1283
trap 'exit_status=$?
 
1284
  # Save into config.log some information that might help in debugging.
 
1285
  {
 
1286
    echo
 
1287
 
 
1288
    cat <<\_ASBOX
 
1289
## ---------------- ##
 
1290
## Cache variables. ##
 
1291
## ---------------- ##
 
1292
_ASBOX
 
1293
    echo
 
1294
    # The following way of writing the cache mishandles newlines in values,
 
1295
{
 
1296
  (set) 2>&1 |
 
1297
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1298
    *ac_space=\ *)
 
1299
      sed -n \
 
1300
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1301
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1302
      ;;
 
1303
    *)
 
1304
      sed -n \
 
1305
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1306
      ;;
 
1307
    esac;
 
1308
}
 
1309
    echo
 
1310
 
 
1311
    cat <<\_ASBOX
 
1312
## ----------------- ##
 
1313
## Output variables. ##
 
1314
## ----------------- ##
 
1315
_ASBOX
 
1316
    echo
 
1317
    for ac_var in $ac_subst_vars
 
1318
    do
 
1319
      eval ac_val=$`echo $ac_var`
 
1320
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1321
    done | sort
 
1322
    echo
 
1323
 
 
1324
    if test -n "$ac_subst_files"; then
 
1325
      cat <<\_ASBOX
 
1326
## ------------- ##
 
1327
## Output files. ##
 
1328
## ------------- ##
 
1329
_ASBOX
 
1330
      echo
 
1331
      for ac_var in $ac_subst_files
 
1332
      do
 
1333
        eval ac_val=$`echo $ac_var`
 
1334
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1335
      done | sort
 
1336
      echo
 
1337
    fi
 
1338
 
 
1339
    if test -s confdefs.h; then
 
1340
      cat <<\_ASBOX
 
1341
## ----------- ##
 
1342
## confdefs.h. ##
 
1343
## ----------- ##
 
1344
_ASBOX
 
1345
      echo
 
1346
      sed "/^$/d" confdefs.h | sort
 
1347
      echo
 
1348
    fi
 
1349
    test "$ac_signal" != 0 &&
 
1350
      echo "$as_me: caught signal $ac_signal"
 
1351
    echo "$as_me: exit $exit_status"
 
1352
  } >&5
 
1353
  rm -f core *.core &&
 
1354
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1355
    exit $exit_status
 
1356
     ' 0
 
1357
for ac_signal in 1 2 13 15; do
 
1358
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1359
done
 
1360
ac_signal=0
 
1361
 
 
1362
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1363
rm -rf conftest* confdefs.h
 
1364
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1365
echo >confdefs.h
 
1366
 
 
1367
# Predefined preprocessor variables.
 
1368
 
 
1369
cat >>confdefs.h <<_ACEOF
 
1370
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1371
_ACEOF
 
1372
 
 
1373
 
 
1374
cat >>confdefs.h <<_ACEOF
 
1375
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1376
_ACEOF
 
1377
 
 
1378
 
 
1379
cat >>confdefs.h <<_ACEOF
 
1380
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1381
_ACEOF
 
1382
 
 
1383
 
 
1384
cat >>confdefs.h <<_ACEOF
 
1385
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1386
_ACEOF
 
1387
 
 
1388
 
 
1389
cat >>confdefs.h <<_ACEOF
 
1390
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1391
_ACEOF
 
1392
 
 
1393
 
 
1394
# Let the site file select an alternate cache file if it wants to.
 
1395
# Prefer explicitly selected file to automatically selected ones.
 
1396
if test -z "$CONFIG_SITE"; then
 
1397
  if test "x$prefix" != xNONE; then
 
1398
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1399
  else
 
1400
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1401
  fi
 
1402
fi
 
1403
for ac_site_file in $CONFIG_SITE; do
 
1404
  if test -r "$ac_site_file"; then
 
1405
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1406
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1407
    sed 's/^/| /' "$ac_site_file" >&5
 
1408
    . "$ac_site_file"
 
1409
  fi
 
1410
done
 
1411
 
 
1412
if test -r "$cache_file"; then
 
1413
  # Some versions of bash will fail to source /dev/null (special
 
1414
  # files actually), so we avoid doing that.
 
1415
  if test -f "$cache_file"; then
 
1416
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1417
echo "$as_me: loading cache $cache_file" >&6;}
 
1418
    case $cache_file in
 
1419
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1420
      *)                      . ./$cache_file;;
 
1421
    esac
 
1422
  fi
 
1423
else
 
1424
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1425
echo "$as_me: creating cache $cache_file" >&6;}
 
1426
  >$cache_file
 
1427
fi
 
1428
 
 
1429
# Check that the precious variables saved in the cache have kept the same
 
1430
# value.
 
1431
ac_cache_corrupted=false
 
1432
for ac_var in `(set) 2>&1 |
 
1433
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1434
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1435
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1436
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1437
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1438
  case $ac_old_set,$ac_new_set in
 
1439
    set,)
 
1440
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1441
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1442
      ac_cache_corrupted=: ;;
 
1443
    ,set)
 
1444
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1445
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1446
      ac_cache_corrupted=: ;;
 
1447
    ,);;
 
1448
    *)
 
1449
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1450
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1451
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1452
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1453
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1454
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1455
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1456
        ac_cache_corrupted=:
 
1457
      fi;;
 
1458
  esac
 
1459
  # Pass precious variables to config.status.
 
1460
  if test "$ac_new_set" = set; then
 
1461
    case $ac_new_val in
 
1462
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1463
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1464
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1465
    esac
 
1466
    case " $ac_configure_args " in
 
1467
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1468
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1469
    esac
 
1470
  fi
 
1471
done
 
1472
if $ac_cache_corrupted; then
 
1473
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1474
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1475
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1476
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1477
   { (exit 1); exit 1; }; }
 
1478
fi
 
1479
 
 
1480
ac_ext=c
 
1481
ac_cpp='$CPP $CPPFLAGS'
 
1482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
          ac_config_headers="$ac_config_headers config.h"
 
1514
 
 
1515
am__api_version="1.8"
 
1516
ac_aux_dir=
 
1517
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1518
  if test -f $ac_dir/install-sh; then
 
1519
    ac_aux_dir=$ac_dir
 
1520
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1521
    break
 
1522
  elif test -f $ac_dir/install.sh; then
 
1523
    ac_aux_dir=$ac_dir
 
1524
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1525
    break
 
1526
  elif test -f $ac_dir/shtool; then
 
1527
    ac_aux_dir=$ac_dir
 
1528
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1529
    break
 
1530
  fi
 
1531
done
 
1532
if test -z "$ac_aux_dir"; then
 
1533
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1534
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1535
   { (exit 1); exit 1; }; }
 
1536
fi
 
1537
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1538
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1539
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1540
 
 
1541
# Find a good install program.  We prefer a C program (faster),
 
1542
# so one script is as good as another.  But avoid the broken or
 
1543
# incompatible versions:
 
1544
# SysV /etc/install, /usr/sbin/install
 
1545
# SunOS /usr/etc/install
 
1546
# IRIX /sbin/install
 
1547
# AIX /bin/install
 
1548
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1549
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1550
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1551
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1552
# OS/2's system install, which has a completely different semantic
 
1553
# ./install, which can be erroneously created by make from ./install.sh.
 
1554
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1555
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1556
if test -z "$INSTALL"; then
 
1557
if test "${ac_cv_path_install+set}" = set; then
 
1558
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1559
else
 
1560
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1561
for as_dir in $PATH
 
1562
do
 
1563
  IFS=$as_save_IFS
 
1564
  test -z "$as_dir" && as_dir=.
 
1565
  # Account for people who put trailing slashes in PATH elements.
 
1566
case $as_dir/ in
 
1567
  ./ | .// | /cC/* | \
 
1568
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1569
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1570
  /usr/ucb/* ) ;;
 
1571
  *)
 
1572
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1573
    # Don't use installbsd from OSF since it installs stuff as root
 
1574
    # by default.
 
1575
    for ac_prog in ginstall scoinst install; do
 
1576
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1577
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1578
          if test $ac_prog = install &&
 
1579
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1580
            # AIX install.  It has an incompatible calling convention.
 
1581
            :
 
1582
          elif test $ac_prog = install &&
 
1583
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1584
            # program-specific install script used by HP pwplus--don't use.
 
1585
            :
 
1586
          else
 
1587
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1588
            break 3
 
1589
          fi
 
1590
        fi
 
1591
      done
 
1592
    done
 
1593
    ;;
 
1594
esac
 
1595
done
 
1596
 
 
1597
 
 
1598
fi
 
1599
  if test "${ac_cv_path_install+set}" = set; then
 
1600
    INSTALL=$ac_cv_path_install
 
1601
  else
 
1602
    # As a last resort, use the slow shell script.  We don't cache a
 
1603
    # path for INSTALL within a source directory, because that will
 
1604
    # break other packages using the cache if that directory is
 
1605
    # removed, or if the path is relative.
 
1606
    INSTALL=$ac_install_sh
 
1607
  fi
 
1608
fi
 
1609
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1610
echo "${ECHO_T}$INSTALL" >&6
 
1611
 
 
1612
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1613
# It thinks the first close brace ends the variable substitution.
 
1614
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1615
 
 
1616
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1617
 
 
1618
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1619
 
 
1620
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1621
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1622
# Just in case
 
1623
sleep 1
 
1624
echo timestamp > conftest.file
 
1625
# Do `set' in a subshell so we don't clobber the current shell's
 
1626
# arguments.  Must try -L first in case configure is actually a
 
1627
# symlink; some systems play weird games with the mod time of symlinks
 
1628
# (eg FreeBSD returns the mod time of the symlink's containing
 
1629
# directory).
 
1630
if (
 
1631
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1632
   if test "$*" = "X"; then
 
1633
      # -L didn't work.
 
1634
      set X `ls -t $srcdir/configure conftest.file`
 
1635
   fi
 
1636
   rm -f conftest.file
 
1637
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1638
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1639
 
 
1640
      # If neither matched, then we have a broken ls.  This can happen
 
1641
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1642
      # broken ls alias from the environment.  This has actually
 
1643
      # happened.  Such a system could not be considered "sane".
 
1644
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1645
alias in your environment" >&5
 
1646
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1647
alias in your environment" >&2;}
 
1648
   { (exit 1); exit 1; }; }
 
1649
   fi
 
1650
 
 
1651
   test "$2" = conftest.file
 
1652
   )
 
1653
then
 
1654
   # Ok.
 
1655
   :
 
1656
else
 
1657
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1658
Check your system clock" >&5
 
1659
echo "$as_me: error: newly created file is older than distributed files!
 
1660
Check your system clock" >&2;}
 
1661
   { (exit 1); exit 1; }; }
 
1662
fi
 
1663
echo "$as_me:$LINENO: result: yes" >&5
 
1664
echo "${ECHO_T}yes" >&6
 
1665
test "$program_prefix" != NONE &&
 
1666
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1667
# Use a double $ so make ignores it.
 
1668
test "$program_suffix" != NONE &&
 
1669
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1670
# Double any \ or $.  echo might interpret backslashes.
 
1671
# By default was `s,x,x', remove it if useless.
 
1672
cat <<\_ACEOF >conftest.sed
 
1673
s/[\\$]/&&/g;s/;s,x,x,$//
 
1674
_ACEOF
 
1675
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1676
rm conftest.sed
 
1677
 
 
1678
# expand $ac_aux_dir to an absolute path
 
1679
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1680
 
 
1681
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1682
# Use eval to expand $SHELL
 
1683
if eval "$MISSING --run true"; then
 
1684
  am_missing_run="$MISSING --run "
 
1685
else
 
1686
  am_missing_run=
 
1687
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1688
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1689
fi
 
1690
 
 
1691
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1692
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
1693
  # argument.  Indeed, we sometimes output rules like
 
1694
  #   $(mkdir_p) $(somedir)
 
1695
  # where $(somedir) is conditionally defined.
 
1696
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
1697
  # expensive solution, as it forces Make to start a sub-shell.)
 
1698
  mkdir_p='mkdir -p -- .'
 
1699
else
 
1700
  # On NextStep and OpenStep, the `mkdir' command does not
 
1701
  # recognize any option.  It will interpret all options as
 
1702
  # directories to create, and then abort because `.' already
 
1703
  # exists.
 
1704
  for d in ./-p ./--version;
 
1705
  do
 
1706
    test -d $d && rmdir $d
 
1707
  done
 
1708
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
1709
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
1710
    mkdir_p='$(mkinstalldirs)'
 
1711
  else
 
1712
    mkdir_p='$(install_sh) -d'
 
1713
  fi
 
1714
fi
 
1715
 
 
1716
for ac_prog in gawk mawk nawk awk
 
1717
do
 
1718
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1719
set dummy $ac_prog; ac_word=$2
 
1720
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1722
if test "${ac_cv_prog_AWK+set}" = set; then
 
1723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1724
else
 
1725
  if test -n "$AWK"; then
 
1726
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1727
else
 
1728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1729
for as_dir in $PATH
 
1730
do
 
1731
  IFS=$as_save_IFS
 
1732
  test -z "$as_dir" && as_dir=.
 
1733
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1734
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1735
    ac_cv_prog_AWK="$ac_prog"
 
1736
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1737
    break 2
 
1738
  fi
 
1739
done
 
1740
done
 
1741
 
 
1742
fi
 
1743
fi
 
1744
AWK=$ac_cv_prog_AWK
 
1745
if test -n "$AWK"; then
 
1746
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1747
echo "${ECHO_T}$AWK" >&6
 
1748
else
 
1749
  echo "$as_me:$LINENO: result: no" >&5
 
1750
echo "${ECHO_T}no" >&6
 
1751
fi
 
1752
 
 
1753
  test -n "$AWK" && break
 
1754
done
 
1755
 
 
1756
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1757
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1758
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1759
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1761
else
 
1762
  cat >conftest.make <<\_ACEOF
 
1763
all:
 
1764
        @echo 'ac_maketemp="$(MAKE)"'
 
1765
_ACEOF
 
1766
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1767
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1768
if test -n "$ac_maketemp"; then
 
1769
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1770
else
 
1771
  eval ac_cv_prog_make_${ac_make}_set=no
 
1772
fi
 
1773
rm -f conftest.make
 
1774
fi
 
1775
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1776
  echo "$as_me:$LINENO: result: yes" >&5
 
1777
echo "${ECHO_T}yes" >&6
 
1778
  SET_MAKE=
 
1779
else
 
1780
  echo "$as_me:$LINENO: result: no" >&5
 
1781
echo "${ECHO_T}no" >&6
 
1782
  SET_MAKE="MAKE=${MAKE-make}"
 
1783
fi
 
1784
 
 
1785
rm -rf .tst 2>/dev/null
 
1786
mkdir .tst 2>/dev/null
 
1787
if test -d .tst; then
 
1788
  am__leading_dot=.
 
1789
else
 
1790
  am__leading_dot=_
 
1791
fi
 
1792
rmdir .tst 2>/dev/null
 
1793
 
 
1794
# test to see if srcdir already configured
 
1795
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1796
   test -f $srcdir/config.status; then
 
1797
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1798
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1799
   { (exit 1); exit 1; }; }
 
1800
fi
 
1801
 
 
1802
# test whether we have cygpath
 
1803
if test -z "$CYGPATH_W"; then
 
1804
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1805
    CYGPATH_W='cygpath -w'
 
1806
  else
 
1807
    CYGPATH_W=echo
 
1808
  fi
 
1809
fi
 
1810
 
 
1811
 
 
1812
# Define the identity of the package.
 
1813
 PACKAGE='buffy'
 
1814
 VERSION='0.5'
 
1815
 
 
1816
 
 
1817
cat >>confdefs.h <<_ACEOF
 
1818
#define PACKAGE "$PACKAGE"
 
1819
_ACEOF
 
1820
 
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
#define VERSION "$VERSION"
 
1824
_ACEOF
 
1825
 
 
1826
# Some tools Automake needs.
 
1827
 
 
1828
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1829
 
 
1830
 
 
1831
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1832
 
 
1833
 
 
1834
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1835
 
 
1836
 
 
1837
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1838
 
 
1839
 
 
1840
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1841
 
 
1842
 
 
1843
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1844
 
 
1845
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1846
 
 
1847
# Installed binaries are usually stripped using `strip' when the user
 
1848
# run `make install-strip'.  However `strip' might not be the right
 
1849
# tool to use in cross-compilation environments, therefore Automake
 
1850
# will honor the `STRIP' environment variable to overrule this program.
 
1851
if test "$cross_compiling" != no; then
 
1852
  if test -n "$ac_tool_prefix"; then
 
1853
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1854
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1855
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1856
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1857
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1859
else
 
1860
  if test -n "$STRIP"; then
 
1861
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1862
else
 
1863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1864
for as_dir in $PATH
 
1865
do
 
1866
  IFS=$as_save_IFS
 
1867
  test -z "$as_dir" && as_dir=.
 
1868
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1869
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1870
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1871
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1872
    break 2
 
1873
  fi
 
1874
done
 
1875
done
 
1876
 
 
1877
fi
 
1878
fi
 
1879
STRIP=$ac_cv_prog_STRIP
 
1880
if test -n "$STRIP"; then
 
1881
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1882
echo "${ECHO_T}$STRIP" >&6
 
1883
else
 
1884
  echo "$as_me:$LINENO: result: no" >&5
 
1885
echo "${ECHO_T}no" >&6
 
1886
fi
 
1887
 
 
1888
fi
 
1889
if test -z "$ac_cv_prog_STRIP"; then
 
1890
  ac_ct_STRIP=$STRIP
 
1891
  # Extract the first word of "strip", so it can be a program name with args.
 
1892
set dummy strip; ac_word=$2
 
1893
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1894
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1895
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1896
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1897
else
 
1898
  if test -n "$ac_ct_STRIP"; then
 
1899
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1900
else
 
1901
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1902
for as_dir in $PATH
 
1903
do
 
1904
  IFS=$as_save_IFS
 
1905
  test -z "$as_dir" && as_dir=.
 
1906
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1907
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1908
    ac_cv_prog_ac_ct_STRIP="strip"
 
1909
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1910
    break 2
 
1911
  fi
 
1912
done
 
1913
done
 
1914
 
 
1915
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1916
fi
 
1917
fi
 
1918
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1919
if test -n "$ac_ct_STRIP"; then
 
1920
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1921
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1922
else
 
1923
  echo "$as_me:$LINENO: result: no" >&5
 
1924
echo "${ECHO_T}no" >&6
 
1925
fi
 
1926
 
 
1927
  STRIP=$ac_ct_STRIP
 
1928
else
 
1929
  STRIP="$ac_cv_prog_STRIP"
 
1930
fi
 
1931
 
 
1932
fi
 
1933
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1934
 
 
1935
# We need awk for the "check" target.  The system "awk" is bad on
 
1936
# some platforms.
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
ac_ext=cc
 
1942
ac_cpp='$CXXCPP $CPPFLAGS'
 
1943
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1944
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1945
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
1946
 
 
1947
 
 
1948
 
 
1949
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1950
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1951
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1952
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1954
else
 
1955
  cat >conftest.make <<\_ACEOF
 
1956
all:
 
1957
        @echo 'ac_maketemp="$(MAKE)"'
 
1958
_ACEOF
 
1959
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1960
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1961
if test -n "$ac_maketemp"; then
 
1962
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1963
else
 
1964
  eval ac_cv_prog_make_${ac_make}_set=no
 
1965
fi
 
1966
rm -f conftest.make
 
1967
fi
 
1968
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1969
  echo "$as_me:$LINENO: result: yes" >&5
 
1970
echo "${ECHO_T}yes" >&6
 
1971
  SET_MAKE=
 
1972
else
 
1973
  echo "$as_me:$LINENO: result: no" >&5
 
1974
echo "${ECHO_T}no" >&6
 
1975
  SET_MAKE="MAKE=${MAKE-make}"
 
1976
fi
 
1977
 
 
1978
 
 
1979
DEPDIR="${am__leading_dot}deps"
 
1980
 
 
1981
          ac_config_commands="$ac_config_commands depfiles"
 
1982
 
 
1983
 
 
1984
am_make=${MAKE-make}
 
1985
cat > confinc << 'END'
 
1986
am__doit:
 
1987
        @echo done
 
1988
.PHONY: am__doit
 
1989
END
 
1990
# If we don't find an include directive, just comment out the code.
 
1991
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
1992
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1993
am__include="#"
 
1994
am__quote=
 
1995
_am_result=none
 
1996
# First try GNU make style include.
 
1997
echo "include confinc" > confmf
 
1998
# We grep out `Entering directory' and `Leaving directory'
 
1999
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2000
# In particular we don't look at `^make:' because GNU make might
 
2001
# be invoked under some other name (usually "gmake"), in which
 
2002
# case it prints its new name instead of `make'.
 
2003
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2004
   am__include=include
 
2005
   am__quote=
 
2006
   _am_result=GNU
 
2007
fi
 
2008
# Now try BSD make style include.
 
2009
if test "$am__include" = "#"; then
 
2010
   echo '.include "confinc"' > confmf
 
2011
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2012
      am__include=.include
 
2013
      am__quote="\""
 
2014
      _am_result=BSD
 
2015
   fi
 
2016
fi
 
2017
 
 
2018
 
 
2019
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2020
echo "${ECHO_T}$_am_result" >&6
 
2021
rm -f confinc confmf
 
2022
 
 
2023
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2024
if test "${enable_dependency_tracking+set}" = set; then
 
2025
  enableval="$enable_dependency_tracking"
 
2026
 
 
2027
fi;
 
2028
if test "x$enable_dependency_tracking" != xno; then
 
2029
  am_depcomp="$ac_aux_dir/depcomp"
 
2030
  AMDEPBACKSLASH='\'
 
2031
fi
 
2032
 
 
2033
 
 
2034
if test "x$enable_dependency_tracking" != xno; then
 
2035
  AMDEP_TRUE=
 
2036
  AMDEP_FALSE='#'
 
2037
else
 
2038
  AMDEP_TRUE='#'
 
2039
  AMDEP_FALSE=
 
2040
fi
 
2041
 
 
2042
 
 
2043
 
 
2044
ac_ext=cc
 
2045
ac_cpp='$CXXCPP $CPPFLAGS'
 
2046
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2047
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2048
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2049
if test -n "$ac_tool_prefix"; then
 
2050
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2051
  do
 
2052
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2053
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2054
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2055
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2056
if test "${ac_cv_prog_CXX+set}" = set; then
 
2057
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2058
else
 
2059
  if test -n "$CXX"; then
 
2060
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2061
else
 
2062
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2063
for as_dir in $PATH
 
2064
do
 
2065
  IFS=$as_save_IFS
 
2066
  test -z "$as_dir" && as_dir=.
 
2067
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2068
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2069
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2070
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2071
    break 2
 
2072
  fi
 
2073
done
 
2074
done
 
2075
 
 
2076
fi
 
2077
fi
 
2078
CXX=$ac_cv_prog_CXX
 
2079
if test -n "$CXX"; then
 
2080
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2081
echo "${ECHO_T}$CXX" >&6
 
2082
else
 
2083
  echo "$as_me:$LINENO: result: no" >&5
 
2084
echo "${ECHO_T}no" >&6
 
2085
fi
 
2086
 
 
2087
    test -n "$CXX" && break
 
2088
  done
 
2089
fi
 
2090
if test -z "$CXX"; then
 
2091
  ac_ct_CXX=$CXX
 
2092
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2093
do
 
2094
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2095
set dummy $ac_prog; ac_word=$2
 
2096
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2098
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2100
else
 
2101
  if test -n "$ac_ct_CXX"; then
 
2102
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2103
else
 
2104
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2105
for as_dir in $PATH
 
2106
do
 
2107
  IFS=$as_save_IFS
 
2108
  test -z "$as_dir" && as_dir=.
 
2109
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2110
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2111
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2112
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2113
    break 2
 
2114
  fi
 
2115
done
 
2116
done
 
2117
 
 
2118
fi
 
2119
fi
 
2120
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2121
if test -n "$ac_ct_CXX"; then
 
2122
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2123
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2124
else
 
2125
  echo "$as_me:$LINENO: result: no" >&5
 
2126
echo "${ECHO_T}no" >&6
 
2127
fi
 
2128
 
 
2129
  test -n "$ac_ct_CXX" && break
 
2130
done
 
2131
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2132
 
 
2133
  CXX=$ac_ct_CXX
 
2134
fi
 
2135
 
 
2136
 
 
2137
# Provide some information about the compiler.
 
2138
echo "$as_me:$LINENO:" \
 
2139
     "checking for C++ compiler version" >&5
 
2140
ac_compiler=`set X $ac_compile; echo $2`
 
2141
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2142
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2143
  ac_status=$?
 
2144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2145
  (exit $ac_status); }
 
2146
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2147
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2148
  ac_status=$?
 
2149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2150
  (exit $ac_status); }
 
2151
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2152
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2153
  ac_status=$?
 
2154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2155
  (exit $ac_status); }
 
2156
 
 
2157
cat >conftest.$ac_ext <<_ACEOF
 
2158
/* confdefs.h.  */
 
2159
_ACEOF
 
2160
cat confdefs.h >>conftest.$ac_ext
 
2161
cat >>conftest.$ac_ext <<_ACEOF
 
2162
/* end confdefs.h.  */
 
2163
 
 
2164
int
 
2165
main ()
 
2166
{
 
2167
 
 
2168
  ;
 
2169
  return 0;
 
2170
}
 
2171
_ACEOF
 
2172
ac_clean_files_save=$ac_clean_files
 
2173
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2174
# Try to create an executable without -o first, disregard a.out.
 
2175
# It will help us diagnose broken compilers, and finding out an intuition
 
2176
# of exeext.
 
2177
echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2178
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
 
2179
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2180
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2181
  (eval $ac_link_default) 2>&5
 
2182
  ac_status=$?
 
2183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2184
  (exit $ac_status); }; then
 
2185
  # Find the output, starting from the most likely.  This scheme is
 
2186
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2187
# resort.
 
2188
 
 
2189
# Be careful to initialize this variable, since it used to be cached.
 
2190
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2191
ac_cv_exeext=
 
2192
# b.out is created by i960 compilers.
 
2193
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2194
do
 
2195
  test -f "$ac_file" || continue
 
2196
  case $ac_file in
 
2197
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2198
        ;;
 
2199
    conftest.$ac_ext )
 
2200
        # This is the source file.
 
2201
        ;;
 
2202
    [ab].out )
 
2203
        # We found the default executable, but exeext='' is most
 
2204
        # certainly right.
 
2205
        break;;
 
2206
    *.* )
 
2207
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2208
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2209
        # but it would be cool to find out if it's true.  Does anybody
 
2210
        # maintain Libtool? --akim.
 
2211
        export ac_cv_exeext
 
2212
        break;;
 
2213
    * )
 
2214
        break;;
 
2215
  esac
 
2216
done
 
2217
else
 
2218
  echo "$as_me: failed program was:" >&5
 
2219
sed 's/^/| /' conftest.$ac_ext >&5
 
2220
 
 
2221
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
2222
See \`config.log' for more details." >&5
 
2223
echo "$as_me: error: C++ compiler cannot create executables
 
2224
See \`config.log' for more details." >&2;}
 
2225
   { (exit 77); exit 77; }; }
 
2226
fi
 
2227
 
 
2228
ac_exeext=$ac_cv_exeext
 
2229
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2230
echo "${ECHO_T}$ac_file" >&6
 
2231
 
 
2232
# Check the compiler produces executables we can run.  If not, either
 
2233
# the compiler is broken, or we cross compile.
 
2234
echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
2235
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
 
2236
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2237
# If not cross compiling, check that we can run a simple program.
 
2238
if test "$cross_compiling" != yes; then
 
2239
  if { ac_try='./$ac_file'
 
2240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2241
  (eval $ac_try) 2>&5
 
2242
  ac_status=$?
 
2243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2244
  (exit $ac_status); }; }; then
 
2245
    cross_compiling=no
 
2246
  else
 
2247
    if test "$cross_compiling" = maybe; then
 
2248
        cross_compiling=yes
 
2249
    else
 
2250
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
2251
If you meant to cross compile, use \`--host'.
 
2252
See \`config.log' for more details." >&5
 
2253
echo "$as_me: error: cannot run C++ compiled programs.
 
2254
If you meant to cross compile, use \`--host'.
 
2255
See \`config.log' for more details." >&2;}
 
2256
   { (exit 1); exit 1; }; }
 
2257
    fi
 
2258
  fi
 
2259
fi
 
2260
echo "$as_me:$LINENO: result: yes" >&5
 
2261
echo "${ECHO_T}yes" >&6
 
2262
 
 
2263
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2264
ac_clean_files=$ac_clean_files_save
 
2265
# Check the compiler produces executables we can run.  If not, either
 
2266
# the compiler is broken, or we cross compile.
 
2267
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2268
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2269
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2270
echo "${ECHO_T}$cross_compiling" >&6
 
2271
 
 
2272
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2273
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2274
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2275
  (eval $ac_link) 2>&5
 
2276
  ac_status=$?
 
2277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2278
  (exit $ac_status); }; then
 
2279
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2280
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2281
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2282
# `rm'.
 
2283
for ac_file in conftest.exe conftest conftest.*; do
 
2284
  test -f "$ac_file" || continue
 
2285
  case $ac_file in
 
2286
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2287
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2288
          export ac_cv_exeext
 
2289
          break;;
 
2290
    * ) break;;
 
2291
  esac
 
2292
done
 
2293
else
 
2294
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2295
See \`config.log' for more details." >&5
 
2296
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2297
See \`config.log' for more details." >&2;}
 
2298
   { (exit 1); exit 1; }; }
 
2299
fi
 
2300
 
 
2301
rm -f conftest$ac_cv_exeext
 
2302
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2303
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2304
 
 
2305
rm -f conftest.$ac_ext
 
2306
EXEEXT=$ac_cv_exeext
 
2307
ac_exeext=$EXEEXT
 
2308
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2309
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2310
if test "${ac_cv_objext+set}" = set; then
 
2311
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2312
else
 
2313
  cat >conftest.$ac_ext <<_ACEOF
 
2314
/* confdefs.h.  */
 
2315
_ACEOF
 
2316
cat confdefs.h >>conftest.$ac_ext
 
2317
cat >>conftest.$ac_ext <<_ACEOF
 
2318
/* end confdefs.h.  */
 
2319
 
 
2320
int
 
2321
main ()
 
2322
{
 
2323
 
 
2324
  ;
 
2325
  return 0;
 
2326
}
 
2327
_ACEOF
 
2328
rm -f conftest.o conftest.obj
 
2329
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2330
  (eval $ac_compile) 2>&5
 
2331
  ac_status=$?
 
2332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2333
  (exit $ac_status); }; then
 
2334
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2335
  case $ac_file in
 
2336
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2337
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2338
       break;;
 
2339
  esac
 
2340
done
 
2341
else
 
2342
  echo "$as_me: failed program was:" >&5
 
2343
sed 's/^/| /' conftest.$ac_ext >&5
 
2344
 
 
2345
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2346
See \`config.log' for more details." >&5
 
2347
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2348
See \`config.log' for more details." >&2;}
 
2349
   { (exit 1); exit 1; }; }
 
2350
fi
 
2351
 
 
2352
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2353
fi
 
2354
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2355
echo "${ECHO_T}$ac_cv_objext" >&6
 
2356
OBJEXT=$ac_cv_objext
 
2357
ac_objext=$OBJEXT
 
2358
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2359
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2360
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2362
else
 
2363
  cat >conftest.$ac_ext <<_ACEOF
 
2364
/* confdefs.h.  */
 
2365
_ACEOF
 
2366
cat confdefs.h >>conftest.$ac_ext
 
2367
cat >>conftest.$ac_ext <<_ACEOF
 
2368
/* end confdefs.h.  */
 
2369
 
 
2370
int
 
2371
main ()
 
2372
{
 
2373
#ifndef __GNUC__
 
2374
       choke me
 
2375
#endif
 
2376
 
 
2377
  ;
 
2378
  return 0;
 
2379
}
 
2380
_ACEOF
 
2381
rm -f conftest.$ac_objext
 
2382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2383
  (eval $ac_compile) 2>conftest.er1
 
2384
  ac_status=$?
 
2385
  grep -v '^ *+' conftest.er1 >conftest.err
 
2386
  rm -f conftest.er1
 
2387
  cat conftest.err >&5
 
2388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2389
  (exit $ac_status); } &&
 
2390
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2391
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2392
  (eval $ac_try) 2>&5
 
2393
  ac_status=$?
 
2394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2395
  (exit $ac_status); }; } &&
 
2396
         { ac_try='test -s conftest.$ac_objext'
 
2397
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2398
  (eval $ac_try) 2>&5
 
2399
  ac_status=$?
 
2400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2401
  (exit $ac_status); }; }; then
 
2402
  ac_compiler_gnu=yes
 
2403
else
 
2404
  echo "$as_me: failed program was:" >&5
 
2405
sed 's/^/| /' conftest.$ac_ext >&5
 
2406
 
 
2407
ac_compiler_gnu=no
 
2408
fi
 
2409
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2410
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2411
 
 
2412
fi
 
2413
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2414
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2415
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2416
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2417
ac_save_CXXFLAGS=$CXXFLAGS
 
2418
CXXFLAGS="-g"
 
2419
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2420
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2421
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2422
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2423
else
 
2424
  cat >conftest.$ac_ext <<_ACEOF
 
2425
/* confdefs.h.  */
 
2426
_ACEOF
 
2427
cat confdefs.h >>conftest.$ac_ext
 
2428
cat >>conftest.$ac_ext <<_ACEOF
 
2429
/* end confdefs.h.  */
 
2430
 
 
2431
int
 
2432
main ()
 
2433
{
 
2434
 
 
2435
  ;
 
2436
  return 0;
 
2437
}
 
2438
_ACEOF
 
2439
rm -f conftest.$ac_objext
 
2440
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2441
  (eval $ac_compile) 2>conftest.er1
 
2442
  ac_status=$?
 
2443
  grep -v '^ *+' conftest.er1 >conftest.err
 
2444
  rm -f conftest.er1
 
2445
  cat conftest.err >&5
 
2446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2447
  (exit $ac_status); } &&
 
2448
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2450
  (eval $ac_try) 2>&5
 
2451
  ac_status=$?
 
2452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2453
  (exit $ac_status); }; } &&
 
2454
         { ac_try='test -s conftest.$ac_objext'
 
2455
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2456
  (eval $ac_try) 2>&5
 
2457
  ac_status=$?
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); }; }; then
 
2460
  ac_cv_prog_cxx_g=yes
 
2461
else
 
2462
  echo "$as_me: failed program was:" >&5
 
2463
sed 's/^/| /' conftest.$ac_ext >&5
 
2464
 
 
2465
ac_cv_prog_cxx_g=no
 
2466
fi
 
2467
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2468
fi
 
2469
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2470
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
2471
if test "$ac_test_CXXFLAGS" = set; then
 
2472
  CXXFLAGS=$ac_save_CXXFLAGS
 
2473
elif test $ac_cv_prog_cxx_g = yes; then
 
2474
  if test "$GXX" = yes; then
 
2475
    CXXFLAGS="-g -O2"
 
2476
  else
 
2477
    CXXFLAGS="-g"
 
2478
  fi
 
2479
else
 
2480
  if test "$GXX" = yes; then
 
2481
    CXXFLAGS="-O2"
 
2482
  else
 
2483
    CXXFLAGS=
 
2484
  fi
 
2485
fi
 
2486
for ac_declaration in \
 
2487
   '' \
 
2488
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2489
   'extern "C" void std::exit (int); using std::exit;' \
 
2490
   'extern "C" void exit (int) throw ();' \
 
2491
   'extern "C" void exit (int);' \
 
2492
   'void exit (int);'
 
2493
do
 
2494
  cat >conftest.$ac_ext <<_ACEOF
 
2495
/* confdefs.h.  */
 
2496
_ACEOF
 
2497
cat confdefs.h >>conftest.$ac_ext
 
2498
cat >>conftest.$ac_ext <<_ACEOF
 
2499
/* end confdefs.h.  */
 
2500
$ac_declaration
 
2501
#include <stdlib.h>
 
2502
int
 
2503
main ()
 
2504
{
 
2505
exit (42);
 
2506
  ;
 
2507
  return 0;
 
2508
}
 
2509
_ACEOF
 
2510
rm -f conftest.$ac_objext
 
2511
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2512
  (eval $ac_compile) 2>conftest.er1
 
2513
  ac_status=$?
 
2514
  grep -v '^ *+' conftest.er1 >conftest.err
 
2515
  rm -f conftest.er1
 
2516
  cat conftest.err >&5
 
2517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2518
  (exit $ac_status); } &&
 
2519
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2521
  (eval $ac_try) 2>&5
 
2522
  ac_status=$?
 
2523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2524
  (exit $ac_status); }; } &&
 
2525
         { ac_try='test -s conftest.$ac_objext'
 
2526
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2527
  (eval $ac_try) 2>&5
 
2528
  ac_status=$?
 
2529
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2530
  (exit $ac_status); }; }; then
 
2531
  :
 
2532
else
 
2533
  echo "$as_me: failed program was:" >&5
 
2534
sed 's/^/| /' conftest.$ac_ext >&5
 
2535
 
 
2536
continue
 
2537
fi
 
2538
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2539
  cat >conftest.$ac_ext <<_ACEOF
 
2540
/* confdefs.h.  */
 
2541
_ACEOF
 
2542
cat confdefs.h >>conftest.$ac_ext
 
2543
cat >>conftest.$ac_ext <<_ACEOF
 
2544
/* end confdefs.h.  */
 
2545
$ac_declaration
 
2546
int
 
2547
main ()
 
2548
{
 
2549
exit (42);
 
2550
  ;
 
2551
  return 0;
 
2552
}
 
2553
_ACEOF
 
2554
rm -f conftest.$ac_objext
 
2555
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2556
  (eval $ac_compile) 2>conftest.er1
 
2557
  ac_status=$?
 
2558
  grep -v '^ *+' conftest.er1 >conftest.err
 
2559
  rm -f conftest.er1
 
2560
  cat conftest.err >&5
 
2561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2562
  (exit $ac_status); } &&
 
2563
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2564
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2565
  (eval $ac_try) 2>&5
 
2566
  ac_status=$?
 
2567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2568
  (exit $ac_status); }; } &&
 
2569
         { ac_try='test -s conftest.$ac_objext'
 
2570
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2571
  (eval $ac_try) 2>&5
 
2572
  ac_status=$?
 
2573
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2574
  (exit $ac_status); }; }; then
 
2575
  break
 
2576
else
 
2577
  echo "$as_me: failed program was:" >&5
 
2578
sed 's/^/| /' conftest.$ac_ext >&5
 
2579
 
 
2580
fi
 
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2582
done
 
2583
rm -f conftest*
 
2584
if test -n "$ac_declaration"; then
 
2585
  echo '#ifdef __cplusplus' >>confdefs.h
 
2586
  echo $ac_declaration      >>confdefs.h
 
2587
  echo '#endif'             >>confdefs.h
 
2588
fi
 
2589
 
 
2590
ac_ext=cc
 
2591
ac_cpp='$CXXCPP $CPPFLAGS'
 
2592
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2593
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2594
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2595
 
 
2596
depcc="$CXX"  am_compiler_list=
 
2597
 
 
2598
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2599
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2600
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
2601
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2602
else
 
2603
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2604
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2605
  # making bogus files that we don't know about and never remove.  For
 
2606
  # instance it was reported that on HP-UX the gcc test will end up
 
2607
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2608
  # in D'.
 
2609
  mkdir conftest.dir
 
2610
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2611
  # using a relative directory.
 
2612
  cp "$am_depcomp" conftest.dir
 
2613
  cd conftest.dir
 
2614
  # We will build objects and dependencies in a subdirectory because
 
2615
  # it helps to detect inapplicable dependency modes.  For instance
 
2616
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2617
  # side effect of compilation, but ICC will put the dependencies in
 
2618
  # the current directory while Tru64 will put them in the object
 
2619
  # directory.
 
2620
  mkdir sub
 
2621
 
 
2622
  am_cv_CXX_dependencies_compiler_type=none
 
2623
  if test "$am_compiler_list" = ""; then
 
2624
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2625
  fi
 
2626
  for depmode in $am_compiler_list; do
 
2627
    # Setup a source with many dependencies, because some compilers
 
2628
    # like to wrap large dependency lists on column 80 (with \), and
 
2629
    # we should not choose a depcomp mode which is confused by this.
 
2630
    #
 
2631
    # We need to recreate these files for each test, as the compiler may
 
2632
    # overwrite some of them when testing with obscure command lines.
 
2633
    # This happens at least with the AIX C compiler.
 
2634
    : > sub/conftest.c
 
2635
    for i in 1 2 3 4 5 6; do
 
2636
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2637
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2638
      # Solaris 8's {/usr,}/bin/sh.
 
2639
      touch sub/conftst$i.h
 
2640
    done
 
2641
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2642
 
 
2643
    case $depmode in
 
2644
    nosideeffect)
 
2645
      # after this tag, mechanisms are not by side-effect, so they'll
 
2646
      # only be used when explicitly requested
 
2647
      if test "x$enable_dependency_tracking" = xyes; then
 
2648
        continue
 
2649
      else
 
2650
        break
 
2651
      fi
 
2652
      ;;
 
2653
    none) break ;;
 
2654
    esac
 
2655
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2656
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2657
    # handle `-M -o', and we need to detect this.
 
2658
    if depmode=$depmode \
 
2659
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2660
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2661
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2662
         >/dev/null 2>conftest.err &&
 
2663
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2664
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2665
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2666
      # icc doesn't choke on unknown options, it will just issue warnings
 
2667
      # or remarks (even with -Werror).  So we grep stderr for any message
 
2668
      # that says an option was ignored or not supported.
 
2669
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
2670
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
2671
      # The diagnosis changed in icc 8.0:
 
2672
      #   icc: Command line remark: option '-MP' not supported
 
2673
      if (grep 'ignoring option' conftest.err ||
 
2674
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
2675
        am_cv_CXX_dependencies_compiler_type=$depmode
 
2676
        break
 
2677
      fi
 
2678
    fi
 
2679
  done
 
2680
 
 
2681
  cd ..
 
2682
  rm -rf conftest.dir
 
2683
else
 
2684
  am_cv_CXX_dependencies_compiler_type=none
 
2685
fi
 
2686
 
 
2687
fi
 
2688
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
2689
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
2690
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
2691
 
 
2692
 
 
2693
 
 
2694
if
 
2695
  test "x$enable_dependency_tracking" != xno \
 
2696
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
2697
  am__fastdepCXX_TRUE=
 
2698
  am__fastdepCXX_FALSE='#'
 
2699
else
 
2700
  am__fastdepCXX_TRUE='#'
 
2701
  am__fastdepCXX_FALSE=
 
2702
fi
 
2703
 
 
2704
 
 
2705
 
 
2706
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
2707
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
2708
if test "${ac_cv_search_strerror+set}" = set; then
 
2709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2710
else
 
2711
  ac_func_search_save_LIBS=$LIBS
 
2712
ac_cv_search_strerror=no
 
2713
cat >conftest.$ac_ext <<_ACEOF
 
2714
/* confdefs.h.  */
 
2715
_ACEOF
 
2716
cat confdefs.h >>conftest.$ac_ext
 
2717
cat >>conftest.$ac_ext <<_ACEOF
 
2718
/* end confdefs.h.  */
 
2719
 
 
2720
/* Override any gcc2 internal prototype to avoid an error.  */
 
2721
#ifdef __cplusplus
 
2722
extern "C"
 
2723
#endif
 
2724
/* We use char because int might match the return type of a gcc2
 
2725
   builtin and then its argument prototype would still apply.  */
 
2726
char strerror ();
 
2727
int
 
2728
main ()
 
2729
{
 
2730
strerror ();
 
2731
  ;
 
2732
  return 0;
 
2733
}
 
2734
_ACEOF
 
2735
rm -f conftest.$ac_objext conftest$ac_exeext
 
2736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2737
  (eval $ac_link) 2>conftest.er1
 
2738
  ac_status=$?
 
2739
  grep -v '^ *+' conftest.er1 >conftest.err
 
2740
  rm -f conftest.er1
 
2741
  cat conftest.err >&5
 
2742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2743
  (exit $ac_status); } &&
 
2744
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2746
  (eval $ac_try) 2>&5
 
2747
  ac_status=$?
 
2748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2749
  (exit $ac_status); }; } &&
 
2750
         { ac_try='test -s conftest$ac_exeext'
 
2751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2752
  (eval $ac_try) 2>&5
 
2753
  ac_status=$?
 
2754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2755
  (exit $ac_status); }; }; then
 
2756
  ac_cv_search_strerror="none required"
 
2757
else
 
2758
  echo "$as_me: failed program was:" >&5
 
2759
sed 's/^/| /' conftest.$ac_ext >&5
 
2760
 
 
2761
fi
 
2762
rm -f conftest.err conftest.$ac_objext \
 
2763
      conftest$ac_exeext conftest.$ac_ext
 
2764
if test "$ac_cv_search_strerror" = no; then
 
2765
  for ac_lib in cposix; do
 
2766
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
2767
    cat >conftest.$ac_ext <<_ACEOF
 
2768
/* confdefs.h.  */
 
2769
_ACEOF
 
2770
cat confdefs.h >>conftest.$ac_ext
 
2771
cat >>conftest.$ac_ext <<_ACEOF
 
2772
/* end confdefs.h.  */
 
2773
 
 
2774
/* Override any gcc2 internal prototype to avoid an error.  */
 
2775
#ifdef __cplusplus
 
2776
extern "C"
 
2777
#endif
 
2778
/* We use char because int might match the return type of a gcc2
 
2779
   builtin and then its argument prototype would still apply.  */
 
2780
char strerror ();
 
2781
int
 
2782
main ()
 
2783
{
 
2784
strerror ();
 
2785
  ;
 
2786
  return 0;
 
2787
}
 
2788
_ACEOF
 
2789
rm -f conftest.$ac_objext conftest$ac_exeext
 
2790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2791
  (eval $ac_link) 2>conftest.er1
 
2792
  ac_status=$?
 
2793
  grep -v '^ *+' conftest.er1 >conftest.err
 
2794
  rm -f conftest.er1
 
2795
  cat conftest.err >&5
 
2796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2797
  (exit $ac_status); } &&
 
2798
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2800
  (eval $ac_try) 2>&5
 
2801
  ac_status=$?
 
2802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2803
  (exit $ac_status); }; } &&
 
2804
         { ac_try='test -s conftest$ac_exeext'
 
2805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2806
  (eval $ac_try) 2>&5
 
2807
  ac_status=$?
 
2808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2809
  (exit $ac_status); }; }; then
 
2810
  ac_cv_search_strerror="-l$ac_lib"
 
2811
break
 
2812
else
 
2813
  echo "$as_me: failed program was:" >&5
 
2814
sed 's/^/| /' conftest.$ac_ext >&5
 
2815
 
 
2816
fi
 
2817
rm -f conftest.err conftest.$ac_objext \
 
2818
      conftest$ac_exeext conftest.$ac_ext
 
2819
  done
 
2820
fi
 
2821
LIBS=$ac_func_search_save_LIBS
 
2822
fi
 
2823
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
2824
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
2825
if test "$ac_cv_search_strerror" != no; then
 
2826
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
2827
 
 
2828
fi
 
2829
 
 
2830
ac_ext=cc
 
2831
ac_cpp='$CXXCPP $CPPFLAGS'
 
2832
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2833
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2834
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2835
if test -n "$ac_tool_prefix"; then
 
2836
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2837
  do
 
2838
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2839
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2840
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2842
if test "${ac_cv_prog_CXX+set}" = set; then
 
2843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2844
else
 
2845
  if test -n "$CXX"; then
 
2846
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2847
else
 
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2849
for as_dir in $PATH
 
2850
do
 
2851
  IFS=$as_save_IFS
 
2852
  test -z "$as_dir" && as_dir=.
 
2853
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2855
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2856
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2857
    break 2
 
2858
  fi
 
2859
done
 
2860
done
 
2861
 
 
2862
fi
 
2863
fi
 
2864
CXX=$ac_cv_prog_CXX
 
2865
if test -n "$CXX"; then
 
2866
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2867
echo "${ECHO_T}$CXX" >&6
 
2868
else
 
2869
  echo "$as_me:$LINENO: result: no" >&5
 
2870
echo "${ECHO_T}no" >&6
 
2871
fi
 
2872
 
 
2873
    test -n "$CXX" && break
 
2874
  done
 
2875
fi
 
2876
if test -z "$CXX"; then
 
2877
  ac_ct_CXX=$CXX
 
2878
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2879
do
 
2880
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2881
set dummy $ac_prog; ac_word=$2
 
2882
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2884
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2886
else
 
2887
  if test -n "$ac_ct_CXX"; then
 
2888
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2889
else
 
2890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2891
for as_dir in $PATH
 
2892
do
 
2893
  IFS=$as_save_IFS
 
2894
  test -z "$as_dir" && as_dir=.
 
2895
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2896
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2897
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2898
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2899
    break 2
 
2900
  fi
 
2901
done
 
2902
done
 
2903
 
 
2904
fi
 
2905
fi
 
2906
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2907
if test -n "$ac_ct_CXX"; then
 
2908
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2909
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2910
else
 
2911
  echo "$as_me:$LINENO: result: no" >&5
 
2912
echo "${ECHO_T}no" >&6
 
2913
fi
 
2914
 
 
2915
  test -n "$ac_ct_CXX" && break
 
2916
done
 
2917
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2918
 
 
2919
  CXX=$ac_ct_CXX
 
2920
fi
 
2921
 
 
2922
 
 
2923
# Provide some information about the compiler.
 
2924
echo "$as_me:$LINENO:" \
 
2925
     "checking for C++ compiler version" >&5
 
2926
ac_compiler=`set X $ac_compile; echo $2`
 
2927
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2928
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2929
  ac_status=$?
 
2930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2931
  (exit $ac_status); }
 
2932
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2933
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2934
  ac_status=$?
 
2935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2936
  (exit $ac_status); }
 
2937
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2938
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2939
  ac_status=$?
 
2940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2941
  (exit $ac_status); }
 
2942
 
 
2943
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2944
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2945
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2946
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2947
else
 
2948
  cat >conftest.$ac_ext <<_ACEOF
 
2949
/* confdefs.h.  */
 
2950
_ACEOF
 
2951
cat confdefs.h >>conftest.$ac_ext
 
2952
cat >>conftest.$ac_ext <<_ACEOF
 
2953
/* end confdefs.h.  */
 
2954
 
 
2955
int
 
2956
main ()
 
2957
{
 
2958
#ifndef __GNUC__
 
2959
       choke me
 
2960
#endif
 
2961
 
 
2962
  ;
 
2963
  return 0;
 
2964
}
 
2965
_ACEOF
 
2966
rm -f conftest.$ac_objext
 
2967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2968
  (eval $ac_compile) 2>conftest.er1
 
2969
  ac_status=$?
 
2970
  grep -v '^ *+' conftest.er1 >conftest.err
 
2971
  rm -f conftest.er1
 
2972
  cat conftest.err >&5
 
2973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2974
  (exit $ac_status); } &&
 
2975
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2977
  (eval $ac_try) 2>&5
 
2978
  ac_status=$?
 
2979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2980
  (exit $ac_status); }; } &&
 
2981
         { ac_try='test -s conftest.$ac_objext'
 
2982
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2983
  (eval $ac_try) 2>&5
 
2984
  ac_status=$?
 
2985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2986
  (exit $ac_status); }; }; then
 
2987
  ac_compiler_gnu=yes
 
2988
else
 
2989
  echo "$as_me: failed program was:" >&5
 
2990
sed 's/^/| /' conftest.$ac_ext >&5
 
2991
 
 
2992
ac_compiler_gnu=no
 
2993
fi
 
2994
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2995
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2996
 
 
2997
fi
 
2998
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2999
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
3000
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
3001
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3002
ac_save_CXXFLAGS=$CXXFLAGS
 
3003
CXXFLAGS="-g"
 
3004
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3005
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
3006
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3007
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3008
else
 
3009
  cat >conftest.$ac_ext <<_ACEOF
 
3010
/* confdefs.h.  */
 
3011
_ACEOF
 
3012
cat confdefs.h >>conftest.$ac_ext
 
3013
cat >>conftest.$ac_ext <<_ACEOF
 
3014
/* end confdefs.h.  */
 
3015
 
 
3016
int
 
3017
main ()
 
3018
{
 
3019
 
 
3020
  ;
 
3021
  return 0;
 
3022
}
 
3023
_ACEOF
 
3024
rm -f conftest.$ac_objext
 
3025
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3026
  (eval $ac_compile) 2>conftest.er1
 
3027
  ac_status=$?
 
3028
  grep -v '^ *+' conftest.er1 >conftest.err
 
3029
  rm -f conftest.er1
 
3030
  cat conftest.err >&5
 
3031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3032
  (exit $ac_status); } &&
 
3033
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3034
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3035
  (eval $ac_try) 2>&5
 
3036
  ac_status=$?
 
3037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3038
  (exit $ac_status); }; } &&
 
3039
         { ac_try='test -s conftest.$ac_objext'
 
3040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3041
  (eval $ac_try) 2>&5
 
3042
  ac_status=$?
 
3043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3044
  (exit $ac_status); }; }; then
 
3045
  ac_cv_prog_cxx_g=yes
 
3046
else
 
3047
  echo "$as_me: failed program was:" >&5
 
3048
sed 's/^/| /' conftest.$ac_ext >&5
 
3049
 
 
3050
ac_cv_prog_cxx_g=no
 
3051
fi
 
3052
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3053
fi
 
3054
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3055
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
3056
if test "$ac_test_CXXFLAGS" = set; then
 
3057
  CXXFLAGS=$ac_save_CXXFLAGS
 
3058
elif test $ac_cv_prog_cxx_g = yes; then
 
3059
  if test "$GXX" = yes; then
 
3060
    CXXFLAGS="-g -O2"
 
3061
  else
 
3062
    CXXFLAGS="-g"
 
3063
  fi
 
3064
else
 
3065
  if test "$GXX" = yes; then
 
3066
    CXXFLAGS="-O2"
 
3067
  else
 
3068
    CXXFLAGS=
 
3069
  fi
 
3070
fi
 
3071
for ac_declaration in \
 
3072
   '' \
 
3073
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3074
   'extern "C" void std::exit (int); using std::exit;' \
 
3075
   'extern "C" void exit (int) throw ();' \
 
3076
   'extern "C" void exit (int);' \
 
3077
   'void exit (int);'
 
3078
do
 
3079
  cat >conftest.$ac_ext <<_ACEOF
 
3080
/* confdefs.h.  */
 
3081
_ACEOF
 
3082
cat confdefs.h >>conftest.$ac_ext
 
3083
cat >>conftest.$ac_ext <<_ACEOF
 
3084
/* end confdefs.h.  */
 
3085
$ac_declaration
 
3086
#include <stdlib.h>
 
3087
int
 
3088
main ()
 
3089
{
 
3090
exit (42);
 
3091
  ;
 
3092
  return 0;
 
3093
}
 
3094
_ACEOF
 
3095
rm -f conftest.$ac_objext
 
3096
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3097
  (eval $ac_compile) 2>conftest.er1
 
3098
  ac_status=$?
 
3099
  grep -v '^ *+' conftest.er1 >conftest.err
 
3100
  rm -f conftest.er1
 
3101
  cat conftest.err >&5
 
3102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3103
  (exit $ac_status); } &&
 
3104
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3105
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3106
  (eval $ac_try) 2>&5
 
3107
  ac_status=$?
 
3108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3109
  (exit $ac_status); }; } &&
 
3110
         { ac_try='test -s conftest.$ac_objext'
 
3111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3112
  (eval $ac_try) 2>&5
 
3113
  ac_status=$?
 
3114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3115
  (exit $ac_status); }; }; then
 
3116
  :
 
3117
else
 
3118
  echo "$as_me: failed program was:" >&5
 
3119
sed 's/^/| /' conftest.$ac_ext >&5
 
3120
 
 
3121
continue
 
3122
fi
 
3123
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3124
  cat >conftest.$ac_ext <<_ACEOF
 
3125
/* confdefs.h.  */
 
3126
_ACEOF
 
3127
cat confdefs.h >>conftest.$ac_ext
 
3128
cat >>conftest.$ac_ext <<_ACEOF
 
3129
/* end confdefs.h.  */
 
3130
$ac_declaration
 
3131
int
 
3132
main ()
 
3133
{
 
3134
exit (42);
 
3135
  ;
 
3136
  return 0;
 
3137
}
 
3138
_ACEOF
 
3139
rm -f conftest.$ac_objext
 
3140
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3141
  (eval $ac_compile) 2>conftest.er1
 
3142
  ac_status=$?
 
3143
  grep -v '^ *+' conftest.er1 >conftest.err
 
3144
  rm -f conftest.er1
 
3145
  cat conftest.err >&5
 
3146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3147
  (exit $ac_status); } &&
 
3148
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
3149
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3150
  (eval $ac_try) 2>&5
 
3151
  ac_status=$?
 
3152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3153
  (exit $ac_status); }; } &&
 
3154
         { ac_try='test -s conftest.$ac_objext'
 
3155
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3156
  (eval $ac_try) 2>&5
 
3157
  ac_status=$?
 
3158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3159
  (exit $ac_status); }; }; then
 
3160
  break
 
3161
else
 
3162
  echo "$as_me: failed program was:" >&5
 
3163
sed 's/^/| /' conftest.$ac_ext >&5
 
3164
 
 
3165
fi
 
3166
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3167
done
 
3168
rm -f conftest*
 
3169
if test -n "$ac_declaration"; then
 
3170
  echo '#ifdef __cplusplus' >>confdefs.h
 
3171
  echo $ac_declaration      >>confdefs.h
 
3172
  echo '#endif'             >>confdefs.h
 
3173
fi
 
3174
 
 
3175
ac_ext=cc
 
3176
ac_cpp='$CXXCPP $CPPFLAGS'
 
3177
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3178
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3179
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3180
 
 
3181
depcc="$CXX"  am_compiler_list=
 
3182
 
 
3183
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3184
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3185
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3186
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3187
else
 
3188
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3189
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3190
  # making bogus files that we don't know about and never remove.  For
 
3191
  # instance it was reported that on HP-UX the gcc test will end up
 
3192
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3193
  # in D'.
 
3194
  mkdir conftest.dir
 
3195
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3196
  # using a relative directory.
 
3197
  cp "$am_depcomp" conftest.dir
 
3198
  cd conftest.dir
 
3199
  # We will build objects and dependencies in a subdirectory because
 
3200
  # it helps to detect inapplicable dependency modes.  For instance
 
3201
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3202
  # side effect of compilation, but ICC will put the dependencies in
 
3203
  # the current directory while Tru64 will put them in the object
 
3204
  # directory.
 
3205
  mkdir sub
 
3206
 
 
3207
  am_cv_CXX_dependencies_compiler_type=none
 
3208
  if test "$am_compiler_list" = ""; then
 
3209
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3210
  fi
 
3211
  for depmode in $am_compiler_list; do
 
3212
    # Setup a source with many dependencies, because some compilers
 
3213
    # like to wrap large dependency lists on column 80 (with \), and
 
3214
    # we should not choose a depcomp mode which is confused by this.
 
3215
    #
 
3216
    # We need to recreate these files for each test, as the compiler may
 
3217
    # overwrite some of them when testing with obscure command lines.
 
3218
    # This happens at least with the AIX C compiler.
 
3219
    : > sub/conftest.c
 
3220
    for i in 1 2 3 4 5 6; do
 
3221
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3222
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3223
      # Solaris 8's {/usr,}/bin/sh.
 
3224
      touch sub/conftst$i.h
 
3225
    done
 
3226
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3227
 
 
3228
    case $depmode in
 
3229
    nosideeffect)
 
3230
      # after this tag, mechanisms are not by side-effect, so they'll
 
3231
      # only be used when explicitly requested
 
3232
      if test "x$enable_dependency_tracking" = xyes; then
 
3233
        continue
 
3234
      else
 
3235
        break
 
3236
      fi
 
3237
      ;;
 
3238
    none) break ;;
 
3239
    esac
 
3240
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3241
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3242
    # handle `-M -o', and we need to detect this.
 
3243
    if depmode=$depmode \
 
3244
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3245
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3246
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3247
         >/dev/null 2>conftest.err &&
 
3248
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3249
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3250
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3251
      # icc doesn't choke on unknown options, it will just issue warnings
 
3252
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3253
      # that says an option was ignored or not supported.
 
3254
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3255
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3256
      # The diagnosis changed in icc 8.0:
 
3257
      #   icc: Command line remark: option '-MP' not supported
 
3258
      if (grep 'ignoring option' conftest.err ||
 
3259
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3260
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3261
        break
 
3262
      fi
 
3263
    fi
 
3264
  done
 
3265
 
 
3266
  cd ..
 
3267
  rm -rf conftest.dir
 
3268
else
 
3269
  am_cv_CXX_dependencies_compiler_type=none
 
3270
fi
 
3271
 
 
3272
fi
 
3273
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3274
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3275
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3276
 
 
3277
 
 
3278
 
 
3279
if
 
3280
  test "x$enable_dependency_tracking" != xno \
 
3281
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3282
  am__fastdepCXX_TRUE=
 
3283
  am__fastdepCXX_FALSE='#'
 
3284
else
 
3285
  am__fastdepCXX_TRUE='#'
 
3286
  am__fastdepCXX_FALSE=
 
3287
fi
 
3288
 
 
3289
 
 
3290
ac_ext=cc
 
3291
ac_cpp='$CXXCPP $CPPFLAGS'
 
3292
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3293
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3294
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3295
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
3296
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
3297
if test -z "$CXXCPP"; then
 
3298
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
3299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3300
else
 
3301
      # Double quotes because CXXCPP needs to be expanded
 
3302
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
3303
    do
 
3304
      ac_preproc_ok=false
 
3305
for ac_cxx_preproc_warn_flag in '' yes
 
3306
do
 
3307
  # Use a header file that comes with gcc, so configuring glibc
 
3308
  # with a fresh cross-compiler works.
 
3309
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3310
  # <limits.h> exists even on freestanding compilers.
 
3311
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3312
  # not just through cpp. "Syntax error" is here to catch this case.
 
3313
  cat >conftest.$ac_ext <<_ACEOF
 
3314
/* confdefs.h.  */
 
3315
_ACEOF
 
3316
cat confdefs.h >>conftest.$ac_ext
 
3317
cat >>conftest.$ac_ext <<_ACEOF
 
3318
/* end confdefs.h.  */
 
3319
#ifdef __STDC__
 
3320
# include <limits.h>
 
3321
#else
 
3322
# include <assert.h>
 
3323
#endif
 
3324
                     Syntax error
 
3325
_ACEOF
 
3326
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3327
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3328
  ac_status=$?
 
3329
  grep -v '^ *+' conftest.er1 >conftest.err
 
3330
  rm -f conftest.er1
 
3331
  cat conftest.err >&5
 
3332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3333
  (exit $ac_status); } >/dev/null; then
 
3334
  if test -s conftest.err; then
 
3335
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3336
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
3337
  else
 
3338
    ac_cpp_err=
 
3339
  fi
 
3340
else
 
3341
  ac_cpp_err=yes
 
3342
fi
 
3343
if test -z "$ac_cpp_err"; then
 
3344
  :
 
3345
else
 
3346
  echo "$as_me: failed program was:" >&5
 
3347
sed 's/^/| /' conftest.$ac_ext >&5
 
3348
 
 
3349
  # Broken: fails on valid input.
 
3350
continue
 
3351
fi
 
3352
rm -f conftest.err conftest.$ac_ext
 
3353
 
 
3354
  # OK, works on sane cases.  Now check whether non-existent headers
 
3355
  # can be detected and how.
 
3356
  cat >conftest.$ac_ext <<_ACEOF
 
3357
/* confdefs.h.  */
 
3358
_ACEOF
 
3359
cat confdefs.h >>conftest.$ac_ext
 
3360
cat >>conftest.$ac_ext <<_ACEOF
 
3361
/* end confdefs.h.  */
 
3362
#include <ac_nonexistent.h>
 
3363
_ACEOF
 
3364
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3365
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3366
  ac_status=$?
 
3367
  grep -v '^ *+' conftest.er1 >conftest.err
 
3368
  rm -f conftest.er1
 
3369
  cat conftest.err >&5
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3371
  (exit $ac_status); } >/dev/null; then
 
3372
  if test -s conftest.err; then
 
3373
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3374
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
3375
  else
 
3376
    ac_cpp_err=
 
3377
  fi
 
3378
else
 
3379
  ac_cpp_err=yes
 
3380
fi
 
3381
if test -z "$ac_cpp_err"; then
 
3382
  # Broken: success on invalid input.
 
3383
continue
 
3384
else
 
3385
  echo "$as_me: failed program was:" >&5
 
3386
sed 's/^/| /' conftest.$ac_ext >&5
 
3387
 
 
3388
  # Passes both tests.
 
3389
ac_preproc_ok=:
 
3390
break
 
3391
fi
 
3392
rm -f conftest.err conftest.$ac_ext
 
3393
 
 
3394
done
 
3395
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3396
rm -f conftest.err conftest.$ac_ext
 
3397
if $ac_preproc_ok; then
 
3398
  break
 
3399
fi
 
3400
 
 
3401
    done
 
3402
    ac_cv_prog_CXXCPP=$CXXCPP
 
3403
 
 
3404
fi
 
3405
  CXXCPP=$ac_cv_prog_CXXCPP
 
3406
else
 
3407
  ac_cv_prog_CXXCPP=$CXXCPP
 
3408
fi
 
3409
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
3410
echo "${ECHO_T}$CXXCPP" >&6
 
3411
ac_preproc_ok=false
 
3412
for ac_cxx_preproc_warn_flag in '' yes
 
3413
do
 
3414
  # Use a header file that comes with gcc, so configuring glibc
 
3415
  # with a fresh cross-compiler works.
 
3416
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3417
  # <limits.h> exists even on freestanding compilers.
 
3418
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3419
  # not just through cpp. "Syntax error" is here to catch this case.
 
3420
  cat >conftest.$ac_ext <<_ACEOF
 
3421
/* confdefs.h.  */
 
3422
_ACEOF
 
3423
cat confdefs.h >>conftest.$ac_ext
 
3424
cat >>conftest.$ac_ext <<_ACEOF
 
3425
/* end confdefs.h.  */
 
3426
#ifdef __STDC__
 
3427
# include <limits.h>
 
3428
#else
 
3429
# include <assert.h>
 
3430
#endif
 
3431
                     Syntax error
 
3432
_ACEOF
 
3433
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3434
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3435
  ac_status=$?
 
3436
  grep -v '^ *+' conftest.er1 >conftest.err
 
3437
  rm -f conftest.er1
 
3438
  cat conftest.err >&5
 
3439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3440
  (exit $ac_status); } >/dev/null; then
 
3441
  if test -s conftest.err; then
 
3442
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3443
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
3444
  else
 
3445
    ac_cpp_err=
 
3446
  fi
 
3447
else
 
3448
  ac_cpp_err=yes
 
3449
fi
 
3450
if test -z "$ac_cpp_err"; then
 
3451
  :
 
3452
else
 
3453
  echo "$as_me: failed program was:" >&5
 
3454
sed 's/^/| /' conftest.$ac_ext >&5
 
3455
 
 
3456
  # Broken: fails on valid input.
 
3457
continue
 
3458
fi
 
3459
rm -f conftest.err conftest.$ac_ext
 
3460
 
 
3461
  # OK, works on sane cases.  Now check whether non-existent headers
 
3462
  # can be detected and how.
 
3463
  cat >conftest.$ac_ext <<_ACEOF
 
3464
/* confdefs.h.  */
 
3465
_ACEOF
 
3466
cat confdefs.h >>conftest.$ac_ext
 
3467
cat >>conftest.$ac_ext <<_ACEOF
 
3468
/* end confdefs.h.  */
 
3469
#include <ac_nonexistent.h>
 
3470
_ACEOF
 
3471
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3472
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3473
  ac_status=$?
 
3474
  grep -v '^ *+' conftest.er1 >conftest.err
 
3475
  rm -f conftest.er1
 
3476
  cat conftest.err >&5
 
3477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3478
  (exit $ac_status); } >/dev/null; then
 
3479
  if test -s conftest.err; then
 
3480
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
3481
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
3482
  else
 
3483
    ac_cpp_err=
 
3484
  fi
 
3485
else
 
3486
  ac_cpp_err=yes
 
3487
fi
 
3488
if test -z "$ac_cpp_err"; then
 
3489
  # Broken: success on invalid input.
 
3490
continue
 
3491
else
 
3492
  echo "$as_me: failed program was:" >&5
 
3493
sed 's/^/| /' conftest.$ac_ext >&5
 
3494
 
 
3495
  # Passes both tests.
 
3496
ac_preproc_ok=:
 
3497
break
 
3498
fi
 
3499
rm -f conftest.err conftest.$ac_ext
 
3500
 
 
3501
done
 
3502
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3503
rm -f conftest.err conftest.$ac_ext
 
3504
if $ac_preproc_ok; then
 
3505
  :
 
3506
else
 
3507
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
3508
See \`config.log' for more details." >&5
 
3509
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
3510
See \`config.log' for more details." >&2;}
 
3511
   { (exit 1); exit 1; }; }
 
3512
fi
 
3513
 
 
3514
ac_ext=cc
 
3515
ac_cpp='$CXXCPP $CPPFLAGS'
 
3516
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3517
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3518
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
3519
 
 
3520
ac_ext=c
 
3521
ac_cpp='$CPP $CPPFLAGS'
 
3522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3525
if test -n "$ac_tool_prefix"; then
 
3526
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3527
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3528
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3530
if test "${ac_cv_prog_CC+set}" = set; then
 
3531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3532
else
 
3533
  if test -n "$CC"; then
 
3534
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3535
else
 
3536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3537
for as_dir in $PATH
 
3538
do
 
3539
  IFS=$as_save_IFS
 
3540
  test -z "$as_dir" && as_dir=.
 
3541
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3542
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3543
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3544
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3545
    break 2
 
3546
  fi
 
3547
done
 
3548
done
 
3549
 
 
3550
fi
 
3551
fi
 
3552
CC=$ac_cv_prog_CC
 
3553
if test -n "$CC"; then
 
3554
  echo "$as_me:$LINENO: result: $CC" >&5
 
3555
echo "${ECHO_T}$CC" >&6
 
3556
else
 
3557
  echo "$as_me:$LINENO: result: no" >&5
 
3558
echo "${ECHO_T}no" >&6
 
3559
fi
 
3560
 
 
3561
fi
 
3562
if test -z "$ac_cv_prog_CC"; then
 
3563
  ac_ct_CC=$CC
 
3564
  # Extract the first word of "gcc", so it can be a program name with args.
 
3565
set dummy gcc; ac_word=$2
 
3566
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3568
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3570
else
 
3571
  if test -n "$ac_ct_CC"; then
 
3572
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3573
else
 
3574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3575
for as_dir in $PATH
 
3576
do
 
3577
  IFS=$as_save_IFS
 
3578
  test -z "$as_dir" && as_dir=.
 
3579
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3580
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3581
    ac_cv_prog_ac_ct_CC="gcc"
 
3582
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3583
    break 2
 
3584
  fi
 
3585
done
 
3586
done
 
3587
 
 
3588
fi
 
3589
fi
 
3590
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3591
if test -n "$ac_ct_CC"; then
 
3592
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3593
echo "${ECHO_T}$ac_ct_CC" >&6
 
3594
else
 
3595
  echo "$as_me:$LINENO: result: no" >&5
 
3596
echo "${ECHO_T}no" >&6
 
3597
fi
 
3598
 
 
3599
  CC=$ac_ct_CC
 
3600
else
 
3601
  CC="$ac_cv_prog_CC"
 
3602
fi
 
3603
 
 
3604
if test -z "$CC"; then
 
3605
  if test -n "$ac_tool_prefix"; then
 
3606
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3607
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3608
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3609
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3610
if test "${ac_cv_prog_CC+set}" = set; then
 
3611
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3612
else
 
3613
  if test -n "$CC"; then
 
3614
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3615
else
 
3616
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3617
for as_dir in $PATH
 
3618
do
 
3619
  IFS=$as_save_IFS
 
3620
  test -z "$as_dir" && as_dir=.
 
3621
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3622
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3623
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3624
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3625
    break 2
 
3626
  fi
 
3627
done
 
3628
done
 
3629
 
 
3630
fi
 
3631
fi
 
3632
CC=$ac_cv_prog_CC
 
3633
if test -n "$CC"; then
 
3634
  echo "$as_me:$LINENO: result: $CC" >&5
 
3635
echo "${ECHO_T}$CC" >&6
 
3636
else
 
3637
  echo "$as_me:$LINENO: result: no" >&5
 
3638
echo "${ECHO_T}no" >&6
 
3639
fi
 
3640
 
 
3641
fi
 
3642
if test -z "$ac_cv_prog_CC"; then
 
3643
  ac_ct_CC=$CC
 
3644
  # Extract the first word of "cc", so it can be a program name with args.
 
3645
set dummy cc; ac_word=$2
 
3646
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3647
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3648
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3649
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3650
else
 
3651
  if test -n "$ac_ct_CC"; then
 
3652
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3653
else
 
3654
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3655
for as_dir in $PATH
 
3656
do
 
3657
  IFS=$as_save_IFS
 
3658
  test -z "$as_dir" && as_dir=.
 
3659
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3660
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3661
    ac_cv_prog_ac_ct_CC="cc"
 
3662
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3663
    break 2
 
3664
  fi
 
3665
done
 
3666
done
 
3667
 
 
3668
fi
 
3669
fi
 
3670
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3671
if test -n "$ac_ct_CC"; then
 
3672
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3673
echo "${ECHO_T}$ac_ct_CC" >&6
 
3674
else
 
3675
  echo "$as_me:$LINENO: result: no" >&5
 
3676
echo "${ECHO_T}no" >&6
 
3677
fi
 
3678
 
 
3679
  CC=$ac_ct_CC
 
3680
else
 
3681
  CC="$ac_cv_prog_CC"
 
3682
fi
 
3683
 
 
3684
fi
 
3685
if test -z "$CC"; then
 
3686
  # Extract the first word of "cc", so it can be a program name with args.
 
3687
set dummy cc; ac_word=$2
 
3688
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3689
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3690
if test "${ac_cv_prog_CC+set}" = set; then
 
3691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3692
else
 
3693
  if test -n "$CC"; then
 
3694
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3695
else
 
3696
  ac_prog_rejected=no
 
3697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3698
for as_dir in $PATH
 
3699
do
 
3700
  IFS=$as_save_IFS
 
3701
  test -z "$as_dir" && as_dir=.
 
3702
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3703
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3704
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3705
       ac_prog_rejected=yes
 
3706
       continue
 
3707
     fi
 
3708
    ac_cv_prog_CC="cc"
 
3709
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3710
    break 2
 
3711
  fi
 
3712
done
 
3713
done
 
3714
 
 
3715
if test $ac_prog_rejected = yes; then
 
3716
  # We found a bogon in the path, so make sure we never use it.
 
3717
  set dummy $ac_cv_prog_CC
 
3718
  shift
 
3719
  if test $# != 0; then
 
3720
    # We chose a different compiler from the bogus one.
 
3721
    # However, it has the same basename, so the bogon will be chosen
 
3722
    # first if we set CC to just the basename; use the full file name.
 
3723
    shift
 
3724
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3725
  fi
 
3726
fi
 
3727
fi
 
3728
fi
 
3729
CC=$ac_cv_prog_CC
 
3730
if test -n "$CC"; then
 
3731
  echo "$as_me:$LINENO: result: $CC" >&5
 
3732
echo "${ECHO_T}$CC" >&6
 
3733
else
 
3734
  echo "$as_me:$LINENO: result: no" >&5
 
3735
echo "${ECHO_T}no" >&6
 
3736
fi
 
3737
 
 
3738
fi
 
3739
if test -z "$CC"; then
 
3740
  if test -n "$ac_tool_prefix"; then
 
3741
  for ac_prog in cl
 
3742
  do
 
3743
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3744
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3745
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3746
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3747
if test "${ac_cv_prog_CC+set}" = set; then
 
3748
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3749
else
 
3750
  if test -n "$CC"; then
 
3751
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3752
else
 
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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3760
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3761
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3762
    break 2
 
3763
  fi
 
3764
done
 
3765
done
 
3766
 
 
3767
fi
 
3768
fi
 
3769
CC=$ac_cv_prog_CC
 
3770
if test -n "$CC"; then
 
3771
  echo "$as_me:$LINENO: result: $CC" >&5
 
3772
echo "${ECHO_T}$CC" >&6
 
3773
else
 
3774
  echo "$as_me:$LINENO: result: no" >&5
 
3775
echo "${ECHO_T}no" >&6
 
3776
fi
 
3777
 
 
3778
    test -n "$CC" && break
 
3779
  done
 
3780
fi
 
3781
if test -z "$CC"; then
 
3782
  ac_ct_CC=$CC
 
3783
  for ac_prog in cl
 
3784
do
 
3785
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3786
set dummy $ac_prog; ac_word=$2
 
3787
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3788
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3789
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3790
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3791
else
 
3792
  if test -n "$ac_ct_CC"; then
 
3793
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3794
else
 
3795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3796
for as_dir in $PATH
 
3797
do
 
3798
  IFS=$as_save_IFS
 
3799
  test -z "$as_dir" && as_dir=.
 
3800
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3801
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3802
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3803
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3804
    break 2
 
3805
  fi
 
3806
done
 
3807
done
 
3808
 
 
3809
fi
 
3810
fi
 
3811
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3812
if test -n "$ac_ct_CC"; then
 
3813
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3814
echo "${ECHO_T}$ac_ct_CC" >&6
 
3815
else
 
3816
  echo "$as_me:$LINENO: result: no" >&5
 
3817
echo "${ECHO_T}no" >&6
 
3818
fi
 
3819
 
 
3820
  test -n "$ac_ct_CC" && break
 
3821
done
 
3822
 
 
3823
  CC=$ac_ct_CC
 
3824
fi
 
3825
 
 
3826
fi
 
3827
 
 
3828
 
 
3829
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3830
See \`config.log' for more details." >&5
 
3831
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3832
See \`config.log' for more details." >&2;}
 
3833
   { (exit 1); exit 1; }; }
 
3834
 
 
3835
# Provide some information about the compiler.
 
3836
echo "$as_me:$LINENO:" \
 
3837
     "checking for C compiler version" >&5
 
3838
ac_compiler=`set X $ac_compile; echo $2`
 
3839
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3840
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3841
  ac_status=$?
 
3842
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3843
  (exit $ac_status); }
 
3844
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3845
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3846
  ac_status=$?
 
3847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3848
  (exit $ac_status); }
 
3849
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3850
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3851
  ac_status=$?
 
3852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3853
  (exit $ac_status); }
 
3854
 
 
3855
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3856
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3857
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3858
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3859
else
 
3860
  cat >conftest.$ac_ext <<_ACEOF
 
3861
/* confdefs.h.  */
 
3862
_ACEOF
 
3863
cat confdefs.h >>conftest.$ac_ext
 
3864
cat >>conftest.$ac_ext <<_ACEOF
 
3865
/* end confdefs.h.  */
 
3866
 
 
3867
int
 
3868
main ()
 
3869
{
 
3870
#ifndef __GNUC__
 
3871
       choke me
 
3872
#endif
 
3873
 
 
3874
  ;
 
3875
  return 0;
 
3876
}
 
3877
_ACEOF
 
3878
rm -f conftest.$ac_objext
 
3879
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3880
  (eval $ac_compile) 2>conftest.er1
 
3881
  ac_status=$?
 
3882
  grep -v '^ *+' conftest.er1 >conftest.err
 
3883
  rm -f conftest.er1
 
3884
  cat conftest.err >&5
 
3885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3886
  (exit $ac_status); } &&
 
3887
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3889
  (eval $ac_try) 2>&5
 
3890
  ac_status=$?
 
3891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3892
  (exit $ac_status); }; } &&
 
3893
         { ac_try='test -s conftest.$ac_objext'
 
3894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3895
  (eval $ac_try) 2>&5
 
3896
  ac_status=$?
 
3897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3898
  (exit $ac_status); }; }; then
 
3899
  ac_compiler_gnu=yes
 
3900
else
 
3901
  echo "$as_me: failed program was:" >&5
 
3902
sed 's/^/| /' conftest.$ac_ext >&5
 
3903
 
 
3904
ac_compiler_gnu=no
 
3905
fi
 
3906
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3907
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3908
 
 
3909
fi
 
3910
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3911
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3912
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3913
ac_test_CFLAGS=${CFLAGS+set}
 
3914
ac_save_CFLAGS=$CFLAGS
 
3915
CFLAGS="-g"
 
3916
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3917
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3918
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3920
else
 
3921
  cat >conftest.$ac_ext <<_ACEOF
 
3922
/* confdefs.h.  */
 
3923
_ACEOF
 
3924
cat confdefs.h >>conftest.$ac_ext
 
3925
cat >>conftest.$ac_ext <<_ACEOF
 
3926
/* end confdefs.h.  */
 
3927
 
 
3928
int
 
3929
main ()
 
3930
{
 
3931
 
 
3932
  ;
 
3933
  return 0;
 
3934
}
 
3935
_ACEOF
 
3936
rm -f conftest.$ac_objext
 
3937
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3938
  (eval $ac_compile) 2>conftest.er1
 
3939
  ac_status=$?
 
3940
  grep -v '^ *+' conftest.er1 >conftest.err
 
3941
  rm -f conftest.er1
 
3942
  cat conftest.err >&5
 
3943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3944
  (exit $ac_status); } &&
 
3945
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3946
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3947
  (eval $ac_try) 2>&5
 
3948
  ac_status=$?
 
3949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3950
  (exit $ac_status); }; } &&
 
3951
         { ac_try='test -s conftest.$ac_objext'
 
3952
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3953
  (eval $ac_try) 2>&5
 
3954
  ac_status=$?
 
3955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3956
  (exit $ac_status); }; }; then
 
3957
  ac_cv_prog_cc_g=yes
 
3958
else
 
3959
  echo "$as_me: failed program was:" >&5
 
3960
sed 's/^/| /' conftest.$ac_ext >&5
 
3961
 
 
3962
ac_cv_prog_cc_g=no
 
3963
fi
 
3964
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3965
fi
 
3966
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3967
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3968
if test "$ac_test_CFLAGS" = set; then
 
3969
  CFLAGS=$ac_save_CFLAGS
 
3970
elif test $ac_cv_prog_cc_g = yes; then
 
3971
  if test "$GCC" = yes; then
 
3972
    CFLAGS="-g -O2"
 
3973
  else
 
3974
    CFLAGS="-g"
 
3975
  fi
 
3976
else
 
3977
  if test "$GCC" = yes; then
 
3978
    CFLAGS="-O2"
 
3979
  else
 
3980
    CFLAGS=
 
3981
  fi
 
3982
fi
 
3983
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3984
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3985
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3987
else
 
3988
  ac_cv_prog_cc_stdc=no
 
3989
ac_save_CC=$CC
 
3990
cat >conftest.$ac_ext <<_ACEOF
 
3991
/* confdefs.h.  */
 
3992
_ACEOF
 
3993
cat confdefs.h >>conftest.$ac_ext
 
3994
cat >>conftest.$ac_ext <<_ACEOF
 
3995
/* end confdefs.h.  */
 
3996
#include <stdarg.h>
 
3997
#include <stdio.h>
 
3998
#include <sys/types.h>
 
3999
#include <sys/stat.h>
 
4000
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4001
struct buf { int x; };
 
4002
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4003
static char *e (p, i)
 
4004
     char **p;
 
4005
     int i;
 
4006
{
 
4007
  return p[i];
 
4008
}
 
4009
static char *f (char * (*g) (char **, int), char **p, ...)
 
4010
{
 
4011
  char *s;
 
4012
  va_list v;
 
4013
  va_start (v,p);
 
4014
  s = g (p, va_arg (v,int));
 
4015
  va_end (v);
 
4016
  return s;
 
4017
}
 
4018
 
 
4019
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4020
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4021
   These don't provoke an error unfortunately, instead are silently treated
 
4022
   as 'x'.  The following induces an error, until -std1 is added to get
 
4023
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4024
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4025
   that's true only with -std1.  */
 
4026
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4027
 
 
4028
int test (int i, double x);
 
4029
struct s1 {int (*f) (int a);};
 
4030
struct s2 {int (*f) (double a);};
 
4031
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4032
int argc;
 
4033
char **argv;
 
4034
int
 
4035
main ()
 
4036
{
 
4037
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4038
  ;
 
4039
  return 0;
 
4040
}
 
4041
_ACEOF
 
4042
# Don't try gcc -ansi; that turns off useful extensions and
 
4043
# breaks some systems' header files.
 
4044
# AIX                   -qlanglvl=ansi
 
4045
# Ultrix and OSF/1      -std1
 
4046
# HP-UX 10.20 and later -Ae
 
4047
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
4048
# SVR4                  -Xc -D__EXTENSIONS__
 
4049
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4050
do
 
4051
  CC="$ac_save_CC $ac_arg"
 
4052
  rm -f conftest.$ac_objext
 
4053
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4054
  (eval $ac_compile) 2>conftest.er1
 
4055
  ac_status=$?
 
4056
  grep -v '^ *+' conftest.er1 >conftest.err
 
4057
  rm -f conftest.er1
 
4058
  cat conftest.err >&5
 
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4060
  (exit $ac_status); } &&
 
4061
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4063
  (eval $ac_try) 2>&5
 
4064
  ac_status=$?
 
4065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4066
  (exit $ac_status); }; } &&
 
4067
         { ac_try='test -s conftest.$ac_objext'
 
4068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4069
  (eval $ac_try) 2>&5
 
4070
  ac_status=$?
 
4071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4072
  (exit $ac_status); }; }; then
 
4073
  ac_cv_prog_cc_stdc=$ac_arg
 
4074
break
 
4075
else
 
4076
  echo "$as_me: failed program was:" >&5
 
4077
sed 's/^/| /' conftest.$ac_ext >&5
 
4078
 
 
4079
fi
 
4080
rm -f conftest.err conftest.$ac_objext
 
4081
done
 
4082
rm -f conftest.$ac_ext conftest.$ac_objext
 
4083
CC=$ac_save_CC
 
4084
 
 
4085
fi
 
4086
 
 
4087
case "x$ac_cv_prog_cc_stdc" in
 
4088
  x|xno)
 
4089
    echo "$as_me:$LINENO: result: none needed" >&5
 
4090
echo "${ECHO_T}none needed" >&6 ;;
 
4091
  *)
 
4092
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
4093
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
4094
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4095
esac
 
4096
 
 
4097
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
4098
# in C++ we need to declare it.  In case someone uses the same compiler
 
4099
# for both compiling C and C++ we need to have the C++ compiler decide
 
4100
# the declaration of exit, since it's the most demanding environment.
 
4101
cat >conftest.$ac_ext <<_ACEOF
 
4102
#ifndef __cplusplus
 
4103
  choke me
 
4104
#endif
 
4105
_ACEOF
 
4106
rm -f conftest.$ac_objext
 
4107
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4108
  (eval $ac_compile) 2>conftest.er1
 
4109
  ac_status=$?
 
4110
  grep -v '^ *+' conftest.er1 >conftest.err
 
4111
  rm -f conftest.er1
 
4112
  cat conftest.err >&5
 
4113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4114
  (exit $ac_status); } &&
 
4115
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4117
  (eval $ac_try) 2>&5
 
4118
  ac_status=$?
 
4119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4120
  (exit $ac_status); }; } &&
 
4121
         { ac_try='test -s conftest.$ac_objext'
 
4122
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4123
  (eval $ac_try) 2>&5
 
4124
  ac_status=$?
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); }; }; then
 
4127
  for ac_declaration in \
 
4128
   '' \
 
4129
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4130
   'extern "C" void std::exit (int); using std::exit;' \
 
4131
   'extern "C" void exit (int) throw ();' \
 
4132
   'extern "C" void exit (int);' \
 
4133
   'void exit (int);'
 
4134
do
 
4135
  cat >conftest.$ac_ext <<_ACEOF
 
4136
/* confdefs.h.  */
 
4137
_ACEOF
 
4138
cat confdefs.h >>conftest.$ac_ext
 
4139
cat >>conftest.$ac_ext <<_ACEOF
 
4140
/* end confdefs.h.  */
 
4141
$ac_declaration
 
4142
#include <stdlib.h>
 
4143
int
 
4144
main ()
 
4145
{
 
4146
exit (42);
 
4147
  ;
 
4148
  return 0;
 
4149
}
 
4150
_ACEOF
 
4151
rm -f conftest.$ac_objext
 
4152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4153
  (eval $ac_compile) 2>conftest.er1
 
4154
  ac_status=$?
 
4155
  grep -v '^ *+' conftest.er1 >conftest.err
 
4156
  rm -f conftest.er1
 
4157
  cat conftest.err >&5
 
4158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4159
  (exit $ac_status); } &&
 
4160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4162
  (eval $ac_try) 2>&5
 
4163
  ac_status=$?
 
4164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4165
  (exit $ac_status); }; } &&
 
4166
         { ac_try='test -s conftest.$ac_objext'
 
4167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4168
  (eval $ac_try) 2>&5
 
4169
  ac_status=$?
 
4170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4171
  (exit $ac_status); }; }; then
 
4172
  :
 
4173
else
 
4174
  echo "$as_me: failed program was:" >&5
 
4175
sed 's/^/| /' conftest.$ac_ext >&5
 
4176
 
 
4177
continue
 
4178
fi
 
4179
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4180
  cat >conftest.$ac_ext <<_ACEOF
 
4181
/* confdefs.h.  */
 
4182
_ACEOF
 
4183
cat confdefs.h >>conftest.$ac_ext
 
4184
cat >>conftest.$ac_ext <<_ACEOF
 
4185
/* end confdefs.h.  */
 
4186
$ac_declaration
 
4187
int
 
4188
main ()
 
4189
{
 
4190
exit (42);
 
4191
  ;
 
4192
  return 0;
 
4193
}
 
4194
_ACEOF
 
4195
rm -f conftest.$ac_objext
 
4196
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4197
  (eval $ac_compile) 2>conftest.er1
 
4198
  ac_status=$?
 
4199
  grep -v '^ *+' conftest.er1 >conftest.err
 
4200
  rm -f conftest.er1
 
4201
  cat conftest.err >&5
 
4202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4203
  (exit $ac_status); } &&
 
4204
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4206
  (eval $ac_try) 2>&5
 
4207
  ac_status=$?
 
4208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4209
  (exit $ac_status); }; } &&
 
4210
         { ac_try='test -s conftest.$ac_objext'
 
4211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4212
  (eval $ac_try) 2>&5
 
4213
  ac_status=$?
 
4214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4215
  (exit $ac_status); }; }; then
 
4216
  break
 
4217
else
 
4218
  echo "$as_me: failed program was:" >&5
 
4219
sed 's/^/| /' conftest.$ac_ext >&5
 
4220
 
 
4221
fi
 
4222
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4223
done
 
4224
rm -f conftest*
 
4225
if test -n "$ac_declaration"; then
 
4226
  echo '#ifdef __cplusplus' >>confdefs.h
 
4227
  echo $ac_declaration      >>confdefs.h
 
4228
  echo '#endif'             >>confdefs.h
 
4229
fi
 
4230
 
 
4231
else
 
4232
  echo "$as_me: failed program was:" >&5
 
4233
sed 's/^/| /' conftest.$ac_ext >&5
 
4234
 
 
4235
fi
 
4236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4237
ac_ext=cc
 
4238
ac_cpp='$CXXCPP $CPPFLAGS'
 
4239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
4242
 
 
4243
depcc="$CC"   am_compiler_list=
 
4244
 
 
4245
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4246
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4247
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4248
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4249
else
 
4250
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4251
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4252
  # making bogus files that we don't know about and never remove.  For
 
4253
  # instance it was reported that on HP-UX the gcc test will end up
 
4254
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4255
  # in D'.
 
4256
  mkdir conftest.dir
 
4257
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4258
  # using a relative directory.
 
4259
  cp "$am_depcomp" conftest.dir
 
4260
  cd conftest.dir
 
4261
  # We will build objects and dependencies in a subdirectory because
 
4262
  # it helps to detect inapplicable dependency modes.  For instance
 
4263
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4264
  # side effect of compilation, but ICC will put the dependencies in
 
4265
  # the current directory while Tru64 will put them in the object
 
4266
  # directory.
 
4267
  mkdir sub
 
4268
 
 
4269
  am_cv_CC_dependencies_compiler_type=none
 
4270
  if test "$am_compiler_list" = ""; then
 
4271
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4272
  fi
 
4273
  for depmode in $am_compiler_list; do
 
4274
    # Setup a source with many dependencies, because some compilers
 
4275
    # like to wrap large dependency lists on column 80 (with \), and
 
4276
    # we should not choose a depcomp mode which is confused by this.
 
4277
    #
 
4278
    # We need to recreate these files for each test, as the compiler may
 
4279
    # overwrite some of them when testing with obscure command lines.
 
4280
    # This happens at least with the AIX C compiler.
 
4281
    : > sub/conftest.c
 
4282
    for i in 1 2 3 4 5 6; do
 
4283
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4284
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4285
      # Solaris 8's {/usr,}/bin/sh.
 
4286
      touch sub/conftst$i.h
 
4287
    done
 
4288
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4289
 
 
4290
    case $depmode in
 
4291
    nosideeffect)
 
4292
      # after this tag, mechanisms are not by side-effect, so they'll
 
4293
      # only be used when explicitly requested
 
4294
      if test "x$enable_dependency_tracking" = xyes; then
 
4295
        continue
 
4296
      else
 
4297
        break
 
4298
      fi
 
4299
      ;;
 
4300
    none) break ;;
 
4301
    esac
 
4302
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4303
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4304
    # handle `-M -o', and we need to detect this.
 
4305
    if depmode=$depmode \
 
4306
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4307
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4308
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4309
         >/dev/null 2>conftest.err &&
 
4310
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4311
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4312
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4313
      # icc doesn't choke on unknown options, it will just issue warnings
 
4314
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4315
      # that says an option was ignored or not supported.
 
4316
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4317
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4318
      # The diagnosis changed in icc 8.0:
 
4319
      #   icc: Command line remark: option '-MP' not supported
 
4320
      if (grep 'ignoring option' conftest.err ||
 
4321
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4322
        am_cv_CC_dependencies_compiler_type=$depmode
 
4323
        break
 
4324
      fi
 
4325
    fi
 
4326
  done
 
4327
 
 
4328
  cd ..
 
4329
  rm -rf conftest.dir
 
4330
else
 
4331
  am_cv_CC_dependencies_compiler_type=none
 
4332
fi
 
4333
 
 
4334
fi
 
4335
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4336
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4337
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4338
 
 
4339
 
 
4340
 
 
4341
if
 
4342
  test "x$enable_dependency_tracking" != xno \
 
4343
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4344
  am__fastdepCC_TRUE=
 
4345
  am__fastdepCC_FALSE='#'
 
4346
else
 
4347
  am__fastdepCC_TRUE='#'
 
4348
  am__fastdepCC_FALSE=
 
4349
fi
 
4350
 
 
4351
 
 
4352
 
 
4353
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
 
4354
 
 
4355
 
 
4356
echo "$as_me:$LINENO: checking for egrep" >&5
 
4357
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4358
if test "${ac_cv_prog_egrep+set}" = set; then
 
4359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4360
else
 
4361
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4362
    then ac_cv_prog_egrep='grep -E'
 
4363
    else ac_cv_prog_egrep='egrep'
 
4364
    fi
 
4365
fi
 
4366
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4367
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4368
 EGREP=$ac_cv_prog_egrep
 
4369
 
 
4370
 
 
4371
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4372
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4373
if test "${ac_cv_header_stdc+set}" = set; then
 
4374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4375
else
 
4376
  cat >conftest.$ac_ext <<_ACEOF
 
4377
/* confdefs.h.  */
 
4378
_ACEOF
 
4379
cat confdefs.h >>conftest.$ac_ext
 
4380
cat >>conftest.$ac_ext <<_ACEOF
 
4381
/* end confdefs.h.  */
 
4382
#include <stdlib.h>
 
4383
#include <stdarg.h>
 
4384
#include <string.h>
 
4385
#include <float.h>
 
4386
 
 
4387
int
 
4388
main ()
 
4389
{
 
4390
 
 
4391
  ;
 
4392
  return 0;
 
4393
}
 
4394
_ACEOF
 
4395
rm -f conftest.$ac_objext
 
4396
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4397
  (eval $ac_compile) 2>conftest.er1
 
4398
  ac_status=$?
 
4399
  grep -v '^ *+' conftest.er1 >conftest.err
 
4400
  rm -f conftest.er1
 
4401
  cat conftest.err >&5
 
4402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4403
  (exit $ac_status); } &&
 
4404
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
4405
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4406
  (eval $ac_try) 2>&5
 
4407
  ac_status=$?
 
4408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4409
  (exit $ac_status); }; } &&
 
4410
         { ac_try='test -s conftest.$ac_objext'
 
4411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4412
  (eval $ac_try) 2>&5
 
4413
  ac_status=$?
 
4414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4415
  (exit $ac_status); }; }; then
 
4416
  ac_cv_header_stdc=yes
 
4417
else
 
4418
  echo "$as_me: failed program was:" >&5
 
4419
sed 's/^/| /' conftest.$ac_ext >&5
 
4420
 
 
4421
ac_cv_header_stdc=no
 
4422
fi
 
4423
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4424
 
 
4425
if test $ac_cv_header_stdc = yes; then
 
4426
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4427
  cat >conftest.$ac_ext <<_ACEOF
 
4428
/* confdefs.h.  */
 
4429
_ACEOF
 
4430
cat confdefs.h >>conftest.$ac_ext
 
4431
cat >>conftest.$ac_ext <<_ACEOF
 
4432
/* end confdefs.h.  */
 
4433
#include <string.h>
 
4434
 
 
4435
_ACEOF
 
4436
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4437
  $EGREP "memchr" >/dev/null 2>&1; then
 
4438
  :
 
4439
else
 
4440
  ac_cv_header_stdc=no
 
4441
fi
 
4442
rm -f conftest*
 
4443
 
 
4444
fi
 
4445
 
 
4446
if test $ac_cv_header_stdc = yes; then
 
4447
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4448
  cat >conftest.$ac_ext <<_ACEOF
 
4449
/* confdefs.h.  */
 
4450
_ACEOF
 
4451
cat confdefs.h >>conftest.$ac_ext
 
4452
cat >>conftest.$ac_ext <<_ACEOF
 
4453
/* end confdefs.h.  */
 
4454
#include <stdlib.h>
 
4455
 
 
4456
_ACEOF
 
4457
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4458
  $EGREP "free" >/dev/null 2>&1; then
 
4459
  :
 
4460
else
 
4461
  ac_cv_header_stdc=no
 
4462
fi
 
4463
rm -f conftest*
 
4464
 
 
4465
fi
 
4466
 
 
4467
if test $ac_cv_header_stdc = yes; then
 
4468
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4469
  if test "$cross_compiling" = yes; then
 
4470
  :
 
4471
else
 
4472
  cat >conftest.$ac_ext <<_ACEOF
 
4473
/* confdefs.h.  */
 
4474
_ACEOF
 
4475
cat confdefs.h >>conftest.$ac_ext
 
4476
cat >>conftest.$ac_ext <<_ACEOF
 
4477
/* end confdefs.h.  */
 
4478
#include <ctype.h>
 
4479
#if ((' ' & 0x0FF) == 0x020)
 
4480
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4481
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4482
#else
 
4483
# define ISLOWER(c) \
 
4484
                   (('a' <= (c) && (c) <= 'i') \
 
4485
                     || ('j' <= (c) && (c) <= 'r') \
 
4486
                     || ('s' <= (c) && (c) <= 'z'))
 
4487
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4488
#endif
 
4489
 
 
4490
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4491
int
 
4492
main ()
 
4493
{
 
4494
  int i;
 
4495
  for (i = 0; i < 256; i++)
 
4496
    if (XOR (islower (i), ISLOWER (i))
 
4497
        || toupper (i) != TOUPPER (i))
 
4498
      exit(2);
 
4499
  exit (0);
 
4500
}
 
4501
_ACEOF
 
4502
rm -f conftest$ac_exeext
 
4503
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4504
  (eval $ac_link) 2>&5
 
4505
  ac_status=$?
 
4506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4507
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4509
  (eval $ac_try) 2>&5
 
4510
  ac_status=$?
 
4511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4512
  (exit $ac_status); }; }; then
 
4513
  :
 
4514
else
 
4515
  echo "$as_me: program exited with status $ac_status" >&5
 
4516
echo "$as_me: failed program was:" >&5
 
4517
sed 's/^/| /' conftest.$ac_ext >&5
 
4518
 
 
4519
( exit $ac_status )
 
4520
ac_cv_header_stdc=no
 
4521
fi
 
4522
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4523
fi
 
4524
fi
 
4525
fi
 
4526
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4527
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4528
if test $ac_cv_header_stdc = yes; then
 
4529
 
 
4530
cat >>confdefs.h <<\_ACEOF
 
4531
#define STDC_HEADERS 1
 
4532
_ACEOF
 
4533
 
 
4534
fi
 
4535
 
 
4536
 
 
4537
# Check whether --enable-shared or --disable-shared was given.
 
4538
if test "${enable_shared+set}" = set; then
 
4539
  enableval="$enable_shared"
 
4540
  p=${PACKAGE-default}
 
4541
    case $enableval in
 
4542
    yes) enable_shared=yes ;;
 
4543
    no) enable_shared=no ;;
 
4544
    *)
 
4545
      enable_shared=no
 
4546
      # Look at the argument we got.  We use all the common list separators.
 
4547
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4548
      for pkg in $enableval; do
 
4549
        IFS="$lt_save_ifs"
 
4550
        if test "X$pkg" = "X$p"; then
 
4551
          enable_shared=yes
 
4552
        fi
 
4553
      done
 
4554
      IFS="$lt_save_ifs"
 
4555
      ;;
 
4556
    esac
 
4557
else
 
4558
  enable_shared=yes
 
4559
fi;
 
4560
 
 
4561
# Check whether --enable-static or --disable-static was given.
 
4562
if test "${enable_static+set}" = set; then
 
4563
  enableval="$enable_static"
 
4564
  p=${PACKAGE-default}
 
4565
    case $enableval in
 
4566
    yes) enable_static=yes ;;
 
4567
    no) enable_static=no ;;
 
4568
    *)
 
4569
     enable_static=no
 
4570
      # Look at the argument we got.  We use all the common list separators.
 
4571
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4572
      for pkg in $enableval; do
 
4573
        IFS="$lt_save_ifs"
 
4574
        if test "X$pkg" = "X$p"; then
 
4575
          enable_static=yes
 
4576
        fi
 
4577
      done
 
4578
      IFS="$lt_save_ifs"
 
4579
      ;;
 
4580
    esac
 
4581
else
 
4582
  enable_static=yes
 
4583
fi;
 
4584
 
 
4585
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4586
if test "${enable_fast_install+set}" = set; then
 
4587
  enableval="$enable_fast_install"
 
4588
  p=${PACKAGE-default}
 
4589
    case $enableval in
 
4590
    yes) enable_fast_install=yes ;;
 
4591
    no) enable_fast_install=no ;;
 
4592
    *)
 
4593
      enable_fast_install=no
 
4594
      # Look at the argument we got.  We use all the common list separators.
 
4595
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4596
      for pkg in $enableval; do
 
4597
        IFS="$lt_save_ifs"
 
4598
        if test "X$pkg" = "X$p"; then
 
4599
          enable_fast_install=yes
 
4600
        fi
 
4601
      done
 
4602
      IFS="$lt_save_ifs"
 
4603
      ;;
 
4604
    esac
 
4605
else
 
4606
  enable_fast_install=yes
 
4607
fi;
 
4608
 
 
4609
# Make sure we can run config.sub.
 
4610
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4611
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4612
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4613
   { (exit 1); exit 1; }; }
 
4614
 
 
4615
echo "$as_me:$LINENO: checking build system type" >&5
 
4616
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4617
if test "${ac_cv_build+set}" = set; then
 
4618
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4619
else
 
4620
  ac_cv_build_alias=$build_alias
 
4621
test -z "$ac_cv_build_alias" &&
 
4622
  ac_cv_build_alias=`$ac_config_guess`
 
4623
test -z "$ac_cv_build_alias" &&
 
4624
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4625
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4626
   { (exit 1); exit 1; }; }
 
4627
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4628
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4629
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4630
   { (exit 1); exit 1; }; }
 
4631
 
 
4632
fi
 
4633
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4634
echo "${ECHO_T}$ac_cv_build" >&6
 
4635
build=$ac_cv_build
 
4636
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4637
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4638
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4639
 
 
4640
 
 
4641
echo "$as_me:$LINENO: checking host system type" >&5
 
4642
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
4643
if test "${ac_cv_host+set}" = set; then
 
4644
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4645
else
 
4646
  ac_cv_host_alias=$host_alias
 
4647
test -z "$ac_cv_host_alias" &&
 
4648
  ac_cv_host_alias=$ac_cv_build_alias
 
4649
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
4650
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
4651
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
4652
   { (exit 1); exit 1; }; }
 
4653
 
 
4654
fi
 
4655
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4656
echo "${ECHO_T}$ac_cv_host" >&6
 
4657
host=$ac_cv_host
 
4658
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4659
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4660
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4661
 
 
4662
 
 
4663
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4664
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4665
if test "${lt_cv_path_SED+set}" = set; then
 
4666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4667
else
 
4668
  # Loop through the user's path and test for sed and gsed.
 
4669
# Then use that list of sed's as ones to test for truncation.
 
4670
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4671
for as_dir in $PATH
 
4672
do
 
4673
  IFS=$as_save_IFS
 
4674
  test -z "$as_dir" && as_dir=.
 
4675
  for lt_ac_prog in sed gsed; do
 
4676
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4677
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4678
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4679
      fi
 
4680
    done
 
4681
  done
 
4682
done
 
4683
lt_ac_max=0
 
4684
lt_ac_count=0
 
4685
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4686
# along with /bin/sed that truncates output.
 
4687
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4688
  test ! -f $lt_ac_sed && break
 
4689
  cat /dev/null > conftest.in
 
4690
  lt_ac_count=0
 
4691
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4692
  # Check for GNU sed and select it if it is found.
 
4693
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4694
    lt_cv_path_SED=$lt_ac_sed
 
4695
    break
 
4696
  fi
 
4697
  while true; do
 
4698
    cat conftest.in conftest.in >conftest.tmp
 
4699
    mv conftest.tmp conftest.in
 
4700
    cp conftest.in conftest.nl
 
4701
    echo >>conftest.nl
 
4702
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4703
    cmp -s conftest.out conftest.nl || break
 
4704
    # 10000 chars as input seems more than enough
 
4705
    test $lt_ac_count -gt 10 && break
 
4706
    lt_ac_count=`expr $lt_ac_count + 1`
 
4707
    if test $lt_ac_count -gt $lt_ac_max; then
 
4708
      lt_ac_max=$lt_ac_count
 
4709
      lt_cv_path_SED=$lt_ac_sed
 
4710
    fi
 
4711
  done
 
4712
done
 
4713
SED=$lt_cv_path_SED
 
4714
 
 
4715
fi
 
4716
 
 
4717
echo "$as_me:$LINENO: result: $SED" >&5
 
4718
echo "${ECHO_T}$SED" >&6
 
4719
 
 
4720
 
 
4721
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4722
if test "${with_gnu_ld+set}" = set; then
 
4723
  withval="$with_gnu_ld"
 
4724
  test "$withval" = no || with_gnu_ld=yes
 
4725
else
 
4726
  with_gnu_ld=no
 
4727
fi;
 
4728
ac_prog=ld
 
4729
if test "$GCC" = yes; then
 
4730
  # Check if gcc -print-prog-name=ld gives a path.
 
4731
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4732
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4733
  case $host in
 
4734
  *-*-mingw*)
 
4735
    # gcc leaves a trailing carriage return which upsets mingw
 
4736
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4737
  *)
 
4738
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4739
  esac
 
4740
  case $ac_prog in
 
4741
    # Accept absolute paths.
 
4742
    [\\/]* | ?:[\\/]*)
 
4743
      re_direlt='/[^/][^/]*/\.\./'
 
4744
      # Canonicalize the pathname of ld
 
4745
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4746
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4747
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4748
      done
 
4749
      test -z "$LD" && LD="$ac_prog"
 
4750
      ;;
 
4751
  "")
 
4752
    # If it fails, then pretend we aren't using GCC.
 
4753
    ac_prog=ld
 
4754
    ;;
 
4755
  *)
 
4756
    # If it is relative, then search for the first ld in PATH.
 
4757
    with_gnu_ld=unknown
 
4758
    ;;
 
4759
  esac
 
4760
elif test "$with_gnu_ld" = yes; then
 
4761
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4762
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4763
else
 
4764
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4765
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4766
fi
 
4767
if test "${lt_cv_path_LD+set}" = set; then
 
4768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4769
else
 
4770
  if test -z "$LD"; then
 
4771
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4772
  for ac_dir in $PATH; do
 
4773
    IFS="$lt_save_ifs"
 
4774
    test -z "$ac_dir" && ac_dir=.
 
4775
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4776
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4777
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4778
      # but apparently some GNU ld's only accept -v.
 
4779
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4780
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4781
      *GNU* | *'with BFD'*)
 
4782
        test "$with_gnu_ld" != no && break
 
4783
        ;;
 
4784
      *)
 
4785
        test "$with_gnu_ld" != yes && break
 
4786
        ;;
 
4787
      esac
 
4788
    fi
 
4789
  done
 
4790
  IFS="$lt_save_ifs"
 
4791
else
 
4792
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4793
fi
 
4794
fi
 
4795
 
 
4796
LD="$lt_cv_path_LD"
 
4797
if test -n "$LD"; then
 
4798
  echo "$as_me:$LINENO: result: $LD" >&5
 
4799
echo "${ECHO_T}$LD" >&6
 
4800
else
 
4801
  echo "$as_me:$LINENO: result: no" >&5
 
4802
echo "${ECHO_T}no" >&6
 
4803
fi
 
4804
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4805
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4806
   { (exit 1); exit 1; }; }
 
4807
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4808
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4809
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4810
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4811
else
 
4812
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4813
case `$LD -v 2>&1 </dev/null` in
 
4814
*GNU* | *'with BFD'*)
 
4815
  lt_cv_prog_gnu_ld=yes
 
4816
  ;;
 
4817
*)
 
4818
  lt_cv_prog_gnu_ld=no
 
4819
  ;;
 
4820
esac
 
4821
fi
 
4822
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4823
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4824
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4825
 
 
4826
 
 
4827
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4828
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4829
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4831
else
 
4832
  lt_cv_ld_reload_flag='-r'
 
4833
fi
 
4834
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4835
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4836
reload_flag=$lt_cv_ld_reload_flag
 
4837
case $reload_flag in
 
4838
"" | " "*) ;;
 
4839
*) reload_flag=" $reload_flag" ;;
 
4840
esac
 
4841
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4842
 
 
4843
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4844
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4845
if test "${lt_cv_path_NM+set}" = set; then
 
4846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4847
else
 
4848
  if test -n "$NM"; then
 
4849
  # Let the user override the test.
 
4850
  lt_cv_path_NM="$NM"
 
4851
else
 
4852
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4853
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4854
    IFS="$lt_save_ifs"
 
4855
    test -z "$ac_dir" && ac_dir=.
 
4856
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4857
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4858
      # Check to see if the nm accepts a BSD-compat flag.
 
4859
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4860
      #   nm: unknown option "B" ignored
 
4861
      # Tru64's nm complains that /dev/null is an invalid object file
 
4862
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4863
      */dev/null* | *'Invalid file or object type'*)
 
4864
        lt_cv_path_NM="$tmp_nm -B"
 
4865
        break
 
4866
        ;;
 
4867
      *)
 
4868
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4869
        */dev/null*)
 
4870
          lt_cv_path_NM="$tmp_nm -p"
 
4871
          break
 
4872
          ;;
 
4873
        *)
 
4874
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4875
          continue # so that we can try to find one that supports BSD flags
 
4876
          ;;
 
4877
        esac
 
4878
      esac
 
4879
    fi
 
4880
  done
 
4881
  IFS="$lt_save_ifs"
 
4882
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4883
fi
 
4884
fi
 
4885
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4886
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4887
NM="$lt_cv_path_NM"
 
4888
 
 
4889
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4890
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4891
LN_S=$as_ln_s
 
4892
if test "$LN_S" = "ln -s"; then
 
4893
  echo "$as_me:$LINENO: result: yes" >&5
 
4894
echo "${ECHO_T}yes" >&6
 
4895
else
 
4896
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4897
echo "${ECHO_T}no, using $LN_S" >&6
 
4898
fi
 
4899
 
 
4900
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4901
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4902
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4903
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4904
else
 
4905
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4906
lt_cv_file_magic_test_file=
 
4907
lt_cv_deplibs_check_method='unknown'
 
4908
# Need to set the preceding variable on all platforms that support
 
4909
# interlibrary dependencies.
 
4910
# 'none' -- dependencies not supported.
 
4911
# `unknown' -- same as none, but documents that we really don't know.
 
4912
# 'pass_all' -- all dependencies passed with no checks.
 
4913
# 'test_compile' -- check by making test program.
 
4914
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4915
# which responds to the $file_magic_cmd with a given extended regex.
 
4916
# If you have `file' or equivalent on your system and you're not sure
 
4917
# whether `pass_all' will *always* work, you probably want this one.
 
4918
 
 
4919
case $host_os in
 
4920
aix4* | aix5*)
 
4921
  lt_cv_deplibs_check_method=pass_all
 
4922
  ;;
 
4923
 
 
4924
beos*)
 
4925
  lt_cv_deplibs_check_method=pass_all
 
4926
  ;;
 
4927
 
 
4928
bsdi4*)
 
4929
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4930
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4931
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4932
  ;;
 
4933
 
 
4934
cygwin*)
 
4935
  # func_win32_libid is a shell function defined in ltmain.sh
 
4936
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4937
  lt_cv_file_magic_cmd='func_win32_libid'
 
4938
  ;;
 
4939
 
 
4940
mingw* | pw32*)
 
4941
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4942
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4943
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4944
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4945
  ;;
 
4946
 
 
4947
darwin* | rhapsody*)
 
4948
  lt_cv_deplibs_check_method=pass_all
 
4949
  ;;
 
4950
 
 
4951
freebsd* | kfreebsd*-gnu)
 
4952
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4953
    case $host_cpu in
 
4954
    i*86 )
 
4955
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4956
      # Let's accept both of them until this is cleared up.
 
4957
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4958
      lt_cv_file_magic_cmd=/usr/bin/file
 
4959
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4960
      ;;
 
4961
    esac
 
4962
  else
 
4963
    lt_cv_deplibs_check_method=pass_all
 
4964
  fi
 
4965
  ;;
 
4966
 
 
4967
gnu*)
 
4968
  lt_cv_deplibs_check_method=pass_all
 
4969
  ;;
 
4970
 
 
4971
hpux10.20* | hpux11*)
 
4972
  lt_cv_file_magic_cmd=/usr/bin/file
 
4973
  case "$host_cpu" in
 
4974
  ia64*)
 
4975
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4976
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4977
    ;;
 
4978
  hppa*64*)
 
4979
    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]'
 
4980
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4981
    ;;
 
4982
  *)
 
4983
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4984
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4985
    ;;
 
4986
  esac
 
4987
  ;;
 
4988
 
 
4989
irix5* | irix6* | nonstopux*)
 
4990
  case $LD in
 
4991
  *-32|*"-32 ") libmagic=32-bit;;
 
4992
  *-n32|*"-n32 ") libmagic=N32;;
 
4993
  *-64|*"-64 ") libmagic=64-bit;;
 
4994
  *) libmagic=never-match;;
 
4995
  esac
 
4996
  lt_cv_deplibs_check_method=pass_all
 
4997
  ;;
 
4998
 
 
4999
# This must be Linux ELF.
 
5000
linux*)
 
5001
  lt_cv_deplibs_check_method=pass_all
 
5002
  ;;
 
5003
 
 
5004
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
5005
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5006
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5007
  else
 
5008
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5009
  fi
 
5010
  ;;
 
5011
 
 
5012
newos6*)
 
5013
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5014
  lt_cv_file_magic_cmd=/usr/bin/file
 
5015
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5016
  ;;
 
5017
 
 
5018
nto-qnx*)
 
5019
  lt_cv_deplibs_check_method=unknown
 
5020
  ;;
 
5021
 
 
5022
openbsd*)
 
5023
  lt_cv_file_magic_cmd=/usr/bin/file
 
5024
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5025
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5026
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
5027
  else
 
5028
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
5029
  fi
 
5030
  ;;
 
5031
 
 
5032
osf3* | osf4* | osf5*)
 
5033
  lt_cv_deplibs_check_method=pass_all
 
5034
  ;;
 
5035
 
 
5036
sco3.2v5*)
 
5037
  lt_cv_deplibs_check_method=pass_all
 
5038
  ;;
 
5039
 
 
5040
solaris*)
 
5041
  lt_cv_deplibs_check_method=pass_all
 
5042
  ;;
 
5043
 
 
5044
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
5045
  case $host_vendor in
 
5046
  motorola)
 
5047
    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]'
 
5048
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5049
    ;;
 
5050
  ncr)
 
5051
    lt_cv_deplibs_check_method=pass_all
 
5052
    ;;
 
5053
  sequent)
 
5054
    lt_cv_file_magic_cmd='/bin/file'
 
5055
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5056
    ;;
 
5057
  sni)
 
5058
    lt_cv_file_magic_cmd='/bin/file'
 
5059
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5060
    lt_cv_file_magic_test_file=/lib/libc.so
 
5061
    ;;
 
5062
  siemens)
 
5063
    lt_cv_deplibs_check_method=pass_all
 
5064
    ;;
 
5065
  esac
 
5066
  ;;
 
5067
 
 
5068
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5069
  lt_cv_deplibs_check_method=pass_all
 
5070
  ;;
 
5071
esac
 
5072
 
 
5073
fi
 
5074
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5075
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5076
file_magic_cmd=$lt_cv_file_magic_cmd
 
5077
deplibs_check_method=$lt_cv_deplibs_check_method
 
5078
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
# If no C compiler was specified, use CC.
 
5084
LTCC=${LTCC-"$CC"}
 
5085
 
 
5086
# Allow CC to be a program name with arguments.
 
5087
compiler=$CC
 
5088
 
 
5089
 
 
5090
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5091
if test "${enable_libtool_lock+set}" = set; then
 
5092
  enableval="$enable_libtool_lock"
 
5093
 
 
5094
fi;
 
5095
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5096
 
 
5097
# Some flags need to be propagated to the compiler or linker for good
 
5098
# libtool support.
 
5099
case $host in
 
5100
ia64-*-hpux*)
 
5101
  # Find out which ABI we are using.
 
5102
  echo 'int i;' > conftest.$ac_ext
 
5103
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5104
  (eval $ac_compile) 2>&5
 
5105
  ac_status=$?
 
5106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5107
  (exit $ac_status); }; then
 
5108
    case `/usr/bin/file conftest.$ac_objext` in
 
5109
    *ELF-32*)
 
5110
      HPUX_IA64_MODE="32"
 
5111
      ;;
 
5112
    *ELF-64*)
 
5113
      HPUX_IA64_MODE="64"
 
5114
      ;;
 
5115
    esac
 
5116
  fi
 
5117
  rm -rf conftest*
 
5118
  ;;
 
5119
*-*-irix6*)
 
5120
  # Find out which ABI we are using.
 
5121
  echo '#line 5121 "configure"' > conftest.$ac_ext
 
5122
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5123
  (eval $ac_compile) 2>&5
 
5124
  ac_status=$?
 
5125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5126
  (exit $ac_status); }; then
 
5127
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5128
    case `/usr/bin/file conftest.$ac_objext` in
 
5129
    *32-bit*)
 
5130
      LD="${LD-ld} -melf32bsmip"
 
5131
      ;;
 
5132
    *N32*)
 
5133
      LD="${LD-ld} -melf32bmipn32"
 
5134
      ;;
 
5135
    *64-bit*)
 
5136
      LD="${LD-ld} -melf64bmip"
 
5137
      ;;
 
5138
    esac
 
5139
   else
 
5140
    case `/usr/bin/file conftest.$ac_objext` in
 
5141
    *32-bit*)
 
5142
      LD="${LD-ld} -32"
 
5143
      ;;
 
5144
    *N32*)
 
5145
      LD="${LD-ld} -n32"
 
5146
      ;;
 
5147
    *64-bit*)
 
5148
      LD="${LD-ld} -64"
 
5149
      ;;
 
5150
    esac
 
5151
   fi
 
5152
  fi
 
5153
  rm -rf conftest*
 
5154
  ;;
 
5155
 
 
5156
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5157
  # Find out which ABI we are using.
 
5158
  echo 'int i;' > conftest.$ac_ext
 
5159
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5160
  (eval $ac_compile) 2>&5
 
5161
  ac_status=$?
 
5162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5163
  (exit $ac_status); }; then
 
5164
    case "`/usr/bin/file conftest.o`" in
 
5165
    *32-bit*)
 
5166
      case $host in
 
5167
        x86_64-*linux*)
 
5168
          LD="${LD-ld} -m elf_i386"
 
5169
          ;;
 
5170
        ppc64-*linux*|powerpc64-*linux*)
 
5171
          LD="${LD-ld} -m elf32ppclinux"
 
5172
          ;;
 
5173
        s390x-*linux*)
 
5174
          LD="${LD-ld} -m elf_s390"
 
5175
          ;;
 
5176
        sparc64-*linux*)
 
5177
          LD="${LD-ld} -m elf32_sparc"
 
5178
          ;;
 
5179
      esac
 
5180
      ;;
 
5181
    *64-bit*)
 
5182
      case $host in
 
5183
        x86_64-*linux*)
 
5184
          LD="${LD-ld} -m elf_x86_64"
 
5185
          ;;
 
5186
        ppc*-*linux*|powerpc*-*linux*)
 
5187
          LD="${LD-ld} -m elf64ppc"
 
5188
          ;;
 
5189
        s390*-*linux*)
 
5190
          LD="${LD-ld} -m elf64_s390"
 
5191
          ;;
 
5192
        sparc*-*linux*)
 
5193
          LD="${LD-ld} -m elf64_sparc"
 
5194
          ;;
 
5195
      esac
 
5196
      ;;
 
5197
    esac
 
5198
  fi
 
5199
  rm -rf conftest*
 
5200
  ;;
 
5201
 
 
5202
*-*-sco3.2v5*)
 
5203
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5204
  SAVE_CFLAGS="$CFLAGS"
 
5205
  CFLAGS="$CFLAGS -belf"
 
5206
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5207
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5208
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5209
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5210
else
 
5211
  ac_ext=c
 
5212
ac_cpp='$CPP $CPPFLAGS'
 
5213
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5214
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5215
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5216
 
 
5217
     cat >conftest.$ac_ext <<_ACEOF
 
5218
/* confdefs.h.  */
 
5219
_ACEOF
 
5220
cat confdefs.h >>conftest.$ac_ext
 
5221
cat >>conftest.$ac_ext <<_ACEOF
 
5222
/* end confdefs.h.  */
 
5223
 
 
5224
int
 
5225
main ()
 
5226
{
 
5227
 
 
5228
  ;
 
5229
  return 0;
 
5230
}
 
5231
_ACEOF
 
5232
rm -f conftest.$ac_objext conftest$ac_exeext
 
5233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5234
  (eval $ac_link) 2>conftest.er1
 
5235
  ac_status=$?
 
5236
  grep -v '^ *+' conftest.er1 >conftest.err
 
5237
  rm -f conftest.er1
 
5238
  cat conftest.err >&5
 
5239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5240
  (exit $ac_status); } &&
 
5241
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5243
  (eval $ac_try) 2>&5
 
5244
  ac_status=$?
 
5245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5246
  (exit $ac_status); }; } &&
 
5247
         { ac_try='test -s conftest$ac_exeext'
 
5248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5249
  (eval $ac_try) 2>&5
 
5250
  ac_status=$?
 
5251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5252
  (exit $ac_status); }; }; then
 
5253
  lt_cv_cc_needs_belf=yes
 
5254
else
 
5255
  echo "$as_me: failed program was:" >&5
 
5256
sed 's/^/| /' conftest.$ac_ext >&5
 
5257
 
 
5258
lt_cv_cc_needs_belf=no
 
5259
fi
 
5260
rm -f conftest.err conftest.$ac_objext \
 
5261
      conftest$ac_exeext conftest.$ac_ext
 
5262
     ac_ext=c
 
5263
ac_cpp='$CPP $CPPFLAGS'
 
5264
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5265
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5266
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5267
 
 
5268
fi
 
5269
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5270
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5271
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5272
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5273
    CFLAGS="$SAVE_CFLAGS"
 
5274
  fi
 
5275
  ;;
 
5276
 
 
5277
esac
 
5278
 
 
5279
need_locks="$enable_libtool_lock"
 
5280
 
 
5281
 
 
5282
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5283
 
 
5284
 
 
5285
 
 
5286
 
 
5287
 
 
5288
 
 
5289
 
 
5290
 
 
5291
 
 
5292
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5293
                  inttypes.h stdint.h unistd.h
 
5294
do
 
5295
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5296
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5297
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5298
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5300
else
 
5301
  cat >conftest.$ac_ext <<_ACEOF
 
5302
/* confdefs.h.  */
 
5303
_ACEOF
 
5304
cat confdefs.h >>conftest.$ac_ext
 
5305
cat >>conftest.$ac_ext <<_ACEOF
 
5306
/* end confdefs.h.  */
 
5307
$ac_includes_default
 
5308
 
 
5309
#include <$ac_header>
 
5310
_ACEOF
 
5311
rm -f conftest.$ac_objext
 
5312
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5313
  (eval $ac_compile) 2>conftest.er1
 
5314
  ac_status=$?
 
5315
  grep -v '^ *+' conftest.er1 >conftest.err
 
5316
  rm -f conftest.er1
 
5317
  cat conftest.err >&5
 
5318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5319
  (exit $ac_status); } &&
 
5320
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5322
  (eval $ac_try) 2>&5
 
5323
  ac_status=$?
 
5324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5325
  (exit $ac_status); }; } &&
 
5326
         { ac_try='test -s conftest.$ac_objext'
 
5327
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5328
  (eval $ac_try) 2>&5
 
5329
  ac_status=$?
 
5330
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5331
  (exit $ac_status); }; }; then
 
5332
  eval "$as_ac_Header=yes"
 
5333
else
 
5334
  echo "$as_me: failed program was:" >&5
 
5335
sed 's/^/| /' conftest.$ac_ext >&5
 
5336
 
 
5337
eval "$as_ac_Header=no"
 
5338
fi
 
5339
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5340
fi
 
5341
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5342
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5343
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5344
  cat >>confdefs.h <<_ACEOF
 
5345
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5346
_ACEOF
 
5347
 
 
5348
fi
 
5349
 
 
5350
done
 
5351
 
 
5352
 
 
5353
ac_ext=c
 
5354
ac_cpp='$CPP $CPPFLAGS'
 
5355
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5356
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5357
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5358
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
5359
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
5360
# On Suns, sometimes $CPP names a directory.
 
5361
if test -n "$CPP" && test -d "$CPP"; then
 
5362
  CPP=
 
5363
fi
 
5364
if test -z "$CPP"; then
 
5365
  if test "${ac_cv_prog_CPP+set}" = set; then
 
5366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5367
else
 
5368
      # Double quotes because CPP needs to be expanded
 
5369
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
5370
    do
 
5371
      ac_preproc_ok=false
 
5372
for ac_c_preproc_warn_flag in '' yes
 
5373
do
 
5374
  # Use a header file that comes with gcc, so configuring glibc
 
5375
  # with a fresh cross-compiler works.
 
5376
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5377
  # <limits.h> exists even on freestanding compilers.
 
5378
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5379
  # not just through cpp. "Syntax error" is here to catch this case.
 
5380
  cat >conftest.$ac_ext <<_ACEOF
 
5381
/* confdefs.h.  */
 
5382
_ACEOF
 
5383
cat confdefs.h >>conftest.$ac_ext
 
5384
cat >>conftest.$ac_ext <<_ACEOF
 
5385
/* end confdefs.h.  */
 
5386
#ifdef __STDC__
 
5387
# include <limits.h>
 
5388
#else
 
5389
# include <assert.h>
 
5390
#endif
 
5391
                     Syntax error
 
5392
_ACEOF
 
5393
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5394
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5395
  ac_status=$?
 
5396
  grep -v '^ *+' conftest.er1 >conftest.err
 
5397
  rm -f conftest.er1
 
5398
  cat conftest.err >&5
 
5399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5400
  (exit $ac_status); } >/dev/null; then
 
5401
  if test -s conftest.err; then
 
5402
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5403
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5404
  else
 
5405
    ac_cpp_err=
 
5406
  fi
 
5407
else
 
5408
  ac_cpp_err=yes
 
5409
fi
 
5410
if test -z "$ac_cpp_err"; then
 
5411
  :
 
5412
else
 
5413
  echo "$as_me: failed program was:" >&5
 
5414
sed 's/^/| /' conftest.$ac_ext >&5
 
5415
 
 
5416
  # Broken: fails on valid input.
 
5417
continue
 
5418
fi
 
5419
rm -f conftest.err conftest.$ac_ext
 
5420
 
 
5421
  # OK, works on sane cases.  Now check whether non-existent headers
 
5422
  # can be detected and how.
 
5423
  cat >conftest.$ac_ext <<_ACEOF
 
5424
/* confdefs.h.  */
 
5425
_ACEOF
 
5426
cat confdefs.h >>conftest.$ac_ext
 
5427
cat >>conftest.$ac_ext <<_ACEOF
 
5428
/* end confdefs.h.  */
 
5429
#include <ac_nonexistent.h>
 
5430
_ACEOF
 
5431
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5432
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5433
  ac_status=$?
 
5434
  grep -v '^ *+' conftest.er1 >conftest.err
 
5435
  rm -f conftest.er1
 
5436
  cat conftest.err >&5
 
5437
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5438
  (exit $ac_status); } >/dev/null; then
 
5439
  if test -s conftest.err; then
 
5440
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5441
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5442
  else
 
5443
    ac_cpp_err=
 
5444
  fi
 
5445
else
 
5446
  ac_cpp_err=yes
 
5447
fi
 
5448
if test -z "$ac_cpp_err"; then
 
5449
  # Broken: success on invalid input.
 
5450
continue
 
5451
else
 
5452
  echo "$as_me: failed program was:" >&5
 
5453
sed 's/^/| /' conftest.$ac_ext >&5
 
5454
 
 
5455
  # Passes both tests.
 
5456
ac_preproc_ok=:
 
5457
break
 
5458
fi
 
5459
rm -f conftest.err conftest.$ac_ext
 
5460
 
 
5461
done
 
5462
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5463
rm -f conftest.err conftest.$ac_ext
 
5464
if $ac_preproc_ok; then
 
5465
  break
 
5466
fi
 
5467
 
 
5468
    done
 
5469
    ac_cv_prog_CPP=$CPP
 
5470
 
 
5471
fi
 
5472
  CPP=$ac_cv_prog_CPP
 
5473
else
 
5474
  ac_cv_prog_CPP=$CPP
 
5475
fi
 
5476
echo "$as_me:$LINENO: result: $CPP" >&5
 
5477
echo "${ECHO_T}$CPP" >&6
 
5478
ac_preproc_ok=false
 
5479
for ac_c_preproc_warn_flag in '' yes
 
5480
do
 
5481
  # Use a header file that comes with gcc, so configuring glibc
 
5482
  # with a fresh cross-compiler works.
 
5483
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5484
  # <limits.h> exists even on freestanding compilers.
 
5485
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5486
  # not just through cpp. "Syntax error" is here to catch this case.
 
5487
  cat >conftest.$ac_ext <<_ACEOF
 
5488
/* confdefs.h.  */
 
5489
_ACEOF
 
5490
cat confdefs.h >>conftest.$ac_ext
 
5491
cat >>conftest.$ac_ext <<_ACEOF
 
5492
/* end confdefs.h.  */
 
5493
#ifdef __STDC__
 
5494
# include <limits.h>
 
5495
#else
 
5496
# include <assert.h>
 
5497
#endif
 
5498
                     Syntax error
 
5499
_ACEOF
 
5500
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5501
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5502
  ac_status=$?
 
5503
  grep -v '^ *+' conftest.er1 >conftest.err
 
5504
  rm -f conftest.er1
 
5505
  cat conftest.err >&5
 
5506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5507
  (exit $ac_status); } >/dev/null; then
 
5508
  if test -s conftest.err; then
 
5509
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5510
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5511
  else
 
5512
    ac_cpp_err=
 
5513
  fi
 
5514
else
 
5515
  ac_cpp_err=yes
 
5516
fi
 
5517
if test -z "$ac_cpp_err"; then
 
5518
  :
 
5519
else
 
5520
  echo "$as_me: failed program was:" >&5
 
5521
sed 's/^/| /' conftest.$ac_ext >&5
 
5522
 
 
5523
  # Broken: fails on valid input.
 
5524
continue
 
5525
fi
 
5526
rm -f conftest.err conftest.$ac_ext
 
5527
 
 
5528
  # OK, works on sane cases.  Now check whether non-existent headers
 
5529
  # can be detected and how.
 
5530
  cat >conftest.$ac_ext <<_ACEOF
 
5531
/* confdefs.h.  */
 
5532
_ACEOF
 
5533
cat confdefs.h >>conftest.$ac_ext
 
5534
cat >>conftest.$ac_ext <<_ACEOF
 
5535
/* end confdefs.h.  */
 
5536
#include <ac_nonexistent.h>
 
5537
_ACEOF
 
5538
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5539
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5540
  ac_status=$?
 
5541
  grep -v '^ *+' conftest.er1 >conftest.err
 
5542
  rm -f conftest.er1
 
5543
  cat conftest.err >&5
 
5544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5545
  (exit $ac_status); } >/dev/null; then
 
5546
  if test -s conftest.err; then
 
5547
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5548
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5549
  else
 
5550
    ac_cpp_err=
 
5551
  fi
 
5552
else
 
5553
  ac_cpp_err=yes
 
5554
fi
 
5555
if test -z "$ac_cpp_err"; then
 
5556
  # Broken: success on invalid input.
 
5557
continue
 
5558
else
 
5559
  echo "$as_me: failed program was:" >&5
 
5560
sed 's/^/| /' conftest.$ac_ext >&5
 
5561
 
 
5562
  # Passes both tests.
 
5563
ac_preproc_ok=:
 
5564
break
 
5565
fi
 
5566
rm -f conftest.err conftest.$ac_ext
 
5567
 
 
5568
done
 
5569
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5570
rm -f conftest.err conftest.$ac_ext
 
5571
if $ac_preproc_ok; then
 
5572
  :
 
5573
else
 
5574
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5575
See \`config.log' for more details." >&5
 
5576
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5577
See \`config.log' for more details." >&2;}
 
5578
   { (exit 1); exit 1; }; }
 
5579
fi
 
5580
 
 
5581
ac_ext=c
 
5582
ac_cpp='$CPP $CPPFLAGS'
 
5583
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5584
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5585
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5586
 
 
5587
 
 
5588
 
 
5589
for ac_header in dlfcn.h
 
5590
do
 
5591
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5592
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5593
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5594
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5595
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5597
fi
 
5598
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5599
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5600
else
 
5601
  # Is the header compilable?
 
5602
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5603
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5604
cat >conftest.$ac_ext <<_ACEOF
 
5605
/* confdefs.h.  */
 
5606
_ACEOF
 
5607
cat confdefs.h >>conftest.$ac_ext
 
5608
cat >>conftest.$ac_ext <<_ACEOF
 
5609
/* end confdefs.h.  */
 
5610
$ac_includes_default
 
5611
#include <$ac_header>
 
5612
_ACEOF
 
5613
rm -f conftest.$ac_objext
 
5614
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5615
  (eval $ac_compile) 2>conftest.er1
 
5616
  ac_status=$?
 
5617
  grep -v '^ *+' conftest.er1 >conftest.err
 
5618
  rm -f conftest.er1
 
5619
  cat conftest.err >&5
 
5620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5621
  (exit $ac_status); } &&
 
5622
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5624
  (eval $ac_try) 2>&5
 
5625
  ac_status=$?
 
5626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5627
  (exit $ac_status); }; } &&
 
5628
         { ac_try='test -s conftest.$ac_objext'
 
5629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5630
  (eval $ac_try) 2>&5
 
5631
  ac_status=$?
 
5632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5633
  (exit $ac_status); }; }; then
 
5634
  ac_header_compiler=yes
 
5635
else
 
5636
  echo "$as_me: failed program was:" >&5
 
5637
sed 's/^/| /' conftest.$ac_ext >&5
 
5638
 
 
5639
ac_header_compiler=no
 
5640
fi
 
5641
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5642
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5643
echo "${ECHO_T}$ac_header_compiler" >&6
 
5644
 
 
5645
# Is the header present?
 
5646
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5647
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5648
cat >conftest.$ac_ext <<_ACEOF
 
5649
/* confdefs.h.  */
 
5650
_ACEOF
 
5651
cat confdefs.h >>conftest.$ac_ext
 
5652
cat >>conftest.$ac_ext <<_ACEOF
 
5653
/* end confdefs.h.  */
 
5654
#include <$ac_header>
 
5655
_ACEOF
 
5656
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5657
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5658
  ac_status=$?
 
5659
  grep -v '^ *+' conftest.er1 >conftest.err
 
5660
  rm -f conftest.er1
 
5661
  cat conftest.err >&5
 
5662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5663
  (exit $ac_status); } >/dev/null; then
 
5664
  if test -s conftest.err; then
 
5665
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5666
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5667
  else
 
5668
    ac_cpp_err=
 
5669
  fi
 
5670
else
 
5671
  ac_cpp_err=yes
 
5672
fi
 
5673
if test -z "$ac_cpp_err"; then
 
5674
  ac_header_preproc=yes
 
5675
else
 
5676
  echo "$as_me: failed program was:" >&5
 
5677
sed 's/^/| /' conftest.$ac_ext >&5
 
5678
 
 
5679
  ac_header_preproc=no
 
5680
fi
 
5681
rm -f conftest.err conftest.$ac_ext
 
5682
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5683
echo "${ECHO_T}$ac_header_preproc" >&6
 
5684
 
 
5685
# So?  What about this header?
 
5686
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5687
  yes:no: )
 
5688
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5689
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5690
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5691
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5692
    ac_header_preproc=yes
 
5693
    ;;
 
5694
  no:yes:* )
 
5695
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5696
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5697
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5698
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5699
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5700
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5701
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5702
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5703
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5704
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5705
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5706
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5707
    (
 
5708
      cat <<\_ASBOX
 
5709
## -------------------------------- ##
 
5710
## Report this to enrico@debian.org ##
 
5711
## -------------------------------- ##
 
5712
_ASBOX
 
5713
    ) |
 
5714
      sed "s/^/$as_me: WARNING:     /" >&2
 
5715
    ;;
 
5716
esac
 
5717
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5718
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5719
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5721
else
 
5722
  eval "$as_ac_Header=\$ac_header_preproc"
 
5723
fi
 
5724
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5725
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5726
 
 
5727
fi
 
5728
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5729
  cat >>confdefs.h <<_ACEOF
 
5730
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5731
_ACEOF
 
5732
 
 
5733
fi
 
5734
 
 
5735
done
 
5736
 
 
5737
ac_ext=f
 
5738
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5739
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5740
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5741
if test -n "$ac_tool_prefix"; then
 
5742
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5743
  do
 
5744
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5745
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5746
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5748
if test "${ac_cv_prog_F77+set}" = set; then
 
5749
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5750
else
 
5751
  if test -n "$F77"; then
 
5752
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5753
else
 
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5755
for as_dir in $PATH
 
5756
do
 
5757
  IFS=$as_save_IFS
 
5758
  test -z "$as_dir" && as_dir=.
 
5759
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5760
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5761
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5763
    break 2
 
5764
  fi
 
5765
done
 
5766
done
 
5767
 
 
5768
fi
 
5769
fi
 
5770
F77=$ac_cv_prog_F77
 
5771
if test -n "$F77"; then
 
5772
  echo "$as_me:$LINENO: result: $F77" >&5
 
5773
echo "${ECHO_T}$F77" >&6
 
5774
else
 
5775
  echo "$as_me:$LINENO: result: no" >&5
 
5776
echo "${ECHO_T}no" >&6
 
5777
fi
 
5778
 
 
5779
    test -n "$F77" && break
 
5780
  done
 
5781
fi
 
5782
if test -z "$F77"; then
 
5783
  ac_ct_F77=$F77
 
5784
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5785
do
 
5786
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5787
set dummy $ac_prog; ac_word=$2
 
5788
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5789
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5790
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5792
else
 
5793
  if test -n "$ac_ct_F77"; then
 
5794
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5795
else
 
5796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5797
for as_dir in $PATH
 
5798
do
 
5799
  IFS=$as_save_IFS
 
5800
  test -z "$as_dir" && as_dir=.
 
5801
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5802
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5803
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5804
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5805
    break 2
 
5806
  fi
 
5807
done
 
5808
done
 
5809
 
 
5810
fi
 
5811
fi
 
5812
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5813
if test -n "$ac_ct_F77"; then
 
5814
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5815
echo "${ECHO_T}$ac_ct_F77" >&6
 
5816
else
 
5817
  echo "$as_me:$LINENO: result: no" >&5
 
5818
echo "${ECHO_T}no" >&6
 
5819
fi
 
5820
 
 
5821
  test -n "$ac_ct_F77" && break
 
5822
done
 
5823
 
 
5824
  F77=$ac_ct_F77
 
5825
fi
 
5826
 
 
5827
 
 
5828
# Provide some information about the compiler.
 
5829
echo "$as_me:5829:" \
 
5830
     "checking for Fortran 77 compiler version" >&5
 
5831
ac_compiler=`set X $ac_compile; echo $2`
 
5832
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5833
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5834
  ac_status=$?
 
5835
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5836
  (exit $ac_status); }
 
5837
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5838
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5839
  ac_status=$?
 
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); }
 
5842
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5843
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5844
  ac_status=$?
 
5845
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5846
  (exit $ac_status); }
 
5847
rm -f a.out
 
5848
 
 
5849
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5850
# input file.  (Note that this only needs to work for GNU compilers.)
 
5851
ac_save_ext=$ac_ext
 
5852
ac_ext=F
 
5853
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5854
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5855
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5857
else
 
5858
  cat >conftest.$ac_ext <<_ACEOF
 
5859
      program main
 
5860
#ifndef __GNUC__
 
5861
       choke me
 
5862
#endif
 
5863
 
 
5864
      end
 
5865
_ACEOF
 
5866
rm -f conftest.$ac_objext
 
5867
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5868
  (eval $ac_compile) 2>conftest.er1
 
5869
  ac_status=$?
 
5870
  grep -v '^ *+' conftest.er1 >conftest.err
 
5871
  rm -f conftest.er1
 
5872
  cat conftest.err >&5
 
5873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5874
  (exit $ac_status); } &&
 
5875
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5876
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5877
  (eval $ac_try) 2>&5
 
5878
  ac_status=$?
 
5879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5880
  (exit $ac_status); }; } &&
 
5881
         { ac_try='test -s conftest.$ac_objext'
 
5882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5883
  (eval $ac_try) 2>&5
 
5884
  ac_status=$?
 
5885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5886
  (exit $ac_status); }; }; then
 
5887
  ac_compiler_gnu=yes
 
5888
else
 
5889
  echo "$as_me: failed program was:" >&5
 
5890
sed 's/^/| /' conftest.$ac_ext >&5
 
5891
 
 
5892
ac_compiler_gnu=no
 
5893
fi
 
5894
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5895
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5896
 
 
5897
fi
 
5898
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5899
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5900
ac_ext=$ac_save_ext
 
5901
ac_test_FFLAGS=${FFLAGS+set}
 
5902
ac_save_FFLAGS=$FFLAGS
 
5903
FFLAGS=
 
5904
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5905
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5906
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5907
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5908
else
 
5909
  FFLAGS=-g
 
5910
cat >conftest.$ac_ext <<_ACEOF
 
5911
      program main
 
5912
 
 
5913
      end
 
5914
_ACEOF
 
5915
rm -f conftest.$ac_objext
 
5916
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5917
  (eval $ac_compile) 2>conftest.er1
 
5918
  ac_status=$?
 
5919
  grep -v '^ *+' conftest.er1 >conftest.err
 
5920
  rm -f conftest.er1
 
5921
  cat conftest.err >&5
 
5922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5923
  (exit $ac_status); } &&
 
5924
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5926
  (eval $ac_try) 2>&5
 
5927
  ac_status=$?
 
5928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5929
  (exit $ac_status); }; } &&
 
5930
         { ac_try='test -s conftest.$ac_objext'
 
5931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5932
  (eval $ac_try) 2>&5
 
5933
  ac_status=$?
 
5934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5935
  (exit $ac_status); }; }; then
 
5936
  ac_cv_prog_f77_g=yes
 
5937
else
 
5938
  echo "$as_me: failed program was:" >&5
 
5939
sed 's/^/| /' conftest.$ac_ext >&5
 
5940
 
 
5941
ac_cv_prog_f77_g=no
 
5942
fi
 
5943
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5944
 
 
5945
fi
 
5946
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5947
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5948
if test "$ac_test_FFLAGS" = set; then
 
5949
  FFLAGS=$ac_save_FFLAGS
 
5950
elif test $ac_cv_prog_f77_g = yes; then
 
5951
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5952
    FFLAGS="-g -O2"
 
5953
  else
 
5954
    FFLAGS="-g"
 
5955
  fi
 
5956
else
 
5957
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5958
    FFLAGS="-O2"
 
5959
  else
 
5960
    FFLAGS=
 
5961
  fi
 
5962
fi
 
5963
 
 
5964
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5965
ac_ext=cc
 
5966
ac_cpp='$CXXCPP $CPPFLAGS'
 
5967
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5968
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5969
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5970
 
 
5971
 
 
5972
 
 
5973
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5974
 
 
5975
# find the maximum length of command line arguments
 
5976
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5977
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5978
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5980
else
 
5981
    i=0
 
5982
  teststring="ABCD"
 
5983
 
 
5984
  case $build_os in
 
5985
  msdosdjgpp*)
 
5986
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5987
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5988
    # during glob expansion).  Even if it were fixed, the result of this
 
5989
    # check would be larger than it should be.
 
5990
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5991
    ;;
 
5992
 
 
5993
  gnu*)
 
5994
    # Under GNU Hurd, this test is not required because there is
 
5995
    # no limit to the length of command line arguments.
 
5996
    # Libtool will interpret -1 as no limit whatsoever
 
5997
    lt_cv_sys_max_cmd_len=-1;
 
5998
    ;;
 
5999
 
 
6000
  cygwin* | mingw*)
 
6001
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6002
    # about 5 minutes as the teststring grows exponentially.
 
6003
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6004
    # you end up with a "frozen" computer, even though with patience
 
6005
    # the test eventually succeeds (with a max line length of 256k).
 
6006
    # Instead, let's just punt: use the minimum linelength reported by
 
6007
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6008
    lt_cv_sys_max_cmd_len=8192;
 
6009
    ;;
 
6010
 
 
6011
  amigaos*)
 
6012
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6013
    # So we just punt and use a minimum line length of 8192.
 
6014
    lt_cv_sys_max_cmd_len=8192;
 
6015
    ;;
 
6016
 
 
6017
 *)
 
6018
    # If test is not a shell built-in, we'll probably end up computing a
 
6019
    # maximum length that is only half of the actual maximum length, but
 
6020
    # we can't tell.
 
6021
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6022
               = "XX$teststring") >/dev/null 2>&1 &&
 
6023
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6024
            lt_cv_sys_max_cmd_len=$new_result &&
 
6025
            test $i != 17 # 1/2 MB should be enough
 
6026
    do
 
6027
      i=`expr $i + 1`
 
6028
      teststring=$teststring$teststring
 
6029
    done
 
6030
    teststring=
 
6031
    # Add a significant safety factor because C++ compilers can tack on massive
 
6032
    # amounts of additional arguments before passing them to the linker.
 
6033
    # It appears as though 1/2 is a usable value.
 
6034
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6035
    ;;
 
6036
  esac
 
6037
 
 
6038
fi
 
6039
 
 
6040
if test -n $lt_cv_sys_max_cmd_len ; then
 
6041
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6042
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6043
else
 
6044
  echo "$as_me:$LINENO: result: none" >&5
 
6045
echo "${ECHO_T}none" >&6
 
6046
fi
 
6047
 
 
6048
 
 
6049
 
 
6050
 
 
6051
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6052
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6053
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6054
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6055
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6056
else
 
6057
 
 
6058
# These are sane defaults that work on at least a few old systems.
 
6059
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6060
 
 
6061
# Character class describing NM global symbol codes.
 
6062
symcode='[BCDEGRST]'
 
6063
 
 
6064
# Regexp to match symbols that can be accessed directly from C.
 
6065
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6066
 
 
6067
# Transform the above into a raw symbol and a C symbol.
 
6068
symxfrm='\1 \2\3 \3'
 
6069
 
 
6070
# Transform an extracted symbol line into a proper C declaration
 
6071
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6072
 
 
6073
# Transform an extracted symbol line into symbol name and symbol address
 
6074
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'"
 
6075
 
 
6076
# Define system-specific variables.
 
6077
case $host_os in
 
6078
aix*)
 
6079
  symcode='[BCDT]'
 
6080
  ;;
 
6081
cygwin* | mingw* | pw32*)
 
6082
  symcode='[ABCDGISTW]'
 
6083
  ;;
 
6084
hpux*) # Its linker distinguishes data from code symbols
 
6085
  if test "$host_cpu" = ia64; then
 
6086
    symcode='[ABCDEGRST]'
 
6087
  fi
 
6088
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6089
  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'"
 
6090
  ;;
 
6091
irix* | nonstopux*)
 
6092
  symcode='[BCDEGRST]'
 
6093
  ;;
 
6094
osf*)
 
6095
  symcode='[BCDEGQRST]'
 
6096
  ;;
 
6097
solaris* | sysv5*)
 
6098
  symcode='[BDRT]'
 
6099
  ;;
 
6100
sysv4)
 
6101
  symcode='[DFNSTU]'
 
6102
  ;;
 
6103
esac
 
6104
 
 
6105
# Handle CRLF in mingw tool chain
 
6106
opt_cr=
 
6107
case $build_os in
 
6108
mingw*)
 
6109
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6110
  ;;
 
6111
esac
 
6112
 
 
6113
# If we're using GNU nm, then use its standard symbol codes.
 
6114
case `$NM -V 2>&1` in
 
6115
*GNU* | *'with BFD'*)
 
6116
  symcode='[ABCDGIRSTW]' ;;
 
6117
esac
 
6118
 
 
6119
# Try without a prefix undercore, then with it.
 
6120
for ac_symprfx in "" "_"; do
 
6121
 
 
6122
  # Write the raw and C identifiers.
 
6123
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6124
 
 
6125
  # Check to see that the pipe works correctly.
 
6126
  pipe_works=no
 
6127
 
 
6128
  rm -f conftest*
 
6129
  cat > conftest.$ac_ext <<EOF
 
6130
#ifdef __cplusplus
 
6131
extern "C" {
 
6132
#endif
 
6133
char nm_test_var;
 
6134
void nm_test_func(){}
 
6135
#ifdef __cplusplus
 
6136
}
 
6137
#endif
 
6138
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6139
EOF
 
6140
 
 
6141
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6142
  (eval $ac_compile) 2>&5
 
6143
  ac_status=$?
 
6144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6145
  (exit $ac_status); }; then
 
6146
    # Now try to grab the symbols.
 
6147
    nlist=conftest.nm
 
6148
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6149
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6150
  ac_status=$?
 
6151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6152
  (exit $ac_status); } && test -s "$nlist"; then
 
6153
      # Try sorting and uniquifying the output.
 
6154
      if sort "$nlist" | uniq > "$nlist"T; then
 
6155
        mv -f "$nlist"T "$nlist"
 
6156
      else
 
6157
        rm -f "$nlist"T
 
6158
      fi
 
6159
 
 
6160
      # Make sure that we snagged all the symbols we need.
 
6161
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6162
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6163
          cat <<EOF > conftest.$ac_ext
 
6164
#ifdef __cplusplus
 
6165
extern "C" {
 
6166
#endif
 
6167
 
 
6168
EOF
 
6169
          # Now generate the symbol file.
 
6170
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6171
 
 
6172
          cat <<EOF >> conftest.$ac_ext
 
6173
#if defined (__STDC__) && __STDC__
 
6174
# define lt_ptr_t void *
 
6175
#else
 
6176
# define lt_ptr_t char *
 
6177
# define const
 
6178
#endif
 
6179
 
 
6180
/* The mapping between symbol names and symbols. */
 
6181
const struct {
 
6182
  const char *name;
 
6183
  lt_ptr_t address;
 
6184
}
 
6185
lt_preloaded_symbols[] =
 
6186
{
 
6187
EOF
 
6188
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6189
          cat <<\EOF >> conftest.$ac_ext
 
6190
  {0, (lt_ptr_t) 0}
 
6191
};
 
6192
 
 
6193
#ifdef __cplusplus
 
6194
}
 
6195
#endif
 
6196
EOF
 
6197
          # Now try linking the two files.
 
6198
          mv conftest.$ac_objext conftstm.$ac_objext
 
6199
          lt_save_LIBS="$LIBS"
 
6200
          lt_save_CFLAGS="$CFLAGS"
 
6201
          LIBS="conftstm.$ac_objext"
 
6202
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6203
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6204
  (eval $ac_link) 2>&5
 
6205
  ac_status=$?
 
6206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6207
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6208
            pipe_works=yes
 
6209
          fi
 
6210
          LIBS="$lt_save_LIBS"
 
6211
          CFLAGS="$lt_save_CFLAGS"
 
6212
        else
 
6213
          echo "cannot find nm_test_func in $nlist" >&5
 
6214
        fi
 
6215
      else
 
6216
        echo "cannot find nm_test_var in $nlist" >&5
 
6217
      fi
 
6218
    else
 
6219
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6220
    fi
 
6221
  else
 
6222
    echo "$progname: failed program was:" >&5
 
6223
    cat conftest.$ac_ext >&5
 
6224
  fi
 
6225
  rm -f conftest* conftst*
 
6226
 
 
6227
  # Do not use the global_symbol_pipe unless it works.
 
6228
  if test "$pipe_works" = yes; then
 
6229
    break
 
6230
  else
 
6231
    lt_cv_sys_global_symbol_pipe=
 
6232
  fi
 
6233
done
 
6234
 
 
6235
fi
 
6236
 
 
6237
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6238
  lt_cv_sys_global_symbol_to_cdecl=
 
6239
fi
 
6240
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6241
  echo "$as_me:$LINENO: result: failed" >&5
 
6242
echo "${ECHO_T}failed" >&6
 
6243
else
 
6244
  echo "$as_me:$LINENO: result: ok" >&5
 
6245
echo "${ECHO_T}ok" >&6
 
6246
fi
 
6247
 
 
6248
echo "$as_me:$LINENO: checking for objdir" >&5
 
6249
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6250
if test "${lt_cv_objdir+set}" = set; then
 
6251
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6252
else
 
6253
  rm -f .libs 2>/dev/null
 
6254
mkdir .libs 2>/dev/null
 
6255
if test -d .libs; then
 
6256
  lt_cv_objdir=.libs
 
6257
else
 
6258
  # MS-DOS does not allow filenames that begin with a dot.
 
6259
  lt_cv_objdir=_libs
 
6260
fi
 
6261
rmdir .libs 2>/dev/null
 
6262
fi
 
6263
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6264
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6265
objdir=$lt_cv_objdir
 
6266
 
 
6267
 
 
6268
 
 
6269
 
 
6270
 
 
6271
case $host_os in
 
6272
aix3*)
 
6273
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6274
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6275
  # vanish in a puff of smoke.
 
6276
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6277
    COLLECT_NAMES=
 
6278
    export COLLECT_NAMES
 
6279
  fi
 
6280
  ;;
 
6281
esac
 
6282
 
 
6283
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6284
# metacharacters that are still active within double-quoted strings.
 
6285
Xsed='sed -e s/^X//'
 
6286
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6287
 
 
6288
# Same as above, but do not quote variable references.
 
6289
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6290
 
 
6291
# Sed substitution to delay expansion of an escaped shell variable in a
 
6292
# double_quote_subst'ed string.
 
6293
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6294
 
 
6295
# Sed substitution to avoid accidental globbing in evaled expressions
 
6296
no_glob_subst='s/\*/\\\*/g'
 
6297
 
 
6298
# Constants:
 
6299
rm="rm -f"
 
6300
 
 
6301
# Global variables:
 
6302
default_ofile=libtool
 
6303
can_build_shared=yes
 
6304
 
 
6305
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6306
# which needs '.lib').
 
6307
libext=a
 
6308
ltmain="$ac_aux_dir/ltmain.sh"
 
6309
ofile="$default_ofile"
 
6310
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6311
 
 
6312
if test -n "$ac_tool_prefix"; then
 
6313
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6314
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6315
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6316
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6317
if test "${ac_cv_prog_AR+set}" = set; then
 
6318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6319
else
 
6320
  if test -n "$AR"; then
 
6321
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6322
else
 
6323
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6324
for as_dir in $PATH
 
6325
do
 
6326
  IFS=$as_save_IFS
 
6327
  test -z "$as_dir" && as_dir=.
 
6328
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6329
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6330
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6331
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6332
    break 2
 
6333
  fi
 
6334
done
 
6335
done
 
6336
 
 
6337
fi
 
6338
fi
 
6339
AR=$ac_cv_prog_AR
 
6340
if test -n "$AR"; then
 
6341
  echo "$as_me:$LINENO: result: $AR" >&5
 
6342
echo "${ECHO_T}$AR" >&6
 
6343
else
 
6344
  echo "$as_me:$LINENO: result: no" >&5
 
6345
echo "${ECHO_T}no" >&6
 
6346
fi
 
6347
 
 
6348
fi
 
6349
if test -z "$ac_cv_prog_AR"; then
 
6350
  ac_ct_AR=$AR
 
6351
  # Extract the first word of "ar", so it can be a program name with args.
 
6352
set dummy ar; ac_word=$2
 
6353
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6354
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6355
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6357
else
 
6358
  if test -n "$ac_ct_AR"; then
 
6359
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6360
else
 
6361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6362
for as_dir in $PATH
 
6363
do
 
6364
  IFS=$as_save_IFS
 
6365
  test -z "$as_dir" && as_dir=.
 
6366
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6367
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6368
    ac_cv_prog_ac_ct_AR="ar"
 
6369
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6370
    break 2
 
6371
  fi
 
6372
done
 
6373
done
 
6374
 
 
6375
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6376
fi
 
6377
fi
 
6378
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6379
if test -n "$ac_ct_AR"; then
 
6380
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6381
echo "${ECHO_T}$ac_ct_AR" >&6
 
6382
else
 
6383
  echo "$as_me:$LINENO: result: no" >&5
 
6384
echo "${ECHO_T}no" >&6
 
6385
fi
 
6386
 
 
6387
  AR=$ac_ct_AR
 
6388
else
 
6389
  AR="$ac_cv_prog_AR"
 
6390
fi
 
6391
 
 
6392
if test -n "$ac_tool_prefix"; then
 
6393
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6394
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6395
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6396
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6397
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6398
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6399
else
 
6400
  if test -n "$RANLIB"; then
 
6401
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6402
else
 
6403
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6404
for as_dir in $PATH
 
6405
do
 
6406
  IFS=$as_save_IFS
 
6407
  test -z "$as_dir" && as_dir=.
 
6408
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6409
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6410
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6411
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6412
    break 2
 
6413
  fi
 
6414
done
 
6415
done
 
6416
 
 
6417
fi
 
6418
fi
 
6419
RANLIB=$ac_cv_prog_RANLIB
 
6420
if test -n "$RANLIB"; then
 
6421
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6422
echo "${ECHO_T}$RANLIB" >&6
 
6423
else
 
6424
  echo "$as_me:$LINENO: result: no" >&5
 
6425
echo "${ECHO_T}no" >&6
 
6426
fi
 
6427
 
 
6428
fi
 
6429
if test -z "$ac_cv_prog_RANLIB"; then
 
6430
  ac_ct_RANLIB=$RANLIB
 
6431
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6432
set dummy ranlib; ac_word=$2
 
6433
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6435
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6437
else
 
6438
  if test -n "$ac_ct_RANLIB"; then
 
6439
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6440
else
 
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6442
for as_dir in $PATH
 
6443
do
 
6444
  IFS=$as_save_IFS
 
6445
  test -z "$as_dir" && as_dir=.
 
6446
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6447
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6448
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6449
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6450
    break 2
 
6451
  fi
 
6452
done
 
6453
done
 
6454
 
 
6455
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6456
fi
 
6457
fi
 
6458
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6459
if test -n "$ac_ct_RANLIB"; then
 
6460
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6461
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6462
else
 
6463
  echo "$as_me:$LINENO: result: no" >&5
 
6464
echo "${ECHO_T}no" >&6
 
6465
fi
 
6466
 
 
6467
  RANLIB=$ac_ct_RANLIB
 
6468
else
 
6469
  RANLIB="$ac_cv_prog_RANLIB"
 
6470
fi
 
6471
 
 
6472
if test -n "$ac_tool_prefix"; then
 
6473
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6474
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6475
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6477
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6479
else
 
6480
  if test -n "$STRIP"; then
 
6481
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6482
else
 
6483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6484
for as_dir in $PATH
 
6485
do
 
6486
  IFS=$as_save_IFS
 
6487
  test -z "$as_dir" && as_dir=.
 
6488
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6489
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6490
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6491
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6492
    break 2
 
6493
  fi
 
6494
done
 
6495
done
 
6496
 
 
6497
fi
 
6498
fi
 
6499
STRIP=$ac_cv_prog_STRIP
 
6500
if test -n "$STRIP"; then
 
6501
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6502
echo "${ECHO_T}$STRIP" >&6
 
6503
else
 
6504
  echo "$as_me:$LINENO: result: no" >&5
 
6505
echo "${ECHO_T}no" >&6
 
6506
fi
 
6507
 
 
6508
fi
 
6509
if test -z "$ac_cv_prog_STRIP"; then
 
6510
  ac_ct_STRIP=$STRIP
 
6511
  # Extract the first word of "strip", so it can be a program name with args.
 
6512
set dummy strip; ac_word=$2
 
6513
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6515
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6517
else
 
6518
  if test -n "$ac_ct_STRIP"; then
 
6519
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6520
else
 
6521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6522
for as_dir in $PATH
 
6523
do
 
6524
  IFS=$as_save_IFS
 
6525
  test -z "$as_dir" && as_dir=.
 
6526
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6527
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6528
    ac_cv_prog_ac_ct_STRIP="strip"
 
6529
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6530
    break 2
 
6531
  fi
 
6532
done
 
6533
done
 
6534
 
 
6535
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6536
fi
 
6537
fi
 
6538
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6539
if test -n "$ac_ct_STRIP"; then
 
6540
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6541
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6542
else
 
6543
  echo "$as_me:$LINENO: result: no" >&5
 
6544
echo "${ECHO_T}no" >&6
 
6545
fi
 
6546
 
 
6547
  STRIP=$ac_ct_STRIP
 
6548
else
 
6549
  STRIP="$ac_cv_prog_STRIP"
 
6550
fi
 
6551
 
 
6552
 
 
6553
old_CC="$CC"
 
6554
old_CFLAGS="$CFLAGS"
 
6555
 
 
6556
# Set sane defaults for various variables
 
6557
test -z "$AR" && AR=ar
 
6558
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6559
test -z "$AS" && AS=as
 
6560
test -z "$CC" && CC=cc
 
6561
test -z "$LTCC" && LTCC=$CC
 
6562
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6563
test -z "$LD" && LD=ld
 
6564
test -z "$LN_S" && LN_S="ln -s"
 
6565
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6566
test -z "$NM" && NM=nm
 
6567
test -z "$SED" && SED=sed
 
6568
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6569
test -z "$RANLIB" && RANLIB=:
 
6570
test -z "$STRIP" && STRIP=:
 
6571
test -z "$ac_objext" && ac_objext=o
 
6572
 
 
6573
# Determine commands to create old-style static archives.
 
6574
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6575
old_postinstall_cmds='chmod 644 $oldlib'
 
6576
old_postuninstall_cmds=
 
6577
 
 
6578
if test -n "$RANLIB"; then
 
6579
  case $host_os in
 
6580
  openbsd*)
 
6581
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6582
    ;;
 
6583
  *)
 
6584
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6585
    ;;
 
6586
  esac
 
6587
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6588
fi
 
6589
 
 
6590
# Only perform the check for file, if the check method requires it
 
6591
case $deplibs_check_method in
 
6592
file_magic*)
 
6593
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6594
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6595
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6596
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6597
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6598
else
 
6599
  case $MAGIC_CMD in
 
6600
[\\/*] |  ?:[\\/]*)
 
6601
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6602
  ;;
 
6603
*)
 
6604
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6605
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6606
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6607
  for ac_dir in $ac_dummy; do
 
6608
    IFS="$lt_save_ifs"
 
6609
    test -z "$ac_dir" && ac_dir=.
 
6610
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6611
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6612
      if test -n "$file_magic_test_file"; then
 
6613
        case $deplibs_check_method in
 
6614
        "file_magic "*)
 
6615
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6616
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6617
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6618
            $EGREP "$file_magic_regex" > /dev/null; then
 
6619
            :
 
6620
          else
 
6621
            cat <<EOF 1>&2
 
6622
 
 
6623
*** Warning: the command libtool uses to detect shared libraries,
 
6624
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6625
*** The result is that libtool may fail to recognize shared libraries
 
6626
*** as such.  This will affect the creation of libtool libraries that
 
6627
*** depend on shared libraries, but programs linked with such libtool
 
6628
*** libraries will work regardless of this problem.  Nevertheless, you
 
6629
*** may want to report the problem to your system manager and/or to
 
6630
*** bug-libtool@gnu.org
 
6631
 
 
6632
EOF
 
6633
          fi ;;
 
6634
        esac
 
6635
      fi
 
6636
      break
 
6637
    fi
 
6638
  done
 
6639
  IFS="$lt_save_ifs"
 
6640
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6641
  ;;
 
6642
esac
 
6643
fi
 
6644
 
 
6645
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6646
if test -n "$MAGIC_CMD"; then
 
6647
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6648
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6649
else
 
6650
  echo "$as_me:$LINENO: result: no" >&5
 
6651
echo "${ECHO_T}no" >&6
 
6652
fi
 
6653
 
 
6654
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6655
  if test -n "$ac_tool_prefix"; then
 
6656
    echo "$as_me:$LINENO: checking for file" >&5
 
6657
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6658
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6660
else
 
6661
  case $MAGIC_CMD in
 
6662
[\\/*] |  ?:[\\/]*)
 
6663
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6664
  ;;
 
6665
*)
 
6666
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6667
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6668
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6669
  for ac_dir in $ac_dummy; do
 
6670
    IFS="$lt_save_ifs"
 
6671
    test -z "$ac_dir" && ac_dir=.
 
6672
    if test -f $ac_dir/file; then
 
6673
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6674
      if test -n "$file_magic_test_file"; then
 
6675
        case $deplibs_check_method in
 
6676
        "file_magic "*)
 
6677
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6678
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6679
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6680
            $EGREP "$file_magic_regex" > /dev/null; then
 
6681
            :
 
6682
          else
 
6683
            cat <<EOF 1>&2
 
6684
 
 
6685
*** Warning: the command libtool uses to detect shared libraries,
 
6686
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6687
*** The result is that libtool may fail to recognize shared libraries
 
6688
*** as such.  This will affect the creation of libtool libraries that
 
6689
*** depend on shared libraries, but programs linked with such libtool
 
6690
*** libraries will work regardless of this problem.  Nevertheless, you
 
6691
*** may want to report the problem to your system manager and/or to
 
6692
*** bug-libtool@gnu.org
 
6693
 
 
6694
EOF
 
6695
          fi ;;
 
6696
        esac
 
6697
      fi
 
6698
      break
 
6699
    fi
 
6700
  done
 
6701
  IFS="$lt_save_ifs"
 
6702
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6703
  ;;
 
6704
esac
 
6705
fi
 
6706
 
 
6707
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6708
if test -n "$MAGIC_CMD"; then
 
6709
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6710
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6711
else
 
6712
  echo "$as_me:$LINENO: result: no" >&5
 
6713
echo "${ECHO_T}no" >&6
 
6714
fi
 
6715
 
 
6716
  else
 
6717
    MAGIC_CMD=:
 
6718
  fi
 
6719
fi
 
6720
 
 
6721
  fi
 
6722
  ;;
 
6723
esac
 
6724
 
 
6725
enable_dlopen=no
 
6726
enable_win32_dll=no
 
6727
 
 
6728
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6729
if test "${enable_libtool_lock+set}" = set; then
 
6730
  enableval="$enable_libtool_lock"
 
6731
 
 
6732
fi;
 
6733
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6734
 
 
6735
 
 
6736
# Check whether --with-pic or --without-pic was given.
 
6737
if test "${with_pic+set}" = set; then
 
6738
  withval="$with_pic"
 
6739
  pic_mode="$withval"
 
6740
else
 
6741
  pic_mode=default
 
6742
fi;
 
6743
test -z "$pic_mode" && pic_mode=default
 
6744
 
 
6745
# Use C for the default configuration in the libtool script
 
6746
tagname=
 
6747
lt_save_CC="$CC"
 
6748
ac_ext=c
 
6749
ac_cpp='$CPP $CPPFLAGS'
 
6750
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6751
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6752
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6753
 
 
6754
 
 
6755
# Source file extension for C test sources.
 
6756
ac_ext=c
 
6757
 
 
6758
# Object file extension for compiled C test sources.
 
6759
objext=o
 
6760
objext=$objext
 
6761
 
 
6762
# Code to be used in simple compile tests
 
6763
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6764
 
 
6765
# Code to be used in simple link tests
 
6766
lt_simple_link_test_code='int main(){return(0);}\n'
 
6767
 
 
6768
 
 
6769
# If no C compiler was specified, use CC.
 
6770
LTCC=${LTCC-"$CC"}
 
6771
 
 
6772
# Allow CC to be a program name with arguments.
 
6773
compiler=$CC
 
6774
 
 
6775
 
 
6776
#
 
6777
# Check for any special shared library compilation flags.
 
6778
#
 
6779
lt_prog_cc_shlib=
 
6780
if test "$GCC" = no; then
 
6781
  case $host_os in
 
6782
  sco3.2v5*)
 
6783
    lt_prog_cc_shlib='-belf'
 
6784
    ;;
 
6785
  esac
 
6786
fi
 
6787
if test -n "$lt_prog_cc_shlib"; then
 
6788
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6789
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6790
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6791
  else
 
6792
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6793
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6794
    lt_cv_prog_cc_can_build_shared=no
 
6795
  fi
 
6796
fi
 
6797
 
 
6798
 
 
6799
#
 
6800
# Check to make sure the static flag actually works.
 
6801
#
 
6802
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6803
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6804
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6806
else
 
6807
  lt_prog_compiler_static_works=no
 
6808
   save_LDFLAGS="$LDFLAGS"
 
6809
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6810
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6811
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6812
     # The compiler can only warn and ignore the option if not recognized
 
6813
     # So say no if there are warnings
 
6814
     if test -s conftest.err; then
 
6815
       # Append any errors to the config.log.
 
6816
       cat conftest.err 1>&5
 
6817
     else
 
6818
       lt_prog_compiler_static_works=yes
 
6819
     fi
 
6820
   fi
 
6821
   $rm conftest*
 
6822
   LDFLAGS="$save_LDFLAGS"
 
6823
 
 
6824
fi
 
6825
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6826
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6827
 
 
6828
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6829
    :
 
6830
else
 
6831
    lt_prog_compiler_static=
 
6832
fi
 
6833
 
 
6834
 
 
6835
 
 
6836
 
 
6837
lt_prog_compiler_no_builtin_flag=
 
6838
 
 
6839
if test "$GCC" = yes; then
 
6840
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6841
 
 
6842
 
 
6843
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6844
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6845
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6846
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6847
else
 
6848
  lt_cv_prog_compiler_rtti_exceptions=no
 
6849
  ac_outfile=conftest.$ac_objext
 
6850
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6851
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6852
   # Insert the option either (1) after the last *FLAGS variable, or
 
6853
   # (2) before a word containing "conftest.", or (3) at the end.
 
6854
   # Note that $ac_compile itself does not contain backslashes and begins
 
6855
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6856
   # The option is referenced via a variable to avoid confusing sed.
 
6857
   lt_compile=`echo "$ac_compile" | $SED \
 
6858
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
6859
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6860
   -e 's:$: $lt_compiler_flag:'`
 
6861
   (eval echo "\"\$as_me:6861: $lt_compile\"" >&5)
 
6862
   (eval "$lt_compile" 2>conftest.err)
 
6863
   ac_status=$?
 
6864
   cat conftest.err >&5
 
6865
   echo "$as_me:6865: \$? = $ac_status" >&5
 
6866
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6867
     # The compiler can only warn and ignore the option if not recognized
 
6868
     # So say no if there are warnings
 
6869
     if test ! -s conftest.err; then
 
6870
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6871
     fi
 
6872
   fi
 
6873
   $rm conftest*
 
6874
 
 
6875
fi
 
6876
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6877
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6878
 
 
6879
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6880
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6881
else
 
6882
    :
 
6883
fi
 
6884
 
 
6885
fi
 
6886
 
 
6887
lt_prog_compiler_wl=
 
6888
lt_prog_compiler_pic=
 
6889
lt_prog_compiler_static=
 
6890
 
 
6891
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6892
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6893
 
 
6894
  if test "$GCC" = yes; then
 
6895
    lt_prog_compiler_wl='-Wl,'
 
6896
    lt_prog_compiler_static='-static'
 
6897
 
 
6898
    case $host_os in
 
6899
      aix*)
 
6900
      # All AIX code is PIC.
 
6901
      if test "$host_cpu" = ia64; then
 
6902
        # AIX 5 now supports IA64 processor
 
6903
        lt_prog_compiler_static='-Bstatic'
 
6904
      fi
 
6905
      ;;
 
6906
 
 
6907
    amigaos*)
 
6908
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6909
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6910
      # like `-m68040'.
 
6911
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6912
      ;;
 
6913
 
 
6914
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6915
      # PIC is the default for these OSes.
 
6916
      ;;
 
6917
 
 
6918
    mingw* | pw32* | os2*)
 
6919
      # This hack is so that the source file can tell whether it is being
 
6920
      # built for inclusion in a dll (and should export symbols for example).
 
6921
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6922
      ;;
 
6923
 
 
6924
    darwin* | rhapsody*)
 
6925
      # PIC is the default on this platform
 
6926
      # Common symbols not allowed in MH_DYLIB files
 
6927
      lt_prog_compiler_pic='-fno-common'
 
6928
      ;;
 
6929
 
 
6930
    msdosdjgpp*)
 
6931
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6932
      # on systems that don't support them.
 
6933
      lt_prog_compiler_can_build_shared=no
 
6934
      enable_shared=no
 
6935
      ;;
 
6936
 
 
6937
    sysv4*MP*)
 
6938
      if test -d /usr/nec; then
 
6939
        lt_prog_compiler_pic=-Kconform_pic
 
6940
      fi
 
6941
      ;;
 
6942
 
 
6943
    hpux*)
 
6944
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6945
      # not for PA HP-UX.
 
6946
      case "$host_cpu" in
 
6947
      hppa*64*|ia64*)
 
6948
        # +Z the default
 
6949
        ;;
 
6950
      *)
 
6951
        lt_prog_compiler_pic='-fPIC'
 
6952
        ;;
 
6953
      esac
 
6954
      ;;
 
6955
 
 
6956
    *)
 
6957
      lt_prog_compiler_pic='-fPIC'
 
6958
      ;;
 
6959
    esac
 
6960
  else
 
6961
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6962
    case $host_os in
 
6963
    aix*)
 
6964
      lt_prog_compiler_wl='-Wl,'
 
6965
      if test "$host_cpu" = ia64; then
 
6966
        # AIX 5 now supports IA64 processor
 
6967
        lt_prog_compiler_static='-Bstatic'
 
6968
      else
 
6969
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6970
      fi
 
6971
      ;;
 
6972
 
 
6973
    mingw* | pw32* | os2*)
 
6974
      # This hack is so that the source file can tell whether it is being
 
6975
      # built for inclusion in a dll (and should export symbols for example).
 
6976
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6977
      ;;
 
6978
 
 
6979
    hpux9* | hpux10* | hpux11*)
 
6980
      lt_prog_compiler_wl='-Wl,'
 
6981
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6982
      # not for PA HP-UX.
 
6983
      case "$host_cpu" in
 
6984
      hppa*64*|ia64*)
 
6985
        # +Z the default
 
6986
        ;;
 
6987
      *)
 
6988
        lt_prog_compiler_pic='+Z'
 
6989
        ;;
 
6990
      esac
 
6991
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6992
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6993
      ;;
 
6994
 
 
6995
    irix5* | irix6* | nonstopux*)
 
6996
      lt_prog_compiler_wl='-Wl,'
 
6997
      # PIC (with -KPIC) is the default.
 
6998
      lt_prog_compiler_static='-non_shared'
 
6999
      ;;
 
7000
 
 
7001
    newsos6)
 
7002
      lt_prog_compiler_pic='-KPIC'
 
7003
      lt_prog_compiler_static='-Bstatic'
 
7004
      ;;
 
7005
 
 
7006
    linux*)
 
7007
      case $CC in
 
7008
      icc* | ecc*)
 
7009
        lt_prog_compiler_wl='-Wl,'
 
7010
        lt_prog_compiler_pic='-KPIC'
 
7011
        lt_prog_compiler_static='-static'
 
7012
        ;;
 
7013
      ccc*)
 
7014
        lt_prog_compiler_wl='-Wl,'
 
7015
        # All Alpha code is PIC.
 
7016
        lt_prog_compiler_static='-non_shared'
 
7017
        ;;
 
7018
      esac
 
7019
      ;;
 
7020
 
 
7021
    osf3* | osf4* | osf5*)
 
7022
      lt_prog_compiler_wl='-Wl,'
 
7023
      # All OSF/1 code is PIC.
 
7024
      lt_prog_compiler_static='-non_shared'
 
7025
      ;;
 
7026
 
 
7027
    sco3.2v5*)
 
7028
      lt_prog_compiler_pic='-Kpic'
 
7029
      lt_prog_compiler_static='-dn'
 
7030
      ;;
 
7031
 
 
7032
    solaris*)
 
7033
      lt_prog_compiler_wl='-Wl,'
 
7034
      lt_prog_compiler_pic='-KPIC'
 
7035
      lt_prog_compiler_static='-Bstatic'
 
7036
      ;;
 
7037
 
 
7038
    sunos4*)
 
7039
      lt_prog_compiler_wl='-Qoption ld '
 
7040
      lt_prog_compiler_pic='-PIC'
 
7041
      lt_prog_compiler_static='-Bstatic'
 
7042
      ;;
 
7043
 
 
7044
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7045
      lt_prog_compiler_wl='-Wl,'
 
7046
      lt_prog_compiler_pic='-KPIC'
 
7047
      lt_prog_compiler_static='-Bstatic'
 
7048
      ;;
 
7049
 
 
7050
    sysv4*MP*)
 
7051
      if test -d /usr/nec ;then
 
7052
        lt_prog_compiler_pic='-Kconform_pic'
 
7053
        lt_prog_compiler_static='-Bstatic'
 
7054
      fi
 
7055
      ;;
 
7056
 
 
7057
    uts4*)
 
7058
      lt_prog_compiler_pic='-pic'
 
7059
      lt_prog_compiler_static='-Bstatic'
 
7060
      ;;
 
7061
 
 
7062
    *)
 
7063
      lt_prog_compiler_can_build_shared=no
 
7064
      ;;
 
7065
    esac
 
7066
  fi
 
7067
 
 
7068
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7069
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7070
 
 
7071
#
 
7072
# Check to make sure the PIC flag actually works.
 
7073
#
 
7074
if test -n "$lt_prog_compiler_pic"; then
 
7075
 
 
7076
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7077
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7078
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7079
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7080
else
 
7081
  lt_prog_compiler_pic_works=no
 
7082
  ac_outfile=conftest.$ac_objext
 
7083
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7084
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7085
   # Insert the option either (1) after the last *FLAGS variable, or
 
7086
   # (2) before a word containing "conftest.", or (3) at the end.
 
7087
   # Note that $ac_compile itself does not contain backslashes and begins
 
7088
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7089
   # The option is referenced via a variable to avoid confusing sed.
 
7090
   lt_compile=`echo "$ac_compile" | $SED \
 
7091
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7092
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7093
   -e 's:$: $lt_compiler_flag:'`
 
7094
   (eval echo "\"\$as_me:7094: $lt_compile\"" >&5)
 
7095
   (eval "$lt_compile" 2>conftest.err)
 
7096
   ac_status=$?
 
7097
   cat conftest.err >&5
 
7098
   echo "$as_me:7098: \$? = $ac_status" >&5
 
7099
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7100
     # The compiler can only warn and ignore the option if not recognized
 
7101
     # So say no if there are warnings
 
7102
     if test ! -s conftest.err; then
 
7103
       lt_prog_compiler_pic_works=yes
 
7104
     fi
 
7105
   fi
 
7106
   $rm conftest*
 
7107
 
 
7108
fi
 
7109
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7110
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7111
 
 
7112
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7113
    case $lt_prog_compiler_pic in
 
7114
     "" | " "*) ;;
 
7115
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7116
     esac
 
7117
else
 
7118
    lt_prog_compiler_pic=
 
7119
     lt_prog_compiler_can_build_shared=no
 
7120
fi
 
7121
 
 
7122
fi
 
7123
case "$host_os" in
 
7124
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7125
  *djgpp*)
 
7126
    lt_prog_compiler_pic=
 
7127
    ;;
 
7128
  *)
 
7129
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7130
    ;;
 
7131
esac
 
7132
 
 
7133
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7134
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7135
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7137
else
 
7138
  lt_cv_prog_compiler_c_o=no
 
7139
   $rm -r conftest 2>/dev/null
 
7140
   mkdir conftest
 
7141
   cd conftest
 
7142
   mkdir out
 
7143
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7144
 
 
7145
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7146
   # Insert the option either (1) after the last *FLAGS variable, or
 
7147
   # (2) before a word containing "conftest.", or (3) at the end.
 
7148
   # Note that $ac_compile itself does not contain backslashes and begins
 
7149
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7150
   lt_compile=`echo "$ac_compile" | $SED \
 
7151
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7152
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7153
   -e 's:$: $lt_compiler_flag:'`
 
7154
   (eval echo "\"\$as_me:7154: $lt_compile\"" >&5)
 
7155
   (eval "$lt_compile" 2>out/conftest.err)
 
7156
   ac_status=$?
 
7157
   cat out/conftest.err >&5
 
7158
   echo "$as_me:7158: \$? = $ac_status" >&5
 
7159
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7160
   then
 
7161
     # The compiler can only warn and ignore the option if not recognized
 
7162
     # So say no if there are warnings
 
7163
     if test ! -s out/conftest.err; then
 
7164
       lt_cv_prog_compiler_c_o=yes
 
7165
     fi
 
7166
   fi
 
7167
   chmod u+w .
 
7168
   $rm conftest*
 
7169
   # SGI C++ compiler will create directory out/ii_files/ for
 
7170
   # template instantiation
 
7171
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7172
   $rm out/* && rmdir out
 
7173
   cd ..
 
7174
   rmdir conftest
 
7175
   $rm conftest*
 
7176
 
 
7177
fi
 
7178
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7179
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7180
 
 
7181
 
 
7182
hard_links="nottested"
 
7183
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7184
  # do not overwrite the value of need_locks provided by the user
 
7185
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7186
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7187
  hard_links=yes
 
7188
  $rm conftest*
 
7189
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7190
  touch conftest.a
 
7191
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7192
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7193
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7194
echo "${ECHO_T}$hard_links" >&6
 
7195
  if test "$hard_links" = no; then
 
7196
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7197
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7198
    need_locks=warn
 
7199
  fi
 
7200
else
 
7201
  need_locks=no
 
7202
fi
 
7203
 
 
7204
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7205
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7206
 
 
7207
  runpath_var=
 
7208
  allow_undefined_flag=
 
7209
  enable_shared_with_static_runtimes=no
 
7210
  archive_cmds=
 
7211
  archive_expsym_cmds=
 
7212
  old_archive_From_new_cmds=
 
7213
  old_archive_from_expsyms_cmds=
 
7214
  export_dynamic_flag_spec=
 
7215
  whole_archive_flag_spec=
 
7216
  thread_safe_flag_spec=
 
7217
  hardcode_libdir_flag_spec=
 
7218
  hardcode_libdir_flag_spec_ld=
 
7219
  hardcode_libdir_separator=
 
7220
  hardcode_direct=no
 
7221
  hardcode_minus_L=no
 
7222
  hardcode_shlibpath_var=unsupported
 
7223
  link_all_deplibs=unknown
 
7224
  hardcode_automatic=no
 
7225
  module_cmds=
 
7226
  module_expsym_cmds=
 
7227
  always_export_symbols=no
 
7228
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7229
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7230
  # included in the symbol list
 
7231
  include_expsyms=
 
7232
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7233
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7234
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7235
  # as well as any symbol that contains `d'.
 
7236
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7237
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7238
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7239
  # the symbol is explicitly referenced.  Since portable code cannot
 
7240
  # rely on this symbol name, it's probably fine to never include it in
 
7241
  # preloaded symbol tables.
 
7242
  extract_expsyms_cmds=
 
7243
 
 
7244
  case $host_os in
 
7245
  cygwin* | mingw* | pw32*)
 
7246
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7247
    # When not using gcc, we currently assume that we are using
 
7248
    # Microsoft Visual C++.
 
7249
    if test "$GCC" != yes; then
 
7250
      with_gnu_ld=no
 
7251
    fi
 
7252
    ;;
 
7253
  openbsd*)
 
7254
    with_gnu_ld=no
 
7255
    ;;
 
7256
  esac
 
7257
 
 
7258
  ld_shlibs=yes
 
7259
  if test "$with_gnu_ld" = yes; then
 
7260
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7261
    wlarc='${wl}'
 
7262
 
 
7263
    # See if GNU ld supports shared libraries.
 
7264
    case $host_os in
 
7265
    aix3* | aix4* | aix5*)
 
7266
      # On AIX/PPC, the GNU linker is very broken
 
7267
      if test "$host_cpu" != ia64; then
 
7268
        ld_shlibs=no
 
7269
        cat <<EOF 1>&2
 
7270
 
 
7271
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7272
*** to be unable to reliably create shared libraries on AIX.
 
7273
*** Therefore, libtool is disabling shared libraries support.  If you
 
7274
*** really care for shared libraries, you may want to modify your PATH
 
7275
*** so that a non-GNU linker is found, and then restart.
 
7276
 
 
7277
EOF
 
7278
      fi
 
7279
      ;;
 
7280
 
 
7281
    amigaos*)
 
7282
      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)'
 
7283
      hardcode_libdir_flag_spec='-L$libdir'
 
7284
      hardcode_minus_L=yes
 
7285
 
 
7286
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7287
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7288
      # to version 4, is to share data among multiple programs linked
 
7289
      # with the same dynamic library.  Since this doesn't match the
 
7290
      # behavior of shared libraries on other platforms, we can't use
 
7291
      # them.
 
7292
      ld_shlibs=no
 
7293
      ;;
 
7294
 
 
7295
    beos*)
 
7296
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7297
        allow_undefined_flag=unsupported
 
7298
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7299
        # support --undefined.  This deserves some investigation.  FIXME
 
7300
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7301
      else
 
7302
        ld_shlibs=no
 
7303
      fi
 
7304
      ;;
 
7305
 
 
7306
    cygwin* | mingw* | pw32*)
 
7307
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7308
      # as there is no search path for DLLs.
 
7309
      hardcode_libdir_flag_spec='-L$libdir'
 
7310
      allow_undefined_flag=unsupported
 
7311
      always_export_symbols=no
 
7312
      enable_shared_with_static_runtimes=yes
 
7313
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7314
 
 
7315
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7316
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7317
        # If the export-symbols file already is a .def file (1st line
 
7318
        # is EXPORTS), use it as is; otherwise, prepend...
 
7319
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7320
          cp $export_symbols $output_objdir/$soname.def;
 
7321
        else
 
7322
          echo EXPORTS > $output_objdir/$soname.def;
 
7323
          cat $export_symbols >> $output_objdir/$soname.def;
 
7324
        fi~
 
7325
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7326
      else
 
7327
        ld_shlibs=no
 
7328
      fi
 
7329
      ;;
 
7330
 
 
7331
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7332
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7333
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7334
        wlarc=
 
7335
      else
 
7336
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7337
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7338
      fi
 
7339
      ;;
 
7340
 
 
7341
    solaris* | sysv5*)
 
7342
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7343
        ld_shlibs=no
 
7344
        cat <<EOF 1>&2
 
7345
 
 
7346
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7347
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7348
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7349
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7350
*** your PATH or compiler configuration so that the native linker is
 
7351
*** used, and then restart.
 
7352
 
 
7353
EOF
 
7354
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7355
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7356
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7357
      else
 
7358
        ld_shlibs=no
 
7359
      fi
 
7360
      ;;
 
7361
 
 
7362
    sunos4*)
 
7363
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7364
      wlarc=
 
7365
      hardcode_direct=yes
 
7366
      hardcode_shlibpath_var=no
 
7367
      ;;
 
7368
 
 
7369
  linux*)
 
7370
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7371
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7372
        archive_cmds="$tmp_archive_cmds"
 
7373
      supports_anon_versioning=no
 
7374
      case `$LD -v 2>/dev/null` in
 
7375
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7376
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7377
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7378
        *\ 2.11.*) ;; # other 2.11 versions
 
7379
        *) supports_anon_versioning=yes ;;
 
7380
      esac
 
7381
      if test $supports_anon_versioning = yes; then
 
7382
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7383
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7384
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7385
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7386
      else
 
7387
        archive_expsym_cmds="$tmp_archive_cmds"
 
7388
      fi
 
7389
      link_all_deplibs=no
 
7390
    else
 
7391
      ld_shlibs=no
 
7392
    fi
 
7393
    ;;
 
7394
 
 
7395
    *)
 
7396
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7397
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7398
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7399
      else
 
7400
        ld_shlibs=no
 
7401
      fi
 
7402
      ;;
 
7403
    esac
 
7404
 
 
7405
    if test "$ld_shlibs" = yes; then
 
7406
      runpath_var=LD_RUN_PATH
 
7407
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7408
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
7409
      # ancient GNU ld didn't support --whole-archive et. al.
 
7410
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7411
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7412
      else
 
7413
        whole_archive_flag_spec=
 
7414
      fi
 
7415
    fi
 
7416
  else
 
7417
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7418
    case $host_os in
 
7419
    aix3*)
 
7420
      allow_undefined_flag=unsupported
 
7421
      always_export_symbols=yes
 
7422
      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'
 
7423
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7424
      # are no directories specified by -L.
 
7425
      hardcode_minus_L=yes
 
7426
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7427
        # Neither direct hardcoding nor static linking is supported with a
 
7428
        # broken collect2.
 
7429
        hardcode_direct=unsupported
 
7430
      fi
 
7431
      ;;
 
7432
 
 
7433
    aix4* | aix5*)
 
7434
      if test "$host_cpu" = ia64; then
 
7435
        # On IA64, the linker does run time linking by default, so we don't
 
7436
        # have to do anything special.
 
7437
        aix_use_runtimelinking=no
 
7438
        exp_sym_flag='-Bexport'
 
7439
        no_entry_flag=""
 
7440
      else
 
7441
        # If we're using GNU nm, then we don't want the "-C" option.
 
7442
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7443
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7444
          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'
 
7445
        else
 
7446
          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'
 
7447
        fi
 
7448
        aix_use_runtimelinking=no
 
7449
 
 
7450
        # Test if we are trying to use run time linking or normal
 
7451
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7452
        # need to do runtime linking.
 
7453
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7454
          for ld_flag in $LDFLAGS; do
 
7455
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7456
            aix_use_runtimelinking=yes
 
7457
            break
 
7458
          fi
 
7459
          done
 
7460
        esac
 
7461
 
 
7462
        exp_sym_flag='-bexport'
 
7463
        no_entry_flag='-bnoentry'
 
7464
      fi
 
7465
 
 
7466
      # When large executables or shared objects are built, AIX ld can
 
7467
      # have problems creating the table of contents.  If linking a library
 
7468
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7469
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7470
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7471
 
 
7472
      archive_cmds=''
 
7473
      hardcode_direct=yes
 
7474
      hardcode_libdir_separator=':'
 
7475
      link_all_deplibs=yes
 
7476
 
 
7477
      if test "$GCC" = yes; then
 
7478
        case $host_os in aix4.012|aix4.012.*)
 
7479
        # We only want to do this on AIX 4.2 and lower, the check
 
7480
        # below for broken collect2 doesn't work under 4.3+
 
7481
          collect2name=`${CC} -print-prog-name=collect2`
 
7482
          if test -f "$collect2name" && \
 
7483
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7484
          then
 
7485
          # We have reworked collect2
 
7486
          hardcode_direct=yes
 
7487
          else
 
7488
          # We have old collect2
 
7489
          hardcode_direct=unsupported
 
7490
          # It fails to find uninstalled libraries when the uninstalled
 
7491
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7492
          # to unsupported forces relinking
 
7493
          hardcode_minus_L=yes
 
7494
          hardcode_libdir_flag_spec='-L$libdir'
 
7495
          hardcode_libdir_separator=
 
7496
          fi
 
7497
        esac
 
7498
        shared_flag='-shared'
 
7499
      else
 
7500
        # not using gcc
 
7501
        if test "$host_cpu" = ia64; then
 
7502
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7503
        # chokes on -Wl,-G. The following line is correct:
 
7504
          shared_flag='-G'
 
7505
        else
 
7506
        if test "$aix_use_runtimelinking" = yes; then
 
7507
            shared_flag='${wl}-G'
 
7508
          else
 
7509
            shared_flag='${wl}-bM:SRE'
 
7510
        fi
 
7511
        fi
 
7512
      fi
 
7513
 
 
7514
      # It seems that -bexpall does not export symbols beginning with
 
7515
      # underscore (_), so it is better to generate a list of symbols to export.
 
7516
      always_export_symbols=yes
 
7517
      if test "$aix_use_runtimelinking" = yes; then
 
7518
        # Warning - without using the other runtime loading flags (-brtl),
 
7519
        # -berok will link without error, but may produce a broken library.
 
7520
        allow_undefined_flag='-berok'
 
7521
       # Determine the default libpath from the value encoded in an empty executable.
 
7522
       cat >conftest.$ac_ext <<_ACEOF
 
7523
/* confdefs.h.  */
 
7524
_ACEOF
 
7525
cat confdefs.h >>conftest.$ac_ext
 
7526
cat >>conftest.$ac_ext <<_ACEOF
 
7527
/* end confdefs.h.  */
 
7528
 
 
7529
int
 
7530
main ()
 
7531
{
 
7532
 
 
7533
  ;
 
7534
  return 0;
 
7535
}
 
7536
_ACEOF
 
7537
rm -f conftest.$ac_objext conftest$ac_exeext
 
7538
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7539
  (eval $ac_link) 2>conftest.er1
 
7540
  ac_status=$?
 
7541
  grep -v '^ *+' conftest.er1 >conftest.err
 
7542
  rm -f conftest.er1
 
7543
  cat conftest.err >&5
 
7544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7545
  (exit $ac_status); } &&
 
7546
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7547
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7548
  (eval $ac_try) 2>&5
 
7549
  ac_status=$?
 
7550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7551
  (exit $ac_status); }; } &&
 
7552
         { ac_try='test -s conftest$ac_exeext'
 
7553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7554
  (eval $ac_try) 2>&5
 
7555
  ac_status=$?
 
7556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7557
  (exit $ac_status); }; }; then
 
7558
 
 
7559
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7560
}'`
 
7561
# Check for a 64-bit object if we didn't find anything.
 
7562
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7563
}'`; fi
 
7564
else
 
7565
  echo "$as_me: failed program was:" >&5
 
7566
sed 's/^/| /' conftest.$ac_ext >&5
 
7567
 
 
7568
fi
 
7569
rm -f conftest.err conftest.$ac_objext \
 
7570
      conftest$ac_exeext conftest.$ac_ext
 
7571
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7572
 
 
7573
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7574
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
7575
       else
 
7576
        if test "$host_cpu" = ia64; then
 
7577
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7578
          allow_undefined_flag="-z nodefs"
 
7579
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
7580
        else
 
7581
         # Determine the default libpath from the value encoded in an empty executable.
 
7582
         cat >conftest.$ac_ext <<_ACEOF
 
7583
/* confdefs.h.  */
 
7584
_ACEOF
 
7585
cat confdefs.h >>conftest.$ac_ext
 
7586
cat >>conftest.$ac_ext <<_ACEOF
 
7587
/* end confdefs.h.  */
 
7588
 
 
7589
int
 
7590
main ()
 
7591
{
 
7592
 
 
7593
  ;
 
7594
  return 0;
 
7595
}
 
7596
_ACEOF
 
7597
rm -f conftest.$ac_objext conftest$ac_exeext
 
7598
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7599
  (eval $ac_link) 2>conftest.er1
 
7600
  ac_status=$?
 
7601
  grep -v '^ *+' conftest.er1 >conftest.err
 
7602
  rm -f conftest.er1
 
7603
  cat conftest.err >&5
 
7604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7605
  (exit $ac_status); } &&
 
7606
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7608
  (eval $ac_try) 2>&5
 
7609
  ac_status=$?
 
7610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7611
  (exit $ac_status); }; } &&
 
7612
         { ac_try='test -s conftest$ac_exeext'
 
7613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7614
  (eval $ac_try) 2>&5
 
7615
  ac_status=$?
 
7616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7617
  (exit $ac_status); }; }; then
 
7618
 
 
7619
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7620
}'`
 
7621
# Check for a 64-bit object if we didn't find anything.
 
7622
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7623
}'`; fi
 
7624
else
 
7625
  echo "$as_me: failed program was:" >&5
 
7626
sed 's/^/| /' conftest.$ac_ext >&5
 
7627
 
 
7628
fi
 
7629
rm -f conftest.err conftest.$ac_objext \
 
7630
      conftest$ac_exeext conftest.$ac_ext
 
7631
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7632
 
 
7633
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7634
          # Warning - without using the other run time loading flags,
 
7635
          # -berok will link without error, but may produce a broken library.
 
7636
          no_undefined_flag=' ${wl}-bernotok'
 
7637
          allow_undefined_flag=' ${wl}-berok'
 
7638
          # -bexpall does not export symbols beginning with underscore (_)
 
7639
          always_export_symbols=yes
 
7640
          # Exported symbols can be pulled into shared objects from archives
 
7641
          whole_archive_flag_spec=' '
 
7642
          archive_cmds_need_lc=yes
 
7643
          # This is similar to how AIX traditionally builds it's shared libraries.
 
7644
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
7645
        fi
 
7646
      fi
 
7647
      ;;
 
7648
 
 
7649
    amigaos*)
 
7650
      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)'
 
7651
      hardcode_libdir_flag_spec='-L$libdir'
 
7652
      hardcode_minus_L=yes
 
7653
      # see comment about different semantics on the GNU ld section
 
7654
      ld_shlibs=no
 
7655
      ;;
 
7656
 
 
7657
    bsdi4*)
 
7658
      export_dynamic_flag_spec=-rdynamic
 
7659
      ;;
 
7660
 
 
7661
    cygwin* | mingw* | pw32*)
 
7662
      # When not using gcc, we currently assume that we are using
 
7663
      # Microsoft Visual C++.
 
7664
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7665
      # no search path for DLLs.
 
7666
      hardcode_libdir_flag_spec=' '
 
7667
      allow_undefined_flag=unsupported
 
7668
      # Tell ltmain to make .lib files, not .a files.
 
7669
      libext=lib
 
7670
      # Tell ltmain to make .dll files, not .so files.
 
7671
      shrext_cmds=".dll"
 
7672
      # FIXME: Setting linknames here is a bad hack.
 
7673
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7674
      # The linker will automatically build a .lib file if we build a DLL.
 
7675
      old_archive_From_new_cmds='true'
 
7676
      # FIXME: Should let the user specify the lib program.
 
7677
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7678
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7679
      enable_shared_with_static_runtimes=yes
 
7680
      ;;
 
7681
 
 
7682
    darwin* | rhapsody*)
 
7683
    if test "$GXX" = yes ; then
 
7684
      archive_cmds_need_lc=no
 
7685
      case "$host_os" in
 
7686
      rhapsody* | darwin1.[012])
 
7687
        allow_undefined_flag='-undefined suppress'
 
7688
        ;;
 
7689
      *) # Darwin 1.3 on
 
7690
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7691
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
7692
      else
 
7693
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
7694
          10.[012])
 
7695
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
7696
            ;;
 
7697
          10.*)
 
7698
            allow_undefined_flag='-undefined dynamic_lookup'
 
7699
            ;;
 
7700
        esac
 
7701
      fi
 
7702
        ;;
 
7703
      esac
 
7704
        lt_int_apple_cc_single_mod=no
 
7705
        output_verbose_link_cmd='echo'
 
7706
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
7707
          lt_int_apple_cc_single_mod=yes
 
7708
        fi
 
7709
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7710
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7711
        else
 
7712
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
 
7713
      fi
 
7714
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7715
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
7716
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
7717
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7718
        else
 
7719
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
7720
        fi
 
7721
          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}'
 
7722
      hardcode_direct=no
 
7723
      hardcode_automatic=yes
 
7724
      hardcode_shlibpath_var=unsupported
 
7725
      whole_archive_flag_spec='-all_load $convenience'
 
7726
      link_all_deplibs=yes
 
7727
    else
 
7728
      ld_shlibs=no
 
7729
    fi
 
7730
      ;;
 
7731
 
 
7732
    dgux*)
 
7733
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7734
      hardcode_libdir_flag_spec='-L$libdir'
 
7735
      hardcode_shlibpath_var=no
 
7736
      ;;
 
7737
 
 
7738
    freebsd1*)
 
7739
      ld_shlibs=no
 
7740
      ;;
 
7741
 
 
7742
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7743
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7744
    # does not break anything, and helps significantly (at the cost of a little
 
7745
    # extra space).
 
7746
    freebsd2.2*)
 
7747
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7748
      hardcode_libdir_flag_spec='-R$libdir'
 
7749
      hardcode_direct=yes
 
7750
      hardcode_shlibpath_var=no
 
7751
      ;;
 
7752
 
 
7753
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7754
    freebsd2*)
 
7755
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7756
      hardcode_direct=yes
 
7757
      hardcode_minus_L=yes
 
7758
      hardcode_shlibpath_var=no
 
7759
      ;;
 
7760
 
 
7761
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7762
    freebsd* | kfreebsd*-gnu)
 
7763
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7764
      hardcode_libdir_flag_spec='-R$libdir'
 
7765
      hardcode_direct=yes
 
7766
      hardcode_shlibpath_var=no
 
7767
      ;;
 
7768
 
 
7769
    hpux9*)
 
7770
      if test "$GCC" = yes; then
 
7771
        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'
 
7772
      else
 
7773
        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'
 
7774
      fi
 
7775
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7776
      hardcode_libdir_separator=:
 
7777
      hardcode_direct=yes
 
7778
 
 
7779
      # hardcode_minus_L: Not really in the search PATH,
 
7780
      # but as the default location of the library.
 
7781
      hardcode_minus_L=yes
 
7782
      export_dynamic_flag_spec='${wl}-E'
 
7783
      ;;
 
7784
 
 
7785
    hpux10* | hpux11*)
 
7786
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7787
        case "$host_cpu" in
 
7788
        hppa*64*|ia64*)
 
7789
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7790
          ;;
 
7791
        *)
 
7792
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7793
          ;;
 
7794
        esac
 
7795
      else
 
7796
        case "$host_cpu" in
 
7797
        hppa*64*|ia64*)
 
7798
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7799
          ;;
 
7800
        *)
 
7801
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7802
          ;;
 
7803
        esac
 
7804
      fi
 
7805
      if test "$with_gnu_ld" = no; then
 
7806
        case "$host_cpu" in
 
7807
        hppa*64*)
 
7808
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7809
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7810
          hardcode_libdir_separator=:
 
7811
          hardcode_direct=no
 
7812
          hardcode_shlibpath_var=no
 
7813
          ;;
 
7814
        ia64*)
 
7815
          hardcode_libdir_flag_spec='-L$libdir'
 
7816
          hardcode_direct=no
 
7817
          hardcode_shlibpath_var=no
 
7818
 
 
7819
          # hardcode_minus_L: Not really in the search PATH,
 
7820
          # but as the default location of the library.
 
7821
          hardcode_minus_L=yes
 
7822
          ;;
 
7823
        *)
 
7824
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7825
          hardcode_libdir_separator=:
 
7826
          hardcode_direct=yes
 
7827
          export_dynamic_flag_spec='${wl}-E'
 
7828
 
 
7829
          # hardcode_minus_L: Not really in the search PATH,
 
7830
          # but as the default location of the library.
 
7831
          hardcode_minus_L=yes
 
7832
          ;;
 
7833
        esac
 
7834
      fi
 
7835
      ;;
 
7836
 
 
7837
    irix5* | irix6* | nonstopux*)
 
7838
      if test "$GCC" = yes; then
 
7839
        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'
 
7840
      else
 
7841
        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'
 
7842
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7843
      fi
 
7844
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7845
      hardcode_libdir_separator=:
 
7846
      link_all_deplibs=yes
 
7847
      ;;
 
7848
 
 
7849
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7850
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7851
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7852
      else
 
7853
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7854
      fi
 
7855
      hardcode_libdir_flag_spec='-R$libdir'
 
7856
      hardcode_direct=yes
 
7857
      hardcode_shlibpath_var=no
 
7858
      ;;
 
7859
 
 
7860
    newsos6)
 
7861
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7862
      hardcode_direct=yes
 
7863
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7864
      hardcode_libdir_separator=:
 
7865
      hardcode_shlibpath_var=no
 
7866
      ;;
 
7867
 
 
7868
    openbsd*)
 
7869
      hardcode_direct=yes
 
7870
      hardcode_shlibpath_var=no
 
7871
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7872
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7873
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7874
        export_dynamic_flag_spec='${wl}-E'
 
7875
      else
 
7876
       case $host_os in
 
7877
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7878
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7879
           hardcode_libdir_flag_spec='-R$libdir'
 
7880
           ;;
 
7881
         *)
 
7882
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7883
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7884
           ;;
 
7885
       esac
 
7886
      fi
 
7887
      ;;
 
7888
 
 
7889
    os2*)
 
7890
      hardcode_libdir_flag_spec='-L$libdir'
 
7891
      hardcode_minus_L=yes
 
7892
      allow_undefined_flag=unsupported
 
7893
      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'
 
7894
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7895
      ;;
 
7896
 
 
7897
    osf3*)
 
7898
      if test "$GCC" = yes; then
 
7899
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7900
        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'
 
7901
      else
 
7902
        allow_undefined_flag=' -expect_unresolved \*'
 
7903
        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'
 
7904
      fi
 
7905
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7906
      hardcode_libdir_separator=:
 
7907
      ;;
 
7908
 
 
7909
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7910
      if test "$GCC" = yes; then
 
7911
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7912
        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'
 
7913
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7914
      else
 
7915
        allow_undefined_flag=' -expect_unresolved \*'
 
7916
        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'
 
7917
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7918
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
7919
 
 
7920
        # Both c and cxx compiler support -rpath directly
 
7921
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7922
      fi
 
7923
      hardcode_libdir_separator=:
 
7924
      ;;
 
7925
 
 
7926
    sco3.2v5*)
 
7927
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7928
      hardcode_shlibpath_var=no
 
7929
      export_dynamic_flag_spec='${wl}-Bexport'
 
7930
      runpath_var=LD_RUN_PATH
 
7931
      hardcode_runpath_var=yes
 
7932
      ;;
 
7933
 
 
7934
    solaris*)
 
7935
      no_undefined_flag=' -z text'
 
7936
      if test "$GCC" = yes; then
 
7937
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7938
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7939
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7940
      else
 
7941
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7942
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7943
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7944
      fi
 
7945
      hardcode_libdir_flag_spec='-R$libdir'
 
7946
      hardcode_shlibpath_var=no
 
7947
      case $host_os in
 
7948
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7949
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7950
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7951
      esac
 
7952
      link_all_deplibs=yes
 
7953
      ;;
 
7954
 
 
7955
    sunos4*)
 
7956
      if test "x$host_vendor" = xsequent; then
 
7957
        # Use $CC to link under sequent, because it throws in some extra .o
 
7958
        # files that make .init and .fini sections work.
 
7959
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7960
      else
 
7961
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7962
      fi
 
7963
      hardcode_libdir_flag_spec='-L$libdir'
 
7964
      hardcode_direct=yes
 
7965
      hardcode_minus_L=yes
 
7966
      hardcode_shlibpath_var=no
 
7967
      ;;
 
7968
 
 
7969
    sysv4)
 
7970
      case $host_vendor in
 
7971
        sni)
 
7972
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7973
          hardcode_direct=yes # is this really true???
 
7974
        ;;
 
7975
        siemens)
 
7976
          ## LD is ld it makes a PLAMLIB
 
7977
          ## CC just makes a GrossModule.
 
7978
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7979
          reload_cmds='$CC -r -o $output$reload_objs'
 
7980
          hardcode_direct=no
 
7981
        ;;
 
7982
        motorola)
 
7983
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7984
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7985
        ;;
 
7986
      esac
 
7987
      runpath_var='LD_RUN_PATH'
 
7988
      hardcode_shlibpath_var=no
 
7989
      ;;
 
7990
 
 
7991
    sysv4.3*)
 
7992
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7993
      hardcode_shlibpath_var=no
 
7994
      export_dynamic_flag_spec='-Bexport'
 
7995
      ;;
 
7996
 
 
7997
    sysv4*MP*)
 
7998
      if test -d /usr/nec; then
 
7999
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8000
        hardcode_shlibpath_var=no
 
8001
        runpath_var=LD_RUN_PATH
 
8002
        hardcode_runpath_var=yes
 
8003
        ld_shlibs=yes
 
8004
      fi
 
8005
      ;;
 
8006
 
 
8007
    sysv4.2uw2*)
 
8008
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8009
      hardcode_direct=yes
 
8010
      hardcode_minus_L=no
 
8011
      hardcode_shlibpath_var=no
 
8012
      hardcode_runpath_var=yes
 
8013
      runpath_var=LD_RUN_PATH
 
8014
      ;;
 
8015
 
 
8016
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8017
      no_undefined_flag='${wl}-z ${wl}text'
 
8018
      if test "$GCC" = yes; then
 
8019
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8020
      else
 
8021
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8022
      fi
 
8023
      runpath_var='LD_RUN_PATH'
 
8024
      hardcode_shlibpath_var=no
 
8025
      ;;
 
8026
 
 
8027
    sysv5*)
 
8028
      no_undefined_flag=' -z text'
 
8029
      # $CC -shared without GNU ld will not create a library from C++
 
8030
      # object files and a static libstdc++, better avoid it by now
 
8031
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8032
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8033
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8034
      hardcode_libdir_flag_spec=
 
8035
      hardcode_shlibpath_var=no
 
8036
      runpath_var='LD_RUN_PATH'
 
8037
      ;;
 
8038
 
 
8039
    uts4*)
 
8040
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8041
      hardcode_libdir_flag_spec='-L$libdir'
 
8042
      hardcode_shlibpath_var=no
 
8043
      ;;
 
8044
 
 
8045
    *)
 
8046
      ld_shlibs=no
 
8047
      ;;
 
8048
    esac
 
8049
  fi
 
8050
 
 
8051
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8052
echo "${ECHO_T}$ld_shlibs" >&6
 
8053
test "$ld_shlibs" = no && can_build_shared=no
 
8054
 
 
8055
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8056
if test "$GCC" = yes; then
 
8057
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8058
fi
 
8059
 
 
8060
#
 
8061
# Do we need to explicitly link libc?
 
8062
#
 
8063
case "x$archive_cmds_need_lc" in
 
8064
x|xyes)
 
8065
  # Assume -lc should be added
 
8066
  archive_cmds_need_lc=yes
 
8067
 
 
8068
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8069
    case $archive_cmds in
 
8070
    *'~'*)
 
8071
      # FIXME: we may have to deal with multi-command sequences.
 
8072
      ;;
 
8073
    '$CC '*)
 
8074
      # Test whether the compiler implicitly links with -lc since on some
 
8075
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8076
      # to ld, don't add -lc before -lgcc.
 
8077
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8078
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8079
      $rm conftest*
 
8080
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8081
 
 
8082
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8083
  (eval $ac_compile) 2>&5
 
8084
  ac_status=$?
 
8085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8086
  (exit $ac_status); } 2>conftest.err; then
 
8087
        soname=conftest
 
8088
        lib=conftest
 
8089
        libobjs=conftest.$ac_objext
 
8090
        deplibs=
 
8091
        wl=$lt_prog_compiler_wl
 
8092
        compiler_flags=-v
 
8093
        linker_flags=-v
 
8094
        verstring=
 
8095
        output_objdir=.
 
8096
        libname=conftest
 
8097
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8098
        allow_undefined_flag=
 
8099
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8100
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8101
  ac_status=$?
 
8102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8103
  (exit $ac_status); }
 
8104
        then
 
8105
          archive_cmds_need_lc=no
 
8106
        else
 
8107
          archive_cmds_need_lc=yes
 
8108
        fi
 
8109
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8110
      else
 
8111
        cat conftest.err 1>&5
 
8112
      fi
 
8113
      $rm conftest*
 
8114
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8115
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8116
      ;;
 
8117
    esac
 
8118
  fi
 
8119
  ;;
 
8120
esac
 
8121
 
 
8122
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8123
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8124
library_names_spec=
 
8125
libname_spec='lib$name'
 
8126
soname_spec=
 
8127
shrext_cmds=".so"
 
8128
postinstall_cmds=
 
8129
postuninstall_cmds=
 
8130
finish_cmds=
 
8131
finish_eval=
 
8132
shlibpath_var=
 
8133
shlibpath_overrides_runpath=unknown
 
8134
version_type=none
 
8135
dynamic_linker="$host_os ld.so"
 
8136
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8137
if test "$GCC" = yes; then
 
8138
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8139
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8140
    # if the path contains ";" then we assume it to be the separator
 
8141
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8142
    # assumed that no part of a normal pathname contains ";" but that should
 
8143
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8144
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8145
  else
 
8146
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8147
  fi
 
8148
else
 
8149
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8150
fi
 
8151
need_lib_prefix=unknown
 
8152
hardcode_into_libs=no
 
8153
 
 
8154
# when you set need_version to no, make sure it does not cause -set_version
 
8155
# flags to be left without arguments
 
8156
need_version=unknown
 
8157
 
 
8158
case $host_os in
 
8159
aix3*)
 
8160
  version_type=linux
 
8161
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8162
  shlibpath_var=LIBPATH
 
8163
 
 
8164
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8165
  soname_spec='${libname}${release}${shared_ext}$major'
 
8166
  ;;
 
8167
 
 
8168
aix4* | aix5*)
 
8169
  version_type=linux
 
8170
  need_lib_prefix=no
 
8171
  need_version=no
 
8172
  hardcode_into_libs=yes
 
8173
  if test "$host_cpu" = ia64; then
 
8174
    # AIX 5 supports IA64
 
8175
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8176
    shlibpath_var=LD_LIBRARY_PATH
 
8177
  else
 
8178
    # With GCC up to 2.95.x, collect2 would create an import file
 
8179
    # for dependence libraries.  The import file would start with
 
8180
    # the line `#! .'.  This would cause the generated library to
 
8181
    # depend on `.', always an invalid library.  This was fixed in
 
8182
    # development snapshots of GCC prior to 3.0.
 
8183
    case $host_os in
 
8184
      aix4 | aix4.[01] | aix4.[01].*)
 
8185
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8186
           echo ' yes '
 
8187
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8188
        :
 
8189
      else
 
8190
        can_build_shared=no
 
8191
      fi
 
8192
      ;;
 
8193
    esac
 
8194
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8195
    # soname into executable. Probably we can add versioning support to
 
8196
    # collect2, so additional links can be useful in future.
 
8197
    if test "$aix_use_runtimelinking" = yes; then
 
8198
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8199
      # instead of lib<name>.a to let people know that these are not
 
8200
      # typical AIX shared libraries.
 
8201
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8202
    else
 
8203
      # We preserve .a as extension for shared libraries through AIX4.2
 
8204
      # and later when we are not doing run time linking.
 
8205
      library_names_spec='${libname}${release}.a $libname.a'
 
8206
      soname_spec='${libname}${release}${shared_ext}$major'
 
8207
    fi
 
8208
    shlibpath_var=LIBPATH
 
8209
  fi
 
8210
  ;;
 
8211
 
 
8212
amigaos*)
 
8213
  library_names_spec='$libname.ixlibrary $libname.a'
 
8214
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8215
  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'
 
8216
  ;;
 
8217
 
 
8218
beos*)
 
8219
  library_names_spec='${libname}${shared_ext}'
 
8220
  dynamic_linker="$host_os ld.so"
 
8221
  shlibpath_var=LIBRARY_PATH
 
8222
  ;;
 
8223
 
 
8224
bsdi4*)
 
8225
  version_type=linux
 
8226
  need_version=no
 
8227
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8228
  soname_spec='${libname}${release}${shared_ext}$major'
 
8229
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8230
  shlibpath_var=LD_LIBRARY_PATH
 
8231
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8232
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8233
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8234
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8235
  # libtool to hard-code these into programs
 
8236
  ;;
 
8237
 
 
8238
cygwin* | mingw* | pw32*)
 
8239
  version_type=windows
 
8240
  shrext_cmds=".dll"
 
8241
  need_version=no
 
8242
  need_lib_prefix=no
 
8243
 
 
8244
  case $GCC,$host_os in
 
8245
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8246
    library_names_spec='$libname.dll.a'
 
8247
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8248
    postinstall_cmds='base_file=`basename \${file}`~
 
8249
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8250
      dldir=$destdir/`dirname \$dlpath`~
 
8251
      test -d \$dldir || mkdir -p \$dldir~
 
8252
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8253
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8254
      dlpath=$dir/\$dldll~
 
8255
       $rm \$dlpath'
 
8256
    shlibpath_overrides_runpath=yes
 
8257
 
 
8258
    case $host_os in
 
8259
    cygwin*)
 
8260
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8261
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8262
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8263
      ;;
 
8264
    mingw*)
 
8265
      # MinGW DLLs use traditional 'lib' prefix
 
8266
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8267
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8268
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8269
        # It is most probably a Windows format PATH printed by
 
8270
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8271
        # path with ; separators, and with drive letters. We can handle the
 
8272
        # drive letters (cygwin fileutils understands them), so leave them,
 
8273
        # especially as we might pass files found there to a mingw objdump,
 
8274
        # which wouldn't understand a cygwinified path. Ahh.
 
8275
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8276
      else
 
8277
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8278
      fi
 
8279
      ;;
 
8280
    pw32*)
 
8281
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8282
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8283
      ;;
 
8284
    esac
 
8285
    ;;
 
8286
 
 
8287
  *)
 
8288
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8289
    ;;
 
8290
  esac
 
8291
  dynamic_linker='Win32 ld.exe'
 
8292
  # FIXME: first we should search . and the directory the executable is in
 
8293
  shlibpath_var=PATH
 
8294
  ;;
 
8295
 
 
8296
darwin* | rhapsody*)
 
8297
  dynamic_linker="$host_os dyld"
 
8298
  version_type=darwin
 
8299
  need_lib_prefix=no
 
8300
  need_version=no
 
8301
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8302
  soname_spec='${libname}${release}${major}$shared_ext'
 
8303
  shlibpath_overrides_runpath=yes
 
8304
  shlibpath_var=DYLD_LIBRARY_PATH
 
8305
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
8306
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8307
  if test "$GCC" = yes; then
 
8308
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8309
  else
 
8310
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8311
  fi
 
8312
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8313
  ;;
 
8314
 
 
8315
dgux*)
 
8316
  version_type=linux
 
8317
  need_lib_prefix=no
 
8318
  need_version=no
 
8319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8320
  soname_spec='${libname}${release}${shared_ext}$major'
 
8321
  shlibpath_var=LD_LIBRARY_PATH
 
8322
  ;;
 
8323
 
 
8324
freebsd1*)
 
8325
  dynamic_linker=no
 
8326
  ;;
 
8327
 
 
8328
kfreebsd*-gnu)
 
8329
  version_type=linux
 
8330
  need_lib_prefix=no
 
8331
  need_version=no
 
8332
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8333
  soname_spec='${libname}${release}${shared_ext}$major'
 
8334
  shlibpath_var=LD_LIBRARY_PATH
 
8335
  shlibpath_overrides_runpath=no
 
8336
  hardcode_into_libs=yes
 
8337
  dynamic_linker='GNU ld.so'
 
8338
  ;;
 
8339
 
 
8340
freebsd*)
 
8341
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8342
  version_type=freebsd-$objformat
 
8343
  case $version_type in
 
8344
    freebsd-elf*)
 
8345
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8346
      need_version=no
 
8347
      need_lib_prefix=no
 
8348
      ;;
 
8349
    freebsd-*)
 
8350
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8351
      need_version=yes
 
8352
      ;;
 
8353
  esac
 
8354
  shlibpath_var=LD_LIBRARY_PATH
 
8355
  case $host_os in
 
8356
  freebsd2*)
 
8357
    shlibpath_overrides_runpath=yes
 
8358
    ;;
 
8359
  freebsd3.01* | freebsdelf3.01*)
 
8360
    shlibpath_overrides_runpath=yes
 
8361
    hardcode_into_libs=yes
 
8362
    ;;
 
8363
  *) # from 3.2 on
 
8364
    shlibpath_overrides_runpath=no
 
8365
    hardcode_into_libs=yes
 
8366
    ;;
 
8367
  esac
 
8368
  ;;
 
8369
 
 
8370
gnu*)
 
8371
  version_type=linux
 
8372
  need_lib_prefix=no
 
8373
  need_version=no
 
8374
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8375
  soname_spec='${libname}${release}${shared_ext}$major'
 
8376
  shlibpath_var=LD_LIBRARY_PATH
 
8377
  hardcode_into_libs=yes
 
8378
  ;;
 
8379
 
 
8380
hpux9* | hpux10* | hpux11*)
 
8381
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8382
  # link against other versions.
 
8383
  version_type=sunos
 
8384
  need_lib_prefix=no
 
8385
  need_version=no
 
8386
  case "$host_cpu" in
 
8387
  ia64*)
 
8388
    shrext_cmds='.so'
 
8389
    hardcode_into_libs=yes
 
8390
    dynamic_linker="$host_os dld.so"
 
8391
    shlibpath_var=LD_LIBRARY_PATH
 
8392
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8393
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8394
    soname_spec='${libname}${release}${shared_ext}$major'
 
8395
    if test "X$HPUX_IA64_MODE" = X32; then
 
8396
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8397
    else
 
8398
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8399
    fi
 
8400
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8401
    ;;
 
8402
   hppa*64*)
 
8403
     shrext_cmds='.sl'
 
8404
     hardcode_into_libs=yes
 
8405
     dynamic_linker="$host_os dld.sl"
 
8406
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8407
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8408
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8409
     soname_spec='${libname}${release}${shared_ext}$major'
 
8410
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8411
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8412
     ;;
 
8413
   *)
 
8414
    shrext_cmds='.sl'
 
8415
    dynamic_linker="$host_os dld.sl"
 
8416
    shlibpath_var=SHLIB_PATH
 
8417
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8418
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8419
    soname_spec='${libname}${release}${shared_ext}$major'
 
8420
    ;;
 
8421
  esac
 
8422
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8423
  postinstall_cmds='chmod 555 $lib'
 
8424
  ;;
 
8425
 
 
8426
irix5* | irix6* | nonstopux*)
 
8427
  case $host_os in
 
8428
    nonstopux*) version_type=nonstopux ;;
 
8429
    *)
 
8430
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8431
                version_type=linux
 
8432
        else
 
8433
                version_type=irix
 
8434
        fi ;;
 
8435
  esac
 
8436
  need_lib_prefix=no
 
8437
  need_version=no
 
8438
  soname_spec='${libname}${release}${shared_ext}$major'
 
8439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8440
  case $host_os in
 
8441
  irix5* | nonstopux*)
 
8442
    libsuff= shlibsuff=
 
8443
    ;;
 
8444
  *)
 
8445
    case $LD in # libtool.m4 will add one of these switches to LD
 
8446
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8447
      libsuff= shlibsuff= libmagic=32-bit;;
 
8448
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8449
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8450
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8451
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8452
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8453
    esac
 
8454
    ;;
 
8455
  esac
 
8456
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8457
  shlibpath_overrides_runpath=no
 
8458
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8459
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8460
  hardcode_into_libs=yes
 
8461
  ;;
 
8462
 
 
8463
# No shared lib support for Linux oldld, aout, or coff.
 
8464
linux*oldld* | linux*aout* | linux*coff*)
 
8465
  dynamic_linker=no
 
8466
  ;;
 
8467
 
 
8468
# This must be Linux ELF.
 
8469
linux*)
 
8470
  version_type=linux
 
8471
  need_lib_prefix=no
 
8472
  need_version=no
 
8473
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8474
  soname_spec='${libname}${release}${shared_ext}$major'
 
8475
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8476
  shlibpath_var=LD_LIBRARY_PATH
 
8477
  shlibpath_overrides_runpath=no
 
8478
  # This implies no fast_install, which is unacceptable.
 
8479
  # Some rework will be needed to allow for fast_install
 
8480
  # before this can be enabled.
 
8481
  hardcode_into_libs=yes
 
8482
 
 
8483
  # Append ld.so.conf contents to the search path
 
8484
  if test -f /etc/ld.so.conf; then
 
8485
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
8486
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8487
  fi
 
8488
 
 
8489
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8490
  # powerpc, because MkLinux only supported shared libraries with the
 
8491
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8492
  # most powerpc-linux boxes support dynamic linking these days and
 
8493
  # people can always --disable-shared, the test was removed, and we
 
8494
  # assume the GNU/Linux dynamic linker is in use.
 
8495
  dynamic_linker='GNU/Linux ld.so'
 
8496
  ;;
 
8497
 
 
8498
netbsdelf*-gnu)
 
8499
  version_type=linux
 
8500
  need_lib_prefix=no
 
8501
  need_version=no
 
8502
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8503
  soname_spec='${libname}${release}${shared_ext}$major'
 
8504
  shlibpath_var=LD_LIBRARY_PATH
 
8505
  shlibpath_overrides_runpath=no
 
8506
  hardcode_into_libs=yes
 
8507
  dynamic_linker='NetBSD ld.elf_so'
 
8508
  ;;
 
8509
 
 
8510
knetbsd*-gnu)
 
8511
  version_type=linux
 
8512
  need_lib_prefix=no
 
8513
  need_version=no
 
8514
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8515
  soname_spec='${libname}${release}${shared_ext}$major'
 
8516
  shlibpath_var=LD_LIBRARY_PATH
 
8517
  shlibpath_overrides_runpath=no
 
8518
  hardcode_into_libs=yes
 
8519
  dynamic_linker='GNU ld.so'
 
8520
  ;;
 
8521
 
 
8522
netbsd*)
 
8523
  version_type=sunos
 
8524
  need_lib_prefix=no
 
8525
  need_version=no
 
8526
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8527
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8528
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8529
    dynamic_linker='NetBSD (a.out) ld.so'
 
8530
  else
 
8531
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8532
    soname_spec='${libname}${release}${shared_ext}$major'
 
8533
    dynamic_linker='NetBSD ld.elf_so'
 
8534
  fi
 
8535
  shlibpath_var=LD_LIBRARY_PATH
 
8536
  shlibpath_overrides_runpath=yes
 
8537
  hardcode_into_libs=yes
 
8538
  ;;
 
8539
 
 
8540
newsos6)
 
8541
  version_type=linux
 
8542
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8543
  shlibpath_var=LD_LIBRARY_PATH
 
8544
  shlibpath_overrides_runpath=yes
 
8545
  ;;
 
8546
 
 
8547
nto-qnx*)
 
8548
  version_type=linux
 
8549
  need_lib_prefix=no
 
8550
  need_version=no
 
8551
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8552
  soname_spec='${libname}${release}${shared_ext}$major'
 
8553
  shlibpath_var=LD_LIBRARY_PATH
 
8554
  shlibpath_overrides_runpath=yes
 
8555
  ;;
 
8556
 
 
8557
openbsd*)
 
8558
  version_type=sunos
 
8559
  need_lib_prefix=no
 
8560
  need_version=yes
 
8561
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8562
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8563
  shlibpath_var=LD_LIBRARY_PATH
 
8564
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8565
    case $host_os in
 
8566
      openbsd2.[89] | openbsd2.[89].*)
 
8567
        shlibpath_overrides_runpath=no
 
8568
        ;;
 
8569
      *)
 
8570
        shlibpath_overrides_runpath=yes
 
8571
        ;;
 
8572
      esac
 
8573
  else
 
8574
    shlibpath_overrides_runpath=yes
 
8575
  fi
 
8576
  ;;
 
8577
 
 
8578
os2*)
 
8579
  libname_spec='$name'
 
8580
  shrext_cmds=".dll"
 
8581
  need_lib_prefix=no
 
8582
  library_names_spec='$libname${shared_ext} $libname.a'
 
8583
  dynamic_linker='OS/2 ld.exe'
 
8584
  shlibpath_var=LIBPATH
 
8585
  ;;
 
8586
 
 
8587
osf3* | osf4* | osf5*)
 
8588
  version_type=osf
 
8589
  need_lib_prefix=no
 
8590
  need_version=no
 
8591
  soname_spec='${libname}${release}${shared_ext}$major'
 
8592
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8593
  shlibpath_var=LD_LIBRARY_PATH
 
8594
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8595
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8596
  ;;
 
8597
 
 
8598
sco3.2v5*)
 
8599
  version_type=osf
 
8600
  soname_spec='${libname}${release}${shared_ext}$major'
 
8601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8602
  shlibpath_var=LD_LIBRARY_PATH
 
8603
  ;;
 
8604
 
 
8605
solaris*)
 
8606
  version_type=linux
 
8607
  need_lib_prefix=no
 
8608
  need_version=no
 
8609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8610
  soname_spec='${libname}${release}${shared_ext}$major'
 
8611
  shlibpath_var=LD_LIBRARY_PATH
 
8612
  shlibpath_overrides_runpath=yes
 
8613
  hardcode_into_libs=yes
 
8614
  # ldd complains unless libraries are executable
 
8615
  postinstall_cmds='chmod +x $lib'
 
8616
  ;;
 
8617
 
 
8618
sunos4*)
 
8619
  version_type=sunos
 
8620
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8621
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8622
  shlibpath_var=LD_LIBRARY_PATH
 
8623
  shlibpath_overrides_runpath=yes
 
8624
  if test "$with_gnu_ld" = yes; then
 
8625
    need_lib_prefix=no
 
8626
  fi
 
8627
  need_version=yes
 
8628
  ;;
 
8629
 
 
8630
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8631
  version_type=linux
 
8632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8633
  soname_spec='${libname}${release}${shared_ext}$major'
 
8634
  shlibpath_var=LD_LIBRARY_PATH
 
8635
  case $host_vendor in
 
8636
    sni)
 
8637
      shlibpath_overrides_runpath=no
 
8638
      need_lib_prefix=no
 
8639
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8640
      runpath_var=LD_RUN_PATH
 
8641
      ;;
 
8642
    siemens)
 
8643
      need_lib_prefix=no
 
8644
      ;;
 
8645
    motorola)
 
8646
      need_lib_prefix=no
 
8647
      need_version=no
 
8648
      shlibpath_overrides_runpath=no
 
8649
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8650
      ;;
 
8651
  esac
 
8652
  ;;
 
8653
 
 
8654
sysv4*MP*)
 
8655
  if test -d /usr/nec ;then
 
8656
    version_type=linux
 
8657
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8658
    soname_spec='$libname${shared_ext}.$major'
 
8659
    shlibpath_var=LD_LIBRARY_PATH
 
8660
  fi
 
8661
  ;;
 
8662
 
 
8663
uts4*)
 
8664
  version_type=linux
 
8665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8666
  soname_spec='${libname}${release}${shared_ext}$major'
 
8667
  shlibpath_var=LD_LIBRARY_PATH
 
8668
  ;;
 
8669
 
 
8670
*)
 
8671
  dynamic_linker=no
 
8672
  ;;
 
8673
esac
 
8674
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8675
echo "${ECHO_T}$dynamic_linker" >&6
 
8676
test "$dynamic_linker" = no && can_build_shared=no
 
8677
 
 
8678
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8679
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8680
hardcode_action=
 
8681
if test -n "$hardcode_libdir_flag_spec" || \
 
8682
   test -n "$runpath_var " || \
 
8683
   test "X$hardcode_automatic"="Xyes" ; then
 
8684
 
 
8685
  # We can hardcode non-existant directories.
 
8686
  if test "$hardcode_direct" != no &&
 
8687
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8688
     # have to relink, otherwise we might link with an installed library
 
8689
     # when we should be linking with a yet-to-be-installed one
 
8690
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8691
     test "$hardcode_minus_L" != no; then
 
8692
    # Linking always hardcodes the temporary library directory.
 
8693
    hardcode_action=relink
 
8694
  else
 
8695
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8696
    hardcode_action=immediate
 
8697
  fi
 
8698
else
 
8699
  # We cannot hardcode anything, or else we can only hardcode existing
 
8700
  # directories.
 
8701
  hardcode_action=unsupported
 
8702
fi
 
8703
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8704
echo "${ECHO_T}$hardcode_action" >&6
 
8705
 
 
8706
if test "$hardcode_action" = relink; then
 
8707
  # Fast installation is not supported
 
8708
  enable_fast_install=no
 
8709
elif test "$shlibpath_overrides_runpath" = yes ||
 
8710
     test "$enable_shared" = no; then
 
8711
  # Fast installation is not necessary
 
8712
  enable_fast_install=needless
 
8713
fi
 
8714
 
 
8715
striplib=
 
8716
old_striplib=
 
8717
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8718
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8719
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8720
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8721
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8722
  echo "$as_me:$LINENO: result: yes" >&5
 
8723
echo "${ECHO_T}yes" >&6
 
8724
else
 
8725
# FIXME - insert some real tests, host_os isn't really good enough
 
8726
  case $host_os in
 
8727
   darwin*)
 
8728
       if test -n "$STRIP" ; then
 
8729
         striplib="$STRIP -x"
 
8730
         echo "$as_me:$LINENO: result: yes" >&5
 
8731
echo "${ECHO_T}yes" >&6
 
8732
       else
 
8733
  echo "$as_me:$LINENO: result: no" >&5
 
8734
echo "${ECHO_T}no" >&6
 
8735
fi
 
8736
       ;;
 
8737
   *)
 
8738
  echo "$as_me:$LINENO: result: no" >&5
 
8739
echo "${ECHO_T}no" >&6
 
8740
    ;;
 
8741
  esac
 
8742
fi
 
8743
 
 
8744
if test "x$enable_dlopen" != xyes; then
 
8745
  enable_dlopen=unknown
 
8746
  enable_dlopen_self=unknown
 
8747
  enable_dlopen_self_static=unknown
 
8748
else
 
8749
  lt_cv_dlopen=no
 
8750
  lt_cv_dlopen_libs=
 
8751
 
 
8752
  case $host_os in
 
8753
  beos*)
 
8754
    lt_cv_dlopen="load_add_on"
 
8755
    lt_cv_dlopen_libs=
 
8756
    lt_cv_dlopen_self=yes
 
8757
    ;;
 
8758
 
 
8759
  mingw* | pw32*)
 
8760
    lt_cv_dlopen="LoadLibrary"
 
8761
    lt_cv_dlopen_libs=
 
8762
   ;;
 
8763
 
 
8764
  cygwin*)
 
8765
    lt_cv_dlopen="dlopen"
 
8766
    lt_cv_dlopen_libs=
 
8767
   ;;
 
8768
 
 
8769
  darwin*)
 
8770
  # if libdl is installed we need to link against it
 
8771
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8772
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8773
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8774
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8775
else
 
8776
  ac_check_lib_save_LIBS=$LIBS
 
8777
LIBS="-ldl  $LIBS"
 
8778
cat >conftest.$ac_ext <<_ACEOF
 
8779
/* confdefs.h.  */
 
8780
_ACEOF
 
8781
cat confdefs.h >>conftest.$ac_ext
 
8782
cat >>conftest.$ac_ext <<_ACEOF
 
8783
/* end confdefs.h.  */
 
8784
 
 
8785
/* Override any gcc2 internal prototype to avoid an error.  */
 
8786
#ifdef __cplusplus
 
8787
extern "C"
 
8788
#endif
 
8789
/* We use char because int might match the return type of a gcc2
 
8790
   builtin and then its argument prototype would still apply.  */
 
8791
char dlopen ();
 
8792
int
 
8793
main ()
 
8794
{
 
8795
dlopen ();
 
8796
  ;
 
8797
  return 0;
 
8798
}
 
8799
_ACEOF
 
8800
rm -f conftest.$ac_objext conftest$ac_exeext
 
8801
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8802
  (eval $ac_link) 2>conftest.er1
 
8803
  ac_status=$?
 
8804
  grep -v '^ *+' conftest.er1 >conftest.err
 
8805
  rm -f conftest.er1
 
8806
  cat conftest.err >&5
 
8807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8808
  (exit $ac_status); } &&
 
8809
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8811
  (eval $ac_try) 2>&5
 
8812
  ac_status=$?
 
8813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8814
  (exit $ac_status); }; } &&
 
8815
         { ac_try='test -s conftest$ac_exeext'
 
8816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8817
  (eval $ac_try) 2>&5
 
8818
  ac_status=$?
 
8819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8820
  (exit $ac_status); }; }; then
 
8821
  ac_cv_lib_dl_dlopen=yes
 
8822
else
 
8823
  echo "$as_me: failed program was:" >&5
 
8824
sed 's/^/| /' conftest.$ac_ext >&5
 
8825
 
 
8826
ac_cv_lib_dl_dlopen=no
 
8827
fi
 
8828
rm -f conftest.err conftest.$ac_objext \
 
8829
      conftest$ac_exeext conftest.$ac_ext
 
8830
LIBS=$ac_check_lib_save_LIBS
 
8831
fi
 
8832
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8833
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8834
if test $ac_cv_lib_dl_dlopen = yes; then
 
8835
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8836
else
 
8837
 
 
8838
    lt_cv_dlopen="dyld"
 
8839
    lt_cv_dlopen_libs=
 
8840
    lt_cv_dlopen_self=yes
 
8841
 
 
8842
fi
 
8843
 
 
8844
   ;;
 
8845
 
 
8846
  *)
 
8847
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8848
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8849
if test "${ac_cv_func_shl_load+set}" = set; then
 
8850
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8851
else
 
8852
  cat >conftest.$ac_ext <<_ACEOF
 
8853
/* confdefs.h.  */
 
8854
_ACEOF
 
8855
cat confdefs.h >>conftest.$ac_ext
 
8856
cat >>conftest.$ac_ext <<_ACEOF
 
8857
/* end confdefs.h.  */
 
8858
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8859
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8860
#define shl_load innocuous_shl_load
 
8861
 
 
8862
/* System header to define __stub macros and hopefully few prototypes,
 
8863
    which can conflict with char shl_load (); below.
 
8864
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8865
    <limits.h> exists even on freestanding compilers.  */
 
8866
 
 
8867
#ifdef __STDC__
 
8868
# include <limits.h>
 
8869
#else
 
8870
# include <assert.h>
 
8871
#endif
 
8872
 
 
8873
#undef shl_load
 
8874
 
 
8875
/* Override any gcc2 internal prototype to avoid an error.  */
 
8876
#ifdef __cplusplus
 
8877
extern "C"
 
8878
{
 
8879
#endif
 
8880
/* We use char because int might match the return type of a gcc2
 
8881
   builtin and then its argument prototype would still apply.  */
 
8882
char shl_load ();
 
8883
/* The GNU C library defines this for functions which it implements
 
8884
    to always fail with ENOSYS.  Some functions are actually named
 
8885
    something starting with __ and the normal name is an alias.  */
 
8886
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8887
choke me
 
8888
#else
 
8889
char (*f) () = shl_load;
 
8890
#endif
 
8891
#ifdef __cplusplus
 
8892
}
 
8893
#endif
 
8894
 
 
8895
int
 
8896
main ()
 
8897
{
 
8898
return f != shl_load;
 
8899
  ;
 
8900
  return 0;
 
8901
}
 
8902
_ACEOF
 
8903
rm -f conftest.$ac_objext conftest$ac_exeext
 
8904
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8905
  (eval $ac_link) 2>conftest.er1
 
8906
  ac_status=$?
 
8907
  grep -v '^ *+' conftest.er1 >conftest.err
 
8908
  rm -f conftest.er1
 
8909
  cat conftest.err >&5
 
8910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8911
  (exit $ac_status); } &&
 
8912
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8914
  (eval $ac_try) 2>&5
 
8915
  ac_status=$?
 
8916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8917
  (exit $ac_status); }; } &&
 
8918
         { ac_try='test -s conftest$ac_exeext'
 
8919
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8920
  (eval $ac_try) 2>&5
 
8921
  ac_status=$?
 
8922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8923
  (exit $ac_status); }; }; then
 
8924
  ac_cv_func_shl_load=yes
 
8925
else
 
8926
  echo "$as_me: failed program was:" >&5
 
8927
sed 's/^/| /' conftest.$ac_ext >&5
 
8928
 
 
8929
ac_cv_func_shl_load=no
 
8930
fi
 
8931
rm -f conftest.err conftest.$ac_objext \
 
8932
      conftest$ac_exeext conftest.$ac_ext
 
8933
fi
 
8934
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8935
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8936
if test $ac_cv_func_shl_load = yes; then
 
8937
  lt_cv_dlopen="shl_load"
 
8938
else
 
8939
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8940
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8941
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8942
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8943
else
 
8944
  ac_check_lib_save_LIBS=$LIBS
 
8945
LIBS="-ldld  $LIBS"
 
8946
cat >conftest.$ac_ext <<_ACEOF
 
8947
/* confdefs.h.  */
 
8948
_ACEOF
 
8949
cat confdefs.h >>conftest.$ac_ext
 
8950
cat >>conftest.$ac_ext <<_ACEOF
 
8951
/* end confdefs.h.  */
 
8952
 
 
8953
/* Override any gcc2 internal prototype to avoid an error.  */
 
8954
#ifdef __cplusplus
 
8955
extern "C"
 
8956
#endif
 
8957
/* We use char because int might match the return type of a gcc2
 
8958
   builtin and then its argument prototype would still apply.  */
 
8959
char shl_load ();
 
8960
int
 
8961
main ()
 
8962
{
 
8963
shl_load ();
 
8964
  ;
 
8965
  return 0;
 
8966
}
 
8967
_ACEOF
 
8968
rm -f conftest.$ac_objext conftest$ac_exeext
 
8969
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8970
  (eval $ac_link) 2>conftest.er1
 
8971
  ac_status=$?
 
8972
  grep -v '^ *+' conftest.er1 >conftest.err
 
8973
  rm -f conftest.er1
 
8974
  cat conftest.err >&5
 
8975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8976
  (exit $ac_status); } &&
 
8977
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8979
  (eval $ac_try) 2>&5
 
8980
  ac_status=$?
 
8981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8982
  (exit $ac_status); }; } &&
 
8983
         { ac_try='test -s conftest$ac_exeext'
 
8984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8985
  (eval $ac_try) 2>&5
 
8986
  ac_status=$?
 
8987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8988
  (exit $ac_status); }; }; then
 
8989
  ac_cv_lib_dld_shl_load=yes
 
8990
else
 
8991
  echo "$as_me: failed program was:" >&5
 
8992
sed 's/^/| /' conftest.$ac_ext >&5
 
8993
 
 
8994
ac_cv_lib_dld_shl_load=no
 
8995
fi
 
8996
rm -f conftest.err conftest.$ac_objext \
 
8997
      conftest$ac_exeext conftest.$ac_ext
 
8998
LIBS=$ac_check_lib_save_LIBS
 
8999
fi
 
9000
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9001
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9002
if test $ac_cv_lib_dld_shl_load = yes; then
 
9003
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9004
else
 
9005
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9006
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9007
if test "${ac_cv_func_dlopen+set}" = set; then
 
9008
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9009
else
 
9010
  cat >conftest.$ac_ext <<_ACEOF
 
9011
/* confdefs.h.  */
 
9012
_ACEOF
 
9013
cat confdefs.h >>conftest.$ac_ext
 
9014
cat >>conftest.$ac_ext <<_ACEOF
 
9015
/* end confdefs.h.  */
 
9016
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9017
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9018
#define dlopen innocuous_dlopen
 
9019
 
 
9020
/* System header to define __stub macros and hopefully few prototypes,
 
9021
    which can conflict with char dlopen (); below.
 
9022
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9023
    <limits.h> exists even on freestanding compilers.  */
 
9024
 
 
9025
#ifdef __STDC__
 
9026
# include <limits.h>
 
9027
#else
 
9028
# include <assert.h>
 
9029
#endif
 
9030
 
 
9031
#undef dlopen
 
9032
 
 
9033
/* Override any gcc2 internal prototype to avoid an error.  */
 
9034
#ifdef __cplusplus
 
9035
extern "C"
 
9036
{
 
9037
#endif
 
9038
/* We use char because int might match the return type of a gcc2
 
9039
   builtin and then its argument prototype would still apply.  */
 
9040
char dlopen ();
 
9041
/* The GNU C library defines this for functions which it implements
 
9042
    to always fail with ENOSYS.  Some functions are actually named
 
9043
    something starting with __ and the normal name is an alias.  */
 
9044
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9045
choke me
 
9046
#else
 
9047
char (*f) () = dlopen;
 
9048
#endif
 
9049
#ifdef __cplusplus
 
9050
}
 
9051
#endif
 
9052
 
 
9053
int
 
9054
main ()
 
9055
{
 
9056
return f != dlopen;
 
9057
  ;
 
9058
  return 0;
 
9059
}
 
9060
_ACEOF
 
9061
rm -f conftest.$ac_objext conftest$ac_exeext
 
9062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9063
  (eval $ac_link) 2>conftest.er1
 
9064
  ac_status=$?
 
9065
  grep -v '^ *+' conftest.er1 >conftest.err
 
9066
  rm -f conftest.er1
 
9067
  cat conftest.err >&5
 
9068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9069
  (exit $ac_status); } &&
 
9070
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9071
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9072
  (eval $ac_try) 2>&5
 
9073
  ac_status=$?
 
9074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9075
  (exit $ac_status); }; } &&
 
9076
         { ac_try='test -s conftest$ac_exeext'
 
9077
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9078
  (eval $ac_try) 2>&5
 
9079
  ac_status=$?
 
9080
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9081
  (exit $ac_status); }; }; then
 
9082
  ac_cv_func_dlopen=yes
 
9083
else
 
9084
  echo "$as_me: failed program was:" >&5
 
9085
sed 's/^/| /' conftest.$ac_ext >&5
 
9086
 
 
9087
ac_cv_func_dlopen=no
 
9088
fi
 
9089
rm -f conftest.err conftest.$ac_objext \
 
9090
      conftest$ac_exeext conftest.$ac_ext
 
9091
fi
 
9092
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9093
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9094
if test $ac_cv_func_dlopen = yes; then
 
9095
  lt_cv_dlopen="dlopen"
 
9096
else
 
9097
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9098
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9099
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9100
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9101
else
 
9102
  ac_check_lib_save_LIBS=$LIBS
 
9103
LIBS="-ldl  $LIBS"
 
9104
cat >conftest.$ac_ext <<_ACEOF
 
9105
/* confdefs.h.  */
 
9106
_ACEOF
 
9107
cat confdefs.h >>conftest.$ac_ext
 
9108
cat >>conftest.$ac_ext <<_ACEOF
 
9109
/* end confdefs.h.  */
 
9110
 
 
9111
/* Override any gcc2 internal prototype to avoid an error.  */
 
9112
#ifdef __cplusplus
 
9113
extern "C"
 
9114
#endif
 
9115
/* We use char because int might match the return type of a gcc2
 
9116
   builtin and then its argument prototype would still apply.  */
 
9117
char dlopen ();
 
9118
int
 
9119
main ()
 
9120
{
 
9121
dlopen ();
 
9122
  ;
 
9123
  return 0;
 
9124
}
 
9125
_ACEOF
 
9126
rm -f conftest.$ac_objext conftest$ac_exeext
 
9127
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9128
  (eval $ac_link) 2>conftest.er1
 
9129
  ac_status=$?
 
9130
  grep -v '^ *+' conftest.er1 >conftest.err
 
9131
  rm -f conftest.er1
 
9132
  cat conftest.err >&5
 
9133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9134
  (exit $ac_status); } &&
 
9135
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9136
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9137
  (eval $ac_try) 2>&5
 
9138
  ac_status=$?
 
9139
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9140
  (exit $ac_status); }; } &&
 
9141
         { ac_try='test -s conftest$ac_exeext'
 
9142
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9143
  (eval $ac_try) 2>&5
 
9144
  ac_status=$?
 
9145
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9146
  (exit $ac_status); }; }; then
 
9147
  ac_cv_lib_dl_dlopen=yes
 
9148
else
 
9149
  echo "$as_me: failed program was:" >&5
 
9150
sed 's/^/| /' conftest.$ac_ext >&5
 
9151
 
 
9152
ac_cv_lib_dl_dlopen=no
 
9153
fi
 
9154
rm -f conftest.err conftest.$ac_objext \
 
9155
      conftest$ac_exeext conftest.$ac_ext
 
9156
LIBS=$ac_check_lib_save_LIBS
 
9157
fi
 
9158
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9159
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9160
if test $ac_cv_lib_dl_dlopen = yes; then
 
9161
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9162
else
 
9163
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9164
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9165
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9166
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9167
else
 
9168
  ac_check_lib_save_LIBS=$LIBS
 
9169
LIBS="-lsvld  $LIBS"
 
9170
cat >conftest.$ac_ext <<_ACEOF
 
9171
/* confdefs.h.  */
 
9172
_ACEOF
 
9173
cat confdefs.h >>conftest.$ac_ext
 
9174
cat >>conftest.$ac_ext <<_ACEOF
 
9175
/* end confdefs.h.  */
 
9176
 
 
9177
/* Override any gcc2 internal prototype to avoid an error.  */
 
9178
#ifdef __cplusplus
 
9179
extern "C"
 
9180
#endif
 
9181
/* We use char because int might match the return type of a gcc2
 
9182
   builtin and then its argument prototype would still apply.  */
 
9183
char dlopen ();
 
9184
int
 
9185
main ()
 
9186
{
 
9187
dlopen ();
 
9188
  ;
 
9189
  return 0;
 
9190
}
 
9191
_ACEOF
 
9192
rm -f conftest.$ac_objext conftest$ac_exeext
 
9193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9194
  (eval $ac_link) 2>conftest.er1
 
9195
  ac_status=$?
 
9196
  grep -v '^ *+' conftest.er1 >conftest.err
 
9197
  rm -f conftest.er1
 
9198
  cat conftest.err >&5
 
9199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9200
  (exit $ac_status); } &&
 
9201
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9202
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9203
  (eval $ac_try) 2>&5
 
9204
  ac_status=$?
 
9205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9206
  (exit $ac_status); }; } &&
 
9207
         { ac_try='test -s conftest$ac_exeext'
 
9208
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9209
  (eval $ac_try) 2>&5
 
9210
  ac_status=$?
 
9211
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9212
  (exit $ac_status); }; }; then
 
9213
  ac_cv_lib_svld_dlopen=yes
 
9214
else
 
9215
  echo "$as_me: failed program was:" >&5
 
9216
sed 's/^/| /' conftest.$ac_ext >&5
 
9217
 
 
9218
ac_cv_lib_svld_dlopen=no
 
9219
fi
 
9220
rm -f conftest.err conftest.$ac_objext \
 
9221
      conftest$ac_exeext conftest.$ac_ext
 
9222
LIBS=$ac_check_lib_save_LIBS
 
9223
fi
 
9224
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9225
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9226
if test $ac_cv_lib_svld_dlopen = yes; then
 
9227
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9228
else
 
9229
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9230
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9231
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9232
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9233
else
 
9234
  ac_check_lib_save_LIBS=$LIBS
 
9235
LIBS="-ldld  $LIBS"
 
9236
cat >conftest.$ac_ext <<_ACEOF
 
9237
/* confdefs.h.  */
 
9238
_ACEOF
 
9239
cat confdefs.h >>conftest.$ac_ext
 
9240
cat >>conftest.$ac_ext <<_ACEOF
 
9241
/* end confdefs.h.  */
 
9242
 
 
9243
/* Override any gcc2 internal prototype to avoid an error.  */
 
9244
#ifdef __cplusplus
 
9245
extern "C"
 
9246
#endif
 
9247
/* We use char because int might match the return type of a gcc2
 
9248
   builtin and then its argument prototype would still apply.  */
 
9249
char dld_link ();
 
9250
int
 
9251
main ()
 
9252
{
 
9253
dld_link ();
 
9254
  ;
 
9255
  return 0;
 
9256
}
 
9257
_ACEOF
 
9258
rm -f conftest.$ac_objext conftest$ac_exeext
 
9259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9260
  (eval $ac_link) 2>conftest.er1
 
9261
  ac_status=$?
 
9262
  grep -v '^ *+' conftest.er1 >conftest.err
 
9263
  rm -f conftest.er1
 
9264
  cat conftest.err >&5
 
9265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9266
  (exit $ac_status); } &&
 
9267
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9269
  (eval $ac_try) 2>&5
 
9270
  ac_status=$?
 
9271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9272
  (exit $ac_status); }; } &&
 
9273
         { ac_try='test -s conftest$ac_exeext'
 
9274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9275
  (eval $ac_try) 2>&5
 
9276
  ac_status=$?
 
9277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9278
  (exit $ac_status); }; }; then
 
9279
  ac_cv_lib_dld_dld_link=yes
 
9280
else
 
9281
  echo "$as_me: failed program was:" >&5
 
9282
sed 's/^/| /' conftest.$ac_ext >&5
 
9283
 
 
9284
ac_cv_lib_dld_dld_link=no
 
9285
fi
 
9286
rm -f conftest.err conftest.$ac_objext \
 
9287
      conftest$ac_exeext conftest.$ac_ext
 
9288
LIBS=$ac_check_lib_save_LIBS
 
9289
fi
 
9290
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9291
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9292
if test $ac_cv_lib_dld_dld_link = yes; then
 
9293
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9294
fi
 
9295
 
 
9296
 
 
9297
fi
 
9298
 
 
9299
 
 
9300
fi
 
9301
 
 
9302
 
 
9303
fi
 
9304
 
 
9305
 
 
9306
fi
 
9307
 
 
9308
 
 
9309
fi
 
9310
 
 
9311
    ;;
 
9312
  esac
 
9313
 
 
9314
  if test "x$lt_cv_dlopen" != xno; then
 
9315
    enable_dlopen=yes
 
9316
  else
 
9317
    enable_dlopen=no
 
9318
  fi
 
9319
 
 
9320
  case $lt_cv_dlopen in
 
9321
  dlopen)
 
9322
    save_CPPFLAGS="$CPPFLAGS"
 
9323
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9324
 
 
9325
    save_LDFLAGS="$LDFLAGS"
 
9326
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9327
 
 
9328
    save_LIBS="$LIBS"
 
9329
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9330
 
 
9331
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9332
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9333
if test "${lt_cv_dlopen_self+set}" = set; then
 
9334
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9335
else
 
9336
          if test "$cross_compiling" = yes; then :
 
9337
  lt_cv_dlopen_self=cross
 
9338
else
 
9339
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9340
  lt_status=$lt_dlunknown
 
9341
  cat > conftest.$ac_ext <<EOF
 
9342
#line 9342 "configure"
 
9343
#include "confdefs.h"
 
9344
 
 
9345
#if HAVE_DLFCN_H
 
9346
#include <dlfcn.h>
 
9347
#endif
 
9348
 
 
9349
#include <stdio.h>
 
9350
 
 
9351
#ifdef RTLD_GLOBAL
 
9352
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9353
#else
 
9354
#  ifdef DL_GLOBAL
 
9355
#    define LT_DLGLOBAL         DL_GLOBAL
 
9356
#  else
 
9357
#    define LT_DLGLOBAL         0
 
9358
#  endif
 
9359
#endif
 
9360
 
 
9361
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9362
   find out it does not work in some platform. */
 
9363
#ifndef LT_DLLAZY_OR_NOW
 
9364
#  ifdef RTLD_LAZY
 
9365
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9366
#  else
 
9367
#    ifdef DL_LAZY
 
9368
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9369
#    else
 
9370
#      ifdef RTLD_NOW
 
9371
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9372
#      else
 
9373
#        ifdef DL_NOW
 
9374
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9375
#        else
 
9376
#          define LT_DLLAZY_OR_NOW      0
 
9377
#        endif
 
9378
#      endif
 
9379
#    endif
 
9380
#  endif
 
9381
#endif
 
9382
 
 
9383
#ifdef __cplusplus
 
9384
extern "C" void exit (int);
 
9385
#endif
 
9386
 
 
9387
void fnord() { int i=42;}
 
9388
int main ()
 
9389
{
 
9390
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9391
  int status = $lt_dlunknown;
 
9392
 
 
9393
  if (self)
 
9394
    {
 
9395
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9396
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9397
      /* dlclose (self); */
 
9398
    }
 
9399
 
 
9400
    exit (status);
 
9401
}
 
9402
EOF
 
9403
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9404
  (eval $ac_link) 2>&5
 
9405
  ac_status=$?
 
9406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9407
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9408
    (./conftest; exit; ) 2>/dev/null
 
9409
    lt_status=$?
 
9410
    case x$lt_status in
 
9411
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9412
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9413
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9414
    esac
 
9415
  else :
 
9416
    # compilation failed
 
9417
    lt_cv_dlopen_self=no
 
9418
  fi
 
9419
fi
 
9420
rm -fr conftest*
 
9421
 
 
9422
 
 
9423
fi
 
9424
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9425
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9426
 
 
9427
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9428
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9429
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9430
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9431
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9433
else
 
9434
          if test "$cross_compiling" = yes; then :
 
9435
  lt_cv_dlopen_self_static=cross
 
9436
else
 
9437
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9438
  lt_status=$lt_dlunknown
 
9439
  cat > conftest.$ac_ext <<EOF
 
9440
#line 9440 "configure"
 
9441
#include "confdefs.h"
 
9442
 
 
9443
#if HAVE_DLFCN_H
 
9444
#include <dlfcn.h>
 
9445
#endif
 
9446
 
 
9447
#include <stdio.h>
 
9448
 
 
9449
#ifdef RTLD_GLOBAL
 
9450
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9451
#else
 
9452
#  ifdef DL_GLOBAL
 
9453
#    define LT_DLGLOBAL         DL_GLOBAL
 
9454
#  else
 
9455
#    define LT_DLGLOBAL         0
 
9456
#  endif
 
9457
#endif
 
9458
 
 
9459
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9460
   find out it does not work in some platform. */
 
9461
#ifndef LT_DLLAZY_OR_NOW
 
9462
#  ifdef RTLD_LAZY
 
9463
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9464
#  else
 
9465
#    ifdef DL_LAZY
 
9466
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9467
#    else
 
9468
#      ifdef RTLD_NOW
 
9469
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9470
#      else
 
9471
#        ifdef DL_NOW
 
9472
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9473
#        else
 
9474
#          define LT_DLLAZY_OR_NOW      0
 
9475
#        endif
 
9476
#      endif
 
9477
#    endif
 
9478
#  endif
 
9479
#endif
 
9480
 
 
9481
#ifdef __cplusplus
 
9482
extern "C" void exit (int);
 
9483
#endif
 
9484
 
 
9485
void fnord() { int i=42;}
 
9486
int main ()
 
9487
{
 
9488
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9489
  int status = $lt_dlunknown;
 
9490
 
 
9491
  if (self)
 
9492
    {
 
9493
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9494
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9495
      /* dlclose (self); */
 
9496
    }
 
9497
 
 
9498
    exit (status);
 
9499
}
 
9500
EOF
 
9501
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9502
  (eval $ac_link) 2>&5
 
9503
  ac_status=$?
 
9504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9505
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9506
    (./conftest; exit; ) 2>/dev/null
 
9507
    lt_status=$?
 
9508
    case x$lt_status in
 
9509
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9510
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9511
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9512
    esac
 
9513
  else :
 
9514
    # compilation failed
 
9515
    lt_cv_dlopen_self_static=no
 
9516
  fi
 
9517
fi
 
9518
rm -fr conftest*
 
9519
 
 
9520
 
 
9521
fi
 
9522
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9523
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9524
    fi
 
9525
 
 
9526
    CPPFLAGS="$save_CPPFLAGS"
 
9527
    LDFLAGS="$save_LDFLAGS"
 
9528
    LIBS="$save_LIBS"
 
9529
    ;;
 
9530
  esac
 
9531
 
 
9532
  case $lt_cv_dlopen_self in
 
9533
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9534
  *) enable_dlopen_self=unknown ;;
 
9535
  esac
 
9536
 
 
9537
  case $lt_cv_dlopen_self_static in
 
9538
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9539
  *) enable_dlopen_self_static=unknown ;;
 
9540
  esac
 
9541
fi
 
9542
 
 
9543
 
 
9544
# Report which librarie types wil actually be built
 
9545
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9546
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9547
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9548
echo "${ECHO_T}$can_build_shared" >&6
 
9549
 
 
9550
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9551
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9552
test "$can_build_shared" = "no" && enable_shared=no
 
9553
 
 
9554
# On AIX, shared libraries and static libraries use the same namespace, and
 
9555
# are all built from PIC.
 
9556
case "$host_os" in
 
9557
aix3*)
 
9558
  test "$enable_shared" = yes && enable_static=no
 
9559
  if test -n "$RANLIB"; then
 
9560
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9561
    postinstall_cmds='$RANLIB $lib'
 
9562
  fi
 
9563
  ;;
 
9564
 
 
9565
aix4* | aix5*)
 
9566
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9567
    test "$enable_shared" = yes && enable_static=no
 
9568
  fi
 
9569
  ;;
 
9570
  darwin* | rhapsody*)
 
9571
  if test "$GCC" = yes; then
 
9572
    archive_cmds_need_lc=no
 
9573
    case "$host_os" in
 
9574
    rhapsody* | darwin1.[012])
 
9575
      allow_undefined_flag='-undefined suppress'
 
9576
      ;;
 
9577
    *) # Darwin 1.3 on
 
9578
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9579
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9580
      else
 
9581
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9582
          10.[012])
 
9583
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9584
            ;;
 
9585
          10.*)
 
9586
            allow_undefined_flag='-undefined dynamic_lookup'
 
9587
            ;;
 
9588
        esac
 
9589
      fi
 
9590
      ;;
 
9591
    esac
 
9592
    output_verbose_link_cmd='echo'
 
9593
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9594
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9595
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9596
    archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9597
    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}'
 
9598
    hardcode_direct=no
 
9599
    hardcode_automatic=yes
 
9600
    hardcode_shlibpath_var=unsupported
 
9601
    whole_archive_flag_spec='-all_load $convenience'
 
9602
    link_all_deplibs=yes
 
9603
  else
 
9604
    ld_shlibs=no
 
9605
  fi
 
9606
    ;;
 
9607
esac
 
9608
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9609
echo "${ECHO_T}$enable_shared" >&6
 
9610
 
 
9611
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9612
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9613
# Make sure either enable_shared or enable_static is yes.
 
9614
test "$enable_shared" = yes || enable_static=yes
 
9615
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9616
echo "${ECHO_T}$enable_static" >&6
 
9617
 
 
9618
# The else clause should only fire when bootstrapping the
 
9619
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9620
# with your package, and you will get complaints that there are
 
9621
# no rules to generate ltmain.sh.
 
9622
if test -f "$ltmain"; then
 
9623
  # See if we are running on zsh, and set the options which allow our commands through
 
9624
  # without removal of \ escapes.
 
9625
  if test -n "${ZSH_VERSION+set}" ; then
 
9626
    setopt NO_GLOB_SUBST
 
9627
  fi
 
9628
  # Now quote all the things that may contain metacharacters while being
 
9629
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9630
  # variables and quote the copies for generation of the libtool script.
 
9631
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9632
    SED SHELL STRIP \
 
9633
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9634
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9635
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9636
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9637
    lt_cv_sys_global_symbol_to_c_name_address \
 
9638
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9639
    old_postinstall_cmds old_postuninstall_cmds \
 
9640
    compiler \
 
9641
    CC \
 
9642
    LD \
 
9643
    lt_prog_compiler_wl \
 
9644
    lt_prog_compiler_pic \
 
9645
    lt_prog_compiler_static \
 
9646
    lt_prog_compiler_no_builtin_flag \
 
9647
    export_dynamic_flag_spec \
 
9648
    thread_safe_flag_spec \
 
9649
    whole_archive_flag_spec \
 
9650
    enable_shared_with_static_runtimes \
 
9651
    old_archive_cmds \
 
9652
    old_archive_from_new_cmds \
 
9653
    predep_objects \
 
9654
    postdep_objects \
 
9655
    predeps \
 
9656
    postdeps \
 
9657
    compiler_lib_search_path \
 
9658
    archive_cmds \
 
9659
    archive_expsym_cmds \
 
9660
    postinstall_cmds \
 
9661
    postuninstall_cmds \
 
9662
    old_archive_from_expsyms_cmds \
 
9663
    allow_undefined_flag \
 
9664
    no_undefined_flag \
 
9665
    export_symbols_cmds \
 
9666
    hardcode_libdir_flag_spec \
 
9667
    hardcode_libdir_flag_spec_ld \
 
9668
    hardcode_libdir_separator \
 
9669
    hardcode_automatic \
 
9670
    module_cmds \
 
9671
    module_expsym_cmds \
 
9672
    lt_cv_prog_compiler_c_o \
 
9673
    exclude_expsyms \
 
9674
    include_expsyms; do
 
9675
 
 
9676
    case $var in
 
9677
    old_archive_cmds | \
 
9678
    old_archive_from_new_cmds | \
 
9679
    archive_cmds | \
 
9680
    archive_expsym_cmds | \
 
9681
    module_cmds | \
 
9682
    module_expsym_cmds | \
 
9683
    old_archive_from_expsyms_cmds | \
 
9684
    export_symbols_cmds | \
 
9685
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9686
    postinstall_cmds | postuninstall_cmds | \
 
9687
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9688
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9689
      # Double-quote double-evaled strings.
 
9690
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9691
      ;;
 
9692
    *)
 
9693
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9694
      ;;
 
9695
    esac
 
9696
  done
 
9697
 
 
9698
  case $lt_echo in
 
9699
  *'\$0 --fallback-echo"')
 
9700
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9701
    ;;
 
9702
  esac
 
9703
 
 
9704
cfgfile="${ofile}T"
 
9705
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9706
  $rm -f "$cfgfile"
 
9707
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9708
echo "$as_me: creating $ofile" >&6;}
 
9709
 
 
9710
  cat <<__EOF__ >> "$cfgfile"
 
9711
#! $SHELL
 
9712
 
 
9713
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9714
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9715
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9716
#
 
9717
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9718
# Free Software Foundation, Inc.
 
9719
#
 
9720
# This file is part of GNU Libtool:
 
9721
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9722
#
 
9723
# This program is free software; you can redistribute it and/or modify
 
9724
# it under the terms of the GNU General Public License as published by
 
9725
# the Free Software Foundation; either version 2 of the License, or
 
9726
# (at your option) any later version.
 
9727
#
 
9728
# This program is distributed in the hope that it will be useful, but
 
9729
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9730
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9731
# General Public License for more details.
 
9732
#
 
9733
# You should have received a copy of the GNU General Public License
 
9734
# along with this program; if not, write to the Free Software
 
9735
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
9736
#
 
9737
# As a special exception to the GNU General Public License, if you
 
9738
# distribute this file as part of a program that contains a
 
9739
# configuration script generated by Autoconf, you may include it under
 
9740
# the same distribution terms that you use for the rest of that program.
 
9741
 
 
9742
# A sed program that does not truncate output.
 
9743
SED=$lt_SED
 
9744
 
 
9745
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9746
Xsed="$SED -e s/^X//"
 
9747
 
 
9748
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9749
# if CDPATH is set.
 
9750
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
9751
 
 
9752
# The names of the tagged configurations supported by this script.
 
9753
available_tags=
 
9754
 
 
9755
# ### BEGIN LIBTOOL CONFIG
 
9756
 
 
9757
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9758
 
 
9759
# Shell to use when invoking shell scripts.
 
9760
SHELL=$lt_SHELL
 
9761
 
 
9762
# Whether or not to build shared libraries.
 
9763
build_libtool_libs=$enable_shared
 
9764
 
 
9765
# Whether or not to build static libraries.
 
9766
build_old_libs=$enable_static
 
9767
 
 
9768
# Whether or not to add -lc for building shared libraries.
 
9769
build_libtool_need_lc=$archive_cmds_need_lc
 
9770
 
 
9771
# Whether or not to disallow shared libs when runtime libs are static
 
9772
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9773
 
 
9774
# Whether or not to optimize for fast installation.
 
9775
fast_install=$enable_fast_install
 
9776
 
 
9777
# The host system.
 
9778
host_alias=$host_alias
 
9779
host=$host
 
9780
 
 
9781
# An echo program that does not interpret backslashes.
 
9782
echo=$lt_echo
 
9783
 
 
9784
# The archiver.
 
9785
AR=$lt_AR
 
9786
AR_FLAGS=$lt_AR_FLAGS
 
9787
 
 
9788
# A C compiler.
 
9789
LTCC=$lt_LTCC
 
9790
 
 
9791
# A language-specific compiler.
 
9792
CC=$lt_compiler
 
9793
 
 
9794
# Is the compiler the GNU C compiler?
 
9795
with_gcc=$GCC
 
9796
 
 
9797
# An ERE matcher.
 
9798
EGREP=$lt_EGREP
 
9799
 
 
9800
# The linker used to build libraries.
 
9801
LD=$lt_LD
 
9802
 
 
9803
# Whether we need hard or soft links.
 
9804
LN_S=$lt_LN_S
 
9805
 
 
9806
# A BSD-compatible nm program.
 
9807
NM=$lt_NM
 
9808
 
 
9809
# A symbol stripping program
 
9810
STRIP=$lt_STRIP
 
9811
 
 
9812
# Used to examine libraries when file_magic_cmd begins "file"
 
9813
MAGIC_CMD=$MAGIC_CMD
 
9814
 
 
9815
# Used on cygwin: DLL creation program.
 
9816
DLLTOOL="$DLLTOOL"
 
9817
 
 
9818
# Used on cygwin: object dumper.
 
9819
OBJDUMP="$OBJDUMP"
 
9820
 
 
9821
# Used on cygwin: assembler.
 
9822
AS="$AS"
 
9823
 
 
9824
# The name of the directory that contains temporary libtool files.
 
9825
objdir=$objdir
 
9826
 
 
9827
# How to create reloadable object files.
 
9828
reload_flag=$lt_reload_flag
 
9829
reload_cmds=$lt_reload_cmds
 
9830
 
 
9831
# How to pass a linker flag through the compiler.
 
9832
wl=$lt_lt_prog_compiler_wl
 
9833
 
 
9834
# Object file suffix (normally "o").
 
9835
objext="$ac_objext"
 
9836
 
 
9837
# Old archive suffix (normally "a").
 
9838
libext="$libext"
 
9839
 
 
9840
# Shared library suffix (normally ".so").
 
9841
shrext_cmds='$shrext_cmds'
 
9842
 
 
9843
# Executable file suffix (normally "").
 
9844
exeext="$exeext"
 
9845
 
 
9846
# Additional compiler flags for building library objects.
 
9847
pic_flag=$lt_lt_prog_compiler_pic
 
9848
pic_mode=$pic_mode
 
9849
 
 
9850
# What is the maximum length of a command?
 
9851
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9852
 
 
9853
# Does compiler simultaneously support -c and -o options?
 
9854
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9855
 
 
9856
# Must we lock files when doing compilation ?
 
9857
need_locks=$lt_need_locks
 
9858
 
 
9859
# Do we need the lib prefix for modules?
 
9860
need_lib_prefix=$need_lib_prefix
 
9861
 
 
9862
# Do we need a version for libraries?
 
9863
need_version=$need_version
 
9864
 
 
9865
# Whether dlopen is supported.
 
9866
dlopen_support=$enable_dlopen
 
9867
 
 
9868
# Whether dlopen of programs is supported.
 
9869
dlopen_self=$enable_dlopen_self
 
9870
 
 
9871
# Whether dlopen of statically linked programs is supported.
 
9872
dlopen_self_static=$enable_dlopen_self_static
 
9873
 
 
9874
# Compiler flag to prevent dynamic linking.
 
9875
link_static_flag=$lt_lt_prog_compiler_static
 
9876
 
 
9877
# Compiler flag to turn off builtin functions.
 
9878
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9879
 
 
9880
# Compiler flag to allow reflexive dlopens.
 
9881
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9882
 
 
9883
# Compiler flag to generate shared objects directly from archives.
 
9884
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9885
 
 
9886
# Compiler flag to generate thread-safe objects.
 
9887
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9888
 
 
9889
# Library versioning type.
 
9890
version_type=$version_type
 
9891
 
 
9892
# Format of library name prefix.
 
9893
libname_spec=$lt_libname_spec
 
9894
 
 
9895
# List of archive names.  First name is the real one, the rest are links.
 
9896
# The last name is the one that the linker finds with -lNAME.
 
9897
library_names_spec=$lt_library_names_spec
 
9898
 
 
9899
# The coded name of the library, if different from the real name.
 
9900
soname_spec=$lt_soname_spec
 
9901
 
 
9902
# Commands used to build and install an old-style archive.
 
9903
RANLIB=$lt_RANLIB
 
9904
old_archive_cmds=$lt_old_archive_cmds
 
9905
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9906
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9907
 
 
9908
# Create an old-style archive from a shared archive.
 
9909
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9910
 
 
9911
# Create a temporary old-style archive to link instead of a shared archive.
 
9912
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9913
 
 
9914
# Commands used to build and install a shared archive.
 
9915
archive_cmds=$lt_archive_cmds
 
9916
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9917
postinstall_cmds=$lt_postinstall_cmds
 
9918
postuninstall_cmds=$lt_postuninstall_cmds
 
9919
 
 
9920
# Commands used to build a loadable module (assumed same as above if empty)
 
9921
module_cmds=$lt_module_cmds
 
9922
module_expsym_cmds=$lt_module_expsym_cmds
 
9923
 
 
9924
# Commands to strip libraries.
 
9925
old_striplib=$lt_old_striplib
 
9926
striplib=$lt_striplib
 
9927
 
 
9928
# Dependencies to place before the objects being linked to create a
 
9929
# shared library.
 
9930
predep_objects=$lt_predep_objects
 
9931
 
 
9932
# Dependencies to place after the objects being linked to create a
 
9933
# shared library.
 
9934
postdep_objects=$lt_postdep_objects
 
9935
 
 
9936
# Dependencies to place before the objects being linked to create a
 
9937
# shared library.
 
9938
predeps=$lt_predeps
 
9939
 
 
9940
# Dependencies to place after the objects being linked to create a
 
9941
# shared library.
 
9942
postdeps=$lt_postdeps
 
9943
 
 
9944
# The library search path used internally by the compiler when linking
 
9945
# a shared library.
 
9946
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9947
 
 
9948
# Method to check whether dependent libraries are shared objects.
 
9949
deplibs_check_method=$lt_deplibs_check_method
 
9950
 
 
9951
# Command to use when deplibs_check_method == file_magic.
 
9952
file_magic_cmd=$lt_file_magic_cmd
 
9953
 
 
9954
# Flag that allows shared libraries with undefined symbols to be built.
 
9955
allow_undefined_flag=$lt_allow_undefined_flag
 
9956
 
 
9957
# Flag that forces no undefined symbols.
 
9958
no_undefined_flag=$lt_no_undefined_flag
 
9959
 
 
9960
# Commands used to finish a libtool library installation in a directory.
 
9961
finish_cmds=$lt_finish_cmds
 
9962
 
 
9963
# Same as above, but a single script fragment to be evaled but not shown.
 
9964
finish_eval=$lt_finish_eval
 
9965
 
 
9966
# Take the output of nm and produce a listing of raw symbols and C names.
 
9967
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9968
 
 
9969
# Transform the output of nm in a proper C declaration
 
9970
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9971
 
 
9972
# Transform the output of nm in a C name address pair
 
9973
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9974
 
 
9975
# This is the shared library runtime path variable.
 
9976
runpath_var=$runpath_var
 
9977
 
 
9978
# This is the shared library path variable.
 
9979
shlibpath_var=$shlibpath_var
 
9980
 
 
9981
# Is shlibpath searched before the hard-coded library search path?
 
9982
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9983
 
 
9984
# How to hardcode a shared library path into an executable.
 
9985
hardcode_action=$hardcode_action
 
9986
 
 
9987
# Whether we should hardcode library paths into libraries.
 
9988
hardcode_into_libs=$hardcode_into_libs
 
9989
 
 
9990
# Flag to hardcode \$libdir into a binary during linking.
 
9991
# This must work even if \$libdir does not exist.
 
9992
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9993
 
 
9994
# If ld is used when linking, flag to hardcode \$libdir into
 
9995
# a binary during linking. This must work even if \$libdir does
 
9996
# not exist.
 
9997
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9998
 
 
9999
# Whether we need a single -rpath flag with a separated argument.
 
10000
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10001
 
 
10002
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10003
# resulting binary.
 
10004
hardcode_direct=$hardcode_direct
 
10005
 
 
10006
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10007
# resulting binary.
 
10008
hardcode_minus_L=$hardcode_minus_L
 
10009
 
 
10010
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10011
# the resulting binary.
 
10012
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10013
 
 
10014
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10015
# and all subsequent libraries and executables linked against it.
 
10016
hardcode_automatic=$hardcode_automatic
 
10017
 
 
10018
# Variables whose values should be saved in libtool wrapper scripts and
 
10019
# restored at relink time.
 
10020
variables_saved_for_relink="$variables_saved_for_relink"
 
10021
 
 
10022
# Whether libtool must link a program against all its dependency libraries.
 
10023
link_all_deplibs=$link_all_deplibs
 
10024
 
 
10025
# Compile-time system search path for libraries
 
10026
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10027
 
 
10028
# Run-time system search path for libraries
 
10029
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10030
 
 
10031
# Fix the shell variable \$srcfile for the compiler.
 
10032
fix_srcfile_path="$fix_srcfile_path"
 
10033
 
 
10034
# Set to yes if exported symbols are required.
 
10035
always_export_symbols=$always_export_symbols
 
10036
 
 
10037
# The commands to list exported symbols.
 
10038
export_symbols_cmds=$lt_export_symbols_cmds
 
10039
 
 
10040
# The commands to extract the exported symbol list from a shared archive.
 
10041
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10042
 
 
10043
# Symbols that should not be listed in the preloaded symbols.
 
10044
exclude_expsyms=$lt_exclude_expsyms
 
10045
 
 
10046
# Symbols that must always be exported.
 
10047
include_expsyms=$lt_include_expsyms
 
10048
 
 
10049
# ### END LIBTOOL CONFIG
 
10050
 
 
10051
__EOF__
 
10052
 
 
10053
 
 
10054
  case $host_os in
 
10055
  aix3*)
 
10056
    cat <<\EOF >> "$cfgfile"
 
10057
 
 
10058
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10059
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10060
# vanish in a puff of smoke.
 
10061
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10062
  COLLECT_NAMES=
 
10063
  export COLLECT_NAMES
 
10064
fi
 
10065
EOF
 
10066
    ;;
 
10067
  esac
 
10068
 
 
10069
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10070
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10071
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10072
  # is reportedly fixed, but why not run on old versions too?
 
10073
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10074
 
 
10075
  mv -f "$cfgfile" "$ofile" || \
 
10076
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10077
  chmod +x "$ofile"
 
10078
 
 
10079
else
 
10080
  # If there is no Makefile yet, we rely on a make rule to execute
 
10081
  # `config.status --recheck' to rerun these tests and create the
 
10082
  # libtool script then.
 
10083
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10084
  if test -f "$ltmain_in"; then
 
10085
    test -f Makefile && make "$ltmain"
 
10086
  fi
 
10087
fi
 
10088
 
 
10089
 
 
10090
ac_ext=cc
 
10091
ac_cpp='$CXXCPP $CPPFLAGS'
 
10092
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10093
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10094
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10095
 
 
10096
CC="$lt_save_CC"
 
10097
 
 
10098
 
 
10099
# Check whether --with-tags or --without-tags was given.
 
10100
if test "${with_tags+set}" = set; then
 
10101
  withval="$with_tags"
 
10102
  tagnames="$withval"
 
10103
fi;
 
10104
 
 
10105
if test -f "$ltmain" && test -n "$tagnames"; then
 
10106
  if test ! -f "${ofile}"; then
 
10107
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10108
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10109
  fi
 
10110
 
 
10111
  if test -z "$LTCC"; then
 
10112
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10113
    if test -z "$LTCC"; then
 
10114
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10115
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10116
    else
 
10117
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10118
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10119
    fi
 
10120
  fi
 
10121
 
 
10122
  # Extract list of available tagged configurations in $ofile.
 
10123
  # Note that this assumes the entire list is on one line.
 
10124
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10125
 
 
10126
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10127
  for tagname in $tagnames; do
 
10128
    IFS="$lt_save_ifs"
 
10129
    # Check whether tagname contains only valid characters
 
10130
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10131
    "") ;;
 
10132
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10133
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10134
   { (exit 1); exit 1; }; }
 
10135
        ;;
 
10136
    esac
 
10137
 
 
10138
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10139
    then
 
10140
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10141
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10142
   { (exit 1); exit 1; }; }
 
10143
    fi
 
10144
 
 
10145
    # Update the list of available tags.
 
10146
    if test -n "$tagname"; then
 
10147
      echo appending configuration tag \"$tagname\" to $ofile
 
10148
 
 
10149
      case $tagname in
 
10150
      CXX)
 
10151
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10152
          ac_ext=cc
 
10153
ac_cpp='$CXXCPP $CPPFLAGS'
 
10154
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10155
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10156
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10157
 
 
10158
 
 
10159
 
 
10160
 
 
10161
archive_cmds_need_lc_CXX=no
 
10162
allow_undefined_flag_CXX=
 
10163
always_export_symbols_CXX=no
 
10164
archive_expsym_cmds_CXX=
 
10165
export_dynamic_flag_spec_CXX=
 
10166
hardcode_direct_CXX=no
 
10167
hardcode_libdir_flag_spec_CXX=
 
10168
hardcode_libdir_flag_spec_ld_CXX=
 
10169
hardcode_libdir_separator_CXX=
 
10170
hardcode_minus_L_CXX=no
 
10171
hardcode_automatic_CXX=no
 
10172
module_cmds_CXX=
 
10173
module_expsym_cmds_CXX=
 
10174
link_all_deplibs_CXX=unknown
 
10175
old_archive_cmds_CXX=$old_archive_cmds
 
10176
no_undefined_flag_CXX=
 
10177
whole_archive_flag_spec_CXX=
 
10178
enable_shared_with_static_runtimes_CXX=no
 
10179
 
 
10180
# Dependencies to place before and after the object being linked:
 
10181
predep_objects_CXX=
 
10182
postdep_objects_CXX=
 
10183
predeps_CXX=
 
10184
postdeps_CXX=
 
10185
compiler_lib_search_path_CXX=
 
10186
 
 
10187
# Source file extension for C++ test sources.
 
10188
ac_ext=cc
 
10189
 
 
10190
# Object file extension for compiled C++ test sources.
 
10191
objext=o
 
10192
objext_CXX=$objext
 
10193
 
 
10194
# Code to be used in simple compile tests
 
10195
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10196
 
 
10197
# Code to be used in simple link tests
 
10198
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10199
 
 
10200
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10201
 
 
10202
# If no C compiler was specified, use CC.
 
10203
LTCC=${LTCC-"$CC"}
 
10204
 
 
10205
# Allow CC to be a program name with arguments.
 
10206
compiler=$CC
 
10207
 
 
10208
 
 
10209
# Allow CC to be a program name with arguments.
 
10210
lt_save_CC=$CC
 
10211
lt_save_LD=$LD
 
10212
lt_save_GCC=$GCC
 
10213
GCC=$GXX
 
10214
lt_save_with_gnu_ld=$with_gnu_ld
 
10215
lt_save_path_LD=$lt_cv_path_LD
 
10216
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10217
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10218
else
 
10219
  unset lt_cv_prog_gnu_ld
 
10220
fi
 
10221
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10222
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10223
else
 
10224
  unset lt_cv_path_LD
 
10225
fi
 
10226
test -z "${LDCXX+set}" || LD=$LDCXX
 
10227
CC=${CXX-"c++"}
 
10228
compiler=$CC
 
10229
compiler_CXX=$CC
 
10230
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10231
 
 
10232
# We don't want -fno-exception wen compiling C++ code, so set the
 
10233
# no_builtin_flag separately
 
10234
if test "$GXX" = yes; then
 
10235
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10236
else
 
10237
  lt_prog_compiler_no_builtin_flag_CXX=
 
10238
fi
 
10239
 
 
10240
if test "$GXX" = yes; then
 
10241
  # Set up default GNU C++ configuration
 
10242
 
 
10243
 
 
10244
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10245
if test "${with_gnu_ld+set}" = set; then
 
10246
  withval="$with_gnu_ld"
 
10247
  test "$withval" = no || with_gnu_ld=yes
 
10248
else
 
10249
  with_gnu_ld=no
 
10250
fi;
 
10251
ac_prog=ld
 
10252
if test "$GCC" = yes; then
 
10253
  # Check if gcc -print-prog-name=ld gives a path.
 
10254
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10255
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10256
  case $host in
 
10257
  *-*-mingw*)
 
10258
    # gcc leaves a trailing carriage return which upsets mingw
 
10259
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10260
  *)
 
10261
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10262
  esac
 
10263
  case $ac_prog in
 
10264
    # Accept absolute paths.
 
10265
    [\\/]* | ?:[\\/]*)
 
10266
      re_direlt='/[^/][^/]*/\.\./'
 
10267
      # Canonicalize the pathname of ld
 
10268
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10269
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10270
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10271
      done
 
10272
      test -z "$LD" && LD="$ac_prog"
 
10273
      ;;
 
10274
  "")
 
10275
    # If it fails, then pretend we aren't using GCC.
 
10276
    ac_prog=ld
 
10277
    ;;
 
10278
  *)
 
10279
    # If it is relative, then search for the first ld in PATH.
 
10280
    with_gnu_ld=unknown
 
10281
    ;;
 
10282
  esac
 
10283
elif test "$with_gnu_ld" = yes; then
 
10284
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10285
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10286
else
 
10287
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10288
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10289
fi
 
10290
if test "${lt_cv_path_LD+set}" = set; then
 
10291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10292
else
 
10293
  if test -z "$LD"; then
 
10294
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10295
  for ac_dir in $PATH; do
 
10296
    IFS="$lt_save_ifs"
 
10297
    test -z "$ac_dir" && ac_dir=.
 
10298
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10299
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10300
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10301
      # but apparently some GNU ld's only accept -v.
 
10302
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10303
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10304
      *GNU* | *'with BFD'*)
 
10305
        test "$with_gnu_ld" != no && break
 
10306
        ;;
 
10307
      *)
 
10308
        test "$with_gnu_ld" != yes && break
 
10309
        ;;
 
10310
      esac
 
10311
    fi
 
10312
  done
 
10313
  IFS="$lt_save_ifs"
 
10314
else
 
10315
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10316
fi
 
10317
fi
 
10318
 
 
10319
LD="$lt_cv_path_LD"
 
10320
if test -n "$LD"; then
 
10321
  echo "$as_me:$LINENO: result: $LD" >&5
 
10322
echo "${ECHO_T}$LD" >&6
 
10323
else
 
10324
  echo "$as_me:$LINENO: result: no" >&5
 
10325
echo "${ECHO_T}no" >&6
 
10326
fi
 
10327
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10328
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10329
   { (exit 1); exit 1; }; }
 
10330
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10331
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10332
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10334
else
 
10335
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10336
case `$LD -v 2>&1 </dev/null` in
 
10337
*GNU* | *'with BFD'*)
 
10338
  lt_cv_prog_gnu_ld=yes
 
10339
  ;;
 
10340
*)
 
10341
  lt_cv_prog_gnu_ld=no
 
10342
  ;;
 
10343
esac
 
10344
fi
 
10345
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10346
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10347
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10348
 
 
10349
 
 
10350
 
 
10351
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10352
  # archiving commands below assume that GNU ld is being used.
 
10353
  if test "$with_gnu_ld" = yes; then
 
10354
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10355
    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'
 
10356
 
 
10357
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10358
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10359
 
 
10360
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10361
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10362
    #     investigate it a little bit more. (MM)
 
10363
    wlarc='${wl}'
 
10364
 
 
10365
    # ancient GNU ld didn't support --whole-archive et. al.
 
10366
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10367
        grep 'no-whole-archive' > /dev/null; then
 
10368
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10369
    else
 
10370
      whole_archive_flag_spec_CXX=
 
10371
    fi
 
10372
  else
 
10373
    with_gnu_ld=no
 
10374
    wlarc=
 
10375
 
 
10376
    # A generic and very simple default shared library creation
 
10377
    # command for GNU C++ for the case where it uses the native
 
10378
    # linker, instead of GNU ld.  If possible, this setting should
 
10379
    # overridden to take advantage of the native linker features on
 
10380
    # the platform it is being used on.
 
10381
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10382
  fi
 
10383
 
 
10384
  # Commands to make compiler produce verbose output that lists
 
10385
  # what "hidden" libraries, object files and flags are used when
 
10386
  # linking a shared library.
 
10387
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10388
 
 
10389
else
 
10390
  GXX=no
 
10391
  with_gnu_ld=no
 
10392
  wlarc=
 
10393
fi
 
10394
 
 
10395
# PORTME: fill in a description of your system's C++ link characteristics
 
10396
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10397
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10398
ld_shlibs_CXX=yes
 
10399
case $host_os in
 
10400
  aix3*)
 
10401
    # FIXME: insert proper C++ library support
 
10402
    ld_shlibs_CXX=no
 
10403
    ;;
 
10404
  aix4* | aix5*)
 
10405
    if test "$host_cpu" = ia64; then
 
10406
      # On IA64, the linker does run time linking by default, so we don't
 
10407
      # have to do anything special.
 
10408
      aix_use_runtimelinking=no
 
10409
      exp_sym_flag='-Bexport'
 
10410
      no_entry_flag=""
 
10411
    else
 
10412
      aix_use_runtimelinking=no
 
10413
 
 
10414
      # Test if we are trying to use run time linking or normal
 
10415
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10416
      # need to do runtime linking.
 
10417
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10418
        for ld_flag in $LDFLAGS; do
 
10419
          case $ld_flag in
 
10420
          *-brtl*)
 
10421
            aix_use_runtimelinking=yes
 
10422
            break
 
10423
            ;;
 
10424
          esac
 
10425
        done
 
10426
      esac
 
10427
 
 
10428
      exp_sym_flag='-bexport'
 
10429
      no_entry_flag='-bnoentry'
 
10430
    fi
 
10431
 
 
10432
    # When large executables or shared objects are built, AIX ld can
 
10433
    # have problems creating the table of contents.  If linking a library
 
10434
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10435
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10436
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10437
 
 
10438
    archive_cmds_CXX=''
 
10439
    hardcode_direct_CXX=yes
 
10440
    hardcode_libdir_separator_CXX=':'
 
10441
    link_all_deplibs_CXX=yes
 
10442
 
 
10443
    if test "$GXX" = yes; then
 
10444
      case $host_os in aix4.012|aix4.012.*)
 
10445
      # We only want to do this on AIX 4.2 and lower, the check
 
10446
      # below for broken collect2 doesn't work under 4.3+
 
10447
        collect2name=`${CC} -print-prog-name=collect2`
 
10448
        if test -f "$collect2name" && \
 
10449
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10450
        then
 
10451
          # We have reworked collect2
 
10452
          hardcode_direct_CXX=yes
 
10453
        else
 
10454
          # We have old collect2
 
10455
          hardcode_direct_CXX=unsupported
 
10456
          # It fails to find uninstalled libraries when the uninstalled
 
10457
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10458
          # to unsupported forces relinking
 
10459
          hardcode_minus_L_CXX=yes
 
10460
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10461
          hardcode_libdir_separator_CXX=
 
10462
        fi
 
10463
      esac
 
10464
      shared_flag='-shared'
 
10465
    else
 
10466
      # not using gcc
 
10467
      if test "$host_cpu" = ia64; then
 
10468
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10469
        # chokes on -Wl,-G. The following line is correct:
 
10470
        shared_flag='-G'
 
10471
      else
 
10472
        if test "$aix_use_runtimelinking" = yes; then
 
10473
          shared_flag='${wl}-G'
 
10474
        else
 
10475
          shared_flag='${wl}-bM:SRE'
 
10476
        fi
 
10477
      fi
 
10478
    fi
 
10479
 
 
10480
    # It seems that -bexpall does not export symbols beginning with
 
10481
    # underscore (_), so it is better to generate a list of symbols to export.
 
10482
    always_export_symbols_CXX=yes
 
10483
    if test "$aix_use_runtimelinking" = yes; then
 
10484
      # Warning - without using the other runtime loading flags (-brtl),
 
10485
      # -berok will link without error, but may produce a broken library.
 
10486
      allow_undefined_flag_CXX='-berok'
 
10487
      # Determine the default libpath from the value encoded in an empty executable.
 
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
int
 
10496
main ()
 
10497
{
 
10498
 
 
10499
  ;
 
10500
  return 0;
 
10501
}
 
10502
_ACEOF
 
10503
rm -f conftest.$ac_objext conftest$ac_exeext
 
10504
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10505
  (eval $ac_link) 2>conftest.er1
 
10506
  ac_status=$?
 
10507
  grep -v '^ *+' conftest.er1 >conftest.err
 
10508
  rm -f conftest.er1
 
10509
  cat conftest.err >&5
 
10510
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10511
  (exit $ac_status); } &&
 
10512
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10513
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10514
  (eval $ac_try) 2>&5
 
10515
  ac_status=$?
 
10516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10517
  (exit $ac_status); }; } &&
 
10518
         { ac_try='test -s conftest$ac_exeext'
 
10519
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10520
  (eval $ac_try) 2>&5
 
10521
  ac_status=$?
 
10522
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10523
  (exit $ac_status); }; }; then
 
10524
 
 
10525
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10526
}'`
 
10527
# Check for a 64-bit object if we didn't find anything.
 
10528
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10529
}'`; fi
 
10530
else
 
10531
  echo "$as_me: failed program was:" >&5
 
10532
sed 's/^/| /' conftest.$ac_ext >&5
 
10533
 
 
10534
fi
 
10535
rm -f conftest.err conftest.$ac_objext \
 
10536
      conftest$ac_exeext conftest.$ac_ext
 
10537
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10538
 
 
10539
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10540
 
 
10541
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
10542
     else
 
10543
      if test "$host_cpu" = ia64; then
 
10544
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10545
        allow_undefined_flag_CXX="-z nodefs"
 
10546
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
10547
      else
 
10548
        # Determine the default libpath from the value encoded in an empty executable.
 
10549
        cat >conftest.$ac_ext <<_ACEOF
 
10550
/* confdefs.h.  */
 
10551
_ACEOF
 
10552
cat confdefs.h >>conftest.$ac_ext
 
10553
cat >>conftest.$ac_ext <<_ACEOF
 
10554
/* end confdefs.h.  */
 
10555
 
 
10556
int
 
10557
main ()
 
10558
{
 
10559
 
 
10560
  ;
 
10561
  return 0;
 
10562
}
 
10563
_ACEOF
 
10564
rm -f conftest.$ac_objext conftest$ac_exeext
 
10565
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10566
  (eval $ac_link) 2>conftest.er1
 
10567
  ac_status=$?
 
10568
  grep -v '^ *+' conftest.er1 >conftest.err
 
10569
  rm -f conftest.er1
 
10570
  cat conftest.err >&5
 
10571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10572
  (exit $ac_status); } &&
 
10573
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10575
  (eval $ac_try) 2>&5
 
10576
  ac_status=$?
 
10577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10578
  (exit $ac_status); }; } &&
 
10579
         { ac_try='test -s conftest$ac_exeext'
 
10580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10581
  (eval $ac_try) 2>&5
 
10582
  ac_status=$?
 
10583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10584
  (exit $ac_status); }; }; then
 
10585
 
 
10586
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10587
}'`
 
10588
# Check for a 64-bit object if we didn't find anything.
 
10589
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10590
}'`; fi
 
10591
else
 
10592
  echo "$as_me: failed program was:" >&5
 
10593
sed 's/^/| /' conftest.$ac_ext >&5
 
10594
 
 
10595
fi
 
10596
rm -f conftest.err conftest.$ac_objext \
 
10597
      conftest$ac_exeext conftest.$ac_ext
 
10598
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10599
 
 
10600
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10601
        # Warning - without using the other run time loading flags,
 
10602
        # -berok will link without error, but may produce a broken library.
 
10603
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10604
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10605
        # -bexpall does not export symbols beginning with underscore (_)
 
10606
        always_export_symbols_CXX=yes
 
10607
        # Exported symbols can be pulled into shared objects from archives
 
10608
        whole_archive_flag_spec_CXX=' '
 
10609
        archive_cmds_need_lc_CXX=yes
 
10610
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10611
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
10612
      fi
 
10613
    fi
 
10614
    ;;
 
10615
  chorus*)
 
10616
    case $cc_basename in
 
10617
      *)
 
10618
        # FIXME: insert proper C++ library support
 
10619
        ld_shlibs_CXX=no
 
10620
        ;;
 
10621
    esac
 
10622
    ;;
 
10623
 
 
10624
  cygwin* | mingw* | pw32*)
 
10625
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10626
    # as there is no search path for DLLs.
 
10627
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10628
    allow_undefined_flag_CXX=unsupported
 
10629
    always_export_symbols_CXX=no
 
10630
    enable_shared_with_static_runtimes_CXX=yes
 
10631
 
 
10632
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10633
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10634
      # If the export-symbols file already is a .def file (1st line
 
10635
      # is EXPORTS), use it as is; otherwise, prepend...
 
10636
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10637
        cp $export_symbols $output_objdir/$soname.def;
 
10638
      else
 
10639
        echo EXPORTS > $output_objdir/$soname.def;
 
10640
        cat $export_symbols >> $output_objdir/$soname.def;
 
10641
      fi~
 
10642
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
10643
    else
 
10644
      ld_shlibs_CXX=no
 
10645
    fi
 
10646
  ;;
 
10647
 
 
10648
  darwin* | rhapsody*)
 
10649
  if test "$GXX" = yes; then
 
10650
    archive_cmds_need_lc_CXX=no
 
10651
    case "$host_os" in
 
10652
    rhapsody* | darwin1.[012])
 
10653
      allow_undefined_flag_CXX='-undefined suppress'
 
10654
      ;;
 
10655
    *) # Darwin 1.3 on
 
10656
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10657
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10658
      else
 
10659
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
10660
          10.[012])
 
10661
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
10662
            ;;
 
10663
          10.*)
 
10664
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
10665
            ;;
 
10666
        esac
 
10667
      fi
 
10668
      ;;
 
10669
    esac
 
10670
    lt_int_apple_cc_single_mod=no
 
10671
    output_verbose_link_cmd='echo'
 
10672
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
10673
      lt_int_apple_cc_single_mod=yes
 
10674
    fi
 
10675
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10676
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10677
    else
 
10678
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
 
10679
    fi
 
10680
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10681
 
 
10682
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
10683
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10684
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10685
    else
 
10686
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
10687
    fi
 
10688
    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}'
 
10689
    hardcode_direct_CXX=no
 
10690
    hardcode_automatic_CXX=yes
 
10691
    hardcode_shlibpath_var_CXX=unsupported
 
10692
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
10693
    link_all_deplibs_CXX=yes
 
10694
  else
 
10695
    ld_shlibs_CXX=no
 
10696
  fi
 
10697
    ;;
 
10698
 
 
10699
  dgux*)
 
10700
    case $cc_basename in
 
10701
      ec++)
 
10702
        # FIXME: insert proper C++ library support
 
10703
        ld_shlibs_CXX=no
 
10704
        ;;
 
10705
      ghcx)
 
10706
        # Green Hills C++ Compiler
 
10707
        # FIXME: insert proper C++ library support
 
10708
        ld_shlibs_CXX=no
 
10709
        ;;
 
10710
      *)
 
10711
        # FIXME: insert proper C++ library support
 
10712
        ld_shlibs_CXX=no
 
10713
        ;;
 
10714
    esac
 
10715
    ;;
 
10716
  freebsd12*)
 
10717
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10718
    ld_shlibs_CXX=no
 
10719
    ;;
 
10720
  freebsd-elf*)
 
10721
    archive_cmds_need_lc_CXX=no
 
10722
    ;;
 
10723
  freebsd* | kfreebsd*-gnu)
 
10724
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10725
    # conventions
 
10726
    ld_shlibs_CXX=yes
 
10727
    ;;
 
10728
  gnu*)
 
10729
    ;;
 
10730
  hpux9*)
 
10731
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10732
    hardcode_libdir_separator_CXX=:
 
10733
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10734
    hardcode_direct_CXX=yes
 
10735
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10736
                                # but as the default
 
10737
                                # location of the library.
 
10738
 
 
10739
    case $cc_basename in
 
10740
    CC)
 
10741
      # FIXME: insert proper C++ library support
 
10742
      ld_shlibs_CXX=no
 
10743
      ;;
 
10744
    aCC)
 
10745
      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'
 
10746
      # Commands to make compiler produce verbose output that lists
 
10747
      # what "hidden" libraries, object files and flags are used when
 
10748
      # linking a shared library.
 
10749
      #
 
10750
      # There doesn't appear to be a way to prevent this compiler from
 
10751
      # explicitly linking system object files so we need to strip them
 
10752
      # from the output so that they don't get included in the library
 
10753
      # dependencies.
 
10754
      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'
 
10755
      ;;
 
10756
    *)
 
10757
      if test "$GXX" = yes; then
 
10758
        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'
 
10759
      else
 
10760
        # FIXME: insert proper C++ library support
 
10761
        ld_shlibs_CXX=no
 
10762
      fi
 
10763
      ;;
 
10764
    esac
 
10765
    ;;
 
10766
  hpux10*|hpux11*)
 
10767
    if test $with_gnu_ld = no; then
 
10768
      case "$host_cpu" in
 
10769
      hppa*64*)
 
10770
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10771
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10772
        hardcode_libdir_separator_CXX=:
 
10773
        ;;
 
10774
      ia64*)
 
10775
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10776
        ;;
 
10777
      *)
 
10778
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10779
        hardcode_libdir_separator_CXX=:
 
10780
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10781
        ;;
 
10782
      esac
 
10783
    fi
 
10784
    case "$host_cpu" in
 
10785
    hppa*64*)
 
10786
      hardcode_direct_CXX=no
 
10787
      hardcode_shlibpath_var_CXX=no
 
10788
      ;;
 
10789
    ia64*)
 
10790
      hardcode_direct_CXX=no
 
10791
      hardcode_shlibpath_var_CXX=no
 
10792
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10793
                                              # but as the default
 
10794
                                              # location of the library.
 
10795
      ;;
 
10796
    *)
 
10797
      hardcode_direct_CXX=yes
 
10798
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10799
                                              # but as the default
 
10800
                                              # location of the library.
 
10801
      ;;
 
10802
    esac
 
10803
 
 
10804
    case $cc_basename in
 
10805
      CC)
 
10806
        # FIXME: insert proper C++ library support
 
10807
        ld_shlibs_CXX=no
 
10808
        ;;
 
10809
      aCC)
 
10810
        case "$host_cpu" in
 
10811
        hppa*64*|ia64*)
 
10812
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10813
          ;;
 
10814
        *)
 
10815
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10816
          ;;
 
10817
        esac
 
10818
        # Commands to make compiler produce verbose output that lists
 
10819
        # what "hidden" libraries, object files and flags are used when
 
10820
        # linking a shared library.
 
10821
        #
 
10822
        # There doesn't appear to be a way to prevent this compiler from
 
10823
        # explicitly linking system object files so we need to strip them
 
10824
        # from the output so that they don't get included in the library
 
10825
        # dependencies.
 
10826
        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'
 
10827
        ;;
 
10828
      *)
 
10829
        if test "$GXX" = yes; then
 
10830
          if test $with_gnu_ld = no; then
 
10831
            case "$host_cpu" in
 
10832
            ia64*|hppa*64*)
 
10833
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10834
              ;;
 
10835
            *)
 
10836
              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'
 
10837
              ;;
 
10838
            esac
 
10839
          fi
 
10840
        else
 
10841
          # FIXME: insert proper C++ library support
 
10842
          ld_shlibs_CXX=no
 
10843
        fi
 
10844
        ;;
 
10845
    esac
 
10846
    ;;
 
10847
  irix5* | irix6*)
 
10848
    case $cc_basename in
 
10849
      CC)
 
10850
        # SGI C++
 
10851
        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 ${objdir}/so_locations -o $lib'
 
10852
 
 
10853
        # Archives containing C++ object files must be created using
 
10854
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10855
        # necessary to make sure instantiated templates are included
 
10856
        # in the archive.
 
10857
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10858
        ;;
 
10859
      *)
 
10860
        if test "$GXX" = yes; then
 
10861
          if test "$with_gnu_ld" = no; then
 
10862
            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}${objdir}/so_locations -o $lib'
 
10863
          else
 
10864
            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'
 
10865
          fi
 
10866
        fi
 
10867
        link_all_deplibs_CXX=yes
 
10868
        ;;
 
10869
    esac
 
10870
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10871
    hardcode_libdir_separator_CXX=:
 
10872
    ;;
 
10873
  linux*)
 
10874
    case $cc_basename in
 
10875
      KCC)
 
10876
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10877
 
 
10878
        # KCC will only create a shared library if the output file
 
10879
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10880
        # to its proper name (with version) after linking.
 
10881
        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'
 
10882
        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'
 
10883
        # Commands to make compiler produce verbose output that lists
 
10884
        # what "hidden" libraries, object files and flags are used when
 
10885
        # linking a shared library.
 
10886
        #
 
10887
        # There doesn't appear to be a way to prevent this compiler from
 
10888
        # explicitly linking system object files so we need to strip them
 
10889
        # from the output so that they don't get included in the library
 
10890
        # dependencies.
 
10891
        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'
 
10892
 
 
10893
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10894
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10895
 
 
10896
        # Archives containing C++ object files must be created using
 
10897
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10898
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10899
        ;;
 
10900
      icpc)
 
10901
        # Intel C++
 
10902
        with_gnu_ld=yes
 
10903
        archive_cmds_need_lc_CXX=no
 
10904
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10905
        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'
 
10906
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10907
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10908
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10909
        ;;
 
10910
      cxx)
 
10911
        # Compaq C++
 
10912
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10913
        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'
 
10914
 
 
10915
        runpath_var=LD_RUN_PATH
 
10916
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10917
        hardcode_libdir_separator_CXX=:
 
10918
 
 
10919
        # Commands to make compiler produce verbose output that lists
 
10920
        # what "hidden" libraries, object files and flags are used when
 
10921
        # linking a shared library.
 
10922
        #
 
10923
        # There doesn't appear to be a way to prevent this compiler from
 
10924
        # explicitly linking system object files so we need to strip them
 
10925
        # from the output so that they don't get included in the library
 
10926
        # dependencies.
 
10927
        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'
 
10928
        ;;
 
10929
    esac
 
10930
    ;;
 
10931
  lynxos*)
 
10932
    # FIXME: insert proper C++ library support
 
10933
    ld_shlibs_CXX=no
 
10934
    ;;
 
10935
  m88k*)
 
10936
    # FIXME: insert proper C++ library support
 
10937
    ld_shlibs_CXX=no
 
10938
    ;;
 
10939
  mvs*)
 
10940
    case $cc_basename in
 
10941
      cxx)
 
10942
        # FIXME: insert proper C++ library support
 
10943
        ld_shlibs_CXX=no
 
10944
        ;;
 
10945
      *)
 
10946
        # FIXME: insert proper C++ library support
 
10947
        ld_shlibs_CXX=no
 
10948
        ;;
 
10949
    esac
 
10950
    ;;
 
10951
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10952
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10953
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10954
      wlarc=
 
10955
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10956
      hardcode_direct_CXX=yes
 
10957
      hardcode_shlibpath_var_CXX=no
 
10958
    fi
 
10959
    # Workaround some broken pre-1.5 toolchains
 
10960
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10961
    ;;
 
10962
  osf3*)
 
10963
    case $cc_basename in
 
10964
      KCC)
 
10965
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10966
 
 
10967
        # KCC will only create a shared library if the output file
 
10968
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10969
        # to its proper name (with version) after linking.
 
10970
        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'
 
10971
 
 
10972
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10973
        hardcode_libdir_separator_CXX=:
 
10974
 
 
10975
        # Archives containing C++ object files must be created using
 
10976
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10977
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10978
 
 
10979
        ;;
 
10980
      RCC)
 
10981
        # Rational C++ 2.4.1
 
10982
        # FIXME: insert proper C++ library support
 
10983
        ld_shlibs_CXX=no
 
10984
        ;;
 
10985
      cxx)
 
10986
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10987
        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 ${objdir}/so_locations -o $lib'
 
10988
 
 
10989
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10990
        hardcode_libdir_separator_CXX=:
 
10991
 
 
10992
        # Commands to make compiler produce verbose output that lists
 
10993
        # what "hidden" libraries, object files and flags are used when
 
10994
        # linking a shared library.
 
10995
        #
 
10996
        # There doesn't appear to be a way to prevent this compiler from
 
10997
        # explicitly linking system object files so we need to strip them
 
10998
        # from the output so that they don't get included in the library
 
10999
        # dependencies.
 
11000
        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'
 
11001
        ;;
 
11002
      *)
 
11003
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11004
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11005
          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}${objdir}/so_locations -o $lib'
 
11006
 
 
11007
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11008
          hardcode_libdir_separator_CXX=:
 
11009
 
 
11010
          # Commands to make compiler produce verbose output that lists
 
11011
          # what "hidden" libraries, object files and flags are used when
 
11012
          # linking a shared library.
 
11013
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11014
 
 
11015
        else
 
11016
          # FIXME: insert proper C++ library support
 
11017
          ld_shlibs_CXX=no
 
11018
        fi
 
11019
        ;;
 
11020
    esac
 
11021
    ;;
 
11022
  osf4* | osf5*)
 
11023
    case $cc_basename in
 
11024
      KCC)
 
11025
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11026
 
 
11027
        # KCC will only create a shared library if the output file
 
11028
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11029
        # to its proper name (with version) after linking.
 
11030
        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'
 
11031
 
 
11032
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11033
        hardcode_libdir_separator_CXX=:
 
11034
 
 
11035
        # Archives containing C++ object files must be created using
 
11036
        # the KAI C++ compiler.
 
11037
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11038
        ;;
 
11039
      RCC)
 
11040
        # Rational C++ 2.4.1
 
11041
        # FIXME: insert proper C++ library support
 
11042
        ld_shlibs_CXX=no
 
11043
        ;;
 
11044
      cxx)
 
11045
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11046
        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 ${objdir}/so_locations -o $lib'
 
11047
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11048
          echo "-hidden">> $lib.exp~
 
11049
          $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 $objdir/so_locations -o $lib~
 
11050
          $rm $lib.exp'
 
11051
 
 
11052
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11053
        hardcode_libdir_separator_CXX=:
 
11054
 
 
11055
        # Commands to make compiler produce verbose output that lists
 
11056
        # what "hidden" libraries, object files and flags are used when
 
11057
        # linking a shared library.
 
11058
        #
 
11059
        # There doesn't appear to be a way to prevent this compiler from
 
11060
        # explicitly linking system object files so we need to strip them
 
11061
        # from the output so that they don't get included in the library
 
11062
        # dependencies.
 
11063
        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'
 
11064
        ;;
 
11065
      *)
 
11066
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11067
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11068
         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}${objdir}/so_locations -o $lib'
 
11069
 
 
11070
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11071
          hardcode_libdir_separator_CXX=:
 
11072
 
 
11073
          # Commands to make compiler produce verbose output that lists
 
11074
          # what "hidden" libraries, object files and flags are used when
 
11075
          # linking a shared library.
 
11076
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11077
 
 
11078
        else
 
11079
          # FIXME: insert proper C++ library support
 
11080
          ld_shlibs_CXX=no
 
11081
        fi
 
11082
        ;;
 
11083
    esac
 
11084
    ;;
 
11085
  psos*)
 
11086
    # FIXME: insert proper C++ library support
 
11087
    ld_shlibs_CXX=no
 
11088
    ;;
 
11089
  sco*)
 
11090
    archive_cmds_need_lc_CXX=no
 
11091
    case $cc_basename in
 
11092
      CC)
 
11093
        # FIXME: insert proper C++ library support
 
11094
        ld_shlibs_CXX=no
 
11095
        ;;
 
11096
      *)
 
11097
        # FIXME: insert proper C++ library support
 
11098
        ld_shlibs_CXX=no
 
11099
        ;;
 
11100
    esac
 
11101
    ;;
 
11102
  sunos4*)
 
11103
    case $cc_basename in
 
11104
      CC)
 
11105
        # Sun C++ 4.x
 
11106
        # FIXME: insert proper C++ library support
 
11107
        ld_shlibs_CXX=no
 
11108
        ;;
 
11109
      lcc)
 
11110
        # Lucid
 
11111
        # FIXME: insert proper C++ library support
 
11112
        ld_shlibs_CXX=no
 
11113
        ;;
 
11114
      *)
 
11115
        # FIXME: insert proper C++ library support
 
11116
        ld_shlibs_CXX=no
 
11117
        ;;
 
11118
    esac
 
11119
    ;;
 
11120
  solaris*)
 
11121
    case $cc_basename in
 
11122
      CC)
 
11123
        # Sun C++ 4.2, 5.x and Centerline C++
 
11124
        no_undefined_flag_CXX=' -zdefs'
 
11125
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11126
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11127
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11128
 
 
11129
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11130
        hardcode_shlibpath_var_CXX=no
 
11131
        case $host_os in
 
11132
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11133
          *)
 
11134
            # The C++ compiler is used as linker so we must use $wl
 
11135
            # flag to pass the commands to the underlying system
 
11136
            # linker.
 
11137
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11138
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11139
            ;;
 
11140
        esac
 
11141
        link_all_deplibs_CXX=yes
 
11142
 
 
11143
        # Commands to make compiler produce verbose output that lists
 
11144
        # what "hidden" libraries, object files and flags are used when
 
11145
        # linking a shared library.
 
11146
        #
 
11147
        # There doesn't appear to be a way to prevent this compiler from
 
11148
        # explicitly linking system object files so we need to strip them
 
11149
        # from the output so that they don't get included in the library
 
11150
        # dependencies.
 
11151
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11152
 
 
11153
        # Archives containing C++ object files must be created using
 
11154
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11155
        # necessary to make sure instantiated templates are included
 
11156
        # in the archive.
 
11157
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11158
        ;;
 
11159
      gcx)
 
11160
        # Green Hills C++ Compiler
 
11161
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11162
 
 
11163
        # The C++ compiler must be used to create the archive.
 
11164
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11165
        ;;
 
11166
      *)
 
11167
        # GNU C++ compiler with Solaris linker
 
11168
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11169
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11170
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11171
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11172
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11173
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11174
 
 
11175
            # Commands to make compiler produce verbose output that lists
 
11176
            # what "hidden" libraries, object files and flags are used when
 
11177
            # linking a shared library.
 
11178
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11179
          else
 
11180
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11181
            # platform.
 
11182
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11183
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11184
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11185
 
 
11186
            # Commands to make compiler produce verbose output that lists
 
11187
            # what "hidden" libraries, object files and flags are used when
 
11188
            # linking a shared library.
 
11189
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11190
          fi
 
11191
 
 
11192
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11193
        fi
 
11194
        ;;
 
11195
    esac
 
11196
    ;;
 
11197
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11198
    archive_cmds_need_lc_CXX=no
 
11199
    ;;
 
11200
  tandem*)
 
11201
    case $cc_basename in
 
11202
      NCC)
 
11203
        # NonStop-UX NCC 3.20
 
11204
        # FIXME: insert proper C++ library support
 
11205
        ld_shlibs_CXX=no
 
11206
        ;;
 
11207
      *)
 
11208
        # FIXME: insert proper C++ library support
 
11209
        ld_shlibs_CXX=no
 
11210
        ;;
 
11211
    esac
 
11212
    ;;
 
11213
  vxworks*)
 
11214
    # FIXME: insert proper C++ library support
 
11215
    ld_shlibs_CXX=no
 
11216
    ;;
 
11217
  *)
 
11218
    # FIXME: insert proper C++ library support
 
11219
    ld_shlibs_CXX=no
 
11220
    ;;
 
11221
esac
 
11222
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11223
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11224
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11225
 
 
11226
GCC_CXX="$GXX"
 
11227
LD_CXX="$LD"
 
11228
 
 
11229
 
 
11230
cat > conftest.$ac_ext <<EOF
 
11231
class Foo
 
11232
{
 
11233
public:
 
11234
  Foo (void) { a = 0; }
 
11235
private:
 
11236
  int a;
 
11237
};
 
11238
EOF
 
11239
 
 
11240
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11241
  (eval $ac_compile) 2>&5
 
11242
  ac_status=$?
 
11243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11244
  (exit $ac_status); }; then
 
11245
  # Parse the compiler output and extract the necessary
 
11246
  # objects, libraries and library flags.
 
11247
 
 
11248
  # Sentinel used to keep track of whether or not we are before
 
11249
  # the conftest object file.
 
11250
  pre_test_object_deps_done=no
 
11251
 
 
11252
  # The `*' in the case matches for architectures that use `case' in
 
11253
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11254
  # eval without this substitution.
 
11255
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11256
 
 
11257
  for p in `eval $output_verbose_link_cmd`; do
 
11258
    case $p in
 
11259
 
 
11260
    -L* | -R* | -l*)
 
11261
       # Some compilers place space between "-{L,R}" and the path.
 
11262
       # Remove the space.
 
11263
       if test $p = "-L" \
 
11264
          || test $p = "-R"; then
 
11265
         prev=$p
 
11266
         continue
 
11267
       else
 
11268
         prev=
 
11269
       fi
 
11270
 
 
11271
       if test "$pre_test_object_deps_done" = no; then
 
11272
         case $p in
 
11273
         -L* | -R*)
 
11274
           # Internal compiler library paths should come after those
 
11275
           # provided the user.  The postdeps already come after the
 
11276
           # user supplied libs so there is no need to process them.
 
11277
           if test -z "$compiler_lib_search_path_CXX"; then
 
11278
             compiler_lib_search_path_CXX="${prev}${p}"
 
11279
           else
 
11280
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11281
           fi
 
11282
           ;;
 
11283
         # The "-l" case would never come before the object being
 
11284
         # linked, so don't bother handling this case.
 
11285
         esac
 
11286
       else
 
11287
         if test -z "$postdeps_CXX"; then
 
11288
           postdeps_CXX="${prev}${p}"
 
11289
         else
 
11290
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11291
         fi
 
11292
       fi
 
11293
       ;;
 
11294
 
 
11295
    *.$objext)
 
11296
       # This assumes that the test object file only shows up
 
11297
       # once in the compiler output.
 
11298
       if test "$p" = "conftest.$objext"; then
 
11299
         pre_test_object_deps_done=yes
 
11300
         continue
 
11301
       fi
 
11302
 
 
11303
       if test "$pre_test_object_deps_done" = no; then
 
11304
         if test -z "$predep_objects_CXX"; then
 
11305
           predep_objects_CXX="$p"
 
11306
         else
 
11307
           predep_objects_CXX="$predep_objects_CXX $p"
 
11308
         fi
 
11309
       else
 
11310
         if test -z "$postdep_objects_CXX"; then
 
11311
           postdep_objects_CXX="$p"
 
11312
         else
 
11313
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11314
         fi
 
11315
       fi
 
11316
       ;;
 
11317
 
 
11318
    *) ;; # Ignore the rest.
 
11319
 
 
11320
    esac
 
11321
  done
 
11322
 
 
11323
  # Clean up.
 
11324
  rm -f a.out a.exe
 
11325
else
 
11326
  echo "libtool.m4: error: problem compiling CXX test program"
 
11327
fi
 
11328
 
 
11329
$rm -f confest.$objext
 
11330
 
 
11331
case " $postdeps_CXX " in
 
11332
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11333
esac
 
11334
 
 
11335
lt_prog_compiler_wl_CXX=
 
11336
lt_prog_compiler_pic_CXX=
 
11337
lt_prog_compiler_static_CXX=
 
11338
 
 
11339
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11340
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11341
 
 
11342
  # C++ specific cases for pic, static, wl, etc.
 
11343
  if test "$GXX" = yes; then
 
11344
    lt_prog_compiler_wl_CXX='-Wl,'
 
11345
    lt_prog_compiler_static_CXX='-static'
 
11346
 
 
11347
    case $host_os in
 
11348
    aix*)
 
11349
      # All AIX code is PIC.
 
11350
      if test "$host_cpu" = ia64; then
 
11351
        # AIX 5 now supports IA64 processor
 
11352
        lt_prog_compiler_static_CXX='-Bstatic'
 
11353
      fi
 
11354
      ;;
 
11355
    amigaos*)
 
11356
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11357
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11358
      # like `-m68040'.
 
11359
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11360
      ;;
 
11361
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11362
      # PIC is the default for these OSes.
 
11363
      ;;
 
11364
    mingw* | os2* | pw32*)
 
11365
      # This hack is so that the source file can tell whether it is being
 
11366
      # built for inclusion in a dll (and should export symbols for example).
 
11367
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11368
      ;;
 
11369
    darwin* | rhapsody*)
 
11370
      # PIC is the default on this platform
 
11371
      # Common symbols not allowed in MH_DYLIB files
 
11372
      lt_prog_compiler_pic_CXX='-fno-common'
 
11373
      ;;
 
11374
    *djgpp*)
 
11375
      # DJGPP does not support shared libraries at all
 
11376
      lt_prog_compiler_pic_CXX=
 
11377
      ;;
 
11378
    sysv4*MP*)
 
11379
      if test -d /usr/nec; then
 
11380
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11381
      fi
 
11382
      ;;
 
11383
    hpux*)
 
11384
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11385
      # not for PA HP-UX.
 
11386
      case "$host_cpu" in
 
11387
      hppa*64*|ia64*)
 
11388
        ;;
 
11389
      *)
 
11390
        lt_prog_compiler_pic_CXX='-fPIC'
 
11391
        ;;
 
11392
      esac
 
11393
      ;;
 
11394
    *)
 
11395
      lt_prog_compiler_pic_CXX='-fPIC'
 
11396
      ;;
 
11397
    esac
 
11398
  else
 
11399
    case $host_os in
 
11400
      aix4* | aix5*)
 
11401
        # All AIX code is PIC.
 
11402
        if test "$host_cpu" = ia64; then
 
11403
          # AIX 5 now supports IA64 processor
 
11404
          lt_prog_compiler_static_CXX='-Bstatic'
 
11405
        else
 
11406
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11407
        fi
 
11408
        ;;
 
11409
      chorus*)
 
11410
        case $cc_basename in
 
11411
        cxch68)
 
11412
          # Green Hills C++ Compiler
 
11413
          # _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"
 
11414
          ;;
 
11415
        esac
 
11416
        ;;
 
11417
      dgux*)
 
11418
        case $cc_basename in
 
11419
          ec++)
 
11420
            lt_prog_compiler_pic_CXX='-KPIC'
 
11421
            ;;
 
11422
          ghcx)
 
11423
            # Green Hills C++ Compiler
 
11424
            lt_prog_compiler_pic_CXX='-pic'
 
11425
            ;;
 
11426
          *)
 
11427
            ;;
 
11428
        esac
 
11429
        ;;
 
11430
      freebsd* | kfreebsd*-gnu)
 
11431
        # FreeBSD uses GNU C++
 
11432
        ;;
 
11433
      hpux9* | hpux10* | hpux11*)
 
11434
        case $cc_basename in
 
11435
          CC)
 
11436
            lt_prog_compiler_wl_CXX='-Wl,'
 
11437
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11438
            if test "$host_cpu" != ia64; then
 
11439
              lt_prog_compiler_pic_CXX='+Z'
 
11440
            fi
 
11441
            ;;
 
11442
          aCC)
 
11443
            lt_prog_compiler_wl_CXX='-Wl,'
 
11444
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11445
            case "$host_cpu" in
 
11446
            hppa*64*|ia64*)
 
11447
              # +Z the default
 
11448
              ;;
 
11449
            *)
 
11450
              lt_prog_compiler_pic_CXX='+Z'
 
11451
              ;;
 
11452
            esac
 
11453
            ;;
 
11454
          *)
 
11455
            ;;
 
11456
        esac
 
11457
        ;;
 
11458
      irix5* | irix6* | nonstopux*)
 
11459
        case $cc_basename in
 
11460
          CC)
 
11461
            lt_prog_compiler_wl_CXX='-Wl,'
 
11462
            lt_prog_compiler_static_CXX='-non_shared'
 
11463
            # CC pic flag -KPIC is the default.
 
11464
            ;;
 
11465
          *)
 
11466
            ;;
 
11467
        esac
 
11468
        ;;
 
11469
      linux*)
 
11470
        case $cc_basename in
 
11471
          KCC)
 
11472
            # KAI C++ Compiler
 
11473
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11474
            lt_prog_compiler_pic_CXX='-fPIC'
 
11475
            ;;
 
11476
          icpc)
 
11477
            # Intel C++
 
11478
            lt_prog_compiler_wl_CXX='-Wl,'
 
11479
            lt_prog_compiler_pic_CXX='-KPIC'
 
11480
            lt_prog_compiler_static_CXX='-static'
 
11481
            ;;
 
11482
          cxx)
 
11483
            # Compaq C++
 
11484
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11485
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11486
            lt_prog_compiler_pic_CXX=
 
11487
            lt_prog_compiler_static_CXX='-non_shared'
 
11488
            ;;
 
11489
          *)
 
11490
            ;;
 
11491
        esac
 
11492
        ;;
 
11493
      lynxos*)
 
11494
        ;;
 
11495
      m88k*)
 
11496
        ;;
 
11497
      mvs*)
 
11498
        case $cc_basename in
 
11499
          cxx)
 
11500
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11501
            ;;
 
11502
          *)
 
11503
            ;;
 
11504
        esac
 
11505
        ;;
 
11506
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11507
        ;;
 
11508
      osf3* | osf4* | osf5*)
 
11509
        case $cc_basename in
 
11510
          KCC)
 
11511
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11512
            ;;
 
11513
          RCC)
 
11514
            # Rational C++ 2.4.1
 
11515
            lt_prog_compiler_pic_CXX='-pic'
 
11516
            ;;
 
11517
          cxx)
 
11518
            # Digital/Compaq C++
 
11519
            lt_prog_compiler_wl_CXX='-Wl,'
 
11520
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11521
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11522
            lt_prog_compiler_pic_CXX=
 
11523
            lt_prog_compiler_static_CXX='-non_shared'
 
11524
            ;;
 
11525
          *)
 
11526
            ;;
 
11527
        esac
 
11528
        ;;
 
11529
      psos*)
 
11530
        ;;
 
11531
      sco*)
 
11532
        case $cc_basename in
 
11533
          CC)
 
11534
            lt_prog_compiler_pic_CXX='-fPIC'
 
11535
            ;;
 
11536
          *)
 
11537
            ;;
 
11538
        esac
 
11539
        ;;
 
11540
      solaris*)
 
11541
        case $cc_basename in
 
11542
          CC)
 
11543
            # Sun C++ 4.2, 5.x and Centerline C++
 
11544
            lt_prog_compiler_pic_CXX='-KPIC'
 
11545
            lt_prog_compiler_static_CXX='-Bstatic'
 
11546
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11547
            ;;
 
11548
          gcx)
 
11549
            # Green Hills C++ Compiler
 
11550
            lt_prog_compiler_pic_CXX='-PIC'
 
11551
            ;;
 
11552
          *)
 
11553
            ;;
 
11554
        esac
 
11555
        ;;
 
11556
      sunos4*)
 
11557
        case $cc_basename in
 
11558
          CC)
 
11559
            # Sun C++ 4.x
 
11560
            lt_prog_compiler_pic_CXX='-pic'
 
11561
            lt_prog_compiler_static_CXX='-Bstatic'
 
11562
            ;;
 
11563
          lcc)
 
11564
            # Lucid
 
11565
            lt_prog_compiler_pic_CXX='-pic'
 
11566
            ;;
 
11567
          *)
 
11568
            ;;
 
11569
        esac
 
11570
        ;;
 
11571
      tandem*)
 
11572
        case $cc_basename in
 
11573
          NCC)
 
11574
            # NonStop-UX NCC 3.20
 
11575
            lt_prog_compiler_pic_CXX='-KPIC'
 
11576
            ;;
 
11577
          *)
 
11578
            ;;
 
11579
        esac
 
11580
        ;;
 
11581
      unixware*)
 
11582
        ;;
 
11583
      vxworks*)
 
11584
        ;;
 
11585
      *)
 
11586
        lt_prog_compiler_can_build_shared_CXX=no
 
11587
        ;;
 
11588
    esac
 
11589
  fi
 
11590
 
 
11591
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11592
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11593
 
 
11594
#
 
11595
# Check to make sure the PIC flag actually works.
 
11596
#
 
11597
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11598
 
 
11599
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11600
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11601
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11603
else
 
11604
  lt_prog_compiler_pic_works_CXX=no
 
11605
  ac_outfile=conftest.$ac_objext
 
11606
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11607
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11608
   # Insert the option either (1) after the last *FLAGS variable, or
 
11609
   # (2) before a word containing "conftest.", or (3) at the end.
 
11610
   # Note that $ac_compile itself does not contain backslashes and begins
 
11611
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11612
   # The option is referenced via a variable to avoid confusing sed.
 
11613
   lt_compile=`echo "$ac_compile" | $SED \
 
11614
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11615
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11616
   -e 's:$: $lt_compiler_flag:'`
 
11617
   (eval echo "\"\$as_me:11617: $lt_compile\"" >&5)
 
11618
   (eval "$lt_compile" 2>conftest.err)
 
11619
   ac_status=$?
 
11620
   cat conftest.err >&5
 
11621
   echo "$as_me:11621: \$? = $ac_status" >&5
 
11622
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11623
     # The compiler can only warn and ignore the option if not recognized
 
11624
     # So say no if there are warnings
 
11625
     if test ! -s conftest.err; then
 
11626
       lt_prog_compiler_pic_works_CXX=yes
 
11627
     fi
 
11628
   fi
 
11629
   $rm conftest*
 
11630
 
 
11631
fi
 
11632
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11633
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11634
 
 
11635
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11636
    case $lt_prog_compiler_pic_CXX in
 
11637
     "" | " "*) ;;
 
11638
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11639
     esac
 
11640
else
 
11641
    lt_prog_compiler_pic_CXX=
 
11642
     lt_prog_compiler_can_build_shared_CXX=no
 
11643
fi
 
11644
 
 
11645
fi
 
11646
case "$host_os" in
 
11647
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11648
  *djgpp*)
 
11649
    lt_prog_compiler_pic_CXX=
 
11650
    ;;
 
11651
  *)
 
11652
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11653
    ;;
 
11654
esac
 
11655
 
 
11656
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11657
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11658
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11659
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11660
else
 
11661
  lt_cv_prog_compiler_c_o_CXX=no
 
11662
   $rm -r conftest 2>/dev/null
 
11663
   mkdir conftest
 
11664
   cd conftest
 
11665
   mkdir out
 
11666
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11667
 
 
11668
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11669
   # Insert the option either (1) after the last *FLAGS variable, or
 
11670
   # (2) before a word containing "conftest.", or (3) at the end.
 
11671
   # Note that $ac_compile itself does not contain backslashes and begins
 
11672
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11673
   lt_compile=`echo "$ac_compile" | $SED \
 
11674
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11675
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11676
   -e 's:$: $lt_compiler_flag:'`
 
11677
   (eval echo "\"\$as_me:11677: $lt_compile\"" >&5)
 
11678
   (eval "$lt_compile" 2>out/conftest.err)
 
11679
   ac_status=$?
 
11680
   cat out/conftest.err >&5
 
11681
   echo "$as_me:11681: \$? = $ac_status" >&5
 
11682
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11683
   then
 
11684
     # The compiler can only warn and ignore the option if not recognized
 
11685
     # So say no if there are warnings
 
11686
     if test ! -s out/conftest.err; then
 
11687
       lt_cv_prog_compiler_c_o_CXX=yes
 
11688
     fi
 
11689
   fi
 
11690
   chmod u+w .
 
11691
   $rm conftest*
 
11692
   # SGI C++ compiler will create directory out/ii_files/ for
 
11693
   # template instantiation
 
11694
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11695
   $rm out/* && rmdir out
 
11696
   cd ..
 
11697
   rmdir conftest
 
11698
   $rm conftest*
 
11699
 
 
11700
fi
 
11701
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11702
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11703
 
 
11704
 
 
11705
hard_links="nottested"
 
11706
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11707
  # do not overwrite the value of need_locks provided by the user
 
11708
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11709
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11710
  hard_links=yes
 
11711
  $rm conftest*
 
11712
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11713
  touch conftest.a
 
11714
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11715
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11716
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11717
echo "${ECHO_T}$hard_links" >&6
 
11718
  if test "$hard_links" = no; then
 
11719
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11720
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11721
    need_locks=warn
 
11722
  fi
 
11723
else
 
11724
  need_locks=no
 
11725
fi
 
11726
 
 
11727
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11728
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11729
 
 
11730
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11731
  case $host_os in
 
11732
  aix4* | aix5*)
 
11733
    # If we're using GNU nm, then we don't want the "-C" option.
 
11734
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11735
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11736
      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'
 
11737
    else
 
11738
      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'
 
11739
    fi
 
11740
    ;;
 
11741
  pw32*)
 
11742
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11743
  ;;
 
11744
  cygwin* | mingw*)
 
11745
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
11746
  ;;
 
11747
  linux*)
 
11748
    link_all_deplibs_CXX=no
 
11749
  ;;
 
11750
  *)
 
11751
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11752
  ;;
 
11753
  esac
 
11754
 
 
11755
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11756
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11757
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11758
 
 
11759
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11760
if test "$GCC" = yes; then
 
11761
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11762
fi
 
11763
 
 
11764
#
 
11765
# Do we need to explicitly link libc?
 
11766
#
 
11767
case "x$archive_cmds_need_lc_CXX" in
 
11768
x|xyes)
 
11769
  # Assume -lc should be added
 
11770
  archive_cmds_need_lc_CXX=yes
 
11771
 
 
11772
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11773
    case $archive_cmds_CXX in
 
11774
    *'~'*)
 
11775
      # FIXME: we may have to deal with multi-command sequences.
 
11776
      ;;
 
11777
    '$CC '*)
 
11778
      # Test whether the compiler implicitly links with -lc since on some
 
11779
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11780
      # to ld, don't add -lc before -lgcc.
 
11781
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11782
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11783
      $rm conftest*
 
11784
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11785
 
 
11786
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11787
  (eval $ac_compile) 2>&5
 
11788
  ac_status=$?
 
11789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11790
  (exit $ac_status); } 2>conftest.err; then
 
11791
        soname=conftest
 
11792
        lib=conftest
 
11793
        libobjs=conftest.$ac_objext
 
11794
        deplibs=
 
11795
        wl=$lt_prog_compiler_wl_CXX
 
11796
        compiler_flags=-v
 
11797
        linker_flags=-v
 
11798
        verstring=
 
11799
        output_objdir=.
 
11800
        libname=conftest
 
11801
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11802
        allow_undefined_flag_CXX=
 
11803
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11804
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11805
  ac_status=$?
 
11806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11807
  (exit $ac_status); }
 
11808
        then
 
11809
          archive_cmds_need_lc_CXX=no
 
11810
        else
 
11811
          archive_cmds_need_lc_CXX=yes
 
11812
        fi
 
11813
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11814
      else
 
11815
        cat conftest.err 1>&5
 
11816
      fi
 
11817
      $rm conftest*
 
11818
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11819
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11820
      ;;
 
11821
    esac
 
11822
  fi
 
11823
  ;;
 
11824
esac
 
11825
 
 
11826
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11827
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11828
library_names_spec=
 
11829
libname_spec='lib$name'
 
11830
soname_spec=
 
11831
shrext_cmds=".so"
 
11832
postinstall_cmds=
 
11833
postuninstall_cmds=
 
11834
finish_cmds=
 
11835
finish_eval=
 
11836
shlibpath_var=
 
11837
shlibpath_overrides_runpath=unknown
 
11838
version_type=none
 
11839
dynamic_linker="$host_os ld.so"
 
11840
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11841
if test "$GCC" = yes; then
 
11842
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11843
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11844
    # if the path contains ";" then we assume it to be the separator
 
11845
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11846
    # assumed that no part of a normal pathname contains ";" but that should
 
11847
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11848
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11849
  else
 
11850
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11851
  fi
 
11852
else
 
11853
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11854
fi
 
11855
need_lib_prefix=unknown
 
11856
hardcode_into_libs=no
 
11857
 
 
11858
# when you set need_version to no, make sure it does not cause -set_version
 
11859
# flags to be left without arguments
 
11860
need_version=unknown
 
11861
 
 
11862
case $host_os in
 
11863
aix3*)
 
11864
  version_type=linux
 
11865
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11866
  shlibpath_var=LIBPATH
 
11867
 
 
11868
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11869
  soname_spec='${libname}${release}${shared_ext}$major'
 
11870
  ;;
 
11871
 
 
11872
aix4* | aix5*)
 
11873
  version_type=linux
 
11874
  need_lib_prefix=no
 
11875
  need_version=no
 
11876
  hardcode_into_libs=yes
 
11877
  if test "$host_cpu" = ia64; then
 
11878
    # AIX 5 supports IA64
 
11879
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11880
    shlibpath_var=LD_LIBRARY_PATH
 
11881
  else
 
11882
    # With GCC up to 2.95.x, collect2 would create an import file
 
11883
    # for dependence libraries.  The import file would start with
 
11884
    # the line `#! .'.  This would cause the generated library to
 
11885
    # depend on `.', always an invalid library.  This was fixed in
 
11886
    # development snapshots of GCC prior to 3.0.
 
11887
    case $host_os in
 
11888
      aix4 | aix4.[01] | aix4.[01].*)
 
11889
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11890
           echo ' yes '
 
11891
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11892
        :
 
11893
      else
 
11894
        can_build_shared=no
 
11895
      fi
 
11896
      ;;
 
11897
    esac
 
11898
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11899
    # soname into executable. Probably we can add versioning support to
 
11900
    # collect2, so additional links can be useful in future.
 
11901
    if test "$aix_use_runtimelinking" = yes; then
 
11902
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11903
      # instead of lib<name>.a to let people know that these are not
 
11904
      # typical AIX shared libraries.
 
11905
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11906
    else
 
11907
      # We preserve .a as extension for shared libraries through AIX4.2
 
11908
      # and later when we are not doing run time linking.
 
11909
      library_names_spec='${libname}${release}.a $libname.a'
 
11910
      soname_spec='${libname}${release}${shared_ext}$major'
 
11911
    fi
 
11912
    shlibpath_var=LIBPATH
 
11913
  fi
 
11914
  ;;
 
11915
 
 
11916
amigaos*)
 
11917
  library_names_spec='$libname.ixlibrary $libname.a'
 
11918
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11919
  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'
 
11920
  ;;
 
11921
 
 
11922
beos*)
 
11923
  library_names_spec='${libname}${shared_ext}'
 
11924
  dynamic_linker="$host_os ld.so"
 
11925
  shlibpath_var=LIBRARY_PATH
 
11926
  ;;
 
11927
 
 
11928
bsdi4*)
 
11929
  version_type=linux
 
11930
  need_version=no
 
11931
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11932
  soname_spec='${libname}${release}${shared_ext}$major'
 
11933
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11934
  shlibpath_var=LD_LIBRARY_PATH
 
11935
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11936
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11937
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11938
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11939
  # libtool to hard-code these into programs
 
11940
  ;;
 
11941
 
 
11942
cygwin* | mingw* | pw32*)
 
11943
  version_type=windows
 
11944
  shrext_cmds=".dll"
 
11945
  need_version=no
 
11946
  need_lib_prefix=no
 
11947
 
 
11948
  case $GCC,$host_os in
 
11949
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11950
    library_names_spec='$libname.dll.a'
 
11951
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11952
    postinstall_cmds='base_file=`basename \${file}`~
 
11953
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11954
      dldir=$destdir/`dirname \$dlpath`~
 
11955
      test -d \$dldir || mkdir -p \$dldir~
 
11956
      $install_prog $dir/$dlname \$dldir/$dlname'
 
11957
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11958
      dlpath=$dir/\$dldll~
 
11959
       $rm \$dlpath'
 
11960
    shlibpath_overrides_runpath=yes
 
11961
 
 
11962
    case $host_os in
 
11963
    cygwin*)
 
11964
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11965
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11966
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11967
      ;;
 
11968
    mingw*)
 
11969
      # MinGW DLLs use traditional 'lib' prefix
 
11970
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11971
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11972
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11973
        # It is most probably a Windows format PATH printed by
 
11974
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11975
        # path with ; separators, and with drive letters. We can handle the
 
11976
        # drive letters (cygwin fileutils understands them), so leave them,
 
11977
        # especially as we might pass files found there to a mingw objdump,
 
11978
        # which wouldn't understand a cygwinified path. Ahh.
 
11979
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11980
      else
 
11981
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11982
      fi
 
11983
      ;;
 
11984
    pw32*)
 
11985
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11986
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
11987
      ;;
 
11988
    esac
 
11989
    ;;
 
11990
 
 
11991
  *)
 
11992
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11993
    ;;
 
11994
  esac
 
11995
  dynamic_linker='Win32 ld.exe'
 
11996
  # FIXME: first we should search . and the directory the executable is in
 
11997
  shlibpath_var=PATH
 
11998
  ;;
 
11999
 
 
12000
darwin* | rhapsody*)
 
12001
  dynamic_linker="$host_os dyld"
 
12002
  version_type=darwin
 
12003
  need_lib_prefix=no
 
12004
  need_version=no
 
12005
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12006
  soname_spec='${libname}${release}${major}$shared_ext'
 
12007
  shlibpath_overrides_runpath=yes
 
12008
  shlibpath_var=DYLD_LIBRARY_PATH
 
12009
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
12010
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12011
  if test "$GCC" = yes; then
 
12012
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12013
  else
 
12014
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12015
  fi
 
12016
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12017
  ;;
 
12018
 
 
12019
dgux*)
 
12020
  version_type=linux
 
12021
  need_lib_prefix=no
 
12022
  need_version=no
 
12023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12024
  soname_spec='${libname}${release}${shared_ext}$major'
 
12025
  shlibpath_var=LD_LIBRARY_PATH
 
12026
  ;;
 
12027
 
 
12028
freebsd1*)
 
12029
  dynamic_linker=no
 
12030
  ;;
 
12031
 
 
12032
kfreebsd*-gnu)
 
12033
  version_type=linux
 
12034
  need_lib_prefix=no
 
12035
  need_version=no
 
12036
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12037
  soname_spec='${libname}${release}${shared_ext}$major'
 
12038
  shlibpath_var=LD_LIBRARY_PATH
 
12039
  shlibpath_overrides_runpath=no
 
12040
  hardcode_into_libs=yes
 
12041
  dynamic_linker='GNU ld.so'
 
12042
  ;;
 
12043
 
 
12044
freebsd*)
 
12045
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12046
  version_type=freebsd-$objformat
 
12047
  case $version_type in
 
12048
    freebsd-elf*)
 
12049
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12050
      need_version=no
 
12051
      need_lib_prefix=no
 
12052
      ;;
 
12053
    freebsd-*)
 
12054
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12055
      need_version=yes
 
12056
      ;;
 
12057
  esac
 
12058
  shlibpath_var=LD_LIBRARY_PATH
 
12059
  case $host_os in
 
12060
  freebsd2*)
 
12061
    shlibpath_overrides_runpath=yes
 
12062
    ;;
 
12063
  freebsd3.01* | freebsdelf3.01*)
 
12064
    shlibpath_overrides_runpath=yes
 
12065
    hardcode_into_libs=yes
 
12066
    ;;
 
12067
  *) # from 3.2 on
 
12068
    shlibpath_overrides_runpath=no
 
12069
    hardcode_into_libs=yes
 
12070
    ;;
 
12071
  esac
 
12072
  ;;
 
12073
 
 
12074
gnu*)
 
12075
  version_type=linux
 
12076
  need_lib_prefix=no
 
12077
  need_version=no
 
12078
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12079
  soname_spec='${libname}${release}${shared_ext}$major'
 
12080
  shlibpath_var=LD_LIBRARY_PATH
 
12081
  hardcode_into_libs=yes
 
12082
  ;;
 
12083
 
 
12084
hpux9* | hpux10* | hpux11*)
 
12085
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12086
  # link against other versions.
 
12087
  version_type=sunos
 
12088
  need_lib_prefix=no
 
12089
  need_version=no
 
12090
  case "$host_cpu" in
 
12091
  ia64*)
 
12092
    shrext_cmds='.so'
 
12093
    hardcode_into_libs=yes
 
12094
    dynamic_linker="$host_os dld.so"
 
12095
    shlibpath_var=LD_LIBRARY_PATH
 
12096
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12097
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12098
    soname_spec='${libname}${release}${shared_ext}$major'
 
12099
    if test "X$HPUX_IA64_MODE" = X32; then
 
12100
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12101
    else
 
12102
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12103
    fi
 
12104
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12105
    ;;
 
12106
   hppa*64*)
 
12107
     shrext_cmds='.sl'
 
12108
     hardcode_into_libs=yes
 
12109
     dynamic_linker="$host_os dld.sl"
 
12110
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12111
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12112
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12113
     soname_spec='${libname}${release}${shared_ext}$major'
 
12114
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12115
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12116
     ;;
 
12117
   *)
 
12118
    shrext_cmds='.sl'
 
12119
    dynamic_linker="$host_os dld.sl"
 
12120
    shlibpath_var=SHLIB_PATH
 
12121
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12122
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12123
    soname_spec='${libname}${release}${shared_ext}$major'
 
12124
    ;;
 
12125
  esac
 
12126
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12127
  postinstall_cmds='chmod 555 $lib'
 
12128
  ;;
 
12129
 
 
12130
irix5* | irix6* | nonstopux*)
 
12131
  case $host_os in
 
12132
    nonstopux*) version_type=nonstopux ;;
 
12133
    *)
 
12134
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12135
                version_type=linux
 
12136
        else
 
12137
                version_type=irix
 
12138
        fi ;;
 
12139
  esac
 
12140
  need_lib_prefix=no
 
12141
  need_version=no
 
12142
  soname_spec='${libname}${release}${shared_ext}$major'
 
12143
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12144
  case $host_os in
 
12145
  irix5* | nonstopux*)
 
12146
    libsuff= shlibsuff=
 
12147
    ;;
 
12148
  *)
 
12149
    case $LD in # libtool.m4 will add one of these switches to LD
 
12150
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12151
      libsuff= shlibsuff= libmagic=32-bit;;
 
12152
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12153
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12154
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12155
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12156
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12157
    esac
 
12158
    ;;
 
12159
  esac
 
12160
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12161
  shlibpath_overrides_runpath=no
 
12162
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12163
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12164
  hardcode_into_libs=yes
 
12165
  ;;
 
12166
 
 
12167
# No shared lib support for Linux oldld, aout, or coff.
 
12168
linux*oldld* | linux*aout* | linux*coff*)
 
12169
  dynamic_linker=no
 
12170
  ;;
 
12171
 
 
12172
# This must be Linux ELF.
 
12173
linux*)
 
12174
  version_type=linux
 
12175
  need_lib_prefix=no
 
12176
  need_version=no
 
12177
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12178
  soname_spec='${libname}${release}${shared_ext}$major'
 
12179
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12180
  shlibpath_var=LD_LIBRARY_PATH
 
12181
  shlibpath_overrides_runpath=no
 
12182
  # This implies no fast_install, which is unacceptable.
 
12183
  # Some rework will be needed to allow for fast_install
 
12184
  # before this can be enabled.
 
12185
  hardcode_into_libs=yes
 
12186
 
 
12187
  # Append ld.so.conf contents to the search path
 
12188
  if test -f /etc/ld.so.conf; then
 
12189
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
12190
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12191
  fi
 
12192
 
 
12193
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12194
  # powerpc, because MkLinux only supported shared libraries with the
 
12195
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12196
  # most powerpc-linux boxes support dynamic linking these days and
 
12197
  # people can always --disable-shared, the test was removed, and we
 
12198
  # assume the GNU/Linux dynamic linker is in use.
 
12199
  dynamic_linker='GNU/Linux ld.so'
 
12200
  ;;
 
12201
 
 
12202
netbsdelf*-gnu)
 
12203
  version_type=linux
 
12204
  need_lib_prefix=no
 
12205
  need_version=no
 
12206
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12207
  soname_spec='${libname}${release}${shared_ext}$major'
 
12208
  shlibpath_var=LD_LIBRARY_PATH
 
12209
  shlibpath_overrides_runpath=no
 
12210
  hardcode_into_libs=yes
 
12211
  dynamic_linker='NetBSD ld.elf_so'
 
12212
  ;;
 
12213
 
 
12214
knetbsd*-gnu)
 
12215
  version_type=linux
 
12216
  need_lib_prefix=no
 
12217
  need_version=no
 
12218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12219
  soname_spec='${libname}${release}${shared_ext}$major'
 
12220
  shlibpath_var=LD_LIBRARY_PATH
 
12221
  shlibpath_overrides_runpath=no
 
12222
  hardcode_into_libs=yes
 
12223
  dynamic_linker='GNU ld.so'
 
12224
  ;;
 
12225
 
 
12226
netbsd*)
 
12227
  version_type=sunos
 
12228
  need_lib_prefix=no
 
12229
  need_version=no
 
12230
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12231
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12232
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12233
    dynamic_linker='NetBSD (a.out) ld.so'
 
12234
  else
 
12235
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12236
    soname_spec='${libname}${release}${shared_ext}$major'
 
12237
    dynamic_linker='NetBSD ld.elf_so'
 
12238
  fi
 
12239
  shlibpath_var=LD_LIBRARY_PATH
 
12240
  shlibpath_overrides_runpath=yes
 
12241
  hardcode_into_libs=yes
 
12242
  ;;
 
12243
 
 
12244
newsos6)
 
12245
  version_type=linux
 
12246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12247
  shlibpath_var=LD_LIBRARY_PATH
 
12248
  shlibpath_overrides_runpath=yes
 
12249
  ;;
 
12250
 
 
12251
nto-qnx*)
 
12252
  version_type=linux
 
12253
  need_lib_prefix=no
 
12254
  need_version=no
 
12255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12256
  soname_spec='${libname}${release}${shared_ext}$major'
 
12257
  shlibpath_var=LD_LIBRARY_PATH
 
12258
  shlibpath_overrides_runpath=yes
 
12259
  ;;
 
12260
 
 
12261
openbsd*)
 
12262
  version_type=sunos
 
12263
  need_lib_prefix=no
 
12264
  need_version=yes
 
12265
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12266
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12267
  shlibpath_var=LD_LIBRARY_PATH
 
12268
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12269
    case $host_os in
 
12270
      openbsd2.[89] | openbsd2.[89].*)
 
12271
        shlibpath_overrides_runpath=no
 
12272
        ;;
 
12273
      *)
 
12274
        shlibpath_overrides_runpath=yes
 
12275
        ;;
 
12276
      esac
 
12277
  else
 
12278
    shlibpath_overrides_runpath=yes
 
12279
  fi
 
12280
  ;;
 
12281
 
 
12282
os2*)
 
12283
  libname_spec='$name'
 
12284
  shrext_cmds=".dll"
 
12285
  need_lib_prefix=no
 
12286
  library_names_spec='$libname${shared_ext} $libname.a'
 
12287
  dynamic_linker='OS/2 ld.exe'
 
12288
  shlibpath_var=LIBPATH
 
12289
  ;;
 
12290
 
 
12291
osf3* | osf4* | osf5*)
 
12292
  version_type=osf
 
12293
  need_lib_prefix=no
 
12294
  need_version=no
 
12295
  soname_spec='${libname}${release}${shared_ext}$major'
 
12296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12297
  shlibpath_var=LD_LIBRARY_PATH
 
12298
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12299
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12300
  ;;
 
12301
 
 
12302
sco3.2v5*)
 
12303
  version_type=osf
 
12304
  soname_spec='${libname}${release}${shared_ext}$major'
 
12305
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12306
  shlibpath_var=LD_LIBRARY_PATH
 
12307
  ;;
 
12308
 
 
12309
solaris*)
 
12310
  version_type=linux
 
12311
  need_lib_prefix=no
 
12312
  need_version=no
 
12313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12314
  soname_spec='${libname}${release}${shared_ext}$major'
 
12315
  shlibpath_var=LD_LIBRARY_PATH
 
12316
  shlibpath_overrides_runpath=yes
 
12317
  hardcode_into_libs=yes
 
12318
  # ldd complains unless libraries are executable
 
12319
  postinstall_cmds='chmod +x $lib'
 
12320
  ;;
 
12321
 
 
12322
sunos4*)
 
12323
  version_type=sunos
 
12324
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12325
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12326
  shlibpath_var=LD_LIBRARY_PATH
 
12327
  shlibpath_overrides_runpath=yes
 
12328
  if test "$with_gnu_ld" = yes; then
 
12329
    need_lib_prefix=no
 
12330
  fi
 
12331
  need_version=yes
 
12332
  ;;
 
12333
 
 
12334
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12335
  version_type=linux
 
12336
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12337
  soname_spec='${libname}${release}${shared_ext}$major'
 
12338
  shlibpath_var=LD_LIBRARY_PATH
 
12339
  case $host_vendor in
 
12340
    sni)
 
12341
      shlibpath_overrides_runpath=no
 
12342
      need_lib_prefix=no
 
12343
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12344
      runpath_var=LD_RUN_PATH
 
12345
      ;;
 
12346
    siemens)
 
12347
      need_lib_prefix=no
 
12348
      ;;
 
12349
    motorola)
 
12350
      need_lib_prefix=no
 
12351
      need_version=no
 
12352
      shlibpath_overrides_runpath=no
 
12353
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12354
      ;;
 
12355
  esac
 
12356
  ;;
 
12357
 
 
12358
sysv4*MP*)
 
12359
  if test -d /usr/nec ;then
 
12360
    version_type=linux
 
12361
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12362
    soname_spec='$libname${shared_ext}.$major'
 
12363
    shlibpath_var=LD_LIBRARY_PATH
 
12364
  fi
 
12365
  ;;
 
12366
 
 
12367
uts4*)
 
12368
  version_type=linux
 
12369
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12370
  soname_spec='${libname}${release}${shared_ext}$major'
 
12371
  shlibpath_var=LD_LIBRARY_PATH
 
12372
  ;;
 
12373
 
 
12374
*)
 
12375
  dynamic_linker=no
 
12376
  ;;
 
12377
esac
 
12378
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12379
echo "${ECHO_T}$dynamic_linker" >&6
 
12380
test "$dynamic_linker" = no && can_build_shared=no
 
12381
 
 
12382
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12383
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12384
hardcode_action_CXX=
 
12385
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12386
   test -n "$runpath_var CXX" || \
 
12387
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12388
 
 
12389
  # We can hardcode non-existant directories.
 
12390
  if test "$hardcode_direct_CXX" != no &&
 
12391
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12392
     # have to relink, otherwise we might link with an installed library
 
12393
     # when we should be linking with a yet-to-be-installed one
 
12394
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12395
     test "$hardcode_minus_L_CXX" != no; then
 
12396
    # Linking always hardcodes the temporary library directory.
 
12397
    hardcode_action_CXX=relink
 
12398
  else
 
12399
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12400
    hardcode_action_CXX=immediate
 
12401
  fi
 
12402
else
 
12403
  # We cannot hardcode anything, or else we can only hardcode existing
 
12404
  # directories.
 
12405
  hardcode_action_CXX=unsupported
 
12406
fi
 
12407
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12408
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12409
 
 
12410
if test "$hardcode_action_CXX" = relink; then
 
12411
  # Fast installation is not supported
 
12412
  enable_fast_install=no
 
12413
elif test "$shlibpath_overrides_runpath" = yes ||
 
12414
     test "$enable_shared" = no; then
 
12415
  # Fast installation is not necessary
 
12416
  enable_fast_install=needless
 
12417
fi
 
12418
 
 
12419
striplib=
 
12420
old_striplib=
 
12421
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12422
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12423
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12424
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12425
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12426
  echo "$as_me:$LINENO: result: yes" >&5
 
12427
echo "${ECHO_T}yes" >&6
 
12428
else
 
12429
# FIXME - insert some real tests, host_os isn't really good enough
 
12430
  case $host_os in
 
12431
   darwin*)
 
12432
       if test -n "$STRIP" ; then
 
12433
         striplib="$STRIP -x"
 
12434
         echo "$as_me:$LINENO: result: yes" >&5
 
12435
echo "${ECHO_T}yes" >&6
 
12436
       else
 
12437
  echo "$as_me:$LINENO: result: no" >&5
 
12438
echo "${ECHO_T}no" >&6
 
12439
fi
 
12440
       ;;
 
12441
   *)
 
12442
  echo "$as_me:$LINENO: result: no" >&5
 
12443
echo "${ECHO_T}no" >&6
 
12444
    ;;
 
12445
  esac
 
12446
fi
 
12447
 
 
12448
if test "x$enable_dlopen" != xyes; then
 
12449
  enable_dlopen=unknown
 
12450
  enable_dlopen_self=unknown
 
12451
  enable_dlopen_self_static=unknown
 
12452
else
 
12453
  lt_cv_dlopen=no
 
12454
  lt_cv_dlopen_libs=
 
12455
 
 
12456
  case $host_os in
 
12457
  beos*)
 
12458
    lt_cv_dlopen="load_add_on"
 
12459
    lt_cv_dlopen_libs=
 
12460
    lt_cv_dlopen_self=yes
 
12461
    ;;
 
12462
 
 
12463
  mingw* | pw32*)
 
12464
    lt_cv_dlopen="LoadLibrary"
 
12465
    lt_cv_dlopen_libs=
 
12466
   ;;
 
12467
 
 
12468
  cygwin*)
 
12469
    lt_cv_dlopen="dlopen"
 
12470
    lt_cv_dlopen_libs=
 
12471
   ;;
 
12472
 
 
12473
  darwin*)
 
12474
  # if libdl is installed we need to link against it
 
12475
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12476
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12477
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12478
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12479
else
 
12480
  ac_check_lib_save_LIBS=$LIBS
 
12481
LIBS="-ldl  $LIBS"
 
12482
cat >conftest.$ac_ext <<_ACEOF
 
12483
/* confdefs.h.  */
 
12484
_ACEOF
 
12485
cat confdefs.h >>conftest.$ac_ext
 
12486
cat >>conftest.$ac_ext <<_ACEOF
 
12487
/* end confdefs.h.  */
 
12488
 
 
12489
/* Override any gcc2 internal prototype to avoid an error.  */
 
12490
#ifdef __cplusplus
 
12491
extern "C"
 
12492
#endif
 
12493
/* We use char because int might match the return type of a gcc2
 
12494
   builtin and then its argument prototype would still apply.  */
 
12495
char dlopen ();
 
12496
int
 
12497
main ()
 
12498
{
 
12499
dlopen ();
 
12500
  ;
 
12501
  return 0;
 
12502
}
 
12503
_ACEOF
 
12504
rm -f conftest.$ac_objext conftest$ac_exeext
 
12505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12506
  (eval $ac_link) 2>conftest.er1
 
12507
  ac_status=$?
 
12508
  grep -v '^ *+' conftest.er1 >conftest.err
 
12509
  rm -f conftest.er1
 
12510
  cat conftest.err >&5
 
12511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12512
  (exit $ac_status); } &&
 
12513
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12515
  (eval $ac_try) 2>&5
 
12516
  ac_status=$?
 
12517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12518
  (exit $ac_status); }; } &&
 
12519
         { ac_try='test -s conftest$ac_exeext'
 
12520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12521
  (eval $ac_try) 2>&5
 
12522
  ac_status=$?
 
12523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12524
  (exit $ac_status); }; }; then
 
12525
  ac_cv_lib_dl_dlopen=yes
 
12526
else
 
12527
  echo "$as_me: failed program was:" >&5
 
12528
sed 's/^/| /' conftest.$ac_ext >&5
 
12529
 
 
12530
ac_cv_lib_dl_dlopen=no
 
12531
fi
 
12532
rm -f conftest.err conftest.$ac_objext \
 
12533
      conftest$ac_exeext conftest.$ac_ext
 
12534
LIBS=$ac_check_lib_save_LIBS
 
12535
fi
 
12536
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12537
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12538
if test $ac_cv_lib_dl_dlopen = yes; then
 
12539
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12540
else
 
12541
 
 
12542
    lt_cv_dlopen="dyld"
 
12543
    lt_cv_dlopen_libs=
 
12544
    lt_cv_dlopen_self=yes
 
12545
 
 
12546
fi
 
12547
 
 
12548
   ;;
 
12549
 
 
12550
  *)
 
12551
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12552
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12553
if test "${ac_cv_func_shl_load+set}" = set; then
 
12554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12555
else
 
12556
  cat >conftest.$ac_ext <<_ACEOF
 
12557
/* confdefs.h.  */
 
12558
_ACEOF
 
12559
cat confdefs.h >>conftest.$ac_ext
 
12560
cat >>conftest.$ac_ext <<_ACEOF
 
12561
/* end confdefs.h.  */
 
12562
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12563
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12564
#define shl_load innocuous_shl_load
 
12565
 
 
12566
/* System header to define __stub macros and hopefully few prototypes,
 
12567
    which can conflict with char shl_load (); below.
 
12568
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12569
    <limits.h> exists even on freestanding compilers.  */
 
12570
 
 
12571
#ifdef __STDC__
 
12572
# include <limits.h>
 
12573
#else
 
12574
# include <assert.h>
 
12575
#endif
 
12576
 
 
12577
#undef shl_load
 
12578
 
 
12579
/* Override any gcc2 internal prototype to avoid an error.  */
 
12580
#ifdef __cplusplus
 
12581
extern "C"
 
12582
{
 
12583
#endif
 
12584
/* We use char because int might match the return type of a gcc2
 
12585
   builtin and then its argument prototype would still apply.  */
 
12586
char shl_load ();
 
12587
/* The GNU C library defines this for functions which it implements
 
12588
    to always fail with ENOSYS.  Some functions are actually named
 
12589
    something starting with __ and the normal name is an alias.  */
 
12590
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12591
choke me
 
12592
#else
 
12593
char (*f) () = shl_load;
 
12594
#endif
 
12595
#ifdef __cplusplus
 
12596
}
 
12597
#endif
 
12598
 
 
12599
int
 
12600
main ()
 
12601
{
 
12602
return f != shl_load;
 
12603
  ;
 
12604
  return 0;
 
12605
}
 
12606
_ACEOF
 
12607
rm -f conftest.$ac_objext conftest$ac_exeext
 
12608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12609
  (eval $ac_link) 2>conftest.er1
 
12610
  ac_status=$?
 
12611
  grep -v '^ *+' conftest.er1 >conftest.err
 
12612
  rm -f conftest.er1
 
12613
  cat conftest.err >&5
 
12614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12615
  (exit $ac_status); } &&
 
12616
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12618
  (eval $ac_try) 2>&5
 
12619
  ac_status=$?
 
12620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12621
  (exit $ac_status); }; } &&
 
12622
         { ac_try='test -s conftest$ac_exeext'
 
12623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12624
  (eval $ac_try) 2>&5
 
12625
  ac_status=$?
 
12626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12627
  (exit $ac_status); }; }; then
 
12628
  ac_cv_func_shl_load=yes
 
12629
else
 
12630
  echo "$as_me: failed program was:" >&5
 
12631
sed 's/^/| /' conftest.$ac_ext >&5
 
12632
 
 
12633
ac_cv_func_shl_load=no
 
12634
fi
 
12635
rm -f conftest.err conftest.$ac_objext \
 
12636
      conftest$ac_exeext conftest.$ac_ext
 
12637
fi
 
12638
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12639
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12640
if test $ac_cv_func_shl_load = yes; then
 
12641
  lt_cv_dlopen="shl_load"
 
12642
else
 
12643
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12644
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12645
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12647
else
 
12648
  ac_check_lib_save_LIBS=$LIBS
 
12649
LIBS="-ldld  $LIBS"
 
12650
cat >conftest.$ac_ext <<_ACEOF
 
12651
/* confdefs.h.  */
 
12652
_ACEOF
 
12653
cat confdefs.h >>conftest.$ac_ext
 
12654
cat >>conftest.$ac_ext <<_ACEOF
 
12655
/* end confdefs.h.  */
 
12656
 
 
12657
/* Override any gcc2 internal prototype to avoid an error.  */
 
12658
#ifdef __cplusplus
 
12659
extern "C"
 
12660
#endif
 
12661
/* We use char because int might match the return type of a gcc2
 
12662
   builtin and then its argument prototype would still apply.  */
 
12663
char shl_load ();
 
12664
int
 
12665
main ()
 
12666
{
 
12667
shl_load ();
 
12668
  ;
 
12669
  return 0;
 
12670
}
 
12671
_ACEOF
 
12672
rm -f conftest.$ac_objext conftest$ac_exeext
 
12673
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12674
  (eval $ac_link) 2>conftest.er1
 
12675
  ac_status=$?
 
12676
  grep -v '^ *+' conftest.er1 >conftest.err
 
12677
  rm -f conftest.er1
 
12678
  cat conftest.err >&5
 
12679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12680
  (exit $ac_status); } &&
 
12681
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12682
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12683
  (eval $ac_try) 2>&5
 
12684
  ac_status=$?
 
12685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12686
  (exit $ac_status); }; } &&
 
12687
         { ac_try='test -s conftest$ac_exeext'
 
12688
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12689
  (eval $ac_try) 2>&5
 
12690
  ac_status=$?
 
12691
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12692
  (exit $ac_status); }; }; then
 
12693
  ac_cv_lib_dld_shl_load=yes
 
12694
else
 
12695
  echo "$as_me: failed program was:" >&5
 
12696
sed 's/^/| /' conftest.$ac_ext >&5
 
12697
 
 
12698
ac_cv_lib_dld_shl_load=no
 
12699
fi
 
12700
rm -f conftest.err conftest.$ac_objext \
 
12701
      conftest$ac_exeext conftest.$ac_ext
 
12702
LIBS=$ac_check_lib_save_LIBS
 
12703
fi
 
12704
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12705
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12706
if test $ac_cv_lib_dld_shl_load = yes; then
 
12707
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12708
else
 
12709
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12710
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12711
if test "${ac_cv_func_dlopen+set}" = set; then
 
12712
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12713
else
 
12714
  cat >conftest.$ac_ext <<_ACEOF
 
12715
/* confdefs.h.  */
 
12716
_ACEOF
 
12717
cat confdefs.h >>conftest.$ac_ext
 
12718
cat >>conftest.$ac_ext <<_ACEOF
 
12719
/* end confdefs.h.  */
 
12720
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12721
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12722
#define dlopen innocuous_dlopen
 
12723
 
 
12724
/* System header to define __stub macros and hopefully few prototypes,
 
12725
    which can conflict with char dlopen (); below.
 
12726
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12727
    <limits.h> exists even on freestanding compilers.  */
 
12728
 
 
12729
#ifdef __STDC__
 
12730
# include <limits.h>
 
12731
#else
 
12732
# include <assert.h>
 
12733
#endif
 
12734
 
 
12735
#undef dlopen
 
12736
 
 
12737
/* Override any gcc2 internal prototype to avoid an error.  */
 
12738
#ifdef __cplusplus
 
12739
extern "C"
 
12740
{
 
12741
#endif
 
12742
/* We use char because int might match the return type of a gcc2
 
12743
   builtin and then its argument prototype would still apply.  */
 
12744
char dlopen ();
 
12745
/* The GNU C library defines this for functions which it implements
 
12746
    to always fail with ENOSYS.  Some functions are actually named
 
12747
    something starting with __ and the normal name is an alias.  */
 
12748
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12749
choke me
 
12750
#else
 
12751
char (*f) () = dlopen;
 
12752
#endif
 
12753
#ifdef __cplusplus
 
12754
}
 
12755
#endif
 
12756
 
 
12757
int
 
12758
main ()
 
12759
{
 
12760
return f != dlopen;
 
12761
  ;
 
12762
  return 0;
 
12763
}
 
12764
_ACEOF
 
12765
rm -f conftest.$ac_objext conftest$ac_exeext
 
12766
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12767
  (eval $ac_link) 2>conftest.er1
 
12768
  ac_status=$?
 
12769
  grep -v '^ *+' conftest.er1 >conftest.err
 
12770
  rm -f conftest.er1
 
12771
  cat conftest.err >&5
 
12772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12773
  (exit $ac_status); } &&
 
12774
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12776
  (eval $ac_try) 2>&5
 
12777
  ac_status=$?
 
12778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12779
  (exit $ac_status); }; } &&
 
12780
         { ac_try='test -s conftest$ac_exeext'
 
12781
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12782
  (eval $ac_try) 2>&5
 
12783
  ac_status=$?
 
12784
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12785
  (exit $ac_status); }; }; then
 
12786
  ac_cv_func_dlopen=yes
 
12787
else
 
12788
  echo "$as_me: failed program was:" >&5
 
12789
sed 's/^/| /' conftest.$ac_ext >&5
 
12790
 
 
12791
ac_cv_func_dlopen=no
 
12792
fi
 
12793
rm -f conftest.err conftest.$ac_objext \
 
12794
      conftest$ac_exeext conftest.$ac_ext
 
12795
fi
 
12796
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12797
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12798
if test $ac_cv_func_dlopen = yes; then
 
12799
  lt_cv_dlopen="dlopen"
 
12800
else
 
12801
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12802
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12803
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12804
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12805
else
 
12806
  ac_check_lib_save_LIBS=$LIBS
 
12807
LIBS="-ldl  $LIBS"
 
12808
cat >conftest.$ac_ext <<_ACEOF
 
12809
/* confdefs.h.  */
 
12810
_ACEOF
 
12811
cat confdefs.h >>conftest.$ac_ext
 
12812
cat >>conftest.$ac_ext <<_ACEOF
 
12813
/* end confdefs.h.  */
 
12814
 
 
12815
/* Override any gcc2 internal prototype to avoid an error.  */
 
12816
#ifdef __cplusplus
 
12817
extern "C"
 
12818
#endif
 
12819
/* We use char because int might match the return type of a gcc2
 
12820
   builtin and then its argument prototype would still apply.  */
 
12821
char dlopen ();
 
12822
int
 
12823
main ()
 
12824
{
 
12825
dlopen ();
 
12826
  ;
 
12827
  return 0;
 
12828
}
 
12829
_ACEOF
 
12830
rm -f conftest.$ac_objext conftest$ac_exeext
 
12831
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12832
  (eval $ac_link) 2>conftest.er1
 
12833
  ac_status=$?
 
12834
  grep -v '^ *+' conftest.er1 >conftest.err
 
12835
  rm -f conftest.er1
 
12836
  cat conftest.err >&5
 
12837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12838
  (exit $ac_status); } &&
 
12839
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12841
  (eval $ac_try) 2>&5
 
12842
  ac_status=$?
 
12843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12844
  (exit $ac_status); }; } &&
 
12845
         { ac_try='test -s conftest$ac_exeext'
 
12846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12847
  (eval $ac_try) 2>&5
 
12848
  ac_status=$?
 
12849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12850
  (exit $ac_status); }; }; then
 
12851
  ac_cv_lib_dl_dlopen=yes
 
12852
else
 
12853
  echo "$as_me: failed program was:" >&5
 
12854
sed 's/^/| /' conftest.$ac_ext >&5
 
12855
 
 
12856
ac_cv_lib_dl_dlopen=no
 
12857
fi
 
12858
rm -f conftest.err conftest.$ac_objext \
 
12859
      conftest$ac_exeext conftest.$ac_ext
 
12860
LIBS=$ac_check_lib_save_LIBS
 
12861
fi
 
12862
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12863
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12864
if test $ac_cv_lib_dl_dlopen = yes; then
 
12865
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12866
else
 
12867
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12868
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12869
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12870
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12871
else
 
12872
  ac_check_lib_save_LIBS=$LIBS
 
12873
LIBS="-lsvld  $LIBS"
 
12874
cat >conftest.$ac_ext <<_ACEOF
 
12875
/* confdefs.h.  */
 
12876
_ACEOF
 
12877
cat confdefs.h >>conftest.$ac_ext
 
12878
cat >>conftest.$ac_ext <<_ACEOF
 
12879
/* end confdefs.h.  */
 
12880
 
 
12881
/* Override any gcc2 internal prototype to avoid an error.  */
 
12882
#ifdef __cplusplus
 
12883
extern "C"
 
12884
#endif
 
12885
/* We use char because int might match the return type of a gcc2
 
12886
   builtin and then its argument prototype would still apply.  */
 
12887
char dlopen ();
 
12888
int
 
12889
main ()
 
12890
{
 
12891
dlopen ();
 
12892
  ;
 
12893
  return 0;
 
12894
}
 
12895
_ACEOF
 
12896
rm -f conftest.$ac_objext conftest$ac_exeext
 
12897
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12898
  (eval $ac_link) 2>conftest.er1
 
12899
  ac_status=$?
 
12900
  grep -v '^ *+' conftest.er1 >conftest.err
 
12901
  rm -f conftest.er1
 
12902
  cat conftest.err >&5
 
12903
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12904
  (exit $ac_status); } &&
 
12905
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12907
  (eval $ac_try) 2>&5
 
12908
  ac_status=$?
 
12909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12910
  (exit $ac_status); }; } &&
 
12911
         { ac_try='test -s conftest$ac_exeext'
 
12912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12913
  (eval $ac_try) 2>&5
 
12914
  ac_status=$?
 
12915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12916
  (exit $ac_status); }; }; then
 
12917
  ac_cv_lib_svld_dlopen=yes
 
12918
else
 
12919
  echo "$as_me: failed program was:" >&5
 
12920
sed 's/^/| /' conftest.$ac_ext >&5
 
12921
 
 
12922
ac_cv_lib_svld_dlopen=no
 
12923
fi
 
12924
rm -f conftest.err conftest.$ac_objext \
 
12925
      conftest$ac_exeext conftest.$ac_ext
 
12926
LIBS=$ac_check_lib_save_LIBS
 
12927
fi
 
12928
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12929
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12930
if test $ac_cv_lib_svld_dlopen = yes; then
 
12931
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12932
else
 
12933
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12934
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12935
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12936
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12937
else
 
12938
  ac_check_lib_save_LIBS=$LIBS
 
12939
LIBS="-ldld  $LIBS"
 
12940
cat >conftest.$ac_ext <<_ACEOF
 
12941
/* confdefs.h.  */
 
12942
_ACEOF
 
12943
cat confdefs.h >>conftest.$ac_ext
 
12944
cat >>conftest.$ac_ext <<_ACEOF
 
12945
/* end confdefs.h.  */
 
12946
 
 
12947
/* Override any gcc2 internal prototype to avoid an error.  */
 
12948
#ifdef __cplusplus
 
12949
extern "C"
 
12950
#endif
 
12951
/* We use char because int might match the return type of a gcc2
 
12952
   builtin and then its argument prototype would still apply.  */
 
12953
char dld_link ();
 
12954
int
 
12955
main ()
 
12956
{
 
12957
dld_link ();
 
12958
  ;
 
12959
  return 0;
 
12960
}
 
12961
_ACEOF
 
12962
rm -f conftest.$ac_objext conftest$ac_exeext
 
12963
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12964
  (eval $ac_link) 2>conftest.er1
 
12965
  ac_status=$?
 
12966
  grep -v '^ *+' conftest.er1 >conftest.err
 
12967
  rm -f conftest.er1
 
12968
  cat conftest.err >&5
 
12969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12970
  (exit $ac_status); } &&
 
12971
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12972
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12973
  (eval $ac_try) 2>&5
 
12974
  ac_status=$?
 
12975
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12976
  (exit $ac_status); }; } &&
 
12977
         { ac_try='test -s conftest$ac_exeext'
 
12978
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12979
  (eval $ac_try) 2>&5
 
12980
  ac_status=$?
 
12981
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12982
  (exit $ac_status); }; }; then
 
12983
  ac_cv_lib_dld_dld_link=yes
 
12984
else
 
12985
  echo "$as_me: failed program was:" >&5
 
12986
sed 's/^/| /' conftest.$ac_ext >&5
 
12987
 
 
12988
ac_cv_lib_dld_dld_link=no
 
12989
fi
 
12990
rm -f conftest.err conftest.$ac_objext \
 
12991
      conftest$ac_exeext conftest.$ac_ext
 
12992
LIBS=$ac_check_lib_save_LIBS
 
12993
fi
 
12994
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12995
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12996
if test $ac_cv_lib_dld_dld_link = yes; then
 
12997
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12998
fi
 
12999
 
 
13000
 
 
13001
fi
 
13002
 
 
13003
 
 
13004
fi
 
13005
 
 
13006
 
 
13007
fi
 
13008
 
 
13009
 
 
13010
fi
 
13011
 
 
13012
 
 
13013
fi
 
13014
 
 
13015
    ;;
 
13016
  esac
 
13017
 
 
13018
  if test "x$lt_cv_dlopen" != xno; then
 
13019
    enable_dlopen=yes
 
13020
  else
 
13021
    enable_dlopen=no
 
13022
  fi
 
13023
 
 
13024
  case $lt_cv_dlopen in
 
13025
  dlopen)
 
13026
    save_CPPFLAGS="$CPPFLAGS"
 
13027
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13028
 
 
13029
    save_LDFLAGS="$LDFLAGS"
 
13030
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13031
 
 
13032
    save_LIBS="$LIBS"
 
13033
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13034
 
 
13035
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13036
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13037
if test "${lt_cv_dlopen_self+set}" = set; then
 
13038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13039
else
 
13040
          if test "$cross_compiling" = yes; then :
 
13041
  lt_cv_dlopen_self=cross
 
13042
else
 
13043
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13044
  lt_status=$lt_dlunknown
 
13045
  cat > conftest.$ac_ext <<EOF
 
13046
#line 13046 "configure"
 
13047
#include "confdefs.h"
 
13048
 
 
13049
#if HAVE_DLFCN_H
 
13050
#include <dlfcn.h>
 
13051
#endif
 
13052
 
 
13053
#include <stdio.h>
 
13054
 
 
13055
#ifdef RTLD_GLOBAL
 
13056
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13057
#else
 
13058
#  ifdef DL_GLOBAL
 
13059
#    define LT_DLGLOBAL         DL_GLOBAL
 
13060
#  else
 
13061
#    define LT_DLGLOBAL         0
 
13062
#  endif
 
13063
#endif
 
13064
 
 
13065
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13066
   find out it does not work in some platform. */
 
13067
#ifndef LT_DLLAZY_OR_NOW
 
13068
#  ifdef RTLD_LAZY
 
13069
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13070
#  else
 
13071
#    ifdef DL_LAZY
 
13072
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13073
#    else
 
13074
#      ifdef RTLD_NOW
 
13075
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13076
#      else
 
13077
#        ifdef DL_NOW
 
13078
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13079
#        else
 
13080
#          define LT_DLLAZY_OR_NOW      0
 
13081
#        endif
 
13082
#      endif
 
13083
#    endif
 
13084
#  endif
 
13085
#endif
 
13086
 
 
13087
#ifdef __cplusplus
 
13088
extern "C" void exit (int);
 
13089
#endif
 
13090
 
 
13091
void fnord() { int i=42;}
 
13092
int main ()
 
13093
{
 
13094
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13095
  int status = $lt_dlunknown;
 
13096
 
 
13097
  if (self)
 
13098
    {
 
13099
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13100
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13101
      /* dlclose (self); */
 
13102
    }
 
13103
 
 
13104
    exit (status);
 
13105
}
 
13106
EOF
 
13107
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13108
  (eval $ac_link) 2>&5
 
13109
  ac_status=$?
 
13110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13111
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13112
    (./conftest; exit; ) 2>/dev/null
 
13113
    lt_status=$?
 
13114
    case x$lt_status in
 
13115
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13116
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13117
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13118
    esac
 
13119
  else :
 
13120
    # compilation failed
 
13121
    lt_cv_dlopen_self=no
 
13122
  fi
 
13123
fi
 
13124
rm -fr conftest*
 
13125
 
 
13126
 
 
13127
fi
 
13128
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13129
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13130
 
 
13131
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13132
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13133
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13134
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13135
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13136
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13137
else
 
13138
          if test "$cross_compiling" = yes; then :
 
13139
  lt_cv_dlopen_self_static=cross
 
13140
else
 
13141
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13142
  lt_status=$lt_dlunknown
 
13143
  cat > conftest.$ac_ext <<EOF
 
13144
#line 13144 "configure"
 
13145
#include "confdefs.h"
 
13146
 
 
13147
#if HAVE_DLFCN_H
 
13148
#include <dlfcn.h>
 
13149
#endif
 
13150
 
 
13151
#include <stdio.h>
 
13152
 
 
13153
#ifdef RTLD_GLOBAL
 
13154
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13155
#else
 
13156
#  ifdef DL_GLOBAL
 
13157
#    define LT_DLGLOBAL         DL_GLOBAL
 
13158
#  else
 
13159
#    define LT_DLGLOBAL         0
 
13160
#  endif
 
13161
#endif
 
13162
 
 
13163
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13164
   find out it does not work in some platform. */
 
13165
#ifndef LT_DLLAZY_OR_NOW
 
13166
#  ifdef RTLD_LAZY
 
13167
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13168
#  else
 
13169
#    ifdef DL_LAZY
 
13170
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13171
#    else
 
13172
#      ifdef RTLD_NOW
 
13173
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13174
#      else
 
13175
#        ifdef DL_NOW
 
13176
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13177
#        else
 
13178
#          define LT_DLLAZY_OR_NOW      0
 
13179
#        endif
 
13180
#      endif
 
13181
#    endif
 
13182
#  endif
 
13183
#endif
 
13184
 
 
13185
#ifdef __cplusplus
 
13186
extern "C" void exit (int);
 
13187
#endif
 
13188
 
 
13189
void fnord() { int i=42;}
 
13190
int main ()
 
13191
{
 
13192
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13193
  int status = $lt_dlunknown;
 
13194
 
 
13195
  if (self)
 
13196
    {
 
13197
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13198
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13199
      /* dlclose (self); */
 
13200
    }
 
13201
 
 
13202
    exit (status);
 
13203
}
 
13204
EOF
 
13205
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13206
  (eval $ac_link) 2>&5
 
13207
  ac_status=$?
 
13208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13209
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13210
    (./conftest; exit; ) 2>/dev/null
 
13211
    lt_status=$?
 
13212
    case x$lt_status in
 
13213
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13214
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13215
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13216
    esac
 
13217
  else :
 
13218
    # compilation failed
 
13219
    lt_cv_dlopen_self_static=no
 
13220
  fi
 
13221
fi
 
13222
rm -fr conftest*
 
13223
 
 
13224
 
 
13225
fi
 
13226
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13227
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13228
    fi
 
13229
 
 
13230
    CPPFLAGS="$save_CPPFLAGS"
 
13231
    LDFLAGS="$save_LDFLAGS"
 
13232
    LIBS="$save_LIBS"
 
13233
    ;;
 
13234
  esac
 
13235
 
 
13236
  case $lt_cv_dlopen_self in
 
13237
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13238
  *) enable_dlopen_self=unknown ;;
 
13239
  esac
 
13240
 
 
13241
  case $lt_cv_dlopen_self_static in
 
13242
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13243
  *) enable_dlopen_self_static=unknown ;;
 
13244
  esac
 
13245
fi
 
13246
 
 
13247
 
 
13248
# The else clause should only fire when bootstrapping the
 
13249
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13250
# with your package, and you will get complaints that there are
 
13251
# no rules to generate ltmain.sh.
 
13252
if test -f "$ltmain"; then
 
13253
  # See if we are running on zsh, and set the options which allow our commands through
 
13254
  # without removal of \ escapes.
 
13255
  if test -n "${ZSH_VERSION+set}" ; then
 
13256
    setopt NO_GLOB_SUBST
 
13257
  fi
 
13258
  # Now quote all the things that may contain metacharacters while being
 
13259
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13260
  # variables and quote the copies for generation of the libtool script.
 
13261
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13262
    SED SHELL STRIP \
 
13263
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13264
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13265
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13266
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13267
    lt_cv_sys_global_symbol_to_c_name_address \
 
13268
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13269
    old_postinstall_cmds old_postuninstall_cmds \
 
13270
    compiler_CXX \
 
13271
    CC_CXX \
 
13272
    LD_CXX \
 
13273
    lt_prog_compiler_wl_CXX \
 
13274
    lt_prog_compiler_pic_CXX \
 
13275
    lt_prog_compiler_static_CXX \
 
13276
    lt_prog_compiler_no_builtin_flag_CXX \
 
13277
    export_dynamic_flag_spec_CXX \
 
13278
    thread_safe_flag_spec_CXX \
 
13279
    whole_archive_flag_spec_CXX \
 
13280
    enable_shared_with_static_runtimes_CXX \
 
13281
    old_archive_cmds_CXX \
 
13282
    old_archive_from_new_cmds_CXX \
 
13283
    predep_objects_CXX \
 
13284
    postdep_objects_CXX \
 
13285
    predeps_CXX \
 
13286
    postdeps_CXX \
 
13287
    compiler_lib_search_path_CXX \
 
13288
    archive_cmds_CXX \
 
13289
    archive_expsym_cmds_CXX \
 
13290
    postinstall_cmds_CXX \
 
13291
    postuninstall_cmds_CXX \
 
13292
    old_archive_from_expsyms_cmds_CXX \
 
13293
    allow_undefined_flag_CXX \
 
13294
    no_undefined_flag_CXX \
 
13295
    export_symbols_cmds_CXX \
 
13296
    hardcode_libdir_flag_spec_CXX \
 
13297
    hardcode_libdir_flag_spec_ld_CXX \
 
13298
    hardcode_libdir_separator_CXX \
 
13299
    hardcode_automatic_CXX \
 
13300
    module_cmds_CXX \
 
13301
    module_expsym_cmds_CXX \
 
13302
    lt_cv_prog_compiler_c_o_CXX \
 
13303
    exclude_expsyms_CXX \
 
13304
    include_expsyms_CXX; do
 
13305
 
 
13306
    case $var in
 
13307
    old_archive_cmds_CXX | \
 
13308
    old_archive_from_new_cmds_CXX | \
 
13309
    archive_cmds_CXX | \
 
13310
    archive_expsym_cmds_CXX | \
 
13311
    module_cmds_CXX | \
 
13312
    module_expsym_cmds_CXX | \
 
13313
    old_archive_from_expsyms_cmds_CXX | \
 
13314
    export_symbols_cmds_CXX | \
 
13315
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13316
    postinstall_cmds | postuninstall_cmds | \
 
13317
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13318
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13319
      # Double-quote double-evaled strings.
 
13320
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13321
      ;;
 
13322
    *)
 
13323
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13324
      ;;
 
13325
    esac
 
13326
  done
 
13327
 
 
13328
  case $lt_echo in
 
13329
  *'\$0 --fallback-echo"')
 
13330
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13331
    ;;
 
13332
  esac
 
13333
 
 
13334
cfgfile="$ofile"
 
13335
 
 
13336
  cat <<__EOF__ >> "$cfgfile"
 
13337
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13338
 
 
13339
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13340
 
 
13341
# Shell to use when invoking shell scripts.
 
13342
SHELL=$lt_SHELL
 
13343
 
 
13344
# Whether or not to build shared libraries.
 
13345
build_libtool_libs=$enable_shared
 
13346
 
 
13347
# Whether or not to build static libraries.
 
13348
build_old_libs=$enable_static
 
13349
 
 
13350
# Whether or not to add -lc for building shared libraries.
 
13351
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13352
 
 
13353
# Whether or not to disallow shared libs when runtime libs are static
 
13354
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13355
 
 
13356
# Whether or not to optimize for fast installation.
 
13357
fast_install=$enable_fast_install
 
13358
 
 
13359
# The host system.
 
13360
host_alias=$host_alias
 
13361
host=$host
 
13362
 
 
13363
# An echo program that does not interpret backslashes.
 
13364
echo=$lt_echo
 
13365
 
 
13366
# The archiver.
 
13367
AR=$lt_AR
 
13368
AR_FLAGS=$lt_AR_FLAGS
 
13369
 
 
13370
# A C compiler.
 
13371
LTCC=$lt_LTCC
 
13372
 
 
13373
# A language-specific compiler.
 
13374
CC=$lt_compiler_CXX
 
13375
 
 
13376
# Is the compiler the GNU C compiler?
 
13377
with_gcc=$GCC_CXX
 
13378
 
 
13379
# An ERE matcher.
 
13380
EGREP=$lt_EGREP
 
13381
 
 
13382
# The linker used to build libraries.
 
13383
LD=$lt_LD_CXX
 
13384
 
 
13385
# Whether we need hard or soft links.
 
13386
LN_S=$lt_LN_S
 
13387
 
 
13388
# A BSD-compatible nm program.
 
13389
NM=$lt_NM
 
13390
 
 
13391
# A symbol stripping program
 
13392
STRIP=$lt_STRIP
 
13393
 
 
13394
# Used to examine libraries when file_magic_cmd begins "file"
 
13395
MAGIC_CMD=$MAGIC_CMD
 
13396
 
 
13397
# Used on cygwin: DLL creation program.
 
13398
DLLTOOL="$DLLTOOL"
 
13399
 
 
13400
# Used on cygwin: object dumper.
 
13401
OBJDUMP="$OBJDUMP"
 
13402
 
 
13403
# Used on cygwin: assembler.
 
13404
AS="$AS"
 
13405
 
 
13406
# The name of the directory that contains temporary libtool files.
 
13407
objdir=$objdir
 
13408
 
 
13409
# How to create reloadable object files.
 
13410
reload_flag=$lt_reload_flag
 
13411
reload_cmds=$lt_reload_cmds
 
13412
 
 
13413
# How to pass a linker flag through the compiler.
 
13414
wl=$lt_lt_prog_compiler_wl_CXX
 
13415
 
 
13416
# Object file suffix (normally "o").
 
13417
objext="$ac_objext"
 
13418
 
 
13419
# Old archive suffix (normally "a").
 
13420
libext="$libext"
 
13421
 
 
13422
# Shared library suffix (normally ".so").
 
13423
shrext_cmds='$shrext_cmds'
 
13424
 
 
13425
# Executable file suffix (normally "").
 
13426
exeext="$exeext"
 
13427
 
 
13428
# Additional compiler flags for building library objects.
 
13429
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13430
pic_mode=$pic_mode
 
13431
 
 
13432
# What is the maximum length of a command?
 
13433
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13434
 
 
13435
# Does compiler simultaneously support -c and -o options?
 
13436
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13437
 
 
13438
# Must we lock files when doing compilation ?
 
13439
need_locks=$lt_need_locks
 
13440
 
 
13441
# Do we need the lib prefix for modules?
 
13442
need_lib_prefix=$need_lib_prefix
 
13443
 
 
13444
# Do we need a version for libraries?
 
13445
need_version=$need_version
 
13446
 
 
13447
# Whether dlopen is supported.
 
13448
dlopen_support=$enable_dlopen
 
13449
 
 
13450
# Whether dlopen of programs is supported.
 
13451
dlopen_self=$enable_dlopen_self
 
13452
 
 
13453
# Whether dlopen of statically linked programs is supported.
 
13454
dlopen_self_static=$enable_dlopen_self_static
 
13455
 
 
13456
# Compiler flag to prevent dynamic linking.
 
13457
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13458
 
 
13459
# Compiler flag to turn off builtin functions.
 
13460
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13461
 
 
13462
# Compiler flag to allow reflexive dlopens.
 
13463
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13464
 
 
13465
# Compiler flag to generate shared objects directly from archives.
 
13466
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13467
 
 
13468
# Compiler flag to generate thread-safe objects.
 
13469
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13470
 
 
13471
# Library versioning type.
 
13472
version_type=$version_type
 
13473
 
 
13474
# Format of library name prefix.
 
13475
libname_spec=$lt_libname_spec
 
13476
 
 
13477
# List of archive names.  First name is the real one, the rest are links.
 
13478
# The last name is the one that the linker finds with -lNAME.
 
13479
library_names_spec=$lt_library_names_spec
 
13480
 
 
13481
# The coded name of the library, if different from the real name.
 
13482
soname_spec=$lt_soname_spec
 
13483
 
 
13484
# Commands used to build and install an old-style archive.
 
13485
RANLIB=$lt_RANLIB
 
13486
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13487
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13488
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13489
 
 
13490
# Create an old-style archive from a shared archive.
 
13491
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13492
 
 
13493
# Create a temporary old-style archive to link instead of a shared archive.
 
13494
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13495
 
 
13496
# Commands used to build and install a shared archive.
 
13497
archive_cmds=$lt_archive_cmds_CXX
 
13498
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13499
postinstall_cmds=$lt_postinstall_cmds
 
13500
postuninstall_cmds=$lt_postuninstall_cmds
 
13501
 
 
13502
# Commands used to build a loadable module (assumed same as above if empty)
 
13503
module_cmds=$lt_module_cmds_CXX
 
13504
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13505
 
 
13506
# Commands to strip libraries.
 
13507
old_striplib=$lt_old_striplib
 
13508
striplib=$lt_striplib
 
13509
 
 
13510
# Dependencies to place before the objects being linked to create a
 
13511
# shared library.
 
13512
predep_objects=$lt_predep_objects_CXX
 
13513
 
 
13514
# Dependencies to place after the objects being linked to create a
 
13515
# shared library.
 
13516
postdep_objects=$lt_postdep_objects_CXX
 
13517
 
 
13518
# Dependencies to place before the objects being linked to create a
 
13519
# shared library.
 
13520
predeps=$lt_predeps_CXX
 
13521
 
 
13522
# Dependencies to place after the objects being linked to create a
 
13523
# shared library.
 
13524
postdeps=$lt_postdeps_CXX
 
13525
 
 
13526
# The library search path used internally by the compiler when linking
 
13527
# a shared library.
 
13528
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13529
 
 
13530
# Method to check whether dependent libraries are shared objects.
 
13531
deplibs_check_method=$lt_deplibs_check_method
 
13532
 
 
13533
# Command to use when deplibs_check_method == file_magic.
 
13534
file_magic_cmd=$lt_file_magic_cmd
 
13535
 
 
13536
# Flag that allows shared libraries with undefined symbols to be built.
 
13537
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13538
 
 
13539
# Flag that forces no undefined symbols.
 
13540
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13541
 
 
13542
# Commands used to finish a libtool library installation in a directory.
 
13543
finish_cmds=$lt_finish_cmds
 
13544
 
 
13545
# Same as above, but a single script fragment to be evaled but not shown.
 
13546
finish_eval=$lt_finish_eval
 
13547
 
 
13548
# Take the output of nm and produce a listing of raw symbols and C names.
 
13549
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13550
 
 
13551
# Transform the output of nm in a proper C declaration
 
13552
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13553
 
 
13554
# Transform the output of nm in a C name address pair
 
13555
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13556
 
 
13557
# This is the shared library runtime path variable.
 
13558
runpath_var=$runpath_var
 
13559
 
 
13560
# This is the shared library path variable.
 
13561
shlibpath_var=$shlibpath_var
 
13562
 
 
13563
# Is shlibpath searched before the hard-coded library search path?
 
13564
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13565
 
 
13566
# How to hardcode a shared library path into an executable.
 
13567
hardcode_action=$hardcode_action_CXX
 
13568
 
 
13569
# Whether we should hardcode library paths into libraries.
 
13570
hardcode_into_libs=$hardcode_into_libs
 
13571
 
 
13572
# Flag to hardcode \$libdir into a binary during linking.
 
13573
# This must work even if \$libdir does not exist.
 
13574
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13575
 
 
13576
# If ld is used when linking, flag to hardcode \$libdir into
 
13577
# a binary during linking. This must work even if \$libdir does
 
13578
# not exist.
 
13579
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13580
 
 
13581
# Whether we need a single -rpath flag with a separated argument.
 
13582
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13583
 
 
13584
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13585
# resulting binary.
 
13586
hardcode_direct=$hardcode_direct_CXX
 
13587
 
 
13588
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13589
# resulting binary.
 
13590
hardcode_minus_L=$hardcode_minus_L_CXX
 
13591
 
 
13592
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13593
# the resulting binary.
 
13594
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13595
 
 
13596
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13597
# and all subsequent libraries and executables linked against it.
 
13598
hardcode_automatic=$hardcode_automatic_CXX
 
13599
 
 
13600
# Variables whose values should be saved in libtool wrapper scripts and
 
13601
# restored at relink time.
 
13602
variables_saved_for_relink="$variables_saved_for_relink"
 
13603
 
 
13604
# Whether libtool must link a program against all its dependency libraries.
 
13605
link_all_deplibs=$link_all_deplibs_CXX
 
13606
 
 
13607
# Compile-time system search path for libraries
 
13608
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13609
 
 
13610
# Run-time system search path for libraries
 
13611
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13612
 
 
13613
# Fix the shell variable \$srcfile for the compiler.
 
13614
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13615
 
 
13616
# Set to yes if exported symbols are required.
 
13617
always_export_symbols=$always_export_symbols_CXX
 
13618
 
 
13619
# The commands to list exported symbols.
 
13620
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13621
 
 
13622
# The commands to extract the exported symbol list from a shared archive.
 
13623
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13624
 
 
13625
# Symbols that should not be listed in the preloaded symbols.
 
13626
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13627
 
 
13628
# Symbols that must always be exported.
 
13629
include_expsyms=$lt_include_expsyms_CXX
 
13630
 
 
13631
# ### END LIBTOOL TAG CONFIG: $tagname
 
13632
 
 
13633
__EOF__
 
13634
 
 
13635
 
 
13636
else
 
13637
  # If there is no Makefile yet, we rely on a make rule to execute
 
13638
  # `config.status --recheck' to rerun these tests and create the
 
13639
  # libtool script then.
 
13640
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13641
  if test -f "$ltmain_in"; then
 
13642
    test -f Makefile && make "$ltmain"
 
13643
  fi
 
13644
fi
 
13645
 
 
13646
 
 
13647
ac_ext=cc
 
13648
ac_cpp='$CXXCPP $CPPFLAGS'
 
13649
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13650
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13651
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
13652
 
 
13653
CC=$lt_save_CC
 
13654
LDCXX=$LD
 
13655
LD=$lt_save_LD
 
13656
GCC=$lt_save_GCC
 
13657
with_gnu_ldcxx=$with_gnu_ld
 
13658
with_gnu_ld=$lt_save_with_gnu_ld
 
13659
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13660
lt_cv_path_LD=$lt_save_path_LD
 
13661
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13662
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13663
 
 
13664
        else
 
13665
          tagname=""
 
13666
        fi
 
13667
        ;;
 
13668
 
 
13669
      F77)
 
13670
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13671
 
 
13672
ac_ext=f
 
13673
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13674
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13675
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13676
 
 
13677
 
 
13678
archive_cmds_need_lc_F77=no
 
13679
allow_undefined_flag_F77=
 
13680
always_export_symbols_F77=no
 
13681
archive_expsym_cmds_F77=
 
13682
export_dynamic_flag_spec_F77=
 
13683
hardcode_direct_F77=no
 
13684
hardcode_libdir_flag_spec_F77=
 
13685
hardcode_libdir_flag_spec_ld_F77=
 
13686
hardcode_libdir_separator_F77=
 
13687
hardcode_minus_L_F77=no
 
13688
hardcode_automatic_F77=no
 
13689
module_cmds_F77=
 
13690
module_expsym_cmds_F77=
 
13691
link_all_deplibs_F77=unknown
 
13692
old_archive_cmds_F77=$old_archive_cmds
 
13693
no_undefined_flag_F77=
 
13694
whole_archive_flag_spec_F77=
 
13695
enable_shared_with_static_runtimes_F77=no
 
13696
 
 
13697
# Source file extension for f77 test sources.
 
13698
ac_ext=f
 
13699
 
 
13700
# Object file extension for compiled f77 test sources.
 
13701
objext=o
 
13702
objext_F77=$objext
 
13703
 
 
13704
# Code to be used in simple compile tests
 
13705
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13706
 
 
13707
# Code to be used in simple link tests
 
13708
lt_simple_link_test_code="      program t\n      end\n"
 
13709
 
 
13710
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13711
 
 
13712
# If no C compiler was specified, use CC.
 
13713
LTCC=${LTCC-"$CC"}
 
13714
 
 
13715
# Allow CC to be a program name with arguments.
 
13716
compiler=$CC
 
13717
 
 
13718
 
 
13719
# Allow CC to be a program name with arguments.
 
13720
lt_save_CC="$CC"
 
13721
CC=${F77-"f77"}
 
13722
compiler=$CC
 
13723
compiler_F77=$CC
 
13724
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
13725
 
 
13726
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13727
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13728
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13729
echo "${ECHO_T}$can_build_shared" >&6
 
13730
 
 
13731
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13732
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13733
test "$can_build_shared" = "no" && enable_shared=no
 
13734
 
 
13735
# On AIX, shared libraries and static libraries use the same namespace, and
 
13736
# are all built from PIC.
 
13737
case "$host_os" in
 
13738
aix3*)
 
13739
  test "$enable_shared" = yes && enable_static=no
 
13740
  if test -n "$RANLIB"; then
 
13741
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13742
    postinstall_cmds='$RANLIB $lib'
 
13743
  fi
 
13744
  ;;
 
13745
aix4* | aix5*)
 
13746
  test "$enable_shared" = yes && enable_static=no
 
13747
  ;;
 
13748
esac
 
13749
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13750
echo "${ECHO_T}$enable_shared" >&6
 
13751
 
 
13752
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13753
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13754
# Make sure either enable_shared or enable_static is yes.
 
13755
test "$enable_shared" = yes || enable_static=yes
 
13756
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13757
echo "${ECHO_T}$enable_static" >&6
 
13758
 
 
13759
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13760
 
 
13761
GCC_F77="$G77"
 
13762
LD_F77="$LD"
 
13763
 
 
13764
lt_prog_compiler_wl_F77=
 
13765
lt_prog_compiler_pic_F77=
 
13766
lt_prog_compiler_static_F77=
 
13767
 
 
13768
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13769
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13770
 
 
13771
  if test "$GCC" = yes; then
 
13772
    lt_prog_compiler_wl_F77='-Wl,'
 
13773
    lt_prog_compiler_static_F77='-static'
 
13774
 
 
13775
    case $host_os in
 
13776
      aix*)
 
13777
      # All AIX code is PIC.
 
13778
      if test "$host_cpu" = ia64; then
 
13779
        # AIX 5 now supports IA64 processor
 
13780
        lt_prog_compiler_static_F77='-Bstatic'
 
13781
      fi
 
13782
      ;;
 
13783
 
 
13784
    amigaos*)
 
13785
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13786
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13787
      # like `-m68040'.
 
13788
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13789
      ;;
 
13790
 
 
13791
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13792
      # PIC is the default for these OSes.
 
13793
      ;;
 
13794
 
 
13795
    mingw* | pw32* | os2*)
 
13796
      # This hack is so that the source file can tell whether it is being
 
13797
      # built for inclusion in a dll (and should export symbols for example).
 
13798
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13799
      ;;
 
13800
 
 
13801
    darwin* | rhapsody*)
 
13802
      # PIC is the default on this platform
 
13803
      # Common symbols not allowed in MH_DYLIB files
 
13804
      lt_prog_compiler_pic_F77='-fno-common'
 
13805
      ;;
 
13806
 
 
13807
    msdosdjgpp*)
 
13808
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13809
      # on systems that don't support them.
 
13810
      lt_prog_compiler_can_build_shared_F77=no
 
13811
      enable_shared=no
 
13812
      ;;
 
13813
 
 
13814
    sysv4*MP*)
 
13815
      if test -d /usr/nec; then
 
13816
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13817
      fi
 
13818
      ;;
 
13819
 
 
13820
    hpux*)
 
13821
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13822
      # not for PA HP-UX.
 
13823
      case "$host_cpu" in
 
13824
      hppa*64*|ia64*)
 
13825
        # +Z the default
 
13826
        ;;
 
13827
      *)
 
13828
        lt_prog_compiler_pic_F77='-fPIC'
 
13829
        ;;
 
13830
      esac
 
13831
      ;;
 
13832
 
 
13833
    *)
 
13834
      lt_prog_compiler_pic_F77='-fPIC'
 
13835
      ;;
 
13836
    esac
 
13837
  else
 
13838
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13839
    case $host_os in
 
13840
    aix*)
 
13841
      lt_prog_compiler_wl_F77='-Wl,'
 
13842
      if test "$host_cpu" = ia64; then
 
13843
        # AIX 5 now supports IA64 processor
 
13844
        lt_prog_compiler_static_F77='-Bstatic'
 
13845
      else
 
13846
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13847
      fi
 
13848
      ;;
 
13849
 
 
13850
    mingw* | pw32* | os2*)
 
13851
      # This hack is so that the source file can tell whether it is being
 
13852
      # built for inclusion in a dll (and should export symbols for example).
 
13853
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13854
      ;;
 
13855
 
 
13856
    hpux9* | hpux10* | hpux11*)
 
13857
      lt_prog_compiler_wl_F77='-Wl,'
 
13858
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13859
      # not for PA HP-UX.
 
13860
      case "$host_cpu" in
 
13861
      hppa*64*|ia64*)
 
13862
        # +Z the default
 
13863
        ;;
 
13864
      *)
 
13865
        lt_prog_compiler_pic_F77='+Z'
 
13866
        ;;
 
13867
      esac
 
13868
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13869
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13870
      ;;
 
13871
 
 
13872
    irix5* | irix6* | nonstopux*)
 
13873
      lt_prog_compiler_wl_F77='-Wl,'
 
13874
      # PIC (with -KPIC) is the default.
 
13875
      lt_prog_compiler_static_F77='-non_shared'
 
13876
      ;;
 
13877
 
 
13878
    newsos6)
 
13879
      lt_prog_compiler_pic_F77='-KPIC'
 
13880
      lt_prog_compiler_static_F77='-Bstatic'
 
13881
      ;;
 
13882
 
 
13883
    linux*)
 
13884
      case $CC in
 
13885
      icc* | ecc*)
 
13886
        lt_prog_compiler_wl_F77='-Wl,'
 
13887
        lt_prog_compiler_pic_F77='-KPIC'
 
13888
        lt_prog_compiler_static_F77='-static'
 
13889
        ;;
 
13890
      ccc*)
 
13891
        lt_prog_compiler_wl_F77='-Wl,'
 
13892
        # All Alpha code is PIC.
 
13893
        lt_prog_compiler_static_F77='-non_shared'
 
13894
        ;;
 
13895
      esac
 
13896
      ;;
 
13897
 
 
13898
    osf3* | osf4* | osf5*)
 
13899
      lt_prog_compiler_wl_F77='-Wl,'
 
13900
      # All OSF/1 code is PIC.
 
13901
      lt_prog_compiler_static_F77='-non_shared'
 
13902
      ;;
 
13903
 
 
13904
    sco3.2v5*)
 
13905
      lt_prog_compiler_pic_F77='-Kpic'
 
13906
      lt_prog_compiler_static_F77='-dn'
 
13907
      ;;
 
13908
 
 
13909
    solaris*)
 
13910
      lt_prog_compiler_wl_F77='-Wl,'
 
13911
      lt_prog_compiler_pic_F77='-KPIC'
 
13912
      lt_prog_compiler_static_F77='-Bstatic'
 
13913
      ;;
 
13914
 
 
13915
    sunos4*)
 
13916
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13917
      lt_prog_compiler_pic_F77='-PIC'
 
13918
      lt_prog_compiler_static_F77='-Bstatic'
 
13919
      ;;
 
13920
 
 
13921
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13922
      lt_prog_compiler_wl_F77='-Wl,'
 
13923
      lt_prog_compiler_pic_F77='-KPIC'
 
13924
      lt_prog_compiler_static_F77='-Bstatic'
 
13925
      ;;
 
13926
 
 
13927
    sysv4*MP*)
 
13928
      if test -d /usr/nec ;then
 
13929
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13930
        lt_prog_compiler_static_F77='-Bstatic'
 
13931
      fi
 
13932
      ;;
 
13933
 
 
13934
    uts4*)
 
13935
      lt_prog_compiler_pic_F77='-pic'
 
13936
      lt_prog_compiler_static_F77='-Bstatic'
 
13937
      ;;
 
13938
 
 
13939
    *)
 
13940
      lt_prog_compiler_can_build_shared_F77=no
 
13941
      ;;
 
13942
    esac
 
13943
  fi
 
13944
 
 
13945
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13946
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13947
 
 
13948
#
 
13949
# Check to make sure the PIC flag actually works.
 
13950
#
 
13951
if test -n "$lt_prog_compiler_pic_F77"; then
 
13952
 
 
13953
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13954
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13955
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13956
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13957
else
 
13958
  lt_prog_compiler_pic_works_F77=no
 
13959
  ac_outfile=conftest.$ac_objext
 
13960
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13961
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13962
   # Insert the option either (1) after the last *FLAGS variable, or
 
13963
   # (2) before a word containing "conftest.", or (3) at the end.
 
13964
   # Note that $ac_compile itself does not contain backslashes and begins
 
13965
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13966
   # The option is referenced via a variable to avoid confusing sed.
 
13967
   lt_compile=`echo "$ac_compile" | $SED \
 
13968
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13969
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13970
   -e 's:$: $lt_compiler_flag:'`
 
13971
   (eval echo "\"\$as_me:13971: $lt_compile\"" >&5)
 
13972
   (eval "$lt_compile" 2>conftest.err)
 
13973
   ac_status=$?
 
13974
   cat conftest.err >&5
 
13975
   echo "$as_me:13975: \$? = $ac_status" >&5
 
13976
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13977
     # The compiler can only warn and ignore the option if not recognized
 
13978
     # So say no if there are warnings
 
13979
     if test ! -s conftest.err; then
 
13980
       lt_prog_compiler_pic_works_F77=yes
 
13981
     fi
 
13982
   fi
 
13983
   $rm conftest*
 
13984
 
 
13985
fi
 
13986
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13987
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13988
 
 
13989
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13990
    case $lt_prog_compiler_pic_F77 in
 
13991
     "" | " "*) ;;
 
13992
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13993
     esac
 
13994
else
 
13995
    lt_prog_compiler_pic_F77=
 
13996
     lt_prog_compiler_can_build_shared_F77=no
 
13997
fi
 
13998
 
 
13999
fi
 
14000
case "$host_os" in
 
14001
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14002
  *djgpp*)
 
14003
    lt_prog_compiler_pic_F77=
 
14004
    ;;
 
14005
  *)
 
14006
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14007
    ;;
 
14008
esac
 
14009
 
 
14010
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14011
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14012
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14013
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14014
else
 
14015
  lt_cv_prog_compiler_c_o_F77=no
 
14016
   $rm -r conftest 2>/dev/null
 
14017
   mkdir conftest
 
14018
   cd conftest
 
14019
   mkdir out
 
14020
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14021
 
 
14022
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14023
   # Insert the option either (1) after the last *FLAGS variable, or
 
14024
   # (2) before a word containing "conftest.", or (3) at the end.
 
14025
   # Note that $ac_compile itself does not contain backslashes and begins
 
14026
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14027
   lt_compile=`echo "$ac_compile" | $SED \
 
14028
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14029
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14030
   -e 's:$: $lt_compiler_flag:'`
 
14031
   (eval echo "\"\$as_me:14031: $lt_compile\"" >&5)
 
14032
   (eval "$lt_compile" 2>out/conftest.err)
 
14033
   ac_status=$?
 
14034
   cat out/conftest.err >&5
 
14035
   echo "$as_me:14035: \$? = $ac_status" >&5
 
14036
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14037
   then
 
14038
     # The compiler can only warn and ignore the option if not recognized
 
14039
     # So say no if there are warnings
 
14040
     if test ! -s out/conftest.err; then
 
14041
       lt_cv_prog_compiler_c_o_F77=yes
 
14042
     fi
 
14043
   fi
 
14044
   chmod u+w .
 
14045
   $rm conftest*
 
14046
   # SGI C++ compiler will create directory out/ii_files/ for
 
14047
   # template instantiation
 
14048
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14049
   $rm out/* && rmdir out
 
14050
   cd ..
 
14051
   rmdir conftest
 
14052
   $rm conftest*
 
14053
 
 
14054
fi
 
14055
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14056
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14057
 
 
14058
 
 
14059
hard_links="nottested"
 
14060
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14061
  # do not overwrite the value of need_locks provided by the user
 
14062
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14063
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14064
  hard_links=yes
 
14065
  $rm conftest*
 
14066
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14067
  touch conftest.a
 
14068
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14069
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14070
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14071
echo "${ECHO_T}$hard_links" >&6
 
14072
  if test "$hard_links" = no; then
 
14073
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14074
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14075
    need_locks=warn
 
14076
  fi
 
14077
else
 
14078
  need_locks=no
 
14079
fi
 
14080
 
 
14081
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14082
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14083
 
 
14084
  runpath_var=
 
14085
  allow_undefined_flag_F77=
 
14086
  enable_shared_with_static_runtimes_F77=no
 
14087
  archive_cmds_F77=
 
14088
  archive_expsym_cmds_F77=
 
14089
  old_archive_From_new_cmds_F77=
 
14090
  old_archive_from_expsyms_cmds_F77=
 
14091
  export_dynamic_flag_spec_F77=
 
14092
  whole_archive_flag_spec_F77=
 
14093
  thread_safe_flag_spec_F77=
 
14094
  hardcode_libdir_flag_spec_F77=
 
14095
  hardcode_libdir_flag_spec_ld_F77=
 
14096
  hardcode_libdir_separator_F77=
 
14097
  hardcode_direct_F77=no
 
14098
  hardcode_minus_L_F77=no
 
14099
  hardcode_shlibpath_var_F77=unsupported
 
14100
  link_all_deplibs_F77=unknown
 
14101
  hardcode_automatic_F77=no
 
14102
  module_cmds_F77=
 
14103
  module_expsym_cmds_F77=
 
14104
  always_export_symbols_F77=no
 
14105
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14106
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14107
  # included in the symbol list
 
14108
  include_expsyms_F77=
 
14109
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14110
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14111
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14112
  # as well as any symbol that contains `d'.
 
14113
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14114
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14115
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14116
  # the symbol is explicitly referenced.  Since portable code cannot
 
14117
  # rely on this symbol name, it's probably fine to never include it in
 
14118
  # preloaded symbol tables.
 
14119
  extract_expsyms_cmds=
 
14120
 
 
14121
  case $host_os in
 
14122
  cygwin* | mingw* | pw32*)
 
14123
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14124
    # When not using gcc, we currently assume that we are using
 
14125
    # Microsoft Visual C++.
 
14126
    if test "$GCC" != yes; then
 
14127
      with_gnu_ld=no
 
14128
    fi
 
14129
    ;;
 
14130
  openbsd*)
 
14131
    with_gnu_ld=no
 
14132
    ;;
 
14133
  esac
 
14134
 
 
14135
  ld_shlibs_F77=yes
 
14136
  if test "$with_gnu_ld" = yes; then
 
14137
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14138
    wlarc='${wl}'
 
14139
 
 
14140
    # See if GNU ld supports shared libraries.
 
14141
    case $host_os in
 
14142
    aix3* | aix4* | aix5*)
 
14143
      # On AIX/PPC, the GNU linker is very broken
 
14144
      if test "$host_cpu" != ia64; then
 
14145
        ld_shlibs_F77=no
 
14146
        cat <<EOF 1>&2
 
14147
 
 
14148
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14149
*** to be unable to reliably create shared libraries on AIX.
 
14150
*** Therefore, libtool is disabling shared libraries support.  If you
 
14151
*** really care for shared libraries, you may want to modify your PATH
 
14152
*** so that a non-GNU linker is found, and then restart.
 
14153
 
 
14154
EOF
 
14155
      fi
 
14156
      ;;
 
14157
 
 
14158
    amigaos*)
 
14159
      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)'
 
14160
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14161
      hardcode_minus_L_F77=yes
 
14162
 
 
14163
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14164
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14165
      # to version 4, is to share data among multiple programs linked
 
14166
      # with the same dynamic library.  Since this doesn't match the
 
14167
      # behavior of shared libraries on other platforms, we can't use
 
14168
      # them.
 
14169
      ld_shlibs_F77=no
 
14170
      ;;
 
14171
 
 
14172
    beos*)
 
14173
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14174
        allow_undefined_flag_F77=unsupported
 
14175
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14176
        # support --undefined.  This deserves some investigation.  FIXME
 
14177
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14178
      else
 
14179
        ld_shlibs_F77=no
 
14180
      fi
 
14181
      ;;
 
14182
 
 
14183
    cygwin* | mingw* | pw32*)
 
14184
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14185
      # as there is no search path for DLLs.
 
14186
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14187
      allow_undefined_flag_F77=unsupported
 
14188
      always_export_symbols_F77=no
 
14189
      enable_shared_with_static_runtimes_F77=yes
 
14190
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14191
 
 
14192
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14193
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14194
        # If the export-symbols file already is a .def file (1st line
 
14195
        # is EXPORTS), use it as is; otherwise, prepend...
 
14196
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14197
          cp $export_symbols $output_objdir/$soname.def;
 
14198
        else
 
14199
          echo EXPORTS > $output_objdir/$soname.def;
 
14200
          cat $export_symbols >> $output_objdir/$soname.def;
 
14201
        fi~
 
14202
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14203
      else
 
14204
        ld_shlibs=no
 
14205
      fi
 
14206
      ;;
 
14207
 
 
14208
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14209
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14210
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14211
        wlarc=
 
14212
      else
 
14213
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14214
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14215
      fi
 
14216
      ;;
 
14217
 
 
14218
    solaris* | sysv5*)
 
14219
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14220
        ld_shlibs_F77=no
 
14221
        cat <<EOF 1>&2
 
14222
 
 
14223
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14224
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14225
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14226
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14227
*** your PATH or compiler configuration so that the native linker is
 
14228
*** used, and then restart.
 
14229
 
 
14230
EOF
 
14231
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14232
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14233
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14234
      else
 
14235
        ld_shlibs_F77=no
 
14236
      fi
 
14237
      ;;
 
14238
 
 
14239
    sunos4*)
 
14240
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14241
      wlarc=
 
14242
      hardcode_direct_F77=yes
 
14243
      hardcode_shlibpath_var_F77=no
 
14244
      ;;
 
14245
 
 
14246
  linux*)
 
14247
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14248
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14249
        archive_cmds_F77="$tmp_archive_cmds"
 
14250
      supports_anon_versioning=no
 
14251
      case `$LD -v 2>/dev/null` in
 
14252
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14253
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14254
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14255
        *\ 2.11.*) ;; # other 2.11 versions
 
14256
        *) supports_anon_versioning=yes ;;
 
14257
      esac
 
14258
      if test $supports_anon_versioning = yes; then
 
14259
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14260
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14261
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14262
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14263
      else
 
14264
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14265
      fi
 
14266
      link_all_deplibs_F77=no
 
14267
    else
 
14268
      ld_shlibs_F77=no
 
14269
    fi
 
14270
    ;;
 
14271
 
 
14272
    *)
 
14273
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14274
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14275
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14276
      else
 
14277
        ld_shlibs_F77=no
 
14278
      fi
 
14279
      ;;
 
14280
    esac
 
14281
 
 
14282
    if test "$ld_shlibs_F77" = yes; then
 
14283
      runpath_var=LD_RUN_PATH
 
14284
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14285
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14286
      # ancient GNU ld didn't support --whole-archive et. al.
 
14287
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14288
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14289
      else
 
14290
        whole_archive_flag_spec_F77=
 
14291
      fi
 
14292
    fi
 
14293
  else
 
14294
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14295
    case $host_os in
 
14296
    aix3*)
 
14297
      allow_undefined_flag_F77=unsupported
 
14298
      always_export_symbols_F77=yes
 
14299
      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'
 
14300
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14301
      # are no directories specified by -L.
 
14302
      hardcode_minus_L_F77=yes
 
14303
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14304
        # Neither direct hardcoding nor static linking is supported with a
 
14305
        # broken collect2.
 
14306
        hardcode_direct_F77=unsupported
 
14307
      fi
 
14308
      ;;
 
14309
 
 
14310
    aix4* | aix5*)
 
14311
      if test "$host_cpu" = ia64; then
 
14312
        # On IA64, the linker does run time linking by default, so we don't
 
14313
        # have to do anything special.
 
14314
        aix_use_runtimelinking=no
 
14315
        exp_sym_flag='-Bexport'
 
14316
        no_entry_flag=""
 
14317
      else
 
14318
        # If we're using GNU nm, then we don't want the "-C" option.
 
14319
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14320
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14321
          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'
 
14322
        else
 
14323
          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'
 
14324
        fi
 
14325
        aix_use_runtimelinking=no
 
14326
 
 
14327
        # Test if we are trying to use run time linking or normal
 
14328
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14329
        # need to do runtime linking.
 
14330
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14331
          for ld_flag in $LDFLAGS; do
 
14332
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14333
            aix_use_runtimelinking=yes
 
14334
            break
 
14335
          fi
 
14336
          done
 
14337
        esac
 
14338
 
 
14339
        exp_sym_flag='-bexport'
 
14340
        no_entry_flag='-bnoentry'
 
14341
      fi
 
14342
 
 
14343
      # When large executables or shared objects are built, AIX ld can
 
14344
      # have problems creating the table of contents.  If linking a library
 
14345
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14346
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14347
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14348
 
 
14349
      archive_cmds_F77=''
 
14350
      hardcode_direct_F77=yes
 
14351
      hardcode_libdir_separator_F77=':'
 
14352
      link_all_deplibs_F77=yes
 
14353
 
 
14354
      if test "$GCC" = yes; then
 
14355
        case $host_os in aix4.012|aix4.012.*)
 
14356
        # We only want to do this on AIX 4.2 and lower, the check
 
14357
        # below for broken collect2 doesn't work under 4.3+
 
14358
          collect2name=`${CC} -print-prog-name=collect2`
 
14359
          if test -f "$collect2name" && \
 
14360
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14361
          then
 
14362
          # We have reworked collect2
 
14363
          hardcode_direct_F77=yes
 
14364
          else
 
14365
          # We have old collect2
 
14366
          hardcode_direct_F77=unsupported
 
14367
          # It fails to find uninstalled libraries when the uninstalled
 
14368
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14369
          # to unsupported forces relinking
 
14370
          hardcode_minus_L_F77=yes
 
14371
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14372
          hardcode_libdir_separator_F77=
 
14373
          fi
 
14374
        esac
 
14375
        shared_flag='-shared'
 
14376
      else
 
14377
        # not using gcc
 
14378
        if test "$host_cpu" = ia64; then
 
14379
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14380
        # chokes on -Wl,-G. The following line is correct:
 
14381
          shared_flag='-G'
 
14382
        else
 
14383
        if test "$aix_use_runtimelinking" = yes; then
 
14384
            shared_flag='${wl}-G'
 
14385
          else
 
14386
            shared_flag='${wl}-bM:SRE'
 
14387
        fi
 
14388
        fi
 
14389
      fi
 
14390
 
 
14391
      # It seems that -bexpall does not export symbols beginning with
 
14392
      # underscore (_), so it is better to generate a list of symbols to export.
 
14393
      always_export_symbols_F77=yes
 
14394
      if test "$aix_use_runtimelinking" = yes; then
 
14395
        # Warning - without using the other runtime loading flags (-brtl),
 
14396
        # -berok will link without error, but may produce a broken library.
 
14397
        allow_undefined_flag_F77='-berok'
 
14398
       # Determine the default libpath from the value encoded in an empty executable.
 
14399
       cat >conftest.$ac_ext <<_ACEOF
 
14400
      program main
 
14401
 
 
14402
      end
 
14403
_ACEOF
 
14404
rm -f conftest.$ac_objext conftest$ac_exeext
 
14405
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14406
  (eval $ac_link) 2>conftest.er1
 
14407
  ac_status=$?
 
14408
  grep -v '^ *+' conftest.er1 >conftest.err
 
14409
  rm -f conftest.er1
 
14410
  cat conftest.err >&5
 
14411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14412
  (exit $ac_status); } &&
 
14413
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14414
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14415
  (eval $ac_try) 2>&5
 
14416
  ac_status=$?
 
14417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14418
  (exit $ac_status); }; } &&
 
14419
         { ac_try='test -s conftest$ac_exeext'
 
14420
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14421
  (eval $ac_try) 2>&5
 
14422
  ac_status=$?
 
14423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14424
  (exit $ac_status); }; }; then
 
14425
 
 
14426
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14427
}'`
 
14428
# Check for a 64-bit object if we didn't find anything.
 
14429
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14430
}'`; fi
 
14431
else
 
14432
  echo "$as_me: failed program was:" >&5
 
14433
sed 's/^/| /' conftest.$ac_ext >&5
 
14434
 
 
14435
fi
 
14436
rm -f conftest.err conftest.$ac_objext \
 
14437
      conftest$ac_exeext conftest.$ac_ext
 
14438
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14439
 
 
14440
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14441
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
14442
       else
 
14443
        if test "$host_cpu" = ia64; then
 
14444
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14445
          allow_undefined_flag_F77="-z nodefs"
 
14446
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
14447
        else
 
14448
         # Determine the default libpath from the value encoded in an empty executable.
 
14449
         cat >conftest.$ac_ext <<_ACEOF
 
14450
      program main
 
14451
 
 
14452
      end
 
14453
_ACEOF
 
14454
rm -f conftest.$ac_objext conftest$ac_exeext
 
14455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14456
  (eval $ac_link) 2>conftest.er1
 
14457
  ac_status=$?
 
14458
  grep -v '^ *+' conftest.er1 >conftest.err
 
14459
  rm -f conftest.er1
 
14460
  cat conftest.err >&5
 
14461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14462
  (exit $ac_status); } &&
 
14463
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14465
  (eval $ac_try) 2>&5
 
14466
  ac_status=$?
 
14467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14468
  (exit $ac_status); }; } &&
 
14469
         { ac_try='test -s conftest$ac_exeext'
 
14470
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14471
  (eval $ac_try) 2>&5
 
14472
  ac_status=$?
 
14473
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14474
  (exit $ac_status); }; }; then
 
14475
 
 
14476
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14477
}'`
 
14478
# Check for a 64-bit object if we didn't find anything.
 
14479
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14480
}'`; fi
 
14481
else
 
14482
  echo "$as_me: failed program was:" >&5
 
14483
sed 's/^/| /' conftest.$ac_ext >&5
 
14484
 
 
14485
fi
 
14486
rm -f conftest.err conftest.$ac_objext \
 
14487
      conftest$ac_exeext conftest.$ac_ext
 
14488
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14489
 
 
14490
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14491
          # Warning - without using the other run time loading flags,
 
14492
          # -berok will link without error, but may produce a broken library.
 
14493
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14494
          allow_undefined_flag_F77=' ${wl}-berok'
 
14495
          # -bexpall does not export symbols beginning with underscore (_)
 
14496
          always_export_symbols_F77=yes
 
14497
          # Exported symbols can be pulled into shared objects from archives
 
14498
          whole_archive_flag_spec_F77=' '
 
14499
          archive_cmds_need_lc_F77=yes
 
14500
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14501
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
14502
        fi
 
14503
      fi
 
14504
      ;;
 
14505
 
 
14506
    amigaos*)
 
14507
      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)'
 
14508
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14509
      hardcode_minus_L_F77=yes
 
14510
      # see comment about different semantics on the GNU ld section
 
14511
      ld_shlibs_F77=no
 
14512
      ;;
 
14513
 
 
14514
    bsdi4*)
 
14515
      export_dynamic_flag_spec_F77=-rdynamic
 
14516
      ;;
 
14517
 
 
14518
    cygwin* | mingw* | pw32*)
 
14519
      # When not using gcc, we currently assume that we are using
 
14520
      # Microsoft Visual C++.
 
14521
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14522
      # no search path for DLLs.
 
14523
      hardcode_libdir_flag_spec_F77=' '
 
14524
      allow_undefined_flag_F77=unsupported
 
14525
      # Tell ltmain to make .lib files, not .a files.
 
14526
      libext=lib
 
14527
      # Tell ltmain to make .dll files, not .so files.
 
14528
      shrext_cmds=".dll"
 
14529
      # FIXME: Setting linknames here is a bad hack.
 
14530
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14531
      # The linker will automatically build a .lib file if we build a DLL.
 
14532
      old_archive_From_new_cmds_F77='true'
 
14533
      # FIXME: Should let the user specify the lib program.
 
14534
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14535
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14536
      enable_shared_with_static_runtimes_F77=yes
 
14537
      ;;
 
14538
 
 
14539
    darwin* | rhapsody*)
 
14540
    if test "$GXX" = yes ; then
 
14541
      archive_cmds_need_lc_F77=no
 
14542
      case "$host_os" in
 
14543
      rhapsody* | darwin1.[012])
 
14544
        allow_undefined_flag_F77='-undefined suppress'
 
14545
        ;;
 
14546
      *) # Darwin 1.3 on
 
14547
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14548
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14549
      else
 
14550
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14551
          10.[012])
 
14552
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14553
            ;;
 
14554
          10.*)
 
14555
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14556
            ;;
 
14557
        esac
 
14558
      fi
 
14559
        ;;
 
14560
      esac
 
14561
        lt_int_apple_cc_single_mod=no
 
14562
        output_verbose_link_cmd='echo'
 
14563
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14564
          lt_int_apple_cc_single_mod=yes
 
14565
        fi
 
14566
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14567
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14568
        else
 
14569
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
 
14570
      fi
 
14571
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14572
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14573
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14574
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14575
        else
 
14576
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14577
        fi
 
14578
          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}'
 
14579
      hardcode_direct_F77=no
 
14580
      hardcode_automatic_F77=yes
 
14581
      hardcode_shlibpath_var_F77=unsupported
 
14582
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14583
      link_all_deplibs_F77=yes
 
14584
    else
 
14585
      ld_shlibs_F77=no
 
14586
    fi
 
14587
      ;;
 
14588
 
 
14589
    dgux*)
 
14590
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14591
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14592
      hardcode_shlibpath_var_F77=no
 
14593
      ;;
 
14594
 
 
14595
    freebsd1*)
 
14596
      ld_shlibs_F77=no
 
14597
      ;;
 
14598
 
 
14599
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14600
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14601
    # does not break anything, and helps significantly (at the cost of a little
 
14602
    # extra space).
 
14603
    freebsd2.2*)
 
14604
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14605
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14606
      hardcode_direct_F77=yes
 
14607
      hardcode_shlibpath_var_F77=no
 
14608
      ;;
 
14609
 
 
14610
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14611
    freebsd2*)
 
14612
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14613
      hardcode_direct_F77=yes
 
14614
      hardcode_minus_L_F77=yes
 
14615
      hardcode_shlibpath_var_F77=no
 
14616
      ;;
 
14617
 
 
14618
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14619
    freebsd* | kfreebsd*-gnu)
 
14620
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14621
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14622
      hardcode_direct_F77=yes
 
14623
      hardcode_shlibpath_var_F77=no
 
14624
      ;;
 
14625
 
 
14626
    hpux9*)
 
14627
      if test "$GCC" = yes; then
 
14628
        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'
 
14629
      else
 
14630
        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'
 
14631
      fi
 
14632
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14633
      hardcode_libdir_separator_F77=:
 
14634
      hardcode_direct_F77=yes
 
14635
 
 
14636
      # hardcode_minus_L: Not really in the search PATH,
 
14637
      # but as the default location of the library.
 
14638
      hardcode_minus_L_F77=yes
 
14639
      export_dynamic_flag_spec_F77='${wl}-E'
 
14640
      ;;
 
14641
 
 
14642
    hpux10* | hpux11*)
 
14643
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14644
        case "$host_cpu" in
 
14645
        hppa*64*|ia64*)
 
14646
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14647
          ;;
 
14648
        *)
 
14649
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14650
          ;;
 
14651
        esac
 
14652
      else
 
14653
        case "$host_cpu" in
 
14654
        hppa*64*|ia64*)
 
14655
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14656
          ;;
 
14657
        *)
 
14658
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14659
          ;;
 
14660
        esac
 
14661
      fi
 
14662
      if test "$with_gnu_ld" = no; then
 
14663
        case "$host_cpu" in
 
14664
        hppa*64*)
 
14665
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14666
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14667
          hardcode_libdir_separator_F77=:
 
14668
          hardcode_direct_F77=no
 
14669
          hardcode_shlibpath_var_F77=no
 
14670
          ;;
 
14671
        ia64*)
 
14672
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14673
          hardcode_direct_F77=no
 
14674
          hardcode_shlibpath_var_F77=no
 
14675
 
 
14676
          # hardcode_minus_L: Not really in the search PATH,
 
14677
          # but as the default location of the library.
 
14678
          hardcode_minus_L_F77=yes
 
14679
          ;;
 
14680
        *)
 
14681
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14682
          hardcode_libdir_separator_F77=:
 
14683
          hardcode_direct_F77=yes
 
14684
          export_dynamic_flag_spec_F77='${wl}-E'
 
14685
 
 
14686
          # hardcode_minus_L: Not really in the search PATH,
 
14687
          # but as the default location of the library.
 
14688
          hardcode_minus_L_F77=yes
 
14689
          ;;
 
14690
        esac
 
14691
      fi
 
14692
      ;;
 
14693
 
 
14694
    irix5* | irix6* | nonstopux*)
 
14695
      if test "$GCC" = yes; then
 
14696
        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'
 
14697
      else
 
14698
        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'
 
14699
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14700
      fi
 
14701
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14702
      hardcode_libdir_separator_F77=:
 
14703
      link_all_deplibs_F77=yes
 
14704
      ;;
 
14705
 
 
14706
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14707
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14708
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14709
      else
 
14710
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14711
      fi
 
14712
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14713
      hardcode_direct_F77=yes
 
14714
      hardcode_shlibpath_var_F77=no
 
14715
      ;;
 
14716
 
 
14717
    newsos6)
 
14718
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14719
      hardcode_direct_F77=yes
 
14720
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14721
      hardcode_libdir_separator_F77=:
 
14722
      hardcode_shlibpath_var_F77=no
 
14723
      ;;
 
14724
 
 
14725
    openbsd*)
 
14726
      hardcode_direct_F77=yes
 
14727
      hardcode_shlibpath_var_F77=no
 
14728
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14729
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14730
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14731
        export_dynamic_flag_spec_F77='${wl}-E'
 
14732
      else
 
14733
       case $host_os in
 
14734
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14735
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14736
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14737
           ;;
 
14738
         *)
 
14739
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14740
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14741
           ;;
 
14742
       esac
 
14743
      fi
 
14744
      ;;
 
14745
 
 
14746
    os2*)
 
14747
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14748
      hardcode_minus_L_F77=yes
 
14749
      allow_undefined_flag_F77=unsupported
 
14750
      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'
 
14751
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14752
      ;;
 
14753
 
 
14754
    osf3*)
 
14755
      if test "$GCC" = yes; then
 
14756
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14757
        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'
 
14758
      else
 
14759
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14760
        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'
 
14761
      fi
 
14762
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14763
      hardcode_libdir_separator_F77=:
 
14764
      ;;
 
14765
 
 
14766
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14767
      if test "$GCC" = yes; then
 
14768
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14769
        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'
 
14770
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14771
      else
 
14772
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14773
        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'
 
14774
        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~
 
14775
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
14776
 
 
14777
        # Both c and cxx compiler support -rpath directly
 
14778
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14779
      fi
 
14780
      hardcode_libdir_separator_F77=:
 
14781
      ;;
 
14782
 
 
14783
    sco3.2v5*)
 
14784
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14785
      hardcode_shlibpath_var_F77=no
 
14786
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14787
      runpath_var=LD_RUN_PATH
 
14788
      hardcode_runpath_var=yes
 
14789
      ;;
 
14790
 
 
14791
    solaris*)
 
14792
      no_undefined_flag_F77=' -z text'
 
14793
      if test "$GCC" = yes; then
 
14794
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14795
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14796
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14797
      else
 
14798
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14799
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14800
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14801
      fi
 
14802
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14803
      hardcode_shlibpath_var_F77=no
 
14804
      case $host_os in
 
14805
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14806
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14807
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14808
      esac
 
14809
      link_all_deplibs_F77=yes
 
14810
      ;;
 
14811
 
 
14812
    sunos4*)
 
14813
      if test "x$host_vendor" = xsequent; then
 
14814
        # Use $CC to link under sequent, because it throws in some extra .o
 
14815
        # files that make .init and .fini sections work.
 
14816
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14817
      else
 
14818
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14819
      fi
 
14820
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14821
      hardcode_direct_F77=yes
 
14822
      hardcode_minus_L_F77=yes
 
14823
      hardcode_shlibpath_var_F77=no
 
14824
      ;;
 
14825
 
 
14826
    sysv4)
 
14827
      case $host_vendor in
 
14828
        sni)
 
14829
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14830
          hardcode_direct_F77=yes # is this really true???
 
14831
        ;;
 
14832
        siemens)
 
14833
          ## LD is ld it makes a PLAMLIB
 
14834
          ## CC just makes a GrossModule.
 
14835
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14836
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14837
          hardcode_direct_F77=no
 
14838
        ;;
 
14839
        motorola)
 
14840
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14841
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14842
        ;;
 
14843
      esac
 
14844
      runpath_var='LD_RUN_PATH'
 
14845
      hardcode_shlibpath_var_F77=no
 
14846
      ;;
 
14847
 
 
14848
    sysv4.3*)
 
14849
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14850
      hardcode_shlibpath_var_F77=no
 
14851
      export_dynamic_flag_spec_F77='-Bexport'
 
14852
      ;;
 
14853
 
 
14854
    sysv4*MP*)
 
14855
      if test -d /usr/nec; then
 
14856
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14857
        hardcode_shlibpath_var_F77=no
 
14858
        runpath_var=LD_RUN_PATH
 
14859
        hardcode_runpath_var=yes
 
14860
        ld_shlibs_F77=yes
 
14861
      fi
 
14862
      ;;
 
14863
 
 
14864
    sysv4.2uw2*)
 
14865
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14866
      hardcode_direct_F77=yes
 
14867
      hardcode_minus_L_F77=no
 
14868
      hardcode_shlibpath_var_F77=no
 
14869
      hardcode_runpath_var=yes
 
14870
      runpath_var=LD_RUN_PATH
 
14871
      ;;
 
14872
 
 
14873
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14874
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14875
      if test "$GCC" = yes; then
 
14876
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14877
      else
 
14878
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14879
      fi
 
14880
      runpath_var='LD_RUN_PATH'
 
14881
      hardcode_shlibpath_var_F77=no
 
14882
      ;;
 
14883
 
 
14884
    sysv5*)
 
14885
      no_undefined_flag_F77=' -z text'
 
14886
      # $CC -shared without GNU ld will not create a library from C++
 
14887
      # object files and a static libstdc++, better avoid it by now
 
14888
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14889
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14890
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14891
      hardcode_libdir_flag_spec_F77=
 
14892
      hardcode_shlibpath_var_F77=no
 
14893
      runpath_var='LD_RUN_PATH'
 
14894
      ;;
 
14895
 
 
14896
    uts4*)
 
14897
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14898
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14899
      hardcode_shlibpath_var_F77=no
 
14900
      ;;
 
14901
 
 
14902
    *)
 
14903
      ld_shlibs_F77=no
 
14904
      ;;
 
14905
    esac
 
14906
  fi
 
14907
 
 
14908
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14909
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14910
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14911
 
 
14912
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14913
if test "$GCC" = yes; then
 
14914
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14915
fi
 
14916
 
 
14917
#
 
14918
# Do we need to explicitly link libc?
 
14919
#
 
14920
case "x$archive_cmds_need_lc_F77" in
 
14921
x|xyes)
 
14922
  # Assume -lc should be added
 
14923
  archive_cmds_need_lc_F77=yes
 
14924
 
 
14925
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14926
    case $archive_cmds_F77 in
 
14927
    *'~'*)
 
14928
      # FIXME: we may have to deal with multi-command sequences.
 
14929
      ;;
 
14930
    '$CC '*)
 
14931
      # Test whether the compiler implicitly links with -lc since on some
 
14932
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14933
      # to ld, don't add -lc before -lgcc.
 
14934
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14935
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14936
      $rm conftest*
 
14937
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14938
 
 
14939
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14940
  (eval $ac_compile) 2>&5
 
14941
  ac_status=$?
 
14942
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14943
  (exit $ac_status); } 2>conftest.err; then
 
14944
        soname=conftest
 
14945
        lib=conftest
 
14946
        libobjs=conftest.$ac_objext
 
14947
        deplibs=
 
14948
        wl=$lt_prog_compiler_wl_F77
 
14949
        compiler_flags=-v
 
14950
        linker_flags=-v
 
14951
        verstring=
 
14952
        output_objdir=.
 
14953
        libname=conftest
 
14954
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14955
        allow_undefined_flag_F77=
 
14956
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14957
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14958
  ac_status=$?
 
14959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14960
  (exit $ac_status); }
 
14961
        then
 
14962
          archive_cmds_need_lc_F77=no
 
14963
        else
 
14964
          archive_cmds_need_lc_F77=yes
 
14965
        fi
 
14966
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14967
      else
 
14968
        cat conftest.err 1>&5
 
14969
      fi
 
14970
      $rm conftest*
 
14971
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14972
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14973
      ;;
 
14974
    esac
 
14975
  fi
 
14976
  ;;
 
14977
esac
 
14978
 
 
14979
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14980
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14981
library_names_spec=
 
14982
libname_spec='lib$name'
 
14983
soname_spec=
 
14984
shrext_cmds=".so"
 
14985
postinstall_cmds=
 
14986
postuninstall_cmds=
 
14987
finish_cmds=
 
14988
finish_eval=
 
14989
shlibpath_var=
 
14990
shlibpath_overrides_runpath=unknown
 
14991
version_type=none
 
14992
dynamic_linker="$host_os ld.so"
 
14993
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14994
if test "$GCC" = yes; then
 
14995
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14996
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14997
    # if the path contains ";" then we assume it to be the separator
 
14998
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14999
    # assumed that no part of a normal pathname contains ";" but that should
 
15000
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15001
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15002
  else
 
15003
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15004
  fi
 
15005
else
 
15006
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15007
fi
 
15008
need_lib_prefix=unknown
 
15009
hardcode_into_libs=no
 
15010
 
 
15011
# when you set need_version to no, make sure it does not cause -set_version
 
15012
# flags to be left without arguments
 
15013
need_version=unknown
 
15014
 
 
15015
case $host_os in
 
15016
aix3*)
 
15017
  version_type=linux
 
15018
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15019
  shlibpath_var=LIBPATH
 
15020
 
 
15021
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15022
  soname_spec='${libname}${release}${shared_ext}$major'
 
15023
  ;;
 
15024
 
 
15025
aix4* | aix5*)
 
15026
  version_type=linux
 
15027
  need_lib_prefix=no
 
15028
  need_version=no
 
15029
  hardcode_into_libs=yes
 
15030
  if test "$host_cpu" = ia64; then
 
15031
    # AIX 5 supports IA64
 
15032
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15033
    shlibpath_var=LD_LIBRARY_PATH
 
15034
  else
 
15035
    # With GCC up to 2.95.x, collect2 would create an import file
 
15036
    # for dependence libraries.  The import file would start with
 
15037
    # the line `#! .'.  This would cause the generated library to
 
15038
    # depend on `.', always an invalid library.  This was fixed in
 
15039
    # development snapshots of GCC prior to 3.0.
 
15040
    case $host_os in
 
15041
      aix4 | aix4.[01] | aix4.[01].*)
 
15042
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15043
           echo ' yes '
 
15044
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15045
        :
 
15046
      else
 
15047
        can_build_shared=no
 
15048
      fi
 
15049
      ;;
 
15050
    esac
 
15051
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15052
    # soname into executable. Probably we can add versioning support to
 
15053
    # collect2, so additional links can be useful in future.
 
15054
    if test "$aix_use_runtimelinking" = yes; then
 
15055
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15056
      # instead of lib<name>.a to let people know that these are not
 
15057
      # typical AIX shared libraries.
 
15058
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15059
    else
 
15060
      # We preserve .a as extension for shared libraries through AIX4.2
 
15061
      # and later when we are not doing run time linking.
 
15062
      library_names_spec='${libname}${release}.a $libname.a'
 
15063
      soname_spec='${libname}${release}${shared_ext}$major'
 
15064
    fi
 
15065
    shlibpath_var=LIBPATH
 
15066
  fi
 
15067
  ;;
 
15068
 
 
15069
amigaos*)
 
15070
  library_names_spec='$libname.ixlibrary $libname.a'
 
15071
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15072
  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'
 
15073
  ;;
 
15074
 
 
15075
beos*)
 
15076
  library_names_spec='${libname}${shared_ext}'
 
15077
  dynamic_linker="$host_os ld.so"
 
15078
  shlibpath_var=LIBRARY_PATH
 
15079
  ;;
 
15080
 
 
15081
bsdi4*)
 
15082
  version_type=linux
 
15083
  need_version=no
 
15084
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15085
  soname_spec='${libname}${release}${shared_ext}$major'
 
15086
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15087
  shlibpath_var=LD_LIBRARY_PATH
 
15088
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15089
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15090
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15091
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15092
  # libtool to hard-code these into programs
 
15093
  ;;
 
15094
 
 
15095
cygwin* | mingw* | pw32*)
 
15096
  version_type=windows
 
15097
  shrext_cmds=".dll"
 
15098
  need_version=no
 
15099
  need_lib_prefix=no
 
15100
 
 
15101
  case $GCC,$host_os in
 
15102
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15103
    library_names_spec='$libname.dll.a'
 
15104
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15105
    postinstall_cmds='base_file=`basename \${file}`~
 
15106
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15107
      dldir=$destdir/`dirname \$dlpath`~
 
15108
      test -d \$dldir || mkdir -p \$dldir~
 
15109
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15110
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15111
      dlpath=$dir/\$dldll~
 
15112
       $rm \$dlpath'
 
15113
    shlibpath_overrides_runpath=yes
 
15114
 
 
15115
    case $host_os in
 
15116
    cygwin*)
 
15117
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15118
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15119
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15120
      ;;
 
15121
    mingw*)
 
15122
      # MinGW DLLs use traditional 'lib' prefix
 
15123
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15124
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15125
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15126
        # It is most probably a Windows format PATH printed by
 
15127
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15128
        # path with ; separators, and with drive letters. We can handle the
 
15129
        # drive letters (cygwin fileutils understands them), so leave them,
 
15130
        # especially as we might pass files found there to a mingw objdump,
 
15131
        # which wouldn't understand a cygwinified path. Ahh.
 
15132
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15133
      else
 
15134
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15135
      fi
 
15136
      ;;
 
15137
    pw32*)
 
15138
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15139
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15140
      ;;
 
15141
    esac
 
15142
    ;;
 
15143
 
 
15144
  *)
 
15145
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15146
    ;;
 
15147
  esac
 
15148
  dynamic_linker='Win32 ld.exe'
 
15149
  # FIXME: first we should search . and the directory the executable is in
 
15150
  shlibpath_var=PATH
 
15151
  ;;
 
15152
 
 
15153
darwin* | rhapsody*)
 
15154
  dynamic_linker="$host_os dyld"
 
15155
  version_type=darwin
 
15156
  need_lib_prefix=no
 
15157
  need_version=no
 
15158
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15159
  soname_spec='${libname}${release}${major}$shared_ext'
 
15160
  shlibpath_overrides_runpath=yes
 
15161
  shlibpath_var=DYLD_LIBRARY_PATH
 
15162
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
15163
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15164
  if test "$GCC" = yes; then
 
15165
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15166
  else
 
15167
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15168
  fi
 
15169
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15170
  ;;
 
15171
 
 
15172
dgux*)
 
15173
  version_type=linux
 
15174
  need_lib_prefix=no
 
15175
  need_version=no
 
15176
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15177
  soname_spec='${libname}${release}${shared_ext}$major'
 
15178
  shlibpath_var=LD_LIBRARY_PATH
 
15179
  ;;
 
15180
 
 
15181
freebsd1*)
 
15182
  dynamic_linker=no
 
15183
  ;;
 
15184
 
 
15185
kfreebsd*-gnu)
 
15186
  version_type=linux
 
15187
  need_lib_prefix=no
 
15188
  need_version=no
 
15189
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15190
  soname_spec='${libname}${release}${shared_ext}$major'
 
15191
  shlibpath_var=LD_LIBRARY_PATH
 
15192
  shlibpath_overrides_runpath=no
 
15193
  hardcode_into_libs=yes
 
15194
  dynamic_linker='GNU ld.so'
 
15195
  ;;
 
15196
 
 
15197
freebsd*)
 
15198
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15199
  version_type=freebsd-$objformat
 
15200
  case $version_type in
 
15201
    freebsd-elf*)
 
15202
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15203
      need_version=no
 
15204
      need_lib_prefix=no
 
15205
      ;;
 
15206
    freebsd-*)
 
15207
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15208
      need_version=yes
 
15209
      ;;
 
15210
  esac
 
15211
  shlibpath_var=LD_LIBRARY_PATH
 
15212
  case $host_os in
 
15213
  freebsd2*)
 
15214
    shlibpath_overrides_runpath=yes
 
15215
    ;;
 
15216
  freebsd3.01* | freebsdelf3.01*)
 
15217
    shlibpath_overrides_runpath=yes
 
15218
    hardcode_into_libs=yes
 
15219
    ;;
 
15220
  *) # from 3.2 on
 
15221
    shlibpath_overrides_runpath=no
 
15222
    hardcode_into_libs=yes
 
15223
    ;;
 
15224
  esac
 
15225
  ;;
 
15226
 
 
15227
gnu*)
 
15228
  version_type=linux
 
15229
  need_lib_prefix=no
 
15230
  need_version=no
 
15231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15232
  soname_spec='${libname}${release}${shared_ext}$major'
 
15233
  shlibpath_var=LD_LIBRARY_PATH
 
15234
  hardcode_into_libs=yes
 
15235
  ;;
 
15236
 
 
15237
hpux9* | hpux10* | hpux11*)
 
15238
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15239
  # link against other versions.
 
15240
  version_type=sunos
 
15241
  need_lib_prefix=no
 
15242
  need_version=no
 
15243
  case "$host_cpu" in
 
15244
  ia64*)
 
15245
    shrext_cmds='.so'
 
15246
    hardcode_into_libs=yes
 
15247
    dynamic_linker="$host_os dld.so"
 
15248
    shlibpath_var=LD_LIBRARY_PATH
 
15249
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15250
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15251
    soname_spec='${libname}${release}${shared_ext}$major'
 
15252
    if test "X$HPUX_IA64_MODE" = X32; then
 
15253
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15254
    else
 
15255
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15256
    fi
 
15257
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15258
    ;;
 
15259
   hppa*64*)
 
15260
     shrext_cmds='.sl'
 
15261
     hardcode_into_libs=yes
 
15262
     dynamic_linker="$host_os dld.sl"
 
15263
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15264
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15265
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15266
     soname_spec='${libname}${release}${shared_ext}$major'
 
15267
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15268
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15269
     ;;
 
15270
   *)
 
15271
    shrext_cmds='.sl'
 
15272
    dynamic_linker="$host_os dld.sl"
 
15273
    shlibpath_var=SHLIB_PATH
 
15274
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15275
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15276
    soname_spec='${libname}${release}${shared_ext}$major'
 
15277
    ;;
 
15278
  esac
 
15279
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15280
  postinstall_cmds='chmod 555 $lib'
 
15281
  ;;
 
15282
 
 
15283
irix5* | irix6* | nonstopux*)
 
15284
  case $host_os in
 
15285
    nonstopux*) version_type=nonstopux ;;
 
15286
    *)
 
15287
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15288
                version_type=linux
 
15289
        else
 
15290
                version_type=irix
 
15291
        fi ;;
 
15292
  esac
 
15293
  need_lib_prefix=no
 
15294
  need_version=no
 
15295
  soname_spec='${libname}${release}${shared_ext}$major'
 
15296
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15297
  case $host_os in
 
15298
  irix5* | nonstopux*)
 
15299
    libsuff= shlibsuff=
 
15300
    ;;
 
15301
  *)
 
15302
    case $LD in # libtool.m4 will add one of these switches to LD
 
15303
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15304
      libsuff= shlibsuff= libmagic=32-bit;;
 
15305
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15306
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15307
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15308
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15309
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15310
    esac
 
15311
    ;;
 
15312
  esac
 
15313
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15314
  shlibpath_overrides_runpath=no
 
15315
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15316
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15317
  hardcode_into_libs=yes
 
15318
  ;;
 
15319
 
 
15320
# No shared lib support for Linux oldld, aout, or coff.
 
15321
linux*oldld* | linux*aout* | linux*coff*)
 
15322
  dynamic_linker=no
 
15323
  ;;
 
15324
 
 
15325
# This must be Linux ELF.
 
15326
linux*)
 
15327
  version_type=linux
 
15328
  need_lib_prefix=no
 
15329
  need_version=no
 
15330
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15331
  soname_spec='${libname}${release}${shared_ext}$major'
 
15332
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15333
  shlibpath_var=LD_LIBRARY_PATH
 
15334
  shlibpath_overrides_runpath=no
 
15335
  # This implies no fast_install, which is unacceptable.
 
15336
  # Some rework will be needed to allow for fast_install
 
15337
  # before this can be enabled.
 
15338
  hardcode_into_libs=yes
 
15339
 
 
15340
  # Append ld.so.conf contents to the search path
 
15341
  if test -f /etc/ld.so.conf; then
 
15342
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
15343
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15344
  fi
 
15345
 
 
15346
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15347
  # powerpc, because MkLinux only supported shared libraries with the
 
15348
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15349
  # most powerpc-linux boxes support dynamic linking these days and
 
15350
  # people can always --disable-shared, the test was removed, and we
 
15351
  # assume the GNU/Linux dynamic linker is in use.
 
15352
  dynamic_linker='GNU/Linux ld.so'
 
15353
  ;;
 
15354
 
 
15355
netbsdelf*-gnu)
 
15356
  version_type=linux
 
15357
  need_lib_prefix=no
 
15358
  need_version=no
 
15359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15360
  soname_spec='${libname}${release}${shared_ext}$major'
 
15361
  shlibpath_var=LD_LIBRARY_PATH
 
15362
  shlibpath_overrides_runpath=no
 
15363
  hardcode_into_libs=yes
 
15364
  dynamic_linker='NetBSD ld.elf_so'
 
15365
  ;;
 
15366
 
 
15367
knetbsd*-gnu)
 
15368
  version_type=linux
 
15369
  need_lib_prefix=no
 
15370
  need_version=no
 
15371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15372
  soname_spec='${libname}${release}${shared_ext}$major'
 
15373
  shlibpath_var=LD_LIBRARY_PATH
 
15374
  shlibpath_overrides_runpath=no
 
15375
  hardcode_into_libs=yes
 
15376
  dynamic_linker='GNU ld.so'
 
15377
  ;;
 
15378
 
 
15379
netbsd*)
 
15380
  version_type=sunos
 
15381
  need_lib_prefix=no
 
15382
  need_version=no
 
15383
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15384
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15385
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15386
    dynamic_linker='NetBSD (a.out) ld.so'
 
15387
  else
 
15388
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15389
    soname_spec='${libname}${release}${shared_ext}$major'
 
15390
    dynamic_linker='NetBSD ld.elf_so'
 
15391
  fi
 
15392
  shlibpath_var=LD_LIBRARY_PATH
 
15393
  shlibpath_overrides_runpath=yes
 
15394
  hardcode_into_libs=yes
 
15395
  ;;
 
15396
 
 
15397
newsos6)
 
15398
  version_type=linux
 
15399
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15400
  shlibpath_var=LD_LIBRARY_PATH
 
15401
  shlibpath_overrides_runpath=yes
 
15402
  ;;
 
15403
 
 
15404
nto-qnx*)
 
15405
  version_type=linux
 
15406
  need_lib_prefix=no
 
15407
  need_version=no
 
15408
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15409
  soname_spec='${libname}${release}${shared_ext}$major'
 
15410
  shlibpath_var=LD_LIBRARY_PATH
 
15411
  shlibpath_overrides_runpath=yes
 
15412
  ;;
 
15413
 
 
15414
openbsd*)
 
15415
  version_type=sunos
 
15416
  need_lib_prefix=no
 
15417
  need_version=yes
 
15418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15419
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15420
  shlibpath_var=LD_LIBRARY_PATH
 
15421
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15422
    case $host_os in
 
15423
      openbsd2.[89] | openbsd2.[89].*)
 
15424
        shlibpath_overrides_runpath=no
 
15425
        ;;
 
15426
      *)
 
15427
        shlibpath_overrides_runpath=yes
 
15428
        ;;
 
15429
      esac
 
15430
  else
 
15431
    shlibpath_overrides_runpath=yes
 
15432
  fi
 
15433
  ;;
 
15434
 
 
15435
os2*)
 
15436
  libname_spec='$name'
 
15437
  shrext_cmds=".dll"
 
15438
  need_lib_prefix=no
 
15439
  library_names_spec='$libname${shared_ext} $libname.a'
 
15440
  dynamic_linker='OS/2 ld.exe'
 
15441
  shlibpath_var=LIBPATH
 
15442
  ;;
 
15443
 
 
15444
osf3* | osf4* | osf5*)
 
15445
  version_type=osf
 
15446
  need_lib_prefix=no
 
15447
  need_version=no
 
15448
  soname_spec='${libname}${release}${shared_ext}$major'
 
15449
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15450
  shlibpath_var=LD_LIBRARY_PATH
 
15451
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15452
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15453
  ;;
 
15454
 
 
15455
sco3.2v5*)
 
15456
  version_type=osf
 
15457
  soname_spec='${libname}${release}${shared_ext}$major'
 
15458
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15459
  shlibpath_var=LD_LIBRARY_PATH
 
15460
  ;;
 
15461
 
 
15462
solaris*)
 
15463
  version_type=linux
 
15464
  need_lib_prefix=no
 
15465
  need_version=no
 
15466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15467
  soname_spec='${libname}${release}${shared_ext}$major'
 
15468
  shlibpath_var=LD_LIBRARY_PATH
 
15469
  shlibpath_overrides_runpath=yes
 
15470
  hardcode_into_libs=yes
 
15471
  # ldd complains unless libraries are executable
 
15472
  postinstall_cmds='chmod +x $lib'
 
15473
  ;;
 
15474
 
 
15475
sunos4*)
 
15476
  version_type=sunos
 
15477
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15478
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15479
  shlibpath_var=LD_LIBRARY_PATH
 
15480
  shlibpath_overrides_runpath=yes
 
15481
  if test "$with_gnu_ld" = yes; then
 
15482
    need_lib_prefix=no
 
15483
  fi
 
15484
  need_version=yes
 
15485
  ;;
 
15486
 
 
15487
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15488
  version_type=linux
 
15489
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15490
  soname_spec='${libname}${release}${shared_ext}$major'
 
15491
  shlibpath_var=LD_LIBRARY_PATH
 
15492
  case $host_vendor in
 
15493
    sni)
 
15494
      shlibpath_overrides_runpath=no
 
15495
      need_lib_prefix=no
 
15496
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15497
      runpath_var=LD_RUN_PATH
 
15498
      ;;
 
15499
    siemens)
 
15500
      need_lib_prefix=no
 
15501
      ;;
 
15502
    motorola)
 
15503
      need_lib_prefix=no
 
15504
      need_version=no
 
15505
      shlibpath_overrides_runpath=no
 
15506
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15507
      ;;
 
15508
  esac
 
15509
  ;;
 
15510
 
 
15511
sysv4*MP*)
 
15512
  if test -d /usr/nec ;then
 
15513
    version_type=linux
 
15514
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15515
    soname_spec='$libname${shared_ext}.$major'
 
15516
    shlibpath_var=LD_LIBRARY_PATH
 
15517
  fi
 
15518
  ;;
 
15519
 
 
15520
uts4*)
 
15521
  version_type=linux
 
15522
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15523
  soname_spec='${libname}${release}${shared_ext}$major'
 
15524
  shlibpath_var=LD_LIBRARY_PATH
 
15525
  ;;
 
15526
 
 
15527
*)
 
15528
  dynamic_linker=no
 
15529
  ;;
 
15530
esac
 
15531
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15532
echo "${ECHO_T}$dynamic_linker" >&6
 
15533
test "$dynamic_linker" = no && can_build_shared=no
 
15534
 
 
15535
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15536
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15537
hardcode_action_F77=
 
15538
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15539
   test -n "$runpath_var F77" || \
 
15540
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15541
 
 
15542
  # We can hardcode non-existant directories.
 
15543
  if test "$hardcode_direct_F77" != no &&
 
15544
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15545
     # have to relink, otherwise we might link with an installed library
 
15546
     # when we should be linking with a yet-to-be-installed one
 
15547
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15548
     test "$hardcode_minus_L_F77" != no; then
 
15549
    # Linking always hardcodes the temporary library directory.
 
15550
    hardcode_action_F77=relink
 
15551
  else
 
15552
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15553
    hardcode_action_F77=immediate
 
15554
  fi
 
15555
else
 
15556
  # We cannot hardcode anything, or else we can only hardcode existing
 
15557
  # directories.
 
15558
  hardcode_action_F77=unsupported
 
15559
fi
 
15560
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15561
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15562
 
 
15563
if test "$hardcode_action_F77" = relink; then
 
15564
  # Fast installation is not supported
 
15565
  enable_fast_install=no
 
15566
elif test "$shlibpath_overrides_runpath" = yes ||
 
15567
     test "$enable_shared" = no; then
 
15568
  # Fast installation is not necessary
 
15569
  enable_fast_install=needless
 
15570
fi
 
15571
 
 
15572
striplib=
 
15573
old_striplib=
 
15574
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15575
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15576
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15577
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15578
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15579
  echo "$as_me:$LINENO: result: yes" >&5
 
15580
echo "${ECHO_T}yes" >&6
 
15581
else
 
15582
# FIXME - insert some real tests, host_os isn't really good enough
 
15583
  case $host_os in
 
15584
   darwin*)
 
15585
       if test -n "$STRIP" ; then
 
15586
         striplib="$STRIP -x"
 
15587
         echo "$as_me:$LINENO: result: yes" >&5
 
15588
echo "${ECHO_T}yes" >&6
 
15589
       else
 
15590
  echo "$as_me:$LINENO: result: no" >&5
 
15591
echo "${ECHO_T}no" >&6
 
15592
fi
 
15593
       ;;
 
15594
   *)
 
15595
  echo "$as_me:$LINENO: result: no" >&5
 
15596
echo "${ECHO_T}no" >&6
 
15597
    ;;
 
15598
  esac
 
15599
fi
 
15600
 
 
15601
 
 
15602
 
 
15603
# The else clause should only fire when bootstrapping the
 
15604
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15605
# with your package, and you will get complaints that there are
 
15606
# no rules to generate ltmain.sh.
 
15607
if test -f "$ltmain"; then
 
15608
  # See if we are running on zsh, and set the options which allow our commands through
 
15609
  # without removal of \ escapes.
 
15610
  if test -n "${ZSH_VERSION+set}" ; then
 
15611
    setopt NO_GLOB_SUBST
 
15612
  fi
 
15613
  # Now quote all the things that may contain metacharacters while being
 
15614
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15615
  # variables and quote the copies for generation of the libtool script.
 
15616
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15617
    SED SHELL STRIP \
 
15618
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15619
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15620
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15621
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15622
    lt_cv_sys_global_symbol_to_c_name_address \
 
15623
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15624
    old_postinstall_cmds old_postuninstall_cmds \
 
15625
    compiler_F77 \
 
15626
    CC_F77 \
 
15627
    LD_F77 \
 
15628
    lt_prog_compiler_wl_F77 \
 
15629
    lt_prog_compiler_pic_F77 \
 
15630
    lt_prog_compiler_static_F77 \
 
15631
    lt_prog_compiler_no_builtin_flag_F77 \
 
15632
    export_dynamic_flag_spec_F77 \
 
15633
    thread_safe_flag_spec_F77 \
 
15634
    whole_archive_flag_spec_F77 \
 
15635
    enable_shared_with_static_runtimes_F77 \
 
15636
    old_archive_cmds_F77 \
 
15637
    old_archive_from_new_cmds_F77 \
 
15638
    predep_objects_F77 \
 
15639
    postdep_objects_F77 \
 
15640
    predeps_F77 \
 
15641
    postdeps_F77 \
 
15642
    compiler_lib_search_path_F77 \
 
15643
    archive_cmds_F77 \
 
15644
    archive_expsym_cmds_F77 \
 
15645
    postinstall_cmds_F77 \
 
15646
    postuninstall_cmds_F77 \
 
15647
    old_archive_from_expsyms_cmds_F77 \
 
15648
    allow_undefined_flag_F77 \
 
15649
    no_undefined_flag_F77 \
 
15650
    export_symbols_cmds_F77 \
 
15651
    hardcode_libdir_flag_spec_F77 \
 
15652
    hardcode_libdir_flag_spec_ld_F77 \
 
15653
    hardcode_libdir_separator_F77 \
 
15654
    hardcode_automatic_F77 \
 
15655
    module_cmds_F77 \
 
15656
    module_expsym_cmds_F77 \
 
15657
    lt_cv_prog_compiler_c_o_F77 \
 
15658
    exclude_expsyms_F77 \
 
15659
    include_expsyms_F77; do
 
15660
 
 
15661
    case $var in
 
15662
    old_archive_cmds_F77 | \
 
15663
    old_archive_from_new_cmds_F77 | \
 
15664
    archive_cmds_F77 | \
 
15665
    archive_expsym_cmds_F77 | \
 
15666
    module_cmds_F77 | \
 
15667
    module_expsym_cmds_F77 | \
 
15668
    old_archive_from_expsyms_cmds_F77 | \
 
15669
    export_symbols_cmds_F77 | \
 
15670
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15671
    postinstall_cmds | postuninstall_cmds | \
 
15672
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15673
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15674
      # Double-quote double-evaled strings.
 
15675
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15676
      ;;
 
15677
    *)
 
15678
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15679
      ;;
 
15680
    esac
 
15681
  done
 
15682
 
 
15683
  case $lt_echo in
 
15684
  *'\$0 --fallback-echo"')
 
15685
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15686
    ;;
 
15687
  esac
 
15688
 
 
15689
cfgfile="$ofile"
 
15690
 
 
15691
  cat <<__EOF__ >> "$cfgfile"
 
15692
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15693
 
 
15694
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15695
 
 
15696
# Shell to use when invoking shell scripts.
 
15697
SHELL=$lt_SHELL
 
15698
 
 
15699
# Whether or not to build shared libraries.
 
15700
build_libtool_libs=$enable_shared
 
15701
 
 
15702
# Whether or not to build static libraries.
 
15703
build_old_libs=$enable_static
 
15704
 
 
15705
# Whether or not to add -lc for building shared libraries.
 
15706
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15707
 
 
15708
# Whether or not to disallow shared libs when runtime libs are static
 
15709
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15710
 
 
15711
# Whether or not to optimize for fast installation.
 
15712
fast_install=$enable_fast_install
 
15713
 
 
15714
# The host system.
 
15715
host_alias=$host_alias
 
15716
host=$host
 
15717
 
 
15718
# An echo program that does not interpret backslashes.
 
15719
echo=$lt_echo
 
15720
 
 
15721
# The archiver.
 
15722
AR=$lt_AR
 
15723
AR_FLAGS=$lt_AR_FLAGS
 
15724
 
 
15725
# A C compiler.
 
15726
LTCC=$lt_LTCC
 
15727
 
 
15728
# A language-specific compiler.
 
15729
CC=$lt_compiler_F77
 
15730
 
 
15731
# Is the compiler the GNU C compiler?
 
15732
with_gcc=$GCC_F77
 
15733
 
 
15734
# An ERE matcher.
 
15735
EGREP=$lt_EGREP
 
15736
 
 
15737
# The linker used to build libraries.
 
15738
LD=$lt_LD_F77
 
15739
 
 
15740
# Whether we need hard or soft links.
 
15741
LN_S=$lt_LN_S
 
15742
 
 
15743
# A BSD-compatible nm program.
 
15744
NM=$lt_NM
 
15745
 
 
15746
# A symbol stripping program
 
15747
STRIP=$lt_STRIP
 
15748
 
 
15749
# Used to examine libraries when file_magic_cmd begins "file"
 
15750
MAGIC_CMD=$MAGIC_CMD
 
15751
 
 
15752
# Used on cygwin: DLL creation program.
 
15753
DLLTOOL="$DLLTOOL"
 
15754
 
 
15755
# Used on cygwin: object dumper.
 
15756
OBJDUMP="$OBJDUMP"
 
15757
 
 
15758
# Used on cygwin: assembler.
 
15759
AS="$AS"
 
15760
 
 
15761
# The name of the directory that contains temporary libtool files.
 
15762
objdir=$objdir
 
15763
 
 
15764
# How to create reloadable object files.
 
15765
reload_flag=$lt_reload_flag
 
15766
reload_cmds=$lt_reload_cmds
 
15767
 
 
15768
# How to pass a linker flag through the compiler.
 
15769
wl=$lt_lt_prog_compiler_wl_F77
 
15770
 
 
15771
# Object file suffix (normally "o").
 
15772
objext="$ac_objext"
 
15773
 
 
15774
# Old archive suffix (normally "a").
 
15775
libext="$libext"
 
15776
 
 
15777
# Shared library suffix (normally ".so").
 
15778
shrext_cmds='$shrext_cmds'
 
15779
 
 
15780
# Executable file suffix (normally "").
 
15781
exeext="$exeext"
 
15782
 
 
15783
# Additional compiler flags for building library objects.
 
15784
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15785
pic_mode=$pic_mode
 
15786
 
 
15787
# What is the maximum length of a command?
 
15788
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15789
 
 
15790
# Does compiler simultaneously support -c and -o options?
 
15791
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15792
 
 
15793
# Must we lock files when doing compilation ?
 
15794
need_locks=$lt_need_locks
 
15795
 
 
15796
# Do we need the lib prefix for modules?
 
15797
need_lib_prefix=$need_lib_prefix
 
15798
 
 
15799
# Do we need a version for libraries?
 
15800
need_version=$need_version
 
15801
 
 
15802
# Whether dlopen is supported.
 
15803
dlopen_support=$enable_dlopen
 
15804
 
 
15805
# Whether dlopen of programs is supported.
 
15806
dlopen_self=$enable_dlopen_self
 
15807
 
 
15808
# Whether dlopen of statically linked programs is supported.
 
15809
dlopen_self_static=$enable_dlopen_self_static
 
15810
 
 
15811
# Compiler flag to prevent dynamic linking.
 
15812
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15813
 
 
15814
# Compiler flag to turn off builtin functions.
 
15815
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15816
 
 
15817
# Compiler flag to allow reflexive dlopens.
 
15818
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15819
 
 
15820
# Compiler flag to generate shared objects directly from archives.
 
15821
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15822
 
 
15823
# Compiler flag to generate thread-safe objects.
 
15824
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15825
 
 
15826
# Library versioning type.
 
15827
version_type=$version_type
 
15828
 
 
15829
# Format of library name prefix.
 
15830
libname_spec=$lt_libname_spec
 
15831
 
 
15832
# List of archive names.  First name is the real one, the rest are links.
 
15833
# The last name is the one that the linker finds with -lNAME.
 
15834
library_names_spec=$lt_library_names_spec
 
15835
 
 
15836
# The coded name of the library, if different from the real name.
 
15837
soname_spec=$lt_soname_spec
 
15838
 
 
15839
# Commands used to build and install an old-style archive.
 
15840
RANLIB=$lt_RANLIB
 
15841
old_archive_cmds=$lt_old_archive_cmds_F77
 
15842
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15843
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15844
 
 
15845
# Create an old-style archive from a shared archive.
 
15846
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15847
 
 
15848
# Create a temporary old-style archive to link instead of a shared archive.
 
15849
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15850
 
 
15851
# Commands used to build and install a shared archive.
 
15852
archive_cmds=$lt_archive_cmds_F77
 
15853
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15854
postinstall_cmds=$lt_postinstall_cmds
 
15855
postuninstall_cmds=$lt_postuninstall_cmds
 
15856
 
 
15857
# Commands used to build a loadable module (assumed same as above if empty)
 
15858
module_cmds=$lt_module_cmds_F77
 
15859
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15860
 
 
15861
# Commands to strip libraries.
 
15862
old_striplib=$lt_old_striplib
 
15863
striplib=$lt_striplib
 
15864
 
 
15865
# Dependencies to place before the objects being linked to create a
 
15866
# shared library.
 
15867
predep_objects=$lt_predep_objects_F77
 
15868
 
 
15869
# Dependencies to place after the objects being linked to create a
 
15870
# shared library.
 
15871
postdep_objects=$lt_postdep_objects_F77
 
15872
 
 
15873
# Dependencies to place before the objects being linked to create a
 
15874
# shared library.
 
15875
predeps=$lt_predeps_F77
 
15876
 
 
15877
# Dependencies to place after the objects being linked to create a
 
15878
# shared library.
 
15879
postdeps=$lt_postdeps_F77
 
15880
 
 
15881
# The library search path used internally by the compiler when linking
 
15882
# a shared library.
 
15883
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15884
 
 
15885
# Method to check whether dependent libraries are shared objects.
 
15886
deplibs_check_method=$lt_deplibs_check_method
 
15887
 
 
15888
# Command to use when deplibs_check_method == file_magic.
 
15889
file_magic_cmd=$lt_file_magic_cmd
 
15890
 
 
15891
# Flag that allows shared libraries with undefined symbols to be built.
 
15892
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15893
 
 
15894
# Flag that forces no undefined symbols.
 
15895
no_undefined_flag=$lt_no_undefined_flag_F77
 
15896
 
 
15897
# Commands used to finish a libtool library installation in a directory.
 
15898
finish_cmds=$lt_finish_cmds
 
15899
 
 
15900
# Same as above, but a single script fragment to be evaled but not shown.
 
15901
finish_eval=$lt_finish_eval
 
15902
 
 
15903
# Take the output of nm and produce a listing of raw symbols and C names.
 
15904
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15905
 
 
15906
# Transform the output of nm in a proper C declaration
 
15907
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15908
 
 
15909
# Transform the output of nm in a C name address pair
 
15910
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15911
 
 
15912
# This is the shared library runtime path variable.
 
15913
runpath_var=$runpath_var
 
15914
 
 
15915
# This is the shared library path variable.
 
15916
shlibpath_var=$shlibpath_var
 
15917
 
 
15918
# Is shlibpath searched before the hard-coded library search path?
 
15919
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15920
 
 
15921
# How to hardcode a shared library path into an executable.
 
15922
hardcode_action=$hardcode_action_F77
 
15923
 
 
15924
# Whether we should hardcode library paths into libraries.
 
15925
hardcode_into_libs=$hardcode_into_libs
 
15926
 
 
15927
# Flag to hardcode \$libdir into a binary during linking.
 
15928
# This must work even if \$libdir does not exist.
 
15929
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15930
 
 
15931
# If ld is used when linking, flag to hardcode \$libdir into
 
15932
# a binary during linking. This must work even if \$libdir does
 
15933
# not exist.
 
15934
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15935
 
 
15936
# Whether we need a single -rpath flag with a separated argument.
 
15937
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15938
 
 
15939
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15940
# resulting binary.
 
15941
hardcode_direct=$hardcode_direct_F77
 
15942
 
 
15943
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15944
# resulting binary.
 
15945
hardcode_minus_L=$hardcode_minus_L_F77
 
15946
 
 
15947
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15948
# the resulting binary.
 
15949
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15950
 
 
15951
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15952
# and all subsequent libraries and executables linked against it.
 
15953
hardcode_automatic=$hardcode_automatic_F77
 
15954
 
 
15955
# Variables whose values should be saved in libtool wrapper scripts and
 
15956
# restored at relink time.
 
15957
variables_saved_for_relink="$variables_saved_for_relink"
 
15958
 
 
15959
# Whether libtool must link a program against all its dependency libraries.
 
15960
link_all_deplibs=$link_all_deplibs_F77
 
15961
 
 
15962
# Compile-time system search path for libraries
 
15963
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15964
 
 
15965
# Run-time system search path for libraries
 
15966
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15967
 
 
15968
# Fix the shell variable \$srcfile for the compiler.
 
15969
fix_srcfile_path="$fix_srcfile_path_F77"
 
15970
 
 
15971
# Set to yes if exported symbols are required.
 
15972
always_export_symbols=$always_export_symbols_F77
 
15973
 
 
15974
# The commands to list exported symbols.
 
15975
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15976
 
 
15977
# The commands to extract the exported symbol list from a shared archive.
 
15978
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15979
 
 
15980
# Symbols that should not be listed in the preloaded symbols.
 
15981
exclude_expsyms=$lt_exclude_expsyms_F77
 
15982
 
 
15983
# Symbols that must always be exported.
 
15984
include_expsyms=$lt_include_expsyms_F77
 
15985
 
 
15986
# ### END LIBTOOL TAG CONFIG: $tagname
 
15987
 
 
15988
__EOF__
 
15989
 
 
15990
 
 
15991
else
 
15992
  # If there is no Makefile yet, we rely on a make rule to execute
 
15993
  # `config.status --recheck' to rerun these tests and create the
 
15994
  # libtool script then.
 
15995
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15996
  if test -f "$ltmain_in"; then
 
15997
    test -f Makefile && make "$ltmain"
 
15998
  fi
 
15999
fi
 
16000
 
 
16001
 
 
16002
ac_ext=cc
 
16003
ac_cpp='$CXXCPP $CPPFLAGS'
 
16004
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16005
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16006
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
16007
 
 
16008
CC="$lt_save_CC"
 
16009
 
 
16010
        else
 
16011
          tagname=""
 
16012
        fi
 
16013
        ;;
 
16014
 
 
16015
      GCJ)
 
16016
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16017
 
 
16018
 
 
16019
 
 
16020
# Source file extension for Java test sources.
 
16021
ac_ext=java
 
16022
 
 
16023
# Object file extension for compiled Java test sources.
 
16024
objext=o
 
16025
objext_GCJ=$objext
 
16026
 
 
16027
# Code to be used in simple compile tests
 
16028
lt_simple_compile_test_code="class foo {}\n"
 
16029
 
 
16030
# Code to be used in simple link tests
 
16031
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16032
 
 
16033
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16034
 
 
16035
# If no C compiler was specified, use CC.
 
16036
LTCC=${LTCC-"$CC"}
 
16037
 
 
16038
# Allow CC to be a program name with arguments.
 
16039
compiler=$CC
 
16040
 
 
16041
 
 
16042
# Allow CC to be a program name with arguments.
 
16043
lt_save_CC="$CC"
 
16044
CC=${GCJ-"gcj"}
 
16045
compiler=$CC
 
16046
compiler_GCJ=$CC
 
16047
 
 
16048
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16049
archive_cmds_need_lc_GCJ=no
 
16050
 
 
16051
 
 
16052
lt_prog_compiler_no_builtin_flag_GCJ=
 
16053
 
 
16054
if test "$GCC" = yes; then
 
16055
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16056
 
 
16057
 
 
16058
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16059
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16060
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16062
else
 
16063
  lt_cv_prog_compiler_rtti_exceptions=no
 
16064
  ac_outfile=conftest.$ac_objext
 
16065
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16066
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16067
   # Insert the option either (1) after the last *FLAGS variable, or
 
16068
   # (2) before a word containing "conftest.", or (3) at the end.
 
16069
   # Note that $ac_compile itself does not contain backslashes and begins
 
16070
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16071
   # The option is referenced via a variable to avoid confusing sed.
 
16072
   lt_compile=`echo "$ac_compile" | $SED \
 
16073
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16074
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16075
   -e 's:$: $lt_compiler_flag:'`
 
16076
   (eval echo "\"\$as_me:16076: $lt_compile\"" >&5)
 
16077
   (eval "$lt_compile" 2>conftest.err)
 
16078
   ac_status=$?
 
16079
   cat conftest.err >&5
 
16080
   echo "$as_me:16080: \$? = $ac_status" >&5
 
16081
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16082
     # The compiler can only warn and ignore the option if not recognized
 
16083
     # So say no if there are warnings
 
16084
     if test ! -s conftest.err; then
 
16085
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16086
     fi
 
16087
   fi
 
16088
   $rm conftest*
 
16089
 
 
16090
fi
 
16091
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16092
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16093
 
 
16094
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16095
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16096
else
 
16097
    :
 
16098
fi
 
16099
 
 
16100
fi
 
16101
 
 
16102
lt_prog_compiler_wl_GCJ=
 
16103
lt_prog_compiler_pic_GCJ=
 
16104
lt_prog_compiler_static_GCJ=
 
16105
 
 
16106
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16107
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16108
 
 
16109
  if test "$GCC" = yes; then
 
16110
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16111
    lt_prog_compiler_static_GCJ='-static'
 
16112
 
 
16113
    case $host_os in
 
16114
      aix*)
 
16115
      # All AIX code is PIC.
 
16116
      if test "$host_cpu" = ia64; then
 
16117
        # AIX 5 now supports IA64 processor
 
16118
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16119
      fi
 
16120
      ;;
 
16121
 
 
16122
    amigaos*)
 
16123
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16124
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16125
      # like `-m68040'.
 
16126
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16127
      ;;
 
16128
 
 
16129
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16130
      # PIC is the default for these OSes.
 
16131
      ;;
 
16132
 
 
16133
    mingw* | pw32* | os2*)
 
16134
      # This hack is so that the source file can tell whether it is being
 
16135
      # built for inclusion in a dll (and should export symbols for example).
 
16136
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16137
      ;;
 
16138
 
 
16139
    darwin* | rhapsody*)
 
16140
      # PIC is the default on this platform
 
16141
      # Common symbols not allowed in MH_DYLIB files
 
16142
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16143
      ;;
 
16144
 
 
16145
    msdosdjgpp*)
 
16146
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16147
      # on systems that don't support them.
 
16148
      lt_prog_compiler_can_build_shared_GCJ=no
 
16149
      enable_shared=no
 
16150
      ;;
 
16151
 
 
16152
    sysv4*MP*)
 
16153
      if test -d /usr/nec; then
 
16154
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16155
      fi
 
16156
      ;;
 
16157
 
 
16158
    hpux*)
 
16159
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16160
      # not for PA HP-UX.
 
16161
      case "$host_cpu" in
 
16162
      hppa*64*|ia64*)
 
16163
        # +Z the default
 
16164
        ;;
 
16165
      *)
 
16166
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16167
        ;;
 
16168
      esac
 
16169
      ;;
 
16170
 
 
16171
    *)
 
16172
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16173
      ;;
 
16174
    esac
 
16175
  else
 
16176
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16177
    case $host_os in
 
16178
    aix*)
 
16179
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16180
      if test "$host_cpu" = ia64; then
 
16181
        # AIX 5 now supports IA64 processor
 
16182
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16183
      else
 
16184
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16185
      fi
 
16186
      ;;
 
16187
 
 
16188
    mingw* | pw32* | os2*)
 
16189
      # This hack is so that the source file can tell whether it is being
 
16190
      # built for inclusion in a dll (and should export symbols for example).
 
16191
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16192
      ;;
 
16193
 
 
16194
    hpux9* | hpux10* | hpux11*)
 
16195
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16196
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16197
      # not for PA HP-UX.
 
16198
      case "$host_cpu" in
 
16199
      hppa*64*|ia64*)
 
16200
        # +Z the default
 
16201
        ;;
 
16202
      *)
 
16203
        lt_prog_compiler_pic_GCJ='+Z'
 
16204
        ;;
 
16205
      esac
 
16206
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16207
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16208
      ;;
 
16209
 
 
16210
    irix5* | irix6* | nonstopux*)
 
16211
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16212
      # PIC (with -KPIC) is the default.
 
16213
      lt_prog_compiler_static_GCJ='-non_shared'
 
16214
      ;;
 
16215
 
 
16216
    newsos6)
 
16217
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16218
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16219
      ;;
 
16220
 
 
16221
    linux*)
 
16222
      case $CC in
 
16223
      icc* | ecc*)
 
16224
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16225
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16226
        lt_prog_compiler_static_GCJ='-static'
 
16227
        ;;
 
16228
      ccc*)
 
16229
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16230
        # All Alpha code is PIC.
 
16231
        lt_prog_compiler_static_GCJ='-non_shared'
 
16232
        ;;
 
16233
      esac
 
16234
      ;;
 
16235
 
 
16236
    osf3* | osf4* | osf5*)
 
16237
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16238
      # All OSF/1 code is PIC.
 
16239
      lt_prog_compiler_static_GCJ='-non_shared'
 
16240
      ;;
 
16241
 
 
16242
    sco3.2v5*)
 
16243
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16244
      lt_prog_compiler_static_GCJ='-dn'
 
16245
      ;;
 
16246
 
 
16247
    solaris*)
 
16248
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16249
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16250
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16251
      ;;
 
16252
 
 
16253
    sunos4*)
 
16254
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16255
      lt_prog_compiler_pic_GCJ='-PIC'
 
16256
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16257
      ;;
 
16258
 
 
16259
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16260
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16261
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16262
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16263
      ;;
 
16264
 
 
16265
    sysv4*MP*)
 
16266
      if test -d /usr/nec ;then
 
16267
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16268
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16269
      fi
 
16270
      ;;
 
16271
 
 
16272
    uts4*)
 
16273
      lt_prog_compiler_pic_GCJ='-pic'
 
16274
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16275
      ;;
 
16276
 
 
16277
    *)
 
16278
      lt_prog_compiler_can_build_shared_GCJ=no
 
16279
      ;;
 
16280
    esac
 
16281
  fi
 
16282
 
 
16283
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16284
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16285
 
 
16286
#
 
16287
# Check to make sure the PIC flag actually works.
 
16288
#
 
16289
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16290
 
 
16291
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16292
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16293
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16295
else
 
16296
  lt_prog_compiler_pic_works_GCJ=no
 
16297
  ac_outfile=conftest.$ac_objext
 
16298
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16299
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16300
   # Insert the option either (1) after the last *FLAGS variable, or
 
16301
   # (2) before a word containing "conftest.", or (3) at the end.
 
16302
   # Note that $ac_compile itself does not contain backslashes and begins
 
16303
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16304
   # The option is referenced via a variable to avoid confusing sed.
 
16305
   lt_compile=`echo "$ac_compile" | $SED \
 
16306
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16307
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16308
   -e 's:$: $lt_compiler_flag:'`
 
16309
   (eval echo "\"\$as_me:16309: $lt_compile\"" >&5)
 
16310
   (eval "$lt_compile" 2>conftest.err)
 
16311
   ac_status=$?
 
16312
   cat conftest.err >&5
 
16313
   echo "$as_me:16313: \$? = $ac_status" >&5
 
16314
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16315
     # The compiler can only warn and ignore the option if not recognized
 
16316
     # So say no if there are warnings
 
16317
     if test ! -s conftest.err; then
 
16318
       lt_prog_compiler_pic_works_GCJ=yes
 
16319
     fi
 
16320
   fi
 
16321
   $rm conftest*
 
16322
 
 
16323
fi
 
16324
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16325
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16326
 
 
16327
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16328
    case $lt_prog_compiler_pic_GCJ in
 
16329
     "" | " "*) ;;
 
16330
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16331
     esac
 
16332
else
 
16333
    lt_prog_compiler_pic_GCJ=
 
16334
     lt_prog_compiler_can_build_shared_GCJ=no
 
16335
fi
 
16336
 
 
16337
fi
 
16338
case "$host_os" in
 
16339
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16340
  *djgpp*)
 
16341
    lt_prog_compiler_pic_GCJ=
 
16342
    ;;
 
16343
  *)
 
16344
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16345
    ;;
 
16346
esac
 
16347
 
 
16348
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16349
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16350
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16352
else
 
16353
  lt_cv_prog_compiler_c_o_GCJ=no
 
16354
   $rm -r conftest 2>/dev/null
 
16355
   mkdir conftest
 
16356
   cd conftest
 
16357
   mkdir out
 
16358
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16359
 
 
16360
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16361
   # Insert the option either (1) after the last *FLAGS variable, or
 
16362
   # (2) before a word containing "conftest.", or (3) at the end.
 
16363
   # Note that $ac_compile itself does not contain backslashes and begins
 
16364
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16365
   lt_compile=`echo "$ac_compile" | $SED \
 
16366
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16367
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16368
   -e 's:$: $lt_compiler_flag:'`
 
16369
   (eval echo "\"\$as_me:16369: $lt_compile\"" >&5)
 
16370
   (eval "$lt_compile" 2>out/conftest.err)
 
16371
   ac_status=$?
 
16372
   cat out/conftest.err >&5
 
16373
   echo "$as_me:16373: \$? = $ac_status" >&5
 
16374
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16375
   then
 
16376
     # The compiler can only warn and ignore the option if not recognized
 
16377
     # So say no if there are warnings
 
16378
     if test ! -s out/conftest.err; then
 
16379
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16380
     fi
 
16381
   fi
 
16382
   chmod u+w .
 
16383
   $rm conftest*
 
16384
   # SGI C++ compiler will create directory out/ii_files/ for
 
16385
   # template instantiation
 
16386
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16387
   $rm out/* && rmdir out
 
16388
   cd ..
 
16389
   rmdir conftest
 
16390
   $rm conftest*
 
16391
 
 
16392
fi
 
16393
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16394
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16395
 
 
16396
 
 
16397
hard_links="nottested"
 
16398
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16399
  # do not overwrite the value of need_locks provided by the user
 
16400
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16401
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16402
  hard_links=yes
 
16403
  $rm conftest*
 
16404
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16405
  touch conftest.a
 
16406
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16407
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16408
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16409
echo "${ECHO_T}$hard_links" >&6
 
16410
  if test "$hard_links" = no; then
 
16411
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16412
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16413
    need_locks=warn
 
16414
  fi
 
16415
else
 
16416
  need_locks=no
 
16417
fi
 
16418
 
 
16419
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16420
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16421
 
 
16422
  runpath_var=
 
16423
  allow_undefined_flag_GCJ=
 
16424
  enable_shared_with_static_runtimes_GCJ=no
 
16425
  archive_cmds_GCJ=
 
16426
  archive_expsym_cmds_GCJ=
 
16427
  old_archive_From_new_cmds_GCJ=
 
16428
  old_archive_from_expsyms_cmds_GCJ=
 
16429
  export_dynamic_flag_spec_GCJ=
 
16430
  whole_archive_flag_spec_GCJ=
 
16431
  thread_safe_flag_spec_GCJ=
 
16432
  hardcode_libdir_flag_spec_GCJ=
 
16433
  hardcode_libdir_flag_spec_ld_GCJ=
 
16434
  hardcode_libdir_separator_GCJ=
 
16435
  hardcode_direct_GCJ=no
 
16436
  hardcode_minus_L_GCJ=no
 
16437
  hardcode_shlibpath_var_GCJ=unsupported
 
16438
  link_all_deplibs_GCJ=unknown
 
16439
  hardcode_automatic_GCJ=no
 
16440
  module_cmds_GCJ=
 
16441
  module_expsym_cmds_GCJ=
 
16442
  always_export_symbols_GCJ=no
 
16443
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16444
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16445
  # included in the symbol list
 
16446
  include_expsyms_GCJ=
 
16447
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16448
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16449
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16450
  # as well as any symbol that contains `d'.
 
16451
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16452
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16453
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16454
  # the symbol is explicitly referenced.  Since portable code cannot
 
16455
  # rely on this symbol name, it's probably fine to never include it in
 
16456
  # preloaded symbol tables.
 
16457
  extract_expsyms_cmds=
 
16458
 
 
16459
  case $host_os in
 
16460
  cygwin* | mingw* | pw32*)
 
16461
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16462
    # When not using gcc, we currently assume that we are using
 
16463
    # Microsoft Visual C++.
 
16464
    if test "$GCC" != yes; then
 
16465
      with_gnu_ld=no
 
16466
    fi
 
16467
    ;;
 
16468
  openbsd*)
 
16469
    with_gnu_ld=no
 
16470
    ;;
 
16471
  esac
 
16472
 
 
16473
  ld_shlibs_GCJ=yes
 
16474
  if test "$with_gnu_ld" = yes; then
 
16475
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16476
    wlarc='${wl}'
 
16477
 
 
16478
    # See if GNU ld supports shared libraries.
 
16479
    case $host_os in
 
16480
    aix3* | aix4* | aix5*)
 
16481
      # On AIX/PPC, the GNU linker is very broken
 
16482
      if test "$host_cpu" != ia64; then
 
16483
        ld_shlibs_GCJ=no
 
16484
        cat <<EOF 1>&2
 
16485
 
 
16486
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16487
*** to be unable to reliably create shared libraries on AIX.
 
16488
*** Therefore, libtool is disabling shared libraries support.  If you
 
16489
*** really care for shared libraries, you may want to modify your PATH
 
16490
*** so that a non-GNU linker is found, and then restart.
 
16491
 
 
16492
EOF
 
16493
      fi
 
16494
      ;;
 
16495
 
 
16496
    amigaos*)
 
16497
      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)'
 
16498
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16499
      hardcode_minus_L_GCJ=yes
 
16500
 
 
16501
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16502
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16503
      # to version 4, is to share data among multiple programs linked
 
16504
      # with the same dynamic library.  Since this doesn't match the
 
16505
      # behavior of shared libraries on other platforms, we can't use
 
16506
      # them.
 
16507
      ld_shlibs_GCJ=no
 
16508
      ;;
 
16509
 
 
16510
    beos*)
 
16511
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16512
        allow_undefined_flag_GCJ=unsupported
 
16513
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16514
        # support --undefined.  This deserves some investigation.  FIXME
 
16515
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16516
      else
 
16517
        ld_shlibs_GCJ=no
 
16518
      fi
 
16519
      ;;
 
16520
 
 
16521
    cygwin* | mingw* | pw32*)
 
16522
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16523
      # as there is no search path for DLLs.
 
16524
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16525
      allow_undefined_flag_GCJ=unsupported
 
16526
      always_export_symbols_GCJ=no
 
16527
      enable_shared_with_static_runtimes_GCJ=yes
 
16528
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16529
 
 
16530
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16531
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16532
        # If the export-symbols file already is a .def file (1st line
 
16533
        # is EXPORTS), use it as is; otherwise, prepend...
 
16534
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16535
          cp $export_symbols $output_objdir/$soname.def;
 
16536
        else
 
16537
          echo EXPORTS > $output_objdir/$soname.def;
 
16538
          cat $export_symbols >> $output_objdir/$soname.def;
 
16539
        fi~
 
16540
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16541
      else
 
16542
        ld_shlibs=no
 
16543
      fi
 
16544
      ;;
 
16545
 
 
16546
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16547
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16548
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16549
        wlarc=
 
16550
      else
 
16551
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16552
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16553
      fi
 
16554
      ;;
 
16555
 
 
16556
    solaris* | sysv5*)
 
16557
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16558
        ld_shlibs_GCJ=no
 
16559
        cat <<EOF 1>&2
 
16560
 
 
16561
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16562
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16563
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16564
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16565
*** your PATH or compiler configuration so that the native linker is
 
16566
*** used, and then restart.
 
16567
 
 
16568
EOF
 
16569
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16570
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16571
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16572
      else
 
16573
        ld_shlibs_GCJ=no
 
16574
      fi
 
16575
      ;;
 
16576
 
 
16577
    sunos4*)
 
16578
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16579
      wlarc=
 
16580
      hardcode_direct_GCJ=yes
 
16581
      hardcode_shlibpath_var_GCJ=no
 
16582
      ;;
 
16583
 
 
16584
  linux*)
 
16585
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16586
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16587
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16588
      supports_anon_versioning=no
 
16589
      case `$LD -v 2>/dev/null` in
 
16590
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16591
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16592
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16593
        *\ 2.11.*) ;; # other 2.11 versions
 
16594
        *) supports_anon_versioning=yes ;;
 
16595
      esac
 
16596
      if test $supports_anon_versioning = yes; then
 
16597
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16598
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16599
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16600
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16601
      else
 
16602
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16603
      fi
 
16604
      link_all_deplibs_GCJ=no
 
16605
    else
 
16606
      ld_shlibs_GCJ=no
 
16607
    fi
 
16608
    ;;
 
16609
 
 
16610
    *)
 
16611
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16612
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16613
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16614
      else
 
16615
        ld_shlibs_GCJ=no
 
16616
      fi
 
16617
      ;;
 
16618
    esac
 
16619
 
 
16620
    if test "$ld_shlibs_GCJ" = yes; then
 
16621
      runpath_var=LD_RUN_PATH
 
16622
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16623
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16624
      # ancient GNU ld didn't support --whole-archive et. al.
 
16625
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16626
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16627
      else
 
16628
        whole_archive_flag_spec_GCJ=
 
16629
      fi
 
16630
    fi
 
16631
  else
 
16632
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16633
    case $host_os in
 
16634
    aix3*)
 
16635
      allow_undefined_flag_GCJ=unsupported
 
16636
      always_export_symbols_GCJ=yes
 
16637
      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'
 
16638
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16639
      # are no directories specified by -L.
 
16640
      hardcode_minus_L_GCJ=yes
 
16641
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16642
        # Neither direct hardcoding nor static linking is supported with a
 
16643
        # broken collect2.
 
16644
        hardcode_direct_GCJ=unsupported
 
16645
      fi
 
16646
      ;;
 
16647
 
 
16648
    aix4* | aix5*)
 
16649
      if test "$host_cpu" = ia64; then
 
16650
        # On IA64, the linker does run time linking by default, so we don't
 
16651
        # have to do anything special.
 
16652
        aix_use_runtimelinking=no
 
16653
        exp_sym_flag='-Bexport'
 
16654
        no_entry_flag=""
 
16655
      else
 
16656
        # If we're using GNU nm, then we don't want the "-C" option.
 
16657
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16658
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16659
          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'
 
16660
        else
 
16661
          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'
 
16662
        fi
 
16663
        aix_use_runtimelinking=no
 
16664
 
 
16665
        # Test if we are trying to use run time linking or normal
 
16666
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16667
        # need to do runtime linking.
 
16668
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16669
          for ld_flag in $LDFLAGS; do
 
16670
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16671
            aix_use_runtimelinking=yes
 
16672
            break
 
16673
          fi
 
16674
          done
 
16675
        esac
 
16676
 
 
16677
        exp_sym_flag='-bexport'
 
16678
        no_entry_flag='-bnoentry'
 
16679
      fi
 
16680
 
 
16681
      # When large executables or shared objects are built, AIX ld can
 
16682
      # have problems creating the table of contents.  If linking a library
 
16683
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16684
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16685
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16686
 
 
16687
      archive_cmds_GCJ=''
 
16688
      hardcode_direct_GCJ=yes
 
16689
      hardcode_libdir_separator_GCJ=':'
 
16690
      link_all_deplibs_GCJ=yes
 
16691
 
 
16692
      if test "$GCC" = yes; then
 
16693
        case $host_os in aix4.012|aix4.012.*)
 
16694
        # We only want to do this on AIX 4.2 and lower, the check
 
16695
        # below for broken collect2 doesn't work under 4.3+
 
16696
          collect2name=`${CC} -print-prog-name=collect2`
 
16697
          if test -f "$collect2name" && \
 
16698
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16699
          then
 
16700
          # We have reworked collect2
 
16701
          hardcode_direct_GCJ=yes
 
16702
          else
 
16703
          # We have old collect2
 
16704
          hardcode_direct_GCJ=unsupported
 
16705
          # It fails to find uninstalled libraries when the uninstalled
 
16706
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16707
          # to unsupported forces relinking
 
16708
          hardcode_minus_L_GCJ=yes
 
16709
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16710
          hardcode_libdir_separator_GCJ=
 
16711
          fi
 
16712
        esac
 
16713
        shared_flag='-shared'
 
16714
      else
 
16715
        # not using gcc
 
16716
        if test "$host_cpu" = ia64; then
 
16717
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16718
        # chokes on -Wl,-G. The following line is correct:
 
16719
          shared_flag='-G'
 
16720
        else
 
16721
        if test "$aix_use_runtimelinking" = yes; then
 
16722
            shared_flag='${wl}-G'
 
16723
          else
 
16724
            shared_flag='${wl}-bM:SRE'
 
16725
        fi
 
16726
        fi
 
16727
      fi
 
16728
 
 
16729
      # It seems that -bexpall does not export symbols beginning with
 
16730
      # underscore (_), so it is better to generate a list of symbols to export.
 
16731
      always_export_symbols_GCJ=yes
 
16732
      if test "$aix_use_runtimelinking" = yes; then
 
16733
        # Warning - without using the other runtime loading flags (-brtl),
 
16734
        # -berok will link without error, but may produce a broken library.
 
16735
        allow_undefined_flag_GCJ='-berok'
 
16736
       # Determine the default libpath from the value encoded in an empty executable.
 
16737
       cat >conftest.$ac_ext <<_ACEOF
 
16738
/* confdefs.h.  */
 
16739
_ACEOF
 
16740
cat confdefs.h >>conftest.$ac_ext
 
16741
cat >>conftest.$ac_ext <<_ACEOF
 
16742
/* end confdefs.h.  */
 
16743
 
 
16744
int
 
16745
main ()
 
16746
{
 
16747
 
 
16748
  ;
 
16749
  return 0;
 
16750
}
 
16751
_ACEOF
 
16752
rm -f conftest.$ac_objext conftest$ac_exeext
 
16753
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16754
  (eval $ac_link) 2>conftest.er1
 
16755
  ac_status=$?
 
16756
  grep -v '^ *+' conftest.er1 >conftest.err
 
16757
  rm -f conftest.er1
 
16758
  cat conftest.err >&5
 
16759
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16760
  (exit $ac_status); } &&
 
16761
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
16762
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16763
  (eval $ac_try) 2>&5
 
16764
  ac_status=$?
 
16765
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16766
  (exit $ac_status); }; } &&
 
16767
         { ac_try='test -s conftest$ac_exeext'
 
16768
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16769
  (eval $ac_try) 2>&5
 
16770
  ac_status=$?
 
16771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16772
  (exit $ac_status); }; }; then
 
16773
 
 
16774
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16775
}'`
 
16776
# Check for a 64-bit object if we didn't find anything.
 
16777
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16778
}'`; fi
 
16779
else
 
16780
  echo "$as_me: failed program was:" >&5
 
16781
sed 's/^/| /' conftest.$ac_ext >&5
 
16782
 
 
16783
fi
 
16784
rm -f conftest.err conftest.$ac_objext \
 
16785
      conftest$ac_exeext conftest.$ac_ext
 
16786
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16787
 
 
16788
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16789
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
16790
       else
 
16791
        if test "$host_cpu" = ia64; then
 
16792
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16793
          allow_undefined_flag_GCJ="-z nodefs"
 
16794
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
16795
        else
 
16796
         # Determine the default libpath from the value encoded in an empty executable.
 
16797
         cat >conftest.$ac_ext <<_ACEOF
 
16798
/* confdefs.h.  */
 
16799
_ACEOF
 
16800
cat confdefs.h >>conftest.$ac_ext
 
16801
cat >>conftest.$ac_ext <<_ACEOF
 
16802
/* end confdefs.h.  */
 
16803
 
 
16804
int
 
16805
main ()
 
16806
{
 
16807
 
 
16808
  ;
 
16809
  return 0;
 
16810
}
 
16811
_ACEOF
 
16812
rm -f conftest.$ac_objext conftest$ac_exeext
 
16813
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16814
  (eval $ac_link) 2>conftest.er1
 
16815
  ac_status=$?
 
16816
  grep -v '^ *+' conftest.er1 >conftest.err
 
16817
  rm -f conftest.er1
 
16818
  cat conftest.err >&5
 
16819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16820
  (exit $ac_status); } &&
 
16821
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
16822
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16823
  (eval $ac_try) 2>&5
 
16824
  ac_status=$?
 
16825
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16826
  (exit $ac_status); }; } &&
 
16827
         { ac_try='test -s conftest$ac_exeext'
 
16828
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16829
  (eval $ac_try) 2>&5
 
16830
  ac_status=$?
 
16831
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16832
  (exit $ac_status); }; }; then
 
16833
 
 
16834
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16835
}'`
 
16836
# Check for a 64-bit object if we didn't find anything.
 
16837
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16838
}'`; fi
 
16839
else
 
16840
  echo "$as_me: failed program was:" >&5
 
16841
sed 's/^/| /' conftest.$ac_ext >&5
 
16842
 
 
16843
fi
 
16844
rm -f conftest.err conftest.$ac_objext \
 
16845
      conftest$ac_exeext conftest.$ac_ext
 
16846
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16847
 
 
16848
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16849
          # Warning - without using the other run time loading flags,
 
16850
          # -berok will link without error, but may produce a broken library.
 
16851
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16852
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16853
          # -bexpall does not export symbols beginning with underscore (_)
 
16854
          always_export_symbols_GCJ=yes
 
16855
          # Exported symbols can be pulled into shared objects from archives
 
16856
          whole_archive_flag_spec_GCJ=' '
 
16857
          archive_cmds_need_lc_GCJ=yes
 
16858
          # This is similar to how AIX traditionally builds it's shared libraries.
 
16859
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16860
        fi
 
16861
      fi
 
16862
      ;;
 
16863
 
 
16864
    amigaos*)
 
16865
      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)'
 
16866
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16867
      hardcode_minus_L_GCJ=yes
 
16868
      # see comment about different semantics on the GNU ld section
 
16869
      ld_shlibs_GCJ=no
 
16870
      ;;
 
16871
 
 
16872
    bsdi4*)
 
16873
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16874
      ;;
 
16875
 
 
16876
    cygwin* | mingw* | pw32*)
 
16877
      # When not using gcc, we currently assume that we are using
 
16878
      # Microsoft Visual C++.
 
16879
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16880
      # no search path for DLLs.
 
16881
      hardcode_libdir_flag_spec_GCJ=' '
 
16882
      allow_undefined_flag_GCJ=unsupported
 
16883
      # Tell ltmain to make .lib files, not .a files.
 
16884
      libext=lib
 
16885
      # Tell ltmain to make .dll files, not .so files.
 
16886
      shrext_cmds=".dll"
 
16887
      # FIXME: Setting linknames here is a bad hack.
 
16888
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16889
      # The linker will automatically build a .lib file if we build a DLL.
 
16890
      old_archive_From_new_cmds_GCJ='true'
 
16891
      # FIXME: Should let the user specify the lib program.
 
16892
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16893
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
16894
      enable_shared_with_static_runtimes_GCJ=yes
 
16895
      ;;
 
16896
 
 
16897
    darwin* | rhapsody*)
 
16898
    if test "$GXX" = yes ; then
 
16899
      archive_cmds_need_lc_GCJ=no
 
16900
      case "$host_os" in
 
16901
      rhapsody* | darwin1.[012])
 
16902
        allow_undefined_flag_GCJ='-undefined suppress'
 
16903
        ;;
 
16904
      *) # Darwin 1.3 on
 
16905
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16906
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16907
      else
 
16908
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
16909
          10.[012])
 
16910
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
16911
            ;;
 
16912
          10.*)
 
16913
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
16914
            ;;
 
16915
        esac
 
16916
      fi
 
16917
        ;;
 
16918
      esac
 
16919
        lt_int_apple_cc_single_mod=no
 
16920
        output_verbose_link_cmd='echo'
 
16921
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
16922
          lt_int_apple_cc_single_mod=yes
 
16923
        fi
 
16924
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16925
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16926
        else
 
16927
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
 
16928
      fi
 
16929
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16930
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16931
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
16932
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16933
        else
 
16934
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16935
        fi
 
16936
          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}'
 
16937
      hardcode_direct_GCJ=no
 
16938
      hardcode_automatic_GCJ=yes
 
16939
      hardcode_shlibpath_var_GCJ=unsupported
 
16940
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
16941
      link_all_deplibs_GCJ=yes
 
16942
    else
 
16943
      ld_shlibs_GCJ=no
 
16944
    fi
 
16945
      ;;
 
16946
 
 
16947
    dgux*)
 
16948
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16949
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16950
      hardcode_shlibpath_var_GCJ=no
 
16951
      ;;
 
16952
 
 
16953
    freebsd1*)
 
16954
      ld_shlibs_GCJ=no
 
16955
      ;;
 
16956
 
 
16957
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16958
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16959
    # does not break anything, and helps significantly (at the cost of a little
 
16960
    # extra space).
 
16961
    freebsd2.2*)
 
16962
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16963
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16964
      hardcode_direct_GCJ=yes
 
16965
      hardcode_shlibpath_var_GCJ=no
 
16966
      ;;
 
16967
 
 
16968
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16969
    freebsd2*)
 
16970
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16971
      hardcode_direct_GCJ=yes
 
16972
      hardcode_minus_L_GCJ=yes
 
16973
      hardcode_shlibpath_var_GCJ=no
 
16974
      ;;
 
16975
 
 
16976
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16977
    freebsd* | kfreebsd*-gnu)
 
16978
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16979
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16980
      hardcode_direct_GCJ=yes
 
16981
      hardcode_shlibpath_var_GCJ=no
 
16982
      ;;
 
16983
 
 
16984
    hpux9*)
 
16985
      if test "$GCC" = yes; then
 
16986
        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'
 
16987
      else
 
16988
        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'
 
16989
      fi
 
16990
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16991
      hardcode_libdir_separator_GCJ=:
 
16992
      hardcode_direct_GCJ=yes
 
16993
 
 
16994
      # hardcode_minus_L: Not really in the search PATH,
 
16995
      # but as the default location of the library.
 
16996
      hardcode_minus_L_GCJ=yes
 
16997
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16998
      ;;
 
16999
 
 
17000
    hpux10* | hpux11*)
 
17001
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17002
        case "$host_cpu" in
 
17003
        hppa*64*|ia64*)
 
17004
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17005
          ;;
 
17006
        *)
 
17007
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17008
          ;;
 
17009
        esac
 
17010
      else
 
17011
        case "$host_cpu" in
 
17012
        hppa*64*|ia64*)
 
17013
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17014
          ;;
 
17015
        *)
 
17016
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17017
          ;;
 
17018
        esac
 
17019
      fi
 
17020
      if test "$with_gnu_ld" = no; then
 
17021
        case "$host_cpu" in
 
17022
        hppa*64*)
 
17023
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17024
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17025
          hardcode_libdir_separator_GCJ=:
 
17026
          hardcode_direct_GCJ=no
 
17027
          hardcode_shlibpath_var_GCJ=no
 
17028
          ;;
 
17029
        ia64*)
 
17030
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17031
          hardcode_direct_GCJ=no
 
17032
          hardcode_shlibpath_var_GCJ=no
 
17033
 
 
17034
          # hardcode_minus_L: Not really in the search PATH,
 
17035
          # but as the default location of the library.
 
17036
          hardcode_minus_L_GCJ=yes
 
17037
          ;;
 
17038
        *)
 
17039
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17040
          hardcode_libdir_separator_GCJ=:
 
17041
          hardcode_direct_GCJ=yes
 
17042
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17043
 
 
17044
          # hardcode_minus_L: Not really in the search PATH,
 
17045
          # but as the default location of the library.
 
17046
          hardcode_minus_L_GCJ=yes
 
17047
          ;;
 
17048
        esac
 
17049
      fi
 
17050
      ;;
 
17051
 
 
17052
    irix5* | irix6* | nonstopux*)
 
17053
      if test "$GCC" = yes; then
 
17054
        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'
 
17055
      else
 
17056
        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'
 
17057
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17058
      fi
 
17059
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17060
      hardcode_libdir_separator_GCJ=:
 
17061
      link_all_deplibs_GCJ=yes
 
17062
      ;;
 
17063
 
 
17064
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17065
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17066
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17067
      else
 
17068
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17069
      fi
 
17070
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17071
      hardcode_direct_GCJ=yes
 
17072
      hardcode_shlibpath_var_GCJ=no
 
17073
      ;;
 
17074
 
 
17075
    newsos6)
 
17076
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17077
      hardcode_direct_GCJ=yes
 
17078
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17079
      hardcode_libdir_separator_GCJ=:
 
17080
      hardcode_shlibpath_var_GCJ=no
 
17081
      ;;
 
17082
 
 
17083
    openbsd*)
 
17084
      hardcode_direct_GCJ=yes
 
17085
      hardcode_shlibpath_var_GCJ=no
 
17086
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17087
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17088
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17089
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17090
      else
 
17091
       case $host_os in
 
17092
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17093
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17094
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17095
           ;;
 
17096
         *)
 
17097
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17098
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17099
           ;;
 
17100
       esac
 
17101
      fi
 
17102
      ;;
 
17103
 
 
17104
    os2*)
 
17105
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17106
      hardcode_minus_L_GCJ=yes
 
17107
      allow_undefined_flag_GCJ=unsupported
 
17108
      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'
 
17109
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17110
      ;;
 
17111
 
 
17112
    osf3*)
 
17113
      if test "$GCC" = yes; then
 
17114
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17115
        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'
 
17116
      else
 
17117
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17118
        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'
 
17119
      fi
 
17120
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17121
      hardcode_libdir_separator_GCJ=:
 
17122
      ;;
 
17123
 
 
17124
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17125
      if test "$GCC" = yes; then
 
17126
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17127
        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'
 
17128
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17129
      else
 
17130
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17131
        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'
 
17132
        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~
 
17133
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
17134
 
 
17135
        # Both c and cxx compiler support -rpath directly
 
17136
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17137
      fi
 
17138
      hardcode_libdir_separator_GCJ=:
 
17139
      ;;
 
17140
 
 
17141
    sco3.2v5*)
 
17142
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17143
      hardcode_shlibpath_var_GCJ=no
 
17144
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17145
      runpath_var=LD_RUN_PATH
 
17146
      hardcode_runpath_var=yes
 
17147
      ;;
 
17148
 
 
17149
    solaris*)
 
17150
      no_undefined_flag_GCJ=' -z text'
 
17151
      if test "$GCC" = yes; then
 
17152
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17153
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17154
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17155
      else
 
17156
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17157
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17158
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17159
      fi
 
17160
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17161
      hardcode_shlibpath_var_GCJ=no
 
17162
      case $host_os in
 
17163
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17164
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17165
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17166
      esac
 
17167
      link_all_deplibs_GCJ=yes
 
17168
      ;;
 
17169
 
 
17170
    sunos4*)
 
17171
      if test "x$host_vendor" = xsequent; then
 
17172
        # Use $CC to link under sequent, because it throws in some extra .o
 
17173
        # files that make .init and .fini sections work.
 
17174
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17175
      else
 
17176
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17177
      fi
 
17178
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17179
      hardcode_direct_GCJ=yes
 
17180
      hardcode_minus_L_GCJ=yes
 
17181
      hardcode_shlibpath_var_GCJ=no
 
17182
      ;;
 
17183
 
 
17184
    sysv4)
 
17185
      case $host_vendor in
 
17186
        sni)
 
17187
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17188
          hardcode_direct_GCJ=yes # is this really true???
 
17189
        ;;
 
17190
        siemens)
 
17191
          ## LD is ld it makes a PLAMLIB
 
17192
          ## CC just makes a GrossModule.
 
17193
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17194
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17195
          hardcode_direct_GCJ=no
 
17196
        ;;
 
17197
        motorola)
 
17198
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17199
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17200
        ;;
 
17201
      esac
 
17202
      runpath_var='LD_RUN_PATH'
 
17203
      hardcode_shlibpath_var_GCJ=no
 
17204
      ;;
 
17205
 
 
17206
    sysv4.3*)
 
17207
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17208
      hardcode_shlibpath_var_GCJ=no
 
17209
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17210
      ;;
 
17211
 
 
17212
    sysv4*MP*)
 
17213
      if test -d /usr/nec; then
 
17214
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17215
        hardcode_shlibpath_var_GCJ=no
 
17216
        runpath_var=LD_RUN_PATH
 
17217
        hardcode_runpath_var=yes
 
17218
        ld_shlibs_GCJ=yes
 
17219
      fi
 
17220
      ;;
 
17221
 
 
17222
    sysv4.2uw2*)
 
17223
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17224
      hardcode_direct_GCJ=yes
 
17225
      hardcode_minus_L_GCJ=no
 
17226
      hardcode_shlibpath_var_GCJ=no
 
17227
      hardcode_runpath_var=yes
 
17228
      runpath_var=LD_RUN_PATH
 
17229
      ;;
 
17230
 
 
17231
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17232
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17233
      if test "$GCC" = yes; then
 
17234
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17235
      else
 
17236
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17237
      fi
 
17238
      runpath_var='LD_RUN_PATH'
 
17239
      hardcode_shlibpath_var_GCJ=no
 
17240
      ;;
 
17241
 
 
17242
    sysv5*)
 
17243
      no_undefined_flag_GCJ=' -z text'
 
17244
      # $CC -shared without GNU ld will not create a library from C++
 
17245
      # object files and a static libstdc++, better avoid it by now
 
17246
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17247
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17248
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17249
      hardcode_libdir_flag_spec_GCJ=
 
17250
      hardcode_shlibpath_var_GCJ=no
 
17251
      runpath_var='LD_RUN_PATH'
 
17252
      ;;
 
17253
 
 
17254
    uts4*)
 
17255
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17256
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17257
      hardcode_shlibpath_var_GCJ=no
 
17258
      ;;
 
17259
 
 
17260
    *)
 
17261
      ld_shlibs_GCJ=no
 
17262
      ;;
 
17263
    esac
 
17264
  fi
 
17265
 
 
17266
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17267
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17268
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17269
 
 
17270
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17271
if test "$GCC" = yes; then
 
17272
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17273
fi
 
17274
 
 
17275
#
 
17276
# Do we need to explicitly link libc?
 
17277
#
 
17278
case "x$archive_cmds_need_lc_GCJ" in
 
17279
x|xyes)
 
17280
  # Assume -lc should be added
 
17281
  archive_cmds_need_lc_GCJ=yes
 
17282
 
 
17283
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17284
    case $archive_cmds_GCJ in
 
17285
    *'~'*)
 
17286
      # FIXME: we may have to deal with multi-command sequences.
 
17287
      ;;
 
17288
    '$CC '*)
 
17289
      # Test whether the compiler implicitly links with -lc since on some
 
17290
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17291
      # to ld, don't add -lc before -lgcc.
 
17292
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17293
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17294
      $rm conftest*
 
17295
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17296
 
 
17297
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17298
  (eval $ac_compile) 2>&5
 
17299
  ac_status=$?
 
17300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17301
  (exit $ac_status); } 2>conftest.err; then
 
17302
        soname=conftest
 
17303
        lib=conftest
 
17304
        libobjs=conftest.$ac_objext
 
17305
        deplibs=
 
17306
        wl=$lt_prog_compiler_wl_GCJ
 
17307
        compiler_flags=-v
 
17308
        linker_flags=-v
 
17309
        verstring=
 
17310
        output_objdir=.
 
17311
        libname=conftest
 
17312
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17313
        allow_undefined_flag_GCJ=
 
17314
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17315
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17316
  ac_status=$?
 
17317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17318
  (exit $ac_status); }
 
17319
        then
 
17320
          archive_cmds_need_lc_GCJ=no
 
17321
        else
 
17322
          archive_cmds_need_lc_GCJ=yes
 
17323
        fi
 
17324
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17325
      else
 
17326
        cat conftest.err 1>&5
 
17327
      fi
 
17328
      $rm conftest*
 
17329
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17330
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17331
      ;;
 
17332
    esac
 
17333
  fi
 
17334
  ;;
 
17335
esac
 
17336
 
 
17337
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17338
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17339
library_names_spec=
 
17340
libname_spec='lib$name'
 
17341
soname_spec=
 
17342
shrext_cmds=".so"
 
17343
postinstall_cmds=
 
17344
postuninstall_cmds=
 
17345
finish_cmds=
 
17346
finish_eval=
 
17347
shlibpath_var=
 
17348
shlibpath_overrides_runpath=unknown
 
17349
version_type=none
 
17350
dynamic_linker="$host_os ld.so"
 
17351
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17352
if test "$GCC" = yes; then
 
17353
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17354
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17355
    # if the path contains ";" then we assume it to be the separator
 
17356
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17357
    # assumed that no part of a normal pathname contains ";" but that should
 
17358
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17359
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17360
  else
 
17361
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17362
  fi
 
17363
else
 
17364
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17365
fi
 
17366
need_lib_prefix=unknown
 
17367
hardcode_into_libs=no
 
17368
 
 
17369
# when you set need_version to no, make sure it does not cause -set_version
 
17370
# flags to be left without arguments
 
17371
need_version=unknown
 
17372
 
 
17373
case $host_os in
 
17374
aix3*)
 
17375
  version_type=linux
 
17376
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17377
  shlibpath_var=LIBPATH
 
17378
 
 
17379
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17380
  soname_spec='${libname}${release}${shared_ext}$major'
 
17381
  ;;
 
17382
 
 
17383
aix4* | aix5*)
 
17384
  version_type=linux
 
17385
  need_lib_prefix=no
 
17386
  need_version=no
 
17387
  hardcode_into_libs=yes
 
17388
  if test "$host_cpu" = ia64; then
 
17389
    # AIX 5 supports IA64
 
17390
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17391
    shlibpath_var=LD_LIBRARY_PATH
 
17392
  else
 
17393
    # With GCC up to 2.95.x, collect2 would create an import file
 
17394
    # for dependence libraries.  The import file would start with
 
17395
    # the line `#! .'.  This would cause the generated library to
 
17396
    # depend on `.', always an invalid library.  This was fixed in
 
17397
    # development snapshots of GCC prior to 3.0.
 
17398
    case $host_os in
 
17399
      aix4 | aix4.[01] | aix4.[01].*)
 
17400
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17401
           echo ' yes '
 
17402
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17403
        :
 
17404
      else
 
17405
        can_build_shared=no
 
17406
      fi
 
17407
      ;;
 
17408
    esac
 
17409
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17410
    # soname into executable. Probably we can add versioning support to
 
17411
    # collect2, so additional links can be useful in future.
 
17412
    if test "$aix_use_runtimelinking" = yes; then
 
17413
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17414
      # instead of lib<name>.a to let people know that these are not
 
17415
      # typical AIX shared libraries.
 
17416
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17417
    else
 
17418
      # We preserve .a as extension for shared libraries through AIX4.2
 
17419
      # and later when we are not doing run time linking.
 
17420
      library_names_spec='${libname}${release}.a $libname.a'
 
17421
      soname_spec='${libname}${release}${shared_ext}$major'
 
17422
    fi
 
17423
    shlibpath_var=LIBPATH
 
17424
  fi
 
17425
  ;;
 
17426
 
 
17427
amigaos*)
 
17428
  library_names_spec='$libname.ixlibrary $libname.a'
 
17429
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17430
  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'
 
17431
  ;;
 
17432
 
 
17433
beos*)
 
17434
  library_names_spec='${libname}${shared_ext}'
 
17435
  dynamic_linker="$host_os ld.so"
 
17436
  shlibpath_var=LIBRARY_PATH
 
17437
  ;;
 
17438
 
 
17439
bsdi4*)
 
17440
  version_type=linux
 
17441
  need_version=no
 
17442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17443
  soname_spec='${libname}${release}${shared_ext}$major'
 
17444
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17445
  shlibpath_var=LD_LIBRARY_PATH
 
17446
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17447
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17448
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17449
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17450
  # libtool to hard-code these into programs
 
17451
  ;;
 
17452
 
 
17453
cygwin* | mingw* | pw32*)
 
17454
  version_type=windows
 
17455
  shrext_cmds=".dll"
 
17456
  need_version=no
 
17457
  need_lib_prefix=no
 
17458
 
 
17459
  case $GCC,$host_os in
 
17460
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17461
    library_names_spec='$libname.dll.a'
 
17462
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17463
    postinstall_cmds='base_file=`basename \${file}`~
 
17464
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17465
      dldir=$destdir/`dirname \$dlpath`~
 
17466
      test -d \$dldir || mkdir -p \$dldir~
 
17467
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17468
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17469
      dlpath=$dir/\$dldll~
 
17470
       $rm \$dlpath'
 
17471
    shlibpath_overrides_runpath=yes
 
17472
 
 
17473
    case $host_os in
 
17474
    cygwin*)
 
17475
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17476
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17477
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17478
      ;;
 
17479
    mingw*)
 
17480
      # MinGW DLLs use traditional 'lib' prefix
 
17481
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17482
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17483
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17484
        # It is most probably a Windows format PATH printed by
 
17485
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17486
        # path with ; separators, and with drive letters. We can handle the
 
17487
        # drive letters (cygwin fileutils understands them), so leave them,
 
17488
        # especially as we might pass files found there to a mingw objdump,
 
17489
        # which wouldn't understand a cygwinified path. Ahh.
 
17490
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17491
      else
 
17492
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17493
      fi
 
17494
      ;;
 
17495
    pw32*)
 
17496
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17497
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17498
      ;;
 
17499
    esac
 
17500
    ;;
 
17501
 
 
17502
  *)
 
17503
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17504
    ;;
 
17505
  esac
 
17506
  dynamic_linker='Win32 ld.exe'
 
17507
  # FIXME: first we should search . and the directory the executable is in
 
17508
  shlibpath_var=PATH
 
17509
  ;;
 
17510
 
 
17511
darwin* | rhapsody*)
 
17512
  dynamic_linker="$host_os dyld"
 
17513
  version_type=darwin
 
17514
  need_lib_prefix=no
 
17515
  need_version=no
 
17516
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17517
  soname_spec='${libname}${release}${major}$shared_ext'
 
17518
  shlibpath_overrides_runpath=yes
 
17519
  shlibpath_var=DYLD_LIBRARY_PATH
 
17520
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
17521
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17522
  if test "$GCC" = yes; then
 
17523
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17524
  else
 
17525
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17526
  fi
 
17527
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17528
  ;;
 
17529
 
 
17530
dgux*)
 
17531
  version_type=linux
 
17532
  need_lib_prefix=no
 
17533
  need_version=no
 
17534
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17535
  soname_spec='${libname}${release}${shared_ext}$major'
 
17536
  shlibpath_var=LD_LIBRARY_PATH
 
17537
  ;;
 
17538
 
 
17539
freebsd1*)
 
17540
  dynamic_linker=no
 
17541
  ;;
 
17542
 
 
17543
kfreebsd*-gnu)
 
17544
  version_type=linux
 
17545
  need_lib_prefix=no
 
17546
  need_version=no
 
17547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17548
  soname_spec='${libname}${release}${shared_ext}$major'
 
17549
  shlibpath_var=LD_LIBRARY_PATH
 
17550
  shlibpath_overrides_runpath=no
 
17551
  hardcode_into_libs=yes
 
17552
  dynamic_linker='GNU ld.so'
 
17553
  ;;
 
17554
 
 
17555
freebsd*)
 
17556
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17557
  version_type=freebsd-$objformat
 
17558
  case $version_type in
 
17559
    freebsd-elf*)
 
17560
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17561
      need_version=no
 
17562
      need_lib_prefix=no
 
17563
      ;;
 
17564
    freebsd-*)
 
17565
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17566
      need_version=yes
 
17567
      ;;
 
17568
  esac
 
17569
  shlibpath_var=LD_LIBRARY_PATH
 
17570
  case $host_os in
 
17571
  freebsd2*)
 
17572
    shlibpath_overrides_runpath=yes
 
17573
    ;;
 
17574
  freebsd3.01* | freebsdelf3.01*)
 
17575
    shlibpath_overrides_runpath=yes
 
17576
    hardcode_into_libs=yes
 
17577
    ;;
 
17578
  *) # from 3.2 on
 
17579
    shlibpath_overrides_runpath=no
 
17580
    hardcode_into_libs=yes
 
17581
    ;;
 
17582
  esac
 
17583
  ;;
 
17584
 
 
17585
gnu*)
 
17586
  version_type=linux
 
17587
  need_lib_prefix=no
 
17588
  need_version=no
 
17589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17590
  soname_spec='${libname}${release}${shared_ext}$major'
 
17591
  shlibpath_var=LD_LIBRARY_PATH
 
17592
  hardcode_into_libs=yes
 
17593
  ;;
 
17594
 
 
17595
hpux9* | hpux10* | hpux11*)
 
17596
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17597
  # link against other versions.
 
17598
  version_type=sunos
 
17599
  need_lib_prefix=no
 
17600
  need_version=no
 
17601
  case "$host_cpu" in
 
17602
  ia64*)
 
17603
    shrext_cmds='.so'
 
17604
    hardcode_into_libs=yes
 
17605
    dynamic_linker="$host_os dld.so"
 
17606
    shlibpath_var=LD_LIBRARY_PATH
 
17607
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17608
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17609
    soname_spec='${libname}${release}${shared_ext}$major'
 
17610
    if test "X$HPUX_IA64_MODE" = X32; then
 
17611
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17612
    else
 
17613
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17614
    fi
 
17615
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17616
    ;;
 
17617
   hppa*64*)
 
17618
     shrext_cmds='.sl'
 
17619
     hardcode_into_libs=yes
 
17620
     dynamic_linker="$host_os dld.sl"
 
17621
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17622
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17623
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17624
     soname_spec='${libname}${release}${shared_ext}$major'
 
17625
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17626
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17627
     ;;
 
17628
   *)
 
17629
    shrext_cmds='.sl'
 
17630
    dynamic_linker="$host_os dld.sl"
 
17631
    shlibpath_var=SHLIB_PATH
 
17632
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17633
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17634
    soname_spec='${libname}${release}${shared_ext}$major'
 
17635
    ;;
 
17636
  esac
 
17637
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17638
  postinstall_cmds='chmod 555 $lib'
 
17639
  ;;
 
17640
 
 
17641
irix5* | irix6* | nonstopux*)
 
17642
  case $host_os in
 
17643
    nonstopux*) version_type=nonstopux ;;
 
17644
    *)
 
17645
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17646
                version_type=linux
 
17647
        else
 
17648
                version_type=irix
 
17649
        fi ;;
 
17650
  esac
 
17651
  need_lib_prefix=no
 
17652
  need_version=no
 
17653
  soname_spec='${libname}${release}${shared_ext}$major'
 
17654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17655
  case $host_os in
 
17656
  irix5* | nonstopux*)
 
17657
    libsuff= shlibsuff=
 
17658
    ;;
 
17659
  *)
 
17660
    case $LD in # libtool.m4 will add one of these switches to LD
 
17661
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17662
      libsuff= shlibsuff= libmagic=32-bit;;
 
17663
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17664
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17665
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17666
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17667
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17668
    esac
 
17669
    ;;
 
17670
  esac
 
17671
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17672
  shlibpath_overrides_runpath=no
 
17673
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17674
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17675
  hardcode_into_libs=yes
 
17676
  ;;
 
17677
 
 
17678
# No shared lib support for Linux oldld, aout, or coff.
 
17679
linux*oldld* | linux*aout* | linux*coff*)
 
17680
  dynamic_linker=no
 
17681
  ;;
 
17682
 
 
17683
# This must be Linux ELF.
 
17684
linux*)
 
17685
  version_type=linux
 
17686
  need_lib_prefix=no
 
17687
  need_version=no
 
17688
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17689
  soname_spec='${libname}${release}${shared_ext}$major'
 
17690
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17691
  shlibpath_var=LD_LIBRARY_PATH
 
17692
  shlibpath_overrides_runpath=no
 
17693
  # This implies no fast_install, which is unacceptable.
 
17694
  # Some rework will be needed to allow for fast_install
 
17695
  # before this can be enabled.
 
17696
  hardcode_into_libs=yes
 
17697
 
 
17698
  # Append ld.so.conf contents to the search path
 
17699
  if test -f /etc/ld.so.conf; then
 
17700
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
17701
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17702
  fi
 
17703
 
 
17704
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17705
  # powerpc, because MkLinux only supported shared libraries with the
 
17706
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17707
  # most powerpc-linux boxes support dynamic linking these days and
 
17708
  # people can always --disable-shared, the test was removed, and we
 
17709
  # assume the GNU/Linux dynamic linker is in use.
 
17710
  dynamic_linker='GNU/Linux ld.so'
 
17711
  ;;
 
17712
 
 
17713
netbsdelf*-gnu)
 
17714
  version_type=linux
 
17715
  need_lib_prefix=no
 
17716
  need_version=no
 
17717
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17718
  soname_spec='${libname}${release}${shared_ext}$major'
 
17719
  shlibpath_var=LD_LIBRARY_PATH
 
17720
  shlibpath_overrides_runpath=no
 
17721
  hardcode_into_libs=yes
 
17722
  dynamic_linker='NetBSD ld.elf_so'
 
17723
  ;;
 
17724
 
 
17725
knetbsd*-gnu)
 
17726
  version_type=linux
 
17727
  need_lib_prefix=no
 
17728
  need_version=no
 
17729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17730
  soname_spec='${libname}${release}${shared_ext}$major'
 
17731
  shlibpath_var=LD_LIBRARY_PATH
 
17732
  shlibpath_overrides_runpath=no
 
17733
  hardcode_into_libs=yes
 
17734
  dynamic_linker='GNU ld.so'
 
17735
  ;;
 
17736
 
 
17737
netbsd*)
 
17738
  version_type=sunos
 
17739
  need_lib_prefix=no
 
17740
  need_version=no
 
17741
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17742
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17743
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17744
    dynamic_linker='NetBSD (a.out) ld.so'
 
17745
  else
 
17746
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17747
    soname_spec='${libname}${release}${shared_ext}$major'
 
17748
    dynamic_linker='NetBSD ld.elf_so'
 
17749
  fi
 
17750
  shlibpath_var=LD_LIBRARY_PATH
 
17751
  shlibpath_overrides_runpath=yes
 
17752
  hardcode_into_libs=yes
 
17753
  ;;
 
17754
 
 
17755
newsos6)
 
17756
  version_type=linux
 
17757
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17758
  shlibpath_var=LD_LIBRARY_PATH
 
17759
  shlibpath_overrides_runpath=yes
 
17760
  ;;
 
17761
 
 
17762
nto-qnx*)
 
17763
  version_type=linux
 
17764
  need_lib_prefix=no
 
17765
  need_version=no
 
17766
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17767
  soname_spec='${libname}${release}${shared_ext}$major'
 
17768
  shlibpath_var=LD_LIBRARY_PATH
 
17769
  shlibpath_overrides_runpath=yes
 
17770
  ;;
 
17771
 
 
17772
openbsd*)
 
17773
  version_type=sunos
 
17774
  need_lib_prefix=no
 
17775
  need_version=yes
 
17776
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17777
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17778
  shlibpath_var=LD_LIBRARY_PATH
 
17779
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17780
    case $host_os in
 
17781
      openbsd2.[89] | openbsd2.[89].*)
 
17782
        shlibpath_overrides_runpath=no
 
17783
        ;;
 
17784
      *)
 
17785
        shlibpath_overrides_runpath=yes
 
17786
        ;;
 
17787
      esac
 
17788
  else
 
17789
    shlibpath_overrides_runpath=yes
 
17790
  fi
 
17791
  ;;
 
17792
 
 
17793
os2*)
 
17794
  libname_spec='$name'
 
17795
  shrext_cmds=".dll"
 
17796
  need_lib_prefix=no
 
17797
  library_names_spec='$libname${shared_ext} $libname.a'
 
17798
  dynamic_linker='OS/2 ld.exe'
 
17799
  shlibpath_var=LIBPATH
 
17800
  ;;
 
17801
 
 
17802
osf3* | osf4* | osf5*)
 
17803
  version_type=osf
 
17804
  need_lib_prefix=no
 
17805
  need_version=no
 
17806
  soname_spec='${libname}${release}${shared_ext}$major'
 
17807
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17808
  shlibpath_var=LD_LIBRARY_PATH
 
17809
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17810
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17811
  ;;
 
17812
 
 
17813
sco3.2v5*)
 
17814
  version_type=osf
 
17815
  soname_spec='${libname}${release}${shared_ext}$major'
 
17816
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17817
  shlibpath_var=LD_LIBRARY_PATH
 
17818
  ;;
 
17819
 
 
17820
solaris*)
 
17821
  version_type=linux
 
17822
  need_lib_prefix=no
 
17823
  need_version=no
 
17824
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17825
  soname_spec='${libname}${release}${shared_ext}$major'
 
17826
  shlibpath_var=LD_LIBRARY_PATH
 
17827
  shlibpath_overrides_runpath=yes
 
17828
  hardcode_into_libs=yes
 
17829
  # ldd complains unless libraries are executable
 
17830
  postinstall_cmds='chmod +x $lib'
 
17831
  ;;
 
17832
 
 
17833
sunos4*)
 
17834
  version_type=sunos
 
17835
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17836
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17837
  shlibpath_var=LD_LIBRARY_PATH
 
17838
  shlibpath_overrides_runpath=yes
 
17839
  if test "$with_gnu_ld" = yes; then
 
17840
    need_lib_prefix=no
 
17841
  fi
 
17842
  need_version=yes
 
17843
  ;;
 
17844
 
 
17845
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17846
  version_type=linux
 
17847
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17848
  soname_spec='${libname}${release}${shared_ext}$major'
 
17849
  shlibpath_var=LD_LIBRARY_PATH
 
17850
  case $host_vendor in
 
17851
    sni)
 
17852
      shlibpath_overrides_runpath=no
 
17853
      need_lib_prefix=no
 
17854
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17855
      runpath_var=LD_RUN_PATH
 
17856
      ;;
 
17857
    siemens)
 
17858
      need_lib_prefix=no
 
17859
      ;;
 
17860
    motorola)
 
17861
      need_lib_prefix=no
 
17862
      need_version=no
 
17863
      shlibpath_overrides_runpath=no
 
17864
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17865
      ;;
 
17866
  esac
 
17867
  ;;
 
17868
 
 
17869
sysv4*MP*)
 
17870
  if test -d /usr/nec ;then
 
17871
    version_type=linux
 
17872
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17873
    soname_spec='$libname${shared_ext}.$major'
 
17874
    shlibpath_var=LD_LIBRARY_PATH
 
17875
  fi
 
17876
  ;;
 
17877
 
 
17878
uts4*)
 
17879
  version_type=linux
 
17880
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17881
  soname_spec='${libname}${release}${shared_ext}$major'
 
17882
  shlibpath_var=LD_LIBRARY_PATH
 
17883
  ;;
 
17884
 
 
17885
*)
 
17886
  dynamic_linker=no
 
17887
  ;;
 
17888
esac
 
17889
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17890
echo "${ECHO_T}$dynamic_linker" >&6
 
17891
test "$dynamic_linker" = no && can_build_shared=no
 
17892
 
 
17893
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17894
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17895
hardcode_action_GCJ=
 
17896
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17897
   test -n "$runpath_var GCJ" || \
 
17898
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
17899
 
 
17900
  # We can hardcode non-existant directories.
 
17901
  if test "$hardcode_direct_GCJ" != no &&
 
17902
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17903
     # have to relink, otherwise we might link with an installed library
 
17904
     # when we should be linking with a yet-to-be-installed one
 
17905
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17906
     test "$hardcode_minus_L_GCJ" != no; then
 
17907
    # Linking always hardcodes the temporary library directory.
 
17908
    hardcode_action_GCJ=relink
 
17909
  else
 
17910
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17911
    hardcode_action_GCJ=immediate
 
17912
  fi
 
17913
else
 
17914
  # We cannot hardcode anything, or else we can only hardcode existing
 
17915
  # directories.
 
17916
  hardcode_action_GCJ=unsupported
 
17917
fi
 
17918
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17919
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17920
 
 
17921
if test "$hardcode_action_GCJ" = relink; then
 
17922
  # Fast installation is not supported
 
17923
  enable_fast_install=no
 
17924
elif test "$shlibpath_overrides_runpath" = yes ||
 
17925
     test "$enable_shared" = no; then
 
17926
  # Fast installation is not necessary
 
17927
  enable_fast_install=needless
 
17928
fi
 
17929
 
 
17930
striplib=
 
17931
old_striplib=
 
17932
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17933
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17934
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17935
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17936
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17937
  echo "$as_me:$LINENO: result: yes" >&5
 
17938
echo "${ECHO_T}yes" >&6
 
17939
else
 
17940
# FIXME - insert some real tests, host_os isn't really good enough
 
17941
  case $host_os in
 
17942
   darwin*)
 
17943
       if test -n "$STRIP" ; then
 
17944
         striplib="$STRIP -x"
 
17945
         echo "$as_me:$LINENO: result: yes" >&5
 
17946
echo "${ECHO_T}yes" >&6
 
17947
       else
 
17948
  echo "$as_me:$LINENO: result: no" >&5
 
17949
echo "${ECHO_T}no" >&6
 
17950
fi
 
17951
       ;;
 
17952
   *)
 
17953
  echo "$as_me:$LINENO: result: no" >&5
 
17954
echo "${ECHO_T}no" >&6
 
17955
    ;;
 
17956
  esac
 
17957
fi
 
17958
 
 
17959
if test "x$enable_dlopen" != xyes; then
 
17960
  enable_dlopen=unknown
 
17961
  enable_dlopen_self=unknown
 
17962
  enable_dlopen_self_static=unknown
 
17963
else
 
17964
  lt_cv_dlopen=no
 
17965
  lt_cv_dlopen_libs=
 
17966
 
 
17967
  case $host_os in
 
17968
  beos*)
 
17969
    lt_cv_dlopen="load_add_on"
 
17970
    lt_cv_dlopen_libs=
 
17971
    lt_cv_dlopen_self=yes
 
17972
    ;;
 
17973
 
 
17974
  mingw* | pw32*)
 
17975
    lt_cv_dlopen="LoadLibrary"
 
17976
    lt_cv_dlopen_libs=
 
17977
   ;;
 
17978
 
 
17979
  cygwin*)
 
17980
    lt_cv_dlopen="dlopen"
 
17981
    lt_cv_dlopen_libs=
 
17982
   ;;
 
17983
 
 
17984
  darwin*)
 
17985
  # if libdl is installed we need to link against it
 
17986
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17987
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17988
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17990
else
 
17991
  ac_check_lib_save_LIBS=$LIBS
 
17992
LIBS="-ldl  $LIBS"
 
17993
cat >conftest.$ac_ext <<_ACEOF
 
17994
/* confdefs.h.  */
 
17995
_ACEOF
 
17996
cat confdefs.h >>conftest.$ac_ext
 
17997
cat >>conftest.$ac_ext <<_ACEOF
 
17998
/* end confdefs.h.  */
 
17999
 
 
18000
/* Override any gcc2 internal prototype to avoid an error.  */
 
18001
#ifdef __cplusplus
 
18002
extern "C"
 
18003
#endif
 
18004
/* We use char because int might match the return type of a gcc2
 
18005
   builtin and then its argument prototype would still apply.  */
 
18006
char dlopen ();
 
18007
int
 
18008
main ()
 
18009
{
 
18010
dlopen ();
 
18011
  ;
 
18012
  return 0;
 
18013
}
 
18014
_ACEOF
 
18015
rm -f conftest.$ac_objext conftest$ac_exeext
 
18016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18017
  (eval $ac_link) 2>conftest.er1
 
18018
  ac_status=$?
 
18019
  grep -v '^ *+' conftest.er1 >conftest.err
 
18020
  rm -f conftest.er1
 
18021
  cat conftest.err >&5
 
18022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18023
  (exit $ac_status); } &&
 
18024
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18026
  (eval $ac_try) 2>&5
 
18027
  ac_status=$?
 
18028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18029
  (exit $ac_status); }; } &&
 
18030
         { ac_try='test -s conftest$ac_exeext'
 
18031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18032
  (eval $ac_try) 2>&5
 
18033
  ac_status=$?
 
18034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18035
  (exit $ac_status); }; }; then
 
18036
  ac_cv_lib_dl_dlopen=yes
 
18037
else
 
18038
  echo "$as_me: failed program was:" >&5
 
18039
sed 's/^/| /' conftest.$ac_ext >&5
 
18040
 
 
18041
ac_cv_lib_dl_dlopen=no
 
18042
fi
 
18043
rm -f conftest.err conftest.$ac_objext \
 
18044
      conftest$ac_exeext conftest.$ac_ext
 
18045
LIBS=$ac_check_lib_save_LIBS
 
18046
fi
 
18047
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18048
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18049
if test $ac_cv_lib_dl_dlopen = yes; then
 
18050
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18051
else
 
18052
 
 
18053
    lt_cv_dlopen="dyld"
 
18054
    lt_cv_dlopen_libs=
 
18055
    lt_cv_dlopen_self=yes
 
18056
 
 
18057
fi
 
18058
 
 
18059
   ;;
 
18060
 
 
18061
  *)
 
18062
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18063
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18064
if test "${ac_cv_func_shl_load+set}" = set; then
 
18065
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18066
else
 
18067
  cat >conftest.$ac_ext <<_ACEOF
 
18068
/* confdefs.h.  */
 
18069
_ACEOF
 
18070
cat confdefs.h >>conftest.$ac_ext
 
18071
cat >>conftest.$ac_ext <<_ACEOF
 
18072
/* end confdefs.h.  */
 
18073
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18074
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18075
#define shl_load innocuous_shl_load
 
18076
 
 
18077
/* System header to define __stub macros and hopefully few prototypes,
 
18078
    which can conflict with char shl_load (); below.
 
18079
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18080
    <limits.h> exists even on freestanding compilers.  */
 
18081
 
 
18082
#ifdef __STDC__
 
18083
# include <limits.h>
 
18084
#else
 
18085
# include <assert.h>
 
18086
#endif
 
18087
 
 
18088
#undef shl_load
 
18089
 
 
18090
/* Override any gcc2 internal prototype to avoid an error.  */
 
18091
#ifdef __cplusplus
 
18092
extern "C"
 
18093
{
 
18094
#endif
 
18095
/* We use char because int might match the return type of a gcc2
 
18096
   builtin and then its argument prototype would still apply.  */
 
18097
char shl_load ();
 
18098
/* The GNU C library defines this for functions which it implements
 
18099
    to always fail with ENOSYS.  Some functions are actually named
 
18100
    something starting with __ and the normal name is an alias.  */
 
18101
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18102
choke me
 
18103
#else
 
18104
char (*f) () = shl_load;
 
18105
#endif
 
18106
#ifdef __cplusplus
 
18107
}
 
18108
#endif
 
18109
 
 
18110
int
 
18111
main ()
 
18112
{
 
18113
return f != shl_load;
 
18114
  ;
 
18115
  return 0;
 
18116
}
 
18117
_ACEOF
 
18118
rm -f conftest.$ac_objext conftest$ac_exeext
 
18119
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18120
  (eval $ac_link) 2>conftest.er1
 
18121
  ac_status=$?
 
18122
  grep -v '^ *+' conftest.er1 >conftest.err
 
18123
  rm -f conftest.er1
 
18124
  cat conftest.err >&5
 
18125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18126
  (exit $ac_status); } &&
 
18127
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18128
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18129
  (eval $ac_try) 2>&5
 
18130
  ac_status=$?
 
18131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18132
  (exit $ac_status); }; } &&
 
18133
         { ac_try='test -s conftest$ac_exeext'
 
18134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18135
  (eval $ac_try) 2>&5
 
18136
  ac_status=$?
 
18137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18138
  (exit $ac_status); }; }; then
 
18139
  ac_cv_func_shl_load=yes
 
18140
else
 
18141
  echo "$as_me: failed program was:" >&5
 
18142
sed 's/^/| /' conftest.$ac_ext >&5
 
18143
 
 
18144
ac_cv_func_shl_load=no
 
18145
fi
 
18146
rm -f conftest.err conftest.$ac_objext \
 
18147
      conftest$ac_exeext conftest.$ac_ext
 
18148
fi
 
18149
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18150
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18151
if test $ac_cv_func_shl_load = yes; then
 
18152
  lt_cv_dlopen="shl_load"
 
18153
else
 
18154
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18155
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18156
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18158
else
 
18159
  ac_check_lib_save_LIBS=$LIBS
 
18160
LIBS="-ldld  $LIBS"
 
18161
cat >conftest.$ac_ext <<_ACEOF
 
18162
/* confdefs.h.  */
 
18163
_ACEOF
 
18164
cat confdefs.h >>conftest.$ac_ext
 
18165
cat >>conftest.$ac_ext <<_ACEOF
 
18166
/* end confdefs.h.  */
 
18167
 
 
18168
/* Override any gcc2 internal prototype to avoid an error.  */
 
18169
#ifdef __cplusplus
 
18170
extern "C"
 
18171
#endif
 
18172
/* We use char because int might match the return type of a gcc2
 
18173
   builtin and then its argument prototype would still apply.  */
 
18174
char shl_load ();
 
18175
int
 
18176
main ()
 
18177
{
 
18178
shl_load ();
 
18179
  ;
 
18180
  return 0;
 
18181
}
 
18182
_ACEOF
 
18183
rm -f conftest.$ac_objext conftest$ac_exeext
 
18184
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18185
  (eval $ac_link) 2>conftest.er1
 
18186
  ac_status=$?
 
18187
  grep -v '^ *+' conftest.er1 >conftest.err
 
18188
  rm -f conftest.er1
 
18189
  cat conftest.err >&5
 
18190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18191
  (exit $ac_status); } &&
 
18192
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18194
  (eval $ac_try) 2>&5
 
18195
  ac_status=$?
 
18196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18197
  (exit $ac_status); }; } &&
 
18198
         { ac_try='test -s conftest$ac_exeext'
 
18199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18200
  (eval $ac_try) 2>&5
 
18201
  ac_status=$?
 
18202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18203
  (exit $ac_status); }; }; then
 
18204
  ac_cv_lib_dld_shl_load=yes
 
18205
else
 
18206
  echo "$as_me: failed program was:" >&5
 
18207
sed 's/^/| /' conftest.$ac_ext >&5
 
18208
 
 
18209
ac_cv_lib_dld_shl_load=no
 
18210
fi
 
18211
rm -f conftest.err conftest.$ac_objext \
 
18212
      conftest$ac_exeext conftest.$ac_ext
 
18213
LIBS=$ac_check_lib_save_LIBS
 
18214
fi
 
18215
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18216
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18217
if test $ac_cv_lib_dld_shl_load = yes; then
 
18218
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18219
else
 
18220
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18221
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18222
if test "${ac_cv_func_dlopen+set}" = set; then
 
18223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18224
else
 
18225
  cat >conftest.$ac_ext <<_ACEOF
 
18226
/* confdefs.h.  */
 
18227
_ACEOF
 
18228
cat confdefs.h >>conftest.$ac_ext
 
18229
cat >>conftest.$ac_ext <<_ACEOF
 
18230
/* end confdefs.h.  */
 
18231
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18232
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18233
#define dlopen innocuous_dlopen
 
18234
 
 
18235
/* System header to define __stub macros and hopefully few prototypes,
 
18236
    which can conflict with char dlopen (); below.
 
18237
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18238
    <limits.h> exists even on freestanding compilers.  */
 
18239
 
 
18240
#ifdef __STDC__
 
18241
# include <limits.h>
 
18242
#else
 
18243
# include <assert.h>
 
18244
#endif
 
18245
 
 
18246
#undef dlopen
 
18247
 
 
18248
/* Override any gcc2 internal prototype to avoid an error.  */
 
18249
#ifdef __cplusplus
 
18250
extern "C"
 
18251
{
 
18252
#endif
 
18253
/* We use char because int might match the return type of a gcc2
 
18254
   builtin and then its argument prototype would still apply.  */
 
18255
char dlopen ();
 
18256
/* The GNU C library defines this for functions which it implements
 
18257
    to always fail with ENOSYS.  Some functions are actually named
 
18258
    something starting with __ and the normal name is an alias.  */
 
18259
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18260
choke me
 
18261
#else
 
18262
char (*f) () = dlopen;
 
18263
#endif
 
18264
#ifdef __cplusplus
 
18265
}
 
18266
#endif
 
18267
 
 
18268
int
 
18269
main ()
 
18270
{
 
18271
return f != dlopen;
 
18272
  ;
 
18273
  return 0;
 
18274
}
 
18275
_ACEOF
 
18276
rm -f conftest.$ac_objext conftest$ac_exeext
 
18277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18278
  (eval $ac_link) 2>conftest.er1
 
18279
  ac_status=$?
 
18280
  grep -v '^ *+' conftest.er1 >conftest.err
 
18281
  rm -f conftest.er1
 
18282
  cat conftest.err >&5
 
18283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18284
  (exit $ac_status); } &&
 
18285
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18287
  (eval $ac_try) 2>&5
 
18288
  ac_status=$?
 
18289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18290
  (exit $ac_status); }; } &&
 
18291
         { ac_try='test -s conftest$ac_exeext'
 
18292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18293
  (eval $ac_try) 2>&5
 
18294
  ac_status=$?
 
18295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18296
  (exit $ac_status); }; }; then
 
18297
  ac_cv_func_dlopen=yes
 
18298
else
 
18299
  echo "$as_me: failed program was:" >&5
 
18300
sed 's/^/| /' conftest.$ac_ext >&5
 
18301
 
 
18302
ac_cv_func_dlopen=no
 
18303
fi
 
18304
rm -f conftest.err conftest.$ac_objext \
 
18305
      conftest$ac_exeext conftest.$ac_ext
 
18306
fi
 
18307
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18308
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18309
if test $ac_cv_func_dlopen = yes; then
 
18310
  lt_cv_dlopen="dlopen"
 
18311
else
 
18312
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18313
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18314
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18316
else
 
18317
  ac_check_lib_save_LIBS=$LIBS
 
18318
LIBS="-ldl  $LIBS"
 
18319
cat >conftest.$ac_ext <<_ACEOF
 
18320
/* confdefs.h.  */
 
18321
_ACEOF
 
18322
cat confdefs.h >>conftest.$ac_ext
 
18323
cat >>conftest.$ac_ext <<_ACEOF
 
18324
/* end confdefs.h.  */
 
18325
 
 
18326
/* Override any gcc2 internal prototype to avoid an error.  */
 
18327
#ifdef __cplusplus
 
18328
extern "C"
 
18329
#endif
 
18330
/* We use char because int might match the return type of a gcc2
 
18331
   builtin and then its argument prototype would still apply.  */
 
18332
char dlopen ();
 
18333
int
 
18334
main ()
 
18335
{
 
18336
dlopen ();
 
18337
  ;
 
18338
  return 0;
 
18339
}
 
18340
_ACEOF
 
18341
rm -f conftest.$ac_objext conftest$ac_exeext
 
18342
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18343
  (eval $ac_link) 2>conftest.er1
 
18344
  ac_status=$?
 
18345
  grep -v '^ *+' conftest.er1 >conftest.err
 
18346
  rm -f conftest.er1
 
18347
  cat conftest.err >&5
 
18348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18349
  (exit $ac_status); } &&
 
18350
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18352
  (eval $ac_try) 2>&5
 
18353
  ac_status=$?
 
18354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18355
  (exit $ac_status); }; } &&
 
18356
         { ac_try='test -s conftest$ac_exeext'
 
18357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18358
  (eval $ac_try) 2>&5
 
18359
  ac_status=$?
 
18360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18361
  (exit $ac_status); }; }; then
 
18362
  ac_cv_lib_dl_dlopen=yes
 
18363
else
 
18364
  echo "$as_me: failed program was:" >&5
 
18365
sed 's/^/| /' conftest.$ac_ext >&5
 
18366
 
 
18367
ac_cv_lib_dl_dlopen=no
 
18368
fi
 
18369
rm -f conftest.err conftest.$ac_objext \
 
18370
      conftest$ac_exeext conftest.$ac_ext
 
18371
LIBS=$ac_check_lib_save_LIBS
 
18372
fi
 
18373
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18374
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18375
if test $ac_cv_lib_dl_dlopen = yes; then
 
18376
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18377
else
 
18378
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18379
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18380
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18381
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18382
else
 
18383
  ac_check_lib_save_LIBS=$LIBS
 
18384
LIBS="-lsvld  $LIBS"
 
18385
cat >conftest.$ac_ext <<_ACEOF
 
18386
/* confdefs.h.  */
 
18387
_ACEOF
 
18388
cat confdefs.h >>conftest.$ac_ext
 
18389
cat >>conftest.$ac_ext <<_ACEOF
 
18390
/* end confdefs.h.  */
 
18391
 
 
18392
/* Override any gcc2 internal prototype to avoid an error.  */
 
18393
#ifdef __cplusplus
 
18394
extern "C"
 
18395
#endif
 
18396
/* We use char because int might match the return type of a gcc2
 
18397
   builtin and then its argument prototype would still apply.  */
 
18398
char dlopen ();
 
18399
int
 
18400
main ()
 
18401
{
 
18402
dlopen ();
 
18403
  ;
 
18404
  return 0;
 
18405
}
 
18406
_ACEOF
 
18407
rm -f conftest.$ac_objext conftest$ac_exeext
 
18408
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18409
  (eval $ac_link) 2>conftest.er1
 
18410
  ac_status=$?
 
18411
  grep -v '^ *+' conftest.er1 >conftest.err
 
18412
  rm -f conftest.er1
 
18413
  cat conftest.err >&5
 
18414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18415
  (exit $ac_status); } &&
 
18416
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18418
  (eval $ac_try) 2>&5
 
18419
  ac_status=$?
 
18420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18421
  (exit $ac_status); }; } &&
 
18422
         { ac_try='test -s conftest$ac_exeext'
 
18423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18424
  (eval $ac_try) 2>&5
 
18425
  ac_status=$?
 
18426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18427
  (exit $ac_status); }; }; then
 
18428
  ac_cv_lib_svld_dlopen=yes
 
18429
else
 
18430
  echo "$as_me: failed program was:" >&5
 
18431
sed 's/^/| /' conftest.$ac_ext >&5
 
18432
 
 
18433
ac_cv_lib_svld_dlopen=no
 
18434
fi
 
18435
rm -f conftest.err conftest.$ac_objext \
 
18436
      conftest$ac_exeext conftest.$ac_ext
 
18437
LIBS=$ac_check_lib_save_LIBS
 
18438
fi
 
18439
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18440
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18441
if test $ac_cv_lib_svld_dlopen = yes; then
 
18442
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18443
else
 
18444
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18445
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18446
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18447
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18448
else
 
18449
  ac_check_lib_save_LIBS=$LIBS
 
18450
LIBS="-ldld  $LIBS"
 
18451
cat >conftest.$ac_ext <<_ACEOF
 
18452
/* confdefs.h.  */
 
18453
_ACEOF
 
18454
cat confdefs.h >>conftest.$ac_ext
 
18455
cat >>conftest.$ac_ext <<_ACEOF
 
18456
/* end confdefs.h.  */
 
18457
 
 
18458
/* Override any gcc2 internal prototype to avoid an error.  */
 
18459
#ifdef __cplusplus
 
18460
extern "C"
 
18461
#endif
 
18462
/* We use char because int might match the return type of a gcc2
 
18463
   builtin and then its argument prototype would still apply.  */
 
18464
char dld_link ();
 
18465
int
 
18466
main ()
 
18467
{
 
18468
dld_link ();
 
18469
  ;
 
18470
  return 0;
 
18471
}
 
18472
_ACEOF
 
18473
rm -f conftest.$ac_objext conftest$ac_exeext
 
18474
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18475
  (eval $ac_link) 2>conftest.er1
 
18476
  ac_status=$?
 
18477
  grep -v '^ *+' conftest.er1 >conftest.err
 
18478
  rm -f conftest.er1
 
18479
  cat conftest.err >&5
 
18480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18481
  (exit $ac_status); } &&
 
18482
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
18483
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18484
  (eval $ac_try) 2>&5
 
18485
  ac_status=$?
 
18486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18487
  (exit $ac_status); }; } &&
 
18488
         { ac_try='test -s conftest$ac_exeext'
 
18489
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18490
  (eval $ac_try) 2>&5
 
18491
  ac_status=$?
 
18492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18493
  (exit $ac_status); }; }; then
 
18494
  ac_cv_lib_dld_dld_link=yes
 
18495
else
 
18496
  echo "$as_me: failed program was:" >&5
 
18497
sed 's/^/| /' conftest.$ac_ext >&5
 
18498
 
 
18499
ac_cv_lib_dld_dld_link=no
 
18500
fi
 
18501
rm -f conftest.err conftest.$ac_objext \
 
18502
      conftest$ac_exeext conftest.$ac_ext
 
18503
LIBS=$ac_check_lib_save_LIBS
 
18504
fi
 
18505
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18506
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18507
if test $ac_cv_lib_dld_dld_link = yes; then
 
18508
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18509
fi
 
18510
 
 
18511
 
 
18512
fi
 
18513
 
 
18514
 
 
18515
fi
 
18516
 
 
18517
 
 
18518
fi
 
18519
 
 
18520
 
 
18521
fi
 
18522
 
 
18523
 
 
18524
fi
 
18525
 
 
18526
    ;;
 
18527
  esac
 
18528
 
 
18529
  if test "x$lt_cv_dlopen" != xno; then
 
18530
    enable_dlopen=yes
 
18531
  else
 
18532
    enable_dlopen=no
 
18533
  fi
 
18534
 
 
18535
  case $lt_cv_dlopen in
 
18536
  dlopen)
 
18537
    save_CPPFLAGS="$CPPFLAGS"
 
18538
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18539
 
 
18540
    save_LDFLAGS="$LDFLAGS"
 
18541
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18542
 
 
18543
    save_LIBS="$LIBS"
 
18544
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18545
 
 
18546
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18547
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18548
if test "${lt_cv_dlopen_self+set}" = set; then
 
18549
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18550
else
 
18551
          if test "$cross_compiling" = yes; then :
 
18552
  lt_cv_dlopen_self=cross
 
18553
else
 
18554
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18555
  lt_status=$lt_dlunknown
 
18556
  cat > conftest.$ac_ext <<EOF
 
18557
#line 18557 "configure"
 
18558
#include "confdefs.h"
 
18559
 
 
18560
#if HAVE_DLFCN_H
 
18561
#include <dlfcn.h>
 
18562
#endif
 
18563
 
 
18564
#include <stdio.h>
 
18565
 
 
18566
#ifdef RTLD_GLOBAL
 
18567
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18568
#else
 
18569
#  ifdef DL_GLOBAL
 
18570
#    define LT_DLGLOBAL         DL_GLOBAL
 
18571
#  else
 
18572
#    define LT_DLGLOBAL         0
 
18573
#  endif
 
18574
#endif
 
18575
 
 
18576
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18577
   find out it does not work in some platform. */
 
18578
#ifndef LT_DLLAZY_OR_NOW
 
18579
#  ifdef RTLD_LAZY
 
18580
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18581
#  else
 
18582
#    ifdef DL_LAZY
 
18583
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18584
#    else
 
18585
#      ifdef RTLD_NOW
 
18586
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18587
#      else
 
18588
#        ifdef DL_NOW
 
18589
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18590
#        else
 
18591
#          define LT_DLLAZY_OR_NOW      0
 
18592
#        endif
 
18593
#      endif
 
18594
#    endif
 
18595
#  endif
 
18596
#endif
 
18597
 
 
18598
#ifdef __cplusplus
 
18599
extern "C" void exit (int);
 
18600
#endif
 
18601
 
 
18602
void fnord() { int i=42;}
 
18603
int main ()
 
18604
{
 
18605
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18606
  int status = $lt_dlunknown;
 
18607
 
 
18608
  if (self)
 
18609
    {
 
18610
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18611
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18612
      /* dlclose (self); */
 
18613
    }
 
18614
 
 
18615
    exit (status);
 
18616
}
 
18617
EOF
 
18618
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18619
  (eval $ac_link) 2>&5
 
18620
  ac_status=$?
 
18621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18622
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18623
    (./conftest; exit; ) 2>/dev/null
 
18624
    lt_status=$?
 
18625
    case x$lt_status in
 
18626
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18627
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18628
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18629
    esac
 
18630
  else :
 
18631
    # compilation failed
 
18632
    lt_cv_dlopen_self=no
 
18633
  fi
 
18634
fi
 
18635
rm -fr conftest*
 
18636
 
 
18637
 
 
18638
fi
 
18639
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18640
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18641
 
 
18642
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18643
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18644
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18645
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18646
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18647
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18648
else
 
18649
          if test "$cross_compiling" = yes; then :
 
18650
  lt_cv_dlopen_self_static=cross
 
18651
else
 
18652
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18653
  lt_status=$lt_dlunknown
 
18654
  cat > conftest.$ac_ext <<EOF
 
18655
#line 18655 "configure"
 
18656
#include "confdefs.h"
 
18657
 
 
18658
#if HAVE_DLFCN_H
 
18659
#include <dlfcn.h>
 
18660
#endif
 
18661
 
 
18662
#include <stdio.h>
 
18663
 
 
18664
#ifdef RTLD_GLOBAL
 
18665
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18666
#else
 
18667
#  ifdef DL_GLOBAL
 
18668
#    define LT_DLGLOBAL         DL_GLOBAL
 
18669
#  else
 
18670
#    define LT_DLGLOBAL         0
 
18671
#  endif
 
18672
#endif
 
18673
 
 
18674
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18675
   find out it does not work in some platform. */
 
18676
#ifndef LT_DLLAZY_OR_NOW
 
18677
#  ifdef RTLD_LAZY
 
18678
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18679
#  else
 
18680
#    ifdef DL_LAZY
 
18681
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18682
#    else
 
18683
#      ifdef RTLD_NOW
 
18684
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18685
#      else
 
18686
#        ifdef DL_NOW
 
18687
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18688
#        else
 
18689
#          define LT_DLLAZY_OR_NOW      0
 
18690
#        endif
 
18691
#      endif
 
18692
#    endif
 
18693
#  endif
 
18694
#endif
 
18695
 
 
18696
#ifdef __cplusplus
 
18697
extern "C" void exit (int);
 
18698
#endif
 
18699
 
 
18700
void fnord() { int i=42;}
 
18701
int main ()
 
18702
{
 
18703
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18704
  int status = $lt_dlunknown;
 
18705
 
 
18706
  if (self)
 
18707
    {
 
18708
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18709
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18710
      /* dlclose (self); */
 
18711
    }
 
18712
 
 
18713
    exit (status);
 
18714
}
 
18715
EOF
 
18716
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18717
  (eval $ac_link) 2>&5
 
18718
  ac_status=$?
 
18719
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18720
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18721
    (./conftest; exit; ) 2>/dev/null
 
18722
    lt_status=$?
 
18723
    case x$lt_status in
 
18724
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18725
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18726
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18727
    esac
 
18728
  else :
 
18729
    # compilation failed
 
18730
    lt_cv_dlopen_self_static=no
 
18731
  fi
 
18732
fi
 
18733
rm -fr conftest*
 
18734
 
 
18735
 
 
18736
fi
 
18737
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18738
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18739
    fi
 
18740
 
 
18741
    CPPFLAGS="$save_CPPFLAGS"
 
18742
    LDFLAGS="$save_LDFLAGS"
 
18743
    LIBS="$save_LIBS"
 
18744
    ;;
 
18745
  esac
 
18746
 
 
18747
  case $lt_cv_dlopen_self in
 
18748
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18749
  *) enable_dlopen_self=unknown ;;
 
18750
  esac
 
18751
 
 
18752
  case $lt_cv_dlopen_self_static in
 
18753
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18754
  *) enable_dlopen_self_static=unknown ;;
 
18755
  esac
 
18756
fi
 
18757
 
 
18758
 
 
18759
# The else clause should only fire when bootstrapping the
 
18760
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18761
# with your package, and you will get complaints that there are
 
18762
# no rules to generate ltmain.sh.
 
18763
if test -f "$ltmain"; then
 
18764
  # See if we are running on zsh, and set the options which allow our commands through
 
18765
  # without removal of \ escapes.
 
18766
  if test -n "${ZSH_VERSION+set}" ; then
 
18767
    setopt NO_GLOB_SUBST
 
18768
  fi
 
18769
  # Now quote all the things that may contain metacharacters while being
 
18770
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18771
  # variables and quote the copies for generation of the libtool script.
 
18772
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18773
    SED SHELL STRIP \
 
18774
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18775
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18776
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18777
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18778
    lt_cv_sys_global_symbol_to_c_name_address \
 
18779
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18780
    old_postinstall_cmds old_postuninstall_cmds \
 
18781
    compiler_GCJ \
 
18782
    CC_GCJ \
 
18783
    LD_GCJ \
 
18784
    lt_prog_compiler_wl_GCJ \
 
18785
    lt_prog_compiler_pic_GCJ \
 
18786
    lt_prog_compiler_static_GCJ \
 
18787
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18788
    export_dynamic_flag_spec_GCJ \
 
18789
    thread_safe_flag_spec_GCJ \
 
18790
    whole_archive_flag_spec_GCJ \
 
18791
    enable_shared_with_static_runtimes_GCJ \
 
18792
    old_archive_cmds_GCJ \
 
18793
    old_archive_from_new_cmds_GCJ \
 
18794
    predep_objects_GCJ \
 
18795
    postdep_objects_GCJ \
 
18796
    predeps_GCJ \
 
18797
    postdeps_GCJ \
 
18798
    compiler_lib_search_path_GCJ \
 
18799
    archive_cmds_GCJ \
 
18800
    archive_expsym_cmds_GCJ \
 
18801
    postinstall_cmds_GCJ \
 
18802
    postuninstall_cmds_GCJ \
 
18803
    old_archive_from_expsyms_cmds_GCJ \
 
18804
    allow_undefined_flag_GCJ \
 
18805
    no_undefined_flag_GCJ \
 
18806
    export_symbols_cmds_GCJ \
 
18807
    hardcode_libdir_flag_spec_GCJ \
 
18808
    hardcode_libdir_flag_spec_ld_GCJ \
 
18809
    hardcode_libdir_separator_GCJ \
 
18810
    hardcode_automatic_GCJ \
 
18811
    module_cmds_GCJ \
 
18812
    module_expsym_cmds_GCJ \
 
18813
    lt_cv_prog_compiler_c_o_GCJ \
 
18814
    exclude_expsyms_GCJ \
 
18815
    include_expsyms_GCJ; do
 
18816
 
 
18817
    case $var in
 
18818
    old_archive_cmds_GCJ | \
 
18819
    old_archive_from_new_cmds_GCJ | \
 
18820
    archive_cmds_GCJ | \
 
18821
    archive_expsym_cmds_GCJ | \
 
18822
    module_cmds_GCJ | \
 
18823
    module_expsym_cmds_GCJ | \
 
18824
    old_archive_from_expsyms_cmds_GCJ | \
 
18825
    export_symbols_cmds_GCJ | \
 
18826
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18827
    postinstall_cmds | postuninstall_cmds | \
 
18828
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18829
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18830
      # Double-quote double-evaled strings.
 
18831
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18832
      ;;
 
18833
    *)
 
18834
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18835
      ;;
 
18836
    esac
 
18837
  done
 
18838
 
 
18839
  case $lt_echo in
 
18840
  *'\$0 --fallback-echo"')
 
18841
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18842
    ;;
 
18843
  esac
 
18844
 
 
18845
cfgfile="$ofile"
 
18846
 
 
18847
  cat <<__EOF__ >> "$cfgfile"
 
18848
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18849
 
 
18850
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18851
 
 
18852
# Shell to use when invoking shell scripts.
 
18853
SHELL=$lt_SHELL
 
18854
 
 
18855
# Whether or not to build shared libraries.
 
18856
build_libtool_libs=$enable_shared
 
18857
 
 
18858
# Whether or not to build static libraries.
 
18859
build_old_libs=$enable_static
 
18860
 
 
18861
# Whether or not to add -lc for building shared libraries.
 
18862
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18863
 
 
18864
# Whether or not to disallow shared libs when runtime libs are static
 
18865
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18866
 
 
18867
# Whether or not to optimize for fast installation.
 
18868
fast_install=$enable_fast_install
 
18869
 
 
18870
# The host system.
 
18871
host_alias=$host_alias
 
18872
host=$host
 
18873
 
 
18874
# An echo program that does not interpret backslashes.
 
18875
echo=$lt_echo
 
18876
 
 
18877
# The archiver.
 
18878
AR=$lt_AR
 
18879
AR_FLAGS=$lt_AR_FLAGS
 
18880
 
 
18881
# A C compiler.
 
18882
LTCC=$lt_LTCC
 
18883
 
 
18884
# A language-specific compiler.
 
18885
CC=$lt_compiler_GCJ
 
18886
 
 
18887
# Is the compiler the GNU C compiler?
 
18888
with_gcc=$GCC_GCJ
 
18889
 
 
18890
# An ERE matcher.
 
18891
EGREP=$lt_EGREP
 
18892
 
 
18893
# The linker used to build libraries.
 
18894
LD=$lt_LD_GCJ
 
18895
 
 
18896
# Whether we need hard or soft links.
 
18897
LN_S=$lt_LN_S
 
18898
 
 
18899
# A BSD-compatible nm program.
 
18900
NM=$lt_NM
 
18901
 
 
18902
# A symbol stripping program
 
18903
STRIP=$lt_STRIP
 
18904
 
 
18905
# Used to examine libraries when file_magic_cmd begins "file"
 
18906
MAGIC_CMD=$MAGIC_CMD
 
18907
 
 
18908
# Used on cygwin: DLL creation program.
 
18909
DLLTOOL="$DLLTOOL"
 
18910
 
 
18911
# Used on cygwin: object dumper.
 
18912
OBJDUMP="$OBJDUMP"
 
18913
 
 
18914
# Used on cygwin: assembler.
 
18915
AS="$AS"
 
18916
 
 
18917
# The name of the directory that contains temporary libtool files.
 
18918
objdir=$objdir
 
18919
 
 
18920
# How to create reloadable object files.
 
18921
reload_flag=$lt_reload_flag
 
18922
reload_cmds=$lt_reload_cmds
 
18923
 
 
18924
# How to pass a linker flag through the compiler.
 
18925
wl=$lt_lt_prog_compiler_wl_GCJ
 
18926
 
 
18927
# Object file suffix (normally "o").
 
18928
objext="$ac_objext"
 
18929
 
 
18930
# Old archive suffix (normally "a").
 
18931
libext="$libext"
 
18932
 
 
18933
# Shared library suffix (normally ".so").
 
18934
shrext_cmds='$shrext_cmds'
 
18935
 
 
18936
# Executable file suffix (normally "").
 
18937
exeext="$exeext"
 
18938
 
 
18939
# Additional compiler flags for building library objects.
 
18940
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18941
pic_mode=$pic_mode
 
18942
 
 
18943
# What is the maximum length of a command?
 
18944
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18945
 
 
18946
# Does compiler simultaneously support -c and -o options?
 
18947
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18948
 
 
18949
# Must we lock files when doing compilation ?
 
18950
need_locks=$lt_need_locks
 
18951
 
 
18952
# Do we need the lib prefix for modules?
 
18953
need_lib_prefix=$need_lib_prefix
 
18954
 
 
18955
# Do we need a version for libraries?
 
18956
need_version=$need_version
 
18957
 
 
18958
# Whether dlopen is supported.
 
18959
dlopen_support=$enable_dlopen
 
18960
 
 
18961
# Whether dlopen of programs is supported.
 
18962
dlopen_self=$enable_dlopen_self
 
18963
 
 
18964
# Whether dlopen of statically linked programs is supported.
 
18965
dlopen_self_static=$enable_dlopen_self_static
 
18966
 
 
18967
# Compiler flag to prevent dynamic linking.
 
18968
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18969
 
 
18970
# Compiler flag to turn off builtin functions.
 
18971
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18972
 
 
18973
# Compiler flag to allow reflexive dlopens.
 
18974
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18975
 
 
18976
# Compiler flag to generate shared objects directly from archives.
 
18977
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18978
 
 
18979
# Compiler flag to generate thread-safe objects.
 
18980
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18981
 
 
18982
# Library versioning type.
 
18983
version_type=$version_type
 
18984
 
 
18985
# Format of library name prefix.
 
18986
libname_spec=$lt_libname_spec
 
18987
 
 
18988
# List of archive names.  First name is the real one, the rest are links.
 
18989
# The last name is the one that the linker finds with -lNAME.
 
18990
library_names_spec=$lt_library_names_spec
 
18991
 
 
18992
# The coded name of the library, if different from the real name.
 
18993
soname_spec=$lt_soname_spec
 
18994
 
 
18995
# Commands used to build and install an old-style archive.
 
18996
RANLIB=$lt_RANLIB
 
18997
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18998
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18999
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19000
 
 
19001
# Create an old-style archive from a shared archive.
 
19002
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19003
 
 
19004
# Create a temporary old-style archive to link instead of a shared archive.
 
19005
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19006
 
 
19007
# Commands used to build and install a shared archive.
 
19008
archive_cmds=$lt_archive_cmds_GCJ
 
19009
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19010
postinstall_cmds=$lt_postinstall_cmds
 
19011
postuninstall_cmds=$lt_postuninstall_cmds
 
19012
 
 
19013
# Commands used to build a loadable module (assumed same as above if empty)
 
19014
module_cmds=$lt_module_cmds_GCJ
 
19015
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19016
 
 
19017
# Commands to strip libraries.
 
19018
old_striplib=$lt_old_striplib
 
19019
striplib=$lt_striplib
 
19020
 
 
19021
# Dependencies to place before the objects being linked to create a
 
19022
# shared library.
 
19023
predep_objects=$lt_predep_objects_GCJ
 
19024
 
 
19025
# Dependencies to place after the objects being linked to create a
 
19026
# shared library.
 
19027
postdep_objects=$lt_postdep_objects_GCJ
 
19028
 
 
19029
# Dependencies to place before the objects being linked to create a
 
19030
# shared library.
 
19031
predeps=$lt_predeps_GCJ
 
19032
 
 
19033
# Dependencies to place after the objects being linked to create a
 
19034
# shared library.
 
19035
postdeps=$lt_postdeps_GCJ
 
19036
 
 
19037
# The library search path used internally by the compiler when linking
 
19038
# a shared library.
 
19039
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19040
 
 
19041
# Method to check whether dependent libraries are shared objects.
 
19042
deplibs_check_method=$lt_deplibs_check_method
 
19043
 
 
19044
# Command to use when deplibs_check_method == file_magic.
 
19045
file_magic_cmd=$lt_file_magic_cmd
 
19046
 
 
19047
# Flag that allows shared libraries with undefined symbols to be built.
 
19048
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19049
 
 
19050
# Flag that forces no undefined symbols.
 
19051
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19052
 
 
19053
# Commands used to finish a libtool library installation in a directory.
 
19054
finish_cmds=$lt_finish_cmds
 
19055
 
 
19056
# Same as above, but a single script fragment to be evaled but not shown.
 
19057
finish_eval=$lt_finish_eval
 
19058
 
 
19059
# Take the output of nm and produce a listing of raw symbols and C names.
 
19060
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19061
 
 
19062
# Transform the output of nm in a proper C declaration
 
19063
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19064
 
 
19065
# Transform the output of nm in a C name address pair
 
19066
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19067
 
 
19068
# This is the shared library runtime path variable.
 
19069
runpath_var=$runpath_var
 
19070
 
 
19071
# This is the shared library path variable.
 
19072
shlibpath_var=$shlibpath_var
 
19073
 
 
19074
# Is shlibpath searched before the hard-coded library search path?
 
19075
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19076
 
 
19077
# How to hardcode a shared library path into an executable.
 
19078
hardcode_action=$hardcode_action_GCJ
 
19079
 
 
19080
# Whether we should hardcode library paths into libraries.
 
19081
hardcode_into_libs=$hardcode_into_libs
 
19082
 
 
19083
# Flag to hardcode \$libdir into a binary during linking.
 
19084
# This must work even if \$libdir does not exist.
 
19085
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19086
 
 
19087
# If ld is used when linking, flag to hardcode \$libdir into
 
19088
# a binary during linking. This must work even if \$libdir does
 
19089
# not exist.
 
19090
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19091
 
 
19092
# Whether we need a single -rpath flag with a separated argument.
 
19093
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19094
 
 
19095
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19096
# resulting binary.
 
19097
hardcode_direct=$hardcode_direct_GCJ
 
19098
 
 
19099
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19100
# resulting binary.
 
19101
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19102
 
 
19103
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19104
# the resulting binary.
 
19105
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19106
 
 
19107
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19108
# and all subsequent libraries and executables linked against it.
 
19109
hardcode_automatic=$hardcode_automatic_GCJ
 
19110
 
 
19111
# Variables whose values should be saved in libtool wrapper scripts and
 
19112
# restored at relink time.
 
19113
variables_saved_for_relink="$variables_saved_for_relink"
 
19114
 
 
19115
# Whether libtool must link a program against all its dependency libraries.
 
19116
link_all_deplibs=$link_all_deplibs_GCJ
 
19117
 
 
19118
# Compile-time system search path for libraries
 
19119
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19120
 
 
19121
# Run-time system search path for libraries
 
19122
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19123
 
 
19124
# Fix the shell variable \$srcfile for the compiler.
 
19125
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19126
 
 
19127
# Set to yes if exported symbols are required.
 
19128
always_export_symbols=$always_export_symbols_GCJ
 
19129
 
 
19130
# The commands to list exported symbols.
 
19131
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19132
 
 
19133
# The commands to extract the exported symbol list from a shared archive.
 
19134
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19135
 
 
19136
# Symbols that should not be listed in the preloaded symbols.
 
19137
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19138
 
 
19139
# Symbols that must always be exported.
 
19140
include_expsyms=$lt_include_expsyms_GCJ
 
19141
 
 
19142
# ### END LIBTOOL TAG CONFIG: $tagname
 
19143
 
 
19144
__EOF__
 
19145
 
 
19146
 
 
19147
else
 
19148
  # If there is no Makefile yet, we rely on a make rule to execute
 
19149
  # `config.status --recheck' to rerun these tests and create the
 
19150
  # libtool script then.
 
19151
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19152
  if test -f "$ltmain_in"; then
 
19153
    test -f Makefile && make "$ltmain"
 
19154
  fi
 
19155
fi
 
19156
 
 
19157
 
 
19158
ac_ext=cc
 
19159
ac_cpp='$CXXCPP $CPPFLAGS'
 
19160
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19161
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19162
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
19163
 
 
19164
CC="$lt_save_CC"
 
19165
 
 
19166
        else
 
19167
          tagname=""
 
19168
        fi
 
19169
        ;;
 
19170
 
 
19171
      RC)
 
19172
 
 
19173
 
 
19174
 
 
19175
# Source file extension for RC test sources.
 
19176
ac_ext=rc
 
19177
 
 
19178
# Object file extension for compiled RC test sources.
 
19179
objext=o
 
19180
objext_RC=$objext
 
19181
 
 
19182
# Code to be used in simple compile tests
 
19183
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19184
 
 
19185
# Code to be used in simple link tests
 
19186
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19187
 
 
19188
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19189
 
 
19190
# If no C compiler was specified, use CC.
 
19191
LTCC=${LTCC-"$CC"}
 
19192
 
 
19193
# Allow CC to be a program name with arguments.
 
19194
compiler=$CC
 
19195
 
 
19196
 
 
19197
# Allow CC to be a program name with arguments.
 
19198
lt_save_CC="$CC"
 
19199
CC=${RC-"windres"}
 
19200
compiler=$CC
 
19201
compiler_RC=$CC
 
19202
lt_cv_prog_compiler_c_o_RC=yes
 
19203
 
 
19204
# The else clause should only fire when bootstrapping the
 
19205
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19206
# with your package, and you will get complaints that there are
 
19207
# no rules to generate ltmain.sh.
 
19208
if test -f "$ltmain"; then
 
19209
  # See if we are running on zsh, and set the options which allow our commands through
 
19210
  # without removal of \ escapes.
 
19211
  if test -n "${ZSH_VERSION+set}" ; then
 
19212
    setopt NO_GLOB_SUBST
 
19213
  fi
 
19214
  # Now quote all the things that may contain metacharacters while being
 
19215
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19216
  # variables and quote the copies for generation of the libtool script.
 
19217
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19218
    SED SHELL STRIP \
 
19219
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19220
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19221
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19222
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19223
    lt_cv_sys_global_symbol_to_c_name_address \
 
19224
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19225
    old_postinstall_cmds old_postuninstall_cmds \
 
19226
    compiler_RC \
 
19227
    CC_RC \
 
19228
    LD_RC \
 
19229
    lt_prog_compiler_wl_RC \
 
19230
    lt_prog_compiler_pic_RC \
 
19231
    lt_prog_compiler_static_RC \
 
19232
    lt_prog_compiler_no_builtin_flag_RC \
 
19233
    export_dynamic_flag_spec_RC \
 
19234
    thread_safe_flag_spec_RC \
 
19235
    whole_archive_flag_spec_RC \
 
19236
    enable_shared_with_static_runtimes_RC \
 
19237
    old_archive_cmds_RC \
 
19238
    old_archive_from_new_cmds_RC \
 
19239
    predep_objects_RC \
 
19240
    postdep_objects_RC \
 
19241
    predeps_RC \
 
19242
    postdeps_RC \
 
19243
    compiler_lib_search_path_RC \
 
19244
    archive_cmds_RC \
 
19245
    archive_expsym_cmds_RC \
 
19246
    postinstall_cmds_RC \
 
19247
    postuninstall_cmds_RC \
 
19248
    old_archive_from_expsyms_cmds_RC \
 
19249
    allow_undefined_flag_RC \
 
19250
    no_undefined_flag_RC \
 
19251
    export_symbols_cmds_RC \
 
19252
    hardcode_libdir_flag_spec_RC \
 
19253
    hardcode_libdir_flag_spec_ld_RC \
 
19254
    hardcode_libdir_separator_RC \
 
19255
    hardcode_automatic_RC \
 
19256
    module_cmds_RC \
 
19257
    module_expsym_cmds_RC \
 
19258
    lt_cv_prog_compiler_c_o_RC \
 
19259
    exclude_expsyms_RC \
 
19260
    include_expsyms_RC; do
 
19261
 
 
19262
    case $var in
 
19263
    old_archive_cmds_RC | \
 
19264
    old_archive_from_new_cmds_RC | \
 
19265
    archive_cmds_RC | \
 
19266
    archive_expsym_cmds_RC | \
 
19267
    module_cmds_RC | \
 
19268
    module_expsym_cmds_RC | \
 
19269
    old_archive_from_expsyms_cmds_RC | \
 
19270
    export_symbols_cmds_RC | \
 
19271
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19272
    postinstall_cmds | postuninstall_cmds | \
 
19273
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19274
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19275
      # Double-quote double-evaled strings.
 
19276
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19277
      ;;
 
19278
    *)
 
19279
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19280
      ;;
 
19281
    esac
 
19282
  done
 
19283
 
 
19284
  case $lt_echo in
 
19285
  *'\$0 --fallback-echo"')
 
19286
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19287
    ;;
 
19288
  esac
 
19289
 
 
19290
cfgfile="$ofile"
 
19291
 
 
19292
  cat <<__EOF__ >> "$cfgfile"
 
19293
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19294
 
 
19295
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19296
 
 
19297
# Shell to use when invoking shell scripts.
 
19298
SHELL=$lt_SHELL
 
19299
 
 
19300
# Whether or not to build shared libraries.
 
19301
build_libtool_libs=$enable_shared
 
19302
 
 
19303
# Whether or not to build static libraries.
 
19304
build_old_libs=$enable_static
 
19305
 
 
19306
# Whether or not to add -lc for building shared libraries.
 
19307
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19308
 
 
19309
# Whether or not to disallow shared libs when runtime libs are static
 
19310
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19311
 
 
19312
# Whether or not to optimize for fast installation.
 
19313
fast_install=$enable_fast_install
 
19314
 
 
19315
# The host system.
 
19316
host_alias=$host_alias
 
19317
host=$host
 
19318
 
 
19319
# An echo program that does not interpret backslashes.
 
19320
echo=$lt_echo
 
19321
 
 
19322
# The archiver.
 
19323
AR=$lt_AR
 
19324
AR_FLAGS=$lt_AR_FLAGS
 
19325
 
 
19326
# A C compiler.
 
19327
LTCC=$lt_LTCC
 
19328
 
 
19329
# A language-specific compiler.
 
19330
CC=$lt_compiler_RC
 
19331
 
 
19332
# Is the compiler the GNU C compiler?
 
19333
with_gcc=$GCC_RC
 
19334
 
 
19335
# An ERE matcher.
 
19336
EGREP=$lt_EGREP
 
19337
 
 
19338
# The linker used to build libraries.
 
19339
LD=$lt_LD_RC
 
19340
 
 
19341
# Whether we need hard or soft links.
 
19342
LN_S=$lt_LN_S
 
19343
 
 
19344
# A BSD-compatible nm program.
 
19345
NM=$lt_NM
 
19346
 
 
19347
# A symbol stripping program
 
19348
STRIP=$lt_STRIP
 
19349
 
 
19350
# Used to examine libraries when file_magic_cmd begins "file"
 
19351
MAGIC_CMD=$MAGIC_CMD
 
19352
 
 
19353
# Used on cygwin: DLL creation program.
 
19354
DLLTOOL="$DLLTOOL"
 
19355
 
 
19356
# Used on cygwin: object dumper.
 
19357
OBJDUMP="$OBJDUMP"
 
19358
 
 
19359
# Used on cygwin: assembler.
 
19360
AS="$AS"
 
19361
 
 
19362
# The name of the directory that contains temporary libtool files.
 
19363
objdir=$objdir
 
19364
 
 
19365
# How to create reloadable object files.
 
19366
reload_flag=$lt_reload_flag
 
19367
reload_cmds=$lt_reload_cmds
 
19368
 
 
19369
# How to pass a linker flag through the compiler.
 
19370
wl=$lt_lt_prog_compiler_wl_RC
 
19371
 
 
19372
# Object file suffix (normally "o").
 
19373
objext="$ac_objext"
 
19374
 
 
19375
# Old archive suffix (normally "a").
 
19376
libext="$libext"
 
19377
 
 
19378
# Shared library suffix (normally ".so").
 
19379
shrext_cmds='$shrext_cmds'
 
19380
 
 
19381
# Executable file suffix (normally "").
 
19382
exeext="$exeext"
 
19383
 
 
19384
# Additional compiler flags for building library objects.
 
19385
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19386
pic_mode=$pic_mode
 
19387
 
 
19388
# What is the maximum length of a command?
 
19389
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19390
 
 
19391
# Does compiler simultaneously support -c and -o options?
 
19392
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19393
 
 
19394
# Must we lock files when doing compilation ?
 
19395
need_locks=$lt_need_locks
 
19396
 
 
19397
# Do we need the lib prefix for modules?
 
19398
need_lib_prefix=$need_lib_prefix
 
19399
 
 
19400
# Do we need a version for libraries?
 
19401
need_version=$need_version
 
19402
 
 
19403
# Whether dlopen is supported.
 
19404
dlopen_support=$enable_dlopen
 
19405
 
 
19406
# Whether dlopen of programs is supported.
 
19407
dlopen_self=$enable_dlopen_self
 
19408
 
 
19409
# Whether dlopen of statically linked programs is supported.
 
19410
dlopen_self_static=$enable_dlopen_self_static
 
19411
 
 
19412
# Compiler flag to prevent dynamic linking.
 
19413
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19414
 
 
19415
# Compiler flag to turn off builtin functions.
 
19416
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19417
 
 
19418
# Compiler flag to allow reflexive dlopens.
 
19419
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19420
 
 
19421
# Compiler flag to generate shared objects directly from archives.
 
19422
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19423
 
 
19424
# Compiler flag to generate thread-safe objects.
 
19425
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19426
 
 
19427
# Library versioning type.
 
19428
version_type=$version_type
 
19429
 
 
19430
# Format of library name prefix.
 
19431
libname_spec=$lt_libname_spec
 
19432
 
 
19433
# List of archive names.  First name is the real one, the rest are links.
 
19434
# The last name is the one that the linker finds with -lNAME.
 
19435
library_names_spec=$lt_library_names_spec
 
19436
 
 
19437
# The coded name of the library, if different from the real name.
 
19438
soname_spec=$lt_soname_spec
 
19439
 
 
19440
# Commands used to build and install an old-style archive.
 
19441
RANLIB=$lt_RANLIB
 
19442
old_archive_cmds=$lt_old_archive_cmds_RC
 
19443
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19444
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19445
 
 
19446
# Create an old-style archive from a shared archive.
 
19447
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19448
 
 
19449
# Create a temporary old-style archive to link instead of a shared archive.
 
19450
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19451
 
 
19452
# Commands used to build and install a shared archive.
 
19453
archive_cmds=$lt_archive_cmds_RC
 
19454
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19455
postinstall_cmds=$lt_postinstall_cmds
 
19456
postuninstall_cmds=$lt_postuninstall_cmds
 
19457
 
 
19458
# Commands used to build a loadable module (assumed same as above if empty)
 
19459
module_cmds=$lt_module_cmds_RC
 
19460
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19461
 
 
19462
# Commands to strip libraries.
 
19463
old_striplib=$lt_old_striplib
 
19464
striplib=$lt_striplib
 
19465
 
 
19466
# Dependencies to place before the objects being linked to create a
 
19467
# shared library.
 
19468
predep_objects=$lt_predep_objects_RC
 
19469
 
 
19470
# Dependencies to place after the objects being linked to create a
 
19471
# shared library.
 
19472
postdep_objects=$lt_postdep_objects_RC
 
19473
 
 
19474
# Dependencies to place before the objects being linked to create a
 
19475
# shared library.
 
19476
predeps=$lt_predeps_RC
 
19477
 
 
19478
# Dependencies to place after the objects being linked to create a
 
19479
# shared library.
 
19480
postdeps=$lt_postdeps_RC
 
19481
 
 
19482
# The library search path used internally by the compiler when linking
 
19483
# a shared library.
 
19484
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19485
 
 
19486
# Method to check whether dependent libraries are shared objects.
 
19487
deplibs_check_method=$lt_deplibs_check_method
 
19488
 
 
19489
# Command to use when deplibs_check_method == file_magic.
 
19490
file_magic_cmd=$lt_file_magic_cmd
 
19491
 
 
19492
# Flag that allows shared libraries with undefined symbols to be built.
 
19493
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19494
 
 
19495
# Flag that forces no undefined symbols.
 
19496
no_undefined_flag=$lt_no_undefined_flag_RC
 
19497
 
 
19498
# Commands used to finish a libtool library installation in a directory.
 
19499
finish_cmds=$lt_finish_cmds
 
19500
 
 
19501
# Same as above, but a single script fragment to be evaled but not shown.
 
19502
finish_eval=$lt_finish_eval
 
19503
 
 
19504
# Take the output of nm and produce a listing of raw symbols and C names.
 
19505
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19506
 
 
19507
# Transform the output of nm in a proper C declaration
 
19508
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19509
 
 
19510
# Transform the output of nm in a C name address pair
 
19511
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19512
 
 
19513
# This is the shared library runtime path variable.
 
19514
runpath_var=$runpath_var
 
19515
 
 
19516
# This is the shared library path variable.
 
19517
shlibpath_var=$shlibpath_var
 
19518
 
 
19519
# Is shlibpath searched before the hard-coded library search path?
 
19520
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19521
 
 
19522
# How to hardcode a shared library path into an executable.
 
19523
hardcode_action=$hardcode_action_RC
 
19524
 
 
19525
# Whether we should hardcode library paths into libraries.
 
19526
hardcode_into_libs=$hardcode_into_libs
 
19527
 
 
19528
# Flag to hardcode \$libdir into a binary during linking.
 
19529
# This must work even if \$libdir does not exist.
 
19530
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19531
 
 
19532
# If ld is used when linking, flag to hardcode \$libdir into
 
19533
# a binary during linking. This must work even if \$libdir does
 
19534
# not exist.
 
19535
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19536
 
 
19537
# Whether we need a single -rpath flag with a separated argument.
 
19538
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19539
 
 
19540
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19541
# resulting binary.
 
19542
hardcode_direct=$hardcode_direct_RC
 
19543
 
 
19544
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19545
# resulting binary.
 
19546
hardcode_minus_L=$hardcode_minus_L_RC
 
19547
 
 
19548
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19549
# the resulting binary.
 
19550
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19551
 
 
19552
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19553
# and all subsequent libraries and executables linked against it.
 
19554
hardcode_automatic=$hardcode_automatic_RC
 
19555
 
 
19556
# Variables whose values should be saved in libtool wrapper scripts and
 
19557
# restored at relink time.
 
19558
variables_saved_for_relink="$variables_saved_for_relink"
 
19559
 
 
19560
# Whether libtool must link a program against all its dependency libraries.
 
19561
link_all_deplibs=$link_all_deplibs_RC
 
19562
 
 
19563
# Compile-time system search path for libraries
 
19564
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19565
 
 
19566
# Run-time system search path for libraries
 
19567
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19568
 
 
19569
# Fix the shell variable \$srcfile for the compiler.
 
19570
fix_srcfile_path="$fix_srcfile_path_RC"
 
19571
 
 
19572
# Set to yes if exported symbols are required.
 
19573
always_export_symbols=$always_export_symbols_RC
 
19574
 
 
19575
# The commands to list exported symbols.
 
19576
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19577
 
 
19578
# The commands to extract the exported symbol list from a shared archive.
 
19579
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19580
 
 
19581
# Symbols that should not be listed in the preloaded symbols.
 
19582
exclude_expsyms=$lt_exclude_expsyms_RC
 
19583
 
 
19584
# Symbols that must always be exported.
 
19585
include_expsyms=$lt_include_expsyms_RC
 
19586
 
 
19587
# ### END LIBTOOL TAG CONFIG: $tagname
 
19588
 
 
19589
__EOF__
 
19590
 
 
19591
 
 
19592
else
 
19593
  # If there is no Makefile yet, we rely on a make rule to execute
 
19594
  # `config.status --recheck' to rerun these tests and create the
 
19595
  # libtool script then.
 
19596
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19597
  if test -f "$ltmain_in"; then
 
19598
    test -f Makefile && make "$ltmain"
 
19599
  fi
 
19600
fi
 
19601
 
 
19602
 
 
19603
ac_ext=cc
 
19604
ac_cpp='$CXXCPP $CPPFLAGS'
 
19605
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19606
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19607
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
19608
 
 
19609
CC="$lt_save_CC"
 
19610
 
 
19611
        ;;
 
19612
 
 
19613
      *)
 
19614
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19615
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19616
   { (exit 1); exit 1; }; }
 
19617
        ;;
 
19618
      esac
 
19619
 
 
19620
      # Append the new tag name to the list of available tags.
 
19621
      if test -n "$tagname" ; then
 
19622
      available_tags="$available_tags $tagname"
 
19623
    fi
 
19624
    fi
 
19625
  done
 
19626
  IFS="$lt_save_ifs"
 
19627
 
 
19628
  # Now substitute the updated list of available tags.
 
19629
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19630
    mv "${ofile}T" "$ofile"
 
19631
    chmod +x "$ofile"
 
19632
  else
 
19633
    rm -f "${ofile}T"
 
19634
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19635
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19636
   { (exit 1); exit 1; }; }
 
19637
  fi
 
19638
fi
 
19639
 
 
19640
 
 
19641
 
 
19642
# This can be used to rebuild libtool when needed
 
19643
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19644
 
 
19645
# Always use our own libtool.
 
19646
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19647
 
 
19648
# Prevent multiple expansion
 
19649
 
 
19650
 
 
19651
 
 
19652
 
 
19653
 
 
19654
 
 
19655
 
 
19656
 
 
19657
 
 
19658
 
 
19659
 
 
19660
 
 
19661
 
 
19662
 
 
19663
 
 
19664
 
 
19665
 
 
19666
 
 
19667
 
 
19668
 
 
19669
 
 
19670
 
 
19671
  succeeded=no
 
19672
 
 
19673
  if test -z "$PKG_CONFIG"; then
 
19674
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
19675
set dummy pkg-config; ac_word=$2
 
19676
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19677
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19678
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19679
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19680
else
 
19681
  case $PKG_CONFIG in
 
19682
  [\\/]* | ?:[\\/]*)
 
19683
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19684
  ;;
 
19685
  *)
 
19686
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19687
for as_dir in $PATH
 
19688
do
 
19689
  IFS=$as_save_IFS
 
19690
  test -z "$as_dir" && as_dir=.
 
19691
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19692
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19693
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19694
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19695
    break 2
 
19696
  fi
 
19697
done
 
19698
done
 
19699
 
 
19700
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
19701
  ;;
 
19702
esac
 
19703
fi
 
19704
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19705
 
 
19706
if test -n "$PKG_CONFIG"; then
 
19707
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19708
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19709
else
 
19710
  echo "$as_me:$LINENO: result: no" >&5
 
19711
echo "${ECHO_T}no" >&6
 
19712
fi
 
19713
 
 
19714
  fi
 
19715
 
 
19716
  if test "$PKG_CONFIG" = "no" ; then
 
19717
     echo "*** The pkg-config script could not be found. Make sure it is"
 
19718
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
19719
     echo "*** to the full path to pkg-config."
 
19720
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
19721
  else
 
19722
     PKG_CONFIG_MIN_VERSION=0.9.0
 
19723
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
19724
        echo "$as_me:$LINENO: checking for glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0" >&5
 
19725
echo $ECHO_N "checking for glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0... $ECHO_C" >&6
 
19726
 
 
19727
        if $PKG_CONFIG --exists "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0" ; then
 
19728
            echo "$as_me:$LINENO: result: yes" >&5
 
19729
echo "${ECHO_T}yes" >&6
 
19730
            succeeded=yes
 
19731
 
 
19732
            echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
 
19733
echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
 
19734
            GTKMM_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
 
19735
            echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
 
19736
echo "${ECHO_T}$GTKMM_CFLAGS" >&6
 
19737
 
 
19738
            echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
 
19739
echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
 
19740
            GTKMM_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
 
19741
            echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
 
19742
echo "${ECHO_T}$GTKMM_LIBS" >&6
 
19743
        else
 
19744
            GTKMM_CFLAGS=""
 
19745
            GTKMM_LIBS=""
 
19746
            ## If we have a custom action on failure, don't print errors, but
 
19747
            ## do set a variable so people can do so.
 
19748
            GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0"`
 
19749
            echo $GTKMM_PKG_ERRORS
 
19750
        fi
 
19751
 
 
19752
 
 
19753
 
 
19754
     else
 
19755
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
19756
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
19757
     fi
 
19758
  fi
 
19759
 
 
19760
  if test $succeeded = yes; then
 
19761
     :
 
19762
  else
 
19763
     { { echo "$as_me:$LINENO: error: Library requirements (glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
19764
echo "$as_me: error: Library requirements (glib-2.0 >= 2.0.7 gtk+-2.0 >= 2.0.6 sigc++-2.0 >= 2.0 gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
19765
   { (exit 1); exit 1; }; }
 
19766
  fi
 
19767
 
 
19768
 
 
19769
  succeeded=no
 
19770
 
 
19771
  if test -z "$PKG_CONFIG"; then
 
19772
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
19773
set dummy pkg-config; ac_word=$2
 
19774
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19775
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19776
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19777
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19778
else
 
19779
  case $PKG_CONFIG in
 
19780
  [\\/]* | ?:[\\/]*)
 
19781
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19782
  ;;
 
19783
  *)
 
19784
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19785
for as_dir in $PATH
 
19786
do
 
19787
  IFS=$as_save_IFS
 
19788
  test -z "$as_dir" && as_dir=.
 
19789
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19790
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19791
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19792
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19793
    break 2
 
19794
  fi
 
19795
done
 
19796
done
 
19797
 
 
19798
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
19799
  ;;
 
19800
esac
 
19801
fi
 
19802
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19803
 
 
19804
if test -n "$PKG_CONFIG"; then
 
19805
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19806
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19807
else
 
19808
  echo "$as_me:$LINENO: result: no" >&5
 
19809
echo "${ECHO_T}no" >&6
 
19810
fi
 
19811
 
 
19812
  fi
 
19813
 
 
19814
  if test "$PKG_CONFIG" = "no" ; then
 
19815
     echo "*** The pkg-config script could not be found. Make sure it is"
 
19816
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
19817
     echo "*** to the full path to pkg-config."
 
19818
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
19819
  else
 
19820
     PKG_CONFIG_MIN_VERSION=0.9.0
 
19821
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
19822
        echo "$as_me:$LINENO: checking for gtkmm-2.4 >= 2.4.0" >&5
 
19823
echo $ECHO_N "checking for gtkmm-2.4 >= 2.4.0... $ECHO_C" >&6
 
19824
 
 
19825
        if $PKG_CONFIG --exists "gtkmm-2.4 >= 2.4.0" ; then
 
19826
            echo "$as_me:$LINENO: result: yes" >&5
 
19827
echo "${ECHO_T}yes" >&6
 
19828
            succeeded=yes
 
19829
 
 
19830
            echo "$as_me:$LINENO: checking GTKMM_CFLAGS" >&5
 
19831
echo $ECHO_N "checking GTKMM_CFLAGS... $ECHO_C" >&6
 
19832
            GTKMM_CFLAGS=`$PKG_CONFIG --cflags "gtkmm-2.4 >= 2.4.0"`
 
19833
            echo "$as_me:$LINENO: result: $GTKMM_CFLAGS" >&5
 
19834
echo "${ECHO_T}$GTKMM_CFLAGS" >&6
 
19835
 
 
19836
            echo "$as_me:$LINENO: checking GTKMM_LIBS" >&5
 
19837
echo $ECHO_N "checking GTKMM_LIBS... $ECHO_C" >&6
 
19838
            GTKMM_LIBS=`$PKG_CONFIG --libs "gtkmm-2.4 >= 2.4.0"`
 
19839
            echo "$as_me:$LINENO: result: $GTKMM_LIBS" >&5
 
19840
echo "${ECHO_T}$GTKMM_LIBS" >&6
 
19841
        else
 
19842
            GTKMM_CFLAGS=""
 
19843
            GTKMM_LIBS=""
 
19844
            ## If we have a custom action on failure, don't print errors, but
 
19845
            ## do set a variable so people can do so.
 
19846
            GTKMM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkmm-2.4 >= 2.4.0"`
 
19847
            echo $GTKMM_PKG_ERRORS
 
19848
        fi
 
19849
 
 
19850
 
 
19851
 
 
19852
     else
 
19853
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
19854
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
19855
     fi
 
19856
  fi
 
19857
 
 
19858
  if test $succeeded = yes; then
 
19859
     :
 
19860
  else
 
19861
     { { echo "$as_me:$LINENO: error: Library requirements (gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
19862
echo "$as_me: error: Library requirements (gtkmm-2.4 >= 2.4.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
19863
   { (exit 1); exit 1; }; }
 
19864
  fi
 
19865
 
 
19866
 
 
19867
 
 
19868
 
 
19869
 
 
19870
  succeeded=no
 
19871
 
 
19872
  if test -z "$PKG_CONFIG"; then
 
19873
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
19874
set dummy pkg-config; ac_word=$2
 
19875
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19877
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
19878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19879
else
 
19880
  case $PKG_CONFIG in
 
19881
  [\\/]* | ?:[\\/]*)
 
19882
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
19883
  ;;
 
19884
  *)
 
19885
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19886
for as_dir in $PATH
 
19887
do
 
19888
  IFS=$as_save_IFS
 
19889
  test -z "$as_dir" && as_dir=.
 
19890
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19892
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
19893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19894
    break 2
 
19895
  fi
 
19896
done
 
19897
done
 
19898
 
 
19899
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
19900
  ;;
 
19901
esac
 
19902
fi
 
19903
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
19904
 
 
19905
if test -n "$PKG_CONFIG"; then
 
19906
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
19907
echo "${ECHO_T}$PKG_CONFIG" >&6
 
19908
else
 
19909
  echo "$as_me:$LINENO: result: no" >&5
 
19910
echo "${ECHO_T}no" >&6
 
19911
fi
 
19912
 
 
19913
  fi
 
19914
 
 
19915
  if test "$PKG_CONFIG" = "no" ; then
 
19916
     echo "*** The pkg-config script could not be found. Make sure it is"
 
19917
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
19918
     echo "*** to the full path to pkg-config."
 
19919
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
19920
  else
 
19921
     PKG_CONFIG_MIN_VERSION=0.9.0
 
19922
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
19923
        echo "$as_me:$LINENO: checking for libxml++-1.0" >&5
 
19924
echo $ECHO_N "checking for libxml++-1.0... $ECHO_C" >&6
 
19925
 
 
19926
        if $PKG_CONFIG --exists "libxml++-1.0" ; then
 
19927
            echo "$as_me:$LINENO: result: yes" >&5
 
19928
echo "${ECHO_T}yes" >&6
 
19929
            succeeded=yes
 
19930
 
 
19931
            echo "$as_me:$LINENO: checking XMLPP_CFLAGS" >&5
 
19932
echo $ECHO_N "checking XMLPP_CFLAGS... $ECHO_C" >&6
 
19933
            XMLPP_CFLAGS=`$PKG_CONFIG --cflags "libxml++-1.0"`
 
19934
            echo "$as_me:$LINENO: result: $XMLPP_CFLAGS" >&5
 
19935
echo "${ECHO_T}$XMLPP_CFLAGS" >&6
 
19936
 
 
19937
            echo "$as_me:$LINENO: checking XMLPP_LIBS" >&5
 
19938
echo $ECHO_N "checking XMLPP_LIBS... $ECHO_C" >&6
 
19939
            XMLPP_LIBS=`$PKG_CONFIG --libs "libxml++-1.0"`
 
19940
            echo "$as_me:$LINENO: result: $XMLPP_LIBS" >&5
 
19941
echo "${ECHO_T}$XMLPP_LIBS" >&6
 
19942
        else
 
19943
            XMLPP_CFLAGS=""
 
19944
            XMLPP_LIBS=""
 
19945
            ## If we have a custom action on failure, don't print errors, but
 
19946
            ## do set a variable so people can do so.
 
19947
            XMLPP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml++-1.0"`
 
19948
            echo $XMLPP_PKG_ERRORS
 
19949
        fi
 
19950
 
 
19951
 
 
19952
 
 
19953
     else
 
19954
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
19955
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
19956
     fi
 
19957
  fi
 
19958
 
 
19959
  if test $succeeded = yes; then
 
19960
     :
 
19961
  else
 
19962
     { { echo "$as_me:$LINENO: error: Library requirements (libxml++-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
19963
echo "$as_me: error: Library requirements (libxml++-1.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
19964
   { (exit 1); exit 1; }; }
 
19965
  fi
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
 
 
19975
CXXFLAGS="$CXXFLAGS -Wall"
 
19976
 
 
19977
                              ac_config_files="$ac_config_files Makefile libbuffy/Makefile src/Makefile"
 
19978
 
 
19979
cat >confcache <<\_ACEOF
 
19980
# This file is a shell script that caches the results of configure
 
19981
# tests run on this system so they can be shared between configure
 
19982
# scripts and configure runs, see configure's option --config-cache.
 
19983
# It is not useful on other systems.  If it contains results you don't
 
19984
# want to keep, you may remove or edit it.
 
19985
#
 
19986
# config.status only pays attention to the cache file if you give it
 
19987
# the --recheck option to rerun configure.
 
19988
#
 
19989
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
19990
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
19991
# following values.
 
19992
 
 
19993
_ACEOF
 
19994
 
 
19995
# The following way of writing the cache mishandles newlines in values,
 
19996
# but we know of no workaround that is simple, portable, and efficient.
 
19997
# So, don't put newlines in cache variables' values.
 
19998
# Ultrix sh set writes to stderr and can't be redirected directly,
 
19999
# and sets the high bit in the cache file unless we assign to the vars.
 
20000
{
 
20001
  (set) 2>&1 |
 
20002
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
20003
    *ac_space=\ *)
 
20004
      # `set' does not quote correctly, so add quotes (double-quote
 
20005
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20006
      sed -n \
 
20007
        "s/'/'\\\\''/g;
 
20008
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20009
      ;;
 
20010
    *)
 
20011
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20012
      sed -n \
 
20013
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
20014
      ;;
 
20015
    esac;
 
20016
} |
 
20017
  sed '
 
20018
     t clear
 
20019
     : clear
 
20020
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20021
     t end
 
20022
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20023
     : end' >>confcache
 
20024
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
20025
  if test -w $cache_file; then
 
20026
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
20027
    cat confcache >$cache_file
 
20028
  else
 
20029
    echo "not updating unwritable cache $cache_file"
 
20030
  fi
 
20031
fi
 
20032
rm -f confcache
 
20033
 
 
20034
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20035
# Let make expand exec_prefix.
 
20036
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20037
 
 
20038
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
20039
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
20040
# trailing colons and then remove the whole line if VPATH becomes empty
 
20041
# (actually we leave an empty line to preserve line numbers).
 
20042
if test "x$srcdir" = x.; then
 
20043
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
20044
s/:*\$(srcdir):*/:/;
 
20045
s/:*\${srcdir}:*/:/;
 
20046
s/:*@srcdir@:*/:/;
 
20047
s/^\([^=]*=[     ]*\):*/\1/;
 
20048
s/:*$//;
 
20049
s/^[^=]*=[       ]*$//;
 
20050
}'
 
20051
fi
 
20052
 
 
20053
DEFS=-DHAVE_CONFIG_H
 
20054
 
 
20055
ac_libobjs=
 
20056
ac_ltlibobjs=
 
20057
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20058
  # 1. Remove the extension, and $U if already installed.
 
20059
  ac_i=`echo "$ac_i" |
 
20060
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
20061
  # 2. Add them.
 
20062
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
20063
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
20064
done
 
20065
LIBOBJS=$ac_libobjs
 
20066
 
 
20067
LTLIBOBJS=$ac_ltlibobjs
 
20068
 
 
20069
 
 
20070
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20071
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20072
Usually this means the macro was only invoked conditionally." >&5
 
20073
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20074
Usually this means the macro was only invoked conditionally." >&2;}
 
20075
   { (exit 1); exit 1; }; }
 
20076
fi
 
20077
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20078
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20079
Usually this means the macro was only invoked conditionally." >&5
 
20080
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20081
Usually this means the macro was only invoked conditionally." >&2;}
 
20082
   { (exit 1); exit 1; }; }
 
20083
fi
 
20084
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20085
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20086
Usually this means the macro was only invoked conditionally." >&5
 
20087
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20088
Usually this means the macro was only invoked conditionally." >&2;}
 
20089
   { (exit 1); exit 1; }; }
 
20090
fi
 
20091
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20092
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20093
Usually this means the macro was only invoked conditionally." >&5
 
20094
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20095
Usually this means the macro was only invoked conditionally." >&2;}
 
20096
   { (exit 1); exit 1; }; }
 
20097
fi
 
20098
 
 
20099
: ${CONFIG_STATUS=./config.status}
 
20100
ac_clean_files_save=$ac_clean_files
 
20101
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20102
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20103
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20104
cat >$CONFIG_STATUS <<_ACEOF
 
20105
#! $SHELL
 
20106
# Generated by $as_me.
 
20107
# Run this file to recreate the current configuration.
 
20108
# Compiler output produced by configure, useful for debugging
 
20109
# configure, is in config.log if it exists.
 
20110
 
 
20111
debug=false
 
20112
ac_cs_recheck=false
 
20113
ac_cs_silent=false
 
20114
SHELL=\${CONFIG_SHELL-$SHELL}
 
20115
_ACEOF
 
20116
 
 
20117
cat >>$CONFIG_STATUS <<\_ACEOF
 
20118
## --------------------- ##
 
20119
## M4sh Initialization.  ##
 
20120
## --------------------- ##
 
20121
 
 
20122
# Be Bourne compatible
 
20123
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20124
  emulate sh
 
20125
  NULLCMD=:
 
20126
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20127
  # is contrary to our usage.  Disable this feature.
 
20128
  alias -g '${1+"$@"}'='"$@"'
 
20129
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20130
  set -o posix
 
20131
fi
 
20132
DUALCASE=1; export DUALCASE # for MKS sh
 
20133
 
 
20134
# Support unset when possible.
 
20135
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20136
  as_unset=unset
 
20137
else
 
20138
  as_unset=false
 
20139
fi
 
20140
 
 
20141
 
 
20142
# Work around bugs in pre-3.0 UWIN ksh.
 
20143
$as_unset ENV MAIL MAILPATH
 
20144
PS1='$ '
 
20145
PS2='> '
 
20146
PS4='+ '
 
20147
 
 
20148
# NLS nuisances.
 
20149
for as_var in \
 
20150
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20151
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20152
  LC_TELEPHONE LC_TIME
 
20153
do
 
20154
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20155
    eval $as_var=C; export $as_var
 
20156
  else
 
20157
    $as_unset $as_var
 
20158
  fi
 
20159
done
 
20160
 
 
20161
# Required to use basename.
 
20162
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20163
  as_expr=expr
 
20164
else
 
20165
  as_expr=false
 
20166
fi
 
20167
 
 
20168
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
20169
  as_basename=basename
 
20170
else
 
20171
  as_basename=false
 
20172
fi
 
20173
 
 
20174
 
 
20175
# Name of the executable.
 
20176
as_me=`$as_basename "$0" ||
 
20177
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20178
         X"$0" : 'X\(//\)$' \| \
 
20179
         X"$0" : 'X\(/\)$' \| \
 
20180
         .     : '\(.\)' 2>/dev/null ||
 
20181
echo X/"$0" |
 
20182
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
20183
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
20184
          /^X\/\(\/\).*/{ s//\1/; q; }
 
20185
          s/.*/./; q'`
 
20186
 
 
20187
 
 
20188
# PATH needs CR, and LINENO needs CR and PATH.
 
20189
# Avoid depending upon Character Ranges.
 
20190
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20191
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20192
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20193
as_cr_digits='0123456789'
 
20194
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20195
 
 
20196
# The user is always right.
 
20197
if test "${PATH_SEPARATOR+set}" != set; then
 
20198
  echo "#! /bin/sh" >conf$$.sh
 
20199
  echo  "exit 0"   >>conf$$.sh
 
20200
  chmod +x conf$$.sh
 
20201
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20202
    PATH_SEPARATOR=';'
 
20203
  else
 
20204
    PATH_SEPARATOR=:
 
20205
  fi
 
20206
  rm -f conf$$.sh
 
20207
fi
 
20208
 
 
20209
 
 
20210
  as_lineno_1=$LINENO
 
20211
  as_lineno_2=$LINENO
 
20212
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20213
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20214
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
20215
  # Find who we are.  Look in the path if we contain no path at all
 
20216
  # relative or not.
 
20217
  case $0 in
 
20218
    *[\\/]* ) as_myself=$0 ;;
 
20219
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20220
for as_dir in $PATH
 
20221
do
 
20222
  IFS=$as_save_IFS
 
20223
  test -z "$as_dir" && as_dir=.
 
20224
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20225
done
 
20226
 
 
20227
       ;;
 
20228
  esac
 
20229
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
20230
  # in which case we are not to be found in the path.
 
20231
  if test "x$as_myself" = x; then
 
20232
    as_myself=$0
 
20233
  fi
 
20234
  if test ! -f "$as_myself"; then
 
20235
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
20236
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
20237
   { (exit 1); exit 1; }; }
 
20238
  fi
 
20239
  case $CONFIG_SHELL in
 
20240
  '')
 
20241
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20242
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
20243
do
 
20244
  IFS=$as_save_IFS
 
20245
  test -z "$as_dir" && as_dir=.
 
20246
  for as_base in sh bash ksh sh5; do
 
20247
         case $as_dir in
 
20248
         /*)
 
20249
           if ("$as_dir/$as_base" -c '
 
20250
  as_lineno_1=$LINENO
 
20251
  as_lineno_2=$LINENO
 
20252
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
20253
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20254
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
20255
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
20256
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
20257
             CONFIG_SHELL=$as_dir/$as_base
 
20258
             export CONFIG_SHELL
 
20259
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
20260
           fi;;
 
20261
         esac
 
20262
       done
 
20263
done
 
20264
;;
 
20265
  esac
 
20266
 
 
20267
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20268
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20269
  # line-number line before each line; the second 'sed' does the real
 
20270
  # work.  The second script uses 'N' to pair each line-number line
 
20271
  # with the numbered line, and appends trailing '-' during
 
20272
  # substitution so that $LINENO is not a special case at line end.
 
20273
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20274
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
20275
  sed '=' <$as_myself |
 
20276
    sed '
 
20277
      N
 
20278
      s,$,-,
 
20279
      : loop
 
20280
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
20281
      t loop
 
20282
      s,-$,,
 
20283
      s,^['$as_cr_digits']*\n,,
 
20284
    ' >$as_me.lineno &&
 
20285
  chmod +x $as_me.lineno ||
 
20286
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
20287
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
20288
   { (exit 1); exit 1; }; }
 
20289
 
 
20290
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20291
  # (the dirname of $[0] is not the place where we might find the
 
20292
  # original and so on.  Autoconf is especially sensible to this).
 
20293
  . ./$as_me.lineno
 
20294
  # Exit status is that of the last command.
 
20295
  exit
 
20296
}
 
20297
 
 
20298
 
 
20299
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
20300
  *c*,-n*) ECHO_N= ECHO_C='
 
20301
' ECHO_T='      ' ;;
 
20302
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
20303
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
20304
esac
 
20305
 
 
20306
if expr a : '\(a\)' >/dev/null 2>&1; then
 
20307
  as_expr=expr
 
20308
else
 
20309
  as_expr=false
 
20310
fi
 
20311
 
 
20312
rm -f conf$$ conf$$.exe conf$$.file
 
20313
echo >conf$$.file
 
20314
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20315
  # We could just check for DJGPP; but this test a) works b) is more generic
 
20316
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
20317
  if test -f conf$$.exe; then
 
20318
    # Don't use ln at all; we don't have any links
 
20319
    as_ln_s='cp -p'
 
20320
  else
 
20321
    as_ln_s='ln -s'
 
20322
  fi
 
20323
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20324
  as_ln_s=ln
 
20325
else
 
20326
  as_ln_s='cp -p'
 
20327
fi
 
20328
rm -f conf$$ conf$$.exe conf$$.file
 
20329
 
 
20330
if mkdir -p . 2>/dev/null; then
 
20331
  as_mkdir_p=:
 
20332
else
 
20333
  test -d ./-p && rmdir ./-p
 
20334
  as_mkdir_p=false
 
20335
fi
 
20336
 
 
20337
as_executable_p="test -f"
 
20338
 
 
20339
# Sed expression to map a string onto a valid CPP name.
 
20340
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20341
 
 
20342
# Sed expression to map a string onto a valid variable name.
 
20343
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20344
 
 
20345
 
 
20346
# IFS
 
20347
# We need space, tab and new line, in precisely that order.
 
20348
as_nl='
 
20349
'
 
20350
IFS="   $as_nl"
 
20351
 
 
20352
# CDPATH.
 
20353
$as_unset CDPATH
 
20354
 
 
20355
exec 6>&1
 
20356
 
 
20357
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
20358
# report actual input values of CONFIG_FILES etc. instead of their
 
20359
# values after options handling.  Logging --version etc. is OK.
 
20360
exec 5>>config.log
 
20361
{
 
20362
  echo
 
20363
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
20364
## Running $as_me. ##
 
20365
_ASBOX
 
20366
} >&5
 
20367
cat >&5 <<_CSEOF
 
20368
 
 
20369
This file was extended by buffy $as_me 0.5, which was
 
20370
generated by GNU Autoconf 2.59.  Invocation command line was
 
20371
 
 
20372
  CONFIG_FILES    = $CONFIG_FILES
 
20373
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20374
  CONFIG_LINKS    = $CONFIG_LINKS
 
20375
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20376
  $ $0 $@
 
20377
 
 
20378
_CSEOF
 
20379
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
20380
echo >&5
 
20381
_ACEOF
 
20382
 
 
20383
# Files that config.status was made for.
 
20384
if test -n "$ac_config_files"; then
 
20385
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
20386
fi
 
20387
 
 
20388
if test -n "$ac_config_headers"; then
 
20389
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
20390
fi
 
20391
 
 
20392
if test -n "$ac_config_links"; then
 
20393
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
20394
fi
 
20395
 
 
20396
if test -n "$ac_config_commands"; then
 
20397
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
20398
fi
 
20399
 
 
20400
cat >>$CONFIG_STATUS <<\_ACEOF
 
20401
 
 
20402
ac_cs_usage="\
 
20403
\`$as_me' instantiates files from templates according to the
 
20404
current configuration.
 
20405
 
 
20406
Usage: $0 [OPTIONS] [FILE]...
 
20407
 
 
20408
  -h, --help       print this help, then exit
 
20409
  -V, --version    print version number, then exit
 
20410
  -q, --quiet      do not print progress messages
 
20411
  -d, --debug      don't remove temporary files
 
20412
      --recheck    update $as_me by reconfiguring in the same conditions
 
20413
  --file=FILE[:TEMPLATE]
 
20414
                   instantiate the configuration file FILE
 
20415
  --header=FILE[:TEMPLATE]
 
20416
                   instantiate the configuration header FILE
 
20417
 
 
20418
Configuration files:
 
20419
$config_files
 
20420
 
 
20421
Configuration headers:
 
20422
$config_headers
 
20423
 
 
20424
Configuration commands:
 
20425
$config_commands
 
20426
 
 
20427
Report bugs to <bug-autoconf@gnu.org>."
 
20428
_ACEOF
 
20429
 
 
20430
cat >>$CONFIG_STATUS <<_ACEOF
 
20431
ac_cs_version="\\
 
20432
buffy config.status 0.5
 
20433
configured by $0, generated by GNU Autoconf 2.59,
 
20434
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
20435
 
 
20436
Copyright (C) 2003 Free Software Foundation, Inc.
 
20437
This config.status script is free software; the Free Software Foundation
 
20438
gives unlimited permission to copy, distribute and modify it."
 
20439
srcdir=$srcdir
 
20440
INSTALL="$INSTALL"
 
20441
_ACEOF
 
20442
 
 
20443
cat >>$CONFIG_STATUS <<\_ACEOF
 
20444
# If no file are specified by the user, then we need to provide default
 
20445
# value.  By we need to know if files were specified by the user.
 
20446
ac_need_defaults=:
 
20447
while test $# != 0
 
20448
do
 
20449
  case $1 in
 
20450
  --*=*)
 
20451
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
20452
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
20453
    ac_shift=:
 
20454
    ;;
 
20455
  -*)
 
20456
    ac_option=$1
 
20457
    ac_optarg=$2
 
20458
    ac_shift=shift
 
20459
    ;;
 
20460
  *) # This is not an option, so the user has probably given explicit
 
20461
     # arguments.
 
20462
     ac_option=$1
 
20463
     ac_need_defaults=false;;
 
20464
  esac
 
20465
 
 
20466
  case $ac_option in
 
20467
  # Handling of the options.
 
20468
_ACEOF
 
20469
cat >>$CONFIG_STATUS <<\_ACEOF
 
20470
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
20471
    ac_cs_recheck=: ;;
 
20472
  --version | --vers* | -V )
 
20473
    echo "$ac_cs_version"; exit 0 ;;
 
20474
  --he | --h)
 
20475
    # Conflict between --help and --header
 
20476
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
20477
Try \`$0 --help' for more information." >&5
 
20478
echo "$as_me: error: ambiguous option: $1
 
20479
Try \`$0 --help' for more information." >&2;}
 
20480
   { (exit 1); exit 1; }; };;
 
20481
  --help | --hel | -h )
 
20482
    echo "$ac_cs_usage"; exit 0 ;;
 
20483
  --debug | --d* | -d )
 
20484
    debug=: ;;
 
20485
  --file | --fil | --fi | --f )
 
20486
    $ac_shift
 
20487
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
20488
    ac_need_defaults=false;;
 
20489
  --header | --heade | --head | --hea )
 
20490
    $ac_shift
 
20491
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
20492
    ac_need_defaults=false;;
 
20493
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
20494
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
20495
    ac_cs_silent=: ;;
 
20496
 
 
20497
  # This is an error.
 
20498
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
20499
Try \`$0 --help' for more information." >&5
 
20500
echo "$as_me: error: unrecognized option: $1
 
20501
Try \`$0 --help' for more information." >&2;}
 
20502
   { (exit 1); exit 1; }; } ;;
 
20503
 
 
20504
  *) ac_config_targets="$ac_config_targets $1" ;;
 
20505
 
 
20506
  esac
 
20507
  shift
 
20508
done
 
20509
 
 
20510
ac_configure_extra_args=
 
20511
 
 
20512
if $ac_cs_silent; then
 
20513
  exec 6>/dev/null
 
20514
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
20515
fi
 
20516
 
 
20517
_ACEOF
 
20518
cat >>$CONFIG_STATUS <<_ACEOF
 
20519
if \$ac_cs_recheck; then
 
20520
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
20521
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
20522
fi
 
20523
 
 
20524
_ACEOF
 
20525
 
 
20526
cat >>$CONFIG_STATUS <<_ACEOF
 
20527
#
 
20528
# INIT-COMMANDS section.
 
20529
#
 
20530
 
 
20531
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
20532
 
 
20533
_ACEOF
 
20534
 
 
20535
 
 
20536
 
 
20537
cat >>$CONFIG_STATUS <<\_ACEOF
 
20538
for ac_config_target in $ac_config_targets
 
20539
do
 
20540
  case "$ac_config_target" in
 
20541
  # Handling of arguments.
 
20542
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
20543
  "libbuffy/Makefile" ) CONFIG_FILES="$CONFIG_FILES libbuffy/Makefile" ;;
 
20544
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
20545
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
20546
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
20547
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
20548
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
20549
   { (exit 1); exit 1; }; };;
 
20550
  esac
 
20551
done
 
20552
 
 
20553
# If the user did not use the arguments to specify the items to instantiate,
 
20554
# then the envvar interface is used.  Set only those that are not.
 
20555
# We use the long form for the default assignment because of an extremely
 
20556
# bizarre bug on SunOS 4.1.3.
 
20557
if $ac_need_defaults; then
 
20558
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
20559
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
20560
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
20561
fi
 
20562
 
 
20563
# Have a temporary directory for convenience.  Make it in the build tree
 
20564
# simply because there is no reason to put it here, and in addition,
 
20565
# creating and moving files from /tmp can sometimes cause problems.
 
20566
# Create a temporary directory, and hook for its removal unless debugging.
 
20567
$debug ||
 
20568
{
 
20569
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
20570
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
20571
}
 
20572
 
 
20573
# Create a (secure) tmp directory for tmp files.
 
20574
 
 
20575
{
 
20576
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
20577
  test -n "$tmp" && test -d "$tmp"
 
20578
}  ||
 
20579
{
 
20580
  tmp=./confstat$$-$RANDOM
 
20581
  (umask 077 && mkdir $tmp)
 
20582
} ||
 
20583
{
 
20584
   echo "$me: cannot create a temporary directory in ." >&2
 
20585
   { (exit 1); exit 1; }
 
20586
}
 
20587
 
 
20588
_ACEOF
 
20589
 
 
20590
cat >>$CONFIG_STATUS <<_ACEOF
 
20591
 
 
20592
#
 
20593
# CONFIG_FILES section.
 
20594
#
 
20595
 
 
20596
# No need to generate the scripts if there are no CONFIG_FILES.
 
20597
# This happens for instance when ./config.status config.h
 
20598
if test -n "\$CONFIG_FILES"; then
 
20599
  # Protect against being on the right side of a sed subst in config.status.
 
20600
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
20601
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
20602
s,@SHELL@,$SHELL,;t t
 
20603
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
20604
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
20605
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
20606
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
20607
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
20608
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
20609
s,@exec_prefix@,$exec_prefix,;t t
 
20610
s,@prefix@,$prefix,;t t
 
20611
s,@program_transform_name@,$program_transform_name,;t t
 
20612
s,@bindir@,$bindir,;t t
 
20613
s,@sbindir@,$sbindir,;t t
 
20614
s,@libexecdir@,$libexecdir,;t t
 
20615
s,@datadir@,$datadir,;t t
 
20616
s,@sysconfdir@,$sysconfdir,;t t
 
20617
s,@sharedstatedir@,$sharedstatedir,;t t
 
20618
s,@localstatedir@,$localstatedir,;t t
 
20619
s,@libdir@,$libdir,;t t
 
20620
s,@includedir@,$includedir,;t t
 
20621
s,@oldincludedir@,$oldincludedir,;t t
 
20622
s,@infodir@,$infodir,;t t
 
20623
s,@mandir@,$mandir,;t t
 
20624
s,@build_alias@,$build_alias,;t t
 
20625
s,@host_alias@,$host_alias,;t t
 
20626
s,@target_alias@,$target_alias,;t t
 
20627
s,@DEFS@,$DEFS,;t t
 
20628
s,@ECHO_C@,$ECHO_C,;t t
 
20629
s,@ECHO_N@,$ECHO_N,;t t
 
20630
s,@ECHO_T@,$ECHO_T,;t t
 
20631
s,@LIBS@,$LIBS,;t t
 
20632
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
20633
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
20634
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
20635
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
20636
s,@PACKAGE@,$PACKAGE,;t t
 
20637
s,@VERSION@,$VERSION,;t t
 
20638
s,@ACLOCAL@,$ACLOCAL,;t t
 
20639
s,@AUTOCONF@,$AUTOCONF,;t t
 
20640
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
20641
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
20642
s,@MAKEINFO@,$MAKEINFO,;t t
 
20643
s,@AMTAR@,$AMTAR,;t t
 
20644
s,@install_sh@,$install_sh,;t t
 
20645
s,@STRIP@,$STRIP,;t t
 
20646
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
20647
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
20648
s,@mkdir_p@,$mkdir_p,;t t
 
20649
s,@AWK@,$AWK,;t t
 
20650
s,@SET_MAKE@,$SET_MAKE,;t t
 
20651
s,@am__leading_dot@,$am__leading_dot,;t t
 
20652
s,@CXX@,$CXX,;t t
 
20653
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
20654
s,@LDFLAGS@,$LDFLAGS,;t t
 
20655
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
20656
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
20657
s,@EXEEXT@,$EXEEXT,;t t
 
20658
s,@OBJEXT@,$OBJEXT,;t t
 
20659
s,@DEPDIR@,$DEPDIR,;t t
 
20660
s,@am__include@,$am__include,;t t
 
20661
s,@am__quote@,$am__quote,;t t
 
20662
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
20663
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
20664
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
20665
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
20666
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
20667
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
20668
s,@CXXCPP@,$CXXCPP,;t t
 
20669
s,@CC@,$CC,;t t
 
20670
s,@CFLAGS@,$CFLAGS,;t t
 
20671
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
20672
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
20673
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
20674
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
20675
s,@EGREP@,$EGREP,;t t
 
20676
s,@build@,$build,;t t
 
20677
s,@build_cpu@,$build_cpu,;t t
 
20678
s,@build_vendor@,$build_vendor,;t t
 
20679
s,@build_os@,$build_os,;t t
 
20680
s,@host@,$host,;t t
 
20681
s,@host_cpu@,$host_cpu,;t t
 
20682
s,@host_vendor@,$host_vendor,;t t
 
20683
s,@host_os@,$host_os,;t t
 
20684
s,@LN_S@,$LN_S,;t t
 
20685
s,@ECHO@,$ECHO,;t t
 
20686
s,@AR@,$AR,;t t
 
20687
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
20688
s,@RANLIB@,$RANLIB,;t t
 
20689
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
20690
s,@CPP@,$CPP,;t t
 
20691
s,@F77@,$F77,;t t
 
20692
s,@FFLAGS@,$FFLAGS,;t t
 
20693
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
20694
s,@LIBTOOL@,$LIBTOOL,;t t
 
20695
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
20696
s,@GTKMM_CFLAGS@,$GTKMM_CFLAGS,;t t
 
20697
s,@GTKMM_LIBS@,$GTKMM_LIBS,;t t
 
20698
s,@XMLPP_CFLAGS@,$XMLPP_CFLAGS,;t t
 
20699
s,@XMLPP_LIBS@,$XMLPP_LIBS,;t t
 
20700
s,@LIBOBJS@,$LIBOBJS,;t t
 
20701
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
20702
CEOF
 
20703
 
 
20704
_ACEOF
 
20705
 
 
20706
  cat >>$CONFIG_STATUS <<\_ACEOF
 
20707
  # Split the substitutions into bite-sized pieces for seds with
 
20708
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
20709
  ac_max_sed_lines=48
 
20710
  ac_sed_frag=1 # Number of current file.
 
20711
  ac_beg=1 # First line for current file.
 
20712
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
20713
  ac_more_lines=:
 
20714
  ac_sed_cmds=
 
20715
  while $ac_more_lines; do
 
20716
    if test $ac_beg -gt 1; then
 
20717
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20718
    else
 
20719
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
20720
    fi
 
20721
    if test ! -s $tmp/subs.frag; then
 
20722
      ac_more_lines=false
 
20723
    else
 
20724
      # The purpose of the label and of the branching condition is to
 
20725
      # speed up the sed processing (if there are no `@' at all, there
 
20726
      # is no need to browse any of the substitutions).
 
20727
      # These are the two extra sed commands mentioned above.
 
20728
      (echo ':t
 
20729
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
20730
      if test -z "$ac_sed_cmds"; then
 
20731
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
20732
      else
 
20733
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
20734
      fi
 
20735
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
20736
      ac_beg=$ac_end
 
20737
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
20738
    fi
 
20739
  done
 
20740
  if test -z "$ac_sed_cmds"; then
 
20741
    ac_sed_cmds=cat
 
20742
  fi
 
20743
fi # test -n "$CONFIG_FILES"
 
20744
 
 
20745
_ACEOF
 
20746
cat >>$CONFIG_STATUS <<\_ACEOF
 
20747
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
20748
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20749
  case $ac_file in
 
20750
  - | *:- | *:-:* ) # input from stdin
 
20751
        cat >$tmp/stdin
 
20752
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20753
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20754
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20755
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20756
  * )   ac_file_in=$ac_file.in ;;
 
20757
  esac
 
20758
 
 
20759
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
20760
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
20761
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20762
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
20763
         X"$ac_file" : 'X\(//\)$' \| \
 
20764
         X"$ac_file" : 'X\(/\)' \| \
 
20765
         .     : '\(.\)' 2>/dev/null ||
 
20766
echo X"$ac_file" |
 
20767
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20768
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20769
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20770
          /^X\(\/\).*/{ s//\1/; q; }
 
20771
          s/.*/./; q'`
 
20772
  { if $as_mkdir_p; then
 
20773
    mkdir -p "$ac_dir"
 
20774
  else
 
20775
    as_dir="$ac_dir"
 
20776
    as_dirs=
 
20777
    while test ! -d "$as_dir"; do
 
20778
      as_dirs="$as_dir $as_dirs"
 
20779
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
20780
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
20781
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
20782
         X"$as_dir" : 'X\(//\)$' \| \
 
20783
         X"$as_dir" : 'X\(/\)' \| \
 
20784
         .     : '\(.\)' 2>/dev/null ||
 
20785
echo X"$as_dir" |
 
20786
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
20787
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
20788
          /^X\(\/\/\)$/{ s//\1/; q; }
 
20789
          /^X\(\/\).*/{ s//\1/; q; }
 
20790
          s/.*/./; q'`
 
20791
    done
 
20792
    test ! -n "$as_dirs" || mkdir $as_dirs
 
20793
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
20794
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
20795
   { (exit 1); exit 1; }; }; }
 
20796
 
 
20797
  ac_builddir=.
 
20798
 
 
20799
if test "$ac_dir" != .; then
 
20800
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
20801
  # A "../" for each directory in $ac_dir_suffix.
 
20802
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
20803
else
 
20804
  ac_dir_suffix= ac_top_builddir=
 
20805
fi
 
20806
 
 
20807
case $srcdir in
 
20808
  .)  # No --srcdir option.  We are building in place.
 
20809
    ac_srcdir=.
 
20810
    if test -z "$ac_top_builddir"; then
 
20811
       ac_top_srcdir=.
 
20812
    else
 
20813
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
20814
    fi ;;
 
20815
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
20816
    ac_srcdir=$srcdir$ac_dir_suffix;
 
20817
    ac_top_srcdir=$srcdir ;;
 
20818
  *) # Relative path.
 
20819
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
20820
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
20821
esac
 
20822
 
 
20823
# Do not use `cd foo && pwd` to compute absolute paths, because
 
20824
# the directories may not exist.
 
20825
case `pwd` in
 
20826
.) ac_abs_builddir="$ac_dir";;
 
20827
*)
 
20828
  case "$ac_dir" in
 
20829
  .) ac_abs_builddir=`pwd`;;
 
20830
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
20831
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
20832
  esac;;
 
20833
esac
 
20834
case $ac_abs_builddir in
 
20835
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20836
*)
 
20837
  case ${ac_top_builddir}. in
 
20838
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
20839
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
20840
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
20841
  esac;;
 
20842
esac
 
20843
case $ac_abs_builddir in
 
20844
.) ac_abs_srcdir=$ac_srcdir;;
 
20845
*)
 
20846
  case $ac_srcdir in
 
20847
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
20848
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
20849
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
20850
  esac;;
 
20851
esac
 
20852
case $ac_abs_builddir in
 
20853
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20854
*)
 
20855
  case $ac_top_srcdir in
 
20856
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
20857
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
20858
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
20859
  esac;;
 
20860
esac
 
20861
 
 
20862
 
 
20863
  case $INSTALL in
 
20864
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
20865
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
20866
  esac
 
20867
 
 
20868
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
20869
  # use $as_me), people would be surprised to read:
 
20870
  #    /* config.h.  Generated by config.status.  */
 
20871
  if test x"$ac_file" = x-; then
 
20872
    configure_input=
 
20873
  else
 
20874
    configure_input="$ac_file.  "
 
20875
  fi
 
20876
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
20877
                                     sed 's,.*/,,'` by configure."
 
20878
 
 
20879
  # First look for the input files in the build tree, otherwise in the
 
20880
  # src tree.
 
20881
  ac_file_inputs=`IFS=:
 
20882
    for f in $ac_file_in; do
 
20883
      case $f in
 
20884
      -) echo $tmp/stdin ;;
 
20885
      [\\/$]*)
 
20886
         # Absolute (can't be DOS-style, as IFS=:)
 
20887
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20888
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20889
   { (exit 1); exit 1; }; }
 
20890
         echo "$f";;
 
20891
      *) # Relative
 
20892
         if test -f "$f"; then
 
20893
           # Build tree
 
20894
           echo "$f"
 
20895
         elif test -f "$srcdir/$f"; then
 
20896
           # Source tree
 
20897
           echo "$srcdir/$f"
 
20898
         else
 
20899
           # /dev/null tree
 
20900
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20901
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20902
   { (exit 1); exit 1; }; }
 
20903
         fi;;
 
20904
      esac
 
20905
    done` || { (exit 1); exit 1; }
 
20906
 
 
20907
  if test x"$ac_file" != x-; then
 
20908
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20909
echo "$as_me: creating $ac_file" >&6;}
 
20910
    rm -f "$ac_file"
 
20911
  fi
 
20912
_ACEOF
 
20913
cat >>$CONFIG_STATUS <<_ACEOF
 
20914
  sed "$ac_vpsub
 
20915
$extrasub
 
20916
_ACEOF
 
20917
cat >>$CONFIG_STATUS <<\_ACEOF
 
20918
:t
 
20919
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
20920
s,@configure_input@,$configure_input,;t t
 
20921
s,@srcdir@,$ac_srcdir,;t t
 
20922
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
20923
s,@top_srcdir@,$ac_top_srcdir,;t t
 
20924
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
20925
s,@builddir@,$ac_builddir,;t t
 
20926
s,@abs_builddir@,$ac_abs_builddir,;t t
 
20927
s,@top_builddir@,$ac_top_builddir,;t t
 
20928
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
20929
s,@INSTALL@,$ac_INSTALL,;t t
 
20930
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
20931
  rm -f $tmp/stdin
 
20932
  if test x"$ac_file" != x-; then
 
20933
    mv $tmp/out $ac_file
 
20934
  else
 
20935
    cat $tmp/out
 
20936
    rm -f $tmp/out
 
20937
  fi
 
20938
 
 
20939
done
 
20940
_ACEOF
 
20941
cat >>$CONFIG_STATUS <<\_ACEOF
 
20942
 
 
20943
#
 
20944
# CONFIG_HEADER section.
 
20945
#
 
20946
 
 
20947
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
20948
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
20949
#
 
20950
# ac_d sets the value in "#define NAME VALUE" lines.
 
20951
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
20952
ac_dB='[         ].*$,\1#\2'
 
20953
ac_dC=' '
 
20954
ac_dD=',;t'
 
20955
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
20956
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
20957
ac_uB='$,\1#\2define\3'
 
20958
ac_uC=' '
 
20959
ac_uD=',;t'
 
20960
 
 
20961
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
20962
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
20963
  case $ac_file in
 
20964
  - | *:- | *:-:* ) # input from stdin
 
20965
        cat >$tmp/stdin
 
20966
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20967
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20968
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
20969
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
20970
  * )   ac_file_in=$ac_file.in ;;
 
20971
  esac
 
20972
 
 
20973
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
20974
echo "$as_me: creating $ac_file" >&6;}
 
20975
 
 
20976
  # First look for the input files in the build tree, otherwise in the
 
20977
  # src tree.
 
20978
  ac_file_inputs=`IFS=:
 
20979
    for f in $ac_file_in; do
 
20980
      case $f in
 
20981
      -) echo $tmp/stdin ;;
 
20982
      [\\/$]*)
 
20983
         # Absolute (can't be DOS-style, as IFS=:)
 
20984
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20985
echo "$as_me: error: cannot find input file: $f" >&2;}
 
20986
   { (exit 1); exit 1; }; }
 
20987
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
20988
         echo "$f";;
 
20989
      *) # Relative
 
20990
         if test -f "$f"; then
 
20991
           # Build tree
 
20992
           echo "$f"
 
20993
         elif test -f "$srcdir/$f"; then
 
20994
           # Source tree
 
20995
           echo "$srcdir/$f"
 
20996
         else
 
20997
           # /dev/null tree
 
20998
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
20999
echo "$as_me: error: cannot find input file: $f" >&2;}
 
21000
   { (exit 1); exit 1; }; }
 
21001
         fi;;
 
21002
      esac
 
21003
    done` || { (exit 1); exit 1; }
 
21004
  # Remove the trailing spaces.
 
21005
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
21006
 
 
21007
_ACEOF
 
21008
 
 
21009
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
21010
# `conftest.undefs', that substitutes the proper values into
 
21011
# config.h.in to produce config.h.  The first handles `#define'
 
21012
# templates, and the second `#undef' templates.
 
21013
# And first: Protect against being on the right side of a sed subst in
 
21014
# config.status.  Protect against being in an unquoted here document
 
21015
# in config.status.
 
21016
rm -f conftest.defines conftest.undefs
 
21017
# Using a here document instead of a string reduces the quoting nightmare.
 
21018
# Putting comments in sed scripts is not portable.
 
21019
#
 
21020
# `end' is used to avoid that the second main sed command (meant for
 
21021
# 0-ary CPP macros) applies to n-ary macro definitions.
 
21022
# See the Autoconf documentation for `clear'.
 
21023
cat >confdef2sed.sed <<\_ACEOF
 
21024
s/[\\&,]/\\&/g
 
21025
s,[\\$`],\\&,g
 
21026
t clear
 
21027
: clear
 
21028
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
21029
t end
 
21030
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
21031
: end
 
21032
_ACEOF
 
21033
# If some macros were called several times there might be several times
 
21034
# the same #defines, which is useless.  Nevertheless, we may not want to
 
21035
# sort them, since we want the *last* AC-DEFINE to be honored.
 
21036
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
21037
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
21038
rm -f confdef2sed.sed
 
21039
 
 
21040
# This sed command replaces #undef with comments.  This is necessary, for
 
21041
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21042
# on some systems where configure will not decide to define it.
 
21043
cat >>conftest.undefs <<\_ACEOF
 
21044
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
21045
_ACEOF
 
21046
 
 
21047
# Break up conftest.defines because some shells have a limit on the size
 
21048
# of here documents, and old seds have small limits too (100 cmds).
 
21049
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
21050
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
21051
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
21052
echo '  :' >>$CONFIG_STATUS
 
21053
rm -f conftest.tail
 
21054
while grep . conftest.defines >/dev/null
 
21055
do
 
21056
  # Write a limited-size here document to $tmp/defines.sed.
 
21057
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
21058
  # Speed up: don't consider the non `#define' lines.
 
21059
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
21060
  # Work around the forget-to-reset-the-flag bug.
 
21061
  echo 't clr' >>$CONFIG_STATUS
 
21062
  echo ': clr' >>$CONFIG_STATUS
 
21063
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
21064
  echo 'CEOF
 
21065
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
21066
  rm -f $tmp/in
 
21067
  mv $tmp/out $tmp/in
 
21068
' >>$CONFIG_STATUS
 
21069
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
21070
  rm -f conftest.defines
 
21071
  mv conftest.tail conftest.defines
 
21072
done
 
21073
rm -f conftest.defines
 
21074
echo '  fi # grep' >>$CONFIG_STATUS
 
21075
echo >>$CONFIG_STATUS
 
21076
 
 
21077
# Break up conftest.undefs because some shells have a limit on the size
 
21078
# of here documents, and old seds have small limits too (100 cmds).
 
21079
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
21080
rm -f conftest.tail
 
21081
while grep . conftest.undefs >/dev/null
 
21082
do
 
21083
  # Write a limited-size here document to $tmp/undefs.sed.
 
21084
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
21085
  # Speed up: don't consider the non `#undef'
 
21086
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
21087
  # Work around the forget-to-reset-the-flag bug.
 
21088
  echo 't clr' >>$CONFIG_STATUS
 
21089
  echo ': clr' >>$CONFIG_STATUS
 
21090
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
21091
  echo 'CEOF
 
21092
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
21093
  rm -f $tmp/in
 
21094
  mv $tmp/out $tmp/in
 
21095
' >>$CONFIG_STATUS
 
21096
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
21097
  rm -f conftest.undefs
 
21098
  mv conftest.tail conftest.undefs
 
21099
done
 
21100
rm -f conftest.undefs
 
21101
 
 
21102
cat >>$CONFIG_STATUS <<\_ACEOF
 
21103
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21104
  # use $as_me), people would be surprised to read:
 
21105
  #    /* config.h.  Generated by config.status.  */
 
21106
  if test x"$ac_file" = x-; then
 
21107
    echo "/* Generated by configure.  */" >$tmp/config.h
 
21108
  else
 
21109
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
21110
  fi
 
21111
  cat $tmp/in >>$tmp/config.h
 
21112
  rm -f $tmp/in
 
21113
  if test x"$ac_file" != x-; then
 
21114
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
21115
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21116
echo "$as_me: $ac_file is unchanged" >&6;}
 
21117
    else
 
21118
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
21119
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21120
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21121
         X"$ac_file" : 'X\(//\)$' \| \
 
21122
         X"$ac_file" : 'X\(/\)' \| \
 
21123
         .     : '\(.\)' 2>/dev/null ||
 
21124
echo X"$ac_file" |
 
21125
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21126
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21127
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21128
          /^X\(\/\).*/{ s//\1/; q; }
 
21129
          s/.*/./; q'`
 
21130
      { if $as_mkdir_p; then
 
21131
    mkdir -p "$ac_dir"
 
21132
  else
 
21133
    as_dir="$ac_dir"
 
21134
    as_dirs=
 
21135
    while test ! -d "$as_dir"; do
 
21136
      as_dirs="$as_dir $as_dirs"
 
21137
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21138
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21139
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21140
         X"$as_dir" : 'X\(//\)$' \| \
 
21141
         X"$as_dir" : 'X\(/\)' \| \
 
21142
         .     : '\(.\)' 2>/dev/null ||
 
21143
echo X"$as_dir" |
 
21144
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21145
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21146
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21147
          /^X\(\/\).*/{ s//\1/; q; }
 
21148
          s/.*/./; q'`
 
21149
    done
 
21150
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21151
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21152
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21153
   { (exit 1); exit 1; }; }; }
 
21154
 
 
21155
      rm -f $ac_file
 
21156
      mv $tmp/config.h $ac_file
 
21157
    fi
 
21158
  else
 
21159
    cat $tmp/config.h
 
21160
    rm -f $tmp/config.h
 
21161
  fi
 
21162
# Compute $ac_file's index in $config_headers.
 
21163
_am_stamp_count=1
 
21164
for _am_header in $config_headers :; do
 
21165
  case $_am_header in
 
21166
    $ac_file | $ac_file:* )
 
21167
      break ;;
 
21168
    * )
 
21169
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21170
  esac
 
21171
done
 
21172
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
21173
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21174
         X$ac_file : 'X\(//\)[^/]' \| \
 
21175
         X$ac_file : 'X\(//\)$' \| \
 
21176
         X$ac_file : 'X\(/\)' \| \
 
21177
         .     : '\(.\)' 2>/dev/null ||
 
21178
echo X$ac_file |
 
21179
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21180
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21181
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21182
          /^X\(\/\).*/{ s//\1/; q; }
 
21183
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21184
done
 
21185
_ACEOF
 
21186
cat >>$CONFIG_STATUS <<\_ACEOF
 
21187
 
 
21188
#
 
21189
# CONFIG_COMMANDS section.
 
21190
#
 
21191
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
21192
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
21193
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
21194
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
21195
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21196
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
21197
         X"$ac_dest" : 'X\(//\)$' \| \
 
21198
         X"$ac_dest" : 'X\(/\)' \| \
 
21199
         .     : '\(.\)' 2>/dev/null ||
 
21200
echo X"$ac_dest" |
 
21201
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21202
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21203
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21204
          /^X\(\/\).*/{ s//\1/; q; }
 
21205
          s/.*/./; q'`
 
21206
  { if $as_mkdir_p; then
 
21207
    mkdir -p "$ac_dir"
 
21208
  else
 
21209
    as_dir="$ac_dir"
 
21210
    as_dirs=
 
21211
    while test ! -d "$as_dir"; do
 
21212
      as_dirs="$as_dir $as_dirs"
 
21213
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21214
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21215
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21216
         X"$as_dir" : 'X\(//\)$' \| \
 
21217
         X"$as_dir" : 'X\(/\)' \| \
 
21218
         .     : '\(.\)' 2>/dev/null ||
 
21219
echo X"$as_dir" |
 
21220
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21221
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21222
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21223
          /^X\(\/\).*/{ s//\1/; q; }
 
21224
          s/.*/./; q'`
 
21225
    done
 
21226
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21227
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
21228
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
21229
   { (exit 1); exit 1; }; }; }
 
21230
 
 
21231
  ac_builddir=.
 
21232
 
 
21233
if test "$ac_dir" != .; then
 
21234
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21235
  # A "../" for each directory in $ac_dir_suffix.
 
21236
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
21237
else
 
21238
  ac_dir_suffix= ac_top_builddir=
 
21239
fi
 
21240
 
 
21241
case $srcdir in
 
21242
  .)  # No --srcdir option.  We are building in place.
 
21243
    ac_srcdir=.
 
21244
    if test -z "$ac_top_builddir"; then
 
21245
       ac_top_srcdir=.
 
21246
    else
 
21247
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
21248
    fi ;;
 
21249
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
21250
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21251
    ac_top_srcdir=$srcdir ;;
 
21252
  *) # Relative path.
 
21253
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
21254
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
21255
esac
 
21256
 
 
21257
# Do not use `cd foo && pwd` to compute absolute paths, because
 
21258
# the directories may not exist.
 
21259
case `pwd` in
 
21260
.) ac_abs_builddir="$ac_dir";;
 
21261
*)
 
21262
  case "$ac_dir" in
 
21263
  .) ac_abs_builddir=`pwd`;;
 
21264
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
21265
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
21266
  esac;;
 
21267
esac
 
21268
case $ac_abs_builddir in
 
21269
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21270
*)
 
21271
  case ${ac_top_builddir}. in
 
21272
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
21273
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
21274
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
21275
  esac;;
 
21276
esac
 
21277
case $ac_abs_builddir in
 
21278
.) ac_abs_srcdir=$ac_srcdir;;
 
21279
*)
 
21280
  case $ac_srcdir in
 
21281
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
21282
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
21283
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
21284
  esac;;
 
21285
esac
 
21286
case $ac_abs_builddir in
 
21287
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21288
*)
 
21289
  case $ac_top_srcdir in
 
21290
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
21291
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
21292
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
21293
  esac;;
 
21294
esac
 
21295
 
 
21296
 
 
21297
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
21298
echo "$as_me: executing $ac_dest commands" >&6;}
 
21299
  case $ac_dest in
 
21300
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21301
  # Strip MF so we end up with the name of the file.
 
21302
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21303
  # Check whether this is an Automake generated Makefile or not.
 
21304
  # We used to match only the files named `Makefile.in', but
 
21305
  # some people rename them; so instead we look at the file content.
 
21306
  # Grep'ing the first line is not enough: some people post-process
 
21307
  # each Makefile.in and add a new line on top of each file to say so.
 
21308
  # So let's grep whole file.
 
21309
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
21310
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
21311
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21312
         X"$mf" : 'X\(//\)[^/]' \| \
 
21313
         X"$mf" : 'X\(//\)$' \| \
 
21314
         X"$mf" : 'X\(/\)' \| \
 
21315
         .     : '\(.\)' 2>/dev/null ||
 
21316
echo X"$mf" |
 
21317
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21318
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21319
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21320
          /^X\(\/\).*/{ s//\1/; q; }
 
21321
          s/.*/./; q'`
 
21322
  else
 
21323
    continue
 
21324
  fi
 
21325
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
21326
  # Extract the definition of DEP_FILES from the Makefile without
 
21327
  # running `make'.
 
21328
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21329
  test -z "$DEPDIR" && continue
 
21330
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21331
  U=`sed -n 's/^U = //p' < "$mf"`
 
21332
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
21333
  # We invoke sed twice because it is the simplest approach to
 
21334
  # changing $(DEPDIR) to its actual value in the expansion.
 
21335
  for file in `sed -n '
 
21336
    /^DEP_FILES = .*\\\\$/ {
 
21337
      s/^DEP_FILES = //
 
21338
      :loop
 
21339
        s/\\\\$//
 
21340
        p
 
21341
        n
 
21342
        /\\\\$/ b loop
 
21343
      p
 
21344
    }
 
21345
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
21346
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21347
    # Make sure the directory exists.
 
21348
    test -f "$dirpart/$file" && continue
 
21349
    fdir=`(dirname "$file") 2>/dev/null ||
 
21350
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21351
         X"$file" : 'X\(//\)[^/]' \| \
 
21352
         X"$file" : 'X\(//\)$' \| \
 
21353
         X"$file" : 'X\(/\)' \| \
 
21354
         .     : '\(.\)' 2>/dev/null ||
 
21355
echo X"$file" |
 
21356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21357
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21358
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21359
          /^X\(\/\).*/{ s//\1/; q; }
 
21360
          s/.*/./; q'`
 
21361
    { if $as_mkdir_p; then
 
21362
    mkdir -p $dirpart/$fdir
 
21363
  else
 
21364
    as_dir=$dirpart/$fdir
 
21365
    as_dirs=
 
21366
    while test ! -d "$as_dir"; do
 
21367
      as_dirs="$as_dir $as_dirs"
 
21368
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
21369
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21370
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21371
         X"$as_dir" : 'X\(//\)$' \| \
 
21372
         X"$as_dir" : 'X\(/\)' \| \
 
21373
         .     : '\(.\)' 2>/dev/null ||
 
21374
echo X"$as_dir" |
 
21375
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
21376
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
21377
          /^X\(\/\/\)$/{ s//\1/; q; }
 
21378
          /^X\(\/\).*/{ s//\1/; q; }
 
21379
          s/.*/./; q'`
 
21380
    done
 
21381
    test ! -n "$as_dirs" || mkdir $as_dirs
 
21382
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
21383
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
21384
   { (exit 1); exit 1; }; }; }
 
21385
 
 
21386
    # echo "creating $dirpart/$file"
 
21387
    echo '# dummy' > "$dirpart/$file"
 
21388
  done
 
21389
done
 
21390
 ;;
 
21391
  esac
 
21392
done
 
21393
_ACEOF
 
21394
 
 
21395
cat >>$CONFIG_STATUS <<\_ACEOF
 
21396
 
 
21397
{ (exit 0); exit 0; }
 
21398
_ACEOF
 
21399
chmod +x $CONFIG_STATUS
 
21400
ac_clean_files=$ac_clean_files_save
 
21401
 
 
21402
 
 
21403
# configure is writing to config.log, and then calls config.status.
 
21404
# config.status does its own redirection, appending to config.log.
 
21405
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21406
# by configure, so config.status won't be able to write to it; its
 
21407
# output is simply discarded.  So we exec the FD to /dev/null,
 
21408
# effectively closing config.log, so it can be properly (re)opened and
 
21409
# appended to by config.status.  When coming back to configure, we
 
21410
# need to make the FD available again.
 
21411
if test "$no_create" != yes; then
 
21412
  ac_cs_success=:
 
21413
  ac_config_status_args=
 
21414
  test "$silent" = yes &&
 
21415
    ac_config_status_args="$ac_config_status_args --quiet"
 
21416
  exec 5>/dev/null
 
21417
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21418
  exec 5>>config.log
 
21419
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21420
  # would make configure fail if this is the last instruction.
 
21421
  $ac_cs_success || { (exit 1); exit 1; }
 
21422
fi
 
21423
 
 
21424